diff --git a/apps/dokploy/__test__/server/cloud-server-cancel-credit.test.ts b/apps/dokploy/__test__/server/cloud-server-cancel-credit.test.ts
new file mode 100644
index 000000000..de4bea55a
--- /dev/null
+++ b/apps/dokploy/__test__/server/cloud-server-cancel-credit.test.ts
@@ -0,0 +1,144 @@
+import type Stripe from "stripe";
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+
+const mocks = vi.hoisted(() => ({
+ record: null as Record | null,
+ updateCloudServer: vi.fn(),
+}));
+
+vi.mock("@dokploy/server", () => ({}));
+vi.mock("@dokploy/server/services/cloud-server", () => ({
+ findCloudServerBySubscriptionId: async () => mocks.record,
+ updateCloudServer: mocks.updateCloudServer,
+}));
+vi.mock("@/server/utils/cloud-server-notifications", () => ({}));
+vi.mock("@/server/utils/billing", () => ({
+ getStripeClient: () => stripe,
+}));
+vi.mock("@/server/utils/stripe", () => ({}));
+
+const { cancelCloudServerSubscription } = await import(
+ "@/server/utils/cloud-server-billing"
+);
+
+const GB = 1024 ** 3;
+const retrieve = vi.fn();
+const cancel = vi.fn();
+const createInvoiceItem = vi.fn();
+const finalizeInvoice = vi.fn();
+const stripe = {
+ subscriptions: { retrieve, cancel },
+ invoiceItems: { create: createInvoiceItem },
+ invoices: { finalizeInvoice },
+} as unknown as Stripe;
+
+const NOW = "2026-11-24T10:00:00.000Z";
+const paid = (startedAt: string) => ({
+ status: "active",
+ latest_invoice: { status: "paid" },
+ start_date: Date.parse(startedAt) / 1000,
+ current_period_start: Date.parse("2026-11-24T00:00:00.000Z") / 1000,
+ current_period_end: Date.parse("2026-12-24T00:00:00.000Z") / 1000,
+ items: { data: [{ price: { unit_amount: 1999 } }] },
+});
+
+describe("cloud server cancellation credit", () => {
+ beforeEach(() => {
+ vi.useFakeTimers();
+ vi.setSystemTime(new Date(NOW));
+ for (const mock of [retrieve, cancel, createInvoiceItem, finalizeInvoice]) {
+ mock.mockReset();
+ }
+ mocks.updateCloudServer.mockReset();
+ mocks.record = { cloudServerId: "cs-1", plan: "hobby", bandwidthBytes: 0 };
+ retrieve.mockResolvedValue(paid("2026-11-10T10:00:00.000Z"));
+ cancel.mockResolvedValue({
+ latest_invoice: {
+ id: "in_final",
+ subscription: "sub_1",
+ customer: "cus_1",
+ currency: "usd",
+ },
+ });
+ });
+
+ afterEach(() => {
+ vi.useRealTimers();
+ });
+
+ it("charges a full hour for a server deleted 5 minutes after it was bought", async () => {
+ retrieve.mockResolvedValue(paid("2026-11-24T09:55:00.000Z"));
+
+ await cancelCloudServerSubscription("sub_1", {
+ creditUnusedTime: true,
+ });
+
+ expect(createInvoiceItem).toHaveBeenCalledWith(
+ expect.objectContaining({ invoice: "in_final", amount: 3 }),
+ { idempotencyKey: "cloud-server-minimum-in_final" },
+ );
+ });
+
+ it("credits the unused time right away when the customer deletes a paid server", async () => {
+ await cancelCloudServerSubscription("sub_1", {
+ creditUnusedTime: true,
+ });
+
+ expect(cancel).toHaveBeenCalledWith("sub_1", {
+ invoice_now: true,
+ prorate: true,
+ expand: ["latest_invoice"],
+ });
+ expect(createInvoiceItem).not.toHaveBeenCalled();
+ expect(finalizeInvoice).toHaveBeenCalledWith("in_final");
+ });
+
+ it("takes the extra bandwidth out of the credit", async () => {
+ mocks.record = {
+ cloudServerId: "cs-1",
+ plan: "starter",
+ bandwidthBytes: 4050 * GB,
+ };
+
+ await cancelCloudServerSubscription("sub_1", {
+ creditUnusedTime: true,
+ });
+
+ expect(createInvoiceItem).toHaveBeenCalledWith(
+ expect.objectContaining({ invoice: "in_final", amount: 150 }),
+ { idempotencyKey: "cloud-server-bandwidth-in_final" },
+ );
+ expect(createInvoiceItem.mock.invocationCallOrder[0]).toBeLessThan(
+ finalizeInvoice.mock.invocationCallOrder[0] as number,
+ );
+ });
+
+ it("gives no credit for a period that was never paid", async () => {
+ retrieve.mockResolvedValue({
+ status: "past_due",
+ latest_invoice: { status: "open" },
+ });
+
+ await cancelCloudServerSubscription("sub_1", {
+ creditUnusedTime: true,
+ });
+
+ expect(cancel).toHaveBeenCalledWith("sub_1", {
+ invoice_now: false,
+ prorate: false,
+ expand: ["latest_invoice"],
+ });
+ expect(finalizeInvoice).not.toHaveBeenCalled();
+ });
+
+ it("gives no credit when Dokploy removes the server for non-payment", async () => {
+ await cancelCloudServerSubscription("sub_1");
+
+ expect(cancel).toHaveBeenCalledWith("sub_1", {
+ invoice_now: false,
+ prorate: false,
+ expand: ["latest_invoice"],
+ });
+ expect(finalizeInvoice).not.toHaveBeenCalled();
+ });
+});
diff --git a/apps/dokploy/__test__/server/cloud-server-checkout.test.ts b/apps/dokploy/__test__/server/cloud-server-checkout.test.ts
new file mode 100644
index 000000000..08bb03be2
--- /dev/null
+++ b/apps/dokploy/__test__/server/cloud-server-checkout.test.ts
@@ -0,0 +1,123 @@
+import type Stripe from "stripe";
+import { beforeEach, describe, expect, it, vi } from "vitest";
+
+const mocks = vi.hoisted(() => ({
+ organization: { id: "org-1" } as { id: string } | undefined,
+ createCloudServer: vi.fn(),
+ provisionCloudServer: vi.fn(),
+}));
+
+vi.mock("@dokploy/server", () => ({
+ findOrganizationById: async () => mocks.organization,
+}));
+vi.mock("@dokploy/server/services/cloud-server", () => ({
+ buildCloudServerHostname: () => "acme-x7k2p9",
+ createCloudServer: mocks.createCloudServer,
+ provisionCloudServer: mocks.provisionCloudServer,
+}));
+vi.mock("@/server/utils/cloud-server-notifications", () => ({}));
+vi.mock("@/server/utils/billing", () => ({
+ getStripeClient: () => stripe,
+ CLOUD_SERVER_METADATA_TYPE: "cloud_server",
+}));
+vi.mock("@/server/utils/stripe", () => ({}));
+
+const { handleCloudServerEvent } = await import(
+ "@/server/utils/cloud-server-billing"
+);
+
+const retrieve = vi.fn();
+const cancel = vi.fn();
+const refund = vi.fn();
+const stripe = {
+ subscriptions: { retrieve, cancel },
+ refunds: { create: refund },
+} as unknown as Stripe;
+
+const checkoutCompleted = (metadata: Record) =>
+ ({
+ type: "checkout.session.completed",
+ data: {
+ object: { id: "cs_1", subscription: "sub_1", metadata },
+ },
+ }) as unknown as Stripe.Event;
+
+const order = {
+ type: "cloud_server",
+ cloudServerId: "cs-1",
+ organizationId: "org-1",
+ plan: "starter",
+ zone: "nyc1",
+};
+
+describe("cloud server checkout", () => {
+ beforeEach(() => {
+ for (const mock of [retrieve, cancel, refund]) mock.mockReset();
+ mocks.createCloudServer.mockReset();
+ mocks.provisionCloudServer.mockReset();
+ mocks.provisionCloudServer.mockResolvedValue(undefined);
+ mocks.organization = { id: "org-1" };
+ retrieve.mockResolvedValue({
+ status: "active",
+ latest_invoice: { paid: true, amount_paid: 3999, payment_intent: "pi_1" },
+ });
+ cancel.mockResolvedValue({});
+ });
+
+ it("creates the server from the paid order and provisions it", async () => {
+ mocks.createCloudServer.mockImplementation(async (input) => input);
+
+ const handled = await handleCloudServerEvent(
+ stripe,
+ checkoutCompleted(order),
+ );
+
+ expect(handled).toBe(true);
+ expect(mocks.createCloudServer).toHaveBeenCalledWith({
+ cloudServerId: "cs-1",
+ organizationId: "org-1",
+ plan: "starter",
+ zone: "nyc1",
+ hostname: "acme-x7k2p9",
+ status: "provisioning",
+ stripeSubscriptionId: "sub_1",
+ stripeCheckoutSessionId: "cs_1",
+ });
+ expect(mocks.provisionCloudServer).toHaveBeenCalledWith(
+ expect.objectContaining({
+ cloudServerId: "cs-1",
+ zone: "nyc1",
+ hostname: "acme-x7k2p9",
+ }),
+ );
+ });
+
+ it("provisions once when Stripe delivers the webhook twice", async () => {
+ mocks.createCloudServer.mockResolvedValue(undefined);
+
+ await handleCloudServerEvent(stripe, checkoutCompleted(order));
+
+ expect(mocks.provisionCloudServer).not.toHaveBeenCalled();
+ expect(refund).not.toHaveBeenCalled();
+ });
+
+ it("refunds a payment whose organization no longer exists", async () => {
+ mocks.organization = undefined;
+
+ await handleCloudServerEvent(stripe, checkoutCompleted(order));
+
+ expect(mocks.createCloudServer).not.toHaveBeenCalled();
+ expect(cancel).toHaveBeenCalledWith("sub_1", expect.anything());
+ expect(refund).toHaveBeenCalledWith({ payment_intent: "pi_1" });
+ });
+
+ it("leaves other checkouts to the plan logic", async () => {
+ const handled = await handleCloudServerEvent(
+ stripe,
+ checkoutCompleted({ adminId: "user-1" }),
+ );
+
+ expect(handled).toBe(false);
+ expect(mocks.createCloudServer).not.toHaveBeenCalled();
+ });
+});
diff --git a/apps/dokploy/__test__/server/cloud-server-default-vpc.test.ts b/apps/dokploy/__test__/server/cloud-server-default-vpc.test.ts
index ef64713ff..f11e1a148 100644
--- a/apps/dokploy/__test__/server/cloud-server-default-vpc.test.ts
+++ b/apps/dokploy/__test__/server/cloud-server-default-vpc.test.ts
@@ -29,9 +29,7 @@ describe("default VPC of a region", () => {
});
const requests = () =>
- fetchMock.mock.calls.map(
- ([url, options]) => `${options?.method ?? "GET"} ${url}`,
- );
+ fetchMock.mock.calls.map(([request]) => `${request.method} ${request.url}`);
it("finds the default VPC when it sits past the first 200", async () => {
fetchMock
@@ -57,7 +55,7 @@ describe("default VPC of a region", () => {
await ensureDigitalOceanDefaultVpc("tor1");
expect(requests().at(-1)).toMatch(/^POST .*\/vpcs$/);
- expect(JSON.parse(fetchMock.mock.calls.at(-1)?.[1].body)).toMatchObject({
+ expect(await fetchMock.mock.calls.at(-1)?.[0].json()).toMatchObject({
name: "default-tor1",
region: "tor1",
});
diff --git a/apps/dokploy/__test__/server/cloud-server-extra-bandwidth.test.ts b/apps/dokploy/__test__/server/cloud-server-extra-bandwidth.test.ts
new file mode 100644
index 000000000..5ad5babc1
--- /dev/null
+++ b/apps/dokploy/__test__/server/cloud-server-extra-bandwidth.test.ts
@@ -0,0 +1,108 @@
+import type Stripe from "stripe";
+import { beforeEach, describe, expect, it, vi } from "vitest";
+
+const mocks = vi.hoisted(() => ({
+ record: null as Record | null,
+ updateCloudServer: vi.fn(),
+ createInvoiceItem: vi.fn(),
+}));
+
+vi.mock("@dokploy/server", () => ({}));
+vi.mock("@dokploy/server/services/cloud-server", () => ({
+ findCloudServerBySubscriptionId: async () => mocks.record,
+ updateCloudServer: mocks.updateCloudServer,
+}));
+vi.mock("@/server/utils/billing", () => ({
+ CLOUD_SERVER_METADATA_TYPE: "cloud_server",
+}));
+vi.mock("@/server/utils/stripe", () => ({}));
+
+const { handleCloudServerEvent } = await import(
+ "@/server/utils/cloud-server-billing"
+);
+
+const GB = 1024 ** 3;
+const stripe = {
+ invoiceItems: { create: mocks.createInvoiceItem },
+} as unknown as Stripe;
+
+const invoiceCreated = (overrides: Record = {}) =>
+ ({
+ type: "invoice.created",
+ data: {
+ object: {
+ id: "in_1",
+ customer: "cus_1",
+ subscription: "sub_1",
+ currency: "usd",
+ billing_reason: "subscription_cycle",
+ subscription_details: {
+ metadata: { type: "cloud_server", cloudServerId: "cs-1" },
+ },
+ ...overrides,
+ },
+ },
+ }) as unknown as Stripe.Event;
+
+describe("cloud server extra bandwidth", () => {
+ beforeEach(() => {
+ mocks.updateCloudServer.mockReset();
+ mocks.createInvoiceItem.mockReset();
+ mocks.record = {
+ cloudServerId: "cs-1",
+ plan: "starter",
+ bandwidthBytes: 4120 * GB,
+ };
+ });
+
+ it("adds the traffic over the plan allowance to the renewal invoice", async () => {
+ const handled = await handleCloudServerEvent(stripe, invoiceCreated());
+
+ expect(handled).toBe(true);
+ expect(mocks.createInvoiceItem).toHaveBeenCalledWith(
+ {
+ customer: "cus_1",
+ invoice: "in_1",
+ amount: 360,
+ currency: "usd",
+ description: "Extra bandwidth: 120 GB",
+ },
+ { idempotencyKey: "cloud-server-bandwidth-in_1" },
+ );
+ expect(mocks.updateCloudServer).toHaveBeenCalledWith("cs-1", {
+ bandwidthBytes: 0,
+ });
+ });
+
+ it("starts a new period without a charge when the allowance was enough", async () => {
+ mocks.record = { ...mocks.record, bandwidthBytes: 4000 * GB };
+
+ await handleCloudServerEvent(stripe, invoiceCreated());
+
+ expect(mocks.createInvoiceItem).not.toHaveBeenCalled();
+ expect(mocks.updateCloudServer).toHaveBeenCalledWith("cs-1", {
+ bandwidthBytes: 0,
+ });
+ });
+
+ it("leaves upgrade invoices alone", async () => {
+ const handled = await handleCloudServerEvent(
+ stripe,
+ invoiceCreated({ billing_reason: "subscription_update" }),
+ );
+
+ expect(handled).toBe(true);
+ expect(mocks.createInvoiceItem).not.toHaveBeenCalled();
+ expect(mocks.updateCloudServer).not.toHaveBeenCalled();
+ });
+
+ it("ignores invoices of other subscriptions", async () => {
+ const handled = await handleCloudServerEvent(
+ stripe,
+ invoiceCreated({ subscription_details: { metadata: {} } }),
+ );
+
+ expect(handled).toBe(false);
+ expect(mocks.createInvoiceItem).not.toHaveBeenCalled();
+ });
+});
diff --git a/apps/dokploy/__test__/server/cloud-server-firewall.test.ts b/apps/dokploy/__test__/server/cloud-server-firewall.test.ts
index 31b195dcb..5c45ac846 100644
--- a/apps/dokploy/__test__/server/cloud-server-firewall.test.ts
+++ b/apps/dokploy/__test__/server/cloud-server-firewall.test.ts
@@ -6,7 +6,6 @@ const ANYWHERE = ["0.0.0.0/0", "::/0"];
const mocks = vi.hoisted(() => ({
record: {} as Record,
updates: [] as Record[],
- calls: [] as string[],
doFirewallRules: [] as unknown[],
createFirewall: vi.fn(),
updateFirewall: vi.fn(),
@@ -14,6 +13,7 @@ const mocks = vi.hoisted(() => ({
createVpc: vi.fn(),
dropletCount: vi.fn(),
getVpcRange: vi.fn(),
+ deleteSshKey: vi.fn(),
}));
vi.mock("@dokploy/server/db", () => {
@@ -46,7 +46,7 @@ vi.mock("@dokploy/server/utils/digitalocean", () => ({
createDigitalOceanVpc: mocks.createVpc,
getDigitalOceanVpcRange: mocks.getVpcRange,
createDigitalOceanSshKey: vi.fn(async () => 1),
- deleteDigitalOceanSshKey: vi.fn(async () => undefined),
+ deleteDigitalOceanSshKey: mocks.deleteSshKey,
createDigitalOceanFirewall: mocks.createFirewall,
updateDigitalOceanFirewall: mocks.updateFirewall,
createDigitalOceanDroplet: mocks.createDroplet,
@@ -71,6 +71,7 @@ vi.mock("@dokploy/server/utils/filesystem/ssh", () => ({
const {
assertCloudServerCapacity,
+ buildCloudServerHostname,
getCloudServerFirewall,
provisionCloudServer,
updateCloudServerFirewall,
@@ -85,7 +86,7 @@ const readyRecord = (overrides: Record = {}) =>
status: "ready",
hostname: "dokploy-org1-abc",
providerVmId: "123",
- providerNetworkId: "vpc-1",
+ providerVpcId: "vpc-1",
providerFirewallId: "fw-1",
serverId: "server-1",
...overrides,
@@ -111,37 +112,34 @@ const sentRules = (mock: typeof mocks.createFirewall) =>
describe("cloud server firewall", () => {
beforeEach(() => {
vi.clearAllMocks();
- mocks.record = { providerNetworkId: "vpc-1" };
+ mocks.record = { providerVpcId: "vpc-1" };
mocks.updates = [];
- mocks.calls = [];
mocks.doFirewallRules = [];
mocks.getVpcRange.mockResolvedValue(VPC_RANGE);
mocks.createVpc.mockResolvedValue("vpc-new");
- mocks.createFirewall.mockImplementation(async () => {
- mocks.calls.push("firewall");
- return "fw-new";
- });
- mocks.createDroplet.mockImplementation(async () => {
- mocks.calls.push("droplet");
- throw new Error("droplet limit reached");
- });
+ mocks.createFirewall.mockResolvedValue("fw-new");
+ mocks.createDroplet.mockRejectedValue(new Error("droplet limit reached"));
+ mocks.deleteSshKey.mockResolvedValue(undefined);
});
- it("creates the firewall before the droplet and keeps its id when the droplet fails", async () => {
+ it("keeps trying to delete the temporary DO ssh key while DigitalOcean answers 404", async () => {
+ vi.useFakeTimers();
+ mocks.deleteSshKey
+ .mockRejectedValueOnce(new Error("404"))
+ .mockRejectedValueOnce(new Error("404"));
+
+ await expect(provision()).rejects.toThrow("droplet limit reached");
+ await vi.advanceTimersByTimeAsync(20_000);
+
+ expect(mocks.deleteSshKey).toHaveBeenCalledTimes(3);
+ vi.useRealTimers();
+ });
+
+ it("delivers a new server without a firewall", async () => {
await expect(provision()).rejects.toThrow("droplet limit reached");
- expect(mocks.calls).toEqual(["firewall", "droplet"]);
- expect(mocks.updates).toContainEqual(
- expect.objectContaining({ providerFirewallId: "fw-new" }),
- );
- expect(mocks.createFirewall.mock.calls[0]?.[0].tag).toBe("dokploy-cs:cs-1");
- });
-
- it("never creates the droplet when the firewall can't be created", async () => {
- mocks.createFirewall.mockRejectedValue(new Error("firewall quota"));
-
- await expect(provision()).rejects.toThrow("firewall quota");
- expect(mocks.createDroplet).not.toHaveBeenCalled();
+ expect(mocks.createDroplet).toHaveBeenCalled();
+ expect(mocks.createFirewall).not.toHaveBeenCalled();
});
it("names the VPC after the whole organization id, swapping the characters DO rejects", async () => {
@@ -150,7 +148,7 @@ describe("cloud server firewall", () => {
await provision("N7cQ83ecdyLqC-wO_kkdm").catch(() => undefined);
expect(mocks.createVpc.mock.calls[0]?.[0].name).toMatch(
- /^dokploy-N7cQ83ecdyLqC-wO\.kkdm-sfo2-[a-z0-9]{4}$/,
+ /^dokploy-N7cQ83ecdyLqC-wO-kkdm-sfo2-[a-z0-9]{4}$/,
);
});
@@ -161,8 +159,12 @@ describe("cloud server firewall", () => {
expect(mocks.createDroplet.mock.calls[0]?.[0].vpcId).toBe("vpc-1");
});
- it("opens only ssh, monitoring, web and the organization's own VPC by default", async () => {
- await provision().catch(() => undefined);
+ it("opens only ssh, monitoring, web and the organization's own VPC when the customer enables it", async () => {
+ const record = readyRecord({ providerFirewallId: null });
+ mocks.record = record as unknown as Record;
+
+ const { rules } = await getCloudServerFirewall(record);
+ await updateCloudServerFirewall(record, rules);
expect(sentRules(mocks.createFirewall)).toEqual([
{ protocol: "tcp", ports: "22", sources: { addresses: ANYWHERE } },
@@ -179,8 +181,13 @@ describe("cloud server firewall", () => {
},
{ protocol: "tcp", ports: "80", sources: { addresses: ANYWHERE } },
{ protocol: "tcp", ports: "443", sources: { addresses: ANYWHERE } },
- { protocol: "icmp", sources: { addresses: ANYWHERE } },
+ {
+ protocol: "icmp",
+ ports: "0",
+ sources: { addresses: ANYWHERE },
+ },
]);
+ expect(mocks.createFirewall.mock.calls[0]?.[0].tag).toBe("dokploy-cs:cs-1");
});
it("lists the private network as a locked rule and hides it from the editable ones", async () => {
@@ -256,7 +263,7 @@ describe("cloud server firewall", () => {
it("skips the private network rule for a server without a VPC", async () => {
const firewall = await getCloudServerFirewall(
- readyRecord({ providerNetworkId: null }),
+ readyRecord({ providerVpcId: null }),
);
expect(mocks.getVpcRange).not.toHaveBeenCalled();
@@ -269,6 +276,16 @@ describe("cloud server firewall", () => {
).rejects.toThrow("Server is not ready");
});
+ describe("hostname", () => {
+ it("only uses characters DO accepts in firewall and droplet names", () => {
+ for (let i = 0; i < 2000; i++) {
+ expect(buildCloudServerHostname("N7cQ83ecdyLqC-wO_kkdm")).toMatch(
+ /^dokploy-N7cQ83ecdyLqC-wO-kkdm-[a-z0-9]{6}$/,
+ );
+ }
+ });
+ });
+
describe("capacity", () => {
afterEach(() => {
vi.unstubAllEnvs();
diff --git a/apps/dokploy/__test__/server/cloud-server-nonpayment.test.ts b/apps/dokploy/__test__/server/cloud-server-nonpayment.test.ts
new file mode 100644
index 000000000..ee9c26b96
--- /dev/null
+++ b/apps/dokploy/__test__/server/cloud-server-nonpayment.test.ts
@@ -0,0 +1,184 @@
+import Stripe from "stripe";
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+
+const mocks = vi.hoisted(() => ({
+ suspended: [] as Record[],
+ found: null as Record | null,
+ measured: [] as { previous: unknown; current: unknown }[],
+ updateCloudServer: vi.fn(),
+ terminateCloudServer: vi.fn(),
+ resumeCloudServer: vi.fn(),
+ sendDeleted: vi.fn(),
+ sendReactivated: vi.fn(),
+ sendBandwidth: vi.fn(),
+}));
+
+vi.mock("@dokploy/server", () => ({}));
+vi.mock("@dokploy/server/services/cloud-server", () => ({
+ findSuspendedCloudServersBefore: async () => mocks.suspended,
+ findCloudServerBySubscriptionId: async () => mocks.found,
+ recordCloudServersBandwidth: async () => mocks.measured,
+ updateCloudServer: mocks.updateCloudServer,
+ terminateCloudServer: mocks.terminateCloudServer,
+ resumeCloudServer: mocks.resumeCloudServer,
+}));
+vi.mock("@/server/utils/cloud-server-notifications", () => ({
+ sendCloudServerDeletedEmail: mocks.sendDeleted,
+ sendCloudServerReactivatedEmail: mocks.sendReactivated,
+ sendCloudServerBandwidthEmail: mocks.sendBandwidth,
+}));
+vi.mock("@/server/utils/billing", () => ({
+ getStripeClient: () => stripe,
+ CLOUD_SERVER_METADATA_TYPE: "cloud_server",
+ isCloudServerSubscription: () => true,
+}));
+vi.mock("@/server/utils/stripe", () => ({}));
+
+const {
+ handleCloudServerEvent,
+ recordBandwidthAndWarn,
+ removeUnpaidCloudServers,
+} = await import("@/server/utils/cloud-server-billing");
+
+const NOW = "2026-11-24T10:00:00.000Z";
+const GB = 1024 ** 3;
+const retrieve = vi.fn();
+const update = vi.fn();
+const cancel = vi.fn();
+const pay = vi.fn();
+const stripe = {
+ subscriptions: { retrieve, update, cancel },
+ invoices: { pay },
+} as unknown as Stripe;
+
+const server = (overrides: Record = {}) => ({
+ cloudServerId: "cs-1",
+ status: "suspended",
+ plan: "hobby",
+ stripeSubscriptionId: "sub_1",
+ providerVmId: "101",
+ suspendedAt: "2026-11-22T09:00:00.000Z",
+ bandwidthBytes: 0,
+ ...overrides,
+});
+
+const unpaid = (customerCard: string | null = null) => ({
+ id: "sub_1",
+ status: "past_due",
+ latest_invoice: { id: "in_1", status: "open" },
+ customer: { invoice_settings: { default_payment_method: customerCard } },
+});
+
+describe("cloud server non-payment", () => {
+ beforeEach(() => {
+ vi.useFakeTimers();
+ vi.setSystemTime(new Date(NOW));
+ for (const mock of [retrieve, update, cancel, pay]) {
+ mock.mockReset();
+ }
+ for (const mock of Object.values(mocks)) {
+ if (typeof mock === "function") mock.mockReset();
+ }
+ mocks.suspended = [server()];
+ mocks.found = null;
+ mocks.measured = [];
+ mocks.sendDeleted.mockResolvedValue(undefined);
+ mocks.sendReactivated.mockResolvedValue(undefined);
+ mocks.sendBandwidth.mockResolvedValue(undefined);
+ cancel.mockResolvedValue({});
+ });
+
+ afterEach(() => {
+ vi.useRealTimers();
+ });
+
+ it("deletes the server and tells the customer when the last charge is declined", async () => {
+ retrieve.mockResolvedValue(unpaid());
+ pay.mockRejectedValue(
+ new Stripe.errors.StripeCardError({
+ type: "card_error",
+ message: "Your card was declined.",
+ }),
+ );
+
+ await removeUnpaidCloudServers();
+
+ expect(pay).toHaveBeenCalledWith("in_1");
+ expect(cancel).toHaveBeenCalledWith("sub_1", expect.anything());
+ expect(mocks.terminateCloudServer).toHaveBeenCalledWith("cs-1");
+ expect(mocks.sendDeleted).toHaveBeenCalledWith(mocks.suspended[0]);
+ });
+
+ it("keeps the server when the last charge goes through with the card the customer added", async () => {
+ retrieve.mockResolvedValue(unpaid("pm_new"));
+ pay.mockResolvedValue({ status: "paid" });
+
+ await removeUnpaidCloudServers();
+
+ expect(update).toHaveBeenCalledWith("sub_1", {
+ default_payment_method: "pm_new",
+ });
+ expect(mocks.terminateCloudServer).not.toHaveBeenCalled();
+ expect(cancel).not.toHaveBeenCalled();
+ });
+
+ it("resumes a paid server whose webhook was missed instead of deleting it", async () => {
+ retrieve.mockResolvedValue({ ...unpaid(), status: "active" });
+
+ await removeUnpaidCloudServers();
+
+ expect(pay).not.toHaveBeenCalled();
+ expect(mocks.resumeCloudServer).toHaveBeenCalledWith(mocks.suspended[0]);
+ expect(mocks.sendReactivated).toHaveBeenCalled();
+ expect(mocks.terminateCloudServer).not.toHaveBeenCalled();
+ });
+
+ it("does not delete anything while Stripe is failing", async () => {
+ retrieve.mockResolvedValue(unpaid());
+ pay.mockRejectedValue(new Error("Stripe is down"));
+
+ await removeUnpaidCloudServers();
+
+ expect(mocks.terminateCloudServer).not.toHaveBeenCalled();
+ expect(cancel).not.toHaveBeenCalled();
+ });
+
+ it("powers the server back on and emails when the payment arrives", async () => {
+ mocks.found = server();
+
+ await handleCloudServerEvent(stripe, {
+ type: "customer.subscription.updated",
+ data: { object: { id: "sub_1", status: "active" } },
+ } as unknown as Stripe.Event);
+
+ expect(mocks.resumeCloudServer).toHaveBeenCalledWith(mocks.found);
+ expect(mocks.sendReactivated).toHaveBeenCalledWith(mocks.found);
+ });
+
+ it("does not email on updates of a server that was never suspended", async () => {
+ mocks.found = server({ status: "ready" });
+
+ await handleCloudServerEvent(stripe, {
+ type: "customer.subscription.updated",
+ data: { object: { id: "sub_1", status: "active" } },
+ } as unknown as Stripe.Event);
+
+ expect(mocks.resumeCloudServer).not.toHaveBeenCalled();
+ expect(mocks.sendReactivated).not.toHaveBeenCalled();
+ });
+
+ it("warns once when the transfer crosses 80% and again at 100%", async () => {
+ const at = (gb: number) => server({ bandwidthBytes: gb * GB });
+ mocks.measured = [{ previous: at(1500), current: at(1650) }];
+ await recordBandwidthAndWarn();
+ expect(mocks.sendBandwidth).toHaveBeenLastCalledWith(at(1650), 80, 2);
+
+ mocks.measured = [{ previous: at(1650), current: at(1900) }];
+ await recordBandwidthAndWarn();
+ expect(mocks.sendBandwidth).toHaveBeenCalledTimes(1);
+
+ mocks.measured = [{ previous: at(1900), current: at(2100) }];
+ await recordBandwidthAndWarn();
+ expect(mocks.sendBandwidth).toHaveBeenLastCalledWith(at(2100), 100, 2);
+ });
+});
diff --git a/apps/dokploy/__test__/server/cloud-server-payment-reminders.test.ts b/apps/dokploy/__test__/server/cloud-server-payment-reminders.test.ts
new file mode 100644
index 000000000..ba03f994a
--- /dev/null
+++ b/apps/dokploy/__test__/server/cloud-server-payment-reminders.test.ts
@@ -0,0 +1,187 @@
+import type Stripe from "stripe";
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+
+const mocks = vi.hoisted(() => ({
+ ready: [] as Record[],
+ found: null as Record | null,
+ claim: vi.fn(),
+ updateCloudServer: vi.fn(),
+ suspendCloudServer: vi.fn(),
+ sendRenewal: vi.fn(),
+ sendFailed: vi.fn(),
+ retrieve: vi.fn(),
+}));
+
+vi.mock("@dokploy/server", () => ({}));
+vi.mock("@dokploy/server/services/cloud-server", () => ({
+ findReadyCloudServers: async () => mocks.ready,
+ findCloudServerBySubscriptionId: async () => mocks.found,
+ claimCloudServerPaymentReminder: mocks.claim,
+ updateCloudServer: mocks.updateCloudServer,
+ suspendCloudServer: mocks.suspendCloudServer,
+}));
+vi.mock("@/server/utils/cloud-server-notifications", () => ({
+ sendCloudServerRenewalEmail: mocks.sendRenewal,
+ sendCloudServerPaymentFailedEmail: mocks.sendFailed,
+}));
+vi.mock("@/server/utils/billing", () => ({
+ getStripeClient: () => stripe,
+ CLOUD_SERVER_METADATA_TYPE: "cloud_server",
+ isCloudServerSubscription: () => true,
+}));
+vi.mock("@/server/utils/stripe", () => ({}));
+
+const { handleCloudServerEvent, sendCloudServerPaymentReminders } =
+ await import("@/server/utils/cloud-server-billing");
+
+const NOW = "2026-11-24T10:00:00.000Z";
+const stripe = {
+ subscriptions: { retrieve: mocks.retrieve },
+} as unknown as Stripe;
+
+const server = (overrides: Record = {}) => ({
+ cloudServerId: "cs-1",
+ status: "ready",
+ stripeSubscriptionId: "sub_1",
+ suspendedAt: null,
+ paymentReminderAt: null,
+ ...overrides,
+});
+
+const subscription = (
+ renewsAt: string,
+ card: { exp_month: number; exp_year: number } | null,
+) => ({
+ status: "active",
+ cancel_at_period_end: false,
+ current_period_end: Date.parse(renewsAt) / 1000,
+ default_payment_method: card && { card },
+ customer: { invoice_settings: { default_payment_method: null } },
+});
+
+describe("cloud server payment reminders", () => {
+ beforeEach(() => {
+ vi.useFakeTimers();
+ vi.setSystemTime(new Date(NOW));
+ for (const mock of Object.values(mocks)) {
+ if (typeof mock === "function") mock.mockReset();
+ }
+ mocks.ready = [server()];
+ mocks.found = null;
+ mocks.claim.mockResolvedValue(true);
+ });
+
+ afterEach(() => {
+ vi.useRealTimers();
+ });
+
+ it("warns 7 days before the renewal when the card expires first", async () => {
+ mocks.retrieve.mockResolvedValue(
+ subscription("2026-12-01T09:00:00.000Z", {
+ exp_month: 11,
+ exp_year: 2026,
+ }),
+ );
+
+ await sendCloudServerPaymentReminders();
+
+ expect(mocks.claim).toHaveBeenCalledWith(
+ "cs-1",
+ new Date("2026-11-24T09:00:00.000Z"),
+ );
+ expect(mocks.sendRenewal).toHaveBeenCalledWith(
+ mocks.ready[0],
+ new Date("2026-12-01T09:00:00.000Z"),
+ );
+ });
+
+ it("moves to the 3 and 1 day steps as the renewal gets closer", async () => {
+ mocks.retrieve.mockResolvedValue(
+ subscription("2026-11-26T12:00:00.000Z", null),
+ );
+ await sendCloudServerPaymentReminders();
+ expect(mocks.claim).toHaveBeenLastCalledWith(
+ "cs-1",
+ new Date("2026-11-23T12:00:00.000Z"),
+ );
+
+ mocks.retrieve.mockResolvedValue(
+ subscription("2026-11-25T08:00:00.000Z", null),
+ );
+ await sendCloudServerPaymentReminders();
+ expect(mocks.claim).toHaveBeenLastCalledWith(
+ "cs-1",
+ new Date("2026-11-24T08:00:00.000Z"),
+ );
+ });
+
+ it("stays quiet when the card is still valid on the renewal date", async () => {
+ mocks.retrieve.mockResolvedValue(
+ subscription("2026-11-30T23:00:00.000Z", {
+ exp_month: 11,
+ exp_year: 2026,
+ }),
+ );
+
+ await sendCloudServerPaymentReminders();
+
+ expect(mocks.claim).not.toHaveBeenCalled();
+ expect(mocks.sendRenewal).not.toHaveBeenCalled();
+ });
+
+ it("stays quiet more than 7 days before the renewal", async () => {
+ mocks.retrieve.mockResolvedValue(
+ subscription("2026-12-02T10:00:00.000Z", null),
+ );
+
+ await sendCloudServerPaymentReminders();
+
+ expect(mocks.claim).not.toHaveBeenCalled();
+ });
+
+ it("does not send a step another instance already claimed", async () => {
+ mocks.retrieve.mockResolvedValue(
+ subscription("2026-11-27T10:00:00.000Z", null),
+ );
+ mocks.claim.mockResolvedValue(false);
+
+ await sendCloudServerPaymentReminders();
+
+ expect(mocks.sendRenewal).not.toHaveBeenCalled();
+ });
+
+ it("releases the step when the email could not be sent", async () => {
+ mocks.ready = [server({ paymentReminderAt: "2026-11-17T02:00:00.000Z" })];
+ mocks.retrieve.mockResolvedValue(
+ subscription("2026-11-27T10:00:00.000Z", null),
+ );
+ mocks.sendRenewal.mockRejectedValue(new Error("smtp down"));
+
+ await sendCloudServerPaymentReminders();
+
+ expect(mocks.updateCloudServer).toHaveBeenCalledWith("cs-1", {
+ paymentReminderAt: "2026-11-17T02:00:00.000Z",
+ });
+ });
+
+ it("emails the day the payment fails with the deletion date, once", async () => {
+ const pastDue = {
+ type: "customer.subscription.updated",
+ data: { object: { id: "sub_1", status: "past_due" } },
+ } as unknown as Stripe.Event;
+ mocks.sendFailed.mockResolvedValue(undefined);
+
+ mocks.found = server();
+ await handleCloudServerEvent(stripe, pastDue);
+ expect(mocks.suspendCloudServer).toHaveBeenCalledTimes(1);
+ expect(mocks.sendFailed).toHaveBeenCalledWith(
+ mocks.found,
+ new Date("2026-11-26T10:00:00.000Z"),
+ );
+
+ mocks.found = server({ status: "suspended" });
+ await handleCloudServerEvent(stripe, pastDue);
+ expect(mocks.suspendCloudServer).toHaveBeenCalledTimes(1);
+ expect(mocks.sendFailed).toHaveBeenCalledTimes(1);
+ });
+});
diff --git a/apps/dokploy/__test__/server/cloud-server-project.test.ts b/apps/dokploy/__test__/server/cloud-server-project.test.ts
index 056035685..e038f443a 100644
--- a/apps/dokploy/__test__/server/cloud-server-project.test.ts
+++ b/apps/dokploy/__test__/server/cloud-server-project.test.ts
@@ -47,10 +47,10 @@ describe("droplet project", () => {
await createDigitalOceanDroplet(params);
- const [url, options] = fetchMock.mock.calls[1] ?? [];
- expect(url).toMatch(/\/projects\/project-1\/resources$/);
- expect(options.method).toBe("POST");
- expect(JSON.parse(options.body)).toEqual({
+ const request: Request = fetchMock.mock.calls[1]?.[0];
+ expect(request.url).toMatch(/\/projects\/project-1\/resources$/);
+ expect(request.method).toBe("POST");
+ expect(await request.json()).toEqual({
resources: ["do:droplet:4242"],
});
});
diff --git a/apps/dokploy/__test__/server/cloud-server-usage.test.ts b/apps/dokploy/__test__/server/cloud-server-usage.test.ts
new file mode 100644
index 000000000..c44e9a47b
--- /dev/null
+++ b/apps/dokploy/__test__/server/cloud-server-usage.test.ts
@@ -0,0 +1,133 @@
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+
+const mocks = vi.hoisted(() => ({
+ servers: [] as Record[],
+ updates: [] as Record[],
+}));
+
+vi.mock("@dokploy/server/db", () => ({
+ db: {
+ query: { cloudServer: { findMany: async () => mocks.servers } },
+ update: () => ({
+ set: (values: Record) => {
+ mocks.updates.push(values);
+ return { where: () => ({ returning: async () => [values] }) };
+ },
+ }),
+ },
+}));
+
+vi.mock("@dokploy/server/services/server", () => ({}));
+vi.mock("@dokploy/server/services/ssh-key", () => ({}));
+vi.mock("@dokploy/server/services/deployment", () => ({}));
+vi.mock("@dokploy/server/setup/server-setup", () => ({}));
+vi.mock("@dokploy/server/utils/filesystem/ssh", () => ({}));
+vi.mock("@dokploy/server/utils/process/execAsync", () => ({}));
+
+const { recordCloudServersBandwidth } = await import(
+ "@dokploy/server/services/cloud-server"
+);
+
+const NOW = "2026-11-24T10:00:00.000Z";
+const HOUR_AT_8_MBPS = 3_600_000_000;
+
+const oneHourAt8Mbps = (request: Request) => {
+ const start = Number(new URL(request.url).searchParams.get("start"));
+ return new Response(
+ JSON.stringify({
+ data: {
+ result: [
+ {
+ values: [
+ [start, "8"],
+ [start + 3600, "8"],
+ ],
+ },
+ ],
+ },
+ }),
+ );
+};
+
+const server = (overrides: Record = {}) => ({
+ cloudServerId: "cs-1",
+ providerVmId: "123",
+ createdAt: "2026-11-21T15:00:00.000Z",
+ status: "ready",
+ bandwidthBytes: 0,
+ bandwidthMeasuredAt: null,
+ ...overrides,
+});
+
+describe("cloud server bandwidth", () => {
+ const fetchMock = vi.fn();
+
+ const requestedRange = (call: number) => {
+ const { searchParams } = new URL(fetchMock.mock.calls[call]?.[0].url);
+ return Object.fromEntries(searchParams);
+ };
+
+ beforeEach(() => {
+ vi.useFakeTimers();
+ vi.setSystemTime(new Date(NOW));
+ vi.stubEnv("DIGITALOCEAN_TOKEN", "token");
+ vi.stubGlobal("fetch", fetchMock);
+ vi.spyOn(console, "error").mockImplementation(() => {});
+ fetchMock.mockReset();
+ fetchMock.mockImplementation(async (request: Request) =>
+ oneHourAt8Mbps(request),
+ );
+ mocks.updates = [];
+ });
+
+ afterEach(() => {
+ vi.useRealTimers();
+ vi.unstubAllEnvs();
+ vi.unstubAllGlobals();
+ vi.restoreAllMocks();
+ });
+
+ it("measures a new server from the moment it was created", async () => {
+ mocks.servers = [server()];
+
+ await recordCloudServersBandwidth();
+
+ expect(requestedRange(0)).toEqual({
+ host_id: "123",
+ interface: "public",
+ direction: "outbound",
+ start: String(Date.parse("2026-11-21T15:00:00Z") / 1000),
+ end: String(Date.parse(NOW) / 1000),
+ });
+ expect(mocks.updates).toEqual([
+ { bandwidthBytes: HOUR_AT_8_MBPS, bandwidthMeasuredAt: NOW },
+ ]);
+ });
+
+ it("adds only the traffic since the last measurement", async () => {
+ mocks.servers = [
+ server({
+ bandwidthBytes: 500,
+ bandwidthMeasuredAt: "2026-11-23T10:00:00.000Z",
+ }),
+ ];
+
+ await recordCloudServersBandwidth();
+
+ expect(requestedRange(0).start).toBe(
+ String(Date.parse("2026-11-23T10:00:00Z") / 1000),
+ );
+ expect(mocks.updates).toEqual([
+ { bandwidthBytes: 500 + HOUR_AT_8_MBPS, bandwidthMeasuredAt: NOW },
+ ]);
+ });
+
+ it("keeps going with the other servers when DO fails for one", async () => {
+ mocks.servers = [server(), server({ cloudServerId: "cs-2" })];
+ fetchMock.mockRejectedValueOnce(new Error("network down"));
+
+ await recordCloudServersBandwidth();
+
+ expect(mocks.updates).toHaveLength(1);
+ });
+});
diff --git a/apps/dokploy/components/dashboard/settings/billing/show-cloud-servers.tsx b/apps/dokploy/components/dashboard/settings/billing/show-cloud-servers.tsx
index 3c6b520d0..e2b558573 100644
--- a/apps/dokploy/components/dashboard/settings/billing/show-cloud-servers.tsx
+++ b/apps/dokploy/components/dashboard/settings/billing/show-cloud-servers.tsx
@@ -4,15 +4,16 @@ import { AU, CA, DE, GB, IN, NL, SG, US } from "country-flag-icons/react/3x2";
import { addDays, format, formatDistanceToNow } from "date-fns";
import {
AlertCircle,
+ ArrowUpDown,
CheckCircle2,
ChevronRight,
CircleArrowUp,
- Clock,
Copy,
Cpu,
CreditCard,
FileText,
HardDrive,
+ Info,
Loader2,
Lock,
MemoryStick,
@@ -103,11 +104,6 @@ const STATUS_MAP: Record<
variant: "default" | "secondary" | "destructive" | "outline";
}
> = {
- pending: {
- label: "Awaiting payment",
- icon: ,
- variant: "secondary",
- },
provisioning: {
label: "Provisioning",
icon: ,
@@ -178,10 +174,12 @@ function PlanSpecs({
cpus,
memoryGb,
storageGb,
+ transferTb,
}: {
cpus: number;
memoryGb: number;
storageGb: number;
+ transferTb: number;
}) {
const specs = [
{ icon: Cpu, label: `${cpus} vCPU` },
@@ -196,10 +194,27 @@ function PlanSpecs({
{label}
))}
+
+
+ {transferTb} TB transfer
+
+
+
+
+
+ {transferTb} TB of outbound transfer are included each month.
+ Transfer above that is billed at {EXTRA_BANDWIDTH_PRICE} per GB on
+ your next invoice.
+
+
+
);
}
+const SUSPENSION_GRACE_DAYS = 2;
+const EXTRA_BANDWIDTH_PRICE = "$0.03";
+
function formatPrice(priceCents: number) {
return `$${(priceCents / 100).toFixed(2)}/mo`;
}
@@ -300,10 +315,14 @@ function OrderServerDialog() {
cpus={p.cpus}
memoryGb={p.memoryGb}
storageGb={p.storageGb}
+ transferTb={p.transferTb}
/>
))}
+
+ None of these fit your workload?
+
{/* Zone selector grouped by continent */}
@@ -378,6 +397,13 @@ function OrderServerDialog() {
)}
+
+ If a renewal payment fails, the server is powered off and
+ deleted after {SUSPENSION_GRACE_DAYS} days. Deleting a server
+ adds its unused time to your balance as credit instead of a
+ refund, and the first hour is always charged.
+
+
+ Contact us
+
+ );
+}
+
function DetailItem({
label,
value,
@@ -924,7 +960,7 @@ function UpgradeServerDialog({ cloudServerId }: { cloudServerId: string }) {
) : !options?.length ? (
This server is already on the largest plan available in its
- location.
+ location. Need something bigger?
) : (
@@ -951,10 +987,14 @@ function UpgradeServerDialog({ cloudServerId }: { cloudServerId: string }) {
cpus={p.cpus}
memoryGb={p.memoryGb}
storageGb={p.storageGb}
+ transferTb={p.transferTb}
/>
))}
+
+ None of these fit your workload?
+
{selectedPlan && (
@@ -1070,7 +1110,9 @@ function TerminateServerDialog({
Terminate Server
This will permanently destroy the server and all data on it. This
- action cannot be undone.
+ action cannot be undone. The unused time of the period you already
+ paid is added to your balance as credit and discounted from your
+ next invoice.
{isLoading ? (
@@ -1282,27 +1324,11 @@ function CloudServerRow({
Open the server terminal
)}
- {s.status === "pending" ? (
-
-
-
-
-
-
- Cancel order
-
- ) : (
-
- )}
+
@@ -1316,6 +1342,16 @@ function CloudServerRow({
>
)}
+ {plan && (
+
+ )}
+
{
const router = useRouter();
const utils = api.useUtils();
+ // The server only shows up once Stripe's webhook lands, which can be after the redirect back from checkout.
+ const [justPaid, setJustPaid] = useState(false);
+
const { data: servers, isLoading } = api.cloudServer.list.useQuery(
undefined,
{
refetchInterval: (query) =>
+ justPaid ||
query.state.data?.some((s) => IN_PROGRESS_STATUSES.includes(s.status))
? 5000
: false,
@@ -1386,11 +1426,13 @@ export const ShowCloudServers = () => {
const { data: plans } = api.cloudServer.getPlans.useQuery(undefined, {
enabled: !!servers?.length,
});
+ const { data: creditCents } = api.cloudServer.creditBalance.useQuery();
useEffect(() => {
const { checkout, ...query } = router.query;
if (!checkout) return;
if (checkout === "success") {
+ setJustPaid(true);
toast.success(
"Payment received! Your server is being provisioned, this takes ~5 minutes.",
);
@@ -1418,11 +1460,10 @@ export const ShowCloudServers = () => {
});
const deleteServer = api.cloudServer.delete.useMutation({
- onSuccess: ({ cancelledOrder }) => {
- toast.success(
- cancelledOrder ? "Order cancelled." : "Server is being terminated.",
- );
+ onSuccess: () => {
+ toast.success("Server is being terminated.");
utils.cloudServer.list.invalidate();
+ utils.cloudServer.creditBalance.invalidate();
},
onError: (err) => toast.error(err.message),
});
@@ -1471,6 +1512,12 @@ export const ShowCloudServers = () => {
Servers provided by Dokploy Cloud, billed separately from
your plan
+ {!!creditCents && (
+
+ Credit balance: ${(creditCents / 100).toFixed(2)}, applied
+ to your next invoice
+
+ )}
diff --git a/apps/dokploy/drizzle/0208_cloud_server_vpc_id.sql b/apps/dokploy/drizzle/0208_cloud_server_vpc_id.sql
new file mode 100644
index 000000000..46797aa68
--- /dev/null
+++ b/apps/dokploy/drizzle/0208_cloud_server_vpc_id.sql
@@ -0,0 +1 @@
+ALTER TABLE "cloud_server" RENAME COLUMN "providerNetworkId" TO "providerVpcId";
\ No newline at end of file
diff --git a/apps/dokploy/drizzle/0209_cloud_server_bandwidth.sql b/apps/dokploy/drizzle/0209_cloud_server_bandwidth.sql
new file mode 100644
index 000000000..4cefdf152
--- /dev/null
+++ b/apps/dokploy/drizzle/0209_cloud_server_bandwidth.sql
@@ -0,0 +1,2 @@
+ALTER TABLE "cloud_server" ADD COLUMN "bandwidthBytes" bigint DEFAULT 0 NOT NULL;--> statement-breakpoint
+ALTER TABLE "cloud_server" ADD COLUMN "bandwidthMeasuredAt" text;
\ No newline at end of file
diff --git a/apps/dokploy/drizzle/0210_cloud_server_payment_reminder.sql b/apps/dokploy/drizzle/0210_cloud_server_payment_reminder.sql
new file mode 100644
index 000000000..37ad87750
--- /dev/null
+++ b/apps/dokploy/drizzle/0210_cloud_server_payment_reminder.sql
@@ -0,0 +1 @@
+ALTER TABLE "cloud_server" ADD COLUMN "paymentReminderAt" text;
\ No newline at end of file
diff --git a/apps/dokploy/drizzle/0211_cloud_server_drop_pending.sql b/apps/dokploy/drizzle/0211_cloud_server_drop_pending.sql
new file mode 100644
index 000000000..fb32490fe
--- /dev/null
+++ b/apps/dokploy/drizzle/0211_cloud_server_drop_pending.sql
@@ -0,0 +1,5 @@
+ALTER TABLE "cloud_server" ALTER COLUMN "status" DROP DEFAULT;--> statement-breakpoint
+ALTER TABLE "cloud_server" ALTER COLUMN "status" SET DATA TYPE text;--> statement-breakpoint
+DROP TYPE "public"."cloudServerStatus";--> statement-breakpoint
+CREATE TYPE "public"."cloudServerStatus" AS ENUM('provisioning', 'configuring', 'ready', 'upgrading', 'error', 'suspended', 'terminating');--> statement-breakpoint
+ALTER TABLE "cloud_server" ALTER COLUMN "status" SET DATA TYPE "public"."cloudServerStatus" USING "status"::"public"."cloudServerStatus";
\ No newline at end of file
diff --git a/apps/dokploy/drizzle/meta/0208_snapshot.json b/apps/dokploy/drizzle/meta/0208_snapshot.json
new file mode 100644
index 000000000..6d1b147a0
--- /dev/null
+++ b/apps/dokploy/drizzle/meta/0208_snapshot.json
@@ -0,0 +1,9821 @@
+{
+ "id": "ef08daca-a3dd-41c4-9f25-b5188eff73f5",
+ "prevId": "a44e26d9-b3cc-48c1-84bb-dd8850d1bb04",
+ "version": "7",
+ "dialect": "postgresql",
+ "tables": {
+ "public.account": {
+ "name": "account",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "account_id": {
+ "name": "account_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "provider_id": {
+ "name": "provider_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "access_token": {
+ "name": "access_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refresh_token": {
+ "name": "refresh_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "id_token": {
+ "name": "id_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "access_token_expires_at": {
+ "name": "access_token_expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refresh_token_expires_at": {
+ "name": "refresh_token_expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "scope": {
+ "name": "scope",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "is2FAEnabled": {
+ "name": "is2FAEnabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "resetPasswordToken": {
+ "name": "resetPasswordToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "resetPasswordExpiresAt": {
+ "name": "resetPasswordExpiresAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "confirmationToken": {
+ "name": "confirmationToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "confirmationExpiresAt": {
+ "name": "confirmationExpiresAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "account_user_id_user_id_fk": {
+ "name": "account_user_id_user_id_fk",
+ "tableFrom": "account",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.apikey": {
+ "name": "apikey",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "start": {
+ "name": "start",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "prefix": {
+ "name": "prefix",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "key": {
+ "name": "key",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "config_id": {
+ "name": "config_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'default'"
+ },
+ "reference_id": {
+ "name": "reference_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "refill_interval": {
+ "name": "refill_interval",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refill_amount": {
+ "name": "refill_amount",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "last_refill_at": {
+ "name": "last_refill_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rate_limit_enabled": {
+ "name": "rate_limit_enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rate_limit_time_window": {
+ "name": "rate_limit_time_window",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rate_limit_max": {
+ "name": "rate_limit_max",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "request_count": {
+ "name": "request_count",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "remaining": {
+ "name": "remaining",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "last_request": {
+ "name": "last_request",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "permissions": {
+ "name": "permissions",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "apikey_reference_id_user_id_fk": {
+ "name": "apikey_reference_id_user_id_fk",
+ "tableFrom": "apikey",
+ "tableTo": "user",
+ "columnsFrom": [
+ "reference_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.invitation": {
+ "name": "invitation",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "email": {
+ "name": "email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "role": {
+ "name": "role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "status": {
+ "name": "status",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "inviter_id": {
+ "name": "inviter_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "team_id": {
+ "name": "team_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "invitation_organization_id_organization_id_fk": {
+ "name": "invitation_organization_id_organization_id_fk",
+ "tableFrom": "invitation",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "invitation_inviter_id_user_id_fk": {
+ "name": "invitation_inviter_id_user_id_fk",
+ "tableFrom": "invitation",
+ "tableTo": "user",
+ "columnsFrom": [
+ "inviter_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.member": {
+ "name": "member",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "role": {
+ "name": "role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "team_id": {
+ "name": "team_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "is_default": {
+ "name": "is_default",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canCreateProjects": {
+ "name": "canCreateProjects",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canAccessToSSHKeys": {
+ "name": "canAccessToSSHKeys",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canCreateServices": {
+ "name": "canCreateServices",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canDeleteProjects": {
+ "name": "canDeleteProjects",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canDeleteServices": {
+ "name": "canDeleteServices",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canAccessToDocker": {
+ "name": "canAccessToDocker",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canAccessToAPI": {
+ "name": "canAccessToAPI",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canAccessToGitProviders": {
+ "name": "canAccessToGitProviders",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canAccessToTraefikFiles": {
+ "name": "canAccessToTraefikFiles",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canDeleteEnvironments": {
+ "name": "canDeleteEnvironments",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canCreateEnvironments": {
+ "name": "canCreateEnvironments",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "accesedProjects": {
+ "name": "accesedProjects",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "accessedEnvironments": {
+ "name": "accessedEnvironments",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "accesedServices": {
+ "name": "accesedServices",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "accessedGitProviders": {
+ "name": "accessedGitProviders",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "accessedServers": {
+ "name": "accessedServers",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "member_organization_id_organization_id_fk": {
+ "name": "member_organization_id_organization_id_fk",
+ "tableFrom": "member",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "member_user_id_user_id_fk": {
+ "name": "member_user_id_user_id_fk",
+ "tableFrom": "member",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.organization": {
+ "name": "organization",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "slug": {
+ "name": "slug",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "logo": {
+ "name": "logo",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "default_role": {
+ "name": "default_role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "owner_id": {
+ "name": "owner_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "organization_owner_id_user_id_fk": {
+ "name": "organization_owner_id_user_id_fk",
+ "tableFrom": "organization",
+ "tableTo": "user",
+ "columnsFrom": [
+ "owner_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "organization_slug_unique": {
+ "name": "organization_slug_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "slug"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.organization_role": {
+ "name": "organization_role",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "role": {
+ "name": "role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "permission": {
+ "name": "permission",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "allowed_domains": {
+ "name": "allowed_domains",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "require_https": {
+ "name": "require_https",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "organizationRole_organizationId_idx": {
+ "name": "organizationRole_organizationId_idx",
+ "columns": [
+ {
+ "expression": "organization_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "organizationRole_role_idx": {
+ "name": "organizationRole_role_idx",
+ "columns": [
+ {
+ "expression": "role",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "organization_role_organization_id_organization_id_fk": {
+ "name": "organization_role_organization_id_organization_id_fk",
+ "tableFrom": "organization_role",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.passkey": {
+ "name": "passkey",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "public_key": {
+ "name": "public_key",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "credential_id": {
+ "name": "credential_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "counter": {
+ "name": "counter",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "device_type": {
+ "name": "device_type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "backed_up": {
+ "name": "backed_up",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "transports": {
+ "name": "transports",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "aaguid": {
+ "name": "aaguid",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "passkey_userId_idx": {
+ "name": "passkey_userId_idx",
+ "columns": [
+ {
+ "expression": "user_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "passkey_credentialID_idx": {
+ "name": "passkey_credentialID_idx",
+ "columns": [
+ {
+ "expression": "credential_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "passkey_user_id_user_id_fk": {
+ "name": "passkey_user_id_user_id_fk",
+ "tableFrom": "passkey",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.two_factor": {
+ "name": "two_factor",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "secret": {
+ "name": "secret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "backup_codes": {
+ "name": "backup_codes",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "verified": {
+ "name": "verified",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "failed_verification_count": {
+ "name": "failed_verification_count",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "locked_until": {
+ "name": "locked_until",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "two_factor_user_id_user_id_fk": {
+ "name": "two_factor_user_id_user_id_fk",
+ "tableFrom": "two_factor",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.verification": {
+ "name": "verification",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "identifier": {
+ "name": "identifier",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "value": {
+ "name": "value",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.ai": {
+ "name": "ai",
+ "schema": "",
+ "columns": {
+ "aiId": {
+ "name": "aiId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "apiUrl": {
+ "name": "apiUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "apiKey": {
+ "name": "apiKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "model": {
+ "name": "model",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "isEnabled": {
+ "name": "isEnabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "ai_organizationId_organization_id_fk": {
+ "name": "ai_organizationId_organization_id_fk",
+ "tableFrom": "ai",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.application": {
+ "name": "application",
+ "schema": "",
+ "columns": {
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewEnv": {
+ "name": "previewEnv",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "watchPaths": {
+ "name": "watchPaths",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewBuildArgs": {
+ "name": "previewBuildArgs",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewBuildSecrets": {
+ "name": "previewBuildSecrets",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewLabels": {
+ "name": "previewLabels",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewWildcard": {
+ "name": "previewWildcard",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewPort": {
+ "name": "previewPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "default": 3000
+ },
+ "previewHttps": {
+ "name": "previewHttps",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "previewPath": {
+ "name": "previewPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "certificateType": {
+ "name": "certificateType",
+ "type": "certificateType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'none'"
+ },
+ "previewCustomCertResolver": {
+ "name": "previewCustomCertResolver",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewLimit": {
+ "name": "previewLimit",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "default": 3
+ },
+ "previewForwardAuthEnabled": {
+ "name": "previewForwardAuthEnabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "ssoAllowedEmails": {
+ "name": "ssoAllowedEmails",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ssoAllowedGroups": {
+ "name": "ssoAllowedGroups",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ssoAllowedEmailDomains": {
+ "name": "ssoAllowedEmailDomains",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "isPreviewDeploymentsActive": {
+ "name": "isPreviewDeploymentsActive",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "previewRequireCollaboratorPermissions": {
+ "name": "previewRequireCollaboratorPermissions",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": true
+ },
+ "rollbackActive": {
+ "name": "rollbackActive",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "buildArgs": {
+ "name": "buildArgs",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "buildSecrets": {
+ "name": "buildSecrets",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "subtitle": {
+ "name": "subtitle",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "icon": {
+ "name": "icon",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refreshToken": {
+ "name": "refreshToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sourceType": {
+ "name": "sourceType",
+ "type": "sourceType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'github'"
+ },
+ "cleanCache": {
+ "name": "cleanCache",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "repository": {
+ "name": "repository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "owner": {
+ "name": "owner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "branch": {
+ "name": "branch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "buildPath": {
+ "name": "buildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "triggerType": {
+ "name": "triggerType",
+ "type": "triggerType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'push'"
+ },
+ "autoDeploy": {
+ "name": "autoDeploy",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabProjectId": {
+ "name": "gitlabProjectId",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabRepository": {
+ "name": "gitlabRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabOwner": {
+ "name": "gitlabOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabBranch": {
+ "name": "gitlabBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabBuildPath": {
+ "name": "gitlabBuildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "gitlabPathNamespace": {
+ "name": "gitlabPathNamespace",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaRepository": {
+ "name": "giteaRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaOwner": {
+ "name": "giteaOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaBranch": {
+ "name": "giteaBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaBuildPath": {
+ "name": "giteaBuildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "bitbucketRepository": {
+ "name": "bitbucketRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketRepositorySlug": {
+ "name": "bitbucketRepositorySlug",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketOwner": {
+ "name": "bitbucketOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketBranch": {
+ "name": "bitbucketBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketBuildPath": {
+ "name": "bitbucketBuildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "registryUrl": {
+ "name": "registryUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitUrl": {
+ "name": "customGitUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitBranch": {
+ "name": "customGitBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitBuildPath": {
+ "name": "customGitBuildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitSSHKeyId": {
+ "name": "customGitSSHKeyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enableSubmodules": {
+ "name": "enableSubmodules",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "dockerfile": {
+ "name": "dockerfile",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'Dockerfile'"
+ },
+ "dockerContextPath": {
+ "name": "dockerContextPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "dockerBuildStage": {
+ "name": "dockerBuildStage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "dropBuildPath": {
+ "name": "dropBuildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "buildType": {
+ "name": "buildType",
+ "type": "buildType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'nixpacks'"
+ },
+ "railpackVersion": {
+ "name": "railpackVersion",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'0.15.4'"
+ },
+ "herokuVersion": {
+ "name": "herokuVersion",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'24'"
+ },
+ "publishDirectory": {
+ "name": "publishDirectory",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "isStaticSpa": {
+ "name": "isStaticSpa",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createEnvFile": {
+ "name": "createEnvFile",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "registryId": {
+ "name": "registryId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackRegistryId": {
+ "name": "rollbackRegistryId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "githubId": {
+ "name": "githubId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabId": {
+ "name": "gitlabId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaId": {
+ "name": "giteaId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketId": {
+ "name": "bitbucketId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "buildServerId": {
+ "name": "buildServerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "buildRegistryId": {
+ "name": "buildRegistryId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "application_customGitSSHKeyId_ssh-key_sshKeyId_fk": {
+ "name": "application_customGitSSHKeyId_ssh-key_sshKeyId_fk",
+ "tableFrom": "application",
+ "tableTo": "ssh-key",
+ "columnsFrom": [
+ "customGitSSHKeyId"
+ ],
+ "columnsTo": [
+ "sshKeyId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_registryId_registry_registryId_fk": {
+ "name": "application_registryId_registry_registryId_fk",
+ "tableFrom": "application",
+ "tableTo": "registry",
+ "columnsFrom": [
+ "registryId"
+ ],
+ "columnsTo": [
+ "registryId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_rollbackRegistryId_registry_registryId_fk": {
+ "name": "application_rollbackRegistryId_registry_registryId_fk",
+ "tableFrom": "application",
+ "tableTo": "registry",
+ "columnsFrom": [
+ "rollbackRegistryId"
+ ],
+ "columnsTo": [
+ "registryId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_environmentId_environment_environmentId_fk": {
+ "name": "application_environmentId_environment_environmentId_fk",
+ "tableFrom": "application",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "application_githubId_github_githubId_fk": {
+ "name": "application_githubId_github_githubId_fk",
+ "tableFrom": "application",
+ "tableTo": "github",
+ "columnsFrom": [
+ "githubId"
+ ],
+ "columnsTo": [
+ "githubId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_gitlabId_gitlab_gitlabId_fk": {
+ "name": "application_gitlabId_gitlab_gitlabId_fk",
+ "tableFrom": "application",
+ "tableTo": "gitlab",
+ "columnsFrom": [
+ "gitlabId"
+ ],
+ "columnsTo": [
+ "gitlabId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_giteaId_gitea_giteaId_fk": {
+ "name": "application_giteaId_gitea_giteaId_fk",
+ "tableFrom": "application",
+ "tableTo": "gitea",
+ "columnsFrom": [
+ "giteaId"
+ ],
+ "columnsTo": [
+ "giteaId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_bitbucketId_bitbucket_bitbucketId_fk": {
+ "name": "application_bitbucketId_bitbucket_bitbucketId_fk",
+ "tableFrom": "application",
+ "tableTo": "bitbucket",
+ "columnsFrom": [
+ "bitbucketId"
+ ],
+ "columnsTo": [
+ "bitbucketId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_serverId_server_serverId_fk": {
+ "name": "application_serverId_server_serverId_fk",
+ "tableFrom": "application",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "application_buildServerId_server_serverId_fk": {
+ "name": "application_buildServerId_server_serverId_fk",
+ "tableFrom": "application",
+ "tableTo": "server",
+ "columnsFrom": [
+ "buildServerId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_buildRegistryId_registry_registryId_fk": {
+ "name": "application_buildRegistryId_registry_registryId_fk",
+ "tableFrom": "application",
+ "tableTo": "registry",
+ "columnsFrom": [
+ "buildRegistryId"
+ ],
+ "columnsTo": [
+ "registryId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "application_appName_unique": {
+ "name": "application_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.audit_log": {
+ "name": "audit_log",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_email": {
+ "name": "user_email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_role": {
+ "name": "user_role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "action": {
+ "name": "action",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "resource_type": {
+ "name": "resource_type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "resource_id": {
+ "name": "resource_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "resource_name": {
+ "name": "resource_name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "auditLog_organizationId_idx": {
+ "name": "auditLog_organizationId_idx",
+ "columns": [
+ {
+ "expression": "organization_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "auditLog_userId_idx": {
+ "name": "auditLog_userId_idx",
+ "columns": [
+ {
+ "expression": "user_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "auditLog_createdAt_idx": {
+ "name": "auditLog_createdAt_idx",
+ "columns": [
+ {
+ "expression": "created_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "audit_log_organization_id_organization_id_fk": {
+ "name": "audit_log_organization_id_organization_id_fk",
+ "tableFrom": "audit_log",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "audit_log_user_id_user_id_fk": {
+ "name": "audit_log_user_id_user_id_fk",
+ "tableFrom": "audit_log",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.backup": {
+ "name": "backup",
+ "schema": "",
+ "columns": {
+ "backupId": {
+ "name": "backupId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "schedule": {
+ "name": "schedule",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "database": {
+ "name": "database",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "prefix": {
+ "name": "prefix",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "customName": {
+ "name": "customName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serviceName": {
+ "name": "serviceName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "destinationId": {
+ "name": "destinationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "keepLatestCount": {
+ "name": "keepLatestCount",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "includeEncryptionKey": {
+ "name": "includeEncryptionKey",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "backupType": {
+ "name": "backupType",
+ "type": "backupType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'database'"
+ },
+ "databaseType": {
+ "name": "databaseType",
+ "type": "databaseType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "postgresId": {
+ "name": "postgresId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mariadbId": {
+ "name": "mariadbId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mysqlId": {
+ "name": "mysqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mongoId": {
+ "name": "mongoId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "libsqlId": {
+ "name": "libsqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "userId": {
+ "name": "userId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "backup_destinationId_destination_destinationId_fk": {
+ "name": "backup_destinationId_destination_destinationId_fk",
+ "tableFrom": "backup",
+ "tableTo": "destination",
+ "columnsFrom": [
+ "destinationId"
+ ],
+ "columnsTo": [
+ "destinationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_composeId_compose_composeId_fk": {
+ "name": "backup_composeId_compose_composeId_fk",
+ "tableFrom": "backup",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_postgresId_postgres_postgresId_fk": {
+ "name": "backup_postgresId_postgres_postgresId_fk",
+ "tableFrom": "backup",
+ "tableTo": "postgres",
+ "columnsFrom": [
+ "postgresId"
+ ],
+ "columnsTo": [
+ "postgresId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_mariadbId_mariadb_mariadbId_fk": {
+ "name": "backup_mariadbId_mariadb_mariadbId_fk",
+ "tableFrom": "backup",
+ "tableTo": "mariadb",
+ "columnsFrom": [
+ "mariadbId"
+ ],
+ "columnsTo": [
+ "mariadbId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_mysqlId_mysql_mysqlId_fk": {
+ "name": "backup_mysqlId_mysql_mysqlId_fk",
+ "tableFrom": "backup",
+ "tableTo": "mysql",
+ "columnsFrom": [
+ "mysqlId"
+ ],
+ "columnsTo": [
+ "mysqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_mongoId_mongo_mongoId_fk": {
+ "name": "backup_mongoId_mongo_mongoId_fk",
+ "tableFrom": "backup",
+ "tableTo": "mongo",
+ "columnsFrom": [
+ "mongoId"
+ ],
+ "columnsTo": [
+ "mongoId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_libsqlId_libsql_libsqlId_fk": {
+ "name": "backup_libsqlId_libsql_libsqlId_fk",
+ "tableFrom": "backup",
+ "tableTo": "libsql",
+ "columnsFrom": [
+ "libsqlId"
+ ],
+ "columnsTo": [
+ "libsqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_userId_user_id_fk": {
+ "name": "backup_userId_user_id_fk",
+ "tableFrom": "backup",
+ "tableTo": "user",
+ "columnsFrom": [
+ "userId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "backup_appName_unique": {
+ "name": "backup_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.bitbucket": {
+ "name": "bitbucket",
+ "schema": "",
+ "columns": {
+ "bitbucketId": {
+ "name": "bitbucketId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "bitbucketUsername": {
+ "name": "bitbucketUsername",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketEmail": {
+ "name": "bitbucketEmail",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "appPassword": {
+ "name": "appPassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "apiToken": {
+ "name": "apiToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketWorkspaceName": {
+ "name": "bitbucketWorkspaceName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitProviderId": {
+ "name": "gitProviderId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "bitbucket_gitProviderId_git_provider_gitProviderId_fk": {
+ "name": "bitbucket_gitProviderId_git_provider_gitProviderId_fk",
+ "tableFrom": "bitbucket",
+ "tableTo": "git_provider",
+ "columnsFrom": [
+ "gitProviderId"
+ ],
+ "columnsTo": [
+ "gitProviderId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.certificate": {
+ "name": "certificate",
+ "schema": "",
+ "columns": {
+ "certificateId": {
+ "name": "certificateId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "certificateData": {
+ "name": "certificateData",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "privateKey": {
+ "name": "privateKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "certificatePath": {
+ "name": "certificatePath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "autoRenew": {
+ "name": "autoRenew",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "certificate_organizationId_organization_id_fk": {
+ "name": "certificate_organizationId_organization_id_fk",
+ "tableFrom": "certificate",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "certificate_serverId_server_serverId_fk": {
+ "name": "certificate_serverId_server_serverId_fk",
+ "tableFrom": "certificate",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "certificate_certificatePath_unique": {
+ "name": "certificate_certificatePath_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "certificatePath"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.cloud_server": {
+ "name": "cloud_server",
+ "schema": "",
+ "columns": {
+ "cloudServerId": {
+ "name": "cloudServerId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "plan": {
+ "name": "plan",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "status": {
+ "name": "status",
+ "type": "cloudServerStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'pending'"
+ },
+ "providerVmId": {
+ "name": "providerVmId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "providerVpcId": {
+ "name": "providerVpcId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "providerFirewallId": {
+ "name": "providerFirewallId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "zone": {
+ "name": "zone",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "sshKeyId": {
+ "name": "sshKeyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ipAddress": {
+ "name": "ipAddress",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "hostname": {
+ "name": "hostname",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stripeSubscriptionId": {
+ "name": "stripeSubscriptionId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stripeCheckoutSessionId": {
+ "name": "stripeCheckoutSessionId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "suspendedAt": {
+ "name": "suspendedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "errorMessage": {
+ "name": "errorMessage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "cloud_server_organizationId_organization_id_fk": {
+ "name": "cloud_server_organizationId_organization_id_fk",
+ "tableFrom": "cloud_server",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "cloud_server_serverId_server_serverId_fk": {
+ "name": "cloud_server_serverId_server_serverId_fk",
+ "tableFrom": "cloud_server",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "cloud_server_sshKeyId_ssh-key_sshKeyId_fk": {
+ "name": "cloud_server_sshKeyId_ssh-key_sshKeyId_fk",
+ "tableFrom": "cloud_server",
+ "tableTo": "ssh-key",
+ "columnsFrom": [
+ "sshKeyId"
+ ],
+ "columnsTo": [
+ "sshKeyId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.compose": {
+ "name": "compose",
+ "schema": "",
+ "columns": {
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeFile": {
+ "name": "composeFile",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "refreshToken": {
+ "name": "refreshToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sourceType": {
+ "name": "sourceType",
+ "type": "sourceTypeCompose",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'github'"
+ },
+ "composeType": {
+ "name": "composeType",
+ "type": "composeType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'docker-compose'"
+ },
+ "repository": {
+ "name": "repository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "owner": {
+ "name": "owner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "branch": {
+ "name": "branch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "autoDeploy": {
+ "name": "autoDeploy",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabProjectId": {
+ "name": "gitlabProjectId",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabRepository": {
+ "name": "gitlabRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabOwner": {
+ "name": "gitlabOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabBranch": {
+ "name": "gitlabBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabPathNamespace": {
+ "name": "gitlabPathNamespace",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketRepository": {
+ "name": "bitbucketRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketRepositorySlug": {
+ "name": "bitbucketRepositorySlug",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketOwner": {
+ "name": "bitbucketOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketBranch": {
+ "name": "bitbucketBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaRepository": {
+ "name": "giteaRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaOwner": {
+ "name": "giteaOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaBranch": {
+ "name": "giteaBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitUrl": {
+ "name": "customGitUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitBranch": {
+ "name": "customGitBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitSSHKeyId": {
+ "name": "customGitSSHKeyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "createEnvFile": {
+ "name": "createEnvFile",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "enableSubmodules": {
+ "name": "enableSubmodules",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "composePath": {
+ "name": "composePath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'./docker-compose.yml'"
+ },
+ "suffix": {
+ "name": "suffix",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "randomize": {
+ "name": "randomize",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "isolatedDeployment": {
+ "name": "isolatedDeployment",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "isolatedDeploymentsVolume": {
+ "name": "isolatedDeploymentsVolume",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "pullImages": {
+ "name": "pullImages",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "triggerType": {
+ "name": "triggerType",
+ "type": "triggerType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'push'"
+ },
+ "composeStatus": {
+ "name": "composeStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "icon": {
+ "name": "icon",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "watchPaths": {
+ "name": "watchPaths",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubId": {
+ "name": "githubId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabId": {
+ "name": "gitlabId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketId": {
+ "name": "bitbucketId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaId": {
+ "name": "giteaId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serviceNetworks": {
+ "name": "serviceNetworks",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'[]'::jsonb"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "compose_customGitSSHKeyId_ssh-key_sshKeyId_fk": {
+ "name": "compose_customGitSSHKeyId_ssh-key_sshKeyId_fk",
+ "tableFrom": "compose",
+ "tableTo": "ssh-key",
+ "columnsFrom": [
+ "customGitSSHKeyId"
+ ],
+ "columnsTo": [
+ "sshKeyId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "compose_environmentId_environment_environmentId_fk": {
+ "name": "compose_environmentId_environment_environmentId_fk",
+ "tableFrom": "compose",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "compose_githubId_github_githubId_fk": {
+ "name": "compose_githubId_github_githubId_fk",
+ "tableFrom": "compose",
+ "tableTo": "github",
+ "columnsFrom": [
+ "githubId"
+ ],
+ "columnsTo": [
+ "githubId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "compose_gitlabId_gitlab_gitlabId_fk": {
+ "name": "compose_gitlabId_gitlab_gitlabId_fk",
+ "tableFrom": "compose",
+ "tableTo": "gitlab",
+ "columnsFrom": [
+ "gitlabId"
+ ],
+ "columnsTo": [
+ "gitlabId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "compose_bitbucketId_bitbucket_bitbucketId_fk": {
+ "name": "compose_bitbucketId_bitbucket_bitbucketId_fk",
+ "tableFrom": "compose",
+ "tableTo": "bitbucket",
+ "columnsFrom": [
+ "bitbucketId"
+ ],
+ "columnsTo": [
+ "bitbucketId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "compose_giteaId_gitea_giteaId_fk": {
+ "name": "compose_giteaId_gitea_giteaId_fk",
+ "tableFrom": "compose",
+ "tableTo": "gitea",
+ "columnsFrom": [
+ "giteaId"
+ ],
+ "columnsTo": [
+ "giteaId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "compose_serverId_server_serverId_fk": {
+ "name": "compose_serverId_server_serverId_fk",
+ "tableFrom": "compose",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.deployment": {
+ "name": "deployment",
+ "schema": "",
+ "columns": {
+ "deploymentId": {
+ "name": "deploymentId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "status": {
+ "name": "status",
+ "type": "deploymentStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'running'"
+ },
+ "logPath": {
+ "name": "logPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pid": {
+ "name": "pid",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "isPreviewDeployment": {
+ "name": "isPreviewDeployment",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "previewDeploymentId": {
+ "name": "previewDeploymentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "startedAt": {
+ "name": "startedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "finishedAt": {
+ "name": "finishedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "errorMessage": {
+ "name": "errorMessage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "scheduleId": {
+ "name": "scheduleId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "backupId": {
+ "name": "backupId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackId": {
+ "name": "rollbackId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "volumeBackupId": {
+ "name": "volumeBackupId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "buildServerId": {
+ "name": "buildServerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "deployment_applicationId_application_applicationId_fk": {
+ "name": "deployment_applicationId_application_applicationId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_composeId_compose_composeId_fk": {
+ "name": "deployment_composeId_compose_composeId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_serverId_server_serverId_fk": {
+ "name": "deployment_serverId_server_serverId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_previewDeploymentId_preview_deployments_previewDeploymentId_fk": {
+ "name": "deployment_previewDeploymentId_preview_deployments_previewDeploymentId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "preview_deployments",
+ "columnsFrom": [
+ "previewDeploymentId"
+ ],
+ "columnsTo": [
+ "previewDeploymentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_scheduleId_schedule_scheduleId_fk": {
+ "name": "deployment_scheduleId_schedule_scheduleId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "schedule",
+ "columnsFrom": [
+ "scheduleId"
+ ],
+ "columnsTo": [
+ "scheduleId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_backupId_backup_backupId_fk": {
+ "name": "deployment_backupId_backup_backupId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "backup",
+ "columnsFrom": [
+ "backupId"
+ ],
+ "columnsTo": [
+ "backupId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_rollbackId_rollback_rollbackId_fk": {
+ "name": "deployment_rollbackId_rollback_rollbackId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "rollback",
+ "columnsFrom": [
+ "rollbackId"
+ ],
+ "columnsTo": [
+ "rollbackId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_volumeBackupId_volume_backup_volumeBackupId_fk": {
+ "name": "deployment_volumeBackupId_volume_backup_volumeBackupId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "volume_backup",
+ "columnsFrom": [
+ "volumeBackupId"
+ ],
+ "columnsTo": [
+ "volumeBackupId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_buildServerId_server_serverId_fk": {
+ "name": "deployment_buildServerId_server_serverId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "server",
+ "columnsFrom": [
+ "buildServerId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.destination": {
+ "name": "destination",
+ "schema": "",
+ "columns": {
+ "destinationId": {
+ "name": "destinationId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "provider": {
+ "name": "provider",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "accessKey": {
+ "name": "accessKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "secretAccessKey": {
+ "name": "secretAccessKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "bucket": {
+ "name": "bucket",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "region": {
+ "name": "region",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "endpoint": {
+ "name": "endpoint",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "additionalFlags": {
+ "name": "additionalFlags",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "destination_organizationId_organization_id_fk": {
+ "name": "destination_organizationId_organization_id_fk",
+ "tableFrom": "destination",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.dns_provider": {
+ "name": "dns_provider",
+ "schema": "",
+ "columns": {
+ "dnsProviderId": {
+ "name": "dnsProviderId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "providerType": {
+ "name": "providerType",
+ "type": "DnsProviderType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "config": {
+ "name": "config",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "dns_provider_org_name_idx": {
+ "name": "dns_provider_org_name_idx",
+ "columns": [
+ {
+ "expression": "organizationId",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "name",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "dns_provider_organizationId_organization_id_fk": {
+ "name": "dns_provider_organizationId_organization_id_fk",
+ "tableFrom": "dns_provider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.domain": {
+ "name": "domain",
+ "schema": "",
+ "columns": {
+ "domainId": {
+ "name": "domainId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "host": {
+ "name": "host",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "https": {
+ "name": "https",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "port": {
+ "name": "port",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "default": 3000
+ },
+ "customEntrypoint": {
+ "name": "customEntrypoint",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "path": {
+ "name": "path",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "serviceName": {
+ "name": "serviceName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "domainType": {
+ "name": "domainType",
+ "type": "domainType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'application'"
+ },
+ "uniqueConfigKey": {
+ "name": "uniqueConfigKey",
+ "type": "serial",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customCertResolver": {
+ "name": "customCertResolver",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewDeploymentId": {
+ "name": "previewDeploymentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "certificateType": {
+ "name": "certificateType",
+ "type": "certificateType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'none'"
+ },
+ "internalPath": {
+ "name": "internalPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "stripPath": {
+ "name": "stripPath",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "middlewares": {
+ "name": "middlewares",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "ARRAY[]::text[]"
+ },
+ "forwardAuthEnabled": {
+ "name": "forwardAuthEnabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "domain_composeId_compose_composeId_fk": {
+ "name": "domain_composeId_compose_composeId_fk",
+ "tableFrom": "domain",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "domain_applicationId_application_applicationId_fk": {
+ "name": "domain_applicationId_application_applicationId_fk",
+ "tableFrom": "domain",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "domain_previewDeploymentId_preview_deployments_previewDeploymentId_fk": {
+ "name": "domain_previewDeploymentId_preview_deployments_previewDeploymentId_fk",
+ "tableFrom": "domain",
+ "tableTo": "preview_deployments",
+ "columnsFrom": [
+ "previewDeploymentId"
+ ],
+ "columnsTo": [
+ "previewDeploymentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.environment": {
+ "name": "environment",
+ "schema": "",
+ "columns": {
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "projectId": {
+ "name": "projectId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "isDefault": {
+ "name": "isDefault",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "environment_projectId_project_projectId_fk": {
+ "name": "environment_projectId_project_projectId_fk",
+ "tableFrom": "environment",
+ "tableTo": "project",
+ "columnsFrom": [
+ "projectId"
+ ],
+ "columnsTo": [
+ "projectId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forward_auth_settings": {
+ "name": "forward_auth_settings",
+ "schema": "",
+ "columns": {
+ "forwardAuthSettingsId": {
+ "name": "forwardAuthSettingsId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "authDomain": {
+ "name": "authDomain",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "baseDomain": {
+ "name": "baseDomain",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "https": {
+ "name": "https",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "certificateType": {
+ "name": "certificateType",
+ "type": "certificateType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'letsencrypt'"
+ },
+ "customCertResolver": {
+ "name": "customCertResolver",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "providerId": {
+ "name": "providerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "forward_auth_settings_providerId_sso_provider_provider_id_fk": {
+ "name": "forward_auth_settings_providerId_sso_provider_provider_id_fk",
+ "tableFrom": "forward_auth_settings",
+ "tableTo": "sso_provider",
+ "columnsFrom": [
+ "providerId"
+ ],
+ "columnsTo": [
+ "provider_id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "forward_auth_settings_serverId_server_serverId_fk": {
+ "name": "forward_auth_settings_serverId_server_serverId_fk",
+ "tableFrom": "forward_auth_settings",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "forward_auth_settings_serverId_unique": {
+ "name": "forward_auth_settings_serverId_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "serverId"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.git_provider": {
+ "name": "git_provider",
+ "schema": "",
+ "columns": {
+ "gitProviderId": {
+ "name": "gitProviderId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "providerType": {
+ "name": "providerType",
+ "type": "gitProviderType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'github'"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "userId": {
+ "name": "userId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "sharedWithOrganization": {
+ "name": "sharedWithOrganization",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "git_provider_organizationId_organization_id_fk": {
+ "name": "git_provider_organizationId_organization_id_fk",
+ "tableFrom": "git_provider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "git_provider_userId_user_id_fk": {
+ "name": "git_provider_userId_user_id_fk",
+ "tableFrom": "git_provider",
+ "tableTo": "user",
+ "columnsFrom": [
+ "userId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.gitea": {
+ "name": "gitea",
+ "schema": "",
+ "columns": {
+ "giteaId": {
+ "name": "giteaId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "giteaUrl": {
+ "name": "giteaUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'https://gitea.com'"
+ },
+ "giteaInternalUrl": {
+ "name": "giteaInternalUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "redirect_uri": {
+ "name": "redirect_uri",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "client_id": {
+ "name": "client_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "client_secret": {
+ "name": "client_secret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitProviderId": {
+ "name": "gitProviderId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "access_token": {
+ "name": "access_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refresh_token": {
+ "name": "refresh_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "scopes": {
+ "name": "scopes",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'repo,repo:status,read:user,read:org'"
+ },
+ "last_authenticated_at": {
+ "name": "last_authenticated_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "gitea_gitProviderId_git_provider_gitProviderId_fk": {
+ "name": "gitea_gitProviderId_git_provider_gitProviderId_fk",
+ "tableFrom": "gitea",
+ "tableTo": "git_provider",
+ "columnsFrom": [
+ "gitProviderId"
+ ],
+ "columnsTo": [
+ "gitProviderId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.github": {
+ "name": "github",
+ "schema": "",
+ "columns": {
+ "githubId": {
+ "name": "githubId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "githubAppName": {
+ "name": "githubAppName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubAppId": {
+ "name": "githubAppId",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubClientId": {
+ "name": "githubClientId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubClientSecret": {
+ "name": "githubClientSecret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubInstallationId": {
+ "name": "githubInstallationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubPrivateKey": {
+ "name": "githubPrivateKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubWebhookSecret": {
+ "name": "githubWebhookSecret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubUrl": {
+ "name": "githubUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'https://github.com'"
+ },
+ "gitProviderId": {
+ "name": "gitProviderId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "github_gitProviderId_git_provider_gitProviderId_fk": {
+ "name": "github_gitProviderId_git_provider_gitProviderId_fk",
+ "tableFrom": "github",
+ "tableTo": "git_provider",
+ "columnsFrom": [
+ "gitProviderId"
+ ],
+ "columnsTo": [
+ "gitProviderId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.gitlab": {
+ "name": "gitlab",
+ "schema": "",
+ "columns": {
+ "gitlabId": {
+ "name": "gitlabId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "gitlabUrl": {
+ "name": "gitlabUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'https://gitlab.com'"
+ },
+ "gitlabInternalUrl": {
+ "name": "gitlabInternalUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "application_id": {
+ "name": "application_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "redirect_uri": {
+ "name": "redirect_uri",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "secret": {
+ "name": "secret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "access_token": {
+ "name": "access_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refresh_token": {
+ "name": "refresh_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "group_name": {
+ "name": "group_name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitProviderId": {
+ "name": "gitProviderId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "gitlab_gitProviderId_git_provider_gitProviderId_fk": {
+ "name": "gitlab_gitProviderId_git_provider_gitProviderId_fk",
+ "tableFrom": "gitlab",
+ "tableTo": "git_provider",
+ "columnsFrom": [
+ "gitProviderId"
+ ],
+ "columnsTo": [
+ "gitProviderId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.libsql": {
+ "name": "libsql",
+ "schema": "",
+ "columns": {
+ "libsqlId": {
+ "name": "libsqlId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "databaseUser": {
+ "name": "databaseUser",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databasePassword": {
+ "name": "databasePassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "sqldNode": {
+ "name": "sqldNode",
+ "type": "sqldNode",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'primary'"
+ },
+ "sqldPrimaryUrl": {
+ "name": "sqldPrimaryUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enableNamespaces": {
+ "name": "enableNamespaces",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalGRPCPort": {
+ "name": "externalGRPCPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalAdminPort": {
+ "name": "externalAdminPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "libsql_environmentId_environment_environmentId_fk": {
+ "name": "libsql_environmentId_environment_environmentId_fk",
+ "tableFrom": "libsql",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "libsql_serverId_server_serverId_fk": {
+ "name": "libsql_serverId_server_serverId_fk",
+ "tableFrom": "libsql",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "libsql_appName_unique": {
+ "name": "libsql_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.mariadb": {
+ "name": "mariadb",
+ "schema": "",
+ "columns": {
+ "mariadbId": {
+ "name": "mariadbId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "databaseName": {
+ "name": "databaseName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databaseUser": {
+ "name": "databaseUser",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databasePassword": {
+ "name": "databasePassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "rootPassword": {
+ "name": "rootPassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "mariadb_environmentId_environment_environmentId_fk": {
+ "name": "mariadb_environmentId_environment_environmentId_fk",
+ "tableFrom": "mariadb",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mariadb_serverId_server_serverId_fk": {
+ "name": "mariadb_serverId_server_serverId_fk",
+ "tableFrom": "mariadb",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "mariadb_appName_unique": {
+ "name": "mariadb_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.mongo": {
+ "name": "mongo",
+ "schema": "",
+ "columns": {
+ "mongoId": {
+ "name": "mongoId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "databaseUser": {
+ "name": "databaseUser",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databasePassword": {
+ "name": "databasePassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'mongo:8'"
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicaSets": {
+ "name": "replicaSets",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "mongo_environmentId_environment_environmentId_fk": {
+ "name": "mongo_environmentId_environment_environmentId_fk",
+ "tableFrom": "mongo",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mongo_serverId_server_serverId_fk": {
+ "name": "mongo_serverId_server_serverId_fk",
+ "tableFrom": "mongo",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "mongo_appName_unique": {
+ "name": "mongo_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.mount": {
+ "name": "mount",
+ "schema": "",
+ "columns": {
+ "mountId": {
+ "name": "mountId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "type": {
+ "name": "type",
+ "type": "mountType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "hostPath": {
+ "name": "hostPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "volumeName": {
+ "name": "volumeName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "filePath": {
+ "name": "filePath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "content": {
+ "name": "content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serviceType": {
+ "name": "serviceType",
+ "type": "serviceType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'application'"
+ },
+ "mountPath": {
+ "name": "mountPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "libsqlId": {
+ "name": "libsqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mariadbId": {
+ "name": "mariadbId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mongoId": {
+ "name": "mongoId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mysqlId": {
+ "name": "mysqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "postgresId": {
+ "name": "postgresId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "redisId": {
+ "name": "redisId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "mount_applicationId_application_applicationId_fk": {
+ "name": "mount_applicationId_application_applicationId_fk",
+ "tableFrom": "mount",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_composeId_compose_composeId_fk": {
+ "name": "mount_composeId_compose_composeId_fk",
+ "tableFrom": "mount",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_libsqlId_libsql_libsqlId_fk": {
+ "name": "mount_libsqlId_libsql_libsqlId_fk",
+ "tableFrom": "mount",
+ "tableTo": "libsql",
+ "columnsFrom": [
+ "libsqlId"
+ ],
+ "columnsTo": [
+ "libsqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_mariadbId_mariadb_mariadbId_fk": {
+ "name": "mount_mariadbId_mariadb_mariadbId_fk",
+ "tableFrom": "mount",
+ "tableTo": "mariadb",
+ "columnsFrom": [
+ "mariadbId"
+ ],
+ "columnsTo": [
+ "mariadbId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_mongoId_mongo_mongoId_fk": {
+ "name": "mount_mongoId_mongo_mongoId_fk",
+ "tableFrom": "mount",
+ "tableTo": "mongo",
+ "columnsFrom": [
+ "mongoId"
+ ],
+ "columnsTo": [
+ "mongoId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_mysqlId_mysql_mysqlId_fk": {
+ "name": "mount_mysqlId_mysql_mysqlId_fk",
+ "tableFrom": "mount",
+ "tableTo": "mysql",
+ "columnsFrom": [
+ "mysqlId"
+ ],
+ "columnsTo": [
+ "mysqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_postgresId_postgres_postgresId_fk": {
+ "name": "mount_postgresId_postgres_postgresId_fk",
+ "tableFrom": "mount",
+ "tableTo": "postgres",
+ "columnsFrom": [
+ "postgresId"
+ ],
+ "columnsTo": [
+ "postgresId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_redisId_redis_redisId_fk": {
+ "name": "mount_redisId_redis_redisId_fk",
+ "tableFrom": "mount",
+ "tableTo": "redis",
+ "columnsFrom": [
+ "redisId"
+ ],
+ "columnsTo": [
+ "redisId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.mysql": {
+ "name": "mysql",
+ "schema": "",
+ "columns": {
+ "mysqlId": {
+ "name": "mysqlId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "databaseName": {
+ "name": "databaseName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databaseUser": {
+ "name": "databaseUser",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databasePassword": {
+ "name": "databasePassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "rootPassword": {
+ "name": "rootPassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "mysql_environmentId_environment_environmentId_fk": {
+ "name": "mysql_environmentId_environment_environmentId_fk",
+ "tableFrom": "mysql",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mysql_serverId_server_serverId_fk": {
+ "name": "mysql_serverId_server_serverId_fk",
+ "tableFrom": "mysql",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "mysql_appName_unique": {
+ "name": "mysql_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.network": {
+ "name": "network",
+ "schema": "",
+ "columns": {
+ "networkId": {
+ "name": "networkId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "dockerId": {
+ "name": "dockerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "driver": {
+ "name": "driver",
+ "type": "networkDriver",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'bridge'"
+ },
+ "internal": {
+ "name": "internal",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "attachable": {
+ "name": "attachable",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "enableIPv4": {
+ "name": "enableIPv4",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "enableIPv6": {
+ "name": "enableIPv6",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "mtu": {
+ "name": "mtu",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ipam": {
+ "name": "ipam",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'::jsonb"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "network_organizationId_organization_id_fk": {
+ "name": "network_organizationId_organization_id_fk",
+ "tableFrom": "network",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "network_serverId_server_serverId_fk": {
+ "name": "network_serverId_server_serverId_fk",
+ "tableFrom": "network",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.custom": {
+ "name": "custom",
+ "schema": "",
+ "columns": {
+ "customId": {
+ "name": "customId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "endpoint": {
+ "name": "endpoint",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "headers": {
+ "name": "headers",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.discord": {
+ "name": "discord",
+ "schema": "",
+ "columns": {
+ "discordId": {
+ "name": "discordId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "webhookUrl": {
+ "name": "webhookUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "decoration": {
+ "name": "decoration",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.email": {
+ "name": "email",
+ "schema": "",
+ "columns": {
+ "emailId": {
+ "name": "emailId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "smtpServer": {
+ "name": "smtpServer",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "smtpPort": {
+ "name": "smtpPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "fromAddress": {
+ "name": "fromAddress",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "toAddress": {
+ "name": "toAddress",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.gotify": {
+ "name": "gotify",
+ "schema": "",
+ "columns": {
+ "gotifyId": {
+ "name": "gotifyId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "serverUrl": {
+ "name": "serverUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appToken": {
+ "name": "appToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "priority": {
+ "name": "priority",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 5
+ },
+ "decoration": {
+ "name": "decoration",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.lark": {
+ "name": "lark",
+ "schema": "",
+ "columns": {
+ "larkId": {
+ "name": "larkId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "webhookUrl": {
+ "name": "webhookUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.mattermost": {
+ "name": "mattermost",
+ "schema": "",
+ "columns": {
+ "mattermostId": {
+ "name": "mattermostId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "webhookUrl": {
+ "name": "webhookUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "channel": {
+ "name": "channel",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.notification": {
+ "name": "notification",
+ "schema": "",
+ "columns": {
+ "notificationId": {
+ "name": "notificationId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appDeploy": {
+ "name": "appDeploy",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "appBuildError": {
+ "name": "appBuildError",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "databaseBackup": {
+ "name": "databaseBackup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "volumeBackup": {
+ "name": "volumeBackup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "dokployRestart": {
+ "name": "dokployRestart",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "dokployBackup": {
+ "name": "dokployBackup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "dockerCleanup": {
+ "name": "dockerCleanup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "serverThreshold": {
+ "name": "serverThreshold",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "notificationType": {
+ "name": "notificationType",
+ "type": "notificationType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "slackId": {
+ "name": "slackId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "telegramId": {
+ "name": "telegramId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "discordId": {
+ "name": "discordId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "emailId": {
+ "name": "emailId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "resendId": {
+ "name": "resendId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gotifyId": {
+ "name": "gotifyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ntfyId": {
+ "name": "ntfyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mattermostId": {
+ "name": "mattermostId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customId": {
+ "name": "customId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "larkId": {
+ "name": "larkId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "pushoverId": {
+ "name": "pushoverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "teamsId": {
+ "name": "teamsId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "notification_slackId_slack_slackId_fk": {
+ "name": "notification_slackId_slack_slackId_fk",
+ "tableFrom": "notification",
+ "tableTo": "slack",
+ "columnsFrom": [
+ "slackId"
+ ],
+ "columnsTo": [
+ "slackId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_telegramId_telegram_telegramId_fk": {
+ "name": "notification_telegramId_telegram_telegramId_fk",
+ "tableFrom": "notification",
+ "tableTo": "telegram",
+ "columnsFrom": [
+ "telegramId"
+ ],
+ "columnsTo": [
+ "telegramId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_discordId_discord_discordId_fk": {
+ "name": "notification_discordId_discord_discordId_fk",
+ "tableFrom": "notification",
+ "tableTo": "discord",
+ "columnsFrom": [
+ "discordId"
+ ],
+ "columnsTo": [
+ "discordId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_emailId_email_emailId_fk": {
+ "name": "notification_emailId_email_emailId_fk",
+ "tableFrom": "notification",
+ "tableTo": "email",
+ "columnsFrom": [
+ "emailId"
+ ],
+ "columnsTo": [
+ "emailId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_resendId_resend_resendId_fk": {
+ "name": "notification_resendId_resend_resendId_fk",
+ "tableFrom": "notification",
+ "tableTo": "resend",
+ "columnsFrom": [
+ "resendId"
+ ],
+ "columnsTo": [
+ "resendId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_gotifyId_gotify_gotifyId_fk": {
+ "name": "notification_gotifyId_gotify_gotifyId_fk",
+ "tableFrom": "notification",
+ "tableTo": "gotify",
+ "columnsFrom": [
+ "gotifyId"
+ ],
+ "columnsTo": [
+ "gotifyId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_ntfyId_ntfy_ntfyId_fk": {
+ "name": "notification_ntfyId_ntfy_ntfyId_fk",
+ "tableFrom": "notification",
+ "tableTo": "ntfy",
+ "columnsFrom": [
+ "ntfyId"
+ ],
+ "columnsTo": [
+ "ntfyId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_mattermostId_mattermost_mattermostId_fk": {
+ "name": "notification_mattermostId_mattermost_mattermostId_fk",
+ "tableFrom": "notification",
+ "tableTo": "mattermost",
+ "columnsFrom": [
+ "mattermostId"
+ ],
+ "columnsTo": [
+ "mattermostId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_customId_custom_customId_fk": {
+ "name": "notification_customId_custom_customId_fk",
+ "tableFrom": "notification",
+ "tableTo": "custom",
+ "columnsFrom": [
+ "customId"
+ ],
+ "columnsTo": [
+ "customId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_larkId_lark_larkId_fk": {
+ "name": "notification_larkId_lark_larkId_fk",
+ "tableFrom": "notification",
+ "tableTo": "lark",
+ "columnsFrom": [
+ "larkId"
+ ],
+ "columnsTo": [
+ "larkId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_pushoverId_pushover_pushoverId_fk": {
+ "name": "notification_pushoverId_pushover_pushoverId_fk",
+ "tableFrom": "notification",
+ "tableTo": "pushover",
+ "columnsFrom": [
+ "pushoverId"
+ ],
+ "columnsTo": [
+ "pushoverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_teamsId_teams_teamsId_fk": {
+ "name": "notification_teamsId_teams_teamsId_fk",
+ "tableFrom": "notification",
+ "tableTo": "teams",
+ "columnsFrom": [
+ "teamsId"
+ ],
+ "columnsTo": [
+ "teamsId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_organizationId_organization_id_fk": {
+ "name": "notification_organizationId_organization_id_fk",
+ "tableFrom": "notification",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.ntfy": {
+ "name": "ntfy",
+ "schema": "",
+ "columns": {
+ "ntfyId": {
+ "name": "ntfyId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "serverUrl": {
+ "name": "serverUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "topic": {
+ "name": "topic",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "accessToken": {
+ "name": "accessToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "priority": {
+ "name": "priority",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 3
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.pushover": {
+ "name": "pushover",
+ "schema": "",
+ "columns": {
+ "pushoverId": {
+ "name": "pushoverId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "userKey": {
+ "name": "userKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "apiToken": {
+ "name": "apiToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "priority": {
+ "name": "priority",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "retry": {
+ "name": "retry",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "expire": {
+ "name": "expire",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.resend": {
+ "name": "resend",
+ "schema": "",
+ "columns": {
+ "resendId": {
+ "name": "resendId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "apiKey": {
+ "name": "apiKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "fromAddress": {
+ "name": "fromAddress",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "toAddress": {
+ "name": "toAddress",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.slack": {
+ "name": "slack",
+ "schema": "",
+ "columns": {
+ "slackId": {
+ "name": "slackId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "webhookUrl": {
+ "name": "webhookUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "channel": {
+ "name": "channel",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.teams": {
+ "name": "teams",
+ "schema": "",
+ "columns": {
+ "teamsId": {
+ "name": "teamsId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "webhookUrl": {
+ "name": "webhookUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.telegram": {
+ "name": "telegram",
+ "schema": "",
+ "columns": {
+ "telegramId": {
+ "name": "telegramId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "botToken": {
+ "name": "botToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "chatId": {
+ "name": "chatId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "messageThreadId": {
+ "name": "messageThreadId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.patch": {
+ "name": "patch",
+ "schema": "",
+ "columns": {
+ "patchId": {
+ "name": "patchId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "type": {
+ "name": "type",
+ "type": "patchType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'update'"
+ },
+ "filePath": {
+ "name": "filePath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "content": {
+ "name": "content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "patch_applicationId_application_applicationId_fk": {
+ "name": "patch_applicationId_application_applicationId_fk",
+ "tableFrom": "patch",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "patch_composeId_compose_composeId_fk": {
+ "name": "patch_composeId_compose_composeId_fk",
+ "tableFrom": "patch",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "patch_filepath_application_unique": {
+ "name": "patch_filepath_application_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "filePath",
+ "applicationId"
+ ]
+ },
+ "patch_filepath_compose_unique": {
+ "name": "patch_filepath_compose_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "filePath",
+ "composeId"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.port": {
+ "name": "port",
+ "schema": "",
+ "columns": {
+ "portId": {
+ "name": "portId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "publishedPort": {
+ "name": "publishedPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "publishMode": {
+ "name": "publishMode",
+ "type": "publishModeType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'host'"
+ },
+ "targetPort": {
+ "name": "targetPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "protocol": {
+ "name": "protocol",
+ "type": "protocolType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "port_applicationId_application_applicationId_fk": {
+ "name": "port_applicationId_application_applicationId_fk",
+ "tableFrom": "port",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.postgres": {
+ "name": "postgres",
+ "schema": "",
+ "columns": {
+ "postgresId": {
+ "name": "postgresId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databaseName": {
+ "name": "databaseName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databaseUser": {
+ "name": "databaseUser",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databasePassword": {
+ "name": "databasePassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "postgres_environmentId_environment_environmentId_fk": {
+ "name": "postgres_environmentId_environment_environmentId_fk",
+ "tableFrom": "postgres",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "postgres_serverId_server_serverId_fk": {
+ "name": "postgres_serverId_server_serverId_fk",
+ "tableFrom": "postgres",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "postgres_appName_unique": {
+ "name": "postgres_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.preview_deployments": {
+ "name": "preview_deployments",
+ "schema": "",
+ "columns": {
+ "previewDeploymentId": {
+ "name": "previewDeploymentId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "branch": {
+ "name": "branch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pullRequestId": {
+ "name": "pullRequestId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pullRequestNumber": {
+ "name": "pullRequestNumber",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pullRequestURL": {
+ "name": "pullRequestURL",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pullRequestTitle": {
+ "name": "pullRequestTitle",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pullRequestCommentId": {
+ "name": "pullRequestCommentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "previewStatus": {
+ "name": "previewStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "domainId": {
+ "name": "domainId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "expiresAt": {
+ "name": "expiresAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "preview_deployments_applicationId_application_applicationId_fk": {
+ "name": "preview_deployments_applicationId_application_applicationId_fk",
+ "tableFrom": "preview_deployments",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "preview_deployments_domainId_domain_domainId_fk": {
+ "name": "preview_deployments_domainId_domain_domainId_fk",
+ "tableFrom": "preview_deployments",
+ "tableTo": "domain",
+ "columnsFrom": [
+ "domainId"
+ ],
+ "columnsTo": [
+ "domainId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "preview_deployments_appName_unique": {
+ "name": "preview_deployments_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.project": {
+ "name": "project",
+ "schema": "",
+ "columns": {
+ "projectId": {
+ "name": "projectId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "project_organizationId_organization_id_fk": {
+ "name": "project_organizationId_organization_id_fk",
+ "tableFrom": "project",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.redirect": {
+ "name": "redirect",
+ "schema": "",
+ "columns": {
+ "redirectId": {
+ "name": "redirectId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "regex": {
+ "name": "regex",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "replacement": {
+ "name": "replacement",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "permanent": {
+ "name": "permanent",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "uniqueConfigKey": {
+ "name": "uniqueConfigKey",
+ "type": "serial",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "redirect_applicationId_application_applicationId_fk": {
+ "name": "redirect_applicationId_application_applicationId_fk",
+ "tableFrom": "redirect",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.redis": {
+ "name": "redis",
+ "schema": "",
+ "columns": {
+ "redisId": {
+ "name": "redisId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "redis_environmentId_environment_environmentId_fk": {
+ "name": "redis_environmentId_environment_environmentId_fk",
+ "tableFrom": "redis",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "redis_serverId_server_serverId_fk": {
+ "name": "redis_serverId_server_serverId_fk",
+ "tableFrom": "redis",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "redis_appName_unique": {
+ "name": "redis_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.registry": {
+ "name": "registry",
+ "schema": "",
+ "columns": {
+ "registryId": {
+ "name": "registryId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "registryName": {
+ "name": "registryName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "imagePrefix": {
+ "name": "imagePrefix",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "registryUrl": {
+ "name": "registryUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "selfHosted": {
+ "name": "selfHosted",
+ "type": "RegistryType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'cloud'"
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "registry_organizationId_organization_id_fk": {
+ "name": "registry_organizationId_organization_id_fk",
+ "tableFrom": "registry",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.rollback": {
+ "name": "rollback",
+ "schema": "",
+ "columns": {
+ "rollbackId": {
+ "name": "rollbackId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "deploymentId": {
+ "name": "deploymentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "version": {
+ "name": "version",
+ "type": "serial",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "image": {
+ "name": "image",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "fullContext": {
+ "name": "fullContext",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "rollback_deploymentId_deployment_deploymentId_fk": {
+ "name": "rollback_deploymentId_deployment_deploymentId_fk",
+ "tableFrom": "rollback",
+ "tableTo": "deployment",
+ "columnsFrom": [
+ "deploymentId"
+ ],
+ "columnsTo": [
+ "deploymentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.sandbox": {
+ "name": "sandbox",
+ "schema": "",
+ "columns": {
+ "sandboxId": {
+ "name": "sandboxId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "image": {
+ "name": "image",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "template": {
+ "name": "template",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "containerId": {
+ "name": "containerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "status": {
+ "name": "status",
+ "type": "sandboxStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'creating'"
+ },
+ "cpu": {
+ "name": "cpu",
+ "type": "real",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "memoryMb": {
+ "name": "memoryMb",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 512
+ },
+ "pidsLimit": {
+ "name": "pidsLimit",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 256
+ },
+ "timeoutMs": {
+ "name": "timeoutMs",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 300000
+ },
+ "expiresAt": {
+ "name": "expiresAt",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "deadlineAt": {
+ "name": "deadlineAt",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "lastActivityAt": {
+ "name": "lastActivityAt",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkMode": {
+ "name": "networkMode",
+ "type": "sandboxNetworkMode",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'isolated'"
+ },
+ "envVars": {
+ "name": "envVars",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "workdir": {
+ "name": "workdir",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'/home/user'"
+ },
+ "user": {
+ "name": "user",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "runtime": {
+ "name": "runtime",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "killedAt": {
+ "name": "killedAt",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "sandbox_organizationId_organization_id_fk": {
+ "name": "sandbox_organizationId_organization_id_fk",
+ "tableFrom": "sandbox",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "sandbox_serverId_server_serverId_fk": {
+ "name": "sandbox_serverId_server_serverId_fk",
+ "tableFrom": "sandbox",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.schedule": {
+ "name": "schedule",
+ "schema": "",
+ "columns": {
+ "scheduleId": {
+ "name": "scheduleId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cronExpression": {
+ "name": "cronExpression",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serviceName": {
+ "name": "serviceName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "shellType": {
+ "name": "shellType",
+ "type": "shellType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'bash'"
+ },
+ "scheduleType": {
+ "name": "scheduleType",
+ "type": "scheduleType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'application'"
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "script": {
+ "name": "script",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "timezone": {
+ "name": "timezone",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "schedule_applicationId_application_applicationId_fk": {
+ "name": "schedule_applicationId_application_applicationId_fk",
+ "tableFrom": "schedule",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "schedule_composeId_compose_composeId_fk": {
+ "name": "schedule_composeId_compose_composeId_fk",
+ "tableFrom": "schedule",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "schedule_serverId_server_serverId_fk": {
+ "name": "schedule_serverId_server_serverId_fk",
+ "tableFrom": "schedule",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "schedule_organizationId_organization_id_fk": {
+ "name": "schedule_organizationId_organization_id_fk",
+ "tableFrom": "schedule",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.scim_provider": {
+ "name": "scim_provider",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "provider_id": {
+ "name": "provider_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "scim_token": {
+ "name": "scim_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "scim_provider_organization_id_organization_id_fk": {
+ "name": "scim_provider_organization_id_organization_id_fk",
+ "tableFrom": "scim_provider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "scim_provider_provider_id_unique": {
+ "name": "scim_provider_provider_id_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "provider_id"
+ ]
+ },
+ "scim_provider_scim_token_unique": {
+ "name": "scim_provider_scim_token_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "scim_token"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.security": {
+ "name": "security",
+ "schema": "",
+ "columns": {
+ "securityId": {
+ "name": "securityId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "security_applicationId_application_applicationId_fk": {
+ "name": "security_applicationId_application_applicationId_fk",
+ "tableFrom": "security",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "security_username_applicationId_unique": {
+ "name": "security_username_applicationId_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "username",
+ "applicationId"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.server": {
+ "name": "server",
+ "schema": "",
+ "columns": {
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ipAddress": {
+ "name": "ipAddress",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "port": {
+ "name": "port",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'root'"
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "enableDockerCleanup": {
+ "name": "enableDockerCleanup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "telemetryProviderIds": {
+ "name": "telemetryProviderIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "buildsConcurrency": {
+ "name": "buildsConcurrency",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverStatus": {
+ "name": "serverStatus",
+ "type": "serverStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'active'"
+ },
+ "serverType": {
+ "name": "serverType",
+ "type": "serverType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'deploy'"
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "sshKeyId": {
+ "name": "sshKeyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metricsConfig": {
+ "name": "metricsConfig",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'{\"server\":{\"type\":\"Remote\",\"refreshRate\":60,\"port\":4500,\"token\":\"\",\"urlCallback\":\"\",\"cronJob\":\"\",\"retentionDays\":2,\"thresholds\":{\"cpu\":0,\"memory\":0}},\"containers\":{\"refreshRate\":60,\"services\":{\"include\":[],\"exclude\":[]}}}'::jsonb"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "server_organizationId_organization_id_fk": {
+ "name": "server_organizationId_organization_id_fk",
+ "tableFrom": "server",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "server_sshKeyId_ssh-key_sshKeyId_fk": {
+ "name": "server_sshKeyId_ssh-key_sshKeyId_fk",
+ "tableFrom": "server",
+ "tableTo": "ssh-key",
+ "columnsFrom": [
+ "sshKeyId"
+ ],
+ "columnsTo": [
+ "sshKeyId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.session": {
+ "name": "session",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "token": {
+ "name": "token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "ip_address": {
+ "name": "ip_address",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_agent": {
+ "name": "user_agent",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "impersonated_by": {
+ "name": "impersonated_by",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "active_organization_id": {
+ "name": "active_organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "session_user_id_user_id_fk": {
+ "name": "session_user_id_user_id_fk",
+ "tableFrom": "session",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "session_token_unique": {
+ "name": "session_token_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "token"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.ssh-key": {
+ "name": "ssh-key",
+ "schema": "",
+ "columns": {
+ "sshKeyId": {
+ "name": "sshKeyId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "privateKey": {
+ "name": "privateKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "publicKey": {
+ "name": "publicKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "lastUsedAt": {
+ "name": "lastUsedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "ssh-key_organizationId_organization_id_fk": {
+ "name": "ssh-key_organizationId_organization_id_fk",
+ "tableFrom": "ssh-key",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.sso_provider": {
+ "name": "sso_provider",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "issuer": {
+ "name": "issuer",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "oidc_config": {
+ "name": "oidc_config",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "saml_config": {
+ "name": "saml_config",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "provider_id": {
+ "name": "provider_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "domain": {
+ "name": "domain",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "domain_verified": {
+ "name": "domain_verified",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "sso_provider_user_id_user_id_fk": {
+ "name": "sso_provider_user_id_user_id_fk",
+ "tableFrom": "sso_provider",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "sso_provider_organization_id_organization_id_fk": {
+ "name": "sso_provider_organization_id_organization_id_fk",
+ "tableFrom": "sso_provider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "sso_provider_provider_id_unique": {
+ "name": "sso_provider_provider_id_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "provider_id"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.project_tag": {
+ "name": "project_tag",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "projectId": {
+ "name": "projectId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "tagId": {
+ "name": "tagId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "project_tag_projectId_project_projectId_fk": {
+ "name": "project_tag_projectId_project_projectId_fk",
+ "tableFrom": "project_tag",
+ "tableTo": "project",
+ "columnsFrom": [
+ "projectId"
+ ],
+ "columnsTo": [
+ "projectId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "project_tag_tagId_tag_tagId_fk": {
+ "name": "project_tag_tagId_tag_tagId_fk",
+ "tableFrom": "project_tag",
+ "tableTo": "tag",
+ "columnsFrom": [
+ "tagId"
+ ],
+ "columnsTo": [
+ "tagId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "unique_project_tag": {
+ "name": "unique_project_tag",
+ "nullsNotDistinct": false,
+ "columns": [
+ "projectId",
+ "tagId"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.tag": {
+ "name": "tag",
+ "schema": "",
+ "columns": {
+ "tagId": {
+ "name": "tagId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "color": {
+ "name": "color",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "tag_organizationId_organization_id_fk": {
+ "name": "tag_organizationId_organization_id_fk",
+ "tableFrom": "tag",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "unique_org_tag_name": {
+ "name": "unique_org_tag_name",
+ "nullsNotDistinct": false,
+ "columns": [
+ "organizationId",
+ "name"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.telemetryProvider": {
+ "name": "telemetryProvider",
+ "schema": "",
+ "columns": {
+ "telemetryProviderId": {
+ "name": "telemetryProviderId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "providerType": {
+ "name": "providerType",
+ "type": "TelemetryProviderType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "signals": {
+ "name": "signals",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "endpoint": {
+ "name": "endpoint",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "apiKey": {
+ "name": "apiKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "apiSecret": {
+ "name": "apiSecret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "extraConfig": {
+ "name": "extraConfig",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "telemetryProvider_organizationId_organization_id_fk": {
+ "name": "telemetryProvider_organizationId_organization_id_fk",
+ "tableFrom": "telemetryProvider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.user": {
+ "name": "user",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "firstName": {
+ "name": "firstName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "lastName": {
+ "name": "lastName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "isRegistered": {
+ "name": "isRegistered",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "expirationDate": {
+ "name": "expirationDate",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ },
+ "two_factor_enabled": {
+ "name": "two_factor_enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "email": {
+ "name": "email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "email_verified": {
+ "name": "email_verified",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "image": {
+ "name": "image",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "banned": {
+ "name": "banned",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ban_reason": {
+ "name": "ban_reason",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ban_expires": {
+ "name": "ban_expires",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "role": {
+ "name": "role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'user'"
+ },
+ "enablePaidFeatures": {
+ "name": "enablePaidFeatures",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "allowImpersonation": {
+ "name": "allowImpersonation",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "enableEnterpriseFeatures": {
+ "name": "enableEnterpriseFeatures",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "licenseKey": {
+ "name": "licenseKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "isValidEnterpriseLicense": {
+ "name": "isValidEnterpriseLicense",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "stripeCustomerId": {
+ "name": "stripeCustomerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stripeSubscriptionId": {
+ "name": "stripeSubscriptionId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serversQuantity": {
+ "name": "serversQuantity",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "sendInvoiceNotifications": {
+ "name": "sendInvoiceNotifications",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "isEnterpriseCloud": {
+ "name": "isEnterpriseCloud",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "trustedOrigins": {
+ "name": "trustedOrigins",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bookmarkedTemplates": {
+ "name": "bookmarkedTemplates",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "ARRAY[]::text[]"
+ },
+ "onboardingCompletedAt": {
+ "name": "onboardingCompletedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "onboardingStep": {
+ "name": "onboardingStep",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "onboardingReturnEmails": {
+ "name": "onboardingReturnEmails",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "trialPlanPromptSubscriptionId": {
+ "name": "trialPlanPromptSubscriptionId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverSetupFailedEmailAt": {
+ "name": "serverSetupFailedEmailAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverConnectFailure": {
+ "name": "serverConnectFailure",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "lastSessionAt": {
+ "name": "lastSessionAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "deactivatedAt": {
+ "name": "deactivatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "user_email_unique": {
+ "name": "user_email_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "email"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.vault_provider": {
+ "name": "vault_provider",
+ "schema": "",
+ "columns": {
+ "vaultProviderId": {
+ "name": "vaultProviderId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "providerType": {
+ "name": "providerType",
+ "type": "VaultProviderType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "config": {
+ "name": "config",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "assignments": {
+ "name": "assignments",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'[]'::jsonb"
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "vault_provider_org_name_idx": {
+ "name": "vault_provider_org_name_idx",
+ "columns": [
+ {
+ "expression": "organizationId",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "name",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "vault_provider_organizationId_organization_id_fk": {
+ "name": "vault_provider_organizationId_organization_id_fk",
+ "tableFrom": "vault_provider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.volume_backup": {
+ "name": "volume_backup",
+ "schema": "",
+ "columns": {
+ "volumeBackupId": {
+ "name": "volumeBackupId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "volumeName": {
+ "name": "volumeName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "prefix": {
+ "name": "prefix",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serviceType": {
+ "name": "serviceType",
+ "type": "serviceType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'application'"
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serviceName": {
+ "name": "serviceName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "turnOff": {
+ "name": "turnOff",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "cronExpression": {
+ "name": "cronExpression",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "keepLatestCount": {
+ "name": "keepLatestCount",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "postgresId": {
+ "name": "postgresId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mariadbId": {
+ "name": "mariadbId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mongoId": {
+ "name": "mongoId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mysqlId": {
+ "name": "mysqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "redisId": {
+ "name": "redisId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "libsqlId": {
+ "name": "libsqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "destinationId": {
+ "name": "destinationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "volume_backup_applicationId_application_applicationId_fk": {
+ "name": "volume_backup_applicationId_application_applicationId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_postgresId_postgres_postgresId_fk": {
+ "name": "volume_backup_postgresId_postgres_postgresId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "postgres",
+ "columnsFrom": [
+ "postgresId"
+ ],
+ "columnsTo": [
+ "postgresId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_mariadbId_mariadb_mariadbId_fk": {
+ "name": "volume_backup_mariadbId_mariadb_mariadbId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "mariadb",
+ "columnsFrom": [
+ "mariadbId"
+ ],
+ "columnsTo": [
+ "mariadbId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_mongoId_mongo_mongoId_fk": {
+ "name": "volume_backup_mongoId_mongo_mongoId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "mongo",
+ "columnsFrom": [
+ "mongoId"
+ ],
+ "columnsTo": [
+ "mongoId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_mysqlId_mysql_mysqlId_fk": {
+ "name": "volume_backup_mysqlId_mysql_mysqlId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "mysql",
+ "columnsFrom": [
+ "mysqlId"
+ ],
+ "columnsTo": [
+ "mysqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_redisId_redis_redisId_fk": {
+ "name": "volume_backup_redisId_redis_redisId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "redis",
+ "columnsFrom": [
+ "redisId"
+ ],
+ "columnsTo": [
+ "redisId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_libsqlId_libsql_libsqlId_fk": {
+ "name": "volume_backup_libsqlId_libsql_libsqlId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "libsql",
+ "columnsFrom": [
+ "libsqlId"
+ ],
+ "columnsTo": [
+ "libsqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_composeId_compose_composeId_fk": {
+ "name": "volume_backup_composeId_compose_composeId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_destinationId_destination_destinationId_fk": {
+ "name": "volume_backup_destinationId_destination_destinationId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "destination",
+ "columnsFrom": [
+ "destinationId"
+ ],
+ "columnsTo": [
+ "destinationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.webServerSettings": {
+ "name": "webServerSettings",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "serverIp": {
+ "name": "serverIp",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "certificateType": {
+ "name": "certificateType",
+ "type": "certificateType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'none'"
+ },
+ "https": {
+ "name": "https",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "host": {
+ "name": "host",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "letsEncryptEmail": {
+ "name": "letsEncryptEmail",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sshPrivateKey": {
+ "name": "sshPrivateKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enableDockerCleanup": {
+ "name": "enableDockerCleanup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "logCleanupCron": {
+ "name": "logCleanupCron",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'0 0 * * *'"
+ },
+ "telemetryProviderIds": {
+ "name": "telemetryProviderIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "vectorAgentOrganizationId": {
+ "name": "vectorAgentOrganizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metricsConfig": {
+ "name": "metricsConfig",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'{\"server\":{\"type\":\"Dokploy\",\"refreshRate\":60,\"port\":4500,\"token\":\"\",\"retentionDays\":2,\"cronJob\":\"\",\"urlCallback\":\"\",\"thresholds\":{\"cpu\":0,\"memory\":0}},\"containers\":{\"refreshRate\":60,\"services\":{\"include\":[],\"exclude\":[]}}}'::jsonb"
+ },
+ "whitelabelingConfig": {
+ "name": "whitelabelingConfig",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{\"appName\":null,\"appDescription\":null,\"logoUrl\":null,\"faviconUrl\":null,\"customCss\":null,\"loginLogoUrl\":null,\"supportUrl\":null,\"docsUrl\":null,\"errorPageTitle\":null,\"errorPageDescription\":null,\"footerText\":null,\"ogImageUrl\":null,\"passwordResetGuide\":null,\"supportEmail\":null,\"logoLightUrl\":null,\"loginLogoLightUrl\":null,\"faviconLightUrl\":null,\"dualModeBranding\":false}'::jsonb"
+ },
+ "remoteServersOnly": {
+ "name": "remoteServersOnly",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "buildsConcurrency": {
+ "name": "buildsConcurrency",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "enforceSSO": {
+ "name": "enforceSSO",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "instanceOwnerId": {
+ "name": "instanceOwnerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "pendingOwnerId": {
+ "name": "pendingOwnerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "pendingOwnerExpiresAt": {
+ "name": "pendingOwnerExpiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cleanupCacheApplications": {
+ "name": "cleanupCacheApplications",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "cleanupCacheOnPreviews": {
+ "name": "cleanupCacheOnPreviews",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "cleanupCacheOnCompose": {
+ "name": "cleanupCacheOnCompose",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "webServerSettings_vectorAgentOrganizationId_organization_id_fk": {
+ "name": "webServerSettings_vectorAgentOrganizationId_organization_id_fk",
+ "tableFrom": "webServerSettings",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "vectorAgentOrganizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "webServerSettings_instanceOwnerId_user_id_fk": {
+ "name": "webServerSettings_instanceOwnerId_user_id_fk",
+ "tableFrom": "webServerSettings",
+ "tableTo": "user",
+ "columnsFrom": [
+ "instanceOwnerId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "webServerSettings_pendingOwnerId_user_id_fk": {
+ "name": "webServerSettings_pendingOwnerId_user_id_fk",
+ "tableFrom": "webServerSettings",
+ "tableTo": "user",
+ "columnsFrom": [
+ "pendingOwnerId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ }
+ },
+ "enums": {
+ "public.buildType": {
+ "name": "buildType",
+ "schema": "public",
+ "values": [
+ "dockerfile",
+ "heroku_buildpacks",
+ "paketo_buildpacks",
+ "nixpacks",
+ "static",
+ "railpack"
+ ]
+ },
+ "public.sourceType": {
+ "name": "sourceType",
+ "schema": "public",
+ "values": [
+ "docker",
+ "git",
+ "github",
+ "gitlab",
+ "bitbucket",
+ "gitea",
+ "drop"
+ ]
+ },
+ "public.backupType": {
+ "name": "backupType",
+ "schema": "public",
+ "values": [
+ "database",
+ "compose"
+ ]
+ },
+ "public.databaseType": {
+ "name": "databaseType",
+ "schema": "public",
+ "values": [
+ "postgres",
+ "mariadb",
+ "mysql",
+ "mongo",
+ "web-server",
+ "libsql"
+ ]
+ },
+ "public.cloudServerStatus": {
+ "name": "cloudServerStatus",
+ "schema": "public",
+ "values": [
+ "pending",
+ "provisioning",
+ "configuring",
+ "ready",
+ "upgrading",
+ "error",
+ "suspended",
+ "terminating"
+ ]
+ },
+ "public.composeType": {
+ "name": "composeType",
+ "schema": "public",
+ "values": [
+ "docker-compose",
+ "stack"
+ ]
+ },
+ "public.sourceTypeCompose": {
+ "name": "sourceTypeCompose",
+ "schema": "public",
+ "values": [
+ "git",
+ "github",
+ "gitlab",
+ "bitbucket",
+ "gitea",
+ "raw"
+ ]
+ },
+ "public.deploymentStatus": {
+ "name": "deploymentStatus",
+ "schema": "public",
+ "values": [
+ "running",
+ "done",
+ "error",
+ "cancelled"
+ ]
+ },
+ "public.DnsProviderType": {
+ "name": "DnsProviderType",
+ "schema": "public",
+ "values": [
+ "cloudflare",
+ "route53",
+ "porkbun",
+ "infomaniak",
+ "ovh"
+ ]
+ },
+ "public.domainType": {
+ "name": "domainType",
+ "schema": "public",
+ "values": [
+ "compose",
+ "application",
+ "preview"
+ ]
+ },
+ "public.gitProviderType": {
+ "name": "gitProviderType",
+ "schema": "public",
+ "values": [
+ "github",
+ "gitlab",
+ "bitbucket",
+ "gitea"
+ ]
+ },
+ "public.mountType": {
+ "name": "mountType",
+ "schema": "public",
+ "values": [
+ "bind",
+ "volume",
+ "file"
+ ]
+ },
+ "public.serviceType": {
+ "name": "serviceType",
+ "schema": "public",
+ "values": [
+ "application",
+ "postgres",
+ "mysql",
+ "mariadb",
+ "mongo",
+ "redis",
+ "compose",
+ "libsql"
+ ]
+ },
+ "public.networkDriver": {
+ "name": "networkDriver",
+ "schema": "public",
+ "values": [
+ "bridge",
+ "overlay"
+ ]
+ },
+ "public.notificationType": {
+ "name": "notificationType",
+ "schema": "public",
+ "values": [
+ "slack",
+ "telegram",
+ "discord",
+ "email",
+ "resend",
+ "gotify",
+ "ntfy",
+ "mattermost",
+ "pushover",
+ "custom",
+ "lark",
+ "teams"
+ ]
+ },
+ "public.patchType": {
+ "name": "patchType",
+ "schema": "public",
+ "values": [
+ "create",
+ "update",
+ "delete"
+ ]
+ },
+ "public.protocolType": {
+ "name": "protocolType",
+ "schema": "public",
+ "values": [
+ "tcp",
+ "udp"
+ ]
+ },
+ "public.publishModeType": {
+ "name": "publishModeType",
+ "schema": "public",
+ "values": [
+ "ingress",
+ "host"
+ ]
+ },
+ "public.RegistryType": {
+ "name": "RegistryType",
+ "schema": "public",
+ "values": [
+ "selfHosted",
+ "cloud"
+ ]
+ },
+ "public.sandboxNetworkMode": {
+ "name": "sandboxNetworkMode",
+ "schema": "public",
+ "values": [
+ "isolated",
+ "internet"
+ ]
+ },
+ "public.sandboxStatus": {
+ "name": "sandboxStatus",
+ "schema": "public",
+ "values": [
+ "creating",
+ "running",
+ "killed",
+ "error"
+ ]
+ },
+ "public.scheduleType": {
+ "name": "scheduleType",
+ "schema": "public",
+ "values": [
+ "application",
+ "compose",
+ "server",
+ "dokploy-server"
+ ]
+ },
+ "public.shellType": {
+ "name": "shellType",
+ "schema": "public",
+ "values": [
+ "bash",
+ "sh"
+ ]
+ },
+ "public.serverStatus": {
+ "name": "serverStatus",
+ "schema": "public",
+ "values": [
+ "active",
+ "inactive"
+ ]
+ },
+ "public.serverType": {
+ "name": "serverType",
+ "schema": "public",
+ "values": [
+ "deploy",
+ "build"
+ ]
+ },
+ "public.applicationStatus": {
+ "name": "applicationStatus",
+ "schema": "public",
+ "values": [
+ "idle",
+ "running",
+ "done",
+ "error"
+ ]
+ },
+ "public.certificateType": {
+ "name": "certificateType",
+ "schema": "public",
+ "values": [
+ "letsencrypt",
+ "none",
+ "custom"
+ ]
+ },
+ "public.sqldNode": {
+ "name": "sqldNode",
+ "schema": "public",
+ "values": [
+ "primary",
+ "replica"
+ ]
+ },
+ "public.triggerType": {
+ "name": "triggerType",
+ "schema": "public",
+ "values": [
+ "push",
+ "tag"
+ ]
+ },
+ "public.TelemetryProviderType": {
+ "name": "TelemetryProviderType",
+ "schema": "public",
+ "values": [
+ "loki",
+ "datadog",
+ "betterstack",
+ "elasticsearch",
+ "splunk_hec",
+ "aws_cloudwatch",
+ "prometheus_remote_write",
+ "new_relic",
+ "influxdb"
+ ]
+ },
+ "public.VaultProviderType": {
+ "name": "VaultProviderType",
+ "schema": "public",
+ "values": [
+ "hashicorp",
+ "infisical",
+ "aws",
+ "aws-parameter-store",
+ "doppler",
+ "azure",
+ "scaleway",
+ "phase"
+ ]
+ }
+ },
+ "schemas": {},
+ "sequences": {},
+ "roles": {},
+ "policies": {},
+ "views": {},
+ "_meta": {
+ "columns": {},
+ "schemas": {},
+ "tables": {}
+ }
+}
\ No newline at end of file
diff --git a/apps/dokploy/drizzle/meta/0209_snapshot.json b/apps/dokploy/drizzle/meta/0209_snapshot.json
new file mode 100644
index 000000000..5dd47142b
--- /dev/null
+++ b/apps/dokploy/drizzle/meta/0209_snapshot.json
@@ -0,0 +1,9834 @@
+{
+ "id": "e2cf183a-deb8-41b9-b7ce-1a2d34517a16",
+ "prevId": "ef08daca-a3dd-41c4-9f25-b5188eff73f5",
+ "version": "7",
+ "dialect": "postgresql",
+ "tables": {
+ "public.account": {
+ "name": "account",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "account_id": {
+ "name": "account_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "provider_id": {
+ "name": "provider_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "access_token": {
+ "name": "access_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refresh_token": {
+ "name": "refresh_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "id_token": {
+ "name": "id_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "access_token_expires_at": {
+ "name": "access_token_expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refresh_token_expires_at": {
+ "name": "refresh_token_expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "scope": {
+ "name": "scope",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "is2FAEnabled": {
+ "name": "is2FAEnabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "resetPasswordToken": {
+ "name": "resetPasswordToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "resetPasswordExpiresAt": {
+ "name": "resetPasswordExpiresAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "confirmationToken": {
+ "name": "confirmationToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "confirmationExpiresAt": {
+ "name": "confirmationExpiresAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "account_user_id_user_id_fk": {
+ "name": "account_user_id_user_id_fk",
+ "tableFrom": "account",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.apikey": {
+ "name": "apikey",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "start": {
+ "name": "start",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "prefix": {
+ "name": "prefix",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "key": {
+ "name": "key",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "config_id": {
+ "name": "config_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'default'"
+ },
+ "reference_id": {
+ "name": "reference_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "refill_interval": {
+ "name": "refill_interval",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refill_amount": {
+ "name": "refill_amount",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "last_refill_at": {
+ "name": "last_refill_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rate_limit_enabled": {
+ "name": "rate_limit_enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rate_limit_time_window": {
+ "name": "rate_limit_time_window",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rate_limit_max": {
+ "name": "rate_limit_max",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "request_count": {
+ "name": "request_count",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "remaining": {
+ "name": "remaining",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "last_request": {
+ "name": "last_request",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "permissions": {
+ "name": "permissions",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "apikey_reference_id_user_id_fk": {
+ "name": "apikey_reference_id_user_id_fk",
+ "tableFrom": "apikey",
+ "tableTo": "user",
+ "columnsFrom": [
+ "reference_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.invitation": {
+ "name": "invitation",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "email": {
+ "name": "email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "role": {
+ "name": "role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "status": {
+ "name": "status",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "inviter_id": {
+ "name": "inviter_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "team_id": {
+ "name": "team_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "invitation_organization_id_organization_id_fk": {
+ "name": "invitation_organization_id_organization_id_fk",
+ "tableFrom": "invitation",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "invitation_inviter_id_user_id_fk": {
+ "name": "invitation_inviter_id_user_id_fk",
+ "tableFrom": "invitation",
+ "tableTo": "user",
+ "columnsFrom": [
+ "inviter_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.member": {
+ "name": "member",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "role": {
+ "name": "role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "team_id": {
+ "name": "team_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "is_default": {
+ "name": "is_default",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canCreateProjects": {
+ "name": "canCreateProjects",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canAccessToSSHKeys": {
+ "name": "canAccessToSSHKeys",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canCreateServices": {
+ "name": "canCreateServices",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canDeleteProjects": {
+ "name": "canDeleteProjects",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canDeleteServices": {
+ "name": "canDeleteServices",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canAccessToDocker": {
+ "name": "canAccessToDocker",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canAccessToAPI": {
+ "name": "canAccessToAPI",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canAccessToGitProviders": {
+ "name": "canAccessToGitProviders",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canAccessToTraefikFiles": {
+ "name": "canAccessToTraefikFiles",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canDeleteEnvironments": {
+ "name": "canDeleteEnvironments",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canCreateEnvironments": {
+ "name": "canCreateEnvironments",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "accesedProjects": {
+ "name": "accesedProjects",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "accessedEnvironments": {
+ "name": "accessedEnvironments",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "accesedServices": {
+ "name": "accesedServices",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "accessedGitProviders": {
+ "name": "accessedGitProviders",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "accessedServers": {
+ "name": "accessedServers",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "member_organization_id_organization_id_fk": {
+ "name": "member_organization_id_organization_id_fk",
+ "tableFrom": "member",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "member_user_id_user_id_fk": {
+ "name": "member_user_id_user_id_fk",
+ "tableFrom": "member",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.organization": {
+ "name": "organization",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "slug": {
+ "name": "slug",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "logo": {
+ "name": "logo",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "default_role": {
+ "name": "default_role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "owner_id": {
+ "name": "owner_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "organization_owner_id_user_id_fk": {
+ "name": "organization_owner_id_user_id_fk",
+ "tableFrom": "organization",
+ "tableTo": "user",
+ "columnsFrom": [
+ "owner_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "organization_slug_unique": {
+ "name": "organization_slug_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "slug"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.organization_role": {
+ "name": "organization_role",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "role": {
+ "name": "role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "permission": {
+ "name": "permission",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "allowed_domains": {
+ "name": "allowed_domains",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "require_https": {
+ "name": "require_https",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "organizationRole_organizationId_idx": {
+ "name": "organizationRole_organizationId_idx",
+ "columns": [
+ {
+ "expression": "organization_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "organizationRole_role_idx": {
+ "name": "organizationRole_role_idx",
+ "columns": [
+ {
+ "expression": "role",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "organization_role_organization_id_organization_id_fk": {
+ "name": "organization_role_organization_id_organization_id_fk",
+ "tableFrom": "organization_role",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.passkey": {
+ "name": "passkey",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "public_key": {
+ "name": "public_key",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "credential_id": {
+ "name": "credential_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "counter": {
+ "name": "counter",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "device_type": {
+ "name": "device_type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "backed_up": {
+ "name": "backed_up",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "transports": {
+ "name": "transports",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "aaguid": {
+ "name": "aaguid",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "passkey_userId_idx": {
+ "name": "passkey_userId_idx",
+ "columns": [
+ {
+ "expression": "user_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "passkey_credentialID_idx": {
+ "name": "passkey_credentialID_idx",
+ "columns": [
+ {
+ "expression": "credential_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "passkey_user_id_user_id_fk": {
+ "name": "passkey_user_id_user_id_fk",
+ "tableFrom": "passkey",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.two_factor": {
+ "name": "two_factor",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "secret": {
+ "name": "secret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "backup_codes": {
+ "name": "backup_codes",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "verified": {
+ "name": "verified",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "failed_verification_count": {
+ "name": "failed_verification_count",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "locked_until": {
+ "name": "locked_until",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "two_factor_user_id_user_id_fk": {
+ "name": "two_factor_user_id_user_id_fk",
+ "tableFrom": "two_factor",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.verification": {
+ "name": "verification",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "identifier": {
+ "name": "identifier",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "value": {
+ "name": "value",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.ai": {
+ "name": "ai",
+ "schema": "",
+ "columns": {
+ "aiId": {
+ "name": "aiId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "apiUrl": {
+ "name": "apiUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "apiKey": {
+ "name": "apiKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "model": {
+ "name": "model",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "isEnabled": {
+ "name": "isEnabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "ai_organizationId_organization_id_fk": {
+ "name": "ai_organizationId_organization_id_fk",
+ "tableFrom": "ai",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.application": {
+ "name": "application",
+ "schema": "",
+ "columns": {
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewEnv": {
+ "name": "previewEnv",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "watchPaths": {
+ "name": "watchPaths",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewBuildArgs": {
+ "name": "previewBuildArgs",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewBuildSecrets": {
+ "name": "previewBuildSecrets",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewLabels": {
+ "name": "previewLabels",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewWildcard": {
+ "name": "previewWildcard",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewPort": {
+ "name": "previewPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "default": 3000
+ },
+ "previewHttps": {
+ "name": "previewHttps",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "previewPath": {
+ "name": "previewPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "certificateType": {
+ "name": "certificateType",
+ "type": "certificateType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'none'"
+ },
+ "previewCustomCertResolver": {
+ "name": "previewCustomCertResolver",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewLimit": {
+ "name": "previewLimit",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "default": 3
+ },
+ "previewForwardAuthEnabled": {
+ "name": "previewForwardAuthEnabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "ssoAllowedEmails": {
+ "name": "ssoAllowedEmails",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ssoAllowedGroups": {
+ "name": "ssoAllowedGroups",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ssoAllowedEmailDomains": {
+ "name": "ssoAllowedEmailDomains",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "isPreviewDeploymentsActive": {
+ "name": "isPreviewDeploymentsActive",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "previewRequireCollaboratorPermissions": {
+ "name": "previewRequireCollaboratorPermissions",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": true
+ },
+ "rollbackActive": {
+ "name": "rollbackActive",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "buildArgs": {
+ "name": "buildArgs",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "buildSecrets": {
+ "name": "buildSecrets",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "subtitle": {
+ "name": "subtitle",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "icon": {
+ "name": "icon",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refreshToken": {
+ "name": "refreshToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sourceType": {
+ "name": "sourceType",
+ "type": "sourceType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'github'"
+ },
+ "cleanCache": {
+ "name": "cleanCache",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "repository": {
+ "name": "repository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "owner": {
+ "name": "owner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "branch": {
+ "name": "branch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "buildPath": {
+ "name": "buildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "triggerType": {
+ "name": "triggerType",
+ "type": "triggerType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'push'"
+ },
+ "autoDeploy": {
+ "name": "autoDeploy",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabProjectId": {
+ "name": "gitlabProjectId",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabRepository": {
+ "name": "gitlabRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabOwner": {
+ "name": "gitlabOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabBranch": {
+ "name": "gitlabBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabBuildPath": {
+ "name": "gitlabBuildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "gitlabPathNamespace": {
+ "name": "gitlabPathNamespace",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaRepository": {
+ "name": "giteaRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaOwner": {
+ "name": "giteaOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaBranch": {
+ "name": "giteaBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaBuildPath": {
+ "name": "giteaBuildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "bitbucketRepository": {
+ "name": "bitbucketRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketRepositorySlug": {
+ "name": "bitbucketRepositorySlug",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketOwner": {
+ "name": "bitbucketOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketBranch": {
+ "name": "bitbucketBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketBuildPath": {
+ "name": "bitbucketBuildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "registryUrl": {
+ "name": "registryUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitUrl": {
+ "name": "customGitUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitBranch": {
+ "name": "customGitBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitBuildPath": {
+ "name": "customGitBuildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitSSHKeyId": {
+ "name": "customGitSSHKeyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enableSubmodules": {
+ "name": "enableSubmodules",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "dockerfile": {
+ "name": "dockerfile",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'Dockerfile'"
+ },
+ "dockerContextPath": {
+ "name": "dockerContextPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "dockerBuildStage": {
+ "name": "dockerBuildStage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "dropBuildPath": {
+ "name": "dropBuildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "buildType": {
+ "name": "buildType",
+ "type": "buildType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'nixpacks'"
+ },
+ "railpackVersion": {
+ "name": "railpackVersion",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'0.15.4'"
+ },
+ "herokuVersion": {
+ "name": "herokuVersion",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'24'"
+ },
+ "publishDirectory": {
+ "name": "publishDirectory",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "isStaticSpa": {
+ "name": "isStaticSpa",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createEnvFile": {
+ "name": "createEnvFile",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "registryId": {
+ "name": "registryId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackRegistryId": {
+ "name": "rollbackRegistryId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "githubId": {
+ "name": "githubId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabId": {
+ "name": "gitlabId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaId": {
+ "name": "giteaId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketId": {
+ "name": "bitbucketId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "buildServerId": {
+ "name": "buildServerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "buildRegistryId": {
+ "name": "buildRegistryId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "application_customGitSSHKeyId_ssh-key_sshKeyId_fk": {
+ "name": "application_customGitSSHKeyId_ssh-key_sshKeyId_fk",
+ "tableFrom": "application",
+ "tableTo": "ssh-key",
+ "columnsFrom": [
+ "customGitSSHKeyId"
+ ],
+ "columnsTo": [
+ "sshKeyId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_registryId_registry_registryId_fk": {
+ "name": "application_registryId_registry_registryId_fk",
+ "tableFrom": "application",
+ "tableTo": "registry",
+ "columnsFrom": [
+ "registryId"
+ ],
+ "columnsTo": [
+ "registryId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_rollbackRegistryId_registry_registryId_fk": {
+ "name": "application_rollbackRegistryId_registry_registryId_fk",
+ "tableFrom": "application",
+ "tableTo": "registry",
+ "columnsFrom": [
+ "rollbackRegistryId"
+ ],
+ "columnsTo": [
+ "registryId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_environmentId_environment_environmentId_fk": {
+ "name": "application_environmentId_environment_environmentId_fk",
+ "tableFrom": "application",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "application_githubId_github_githubId_fk": {
+ "name": "application_githubId_github_githubId_fk",
+ "tableFrom": "application",
+ "tableTo": "github",
+ "columnsFrom": [
+ "githubId"
+ ],
+ "columnsTo": [
+ "githubId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_gitlabId_gitlab_gitlabId_fk": {
+ "name": "application_gitlabId_gitlab_gitlabId_fk",
+ "tableFrom": "application",
+ "tableTo": "gitlab",
+ "columnsFrom": [
+ "gitlabId"
+ ],
+ "columnsTo": [
+ "gitlabId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_giteaId_gitea_giteaId_fk": {
+ "name": "application_giteaId_gitea_giteaId_fk",
+ "tableFrom": "application",
+ "tableTo": "gitea",
+ "columnsFrom": [
+ "giteaId"
+ ],
+ "columnsTo": [
+ "giteaId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_bitbucketId_bitbucket_bitbucketId_fk": {
+ "name": "application_bitbucketId_bitbucket_bitbucketId_fk",
+ "tableFrom": "application",
+ "tableTo": "bitbucket",
+ "columnsFrom": [
+ "bitbucketId"
+ ],
+ "columnsTo": [
+ "bitbucketId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_serverId_server_serverId_fk": {
+ "name": "application_serverId_server_serverId_fk",
+ "tableFrom": "application",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "application_buildServerId_server_serverId_fk": {
+ "name": "application_buildServerId_server_serverId_fk",
+ "tableFrom": "application",
+ "tableTo": "server",
+ "columnsFrom": [
+ "buildServerId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_buildRegistryId_registry_registryId_fk": {
+ "name": "application_buildRegistryId_registry_registryId_fk",
+ "tableFrom": "application",
+ "tableTo": "registry",
+ "columnsFrom": [
+ "buildRegistryId"
+ ],
+ "columnsTo": [
+ "registryId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "application_appName_unique": {
+ "name": "application_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.audit_log": {
+ "name": "audit_log",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_email": {
+ "name": "user_email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_role": {
+ "name": "user_role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "action": {
+ "name": "action",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "resource_type": {
+ "name": "resource_type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "resource_id": {
+ "name": "resource_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "resource_name": {
+ "name": "resource_name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "auditLog_organizationId_idx": {
+ "name": "auditLog_organizationId_idx",
+ "columns": [
+ {
+ "expression": "organization_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "auditLog_userId_idx": {
+ "name": "auditLog_userId_idx",
+ "columns": [
+ {
+ "expression": "user_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "auditLog_createdAt_idx": {
+ "name": "auditLog_createdAt_idx",
+ "columns": [
+ {
+ "expression": "created_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "audit_log_organization_id_organization_id_fk": {
+ "name": "audit_log_organization_id_organization_id_fk",
+ "tableFrom": "audit_log",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "audit_log_user_id_user_id_fk": {
+ "name": "audit_log_user_id_user_id_fk",
+ "tableFrom": "audit_log",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.backup": {
+ "name": "backup",
+ "schema": "",
+ "columns": {
+ "backupId": {
+ "name": "backupId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "schedule": {
+ "name": "schedule",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "database": {
+ "name": "database",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "prefix": {
+ "name": "prefix",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "customName": {
+ "name": "customName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serviceName": {
+ "name": "serviceName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "destinationId": {
+ "name": "destinationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "keepLatestCount": {
+ "name": "keepLatestCount",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "includeEncryptionKey": {
+ "name": "includeEncryptionKey",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "backupType": {
+ "name": "backupType",
+ "type": "backupType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'database'"
+ },
+ "databaseType": {
+ "name": "databaseType",
+ "type": "databaseType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "postgresId": {
+ "name": "postgresId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mariadbId": {
+ "name": "mariadbId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mysqlId": {
+ "name": "mysqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mongoId": {
+ "name": "mongoId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "libsqlId": {
+ "name": "libsqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "userId": {
+ "name": "userId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "backup_destinationId_destination_destinationId_fk": {
+ "name": "backup_destinationId_destination_destinationId_fk",
+ "tableFrom": "backup",
+ "tableTo": "destination",
+ "columnsFrom": [
+ "destinationId"
+ ],
+ "columnsTo": [
+ "destinationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_composeId_compose_composeId_fk": {
+ "name": "backup_composeId_compose_composeId_fk",
+ "tableFrom": "backup",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_postgresId_postgres_postgresId_fk": {
+ "name": "backup_postgresId_postgres_postgresId_fk",
+ "tableFrom": "backup",
+ "tableTo": "postgres",
+ "columnsFrom": [
+ "postgresId"
+ ],
+ "columnsTo": [
+ "postgresId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_mariadbId_mariadb_mariadbId_fk": {
+ "name": "backup_mariadbId_mariadb_mariadbId_fk",
+ "tableFrom": "backup",
+ "tableTo": "mariadb",
+ "columnsFrom": [
+ "mariadbId"
+ ],
+ "columnsTo": [
+ "mariadbId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_mysqlId_mysql_mysqlId_fk": {
+ "name": "backup_mysqlId_mysql_mysqlId_fk",
+ "tableFrom": "backup",
+ "tableTo": "mysql",
+ "columnsFrom": [
+ "mysqlId"
+ ],
+ "columnsTo": [
+ "mysqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_mongoId_mongo_mongoId_fk": {
+ "name": "backup_mongoId_mongo_mongoId_fk",
+ "tableFrom": "backup",
+ "tableTo": "mongo",
+ "columnsFrom": [
+ "mongoId"
+ ],
+ "columnsTo": [
+ "mongoId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_libsqlId_libsql_libsqlId_fk": {
+ "name": "backup_libsqlId_libsql_libsqlId_fk",
+ "tableFrom": "backup",
+ "tableTo": "libsql",
+ "columnsFrom": [
+ "libsqlId"
+ ],
+ "columnsTo": [
+ "libsqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_userId_user_id_fk": {
+ "name": "backup_userId_user_id_fk",
+ "tableFrom": "backup",
+ "tableTo": "user",
+ "columnsFrom": [
+ "userId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "backup_appName_unique": {
+ "name": "backup_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.bitbucket": {
+ "name": "bitbucket",
+ "schema": "",
+ "columns": {
+ "bitbucketId": {
+ "name": "bitbucketId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "bitbucketUsername": {
+ "name": "bitbucketUsername",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketEmail": {
+ "name": "bitbucketEmail",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "appPassword": {
+ "name": "appPassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "apiToken": {
+ "name": "apiToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketWorkspaceName": {
+ "name": "bitbucketWorkspaceName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitProviderId": {
+ "name": "gitProviderId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "bitbucket_gitProviderId_git_provider_gitProviderId_fk": {
+ "name": "bitbucket_gitProviderId_git_provider_gitProviderId_fk",
+ "tableFrom": "bitbucket",
+ "tableTo": "git_provider",
+ "columnsFrom": [
+ "gitProviderId"
+ ],
+ "columnsTo": [
+ "gitProviderId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.certificate": {
+ "name": "certificate",
+ "schema": "",
+ "columns": {
+ "certificateId": {
+ "name": "certificateId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "certificateData": {
+ "name": "certificateData",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "privateKey": {
+ "name": "privateKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "certificatePath": {
+ "name": "certificatePath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "autoRenew": {
+ "name": "autoRenew",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "certificate_organizationId_organization_id_fk": {
+ "name": "certificate_organizationId_organization_id_fk",
+ "tableFrom": "certificate",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "certificate_serverId_server_serverId_fk": {
+ "name": "certificate_serverId_server_serverId_fk",
+ "tableFrom": "certificate",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "certificate_certificatePath_unique": {
+ "name": "certificate_certificatePath_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "certificatePath"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.cloud_server": {
+ "name": "cloud_server",
+ "schema": "",
+ "columns": {
+ "cloudServerId": {
+ "name": "cloudServerId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "plan": {
+ "name": "plan",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "status": {
+ "name": "status",
+ "type": "cloudServerStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'pending'"
+ },
+ "providerVmId": {
+ "name": "providerVmId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "providerVpcId": {
+ "name": "providerVpcId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "providerFirewallId": {
+ "name": "providerFirewallId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "zone": {
+ "name": "zone",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "sshKeyId": {
+ "name": "sshKeyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ipAddress": {
+ "name": "ipAddress",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "hostname": {
+ "name": "hostname",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stripeSubscriptionId": {
+ "name": "stripeSubscriptionId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stripeCheckoutSessionId": {
+ "name": "stripeCheckoutSessionId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "suspendedAt": {
+ "name": "suspendedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bandwidthBytes": {
+ "name": "bandwidthBytes",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "bandwidthMeasuredAt": {
+ "name": "bandwidthMeasuredAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "errorMessage": {
+ "name": "errorMessage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "cloud_server_organizationId_organization_id_fk": {
+ "name": "cloud_server_organizationId_organization_id_fk",
+ "tableFrom": "cloud_server",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "cloud_server_serverId_server_serverId_fk": {
+ "name": "cloud_server_serverId_server_serverId_fk",
+ "tableFrom": "cloud_server",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "cloud_server_sshKeyId_ssh-key_sshKeyId_fk": {
+ "name": "cloud_server_sshKeyId_ssh-key_sshKeyId_fk",
+ "tableFrom": "cloud_server",
+ "tableTo": "ssh-key",
+ "columnsFrom": [
+ "sshKeyId"
+ ],
+ "columnsTo": [
+ "sshKeyId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.compose": {
+ "name": "compose",
+ "schema": "",
+ "columns": {
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeFile": {
+ "name": "composeFile",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "refreshToken": {
+ "name": "refreshToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sourceType": {
+ "name": "sourceType",
+ "type": "sourceTypeCompose",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'github'"
+ },
+ "composeType": {
+ "name": "composeType",
+ "type": "composeType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'docker-compose'"
+ },
+ "repository": {
+ "name": "repository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "owner": {
+ "name": "owner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "branch": {
+ "name": "branch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "autoDeploy": {
+ "name": "autoDeploy",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabProjectId": {
+ "name": "gitlabProjectId",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabRepository": {
+ "name": "gitlabRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabOwner": {
+ "name": "gitlabOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabBranch": {
+ "name": "gitlabBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabPathNamespace": {
+ "name": "gitlabPathNamespace",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketRepository": {
+ "name": "bitbucketRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketRepositorySlug": {
+ "name": "bitbucketRepositorySlug",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketOwner": {
+ "name": "bitbucketOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketBranch": {
+ "name": "bitbucketBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaRepository": {
+ "name": "giteaRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaOwner": {
+ "name": "giteaOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaBranch": {
+ "name": "giteaBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitUrl": {
+ "name": "customGitUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitBranch": {
+ "name": "customGitBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitSSHKeyId": {
+ "name": "customGitSSHKeyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "createEnvFile": {
+ "name": "createEnvFile",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "enableSubmodules": {
+ "name": "enableSubmodules",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "composePath": {
+ "name": "composePath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'./docker-compose.yml'"
+ },
+ "suffix": {
+ "name": "suffix",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "randomize": {
+ "name": "randomize",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "isolatedDeployment": {
+ "name": "isolatedDeployment",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "isolatedDeploymentsVolume": {
+ "name": "isolatedDeploymentsVolume",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "pullImages": {
+ "name": "pullImages",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "triggerType": {
+ "name": "triggerType",
+ "type": "triggerType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'push'"
+ },
+ "composeStatus": {
+ "name": "composeStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "icon": {
+ "name": "icon",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "watchPaths": {
+ "name": "watchPaths",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubId": {
+ "name": "githubId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabId": {
+ "name": "gitlabId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketId": {
+ "name": "bitbucketId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaId": {
+ "name": "giteaId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serviceNetworks": {
+ "name": "serviceNetworks",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'[]'::jsonb"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "compose_customGitSSHKeyId_ssh-key_sshKeyId_fk": {
+ "name": "compose_customGitSSHKeyId_ssh-key_sshKeyId_fk",
+ "tableFrom": "compose",
+ "tableTo": "ssh-key",
+ "columnsFrom": [
+ "customGitSSHKeyId"
+ ],
+ "columnsTo": [
+ "sshKeyId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "compose_environmentId_environment_environmentId_fk": {
+ "name": "compose_environmentId_environment_environmentId_fk",
+ "tableFrom": "compose",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "compose_githubId_github_githubId_fk": {
+ "name": "compose_githubId_github_githubId_fk",
+ "tableFrom": "compose",
+ "tableTo": "github",
+ "columnsFrom": [
+ "githubId"
+ ],
+ "columnsTo": [
+ "githubId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "compose_gitlabId_gitlab_gitlabId_fk": {
+ "name": "compose_gitlabId_gitlab_gitlabId_fk",
+ "tableFrom": "compose",
+ "tableTo": "gitlab",
+ "columnsFrom": [
+ "gitlabId"
+ ],
+ "columnsTo": [
+ "gitlabId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "compose_bitbucketId_bitbucket_bitbucketId_fk": {
+ "name": "compose_bitbucketId_bitbucket_bitbucketId_fk",
+ "tableFrom": "compose",
+ "tableTo": "bitbucket",
+ "columnsFrom": [
+ "bitbucketId"
+ ],
+ "columnsTo": [
+ "bitbucketId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "compose_giteaId_gitea_giteaId_fk": {
+ "name": "compose_giteaId_gitea_giteaId_fk",
+ "tableFrom": "compose",
+ "tableTo": "gitea",
+ "columnsFrom": [
+ "giteaId"
+ ],
+ "columnsTo": [
+ "giteaId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "compose_serverId_server_serverId_fk": {
+ "name": "compose_serverId_server_serverId_fk",
+ "tableFrom": "compose",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.deployment": {
+ "name": "deployment",
+ "schema": "",
+ "columns": {
+ "deploymentId": {
+ "name": "deploymentId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "status": {
+ "name": "status",
+ "type": "deploymentStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'running'"
+ },
+ "logPath": {
+ "name": "logPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pid": {
+ "name": "pid",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "isPreviewDeployment": {
+ "name": "isPreviewDeployment",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "previewDeploymentId": {
+ "name": "previewDeploymentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "startedAt": {
+ "name": "startedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "finishedAt": {
+ "name": "finishedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "errorMessage": {
+ "name": "errorMessage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "scheduleId": {
+ "name": "scheduleId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "backupId": {
+ "name": "backupId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackId": {
+ "name": "rollbackId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "volumeBackupId": {
+ "name": "volumeBackupId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "buildServerId": {
+ "name": "buildServerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "deployment_applicationId_application_applicationId_fk": {
+ "name": "deployment_applicationId_application_applicationId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_composeId_compose_composeId_fk": {
+ "name": "deployment_composeId_compose_composeId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_serverId_server_serverId_fk": {
+ "name": "deployment_serverId_server_serverId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_previewDeploymentId_preview_deployments_previewDeploymentId_fk": {
+ "name": "deployment_previewDeploymentId_preview_deployments_previewDeploymentId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "preview_deployments",
+ "columnsFrom": [
+ "previewDeploymentId"
+ ],
+ "columnsTo": [
+ "previewDeploymentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_scheduleId_schedule_scheduleId_fk": {
+ "name": "deployment_scheduleId_schedule_scheduleId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "schedule",
+ "columnsFrom": [
+ "scheduleId"
+ ],
+ "columnsTo": [
+ "scheduleId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_backupId_backup_backupId_fk": {
+ "name": "deployment_backupId_backup_backupId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "backup",
+ "columnsFrom": [
+ "backupId"
+ ],
+ "columnsTo": [
+ "backupId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_rollbackId_rollback_rollbackId_fk": {
+ "name": "deployment_rollbackId_rollback_rollbackId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "rollback",
+ "columnsFrom": [
+ "rollbackId"
+ ],
+ "columnsTo": [
+ "rollbackId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_volumeBackupId_volume_backup_volumeBackupId_fk": {
+ "name": "deployment_volumeBackupId_volume_backup_volumeBackupId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "volume_backup",
+ "columnsFrom": [
+ "volumeBackupId"
+ ],
+ "columnsTo": [
+ "volumeBackupId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_buildServerId_server_serverId_fk": {
+ "name": "deployment_buildServerId_server_serverId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "server",
+ "columnsFrom": [
+ "buildServerId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.destination": {
+ "name": "destination",
+ "schema": "",
+ "columns": {
+ "destinationId": {
+ "name": "destinationId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "provider": {
+ "name": "provider",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "accessKey": {
+ "name": "accessKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "secretAccessKey": {
+ "name": "secretAccessKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "bucket": {
+ "name": "bucket",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "region": {
+ "name": "region",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "endpoint": {
+ "name": "endpoint",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "additionalFlags": {
+ "name": "additionalFlags",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "destination_organizationId_organization_id_fk": {
+ "name": "destination_organizationId_organization_id_fk",
+ "tableFrom": "destination",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.dns_provider": {
+ "name": "dns_provider",
+ "schema": "",
+ "columns": {
+ "dnsProviderId": {
+ "name": "dnsProviderId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "providerType": {
+ "name": "providerType",
+ "type": "DnsProviderType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "config": {
+ "name": "config",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "dns_provider_org_name_idx": {
+ "name": "dns_provider_org_name_idx",
+ "columns": [
+ {
+ "expression": "organizationId",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "name",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "dns_provider_organizationId_organization_id_fk": {
+ "name": "dns_provider_organizationId_organization_id_fk",
+ "tableFrom": "dns_provider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.domain": {
+ "name": "domain",
+ "schema": "",
+ "columns": {
+ "domainId": {
+ "name": "domainId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "host": {
+ "name": "host",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "https": {
+ "name": "https",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "port": {
+ "name": "port",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "default": 3000
+ },
+ "customEntrypoint": {
+ "name": "customEntrypoint",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "path": {
+ "name": "path",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "serviceName": {
+ "name": "serviceName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "domainType": {
+ "name": "domainType",
+ "type": "domainType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'application'"
+ },
+ "uniqueConfigKey": {
+ "name": "uniqueConfigKey",
+ "type": "serial",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customCertResolver": {
+ "name": "customCertResolver",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewDeploymentId": {
+ "name": "previewDeploymentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "certificateType": {
+ "name": "certificateType",
+ "type": "certificateType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'none'"
+ },
+ "internalPath": {
+ "name": "internalPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "stripPath": {
+ "name": "stripPath",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "middlewares": {
+ "name": "middlewares",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "ARRAY[]::text[]"
+ },
+ "forwardAuthEnabled": {
+ "name": "forwardAuthEnabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "domain_composeId_compose_composeId_fk": {
+ "name": "domain_composeId_compose_composeId_fk",
+ "tableFrom": "domain",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "domain_applicationId_application_applicationId_fk": {
+ "name": "domain_applicationId_application_applicationId_fk",
+ "tableFrom": "domain",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "domain_previewDeploymentId_preview_deployments_previewDeploymentId_fk": {
+ "name": "domain_previewDeploymentId_preview_deployments_previewDeploymentId_fk",
+ "tableFrom": "domain",
+ "tableTo": "preview_deployments",
+ "columnsFrom": [
+ "previewDeploymentId"
+ ],
+ "columnsTo": [
+ "previewDeploymentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.environment": {
+ "name": "environment",
+ "schema": "",
+ "columns": {
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "projectId": {
+ "name": "projectId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "isDefault": {
+ "name": "isDefault",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "environment_projectId_project_projectId_fk": {
+ "name": "environment_projectId_project_projectId_fk",
+ "tableFrom": "environment",
+ "tableTo": "project",
+ "columnsFrom": [
+ "projectId"
+ ],
+ "columnsTo": [
+ "projectId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forward_auth_settings": {
+ "name": "forward_auth_settings",
+ "schema": "",
+ "columns": {
+ "forwardAuthSettingsId": {
+ "name": "forwardAuthSettingsId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "authDomain": {
+ "name": "authDomain",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "baseDomain": {
+ "name": "baseDomain",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "https": {
+ "name": "https",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "certificateType": {
+ "name": "certificateType",
+ "type": "certificateType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'letsencrypt'"
+ },
+ "customCertResolver": {
+ "name": "customCertResolver",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "providerId": {
+ "name": "providerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "forward_auth_settings_providerId_sso_provider_provider_id_fk": {
+ "name": "forward_auth_settings_providerId_sso_provider_provider_id_fk",
+ "tableFrom": "forward_auth_settings",
+ "tableTo": "sso_provider",
+ "columnsFrom": [
+ "providerId"
+ ],
+ "columnsTo": [
+ "provider_id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "forward_auth_settings_serverId_server_serverId_fk": {
+ "name": "forward_auth_settings_serverId_server_serverId_fk",
+ "tableFrom": "forward_auth_settings",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "forward_auth_settings_serverId_unique": {
+ "name": "forward_auth_settings_serverId_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "serverId"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.git_provider": {
+ "name": "git_provider",
+ "schema": "",
+ "columns": {
+ "gitProviderId": {
+ "name": "gitProviderId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "providerType": {
+ "name": "providerType",
+ "type": "gitProviderType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'github'"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "userId": {
+ "name": "userId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "sharedWithOrganization": {
+ "name": "sharedWithOrganization",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "git_provider_organizationId_organization_id_fk": {
+ "name": "git_provider_organizationId_organization_id_fk",
+ "tableFrom": "git_provider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "git_provider_userId_user_id_fk": {
+ "name": "git_provider_userId_user_id_fk",
+ "tableFrom": "git_provider",
+ "tableTo": "user",
+ "columnsFrom": [
+ "userId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.gitea": {
+ "name": "gitea",
+ "schema": "",
+ "columns": {
+ "giteaId": {
+ "name": "giteaId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "giteaUrl": {
+ "name": "giteaUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'https://gitea.com'"
+ },
+ "giteaInternalUrl": {
+ "name": "giteaInternalUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "redirect_uri": {
+ "name": "redirect_uri",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "client_id": {
+ "name": "client_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "client_secret": {
+ "name": "client_secret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitProviderId": {
+ "name": "gitProviderId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "access_token": {
+ "name": "access_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refresh_token": {
+ "name": "refresh_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "scopes": {
+ "name": "scopes",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'repo,repo:status,read:user,read:org'"
+ },
+ "last_authenticated_at": {
+ "name": "last_authenticated_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "gitea_gitProviderId_git_provider_gitProviderId_fk": {
+ "name": "gitea_gitProviderId_git_provider_gitProviderId_fk",
+ "tableFrom": "gitea",
+ "tableTo": "git_provider",
+ "columnsFrom": [
+ "gitProviderId"
+ ],
+ "columnsTo": [
+ "gitProviderId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.github": {
+ "name": "github",
+ "schema": "",
+ "columns": {
+ "githubId": {
+ "name": "githubId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "githubAppName": {
+ "name": "githubAppName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubAppId": {
+ "name": "githubAppId",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubClientId": {
+ "name": "githubClientId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubClientSecret": {
+ "name": "githubClientSecret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubInstallationId": {
+ "name": "githubInstallationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubPrivateKey": {
+ "name": "githubPrivateKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubWebhookSecret": {
+ "name": "githubWebhookSecret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubUrl": {
+ "name": "githubUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'https://github.com'"
+ },
+ "gitProviderId": {
+ "name": "gitProviderId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "github_gitProviderId_git_provider_gitProviderId_fk": {
+ "name": "github_gitProviderId_git_provider_gitProviderId_fk",
+ "tableFrom": "github",
+ "tableTo": "git_provider",
+ "columnsFrom": [
+ "gitProviderId"
+ ],
+ "columnsTo": [
+ "gitProviderId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.gitlab": {
+ "name": "gitlab",
+ "schema": "",
+ "columns": {
+ "gitlabId": {
+ "name": "gitlabId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "gitlabUrl": {
+ "name": "gitlabUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'https://gitlab.com'"
+ },
+ "gitlabInternalUrl": {
+ "name": "gitlabInternalUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "application_id": {
+ "name": "application_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "redirect_uri": {
+ "name": "redirect_uri",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "secret": {
+ "name": "secret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "access_token": {
+ "name": "access_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refresh_token": {
+ "name": "refresh_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "group_name": {
+ "name": "group_name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitProviderId": {
+ "name": "gitProviderId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "gitlab_gitProviderId_git_provider_gitProviderId_fk": {
+ "name": "gitlab_gitProviderId_git_provider_gitProviderId_fk",
+ "tableFrom": "gitlab",
+ "tableTo": "git_provider",
+ "columnsFrom": [
+ "gitProviderId"
+ ],
+ "columnsTo": [
+ "gitProviderId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.libsql": {
+ "name": "libsql",
+ "schema": "",
+ "columns": {
+ "libsqlId": {
+ "name": "libsqlId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "databaseUser": {
+ "name": "databaseUser",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databasePassword": {
+ "name": "databasePassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "sqldNode": {
+ "name": "sqldNode",
+ "type": "sqldNode",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'primary'"
+ },
+ "sqldPrimaryUrl": {
+ "name": "sqldPrimaryUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enableNamespaces": {
+ "name": "enableNamespaces",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalGRPCPort": {
+ "name": "externalGRPCPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalAdminPort": {
+ "name": "externalAdminPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "libsql_environmentId_environment_environmentId_fk": {
+ "name": "libsql_environmentId_environment_environmentId_fk",
+ "tableFrom": "libsql",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "libsql_serverId_server_serverId_fk": {
+ "name": "libsql_serverId_server_serverId_fk",
+ "tableFrom": "libsql",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "libsql_appName_unique": {
+ "name": "libsql_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.mariadb": {
+ "name": "mariadb",
+ "schema": "",
+ "columns": {
+ "mariadbId": {
+ "name": "mariadbId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "databaseName": {
+ "name": "databaseName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databaseUser": {
+ "name": "databaseUser",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databasePassword": {
+ "name": "databasePassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "rootPassword": {
+ "name": "rootPassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "mariadb_environmentId_environment_environmentId_fk": {
+ "name": "mariadb_environmentId_environment_environmentId_fk",
+ "tableFrom": "mariadb",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mariadb_serverId_server_serverId_fk": {
+ "name": "mariadb_serverId_server_serverId_fk",
+ "tableFrom": "mariadb",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "mariadb_appName_unique": {
+ "name": "mariadb_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.mongo": {
+ "name": "mongo",
+ "schema": "",
+ "columns": {
+ "mongoId": {
+ "name": "mongoId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "databaseUser": {
+ "name": "databaseUser",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databasePassword": {
+ "name": "databasePassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'mongo:8'"
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicaSets": {
+ "name": "replicaSets",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "mongo_environmentId_environment_environmentId_fk": {
+ "name": "mongo_environmentId_environment_environmentId_fk",
+ "tableFrom": "mongo",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mongo_serverId_server_serverId_fk": {
+ "name": "mongo_serverId_server_serverId_fk",
+ "tableFrom": "mongo",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "mongo_appName_unique": {
+ "name": "mongo_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.mount": {
+ "name": "mount",
+ "schema": "",
+ "columns": {
+ "mountId": {
+ "name": "mountId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "type": {
+ "name": "type",
+ "type": "mountType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "hostPath": {
+ "name": "hostPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "volumeName": {
+ "name": "volumeName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "filePath": {
+ "name": "filePath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "content": {
+ "name": "content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serviceType": {
+ "name": "serviceType",
+ "type": "serviceType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'application'"
+ },
+ "mountPath": {
+ "name": "mountPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "libsqlId": {
+ "name": "libsqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mariadbId": {
+ "name": "mariadbId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mongoId": {
+ "name": "mongoId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mysqlId": {
+ "name": "mysqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "postgresId": {
+ "name": "postgresId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "redisId": {
+ "name": "redisId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "mount_applicationId_application_applicationId_fk": {
+ "name": "mount_applicationId_application_applicationId_fk",
+ "tableFrom": "mount",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_composeId_compose_composeId_fk": {
+ "name": "mount_composeId_compose_composeId_fk",
+ "tableFrom": "mount",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_libsqlId_libsql_libsqlId_fk": {
+ "name": "mount_libsqlId_libsql_libsqlId_fk",
+ "tableFrom": "mount",
+ "tableTo": "libsql",
+ "columnsFrom": [
+ "libsqlId"
+ ],
+ "columnsTo": [
+ "libsqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_mariadbId_mariadb_mariadbId_fk": {
+ "name": "mount_mariadbId_mariadb_mariadbId_fk",
+ "tableFrom": "mount",
+ "tableTo": "mariadb",
+ "columnsFrom": [
+ "mariadbId"
+ ],
+ "columnsTo": [
+ "mariadbId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_mongoId_mongo_mongoId_fk": {
+ "name": "mount_mongoId_mongo_mongoId_fk",
+ "tableFrom": "mount",
+ "tableTo": "mongo",
+ "columnsFrom": [
+ "mongoId"
+ ],
+ "columnsTo": [
+ "mongoId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_mysqlId_mysql_mysqlId_fk": {
+ "name": "mount_mysqlId_mysql_mysqlId_fk",
+ "tableFrom": "mount",
+ "tableTo": "mysql",
+ "columnsFrom": [
+ "mysqlId"
+ ],
+ "columnsTo": [
+ "mysqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_postgresId_postgres_postgresId_fk": {
+ "name": "mount_postgresId_postgres_postgresId_fk",
+ "tableFrom": "mount",
+ "tableTo": "postgres",
+ "columnsFrom": [
+ "postgresId"
+ ],
+ "columnsTo": [
+ "postgresId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_redisId_redis_redisId_fk": {
+ "name": "mount_redisId_redis_redisId_fk",
+ "tableFrom": "mount",
+ "tableTo": "redis",
+ "columnsFrom": [
+ "redisId"
+ ],
+ "columnsTo": [
+ "redisId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.mysql": {
+ "name": "mysql",
+ "schema": "",
+ "columns": {
+ "mysqlId": {
+ "name": "mysqlId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "databaseName": {
+ "name": "databaseName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databaseUser": {
+ "name": "databaseUser",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databasePassword": {
+ "name": "databasePassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "rootPassword": {
+ "name": "rootPassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "mysql_environmentId_environment_environmentId_fk": {
+ "name": "mysql_environmentId_environment_environmentId_fk",
+ "tableFrom": "mysql",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mysql_serverId_server_serverId_fk": {
+ "name": "mysql_serverId_server_serverId_fk",
+ "tableFrom": "mysql",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "mysql_appName_unique": {
+ "name": "mysql_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.network": {
+ "name": "network",
+ "schema": "",
+ "columns": {
+ "networkId": {
+ "name": "networkId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "dockerId": {
+ "name": "dockerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "driver": {
+ "name": "driver",
+ "type": "networkDriver",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'bridge'"
+ },
+ "internal": {
+ "name": "internal",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "attachable": {
+ "name": "attachable",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "enableIPv4": {
+ "name": "enableIPv4",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "enableIPv6": {
+ "name": "enableIPv6",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "mtu": {
+ "name": "mtu",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ipam": {
+ "name": "ipam",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'::jsonb"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "network_organizationId_organization_id_fk": {
+ "name": "network_organizationId_organization_id_fk",
+ "tableFrom": "network",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "network_serverId_server_serverId_fk": {
+ "name": "network_serverId_server_serverId_fk",
+ "tableFrom": "network",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.custom": {
+ "name": "custom",
+ "schema": "",
+ "columns": {
+ "customId": {
+ "name": "customId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "endpoint": {
+ "name": "endpoint",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "headers": {
+ "name": "headers",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.discord": {
+ "name": "discord",
+ "schema": "",
+ "columns": {
+ "discordId": {
+ "name": "discordId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "webhookUrl": {
+ "name": "webhookUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "decoration": {
+ "name": "decoration",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.email": {
+ "name": "email",
+ "schema": "",
+ "columns": {
+ "emailId": {
+ "name": "emailId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "smtpServer": {
+ "name": "smtpServer",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "smtpPort": {
+ "name": "smtpPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "fromAddress": {
+ "name": "fromAddress",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "toAddress": {
+ "name": "toAddress",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.gotify": {
+ "name": "gotify",
+ "schema": "",
+ "columns": {
+ "gotifyId": {
+ "name": "gotifyId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "serverUrl": {
+ "name": "serverUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appToken": {
+ "name": "appToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "priority": {
+ "name": "priority",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 5
+ },
+ "decoration": {
+ "name": "decoration",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.lark": {
+ "name": "lark",
+ "schema": "",
+ "columns": {
+ "larkId": {
+ "name": "larkId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "webhookUrl": {
+ "name": "webhookUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.mattermost": {
+ "name": "mattermost",
+ "schema": "",
+ "columns": {
+ "mattermostId": {
+ "name": "mattermostId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "webhookUrl": {
+ "name": "webhookUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "channel": {
+ "name": "channel",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.notification": {
+ "name": "notification",
+ "schema": "",
+ "columns": {
+ "notificationId": {
+ "name": "notificationId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appDeploy": {
+ "name": "appDeploy",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "appBuildError": {
+ "name": "appBuildError",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "databaseBackup": {
+ "name": "databaseBackup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "volumeBackup": {
+ "name": "volumeBackup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "dokployRestart": {
+ "name": "dokployRestart",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "dokployBackup": {
+ "name": "dokployBackup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "dockerCleanup": {
+ "name": "dockerCleanup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "serverThreshold": {
+ "name": "serverThreshold",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "notificationType": {
+ "name": "notificationType",
+ "type": "notificationType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "slackId": {
+ "name": "slackId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "telegramId": {
+ "name": "telegramId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "discordId": {
+ "name": "discordId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "emailId": {
+ "name": "emailId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "resendId": {
+ "name": "resendId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gotifyId": {
+ "name": "gotifyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ntfyId": {
+ "name": "ntfyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mattermostId": {
+ "name": "mattermostId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customId": {
+ "name": "customId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "larkId": {
+ "name": "larkId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "pushoverId": {
+ "name": "pushoverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "teamsId": {
+ "name": "teamsId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "notification_slackId_slack_slackId_fk": {
+ "name": "notification_slackId_slack_slackId_fk",
+ "tableFrom": "notification",
+ "tableTo": "slack",
+ "columnsFrom": [
+ "slackId"
+ ],
+ "columnsTo": [
+ "slackId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_telegramId_telegram_telegramId_fk": {
+ "name": "notification_telegramId_telegram_telegramId_fk",
+ "tableFrom": "notification",
+ "tableTo": "telegram",
+ "columnsFrom": [
+ "telegramId"
+ ],
+ "columnsTo": [
+ "telegramId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_discordId_discord_discordId_fk": {
+ "name": "notification_discordId_discord_discordId_fk",
+ "tableFrom": "notification",
+ "tableTo": "discord",
+ "columnsFrom": [
+ "discordId"
+ ],
+ "columnsTo": [
+ "discordId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_emailId_email_emailId_fk": {
+ "name": "notification_emailId_email_emailId_fk",
+ "tableFrom": "notification",
+ "tableTo": "email",
+ "columnsFrom": [
+ "emailId"
+ ],
+ "columnsTo": [
+ "emailId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_resendId_resend_resendId_fk": {
+ "name": "notification_resendId_resend_resendId_fk",
+ "tableFrom": "notification",
+ "tableTo": "resend",
+ "columnsFrom": [
+ "resendId"
+ ],
+ "columnsTo": [
+ "resendId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_gotifyId_gotify_gotifyId_fk": {
+ "name": "notification_gotifyId_gotify_gotifyId_fk",
+ "tableFrom": "notification",
+ "tableTo": "gotify",
+ "columnsFrom": [
+ "gotifyId"
+ ],
+ "columnsTo": [
+ "gotifyId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_ntfyId_ntfy_ntfyId_fk": {
+ "name": "notification_ntfyId_ntfy_ntfyId_fk",
+ "tableFrom": "notification",
+ "tableTo": "ntfy",
+ "columnsFrom": [
+ "ntfyId"
+ ],
+ "columnsTo": [
+ "ntfyId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_mattermostId_mattermost_mattermostId_fk": {
+ "name": "notification_mattermostId_mattermost_mattermostId_fk",
+ "tableFrom": "notification",
+ "tableTo": "mattermost",
+ "columnsFrom": [
+ "mattermostId"
+ ],
+ "columnsTo": [
+ "mattermostId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_customId_custom_customId_fk": {
+ "name": "notification_customId_custom_customId_fk",
+ "tableFrom": "notification",
+ "tableTo": "custom",
+ "columnsFrom": [
+ "customId"
+ ],
+ "columnsTo": [
+ "customId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_larkId_lark_larkId_fk": {
+ "name": "notification_larkId_lark_larkId_fk",
+ "tableFrom": "notification",
+ "tableTo": "lark",
+ "columnsFrom": [
+ "larkId"
+ ],
+ "columnsTo": [
+ "larkId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_pushoverId_pushover_pushoverId_fk": {
+ "name": "notification_pushoverId_pushover_pushoverId_fk",
+ "tableFrom": "notification",
+ "tableTo": "pushover",
+ "columnsFrom": [
+ "pushoverId"
+ ],
+ "columnsTo": [
+ "pushoverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_teamsId_teams_teamsId_fk": {
+ "name": "notification_teamsId_teams_teamsId_fk",
+ "tableFrom": "notification",
+ "tableTo": "teams",
+ "columnsFrom": [
+ "teamsId"
+ ],
+ "columnsTo": [
+ "teamsId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_organizationId_organization_id_fk": {
+ "name": "notification_organizationId_organization_id_fk",
+ "tableFrom": "notification",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.ntfy": {
+ "name": "ntfy",
+ "schema": "",
+ "columns": {
+ "ntfyId": {
+ "name": "ntfyId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "serverUrl": {
+ "name": "serverUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "topic": {
+ "name": "topic",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "accessToken": {
+ "name": "accessToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "priority": {
+ "name": "priority",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 3
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.pushover": {
+ "name": "pushover",
+ "schema": "",
+ "columns": {
+ "pushoverId": {
+ "name": "pushoverId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "userKey": {
+ "name": "userKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "apiToken": {
+ "name": "apiToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "priority": {
+ "name": "priority",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "retry": {
+ "name": "retry",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "expire": {
+ "name": "expire",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.resend": {
+ "name": "resend",
+ "schema": "",
+ "columns": {
+ "resendId": {
+ "name": "resendId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "apiKey": {
+ "name": "apiKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "fromAddress": {
+ "name": "fromAddress",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "toAddress": {
+ "name": "toAddress",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.slack": {
+ "name": "slack",
+ "schema": "",
+ "columns": {
+ "slackId": {
+ "name": "slackId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "webhookUrl": {
+ "name": "webhookUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "channel": {
+ "name": "channel",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.teams": {
+ "name": "teams",
+ "schema": "",
+ "columns": {
+ "teamsId": {
+ "name": "teamsId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "webhookUrl": {
+ "name": "webhookUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.telegram": {
+ "name": "telegram",
+ "schema": "",
+ "columns": {
+ "telegramId": {
+ "name": "telegramId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "botToken": {
+ "name": "botToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "chatId": {
+ "name": "chatId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "messageThreadId": {
+ "name": "messageThreadId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.patch": {
+ "name": "patch",
+ "schema": "",
+ "columns": {
+ "patchId": {
+ "name": "patchId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "type": {
+ "name": "type",
+ "type": "patchType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'update'"
+ },
+ "filePath": {
+ "name": "filePath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "content": {
+ "name": "content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "patch_applicationId_application_applicationId_fk": {
+ "name": "patch_applicationId_application_applicationId_fk",
+ "tableFrom": "patch",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "patch_composeId_compose_composeId_fk": {
+ "name": "patch_composeId_compose_composeId_fk",
+ "tableFrom": "patch",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "patch_filepath_application_unique": {
+ "name": "patch_filepath_application_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "filePath",
+ "applicationId"
+ ]
+ },
+ "patch_filepath_compose_unique": {
+ "name": "patch_filepath_compose_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "filePath",
+ "composeId"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.port": {
+ "name": "port",
+ "schema": "",
+ "columns": {
+ "portId": {
+ "name": "portId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "publishedPort": {
+ "name": "publishedPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "publishMode": {
+ "name": "publishMode",
+ "type": "publishModeType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'host'"
+ },
+ "targetPort": {
+ "name": "targetPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "protocol": {
+ "name": "protocol",
+ "type": "protocolType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "port_applicationId_application_applicationId_fk": {
+ "name": "port_applicationId_application_applicationId_fk",
+ "tableFrom": "port",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.postgres": {
+ "name": "postgres",
+ "schema": "",
+ "columns": {
+ "postgresId": {
+ "name": "postgresId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databaseName": {
+ "name": "databaseName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databaseUser": {
+ "name": "databaseUser",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databasePassword": {
+ "name": "databasePassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "postgres_environmentId_environment_environmentId_fk": {
+ "name": "postgres_environmentId_environment_environmentId_fk",
+ "tableFrom": "postgres",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "postgres_serverId_server_serverId_fk": {
+ "name": "postgres_serverId_server_serverId_fk",
+ "tableFrom": "postgres",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "postgres_appName_unique": {
+ "name": "postgres_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.preview_deployments": {
+ "name": "preview_deployments",
+ "schema": "",
+ "columns": {
+ "previewDeploymentId": {
+ "name": "previewDeploymentId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "branch": {
+ "name": "branch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pullRequestId": {
+ "name": "pullRequestId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pullRequestNumber": {
+ "name": "pullRequestNumber",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pullRequestURL": {
+ "name": "pullRequestURL",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pullRequestTitle": {
+ "name": "pullRequestTitle",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pullRequestCommentId": {
+ "name": "pullRequestCommentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "previewStatus": {
+ "name": "previewStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "domainId": {
+ "name": "domainId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "expiresAt": {
+ "name": "expiresAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "preview_deployments_applicationId_application_applicationId_fk": {
+ "name": "preview_deployments_applicationId_application_applicationId_fk",
+ "tableFrom": "preview_deployments",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "preview_deployments_domainId_domain_domainId_fk": {
+ "name": "preview_deployments_domainId_domain_domainId_fk",
+ "tableFrom": "preview_deployments",
+ "tableTo": "domain",
+ "columnsFrom": [
+ "domainId"
+ ],
+ "columnsTo": [
+ "domainId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "preview_deployments_appName_unique": {
+ "name": "preview_deployments_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.project": {
+ "name": "project",
+ "schema": "",
+ "columns": {
+ "projectId": {
+ "name": "projectId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "project_organizationId_organization_id_fk": {
+ "name": "project_organizationId_organization_id_fk",
+ "tableFrom": "project",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.redirect": {
+ "name": "redirect",
+ "schema": "",
+ "columns": {
+ "redirectId": {
+ "name": "redirectId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "regex": {
+ "name": "regex",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "replacement": {
+ "name": "replacement",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "permanent": {
+ "name": "permanent",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "uniqueConfigKey": {
+ "name": "uniqueConfigKey",
+ "type": "serial",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "redirect_applicationId_application_applicationId_fk": {
+ "name": "redirect_applicationId_application_applicationId_fk",
+ "tableFrom": "redirect",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.redis": {
+ "name": "redis",
+ "schema": "",
+ "columns": {
+ "redisId": {
+ "name": "redisId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "redis_environmentId_environment_environmentId_fk": {
+ "name": "redis_environmentId_environment_environmentId_fk",
+ "tableFrom": "redis",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "redis_serverId_server_serverId_fk": {
+ "name": "redis_serverId_server_serverId_fk",
+ "tableFrom": "redis",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "redis_appName_unique": {
+ "name": "redis_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.registry": {
+ "name": "registry",
+ "schema": "",
+ "columns": {
+ "registryId": {
+ "name": "registryId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "registryName": {
+ "name": "registryName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "imagePrefix": {
+ "name": "imagePrefix",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "registryUrl": {
+ "name": "registryUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "selfHosted": {
+ "name": "selfHosted",
+ "type": "RegistryType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'cloud'"
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "registry_organizationId_organization_id_fk": {
+ "name": "registry_organizationId_organization_id_fk",
+ "tableFrom": "registry",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.rollback": {
+ "name": "rollback",
+ "schema": "",
+ "columns": {
+ "rollbackId": {
+ "name": "rollbackId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "deploymentId": {
+ "name": "deploymentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "version": {
+ "name": "version",
+ "type": "serial",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "image": {
+ "name": "image",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "fullContext": {
+ "name": "fullContext",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "rollback_deploymentId_deployment_deploymentId_fk": {
+ "name": "rollback_deploymentId_deployment_deploymentId_fk",
+ "tableFrom": "rollback",
+ "tableTo": "deployment",
+ "columnsFrom": [
+ "deploymentId"
+ ],
+ "columnsTo": [
+ "deploymentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.sandbox": {
+ "name": "sandbox",
+ "schema": "",
+ "columns": {
+ "sandboxId": {
+ "name": "sandboxId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "image": {
+ "name": "image",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "template": {
+ "name": "template",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "containerId": {
+ "name": "containerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "status": {
+ "name": "status",
+ "type": "sandboxStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'creating'"
+ },
+ "cpu": {
+ "name": "cpu",
+ "type": "real",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "memoryMb": {
+ "name": "memoryMb",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 512
+ },
+ "pidsLimit": {
+ "name": "pidsLimit",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 256
+ },
+ "timeoutMs": {
+ "name": "timeoutMs",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 300000
+ },
+ "expiresAt": {
+ "name": "expiresAt",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "deadlineAt": {
+ "name": "deadlineAt",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "lastActivityAt": {
+ "name": "lastActivityAt",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkMode": {
+ "name": "networkMode",
+ "type": "sandboxNetworkMode",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'isolated'"
+ },
+ "envVars": {
+ "name": "envVars",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "workdir": {
+ "name": "workdir",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'/home/user'"
+ },
+ "user": {
+ "name": "user",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "runtime": {
+ "name": "runtime",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "killedAt": {
+ "name": "killedAt",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "sandbox_organizationId_organization_id_fk": {
+ "name": "sandbox_organizationId_organization_id_fk",
+ "tableFrom": "sandbox",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "sandbox_serverId_server_serverId_fk": {
+ "name": "sandbox_serverId_server_serverId_fk",
+ "tableFrom": "sandbox",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.schedule": {
+ "name": "schedule",
+ "schema": "",
+ "columns": {
+ "scheduleId": {
+ "name": "scheduleId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cronExpression": {
+ "name": "cronExpression",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serviceName": {
+ "name": "serviceName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "shellType": {
+ "name": "shellType",
+ "type": "shellType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'bash'"
+ },
+ "scheduleType": {
+ "name": "scheduleType",
+ "type": "scheduleType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'application'"
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "script": {
+ "name": "script",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "timezone": {
+ "name": "timezone",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "schedule_applicationId_application_applicationId_fk": {
+ "name": "schedule_applicationId_application_applicationId_fk",
+ "tableFrom": "schedule",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "schedule_composeId_compose_composeId_fk": {
+ "name": "schedule_composeId_compose_composeId_fk",
+ "tableFrom": "schedule",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "schedule_serverId_server_serverId_fk": {
+ "name": "schedule_serverId_server_serverId_fk",
+ "tableFrom": "schedule",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "schedule_organizationId_organization_id_fk": {
+ "name": "schedule_organizationId_organization_id_fk",
+ "tableFrom": "schedule",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.scim_provider": {
+ "name": "scim_provider",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "provider_id": {
+ "name": "provider_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "scim_token": {
+ "name": "scim_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "scim_provider_organization_id_organization_id_fk": {
+ "name": "scim_provider_organization_id_organization_id_fk",
+ "tableFrom": "scim_provider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "scim_provider_provider_id_unique": {
+ "name": "scim_provider_provider_id_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "provider_id"
+ ]
+ },
+ "scim_provider_scim_token_unique": {
+ "name": "scim_provider_scim_token_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "scim_token"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.security": {
+ "name": "security",
+ "schema": "",
+ "columns": {
+ "securityId": {
+ "name": "securityId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "security_applicationId_application_applicationId_fk": {
+ "name": "security_applicationId_application_applicationId_fk",
+ "tableFrom": "security",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "security_username_applicationId_unique": {
+ "name": "security_username_applicationId_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "username",
+ "applicationId"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.server": {
+ "name": "server",
+ "schema": "",
+ "columns": {
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ipAddress": {
+ "name": "ipAddress",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "port": {
+ "name": "port",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'root'"
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "enableDockerCleanup": {
+ "name": "enableDockerCleanup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "telemetryProviderIds": {
+ "name": "telemetryProviderIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "buildsConcurrency": {
+ "name": "buildsConcurrency",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverStatus": {
+ "name": "serverStatus",
+ "type": "serverStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'active'"
+ },
+ "serverType": {
+ "name": "serverType",
+ "type": "serverType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'deploy'"
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "sshKeyId": {
+ "name": "sshKeyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metricsConfig": {
+ "name": "metricsConfig",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'{\"server\":{\"type\":\"Remote\",\"refreshRate\":60,\"port\":4500,\"token\":\"\",\"urlCallback\":\"\",\"cronJob\":\"\",\"retentionDays\":2,\"thresholds\":{\"cpu\":0,\"memory\":0}},\"containers\":{\"refreshRate\":60,\"services\":{\"include\":[],\"exclude\":[]}}}'::jsonb"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "server_organizationId_organization_id_fk": {
+ "name": "server_organizationId_organization_id_fk",
+ "tableFrom": "server",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "server_sshKeyId_ssh-key_sshKeyId_fk": {
+ "name": "server_sshKeyId_ssh-key_sshKeyId_fk",
+ "tableFrom": "server",
+ "tableTo": "ssh-key",
+ "columnsFrom": [
+ "sshKeyId"
+ ],
+ "columnsTo": [
+ "sshKeyId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.session": {
+ "name": "session",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "token": {
+ "name": "token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "ip_address": {
+ "name": "ip_address",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_agent": {
+ "name": "user_agent",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "impersonated_by": {
+ "name": "impersonated_by",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "active_organization_id": {
+ "name": "active_organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "session_user_id_user_id_fk": {
+ "name": "session_user_id_user_id_fk",
+ "tableFrom": "session",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "session_token_unique": {
+ "name": "session_token_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "token"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.ssh-key": {
+ "name": "ssh-key",
+ "schema": "",
+ "columns": {
+ "sshKeyId": {
+ "name": "sshKeyId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "privateKey": {
+ "name": "privateKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "publicKey": {
+ "name": "publicKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "lastUsedAt": {
+ "name": "lastUsedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "ssh-key_organizationId_organization_id_fk": {
+ "name": "ssh-key_organizationId_organization_id_fk",
+ "tableFrom": "ssh-key",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.sso_provider": {
+ "name": "sso_provider",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "issuer": {
+ "name": "issuer",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "oidc_config": {
+ "name": "oidc_config",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "saml_config": {
+ "name": "saml_config",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "provider_id": {
+ "name": "provider_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "domain": {
+ "name": "domain",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "domain_verified": {
+ "name": "domain_verified",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "sso_provider_user_id_user_id_fk": {
+ "name": "sso_provider_user_id_user_id_fk",
+ "tableFrom": "sso_provider",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "sso_provider_organization_id_organization_id_fk": {
+ "name": "sso_provider_organization_id_organization_id_fk",
+ "tableFrom": "sso_provider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "sso_provider_provider_id_unique": {
+ "name": "sso_provider_provider_id_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "provider_id"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.project_tag": {
+ "name": "project_tag",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "projectId": {
+ "name": "projectId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "tagId": {
+ "name": "tagId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "project_tag_projectId_project_projectId_fk": {
+ "name": "project_tag_projectId_project_projectId_fk",
+ "tableFrom": "project_tag",
+ "tableTo": "project",
+ "columnsFrom": [
+ "projectId"
+ ],
+ "columnsTo": [
+ "projectId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "project_tag_tagId_tag_tagId_fk": {
+ "name": "project_tag_tagId_tag_tagId_fk",
+ "tableFrom": "project_tag",
+ "tableTo": "tag",
+ "columnsFrom": [
+ "tagId"
+ ],
+ "columnsTo": [
+ "tagId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "unique_project_tag": {
+ "name": "unique_project_tag",
+ "nullsNotDistinct": false,
+ "columns": [
+ "projectId",
+ "tagId"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.tag": {
+ "name": "tag",
+ "schema": "",
+ "columns": {
+ "tagId": {
+ "name": "tagId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "color": {
+ "name": "color",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "tag_organizationId_organization_id_fk": {
+ "name": "tag_organizationId_organization_id_fk",
+ "tableFrom": "tag",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "unique_org_tag_name": {
+ "name": "unique_org_tag_name",
+ "nullsNotDistinct": false,
+ "columns": [
+ "organizationId",
+ "name"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.telemetryProvider": {
+ "name": "telemetryProvider",
+ "schema": "",
+ "columns": {
+ "telemetryProviderId": {
+ "name": "telemetryProviderId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "providerType": {
+ "name": "providerType",
+ "type": "TelemetryProviderType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "signals": {
+ "name": "signals",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "endpoint": {
+ "name": "endpoint",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "apiKey": {
+ "name": "apiKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "apiSecret": {
+ "name": "apiSecret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "extraConfig": {
+ "name": "extraConfig",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "telemetryProvider_organizationId_organization_id_fk": {
+ "name": "telemetryProvider_organizationId_organization_id_fk",
+ "tableFrom": "telemetryProvider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.user": {
+ "name": "user",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "firstName": {
+ "name": "firstName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "lastName": {
+ "name": "lastName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "isRegistered": {
+ "name": "isRegistered",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "expirationDate": {
+ "name": "expirationDate",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ },
+ "two_factor_enabled": {
+ "name": "two_factor_enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "email": {
+ "name": "email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "email_verified": {
+ "name": "email_verified",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "image": {
+ "name": "image",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "banned": {
+ "name": "banned",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ban_reason": {
+ "name": "ban_reason",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ban_expires": {
+ "name": "ban_expires",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "role": {
+ "name": "role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'user'"
+ },
+ "enablePaidFeatures": {
+ "name": "enablePaidFeatures",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "allowImpersonation": {
+ "name": "allowImpersonation",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "enableEnterpriseFeatures": {
+ "name": "enableEnterpriseFeatures",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "licenseKey": {
+ "name": "licenseKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "isValidEnterpriseLicense": {
+ "name": "isValidEnterpriseLicense",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "stripeCustomerId": {
+ "name": "stripeCustomerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stripeSubscriptionId": {
+ "name": "stripeSubscriptionId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serversQuantity": {
+ "name": "serversQuantity",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "sendInvoiceNotifications": {
+ "name": "sendInvoiceNotifications",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "isEnterpriseCloud": {
+ "name": "isEnterpriseCloud",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "trustedOrigins": {
+ "name": "trustedOrigins",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bookmarkedTemplates": {
+ "name": "bookmarkedTemplates",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "ARRAY[]::text[]"
+ },
+ "onboardingCompletedAt": {
+ "name": "onboardingCompletedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "onboardingStep": {
+ "name": "onboardingStep",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "onboardingReturnEmails": {
+ "name": "onboardingReturnEmails",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "trialPlanPromptSubscriptionId": {
+ "name": "trialPlanPromptSubscriptionId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverSetupFailedEmailAt": {
+ "name": "serverSetupFailedEmailAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverConnectFailure": {
+ "name": "serverConnectFailure",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "lastSessionAt": {
+ "name": "lastSessionAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "deactivatedAt": {
+ "name": "deactivatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "user_email_unique": {
+ "name": "user_email_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "email"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.vault_provider": {
+ "name": "vault_provider",
+ "schema": "",
+ "columns": {
+ "vaultProviderId": {
+ "name": "vaultProviderId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "providerType": {
+ "name": "providerType",
+ "type": "VaultProviderType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "config": {
+ "name": "config",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "assignments": {
+ "name": "assignments",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'[]'::jsonb"
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "vault_provider_org_name_idx": {
+ "name": "vault_provider_org_name_idx",
+ "columns": [
+ {
+ "expression": "organizationId",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "name",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "vault_provider_organizationId_organization_id_fk": {
+ "name": "vault_provider_organizationId_organization_id_fk",
+ "tableFrom": "vault_provider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.volume_backup": {
+ "name": "volume_backup",
+ "schema": "",
+ "columns": {
+ "volumeBackupId": {
+ "name": "volumeBackupId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "volumeName": {
+ "name": "volumeName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "prefix": {
+ "name": "prefix",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serviceType": {
+ "name": "serviceType",
+ "type": "serviceType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'application'"
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serviceName": {
+ "name": "serviceName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "turnOff": {
+ "name": "turnOff",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "cronExpression": {
+ "name": "cronExpression",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "keepLatestCount": {
+ "name": "keepLatestCount",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "postgresId": {
+ "name": "postgresId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mariadbId": {
+ "name": "mariadbId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mongoId": {
+ "name": "mongoId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mysqlId": {
+ "name": "mysqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "redisId": {
+ "name": "redisId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "libsqlId": {
+ "name": "libsqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "destinationId": {
+ "name": "destinationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "volume_backup_applicationId_application_applicationId_fk": {
+ "name": "volume_backup_applicationId_application_applicationId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_postgresId_postgres_postgresId_fk": {
+ "name": "volume_backup_postgresId_postgres_postgresId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "postgres",
+ "columnsFrom": [
+ "postgresId"
+ ],
+ "columnsTo": [
+ "postgresId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_mariadbId_mariadb_mariadbId_fk": {
+ "name": "volume_backup_mariadbId_mariadb_mariadbId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "mariadb",
+ "columnsFrom": [
+ "mariadbId"
+ ],
+ "columnsTo": [
+ "mariadbId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_mongoId_mongo_mongoId_fk": {
+ "name": "volume_backup_mongoId_mongo_mongoId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "mongo",
+ "columnsFrom": [
+ "mongoId"
+ ],
+ "columnsTo": [
+ "mongoId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_mysqlId_mysql_mysqlId_fk": {
+ "name": "volume_backup_mysqlId_mysql_mysqlId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "mysql",
+ "columnsFrom": [
+ "mysqlId"
+ ],
+ "columnsTo": [
+ "mysqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_redisId_redis_redisId_fk": {
+ "name": "volume_backup_redisId_redis_redisId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "redis",
+ "columnsFrom": [
+ "redisId"
+ ],
+ "columnsTo": [
+ "redisId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_libsqlId_libsql_libsqlId_fk": {
+ "name": "volume_backup_libsqlId_libsql_libsqlId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "libsql",
+ "columnsFrom": [
+ "libsqlId"
+ ],
+ "columnsTo": [
+ "libsqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_composeId_compose_composeId_fk": {
+ "name": "volume_backup_composeId_compose_composeId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_destinationId_destination_destinationId_fk": {
+ "name": "volume_backup_destinationId_destination_destinationId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "destination",
+ "columnsFrom": [
+ "destinationId"
+ ],
+ "columnsTo": [
+ "destinationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.webServerSettings": {
+ "name": "webServerSettings",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "serverIp": {
+ "name": "serverIp",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "certificateType": {
+ "name": "certificateType",
+ "type": "certificateType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'none'"
+ },
+ "https": {
+ "name": "https",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "host": {
+ "name": "host",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "letsEncryptEmail": {
+ "name": "letsEncryptEmail",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sshPrivateKey": {
+ "name": "sshPrivateKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enableDockerCleanup": {
+ "name": "enableDockerCleanup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "logCleanupCron": {
+ "name": "logCleanupCron",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'0 0 * * *'"
+ },
+ "telemetryProviderIds": {
+ "name": "telemetryProviderIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "vectorAgentOrganizationId": {
+ "name": "vectorAgentOrganizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metricsConfig": {
+ "name": "metricsConfig",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'{\"server\":{\"type\":\"Dokploy\",\"refreshRate\":60,\"port\":4500,\"token\":\"\",\"retentionDays\":2,\"cronJob\":\"\",\"urlCallback\":\"\",\"thresholds\":{\"cpu\":0,\"memory\":0}},\"containers\":{\"refreshRate\":60,\"services\":{\"include\":[],\"exclude\":[]}}}'::jsonb"
+ },
+ "whitelabelingConfig": {
+ "name": "whitelabelingConfig",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{\"appName\":null,\"appDescription\":null,\"logoUrl\":null,\"faviconUrl\":null,\"customCss\":null,\"loginLogoUrl\":null,\"supportUrl\":null,\"docsUrl\":null,\"errorPageTitle\":null,\"errorPageDescription\":null,\"footerText\":null,\"ogImageUrl\":null,\"passwordResetGuide\":null,\"supportEmail\":null,\"logoLightUrl\":null,\"loginLogoLightUrl\":null,\"faviconLightUrl\":null,\"dualModeBranding\":false}'::jsonb"
+ },
+ "remoteServersOnly": {
+ "name": "remoteServersOnly",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "buildsConcurrency": {
+ "name": "buildsConcurrency",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "enforceSSO": {
+ "name": "enforceSSO",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "instanceOwnerId": {
+ "name": "instanceOwnerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "pendingOwnerId": {
+ "name": "pendingOwnerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "pendingOwnerExpiresAt": {
+ "name": "pendingOwnerExpiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cleanupCacheApplications": {
+ "name": "cleanupCacheApplications",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "cleanupCacheOnPreviews": {
+ "name": "cleanupCacheOnPreviews",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "cleanupCacheOnCompose": {
+ "name": "cleanupCacheOnCompose",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "webServerSettings_vectorAgentOrganizationId_organization_id_fk": {
+ "name": "webServerSettings_vectorAgentOrganizationId_organization_id_fk",
+ "tableFrom": "webServerSettings",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "vectorAgentOrganizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "webServerSettings_instanceOwnerId_user_id_fk": {
+ "name": "webServerSettings_instanceOwnerId_user_id_fk",
+ "tableFrom": "webServerSettings",
+ "tableTo": "user",
+ "columnsFrom": [
+ "instanceOwnerId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "webServerSettings_pendingOwnerId_user_id_fk": {
+ "name": "webServerSettings_pendingOwnerId_user_id_fk",
+ "tableFrom": "webServerSettings",
+ "tableTo": "user",
+ "columnsFrom": [
+ "pendingOwnerId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ }
+ },
+ "enums": {
+ "public.buildType": {
+ "name": "buildType",
+ "schema": "public",
+ "values": [
+ "dockerfile",
+ "heroku_buildpacks",
+ "paketo_buildpacks",
+ "nixpacks",
+ "static",
+ "railpack"
+ ]
+ },
+ "public.sourceType": {
+ "name": "sourceType",
+ "schema": "public",
+ "values": [
+ "docker",
+ "git",
+ "github",
+ "gitlab",
+ "bitbucket",
+ "gitea",
+ "drop"
+ ]
+ },
+ "public.backupType": {
+ "name": "backupType",
+ "schema": "public",
+ "values": [
+ "database",
+ "compose"
+ ]
+ },
+ "public.databaseType": {
+ "name": "databaseType",
+ "schema": "public",
+ "values": [
+ "postgres",
+ "mariadb",
+ "mysql",
+ "mongo",
+ "web-server",
+ "libsql"
+ ]
+ },
+ "public.cloudServerStatus": {
+ "name": "cloudServerStatus",
+ "schema": "public",
+ "values": [
+ "pending",
+ "provisioning",
+ "configuring",
+ "ready",
+ "upgrading",
+ "error",
+ "suspended",
+ "terminating"
+ ]
+ },
+ "public.composeType": {
+ "name": "composeType",
+ "schema": "public",
+ "values": [
+ "docker-compose",
+ "stack"
+ ]
+ },
+ "public.sourceTypeCompose": {
+ "name": "sourceTypeCompose",
+ "schema": "public",
+ "values": [
+ "git",
+ "github",
+ "gitlab",
+ "bitbucket",
+ "gitea",
+ "raw"
+ ]
+ },
+ "public.deploymentStatus": {
+ "name": "deploymentStatus",
+ "schema": "public",
+ "values": [
+ "running",
+ "done",
+ "error",
+ "cancelled"
+ ]
+ },
+ "public.DnsProviderType": {
+ "name": "DnsProviderType",
+ "schema": "public",
+ "values": [
+ "cloudflare",
+ "route53",
+ "porkbun",
+ "infomaniak",
+ "ovh"
+ ]
+ },
+ "public.domainType": {
+ "name": "domainType",
+ "schema": "public",
+ "values": [
+ "compose",
+ "application",
+ "preview"
+ ]
+ },
+ "public.gitProviderType": {
+ "name": "gitProviderType",
+ "schema": "public",
+ "values": [
+ "github",
+ "gitlab",
+ "bitbucket",
+ "gitea"
+ ]
+ },
+ "public.mountType": {
+ "name": "mountType",
+ "schema": "public",
+ "values": [
+ "bind",
+ "volume",
+ "file"
+ ]
+ },
+ "public.serviceType": {
+ "name": "serviceType",
+ "schema": "public",
+ "values": [
+ "application",
+ "postgres",
+ "mysql",
+ "mariadb",
+ "mongo",
+ "redis",
+ "compose",
+ "libsql"
+ ]
+ },
+ "public.networkDriver": {
+ "name": "networkDriver",
+ "schema": "public",
+ "values": [
+ "bridge",
+ "overlay"
+ ]
+ },
+ "public.notificationType": {
+ "name": "notificationType",
+ "schema": "public",
+ "values": [
+ "slack",
+ "telegram",
+ "discord",
+ "email",
+ "resend",
+ "gotify",
+ "ntfy",
+ "mattermost",
+ "pushover",
+ "custom",
+ "lark",
+ "teams"
+ ]
+ },
+ "public.patchType": {
+ "name": "patchType",
+ "schema": "public",
+ "values": [
+ "create",
+ "update",
+ "delete"
+ ]
+ },
+ "public.protocolType": {
+ "name": "protocolType",
+ "schema": "public",
+ "values": [
+ "tcp",
+ "udp"
+ ]
+ },
+ "public.publishModeType": {
+ "name": "publishModeType",
+ "schema": "public",
+ "values": [
+ "ingress",
+ "host"
+ ]
+ },
+ "public.RegistryType": {
+ "name": "RegistryType",
+ "schema": "public",
+ "values": [
+ "selfHosted",
+ "cloud"
+ ]
+ },
+ "public.sandboxNetworkMode": {
+ "name": "sandboxNetworkMode",
+ "schema": "public",
+ "values": [
+ "isolated",
+ "internet"
+ ]
+ },
+ "public.sandboxStatus": {
+ "name": "sandboxStatus",
+ "schema": "public",
+ "values": [
+ "creating",
+ "running",
+ "killed",
+ "error"
+ ]
+ },
+ "public.scheduleType": {
+ "name": "scheduleType",
+ "schema": "public",
+ "values": [
+ "application",
+ "compose",
+ "server",
+ "dokploy-server"
+ ]
+ },
+ "public.shellType": {
+ "name": "shellType",
+ "schema": "public",
+ "values": [
+ "bash",
+ "sh"
+ ]
+ },
+ "public.serverStatus": {
+ "name": "serverStatus",
+ "schema": "public",
+ "values": [
+ "active",
+ "inactive"
+ ]
+ },
+ "public.serverType": {
+ "name": "serverType",
+ "schema": "public",
+ "values": [
+ "deploy",
+ "build"
+ ]
+ },
+ "public.applicationStatus": {
+ "name": "applicationStatus",
+ "schema": "public",
+ "values": [
+ "idle",
+ "running",
+ "done",
+ "error"
+ ]
+ },
+ "public.certificateType": {
+ "name": "certificateType",
+ "schema": "public",
+ "values": [
+ "letsencrypt",
+ "none",
+ "custom"
+ ]
+ },
+ "public.sqldNode": {
+ "name": "sqldNode",
+ "schema": "public",
+ "values": [
+ "primary",
+ "replica"
+ ]
+ },
+ "public.triggerType": {
+ "name": "triggerType",
+ "schema": "public",
+ "values": [
+ "push",
+ "tag"
+ ]
+ },
+ "public.TelemetryProviderType": {
+ "name": "TelemetryProviderType",
+ "schema": "public",
+ "values": [
+ "loki",
+ "datadog",
+ "betterstack",
+ "elasticsearch",
+ "splunk_hec",
+ "aws_cloudwatch",
+ "prometheus_remote_write",
+ "new_relic",
+ "influxdb"
+ ]
+ },
+ "public.VaultProviderType": {
+ "name": "VaultProviderType",
+ "schema": "public",
+ "values": [
+ "hashicorp",
+ "infisical",
+ "aws",
+ "aws-parameter-store",
+ "doppler",
+ "azure",
+ "scaleway",
+ "phase"
+ ]
+ }
+ },
+ "schemas": {},
+ "sequences": {},
+ "roles": {},
+ "policies": {},
+ "views": {},
+ "_meta": {
+ "columns": {},
+ "schemas": {},
+ "tables": {}
+ }
+}
\ No newline at end of file
diff --git a/apps/dokploy/drizzle/meta/0210_snapshot.json b/apps/dokploy/drizzle/meta/0210_snapshot.json
new file mode 100644
index 000000000..e89190d74
--- /dev/null
+++ b/apps/dokploy/drizzle/meta/0210_snapshot.json
@@ -0,0 +1,9840 @@
+{
+ "id": "877811c1-9c50-40dd-af75-653f92375315",
+ "prevId": "e2cf183a-deb8-41b9-b7ce-1a2d34517a16",
+ "version": "7",
+ "dialect": "postgresql",
+ "tables": {
+ "public.account": {
+ "name": "account",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "account_id": {
+ "name": "account_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "provider_id": {
+ "name": "provider_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "access_token": {
+ "name": "access_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refresh_token": {
+ "name": "refresh_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "id_token": {
+ "name": "id_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "access_token_expires_at": {
+ "name": "access_token_expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refresh_token_expires_at": {
+ "name": "refresh_token_expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "scope": {
+ "name": "scope",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "is2FAEnabled": {
+ "name": "is2FAEnabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "resetPasswordToken": {
+ "name": "resetPasswordToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "resetPasswordExpiresAt": {
+ "name": "resetPasswordExpiresAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "confirmationToken": {
+ "name": "confirmationToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "confirmationExpiresAt": {
+ "name": "confirmationExpiresAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "account_user_id_user_id_fk": {
+ "name": "account_user_id_user_id_fk",
+ "tableFrom": "account",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.apikey": {
+ "name": "apikey",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "start": {
+ "name": "start",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "prefix": {
+ "name": "prefix",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "key": {
+ "name": "key",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "config_id": {
+ "name": "config_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'default'"
+ },
+ "reference_id": {
+ "name": "reference_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "refill_interval": {
+ "name": "refill_interval",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refill_amount": {
+ "name": "refill_amount",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "last_refill_at": {
+ "name": "last_refill_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rate_limit_enabled": {
+ "name": "rate_limit_enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rate_limit_time_window": {
+ "name": "rate_limit_time_window",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rate_limit_max": {
+ "name": "rate_limit_max",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "request_count": {
+ "name": "request_count",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "remaining": {
+ "name": "remaining",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "last_request": {
+ "name": "last_request",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "permissions": {
+ "name": "permissions",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "apikey_reference_id_user_id_fk": {
+ "name": "apikey_reference_id_user_id_fk",
+ "tableFrom": "apikey",
+ "tableTo": "user",
+ "columnsFrom": [
+ "reference_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.invitation": {
+ "name": "invitation",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "email": {
+ "name": "email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "role": {
+ "name": "role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "status": {
+ "name": "status",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "inviter_id": {
+ "name": "inviter_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "team_id": {
+ "name": "team_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "invitation_organization_id_organization_id_fk": {
+ "name": "invitation_organization_id_organization_id_fk",
+ "tableFrom": "invitation",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "invitation_inviter_id_user_id_fk": {
+ "name": "invitation_inviter_id_user_id_fk",
+ "tableFrom": "invitation",
+ "tableTo": "user",
+ "columnsFrom": [
+ "inviter_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.member": {
+ "name": "member",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "role": {
+ "name": "role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "team_id": {
+ "name": "team_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "is_default": {
+ "name": "is_default",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canCreateProjects": {
+ "name": "canCreateProjects",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canAccessToSSHKeys": {
+ "name": "canAccessToSSHKeys",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canCreateServices": {
+ "name": "canCreateServices",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canDeleteProjects": {
+ "name": "canDeleteProjects",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canDeleteServices": {
+ "name": "canDeleteServices",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canAccessToDocker": {
+ "name": "canAccessToDocker",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canAccessToAPI": {
+ "name": "canAccessToAPI",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canAccessToGitProviders": {
+ "name": "canAccessToGitProviders",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canAccessToTraefikFiles": {
+ "name": "canAccessToTraefikFiles",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canDeleteEnvironments": {
+ "name": "canDeleteEnvironments",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canCreateEnvironments": {
+ "name": "canCreateEnvironments",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "accesedProjects": {
+ "name": "accesedProjects",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "accessedEnvironments": {
+ "name": "accessedEnvironments",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "accesedServices": {
+ "name": "accesedServices",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "accessedGitProviders": {
+ "name": "accessedGitProviders",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "accessedServers": {
+ "name": "accessedServers",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "member_organization_id_organization_id_fk": {
+ "name": "member_organization_id_organization_id_fk",
+ "tableFrom": "member",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "member_user_id_user_id_fk": {
+ "name": "member_user_id_user_id_fk",
+ "tableFrom": "member",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.organization": {
+ "name": "organization",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "slug": {
+ "name": "slug",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "logo": {
+ "name": "logo",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "default_role": {
+ "name": "default_role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "owner_id": {
+ "name": "owner_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "organization_owner_id_user_id_fk": {
+ "name": "organization_owner_id_user_id_fk",
+ "tableFrom": "organization",
+ "tableTo": "user",
+ "columnsFrom": [
+ "owner_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "organization_slug_unique": {
+ "name": "organization_slug_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "slug"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.organization_role": {
+ "name": "organization_role",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "role": {
+ "name": "role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "permission": {
+ "name": "permission",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "allowed_domains": {
+ "name": "allowed_domains",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "require_https": {
+ "name": "require_https",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "organizationRole_organizationId_idx": {
+ "name": "organizationRole_organizationId_idx",
+ "columns": [
+ {
+ "expression": "organization_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "organizationRole_role_idx": {
+ "name": "organizationRole_role_idx",
+ "columns": [
+ {
+ "expression": "role",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "organization_role_organization_id_organization_id_fk": {
+ "name": "organization_role_organization_id_organization_id_fk",
+ "tableFrom": "organization_role",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.passkey": {
+ "name": "passkey",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "public_key": {
+ "name": "public_key",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "credential_id": {
+ "name": "credential_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "counter": {
+ "name": "counter",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "device_type": {
+ "name": "device_type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "backed_up": {
+ "name": "backed_up",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "transports": {
+ "name": "transports",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "aaguid": {
+ "name": "aaguid",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "passkey_userId_idx": {
+ "name": "passkey_userId_idx",
+ "columns": [
+ {
+ "expression": "user_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "passkey_credentialID_idx": {
+ "name": "passkey_credentialID_idx",
+ "columns": [
+ {
+ "expression": "credential_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "passkey_user_id_user_id_fk": {
+ "name": "passkey_user_id_user_id_fk",
+ "tableFrom": "passkey",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.two_factor": {
+ "name": "two_factor",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "secret": {
+ "name": "secret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "backup_codes": {
+ "name": "backup_codes",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "verified": {
+ "name": "verified",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "failed_verification_count": {
+ "name": "failed_verification_count",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "locked_until": {
+ "name": "locked_until",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "two_factor_user_id_user_id_fk": {
+ "name": "two_factor_user_id_user_id_fk",
+ "tableFrom": "two_factor",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.verification": {
+ "name": "verification",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "identifier": {
+ "name": "identifier",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "value": {
+ "name": "value",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.ai": {
+ "name": "ai",
+ "schema": "",
+ "columns": {
+ "aiId": {
+ "name": "aiId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "apiUrl": {
+ "name": "apiUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "apiKey": {
+ "name": "apiKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "model": {
+ "name": "model",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "isEnabled": {
+ "name": "isEnabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "ai_organizationId_organization_id_fk": {
+ "name": "ai_organizationId_organization_id_fk",
+ "tableFrom": "ai",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.application": {
+ "name": "application",
+ "schema": "",
+ "columns": {
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewEnv": {
+ "name": "previewEnv",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "watchPaths": {
+ "name": "watchPaths",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewBuildArgs": {
+ "name": "previewBuildArgs",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewBuildSecrets": {
+ "name": "previewBuildSecrets",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewLabels": {
+ "name": "previewLabels",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewWildcard": {
+ "name": "previewWildcard",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewPort": {
+ "name": "previewPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "default": 3000
+ },
+ "previewHttps": {
+ "name": "previewHttps",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "previewPath": {
+ "name": "previewPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "certificateType": {
+ "name": "certificateType",
+ "type": "certificateType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'none'"
+ },
+ "previewCustomCertResolver": {
+ "name": "previewCustomCertResolver",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewLimit": {
+ "name": "previewLimit",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "default": 3
+ },
+ "previewForwardAuthEnabled": {
+ "name": "previewForwardAuthEnabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "ssoAllowedEmails": {
+ "name": "ssoAllowedEmails",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ssoAllowedGroups": {
+ "name": "ssoAllowedGroups",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ssoAllowedEmailDomains": {
+ "name": "ssoAllowedEmailDomains",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "isPreviewDeploymentsActive": {
+ "name": "isPreviewDeploymentsActive",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "previewRequireCollaboratorPermissions": {
+ "name": "previewRequireCollaboratorPermissions",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": true
+ },
+ "rollbackActive": {
+ "name": "rollbackActive",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "buildArgs": {
+ "name": "buildArgs",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "buildSecrets": {
+ "name": "buildSecrets",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "subtitle": {
+ "name": "subtitle",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "icon": {
+ "name": "icon",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refreshToken": {
+ "name": "refreshToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sourceType": {
+ "name": "sourceType",
+ "type": "sourceType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'github'"
+ },
+ "cleanCache": {
+ "name": "cleanCache",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "repository": {
+ "name": "repository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "owner": {
+ "name": "owner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "branch": {
+ "name": "branch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "buildPath": {
+ "name": "buildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "triggerType": {
+ "name": "triggerType",
+ "type": "triggerType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'push'"
+ },
+ "autoDeploy": {
+ "name": "autoDeploy",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabProjectId": {
+ "name": "gitlabProjectId",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabRepository": {
+ "name": "gitlabRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabOwner": {
+ "name": "gitlabOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabBranch": {
+ "name": "gitlabBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabBuildPath": {
+ "name": "gitlabBuildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "gitlabPathNamespace": {
+ "name": "gitlabPathNamespace",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaRepository": {
+ "name": "giteaRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaOwner": {
+ "name": "giteaOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaBranch": {
+ "name": "giteaBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaBuildPath": {
+ "name": "giteaBuildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "bitbucketRepository": {
+ "name": "bitbucketRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketRepositorySlug": {
+ "name": "bitbucketRepositorySlug",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketOwner": {
+ "name": "bitbucketOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketBranch": {
+ "name": "bitbucketBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketBuildPath": {
+ "name": "bitbucketBuildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "registryUrl": {
+ "name": "registryUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitUrl": {
+ "name": "customGitUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitBranch": {
+ "name": "customGitBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitBuildPath": {
+ "name": "customGitBuildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitSSHKeyId": {
+ "name": "customGitSSHKeyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enableSubmodules": {
+ "name": "enableSubmodules",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "dockerfile": {
+ "name": "dockerfile",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'Dockerfile'"
+ },
+ "dockerContextPath": {
+ "name": "dockerContextPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "dockerBuildStage": {
+ "name": "dockerBuildStage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "dropBuildPath": {
+ "name": "dropBuildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "buildType": {
+ "name": "buildType",
+ "type": "buildType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'nixpacks'"
+ },
+ "railpackVersion": {
+ "name": "railpackVersion",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'0.15.4'"
+ },
+ "herokuVersion": {
+ "name": "herokuVersion",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'24'"
+ },
+ "publishDirectory": {
+ "name": "publishDirectory",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "isStaticSpa": {
+ "name": "isStaticSpa",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createEnvFile": {
+ "name": "createEnvFile",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "registryId": {
+ "name": "registryId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackRegistryId": {
+ "name": "rollbackRegistryId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "githubId": {
+ "name": "githubId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabId": {
+ "name": "gitlabId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaId": {
+ "name": "giteaId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketId": {
+ "name": "bitbucketId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "buildServerId": {
+ "name": "buildServerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "buildRegistryId": {
+ "name": "buildRegistryId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "application_customGitSSHKeyId_ssh-key_sshKeyId_fk": {
+ "name": "application_customGitSSHKeyId_ssh-key_sshKeyId_fk",
+ "tableFrom": "application",
+ "tableTo": "ssh-key",
+ "columnsFrom": [
+ "customGitSSHKeyId"
+ ],
+ "columnsTo": [
+ "sshKeyId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_registryId_registry_registryId_fk": {
+ "name": "application_registryId_registry_registryId_fk",
+ "tableFrom": "application",
+ "tableTo": "registry",
+ "columnsFrom": [
+ "registryId"
+ ],
+ "columnsTo": [
+ "registryId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_rollbackRegistryId_registry_registryId_fk": {
+ "name": "application_rollbackRegistryId_registry_registryId_fk",
+ "tableFrom": "application",
+ "tableTo": "registry",
+ "columnsFrom": [
+ "rollbackRegistryId"
+ ],
+ "columnsTo": [
+ "registryId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_environmentId_environment_environmentId_fk": {
+ "name": "application_environmentId_environment_environmentId_fk",
+ "tableFrom": "application",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "application_githubId_github_githubId_fk": {
+ "name": "application_githubId_github_githubId_fk",
+ "tableFrom": "application",
+ "tableTo": "github",
+ "columnsFrom": [
+ "githubId"
+ ],
+ "columnsTo": [
+ "githubId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_gitlabId_gitlab_gitlabId_fk": {
+ "name": "application_gitlabId_gitlab_gitlabId_fk",
+ "tableFrom": "application",
+ "tableTo": "gitlab",
+ "columnsFrom": [
+ "gitlabId"
+ ],
+ "columnsTo": [
+ "gitlabId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_giteaId_gitea_giteaId_fk": {
+ "name": "application_giteaId_gitea_giteaId_fk",
+ "tableFrom": "application",
+ "tableTo": "gitea",
+ "columnsFrom": [
+ "giteaId"
+ ],
+ "columnsTo": [
+ "giteaId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_bitbucketId_bitbucket_bitbucketId_fk": {
+ "name": "application_bitbucketId_bitbucket_bitbucketId_fk",
+ "tableFrom": "application",
+ "tableTo": "bitbucket",
+ "columnsFrom": [
+ "bitbucketId"
+ ],
+ "columnsTo": [
+ "bitbucketId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_serverId_server_serverId_fk": {
+ "name": "application_serverId_server_serverId_fk",
+ "tableFrom": "application",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "application_buildServerId_server_serverId_fk": {
+ "name": "application_buildServerId_server_serverId_fk",
+ "tableFrom": "application",
+ "tableTo": "server",
+ "columnsFrom": [
+ "buildServerId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_buildRegistryId_registry_registryId_fk": {
+ "name": "application_buildRegistryId_registry_registryId_fk",
+ "tableFrom": "application",
+ "tableTo": "registry",
+ "columnsFrom": [
+ "buildRegistryId"
+ ],
+ "columnsTo": [
+ "registryId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "application_appName_unique": {
+ "name": "application_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.audit_log": {
+ "name": "audit_log",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_email": {
+ "name": "user_email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_role": {
+ "name": "user_role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "action": {
+ "name": "action",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "resource_type": {
+ "name": "resource_type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "resource_id": {
+ "name": "resource_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "resource_name": {
+ "name": "resource_name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "auditLog_organizationId_idx": {
+ "name": "auditLog_organizationId_idx",
+ "columns": [
+ {
+ "expression": "organization_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "auditLog_userId_idx": {
+ "name": "auditLog_userId_idx",
+ "columns": [
+ {
+ "expression": "user_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "auditLog_createdAt_idx": {
+ "name": "auditLog_createdAt_idx",
+ "columns": [
+ {
+ "expression": "created_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "audit_log_organization_id_organization_id_fk": {
+ "name": "audit_log_organization_id_organization_id_fk",
+ "tableFrom": "audit_log",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "audit_log_user_id_user_id_fk": {
+ "name": "audit_log_user_id_user_id_fk",
+ "tableFrom": "audit_log",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.backup": {
+ "name": "backup",
+ "schema": "",
+ "columns": {
+ "backupId": {
+ "name": "backupId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "schedule": {
+ "name": "schedule",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "database": {
+ "name": "database",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "prefix": {
+ "name": "prefix",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "customName": {
+ "name": "customName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serviceName": {
+ "name": "serviceName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "destinationId": {
+ "name": "destinationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "keepLatestCount": {
+ "name": "keepLatestCount",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "includeEncryptionKey": {
+ "name": "includeEncryptionKey",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "backupType": {
+ "name": "backupType",
+ "type": "backupType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'database'"
+ },
+ "databaseType": {
+ "name": "databaseType",
+ "type": "databaseType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "postgresId": {
+ "name": "postgresId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mariadbId": {
+ "name": "mariadbId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mysqlId": {
+ "name": "mysqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mongoId": {
+ "name": "mongoId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "libsqlId": {
+ "name": "libsqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "userId": {
+ "name": "userId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "backup_destinationId_destination_destinationId_fk": {
+ "name": "backup_destinationId_destination_destinationId_fk",
+ "tableFrom": "backup",
+ "tableTo": "destination",
+ "columnsFrom": [
+ "destinationId"
+ ],
+ "columnsTo": [
+ "destinationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_composeId_compose_composeId_fk": {
+ "name": "backup_composeId_compose_composeId_fk",
+ "tableFrom": "backup",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_postgresId_postgres_postgresId_fk": {
+ "name": "backup_postgresId_postgres_postgresId_fk",
+ "tableFrom": "backup",
+ "tableTo": "postgres",
+ "columnsFrom": [
+ "postgresId"
+ ],
+ "columnsTo": [
+ "postgresId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_mariadbId_mariadb_mariadbId_fk": {
+ "name": "backup_mariadbId_mariadb_mariadbId_fk",
+ "tableFrom": "backup",
+ "tableTo": "mariadb",
+ "columnsFrom": [
+ "mariadbId"
+ ],
+ "columnsTo": [
+ "mariadbId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_mysqlId_mysql_mysqlId_fk": {
+ "name": "backup_mysqlId_mysql_mysqlId_fk",
+ "tableFrom": "backup",
+ "tableTo": "mysql",
+ "columnsFrom": [
+ "mysqlId"
+ ],
+ "columnsTo": [
+ "mysqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_mongoId_mongo_mongoId_fk": {
+ "name": "backup_mongoId_mongo_mongoId_fk",
+ "tableFrom": "backup",
+ "tableTo": "mongo",
+ "columnsFrom": [
+ "mongoId"
+ ],
+ "columnsTo": [
+ "mongoId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_libsqlId_libsql_libsqlId_fk": {
+ "name": "backup_libsqlId_libsql_libsqlId_fk",
+ "tableFrom": "backup",
+ "tableTo": "libsql",
+ "columnsFrom": [
+ "libsqlId"
+ ],
+ "columnsTo": [
+ "libsqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_userId_user_id_fk": {
+ "name": "backup_userId_user_id_fk",
+ "tableFrom": "backup",
+ "tableTo": "user",
+ "columnsFrom": [
+ "userId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "backup_appName_unique": {
+ "name": "backup_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.bitbucket": {
+ "name": "bitbucket",
+ "schema": "",
+ "columns": {
+ "bitbucketId": {
+ "name": "bitbucketId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "bitbucketUsername": {
+ "name": "bitbucketUsername",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketEmail": {
+ "name": "bitbucketEmail",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "appPassword": {
+ "name": "appPassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "apiToken": {
+ "name": "apiToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketWorkspaceName": {
+ "name": "bitbucketWorkspaceName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitProviderId": {
+ "name": "gitProviderId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "bitbucket_gitProviderId_git_provider_gitProviderId_fk": {
+ "name": "bitbucket_gitProviderId_git_provider_gitProviderId_fk",
+ "tableFrom": "bitbucket",
+ "tableTo": "git_provider",
+ "columnsFrom": [
+ "gitProviderId"
+ ],
+ "columnsTo": [
+ "gitProviderId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.certificate": {
+ "name": "certificate",
+ "schema": "",
+ "columns": {
+ "certificateId": {
+ "name": "certificateId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "certificateData": {
+ "name": "certificateData",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "privateKey": {
+ "name": "privateKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "certificatePath": {
+ "name": "certificatePath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "autoRenew": {
+ "name": "autoRenew",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "certificate_organizationId_organization_id_fk": {
+ "name": "certificate_organizationId_organization_id_fk",
+ "tableFrom": "certificate",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "certificate_serverId_server_serverId_fk": {
+ "name": "certificate_serverId_server_serverId_fk",
+ "tableFrom": "certificate",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "certificate_certificatePath_unique": {
+ "name": "certificate_certificatePath_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "certificatePath"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.cloud_server": {
+ "name": "cloud_server",
+ "schema": "",
+ "columns": {
+ "cloudServerId": {
+ "name": "cloudServerId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "plan": {
+ "name": "plan",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "status": {
+ "name": "status",
+ "type": "cloudServerStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'pending'"
+ },
+ "providerVmId": {
+ "name": "providerVmId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "providerVpcId": {
+ "name": "providerVpcId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "providerFirewallId": {
+ "name": "providerFirewallId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "zone": {
+ "name": "zone",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "sshKeyId": {
+ "name": "sshKeyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ipAddress": {
+ "name": "ipAddress",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "hostname": {
+ "name": "hostname",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stripeSubscriptionId": {
+ "name": "stripeSubscriptionId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stripeCheckoutSessionId": {
+ "name": "stripeCheckoutSessionId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "suspendedAt": {
+ "name": "suspendedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "paymentReminderAt": {
+ "name": "paymentReminderAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bandwidthBytes": {
+ "name": "bandwidthBytes",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "bandwidthMeasuredAt": {
+ "name": "bandwidthMeasuredAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "errorMessage": {
+ "name": "errorMessage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "cloud_server_organizationId_organization_id_fk": {
+ "name": "cloud_server_organizationId_organization_id_fk",
+ "tableFrom": "cloud_server",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "cloud_server_serverId_server_serverId_fk": {
+ "name": "cloud_server_serverId_server_serverId_fk",
+ "tableFrom": "cloud_server",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "cloud_server_sshKeyId_ssh-key_sshKeyId_fk": {
+ "name": "cloud_server_sshKeyId_ssh-key_sshKeyId_fk",
+ "tableFrom": "cloud_server",
+ "tableTo": "ssh-key",
+ "columnsFrom": [
+ "sshKeyId"
+ ],
+ "columnsTo": [
+ "sshKeyId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.compose": {
+ "name": "compose",
+ "schema": "",
+ "columns": {
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeFile": {
+ "name": "composeFile",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "refreshToken": {
+ "name": "refreshToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sourceType": {
+ "name": "sourceType",
+ "type": "sourceTypeCompose",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'github'"
+ },
+ "composeType": {
+ "name": "composeType",
+ "type": "composeType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'docker-compose'"
+ },
+ "repository": {
+ "name": "repository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "owner": {
+ "name": "owner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "branch": {
+ "name": "branch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "autoDeploy": {
+ "name": "autoDeploy",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabProjectId": {
+ "name": "gitlabProjectId",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabRepository": {
+ "name": "gitlabRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabOwner": {
+ "name": "gitlabOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabBranch": {
+ "name": "gitlabBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabPathNamespace": {
+ "name": "gitlabPathNamespace",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketRepository": {
+ "name": "bitbucketRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketRepositorySlug": {
+ "name": "bitbucketRepositorySlug",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketOwner": {
+ "name": "bitbucketOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketBranch": {
+ "name": "bitbucketBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaRepository": {
+ "name": "giteaRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaOwner": {
+ "name": "giteaOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaBranch": {
+ "name": "giteaBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitUrl": {
+ "name": "customGitUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitBranch": {
+ "name": "customGitBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitSSHKeyId": {
+ "name": "customGitSSHKeyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "createEnvFile": {
+ "name": "createEnvFile",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "enableSubmodules": {
+ "name": "enableSubmodules",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "composePath": {
+ "name": "composePath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'./docker-compose.yml'"
+ },
+ "suffix": {
+ "name": "suffix",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "randomize": {
+ "name": "randomize",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "isolatedDeployment": {
+ "name": "isolatedDeployment",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "isolatedDeploymentsVolume": {
+ "name": "isolatedDeploymentsVolume",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "pullImages": {
+ "name": "pullImages",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "triggerType": {
+ "name": "triggerType",
+ "type": "triggerType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'push'"
+ },
+ "composeStatus": {
+ "name": "composeStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "icon": {
+ "name": "icon",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "watchPaths": {
+ "name": "watchPaths",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubId": {
+ "name": "githubId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabId": {
+ "name": "gitlabId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketId": {
+ "name": "bitbucketId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaId": {
+ "name": "giteaId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serviceNetworks": {
+ "name": "serviceNetworks",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'[]'::jsonb"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "compose_customGitSSHKeyId_ssh-key_sshKeyId_fk": {
+ "name": "compose_customGitSSHKeyId_ssh-key_sshKeyId_fk",
+ "tableFrom": "compose",
+ "tableTo": "ssh-key",
+ "columnsFrom": [
+ "customGitSSHKeyId"
+ ],
+ "columnsTo": [
+ "sshKeyId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "compose_environmentId_environment_environmentId_fk": {
+ "name": "compose_environmentId_environment_environmentId_fk",
+ "tableFrom": "compose",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "compose_githubId_github_githubId_fk": {
+ "name": "compose_githubId_github_githubId_fk",
+ "tableFrom": "compose",
+ "tableTo": "github",
+ "columnsFrom": [
+ "githubId"
+ ],
+ "columnsTo": [
+ "githubId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "compose_gitlabId_gitlab_gitlabId_fk": {
+ "name": "compose_gitlabId_gitlab_gitlabId_fk",
+ "tableFrom": "compose",
+ "tableTo": "gitlab",
+ "columnsFrom": [
+ "gitlabId"
+ ],
+ "columnsTo": [
+ "gitlabId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "compose_bitbucketId_bitbucket_bitbucketId_fk": {
+ "name": "compose_bitbucketId_bitbucket_bitbucketId_fk",
+ "tableFrom": "compose",
+ "tableTo": "bitbucket",
+ "columnsFrom": [
+ "bitbucketId"
+ ],
+ "columnsTo": [
+ "bitbucketId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "compose_giteaId_gitea_giteaId_fk": {
+ "name": "compose_giteaId_gitea_giteaId_fk",
+ "tableFrom": "compose",
+ "tableTo": "gitea",
+ "columnsFrom": [
+ "giteaId"
+ ],
+ "columnsTo": [
+ "giteaId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "compose_serverId_server_serverId_fk": {
+ "name": "compose_serverId_server_serverId_fk",
+ "tableFrom": "compose",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.deployment": {
+ "name": "deployment",
+ "schema": "",
+ "columns": {
+ "deploymentId": {
+ "name": "deploymentId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "status": {
+ "name": "status",
+ "type": "deploymentStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'running'"
+ },
+ "logPath": {
+ "name": "logPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pid": {
+ "name": "pid",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "isPreviewDeployment": {
+ "name": "isPreviewDeployment",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "previewDeploymentId": {
+ "name": "previewDeploymentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "startedAt": {
+ "name": "startedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "finishedAt": {
+ "name": "finishedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "errorMessage": {
+ "name": "errorMessage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "scheduleId": {
+ "name": "scheduleId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "backupId": {
+ "name": "backupId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackId": {
+ "name": "rollbackId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "volumeBackupId": {
+ "name": "volumeBackupId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "buildServerId": {
+ "name": "buildServerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "deployment_applicationId_application_applicationId_fk": {
+ "name": "deployment_applicationId_application_applicationId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_composeId_compose_composeId_fk": {
+ "name": "deployment_composeId_compose_composeId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_serverId_server_serverId_fk": {
+ "name": "deployment_serverId_server_serverId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_previewDeploymentId_preview_deployments_previewDeploymentId_fk": {
+ "name": "deployment_previewDeploymentId_preview_deployments_previewDeploymentId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "preview_deployments",
+ "columnsFrom": [
+ "previewDeploymentId"
+ ],
+ "columnsTo": [
+ "previewDeploymentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_scheduleId_schedule_scheduleId_fk": {
+ "name": "deployment_scheduleId_schedule_scheduleId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "schedule",
+ "columnsFrom": [
+ "scheduleId"
+ ],
+ "columnsTo": [
+ "scheduleId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_backupId_backup_backupId_fk": {
+ "name": "deployment_backupId_backup_backupId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "backup",
+ "columnsFrom": [
+ "backupId"
+ ],
+ "columnsTo": [
+ "backupId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_rollbackId_rollback_rollbackId_fk": {
+ "name": "deployment_rollbackId_rollback_rollbackId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "rollback",
+ "columnsFrom": [
+ "rollbackId"
+ ],
+ "columnsTo": [
+ "rollbackId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_volumeBackupId_volume_backup_volumeBackupId_fk": {
+ "name": "deployment_volumeBackupId_volume_backup_volumeBackupId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "volume_backup",
+ "columnsFrom": [
+ "volumeBackupId"
+ ],
+ "columnsTo": [
+ "volumeBackupId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_buildServerId_server_serverId_fk": {
+ "name": "deployment_buildServerId_server_serverId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "server",
+ "columnsFrom": [
+ "buildServerId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.destination": {
+ "name": "destination",
+ "schema": "",
+ "columns": {
+ "destinationId": {
+ "name": "destinationId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "provider": {
+ "name": "provider",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "accessKey": {
+ "name": "accessKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "secretAccessKey": {
+ "name": "secretAccessKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "bucket": {
+ "name": "bucket",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "region": {
+ "name": "region",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "endpoint": {
+ "name": "endpoint",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "additionalFlags": {
+ "name": "additionalFlags",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "destination_organizationId_organization_id_fk": {
+ "name": "destination_organizationId_organization_id_fk",
+ "tableFrom": "destination",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.dns_provider": {
+ "name": "dns_provider",
+ "schema": "",
+ "columns": {
+ "dnsProviderId": {
+ "name": "dnsProviderId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "providerType": {
+ "name": "providerType",
+ "type": "DnsProviderType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "config": {
+ "name": "config",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "dns_provider_org_name_idx": {
+ "name": "dns_provider_org_name_idx",
+ "columns": [
+ {
+ "expression": "organizationId",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "name",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "dns_provider_organizationId_organization_id_fk": {
+ "name": "dns_provider_organizationId_organization_id_fk",
+ "tableFrom": "dns_provider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.domain": {
+ "name": "domain",
+ "schema": "",
+ "columns": {
+ "domainId": {
+ "name": "domainId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "host": {
+ "name": "host",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "https": {
+ "name": "https",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "port": {
+ "name": "port",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "default": 3000
+ },
+ "customEntrypoint": {
+ "name": "customEntrypoint",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "path": {
+ "name": "path",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "serviceName": {
+ "name": "serviceName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "domainType": {
+ "name": "domainType",
+ "type": "domainType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'application'"
+ },
+ "uniqueConfigKey": {
+ "name": "uniqueConfigKey",
+ "type": "serial",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customCertResolver": {
+ "name": "customCertResolver",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewDeploymentId": {
+ "name": "previewDeploymentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "certificateType": {
+ "name": "certificateType",
+ "type": "certificateType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'none'"
+ },
+ "internalPath": {
+ "name": "internalPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "stripPath": {
+ "name": "stripPath",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "middlewares": {
+ "name": "middlewares",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "ARRAY[]::text[]"
+ },
+ "forwardAuthEnabled": {
+ "name": "forwardAuthEnabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "domain_composeId_compose_composeId_fk": {
+ "name": "domain_composeId_compose_composeId_fk",
+ "tableFrom": "domain",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "domain_applicationId_application_applicationId_fk": {
+ "name": "domain_applicationId_application_applicationId_fk",
+ "tableFrom": "domain",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "domain_previewDeploymentId_preview_deployments_previewDeploymentId_fk": {
+ "name": "domain_previewDeploymentId_preview_deployments_previewDeploymentId_fk",
+ "tableFrom": "domain",
+ "tableTo": "preview_deployments",
+ "columnsFrom": [
+ "previewDeploymentId"
+ ],
+ "columnsTo": [
+ "previewDeploymentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.environment": {
+ "name": "environment",
+ "schema": "",
+ "columns": {
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "projectId": {
+ "name": "projectId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "isDefault": {
+ "name": "isDefault",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "environment_projectId_project_projectId_fk": {
+ "name": "environment_projectId_project_projectId_fk",
+ "tableFrom": "environment",
+ "tableTo": "project",
+ "columnsFrom": [
+ "projectId"
+ ],
+ "columnsTo": [
+ "projectId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forward_auth_settings": {
+ "name": "forward_auth_settings",
+ "schema": "",
+ "columns": {
+ "forwardAuthSettingsId": {
+ "name": "forwardAuthSettingsId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "authDomain": {
+ "name": "authDomain",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "baseDomain": {
+ "name": "baseDomain",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "https": {
+ "name": "https",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "certificateType": {
+ "name": "certificateType",
+ "type": "certificateType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'letsencrypt'"
+ },
+ "customCertResolver": {
+ "name": "customCertResolver",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "providerId": {
+ "name": "providerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "forward_auth_settings_providerId_sso_provider_provider_id_fk": {
+ "name": "forward_auth_settings_providerId_sso_provider_provider_id_fk",
+ "tableFrom": "forward_auth_settings",
+ "tableTo": "sso_provider",
+ "columnsFrom": [
+ "providerId"
+ ],
+ "columnsTo": [
+ "provider_id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "forward_auth_settings_serverId_server_serverId_fk": {
+ "name": "forward_auth_settings_serverId_server_serverId_fk",
+ "tableFrom": "forward_auth_settings",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "forward_auth_settings_serverId_unique": {
+ "name": "forward_auth_settings_serverId_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "serverId"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.git_provider": {
+ "name": "git_provider",
+ "schema": "",
+ "columns": {
+ "gitProviderId": {
+ "name": "gitProviderId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "providerType": {
+ "name": "providerType",
+ "type": "gitProviderType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'github'"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "userId": {
+ "name": "userId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "sharedWithOrganization": {
+ "name": "sharedWithOrganization",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "git_provider_organizationId_organization_id_fk": {
+ "name": "git_provider_organizationId_organization_id_fk",
+ "tableFrom": "git_provider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "git_provider_userId_user_id_fk": {
+ "name": "git_provider_userId_user_id_fk",
+ "tableFrom": "git_provider",
+ "tableTo": "user",
+ "columnsFrom": [
+ "userId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.gitea": {
+ "name": "gitea",
+ "schema": "",
+ "columns": {
+ "giteaId": {
+ "name": "giteaId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "giteaUrl": {
+ "name": "giteaUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'https://gitea.com'"
+ },
+ "giteaInternalUrl": {
+ "name": "giteaInternalUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "redirect_uri": {
+ "name": "redirect_uri",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "client_id": {
+ "name": "client_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "client_secret": {
+ "name": "client_secret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitProviderId": {
+ "name": "gitProviderId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "access_token": {
+ "name": "access_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refresh_token": {
+ "name": "refresh_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "scopes": {
+ "name": "scopes",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'repo,repo:status,read:user,read:org'"
+ },
+ "last_authenticated_at": {
+ "name": "last_authenticated_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "gitea_gitProviderId_git_provider_gitProviderId_fk": {
+ "name": "gitea_gitProviderId_git_provider_gitProviderId_fk",
+ "tableFrom": "gitea",
+ "tableTo": "git_provider",
+ "columnsFrom": [
+ "gitProviderId"
+ ],
+ "columnsTo": [
+ "gitProviderId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.github": {
+ "name": "github",
+ "schema": "",
+ "columns": {
+ "githubId": {
+ "name": "githubId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "githubAppName": {
+ "name": "githubAppName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubAppId": {
+ "name": "githubAppId",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubClientId": {
+ "name": "githubClientId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubClientSecret": {
+ "name": "githubClientSecret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubInstallationId": {
+ "name": "githubInstallationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubPrivateKey": {
+ "name": "githubPrivateKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubWebhookSecret": {
+ "name": "githubWebhookSecret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubUrl": {
+ "name": "githubUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'https://github.com'"
+ },
+ "gitProviderId": {
+ "name": "gitProviderId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "github_gitProviderId_git_provider_gitProviderId_fk": {
+ "name": "github_gitProviderId_git_provider_gitProviderId_fk",
+ "tableFrom": "github",
+ "tableTo": "git_provider",
+ "columnsFrom": [
+ "gitProviderId"
+ ],
+ "columnsTo": [
+ "gitProviderId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.gitlab": {
+ "name": "gitlab",
+ "schema": "",
+ "columns": {
+ "gitlabId": {
+ "name": "gitlabId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "gitlabUrl": {
+ "name": "gitlabUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'https://gitlab.com'"
+ },
+ "gitlabInternalUrl": {
+ "name": "gitlabInternalUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "application_id": {
+ "name": "application_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "redirect_uri": {
+ "name": "redirect_uri",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "secret": {
+ "name": "secret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "access_token": {
+ "name": "access_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refresh_token": {
+ "name": "refresh_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "group_name": {
+ "name": "group_name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitProviderId": {
+ "name": "gitProviderId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "gitlab_gitProviderId_git_provider_gitProviderId_fk": {
+ "name": "gitlab_gitProviderId_git_provider_gitProviderId_fk",
+ "tableFrom": "gitlab",
+ "tableTo": "git_provider",
+ "columnsFrom": [
+ "gitProviderId"
+ ],
+ "columnsTo": [
+ "gitProviderId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.libsql": {
+ "name": "libsql",
+ "schema": "",
+ "columns": {
+ "libsqlId": {
+ "name": "libsqlId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "databaseUser": {
+ "name": "databaseUser",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databasePassword": {
+ "name": "databasePassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "sqldNode": {
+ "name": "sqldNode",
+ "type": "sqldNode",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'primary'"
+ },
+ "sqldPrimaryUrl": {
+ "name": "sqldPrimaryUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enableNamespaces": {
+ "name": "enableNamespaces",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalGRPCPort": {
+ "name": "externalGRPCPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalAdminPort": {
+ "name": "externalAdminPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "libsql_environmentId_environment_environmentId_fk": {
+ "name": "libsql_environmentId_environment_environmentId_fk",
+ "tableFrom": "libsql",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "libsql_serverId_server_serverId_fk": {
+ "name": "libsql_serverId_server_serverId_fk",
+ "tableFrom": "libsql",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "libsql_appName_unique": {
+ "name": "libsql_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.mariadb": {
+ "name": "mariadb",
+ "schema": "",
+ "columns": {
+ "mariadbId": {
+ "name": "mariadbId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "databaseName": {
+ "name": "databaseName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databaseUser": {
+ "name": "databaseUser",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databasePassword": {
+ "name": "databasePassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "rootPassword": {
+ "name": "rootPassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "mariadb_environmentId_environment_environmentId_fk": {
+ "name": "mariadb_environmentId_environment_environmentId_fk",
+ "tableFrom": "mariadb",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mariadb_serverId_server_serverId_fk": {
+ "name": "mariadb_serverId_server_serverId_fk",
+ "tableFrom": "mariadb",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "mariadb_appName_unique": {
+ "name": "mariadb_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.mongo": {
+ "name": "mongo",
+ "schema": "",
+ "columns": {
+ "mongoId": {
+ "name": "mongoId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "databaseUser": {
+ "name": "databaseUser",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databasePassword": {
+ "name": "databasePassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'mongo:8'"
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicaSets": {
+ "name": "replicaSets",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "mongo_environmentId_environment_environmentId_fk": {
+ "name": "mongo_environmentId_environment_environmentId_fk",
+ "tableFrom": "mongo",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mongo_serverId_server_serverId_fk": {
+ "name": "mongo_serverId_server_serverId_fk",
+ "tableFrom": "mongo",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "mongo_appName_unique": {
+ "name": "mongo_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.mount": {
+ "name": "mount",
+ "schema": "",
+ "columns": {
+ "mountId": {
+ "name": "mountId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "type": {
+ "name": "type",
+ "type": "mountType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "hostPath": {
+ "name": "hostPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "volumeName": {
+ "name": "volumeName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "filePath": {
+ "name": "filePath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "content": {
+ "name": "content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serviceType": {
+ "name": "serviceType",
+ "type": "serviceType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'application'"
+ },
+ "mountPath": {
+ "name": "mountPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "libsqlId": {
+ "name": "libsqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mariadbId": {
+ "name": "mariadbId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mongoId": {
+ "name": "mongoId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mysqlId": {
+ "name": "mysqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "postgresId": {
+ "name": "postgresId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "redisId": {
+ "name": "redisId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "mount_applicationId_application_applicationId_fk": {
+ "name": "mount_applicationId_application_applicationId_fk",
+ "tableFrom": "mount",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_composeId_compose_composeId_fk": {
+ "name": "mount_composeId_compose_composeId_fk",
+ "tableFrom": "mount",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_libsqlId_libsql_libsqlId_fk": {
+ "name": "mount_libsqlId_libsql_libsqlId_fk",
+ "tableFrom": "mount",
+ "tableTo": "libsql",
+ "columnsFrom": [
+ "libsqlId"
+ ],
+ "columnsTo": [
+ "libsqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_mariadbId_mariadb_mariadbId_fk": {
+ "name": "mount_mariadbId_mariadb_mariadbId_fk",
+ "tableFrom": "mount",
+ "tableTo": "mariadb",
+ "columnsFrom": [
+ "mariadbId"
+ ],
+ "columnsTo": [
+ "mariadbId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_mongoId_mongo_mongoId_fk": {
+ "name": "mount_mongoId_mongo_mongoId_fk",
+ "tableFrom": "mount",
+ "tableTo": "mongo",
+ "columnsFrom": [
+ "mongoId"
+ ],
+ "columnsTo": [
+ "mongoId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_mysqlId_mysql_mysqlId_fk": {
+ "name": "mount_mysqlId_mysql_mysqlId_fk",
+ "tableFrom": "mount",
+ "tableTo": "mysql",
+ "columnsFrom": [
+ "mysqlId"
+ ],
+ "columnsTo": [
+ "mysqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_postgresId_postgres_postgresId_fk": {
+ "name": "mount_postgresId_postgres_postgresId_fk",
+ "tableFrom": "mount",
+ "tableTo": "postgres",
+ "columnsFrom": [
+ "postgresId"
+ ],
+ "columnsTo": [
+ "postgresId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_redisId_redis_redisId_fk": {
+ "name": "mount_redisId_redis_redisId_fk",
+ "tableFrom": "mount",
+ "tableTo": "redis",
+ "columnsFrom": [
+ "redisId"
+ ],
+ "columnsTo": [
+ "redisId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.mysql": {
+ "name": "mysql",
+ "schema": "",
+ "columns": {
+ "mysqlId": {
+ "name": "mysqlId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "databaseName": {
+ "name": "databaseName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databaseUser": {
+ "name": "databaseUser",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databasePassword": {
+ "name": "databasePassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "rootPassword": {
+ "name": "rootPassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "mysql_environmentId_environment_environmentId_fk": {
+ "name": "mysql_environmentId_environment_environmentId_fk",
+ "tableFrom": "mysql",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mysql_serverId_server_serverId_fk": {
+ "name": "mysql_serverId_server_serverId_fk",
+ "tableFrom": "mysql",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "mysql_appName_unique": {
+ "name": "mysql_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.network": {
+ "name": "network",
+ "schema": "",
+ "columns": {
+ "networkId": {
+ "name": "networkId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "dockerId": {
+ "name": "dockerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "driver": {
+ "name": "driver",
+ "type": "networkDriver",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'bridge'"
+ },
+ "internal": {
+ "name": "internal",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "attachable": {
+ "name": "attachable",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "enableIPv4": {
+ "name": "enableIPv4",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "enableIPv6": {
+ "name": "enableIPv6",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "mtu": {
+ "name": "mtu",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ipam": {
+ "name": "ipam",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'::jsonb"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "network_organizationId_organization_id_fk": {
+ "name": "network_organizationId_organization_id_fk",
+ "tableFrom": "network",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "network_serverId_server_serverId_fk": {
+ "name": "network_serverId_server_serverId_fk",
+ "tableFrom": "network",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.custom": {
+ "name": "custom",
+ "schema": "",
+ "columns": {
+ "customId": {
+ "name": "customId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "endpoint": {
+ "name": "endpoint",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "headers": {
+ "name": "headers",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.discord": {
+ "name": "discord",
+ "schema": "",
+ "columns": {
+ "discordId": {
+ "name": "discordId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "webhookUrl": {
+ "name": "webhookUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "decoration": {
+ "name": "decoration",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.email": {
+ "name": "email",
+ "schema": "",
+ "columns": {
+ "emailId": {
+ "name": "emailId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "smtpServer": {
+ "name": "smtpServer",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "smtpPort": {
+ "name": "smtpPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "fromAddress": {
+ "name": "fromAddress",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "toAddress": {
+ "name": "toAddress",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.gotify": {
+ "name": "gotify",
+ "schema": "",
+ "columns": {
+ "gotifyId": {
+ "name": "gotifyId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "serverUrl": {
+ "name": "serverUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appToken": {
+ "name": "appToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "priority": {
+ "name": "priority",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 5
+ },
+ "decoration": {
+ "name": "decoration",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.lark": {
+ "name": "lark",
+ "schema": "",
+ "columns": {
+ "larkId": {
+ "name": "larkId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "webhookUrl": {
+ "name": "webhookUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.mattermost": {
+ "name": "mattermost",
+ "schema": "",
+ "columns": {
+ "mattermostId": {
+ "name": "mattermostId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "webhookUrl": {
+ "name": "webhookUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "channel": {
+ "name": "channel",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.notification": {
+ "name": "notification",
+ "schema": "",
+ "columns": {
+ "notificationId": {
+ "name": "notificationId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appDeploy": {
+ "name": "appDeploy",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "appBuildError": {
+ "name": "appBuildError",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "databaseBackup": {
+ "name": "databaseBackup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "volumeBackup": {
+ "name": "volumeBackup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "dokployRestart": {
+ "name": "dokployRestart",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "dokployBackup": {
+ "name": "dokployBackup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "dockerCleanup": {
+ "name": "dockerCleanup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "serverThreshold": {
+ "name": "serverThreshold",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "notificationType": {
+ "name": "notificationType",
+ "type": "notificationType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "slackId": {
+ "name": "slackId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "telegramId": {
+ "name": "telegramId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "discordId": {
+ "name": "discordId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "emailId": {
+ "name": "emailId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "resendId": {
+ "name": "resendId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gotifyId": {
+ "name": "gotifyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ntfyId": {
+ "name": "ntfyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mattermostId": {
+ "name": "mattermostId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customId": {
+ "name": "customId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "larkId": {
+ "name": "larkId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "pushoverId": {
+ "name": "pushoverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "teamsId": {
+ "name": "teamsId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "notification_slackId_slack_slackId_fk": {
+ "name": "notification_slackId_slack_slackId_fk",
+ "tableFrom": "notification",
+ "tableTo": "slack",
+ "columnsFrom": [
+ "slackId"
+ ],
+ "columnsTo": [
+ "slackId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_telegramId_telegram_telegramId_fk": {
+ "name": "notification_telegramId_telegram_telegramId_fk",
+ "tableFrom": "notification",
+ "tableTo": "telegram",
+ "columnsFrom": [
+ "telegramId"
+ ],
+ "columnsTo": [
+ "telegramId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_discordId_discord_discordId_fk": {
+ "name": "notification_discordId_discord_discordId_fk",
+ "tableFrom": "notification",
+ "tableTo": "discord",
+ "columnsFrom": [
+ "discordId"
+ ],
+ "columnsTo": [
+ "discordId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_emailId_email_emailId_fk": {
+ "name": "notification_emailId_email_emailId_fk",
+ "tableFrom": "notification",
+ "tableTo": "email",
+ "columnsFrom": [
+ "emailId"
+ ],
+ "columnsTo": [
+ "emailId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_resendId_resend_resendId_fk": {
+ "name": "notification_resendId_resend_resendId_fk",
+ "tableFrom": "notification",
+ "tableTo": "resend",
+ "columnsFrom": [
+ "resendId"
+ ],
+ "columnsTo": [
+ "resendId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_gotifyId_gotify_gotifyId_fk": {
+ "name": "notification_gotifyId_gotify_gotifyId_fk",
+ "tableFrom": "notification",
+ "tableTo": "gotify",
+ "columnsFrom": [
+ "gotifyId"
+ ],
+ "columnsTo": [
+ "gotifyId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_ntfyId_ntfy_ntfyId_fk": {
+ "name": "notification_ntfyId_ntfy_ntfyId_fk",
+ "tableFrom": "notification",
+ "tableTo": "ntfy",
+ "columnsFrom": [
+ "ntfyId"
+ ],
+ "columnsTo": [
+ "ntfyId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_mattermostId_mattermost_mattermostId_fk": {
+ "name": "notification_mattermostId_mattermost_mattermostId_fk",
+ "tableFrom": "notification",
+ "tableTo": "mattermost",
+ "columnsFrom": [
+ "mattermostId"
+ ],
+ "columnsTo": [
+ "mattermostId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_customId_custom_customId_fk": {
+ "name": "notification_customId_custom_customId_fk",
+ "tableFrom": "notification",
+ "tableTo": "custom",
+ "columnsFrom": [
+ "customId"
+ ],
+ "columnsTo": [
+ "customId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_larkId_lark_larkId_fk": {
+ "name": "notification_larkId_lark_larkId_fk",
+ "tableFrom": "notification",
+ "tableTo": "lark",
+ "columnsFrom": [
+ "larkId"
+ ],
+ "columnsTo": [
+ "larkId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_pushoverId_pushover_pushoverId_fk": {
+ "name": "notification_pushoverId_pushover_pushoverId_fk",
+ "tableFrom": "notification",
+ "tableTo": "pushover",
+ "columnsFrom": [
+ "pushoverId"
+ ],
+ "columnsTo": [
+ "pushoverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_teamsId_teams_teamsId_fk": {
+ "name": "notification_teamsId_teams_teamsId_fk",
+ "tableFrom": "notification",
+ "tableTo": "teams",
+ "columnsFrom": [
+ "teamsId"
+ ],
+ "columnsTo": [
+ "teamsId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_organizationId_organization_id_fk": {
+ "name": "notification_organizationId_organization_id_fk",
+ "tableFrom": "notification",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.ntfy": {
+ "name": "ntfy",
+ "schema": "",
+ "columns": {
+ "ntfyId": {
+ "name": "ntfyId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "serverUrl": {
+ "name": "serverUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "topic": {
+ "name": "topic",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "accessToken": {
+ "name": "accessToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "priority": {
+ "name": "priority",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 3
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.pushover": {
+ "name": "pushover",
+ "schema": "",
+ "columns": {
+ "pushoverId": {
+ "name": "pushoverId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "userKey": {
+ "name": "userKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "apiToken": {
+ "name": "apiToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "priority": {
+ "name": "priority",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "retry": {
+ "name": "retry",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "expire": {
+ "name": "expire",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.resend": {
+ "name": "resend",
+ "schema": "",
+ "columns": {
+ "resendId": {
+ "name": "resendId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "apiKey": {
+ "name": "apiKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "fromAddress": {
+ "name": "fromAddress",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "toAddress": {
+ "name": "toAddress",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.slack": {
+ "name": "slack",
+ "schema": "",
+ "columns": {
+ "slackId": {
+ "name": "slackId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "webhookUrl": {
+ "name": "webhookUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "channel": {
+ "name": "channel",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.teams": {
+ "name": "teams",
+ "schema": "",
+ "columns": {
+ "teamsId": {
+ "name": "teamsId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "webhookUrl": {
+ "name": "webhookUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.telegram": {
+ "name": "telegram",
+ "schema": "",
+ "columns": {
+ "telegramId": {
+ "name": "telegramId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "botToken": {
+ "name": "botToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "chatId": {
+ "name": "chatId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "messageThreadId": {
+ "name": "messageThreadId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.patch": {
+ "name": "patch",
+ "schema": "",
+ "columns": {
+ "patchId": {
+ "name": "patchId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "type": {
+ "name": "type",
+ "type": "patchType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'update'"
+ },
+ "filePath": {
+ "name": "filePath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "content": {
+ "name": "content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "patch_applicationId_application_applicationId_fk": {
+ "name": "patch_applicationId_application_applicationId_fk",
+ "tableFrom": "patch",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "patch_composeId_compose_composeId_fk": {
+ "name": "patch_composeId_compose_composeId_fk",
+ "tableFrom": "patch",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "patch_filepath_application_unique": {
+ "name": "patch_filepath_application_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "filePath",
+ "applicationId"
+ ]
+ },
+ "patch_filepath_compose_unique": {
+ "name": "patch_filepath_compose_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "filePath",
+ "composeId"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.port": {
+ "name": "port",
+ "schema": "",
+ "columns": {
+ "portId": {
+ "name": "portId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "publishedPort": {
+ "name": "publishedPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "publishMode": {
+ "name": "publishMode",
+ "type": "publishModeType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'host'"
+ },
+ "targetPort": {
+ "name": "targetPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "protocol": {
+ "name": "protocol",
+ "type": "protocolType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "port_applicationId_application_applicationId_fk": {
+ "name": "port_applicationId_application_applicationId_fk",
+ "tableFrom": "port",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.postgres": {
+ "name": "postgres",
+ "schema": "",
+ "columns": {
+ "postgresId": {
+ "name": "postgresId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databaseName": {
+ "name": "databaseName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databaseUser": {
+ "name": "databaseUser",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databasePassword": {
+ "name": "databasePassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "postgres_environmentId_environment_environmentId_fk": {
+ "name": "postgres_environmentId_environment_environmentId_fk",
+ "tableFrom": "postgres",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "postgres_serverId_server_serverId_fk": {
+ "name": "postgres_serverId_server_serverId_fk",
+ "tableFrom": "postgres",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "postgres_appName_unique": {
+ "name": "postgres_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.preview_deployments": {
+ "name": "preview_deployments",
+ "schema": "",
+ "columns": {
+ "previewDeploymentId": {
+ "name": "previewDeploymentId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "branch": {
+ "name": "branch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pullRequestId": {
+ "name": "pullRequestId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pullRequestNumber": {
+ "name": "pullRequestNumber",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pullRequestURL": {
+ "name": "pullRequestURL",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pullRequestTitle": {
+ "name": "pullRequestTitle",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pullRequestCommentId": {
+ "name": "pullRequestCommentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "previewStatus": {
+ "name": "previewStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "domainId": {
+ "name": "domainId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "expiresAt": {
+ "name": "expiresAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "preview_deployments_applicationId_application_applicationId_fk": {
+ "name": "preview_deployments_applicationId_application_applicationId_fk",
+ "tableFrom": "preview_deployments",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "preview_deployments_domainId_domain_domainId_fk": {
+ "name": "preview_deployments_domainId_domain_domainId_fk",
+ "tableFrom": "preview_deployments",
+ "tableTo": "domain",
+ "columnsFrom": [
+ "domainId"
+ ],
+ "columnsTo": [
+ "domainId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "preview_deployments_appName_unique": {
+ "name": "preview_deployments_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.project": {
+ "name": "project",
+ "schema": "",
+ "columns": {
+ "projectId": {
+ "name": "projectId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "project_organizationId_organization_id_fk": {
+ "name": "project_organizationId_organization_id_fk",
+ "tableFrom": "project",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.redirect": {
+ "name": "redirect",
+ "schema": "",
+ "columns": {
+ "redirectId": {
+ "name": "redirectId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "regex": {
+ "name": "regex",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "replacement": {
+ "name": "replacement",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "permanent": {
+ "name": "permanent",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "uniqueConfigKey": {
+ "name": "uniqueConfigKey",
+ "type": "serial",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "redirect_applicationId_application_applicationId_fk": {
+ "name": "redirect_applicationId_application_applicationId_fk",
+ "tableFrom": "redirect",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.redis": {
+ "name": "redis",
+ "schema": "",
+ "columns": {
+ "redisId": {
+ "name": "redisId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "redis_environmentId_environment_environmentId_fk": {
+ "name": "redis_environmentId_environment_environmentId_fk",
+ "tableFrom": "redis",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "redis_serverId_server_serverId_fk": {
+ "name": "redis_serverId_server_serverId_fk",
+ "tableFrom": "redis",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "redis_appName_unique": {
+ "name": "redis_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.registry": {
+ "name": "registry",
+ "schema": "",
+ "columns": {
+ "registryId": {
+ "name": "registryId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "registryName": {
+ "name": "registryName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "imagePrefix": {
+ "name": "imagePrefix",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "registryUrl": {
+ "name": "registryUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "selfHosted": {
+ "name": "selfHosted",
+ "type": "RegistryType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'cloud'"
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "registry_organizationId_organization_id_fk": {
+ "name": "registry_organizationId_organization_id_fk",
+ "tableFrom": "registry",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.rollback": {
+ "name": "rollback",
+ "schema": "",
+ "columns": {
+ "rollbackId": {
+ "name": "rollbackId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "deploymentId": {
+ "name": "deploymentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "version": {
+ "name": "version",
+ "type": "serial",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "image": {
+ "name": "image",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "fullContext": {
+ "name": "fullContext",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "rollback_deploymentId_deployment_deploymentId_fk": {
+ "name": "rollback_deploymentId_deployment_deploymentId_fk",
+ "tableFrom": "rollback",
+ "tableTo": "deployment",
+ "columnsFrom": [
+ "deploymentId"
+ ],
+ "columnsTo": [
+ "deploymentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.sandbox": {
+ "name": "sandbox",
+ "schema": "",
+ "columns": {
+ "sandboxId": {
+ "name": "sandboxId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "image": {
+ "name": "image",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "template": {
+ "name": "template",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "containerId": {
+ "name": "containerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "status": {
+ "name": "status",
+ "type": "sandboxStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'creating'"
+ },
+ "cpu": {
+ "name": "cpu",
+ "type": "real",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "memoryMb": {
+ "name": "memoryMb",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 512
+ },
+ "pidsLimit": {
+ "name": "pidsLimit",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 256
+ },
+ "timeoutMs": {
+ "name": "timeoutMs",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 300000
+ },
+ "expiresAt": {
+ "name": "expiresAt",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "deadlineAt": {
+ "name": "deadlineAt",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "lastActivityAt": {
+ "name": "lastActivityAt",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkMode": {
+ "name": "networkMode",
+ "type": "sandboxNetworkMode",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'isolated'"
+ },
+ "envVars": {
+ "name": "envVars",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "workdir": {
+ "name": "workdir",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'/home/user'"
+ },
+ "user": {
+ "name": "user",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "runtime": {
+ "name": "runtime",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "killedAt": {
+ "name": "killedAt",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "sandbox_organizationId_organization_id_fk": {
+ "name": "sandbox_organizationId_organization_id_fk",
+ "tableFrom": "sandbox",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "sandbox_serverId_server_serverId_fk": {
+ "name": "sandbox_serverId_server_serverId_fk",
+ "tableFrom": "sandbox",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.schedule": {
+ "name": "schedule",
+ "schema": "",
+ "columns": {
+ "scheduleId": {
+ "name": "scheduleId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cronExpression": {
+ "name": "cronExpression",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serviceName": {
+ "name": "serviceName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "shellType": {
+ "name": "shellType",
+ "type": "shellType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'bash'"
+ },
+ "scheduleType": {
+ "name": "scheduleType",
+ "type": "scheduleType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'application'"
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "script": {
+ "name": "script",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "timezone": {
+ "name": "timezone",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "schedule_applicationId_application_applicationId_fk": {
+ "name": "schedule_applicationId_application_applicationId_fk",
+ "tableFrom": "schedule",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "schedule_composeId_compose_composeId_fk": {
+ "name": "schedule_composeId_compose_composeId_fk",
+ "tableFrom": "schedule",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "schedule_serverId_server_serverId_fk": {
+ "name": "schedule_serverId_server_serverId_fk",
+ "tableFrom": "schedule",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "schedule_organizationId_organization_id_fk": {
+ "name": "schedule_organizationId_organization_id_fk",
+ "tableFrom": "schedule",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.scim_provider": {
+ "name": "scim_provider",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "provider_id": {
+ "name": "provider_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "scim_token": {
+ "name": "scim_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "scim_provider_organization_id_organization_id_fk": {
+ "name": "scim_provider_organization_id_organization_id_fk",
+ "tableFrom": "scim_provider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "scim_provider_provider_id_unique": {
+ "name": "scim_provider_provider_id_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "provider_id"
+ ]
+ },
+ "scim_provider_scim_token_unique": {
+ "name": "scim_provider_scim_token_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "scim_token"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.security": {
+ "name": "security",
+ "schema": "",
+ "columns": {
+ "securityId": {
+ "name": "securityId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "security_applicationId_application_applicationId_fk": {
+ "name": "security_applicationId_application_applicationId_fk",
+ "tableFrom": "security",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "security_username_applicationId_unique": {
+ "name": "security_username_applicationId_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "username",
+ "applicationId"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.server": {
+ "name": "server",
+ "schema": "",
+ "columns": {
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ipAddress": {
+ "name": "ipAddress",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "port": {
+ "name": "port",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'root'"
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "enableDockerCleanup": {
+ "name": "enableDockerCleanup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "telemetryProviderIds": {
+ "name": "telemetryProviderIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "buildsConcurrency": {
+ "name": "buildsConcurrency",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverStatus": {
+ "name": "serverStatus",
+ "type": "serverStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'active'"
+ },
+ "serverType": {
+ "name": "serverType",
+ "type": "serverType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'deploy'"
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "sshKeyId": {
+ "name": "sshKeyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metricsConfig": {
+ "name": "metricsConfig",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'{\"server\":{\"type\":\"Remote\",\"refreshRate\":60,\"port\":4500,\"token\":\"\",\"urlCallback\":\"\",\"cronJob\":\"\",\"retentionDays\":2,\"thresholds\":{\"cpu\":0,\"memory\":0}},\"containers\":{\"refreshRate\":60,\"services\":{\"include\":[],\"exclude\":[]}}}'::jsonb"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "server_organizationId_organization_id_fk": {
+ "name": "server_organizationId_organization_id_fk",
+ "tableFrom": "server",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "server_sshKeyId_ssh-key_sshKeyId_fk": {
+ "name": "server_sshKeyId_ssh-key_sshKeyId_fk",
+ "tableFrom": "server",
+ "tableTo": "ssh-key",
+ "columnsFrom": [
+ "sshKeyId"
+ ],
+ "columnsTo": [
+ "sshKeyId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.session": {
+ "name": "session",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "token": {
+ "name": "token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "ip_address": {
+ "name": "ip_address",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_agent": {
+ "name": "user_agent",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "impersonated_by": {
+ "name": "impersonated_by",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "active_organization_id": {
+ "name": "active_organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "session_user_id_user_id_fk": {
+ "name": "session_user_id_user_id_fk",
+ "tableFrom": "session",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "session_token_unique": {
+ "name": "session_token_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "token"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.ssh-key": {
+ "name": "ssh-key",
+ "schema": "",
+ "columns": {
+ "sshKeyId": {
+ "name": "sshKeyId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "privateKey": {
+ "name": "privateKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "publicKey": {
+ "name": "publicKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "lastUsedAt": {
+ "name": "lastUsedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "ssh-key_organizationId_organization_id_fk": {
+ "name": "ssh-key_organizationId_organization_id_fk",
+ "tableFrom": "ssh-key",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.sso_provider": {
+ "name": "sso_provider",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "issuer": {
+ "name": "issuer",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "oidc_config": {
+ "name": "oidc_config",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "saml_config": {
+ "name": "saml_config",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "provider_id": {
+ "name": "provider_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "domain": {
+ "name": "domain",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "domain_verified": {
+ "name": "domain_verified",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "sso_provider_user_id_user_id_fk": {
+ "name": "sso_provider_user_id_user_id_fk",
+ "tableFrom": "sso_provider",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "sso_provider_organization_id_organization_id_fk": {
+ "name": "sso_provider_organization_id_organization_id_fk",
+ "tableFrom": "sso_provider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "sso_provider_provider_id_unique": {
+ "name": "sso_provider_provider_id_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "provider_id"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.project_tag": {
+ "name": "project_tag",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "projectId": {
+ "name": "projectId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "tagId": {
+ "name": "tagId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "project_tag_projectId_project_projectId_fk": {
+ "name": "project_tag_projectId_project_projectId_fk",
+ "tableFrom": "project_tag",
+ "tableTo": "project",
+ "columnsFrom": [
+ "projectId"
+ ],
+ "columnsTo": [
+ "projectId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "project_tag_tagId_tag_tagId_fk": {
+ "name": "project_tag_tagId_tag_tagId_fk",
+ "tableFrom": "project_tag",
+ "tableTo": "tag",
+ "columnsFrom": [
+ "tagId"
+ ],
+ "columnsTo": [
+ "tagId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "unique_project_tag": {
+ "name": "unique_project_tag",
+ "nullsNotDistinct": false,
+ "columns": [
+ "projectId",
+ "tagId"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.tag": {
+ "name": "tag",
+ "schema": "",
+ "columns": {
+ "tagId": {
+ "name": "tagId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "color": {
+ "name": "color",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "tag_organizationId_organization_id_fk": {
+ "name": "tag_organizationId_organization_id_fk",
+ "tableFrom": "tag",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "unique_org_tag_name": {
+ "name": "unique_org_tag_name",
+ "nullsNotDistinct": false,
+ "columns": [
+ "organizationId",
+ "name"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.telemetryProvider": {
+ "name": "telemetryProvider",
+ "schema": "",
+ "columns": {
+ "telemetryProviderId": {
+ "name": "telemetryProviderId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "providerType": {
+ "name": "providerType",
+ "type": "TelemetryProviderType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "signals": {
+ "name": "signals",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "endpoint": {
+ "name": "endpoint",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "apiKey": {
+ "name": "apiKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "apiSecret": {
+ "name": "apiSecret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "extraConfig": {
+ "name": "extraConfig",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "telemetryProvider_organizationId_organization_id_fk": {
+ "name": "telemetryProvider_organizationId_organization_id_fk",
+ "tableFrom": "telemetryProvider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.user": {
+ "name": "user",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "firstName": {
+ "name": "firstName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "lastName": {
+ "name": "lastName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "isRegistered": {
+ "name": "isRegistered",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "expirationDate": {
+ "name": "expirationDate",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ },
+ "two_factor_enabled": {
+ "name": "two_factor_enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "email": {
+ "name": "email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "email_verified": {
+ "name": "email_verified",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "image": {
+ "name": "image",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "banned": {
+ "name": "banned",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ban_reason": {
+ "name": "ban_reason",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ban_expires": {
+ "name": "ban_expires",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "role": {
+ "name": "role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'user'"
+ },
+ "enablePaidFeatures": {
+ "name": "enablePaidFeatures",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "allowImpersonation": {
+ "name": "allowImpersonation",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "enableEnterpriseFeatures": {
+ "name": "enableEnterpriseFeatures",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "licenseKey": {
+ "name": "licenseKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "isValidEnterpriseLicense": {
+ "name": "isValidEnterpriseLicense",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "stripeCustomerId": {
+ "name": "stripeCustomerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stripeSubscriptionId": {
+ "name": "stripeSubscriptionId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serversQuantity": {
+ "name": "serversQuantity",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "sendInvoiceNotifications": {
+ "name": "sendInvoiceNotifications",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "isEnterpriseCloud": {
+ "name": "isEnterpriseCloud",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "trustedOrigins": {
+ "name": "trustedOrigins",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bookmarkedTemplates": {
+ "name": "bookmarkedTemplates",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "ARRAY[]::text[]"
+ },
+ "onboardingCompletedAt": {
+ "name": "onboardingCompletedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "onboardingStep": {
+ "name": "onboardingStep",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "onboardingReturnEmails": {
+ "name": "onboardingReturnEmails",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "trialPlanPromptSubscriptionId": {
+ "name": "trialPlanPromptSubscriptionId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverSetupFailedEmailAt": {
+ "name": "serverSetupFailedEmailAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverConnectFailure": {
+ "name": "serverConnectFailure",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "lastSessionAt": {
+ "name": "lastSessionAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "deactivatedAt": {
+ "name": "deactivatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "user_email_unique": {
+ "name": "user_email_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "email"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.vault_provider": {
+ "name": "vault_provider",
+ "schema": "",
+ "columns": {
+ "vaultProviderId": {
+ "name": "vaultProviderId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "providerType": {
+ "name": "providerType",
+ "type": "VaultProviderType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "config": {
+ "name": "config",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "assignments": {
+ "name": "assignments",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'[]'::jsonb"
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "vault_provider_org_name_idx": {
+ "name": "vault_provider_org_name_idx",
+ "columns": [
+ {
+ "expression": "organizationId",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "name",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "vault_provider_organizationId_organization_id_fk": {
+ "name": "vault_provider_organizationId_organization_id_fk",
+ "tableFrom": "vault_provider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.volume_backup": {
+ "name": "volume_backup",
+ "schema": "",
+ "columns": {
+ "volumeBackupId": {
+ "name": "volumeBackupId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "volumeName": {
+ "name": "volumeName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "prefix": {
+ "name": "prefix",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serviceType": {
+ "name": "serviceType",
+ "type": "serviceType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'application'"
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serviceName": {
+ "name": "serviceName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "turnOff": {
+ "name": "turnOff",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "cronExpression": {
+ "name": "cronExpression",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "keepLatestCount": {
+ "name": "keepLatestCount",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "postgresId": {
+ "name": "postgresId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mariadbId": {
+ "name": "mariadbId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mongoId": {
+ "name": "mongoId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mysqlId": {
+ "name": "mysqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "redisId": {
+ "name": "redisId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "libsqlId": {
+ "name": "libsqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "destinationId": {
+ "name": "destinationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "volume_backup_applicationId_application_applicationId_fk": {
+ "name": "volume_backup_applicationId_application_applicationId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_postgresId_postgres_postgresId_fk": {
+ "name": "volume_backup_postgresId_postgres_postgresId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "postgres",
+ "columnsFrom": [
+ "postgresId"
+ ],
+ "columnsTo": [
+ "postgresId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_mariadbId_mariadb_mariadbId_fk": {
+ "name": "volume_backup_mariadbId_mariadb_mariadbId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "mariadb",
+ "columnsFrom": [
+ "mariadbId"
+ ],
+ "columnsTo": [
+ "mariadbId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_mongoId_mongo_mongoId_fk": {
+ "name": "volume_backup_mongoId_mongo_mongoId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "mongo",
+ "columnsFrom": [
+ "mongoId"
+ ],
+ "columnsTo": [
+ "mongoId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_mysqlId_mysql_mysqlId_fk": {
+ "name": "volume_backup_mysqlId_mysql_mysqlId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "mysql",
+ "columnsFrom": [
+ "mysqlId"
+ ],
+ "columnsTo": [
+ "mysqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_redisId_redis_redisId_fk": {
+ "name": "volume_backup_redisId_redis_redisId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "redis",
+ "columnsFrom": [
+ "redisId"
+ ],
+ "columnsTo": [
+ "redisId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_libsqlId_libsql_libsqlId_fk": {
+ "name": "volume_backup_libsqlId_libsql_libsqlId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "libsql",
+ "columnsFrom": [
+ "libsqlId"
+ ],
+ "columnsTo": [
+ "libsqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_composeId_compose_composeId_fk": {
+ "name": "volume_backup_composeId_compose_composeId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_destinationId_destination_destinationId_fk": {
+ "name": "volume_backup_destinationId_destination_destinationId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "destination",
+ "columnsFrom": [
+ "destinationId"
+ ],
+ "columnsTo": [
+ "destinationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.webServerSettings": {
+ "name": "webServerSettings",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "serverIp": {
+ "name": "serverIp",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "certificateType": {
+ "name": "certificateType",
+ "type": "certificateType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'none'"
+ },
+ "https": {
+ "name": "https",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "host": {
+ "name": "host",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "letsEncryptEmail": {
+ "name": "letsEncryptEmail",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sshPrivateKey": {
+ "name": "sshPrivateKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enableDockerCleanup": {
+ "name": "enableDockerCleanup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "logCleanupCron": {
+ "name": "logCleanupCron",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'0 0 * * *'"
+ },
+ "telemetryProviderIds": {
+ "name": "telemetryProviderIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "vectorAgentOrganizationId": {
+ "name": "vectorAgentOrganizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metricsConfig": {
+ "name": "metricsConfig",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'{\"server\":{\"type\":\"Dokploy\",\"refreshRate\":60,\"port\":4500,\"token\":\"\",\"retentionDays\":2,\"cronJob\":\"\",\"urlCallback\":\"\",\"thresholds\":{\"cpu\":0,\"memory\":0}},\"containers\":{\"refreshRate\":60,\"services\":{\"include\":[],\"exclude\":[]}}}'::jsonb"
+ },
+ "whitelabelingConfig": {
+ "name": "whitelabelingConfig",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{\"appName\":null,\"appDescription\":null,\"logoUrl\":null,\"faviconUrl\":null,\"customCss\":null,\"loginLogoUrl\":null,\"supportUrl\":null,\"docsUrl\":null,\"errorPageTitle\":null,\"errorPageDescription\":null,\"footerText\":null,\"ogImageUrl\":null,\"passwordResetGuide\":null,\"supportEmail\":null,\"logoLightUrl\":null,\"loginLogoLightUrl\":null,\"faviconLightUrl\":null,\"dualModeBranding\":false}'::jsonb"
+ },
+ "remoteServersOnly": {
+ "name": "remoteServersOnly",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "buildsConcurrency": {
+ "name": "buildsConcurrency",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "enforceSSO": {
+ "name": "enforceSSO",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "instanceOwnerId": {
+ "name": "instanceOwnerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "pendingOwnerId": {
+ "name": "pendingOwnerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "pendingOwnerExpiresAt": {
+ "name": "pendingOwnerExpiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cleanupCacheApplications": {
+ "name": "cleanupCacheApplications",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "cleanupCacheOnPreviews": {
+ "name": "cleanupCacheOnPreviews",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "cleanupCacheOnCompose": {
+ "name": "cleanupCacheOnCompose",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "webServerSettings_vectorAgentOrganizationId_organization_id_fk": {
+ "name": "webServerSettings_vectorAgentOrganizationId_organization_id_fk",
+ "tableFrom": "webServerSettings",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "vectorAgentOrganizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "webServerSettings_instanceOwnerId_user_id_fk": {
+ "name": "webServerSettings_instanceOwnerId_user_id_fk",
+ "tableFrom": "webServerSettings",
+ "tableTo": "user",
+ "columnsFrom": [
+ "instanceOwnerId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "webServerSettings_pendingOwnerId_user_id_fk": {
+ "name": "webServerSettings_pendingOwnerId_user_id_fk",
+ "tableFrom": "webServerSettings",
+ "tableTo": "user",
+ "columnsFrom": [
+ "pendingOwnerId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ }
+ },
+ "enums": {
+ "public.buildType": {
+ "name": "buildType",
+ "schema": "public",
+ "values": [
+ "dockerfile",
+ "heroku_buildpacks",
+ "paketo_buildpacks",
+ "nixpacks",
+ "static",
+ "railpack"
+ ]
+ },
+ "public.sourceType": {
+ "name": "sourceType",
+ "schema": "public",
+ "values": [
+ "docker",
+ "git",
+ "github",
+ "gitlab",
+ "bitbucket",
+ "gitea",
+ "drop"
+ ]
+ },
+ "public.backupType": {
+ "name": "backupType",
+ "schema": "public",
+ "values": [
+ "database",
+ "compose"
+ ]
+ },
+ "public.databaseType": {
+ "name": "databaseType",
+ "schema": "public",
+ "values": [
+ "postgres",
+ "mariadb",
+ "mysql",
+ "mongo",
+ "web-server",
+ "libsql"
+ ]
+ },
+ "public.cloudServerStatus": {
+ "name": "cloudServerStatus",
+ "schema": "public",
+ "values": [
+ "pending",
+ "provisioning",
+ "configuring",
+ "ready",
+ "upgrading",
+ "error",
+ "suspended",
+ "terminating"
+ ]
+ },
+ "public.composeType": {
+ "name": "composeType",
+ "schema": "public",
+ "values": [
+ "docker-compose",
+ "stack"
+ ]
+ },
+ "public.sourceTypeCompose": {
+ "name": "sourceTypeCompose",
+ "schema": "public",
+ "values": [
+ "git",
+ "github",
+ "gitlab",
+ "bitbucket",
+ "gitea",
+ "raw"
+ ]
+ },
+ "public.deploymentStatus": {
+ "name": "deploymentStatus",
+ "schema": "public",
+ "values": [
+ "running",
+ "done",
+ "error",
+ "cancelled"
+ ]
+ },
+ "public.DnsProviderType": {
+ "name": "DnsProviderType",
+ "schema": "public",
+ "values": [
+ "cloudflare",
+ "route53",
+ "porkbun",
+ "infomaniak",
+ "ovh"
+ ]
+ },
+ "public.domainType": {
+ "name": "domainType",
+ "schema": "public",
+ "values": [
+ "compose",
+ "application",
+ "preview"
+ ]
+ },
+ "public.gitProviderType": {
+ "name": "gitProviderType",
+ "schema": "public",
+ "values": [
+ "github",
+ "gitlab",
+ "bitbucket",
+ "gitea"
+ ]
+ },
+ "public.mountType": {
+ "name": "mountType",
+ "schema": "public",
+ "values": [
+ "bind",
+ "volume",
+ "file"
+ ]
+ },
+ "public.serviceType": {
+ "name": "serviceType",
+ "schema": "public",
+ "values": [
+ "application",
+ "postgres",
+ "mysql",
+ "mariadb",
+ "mongo",
+ "redis",
+ "compose",
+ "libsql"
+ ]
+ },
+ "public.networkDriver": {
+ "name": "networkDriver",
+ "schema": "public",
+ "values": [
+ "bridge",
+ "overlay"
+ ]
+ },
+ "public.notificationType": {
+ "name": "notificationType",
+ "schema": "public",
+ "values": [
+ "slack",
+ "telegram",
+ "discord",
+ "email",
+ "resend",
+ "gotify",
+ "ntfy",
+ "mattermost",
+ "pushover",
+ "custom",
+ "lark",
+ "teams"
+ ]
+ },
+ "public.patchType": {
+ "name": "patchType",
+ "schema": "public",
+ "values": [
+ "create",
+ "update",
+ "delete"
+ ]
+ },
+ "public.protocolType": {
+ "name": "protocolType",
+ "schema": "public",
+ "values": [
+ "tcp",
+ "udp"
+ ]
+ },
+ "public.publishModeType": {
+ "name": "publishModeType",
+ "schema": "public",
+ "values": [
+ "ingress",
+ "host"
+ ]
+ },
+ "public.RegistryType": {
+ "name": "RegistryType",
+ "schema": "public",
+ "values": [
+ "selfHosted",
+ "cloud"
+ ]
+ },
+ "public.sandboxNetworkMode": {
+ "name": "sandboxNetworkMode",
+ "schema": "public",
+ "values": [
+ "isolated",
+ "internet"
+ ]
+ },
+ "public.sandboxStatus": {
+ "name": "sandboxStatus",
+ "schema": "public",
+ "values": [
+ "creating",
+ "running",
+ "killed",
+ "error"
+ ]
+ },
+ "public.scheduleType": {
+ "name": "scheduleType",
+ "schema": "public",
+ "values": [
+ "application",
+ "compose",
+ "server",
+ "dokploy-server"
+ ]
+ },
+ "public.shellType": {
+ "name": "shellType",
+ "schema": "public",
+ "values": [
+ "bash",
+ "sh"
+ ]
+ },
+ "public.serverStatus": {
+ "name": "serverStatus",
+ "schema": "public",
+ "values": [
+ "active",
+ "inactive"
+ ]
+ },
+ "public.serverType": {
+ "name": "serverType",
+ "schema": "public",
+ "values": [
+ "deploy",
+ "build"
+ ]
+ },
+ "public.applicationStatus": {
+ "name": "applicationStatus",
+ "schema": "public",
+ "values": [
+ "idle",
+ "running",
+ "done",
+ "error"
+ ]
+ },
+ "public.certificateType": {
+ "name": "certificateType",
+ "schema": "public",
+ "values": [
+ "letsencrypt",
+ "none",
+ "custom"
+ ]
+ },
+ "public.sqldNode": {
+ "name": "sqldNode",
+ "schema": "public",
+ "values": [
+ "primary",
+ "replica"
+ ]
+ },
+ "public.triggerType": {
+ "name": "triggerType",
+ "schema": "public",
+ "values": [
+ "push",
+ "tag"
+ ]
+ },
+ "public.TelemetryProviderType": {
+ "name": "TelemetryProviderType",
+ "schema": "public",
+ "values": [
+ "loki",
+ "datadog",
+ "betterstack",
+ "elasticsearch",
+ "splunk_hec",
+ "aws_cloudwatch",
+ "prometheus_remote_write",
+ "new_relic",
+ "influxdb"
+ ]
+ },
+ "public.VaultProviderType": {
+ "name": "VaultProviderType",
+ "schema": "public",
+ "values": [
+ "hashicorp",
+ "infisical",
+ "aws",
+ "aws-parameter-store",
+ "doppler",
+ "azure",
+ "scaleway",
+ "phase"
+ ]
+ }
+ },
+ "schemas": {},
+ "sequences": {},
+ "roles": {},
+ "policies": {},
+ "views": {},
+ "_meta": {
+ "columns": {},
+ "schemas": {},
+ "tables": {}
+ }
+}
\ No newline at end of file
diff --git a/apps/dokploy/drizzle/meta/0211_snapshot.json b/apps/dokploy/drizzle/meta/0211_snapshot.json
new file mode 100644
index 000000000..4d7b3e3a2
--- /dev/null
+++ b/apps/dokploy/drizzle/meta/0211_snapshot.json
@@ -0,0 +1,9838 @@
+{
+ "id": "b4220c7a-8fbc-4455-80d3-4101d24cbc72",
+ "prevId": "877811c1-9c50-40dd-af75-653f92375315",
+ "version": "7",
+ "dialect": "postgresql",
+ "tables": {
+ "public.account": {
+ "name": "account",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "account_id": {
+ "name": "account_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "provider_id": {
+ "name": "provider_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "access_token": {
+ "name": "access_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refresh_token": {
+ "name": "refresh_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "id_token": {
+ "name": "id_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "access_token_expires_at": {
+ "name": "access_token_expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refresh_token_expires_at": {
+ "name": "refresh_token_expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "scope": {
+ "name": "scope",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "is2FAEnabled": {
+ "name": "is2FAEnabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "resetPasswordToken": {
+ "name": "resetPasswordToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "resetPasswordExpiresAt": {
+ "name": "resetPasswordExpiresAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "confirmationToken": {
+ "name": "confirmationToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "confirmationExpiresAt": {
+ "name": "confirmationExpiresAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "account_user_id_user_id_fk": {
+ "name": "account_user_id_user_id_fk",
+ "tableFrom": "account",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.apikey": {
+ "name": "apikey",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "start": {
+ "name": "start",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "prefix": {
+ "name": "prefix",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "key": {
+ "name": "key",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "config_id": {
+ "name": "config_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'default'"
+ },
+ "reference_id": {
+ "name": "reference_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "refill_interval": {
+ "name": "refill_interval",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refill_amount": {
+ "name": "refill_amount",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "last_refill_at": {
+ "name": "last_refill_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rate_limit_enabled": {
+ "name": "rate_limit_enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rate_limit_time_window": {
+ "name": "rate_limit_time_window",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rate_limit_max": {
+ "name": "rate_limit_max",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "request_count": {
+ "name": "request_count",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "remaining": {
+ "name": "remaining",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "last_request": {
+ "name": "last_request",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "permissions": {
+ "name": "permissions",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "apikey_reference_id_user_id_fk": {
+ "name": "apikey_reference_id_user_id_fk",
+ "tableFrom": "apikey",
+ "tableTo": "user",
+ "columnsFrom": [
+ "reference_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.invitation": {
+ "name": "invitation",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "email": {
+ "name": "email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "role": {
+ "name": "role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "status": {
+ "name": "status",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "inviter_id": {
+ "name": "inviter_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "team_id": {
+ "name": "team_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "invitation_organization_id_organization_id_fk": {
+ "name": "invitation_organization_id_organization_id_fk",
+ "tableFrom": "invitation",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "invitation_inviter_id_user_id_fk": {
+ "name": "invitation_inviter_id_user_id_fk",
+ "tableFrom": "invitation",
+ "tableTo": "user",
+ "columnsFrom": [
+ "inviter_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.member": {
+ "name": "member",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "role": {
+ "name": "role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "team_id": {
+ "name": "team_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "is_default": {
+ "name": "is_default",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canCreateProjects": {
+ "name": "canCreateProjects",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canAccessToSSHKeys": {
+ "name": "canAccessToSSHKeys",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canCreateServices": {
+ "name": "canCreateServices",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canDeleteProjects": {
+ "name": "canDeleteProjects",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canDeleteServices": {
+ "name": "canDeleteServices",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canAccessToDocker": {
+ "name": "canAccessToDocker",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canAccessToAPI": {
+ "name": "canAccessToAPI",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canAccessToGitProviders": {
+ "name": "canAccessToGitProviders",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canAccessToTraefikFiles": {
+ "name": "canAccessToTraefikFiles",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canDeleteEnvironments": {
+ "name": "canDeleteEnvironments",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "canCreateEnvironments": {
+ "name": "canCreateEnvironments",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "accesedProjects": {
+ "name": "accesedProjects",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "accessedEnvironments": {
+ "name": "accessedEnvironments",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "accesedServices": {
+ "name": "accesedServices",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "accessedGitProviders": {
+ "name": "accessedGitProviders",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "accessedServers": {
+ "name": "accessedServers",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "member_organization_id_organization_id_fk": {
+ "name": "member_organization_id_organization_id_fk",
+ "tableFrom": "member",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "member_user_id_user_id_fk": {
+ "name": "member_user_id_user_id_fk",
+ "tableFrom": "member",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.organization": {
+ "name": "organization",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "slug": {
+ "name": "slug",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "logo": {
+ "name": "logo",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "default_role": {
+ "name": "default_role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "owner_id": {
+ "name": "owner_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "organization_owner_id_user_id_fk": {
+ "name": "organization_owner_id_user_id_fk",
+ "tableFrom": "organization",
+ "tableTo": "user",
+ "columnsFrom": [
+ "owner_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "organization_slug_unique": {
+ "name": "organization_slug_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "slug"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.organization_role": {
+ "name": "organization_role",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "role": {
+ "name": "role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "permission": {
+ "name": "permission",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "allowed_domains": {
+ "name": "allowed_domains",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "require_https": {
+ "name": "require_https",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "organizationRole_organizationId_idx": {
+ "name": "organizationRole_organizationId_idx",
+ "columns": [
+ {
+ "expression": "organization_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "organizationRole_role_idx": {
+ "name": "organizationRole_role_idx",
+ "columns": [
+ {
+ "expression": "role",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "organization_role_organization_id_organization_id_fk": {
+ "name": "organization_role_organization_id_organization_id_fk",
+ "tableFrom": "organization_role",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.passkey": {
+ "name": "passkey",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "public_key": {
+ "name": "public_key",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "credential_id": {
+ "name": "credential_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "counter": {
+ "name": "counter",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "device_type": {
+ "name": "device_type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "backed_up": {
+ "name": "backed_up",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "transports": {
+ "name": "transports",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "aaguid": {
+ "name": "aaguid",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "passkey_userId_idx": {
+ "name": "passkey_userId_idx",
+ "columns": [
+ {
+ "expression": "user_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "passkey_credentialID_idx": {
+ "name": "passkey_credentialID_idx",
+ "columns": [
+ {
+ "expression": "credential_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "passkey_user_id_user_id_fk": {
+ "name": "passkey_user_id_user_id_fk",
+ "tableFrom": "passkey",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.two_factor": {
+ "name": "two_factor",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "secret": {
+ "name": "secret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "backup_codes": {
+ "name": "backup_codes",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "verified": {
+ "name": "verified",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "failed_verification_count": {
+ "name": "failed_verification_count",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "locked_until": {
+ "name": "locked_until",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "two_factor_user_id_user_id_fk": {
+ "name": "two_factor_user_id_user_id_fk",
+ "tableFrom": "two_factor",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.verification": {
+ "name": "verification",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "identifier": {
+ "name": "identifier",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "value": {
+ "name": "value",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.ai": {
+ "name": "ai",
+ "schema": "",
+ "columns": {
+ "aiId": {
+ "name": "aiId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "apiUrl": {
+ "name": "apiUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "apiKey": {
+ "name": "apiKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "model": {
+ "name": "model",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "isEnabled": {
+ "name": "isEnabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "ai_organizationId_organization_id_fk": {
+ "name": "ai_organizationId_organization_id_fk",
+ "tableFrom": "ai",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.application": {
+ "name": "application",
+ "schema": "",
+ "columns": {
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewEnv": {
+ "name": "previewEnv",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "watchPaths": {
+ "name": "watchPaths",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewBuildArgs": {
+ "name": "previewBuildArgs",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewBuildSecrets": {
+ "name": "previewBuildSecrets",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewLabels": {
+ "name": "previewLabels",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewWildcard": {
+ "name": "previewWildcard",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewPort": {
+ "name": "previewPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "default": 3000
+ },
+ "previewHttps": {
+ "name": "previewHttps",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "previewPath": {
+ "name": "previewPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "certificateType": {
+ "name": "certificateType",
+ "type": "certificateType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'none'"
+ },
+ "previewCustomCertResolver": {
+ "name": "previewCustomCertResolver",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewLimit": {
+ "name": "previewLimit",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "default": 3
+ },
+ "previewForwardAuthEnabled": {
+ "name": "previewForwardAuthEnabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "ssoAllowedEmails": {
+ "name": "ssoAllowedEmails",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ssoAllowedGroups": {
+ "name": "ssoAllowedGroups",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ssoAllowedEmailDomains": {
+ "name": "ssoAllowedEmailDomains",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "isPreviewDeploymentsActive": {
+ "name": "isPreviewDeploymentsActive",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "previewRequireCollaboratorPermissions": {
+ "name": "previewRequireCollaboratorPermissions",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": true
+ },
+ "rollbackActive": {
+ "name": "rollbackActive",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "buildArgs": {
+ "name": "buildArgs",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "buildSecrets": {
+ "name": "buildSecrets",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "subtitle": {
+ "name": "subtitle",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "icon": {
+ "name": "icon",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refreshToken": {
+ "name": "refreshToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sourceType": {
+ "name": "sourceType",
+ "type": "sourceType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'github'"
+ },
+ "cleanCache": {
+ "name": "cleanCache",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "repository": {
+ "name": "repository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "owner": {
+ "name": "owner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "branch": {
+ "name": "branch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "buildPath": {
+ "name": "buildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "triggerType": {
+ "name": "triggerType",
+ "type": "triggerType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'push'"
+ },
+ "autoDeploy": {
+ "name": "autoDeploy",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabProjectId": {
+ "name": "gitlabProjectId",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabRepository": {
+ "name": "gitlabRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabOwner": {
+ "name": "gitlabOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabBranch": {
+ "name": "gitlabBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabBuildPath": {
+ "name": "gitlabBuildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "gitlabPathNamespace": {
+ "name": "gitlabPathNamespace",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaRepository": {
+ "name": "giteaRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaOwner": {
+ "name": "giteaOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaBranch": {
+ "name": "giteaBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaBuildPath": {
+ "name": "giteaBuildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "bitbucketRepository": {
+ "name": "bitbucketRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketRepositorySlug": {
+ "name": "bitbucketRepositorySlug",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketOwner": {
+ "name": "bitbucketOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketBranch": {
+ "name": "bitbucketBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketBuildPath": {
+ "name": "bitbucketBuildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "registryUrl": {
+ "name": "registryUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitUrl": {
+ "name": "customGitUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitBranch": {
+ "name": "customGitBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitBuildPath": {
+ "name": "customGitBuildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitSSHKeyId": {
+ "name": "customGitSSHKeyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enableSubmodules": {
+ "name": "enableSubmodules",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "dockerfile": {
+ "name": "dockerfile",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'Dockerfile'"
+ },
+ "dockerContextPath": {
+ "name": "dockerContextPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "dockerBuildStage": {
+ "name": "dockerBuildStage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "dropBuildPath": {
+ "name": "dropBuildPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "buildType": {
+ "name": "buildType",
+ "type": "buildType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'nixpacks'"
+ },
+ "railpackVersion": {
+ "name": "railpackVersion",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'0.15.4'"
+ },
+ "herokuVersion": {
+ "name": "herokuVersion",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'24'"
+ },
+ "publishDirectory": {
+ "name": "publishDirectory",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "isStaticSpa": {
+ "name": "isStaticSpa",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createEnvFile": {
+ "name": "createEnvFile",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "registryId": {
+ "name": "registryId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackRegistryId": {
+ "name": "rollbackRegistryId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "githubId": {
+ "name": "githubId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabId": {
+ "name": "gitlabId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaId": {
+ "name": "giteaId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketId": {
+ "name": "bitbucketId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "buildServerId": {
+ "name": "buildServerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "buildRegistryId": {
+ "name": "buildRegistryId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "application_customGitSSHKeyId_ssh-key_sshKeyId_fk": {
+ "name": "application_customGitSSHKeyId_ssh-key_sshKeyId_fk",
+ "tableFrom": "application",
+ "tableTo": "ssh-key",
+ "columnsFrom": [
+ "customGitSSHKeyId"
+ ],
+ "columnsTo": [
+ "sshKeyId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_registryId_registry_registryId_fk": {
+ "name": "application_registryId_registry_registryId_fk",
+ "tableFrom": "application",
+ "tableTo": "registry",
+ "columnsFrom": [
+ "registryId"
+ ],
+ "columnsTo": [
+ "registryId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_rollbackRegistryId_registry_registryId_fk": {
+ "name": "application_rollbackRegistryId_registry_registryId_fk",
+ "tableFrom": "application",
+ "tableTo": "registry",
+ "columnsFrom": [
+ "rollbackRegistryId"
+ ],
+ "columnsTo": [
+ "registryId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_environmentId_environment_environmentId_fk": {
+ "name": "application_environmentId_environment_environmentId_fk",
+ "tableFrom": "application",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "application_githubId_github_githubId_fk": {
+ "name": "application_githubId_github_githubId_fk",
+ "tableFrom": "application",
+ "tableTo": "github",
+ "columnsFrom": [
+ "githubId"
+ ],
+ "columnsTo": [
+ "githubId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_gitlabId_gitlab_gitlabId_fk": {
+ "name": "application_gitlabId_gitlab_gitlabId_fk",
+ "tableFrom": "application",
+ "tableTo": "gitlab",
+ "columnsFrom": [
+ "gitlabId"
+ ],
+ "columnsTo": [
+ "gitlabId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_giteaId_gitea_giteaId_fk": {
+ "name": "application_giteaId_gitea_giteaId_fk",
+ "tableFrom": "application",
+ "tableTo": "gitea",
+ "columnsFrom": [
+ "giteaId"
+ ],
+ "columnsTo": [
+ "giteaId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_bitbucketId_bitbucket_bitbucketId_fk": {
+ "name": "application_bitbucketId_bitbucket_bitbucketId_fk",
+ "tableFrom": "application",
+ "tableTo": "bitbucket",
+ "columnsFrom": [
+ "bitbucketId"
+ ],
+ "columnsTo": [
+ "bitbucketId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_serverId_server_serverId_fk": {
+ "name": "application_serverId_server_serverId_fk",
+ "tableFrom": "application",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "application_buildServerId_server_serverId_fk": {
+ "name": "application_buildServerId_server_serverId_fk",
+ "tableFrom": "application",
+ "tableTo": "server",
+ "columnsFrom": [
+ "buildServerId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "application_buildRegistryId_registry_registryId_fk": {
+ "name": "application_buildRegistryId_registry_registryId_fk",
+ "tableFrom": "application",
+ "tableTo": "registry",
+ "columnsFrom": [
+ "buildRegistryId"
+ ],
+ "columnsTo": [
+ "registryId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "application_appName_unique": {
+ "name": "application_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.audit_log": {
+ "name": "audit_log",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_email": {
+ "name": "user_email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_role": {
+ "name": "user_role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "action": {
+ "name": "action",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "resource_type": {
+ "name": "resource_type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "resource_id": {
+ "name": "resource_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "resource_name": {
+ "name": "resource_name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "auditLog_organizationId_idx": {
+ "name": "auditLog_organizationId_idx",
+ "columns": [
+ {
+ "expression": "organization_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "auditLog_userId_idx": {
+ "name": "auditLog_userId_idx",
+ "columns": [
+ {
+ "expression": "user_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "auditLog_createdAt_idx": {
+ "name": "auditLog_createdAt_idx",
+ "columns": [
+ {
+ "expression": "created_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "audit_log_organization_id_organization_id_fk": {
+ "name": "audit_log_organization_id_organization_id_fk",
+ "tableFrom": "audit_log",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "audit_log_user_id_user_id_fk": {
+ "name": "audit_log_user_id_user_id_fk",
+ "tableFrom": "audit_log",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.backup": {
+ "name": "backup",
+ "schema": "",
+ "columns": {
+ "backupId": {
+ "name": "backupId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "schedule": {
+ "name": "schedule",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "database": {
+ "name": "database",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "prefix": {
+ "name": "prefix",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "customName": {
+ "name": "customName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serviceName": {
+ "name": "serviceName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "destinationId": {
+ "name": "destinationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "keepLatestCount": {
+ "name": "keepLatestCount",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "includeEncryptionKey": {
+ "name": "includeEncryptionKey",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "backupType": {
+ "name": "backupType",
+ "type": "backupType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'database'"
+ },
+ "databaseType": {
+ "name": "databaseType",
+ "type": "databaseType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "postgresId": {
+ "name": "postgresId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mariadbId": {
+ "name": "mariadbId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mysqlId": {
+ "name": "mysqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mongoId": {
+ "name": "mongoId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "libsqlId": {
+ "name": "libsqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "userId": {
+ "name": "userId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "backup_destinationId_destination_destinationId_fk": {
+ "name": "backup_destinationId_destination_destinationId_fk",
+ "tableFrom": "backup",
+ "tableTo": "destination",
+ "columnsFrom": [
+ "destinationId"
+ ],
+ "columnsTo": [
+ "destinationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_composeId_compose_composeId_fk": {
+ "name": "backup_composeId_compose_composeId_fk",
+ "tableFrom": "backup",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_postgresId_postgres_postgresId_fk": {
+ "name": "backup_postgresId_postgres_postgresId_fk",
+ "tableFrom": "backup",
+ "tableTo": "postgres",
+ "columnsFrom": [
+ "postgresId"
+ ],
+ "columnsTo": [
+ "postgresId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_mariadbId_mariadb_mariadbId_fk": {
+ "name": "backup_mariadbId_mariadb_mariadbId_fk",
+ "tableFrom": "backup",
+ "tableTo": "mariadb",
+ "columnsFrom": [
+ "mariadbId"
+ ],
+ "columnsTo": [
+ "mariadbId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_mysqlId_mysql_mysqlId_fk": {
+ "name": "backup_mysqlId_mysql_mysqlId_fk",
+ "tableFrom": "backup",
+ "tableTo": "mysql",
+ "columnsFrom": [
+ "mysqlId"
+ ],
+ "columnsTo": [
+ "mysqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_mongoId_mongo_mongoId_fk": {
+ "name": "backup_mongoId_mongo_mongoId_fk",
+ "tableFrom": "backup",
+ "tableTo": "mongo",
+ "columnsFrom": [
+ "mongoId"
+ ],
+ "columnsTo": [
+ "mongoId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_libsqlId_libsql_libsqlId_fk": {
+ "name": "backup_libsqlId_libsql_libsqlId_fk",
+ "tableFrom": "backup",
+ "tableTo": "libsql",
+ "columnsFrom": [
+ "libsqlId"
+ ],
+ "columnsTo": [
+ "libsqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "backup_userId_user_id_fk": {
+ "name": "backup_userId_user_id_fk",
+ "tableFrom": "backup",
+ "tableTo": "user",
+ "columnsFrom": [
+ "userId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "backup_appName_unique": {
+ "name": "backup_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.bitbucket": {
+ "name": "bitbucket",
+ "schema": "",
+ "columns": {
+ "bitbucketId": {
+ "name": "bitbucketId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "bitbucketUsername": {
+ "name": "bitbucketUsername",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketEmail": {
+ "name": "bitbucketEmail",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "appPassword": {
+ "name": "appPassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "apiToken": {
+ "name": "apiToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketWorkspaceName": {
+ "name": "bitbucketWorkspaceName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitProviderId": {
+ "name": "gitProviderId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "bitbucket_gitProviderId_git_provider_gitProviderId_fk": {
+ "name": "bitbucket_gitProviderId_git_provider_gitProviderId_fk",
+ "tableFrom": "bitbucket",
+ "tableTo": "git_provider",
+ "columnsFrom": [
+ "gitProviderId"
+ ],
+ "columnsTo": [
+ "gitProviderId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.certificate": {
+ "name": "certificate",
+ "schema": "",
+ "columns": {
+ "certificateId": {
+ "name": "certificateId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "certificateData": {
+ "name": "certificateData",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "privateKey": {
+ "name": "privateKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "certificatePath": {
+ "name": "certificatePath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "autoRenew": {
+ "name": "autoRenew",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "certificate_organizationId_organization_id_fk": {
+ "name": "certificate_organizationId_organization_id_fk",
+ "tableFrom": "certificate",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "certificate_serverId_server_serverId_fk": {
+ "name": "certificate_serverId_server_serverId_fk",
+ "tableFrom": "certificate",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "certificate_certificatePath_unique": {
+ "name": "certificate_certificatePath_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "certificatePath"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.cloud_server": {
+ "name": "cloud_server",
+ "schema": "",
+ "columns": {
+ "cloudServerId": {
+ "name": "cloudServerId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "plan": {
+ "name": "plan",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "status": {
+ "name": "status",
+ "type": "cloudServerStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "providerVmId": {
+ "name": "providerVmId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "providerVpcId": {
+ "name": "providerVpcId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "providerFirewallId": {
+ "name": "providerFirewallId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "zone": {
+ "name": "zone",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "sshKeyId": {
+ "name": "sshKeyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ipAddress": {
+ "name": "ipAddress",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "hostname": {
+ "name": "hostname",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stripeSubscriptionId": {
+ "name": "stripeSubscriptionId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stripeCheckoutSessionId": {
+ "name": "stripeCheckoutSessionId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "suspendedAt": {
+ "name": "suspendedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "paymentReminderAt": {
+ "name": "paymentReminderAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bandwidthBytes": {
+ "name": "bandwidthBytes",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "bandwidthMeasuredAt": {
+ "name": "bandwidthMeasuredAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "errorMessage": {
+ "name": "errorMessage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "cloud_server_organizationId_organization_id_fk": {
+ "name": "cloud_server_organizationId_organization_id_fk",
+ "tableFrom": "cloud_server",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "cloud_server_serverId_server_serverId_fk": {
+ "name": "cloud_server_serverId_server_serverId_fk",
+ "tableFrom": "cloud_server",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "cloud_server_sshKeyId_ssh-key_sshKeyId_fk": {
+ "name": "cloud_server_sshKeyId_ssh-key_sshKeyId_fk",
+ "tableFrom": "cloud_server",
+ "tableTo": "ssh-key",
+ "columnsFrom": [
+ "sshKeyId"
+ ],
+ "columnsTo": [
+ "sshKeyId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.compose": {
+ "name": "compose",
+ "schema": "",
+ "columns": {
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeFile": {
+ "name": "composeFile",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "refreshToken": {
+ "name": "refreshToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sourceType": {
+ "name": "sourceType",
+ "type": "sourceTypeCompose",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'github'"
+ },
+ "composeType": {
+ "name": "composeType",
+ "type": "composeType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'docker-compose'"
+ },
+ "repository": {
+ "name": "repository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "owner": {
+ "name": "owner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "branch": {
+ "name": "branch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "autoDeploy": {
+ "name": "autoDeploy",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabProjectId": {
+ "name": "gitlabProjectId",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabRepository": {
+ "name": "gitlabRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabOwner": {
+ "name": "gitlabOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabBranch": {
+ "name": "gitlabBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabPathNamespace": {
+ "name": "gitlabPathNamespace",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketRepository": {
+ "name": "bitbucketRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketRepositorySlug": {
+ "name": "bitbucketRepositorySlug",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketOwner": {
+ "name": "bitbucketOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketBranch": {
+ "name": "bitbucketBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaRepository": {
+ "name": "giteaRepository",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaOwner": {
+ "name": "giteaOwner",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaBranch": {
+ "name": "giteaBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitUrl": {
+ "name": "customGitUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitBranch": {
+ "name": "customGitBranch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customGitSSHKeyId": {
+ "name": "customGitSSHKeyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "createEnvFile": {
+ "name": "createEnvFile",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "enableSubmodules": {
+ "name": "enableSubmodules",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "composePath": {
+ "name": "composePath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'./docker-compose.yml'"
+ },
+ "suffix": {
+ "name": "suffix",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "randomize": {
+ "name": "randomize",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "isolatedDeployment": {
+ "name": "isolatedDeployment",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "isolatedDeploymentsVolume": {
+ "name": "isolatedDeploymentsVolume",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "pullImages": {
+ "name": "pullImages",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "triggerType": {
+ "name": "triggerType",
+ "type": "triggerType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'push'"
+ },
+ "composeStatus": {
+ "name": "composeStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "icon": {
+ "name": "icon",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "watchPaths": {
+ "name": "watchPaths",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubId": {
+ "name": "githubId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitlabId": {
+ "name": "gitlabId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bitbucketId": {
+ "name": "bitbucketId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "giteaId": {
+ "name": "giteaId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serviceNetworks": {
+ "name": "serviceNetworks",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'[]'::jsonb"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "compose_customGitSSHKeyId_ssh-key_sshKeyId_fk": {
+ "name": "compose_customGitSSHKeyId_ssh-key_sshKeyId_fk",
+ "tableFrom": "compose",
+ "tableTo": "ssh-key",
+ "columnsFrom": [
+ "customGitSSHKeyId"
+ ],
+ "columnsTo": [
+ "sshKeyId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "compose_environmentId_environment_environmentId_fk": {
+ "name": "compose_environmentId_environment_environmentId_fk",
+ "tableFrom": "compose",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "compose_githubId_github_githubId_fk": {
+ "name": "compose_githubId_github_githubId_fk",
+ "tableFrom": "compose",
+ "tableTo": "github",
+ "columnsFrom": [
+ "githubId"
+ ],
+ "columnsTo": [
+ "githubId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "compose_gitlabId_gitlab_gitlabId_fk": {
+ "name": "compose_gitlabId_gitlab_gitlabId_fk",
+ "tableFrom": "compose",
+ "tableTo": "gitlab",
+ "columnsFrom": [
+ "gitlabId"
+ ],
+ "columnsTo": [
+ "gitlabId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "compose_bitbucketId_bitbucket_bitbucketId_fk": {
+ "name": "compose_bitbucketId_bitbucket_bitbucketId_fk",
+ "tableFrom": "compose",
+ "tableTo": "bitbucket",
+ "columnsFrom": [
+ "bitbucketId"
+ ],
+ "columnsTo": [
+ "bitbucketId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "compose_giteaId_gitea_giteaId_fk": {
+ "name": "compose_giteaId_gitea_giteaId_fk",
+ "tableFrom": "compose",
+ "tableTo": "gitea",
+ "columnsFrom": [
+ "giteaId"
+ ],
+ "columnsTo": [
+ "giteaId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "compose_serverId_server_serverId_fk": {
+ "name": "compose_serverId_server_serverId_fk",
+ "tableFrom": "compose",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.deployment": {
+ "name": "deployment",
+ "schema": "",
+ "columns": {
+ "deploymentId": {
+ "name": "deploymentId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "status": {
+ "name": "status",
+ "type": "deploymentStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'running'"
+ },
+ "logPath": {
+ "name": "logPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pid": {
+ "name": "pid",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "isPreviewDeployment": {
+ "name": "isPreviewDeployment",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "previewDeploymentId": {
+ "name": "previewDeploymentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "startedAt": {
+ "name": "startedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "finishedAt": {
+ "name": "finishedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "errorMessage": {
+ "name": "errorMessage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "scheduleId": {
+ "name": "scheduleId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "backupId": {
+ "name": "backupId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackId": {
+ "name": "rollbackId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "volumeBackupId": {
+ "name": "volumeBackupId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "buildServerId": {
+ "name": "buildServerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "deployment_applicationId_application_applicationId_fk": {
+ "name": "deployment_applicationId_application_applicationId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_composeId_compose_composeId_fk": {
+ "name": "deployment_composeId_compose_composeId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_serverId_server_serverId_fk": {
+ "name": "deployment_serverId_server_serverId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_previewDeploymentId_preview_deployments_previewDeploymentId_fk": {
+ "name": "deployment_previewDeploymentId_preview_deployments_previewDeploymentId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "preview_deployments",
+ "columnsFrom": [
+ "previewDeploymentId"
+ ],
+ "columnsTo": [
+ "previewDeploymentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_scheduleId_schedule_scheduleId_fk": {
+ "name": "deployment_scheduleId_schedule_scheduleId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "schedule",
+ "columnsFrom": [
+ "scheduleId"
+ ],
+ "columnsTo": [
+ "scheduleId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_backupId_backup_backupId_fk": {
+ "name": "deployment_backupId_backup_backupId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "backup",
+ "columnsFrom": [
+ "backupId"
+ ],
+ "columnsTo": [
+ "backupId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_rollbackId_rollback_rollbackId_fk": {
+ "name": "deployment_rollbackId_rollback_rollbackId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "rollback",
+ "columnsFrom": [
+ "rollbackId"
+ ],
+ "columnsTo": [
+ "rollbackId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_volumeBackupId_volume_backup_volumeBackupId_fk": {
+ "name": "deployment_volumeBackupId_volume_backup_volumeBackupId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "volume_backup",
+ "columnsFrom": [
+ "volumeBackupId"
+ ],
+ "columnsTo": [
+ "volumeBackupId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "deployment_buildServerId_server_serverId_fk": {
+ "name": "deployment_buildServerId_server_serverId_fk",
+ "tableFrom": "deployment",
+ "tableTo": "server",
+ "columnsFrom": [
+ "buildServerId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.destination": {
+ "name": "destination",
+ "schema": "",
+ "columns": {
+ "destinationId": {
+ "name": "destinationId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "provider": {
+ "name": "provider",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "accessKey": {
+ "name": "accessKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "secretAccessKey": {
+ "name": "secretAccessKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "bucket": {
+ "name": "bucket",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "region": {
+ "name": "region",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "endpoint": {
+ "name": "endpoint",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "additionalFlags": {
+ "name": "additionalFlags",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "destination_organizationId_organization_id_fk": {
+ "name": "destination_organizationId_organization_id_fk",
+ "tableFrom": "destination",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.dns_provider": {
+ "name": "dns_provider",
+ "schema": "",
+ "columns": {
+ "dnsProviderId": {
+ "name": "dnsProviderId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "providerType": {
+ "name": "providerType",
+ "type": "DnsProviderType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "config": {
+ "name": "config",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "dns_provider_org_name_idx": {
+ "name": "dns_provider_org_name_idx",
+ "columns": [
+ {
+ "expression": "organizationId",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "name",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "dns_provider_organizationId_organization_id_fk": {
+ "name": "dns_provider_organizationId_organization_id_fk",
+ "tableFrom": "dns_provider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.domain": {
+ "name": "domain",
+ "schema": "",
+ "columns": {
+ "domainId": {
+ "name": "domainId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "host": {
+ "name": "host",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "https": {
+ "name": "https",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "port": {
+ "name": "port",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "default": 3000
+ },
+ "customEntrypoint": {
+ "name": "customEntrypoint",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "path": {
+ "name": "path",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "serviceName": {
+ "name": "serviceName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "domainType": {
+ "name": "domainType",
+ "type": "domainType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'application'"
+ },
+ "uniqueConfigKey": {
+ "name": "uniqueConfigKey",
+ "type": "serial",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customCertResolver": {
+ "name": "customCertResolver",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "previewDeploymentId": {
+ "name": "previewDeploymentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "certificateType": {
+ "name": "certificateType",
+ "type": "certificateType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'none'"
+ },
+ "internalPath": {
+ "name": "internalPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'/'"
+ },
+ "stripPath": {
+ "name": "stripPath",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "middlewares": {
+ "name": "middlewares",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "ARRAY[]::text[]"
+ },
+ "forwardAuthEnabled": {
+ "name": "forwardAuthEnabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "domain_composeId_compose_composeId_fk": {
+ "name": "domain_composeId_compose_composeId_fk",
+ "tableFrom": "domain",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "domain_applicationId_application_applicationId_fk": {
+ "name": "domain_applicationId_application_applicationId_fk",
+ "tableFrom": "domain",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "domain_previewDeploymentId_preview_deployments_previewDeploymentId_fk": {
+ "name": "domain_previewDeploymentId_preview_deployments_previewDeploymentId_fk",
+ "tableFrom": "domain",
+ "tableTo": "preview_deployments",
+ "columnsFrom": [
+ "previewDeploymentId"
+ ],
+ "columnsTo": [
+ "previewDeploymentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.environment": {
+ "name": "environment",
+ "schema": "",
+ "columns": {
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "projectId": {
+ "name": "projectId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "isDefault": {
+ "name": "isDefault",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "environment_projectId_project_projectId_fk": {
+ "name": "environment_projectId_project_projectId_fk",
+ "tableFrom": "environment",
+ "tableTo": "project",
+ "columnsFrom": [
+ "projectId"
+ ],
+ "columnsTo": [
+ "projectId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forward_auth_settings": {
+ "name": "forward_auth_settings",
+ "schema": "",
+ "columns": {
+ "forwardAuthSettingsId": {
+ "name": "forwardAuthSettingsId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "authDomain": {
+ "name": "authDomain",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "baseDomain": {
+ "name": "baseDomain",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "https": {
+ "name": "https",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "certificateType": {
+ "name": "certificateType",
+ "type": "certificateType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'letsencrypt'"
+ },
+ "customCertResolver": {
+ "name": "customCertResolver",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "providerId": {
+ "name": "providerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "forward_auth_settings_providerId_sso_provider_provider_id_fk": {
+ "name": "forward_auth_settings_providerId_sso_provider_provider_id_fk",
+ "tableFrom": "forward_auth_settings",
+ "tableTo": "sso_provider",
+ "columnsFrom": [
+ "providerId"
+ ],
+ "columnsTo": [
+ "provider_id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "forward_auth_settings_serverId_server_serverId_fk": {
+ "name": "forward_auth_settings_serverId_server_serverId_fk",
+ "tableFrom": "forward_auth_settings",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "forward_auth_settings_serverId_unique": {
+ "name": "forward_auth_settings_serverId_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "serverId"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.git_provider": {
+ "name": "git_provider",
+ "schema": "",
+ "columns": {
+ "gitProviderId": {
+ "name": "gitProviderId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "providerType": {
+ "name": "providerType",
+ "type": "gitProviderType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'github'"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "userId": {
+ "name": "userId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "sharedWithOrganization": {
+ "name": "sharedWithOrganization",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "git_provider_organizationId_organization_id_fk": {
+ "name": "git_provider_organizationId_organization_id_fk",
+ "tableFrom": "git_provider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "git_provider_userId_user_id_fk": {
+ "name": "git_provider_userId_user_id_fk",
+ "tableFrom": "git_provider",
+ "tableTo": "user",
+ "columnsFrom": [
+ "userId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.gitea": {
+ "name": "gitea",
+ "schema": "",
+ "columns": {
+ "giteaId": {
+ "name": "giteaId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "giteaUrl": {
+ "name": "giteaUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'https://gitea.com'"
+ },
+ "giteaInternalUrl": {
+ "name": "giteaInternalUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "redirect_uri": {
+ "name": "redirect_uri",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "client_id": {
+ "name": "client_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "client_secret": {
+ "name": "client_secret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitProviderId": {
+ "name": "gitProviderId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "access_token": {
+ "name": "access_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refresh_token": {
+ "name": "refresh_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "scopes": {
+ "name": "scopes",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'repo,repo:status,read:user,read:org'"
+ },
+ "last_authenticated_at": {
+ "name": "last_authenticated_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "gitea_gitProviderId_git_provider_gitProviderId_fk": {
+ "name": "gitea_gitProviderId_git_provider_gitProviderId_fk",
+ "tableFrom": "gitea",
+ "tableTo": "git_provider",
+ "columnsFrom": [
+ "gitProviderId"
+ ],
+ "columnsTo": [
+ "gitProviderId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.github": {
+ "name": "github",
+ "schema": "",
+ "columns": {
+ "githubId": {
+ "name": "githubId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "githubAppName": {
+ "name": "githubAppName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubAppId": {
+ "name": "githubAppId",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubClientId": {
+ "name": "githubClientId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubClientSecret": {
+ "name": "githubClientSecret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubInstallationId": {
+ "name": "githubInstallationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubPrivateKey": {
+ "name": "githubPrivateKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubWebhookSecret": {
+ "name": "githubWebhookSecret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "githubUrl": {
+ "name": "githubUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'https://github.com'"
+ },
+ "gitProviderId": {
+ "name": "gitProviderId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "github_gitProviderId_git_provider_gitProviderId_fk": {
+ "name": "github_gitProviderId_git_provider_gitProviderId_fk",
+ "tableFrom": "github",
+ "tableTo": "git_provider",
+ "columnsFrom": [
+ "gitProviderId"
+ ],
+ "columnsTo": [
+ "gitProviderId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.gitlab": {
+ "name": "gitlab",
+ "schema": "",
+ "columns": {
+ "gitlabId": {
+ "name": "gitlabId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "gitlabUrl": {
+ "name": "gitlabUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'https://gitlab.com'"
+ },
+ "gitlabInternalUrl": {
+ "name": "gitlabInternalUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "application_id": {
+ "name": "application_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "redirect_uri": {
+ "name": "redirect_uri",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "secret": {
+ "name": "secret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "access_token": {
+ "name": "access_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refresh_token": {
+ "name": "refresh_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "group_name": {
+ "name": "group_name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gitProviderId": {
+ "name": "gitProviderId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "gitlab_gitProviderId_git_provider_gitProviderId_fk": {
+ "name": "gitlab_gitProviderId_git_provider_gitProviderId_fk",
+ "tableFrom": "gitlab",
+ "tableTo": "git_provider",
+ "columnsFrom": [
+ "gitProviderId"
+ ],
+ "columnsTo": [
+ "gitProviderId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.libsql": {
+ "name": "libsql",
+ "schema": "",
+ "columns": {
+ "libsqlId": {
+ "name": "libsqlId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "databaseUser": {
+ "name": "databaseUser",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databasePassword": {
+ "name": "databasePassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "sqldNode": {
+ "name": "sqldNode",
+ "type": "sqldNode",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'primary'"
+ },
+ "sqldPrimaryUrl": {
+ "name": "sqldPrimaryUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enableNamespaces": {
+ "name": "enableNamespaces",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalGRPCPort": {
+ "name": "externalGRPCPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalAdminPort": {
+ "name": "externalAdminPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "libsql_environmentId_environment_environmentId_fk": {
+ "name": "libsql_environmentId_environment_environmentId_fk",
+ "tableFrom": "libsql",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "libsql_serverId_server_serverId_fk": {
+ "name": "libsql_serverId_server_serverId_fk",
+ "tableFrom": "libsql",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "libsql_appName_unique": {
+ "name": "libsql_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.mariadb": {
+ "name": "mariadb",
+ "schema": "",
+ "columns": {
+ "mariadbId": {
+ "name": "mariadbId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "databaseName": {
+ "name": "databaseName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databaseUser": {
+ "name": "databaseUser",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databasePassword": {
+ "name": "databasePassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "rootPassword": {
+ "name": "rootPassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "mariadb_environmentId_environment_environmentId_fk": {
+ "name": "mariadb_environmentId_environment_environmentId_fk",
+ "tableFrom": "mariadb",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mariadb_serverId_server_serverId_fk": {
+ "name": "mariadb_serverId_server_serverId_fk",
+ "tableFrom": "mariadb",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "mariadb_appName_unique": {
+ "name": "mariadb_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.mongo": {
+ "name": "mongo",
+ "schema": "",
+ "columns": {
+ "mongoId": {
+ "name": "mongoId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "databaseUser": {
+ "name": "databaseUser",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databasePassword": {
+ "name": "databasePassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'mongo:8'"
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicaSets": {
+ "name": "replicaSets",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "mongo_environmentId_environment_environmentId_fk": {
+ "name": "mongo_environmentId_environment_environmentId_fk",
+ "tableFrom": "mongo",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mongo_serverId_server_serverId_fk": {
+ "name": "mongo_serverId_server_serverId_fk",
+ "tableFrom": "mongo",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "mongo_appName_unique": {
+ "name": "mongo_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.mount": {
+ "name": "mount",
+ "schema": "",
+ "columns": {
+ "mountId": {
+ "name": "mountId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "type": {
+ "name": "type",
+ "type": "mountType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "hostPath": {
+ "name": "hostPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "volumeName": {
+ "name": "volumeName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "filePath": {
+ "name": "filePath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "content": {
+ "name": "content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serviceType": {
+ "name": "serviceType",
+ "type": "serviceType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'application'"
+ },
+ "mountPath": {
+ "name": "mountPath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "libsqlId": {
+ "name": "libsqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mariadbId": {
+ "name": "mariadbId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mongoId": {
+ "name": "mongoId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mysqlId": {
+ "name": "mysqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "postgresId": {
+ "name": "postgresId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "redisId": {
+ "name": "redisId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "mount_applicationId_application_applicationId_fk": {
+ "name": "mount_applicationId_application_applicationId_fk",
+ "tableFrom": "mount",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_composeId_compose_composeId_fk": {
+ "name": "mount_composeId_compose_composeId_fk",
+ "tableFrom": "mount",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_libsqlId_libsql_libsqlId_fk": {
+ "name": "mount_libsqlId_libsql_libsqlId_fk",
+ "tableFrom": "mount",
+ "tableTo": "libsql",
+ "columnsFrom": [
+ "libsqlId"
+ ],
+ "columnsTo": [
+ "libsqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_mariadbId_mariadb_mariadbId_fk": {
+ "name": "mount_mariadbId_mariadb_mariadbId_fk",
+ "tableFrom": "mount",
+ "tableTo": "mariadb",
+ "columnsFrom": [
+ "mariadbId"
+ ],
+ "columnsTo": [
+ "mariadbId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_mongoId_mongo_mongoId_fk": {
+ "name": "mount_mongoId_mongo_mongoId_fk",
+ "tableFrom": "mount",
+ "tableTo": "mongo",
+ "columnsFrom": [
+ "mongoId"
+ ],
+ "columnsTo": [
+ "mongoId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_mysqlId_mysql_mysqlId_fk": {
+ "name": "mount_mysqlId_mysql_mysqlId_fk",
+ "tableFrom": "mount",
+ "tableTo": "mysql",
+ "columnsFrom": [
+ "mysqlId"
+ ],
+ "columnsTo": [
+ "mysqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_postgresId_postgres_postgresId_fk": {
+ "name": "mount_postgresId_postgres_postgresId_fk",
+ "tableFrom": "mount",
+ "tableTo": "postgres",
+ "columnsFrom": [
+ "postgresId"
+ ],
+ "columnsTo": [
+ "postgresId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mount_redisId_redis_redisId_fk": {
+ "name": "mount_redisId_redis_redisId_fk",
+ "tableFrom": "mount",
+ "tableTo": "redis",
+ "columnsFrom": [
+ "redisId"
+ ],
+ "columnsTo": [
+ "redisId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.mysql": {
+ "name": "mysql",
+ "schema": "",
+ "columns": {
+ "mysqlId": {
+ "name": "mysqlId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "databaseName": {
+ "name": "databaseName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databaseUser": {
+ "name": "databaseUser",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databasePassword": {
+ "name": "databasePassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "rootPassword": {
+ "name": "rootPassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "mysql_environmentId_environment_environmentId_fk": {
+ "name": "mysql_environmentId_environment_environmentId_fk",
+ "tableFrom": "mysql",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "mysql_serverId_server_serverId_fk": {
+ "name": "mysql_serverId_server_serverId_fk",
+ "tableFrom": "mysql",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "mysql_appName_unique": {
+ "name": "mysql_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.network": {
+ "name": "network",
+ "schema": "",
+ "columns": {
+ "networkId": {
+ "name": "networkId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "dockerId": {
+ "name": "dockerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "driver": {
+ "name": "driver",
+ "type": "networkDriver",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'bridge'"
+ },
+ "internal": {
+ "name": "internal",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "attachable": {
+ "name": "attachable",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "enableIPv4": {
+ "name": "enableIPv4",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "enableIPv6": {
+ "name": "enableIPv6",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "mtu": {
+ "name": "mtu",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ipam": {
+ "name": "ipam",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'::jsonb"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "network_organizationId_organization_id_fk": {
+ "name": "network_organizationId_organization_id_fk",
+ "tableFrom": "network",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "network_serverId_server_serverId_fk": {
+ "name": "network_serverId_server_serverId_fk",
+ "tableFrom": "network",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.custom": {
+ "name": "custom",
+ "schema": "",
+ "columns": {
+ "customId": {
+ "name": "customId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "endpoint": {
+ "name": "endpoint",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "headers": {
+ "name": "headers",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.discord": {
+ "name": "discord",
+ "schema": "",
+ "columns": {
+ "discordId": {
+ "name": "discordId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "webhookUrl": {
+ "name": "webhookUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "decoration": {
+ "name": "decoration",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.email": {
+ "name": "email",
+ "schema": "",
+ "columns": {
+ "emailId": {
+ "name": "emailId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "smtpServer": {
+ "name": "smtpServer",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "smtpPort": {
+ "name": "smtpPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "fromAddress": {
+ "name": "fromAddress",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "toAddress": {
+ "name": "toAddress",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.gotify": {
+ "name": "gotify",
+ "schema": "",
+ "columns": {
+ "gotifyId": {
+ "name": "gotifyId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "serverUrl": {
+ "name": "serverUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appToken": {
+ "name": "appToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "priority": {
+ "name": "priority",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 5
+ },
+ "decoration": {
+ "name": "decoration",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.lark": {
+ "name": "lark",
+ "schema": "",
+ "columns": {
+ "larkId": {
+ "name": "larkId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "webhookUrl": {
+ "name": "webhookUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.mattermost": {
+ "name": "mattermost",
+ "schema": "",
+ "columns": {
+ "mattermostId": {
+ "name": "mattermostId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "webhookUrl": {
+ "name": "webhookUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "channel": {
+ "name": "channel",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.notification": {
+ "name": "notification",
+ "schema": "",
+ "columns": {
+ "notificationId": {
+ "name": "notificationId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appDeploy": {
+ "name": "appDeploy",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "appBuildError": {
+ "name": "appBuildError",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "databaseBackup": {
+ "name": "databaseBackup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "volumeBackup": {
+ "name": "volumeBackup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "dokployRestart": {
+ "name": "dokployRestart",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "dokployBackup": {
+ "name": "dokployBackup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "dockerCleanup": {
+ "name": "dockerCleanup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "serverThreshold": {
+ "name": "serverThreshold",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "notificationType": {
+ "name": "notificationType",
+ "type": "notificationType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "slackId": {
+ "name": "slackId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "telegramId": {
+ "name": "telegramId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "discordId": {
+ "name": "discordId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "emailId": {
+ "name": "emailId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "resendId": {
+ "name": "resendId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "gotifyId": {
+ "name": "gotifyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ntfyId": {
+ "name": "ntfyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mattermostId": {
+ "name": "mattermostId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "customId": {
+ "name": "customId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "larkId": {
+ "name": "larkId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "pushoverId": {
+ "name": "pushoverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "teamsId": {
+ "name": "teamsId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "notification_slackId_slack_slackId_fk": {
+ "name": "notification_slackId_slack_slackId_fk",
+ "tableFrom": "notification",
+ "tableTo": "slack",
+ "columnsFrom": [
+ "slackId"
+ ],
+ "columnsTo": [
+ "slackId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_telegramId_telegram_telegramId_fk": {
+ "name": "notification_telegramId_telegram_telegramId_fk",
+ "tableFrom": "notification",
+ "tableTo": "telegram",
+ "columnsFrom": [
+ "telegramId"
+ ],
+ "columnsTo": [
+ "telegramId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_discordId_discord_discordId_fk": {
+ "name": "notification_discordId_discord_discordId_fk",
+ "tableFrom": "notification",
+ "tableTo": "discord",
+ "columnsFrom": [
+ "discordId"
+ ],
+ "columnsTo": [
+ "discordId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_emailId_email_emailId_fk": {
+ "name": "notification_emailId_email_emailId_fk",
+ "tableFrom": "notification",
+ "tableTo": "email",
+ "columnsFrom": [
+ "emailId"
+ ],
+ "columnsTo": [
+ "emailId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_resendId_resend_resendId_fk": {
+ "name": "notification_resendId_resend_resendId_fk",
+ "tableFrom": "notification",
+ "tableTo": "resend",
+ "columnsFrom": [
+ "resendId"
+ ],
+ "columnsTo": [
+ "resendId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_gotifyId_gotify_gotifyId_fk": {
+ "name": "notification_gotifyId_gotify_gotifyId_fk",
+ "tableFrom": "notification",
+ "tableTo": "gotify",
+ "columnsFrom": [
+ "gotifyId"
+ ],
+ "columnsTo": [
+ "gotifyId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_ntfyId_ntfy_ntfyId_fk": {
+ "name": "notification_ntfyId_ntfy_ntfyId_fk",
+ "tableFrom": "notification",
+ "tableTo": "ntfy",
+ "columnsFrom": [
+ "ntfyId"
+ ],
+ "columnsTo": [
+ "ntfyId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_mattermostId_mattermost_mattermostId_fk": {
+ "name": "notification_mattermostId_mattermost_mattermostId_fk",
+ "tableFrom": "notification",
+ "tableTo": "mattermost",
+ "columnsFrom": [
+ "mattermostId"
+ ],
+ "columnsTo": [
+ "mattermostId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_customId_custom_customId_fk": {
+ "name": "notification_customId_custom_customId_fk",
+ "tableFrom": "notification",
+ "tableTo": "custom",
+ "columnsFrom": [
+ "customId"
+ ],
+ "columnsTo": [
+ "customId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_larkId_lark_larkId_fk": {
+ "name": "notification_larkId_lark_larkId_fk",
+ "tableFrom": "notification",
+ "tableTo": "lark",
+ "columnsFrom": [
+ "larkId"
+ ],
+ "columnsTo": [
+ "larkId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_pushoverId_pushover_pushoverId_fk": {
+ "name": "notification_pushoverId_pushover_pushoverId_fk",
+ "tableFrom": "notification",
+ "tableTo": "pushover",
+ "columnsFrom": [
+ "pushoverId"
+ ],
+ "columnsTo": [
+ "pushoverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_teamsId_teams_teamsId_fk": {
+ "name": "notification_teamsId_teams_teamsId_fk",
+ "tableFrom": "notification",
+ "tableTo": "teams",
+ "columnsFrom": [
+ "teamsId"
+ ],
+ "columnsTo": [
+ "teamsId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "notification_organizationId_organization_id_fk": {
+ "name": "notification_organizationId_organization_id_fk",
+ "tableFrom": "notification",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.ntfy": {
+ "name": "ntfy",
+ "schema": "",
+ "columns": {
+ "ntfyId": {
+ "name": "ntfyId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "serverUrl": {
+ "name": "serverUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "topic": {
+ "name": "topic",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "accessToken": {
+ "name": "accessToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "priority": {
+ "name": "priority",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 3
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.pushover": {
+ "name": "pushover",
+ "schema": "",
+ "columns": {
+ "pushoverId": {
+ "name": "pushoverId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "userKey": {
+ "name": "userKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "apiToken": {
+ "name": "apiToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "priority": {
+ "name": "priority",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "retry": {
+ "name": "retry",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "expire": {
+ "name": "expire",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.resend": {
+ "name": "resend",
+ "schema": "",
+ "columns": {
+ "resendId": {
+ "name": "resendId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "apiKey": {
+ "name": "apiKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "fromAddress": {
+ "name": "fromAddress",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "toAddress": {
+ "name": "toAddress",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.slack": {
+ "name": "slack",
+ "schema": "",
+ "columns": {
+ "slackId": {
+ "name": "slackId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "webhookUrl": {
+ "name": "webhookUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "channel": {
+ "name": "channel",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.teams": {
+ "name": "teams",
+ "schema": "",
+ "columns": {
+ "teamsId": {
+ "name": "teamsId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "webhookUrl": {
+ "name": "webhookUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.telegram": {
+ "name": "telegram",
+ "schema": "",
+ "columns": {
+ "telegramId": {
+ "name": "telegramId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "botToken": {
+ "name": "botToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "chatId": {
+ "name": "chatId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "messageThreadId": {
+ "name": "messageThreadId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.patch": {
+ "name": "patch",
+ "schema": "",
+ "columns": {
+ "patchId": {
+ "name": "patchId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "type": {
+ "name": "type",
+ "type": "patchType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'update'"
+ },
+ "filePath": {
+ "name": "filePath",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "content": {
+ "name": "content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "patch_applicationId_application_applicationId_fk": {
+ "name": "patch_applicationId_application_applicationId_fk",
+ "tableFrom": "patch",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "patch_composeId_compose_composeId_fk": {
+ "name": "patch_composeId_compose_composeId_fk",
+ "tableFrom": "patch",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "patch_filepath_application_unique": {
+ "name": "patch_filepath_application_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "filePath",
+ "applicationId"
+ ]
+ },
+ "patch_filepath_compose_unique": {
+ "name": "patch_filepath_compose_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "filePath",
+ "composeId"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.port": {
+ "name": "port",
+ "schema": "",
+ "columns": {
+ "portId": {
+ "name": "portId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "publishedPort": {
+ "name": "publishedPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "publishMode": {
+ "name": "publishMode",
+ "type": "publishModeType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'host'"
+ },
+ "targetPort": {
+ "name": "targetPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "protocol": {
+ "name": "protocol",
+ "type": "protocolType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "port_applicationId_application_applicationId_fk": {
+ "name": "port_applicationId_application_applicationId_fk",
+ "tableFrom": "port",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.postgres": {
+ "name": "postgres",
+ "schema": "",
+ "columns": {
+ "postgresId": {
+ "name": "postgresId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databaseName": {
+ "name": "databaseName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databaseUser": {
+ "name": "databaseUser",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "databasePassword": {
+ "name": "databasePassword",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "postgres_environmentId_environment_environmentId_fk": {
+ "name": "postgres_environmentId_environment_environmentId_fk",
+ "tableFrom": "postgres",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "postgres_serverId_server_serverId_fk": {
+ "name": "postgres_serverId_server_serverId_fk",
+ "tableFrom": "postgres",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "postgres_appName_unique": {
+ "name": "postgres_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.preview_deployments": {
+ "name": "preview_deployments",
+ "schema": "",
+ "columns": {
+ "previewDeploymentId": {
+ "name": "previewDeploymentId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "branch": {
+ "name": "branch",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pullRequestId": {
+ "name": "pullRequestId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pullRequestNumber": {
+ "name": "pullRequestNumber",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pullRequestURL": {
+ "name": "pullRequestURL",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pullRequestTitle": {
+ "name": "pullRequestTitle",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pullRequestCommentId": {
+ "name": "pullRequestCommentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "previewStatus": {
+ "name": "previewStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "domainId": {
+ "name": "domainId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "expiresAt": {
+ "name": "expiresAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "preview_deployments_applicationId_application_applicationId_fk": {
+ "name": "preview_deployments_applicationId_application_applicationId_fk",
+ "tableFrom": "preview_deployments",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "preview_deployments_domainId_domain_domainId_fk": {
+ "name": "preview_deployments_domainId_domain_domainId_fk",
+ "tableFrom": "preview_deployments",
+ "tableTo": "domain",
+ "columnsFrom": [
+ "domainId"
+ ],
+ "columnsTo": [
+ "domainId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "preview_deployments_appName_unique": {
+ "name": "preview_deployments_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.project": {
+ "name": "project",
+ "schema": "",
+ "columns": {
+ "projectId": {
+ "name": "projectId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "project_organizationId_organization_id_fk": {
+ "name": "project_organizationId_organization_id_fk",
+ "tableFrom": "project",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.redirect": {
+ "name": "redirect",
+ "schema": "",
+ "columns": {
+ "redirectId": {
+ "name": "redirectId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "regex": {
+ "name": "regex",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "replacement": {
+ "name": "replacement",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "permanent": {
+ "name": "permanent",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "uniqueConfigKey": {
+ "name": "uniqueConfigKey",
+ "type": "serial",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "redirect_applicationId_application_applicationId_fk": {
+ "name": "redirect_applicationId_application_applicationId_fk",
+ "tableFrom": "redirect",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.redis": {
+ "name": "redis",
+ "schema": "",
+ "columns": {
+ "redisId": {
+ "name": "redisId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "dockerImage": {
+ "name": "dockerImage",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "args": {
+ "name": "args",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "env": {
+ "name": "env",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryReservation": {
+ "name": "memoryReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "memoryLimit": {
+ "name": "memoryLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuReservation": {
+ "name": "cpuReservation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cpuLimit": {
+ "name": "cpuLimit",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "externalPort": {
+ "name": "externalPort",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationStatus": {
+ "name": "applicationStatus",
+ "type": "applicationStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'idle'"
+ },
+ "healthCheckSwarm": {
+ "name": "healthCheckSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "restartPolicySwarm": {
+ "name": "restartPolicySwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placementSwarm": {
+ "name": "placementSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updateConfigSwarm": {
+ "name": "updateConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rollbackConfigSwarm": {
+ "name": "rollbackConfigSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "modeSwarm": {
+ "name": "modeSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "labelsSwarm": {
+ "name": "labelsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkSwarm": {
+ "name": "networkSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stopGracePeriodSwarm": {
+ "name": "stopGracePeriodSwarm",
+ "type": "bigint",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "endpointSpecSwarm": {
+ "name": "endpointSpecSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ulimitsSwarm": {
+ "name": "ulimitsSwarm",
+ "type": "json",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "replicas": {
+ "name": "replicas",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "environmentId": {
+ "name": "environmentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkIds": {
+ "name": "networkIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'"
+ },
+ "detachDokployNetwork": {
+ "name": "detachDokployNetwork",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "redis_environmentId_environment_environmentId_fk": {
+ "name": "redis_environmentId_environment_environmentId_fk",
+ "tableFrom": "redis",
+ "tableTo": "environment",
+ "columnsFrom": [
+ "environmentId"
+ ],
+ "columnsTo": [
+ "environmentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "redis_serverId_server_serverId_fk": {
+ "name": "redis_serverId_server_serverId_fk",
+ "tableFrom": "redis",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "redis_appName_unique": {
+ "name": "redis_appName_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "appName"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.registry": {
+ "name": "registry",
+ "schema": "",
+ "columns": {
+ "registryId": {
+ "name": "registryId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "registryName": {
+ "name": "registryName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "imagePrefix": {
+ "name": "imagePrefix",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "registryUrl": {
+ "name": "registryUrl",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "selfHosted": {
+ "name": "selfHosted",
+ "type": "RegistryType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'cloud'"
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "registry_organizationId_organization_id_fk": {
+ "name": "registry_organizationId_organization_id_fk",
+ "tableFrom": "registry",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.rollback": {
+ "name": "rollback",
+ "schema": "",
+ "columns": {
+ "rollbackId": {
+ "name": "rollbackId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "deploymentId": {
+ "name": "deploymentId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "version": {
+ "name": "version",
+ "type": "serial",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "image": {
+ "name": "image",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "fullContext": {
+ "name": "fullContext",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "rollback_deploymentId_deployment_deploymentId_fk": {
+ "name": "rollback_deploymentId_deployment_deploymentId_fk",
+ "tableFrom": "rollback",
+ "tableTo": "deployment",
+ "columnsFrom": [
+ "deploymentId"
+ ],
+ "columnsTo": [
+ "deploymentId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.sandbox": {
+ "name": "sandbox",
+ "schema": "",
+ "columns": {
+ "sandboxId": {
+ "name": "sandboxId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "image": {
+ "name": "image",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "template": {
+ "name": "template",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "containerId": {
+ "name": "containerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "status": {
+ "name": "status",
+ "type": "sandboxStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'creating'"
+ },
+ "cpu": {
+ "name": "cpu",
+ "type": "real",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "memoryMb": {
+ "name": "memoryMb",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 512
+ },
+ "pidsLimit": {
+ "name": "pidsLimit",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 256
+ },
+ "timeoutMs": {
+ "name": "timeoutMs",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 300000
+ },
+ "expiresAt": {
+ "name": "expiresAt",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "deadlineAt": {
+ "name": "deadlineAt",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "lastActivityAt": {
+ "name": "lastActivityAt",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "networkMode": {
+ "name": "networkMode",
+ "type": "sandboxNetworkMode",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'isolated'"
+ },
+ "envVars": {
+ "name": "envVars",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "workdir": {
+ "name": "workdir",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'/home/user'"
+ },
+ "user": {
+ "name": "user",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "runtime": {
+ "name": "runtime",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "killedAt": {
+ "name": "killedAt",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "sandbox_organizationId_organization_id_fk": {
+ "name": "sandbox_organizationId_organization_id_fk",
+ "tableFrom": "sandbox",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "sandbox_serverId_server_serverId_fk": {
+ "name": "sandbox_serverId_server_serverId_fk",
+ "tableFrom": "sandbox",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.schedule": {
+ "name": "schedule",
+ "schema": "",
+ "columns": {
+ "scheduleId": {
+ "name": "scheduleId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cronExpression": {
+ "name": "cronExpression",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serviceName": {
+ "name": "serviceName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "shellType": {
+ "name": "shellType",
+ "type": "shellType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'bash'"
+ },
+ "scheduleType": {
+ "name": "scheduleType",
+ "type": "scheduleType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'application'"
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "script": {
+ "name": "script",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "timezone": {
+ "name": "timezone",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "schedule_applicationId_application_applicationId_fk": {
+ "name": "schedule_applicationId_application_applicationId_fk",
+ "tableFrom": "schedule",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "schedule_composeId_compose_composeId_fk": {
+ "name": "schedule_composeId_compose_composeId_fk",
+ "tableFrom": "schedule",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "schedule_serverId_server_serverId_fk": {
+ "name": "schedule_serverId_server_serverId_fk",
+ "tableFrom": "schedule",
+ "tableTo": "server",
+ "columnsFrom": [
+ "serverId"
+ ],
+ "columnsTo": [
+ "serverId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "schedule_organizationId_organization_id_fk": {
+ "name": "schedule_organizationId_organization_id_fk",
+ "tableFrom": "schedule",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.scim_provider": {
+ "name": "scim_provider",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "provider_id": {
+ "name": "provider_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "scim_token": {
+ "name": "scim_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "scim_provider_organization_id_organization_id_fk": {
+ "name": "scim_provider_organization_id_organization_id_fk",
+ "tableFrom": "scim_provider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "scim_provider_provider_id_unique": {
+ "name": "scim_provider_provider_id_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "provider_id"
+ ]
+ },
+ "scim_provider_scim_token_unique": {
+ "name": "scim_provider_scim_token_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "scim_token"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.security": {
+ "name": "security",
+ "schema": "",
+ "columns": {
+ "securityId": {
+ "name": "securityId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "security_applicationId_application_applicationId_fk": {
+ "name": "security_applicationId_application_applicationId_fk",
+ "tableFrom": "security",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "security_username_applicationId_unique": {
+ "name": "security_username_applicationId_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "username",
+ "applicationId"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.server": {
+ "name": "server",
+ "schema": "",
+ "columns": {
+ "serverId": {
+ "name": "serverId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ipAddress": {
+ "name": "ipAddress",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "port": {
+ "name": "port",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'root'"
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "enableDockerCleanup": {
+ "name": "enableDockerCleanup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "telemetryProviderIds": {
+ "name": "telemetryProviderIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "buildsConcurrency": {
+ "name": "buildsConcurrency",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serverStatus": {
+ "name": "serverStatus",
+ "type": "serverStatus",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'active'"
+ },
+ "serverType": {
+ "name": "serverType",
+ "type": "serverType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'deploy'"
+ },
+ "command": {
+ "name": "command",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "sshKeyId": {
+ "name": "sshKeyId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metricsConfig": {
+ "name": "metricsConfig",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'{\"server\":{\"type\":\"Remote\",\"refreshRate\":60,\"port\":4500,\"token\":\"\",\"urlCallback\":\"\",\"cronJob\":\"\",\"retentionDays\":2,\"thresholds\":{\"cpu\":0,\"memory\":0}},\"containers\":{\"refreshRate\":60,\"services\":{\"include\":[],\"exclude\":[]}}}'::jsonb"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "server_organizationId_organization_id_fk": {
+ "name": "server_organizationId_organization_id_fk",
+ "tableFrom": "server",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "server_sshKeyId_ssh-key_sshKeyId_fk": {
+ "name": "server_sshKeyId_ssh-key_sshKeyId_fk",
+ "tableFrom": "server",
+ "tableTo": "ssh-key",
+ "columnsFrom": [
+ "sshKeyId"
+ ],
+ "columnsTo": [
+ "sshKeyId"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.session": {
+ "name": "session",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "token": {
+ "name": "token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "ip_address": {
+ "name": "ip_address",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_agent": {
+ "name": "user_agent",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "impersonated_by": {
+ "name": "impersonated_by",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "active_organization_id": {
+ "name": "active_organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "session_user_id_user_id_fk": {
+ "name": "session_user_id_user_id_fk",
+ "tableFrom": "session",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "session_token_unique": {
+ "name": "session_token_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "token"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.ssh-key": {
+ "name": "ssh-key",
+ "schema": "",
+ "columns": {
+ "sshKeyId": {
+ "name": "sshKeyId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "privateKey": {
+ "name": "privateKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "publicKey": {
+ "name": "publicKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "lastUsedAt": {
+ "name": "lastUsedAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "ssh-key_organizationId_organization_id_fk": {
+ "name": "ssh-key_organizationId_organization_id_fk",
+ "tableFrom": "ssh-key",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.sso_provider": {
+ "name": "sso_provider",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "issuer": {
+ "name": "issuer",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "oidc_config": {
+ "name": "oidc_config",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "saml_config": {
+ "name": "saml_config",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "provider_id": {
+ "name": "provider_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "domain": {
+ "name": "domain",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "domain_verified": {
+ "name": "domain_verified",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "sso_provider_user_id_user_id_fk": {
+ "name": "sso_provider_user_id_user_id_fk",
+ "tableFrom": "sso_provider",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "sso_provider_organization_id_organization_id_fk": {
+ "name": "sso_provider_organization_id_organization_id_fk",
+ "tableFrom": "sso_provider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "sso_provider_provider_id_unique": {
+ "name": "sso_provider_provider_id_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "provider_id"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.project_tag": {
+ "name": "project_tag",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "projectId": {
+ "name": "projectId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "tagId": {
+ "name": "tagId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "project_tag_projectId_project_projectId_fk": {
+ "name": "project_tag_projectId_project_projectId_fk",
+ "tableFrom": "project_tag",
+ "tableTo": "project",
+ "columnsFrom": [
+ "projectId"
+ ],
+ "columnsTo": [
+ "projectId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "project_tag_tagId_tag_tagId_fk": {
+ "name": "project_tag_tagId_tag_tagId_fk",
+ "tableFrom": "project_tag",
+ "tableTo": "tag",
+ "columnsFrom": [
+ "tagId"
+ ],
+ "columnsTo": [
+ "tagId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "unique_project_tag": {
+ "name": "unique_project_tag",
+ "nullsNotDistinct": false,
+ "columns": [
+ "projectId",
+ "tagId"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.tag": {
+ "name": "tag",
+ "schema": "",
+ "columns": {
+ "tagId": {
+ "name": "tagId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "color": {
+ "name": "color",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "tag_organizationId_organization_id_fk": {
+ "name": "tag_organizationId_organization_id_fk",
+ "tableFrom": "tag",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "unique_org_tag_name": {
+ "name": "unique_org_tag_name",
+ "nullsNotDistinct": false,
+ "columns": [
+ "organizationId",
+ "name"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.telemetryProvider": {
+ "name": "telemetryProvider",
+ "schema": "",
+ "columns": {
+ "telemetryProviderId": {
+ "name": "telemetryProviderId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "providerType": {
+ "name": "providerType",
+ "type": "TelemetryProviderType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "signals": {
+ "name": "signals",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "endpoint": {
+ "name": "endpoint",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "apiKey": {
+ "name": "apiKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "apiSecret": {
+ "name": "apiSecret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "extraConfig": {
+ "name": "extraConfig",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "telemetryProvider_organizationId_organization_id_fk": {
+ "name": "telemetryProvider_organizationId_organization_id_fk",
+ "tableFrom": "telemetryProvider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.user": {
+ "name": "user",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "firstName": {
+ "name": "firstName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "lastName": {
+ "name": "lastName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "''"
+ },
+ "isRegistered": {
+ "name": "isRegistered",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "expirationDate": {
+ "name": "expirationDate",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ },
+ "two_factor_enabled": {
+ "name": "two_factor_enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "email": {
+ "name": "email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "email_verified": {
+ "name": "email_verified",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "image": {
+ "name": "image",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "banned": {
+ "name": "banned",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ban_reason": {
+ "name": "ban_reason",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ban_expires": {
+ "name": "ban_expires",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "role": {
+ "name": "role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'user'"
+ },
+ "enablePaidFeatures": {
+ "name": "enablePaidFeatures",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "allowImpersonation": {
+ "name": "allowImpersonation",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "enableEnterpriseFeatures": {
+ "name": "enableEnterpriseFeatures",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "licenseKey": {
+ "name": "licenseKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "isValidEnterpriseLicense": {
+ "name": "isValidEnterpriseLicense",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "stripeCustomerId": {
+ "name": "stripeCustomerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stripeSubscriptionId": {
+ "name": "stripeSubscriptionId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serversQuantity": {
+ "name": "serversQuantity",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "sendInvoiceNotifications": {
+ "name": "sendInvoiceNotifications",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "isEnterpriseCloud": {
+ "name": "isEnterpriseCloud",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "trustedOrigins": {
+ "name": "trustedOrigins",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bookmarkedTemplates": {
+ "name": "bookmarkedTemplates",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "ARRAY[]::text[]"
+ },
+ "onboardingCompletedAt": {
+ "name": "onboardingCompletedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "onboardingStep": {
+ "name": "onboardingStep",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "onboardingReturnEmails": {
+ "name": "onboardingReturnEmails",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "trialPlanPromptSubscriptionId": {
+ "name": "trialPlanPromptSubscriptionId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverSetupFailedEmailAt": {
+ "name": "serverSetupFailedEmailAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "serverConnectFailure": {
+ "name": "serverConnectFailure",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "lastSessionAt": {
+ "name": "lastSessionAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "deactivatedAt": {
+ "name": "deactivatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "user_email_unique": {
+ "name": "user_email_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "email"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.vault_provider": {
+ "name": "vault_provider",
+ "schema": "",
+ "columns": {
+ "vaultProviderId": {
+ "name": "vaultProviderId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "providerType": {
+ "name": "providerType",
+ "type": "VaultProviderType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "config": {
+ "name": "config",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "assignments": {
+ "name": "assignments",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'[]'::jsonb"
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "vault_provider_org_name_idx": {
+ "name": "vault_provider_org_name_idx",
+ "columns": [
+ {
+ "expression": "organizationId",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "name",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "vault_provider_organizationId_organization_id_fk": {
+ "name": "vault_provider_organizationId_organization_id_fk",
+ "tableFrom": "vault_provider",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.volume_backup": {
+ "name": "volume_backup",
+ "schema": "",
+ "columns": {
+ "volumeBackupId": {
+ "name": "volumeBackupId",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "volumeName": {
+ "name": "volumeName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "prefix": {
+ "name": "prefix",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serviceType": {
+ "name": "serviceType",
+ "type": "serviceType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'application'"
+ },
+ "appName": {
+ "name": "appName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "serviceName": {
+ "name": "serviceName",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "turnOff": {
+ "name": "turnOff",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "cronExpression": {
+ "name": "cronExpression",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "keepLatestCount": {
+ "name": "keepLatestCount",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "applicationId": {
+ "name": "applicationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "postgresId": {
+ "name": "postgresId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mariadbId": {
+ "name": "mariadbId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mongoId": {
+ "name": "mongoId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mysqlId": {
+ "name": "mysqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "redisId": {
+ "name": "redisId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "libsqlId": {
+ "name": "libsqlId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "composeId": {
+ "name": "composeId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "destinationId": {
+ "name": "destinationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "volume_backup_applicationId_application_applicationId_fk": {
+ "name": "volume_backup_applicationId_application_applicationId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "application",
+ "columnsFrom": [
+ "applicationId"
+ ],
+ "columnsTo": [
+ "applicationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_postgresId_postgres_postgresId_fk": {
+ "name": "volume_backup_postgresId_postgres_postgresId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "postgres",
+ "columnsFrom": [
+ "postgresId"
+ ],
+ "columnsTo": [
+ "postgresId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_mariadbId_mariadb_mariadbId_fk": {
+ "name": "volume_backup_mariadbId_mariadb_mariadbId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "mariadb",
+ "columnsFrom": [
+ "mariadbId"
+ ],
+ "columnsTo": [
+ "mariadbId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_mongoId_mongo_mongoId_fk": {
+ "name": "volume_backup_mongoId_mongo_mongoId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "mongo",
+ "columnsFrom": [
+ "mongoId"
+ ],
+ "columnsTo": [
+ "mongoId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_mysqlId_mysql_mysqlId_fk": {
+ "name": "volume_backup_mysqlId_mysql_mysqlId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "mysql",
+ "columnsFrom": [
+ "mysqlId"
+ ],
+ "columnsTo": [
+ "mysqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_redisId_redis_redisId_fk": {
+ "name": "volume_backup_redisId_redis_redisId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "redis",
+ "columnsFrom": [
+ "redisId"
+ ],
+ "columnsTo": [
+ "redisId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_libsqlId_libsql_libsqlId_fk": {
+ "name": "volume_backup_libsqlId_libsql_libsqlId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "libsql",
+ "columnsFrom": [
+ "libsqlId"
+ ],
+ "columnsTo": [
+ "libsqlId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_composeId_compose_composeId_fk": {
+ "name": "volume_backup_composeId_compose_composeId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "compose",
+ "columnsFrom": [
+ "composeId"
+ ],
+ "columnsTo": [
+ "composeId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "volume_backup_destinationId_destination_destinationId_fk": {
+ "name": "volume_backup_destinationId_destination_destinationId_fk",
+ "tableFrom": "volume_backup",
+ "tableTo": "destination",
+ "columnsFrom": [
+ "destinationId"
+ ],
+ "columnsTo": [
+ "destinationId"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.webServerSettings": {
+ "name": "webServerSettings",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "serverIp": {
+ "name": "serverIp",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "certificateType": {
+ "name": "certificateType",
+ "type": "certificateType",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'none'"
+ },
+ "https": {
+ "name": "https",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "host": {
+ "name": "host",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "letsEncryptEmail": {
+ "name": "letsEncryptEmail",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sshPrivateKey": {
+ "name": "sshPrivateKey",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enableDockerCleanup": {
+ "name": "enableDockerCleanup",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "logCleanupCron": {
+ "name": "logCleanupCron",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'0 0 * * *'"
+ },
+ "telemetryProviderIds": {
+ "name": "telemetryProviderIds",
+ "type": "text[]",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "ARRAY[]::text[]"
+ },
+ "vectorAgentOrganizationId": {
+ "name": "vectorAgentOrganizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metricsConfig": {
+ "name": "metricsConfig",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'{\"server\":{\"type\":\"Dokploy\",\"refreshRate\":60,\"port\":4500,\"token\":\"\",\"retentionDays\":2,\"cronJob\":\"\",\"urlCallback\":\"\",\"thresholds\":{\"cpu\":0,\"memory\":0}},\"containers\":{\"refreshRate\":60,\"services\":{\"include\":[],\"exclude\":[]}}}'::jsonb"
+ },
+ "whitelabelingConfig": {
+ "name": "whitelabelingConfig",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{\"appName\":null,\"appDescription\":null,\"logoUrl\":null,\"faviconUrl\":null,\"customCss\":null,\"loginLogoUrl\":null,\"supportUrl\":null,\"docsUrl\":null,\"errorPageTitle\":null,\"errorPageDescription\":null,\"footerText\":null,\"ogImageUrl\":null,\"passwordResetGuide\":null,\"supportEmail\":null,\"logoLightUrl\":null,\"loginLogoLightUrl\":null,\"faviconLightUrl\":null,\"dualModeBranding\":false}'::jsonb"
+ },
+ "remoteServersOnly": {
+ "name": "remoteServersOnly",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "buildsConcurrency": {
+ "name": "buildsConcurrency",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "enforceSSO": {
+ "name": "enforceSSO",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "instanceOwnerId": {
+ "name": "instanceOwnerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "pendingOwnerId": {
+ "name": "pendingOwnerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "pendingOwnerExpiresAt": {
+ "name": "pendingOwnerExpiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cleanupCacheApplications": {
+ "name": "cleanupCacheApplications",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "cleanupCacheOnPreviews": {
+ "name": "cleanupCacheOnPreviews",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "cleanupCacheOnCompose": {
+ "name": "cleanupCacheOnCompose",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "webServerSettings_vectorAgentOrganizationId_organization_id_fk": {
+ "name": "webServerSettings_vectorAgentOrganizationId_organization_id_fk",
+ "tableFrom": "webServerSettings",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "vectorAgentOrganizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "webServerSettings_instanceOwnerId_user_id_fk": {
+ "name": "webServerSettings_instanceOwnerId_user_id_fk",
+ "tableFrom": "webServerSettings",
+ "tableTo": "user",
+ "columnsFrom": [
+ "instanceOwnerId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "webServerSettings_pendingOwnerId_user_id_fk": {
+ "name": "webServerSettings_pendingOwnerId_user_id_fk",
+ "tableFrom": "webServerSettings",
+ "tableTo": "user",
+ "columnsFrom": [
+ "pendingOwnerId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ }
+ },
+ "enums": {
+ "public.buildType": {
+ "name": "buildType",
+ "schema": "public",
+ "values": [
+ "dockerfile",
+ "heroku_buildpacks",
+ "paketo_buildpacks",
+ "nixpacks",
+ "static",
+ "railpack"
+ ]
+ },
+ "public.sourceType": {
+ "name": "sourceType",
+ "schema": "public",
+ "values": [
+ "docker",
+ "git",
+ "github",
+ "gitlab",
+ "bitbucket",
+ "gitea",
+ "drop"
+ ]
+ },
+ "public.backupType": {
+ "name": "backupType",
+ "schema": "public",
+ "values": [
+ "database",
+ "compose"
+ ]
+ },
+ "public.databaseType": {
+ "name": "databaseType",
+ "schema": "public",
+ "values": [
+ "postgres",
+ "mariadb",
+ "mysql",
+ "mongo",
+ "web-server",
+ "libsql"
+ ]
+ },
+ "public.cloudServerStatus": {
+ "name": "cloudServerStatus",
+ "schema": "public",
+ "values": [
+ "provisioning",
+ "configuring",
+ "ready",
+ "upgrading",
+ "error",
+ "suspended",
+ "terminating"
+ ]
+ },
+ "public.composeType": {
+ "name": "composeType",
+ "schema": "public",
+ "values": [
+ "docker-compose",
+ "stack"
+ ]
+ },
+ "public.sourceTypeCompose": {
+ "name": "sourceTypeCompose",
+ "schema": "public",
+ "values": [
+ "git",
+ "github",
+ "gitlab",
+ "bitbucket",
+ "gitea",
+ "raw"
+ ]
+ },
+ "public.deploymentStatus": {
+ "name": "deploymentStatus",
+ "schema": "public",
+ "values": [
+ "running",
+ "done",
+ "error",
+ "cancelled"
+ ]
+ },
+ "public.DnsProviderType": {
+ "name": "DnsProviderType",
+ "schema": "public",
+ "values": [
+ "cloudflare",
+ "route53",
+ "porkbun",
+ "infomaniak",
+ "ovh"
+ ]
+ },
+ "public.domainType": {
+ "name": "domainType",
+ "schema": "public",
+ "values": [
+ "compose",
+ "application",
+ "preview"
+ ]
+ },
+ "public.gitProviderType": {
+ "name": "gitProviderType",
+ "schema": "public",
+ "values": [
+ "github",
+ "gitlab",
+ "bitbucket",
+ "gitea"
+ ]
+ },
+ "public.mountType": {
+ "name": "mountType",
+ "schema": "public",
+ "values": [
+ "bind",
+ "volume",
+ "file"
+ ]
+ },
+ "public.serviceType": {
+ "name": "serviceType",
+ "schema": "public",
+ "values": [
+ "application",
+ "postgres",
+ "mysql",
+ "mariadb",
+ "mongo",
+ "redis",
+ "compose",
+ "libsql"
+ ]
+ },
+ "public.networkDriver": {
+ "name": "networkDriver",
+ "schema": "public",
+ "values": [
+ "bridge",
+ "overlay"
+ ]
+ },
+ "public.notificationType": {
+ "name": "notificationType",
+ "schema": "public",
+ "values": [
+ "slack",
+ "telegram",
+ "discord",
+ "email",
+ "resend",
+ "gotify",
+ "ntfy",
+ "mattermost",
+ "pushover",
+ "custom",
+ "lark",
+ "teams"
+ ]
+ },
+ "public.patchType": {
+ "name": "patchType",
+ "schema": "public",
+ "values": [
+ "create",
+ "update",
+ "delete"
+ ]
+ },
+ "public.protocolType": {
+ "name": "protocolType",
+ "schema": "public",
+ "values": [
+ "tcp",
+ "udp"
+ ]
+ },
+ "public.publishModeType": {
+ "name": "publishModeType",
+ "schema": "public",
+ "values": [
+ "ingress",
+ "host"
+ ]
+ },
+ "public.RegistryType": {
+ "name": "RegistryType",
+ "schema": "public",
+ "values": [
+ "selfHosted",
+ "cloud"
+ ]
+ },
+ "public.sandboxNetworkMode": {
+ "name": "sandboxNetworkMode",
+ "schema": "public",
+ "values": [
+ "isolated",
+ "internet"
+ ]
+ },
+ "public.sandboxStatus": {
+ "name": "sandboxStatus",
+ "schema": "public",
+ "values": [
+ "creating",
+ "running",
+ "killed",
+ "error"
+ ]
+ },
+ "public.scheduleType": {
+ "name": "scheduleType",
+ "schema": "public",
+ "values": [
+ "application",
+ "compose",
+ "server",
+ "dokploy-server"
+ ]
+ },
+ "public.shellType": {
+ "name": "shellType",
+ "schema": "public",
+ "values": [
+ "bash",
+ "sh"
+ ]
+ },
+ "public.serverStatus": {
+ "name": "serverStatus",
+ "schema": "public",
+ "values": [
+ "active",
+ "inactive"
+ ]
+ },
+ "public.serverType": {
+ "name": "serverType",
+ "schema": "public",
+ "values": [
+ "deploy",
+ "build"
+ ]
+ },
+ "public.applicationStatus": {
+ "name": "applicationStatus",
+ "schema": "public",
+ "values": [
+ "idle",
+ "running",
+ "done",
+ "error"
+ ]
+ },
+ "public.certificateType": {
+ "name": "certificateType",
+ "schema": "public",
+ "values": [
+ "letsencrypt",
+ "none",
+ "custom"
+ ]
+ },
+ "public.sqldNode": {
+ "name": "sqldNode",
+ "schema": "public",
+ "values": [
+ "primary",
+ "replica"
+ ]
+ },
+ "public.triggerType": {
+ "name": "triggerType",
+ "schema": "public",
+ "values": [
+ "push",
+ "tag"
+ ]
+ },
+ "public.TelemetryProviderType": {
+ "name": "TelemetryProviderType",
+ "schema": "public",
+ "values": [
+ "loki",
+ "datadog",
+ "betterstack",
+ "elasticsearch",
+ "splunk_hec",
+ "aws_cloudwatch",
+ "prometheus_remote_write",
+ "new_relic",
+ "influxdb"
+ ]
+ },
+ "public.VaultProviderType": {
+ "name": "VaultProviderType",
+ "schema": "public",
+ "values": [
+ "hashicorp",
+ "infisical",
+ "aws",
+ "aws-parameter-store",
+ "doppler",
+ "azure",
+ "scaleway",
+ "phase"
+ ]
+ }
+ },
+ "schemas": {},
+ "sequences": {},
+ "roles": {},
+ "policies": {},
+ "views": {},
+ "_meta": {
+ "columns": {},
+ "schemas": {},
+ "tables": {}
+ }
+}
\ No newline at end of file
diff --git a/apps/dokploy/drizzle/meta/_journal.json b/apps/dokploy/drizzle/meta/_journal.json
index 8974455d1..5ead91748 100644
--- a/apps/dokploy/drizzle/meta/_journal.json
+++ b/apps/dokploy/drizzle/meta/_journal.json
@@ -1457,6 +1457,34 @@
"when": 1795501000373,
"tag": "0207_bored_quicksilver",
"breakpoints": true
+ },
+ {
+ "idx": 208,
+ "version": "7",
+ "when": 1795557315497,
+ "tag": "0208_cloud_server_vpc_id",
+ "breakpoints": true
+ },
+ {
+ "idx": 209,
+ "version": "7",
+ "when": 1795561625607,
+ "tag": "0209_cloud_server_bandwidth",
+ "breakpoints": true
+ },
+ {
+ "idx": 210,
+ "version": "7",
+ "when": 1795686980773,
+ "tag": "0210_cloud_server_payment_reminder",
+ "breakpoints": true
+ },
+ {
+ "idx": 211,
+ "version": "7",
+ "when": 1795732334725,
+ "tag": "0211_cloud_server_drop_pending",
+ "breakpoints": true
}
]
}
\ No newline at end of file
diff --git a/apps/dokploy/pages/api/stripe/webhook.ts b/apps/dokploy/pages/api/stripe/webhook.ts
index 7840a05b8..4d0b1195a 100644
--- a/apps/dokploy/pages/api/stripe/webhook.ts
+++ b/apps/dokploy/pages/api/stripe/webhook.ts
@@ -75,11 +75,11 @@ export default async function handler(
"customer.subscription.created",
"customer.subscription.deleted",
"customer.subscription.updated",
+ "invoice.created",
"invoice.payment_succeeded",
"invoice.payment_failed",
"customer.deleted",
"checkout.session.completed",
- "checkout.session.expired",
"customer.subscription.trial_will_end",
];
diff --git a/apps/dokploy/server/api/routers/proprietary/cloud-server.ts b/apps/dokploy/server/api/routers/proprietary/cloud-server.ts
index bddc33c0d..c6887c92f 100644
--- a/apps/dokploy/server/api/routers/proprietary/cloud-server.ts
+++ b/apps/dokploy/server/api/routers/proprietary/cloud-server.ts
@@ -10,8 +10,6 @@ import {
} from "@dokploy/server/db/schema/cloud-server";
import {
assertCloudServerCapacity,
- createCloudServer,
- deletePendingCloudServer,
disableCloudServerFirewall,
findCloudServerById,
findCloudServersByOrg,
@@ -29,12 +27,11 @@ import {
getRegionInfo,
} from "@dokploy/server/utils/digitalocean";
import { TRPCError } from "@trpc/server";
-import { nanoid } from "nanoid";
import { z } from "zod";
import {
cancelCloudServerSubscription,
createCloudServerCheckout,
- expireCloudServerCheckout,
+ getCloudServerCreditCents,
getUpgradeOptions,
previewCloudServerUpgrade,
upgradeCloudServer,
@@ -77,6 +74,11 @@ export const cloudServerRouter = createTRPCRouter({
});
}),
+ creditBalance: adminProcedure.query(async ({ ctx }) => {
+ if (!IS_CLOUD) return 0;
+ return getCloudServerCreditCents(ctx.user.ownerId);
+ }),
+
one: adminProcedure
.input(apiFindOneCloudServer)
.query(async ({ input, ctx }) => {
@@ -116,35 +118,15 @@ export const cloudServerRouter = createTRPCRouter({
await assertCloudServerCapacity();
- const hostname =
- `dokploy-${ctx.session.activeOrganizationId.slice(0, 8)}-${nanoid(6)}`
- .toLowerCase()
- .replace(/[^a-z0-9-]/g, "x");
-
- const managedRecord = await createCloudServer({
+ const session = await createCloudServerCheckout({
+ ownerId: ctx.user.ownerId,
organizationId: ctx.session.activeOrganizationId,
- plan: input.plan,
+ plan,
zone: input.zone,
- hostname,
- status: "pending",
+ regionName: region.description,
});
-
- try {
- const session = await createCloudServerCheckout({
- ownerId: ctx.user.ownerId,
- cloudServerId: managedRecord.cloudServerId,
- plan,
- regionName: region.description,
- });
- await updateCloudServer(managedRecord.cloudServerId, {
- stripeCheckoutSessionId: session.id,
- });
- if (!session.url) throw new Error("Stripe did not return a URL");
- return { url: session.url };
- } catch (err) {
- await deletePendingCloudServer(managedRecord.cloudServerId);
- throw err;
- }
+ if (!session.url) throw new Error("Stripe did not return a URL");
+ return { url: session.url };
}),
delete: adminProcedure
@@ -158,14 +140,6 @@ export const cloudServerRouter = createTRPCRouter({
throw new TRPCError({ code: "UNAUTHORIZED" });
}
- if (record.status === "pending") {
- if (record.stripeCheckoutSessionId) {
- await expireCloudServerCheckout(record.stripeCheckoutSessionId);
- }
- await deletePendingCloudServer(input.cloudServerId);
- return { cancelledOrder: true };
- }
-
if (record.serverId && (await haveActiveServices(record.serverId))) {
throw new TRPCError({
code: "BAD_REQUEST",
@@ -180,7 +154,9 @@ export const cloudServerRouter = createTRPCRouter({
if (record.stripeSubscriptionId) {
try {
- await cancelCloudServerSubscription(record.stripeSubscriptionId);
+ await cancelCloudServerSubscription(record.stripeSubscriptionId, {
+ creditUnusedTime: true,
+ });
} catch (err) {
await updateCloudServer(input.cloudServerId, {
status: record.status,
@@ -198,8 +174,6 @@ export const cloudServerRouter = createTRPCRouter({
errorMessage: `Termination failed: ${err?.message ?? "Unknown error"}`,
});
});
-
- return { cancelledOrder: false };
}),
reconnect: adminProcedure
@@ -218,6 +192,13 @@ export const cloudServerRouter = createTRPCRouter({
message: "Server is already linked",
});
}
+ // A suspended server must stay disconnected until it is paid.
+ if (record.status !== "ready") {
+ throw new TRPCError({
+ code: "BAD_REQUEST",
+ message: "Server is not ready",
+ });
+ }
if (!record.ipAddress) {
throw new TRPCError({
code: "BAD_REQUEST",
@@ -250,7 +231,6 @@ export const cloudServerRouter = createTRPCRouter({
await updateCloudServer(input.cloudServerId, {
serverId: serverRecord.serverId,
- status: "ready",
});
return findCloudServerById(input.cloudServerId);
diff --git a/apps/dokploy/server/api/routers/server.ts b/apps/dokploy/server/api/routers/server.ts
index 63393f96d..14e2b7090 100644
--- a/apps/dokploy/server/api/routers/server.ts
+++ b/apps/dokploy/server/api/routers/server.ts
@@ -6,6 +6,7 @@ import {
deleteServer,
findCloudServerByServerId,
findCloudServerIds,
+ findPlanServersByUserId,
findServerById,
findUserById,
generateSSHKey,
@@ -58,7 +59,6 @@ import {
mariadb,
mongo,
mysql,
- organization,
postgres,
redis,
server,
@@ -338,16 +338,8 @@ export const serverRouter = createTRPCRouter({
});
}),
count: protectedProcedure.query(async ({ ctx }) => {
- const organizations = await db.query.organization.findMany({
- where: eq(organization.ownerId, ctx.user.id),
- with: {
- servers: true,
- },
- });
-
- const servers = organizations.flatMap((org) => org.servers);
-
- return servers.length ?? 0;
+ const servers = await findPlanServersByUserId(ctx.user.id);
+ return servers.length;
}),
withSSHKey: protectedProcedure.query(async ({ ctx }) => {
const accessibleIds = await getAccessibleServerIds(ctx.session);
diff --git a/apps/dokploy/server/utils/cloud-server-billing.ts b/apps/dokploy/server/utils/cloud-server-billing.ts
index e0a34b8d6..9926010ff 100644
--- a/apps/dokploy/server/utils/cloud-server-billing.ts
+++ b/apps/dokploy/server/utils/cloud-server-billing.ts
@@ -1,14 +1,21 @@
-import { findUserById, updateUser } from "@dokploy/server";
import {
+ findOrganizationById,
+ findUserById,
+ updateUser,
+} from "@dokploy/server";
+import {
+ buildCloudServerHostname,
type CloudServer,
- claimCloudServerForProvisioning,
claimCloudServerForUpgrade,
- deletePendingCloudServer,
+ claimCloudServerPaymentReminder,
+ createCloudServer,
findCloudServerById,
findCloudServerBySubscriptionId,
+ findReadyCloudServers,
findSuspendedCloudServersBefore,
powerOnCloudServerVm,
provisionCloudServer,
+ recordCloudServersBandwidth,
releaseProviderResources,
resizeCloudServerVm,
resumeCloudServer,
@@ -20,10 +27,12 @@ import {
DOKPLOY_PLANS,
type DokployPlan,
deleteDigitalOceanDropletsByTag,
+ EXTRA_BANDWIDTH_CENTS_PER_GB,
getCloudServerTag,
getDigitalOceanRegions,
} from "@dokploy/server/utils/digitalocean";
import { TRPCError } from "@trpc/server";
+import { nanoid } from "nanoid";
import { scheduleJob } from "node-schedule";
import Stripe from "stripe";
import {
@@ -31,10 +40,21 @@ import {
getStripeClient,
isCloudServerSubscription,
} from "@/server/utils/billing";
+import {
+ sendCloudServerBandwidthEmail,
+ sendCloudServerDeletedEmail,
+ sendCloudServerPaymentFailedEmail,
+ sendCloudServerReactivatedEmail,
+ sendCloudServerRenewalEmail,
+} from "@/server/utils/cloud-server-notifications";
import { WEBSITE_URL } from "@/server/utils/stripe";
-const SUSPENSION_GRACE_DAYS = 7;
+const DAY_MS = 24 * 60 * 60 * 1000;
+const SUSPENSION_GRACE_DAYS = 2;
+const RENEWAL_REMINDER_DAYS = [1, 3, 7];
+const BANDWIDTH_WARNING_PERCENTS = [100, 80];
const CHECKOUT_EXPIRATION_MINUTES = 30;
+const MINIMUM_BILLED_SECONDS = 60 * 60;
const getCloudServerId = (metadata?: Stripe.Metadata | null) =>
metadata?.type === CLOUD_SERVER_METADATA_TYPE
@@ -73,16 +93,21 @@ const getPlanProductId = (plan: DokployPlan) => {
export const createCloudServerCheckout = async (params: {
ownerId: string;
- cloudServerId: string;
+ organizationId: string;
plan: DokployPlan;
+ zone: string;
regionName: string;
}) => {
const stripe = getStripeClient();
const customer = await getOrCreateStripeCustomer(params.ownerId, stripe);
const { plan } = params;
+ // The order only lives here until it is paid, the server record is created from it afterwards.
const metadata = {
type: CLOUD_SERVER_METADATA_TYPE,
- cloudServerId: params.cloudServerId,
+ cloudServerId: nanoid(),
+ organizationId: params.organizationId,
+ plan: plan.id,
+ zone: params.zone,
};
return stripe.checkout.sessions.create({
@@ -111,20 +136,13 @@ export const createCloudServerCheckout = async (params: {
});
};
-export const expireCloudServerCheckout = async (sessionId: string) => {
- await getStripeClient()
- .checkout.sessions.expire(sessionId)
- .catch((err) =>
- console.error("[cloud-server] failed to expire checkout:", err),
- );
-};
-
export const cancelCloudServerSubscription = async (
subscriptionId: string,
- stripe: Stripe = getStripeClient(),
+ options: { creditUnusedTime?: boolean } = {},
) => {
+ const stripe = getStripeClient();
const subscription = await stripe.subscriptions
- .retrieve(subscriptionId)
+ .retrieve(subscriptionId, { expand: ["latest_invoice"] })
.catch((err: unknown) => {
if (
err instanceof Stripe.errors.StripeError &&
@@ -141,10 +159,41 @@ export const cancelCloudServerSubscription = async (
) {
return;
}
- await stripe.subscriptions.cancel(subscriptionId, {
- invoice_now: false,
- prorate: false,
+ // A period that was never paid must not turn into credit.
+ const credit =
+ !!options.creditUnusedTime &&
+ (subscription.latest_invoice as Stripe.Invoice | null)?.status === "paid";
+ const cancelled = await stripe.subscriptions.cancel(subscriptionId, {
+ invoice_now: credit,
+ prorate: credit,
+ expand: ["latest_invoice"],
});
+ if (!credit) return;
+
+ const invoice = cancelled.latest_invoice as Stripe.Invoice;
+ const priceCents = subscription.items.data[0]?.price.unit_amount;
+ const missingSeconds =
+ MINIMUM_BILLED_SECONDS - (Date.now() / 1000 - subscription.start_date);
+ // A server deleted after a few minutes rounds to $0.00, while DigitalOcean still bills us for it.
+ if (priceCents && missingSeconds > 0) {
+ await stripe.invoiceItems.create(
+ {
+ customer: invoice.customer as string,
+ invoice: invoice.id,
+ amount: Math.ceil(
+ (priceCents * missingSeconds) /
+ (subscription.current_period_end -
+ subscription.current_period_start),
+ ),
+ currency: invoice.currency,
+ description: "Minimum charge: first hour",
+ },
+ { idempotencyKey: `cloud-server-minimum-${invoice.id}` },
+ );
+ }
+ await chargeExtraBandwidth(stripe, invoice);
+ // Stripe keeps this invoice in draft for an hour, and the credit only reaches the balance once it is finalized.
+ await stripe.invoices.finalizeInvoice(invoice.id);
};
const refundInvoice = async (
@@ -170,7 +219,7 @@ const refundAndCancelSubscription = async (
const subscription = await stripe.subscriptions.retrieve(subscriptionId, {
expand: ["latest_invoice"],
});
- await cancelCloudServerSubscription(subscriptionId, stripe);
+ await cancelCloudServerSubscription(subscriptionId);
await refundInvoice(stripe, subscription.latest_invoice);
};
@@ -206,31 +255,35 @@ const handleProvisioningFailure = async (
const handleCheckoutCompleted = async (
stripe: Stripe,
- cloudServerId: string,
- subscriptionId: string,
+ session: Stripe.Checkout.Session,
) => {
- const record = await claimCloudServerForProvisioning(
- cloudServerId,
- subscriptionId,
- );
+ const subscriptionId = session.subscription as string;
+ const { cloudServerId, organizationId, zone } = session.metadata ?? {};
+ const plan = DOKPLOY_PLANS.find((p) => p.id === session.metadata?.plan);
- if (!record) {
- const existing = await findCloudServerById(cloudServerId).catch(() => null);
- if (existing?.stripeSubscriptionId === subscriptionId) return;
- // Paid after the order was removed, there is nothing to provision.
+ if (
+ !cloudServerId ||
+ !organizationId ||
+ !zone ||
+ !plan ||
+ !(await findOrganizationById(organizationId))
+ ) {
+ // Paid for an order that can no longer be fulfilled, there is nothing to provision.
await refundAndCancelSubscription(stripe, subscriptionId);
return;
}
- const plan = DOKPLOY_PLANS.find((p) => p.id === record.plan);
- if (!plan || !record.hostname) {
- await handleProvisioningFailure(
- stripe,
- record,
- new Error(`Invalid order for plan "${record.plan}"`),
- );
- return;
- }
+ const record = await createCloudServer({
+ cloudServerId,
+ organizationId,
+ plan: plan.id,
+ zone,
+ hostname: buildCloudServerHostname(organizationId),
+ status: "provisioning",
+ stripeSubscriptionId: subscriptionId,
+ stripeCheckoutSessionId: session.id,
+ });
+ if (!record) return;
// Provisioning takes minutes, far longer than Stripe waits for a webhook response.
void provisionCloudServer({
@@ -239,18 +292,35 @@ const handleCheckoutCompleted = async (
doSize: plan.doSize,
swapGb: Math.min(plan.memoryGb, 4),
zone: record.zone,
- hostname: record.hostname,
+ hostname: record.hostname!,
}).catch((err) => handleProvisioningFailure(stripe, record, err));
};
+const logEmailError = (record: CloudServer) => (err: unknown) =>
+ console.error(
+ `[cloud-server] failed to send an email about ${record.cloudServerId}:`,
+ err,
+ );
+
+const reactivateCloudServer = async (record: CloudServer) => {
+ if (record.status !== "suspended") return;
+ await resumeCloudServer(record);
+ await sendCloudServerReactivatedEmail(record).catch(logEmailError(record));
+};
+
const handleSubscriptionUpdated = async (subscription: Stripe.Subscription) => {
const record = await findCloudServerBySubscriptionId(subscription.id);
if (!record) return;
if (subscription.status === "past_due" || subscription.status === "unpaid") {
+ if (record.status !== "ready") return;
await suspendCloudServer(record);
+ await sendCloudServerPaymentFailedEmail(
+ record,
+ new Date(Date.now() + SUSPENSION_GRACE_DAYS * DAY_MS),
+ ).catch(logEmailError(record));
} else if (subscription.status === "active") {
- await resumeCloudServer(record);
+ await reactivateCloudServer(record);
}
};
@@ -270,6 +340,7 @@ const handleSubscriptionDeleted = async (subscription: Stripe.Subscription) => {
await updateCloudServer(record.cloudServerId, { status: "terminating" });
await terminateCloudServer(record.cloudServerId);
+ await sendCloudServerDeletedEmail(record).catch(logEmailError(record));
};
const PRORATION_DATE_MAX_AGE_SECONDS = 15 * 60;
@@ -495,6 +566,34 @@ export const upgradeCloudServer = async (
});
};
+// Stripe keeps a renewal invoice in draft for about an hour, the only moment a line can still be added to it.
+const chargeExtraBandwidth = async (
+ stripe: Stripe,
+ invoice: Stripe.Invoice,
+) => {
+ const record = await findCloudServerBySubscriptionId(
+ invoice.subscription as string,
+ );
+ const plan = DOKPLOY_PLANS.find((p) => p.id === record?.plan);
+ if (!record || !plan) return;
+
+ const extraGb =
+ Math.floor(record.bandwidthBytes / 1024 ** 3) - plan.transferTb * 1000;
+ if (extraGb > 0) {
+ await stripe.invoiceItems.create(
+ {
+ customer: invoice.customer as string,
+ invoice: invoice.id,
+ amount: extraGb * EXTRA_BANDWIDTH_CENTS_PER_GB,
+ currency: invoice.currency,
+ description: `Extra bandwidth: ${extraGb} GB`,
+ },
+ { idempotencyKey: `cloud-server-bandwidth-${invoice.id}` },
+ );
+ }
+ await updateCloudServer(record.cloudServerId, { bandwidthBytes: 0 });
+};
+
/** Returns true when the event belongs to a cloud server and was handled here. */
export const handleCloudServerEvent = async (
stripe: Stripe,
@@ -503,19 +602,8 @@ export const handleCloudServerEvent = async (
switch (event.type) {
case "checkout.session.completed": {
const session = event.data.object;
- const cloudServerId = getCloudServerId(session.metadata);
- if (!cloudServerId) return false;
- await handleCheckoutCompleted(
- stripe,
- cloudServerId,
- session.subscription as string,
- );
- return true;
- }
- case "checkout.session.expired": {
- const cloudServerId = getCloudServerId(event.data.object.metadata);
- if (!cloudServerId) return false;
- await deletePendingCloudServer(cloudServerId);
+ if (!getCloudServerId(session.metadata)) return false;
+ await handleCheckoutCompleted(stripe, session);
return true;
}
case "customer.subscription.created":
@@ -531,6 +619,16 @@ export const handleCloudServerEvent = async (
await handleSubscriptionDeleted(event.data.object);
return true;
}
+ case "invoice.created": {
+ const invoice = event.data.object;
+ if (!getCloudServerId(invoice.subscription_details?.metadata)) {
+ return false;
+ }
+ if (invoice.billing_reason === "subscription_cycle") {
+ await chargeExtraBandwidth(stripe, invoice);
+ }
+ return true;
+ }
case "invoice.payment_succeeded":
case "invoice.payment_failed":
// Suspension and resume follow the subscription status, invoices only need to stay away from the plan logic.
@@ -542,28 +640,182 @@ export const handleCloudServerEvent = async (
}
};
-export const initCloudServerCrons = () => {
- scheduleJob("cloud-server-suspension-cleanup", "0 * * * *", async () => {
- const cutoff = new Date(
- Date.now() - SUSPENSION_GRACE_DAYS * 24 * 60 * 60 * 1000,
- );
- const expired = await findSuspendedCloudServersBefore(cutoff);
-
- for (const record of expired) {
- try {
- await updateCloudServer(record.cloudServerId, {
- status: "terminating",
- });
- if (record.stripeSubscriptionId) {
- await cancelCloudServerSubscription(record.stripeSubscriptionId);
- }
- await terminateCloudServer(record.cloudServerId);
- } catch (err) {
- console.error(
- `[cloud-server] failed to remove suspended server ${record.cloudServerId}:`,
- err,
- );
- }
- }
- });
+const hasValidPaymentMethod = (subscription: Stripe.Subscription) => {
+ const customer = subscription.customer as Stripe.Customer;
+ const method = (subscription.default_payment_method ??
+ customer.invoice_settings
+ ?.default_payment_method) as Stripe.PaymentMethod | null;
+ if (!method) return false;
+ if (!method.card) return true;
+ // A card works until the end of its expiry month, which Date.UTC reaches because its months start at 0.
+ return (
+ Date.UTC(method.card.exp_year, method.card.exp_month) >
+ subscription.current_period_end * 1000
+ );
+};
+
+const sendRenewalReminder = async (stripe: Stripe, record: CloudServer) => {
+ const subscription = await stripe.subscriptions.retrieve(
+ record.stripeSubscriptionId!,
+ {
+ expand: [
+ "default_payment_method",
+ "customer.invoice_settings.default_payment_method",
+ ],
+ },
+ );
+ if (subscription.status !== "active" || subscription.cancel_at_period_end) {
+ return;
+ }
+
+ const renewsAt = subscription.current_period_end * 1000;
+ const days = RENEWAL_REMINDER_DAYS.find(
+ (d) => Date.now() >= renewsAt - d * DAY_MS,
+ );
+ if (!days || hasValidPaymentMethod(subscription)) return;
+
+ const claimed = await claimCloudServerPaymentReminder(
+ record.cloudServerId,
+ new Date(renewsAt - days * DAY_MS),
+ );
+ if (!claimed) return;
+
+ try {
+ await sendCloudServerRenewalEmail(record, new Date(renewsAt));
+ } catch (err) {
+ await updateCloudServer(record.cloudServerId, {
+ paymentReminderAt: record.paymentReminderAt,
+ });
+ throw err;
+ }
+};
+
+export const sendCloudServerPaymentReminders = async () => {
+ const stripe = getStripeClient();
+ for (const record of await findReadyCloudServers()) {
+ try {
+ await sendRenewalReminder(stripe, record);
+ } catch (err) {
+ console.error(
+ `[cloud-server] failed to send the payment reminder of ${record.cloudServerId}:`,
+ err,
+ );
+ }
+ }
+};
+
+export const recordBandwidthAndWarn = async () => {
+ for (const { previous, current } of await recordCloudServersBandwidth()) {
+ const plan = DOKPLOY_PLANS.find((p) => p.id === current.plan);
+ if (!plan) continue;
+
+ const allowance = plan.transferTb * 1000 * 1024 ** 3;
+ const percent = BANDWIDTH_WARNING_PERCENTS.find(
+ (p) =>
+ previous.bandwidthBytes < (allowance * p) / 100 &&
+ current.bandwidthBytes >= (allowance * p) / 100,
+ );
+ if (percent) {
+ await sendCloudServerBandwidthEmail(
+ current,
+ percent,
+ plan.transferTb,
+ ).catch(logEmailError(current));
+ }
+ }
+};
+
+// Returns true when the server must be kept: it is already paid, or one last charge went through.
+const collectUnpaidInvoice = async (stripe: Stripe, record: CloudServer) => {
+ const subscription = await stripe.subscriptions.retrieve(
+ record.stripeSubscriptionId!,
+ { expand: ["latest_invoice", "customer"] },
+ );
+ if (subscription.status === "active") {
+ // The webhook that resumes the server never arrived.
+ await reactivateCloudServer(record);
+ return true;
+ }
+
+ const invoice = subscription.latest_invoice as Stripe.Invoice | null;
+ if (subscription.status === "canceled" || invoice?.status !== "open") {
+ return false;
+ }
+
+ // Checkout keeps the card on the subscription, so one the customer added later is only their account default.
+ const card = (subscription.customer as Stripe.Customer).invoice_settings
+ ?.default_payment_method;
+ if (card) {
+ await stripe.subscriptions.update(subscription.id, {
+ default_payment_method: card as string,
+ });
+ }
+
+ try {
+ // Paying moves the subscription back to active, and that webhook resumes the server.
+ return (await stripe.invoices.pay(invoice.id)).status === "paid";
+ } catch (err) {
+ if (err instanceof Stripe.errors.StripeCardError) return false;
+ throw err;
+ }
+};
+
+export const removeUnpaidCloudServers = async () => {
+ const stripe = getStripeClient();
+ const cutoff = new Date(Date.now() - SUSPENSION_GRACE_DAYS * DAY_MS);
+
+ for (const record of await findSuspendedCloudServersBefore(cutoff)) {
+ try {
+ if (
+ record.stripeSubscriptionId &&
+ (await collectUnpaidInvoice(stripe, record))
+ ) {
+ continue;
+ }
+ await updateCloudServer(record.cloudServerId, {
+ status: "terminating",
+ });
+ if (record.stripeSubscriptionId) {
+ await cancelCloudServerSubscription(record.stripeSubscriptionId);
+ }
+ await terminateCloudServer(record.cloudServerId);
+ await sendCloudServerDeletedEmail(record).catch(logEmailError(record));
+ } catch (err) {
+ console.error(
+ `[cloud-server] failed to remove suspended server ${record.cloudServerId}:`,
+ err,
+ );
+ }
+ }
+};
+
+export const getCloudServerCreditCents = async (ownerId: string) => {
+ const owner = await findUserById(ownerId);
+ if (!owner.stripeCustomerId) return 0;
+
+ const customer = await getStripeClient().customers.retrieve(
+ owner.stripeCustomerId,
+ );
+ // Stripe stores credit as a negative balance.
+ return customer.deleted ? 0 : Math.max(0, -customer.balance);
+};
+
+export const initCloudServerCrons = () => {
+ scheduleJob("cloud-server-payment-reminders", "0 2 * * *", () =>
+ sendCloudServerPaymentReminders().catch((err) =>
+ console.error("[cloud-server] failed to send payment reminders:", err),
+ ),
+ );
+
+ scheduleJob("cloud-server-bandwidth", "0 1 * * *", () =>
+ recordBandwidthAndWarn().catch((err) =>
+ console.error("[cloud-server] failed to record bandwidth:", err),
+ ),
+ );
+
+ scheduleJob("cloud-server-suspension-cleanup", "0 * * * *", () =>
+ removeUnpaidCloudServers().catch((err) =>
+ console.error("[cloud-server] failed to remove unpaid servers:", err),
+ ),
+ );
};
diff --git a/apps/dokploy/server/utils/cloud-server-notifications.ts b/apps/dokploy/server/utils/cloud-server-notifications.ts
new file mode 100644
index 000000000..b555fccc7
--- /dev/null
+++ b/apps/dokploy/server/utils/cloud-server-notifications.ts
@@ -0,0 +1,97 @@
+import { findOrganizationById } from "@dokploy/server";
+import CloudServerNoticeEmail from "@dokploy/server/emails/emails/cloud-server-notice";
+import type { CloudServer } from "@dokploy/server/services/cloud-server";
+import { EXTRA_BANDWIDTH_CENTS_PER_GB } from "@dokploy/server/utils/digitalocean";
+import { sendEmail } from "@dokploy/server/verification/send-verification-email";
+import { render } from "@react-email/components";
+import { format } from "date-fns";
+import { WEBSITE_URL } from "@/server/utils/stripe";
+
+const sendNotice = async (
+ record: CloudServer,
+ content: {
+ subject: string;
+ title: string;
+ message: string;
+ warning?: string;
+ payment?: boolean;
+ },
+) => {
+ const organization = await findOrganizationById(record.organizationId);
+ if (!organization) return;
+
+ const html = await render(
+ CloudServerNoticeEmail({
+ userName: organization.owner.firstName || "User",
+ title: content.title,
+ message: content.message,
+ warning: content.warning,
+ actionLabel: content.payment
+ ? "Update Payment Method"
+ : "View Cloud Servers",
+ // A Stripe portal link carries a secret that logs anyone in, so it never travels by email.
+ actionUrl: content.payment
+ ? `${WEBSITE_URL}/dashboard/settings/billing`
+ : `${WEBSITE_URL}/dashboard/settings/cloud-servers`,
+ }),
+ );
+ await sendEmail({
+ email: organization.owner.email,
+ subject: content.subject,
+ text: html,
+ });
+};
+
+export const sendCloudServerRenewalEmail = (
+ record: CloudServer,
+ renewsAt: Date,
+) =>
+ sendNotice(record, {
+ subject: `Action required: update the payment method for ${record.hostname}`,
+ title: "Update your payment method",
+ message: `your cloud server ${record.hostname} renews on ${format(renewsAt, "MMM dd, yyyy")} and its payment method is missing or expires before that date.`,
+ warning:
+ "If the renewal payment fails, the server is powered off and then deleted.",
+ payment: true,
+ });
+
+export const sendCloudServerPaymentFailedEmail = (
+ record: CloudServer,
+ deletesAt: Date,
+) =>
+ sendNotice(record, {
+ subject: `Action required: payment failed for ${record.hostname}`,
+ title: "Payment failed",
+ message: `we could not charge the payment for your cloud server ${record.hostname}, so it has been powered off.`,
+ warning: `The server and all its data will be deleted on ${format(deletesAt, "MMM dd, yyyy")} unless the payment is completed.`,
+ payment: true,
+ });
+
+export const sendCloudServerReactivatedEmail = (record: CloudServer) =>
+ sendNotice(record, {
+ subject: `Your cloud server ${record.hostname} is back online`,
+ title: "Payment received",
+ message: `we received your payment and your cloud server ${record.hostname} has been powered back on.`,
+ });
+
+export const sendCloudServerDeletedEmail = (record: CloudServer) =>
+ sendNotice(record, {
+ subject: `Your cloud server ${record.hostname} was deleted`,
+ title: "Server deleted",
+ message: `your cloud server ${record.hostname} and all its data were deleted because ${record.status === "suspended" ? "its payment was not completed" : "its subscription was cancelled"}. You will not be charged for it again.`,
+ });
+
+export const sendCloudServerBandwidthEmail = (
+ record: CloudServer,
+ percent: number,
+ transferTb: number,
+) =>
+ sendNotice(record, {
+ subject:
+ percent >= 100
+ ? `${record.hostname} has used all of its included transfer`
+ : `${record.hostname} has used ${percent}% of its included transfer`,
+ title: "Transfer usage",
+ message: `your cloud server ${record.hostname} has used ${percent}% of the ${transferTb} TB of transfer included in this billing period.`,
+ warning: `Transfer above the included amount is billed at $${(EXTRA_BANDWIDTH_CENTS_PER_GB / 100).toFixed(2)} per GB on the next invoice.`,
+ });
diff --git a/biome.json b/biome.json
index f75baac2b..4946e3b85 100644
--- a/biome.json
+++ b/biome.json
@@ -14,7 +14,8 @@
"!**/dist",
"!**/drizzle/**",
"!node_modules/**",
- "!packages/server/package.json"
+ "!packages/server/package.json",
+ "!packages/server/src/utils/digitalocean-api.ts"
],
"maxSize": 2097152,
"experimentalScannerIgnores": [".next", "node_modules", ".docker", "dist"]
diff --git a/packages/server/package.json b/packages/server/package.json
index 9489522ea..8dc44fb1d 100644
--- a/packages/server/package.json
+++ b/packages/server/package.json
@@ -27,7 +27,8 @@
"esbuild": "tsx ./esbuild.config.ts && tsc --project tsconfig.server.json --emitDeclarationOnly ",
"typecheck": "tsc --noEmit",
"dbml:generate": "npx tsx src/db/schema/dbml.ts",
- "generate:drizzle": "pnpm dlx @better-auth/cli generate --output auth-schema2.ts --config src/lib/auth-cli.ts"
+ "generate:drizzle": "pnpm dlx @better-auth/cli generate --output auth-schema2.ts --config src/lib/auth-cli.ts",
+ "generate:digitalocean": "pnpm dlx openapi-typescript@7.13.0 https://api-engineering.nyc3.cdn.digitaloceanspaces.com/spec-ci/DigitalOcean-public.v2.yaml -o src/utils/digitalocean-api.ts --default-non-nullable=false"
},
"dependencies": {
"@ai-sdk/anthropic": "^3.0.44",
@@ -76,6 +77,7 @@
"node-schedule": "2.1.1",
"nodemailer": "10.1.4",
"octokit": "3.1.2",
+ "openapi-fetch": "0.17.0",
"pino": "9.4.0",
"pino-pretty": "11.2.2",
"postgres": "3.4.4",
diff --git a/packages/server/src/db/schema/cloud-server.ts b/packages/server/src/db/schema/cloud-server.ts
index fe502ba8f..eef44b307 100644
--- a/packages/server/src/db/schema/cloud-server.ts
+++ b/packages/server/src/db/schema/cloud-server.ts
@@ -1,5 +1,5 @@
import { relations } from "drizzle-orm";
-import { pgEnum, pgTable, text } from "drizzle-orm/pg-core";
+import { bigint, pgEnum, pgTable, text } from "drizzle-orm/pg-core";
import { nanoid } from "nanoid";
import { z } from "zod";
import { organization } from "./account";
@@ -7,7 +7,6 @@ import { server } from "./server";
import { sshKeys } from "./ssh-key";
export const cloudServerStatus = pgEnum("cloudServerStatus", [
- "pending",
"provisioning",
"configuring",
"ready",
@@ -29,9 +28,9 @@ export const cloudServer = pgTable("cloud_server", {
onDelete: "set null",
}),
plan: text("plan").notNull(),
- status: cloudServerStatus("status").notNull().default("pending"),
+ status: cloudServerStatus("status").notNull(),
providerVmId: text("providerVmId"),
- providerNetworkId: text("providerNetworkId"),
+ providerVpcId: text("providerVpcId"),
providerFirewallId: text("providerFirewallId"),
zone: text("zone").notNull(),
sshKeyId: text("sshKeyId").references(() => sshKeys.sshKeyId, {
@@ -42,6 +41,11 @@ export const cloudServer = pgTable("cloud_server", {
stripeSubscriptionId: text("stripeSubscriptionId"),
stripeCheckoutSessionId: text("stripeCheckoutSessionId"),
suspendedAt: text("suspendedAt"),
+ paymentReminderAt: text("paymentReminderAt"),
+ bandwidthBytes: bigint("bandwidthBytes", { mode: "number" })
+ .notNull()
+ .default(0),
+ bandwidthMeasuredAt: text("bandwidthMeasuredAt"),
errorMessage: text("errorMessage"),
createdAt: text("createdAt")
.notNull()
diff --git a/packages/server/src/emails/emails/account-deletion-code.tsx b/packages/server/src/emails/emails/account-deletion-code.tsx
index e86f00813..20686b757 100644
--- a/packages/server/src/emails/emails/account-deletion-code.tsx
+++ b/packages/server/src/emails/emails/account-deletion-code.tsx
@@ -34,7 +34,7 @@ export const AccountDeletionCodeTemplate = ({
{
+ return (
+
+
+ {title}
+
+
+
+
+
+
+
+
+
+ {title}
+
+
+ Hello {userName}, {message}
+
+
+ {warning && (
+
+ )}
+
+
+
+
+
+
+ This is an automated email from{" "}
+
+ Dokploy Cloud
+
+ . If you have any questions about your billing, please contact
+ our{" "}
+
+ support team
+
+ .
+
+
+
+
+
+
+ );
+};
+
+export default CloudServerNoticeEmail;
diff --git a/packages/server/src/emails/emails/invitation.tsx b/packages/server/src/emails/emails/invitation.tsx
index 9c2018111..3efac1296 100644
--- a/packages/server/src/emails/emails/invitation.tsx
+++ b/packages/server/src/emails/emails/invitation.tsx
@@ -37,7 +37,7 @@ export const InvitationEmail = ({
{/* Header */}
{
- const record = await db
+ return db
.insert(cloudServer)
.values(input)
+ .onConflictDoNothing()
.returning()
.then((r) => r[0]);
- if (!record) throw new TRPCError({ code: "INTERNAL_SERVER_ERROR" });
- return record;
};
export const assertCloudServerCapacity = async () => {
@@ -159,28 +169,6 @@ export const findCloudServerBySubscriptionId = async (
});
};
-// Stripe can deliver the same webhook more than once; only the call that flips "pending" gets to provision.
-export const claimCloudServerForProvisioning = async (
- cloudServerId: string,
- stripeSubscriptionId: string,
-) => {
- return db
- .update(cloudServer)
- .set({
- status: "provisioning",
- stripeSubscriptionId,
- updatedAt: new Date().toISOString(),
- })
- .where(
- and(
- eq(cloudServer.cloudServerId, cloudServerId),
- eq(cloudServer.status, "pending"),
- ),
- )
- .returning()
- .then((r) => r[0]);
-};
-
export const claimCloudServerForUpgrade = async (cloudServerId: string) => {
return db
.update(cloudServer)
@@ -199,17 +187,6 @@ export const claimCloudServerForUpgrade = async (cloudServerId: string) => {
.then((r) => r[0]);
};
-export const deletePendingCloudServer = async (cloudServerId: string) => {
- return db
- .delete(cloudServer)
- .where(
- and(
- eq(cloudServer.cloudServerId, cloudServerId),
- eq(cloudServer.status, "pending"),
- ),
- );
-};
-
export const findSuspendedCloudServersBefore = async (cutoff: Date) => {
return db.query.cloudServer.findMany({
where: and(
@@ -219,13 +196,84 @@ export const findSuspendedCloudServersBefore = async (cutoff: Date) => {
});
};
-export const isNetworkUsedByOthers = async (
- providerNetworkId: string,
+export const findReadyCloudServers = async () => {
+ return db.query.cloudServer.findMany({
+ where: and(
+ eq(cloudServer.status, "ready"),
+ isNotNull(cloudServer.stripeSubscriptionId),
+ ),
+ });
+};
+
+// Every instance runs the reminders cron: only the one that moves the date past dueAt sends the email.
+export const claimCloudServerPaymentReminder = async (
+ cloudServerId: string,
+ dueAt: Date,
+) => {
+ const claimed = await db
+ .update(cloudServer)
+ .set({ paymentReminderAt: new Date().toISOString() })
+ .where(
+ and(
+ eq(cloudServer.cloudServerId, cloudServerId),
+ or(
+ isNull(cloudServer.paymentReminderAt),
+ lt(cloudServer.paymentReminderAt, dueAt.toISOString()),
+ ),
+ ),
+ )
+ .returning();
+ return claimed.length > 0;
+};
+
+export const recordCloudServersBandwidth = async () => {
+ const servers = await db.query.cloudServer.findMany({
+ where: isNotNull(cloudServer.providerVmId),
+ });
+
+ const measured: { previous: CloudServer; current: CloudServer }[] = [];
+
+ for (const record of servers) {
+ const until = new Date();
+ try {
+ const bytes = await getDigitalOceanDropletOutboundBytes(
+ record.providerVmId!,
+ new Date(record.bandwidthMeasuredAt ?? record.createdAt),
+ until,
+ );
+ // Every instance runs this cron: matching the value we read keeps a second one from adding the same traffic again.
+ const [current] = await db
+ .update(cloudServer)
+ .set({
+ bandwidthBytes: record.bandwidthBytes + bytes,
+ bandwidthMeasuredAt: until.toISOString(),
+ })
+ .where(
+ and(
+ eq(cloudServer.cloudServerId, record.cloudServerId),
+ eq(cloudServer.bandwidthBytes, record.bandwidthBytes),
+ ),
+ )
+ .returning();
+ if (current) measured.push({ previous: record, current });
+ } catch (err) {
+ console.error(
+ `[cloud-server] failed to record bandwidth of ${record.cloudServerId}:`,
+ err,
+ );
+ }
+ }
+
+ return measured;
+};
+
+export const isVpcUsedByOthers = async (
+ providerVpcId: string,
cloudServerId: string,
) => {
const record = await db.query.cloudServer.findFirst({
where: and(
- eq(cloudServer.providerNetworkId, providerNetworkId),
+ eq(cloudServer.providerVpcId, providerVpcId),
ne(cloudServer.cloudServerId, cloudServerId),
),
});
@@ -234,42 +282,46 @@ export const isNetworkUsedByOthers = async (
const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms));
-const createOrgNetwork = async (organizationId: string, zone: string) => {
+const randomSuffix = customAlphabet("abcdefghijklmnopqrstuvwxyz0123456789", 6);
+
+// DO only accepts letters, digits, dashes and periods in droplet, firewall and VPC names.
+const organizationNamePrefix = (organizationId: string) =>
+ `dokploy-${organizationId.replace(/[^a-zA-Z0-9-]/g, "-")}`;
+
+export const buildCloudServerHostname = (organizationId: string) =>
+ `${organizationNamePrefix(organizationId)}-${randomSuffix()}`;
+
+const createOrgVpc = async (organizationId: string, zone: string) => {
await ensureDigitalOceanDefaultVpc(zone);
- // DO only accepts letters, digits, dashes and periods in a VPC name.
- const safeOrgId = organizationId.replace(/[^a-zA-Z0-9-]/g, ".");
return createDigitalOceanVpc({
- name: `dokploy-${safeOrgId}-${zone}-${nanoid(4)
- .toLowerCase()
- .replace(/[^a-z0-9]/g, "x")}`,
+ name: `${organizationNamePrefix(organizationId)}-${zone}-${randomSuffix(4)}`,
region: zone,
});
};
// Purchases take turns here: DO gives VPCs created at the same moment the same range and
// rejects all but one, and two servers of one organization would each create their own VPC.
-const assignOrgNetwork = (
+const assignOrgVpc = (
cloudServerId: string,
organizationId: string,
zone: string,
) =>
db.transaction(async (tx) => {
await tx.execute(
- sql`select pg_advisory_xact_lock(hashtext('cloud-server-network'))`,
+ sql`select pg_advisory_xact_lock(hashtext('cloud-server-vpc'))`,
);
const sibling = await tx.query.cloudServer.findFirst({
where: and(
eq(cloudServer.organizationId, organizationId),
eq(cloudServer.zone, zone),
- isNotNull(cloudServer.providerNetworkId),
+ isNotNull(cloudServer.providerVpcId),
),
});
const vpcId =
- sibling?.providerNetworkId ??
- (await createOrgNetwork(organizationId, zone));
+ sibling?.providerVpcId ?? (await createOrgVpc(organizationId, zone));
await tx
.update(cloudServer)
- .set({ providerNetworkId: vpcId, updatedAt: new Date().toISOString() })
+ .set({ providerVpcId: vpcId, updatedAt: new Date().toISOString() })
.where(eq(cloudServer.cloudServerId, cloudServerId));
return vpcId;
});
@@ -288,50 +340,13 @@ const waitForDropletActive = async (
throw new Error("Timed out waiting for droplet to become active");
};
-const runSshCommand = (host: string, privateKey: string, command: string) =>
- new Promise((resolve, reject) => {
- const client = new Client();
- client
- .once("ready", () => {
- client.exec(command, (err, stream) => {
- if (err) {
- client.end();
- reject(err);
- return;
- }
- stream.on("close", () => {
- client.end();
- resolve();
- });
- stream.resume();
- stream.stderr.resume();
- });
- })
- .on("error", (err) => {
- client.end();
- reject(err);
- })
- .connect({
- host,
- port: 22,
- username: "root",
- privateKey,
- readyTimeout: 20_000,
- });
- });
-
// Fresh droplets accept SSH before cloud-init finishes, and cloud-init/unattended-upgrades hold the apt lock the setup script needs.
-const waitForBootComplete = async (
- host: string,
- privateKey: string,
- maxAttempts = 30,
-) => {
+const waitForBootComplete = async (serverId: string, maxAttempts = 30) => {
let lastError: unknown;
for (let i = 0; i < maxAttempts; i++) {
try {
- await runSshCommand(
- host,
- privateKey,
+ await execAsyncRemote(
+ serverId,
"cloud-init status --wait >/dev/null 2>&1; while fuser /var/lib/dpkg/lock-frontend >/dev/null 2>&1; do sleep 3; done",
);
return;
@@ -347,10 +362,9 @@ const waitForBootComplete = async (
// Builds spike RAM for short periods; swap lets them finish slower instead of being OOM-killed.
// Recreates the swapfile when its size differs, so the same command works after an upgrade.
-const ensureSwap = (host: string, privateKey: string, swapGb: number) =>
- runSshCommand(
- host,
- privateKey,
+const ensureSwap = (serverId: string, swapGb: number) =>
+ execAsyncRemote(
+ serverId,
[
`want=$((${swapGb}*1024*1024*1024)); cur=$(stat -c %s /swapfile 2>/dev/null || echo 0);`,
'if [ "$cur" != "$want" ]; then',
@@ -362,6 +376,19 @@ const ensureSwap = (host: string, privateKey: string, swapGb: number) =>
].join(" "),
);
+// DO answers 404 for a key that a droplet request has just used, and only deletes it some seconds later.
+const deleteSshKeyWhenFree = async (sshKeyId: number, maxAttempts = 12) => {
+ for (let i = 0; i < maxAttempts; i++) {
+ try {
+ await deleteDigitalOceanSshKey(sshKeyId);
+ return;
+ } catch {
+ await sleep(10_000);
+ }
+ }
+ console.error(`[cloud-server] could not delete DO ssh key ${sshKeyId}`);
+};
+
export const provisionCloudServer = async (params: {
cloudServerId: string;
organizationId: string;
@@ -374,21 +401,7 @@ export const provisionCloudServer = async (params: {
params;
const { publicKey, privateKey } = await generateSSHKey("rsa");
- const vpcId = await assignOrgNetwork(cloudServerId, organizationId, zone);
-
- // Created before the droplet so it never boots with every port reachable.
- const firewallId = await createDigitalOceanFirewall({
- name: hostname,
- tag: getCloudServerTag(cloudServerId),
- inboundRules: toDigitalOceanRules([
- ...getSystemFirewallRules(
- DEFAULT_MONITORING_PORT,
- await getDigitalOceanVpcRange(vpcId),
- ),
- ...DEFAULT_FIREWALL_RULES,
- ]),
- });
- await updateCloudServer(cloudServerId, { providerFirewallId: firewallId });
+ const vpcId = await assignOrgVpc(cloudServerId, organizationId, zone);
const providerSshKeyId = await createDigitalOceanSshKey({
name: hostname,
@@ -415,9 +428,7 @@ export const provisionCloudServer = async (params: {
ipAddress = await waitForDropletActive(String(droplet.id));
} finally {
// The key is only read when the droplet is created, keeping it would just pile up keys in the DO account.
- await deleteDigitalOceanSshKey(providerSshKeyId).catch((err) =>
- console.error("[cloud-server] failed to delete DO ssh key:", err),
- );
+ void deleteSshKeyWhenFree(providerSshKeyId);
}
await updateCloudServer(cloudServerId, {
@@ -425,9 +436,6 @@ export const provisionCloudServer = async (params: {
status: "configuring",
});
- await waitForBootComplete(ipAddress, privateKey);
- await ensureSwap(ipAddress, privateKey, swapGb);
-
const sshKey = await createSshKey({
name: hostname,
publicKey,
@@ -455,11 +463,13 @@ export const provisionCloudServer = async (params: {
sshKeyId: sshKey.sshKeyId,
});
+ await waitForBootComplete(serverRecord.serverId);
+ await ensureSwap(serverRecord.serverId, swapGb);
await serverSetup(serverRecord.serverId);
await updateCloudServer(cloudServerId, { status: "ready" });
};
-const deleteNetworkWhenFree = async (vpcId: string, maxAttempts = 12) => {
+const deleteVpcWhenFree = async (vpcId: string, maxAttempts = 12) => {
for (let i = 0; i < maxAttempts; i++) {
try {
await deleteDigitalOceanVpc(vpcId);
@@ -468,7 +478,6 @@ const deleteNetworkWhenFree = async (vpcId: string, maxAttempts = 12) => {
const status = (err as { response?: { status: number } }).response
?.status;
if (status === 404) return;
- // DO rejects the delete with 403/409 until the destroyed droplet has fully left the VPC.
await sleep(10_000);
}
}
@@ -497,14 +506,13 @@ export const releaseProviderResources = async (record: CloudServer) => {
if (err?.response?.status !== 404) throw err;
});
}
- // Covers a droplet that was created but whose id never got saved.
await deleteDigitalOceanDropletsByTag(
getCloudServerTag(record.cloudServerId),
);
- const vpcId = record.providerNetworkId;
- if (vpcId && !(await isNetworkUsedByOthers(vpcId, record.cloudServerId))) {
- await deleteNetworkWhenFree(vpcId);
+ const vpcId = record.providerVpcId;
+ if (vpcId && !(await isVpcUsedByOthers(vpcId, record.cloudServerId))) {
+ await deleteVpcWhenFree(vpcId);
}
};
@@ -513,12 +521,9 @@ const removeLinkedServer = async (record: CloudServer) => {
const linkedServer = await findServerById(record.serverId);
await removeDeploymentsByServerId(linkedServer);
await deleteServer(record.serverId);
- // The key was generated for this server only, nothing else can use it.
if (record.sshKeyId) await removeSSHKeyById(record.sshKeyId);
};
-// Only terminations the customer confirmed on a server without services remove it from Dokploy;
-// automatic ones (non-payment, Stripe cancellation) keep it inactive so its services can still be moved.
export const terminateCloudServer = async (
cloudServerId: string,
options: { removeLinkedServer?: boolean } = {},
@@ -610,12 +615,10 @@ export const resizeCloudServerVm = async (
await waitForDropletAction(record.providerVmId, resize.id);
await powerOnCloudServerVm(record);
- if (!record.ipAddress || !record.sshKeyId) return;
- // The resize already succeeded at this point; a swap hiccup must not roll the upgrade back.
+ if (!record.serverId) return;
try {
- const sshKey = await findSSHKeyById(record.sshKeyId);
- await waitForBootComplete(record.ipAddress, sshKey.privateKey);
- await ensureSwap(record.ipAddress, sshKey.privateKey, swapGb);
+ await waitForBootComplete(record.serverId);
+ await ensureSwap(record.serverId, swapGb);
} catch (err) {
console.error("[cloud-server] failed to resize swap after upgrade:", err);
}
@@ -625,8 +628,6 @@ const ANYWHERE = ["0.0.0.0/0", "::/0"];
const ALL_PORTS = "1-65535";
const DEFAULT_MONITORING_PORT = 4500;
-// Dokploy manages the server over SSH and reads its metrics on the monitoring port, so these can't be closed.
-// The VPC is per organization, so its range only ever matches the customer's own servers.
const getSystemFirewallRules = (
monitoringPort: number,
vpcRange: string | null,
@@ -652,7 +653,7 @@ const toDigitalOceanRules = (
): DigitalOceanInboundRule[] =>
rules.map((rule) => ({
protocol: rule.protocol,
- ...(rule.protocol === "icmp" ? {} : { ports: rule.ports }),
+ ports: rule.protocol === "icmp" ? "0" : rule.ports,
sources: { addresses: rule.sources },
}));
@@ -687,9 +688,7 @@ const getMonitoringPort = async (record: CloudServer) => {
const getSystemRules = async (record: CloudServer) => {
const [monitoringPort, vpcRange] = await Promise.all([
getMonitoringPort(record),
- record.providerNetworkId
- ? getDigitalOceanVpcRange(record.providerNetworkId)
- : null,
+ record.providerVpcId ? getDigitalOceanVpcRange(record.providerVpcId) : null,
]);
return getSystemFirewallRules(monitoringPort, vpcRange);
};
@@ -708,7 +707,6 @@ const withoutSystemRules = (
(rule) => !systemRules.some((system) => isSameRule(rule, system)),
);
-// Every server starts with a firewall; removing it leaves the droplet like a regular VPS with every port open.
export const getCloudServerFirewall = async (record: CloudServer) => {
getProvisionedVmId(record);
const systemRules = await getSystemRules(record);
@@ -728,7 +726,7 @@ export const getCloudServerFirewall = async (record: CloudServer) => {
status: firewall.status,
systemRules,
rules: withoutSystemRules(
- fromDigitalOceanRules(firewall.inbound_rules),
+ fromDigitalOceanRules(firewall.inbound_rules ?? []),
systemRules,
),
};
diff --git a/packages/server/src/utils/digitalocean-api.ts b/packages/server/src/utils/digitalocean-api.ts
new file mode 100644
index 000000000..4ec692667
--- /dev/null
+++ b/packages/server/src/utils/digitalocean-api.ts
@@ -0,0 +1,93104 @@
+/**
+ * This file was auto-generated by openapi-typescript.
+ * Do not make direct changes to the file.
+ */
+
+export interface paths {
+ "/v2/action-gateway/actors/{actor_id}/limits": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get an Actor's Limits
+ * @description Returns the per-minute limits set for the actor and the limits in effect, each the lower of your team's limit and the actor's override. Returns 404 when the actor has no sessions, connections, or limit overrides.
+ */
+ get: operations["actorLimits_get"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/actors/{actor_id}/limits:clear": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Clear an Actor's Limits
+ * @description Removes the actor's overrides for the listed categories, which then follow your team's limits again. Clearing a category without an override succeeds.
+ */
+ post: operations["actorLimits_delete"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/actors/{actor_id}/limits:set": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Set an Actor's Limits
+ * @description Sets per-minute limits for the listed categories and leaves the others unchanged. A limit may not exceed your team's current limit for the category (400 otherwise), and 0 blocks every call in the category. The actor does not need to exist yet.
+ */
+ post: operations["actorLimits_update"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/provider-credentials": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Provider Credentials
+ * @description Lists registered credentials visible to you, ordered by provider and display name. Optionally filter by provider slug, ignoring case. An unknown provider returns an empty list. Results are not paginated and exclude DigitalOcean-owned OAuth applications and credentials managed by MCP server registrations.
+ */
+ get: operations["providerCredentials_list"];
+ put?: never;
+ /**
+ * Create a Provider Credential
+ * @description Stores an API key or OAuth client for a catalog provider that supports that
+ * credential type. Secret material is write-only. Only you can see and use the
+ * credential unless you share it with your team using `reusable_by_team`.
+ *
+ * To use an API key, first create this credential, then create a connection for
+ * the same provider with `credential.team_credential.credential_id` set to the
+ * returned `credential.id`. That connection becomes active without OAuth consent.
+ * Its `user_id` must match the session's `actor_id`.
+ *
+ * Creating a credential does not replace existing credentials or connections.
+ * A duplicate display name for the same provider returns 409.
+ */
+ post: operations["providerCredentials_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/provider-credentials/{id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get a Provider Credential
+ * @description Returns metadata for a provider credential, never its secret material. Returns 404 if the credential is unknown, deleted, or not visible to you.
+ */
+ get: operations["providerCredentials_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete a Provider Credential
+ * @description Deletes a provider credential and every connection that uses it. There is no
+ * confirmation step. Warn affected users before deleting; sessions relying on
+ * those connections lose provider access. To rotate a key without removing
+ * connections, update the credential instead.
+ *
+ * Returns the deleted credential with status `PROVIDER_CREDENTIAL_STATUS_DELETED`
+ * and the number of removed connections in `revoked_connections`. Returns 404 for
+ * an unknown or already-deleted credential. A credential still bound to an MCP
+ * server cannot be deleted separately; delete the server first.
+ */
+ delete: operations["providerCredentials_delete"];
+ options?: never;
+ head?: never;
+ /**
+ * Update a Provider Credential
+ * @description Rotates an API key or OAuth client secret, or updates credential metadata, in
+ * place. Send only the fields to change; omitted fields are preserved. No update
+ * mask is required. The provider, kind, and redirect URL cannot be changed.
+ *
+ * The credential keeps its ID and its connections. Those connections use the new
+ * material on subsequent calls; `revoked_connections` remains zero. For an OAuth
+ * client, changing secret material or the base URL requires the original `client_id`.
+ *
+ * Credentials managed by MCP server registrations accept only secret rotation,
+ * not display name or base URL changes. Sharing with the team requires the
+ * appropriate account feature and permissions and cannot be undone.
+ */
+ patch: operations["providerCredentials_update"];
+ trace?: never;
+ };
+ "/v2/action-gateway/connections": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Connections
+ * @description Returns the connections you can see, excluding revoked ones. Offset-paged with page and `per_page`; filter by provider, `user_id`, and status.
+ */
+ get: operations["connections_list"];
+ put?: never;
+ /**
+ * Create a Connection
+ * @description Connects one of your users, identified by `user_id`, to a provider so tools can act on their
+ * account. An OAuth connection starts pending, and authorization carries the URL to send the user to;
+ * read the connection until it is active or expired. A connection through a team API-key credential is
+ * active immediately. Register the API key with `POST /v2/action-gateway/provider-credentials`
+ * first, then set `credential.team_credential.credential_id` to the returned `credential.id`.
+ *
+ * There is one connection per provider and `user_id` for each DigitalOcean user who creates
+ * connections. Repeating the request returns the existing connection when its scopes cover the
+ * request, reusing a pending connection's link, and restarts an expired or revoked connection under
+ * the same ID. Requesting scopes beyond an existing connection's, or a different credential, returns
+ * 400 until that connection is deleted.
+ */
+ post: operations["connections_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/connections/{id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get a Connection
+ * @description Returns the connection and, while it is pending, the authorization the user still has to complete. Reading a pending connection picks up a completed authorization, and marks the connection expired once its link has lapsed. Returns 404 for an unknown connection or one you cannot see.
+ */
+ get: operations["connections_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete a Connection
+ * @description Marks the connection revoked and returns it; for an OAuth connection, its stored tokens are deleted first. Creating a connection for the same provider and `user_id` later reuses the same ID. Only the user who created the connection can delete it; for anyone else it is 404.
+ */
+ delete: operations["connections_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/mcp-servers": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List MCP Servers
+ * @description Returns every MCP server your team has registered, sorted by `serverRef`.
+ */
+ get: operations["mcpServers_list"];
+ put?: never;
+ /**
+ * Register an MCP Server
+ * @description Registers a remote MCP server for your team, using the streamable HTTP transport. The server starts with `syncStatus` pending and no tools: discover its tools with `POST .../mcp-servers/{server_ref}/resync`, then choose which to enable with `PUT .../mcp-servers/{server_ref}/tools`. The endpoint must be HTTPS and resolve only to public IP addresses. The number of servers per team is limited (10 by default); registering beyond it returns 429. Returns 409 when `serverRef` is already in use.
+ */
+ post: operations["mcpServers_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/mcp-servers/{server_ref}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get an MCP Server
+ * @description Returns one of your team's MCP servers, or 404 when your team has none with this `serverRef`.
+ */
+ get: operations["mcpServers_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete an MCP Server
+ * @description Disables all of the server's tools, removes them from your team's catalog, and deletes the server. An `api_key` supplied at registration is deleted; a `credentialRef` you supplied is left untouched. For a server registered with `credentialRefSource` connection, every user connection made through its OAuth client is revoked. Returns the deleted server, or 404 when it does not exist.
+ */
+ delete: operations["mcpServers_delete"];
+ options?: never;
+ head?: never;
+ /**
+ * Update an MCP Server
+ * @description Changes the server's description, which is shown on its catalog card immediately. The endpoint and credentials cannot be changed; to change them, delete the server and register it again.
+ */
+ patch: operations["mcpServers_patch"];
+ trace?: never;
+ };
+ "/v2/action-gateway/mcp-servers/{server_ref}/resync": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Discover an MCP Server's Tools
+ * @description Connects to the server, lists its tools, and records them. Discovered tools are not callable until
+ * you enable them.
+ *
+ * When discovery finishes in time, returns 200 with the server and its tools; a discovery failure is
+ * reported in `syncStatus` and `syncError` rather than as an error. Otherwise returns 202 with pending
+ * set while discovery continues: poll `GET .../mcp-servers/{server_ref}` until `lastSyncedAt` or
+ * `syncError` changes (`syncStatus` is not reset while discovery runs).
+ *
+ * For a server registered with `credentialRefSource` connection, `user_id` is required; if that user
+ * has not authorized the server yet, the response carries authorization with the URL to send them to.
+ * Resyncs are rate limited per team, and a team can run only a few discoveries at once; either limit
+ * returns 429.
+ */
+ post: operations["mcpServers_run_resync"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/mcp-servers/{server_ref}/tools": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List an MCP Server's Tools
+ * @description Returns every tool discovered on the server, sorted by name, with whether each is enabled. Tools that have since disappeared from the server stay listed.
+ */
+ get: operations["mcpServers_list_tools"];
+ /**
+ * Set Which of an MCP Server's Tools Are Enabled
+ * @description `enabledToolSlugs` is the complete set to enable; every other tool of the server is disabled. An
+ * enabled tool is added to your team's catalog at its latest discovered version, and a disabled one is
+ * removed from it. Repeating the same set changes nothing.
+ *
+ * Before changing anything, each tool being enabled, re-enabled, or moved to a newer discovered
+ * version is verified against the live server: it must still be listed there, with the same input
+ * schema as when it was discovered. If any check fails or the server cannot be reached, the request
+ * fails with 400 and nothing changes; resync and try again. An unknown tool slug is also rejected with
+ * 400. A request that needs verification counts against the resync rate limit (429). Returns the
+ * server's full tool list.
+ */
+ put: operations["mcpServers_update_tools"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/output-views": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Output Views
+ * @description Returns the output views your team can use: views DigitalOcean publishes to every team, plus your team's own. Cursor-paged with `page_size` and `page_token`; no total is reported.
+ */
+ get: operations["outputViews_list"];
+ put?: never;
+ /**
+ * Create an Output View
+ * @description An output view is a named projection of one tool version's output: tool calls that use it return only the listed fields, and its `output_schema` describes the result. The view is bound to the tool version your catalog currently releases. Returns 409 when your team already has a view with this name on the tool version, and 429 when your team already has the maximum of 20 views on it.
+ */
+ post: operations["outputViews_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/output-views/preview": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Preview an Output View
+ * @description Validates a projection exactly as create does and returns the view it would produce, including `output_schema`, without storing anything. name and description are optional here; name uniqueness and the per-tool-version limit are not checked.
+ */
+ post: operations["outputViews_validate"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/output-views/{view_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get an Output View
+ * @description Returns one of your team's views, or a published view on a tool version your catalog exposes. Returns 404 when the view does not exist, was deleted, or belongs to another team.
+ */
+ get: operations["outputViews_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete an Output View
+ * @description Deletes one of your team's views and returns it with audit.deleted_at set; it can no longer be used. Published views cannot be deleted. Returns 404 when the view does not exist, is already deleted, or is not your team's.
+ */
+ delete: operations["outputViews_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/endpoints": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Endpoints
+ * @description Lists visible endpoints, newest creation time first, with endpoint UUID descending as the tie-breaker. Keyset pagination remains stable across tied timestamps, deletions, and concurrent inserts. There are no offsets or totals. Team owners may list all endpoints in their team.
+ */
+ get: operations["endpoints_list"];
+ put?: never;
+ /**
+ * Create an Endpoint
+ * @description Creates a named endpoint and its first immutable version atomically. The MCP URL follows the highest-numbered live version; version_mcp_url stays pinned. The top-level insights field sets the endpoint's Insights consent; version.insights is deprecated and ignored. An invalid name returns 400 invalid_endpoint_name; a duplicate team name returns 409 endpoint_name_taken.
+ */
+ post: operations["endpoints_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/endpoints/search": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Search Endpoints
+ * @description Returns the endpoints you can see whose name, endpoint ID, actor_id, or agent name contains query, case-insensitively. Results are ranked across the whole result set: exact matches first, then prefix matches, then substring matches, then by name. Each endpoint has the list shape, including its embedded head_version. Keyset pagination uses page_size and page_token; a page token is valid only with the same query and actor_id. There are no offsets or totals. Service-managed endpoints are never returned.
+ */
+ get: operations["endpoints_list_search"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/endpoints/{endpoint_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Endpoint
+ * @description Returns an endpoint with its live head and Insights consent. When no live versions remain, head_version is null and the endpoint MCP URL fails closed until a version is published. An inaccessible endpoint returns 404 endpoint_not_found.
+ */
+ get: operations["endpoints_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete an Endpoint
+ * @description Deletes an endpoint and all its versions. The owner or a team owner may delete it. Missing endpoints, endpoints outside your team, and otherwise invisible endpoints all return the same empty 204 response as a successful deletion. A service-managed endpoint is invisible: deleting its ID returns the same 204 as an unknown ID and does not change it. Repeating a delete returns 204. Deletion is final for the endpoint identity and all cascaded version identities; retries, replays, and later writes cannot resurrect them. Reusing the same contents requires a new endpoint identity and a new version identity and number.
+ */
+ delete: operations["endpoints_delete"];
+ options?: never;
+ head?: never;
+ /**
+ * Update an Endpoint
+ * @description Renames an endpoint, changes its Insights consent, or both, without changing its owner, actor, or versions. Send name, insights, or both. Insights merges per signal: a metrics, logs, or traces value of true or false replaces that signal, and an omitted signal keeps its stored value. The consent applies to every version, including pinned and older versions. A body with no name and no insights signal returns 400 endpoint_update_empty. Only the endpoint owner may update it. An invalid name returns 400 invalid_endpoint_name; a duplicate team name returns 409 endpoint_name_taken. Inaccessible endpoints return 404 endpoint_not_found.
+ */
+ patch: operations["endpoints_patch"];
+ trace?: never;
+ };
+ "/v2/action-gateway/endpoints/{endpoint_id}/versions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Endpoint Versions
+ * @description Lists live versions of an accessible endpoint by version_number descending, using keyset pagination without offsets or totals. The cursor is bound to this parent endpoint as well as the caller and team. Inaccessible endpoints return 404 endpoint_not_found.
+ */
+ get: operations["endpointVersions_list"];
+ put?: never;
+ /**
+ * Create an Endpoint Version
+ * @description Publishes a new immutable version as the endpoint's head. Only the endpoint owner may create versions, and the actor binding must match the endpoint. An identity mismatch returns 404 endpoint_identity_mismatch. Inaccessible endpoints return 404 endpoint_not_found. Publishing identical contents still creates a new version identity and number; it never resurrects a deleted version. Versions carry no Insights consent: a request's insights field is deprecated and ignored, and the endpoint's consent applies to the new version. Neither new-version creation nor head replacement changes that consent; change it with PATCH /v2/action-gateway/endpoints/{endpoint_id}.
+ */
+ post: operations["endpointVersions_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/endpoints/{endpoint_id}/versions:promote": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Promote an Endpoint Version
+ * @description Copies a live version's configuration into a new, higher-numbered head version and sets promoted_from_version_number. Existing versions never change. Only the endpoint owner may promote. An inaccessible endpoint returns 404 endpoint_not_found, and a deleted, unknown, or different endpoint's version returns 404 endpoint_version_not_found. The new version always has a new identity and number, even for identical contents; deleted identities are never resurrected. Head replacement does not change the endpoint's Insights consent, which applies to every version.
+ */
+ post: operations["endpointVersions_create_promotion"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/endpoint-versions/{version_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Endpoint Version
+ * @description Returns the exact live version named by its composite public ID. An inaccessible or deleted version returns 404 endpoint_version_not_found. A bare session UUID is not a version ID.
+ */
+ get: operations["endpointVersions_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete an Endpoint Version
+ * @description Deletes a live version. Only the endpoint owner may delete versions. Deleting the head makes the highest-numbered remaining live version the head. With no live versions, the endpoint MCP URL fails closed until another version is published. Inaccessible or deleted versions return 404 endpoint_version_not_found, and so does a version of a service-managed endpoint, exactly as for an unknown ID. Deletion is final for the version identity. Retries, replays, and later writes cannot resurrect it. Reusing identical contents requires a new version identity and version number.
+ */
+ delete: operations["endpointVersions_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/sessions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Sessions
+ * @deprecated
+ * @description Deprecated: use GET /v2/action-gateway/endpoints for endpoints. This route continues to list legacy sessions with its existing fields and pagination. Returns the sessions you can see, newest first. Offset-paged with page and `per_page`; `end_user_id` filters to one actor.
+ */
+ get: operations["sessions_list"];
+ put?: never;
+ /**
+ * Create a Session
+ * @deprecated
+ * @description Deprecated: use POST /v2/action-gateway/endpoints. Existing sessions and their MCP URLs keep working. A new session may be created as version 1 of a new endpoint whose name is derived from the session name, with part of the session ID appended when that name is taken. The response then includes endpoint_id, endpoint_version_id, and version_number. Such a session counts against your team's endpoint limit (429 endpoint_limit_exceeded). If every derived name is already used by an endpoint in your team, the request returns 409 endpoint_name_taken. Creates a session owned by your team, with a new session URN, and returns the MCP URL an agent connects to. tools selects the tools and toolbelts the session exposes, and policy decides which calls run, need approval, or are refused.
+ *
+ * Set config.cache to opt into result caching for all eligible tools or a specific list. Caching is off by default and must be enabled for the team.
+ */
+ post: operations["sessions_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/sessions/search": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Search Sessions
+ * @deprecated
+ * @description Deprecated: use GET /v2/action-gateway/endpoints/search for endpoints. This route continues to search legacy sessions with its existing fields and pagination. Returns the sessions you can see whose name, `actor_id`, `session_urn`, or `agentName` contains query, case-insensitively, ranked across the whole result set. Cursor-paged with `page_size` and `page_token`; no total is reported.
+ */
+ get: operations["sessions_list_search"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/sessions/{session_urn}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Delete a Session
+ * @deprecated
+ * @description Deprecated: use DELETE /v2/action-gateway/endpoints/{endpoint_id} for endpoints. This route continues to accept legacy session URNs and delete legacy sessions. Deletes the session and its policy. Succeeds without deleting anything when the session does not exist or you cannot delete it, so repeating a delete also succeeds. A malformed `session_urn` is rejected with 400. When the session is a version of an endpoint, this deletes that version, and deleting the endpoint's last live version also deletes the endpoint. Deleting the last live version with DELETE /v2/action-gateway/endpoint-versions/{version_id} instead keeps the endpoint, with no live version.
+ */
+ delete: operations["sessions_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/toolbelts": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Toolbelts
+ * @description Returns your team's toolbelts, one entry per name describing its latest version, sorted by name. Offset-paged with page and `per_page`; pagination reports the total.
+ */
+ get: operations["toolbelts_list"];
+ put?: never;
+ /**
+ * Create a Toolbelt
+ * @description A toolbelt is a named set of tools, each pinned to a version, that your team can attach to sessions as `toolbelt:@`. The first version is 1 unless version is set. Returns 409 if an active toolbelt with the same name exists. The name of a deleted toolbelt can be reused; its versions start again from the initial version.
+ */
+ post: operations["toolbelts_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/toolbelts/search": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Search Toolbelts
+ * @description Returns your team's toolbelts whose name, display name, or description contains query, case-insensitively, sorted by name. Cursor-paged with `page_size` and `page_token`; no total is reported.
+ */
+ get: operations["toolbelts_list_search"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/toolbelts/{name}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get a Toolbelt
+ * @description Returns the latest version of the named toolbelt, or the version requested, with catalog metadata for one page of its members in `tool_details`. A deleted toolbelt returns 404 unless a version is requested.
+ */
+ get: operations["toolbelts_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete a Toolbelt
+ * @description Marks the toolbelt deleted and returns its latest version with status deprecated. Its versions stay readable by explicit version until the name is reused. The name is free to reuse immediately; a new toolbelt with it starts a fresh version history. Returns 404 when the toolbelt does not exist or is already deleted.
+ */
+ delete: operations["toolbelts_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/toolbelts/{name}/providers": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List the Providers in a Toolbelt
+ * @description Returns the distinct providers of the toolbelt's members, each with its member count, sorted by provider ID. List one provider's members with `GET .../toolbelts/{name}/providers/{provider}/tools`.
+ */
+ get: operations["toolbelts_list_providers"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/toolbelts/{name}/providers/{provider}/tools": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List a Toolbelt's Tools from One Provider
+ * @description Returns a page of catalog metadata for the toolbelt's members from the named provider, sorted by tool slug. An unknown provider returns an empty page.
+ */
+ get: operations["toolbelts_list_provider_tools"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/toolbelts/{name}/tools/add": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Add Tools to a Toolbelt
+ * @description Adds the listed tools and returns the toolbelt. When membership changes, this creates a new version that keeps the display name and description. Tools already in the toolbelt are left as they are, so a request that adds nothing new returns the current version unchanged. Returns 400 when a tool is not an active catalog tool, when a pin differs from the tool's current released version or from the version the toolbelt already holds, or when the toolbelt would exceed 500 tools. Returns 404 for an unknown or deleted toolbelt.
+ */
+ post: operations["toolbelts_add_tools"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/toolbelts/{name}/tools/remove": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Remove Tools from a Toolbelt
+ * @description Removes the listed tools and returns the toolbelt. When membership changes, this creates a new version that keeps the display name and description. Tools that are not members are ignored, and removing every tool is allowed; deleting the toolbelt itself is a separate DELETE. Returns 400 when a pin differs from the version the toolbelt holds, and 404 for an unknown or deleted toolbelt.
+ */
+ post: operations["toolbelts_delete_tools"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/tools": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Tools
+ * @description Returns one page of the tools your team can use: released catalog tools plus the enabled tools of your team's MCP servers. definitions[i] describes tools[i]. Offset-paged with page and `per_page`; an unknown `toolkitId` returns an empty page.
+ */
+ get: operations["tools_list"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/tools/health": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Tool Health
+ * @description Returns availability and latency for each catalog tool over the requested window, sorted by provider and then tool slug. A tool with no calls in the window is listed with `data_status` `HEALTH_DATA_STATUS_NO_DATA`. Metrics are aggregated across all customers; request volumes are not reported. Tools of your team's MCP servers are not included. Offset-paged with page and `per_page`.
+ */
+ get: operations["tools_list_health"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/tools/health/providers": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Provider Health
+ * @description Returns availability and latency for each catalog provider over the requested window, sorted by provider ID. Metrics are aggregated across all customers; request volumes are not reported. Tools of your team's MCP servers are not included. Offset-paged with page and `per_page`.
+ */
+ get: operations["tools_list_health_providers"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/tools/health/tools/{tool_slug}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Tool Health
+ * @description Returns availability and latency for one catalog tool over the requested window, optionally with a history series. Metrics are aggregated across all customers; request volumes are not reported. Returns 404 when `tool_slug` is not a catalog tool.
+ */
+ get: operations["tools_get_health"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/tools/{tool_slug}/versions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Tool Versions
+ * @description Returns the released versions of one catalog tool, newest first, each with the changes from the version released before it. Every version listed can be pinned as `@` in an endpoint or toolbelt, and a pin keeps calling that version after newer versions are released. A tool named without a version always calls the latest release, marked `latest`.
+ *
+ * Changes are computed by comparing each version's input schema, output schema, and required OAuth scopes with the previous released version. `breaking` marks a change that can make a call that worked against the previous version fail; review those before moving a pin or relying on the latest release. Returns 404 when `tool_slug` is not a catalog tool. Tools of your team's MCP servers are not listed.
+ */
+ get: operations["tools_list_versions"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/tools/providers": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Providers
+ * @description Returns the active catalog providers with at least one released tool, sorted by display name, with the credential kinds each accepts and the parameters a connection or team credential needs. Your team's MCP servers are listed separately under `/v2/action-gateway/mcp-servers`.
+ */
+ get: operations["tools_list_providers"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/tools/providers/search": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Search Providers
+ * @description Returns the providers of `GET /v2/action-gateway/tools/providers` whose name, display name, or description contains query, case-insensitively, sorted by name. Cursor-paged with `page_size` and `page_token`; no total is reported.
+ */
+ get: operations["tools_list_search_providers"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/tools/search": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Search Tools
+ * @description Returns the tools your team can use that match query, optionally restricted to some providers or to the members of one of your toolbelts. Results are ranked across the whole result set: exact tool name matches first, then name or title prefixes, then name or title substrings, then other matches. Cursor-paged with `page_size` and `page_token`; no total is reported.
+ */
+ get: operations["tools_list_search"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/tools/toolkits": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Toolkits
+ * @description Returns the providers (toolkits) whose tools your team can use: catalog providers with at least one released tool, plus your team's registered MCP servers.
+ */
+ get: operations["tools_list_toolkits"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/users": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Users
+ * @description Returns the user IDs known for your team: session `actor_id` values, the `user_id` of connections that are not revoked, and actors with limit overrides. Only sessions and connections you can see count. Offset-paged with page and `per_page`.
+ */
+ get: operations["users_list"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/action-gateway/users/{user_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get a User
+ * @description Returns the sessions and non-revoked connections of one user ID. Returns 404 when the user has none you can see and no limit overrides.
+ */
+ get: operations["users_get"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/tools": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Session Tools
+ * @description Lists the catalog tools that a session can call, ordered by name. The list applies the session's `tools` selection and omits tools that its policy always denies.
+ *
+ * Each page includes an `ETag` header. Send it in `If-None-Match` to receive `304 Not Modified` while the page is unchanged.
+ */
+ get: operations["gatewayTools_list"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/tools/search": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Search Session Tools
+ * @description Finds the catalog tools that fit one or more use cases. This is the REST form of the `action_search` MCP tool. Each query is searched independently and returns its own result group, so you can see which tools serve which goal. Results include each tool's `inputSchema`, so you can call a tool with `POST /tools/invoke` without another lookup.
+ *
+ * Results include only tools that the session can call. If the session policy requires approval for `action_search`, the response is a failed result with `_meta.status` set to `requires_approval`.
+ */
+ post: operations["gatewayTools_list_search"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/tools/invoke": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Invoke Session Tools
+ * @description Runs 1 to 10 tool calls in parallel and returns one result per call, in request order. This is the REST form of the `action_invoke` MCP tool.
+ *
+ * Each call is checked against the session's tool selection and policy, uses the session actor's connections, and applies any output view bound to the tool in the session. A well-formed request returns `200` even when some calls fail. Check each item's `result.status`, and use `success_count` and `error_count` to branch without scanning every item.
+ *
+ * A call whose policy requires approval fails with `_meta.status` set to `requires_approval`. Have the session's owner approve it, then repeat the call with the same arguments. A call that needs the end user to connect a provider fails with `_meta.status` set to `requires_authorization` or `requires_connection_configuration`.
+ *
+ * A call that pins an older released version, such as `version: v16` while `v17` is current, returns `_meta.latest_version` with the current release's version. Calls without a version, and calls pinned to the current release, omit it. List a tool's versions and their changes with `GET /v2/action-gateway/tools/{tool_slug}/versions`.
+ *
+ * Tools opted into result caching use the session's settings automatically. Set cache on an individual tools entry to bypass caching or require a fresher result. The result's _meta.cache reports cache hits. Hits still incur the standard gateway invocation charge but no additional provider charge, because the provider is not called.
+ */
+ post: operations["gatewayTools_run"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/code/execute": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Execute Code
+ * @description Runs Python code in an ephemeral sandbox and returns its `stdout`, `stderr`, and `exit_code`. This is the REST form of the `action_code` MCP tool. Use it for computation, parsing, and data processing, or to chain several catalog tools in one request.
+ *
+ * The sandbox provides `invoke_digitalocean_tool(name, arguments)`, which calls a catalog tool and returns a tool result. Those calls follow the session's tool selection and policy. Each request runs in a fresh sandbox, so state is not kept between requests. Execution, including tool calls, is time limited. Code that runs too long fails with a `timeout` error.
+ *
+ * A nonzero exit code is still a `succeeded` result; check `output.exit_code`. If the session policy requires approval for `action_code`, the response is a failed result with `_meta.status` set to `requires_approval`.
+ */
+ post: operations["gatewayCode_run"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/approvals/session/{session_id}/{approval_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Decide a Pending Approval
+ * @description Approves or denies a tool call that is waiting for approval. A tool result returns `_meta.status` set to `requires_approval` when the session policy sets `ask` for the call, and its `_meta.decide` gives this request's path.
+ *
+ * Send the decision with the session owner's token. Approval is a separate control request, not a tool, so an agent cannot approve its own calls. After approving, repeat the original call with the same arguments before `expires_at`. An approval applies only to that session, tool version, and set of arguments, and is used once. To ask again after a denial or expiry, repeat the tool call.
+ */
+ post: operations["gatewaySessionApprovals_update"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/approvals/{approval_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Decide a Pending Approval by Session Header
+ * @description Approves or denies a tool call that is waiting for approval, identifying the session with the `X-Session-Id` header or the endpoint with the `X-Endpoint-Id` header. With `X-Session-Id`, it behaves the same as `POST /approvals/session/{session_id}/{approval_id}`, which is the path returned in a result's `_meta.decide`. An unknown `X-Endpoint-Id` returns 404.
+ */
+ post: operations["gatewayApprovals_update"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/1-clicks": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List 1-Click Applications
+ * @description To list all available 1-Click applications, send a GET request to `/v2/1-clicks`. The `type` may
+ * be provided as query paramater in order to restrict results to a certain type of 1-Click, for
+ * example: `/v2/1-clicks?type=droplet`. Current supported types are `kubernetes` and `droplet`.
+ *
+ * The response will be a JSON object with a key called `1_clicks`. This will be set to an array of
+ * 1-Click application data, each of which will contain the the slug and type for the 1-Click.
+ */
+ get: operations["oneClicks_list"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/1-clicks/kubernetes": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Install Kubernetes 1-Click Applications
+ * @description To install a Kubernetes 1-Click application on a cluster, send a POST request to
+ * `/v2/1-clicks/kubernetes`. The `addon_slugs` and `cluster_uuid` must be provided as body
+ * parameter in order to specify which 1-Click application(s) to install. To list all available
+ * 1-Click Kubernetes applications, send a request to `/v2/1-clicks?type=kubernetes`.
+ */
+ post: operations["oneClicks_install_kubernetes"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/account": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get User Information
+ * @description To show information about the current user account, send a GET request to `/v2/account`.
+ */
+ get: operations["account_get"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/account/keys": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All SSH Keys
+ * @description To list all of the keys in your account, send a GET request to `/v2/account/keys`. The response will be a JSON object with a key set to `ssh_keys`. The value of this will be an array of ssh_key objects, each of which contains the standard ssh_key attributes.
+ */
+ get: operations["sshKeys_list"];
+ put?: never;
+ /**
+ * Create a New SSH Key
+ * @description To add a new SSH public key to your DigitalOcean account, send a POST request to `/v2/account/keys`. Set the `name` attribute to the name you wish to use and the `public_key` attribute to the full public key you are adding.
+ */
+ post: operations["sshKeys_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/account/keys/{ssh_key_identifier}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing SSH Key
+ * @description To get information about a key, send a GET request to `/v2/account/keys/$KEY_ID` or `/v2/account/keys/$KEY_FINGERPRINT`.
+ * The response will be a JSON object with the key `ssh_key` and value an ssh_key object which contains the standard ssh_key attributes.
+ */
+ get: operations["sshKeys_get"];
+ /**
+ * Update an SSH Key's Name
+ * @description To update the name of an SSH key, send a PUT request to either `/v2/account/keys/$SSH_KEY_ID` or `/v2/account/keys/$SSH_KEY_FINGERPRINT`. Set the `name` attribute to the new name you want to use.
+ */
+ put: operations["sshKeys_update"];
+ post?: never;
+ /**
+ * Delete an SSH Key
+ * @description To destroy a public SSH key that you have in your account, send a DELETE request to `/v2/account/keys/$KEY_ID` or `/v2/account/keys/$KEY_FINGERPRINT`.
+ * A 204 status will be returned, indicating that the action was successful and that the response body is empty.
+ */
+ delete: operations["sshKeys_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/actions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Actions
+ * @description This will be the entire list of actions taken on your account, so it will be quite large. As with any large collection returned by the API, the results will be paginated with only 20 on each page by default.
+ */
+ get: operations["actions_list"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/actions/{action_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Action
+ * @description To retrieve a specific action object, send a GET request to `/v2/actions/$ACTION_ID`.
+ */
+ get: operations["actions_get"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/add-ons/apps": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Available Add-On Applications
+ * @description To fetch details of all available Add-On Applications, send a GET request to `/v2/add-ons/apps`.
+ */
+ get: operations["addons_get_app"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/add-ons/apps/{app_slug}/metadata": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Metadata for an Add-On Application
+ * @description To find out what metadata is required for a specific add-on, send a GET request to `/v2/add-ons/apps/{app_slug}/metadata`.
+ * Metadata varies by application.
+ */
+ get: operations["addons_get_app_metadata"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/add-ons/saas": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List all Add-On Resources
+ * @description To fetch all Add-On Resources under your team, send a GET request to `/v2/add-ons/saas`.
+ */
+ get: operations["addons_list"];
+ put?: never;
+ /**
+ * Create/Provision a New Add-on Resource
+ * @description To create an add-on resource, send a POST request to `/v2/add-ons/saas` with required parameters.
+ * Some add-ons require additional metadata to be provided in the request body. To find out
+ * what metadata is required for a specific add-on, send a GET request to `/v2/add-ons/apps/{app_slug}/metadata`.
+ */
+ post: operations["addons_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/add-ons/saas/{resource_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get details on an Add-On Resource
+ * @description To fetch details of a specific Add-On Resource, send a GET request to `/v2/add-ons/saas/{resource_uuid}`.
+ * Replace `{resource_uuid}` with the UUID of the resource you want to retrieve.
+ */
+ get: operations["addons_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete/Deprovision an Add-on Resource
+ * @description To delete an add-on resource, send a DELETE request to `/v2/add-ons/saas/{resource_uuid}` with the UUID of the resource to delete.
+ * You cannot retrieve the resource after it has been deleted. The response indicates a request was sent to the 3rd party add-on provider to delete the resource.
+ * You will no longer be billed for this resource.
+ */
+ delete: operations["addons_delete"];
+ options?: never;
+ head?: never;
+ /**
+ * Update the name for an Add-On Resource
+ * @description To change the name of an Add-On Resource, send a PATCH request to `/v2/add-ons/saas/{resource_uuid}`.
+ * Replace `{resource_uuid}` with the UUID of the resource for which you want to change the name.
+ */
+ patch: operations["addons_patch"];
+ trace?: never;
+ };
+ "/v2/add-ons/saas/{resource_uuid}/plan": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ /**
+ * Update the plan for an Add-On Resource
+ * @description To change the plan associated with an Add-On Resource, send a PATCH request to `/v2/add-ons/saas/{resource_uuid}/plan`.
+ * Replace `{resource_uuid}` with the UUID of the resource for which you want to change the plan.
+ */
+ patch: operations["addons_patch_plan"];
+ trace?: never;
+ };
+ "/v2/harness-runtime/auth/{provider}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Start an interactive provider login for the team.
+ * @description Starts, or resumes, the one-time login the team uses so a session can act on a provider. `github` is the provider served today; any other value returns 501. The body is optional. When the team is already connected, `status` is `success` and no URL is returned. Otherwise `status` is `requires_authorization` and the response carries the URL, verification code, and poll URL for the interactive step. No token or authorization handle is returned.
+ */
+ post: operations["harness_create_provider_connect"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/auth/{provider}/poll": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Check whether a provider login has finished.
+ * @description Pass the `poll_url` from the start response. The response reports only whether login has finished. No token or authorization handle is returned. `github` is the provider served today.
+ */
+ get: operations["harness_get_provider_connect"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/auth/{provider}/connections": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List the team's connections for a provider.
+ * @description One page of connections the team holds for `{provider}`. `user_id` is the actor identifier the connection acts for, not a DigitalOcean user id. A list never includes revoked connections and never includes a token. `github` is the provider served today. Page defaults are the upstream connection service's own (20 per page, at most 100).
+ */
+ get: operations["harness_list_provider_connections"];
+ put?: never;
+ /**
+ * Create a provider connection for one actor.
+ * @description Creates the connection `{provider}` will use for `user_id`. `user_id` is the actor identifier the connection acts for, not a DigitalOcean user id. Each actor has at most one active, pending, or expired connection per provider. If `user_id` already has one, the request fails with `409`. Find that connection's id with `GET /v2/harness-runtime/auth/{provider}/connections?user_id=...`, then resume or restart it with `POST /v2/harness-runtime/auth/{provider}/connections/{connection_id}/reconnect`, which keeps its scopes. Revoked connections do not count toward the limit, and list responses omit them. If the only connection `user_id` has for `{provider}` is revoked, for example by `DELETE`, create starts it again under the same connection id, with the scopes in this request. To change a connection's scopes, delete it and then create it. A successful create returns the connection as `pending`, with an `authorization` object for the interactive step. No token is returned. `github` is the provider served today.
+ */
+ post: operations["harness_create_provider_connection"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/auth/{provider}/connections/{connection_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Read one provider connection.
+ * @description Returns one connection. Poll a pending connection with this call until `authorization` is absent. A connection that belongs to another provider than `{provider}` is 404. No token is returned.
+ */
+ get: operations["harness_get_provider_connection"];
+ put?: never;
+ post?: never;
+ /**
+ * Revoke a provider connection.
+ * @description Revokes the connection and returns it. A connection that an environment config still uses is left in place and the error names those configs. There is no force flag on this route. A connection under a different provider than `{provider}` is 404. No token is returned.
+ */
+ delete: operations["harness_delete_provider_connection"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/auth/{provider}/connections/{connection_id}/reconnect": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Start a fresh login for an existing connection.
+ * @description Resumes a pending connection's authorization, or starts a new one for an expired or revoked connection. The connection keeps its id, `user_id`, and scopes, so environments that use it keep working once it is active again. An active connection is returned unchanged. Only the member who owns the connection can reconnect it; for anyone else the response is `404`, the same as for an unknown connection. The response includes `authorization` while the interactive step is outstanding. No token is returned.
+ */
+ post: operations["harness_post_provider_connection_reconnect"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/image-messages": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List sandbox-image notices for the team.
+ * @description Returns the caller's sessions and checkpoints whose sandbox image carries a live notice. Pass `session_name` or `checkpoint_name` to look up one resource; those two parameters cannot be set together, and `page_size` / `page_token` are ignored when either is set. Without a name, the list is keyset-paginated. `type` filters the notice kind; the only documented value is `vulnerability`. Triggers are not listed here — a trigger runs on a session, so ask about that session.
+ */
+ get: operations["harness_list_image_messages"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/configs": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List active Environment Configs for the caller's team.
+ * @description Returns lightweight team-scoped config metadata without loading or returning environment-spec JSON. Soft-deleted configs are excluded.
+ */
+ get: operations["harness_list_configs"];
+ put?: never;
+ /**
+ * Create an Environment Config (environment spec + optional Insights opt-in).
+ * @description Accepts name, environment-spec YAML text, and optional Insights telemetry opt-in. Tenant secrets are declared inside the environment spec (write-only values), not as sibling request fields. Responses never echo secret values; GET/create may include credential slot metadata (name/source/provider only). Configs are immutable after create.
+ */
+ post: operations["harness_create_config"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/configs/{config_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get an active Environment Config and its environment spec.
+ * @description Returns one team-scoped Environment Config including the sanitized environment spec and redacted credential slot metadata. Secret values are never returned.
+ */
+ get: operations["harness_get_config"];
+ put?: never;
+ post?: never;
+ /**
+ * Soft-delete an Environment Config.
+ * @description Releases the active team-scoped name; the config row is retained (soft delete), so sessions created from it keep a resolvable config_id.
+ */
+ delete: operations["harness_delete_config"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/configs/{config_id}/clone": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Clone an Environment Config under a new name.
+ * @description Copies the source config's sanitized manifest to a new UUID. Source and clone are independent (no lineage). Credential bindings are never copied: if the manifest declares secret slots, supply secrets/oauth_assignments again (write-only). content_hash matches the source when the manifest is unchanged.
+ */
+ post: operations["harness_create_config_clone"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/configs/{config_id}/sessions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List the sessions created from one Environment Config.
+ * @description Enumerates the caller's team sessions whose session was created from this durable Environment Config. Keyset-paginated on an opaque cursor, newest first, same shape and status semantics as GET /v2/harness-runtime/sessions.
+ */
+ get: operations["harness_list_config_sessions"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/regions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * ListRegions returns the regions the caller's team may create sessions and agent configs in.
+ * @description Per-team catalog the UI (and other clients) render as the region picker, instead of hardcoding the list. A region is chosen by the API host you call, not by a field in the request body, so a returned `slug` tells you which regional host to target — `ric1` means `https://api-ric1.digitalocean.com`. The default region is always listed and is marked `is_default`; its resources are also reachable on the region-less host, `https://api.digitalocean.com`. Every other open region is listed only when the team holds its placement grant, so a create on a listed region's host is admitted and a region missing from this list is refused. Teams not yet on the regional routing rollout see only the default region, and their responses carry no `region` field. Legacy regions are never listed. Sorted by slug; no pagination.
+ */
+ get: operations["harness_list_regions"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * ListSessions enumerates sessions for the caller's tenant.
+ * @description Keyset-paginated on an opaque cursor. Results are scoped to the authenticated team. Destroyed and failed sessions are omitted by default (matching the Cloud Console); pass `status=SESSION_STATUS_ALL` to list every session regardless of status, or an explicit status such as `status=SESSION_STATUS_FAILED` or `status=SESSION_STATUS_DESTROYED` to list only those.
+ */
+ get: operations["harness_list_sessions"];
+ put?: never;
+ /**
+ * CreateSession provisions a sandbox and starts a Harness Runtime session.
+ * @description Returns once the session row is allocated. Sandbox boot completes asynchronously.
+ *
+ * Two mutually exclusive request forms are selected by Content-Type (same contract as
+ * harness-api `harness.swagger.json`):
+ * - YAML (`application/x-yaml`, `application/yaml`, `text/yaml`, `text/x-yaml`): the environment
+ * spec. Two environment-spec formats are accepted during the dual-format transition: the flat
+ * format (primary) and the legacy `agents.digitalocean.com/v1alpha1` envelope (deprecated). A
+ * top-level `apiVersion` key selects the legacy parser; its absence selects flat. Internally
+ * persists a durable Environment Config, then creates the session.
+ * - JSON (`application/json`): `{name, config_id}` loads the config, resolves its credentials from
+ * Secrets Manager at the version pinned when the config was created, and creates the session.
+ *
+ * The OpenAPI `requestBody` schemas the JSON form for client generation (Autorest cannot emit a
+ * multi–content-type body). The live API still accepts the YAML forms listed above.
+ *
+ * Successful responses may include `config_id` on the session. `X-Device-UUID` (if present) is
+ * persisted on the session row. Query parameters `openai_session_id` and `resume_on_topoff` apply to
+ * both forms; when both the JSON body field and `?resume_on_topoff=` are present, the query
+ * parameter wins.
+ */
+ post: operations["harness_create_session"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/policy/validate": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * ValidatePolicy checks a manifest's tool-permission policy against the agent's capabilities without creating a session.
+ * @description Stateless preflight: parses the same environment spec as CreateSession and runs the identical resolve + validate pipeline against the capability descriptor stamped on the selected template's image (resolved per-request via the sandbox, not a separate registry). Returns per-rule verdicts. Nothing is provisioned or persisted.
+ *
+ * Each rule is validated against the descriptor for the (agent, version) the template resolves to and gets a verdict: `exact`, `degraded`, `unsupported`, or `unverified`. `ok` is false when any strict rule is unsupported or unverified — i.e. CreateSession would reject the policy for that agent. An empty `spec.permissions` returns `ok: true` with no verdicts. Because it shares the create path's descriptor lookup, the verdicts match what CreateSession would compute.
+ */
+ post: operations["harness_validate_session_policy"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/sandbox/sizes": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * ListSandboxSizes returns the customer-selectable sandbox (microVM) size catalog.
+ * @description Read-only catalog the UI (and other clients) render as the size picker, instead of hardcoding the list. The set is the single source of truth shared with create-time validation and the default-size fallback, so every `slug` returned here is accepted by CreateSession as spec.sandbox.sizeSlug. Sizes are returned smallest-to-largest. Static and safe to cache; independent of team/session; no pagination.
+ */
+ get: operations["harness_list_session_sandbox_sizes"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * GetSession returns the current snapshot of a session.
+ * @description GetSession returns the current snapshot of a session.
+ */
+ get: operations["harness_get_session"];
+ put?: never;
+ post?: never;
+ /**
+ * DestroySession tears down the sandbox and marks the session DESTROYED.
+ * @description Persistent workspace contents are retained per tenant policy. A persistent workspace the session holds is saved and kept: it goes to `RELEASING` while the files are saved and then back to `AVAILABLE`. Creating a session on that workspace returns `409` until it is `AVAILABLE` again. Returns 204 No Content on success.
+ */
+ delete: operations["harness_delete_session"];
+ options?: never;
+ head?: never;
+ /**
+ * Update a session's settings.
+ * @description Updates the settings of an existing session. Changes apply to this session only; the agent
+ * config the session was created from is not modified.
+ *
+ * Each request makes one of two kinds of update, and the two can't be combined:
+ *
+ * - **Session preferences**: set `resume_on_topoff`. Applied immediately; returns `200`.
+ * - **Session settings**: set `manifest_yaml` to a partial manifest that holds only the sections
+ * to change. Applied in the background; returns `202`.
+ *
+ * An empty body (`{}`) returns `400`.
+ *
+ * ### Updatable session settings
+ *
+ * | Section | What it changes | Agent restart |
+ * | --- | --- | --- |
+ * | `tools` | The session's Action Gateway tools (`do.actions` entries). Custom MCP servers can't be changed. | No |
+ * | `env` | Environment variables (name and value). | Yes |
+ * | `env.HARNESS_INFERENCE_MODEL` | The model, for sessions that use DigitalOcean Serverless Inference. | Yes |
+ * | `env.MODEL`, `env.OPENAI_MODEL`, `env.ANTHROPIC_MODEL` | The model, for sessions that use their own OpenAI-compatible or Anthropic endpoint. | Yes |
+ * | `secrets` | Plain secrets (name and value). | Yes |
+ * | `secrets` (URL-bound) | URL-bound secrets: value, `url`, and `scheme`. | No |
+ * | `secrets` (OAuth) | The provider connection an OAuth secret uses (`actor`). | Yes |
+ * | `egress` | The hosts and IP addresses the session can reach (`allow_hosts` and `allow_ips`). | No |
+ *
+ * Sections you omit are not changed. Each section you include replaces that section in full; see
+ * `manifest_yaml` for the exact rules.
+ *
+ * ### Changing the model
+ *
+ * You change a session's model through `env`; a top-level `model` section returns `400`. The key
+ * to set depends on the model endpoint the session was created with:
+ *
+ * | Session created with | Model endpoint | `env` key that sets the model |
+ * | --- | --- | --- |
+ * | `HARNESS_INFERENCE_MODEL`, and none of the keys below | DigitalOcean Serverless Inference | `HARNESS_INFERENCE_MODEL` |
+ * | `OPENAI_BASE_URL` | Your OpenAI-compatible endpoint | `MODEL`, or `OPENAI_MODEL` |
+ * | `ANTHROPIC_BASE_URL`, or an `ANTHROPIC_API_KEY` secret | Your Anthropic endpoint, or the Anthropic API | `ANTHROPIC_MODEL`, or `MODEL` |
+ *
+ * A session keeps the model endpoint it was created with. Its provider and base URL can't be
+ * changed (`422`). The provider API key (`OPENAI_API_KEY` or `ANTHROPIC_API_KEY`) can be rotated
+ * but not added, removed, or moved to another URL or scheme (`422`). See `manifest_yaml` for the
+ * rules.
+ *
+ * The following can't be changed on an existing session: custom MCP servers (`422`), the egress
+ * VPC (`vpc_uuid` and `subnet_uuid`, `422`), platform-managed model keys, and `permissions`
+ * (`400`). To use a different custom MCP server or VPC, create a new session.
+ *
+ * ### Switching an OAuth connection
+ *
+ * An OAuth secret that names a provider connection with `actor` can move to another connection of
+ * the same provider while the session runs. `actor` is the connection's `user_id`; see
+ * [`GET /v2/harness-runtime/auth/{provider}/connections`](#operation/harness_list_provider_connections).
+ * Send the secret with `source`, `provider`, and the new `actor`, and keep every other secret as
+ * `{}`. See `manifest_yaml` for an example.
+ *
+ * The platform first checks that you can use the new connection: it must be active, and either
+ * yours or shared with your team (`400` otherwise). Switching back to the connection the agent
+ * config names skips this check, so any team member can do it. The platform then gives the session
+ * that connection's token and restarts the agent, so the next `git` operation uses the new
+ * connection. Sending the connection the secret already uses returns `200` with `outcome` set to
+ * `UNCHANGED`.
+ *
+ * The switch applies to this session only:
+ *
+ * - New sessions from the same agent config still start on the connection the config names.
+ * - A rollback, or a fork from a checkpoint, uses the connection the session had when the
+ * checkpoint was taken.
+ * - The switch changes only the token in the session. Action Gateway tools (`do.actions` entries)
+ * keep using the connection Action Gateway picks for the session, so `git` and those tools can
+ * act as different accounts.
+ * - A token the agent already read stays valid with the provider until the old connection is
+ * revoked.
+ *
+ * Switching OAuth connections must be enabled for your team (`403` otherwise). The following
+ * still require a new session (`422`): adding or removing an OAuth secret, changing its provider,
+ * and switching an OAuth secret that was created without `actor`.
+ *
+ * ### URL-bound secrets and egress
+ *
+ * URL-bound secret and `egress` changes take effect on the session's next outbound connection.
+ * An update that changes only URL-bound secrets and `egress` doesn't restart the agent and ends in
+ * `APPLIED`. Connections that are already open stay open, including connections to a host that
+ * the update removed.
+ *
+ * These updates have the following additional requirements:
+ *
+ * - URL-bound secret and egress updates must be enabled for your team. Otherwise, the request
+ * returns `403`.
+ * - The session must have been created with a URL-bound secret or an egress allowlist. A session
+ * created with unrestricted egress and no URL-bound secrets can't gain either one: the update
+ * ends in `FAILED` with `error` set to `requires_new_session`.
+ * - Changing `egress`, or adding a URL-bound secret for a host the session can't reach yet,
+ * requires that the session's agent runtime supports egress updates. Sessions created before
+ * egress updates were available don't support them (`409`).
+ *
+ * See `manifest_yaml` for the format of each change.
+ *
+ * ### Tracking an update
+ *
+ * 1. A request that changes the session settings returns `202` with `outcome` set to `ACCEPTED`.
+ * The session status becomes `SESSION_STATUS_UPDATING`.
+ * 2. Poll [`GET /v2/harness-runtime/sessions/{session_id}`](#operation/harness_get_session)
+ * every 2 to 5 seconds until the status is `SESSION_STATUS_READY`, or `SESSION_STATUS_PAUSED`
+ * if the session was paused when you sent the update. The session returns to that status
+ * whether the update succeeded or failed.
+ * 3. Read `session.update.state`:
+ * - `APPLIED`: the update is live.
+ * - `APPLIED_RESTARTED`: the update is live and the agent was restarted to apply it.
+ * - `FAILED`: the update did not take effect. `session.update.detail` explains why, and
+ * `session.update.reverted` is `true` if the previous settings were restored.
+ *
+ * Tool, URL-bound secret, and `egress` updates usually finish within a few seconds. Updates to
+ * `env` (including the model) or plain secrets, and OAuth connection switches, restart the agent
+ * and can take up to about two minutes.
+ *
+ * If the request matches the session's current settings, it returns `200` with `outcome` set to
+ * `UNCHANGED` and nothing is applied.
+ *
+ * ### Versioning
+ *
+ * Each accepted update is recorded with its own `update_id` and the manifest hashes before and
+ * after the change (`session.update.previous_hash` and `session.update.manifest_hash`). When an
+ * update fails, the session is rolled back to its previous settings and `session.update.reverted`
+ * is `true`. Once a session's settings differ from its agent config, the session reports
+ * `config_drifted: true`, `config_diff` lists the changed entries, and `manifest` holds the
+ * settings the session now runs with (without secret values).
+ *
+ * ### Requirements
+ *
+ * - The session status must be `SESSION_STATUS_READY`, `SESSION_STATUS_DETACHED`, or
+ * `SESSION_STATUS_PAUSED`. A paused session is resumed to apply the update and paused again
+ * afterwards, unless it was paused for zero balance. Any other status returns `409`, including
+ * `SESSION_STATUS_PROVISIONING`, `SESSION_STATUS_UPDATING`, a session paused for zero balance,
+ * and a destroyed or failed session. A locked session returns `423`.
+ * - The session must be idle: no agent turn running and no approval pending (`409`).
+ * - Session settings updates must be enabled for your team.
+ * - Not every agent runtime supports every section. An unsupported change returns `409`.
+ */
+ patch: operations["harness_update_session"];
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/checkpoints": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * ListCheckpoints enumerates a session's checkpoints, newest first.
+ * @description Keyset-paginated on an opaque cursor, like ListSessions.
+ */
+ get: operations["harness_list_session_checkpoints"];
+ put?: never;
+ /**
+ * CreateCheckpoint captures the session's live sandbox state as a durable checkpoint.
+ * @description Synchronous: blocks until the capture reaches READY and returns the terminal Checkpoint — clients never see PENDING on this endpoint and need no poll loop. The checkpoint binds the machine-state capture to the event-log cursor at the cut, so it can later seed forks (POST .../fork) and rollback. Checkpoints are taken between turns; a session with an active turn in flight returns 409. A checkpoint captures machine state only: the files of a persistent workspace the session has are not in it, and are saved by the workspace itself.
+ */
+ post: operations["harness_create_session_checkpoint"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/checkpoints/{checkpoint_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * GetCheckpoint returns the current snapshot of a checkpoint.
+ * @description GetCheckpoint returns the current snapshot of a checkpoint.
+ */
+ get: operations["harness_get_session_checkpoint"];
+ put?: never;
+ post?: never;
+ /**
+ * DeleteCheckpoint removes a checkpoint and its underlying machine-state capture.
+ * @description Idempotent: deleting an already-gone checkpoint still returns 200. Removes the DB row and the substrate checkpoint.
+ */
+ delete: operations["harness_delete_session_checkpoint"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/checkpoints/{checkpoint_id}/image-messages": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Read sandbox-image notices for one checkpoint.
+ * @description Returns the live notices on the checkpoint's sandbox image. The checkpoint must belong to `{session_id}`. `type` filters the notice kind; the only documented value is `vulnerability`.
+ */
+ get: operations["harness_get_checkpoint_image_messages"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/checkpoints/{checkpoint_id}/rollback": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * RollbackToCheckpoint rewinds a session to a checkpoint.
+ * @description In-place restore: boots a fresh sandbox from the checkpoint and atomically swaps the session's sandbox pointer to it, so the session keeps its same session_id; the old sandbox is then torn down.
+ */
+ post: operations["harness_revert_session_checkpoint"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/fork": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * ForkSession creates child sessions from a checkpoint of this session.
+ * @description Each child boots a fresh sandbox from the checkpoint's machine-state capture and is drivable exactly like any other session (input, HITL), with parent_session_id and fork_id set for lineage. When from_checkpoint_id is omitted, an implicit checkpoint of the session "now" is captured first and the children fork from that. All-or-nothing: on failure nothing is left running.
+ */
+ post: operations["harness_create_session_fork"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/hitl/{request_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * ResolveHITL records the user's decision on a pending HITL request.
+ * @description harness-api forwards the decision into the owning microVM via the inbound runtime.v1.OHR.ResolveHITL RPC (dialed through the guest-fronting proxy), which unblocks the gated agent action. The resolution is also echoed to all attached clients as a HITLResolved event on StreamSession. Returns 204 No Content on success.
+ */
+ post: operations["harness_post_session_hitl"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/cancel": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Cancel the agent turn in flight.
+ * @description Stops the turn `POST /input` started. Pass `run_id` from that response to name the turn; an empty body cancels whichever turn is in flight. `outcome` is `acked` when the agent accepted the interrupt, `no_turn` when nothing addressable was running, and `unsupported` when this agent cannot be interrupted. A session that cannot take a cancel at all — paused, still starting, being destroyed, or with no active run — answers 409 instead of an `outcome`, so treat that as "nothing to cancel" rather than a fault. A team that is not enabled for turn cancel receives 403. A cancel starts nothing and is not blocked by the prepayment gate.
+ */
+ post: operations["harness_cancel_session_turn"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/image-messages": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Read sandbox-image notices for one session.
+ * @description Returns the live notices on the session's sandbox image. `type` filters the notice kind; the only documented value is `vulnerability`. A session owned by another team returns 404, the same as an unknown session.
+ */
+ get: operations["harness_get_session_image_messages"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/input": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * SendInput delivers a user chat message into the session.
+ * @description The agent observes it on its next turn and emits subsequent events via StreamSession. The input is forwarded to the owning microVM's OHR inbound surface, which attributes it to a run and returns the run id.
+ */
+ post: operations["harness_create_session_input"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/pause": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * PauseSession freezes the session's microVM sandbox.
+ * @description Supported on microvm-substrate sessions only; dewdrop/docker sessions return 501 Not Implemented. Paused sessions count against quota. Clients learn state via GetSession/ListSessions; no live session.updated event is emitted.
+ */
+ post: operations["harness_post_session_pause"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/resume": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * ResumeSession explicitly thaws a PAUSED session's microVM sandbox.
+ * @description Only valid for microvm-substrate sessions; dewdrop/docker sessions return 501 Not Implemented. Implicit resume also occurs when SendInput or ResolveHITL is called on a paused session. Returns synchronously once the sandbox is ready.
+ */
+ post: operations["harness_post_session_resume"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/sandbox/exec": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * ExecInSandbox runs a one-shot command inside the session's sandbox.
+ * @description Runs `argv` directly in the guest (no shell). The default response is buffered JSON.
+ * Stdout and stderr are capped at 1 MiB each; truncation is indicated via response headers when present.
+ * A non-zero exit code is still HTTP 200.
+ * With Accept `text/event-stream` or `stream=1`, the response is an event stream of stdout, stderr, and exit.
+ * Set `keep_stdin_open` to leave the process stdin open. The stream then starts with `event: started` and an `exec_id`.
+ * Later bytes are POST `/v2/harness-runtime/sessions/{session_id}/sandbox/exec/{exec_id}/stdin`.
+ * `keep_stdin_open` without the event stream returns 400.
+ * If the session cannot accept interactive stdin, the call returns 409 before any event-stream header.
+ */
+ post: operations["harness_post_session_sandbox_exec"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/sandbox/exec/{exec_id}/stdin": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Write one chunk of stdin to a command started with keep_stdin_open.
+ * @description `offset` is required and is the count of stdin bytes already accepted.
+ * An equal offset appends. A lower offset retries and trims the overlap. A higher offset returns 409.
+ * `data` is base64. `eof` closes stdin. A write needs `data`, `eof`, or both. Each write is at most 1 MiB.
+ * The exec id comes from the `started` event on the exec stream.
+ * An unknown or finished exec returns 404.
+ * A closed stdin, an offset gap, or a session that cannot accept interactive stdin returns 409.
+ */
+ post: operations["harness_post_session_sandbox_exec_stdin"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/workspace/download": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Download a file or tar archive from the session's sandbox workspace.
+ * @description Streams the workspace payload back as `application/octet-stream` using chunked transfer encoding, followed by a fixed integrity footer.
+ *
+ * Response body layout: `` + ``, where the footer is exactly 73 bytes: `DOWSSHA1` (8 bytes) + 64-char lowercase SHA-256 hex + `\n`. The client MUST strip the trailing 73 bytes before saving, verify SHA-256(payload) equals the footer digest, and treat a tail that does not match this shape (magic + 64 hex + newline) as a failed (truncated/corrupt) transfer.
+ *
+ * Other metadata:
+ * - `X-Workspace-Is-Archive: true` when the payload is a tar archive.
+ * - `X-Workspace-Size-Bytes` is a progress hint (not Content-Length) and excludes the footer.
+ * - The `X-Content-Sha256` trailer also carries the digest but is best-effort: edge proxies may strip HTTP trailers, so the body footer is authoritative.
+ *
+ * Concurrent transfers (upload + download) are capped server-side; over the cap the request blocks and may return 503.
+ */
+ get: operations["harness_get_session_workspace_download"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/workspace/transfers": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Start a staged (large-file) workspace transfer.
+ * @description Creates an asynchronous, object-storage-backed transfer for payloads larger than the streaming path supports (> ~50 MiB). Bulk bytes never traverse harness-api: the client PUTs/GETs presigned DO Spaces URLs directly.
+ *
+ * Set `direction` to `upload` or `download`.
+ * - `upload`: responds 201 with `transfer_id` + `part_size`; the client then requests per-part presigned PUT URLs, uploads them to Spaces, and calls `commit`.
+ * - `download`: responds 202 with `transfer_id`; the client polls GET until `completed` and then fetches `download_url` from Spaces.
+ *
+ * Upload, download, and cancel are live.
+ */
+ post: operations["harness_create_session_workspace_transfer"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/workspace/transfers/{transfer_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get the status of a staged workspace transfer.
+ * @description Returns the current transfer state. For a completed download the response also carries a freshly minted presigned GET `download_url` (its TTL starts at poll time) and the payload `sha256` for client-side verification.
+ */
+ get: operations["harness_get_session_workspace_transfer"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/workspace/transfers/{transfer_id}/cancel": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Cancel a staged workspace transfer.
+ * @description Aborts an in-flight transfer. Idempotent: cancelling an already-terminal transfer returns `aborted: false` with the current status. The request body is optional.
+ */
+ post: operations["harness_cancel_session_workspace_transfer"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/workspace/transfers/{transfer_id}/commit": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Finalize a staged upload.
+ * @description Upload only. Call once, after all parts have been uploaded. Completes the multipart upload and starts the asynchronous import into the workspace. Responds 202; poll the transfer until `completed` or `failed`.
+ */
+ post: operations["harness_commit_session_workspace_transfer"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/workspace/transfers/{transfer_id}/part-upload-urls": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Mint presigned PUT URLs for one or more multipart upload parts.
+ * @description Upload only. Pass one or more 1-based `part_numbers`; the response returns a presigned `upload_url` per part (all sharing one `expires_at`), so a client can drive parallel part uploads without a round trip per part. PUT each part's bytes directly to its URL (bypassing harness-api). If URLs expire before the PUT, request them again.
+ */
+ post: operations["harness_create_session_workspace_part_upload_urls"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/workspace/upload": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Upload a file or tar archive into the session's sandbox workspace.
+ * @description Streams the raw request body to a path inside the sandbox workspace. Concurrent transfers (upload + download) are capped server-side; over the cap the request blocks and may return 503. The optional `X-Content-Sha256` request header carries a hex digest the guest verifies after the full payload is written.
+ */
+ post: operations["harness_create_session_workspace_upload"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/events": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * StreamSessionEvents opens the session's Server-Sent Events feed.
+ * @description Opens a `text/event-stream` of the session's canonical events, served by the MARS data plane (OHP).
+ * Each frame is `event: ` plus a `data:` line holding a JSON event envelope; comment lines
+ * (`: keepalive`) arrive about every 15s and must be ignored. Decode every `data:` with one envelope
+ * parser and dispatch on the envelope's `type`. Every stream opens with a `stream.state` control frame
+ * (its `data` is a `stream_state`).
+ *
+ * Delivery is at-least-once: clients MUST de-duplicate and order by `event_id` (a ULID), never by
+ * `seq`. The same path serves two modes:
+ * - live attach (default): recent context, then an open stream that stays live until the client
+ * disconnects. Pass `Last-Event-ID` (or `cursor`) to resume strictly after the last event the
+ * client already rendered, suppressing the last-N context floor.
+ * - finite replay (`replay_only=true`): writes a bounded slice of the stored transcript and closes.
+ * This is what `doctl agents logs` uses; paginate it with `replay_from`.
+ *
+ * OHP serves recent history only (bounded by Kafka retention and an event window); it is not an
+ * archive. OHP's own errors (404/429/500/503) use the DO-standard JSON `{id, message, request_id}`
+ * envelope (cthulhu#179797 / MARSOHS-2065); the 401 comes from the edge.
+ */
+ get: operations["harness_get_session_events"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/port-forward/{port}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * PortForwardSession opens a WebSocket tunnel to a guest TCP port.
+ * @description Upgrades the request to a WebSocket and bridges it to one TCP connection on the session sandbox's
+ * guest `port`. Binary frames carry the opaque byte stream in both directions; the server closes with
+ * a descriptive WebSocket close code when the tunnel ends. This is the raw TCP tunnel; browser clients
+ * reaching the in-guest OpenHands Agent Server use the ingress URL
+ * (`GET /v2/harness-runtime/sessions/{session_id}/ingress`), which has replaced this bridge for them.
+ *
+ * WebSocket is not expressible in OpenAPI; this documents the GET that initiates the upgrade handshake
+ * (HTTP 101 Switching Protocols). The handler dials the guest before upgrading, so a PAUSED session is
+ * woken and served rather than rejected. `port` must be between 1024 and 65535. A request without the
+ * WebSocket upgrade headers is answered 400 by the handshake layer.
+ */
+ get: operations["harness_get_session_port_forward"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/sessions/{session_id}/ingress": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * GetIngressURL returns the public HTTPS URL of the session's OpenHands Agent Server.
+ * @description Publishes the URL on first call and returns it. Idempotent while the session runs: the same URL is
+ * returned until the session is paused, locked or rolled back, after which the next call returns a new
+ * hostname (pause and lock revoke the URL; rollback moves the session to a new sandbox, so re-fetch
+ * after resume, unlock or rollback). The URL fronts guest port 8000 (the OpenHands Agent Server,
+ * HTTP + WebSocket) and replaces the port-forward bridge for browser clients. Requests to the URL carry
+ * the caller's DO token as a Bearer header. Poll until `state` is INGRESS_URL_STATE_READY; there is no
+ * failed state. Only OpenHands sessions support ingress, and it is gated per team.
+ */
+ get: operations["harness_get_session_ingress"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/templates": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * ListTeamTemplates returns the caller's team custom templates.
+ * @description team_id is stamped from the authenticated principal; never accepted from the client.
+ */
+ get: operations["harness_list_templates"];
+ put?: never;
+ /**
+ * CreateTemplate creates a team custom template and kicks a build.
+ * @description Creates a team-owned template from a customer OCI ref rebased onto a base template. team_id is stamped from the authenticated principal.
+ */
+ post: operations["harness_create_template"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/templates/{template_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * GetTemplate returns a team custom template by public id.
+ * @description GetTemplate returns a team custom template by public id.
+ */
+ get: operations["harness_get_template"];
+ /**
+ * UpdateTemplate updates a team template's source and kicks a new build.
+ * @description UpdateTemplate updates a team template's source and kicks a new build.
+ */
+ put: operations["harness_update_template"];
+ post?: never;
+ /**
+ * DeleteTemplate deletes a team custom template.
+ * @description Global templates cannot be deleted via this API.
+ */
+ delete: operations["harness_delete_template"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/templates/{template_id}/builds": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * ListTemplateBuilds returns build history for a template.
+ * @description ListTemplateBuilds returns build history for a template.
+ */
+ get: operations["harness_list_template_builds"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/templates/{template_id}/builds/{build_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * GetTemplateBuild returns a single template build.
+ * @description GetTemplateBuild returns a single template build.
+ */
+ get: operations["harness_get_template_build"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/triggers": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * ListTriggers enumerates the calling team's triggers.
+ * @description Keyset-paginated on an opaque cursor. Excludes soft-deleted triggers. Scoped to the authenticated team.
+ */
+ get: operations["harness_list_triggers"];
+ put?: never;
+ /**
+ * CreateTrigger creates a webhook or cron trigger.
+ * @description Validation is synchronous, so a mistake is a 400/409 at creation, not a silent miss at the first
+ * fire. Exactly one of `webhook` / `cron` must be present and match `kind`. kind=cron forbids a
+ * `webhook` block and requires a parseable `cron.cron_expr` and a valid IANA `cron.timezone`.
+ * session_mode=fresh requires `session_template` (a well-formed agents.yaml Agent manifest) and
+ * forbids `bound_session_id`; session_mode=reuse requires `bound_session_id` (an existing team-owned
+ * session) and forbids `session_template`. `output.mode` selects the destination block (email/slack),
+ * which is stored encrypted. `name` must be unique per team among non-deleted triggers. Triggers do
+ * not support persistent workspaces: a `session_template` that names `workspace_id`, and a
+ * `bound_session_id` whose session has a workspace, are both refused.
+ *
+ * For webhook triggers the response includes `webhook_secret` exactly ONCE - it is never returned
+ * again. Cron triggers return no secret and carry a computed `trigger.cron.next_run_at`. The team and
+ * user identity are taken from the authenticated principal, never the body.
+ */
+ post: operations["harness_create_trigger"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/triggers/by-session/{session_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get the newest trigger bound to a session, or the trigger of its newest execution.
+ * @description Returns the newest trigger whose bound session is this one. Deleted triggers are skipped. When none is bound, returns the trigger of the newest execution for this session, again skipping deleted triggers. A session can be bound to more than one trigger; only the newest is returned. 404 when neither lookup matches.
+ */
+ get: operations["harness_get_trigger_by_session"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/triggers/reusable-sessions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * ListReusableSessions lists the team's PAUSED sessions for the reuse picker.
+ * @description Returns the team's sessions in status PAUSED, for binding a session_mode=reuse trigger. The item shape is the hosted-agents Session, so `agent_kind` and `status` use the AGENT_KIND_* / SESSION_STATUS_* spelling; `status` is always SESSION_STATUS_PAUSED here.
+ */
+ get: operations["harness_list_reusable_sessions"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/triggers/{trigger_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * GetTrigger returns a single trigger by id.
+ * @description GetTrigger returns a single trigger by id. Write-only fields (webhook secret, output destination, session_template env values) are never included.
+ */
+ get: operations["harness_get_trigger"];
+ put?: never;
+ post?: never;
+ /**
+ * DeleteTrigger soft-deletes a trigger.
+ * @description Marks the trigger deleted, fails any pending executions, and purges the webhook secret / cron schedule. A fresh trigger owns no session; a reuse trigger only UNBINDS - it never destroys the customer's session. Execution history and by-session lookups continue to resolve to the deleted row. Returns 204 No Content on success.
+ */
+ delete: operations["harness_delete_trigger"];
+ options?: never;
+ head?: never;
+ /**
+ * UpdateTrigger updates, pauses, or re-enables a trigger.
+ * @description Partial update: only the supplied fields change. `kind` and `webhook.provider` are immutable
+ * (409 on change). Mutable: `name` (409 on duplicate), `status` (active<->paused), `prompt_template`,
+ * `output`, `session_template` (fresh), `bound_session_id` (reuse), `cron.cron_expr` /
+ * `cron.timezone` (recomputes next_run_at). Re-enabling never produces a catch-up run. PATCHing
+ * session_template is a full replacement, so every spec.secrets slot value the new manifest declares
+ * must be resupplied (secret values are never echoed back), or the request is a 400.
+ */
+ patch: operations["harness_update_trigger"];
+ trace?: never;
+ };
+ "/v2/harness-runtime/triggers/{trigger_id}/executions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * ListTriggerExecutions returns a trigger's execution history.
+ * @description Keyset-paginated. The large `payload` field is omitted from list items; fetch a single execution to read it.
+ */
+ get: operations["harness_list_trigger_executions"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/triggers/{trigger_id}/executions/{execution_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * GetTriggerExecution returns a single execution, including its payload.
+ * @description Returns the full execution row, including the `payload`, `output_text`, and `output_truncated` fields omitted from list items.
+ */
+ get: operations["harness_get_trigger_execution"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/triggers/{trigger_id}/executions/{execution_id}/cancel": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * CancelExecution ends a running execution and frees the trigger's in-flight slot.
+ * @description Fails the execution and frees the trigger's in-flight slot or session lock. A fresh-mode session is destroyed. In reuse mode the agent's current turn is cancelled first, and the execution is ended only once the agent confirms the turn is over; until then it stays running and keeps its lock (see 409 and 503). The failure reason names the cancelling user. A non-running execution is a no-op that still returns 200.
+ */
+ post: operations["harness_cancel_trigger_execution"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/triggers/{trigger_id}/rotate-secret": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * RotateTriggerSecret issues a new webhook secret.
+ * @description Webhook triggers only (409 for cron). Issues a new secret (shown once) and moves the old value to
+ * the previous slot, where it keeps verifying deliveries until previous_secret_expires_at. Default
+ * grace is 5 minutes when grace_period_seconds is omitted, so deliveries already in flight (signed
+ * with the old value) still succeed while the customer updates their external system. After that
+ * instant the old value is refused with 401. Pass grace_period_seconds=0 to retire the old secret on
+ * this call (breach response), or a positive value (up to the server max, default 1 hour) for a custom
+ * window; above the max is 400.
+ */
+ post: operations["harness_post_trigger_rotate_secret"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/triggers/{trigger_id}/webhook": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * ReceiveTriggerWebhook accepts a signed delivery from an external system.
+ * @description The one public, un-team-authenticated endpoint. There is NO DO bearer token: the caller is the
+ * customer's external system. Authentication is the per-trigger HMAC secret, verified on every
+ * delivery; edge rate-limiting is mandatory.
+ *
+ * The request body is the provider's RAW body, forwarded verbatim (the HMAC is computed over the exact
+ * bytes received); Content-Type is provider-defined and passed through. The signature header depends on
+ * the trigger's provider:
+ * - github: `X-Hub-Signature-256: sha256=` (HMAC-SHA256 of the raw body)
+ * - gitlab: `X-Gitlab-Token: ` (plaintext token equality; GitLab does not sign)
+ * - custom: `X-DigitalOcean-Signature: t=,v1=` (HMAC-SHA256 of `{unix}.{raw body}`;
+ * `do-signature` is also accepted as a transitional alias)
+ *
+ * On success (including a provider retry that dedupes to an existing firing) it returns 202 with the
+ * execution_id. A delivery to a paused trigger returns 202 with no body and queues nothing (deliberately
+ * not 409, so providers do not auto-disable the webhook after repeated non-2xx).
+ *
+ * Both `/v2/agents/triggers/{trigger_id}/webhook` and
+ * `/v2/harness-runtime/triggers/{trigger_id}/webhook` are accepted and keep working
+ * indefinitely. Paste the `webhook_url` returned on the trigger into the external system
+ * unchanged.
+ */
+ post: operations["harness_post_trigger_webhook"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/webhook-providers": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * ListWebhookProviders lists supported webhook providers for the create-trigger UI.
+ * @description A static, code-defined registry (not a database table), webhook-only. Cron triggers have no provider and never call this. Used to populate the provider dropdown with display name, docs link, paste hint, and the signature scheme.
+ */
+ get: operations["harness_list_webhook_providers"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/workspaces": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List the team's persistent workspaces.
+ * @description Lists the calling team's persistent workspaces, optionally only those in one state. A page can hold fewer results than page_size, so keep paging until next_page_token is empty.
+ */
+ get: operations["harness_list_workspaces"];
+ put?: never;
+ /**
+ * Create a persistent workspace.
+ * @description Creates a persistent workspace with a fixed size limit. A workspace is a set of files with its own ID that is mounted at `/workspace` in the session it is attached to, and is kept when that session is removed. Attach it to a session by passing `workspace_id` when you create the session from an Environment Config. A new workspace returns `201`. A retry with the same `Idempotency-Key` and body within 24 hours returns the existing workspace with `200`. Persistent workspaces are in public preview, free during public preview, and enabled per team; for a team without access this returns `403`.
+ */
+ post: operations["harness_create_workspace"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/harness-runtime/workspaces/{workspace_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get a persistent workspace.
+ * @description Returns one persistent workspace by its ID, including its state and when its files were last saved. Use it to wait for a workspace to return to `AVAILABLE` after the session that held it was removed.
+ */
+ get: operations["harness_get_workspace"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete a persistent workspace.
+ * @description Permanently deletes a persistent workspace and its files. Only a workspace that is `AVAILABLE` or `FAILED` can be deleted; remove the session that holds it first. Workspaces are never deleted automatically.
+ */
+ delete: operations["harness_delete_workspace"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Apps
+ * @description List all apps on your account. Information about the current active deployment as well as any in progress ones will also be included for each app.
+ */
+ get: operations["apps_list"];
+ put?: never;
+ /**
+ * Create a New App
+ * @description Create a new app by submitting an app specification. For documentation on app specifications (`AppSpec` objects), please refer to [the product documentation](https://docs.digitalocean.com/products/app-platform/reference/app-spec/).
+ */
+ post: operations["apps_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing App
+ * @description Retrieve details about an existing app by either its ID or name. To retrieve an app by its name, do not include an ID in the request path. Information about the current active deployment as well as any in progress ones will also be included in the response.
+ */
+ get: operations["apps_get"];
+ /**
+ * Update an App
+ * @description Update an existing app by submitting a new app specification. For documentation on app specifications (`AppSpec` objects), please refer to [the product documentation](https://docs.digitalocean.com/products/app-platform/reference/app-spec/).
+ */
+ put: operations["apps_update"];
+ post?: never;
+ /**
+ * Delete an App
+ * @description Delete an existing app. Once deleted, all active deployments will be permanently shut down and the app deleted. If needed, be sure to back up your app specification so that you may re-create it at a later time.
+ */
+ delete: operations["apps_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/restart": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Restart an App
+ * @description Perform a rolling restart of all or specific components in an app.
+ */
+ post: operations["apps_restart"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/components/{component_name}/logs": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Active Deployment Logs
+ * @description Retrieve the logs of the active deployment if one exists. The response will include links to either real-time logs of an in-progress or active deployment or archived logs of a past deployment. Note log_type=BUILD logs will return logs associated with the current active deployment (being served). To view build logs associated with in-progress build, the query must explicitly reference the deployment id.
+ */
+ get: operations["apps_get_logs_active_deployment"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/components/{component_name}/exec": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Exec URL
+ * @description Returns a websocket URL that allows sending/receiving console input and output to a component of the active deployment if one exists.
+ */
+ get: operations["apps_get_exec_active_deployment"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/instances": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve App Instances
+ * @description Retrieve the list of running instances for a given application, including instance names and component types. Please note that these instances are ephemeral and may change over time. It is recommended not to make persistent changes or develop scripts that rely on their persistence.
+ */
+ get: operations["apps_get_instances"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/deployments": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List App Deployments
+ * @description List all deployments of an app.
+ */
+ get: operations["apps_list_deployments"];
+ put?: never;
+ /**
+ * Create an App Deployment
+ * @description Creating an app deployment will pull the latest changes from your repository and schedule a new deployment for your app.
+ */
+ post: operations["apps_create_deployment"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/deployments/{deployment_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an App Deployment
+ * @description Retrieve information about an app deployment.
+ */
+ get: operations["apps_get_deployment"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/deployments/{deployment_id}/cancel": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Cancel a Deployment
+ * @description Immediately cancel an in-progress deployment.
+ */
+ post: operations["apps_cancel_deployment"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/deployments/{deployment_id}/components/{component_name}/logs": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Deployment Logs
+ * @description Retrieve the logs of a past, in-progress, or active deployment. The response will include links to either real-time logs of an in-progress or active deployment or archived logs of a past deployment.
+ */
+ get: operations["apps_get_logs"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/deployments/{deployment_id}/logs": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Aggregate Deployment Logs
+ * @description Retrieve the logs of a past, in-progress, or active deployment. If a component name is specified, the logs will be limited to only that component. The response will include links to either real-time logs of an in-progress or active deployment or archived logs of a past deployment.
+ */
+ get: operations["apps_get_logs_aggregate"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/deployments/{deployment_id}/components/{component_name}/exec": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Exec URL for Deployment
+ * @description Returns a websocket URL that allows sending/receiving console input and output to a component of the specified deployment if one exists. Optionally, the instance_name parameter can be provided to retrieve the exec URL for a specific instance. Note that instances are ephemeral; therefore, we recommended to avoid making persistent changes or such scripting around them.
+ */
+ get: operations["apps_get_exec"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/logs": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Active Deployment Aggregate Logs
+ * @description Retrieve the logs of the active deployment if one exists. The response will include links to either real-time logs of an in-progress or active deployment or archived logs of a past deployment. Note log_type=BUILD logs will return logs associated with the current active deployment (being served). To view build logs associated with in-progress build, the query must explicitly reference the deployment id.
+ */
+ get: operations["apps_get_logs_active_deployment_aggregate"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/job-invocations": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Job Invocations
+ * @description List all job invocations for an app.
+ */
+ get: operations["apps_list_job_invocations"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/job-invocations/{job_invocation_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Job Invocations
+ * @description Get a specific job invocation for an app.
+ */
+ get: operations["apps_get_job_invocation"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/job-invocations/{job_invocation_id}/cancel": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Cancel Job Invocation
+ * @description Cancel a specific job invocation for an app.
+ */
+ post: operations["apps_cancel_job_invocation"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/jobs/{job_name}/invocations/{job_invocation_id}/logs": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Job Invocation Logs
+ * @description Retrieve the logs of a past, in-progress, or active deployment. If a component name is specified, the logs will be limited to only that component. If deployment is omitted the active deployment will be selected (if available). The response will include links to either real-time logs of an in-progress or active deployment or archived logs of a past deployment.
+ */
+ get: operations["apps_get_job_invocation_logs"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/events": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List App Events
+ * @description List all events for an app, including deployments and autoscaling events.
+ */
+ get: operations["apps_list_events"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/events/{event_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get an Event
+ * @description Get a single event for an app.
+ */
+ get: operations["apps_get_event"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/events/{event_id}/cancel": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Cancel an Event
+ * @description Cancel an in-progress autoscaling event.
+ */
+ post: operations["apps_cancel_event"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/events/{event_id}/logs": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Event Logs
+ * @description Retrieve the logs of an autoscaling event for an app.
+ */
+ get: operations["apps_get_event_logs"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/tiers/instance_sizes": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Instance Sizes
+ * @description List all instance sizes for `service`, `worker`, and `job` components.
+ */
+ get: operations["apps_list_instanceSizes"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/tiers/instance_sizes/{slug}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Instance Size
+ * @description Retrieve information about a specific instance size for `service`, `worker`, and `job` components.
+ */
+ get: operations["apps_get_instanceSize"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/regions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List App Regions
+ * @description List all regions supported by App Platform.
+ */
+ get: operations["apps_list_regions"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/propose": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Propose an App Spec
+ * @description To propose and validate a spec for a new or existing app, send a POST request to the `/v2/apps/propose` endpoint. The request returns some information about the proposed app, including app cost and upgrade cost. If an existing app ID is specified, the app spec is treated as a proposed update to the existing app.
+ */
+ post: operations["apps_validate_appSpec"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/alerts": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List all app alerts
+ * @description List alerts associated to the app and any components. This includes configuration information about the alerts including emails, slack webhooks, and triggering events or conditions.
+ */
+ get: operations["apps_list_alerts"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/alerts/{alert_id}/destinations": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Update destinations for alerts
+ * @description Updates the emails and slack webhook destinations for app alerts. Emails must be associated to a user with access to the app.
+ */
+ post: operations["apps_assign_alertDestinations"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/rollback": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Rollback App
+ * @description Rollback an app to a previous deployment. A new deployment will be created to perform the rollback.
+ * The app will be pinned to the rollback deployment preventing any new deployments from being created,
+ * either manually or through Auto Deploy on Push webhooks. To resume deployments, the rollback must be
+ * either committed or reverted.
+ *
+ * It is recommended to use the Validate App Rollback endpoint to double check if the rollback is
+ * valid and if there are any warnings.
+ */
+ post: operations["apps_create_rollback"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/rollback/validate": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Validate App Rollback
+ * @description Check whether an app can be rolled back to a specific deployment. This endpoint can also be used
+ * to check if there are any warnings or validation conditions that will cause the rollback to proceed
+ * under unideal circumstances. For example, if a component must be rebuilt as part of the rollback
+ * causing it to take longer than usual.
+ */
+ post: operations["apps_validate_rollback"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/rollback/commit": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Commit App Rollback
+ * @description Commit an app rollback. This action permanently applies the rollback and unpins the app to resume new deployments.
+ */
+ post: operations["apps_commit_rollback"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/rollback/revert": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Revert App Rollback
+ * @description Revert an app rollback. This action reverts the active rollback by creating a new deployment from the
+ * latest app spec prior to the rollback and unpins the app to resume new deployments.
+ */
+ post: operations["apps_revert_rollback"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/metrics/bandwidth_daily": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve App Daily Bandwidth Metrics
+ * @description Retrieve daily bandwidth usage metrics for a single app.
+ */
+ get: operations["apps_get_metrics_bandwidth_daily"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/metrics/bandwidth_daily": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Retrieve Multiple Apps' Daily Bandwidth Metrics
+ * @description Retrieve daily bandwidth usage metrics for multiple apps.
+ */
+ post: operations["apps_list_metrics_bandwidth_daily"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/apps/{app_id}/health": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve App Health
+ * @description Retrieve information like health status, cpu and memory utilization of app components.
+ */
+ get: operations["apps_get_health"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/cdn/endpoints": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All CDN Endpoints
+ * @description To list all of the CDN endpoints available on your account, send a GET request to `/v2/cdn/endpoints`.
+ */
+ get: operations["cdn_list_endpoints"];
+ put?: never;
+ /**
+ * Create a New CDN Endpoint
+ * @description To create a new CDN endpoint, send a POST request to `/v2/cdn/endpoints`. The
+ * origin attribute must be set to the fully qualified domain name (FQDN) of a
+ * DigitalOcean Space. Optionally, the TTL may be configured by setting the `ttl`
+ * attribute.
+ *
+ * A custom subdomain may be configured by specifying the `custom_domain` and
+ * `certificate_id` attributes.
+ */
+ post: operations["cdn_create_endpoint"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/cdn/endpoints/{cdn_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing CDN Endpoint
+ * @description To show information about an existing CDN endpoint, send a GET request to `/v2/cdn/endpoints/$ENDPOINT_ID`.
+ */
+ get: operations["cdn_get_endpoint"];
+ /**
+ * Update a CDN Endpoint
+ * @description To update the TTL, certificate ID, or the FQDN of the custom subdomain for
+ * an existing CDN endpoint, send a PUT request to
+ * `/v2/cdn/endpoints/$ENDPOINT_ID`.
+ */
+ put: operations["cdn_update_endpoints"];
+ post?: never;
+ /**
+ * Delete a CDN Endpoint
+ * @description To delete a specific CDN endpoint, send a DELETE request to
+ * `/v2/cdn/endpoints/$ENDPOINT_ID`.
+ *
+ * A status of 204 will be given. This indicates that the request was processed
+ * successfully, but that no response body is needed.
+ */
+ delete: operations["cdn_delete_endpoint"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/cdn/endpoints/{cdn_id}/cache": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Purge the Cache for an Existing CDN Endpoint
+ * @description To purge cached content from a CDN endpoint, send a DELETE request to
+ * `/v2/cdn/endpoints/$ENDPOINT_ID/cache`. The body of the request should include
+ * a `files` attribute containing a list of cached file paths to be purged. A
+ * path may be for a single file or may contain a wildcard (`*`) to recursively
+ * purge all files under a directory. When only a wildcard is provided, all cached
+ * files will be purged. There is a rate limit of 50 files per 20 seconds that can
+ * be purged. CDN endpoints have a rate limit of 5 requests per 10 seconds.
+ * Purging files using a wildcard path counts as a single request against the API's
+ * rate limit. Two identical purge requests cannot be sent at the same time.
+ */
+ delete: operations["cdn_purge_cache"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/certificates": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Certificates
+ * @description To list all of the certificates available on your account, send a GET request to `/v2/certificates`.
+ */
+ get: operations["certificates_list"];
+ put?: never;
+ /**
+ * Create a New Certificate
+ * @description To upload new SSL certificate which you have previously generated, send a POST
+ * request to `/v2/certificates`.
+ *
+ * When uploading a user-generated certificate, the `private_key`,
+ * `leaf_certificate`, and optionally the `certificate_chain` attributes should
+ * be provided. The type must be set to `custom`.
+ *
+ * When using Let's Encrypt to create a certificate, the `dns_names` attribute
+ * must be provided, and the type must be set to `lets_encrypt`.
+ */
+ post: operations["certificates_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/certificates/{certificate_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Certificate
+ * @description To show information about an existing certificate, send a GET request to `/v2/certificates/$CERTIFICATE_ID`.
+ */
+ get: operations["certificates_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete a Certificate
+ * @description To delete a specific certificate, send a DELETE request to
+ * `/v2/certificates/$CERTIFICATE_ID`.
+ */
+ delete: operations["certificates_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/customers/my/balance": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Customer Balance
+ * @description To retrieve the balances on a customer's account, send a GET request to `/v2/customers/my/balance`.
+ */
+ get: operations["balance_get"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/customers/my/prepayment_config": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Customer Prepayment Configuration
+ * @description To retrieve the prepayment configuration and current prepayment status for a customer's account, send a GET request to `/v2/customers/my/prepayment_config`.
+ */
+ get: operations["prepaymentConfig_get"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/customers/my/prepayment_status": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Customer Prepayment Status
+ * @description To retrieve the prepayment gate status and balances for a customer's account, send a GET request to `/v2/customers/my/prepayment_status`.
+ */
+ get: operations["prepaymentStatus_get"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/customers/my/billing_history": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Billing History
+ * @description To retrieve a list of all billing history entries, send a GET request to `/v2/customers/my/billing_history`.
+ */
+ get: operations["billingHistory_list"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/customers/my/invoices": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Invoices
+ * @description To retrieve a list of all invoices, send a GET request to `/v2/customers/my/invoices`.
+ */
+ get: operations["invoices_list"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/customers/my/invoices/{invoice_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Invoice by UUID
+ * @description To retrieve the invoice items for an invoice, send a GET request to `/v2/customers/my/invoices/$INVOICE_UUID`.
+ */
+ get: operations["invoices_get_byUUID"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/customers/my/invoices/{invoice_uuid}/csv": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Invoice CSV by UUID
+ * @description To retrieve a CSV for an invoice, send a GET request to `/v2/customers/my/invoices/$INVOICE_UUID/csv`.
+ */
+ get: operations["invoices_get_csvByUUID"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/customers/my/invoices/{invoice_uuid}/pdf": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Invoice PDF by UUID
+ * @description To retrieve a PDF for an invoice, send a GET request to `/v2/customers/my/invoices/$INVOICE_UUID/pdf`.
+ */
+ get: operations["invoices_get_pdfByUUID"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/customers/my/invoices/{invoice_uuid}/summary": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Invoice Summary by UUID
+ * @description To retrieve a summary for an invoice, send a GET request to `/v2/customers/my/invoices/$INVOICE_UUID/summary`.
+ */
+ get: operations["invoices_get_summaryByUUID"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/billing/{account_urn}/insights/{start_date}/{end_date}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Billing Insights
+ * @description This endpoint returns day-over-day changes in billing resource usage based on nightly invoice items, including total amount, region, SKU, and description for a specified date range. It is important to note that the daily resource usage may not reflect month-end billing totals when totaled for a given month as nightly invoice item estimates do not necessarily encompass all invoicing factors for the entire month.
+ */
+ get: operations["billingInsights_list"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/options": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Database Options
+ * @description To list all of the options available for the offered database engines, send a GET request to `/v2/databases/options`.
+ * The result will be a JSON object with an `options` key.
+ */
+ get: operations["databases_list_options"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Database Clusters
+ * @description To list all of the database clusters available on your account, send a GET request to `/v2/databases`. To limit the results to database clusters with a specific tag, include the `tag_name` query parameter set to the name of the tag. For example, `/v2/databases?tag_name=$TAG_NAME`.
+ *
+ * The result will be a JSON object with a `databases` key. This will be set to an array of database objects, each of which will contain the standard database attributes.
+ *
+ * The embedded `connection` and `private_connection` objects will contain the information needed to access the database cluster. For multi-node clusters, the `standby_connection` and `standby_private_connection` objects will contain the information needed to connect to the cluster's standby node(s).
+ *
+ * The embedded `maintenance_window` object will contain information about any scheduled maintenance for the database cluster.
+ */
+ get: operations["databases_list_clusters"];
+ put?: never;
+ /**
+ * Create a New Database Cluster
+ * @description To create a database cluster, send a POST request to `/v2/databases`. To see a list of options for each engine, such as available regions, size slugs, and versions, send a GET request to the `/v2/databases/options` endpoint. The available sizes for the `storage_size_mib` field depends on the cluster's size. To see a list of available sizes, see [Managed Database Pricing](https://www.digitalocean.com/pricing/managed-databases).
+ *
+ * The create response returns a JSON object with a key called `database`. The value of this is an object that contains the standard attributes associated with a database cluster. The initial value of the database cluster's `status` attribute is `creating`. When the cluster is ready to receive traffic, this changes to `online`.
+ *
+ * The embedded `connection` and `private_connection` objects contains the information needed to access the database cluster. For multi-node clusters, the `standby_connection` and `standby_private_connection` objects contain the information needed to connect to the cluster's standby node(s).
+ *
+ * DigitalOcean managed PostgreSQL and MySQL database clusters take automated daily backups. To create a new database cluster based on a backup of an existing cluster, send a POST request to `/v2/databases`. In addition to the standard database cluster attributes, the JSON body must include a key named `backup_restore` with the name of the original database cluster and the timestamp of the backup to be restored. Creating a database from a backup is the same as forking a database in the control panel.
+ *
+ * PostgreSQL and MySQL Advanced Edition clusters can be provisioned by setting `engine` to `advanced_pg` or `advanced_mysql`. Advanced Edition clusters are currently in public preview and target highly available workloads. `advanced_pg` supports 1-, 2-, and 3-node deployments; `advanced_mysql` only supports 1- and 3-node deployments. See the [PostgreSQL Advanced Edition](https://docs.digitalocean.com/products/databases/postgresql/how-to/use-advanced-edition-clusters/) and [MySQL Advanced Edition](https://docs.digitalocean.com/products/databases/mysql/how-to/use-advanced-edition-clusters/) documentation for the feature differences vs. Standard Edition and current preview limitations.
+ *
+ * Note: Caching cluster creates are no longer supported as of 2025-04-30T00:00:00Z. Backups are also not supported for Caching or Valkey clusters.
+ */
+ post: operations["databases_create_cluster"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Database Cluster
+ * @description To show information about an existing database cluster, send a GET request to `/v2/databases/$DATABASE_ID`.
+ *
+ * The response will be a JSON object with a database key. This will be set to an object containing the standard database cluster attributes.
+ *
+ * The embedded `connection` and `private_connection` objects will contain the information needed to access the database cluster. For multi-node clusters, the `standby_connection` and `standby_private_connection` objects contain the information needed to connect to the cluster's standby node(s).
+ *
+ * The embedded maintenance_window object will contain information about any scheduled maintenance for the database cluster.
+ */
+ get: operations["databases_get_cluster"];
+ put?: never;
+ post?: never;
+ /**
+ * Destroy a Database Cluster
+ * @description To destroy a specific database, send a DELETE request to `/v2/databases/$DATABASE_ID`.
+ * A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.
+ */
+ delete: operations["databases_destroy_cluster"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/config": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Database Cluster Configuration
+ * @description Shows configuration parameters for an existing database cluster by sending a GET request to
+ * `/v2/databases/$DATABASE_ID/config`.
+ * The response is a JSON object with a `config` key, which is set to an object
+ * containing any database configuration parameters.
+ */
+ get: operations["databases_get_config"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ /**
+ * Update the Database Configuration for an Existing Database
+ * @description To update the configuration for an existing database cluster, send a PATCH request to
+ * `/v2/databases/$DATABASE_ID/config`.
+ */
+ patch: operations["databases_patch_config"];
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/ca": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve the Public Certificate
+ * @description To retrieve the public certificate used to secure the connection to the database cluster send a GET request to
+ * `/v2/databases/$DATABASE_ID/ca`.
+ *
+ * The response will be a JSON object with a `ca` key. This will be set to an object
+ * containing the base64 encoding of the public key certificate.
+ */
+ get: operations["databases_get_ca"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/online-migration": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve the Status of an Online Migration
+ * @description To retrieve the status of the most recent online migration, send a GET request to `/v2/databases/$DATABASE_ID/online-migration`.
+ */
+ get: operations["databases_get_migrationStatus"];
+ /**
+ * Start an Online Migration
+ * @description To start an online migration, send a PUT request to `/v2/databases/$DATABASE_ID/online-migration` endpoint. Migrating a cluster establishes a connection with an existing cluster and replicates its contents to the target cluster. Online migration is only available for MySQL, PostgreSQL, Caching, and Valkey clusters.
+ * If the existing database is continuously being written to, the migration process will continue for up to two weeks unless it is manually stopped. Online migration is only available for [MySQL](https://docs.digitalocean.com/products/databases/mysql/how-to/migrate/#:~:text=To%20migrate%20a%20MySQL%20database,then%20select%20Set%20Up%20Migration), [PostgreSQL](https://docs.digitalocean.com/products/databases/postgresql/how-to/migrate/), [Caching](https://docs.digitalocean.com/products/databases/redis/how-to/migrate/), and [Valkey](https://docs.digitalocean.com/products/databases/valkey/how-to/migrate/) clusters.
+ */
+ put: operations["databases_update_onlineMigration"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/online-migration/{migration_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Stop an Online Migration
+ * @description To stop an online migration, send a DELETE request to `/v2/databases/$DATABASE_ID/online-migration/$MIGRATION_ID`.
+ *
+ * A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.
+ */
+ delete: operations["databases_delete_onlineMigration"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/migrate": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Migrate a Database Cluster to a New Region
+ * @description To migrate a database cluster to a new region, send a `PUT` request to
+ * `/v2/databases/$DATABASE_ID/migrate`. The body of the request must specify a
+ * `region` attribute.
+ *
+ * A successful request will receive a 202 Accepted status code with no body in
+ * response. Querying the database cluster will show that its `status` attribute
+ * will now be set to `migrating`. This will transition back to `online` when the
+ * migration has completed.
+ */
+ put: operations["databases_update_region"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/resize": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Resize a Database Cluster
+ * @description To resize a database cluster, send a PUT request to `/v2/databases/$DATABASE_ID/resize`. The body of the request must specify both the size and num_nodes attributes.
+ * A successful request will receive a 202 Accepted status code with no body in response. Querying the database cluster will show that its status attribute will now be set to resizing. This will transition back to online when the resize operation has completed.
+ */
+ put: operations["databases_update_clusterSize"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/firewall": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Firewall Rules (Trusted Sources) for a Database Cluster
+ * @description To list all of a database cluster's firewall rules (known as "trusted sources" in the control panel), send a GET request to `/v2/databases/$DATABASE_ID/firewall`.
+ * The result will be a JSON object with a `rules` key.
+ */
+ get: operations["databases_list_firewall_rules"];
+ /**
+ * Update Firewall Rules (Trusted Sources) for a Database
+ * @description To update a database cluster's firewall rules (known as "trusted sources" in the control panel), send a PUT request to `/v2/databases/$DATABASE_ID/firewall` specifying which resources should be able to open connections to the database. You may limit connections to specific Droplets, Kubernetes clusters, or IP addresses. When a tag is provided, any Droplet or Kubernetes node with that tag applied to it will have access. The firewall is limited to 100 rules (or trusted sources). You cannot add IPv6 addresses as trusted sources. For additional limits, see your database engine's limits page. When possible, we recommend [placing your databases into a VPC network](https://docs.digitalocean.com/products/networking/vpc/) to limit access to them instead of using a firewall.
+ * A successful request returns a 204 status code with no content.
+ */
+ put: operations["databases_update_firewall_rules"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/do_settings": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve DO Settings for a Database Cluster
+ * @description To retrieve the DigitalOcean-specific settings for a database cluster, send a GET request to `/v2/databases/$DATABASE_ID/do_settings`.
+ * The response will include the current `service_cnames` configuration.
+ */
+ get: operations["databases_get_do_settings"];
+ /**
+ * Update DO Settings for a Database Cluster
+ * @description To update the DigitalOcean-specific settings for a database cluster, send a PUT request to `/v2/databases/$DATABASE_ID/do_settings`.
+ * Currently, the only supported setting is `service_cnames`, which allows you to specify custom DNS names (CNAMEs) to be included in the TLS certificate Subject Alternative Names (SANs) for the database cluster nodes. This enables TLS verification when connecting via a custom hostname.
+ * After updating, the database nodes will be replaced to apply the new certificate. This process is performed as a rolling replacement and does not cause downtime.
+ * To clear all custom CNAMEs, send an empty array or omit the field.
+ */
+ put: operations["databases_update_do_settings"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/maintenance": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Configure a Database Cluster's Maintenance Window
+ * @description To configure the window when automatic maintenance should be performed for a database cluster, send a PUT request to `/v2/databases/$DATABASE_ID/maintenance`.
+ * A successful request will receive a 204 No Content status code with no body in response.
+ */
+ put: operations["databases_update_maintenanceWindow"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/install_update": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Start Database Maintenance
+ * @description To start the installation of updates for a database cluster, send a PUT request to `/v2/databases/$DATABASE_ID/install_update`.
+ * A successful request will receive a 204 No Content status code with no body in response.
+ */
+ put: operations["databases_install_update"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/backups": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Backups for a Database Cluster
+ * @description To list all of the available backups of a PostgreSQL or MySQL database cluster, send a GET request to `/v2/databases/$DATABASE_ID/backups`.
+ * **Note**: Backups are not supported for Caching or Valkey clusters.
+ * The result will be a JSON object with a `backups key`. This will be set to an array of backup objects, each of which will contain the size of the backup and the timestamp at which it was created.
+ */
+ get: operations["databases_list_backups"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/replicas": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Read-only Replicas
+ * @description To list all of the read-only replicas associated with a database cluster, send a GET request to `/v2/databases/$DATABASE_ID/replicas`.
+ *
+ * **Note**: Read-only replicas are not supported for Caching or Valkey clusters.
+ *
+ * The result will be a JSON object with a `replicas` key. This will be set to an array of database replica objects, each of which will contain the standard database replica attributes.
+ */
+ get: operations["databases_list_replicas"];
+ put?: never;
+ /**
+ * Create a Read-only Replica
+ * @description To create a read-only replica for a PostgreSQL or MySQL database cluster, send a POST request to `/v2/databases/$DATABASE_ID/replicas` specifying the name it should be given, the size of the node to be used, and the region where it will be located.
+ *
+ * **Note**: Read-only replicas are not supported for Caching or Valkey clusters.
+ *
+ * The response will be a JSON object with a key called `replica`. The value of this will be an object that contains the standard attributes associated with a database replica. The initial value of the read-only replica's `status` attribute will be `forking`. When the replica is ready to receive traffic, this will transition to `active`.
+ */
+ post: operations["databases_create_replica"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/events": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List all Events Logs
+ * @description To list all of the cluster events, send a GET request to
+ * `/v2/databases/$DATABASE_ID/events`.
+ *
+ * The result will be a JSON object with a `events` key.
+ */
+ get: operations["databases_list_events_logs"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/replicas/{replica_name}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Read-only Replica
+ * @description To show information about an existing database replica, send a GET request to `/v2/databases/$DATABASE_ID/replicas/$REPLICA_NAME`.
+ *
+ * **Note**: Read-only replicas are not supported for Caching or Valkey clusters.
+ *
+ * The response will be a JSON object with a `replica key`. This will be set to an object containing the standard database replica attributes.
+ */
+ get: operations["databases_get_replica"];
+ put?: never;
+ post?: never;
+ /**
+ * Destroy a Read-only Replica
+ * @description To destroy a specific read-only replica, send a DELETE request to `/v2/databases/$DATABASE_ID/replicas/$REPLICA_NAME`.
+ *
+ * **Note**: Read-only replicas are not supported for Caching or Valkey clusters.
+ *
+ * A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.
+ */
+ delete: operations["databases_destroy_replica"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/replicas/{replica_name}/promote": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Promote a Read-only Replica to become a Primary Cluster
+ * @description To promote a specific read-only replica, send a PUT request to `/v2/databases/$DATABASE_ID/replicas/$REPLICA_NAME/promote`.
+ *
+ * **Note**: Read-only replicas are not supported for Caching or Valkey clusters.
+ *
+ * A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.
+ */
+ put: operations["databases_promote_replica"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/users": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List all Database Users
+ * @description To list all of the users for your database cluster, send a GET request to
+ * `/v2/databases/$DATABASE_ID/users`.
+ *
+ * Note: User management is not supported for Caching or Valkey clusters.
+ *
+ * The result will be a JSON object with a `users` key. This will be set to an array
+ * of database user objects, each of which will contain the standard database user attributes.
+ * User passwords will not show without the `database:view_credentials` scope.
+ *
+ * For MySQL clusters, additional options will be contained in the mysql_settings object.
+ *
+ * For PostgreSQL clusters, additional options will be contained in the `settings`
+ * object (for example, `pg_allow_replication`).
+ *
+ * For Kafka clusters, additional options will be contained in the `settings` object.
+ *
+ * For MongoDB clusters, additional information will be contained in the mongo_user_settings object
+ */
+ get: operations["databases_list_users"];
+ put?: never;
+ /**
+ * Add a Database User
+ * @description To add a new database user, send a POST request to `/v2/databases/$DATABASE_ID/users`
+ * with the desired username.
+ *
+ * Note: User management is not supported for Caching or Valkey clusters.
+ *
+ * When adding a user to a MySQL cluster, additional options can be configured in the
+ * `mysql_settings` object.
+ *
+ * When adding a user to a PostgreSQL cluster, additional options can be configured in
+ * the `settings` object (for example, `pg_allow_replication`). When
+ * `pg_allow_replication` is omitted, it defaults to `false`.
+ *
+ * When adding a user to a Kafka cluster, additional options can be configured in
+ * the `settings` object.
+ *
+ * When adding a user to a MongoDB cluster, additional options can be configured in
+ * the `settings.mongo_user_settings` object.
+ *
+ * The response will be a JSON object with a key called `user`. The value of this will be an
+ * object that contains the standard attributes associated with a database user including
+ * its randomly generated password.
+ */
+ post: operations["databases_add_user"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/users/{username}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Database User
+ * @description To show information about an existing database user, send a GET request to
+ * `/v2/databases/$DATABASE_ID/users/$USERNAME`.
+ *
+ * Note: User management is not supported for Caching or Valkey clusters.
+ *
+ * The response will be a JSON object with a `user` key. This will be set to an object
+ * containing the standard database user attributes. The user's password will not show
+ * up unless the `database:view_credentials` scope is present.
+ *
+ * For MySQL clusters, additional options will be contained in the `mysql_settings`
+ * object.
+ *
+ * For PostgreSQL clusters, additional options will be contained in the `settings`
+ * object (for example, `pg_allow_replication`).
+ *
+ * For Kafka clusters, additional options will be contained in the `settings` object.
+ *
+ * For MongoDB clusters, additional information will be contained in the mongo_user_settings object
+ */
+ get: operations["databases_get_user"];
+ /**
+ * Update a Database User
+ * @description To update an existing database user, send a PUT request to `/v2/databases/$DATABASE_ID/users/$USERNAME`
+ * with the desired settings.
+ *
+ * **Note**: only `settings` can be updated via this type of request. If you wish to change the name of a user,
+ * you must recreate a new user.
+ *
+ * For PostgreSQL clusters, you can update `settings.pg_allow_replication` to enable or
+ * disable replication privileges for the user. When omitted, the value defaults to `false`.
+ *
+ * For Kafka and OpenSearch clusters, additional options can be configured in the
+ * `settings` object (for example, topic or index ACLs).
+ *
+ * Updating users is supported for PostgreSQL, Kafka, and OpenSearch clusters. For
+ * other engines, the request returns a 422. MongoDB roles and database access are
+ * set with `settings.mongo_user_settings` when creating a user and cannot be
+ * changed afterward; recreate the user to apply different roles or databases.
+ *
+ * The response will be a JSON object with a key called `user`. The value of this will be an
+ * object that contains the name of the updated database user, along with the `settings` object that
+ * has been updated.
+ */
+ put: operations["databases_update_user"];
+ post?: never;
+ /**
+ * Remove a Database User
+ * @description To remove a specific database user, send a DELETE request to
+ * `/v2/databases/$DATABASE_ID/users/$USERNAME`.
+ *
+ * A status of 204 will be given. This indicates that the request was processed
+ * successfully, but that no response body is needed.
+ *
+ * Note: User management is not supported for Caching or Valkey clusters.
+ */
+ delete: operations["databases_delete_user"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/users/{username}/reset_auth": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Reset a Database User's Password or Authentication Method
+ * @description To reset the password for a database user, send a POST request to
+ * `/v2/databases/$DATABASE_ID/users/$USERNAME/reset_auth`.
+ *
+ * For `mysql` databases, the authentication method can be specifying by
+ * including a key in the JSON body called `mysql_settings` with the `auth_plugin`
+ * value specified.
+ *
+ * The response will be a JSON object with a `user` key. This will be set to an
+ * object containing the standard database user attributes.
+ */
+ post: operations["databases_reset_auth"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/dbs": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Databases
+ * @description To list all of the databases in a clusters, send a GET request to
+ * `/v2/databases/$DATABASE_ID/dbs`.
+ *
+ * The result will be a JSON object with a `dbs` key. This will be set to an array
+ * of database objects, each of which will contain the standard database attributes.
+ *
+ * Note: Database management is not supported for Caching or Valkey clusters.
+ */
+ get: operations["databases_list"];
+ put?: never;
+ /**
+ * Add a New Database
+ * @description To add a new database to an existing cluster, send a POST request to
+ * `/v2/databases/$DATABASE_ID/dbs`.
+ *
+ * Note: Database management is not supported for Caching or Valkey clusters.
+ *
+ * The response will be a JSON object with a key called `db`. The value of this will be
+ * an object that contains the standard attributes associated with a database.
+ */
+ post: operations["databases_add"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/dbs/{database_name}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Database
+ * @description To show information about an existing database cluster, send a GET request to
+ * `/v2/databases/$DATABASE_ID/dbs/$DB_NAME`.
+ *
+ * Note: Database management is not supported for Caching or Valkey clusters.
+ *
+ * The response will be a JSON object with a `db` key. This will be set to an object
+ * containing the standard database attributes.
+ */
+ get: operations["databases_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete a Database
+ * @description To delete a specific database, send a DELETE request to
+ * `/v2/databases/$DATABASE_ID/dbs/$DB_NAME`.
+ *
+ * A status of 204 will be given. This indicates that the request was processed
+ * successfully, but that no response body is needed.
+ *
+ * Note: Database management is not supported for Caching or Valkey clusters.
+ */
+ delete: operations["databases_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/pools": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Connection Pools (PostgreSQL)
+ * @description To list all of the connection pools available to a PostgreSQL database cluster, send a GET request to `/v2/databases/$DATABASE_ID/pools`.
+ * The result will be a JSON object with a `pools` key. This will be set to an array of connection pool objects.
+ */
+ get: operations["databases_list_connectionPools"];
+ put?: never;
+ /**
+ * Add a New Connection Pool (PostgreSQL)
+ * @description For PostgreSQL database clusters, connection pools can be used to allow a
+ * database to share its idle connections. The popular PostgreSQL connection
+ * pooling utility PgBouncer is used to provide this service. [See here for more information](https://docs.digitalocean.com/products/databases/postgresql/how-to/manage-connection-pools/)
+ * about how and why to use PgBouncer connection pooling including
+ * details about the available transaction modes.
+ *
+ * To add a new connection pool to a PostgreSQL database cluster, send a POST
+ * request to `/v2/databases/$DATABASE_ID/pools` specifying a name for the pool,
+ * the user to connect with, the database to connect to, as well as its desired
+ * size and transaction mode.
+ */
+ post: operations["databases_add_connectionPool"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/pools/{pool_name}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Existing Connection Pool (PostgreSQL)
+ * @description To show information about an existing connection pool for a PostgreSQL database cluster, send a GET request to `/v2/databases/$DATABASE_ID/pools/$POOL_NAME`.
+ * The response will be a JSON object with a `pool` key.
+ */
+ get: operations["databases_get_connectionPool"];
+ /**
+ * Update Connection Pools (PostgreSQL)
+ * @description To update a connection pool for a PostgreSQL database cluster, send a PUT request to `/v2/databases/$DATABASE_ID/pools/$POOL_NAME`.
+ */
+ put: operations["databases_update_connectionPool"];
+ post?: never;
+ /**
+ * Delete a Connection Pool (PostgreSQL)
+ * @description To delete a specific connection pool for a PostgreSQL database cluster, send
+ * a DELETE request to `/v2/databases/$DATABASE_ID/pools/$POOL_NAME`.
+ *
+ * A status of 204 will be given. This indicates that the request was processed
+ * successfully, but that no response body is needed.
+ */
+ delete: operations["databases_delete_connectionPool"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/eviction_policy": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve the Eviction Policy for a Caching or Valkey Cluster
+ * @description To retrieve the configured eviction policy for an existing Caching or Valkey cluster, send a GET request to `/v2/databases/$DATABASE_ID/eviction_policy`.
+ * The response will be a JSON object with an `eviction_policy` key. This will be set to a string representing the eviction policy.
+ */
+ get: operations["databases_get_evictionPolicy"];
+ /**
+ * Configure the Eviction Policy for a Caching or Valkey Cluster
+ * @description To configure an eviction policy for an existing Caching or Valkey cluster, send a PUT request to `/v2/databases/$DATABASE_ID/eviction_policy` specifying the desired policy.
+ */
+ put: operations["databases_update_evictionPolicy"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/sql_mode": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve the SQL Modes for a MySQL Cluster
+ * @description To retrieve the configured SQL modes for an existing MySQL cluster, send a GET request to `/v2/databases/$DATABASE_ID/sql_mode`.
+ * The response will be a JSON object with a `sql_mode` key. This will be set to a string representing the configured SQL modes.
+ */
+ get: operations["databases_get_sql_mode"];
+ /**
+ * Update SQL Mode for a Cluster
+ * @description To configure the SQL modes for an existing MySQL cluster, send a PUT request to `/v2/databases/$DATABASE_ID/sql_mode` specifying the desired modes. See the official MySQL 8 documentation for a [full list of supported SQL modes](https://dev.mysql.com/doc/refman/8.0/en/sql-mode.html#sql-mode-full).
+ * A successful request will receive a 204 No Content status code with no body in response.
+ */
+ put: operations["databases_update_sql_mode"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/upgrade": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Upgrade Major Version for a Database
+ * @description To upgrade the major version of a database, send a PUT request to `/v2/databases/$DATABASE_ID/upgrade`, specifying the target version.
+ * A successful request will receive a 204 No Content status code with no body in response.
+ */
+ put: operations["databases_update_major_version"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/autoscale": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Autoscale Configuration for a Database Cluster
+ * @description To retrieve the autoscale configuration for an existing database cluster, send a GET request to `/v2/databases/$DATABASE_ID/autoscale`.
+ * The response will be a JSON object with autoscaling configuration details.
+ */
+ get: operations["databases_get_autoscale"];
+ /**
+ * Configure Autoscale Settings for a Database Cluster
+ * @description To configure autoscale settings for an existing database cluster, send a PUT request to `/v2/databases/$DATABASE_ID/autoscale`, specifying the autoscale configuration.
+ * A successful request will receive a 204 No Content status code with no body in response.
+ */
+ put: operations["databases_update_autoscale"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/topics": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Topics for a Kafka Cluster
+ * @description To list all of a Kafka cluster's topics, send a GET request to
+ * `/v2/databases/$DATABASE_ID/topics`.
+ *
+ * The result will be a JSON object with a `topics` key.
+ */
+ get: operations["databases_list_kafka_topics"];
+ put?: never;
+ /**
+ * Create Topic for a Kafka Cluster
+ * @description To create a topic attached to a Kafka cluster, send a POST request to
+ * `/v2/databases/$DATABASE_ID/topics`.
+ *
+ * The result will be a JSON object with a `topic` key.
+ */
+ post: operations["databases_create_kafka_topic"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/topics/{topic_name}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Topic for a Kafka Cluster
+ * @description To retrieve a given topic by name from the set of a Kafka cluster's topics,
+ * send a GET request to `/v2/databases/$DATABASE_ID/topics/$TOPIC_NAME`.
+ *
+ * The result will be a JSON object with a `topic` key.
+ */
+ get: operations["databases_get_kafka_topic"];
+ /**
+ * Update Topic for a Kafka Cluster
+ * @description To update a topic attached to a Kafka cluster, send a PUT request to
+ * `/v2/databases/$DATABASE_ID/topics/$TOPIC_NAME`.
+ *
+ * The result will be a JSON object with a `topic` key.
+ */
+ put: operations["databases_update_kafka_topic"];
+ post?: never;
+ /**
+ * Delete Topic for a Kafka Cluster
+ * @description To delete a single topic within a Kafka cluster, send a DELETE request
+ * to `/v2/databases/$DATABASE_ID/topics/$TOPIC_NAME`.
+ *
+ * A status of 204 will be given. This indicates that the request was
+ * processed successfully, but that no response body is needed.
+ */
+ delete: operations["databases_delete_kafka_topic"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/logsink": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Logsinks for a Database Cluster
+ * @description To list logsinks for a database cluster, send a GET request to
+ * `/v2/databases/$DATABASE_ID/logsink`.
+ */
+ get: operations["databases_list_logsink"];
+ put?: never;
+ /**
+ * Create Logsink for a Database Cluster
+ * @description To create logsink for a database cluster, send a POST request to
+ * `/v2/databases/$DATABASE_ID/logsink`.
+ */
+ post: operations["databases_create_logsink"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/logsink/{logsink_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Logsink for a Database Cluster
+ * @description To get a logsink for a database cluster, send a GET request to
+ * `/v2/databases/$DATABASE_ID/logsink/$LOGSINK_ID`.
+ */
+ get: operations["databases_get_logsink"];
+ /**
+ * Update Logsink for a Database Cluster
+ * @description To update a logsink for a database cluster, send a PUT request to
+ * `/v2/databases/$DATABASE_ID/logsink/$LOGSINK_ID`.
+ */
+ put: operations["databases_update_logsink"];
+ post?: never;
+ /**
+ * Delete Logsink for a Database Cluster
+ * @description To delete a logsink for a database cluster, send a DELETE request to
+ * `/v2/databases/$DATABASE_ID/logsink/$LOGSINK_ID`.
+ */
+ delete: operations["databases_delete_logsink"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/schema-registry": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Schemas for Kafka Cluster
+ * @description To list all schemas for a Kafka cluster, send a GET request to
+ * `/v2/databases/$DATABASE_ID/schema-registry`.
+ */
+ get: operations["databases_list_kafka_schemas"];
+ put?: never;
+ /**
+ * Create Schema Registry for Kafka Cluster
+ * @description To create a Kafka schema for a database cluster, send a POST request to
+ * `/v2/databases/$DATABASE_ID/schema-registry`.
+ */
+ post: operations["databases_create_kafka_schema"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/schema-registry/{subject_name}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get a Kafka Schema by Subject Name
+ * @description To get a specific schema by subject name for a Kafka cluster, send a GET request to
+ * `/v2/databases/$DATABASE_ID/schema-registry/$SUBJECT_NAME`.
+ */
+ get: operations["databases_get_kafka_schema"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete a Kafka Schema by Subject Name
+ * @description To delete a specific schema by subject name for a Kafka cluster, send a DELETE request to
+ * `/v2/databases/$DATABASE_ID/schema-registry/$SUBJECT_NAME`.
+ */
+ delete: operations["databases_delete_kafka_schema"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/schema-registry/{subject_name}/versions/{version}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Kafka Schema by Subject Version
+ * @description To get a specific schema by subject name for a Kafka cluster, send a GET request to
+ * `/v2/databases/$DATABASE_ID/schema-registry/$SUBJECT_NAME/versions/$VERSION`.
+ */
+ get: operations["databases_get_kafka_schema_version"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/schema-registry/config": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Schema Registry Configuration for a kafka Cluster
+ * @description To retrieve the Schema Registry configuration for a Kafka cluster, send a GET request to
+ * `/v2/databases/$DATABASE_ID/schema-registry/config`.
+ * The response is a JSON object with a `compatibility_level` key, which is set to an object
+ * containing any database configuration parameters.
+ */
+ get: operations["databases_get_kafka_schema_config"];
+ /**
+ * Update Schema Registry Configuration for a kafka Cluster
+ * @description To update the Schema Registry configuration for a Kafka cluster, send a PUT request to
+ * `/v2/databases/$DATABASE_ID/schema-registry/config`.
+ * The response is a JSON object with a `compatibility_level` key, which is set to an object
+ * containing any database configuration parameters.
+ */
+ put: operations["databases_update_kafka_schema_config"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/schema-registry/config/{subject_name}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Schema Registry Configuration for a Subject of kafka Cluster
+ * @description To retrieve the Schema Registry configuration for a Subject of a Kafka cluster, send a GET request to
+ * `/v2/databases/$DATABASE_ID/schema-registry/config/$SUBJECT_NAME`.
+ * The response is a JSON object with a `compatibility_level` key, which is set to an object
+ * containing any database configuration parameters.
+ */
+ get: operations["databases_get_kafka_schema_subject_config"];
+ /**
+ * Update Schema Registry Configuration for a Subject of kafka Cluster
+ * @description To update the Schema Registry configuration for a Subject of a Kafka cluster, send a PUT request to
+ * `/v2/databases/$DATABASE_ID/schema-registry/config/$SUBJECT_NAME`.
+ * The response is a JSON object with a `compatibility_level` key, which is set to an object
+ * containing any database configuration parameters.
+ */
+ put: operations["databases_update_kafka_schema_subject_config"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/metrics/credentials": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Database Clusters' Metrics Endpoint Credentials
+ * @description To show the credentials for all database clusters' metrics endpoints, send a GET request to `/v2/databases/metrics/credentials`. The result will be a JSON object with a `credentials` key.
+ */
+ get: operations["databases_get_cluster_metrics_credentials"];
+ /**
+ * Update Database Clusters' Metrics Endpoint Credentials
+ * @description To update the credentials for all database clusters' metrics endpoints, send a PUT request to `/v2/databases/metrics/credentials`. A successful request will receive a 204 No Content status code with no body in response.
+ */
+ put: operations["databases_update_cluster_metrics_credentials"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/indexes": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Indexes for a OpenSearch Cluster
+ * @description To list all of a OpenSearch cluster's indexes, send a GET request to
+ * `/v2/databases/$DATABASE_ID/indexes`.
+ *
+ * The result will be a JSON object with a `indexes` key.
+ */
+ get: operations["databases_list_opeasearch_indexes"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/databases/{database_cluster_uuid}/indexes/{index_name}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Delete Index for OpenSearch Cluster
+ * @description To delete a single index within OpenSearch cluster, send a DELETE request
+ * to `/v2/databases/$DATABASE_ID/indexes/$INDEX_NAME`.
+ *
+ * A status of 204 will be given. This indicates that the request was
+ * processed successfully, but that no response body is needed.
+ */
+ delete: operations["databases_delete_opensearch_index"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/dedicated-inferences/{dedicated_inference_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get a Dedicated Inference
+ * @description Retrieve an existing Dedicated Inference by ID. Send a GET request to
+ * `/v2/dedicated-inferences/{dedicated_inference_id}`. The status in the response
+ * is one of active, new, provisioning, updating, deleting, or error.
+ */
+ get: operations["dedicatedInferences_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete a Dedicated Inference
+ * @description Delete an existing Dedicated Inference. Send a DELETE request to
+ * `/v2/dedicated-inferences/{dedicated_inference_id}`. The response 202 Accepted
+ * indicates the request was accepted for processing.
+ */
+ delete: operations["dedicatedInferences_delete"];
+ options?: never;
+ head?: never;
+ /**
+ * Update a Dedicated Inference
+ * @description Update an existing Dedicated Inference. Send a PATCH request to
+ * `/v2/dedicated-inferences/{dedicated_inference_id}` with updated `spec` and/or
+ * `access_tokens`. Status will move to updating and return to active when done.
+ */
+ patch: operations["dedicatedInferences_patch"];
+ trace?: never;
+ };
+ "/v2/dedicated-inferences": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Dedicated Inferences
+ * @description List all Dedicated Inference instances for your team. Send a GET request to
+ * `/v2/dedicated-inferences`. You may filter by region and use page and per_page
+ * for pagination.
+ */
+ get: operations["dedicatedInferences_list"];
+ put?: never;
+ /**
+ * Create a Dedicated Inference
+ * @description Create a new Dedicated Inference for your team. Send a POST request to
+ * `/v2/dedicated-inferences` with a `spec` object (version, name, region, vpc,
+ * enable_public_endpoint, model_deployments) and optional `access_tokens` (e.g.
+ * hugging_face_token for gated models). The response code 202 Accepted indicates
+ * the request was accepted for processing; it does not indicate success or failure.
+ * The token value is returned only on create; store it securely.
+ */
+ post: operations["dedicatedInferences_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/dedicated-inferences/{dedicated_inference_id}/accelerators": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Dedicated Inference Accelerators
+ * @description List all accelerators (GPUs) in use by a Dedicated Inference instance. Send a
+ * GET request to `/v2/dedicated-inferences/{dedicated_inference_id}/accelerators`.
+ * Optionally filter by slug and use page/per_page for pagination.
+ */
+ get: operations["dedicatedInferences_list_accelerators"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/dedicated-inferences/{dedicated_inference_id}/accelerators/{accelerator_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get a Dedicated Inference Accelerator
+ * @description Retrieve a single accelerator by ID for a Dedicated Inference instance. Send a
+ * GET request to `/v2/dedicated-inferences/{dedicated_inference_id}/accelerators/{accelerator_id}`.
+ */
+ get: operations["dedicatedInferences_get_accelerator"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/dedicated-inferences/{dedicated_inference_id}/ca": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Dedicated Inference CA Certificate
+ * @description Get the CA certificate for a Dedicated Inference instance (base64-encoded).
+ * Required for private endpoint connectivity. Send a GET request to
+ * `/v2/dedicated-inferences/{dedicated_inference_id}/ca`.
+ */
+ get: operations["dedicatedInferences_get_ca"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/dedicated-inferences/{dedicated_inference_id}/tokens": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Dedicated Inference Tokens
+ * @description List all access tokens for a Dedicated Inference instance. Token values are
+ * not returned; only id, name, created_at, and is_managed. Send a GET request to
+ * `/v2/dedicated-inferences/{dedicated_inference_id}/tokens`.
+ */
+ get: operations["dedicatedInferences_list_tokens"];
+ put?: never;
+ /**
+ * Create a Dedicated Inference Token
+ * @description Create a new access token for a Dedicated Inference instance. Send a POST
+ * request to `/v2/dedicated-inferences/{dedicated_inference_id}/tokens` with a
+ * `name`. The token value is returned only once in the response; store it securely.
+ */
+ post: operations["dedicatedInferences_create_tokens"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/dedicated-inferences/{dedicated_inference_id}/tokens/{token_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Revoke a Dedicated Inference Token
+ * @description Revoke (delete) an access token for a Dedicated Inference instance. Send a
+ * DELETE request to `/v2/dedicated-inferences/{dedicated_inference_id}/tokens/{token_id}`.
+ */
+ delete: operations["dedicatedInferences_delete_tokens"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/dedicated-inferences/sizes": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Dedicated Inference Sizes
+ * @description Get available Dedicated Inference sizes and pricing for supported GPUs. Send a
+ * GET request to `/v2/dedicated-inferences/sizes`.
+ */
+ get: operations["dedicatedInferences_list_sizes"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/dedicated-inferences/gpu-model-config": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Dedicated Inference GPU Model Config
+ * @description Get supported GPU and model configurations for Dedicated Inference. Use this to
+ * discover supported GPU slugs and model slugs (e.g. Hugging Face). Send a GET
+ * request to `/v2/dedicated-inferences/gpu-model-config`.
+ */
+ get: operations["dedicatedInferences_get_gpu_model_config"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/domains": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Domains
+ * @description To retrieve a list of all of the domains in your account, send a GET request to `/v2/domains`.
+ */
+ get: operations["domains_list"];
+ put?: never;
+ /**
+ * Create a New Domain
+ * @description To create a new domain, send a POST request to `/v2/domains`. Set the "name"
+ * attribute to the domain name you are adding. Optionally, you may set the
+ * "ip_address" attribute, and an A record will be automatically created pointing
+ * to the apex domain.
+ */
+ post: operations["domains_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/domains/{domain_name}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Domain
+ * @description To get details about a specific domain, send a GET request to `/v2/domains/$DOMAIN_NAME`.
+ */
+ get: operations["domains_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete a Domain
+ * @description To delete a domain, send a DELETE request to `/v2/domains/$DOMAIN_NAME`.
+ */
+ delete: operations["domains_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/domains/{domain_name}/records": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Domain Records
+ * @description To get a listing of all records configured for a domain, send a GET request to `/v2/domains/$DOMAIN_NAME/records`.
+ * The list of records returned can be filtered by using the `name` and `type` query parameters. For example, to only include A records for a domain, send a GET request to `/v2/domains/$DOMAIN_NAME/records?type=A`. `name` must be a fully qualified record name. For example, to only include records matching `sub.example.com`, send a GET request to `/v2/domains/$DOMAIN_NAME/records?name=sub.example.com`. Both name and type may be used together.
+ */
+ get: operations["domains_list_records"];
+ put?: never;
+ /**
+ * Create a New Domain Record
+ * @description To create a new record to a domain, send a POST request to
+ * `/v2/domains/$DOMAIN_NAME/records`.
+ *
+ * The request must include all of the required fields for the domain record type
+ * being added.
+ *
+ * See the [attribute table](#tag/Domain-Records) for details regarding record
+ * types and their respective required attributes.
+ */
+ post: operations["domains_create_record"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/domains/{domain_name}/records/{domain_record_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Domain Record
+ * @description To retrieve a specific domain record, send a GET request to `/v2/domains/$DOMAIN_NAME/records/$RECORD_ID`.
+ */
+ get: operations["domains_get_record"];
+ /**
+ * Update a Domain Record
+ * @description To update an existing record, send a PUT request to
+ * `/v2/domains/$DOMAIN_NAME/records/$DOMAIN_RECORD_ID`. Any attribute valid for
+ * the record type can be set to a new value for the record.
+ *
+ * See the [attribute table](#tag/Domain-Records) for details regarding record
+ * types and their respective attributes.
+ */
+ put: operations["domains_update_record"];
+ post?: never;
+ /**
+ * Delete a Domain Record
+ * @description To delete a record for a domain, send a DELETE request to
+ * `/v2/domains/$DOMAIN_NAME/records/$DOMAIN_RECORD_ID`.
+ *
+ * The record will be deleted and the response status will be a 204. This
+ * indicates a successful request with no body returned.
+ */
+ delete: operations["domains_delete_record"];
+ options?: never;
+ head?: never;
+ /**
+ * Update a Domain Record
+ * @description To update an existing record, send a PATCH request to
+ * `/v2/domains/$DOMAIN_NAME/records/$DOMAIN_RECORD_ID`. Any attribute valid for
+ * the record type can be set to a new value for the record.
+ *
+ * See the [attribute table](#tag/Domain-Records) for details regarding record
+ * types and their respective attributes.
+ */
+ patch: operations["domains_patch_record"];
+ trace?: never;
+ };
+ "/v2/droplets": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Droplets
+ * @description To list all Droplets in your account, send a GET request to `/v2/droplets`.
+ *
+ * The response body will be a JSON object with a key of `droplets`. This will be
+ * set to an array containing objects each representing a Droplet. These will
+ * contain the standard Droplet attributes.
+ *
+ * ### Filtering Results by Tag
+ *
+ * It's possible to request filtered results by including certain query parameters.
+ * To only list Droplets assigned to a specific tag, include the `tag_name` query
+ * parameter set to the name of the tag in your GET request. For example,
+ * `/v2/droplets?tag_name=$TAG_NAME`.
+ *
+ * ### GPU Droplets
+ *
+ * By default, only non-GPU Droplets are returned. To list only GPU Droplets, set
+ * the `type` query parameter to `gpus`. For example, `/v2/droplets?type=gpus`.
+ */
+ get: operations["droplets_list"];
+ put?: never;
+ /**
+ * Create a New Droplet
+ * @description To create a new Droplet, send a POST request to `/v2/droplets` setting the
+ * required attributes.
+ *
+ * A Droplet will be created using the provided information. The response body
+ * will contain a JSON object with a key called `droplet`. The value will be an
+ * object containing the standard attributes for your new Droplet. The response
+ * code, 202 Accepted, does not indicate the success or failure of the operation,
+ * just that the request has been accepted for processing. The `actions` returned
+ * as part of the response's `links` object can be used to check the status
+ * of the Droplet create event.
+ *
+ * ### Create Multiple Droplets
+ *
+ * Creating multiple Droplets is very similar to creating a single Droplet.
+ * Instead of sending `name` as a string, send `names` as an array of strings. A
+ * Droplet will be created for each name you send using the associated
+ * information. Up to ten Droplets may be created this way at a time.
+ *
+ * Rather than returning a single Droplet, the response body will contain a JSON
+ * array with a key called `droplets`. This will be set to an array of JSON
+ * objects, each of which will contain the standard Droplet attributes. The
+ * response code, 202 Accepted, does not indicate the success or failure of any
+ * operation, just that the request has been accepted for processing. The array
+ * of `actions` returned as part of the response's `links` object can be used to
+ * check the status of each individual Droplet create event.
+ */
+ post: operations["droplets_create"];
+ /**
+ * Deleting Droplets by Tag
+ * @description To delete **all** Droplets assigned to a specific tag, include the `tag_name`
+ * query parameter set to the name of the tag in your DELETE request. For
+ * example, `/v2/droplets?tag_name=$TAG_NAME`.
+ *
+ * This endpoint requires `tag:read` scope.
+ *
+ * A successful request will receive a 204 status code with no body in response.
+ * This indicates that the request was processed successfully.
+ */
+ delete: operations["droplets_destroy_byTag"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/droplets/{droplet_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Droplet
+ * @description To show information about an individual Droplet, send a GET request to
+ * `/v2/droplets/$DROPLET_ID`.
+ */
+ get: operations["droplets_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete an Existing Droplet
+ * @description To delete a Droplet, send a DELETE request to `/v2/droplets/$DROPLET_ID`.
+ *
+ * A successful request will receive a 204 status code with no body in response.
+ * This indicates that the request was processed successfully.
+ */
+ delete: operations["droplets_destroy"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/droplets/{droplet_id}/backups": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Backups for a Droplet
+ * @description To retrieve any backups associated with a Droplet, send a GET request to
+ * `/v2/droplets/$DROPLET_ID/backups`.
+ *
+ * You will get back a JSON object that has a `backups` key. This will be set to
+ * an array of backup objects, each of which contain the standard
+ * Droplet backup attributes.
+ */
+ get: operations["droplets_list_backups"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/droplets/{droplet_id}/backups/policy": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve the Backup Policy for an Existing Droplet
+ * @description To show information about an individual Droplet's backup policy, send a GET
+ * request to `/v2/droplets/$DROPLET_ID/backups/policy`.
+ */
+ get: operations["droplets_get_backup_policy"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/droplets/backups/policies": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Backup Policies for All Existing Droplets
+ * @description To list information about the backup policies for all Droplets in the account,
+ * send a GET request to `/v2/droplets/backups/policies`.
+ */
+ get: operations["droplets_list_backup_policies"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/droplets/backups/supported_policies": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Supported Droplet Backup Policies
+ * @description To retrieve a list of all supported Droplet backup policies, send a GET
+ * request to `/v2/droplets/backups/supported_policies`.
+ */
+ get: operations["droplets_list_supported_backup_policies"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/droplets/{droplet_id}/snapshots": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Snapshots for a Droplet
+ * @description To retrieve the snapshots that have been created from a Droplet, send a GET
+ * request to `/v2/droplets/$DROPLET_ID/snapshots`.
+ *
+ * You will get back a JSON object that has a `snapshots` key. This will be set
+ * to an array of snapshot objects, each of which contain the standard Droplet
+ * snapshot attributes.
+ */
+ get: operations["droplets_list_snapshots"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/droplets/{droplet_id}/actions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Actions for a Droplet
+ * @description To retrieve a list of all actions that have been executed for a Droplet, send
+ * a GET request to `/v2/droplets/$DROPLET_ID/actions`.
+ *
+ * The results will be returned as a JSON object with an `actions` key. This will
+ * be set to an array filled with `action` objects containing the standard
+ * `action` attributes.
+ */
+ get: operations["dropletActions_list"];
+ put?: never;
+ /**
+ * Initiate a Droplet Action
+ * @description To initiate an action on a Droplet send a POST request to
+ * `/v2/droplets/$DROPLET_ID/actions`. In the JSON body to the request,
+ * set the `type` attribute to one of the supported action types:
+ *
+ * | Action | Details | Required Permissions |
+ * | ---------------------------------------- | ----------- | ----------- |
+ * | `enable_backups` | Enables backups for a Droplet | `droplet:update` |
+ * | `disable_backups` | Disables backups for a Droplet | `droplet:update` |
+ * | `change_backup_policy` | Update the backup policy for a Droplet | `droplet:update` |
+ * | `reboot` | Reboots a Droplet. A `reboot` action is an attempt to reboot the Droplet in a graceful way, similar to using the `reboot` command from the console. | `droplet:update` |
+ * | `power_cycle` | Power cycles a Droplet. A `powercycle` action is similar to pushing the reset button on a physical machine, it's similar to booting from scratch. | `droplet:update` |
+ * | `shutdown` | Shuts down a Droplet. A shutdown action is an attempt to shutdown the Droplet in a graceful way, similar to using the `shutdown` command from the console. Since a `shutdown` command can fail, this action guarantees that the command is issued, not that it succeeds. The preferred way to turn off a Droplet is to attempt a shutdown, with a reasonable timeout, followed by a `power_off` action to ensure the Droplet is off. | `droplet:update` |
+ * | `power_off` | Powers off a Droplet. A `power_off` event is a hard shutdown and should only be used if the `shutdown` action is not successful. It is similar to cutting the power on a server and could lead to complications. | `droplet:update` |
+ * | `power_on` | Powers on a Droplet. | `droplet:update` |
+ * | `restore` | Restore a Droplet using a backup image. The image ID that is passed in must be a backup of the current Droplet instance. The operation will leave any embedded SSH keys intact. | `droplet:update` `droplet:admin` |
+ * | `password_reset` | Resets the root password for a Droplet. A new password will be provided via email. It must be changed after first use. | `droplet:update` `droplet:admin` |
+ * | `resize` | Resizes a Droplet. Set the `size` attribute to a size slug. If a permanent resize with disk changes included is desired, set the `disk` attribute to `true`. | `droplet:update` `droplet:create` |
+ * | `rebuild` | Rebuilds a Droplet from a new base image. Set the `image` attribute to an image ID or slug. | `droplet:update` `droplet:admin` |
+ * | `rename` | Renames a Droplet. | `droplet:update` |
+ * | `change_kernel` | Changes a Droplet's kernel. Only applies to Droplets with externally managed kernels. All Droplets created after March 2017 use internal kernels by default. | `droplet:update` |
+ * | `enable_ipv6` | Enables IPv6 for a Droplet. Once enabled for a Droplet, IPv6 can not be disabled. **Warning:** The Droplet must be powered off before enabling IPv6 on an existing Droplet. When enabling IPv6 on an existing Droplet, [additional OS-level configuration](https://docs.digitalocean.com/products/networking/ipv6/how-to/enable/#on-existing-droplets) is required. | `droplet:update` |
+ * | `snapshot` | Takes a snapshot of a Droplet. | `droplet:update` `image:create` |
+ */
+ post: operations["dropletActions_post"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/droplets/actions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Acting on Tagged Droplets
+ * @description Some actions can be performed in bulk on tagged Droplets. The actions can be
+ * initiated by sending a POST to `/v2/droplets/actions?tag_name=$TAG_NAME` with
+ * the action arguments.
+ *
+ * Only a sub-set of action types are supported:
+ *
+ * - `power_cycle`
+ * - `power_on`
+ * - `power_off`
+ * - `shutdown`
+ * - `enable_ipv6` (**Warning:** The Droplet must be powered off before enabling IPv6 on an existing Droplet.)
+ * - `enable_backups`
+ * - `disable_backups`
+ * - `snapshot` (also requires `image:create` permission)
+ */
+ post: operations["dropletActions_post_byTag"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/droplets/{droplet_id}/actions/{action_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve a Droplet Action
+ * @description To retrieve a Droplet action, send a GET request to
+ * `/v2/droplets/$DROPLET_ID/actions/$ACTION_ID`.
+ *
+ * The response will be a JSON object with a key called `action`. The value will
+ * be a Droplet action object.
+ */
+ get: operations["dropletActions_get"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/droplets/{droplet_id}/kernels": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Available Kernels for a Droplet
+ * @description To retrieve a list of all kernels available to a Droplet, send a GET request
+ * to `/v2/droplets/$DROPLET_ID/kernels`
+ *
+ * The response will be a JSON object that has a key called `kernels`. This will
+ * be set to an array of `kernel` objects, each of which contain the standard
+ * `kernel` attributes.
+ */
+ get: operations["droplets_list_kernels"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/droplets/{droplet_id}/firewalls": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List all Firewalls Applied to a Droplet
+ * @description To retrieve a list of all firewalls available to a Droplet, send a GET request
+ * to `/v2/droplets/$DROPLET_ID/firewalls`
+ *
+ * The response will be a JSON object that has a key called `firewalls`. This will
+ * be set to an array of `firewall` objects, each of which contain the standard
+ * `firewall` attributes.
+ */
+ get: operations["droplets_list_firewalls"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/droplets/{droplet_id}/neighbors": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Neighbors for a Droplet
+ * @description To retrieve a list of any "neighbors" (i.e. Droplets that are co-located on
+ * the same physical hardware) for a specific Droplet, send a GET request to
+ * `/v2/droplets/$DROPLET_ID/neighbors`.
+ *
+ * The results will be returned as a JSON object with a key of `droplets`. This
+ * will be set to an array containing objects representing any other Droplets
+ * that share the same physical hardware. An empty array indicates that the
+ * Droplet is not co-located any other Droplets associated with your account.
+ */
+ get: operations["droplets_list_neighbors"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/droplets/{droplet_id}/destroy_with_associated_resources": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Associated Resources for a Droplet
+ * @description To list the associated billable resources that can be destroyed along with a
+ * Droplet, send a GET request to the
+ * `/v2/droplets/$DROPLET_ID/destroy_with_associated_resources` endpoint.
+ *
+ * This endpoint will only return resources that you are authorized to see. For
+ * example, to see associated Reserved IPs, include the `reserved_ip:read` scope.
+ *
+ * The response will be a JSON object containing `snapshots`, `volumes`, and
+ * `volume_snapshots` keys. Each will be set to an array of objects containing
+ * information about the associated resources.
+ */
+ get: operations["droplets_list_associatedResources"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/droplets/{droplet_id}/destroy_with_associated_resources/selective": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Selectively Destroy a Droplet and its Associated Resources
+ * @description To destroy a Droplet along with a sub-set of its associated resources, send a
+ * DELETE request to the `/v2/droplets/$DROPLET_ID/destroy_with_associated_resources/selective`
+ * endpoint. The JSON body of the request should include `reserved_ips`, `snapshots`, `volumes`,
+ * or `volume_snapshots` keys each set to an array of IDs for the associated
+ * resources to be destroyed. The IDs can be found by querying the Droplet's
+ * associated resources. Any associated resource not included in the request
+ * will remain and continue to accrue changes on your account.
+ *
+ * A successful response will include a 202 response code and no content. Use
+ * the status endpoint to check on the success or failure of the destruction of
+ * the individual resources.
+ */
+ delete: operations["droplets_destroy_withAssociatedResourcesSelective"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/droplets/{droplet_id}/destroy_with_associated_resources/dangerous": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Destroy a Droplet and All of its Associated Resources (Dangerous)
+ * @description To destroy a Droplet along with all of its associated resources, send a DELETE
+ * request to the `/v2/droplets/$DROPLET_ID/destroy_with_associated_resources/dangerous`
+ * endpoint. The headers of this request must include an `X-Dangerous` key set to
+ * `true`. To preview which resources will be destroyed, first query the
+ * Droplet's associated resources. This operation _can not_ be reverse and should
+ * be used with caution.
+ *
+ * A successful response will include a 202 response code and no content. Use the
+ * status endpoint to check on the success or failure of the destruction of the
+ * individual resources.
+ */
+ delete: operations["droplets_destroy_withAssociatedResourcesDangerous"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/droplets/{droplet_id}/destroy_with_associated_resources/status": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Check Status of a Droplet Destroy with Associated Resources Request
+ * @description To check on the status of a request to destroy a Droplet with its associated
+ * resources, send a GET request to the
+ * `/v2/droplets/$DROPLET_ID/destroy_with_associated_resources/status` endpoint.
+ */
+ get: operations["droplets_get_DestroyAssociatedResourcesStatus"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/droplets/{droplet_id}/destroy_with_associated_resources/retry": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Retry a Droplet Destroy with Associated Resources Request
+ * @description If the status of a request to destroy a Droplet with its associated resources
+ * reported any errors, it can be retried by sending a POST request to the
+ * `/v2/droplets/$DROPLET_ID/destroy_with_associated_resources/retry` endpoint.
+ *
+ * Only one destroy can be active at a time per Droplet. If a retry is issued
+ * while another destroy is in progress for the Droplet a 409 status code will
+ * be returned. A successful response will include a 202 response code and no
+ * content.
+ */
+ post: operations["droplets_destroy_retryWithAssociatedResources"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/droplets/autoscale": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Autoscale Pools
+ * @description To list all autoscale pools in your team, send a GET request to `/v2/droplets/autoscale`.
+ * The response body will be a JSON object with a key of `autoscale_pools` containing an array of autoscale pool objects.
+ * These each contain the standard autoscale pool attributes.
+ */
+ get: operations["autoscalepools_list"];
+ put?: never;
+ /**
+ * Create a New Autoscale Pool
+ * @description To create a new autoscale pool, send a POST request to `/v2/droplets/autoscale` setting the required attributes.
+ *
+ * The response body will contain a JSON object with a key called `autoscale_pool` containing the standard attributes for the new autoscale pool.
+ */
+ post: operations["autoscalepools_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/droplets/autoscale/{autoscale_pool_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Autoscale Pool
+ * @description To show information about an individual autoscale pool, send a GET request to
+ * `/v2/droplets/autoscale/$AUTOSCALE_POOL_ID`.
+ */
+ get: operations["autoscalepools_get"];
+ /**
+ * Update Autoscale Pool
+ * @description To update the configuration of an existing autoscale pool, send a PUT request to
+ * `/v2/droplets/autoscale/$AUTOSCALE_POOL_ID`. The request must contain a full representation
+ * of the autoscale pool including existing attributes.
+ */
+ put: operations["autoscalepools_update"];
+ post?: never;
+ /**
+ * Delete autoscale pool
+ * @description To destroy an autoscale pool, send a DELETE request to the `/v2/droplets/autoscale/$AUTOSCALE_POOL_ID` endpoint.
+ *
+ * A successful response will include a 202 response code and no content.
+ */
+ delete: operations["autoscalepools_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/droplets/autoscale/{autoscale_pool_id}/dangerous": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Delete autoscale pool and resources
+ * @description To destroy an autoscale pool and its associated resources (Droplets),
+ * send a DELETE request to the `/v2/droplets/autoscale/$AUTOSCALE_POOL_ID/dangerous` endpoint.
+ */
+ delete: operations["autoscalepools_delete_dangerous"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/droplets/autoscale/{autoscale_pool_id}/members": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List members
+ * @description To list the Droplets in an autoscale pool, send a GET request to `/v2/droplets/autoscale/$AUTOSCALE_POOL_ID/members`.
+ *
+ * The response body will be a JSON object with a key of `droplets`. This will be
+ * set to an array containing information about each of the Droplets in the autoscale pool.
+ */
+ get: operations["autoscalepools_list_members"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/droplets/autoscale/{autoscale_pool_id}/history": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List history events
+ * @description To list all of the scaling history events of an autoscale pool, send a GET request to `/v2/droplets/autoscale/$AUTOSCALE_POOL_ID/history`.
+ *
+ * The response body will be a JSON object with a key of `history`. This will be
+ * set to an array containing objects each representing a history event.
+ */
+ get: operations["autoscalepools_list_history"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/firewalls": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Firewalls
+ * @description To list all of the firewalls available on your account, send a GET request to `/v2/firewalls`.
+ */
+ get: operations["firewalls_list"];
+ put?: never;
+ /**
+ * Create a New Firewall
+ * @description To create a new firewall, send a POST request to `/v2/firewalls`. The request
+ * must contain at least one inbound or outbound access rule.
+ */
+ post: operations["firewalls_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/firewalls/{firewall_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Firewall
+ * @description To show information about an existing firewall, send a GET request to `/v2/firewalls/$FIREWALL_ID`.
+ */
+ get: operations["firewalls_get"];
+ /**
+ * Update a Firewall
+ * @description To update the configuration of an existing firewall, send a PUT request to
+ * `/v2/firewalls/$FIREWALL_ID`. The request should contain a full representation
+ * of the firewall including existing attributes. **Note that any attributes that
+ * are not provided will be reset to their default values.**
+ * You must have read access (e.g. `droplet:read`) to all resources attached
+ * to the firewall to successfully update the firewall.
+ */
+ put: operations["firewalls_update"];
+ post?: never;
+ /**
+ * Delete a Firewall
+ * @description To delete a firewall send a DELETE request to `/v2/firewalls/$FIREWALL_ID`.
+ *
+ * No response body will be sent back, but the response code will indicate
+ * success. Specifically, the response code will be a 204, which means that the
+ * action was successful with no returned body data.
+ */
+ delete: operations["firewalls_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/firewalls/{firewall_id}/droplets": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Add Droplets to a Firewall
+ * @description To assign a Droplet to a firewall, send a POST request to
+ * `/v2/firewalls/$FIREWALL_ID/droplets`. In the body of the request, there
+ * should be a `droplet_ids` attribute containing a list of Droplet IDs.
+ *
+ * No response body will be sent back, but the response code will indicate
+ * success. Specifically, the response code will be a 204, which means that the
+ * action was successful with no returned body data.
+ */
+ post: operations["firewalls_assign_droplets"];
+ /**
+ * Remove Droplets from a Firewall
+ * @description To remove a Droplet from a firewall, send a DELETE request to
+ * `/v2/firewalls/$FIREWALL_ID/droplets`. In the body of the request, there should
+ * be a `droplet_ids` attribute containing a list of Droplet IDs.
+ *
+ * No response body will be sent back, but the response code will indicate
+ * success. Specifically, the response code will be a 204, which means that the
+ * action was successful with no returned body data.
+ */
+ delete: operations["firewalls_delete_droplets"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/firewalls/{firewall_id}/tags": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Add Tags to a Firewall
+ * @description To assign a tag representing a group of Droplets to a firewall, send a POST
+ * request to `/v2/firewalls/$FIREWALL_ID/tags`. In the body of the request,
+ * there should be a `tags` attribute containing a list of tag names.
+ *
+ * No response body will be sent back, but the response code will indicate
+ * success. Specifically, the response code will be a 204, which means that the
+ * action was successful with no returned body data.
+ */
+ post: operations["firewalls_add_tags"];
+ /**
+ * Remove Tags from a Firewall
+ * @description To remove a tag representing a group of Droplets from a firewall, send a
+ * DELETE request to `/v2/firewalls/$FIREWALL_ID/tags`. In the body of the
+ * request, there should be a `tags` attribute containing a list of tag names.
+ *
+ * No response body will be sent back, but the response code will indicate
+ * success. Specifically, the response code will be a 204, which means that the
+ * action was successful with no returned body data.
+ */
+ delete: operations["firewalls_delete_tags"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/firewalls/{firewall_id}/rules": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Add Rules to a Firewall
+ * @description To add additional access rules to a firewall, send a POST request to
+ * `/v2/firewalls/$FIREWALL_ID/rules`. The body of the request may include an
+ * inbound_rules and/or outbound_rules attribute containing an array of rules to
+ * be added.
+ *
+ * No response body will be sent back, but the response code will indicate
+ * success. Specifically, the response code will be a 204, which means that the
+ * action was successful with no returned body data.
+ */
+ post: operations["firewalls_add_rules"];
+ /**
+ * Remove Rules from a Firewall
+ * @description To remove access rules from a firewall, send a DELETE request to
+ * `/v2/firewalls/$FIREWALL_ID/rules`. The body of the request may include an
+ * `inbound_rules` and/or `outbound_rules` attribute containing an array of rules
+ * to be removed.
+ *
+ * No response body will be sent back, but the response code will indicate
+ * success. Specifically, the response code will be a 204, which means that the
+ * action was successful with no returned body data.
+ */
+ delete: operations["firewalls_delete_rules"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/floating_ips": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Floating IPs
+ * @description To list all of the floating IPs available on your account, send a GET request to `/v2/floating_ips`.
+ */
+ get: operations["floatingIPs_list"];
+ put?: never;
+ /**
+ * Create a New Floating IP
+ * @description On creation, a floating IP must be either assigned to a Droplet or reserved to a region.
+ * * To create a new floating IP assigned to a Droplet, send a POST
+ * request to `/v2/floating_ips` with the `droplet_id` attribute.
+ *
+ * * To create a new floating IP reserved to a region, send a POST request to
+ * `/v2/floating_ips` with the `region` attribute.
+ */
+ post: operations["floatingIPs_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/floating_ips/{floating_ip}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Floating IP
+ * @description To show information about a floating IP, send a GET request to `/v2/floating_ips/$FLOATING_IP_ADDR`.
+ */
+ get: operations["floatingIPs_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete a Floating IP
+ * @description To delete a floating IP and remove it from your account, send a DELETE request
+ * to `/v2/floating_ips/$FLOATING_IP_ADDR`.
+ *
+ * A successful request will receive a 204 status code with no body in response.
+ * This indicates that the request was processed successfully.
+ */
+ delete: operations["floatingIPs_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/floating_ips/{floating_ip}/actions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Actions for a Floating IP
+ * @description To retrieve all actions that have been executed on a floating IP, send a GET request to `/v2/floating_ips/$FLOATING_IP/actions`.
+ */
+ get: operations["floatingIPsAction_list"];
+ put?: never;
+ /**
+ * Initiate a Floating IP Action
+ * @description To initiate an action on a floating IP send a POST request to
+ * `/v2/floating_ips/$FLOATING_IP/actions`. In the JSON body to the request,
+ * set the `type` attribute to on of the supported action types:
+ *
+ * | Action | Details
+ * |------------|--------
+ * | `assign` | Assigns a floating IP to a Droplet
+ * | `unassign` | Unassign a floating IP from a Droplet
+ */
+ post: operations["floatingIPsAction_post"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/floating_ips/{floating_ip}/actions/{action_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Floating IP Action
+ * @description To retrieve the status of a floating IP action, send a GET request to `/v2/floating_ips/$FLOATING_IP/actions/$ACTION_ID`.
+ */
+ get: operations["floatingIPsAction_get"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/functions/namespaces": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Namespaces
+ * @description Returns a list of namespaces associated with the current user. To get all namespaces, send a GET request to `/v2/functions/namespaces`.
+ */
+ get: operations["functions_list_namespaces"];
+ put?: never;
+ /**
+ * Create Namespace
+ * @description Creates a new serverless functions namespace in the desired region and associates it with the provided label. A namespace is a collection of functions and their associated packages, triggers, and project specifications. To create a namespace, send a POST request to `/v2/functions/namespaces` with the `region` and `label` properties.
+ */
+ post: operations["functions_create_namespace"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/functions/namespaces/{namespace_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Namespace
+ * @description Gets the namespace details for the given namespace UUID. To get namespace details, send a GET request to `/v2/functions/namespaces/$NAMESPACE_ID` with no parameters.
+ */
+ get: operations["functions_get_namespace"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete Namespace
+ * @description Deletes the given namespace. When a namespace is deleted all assets, in the namespace are deleted, this includes packages, functions and triggers. Deleting a namespace is a destructive operation and assets in the namespace are not recoverable after deletion. Some metadata is retained, such as activations, or soft deleted for reporting purposes.
+ * To delete namespace, send a DELETE request to `/v2/functions/namespaces/$NAMESPACE_ID`.
+ * A successful deletion returns a 204 response.
+ */
+ delete: operations["functions_delete_namespace"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/functions/namespaces/{namespace_id}/triggers": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Triggers
+ * @description Returns a list of triggers associated with the current user and namespace. To get all triggers, send a GET request to `/v2/functions/namespaces/$NAMESPACE_ID/triggers`.
+ */
+ get: operations["functions_list_triggers"];
+ put?: never;
+ /**
+ * Create Trigger
+ * @description Creates a new trigger for a given function in a namespace. To create a trigger, send a POST request to `/v2/functions/namespaces/$NAMESPACE_ID/triggers` with the `name`, `function`, `type`, `is_enabled` and `scheduled_details` properties.
+ */
+ post: operations["functions_create_trigger"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/functions/namespaces/{namespace_id}/triggers/{trigger_name}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Trigger
+ * @description Gets the trigger details. To get the trigger details, send a GET request to `/v2/functions/namespaces/$NAMESPACE_ID/triggers/$TRIGGER_NAME`.
+ */
+ get: operations["functions_get_trigger"];
+ /**
+ * Update Trigger
+ * @description Updates the details of the given trigger. To update a trigger, send a PUT request to `/v2/functions/namespaces/$NAMESPACE_ID/triggers/$TRIGGER_NAME` with new values for the `is_enabled ` or `scheduled_details` properties.
+ */
+ put: operations["functions_update_trigger"];
+ post?: never;
+ /**
+ * Delete Trigger
+ * @description Deletes the given trigger.
+ * To delete trigger, send a DELETE request to `/v2/functions/namespaces/$NAMESPACE_ID/triggers/$TRIGGER_NAME`.
+ * A successful deletion returns a 204 response.
+ */
+ delete: operations["functions_delete_trigger"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/functions/namespaces/{namespace_id}/keys": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Namespace Access Keys
+ * @description Lists all access keys for a serverless functions namespace.
+ *
+ * To list access keys, send a GET request to `/v2/functions/namespaces/{namespace_id}/keys`.
+ */
+ get: operations["functionsAccessKey_list"];
+ put?: never;
+ /**
+ * Create a Namespace Access Key
+ * @description Creates a new access key for a serverless functions namespace.
+ * The access key can be used to authenticate requests to the namespace's functions.
+ * The secret key is only returned once upon creation.
+ *
+ * To create an access key, send a POST request to `/v2/functions/namespaces/{namespace_id}/keys`.
+ */
+ post: operations["functionsAccessKey_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/functions/namespaces/{namespace_id}/keys/{key_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Update a Namespace Access Key
+ * @description Updates the name of an access key for a serverless functions namespace.
+ *
+ * To update an access key, send a PUT request to `/v2/functions/namespaces/{namespace_id}/keys/{key_id}`.
+ */
+ put: operations["functionsAccessKey_update"];
+ post?: never;
+ /**
+ * Delete a Namespace Access Key
+ * @description Deletes an access key for a serverless functions namespace.
+ *
+ * To delete an access key, send a DELETE request to `/v2/functions/namespaces/{namespace_id}/keys/{key_id}`.
+ */
+ delete: operations["functionsAccessKey_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/images": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Images
+ * @description To list all of the images available on your account, send a GET request to /v2/images.
+ *
+ * ## Filtering Results
+ * -----
+ *
+ * It's possible to request filtered results by including certain query parameters.
+ *
+ * **Image Type**
+ *
+ * Either 1-Click Application or OS Distribution images can be filtered by using the `type` query parameter.
+ *
+ * > Important: The `type` query parameter does not directly relate to the `type` attribute.
+ *
+ * To retrieve only ***distribution*** images, include the `type` query parameter set to distribution, `/v2/images?type=distribution`.
+ *
+ * To retrieve only ***application*** images, include the `type` query parameter set to application, `/v2/images?type=application`.
+ *
+ * **User Images**
+ *
+ * To retrieve only the private images of a user, include the `private` query parameter set to true, `/v2/images?private=true`.
+ *
+ * **Tags**
+ *
+ * To list all images assigned to a specific tag, include the `tag_name` query parameter set to the name of the tag in your GET request. For example, `/v2/images?tag_name=$TAG_NAME`.
+ */
+ get: operations["images_list"];
+ put?: never;
+ /**
+ * Create a Custom Image
+ * @description To create a new custom image, send a POST request to /v2/images.
+ * The body must contain a url attribute pointing to a Linux virtual machine
+ * image to be imported into DigitalOcean.
+ * The image must be in the raw, qcow2, vhdx, vdi, or vmdk format.
+ * It may be compressed using gzip or bzip2 and must be smaller than 100 GB after
+ * being decompressed.
+ */
+ post: operations["images_create_custom"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/images/{image_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Image
+ * @description To retrieve information about an image, send a `GET` request to
+ * `/v2/images/$IDENTIFIER`.
+ */
+ get: operations["images_get"];
+ /**
+ * Update an Image
+ * @description To update an image, send a `PUT` request to `/v2/images/$IMAGE_ID`.
+ * Set the `name` attribute to the new value you would like to use.
+ * For custom images, the `description` and `distribution` attributes may also be updated.
+ */
+ put: operations["images_update"];
+ post?: never;
+ /**
+ * Delete an Image
+ * @description To delete a snapshot or custom image, send a `DELETE` request to `/v2/images/$IMAGE_ID`.
+ */
+ delete: operations["images_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/images/{image_id}/account_transfer": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Initiate an Image Account Transfer
+ * @description To initiate an account transfer for an image, send a POST request to
+ * `/v2/images/$IMAGE_ID/account_transfer`.
+ *
+ * Only snapshot images may be transferred by this endpoint to another account.
+ *
+ * An image account transfer always has exactly one recipient, specified in the request body.
+ * The recipient can be one of the following:
+ *
+ * * A DigitalOcean account, denoted by `recipient_email` in the request body.
+ * The recipient will receive an email with instructions to accept the transfer.
+ * Once the recipient accepts the transfer, the image will be moved to their
+ * account.
+ *
+ * * A DigitalOcean team, denoted by `recipient_uuid` in the request body. If the
+ * user has sufficient permissions in the recipient team, the transfer will be
+ * automatically accepted and the image will be moved to the recipient team's
+ * account. Otherwise, the transfer will be pending until a user with sufficient
+ * permissions in the recipient team accepts the transfer.
+ */
+ post: operations["images_post_account_transfer_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/images/{image_id}/account_transfer/accept": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Accept an Image Account Transfer
+ * @description To accept an account transfer for an image, send a POST request to
+ * `/v2/images/$IMAGE_ID/account_transfer/accept`.
+ */
+ post: operations["images_post_account_transfer_accept"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/images/{image_id}/account_transfer/cancel": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Cancel an Image Account Transfer
+ * @description To cancel an account transfer for an image, send a POST request to
+ * `/v2/images/$IMAGE_ID/account_transfer/cancel`.
+ *
+ * Only the sender of an image account transfer can cancel the transfer.
+ * If the transfer is canceled, the image will remain in the sender's account
+ * and will not be transferred to the recipient.
+ */
+ post: operations["images_post_account_transfer_cancel"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/images/{image_id}/account_transfer/decline": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Decline an Image Account Transfer
+ * @description To decline an account transfer for an image, send a POST request to
+ * `/v2/images/$IMAGE_ID/account_transfer/decline`.
+ *
+ * Only the recipient of an image account transfer can decline the transfer.
+ * If the transfer is declined, the image will remain in the sender's account
+ * and will not be transferred to the recipient.
+ */
+ post: operations["images_post_account_transfer_decline"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/images/{image_id}/actions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Actions for an Image
+ * @description To retrieve all actions that have been executed on an image, send a GET request to `/v2/images/$IMAGE_ID/actions`.
+ */
+ get: operations["imageActions_list"];
+ put?: never;
+ /**
+ * Initiate an Image Action
+ * @description The following actions are available on an Image.
+ *
+ * ## Convert an Image to a Snapshot
+ *
+ * To convert an image, for example, a backup to a snapshot, send a POST request
+ * to `/v2/images/$IMAGE_ID/actions`. Set the `type` attribute to `convert`.
+ *
+ * ## Transfer an Image
+ *
+ * To transfer an image to another region, send a POST request to
+ * `/v2/images/$IMAGE_ID/actions`. Set the `type` attribute to `transfer` and set
+ * `region` attribute to the slug identifier of the region you wish to transfer
+ * to.
+ */
+ post: operations["imageActions_post"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/images/{image_id}/actions/{action_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Action
+ * @description To retrieve the status of an image action, send a GET request to `/v2/images/$IMAGE_ID/actions/$IMAGE_ACTION_ID`.
+ */
+ get: operations["imageActions_get"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/insights/alert-instances": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Alert Instances
+ * @description To list alert instances for your account, send a GET request to
+ * `/v2/insights/alert-instances`. Alert instances are read-only records of
+ * alert rule firings against your resources.
+ *
+ * Results can optionally be filtered by `status`, `rule_id`, or
+ * `resource_urn`.
+ *
+ * Results are ordered by `triggered_at` descending (newest first). Because
+ * the list is append-only and continuously growing, offset-based pagination
+ * is best-effort: newly triggered instances may shift older rows onto
+ * subsequent pages between fetches. For stable pagination, filter by
+ * `rule_id` or a fixed time window on the client side.
+ */
+ get: operations["insights_list_alertInstances"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/insights/alert-instances/{id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Alert Instance
+ * @description To retrieve a single alert instance, send a GET request to
+ * `/v2/insights/alert-instances/{id}`.
+ */
+ get: operations["insights_get_alertInstance"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/insights/alert-rules": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Alert Rules
+ * @description To list alert rules for your account, send a GET request to
+ * `/v2/insights/alert-rules`. Results are paginated with `page` and `per_page`
+ * (default `20`, maximum `200`). Optionally filter by `resource_urn`.
+ */
+ get: operations["insights_list_alertRules"];
+ put?: never;
+ /**
+ * Create an Alert Rule
+ * @description To create an alert rule, send a POST request to `/v2/insights/alert-rules`
+ * with a `spec` containing `name`, `query`, `thresholds`, and at least one
+ * `notification_channels` binding. `status` defaults to
+ * `ALERT_RULE_STATUS_ACTIVE` when omitted. `re_alert_duration` defaults to
+ * `RE_ALERT_DURATION_4H` when omitted.
+ *
+ * `query.metric` must be a dotted OpenTelemetry name such as
+ * `do.droplets.cpu_utilization`. Underscored Prometheus-style names are
+ * rejected with `422 Unprocessable Entity`.
+ */
+ post: operations["insights_create_alertRule"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/insights/alert-rules/{id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Alert Rule
+ * @description To retrieve an alert rule, send a GET request to
+ * `/v2/insights/alert-rules/{id}`.
+ */
+ get: operations["insights_get_alertRule"];
+ /**
+ * Update an Alert Rule
+ * @description This PUT endpoint uses merge semantics. To update an alert rule, send a
+ * request to `/v2/insights/alert-rules/{id}` with a full `spec`. Omit
+ * `notification_channels` to keep existing bindings. Omit `status` or
+ * `re_alert_duration` to keep those existing values.
+ */
+ put: operations["insights_update_alertRule"];
+ post?: never;
+ /**
+ * Delete an Alert Rule
+ * @description To delete an alert rule, send a DELETE request to
+ * `/v2/insights/alert-rules/{id}`.
+ */
+ delete: operations["insights_delete_alertRule"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/insights/dashboards": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Dashboards
+ * @description To list the dashboards in your team, send a GET request to
+ * `/v2/insights/dashboards`.
+ *
+ * Results are paginated with `pagination.page` and `pagination.per_page`
+ * (default `20`, maximum `200`) and can be sorted with `pagination.sort`
+ * (`name`, `created_at`, or `updated_at`) and `pagination.sort_direction`.
+ * When `pagination.sort` is omitted, dashboards are ordered by `created_at`
+ * descending. When it is set, the direction defaults to `asc` unless
+ * `pagination.sort_direction` is also given.
+ */
+ get: operations["insights_list_dashboards"];
+ put?: never;
+ /**
+ * Create a Dashboard
+ * @description To create a dashboard, send a POST request to `/v2/insights/dashboards`
+ * with a `spec` containing the dashboard definition as a JSON document
+ * serialized to a string.
+ *
+ * The server derives the dashboard's `name` and `description` from
+ * `spec.display.name` and `spec.display.description`. Dashboard names are
+ * unique within a team; reusing a name returns `409`.
+ *
+ * The response status is `200` and the body contains the created dashboard.
+ */
+ post: operations["insights_create_dashboard"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/insights/dashboards/schema": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve the Dashboard Schema
+ * @description To retrieve the JSON Schema that dashboard `spec` documents must satisfy,
+ * send a GET request to `/v2/insights/dashboards/schema`.
+ *
+ * The response body is the JSON Schema document itself (draft 2020-12). Use
+ * it to validate a dashboard definition before sending it to the create or
+ * update endpoints.
+ */
+ get: operations["insights_get_dashboardSchema"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/insights/dashboards/{uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve a Dashboard
+ * @description To retrieve a dashboard, send a GET request to
+ * `/v2/insights/dashboards/{uuid}`.
+ */
+ get: operations["insights_get_dashboard"];
+ /**
+ * Update a Dashboard
+ * @description To update a dashboard, send a PUT request to
+ * `/v2/insights/dashboards/{uuid}` with a `spec` containing the full
+ * dashboard definition as a JSON document serialized to a string.
+ *
+ * This endpoint uses replace semantics: the stored `spec` is overwritten in
+ * full and `name` and `description` are recomputed from the new
+ * `spec.display`. Changing the name to one already used by another dashboard
+ * in your team returns `409`.
+ */
+ put: operations["insights_update_dashboard"];
+ post?: never;
+ /**
+ * Delete a Dashboard
+ * @description To delete a dashboard, send a DELETE request to
+ * `/v2/insights/dashboards/{uuid}`.
+ *
+ * A successful request returns `200` with an empty JSON object as the body.
+ */
+ delete: operations["insights_delete_dashboard"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/insights/notification-channels": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Notification Channels
+ * @description To list all notification channels for your account, send a GET request to
+ * `/v2/insights/notification-channels`. Results are paginated with `page` and
+ * `per_page` (default `20`, maximum `200`).
+ */
+ get: operations["insights_list_notificationChannels"];
+ put?: never;
+ /**
+ * Create a Notification Channel
+ * @description To create a notification channel, send a POST request to
+ * `/v2/insights/notification-channels` with a `name` and exactly one of
+ * `email`, `slack`, or `webhook`.
+ *
+ * Email recipients must be team contact emails added and verified by a team
+ * owner. Webhook URLs must
+ * use HTTPS. Secret fields (`slack.webhook_url`, webhook credentials) are
+ * write-only. Subsequent reads never return secret values; they include
+ * optional `*_status` objects when a secret is configured.
+ */
+ post: operations["insights_create_notificationChannel"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/insights/notification-channels/{id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve a Notification Channel
+ * @description To retrieve a notification channel, send a GET request to
+ * `/v2/insights/notification-channels/{id}`. Secret credentials are never
+ * returned. When a secret is configured, the response includes an optional
+ * `*_status` object (for example `webhook_url_status`) with
+ * `configured: true`.
+ */
+ get: operations["insights_get_notificationChannel"];
+ /**
+ * Update a Notification Channel
+ * @description To update a notification channel, send a PUT request to
+ * `/v2/insights/notification-channels/{id}` with a `name` and exactly one of
+ * `email`, `slack`, or `webhook`.
+ *
+ * Sending a secret field rotates it; omitting the secret field keeps the
+ * existing value. Responses never return secret values; they include optional
+ * `*_status` objects when a secret is configured.
+ */
+ put: operations["insights_update_notificationChannel"];
+ post?: never;
+ /**
+ * Delete a Notification Channel
+ * @description To delete a notification channel, send a DELETE request to
+ * `/v2/insights/notification-channels/{id}`.
+ *
+ * Deleting a channel that is still referenced by one or more alert rules
+ * returns `409 Conflict`.
+ */
+ delete: operations["insights_delete_notificationChannel"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/insights/query/{region}/prom/api/v1/query": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Execute an instant PromQL query
+ * @description To evaluate a PromQL expression at a single point in time, send a GET request to `/v2/insights/query/{region}/prom/api/v1/query`.
+ */
+ get: operations["insights_get_promQuery"];
+ put?: never;
+ /**
+ * Execute an instant PromQL query
+ * @description To evaluate a PromQL expression at a single point in time, send a POST request to `/v2/insights/query/{region}/prom/api/v1/query` with `application/x-www-form-urlencoded` parameters.
+ */
+ post: operations["insights_post_promQuery"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/insights/query/{region}/prom/api/v1/query_range": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Execute a range PromQL query
+ * @description To evaluate a PromQL expression over a time range, send a GET request to `/v2/insights/query/{region}/prom/api/v1/query_range`.
+ */
+ get: operations["insights_get_promQueryRange"];
+ put?: never;
+ /**
+ * Execute a range PromQL query
+ * @description To evaluate a PromQL expression over a time range, send a POST request to `/v2/insights/query/{region}/prom/api/v1/query_range` with `application/x-www-form-urlencoded` parameters.
+ */
+ post: operations["insights_post_promQueryRange"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/insights/query/{region}/prom/api/v1/labels": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List label names
+ * @description To list label names, send a GET request to `/v2/insights/query/{region}/prom/api/v1/labels`.
+ */
+ get: operations["insights_get_promLabels"];
+ put?: never;
+ /**
+ * List label names
+ * @description To list label names, send a POST request to `/v2/insights/query/{region}/prom/api/v1/labels` with `application/x-www-form-urlencoded` parameters.
+ */
+ post: operations["insights_post_promLabels"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/insights/query/{region}/prom/api/v1/label/{name}/values": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List values for a label
+ * @description To list values for a label name, send a GET request to `/v2/insights/query/{region}/prom/api/v1/label/{name}/values`.
+ */
+ get: operations["insights_get_promLabelValues"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/insights/query/{region}/prom/api/v1/series": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Find series by label selectors
+ * @description To find series matching one or more selectors, send a GET request to `/v2/insights/query/{region}/prom/api/v1/series`.
+ */
+ get: operations["insights_get_promSeries"];
+ put?: never;
+ /**
+ * Find series by label selectors
+ * @description To find series matching one or more selectors, send a POST request to `/v2/insights/query/{region}/prom/api/v1/series` with `application/x-www-form-urlencoded` parameters.
+ */
+ post: operations["insights_post_promSeries"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/insights/query/{region}/logs/search": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Search logs
+ * @description To search log records in a region, send a POST request to `/v2/insights/query/{region}/logs/search` with a JSON body describing the time range, optional filter, ordering, and pagination.
+ * The time range must not exceed 7 days. `pagination.limit` defaults to 100 and is clamped to 1000. Cursor pagination requires ordering by `timestamp` alone; other sort orders return `has_more: false` and cannot be paged.
+ */
+ post: operations["insights_post_logsSearch"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/insights/query/{region}/traces/search": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Search traces
+ * @description To search traces in a region, send a POST request to `/v2/insights/query/{region}/traces/search` with a JSON body describing the time range, optional filter, ordering, and pagination.
+ * Each result is one trace, aggregated from all of its spans in the time range. A trace is included when at least one of its spans matches `filter`. The time range must not exceed 7 days (`168h`). `pagination.limit` defaults to 100 (also used when `limit` is `0`) and must be between 0 and 1000. Results are ordered by `started` descending unless `order_by` is set.
+ * JSON field names use snake_case (`time_range`, `order_by`, `has_more`, `trace_id`). Unknown request properties, invalid filters, and out-of-range values are rejected with `400`.
+ * Each request searches a single region; there is no multi-region search. Supported regions are `ams2`, `ams3`, `atl1`, `blr1`, `fra1`, `lon1`, `mem1`, `nyc1`, `nyc2`, `nyc3`, `ric1`, `sfo1`, `sfo2`, `sfo3`, `sgp1`, `syd1`, and `tor1`. Requests time out after 60 seconds.
+ * Errors produced by the traces service (`400`) have a `text/plain` body containing a short message. Authentication and authorization errors (`401`, `403`), rate limiting (`429`), and routing errors (for example, `404` for an unknown region) come from the API gateway and use the standard JSON error object with `id` and `message`. `403` is also returned for accounts that are in a trial or not in good standing. If the regional traces backend cannot be reached, the response is `502` with a `text/plain` body.
+ */
+ post: operations["insights_post_tracesSearch"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/insights/query/{region}/traces/{trace_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an existing trace
+ * @description To retrieve a single trace and all of its spans, send a GET request to `/v2/insights/query/{region}/traces/{trace_id}`.
+ * Only spans that started within the lookup window are returned. The window defaults to the last 7 days and can be narrowed with the `from` and `to` query parameters; it must not exceed 7 days, and `from` must not be after `to`. Spans are returned ordered by start time. At most 10,000 spans are returned; `truncated` is `true` when the trace has more.
+ * A trace ID with no spans in the window returns `404`, as do malformed or uppercase trace IDs. A trace is only resolvable in the region that ingested it; querying another region also returns `404`.
+ * Supported regions are `ams2`, `ams3`, `atl1`, `blr1`, `fra1`, `lon1`, `mem1`, `nyc1`, `nyc2`, `nyc3`, `ric1`, `sfo1`, `sfo2`, `sfo3`, `sgp1`, `syd1`, and `tor1`. Requests time out after 60 seconds.
+ * Errors produced by the traces service (`400`, and `404` when no trace is found) have a `text/plain` body containing a short message. Authentication and authorization errors (`401`, `403`), rate limiting (`429`), and routing errors (for example, `404` for an unknown region) come from the API gateway and use the standard JSON error object with `id` and `message`. `403` is also returned for accounts that are in a trial or not in good standing. If the regional traces backend cannot be reached, the response is `502` with a `text/plain` body.
+ * JSON field names use snake_case (`trace_id`, `span_id`, `start_time`, `end_time`, `duration_ns`, `service_name`, `status_code`, `parent_span_id`).
+ */
+ get: operations["insights_get_trace"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/insights/query/{region}/spans/search": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Search spans
+ * @description To search spans in a region, send a POST request to `/v2/insights/query/{region}/spans/search` with a JSON body describing the time range, optional filter, ordering, and pagination.
+ * The time range must not exceed 7 days. `pagination.limit` defaults to 100 and must be between 1 and 1000. Results are ordered by `start_time` descending by default. Cursor-based pagination is not yet supported; `pagination.has_more` indicates whether additional spans matched beyond the returned page.
+ */
+ post: operations["insights_post_spansSearch"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/insights/resources": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Resource Signal Enablement
+ * @description To list the resources in your account that have telemetry signal enablement
+ * recorded, along with the current state of their metrics, logs, and traces
+ * signals, send a GET request to `/v2/insights/resources`.
+ *
+ * Results are paginated with `pagination.page` and `pagination.per_page`
+ * (default `20`, maximum `200`) and can be sorted with `pagination.sort` and
+ * `pagination.sort_direction`. Optionally filter by `filter.product_types` and
+ * `filter.regions`.
+ *
+ * A signal is omitted from a resource when no explicit enablement has ever been
+ * recorded for it.
+ */
+ get: operations["insights_list_resources"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/insights/resources/{resource_urn}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Resource Signal Enablement
+ * @description To retrieve the current metrics, logs, and traces signal enablement for a
+ * single resource, send a GET request to
+ * `/v2/insights/resources/{resource_urn}`.
+ *
+ * A `404` is returned when no signal enablement has been recorded for the
+ * resource.
+ */
+ get: operations["insights_get_resource"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/insights/resources/{resource_urn}/signals": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Update Resource Signal Enablement
+ * @description To enable or disable telemetry signals for a resource, send a PUT request to
+ * `/v2/insights/resources/{resource_urn}/signals`.
+ *
+ * This endpoint uses merge semantics. Set `metrics`, `logs`, or `traces` to
+ * `true` or `false` to change that signal; omit a signal to leave it unchanged.
+ * At least one signal must be set.
+ *
+ * `region` is only used when the resource has no existing enablement. On later
+ * updates, omit it or send the stored value; changing the region is rejected
+ * with a `400`.
+ *
+ * Requires both the `insights:update` and `insights:create` scopes.
+ */
+ put: operations["insights_update_resourceSignals"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/consent": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Consent Records
+ * @description To list all signals consent records for your team, send a GET request to
+ * `/v1/consent`. Each record indicates whether signals collection is enabled
+ * for a source: per-environment records (`source: agent`) for Harness Runtime, and
+ * the team-level record (`source: inference`) for Serverless Inference chat
+ * completions.
+ *
+ * Pass `?source=agent` or `?source=inference` to return only that source's
+ * records. When filtered, the response also echoes the `source`.
+ */
+ get: operations["signals_list_consents"];
+ /**
+ * Update Team-Level Consent
+ * @description To enable or disable signals collection for a source that is consented at
+ * the team level, send a PUT request to `/v1/consent?source=inference` with
+ * an `enabled` boolean in the request body. Currently the only team-level
+ * source is `inference`, which covers Serverless Inference chat completions
+ * made by your team.
+ *
+ * To revoke consent, send the same request with `enabled` set to `false`.
+ * The `source` query parameter is required. Per-environment consent for Harness
+ * Runtime environments is managed with `PUT /v1/consent/{environment_id}` instead.
+ */
+ put: operations["signals_update_team_consent"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/consent/{environment_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Consent for an Environment
+ * @description To retrieve the consent record for a specific environment, send a GET
+ * request to `/v1/consent/{environment_id}`. The response includes an `enabled`
+ * field indicating whether signals collection is on for this environment.
+ *
+ * This endpoint only serves per-environment (`source: agent`) records. Team-level
+ * inference consent is read from `GET /v1/consent?source=inference`.
+ */
+ get: operations["signals_get_consent"];
+ /**
+ * Update Consent for an Environment
+ * @description To enable or disable signals collection for a specific environment, send a
+ * PUT request to `/v1/consent/{environment_id}` with an `enabled` boolean in the
+ * request body.
+ *
+ * This endpoint only manages per-environment (`source: agent`) consent. To manage
+ * team-level consent for Serverless Inference, use
+ * `PUT /v1/consent?source=inference` instead.
+ */
+ put: operations["signals_update_consent"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/signals/agents/{environment_id}/sessions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Sessions for an Environment
+ * @description To list signals sessions for a specific environment, send a GET request to
+ * `/v1/signals/agents/{environment_id}/sessions`. Results are paginated using cursor-based
+ * pagination with `limit` and `after` parameters.
+ */
+ get: operations["signals_list_agent_sessions"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/signals/sessions/{session_id}/dialogues": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Dialogues for a Session
+ * @description To list the dialogue turns within a specific session, send a GET request to
+ * `/v1/signals/sessions/{session_id}/dialogues`. Each dialogue represents a
+ * single turn of conversation between a user and the environment, along with
+ * any signals detected. Results are paginated using cursor-based pagination.
+ */
+ get: operations["signals_list_session_dialogues"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/signals/exports": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Export Jobs
+ * @description To list signals export jobs for your team, send a GET request to
+ * `/v1/signals/exports`. Results are paginated using cursor-based pagination
+ * with `limit` and `after` parameters.
+ */
+ get: operations["signals_list_exports"];
+ put?: never;
+ /**
+ * Create an Export Job
+ * @description To create a new signals data export, send a POST request to
+ * `/v1/signals/exports`. To export one Harness Runtime environment, include its
+ * `environment_id` (`type` defaults to `agent`). Deprecated `agent_id` is still
+ * accepted. To export the team's Serverless Inference Signals conversations, set
+ * `type` to `inference` and omit `environment_id` and `agent_id`. You may
+ * optionally filter the export by `signal_type`,
+ * `session_ids`, `start_time`, and `end_time`. Use the export options endpoint
+ * to discover available signal types.
+ *
+ * The export job runs asynchronously. Poll the get export endpoint to check
+ * its status. When complete, use the download endpoint to retrieve a
+ * pre-signed URL.
+ */
+ post: operations["signals_create_export"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/signals/exports/options": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Export Options
+ * @description To retrieve the available filter options for creating an export, send a GET
+ * request to `/v1/signals/exports/options`. The response lists valid signal
+ * types that can be used in the `signal_type` filter when creating an export.
+ */
+ get: operations["signals_get_export_options"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/signals/exports/{export_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Export Job
+ * @description To retrieve the status and details of a signals export job, send a GET
+ * request to `/v1/signals/exports/{export_id}`.
+ */
+ get: operations["signals_get_export"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/signals/exports/{export_id}/download": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Export Download URL
+ * @description To retrieve a pre-signed download URL for a completed export, send a GET
+ * request to `/v1/signals/exports/{export_id}/download`. The export must have
+ * a `complete` status. The URL is temporary and will expire.
+ */
+ get: operations["signals_get_export_download"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/signals/deletions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Data Deletion Jobs
+ * @description To list signals data deletion jobs for your team, newest first, send a GET
+ * request to `/v1/signals/deletions`. Results are paginated using
+ * cursor-based pagination with `limit` and `after` parameters.
+ */
+ get: operations["signals_list_deletions"];
+ put?: never;
+ /**
+ * Create a Data Deletion Job
+ * @description To permanently delete Signals conversation data, send a POST request to
+ * `/v1/signals/deletions`. Deletion cannot be undone.
+ *
+ * Two deletion types are supported:
+ *
+ * - `agent` — deletes Signals conversations for one Harness Runtime environment and
+ * turns off collection for that environment. Requires `environment_id` (the
+ * environment's Environment Config ID). Deprecated `agent_id` is still accepted;
+ * both set and equal is accepted, both set and different returns 400. On create,
+ * matching conversations are hidden from Signals reads immediately. Wait until the
+ * job is `complete` before enabling Signals for the environment again.
+ * - `inference` — deletes Serverless Inference Signals conversations for your
+ * whole team (team-wide; not limited to one endpoint or model) that were
+ * collected at or before the deletion request, and turns off team inference
+ * collection (`source=inference`). Do not send `environment_id` or `agent_id`.
+ * On create, matching conversations are hidden from Signals reads immediately.
+ *
+ * The job runs asynchronously; poll the get endpoint until `status` is
+ * `complete` or `failed`. DigitalOcean may retry transient processing errors
+ * while a job is still active. If a job ends as `failed`, matching
+ * conversations stay hidden and collection stays off; send the same create
+ * request again to retry. Earlier export files are not deleted and remain
+ * available until they expire.
+ *
+ * Note: Deletion removes Signals conversation data for the requested scope.
+ * Aggregated Insights or metrics charts may still show historical summary
+ * datapoints after deletion. Those summaries are not the same as recoverable
+ * conversation content.
+ *
+ * The endpoint is idempotent: if a queued or running job already exists for
+ * the same target, it is returned with `200 OK`. A new job returns
+ * `202 Accepted`. Each team can have a limited number of active jobs;
+ * requests beyond that limit return `429 Too Many Requests`.
+ */
+ post: operations["signals_create_deletion"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/signals/deletions/{deletion_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve a Data Deletion Job
+ * @description To retrieve the status of a signals data deletion job, send a GET request
+ * to `/v1/signals/deletions/{deletion_id}`.
+ */
+ get: operations["signals_get_deletion"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/kubernetes/clusters": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Kubernetes Clusters
+ * @description To list all of the Kubernetes clusters on your account, send a GET request
+ * to `/v2/kubernetes/clusters`.
+ */
+ get: operations["kubernetes_list_clusters"];
+ put?: never;
+ /**
+ * Create a New Kubernetes Cluster
+ * @description To create a new Kubernetes cluster, send a POST request to
+ * `/v2/kubernetes/clusters`. The request must contain at least one node pool
+ * with at least one worker.
+ *
+ * The request may contain a maintenance window policy describing a time period
+ * when disruptive maintenance tasks may be carried out. Omitting the policy
+ * implies that a window will be chosen automatically. See
+ * [here](https://docs.digitalocean.com/products/kubernetes/how-to/upgrade-cluster/)
+ * for details.
+ */
+ post: operations["kubernetes_create_cluster"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/kubernetes/clusters/{cluster_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Kubernetes Cluster
+ * @description To show information about an existing Kubernetes cluster, send a GET request
+ * to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID`.
+ */
+ get: operations["kubernetes_get_cluster"];
+ /**
+ * Update a Kubernetes Cluster
+ * @description To update a Kubernetes cluster, send a PUT request to
+ * `/v2/kubernetes/clusters/$K8S_CLUSTER_ID` and specify one or more of the
+ * attributes below.
+ */
+ put: operations["kubernetes_update_cluster"];
+ post?: never;
+ /**
+ * Delete a Kubernetes Cluster
+ * @description To delete a Kubernetes cluster and all services deployed to it, send a DELETE
+ * request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID`.
+ *
+ * A 204 status code with no body will be returned in response to a successful
+ * request.
+ */
+ delete: operations["kubernetes_delete_cluster"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/kubernetes/clusters/{cluster_id}/destroy_with_associated_resources": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Associated Resources for Cluster Deletion
+ * @description To list the associated billable resources that can be destroyed along with a cluster, send a GET request to the `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/destroy_with_associated_resources` endpoint.
+ */
+ get: operations["kubernetes_list_associatedResources"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/kubernetes/clusters/{cluster_id}/destroy_with_associated_resources/selective": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Selectively Delete a Cluster and its Associated Resources
+ * @description To delete a Kubernetes cluster along with a subset of its associated resources,
+ * send a DELETE request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/destroy_with_associated_resources/selective`.
+ *
+ * The JSON body of the request should include `load_balancers`, `volumes`, or
+ * `volume_snapshots` keys each set to an array of IDs for the associated
+ * resources to be destroyed.
+ *
+ * The IDs can be found by querying the cluster's associated resources endpoint.
+ * Any associated resource not included in the request will remain and continue
+ * to accrue changes on your account.
+ */
+ delete: operations["kubernetes_destroy_associatedResourcesSelective"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/kubernetes/clusters/{cluster_id}/destroy_with_associated_resources/dangerous": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Delete a Cluster and All of its Associated Resources (Dangerous)
+ * @description To delete a Kubernetes cluster with all of its associated resources, send a
+ * DELETE request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/destroy_with_associated_resources/dangerous`.
+ * A 204 status code with no body will be returned in response to a successful request.
+ */
+ delete: operations["kubernetes_destroy_associatedResourcesDangerous"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/kubernetes/clusters/{cluster_id}/kubeconfig": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve the kubeconfig for a Kubernetes Cluster
+ * @description This endpoint returns a kubeconfig file in YAML format. It can be used to
+ * connect to and administer the cluster using the Kubernetes command line tool,
+ * `kubectl`, or other programs supporting kubeconfig files (e.g., client libraries).
+ *
+ * The resulting kubeconfig file uses token-based authentication for clusters
+ * supporting it, and certificate-based authentication otherwise. For a list of
+ * supported versions and more information, see "[How to Connect to a DigitalOcean
+ * Kubernetes Cluster](https://docs.digitalocean.com/products/kubernetes/how-to/connect-to-cluster/)".
+ *
+ * To retrieve a kubeconfig file for use with a Kubernetes cluster, send a GET
+ * request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/kubeconfig`.
+ *
+ * Clusters supporting token-based authentication may define an expiration by
+ * passing a duration in seconds as a query parameter to
+ * `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/kubeconfig?expiry_seconds=$DURATION_IN_SECONDS`.
+ * If not set or 0, then the token will have a 7 day expiry. The query parameter
+ * has no impact for other kubeconfig types.
+ *
+ * Using an `sso` kubeconfig type requires `doctl` to be installed to handle the client side
+ * of the OAuth2 flow.
+ *
+ * Kubernetes Roles granted to a user are derived from that user's
+ * DigitalOcean role. Predefined roles (Owner, Member, Modifier etc.) have an automatic mapping
+ * to Kubernetes roles. Custom roles are not automatically mapped to any Kubernetes roles,
+ * and require [additional configuration](https://docs.digitalocean.com/products/kubernetes/how-to/set-up-custom-rolebindings/)
+ * by a cluster administrator.
+ */
+ get: operations["kubernetes_get_kubeconfig"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/kubernetes/clusters/{cluster_id}/credentials": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Credentials for a Kubernetes Cluster
+ * @description This endpoint returns a JSON object . It can be used to programmatically
+ * construct Kubernetes clients which cannot parse kubeconfig files.
+ *
+ * The resulting JSON object contains token-based authentication for clusters
+ * supporting it, and certificate-based authentication otherwise. For a list of
+ * supported versions and more information, see "[How to Connect to a DigitalOcean
+ * Kubernetes Cluster](https://docs.digitalocean.com/products/kubernetes/how-to/connect-to-cluster/)".
+ *
+ * To retrieve credentials for accessing a Kubernetes cluster, send a GET
+ * request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/credentials`.
+ *
+ * Clusters supporting token-based authentication may define an expiration by
+ * passing a duration in seconds as a query parameter to
+ * `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/credentials?expiry_seconds=$DURATION_IN_SECONDS`.
+ * If not set or 0, then the token will have a 7 day expiry. The query parameter
+ * has no impact in certificate-based authentication.
+ */
+ get: operations["kubernetes_get_credentials"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/kubernetes/clusters/{cluster_id}/upgrades": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Available Upgrades for an Existing Kubernetes Cluster
+ * @description To determine whether a cluster can be upgraded, and the versions to which it
+ * can be upgraded, send a GET request to
+ * `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/upgrades`.
+ */
+ get: operations["kubernetes_get_availableUpgrades"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/kubernetes/clusters/{cluster_id}/upgrade": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Upgrade a Kubernetes Cluster
+ * @description To immediately upgrade a Kubernetes cluster to a newer patch release of
+ * Kubernetes, send a POST request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/upgrade`.
+ * The body of the request must specify a version attribute.
+ *
+ * Available upgrade versions for a cluster can be fetched from
+ * `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/upgrades`.
+ */
+ post: operations["kubernetes_upgrade_cluster"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/kubernetes/clusters/{cluster_id}/node_pools": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Node Pools in a Kubernetes Clusters
+ * @description To list all of the node pools in a Kubernetes clusters, send a GET request to
+ * `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools`.
+ */
+ get: operations["kubernetes_list_nodePools"];
+ put?: never;
+ /**
+ * Add a Node Pool to a Kubernetes Cluster
+ * @description To add an additional node pool to a Kubernetes clusters, send a POST request
+ * to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools` with the following
+ * attributes.
+ */
+ post: operations["kubernetes_add_nodePool"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/kubernetes/clusters/{cluster_id}/node_pools/{node_pool_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve a Node Pool for a Kubernetes Cluster
+ * @description To show information about a specific node pool in a Kubernetes cluster, send
+ * a GET request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID`.
+ */
+ get: operations["kubernetes_get_nodePool"];
+ /**
+ * Update a Node Pool in a Kubernetes Cluster
+ * @description To update the name of a node pool, edit the tags applied to it, or adjust its
+ * number of nodes, send a PUT request to
+ * `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID` with the
+ * following attributes.
+ */
+ put: operations["kubernetes_update_nodePool"];
+ post?: never;
+ /**
+ * Delete a Node Pool in a Kubernetes Cluster
+ * @description To delete a node pool, send a DELETE request to
+ * `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID`.
+ *
+ * A 204 status code with no body will be returned in response to a successful
+ * request. Nodes in the pool will subsequently be drained and deleted.
+ */
+ delete: operations["kubernetes_delete_nodePool"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/kubernetes/clusters/{cluster_id}/node_pools/{node_pool_id}/nodes/{node_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Delete a Node in a Kubernetes Cluster
+ * @description To delete a single node in a pool, send a DELETE request to
+ * `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID/nodes/$NODE_ID`.
+ *
+ * Appending the `skip_drain=1` query parameter to the request causes node
+ * draining to be skipped. Omitting the query parameter or setting its value to
+ * `0` carries out draining prior to deletion.
+ *
+ * Appending the `replace=1` query parameter to the request causes the node to
+ * be replaced by a new one after deletion. Omitting the query parameter or
+ * setting its value to `0` deletes without replacement.
+ */
+ delete: operations["kubernetes_delete_node"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/kubernetes/clusters/{cluster_id}/node_pools/{node_pool_id}/recycle": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Recycle a Kubernetes Node Pool
+ * @deprecated
+ * @description The endpoint has been deprecated. Please use the DELETE
+ * `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID/nodes/$NODE_ID`
+ * method instead.
+ */
+ post: operations["kubernetes_recycle_node_pool"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/kubernetes/clusters/{cluster_id}/user": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve User Information for a Kubernetes Cluster
+ * @description To show information the user associated with a Kubernetes cluster, send a GET
+ * request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/user`.
+ */
+ get: operations["kubernetes_get_clusterUser"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/kubernetes/options": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Available Regions, Node Sizes, and Versions of Kubernetes
+ * @description To list the versions of Kubernetes available for use, the regions that support Kubernetes, and the available node sizes, send a GET request to `/v2/kubernetes/options`.
+ */
+ get: operations["kubernetes_list_options"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/kubernetes/clusters/{cluster_id}/clusterlint": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Fetch Clusterlint Diagnostics for a Kubernetes Cluster
+ * @description To request clusterlint diagnostics for your cluster, send a GET request to
+ * `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/clusterlint`. If the `run_id` query
+ * parameter is provided, then the diagnostics for the specific run is fetched.
+ * By default, the latest results are shown.
+ *
+ * To find out how to address clusterlint feedback, please refer to
+ * [the clusterlint check documentation](https://github.com/digitalocean/clusterlint/blob/master/checks.md).
+ */
+ get: operations["kubernetes_get_clusterLintResults"];
+ put?: never;
+ /**
+ * Run Clusterlint Checks on a Kubernetes Cluster
+ * @description Clusterlint helps operators conform to Kubernetes best practices around
+ * resources, security and reliability to avoid common problems while operating
+ * or upgrading the clusters.
+ *
+ * To request a clusterlint run on your cluster, send a POST request to
+ * `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/clusterlint`. This will run all
+ * checks present in the `doks` group by default, if a request body is not
+ * specified. Optionally specify the below attributes.
+ *
+ * For information about the available checks, please refer to
+ * [the clusterlint check documentation](https://github.com/digitalocean/clusterlint/blob/master/checks.md).
+ */
+ post: operations["kubernetes_run_clusterLint"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/kubernetes/registry": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Add Container Registry to Kubernetes Clusters
+ * @description To integrate the container registry with Kubernetes clusters, send a POST request to `/v2/kubernetes/registry`.
+ */
+ post: operations["kubernetes_add_registry"];
+ /**
+ * Remove Container Registry from Kubernetes Clusters
+ * @description To remove the container registry from Kubernetes clusters, send a DELETE request to `/v2/kubernetes/registry`.
+ */
+ delete: operations["kubernetes_remove_registry"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/kubernetes/registries": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Add Container Registries to Kubernetes Clusters
+ * @description To integrate the container registries with Kubernetes clusters, send a POST request to `/v2/kubernetes/registries`.
+ */
+ post: operations["kubernetes_add_registries"];
+ /**
+ * Remove Container Registries from Kubernetes Clusters
+ * @description To remove the container registries from Kubernetes clusters, send a DELETE request to `/v2/kubernetes/registries`.
+ */
+ delete: operations["kubernetes_remove_registries"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/kubernetes/clusters/{cluster_id}/status_messages": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Fetch Status Messages for a Kubernetes Cluster
+ * @description To retrieve status messages for a Kubernetes cluster, send a GET request to
+ * `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/status_messages`. Status messages inform users of any issues that come up during the cluster lifecycle.
+ */
+ get: operations["kubernetes_get_status_messages"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/load_balancers": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Load Balancers
+ * @description To list all of the load balancer instances on your account, send a GET request
+ * to `/v2/load_balancers`.
+ */
+ get: operations["loadBalancers_list"];
+ put?: never;
+ /**
+ * Create a New Load Balancer
+ * @description To create a new load balancer instance, send a POST request to
+ * `/v2/load_balancers`.
+ *
+ * You can specify the Droplets that will sit behind the load balancer using one
+ * of two methods:
+ *
+ * * Set `droplet_ids` to a list of specific Droplet IDs.
+ * * Set `tag` to the name of a tag. All Droplets with this tag applied will be
+ * assigned to the load balancer. Additional Droplets will be automatically
+ * assigned as they are tagged.
+ *
+ * These methods are mutually exclusive.
+ */
+ post: operations["loadBalancers_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/load_balancers/{lb_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Load Balancer
+ * @description To show information about a load balancer instance, send a GET request to
+ * `/v2/load_balancers/$LOAD_BALANCER_ID`.
+ */
+ get: operations["loadBalancers_get"];
+ /**
+ * Update a Load Balancer
+ * @description To update a load balancer's settings, send a PUT request to
+ * `/v2/load_balancers/$LOAD_BALANCER_ID`. The request should contain a full
+ * representation of the load balancer including existing attributes. It may
+ * contain _one of_ the `droplets_ids` or `tag` attributes as they are mutually
+ * exclusive. **Note that any attribute that is not provided will be reset to its
+ * default value.**
+ */
+ put: operations["loadBalancers_update"];
+ post?: never;
+ /**
+ * Delete a Load Balancer
+ * @description To delete a load balancer instance, disassociating any Droplets assigned to it
+ * and removing it from your account, send a DELETE request to
+ * `/v2/load_balancers/$LOAD_BALANCER_ID`.
+ *
+ * A successful request will receive a 204 status code with no body in response.
+ * This indicates that the request was processed successfully.
+ */
+ delete: operations["loadBalancers_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/load_balancers/{lb_id}/cache": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Delete a Global Load Balancer CDN Cache
+ * @description To delete a Global load balancer CDN cache, send a DELETE request to
+ * `/v2/load_balancers/$LOAD_BALANCER_ID/cache`.
+ *
+ * A successful request will receive a 204 status code with no body in response.
+ * This indicates that the request was processed successfully.
+ */
+ delete: operations["loadBalancers_delete_cache"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/load_balancers/{lb_id}/droplets": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Add Droplets to a Load Balancer
+ * @description To assign a Droplet to a load balancer instance, send a POST request to
+ * `/v2/load_balancers/$LOAD_BALANCER_ID/droplets`. In the body of the request,
+ * there should be a `droplet_ids` attribute containing a list of Droplet IDs.
+ * Individual Droplets can not be added to a load balancer configured with a
+ * Droplet tag. Attempting to do so will result in a "422 Unprocessable Entity"
+ * response from the API.
+ *
+ * No response body will be sent back, but the response code will indicate
+ * success. Specifically, the response code will be a 204, which means that the
+ * action was successful with no returned body data.
+ */
+ post: operations["loadBalancers_add_droplets"];
+ /**
+ * Remove Droplets from a Load Balancer
+ * @description To remove a Droplet from a load balancer instance, send a DELETE request to
+ * `/v2/load_balancers/$LOAD_BALANCER_ID/droplets`. In the body of the request,
+ * there should be a `droplet_ids` attribute containing a list of Droplet IDs.
+ *
+ * No response body will be sent back, but the response code will indicate
+ * success. Specifically, the response code will be a 204, which means that the
+ * action was successful with no returned body data.
+ */
+ delete: operations["loadBalancers_remove_droplets"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/load_balancers/{lb_id}/forwarding_rules": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Add Forwarding Rules to a Load Balancer
+ * @description To add an additional forwarding rule to a load balancer instance, send a POST
+ * request to `/v2/load_balancers/$LOAD_BALANCER_ID/forwarding_rules`. In the body
+ * of the request, there should be a `forwarding_rules` attribute containing an
+ * array of rules to be added.
+ *
+ * No response body will be sent back, but the response code will indicate
+ * success. Specifically, the response code will be a 204, which means that the
+ * action was successful with no returned body data.
+ */
+ post: operations["loadBalancers_add_forwardingRules"];
+ /**
+ * Remove Forwarding Rules from a Load Balancer
+ * @description To remove forwarding rules from a load balancer instance, send a DELETE
+ * request to `/v2/load_balancers/$LOAD_BALANCER_ID/forwarding_rules`. In the
+ * body of the request, there should be a `forwarding_rules` attribute containing
+ * an array of rules to be removed.
+ *
+ * No response body will be sent back, but the response code will indicate
+ * success. Specifically, the response code will be a 204, which means that the
+ * action was successful with no returned body data.
+ */
+ delete: operations["loadBalancers_remove_forwardingRules"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/microvms": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List all MicroVMs
+ * @description To list all of the MicroVMs on your team, send a GET request to `/v2/microvms`.
+ *
+ * The `region`, `name`, and `tag_name` filters combine with AND.
+ */
+ get: operations["microvms_list"];
+ put?: never;
+ /**
+ * Create a MicroVM
+ * @description To create a MicroVM, send a POST request to `/v2/microvms`.
+ *
+ * `name` and `source` are required. Set `source.oci_ref` to create the MicroVM from a
+ * `linux/amd64` container image, or `source.checkpoint_id` to create it from a checkpoint.
+ * With `oci_ref`, `region` and `size` are also required.
+ *
+ * A MicroVM created from an image is returned with `state` set to `creating`. Poll
+ * `GET /v2/microvms/{microvm_id}` until `state` is `running`. A MicroVM created from a
+ * checkpoint is usually returned already `running`.
+ *
+ * All settings are fixed at creation. There is no update endpoint.
+ */
+ post: operations["microvms_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/microvms/options": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List MicroVM options
+ * @description To list the default region, sizes, prices, account limits, and features available to
+ * your team, send a GET request to `/v2/microvms/options`.
+ */
+ get: operations["microvms_get_options"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/microvms/checkpoints": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List checkpoints
+ * @description To list your team's checkpoints, newest first, send a GET request to
+ * `/v2/microvms/checkpoints`. To list one MicroVM's checkpoints, add the `microvm_id` query
+ * parameter.
+ */
+ get: operations["microvmCheckpoints_list"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/microvms/checkpoints/{checkpoint_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve a checkpoint
+ * @description To show information about a checkpoint, send a GET request to
+ * `/v2/microvms/checkpoints/{checkpoint_id}`.
+ */
+ get: operations["microvmCheckpoints_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete a checkpoint
+ * @description To delete a checkpoint, send a DELETE request to `/v2/microvms/checkpoints/{checkpoint_id}`.
+ * You can no longer create MicroVMs from a deleted checkpoint.
+ *
+ * The request returns HTTP 400 while the checkpoint is still being captured. A successful
+ * request returns a `204 No Content` status code.
+ */
+ delete: operations["microvmCheckpoints_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/microvms/{microvm_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve a MicroVM
+ * @description To show information about a MicroVM, send a GET request to `/v2/microvms/{microvm_id}`.
+ *
+ * The endpoint is in the `urls` entry with `default` set to `true`. Its `hostname` is empty
+ * and its `status` is `PENDING` until provisioning finishes.
+ */
+ get: operations["microvms_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete a MicroVM
+ * @description To delete a MicroVM and the data on its disk, send a DELETE request to
+ * `/v2/microvms/{microvm_id}`. The MicroVM's checkpoints are not deleted.
+ *
+ * A successful request returns a `204 No Content` status code.
+ */
+ delete: operations["microvms_delete"];
+ options?: never;
+ head?: never;
+ /**
+ * Update a MicroVM
+ * @description To change a MicroVM's name or tags, send a PATCH request to
+ * `/v2/microvms/{microvm_id}`.
+ *
+ * The MicroVM must be running or paused. Omitted fields keep their current
+ * value. Every other field is fixed at create; sending one (for example
+ * `size` or `region`) is rejected with a `400` status code, and changing it
+ * means creating a new MicroVM.
+ *
+ * `tags` replaces the whole tag set: tags not in the list are removed, and an
+ * empty list removes every tag.
+ */
+ patch: operations["microvms_update"];
+ trace?: never;
+ };
+ "/v2/microvms/{microvm_id}/urls": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Add a URL to a MicroVM
+ * @description To add a public URL to a MicroVM, send a POST request to
+ * `/v2/microvms/{microvm_id}/urls`.
+ *
+ * The URL routes to `port`, which must be one of the ports declared at create;
+ * the MicroVM's port set cannot change. The call returns once the URL is
+ * recorded; its `status` is `PENDING` until the route is published.
+ *
+ * The MicroVM must be running or paused. A MicroVM can have at most 10 URLs,
+ * the default one included.
+ */
+ post: operations["microvmURLs_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/microvms/{microvm_id}/urls/{url_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Remove a URL from a MicroVM
+ * @description To remove a public URL from a MicroVM, send a DELETE request to
+ * `/v2/microvms/{microvm_id}/urls/{url_id}`. The URL stops serving traffic.
+ * The system default URL cannot be removed.
+ *
+ * A successful request returns a `204 No Content` status code.
+ */
+ delete: operations["microvmURLs_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/microvms/{microvm_id}/access_tokens": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List the access tokens of a MicroVM
+ * @description To list the live access tokens of a MicroVM, send a GET request to
+ * `/v2/microvms/{microvm_id}/access_tokens`. Tokens are returned oldest first.
+ * Token values are never returned. The `id` of an entry revokes the token
+ * with DELETE `/v2/microvms/{microvm_id}/access_tokens/{token_id}`.
+ */
+ get: operations["microvmAccessTokens_list"];
+ put?: never;
+ /**
+ * Create an access token for a MicroVM
+ * @description To create an API token that grants access to the public endpoint of one
+ * MicroVM only, send a POST request to
+ * `/v2/microvms/{microvm_id}/access_tokens`.
+ *
+ * The token value is returned once, in this response. Save it; list never
+ * returns it. To recover a lost token, revoke it and create a new one.
+ *
+ * The token works on every URL of the MicroVM: the default URL and any extra
+ * URL added with POST `/v2/microvms/{microvm_id}/urls`. This token does not
+ * restrict team tokens: team members with `microvm:access` keep their access
+ * to the MicroVM. A MicroVM can have at most 10 live access tokens. Deleting
+ * the MicroVM revokes its tokens.
+ */
+ post: operations["microvmAccessTokens_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/microvms/{microvm_id}/access_tokens/{token_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Revoke an access token of a MicroVM
+ * @description To revoke an access token, send a DELETE request to
+ * `/v2/microvms/{microvm_id}/access_tokens/{token_id}`. The token stops
+ * working at the edge right away and drops out of the list. Revoke is
+ * permanent; a revoked token cannot be restored.
+ *
+ * A successful request returns a `204 No Content` status code.
+ */
+ delete: operations["microvmAccessTokens_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/microvms/{microvm_id}/pause": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Pause a MicroVM
+ * @description To pause a MicroVM, send a POST request to `/v2/microvms/{microvm_id}/pause`.
+ *
+ * Pausing suspends the MicroVM's processes and preserves its memory, files, and processes.
+ * A paused MicroVM incurs storage charges only. The request returns when the change
+ * completes. Pausing a MicroVM that is already paused succeeds. The request returns HTTP 400
+ * when the MicroVM is `creating`, `terminated`, or `failed`.
+ */
+ post: operations["microvms_post_pause"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/microvms/{microvm_id}/resume": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Resume a MicroVM
+ * @description To resume a paused MicroVM, send a POST request to `/v2/microvms/{microvm_id}/resume`.
+ *
+ * The request returns when the change completes. Resuming a MicroVM that is already running
+ * succeeds. The request returns HTTP 400 when the MicroVM is `creating`, `terminated`, or
+ * `failed`.
+ */
+ post: operations["microvms_post_resume"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/microvms/{microvm_id}/exec": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Run a command in a MicroVM
+ * @description To run a command in a MicroVM's workload container, send a POST request to
+ * `/v2/microvms/{microvm_id}/exec`.
+ *
+ * `argv` runs directly, not through a shell, with standard input closed. If the MicroVM is
+ * paused and auto-resume is on, the request resumes it and waits until it is running.
+ *
+ * A command has 60 seconds to finish. Your team can run 32 commands at once and 60 commands
+ * per minute. Rejected requests count toward the per-minute limit.
+ */
+ post: operations["microvms_run_command"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/microvms/{microvm_id}/console": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Open a console in a MicroVM
+ * @description To open an interactive `/bin/sh` console in a MicroVM's workload container, open a
+ * WebSocket connection to `wss://api.digitalocean.com/v2/microvms/{microvm_id}/console`.
+ *
+ * Send the API token in the `Authorization` header of the handshake. Browsers cannot set this
+ * header, so you cannot open the console from browser JavaScript. The image must include
+ * `/bin/sh`. A MicroVM can have four consoles open at a time. If the MicroVM is paused and
+ * auto-resume is on, opening a console resumes it.
+ */
+ get: operations["microvms_get_console"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/microvms/{microvm_id}/port_forward": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Forward a port to a MicroVM
+ * @description To open a TCP connection to a port inside a MicroVM, open a WebSocket connection to
+ * `wss://api.digitalocean.com/v2/microvms/{microvm_id}/port_forward?port={port}`. The
+ * connection goes to `127.0.0.1:{port}` in the MicroVM, so the port does not need to be
+ * public.
+ *
+ * One WebSocket carries one TCP connection. To forward a local port, open a new WebSocket
+ * for each local connection.
+ *
+ * Send the API token in the `Authorization` header of the handshake. Browsers cannot set this
+ * header, so you cannot open a port forward from browser JavaScript. Requires the
+ * `port_forward` feature. If the MicroVM is paused and auto-resume is on, opening a port
+ * forward resumes it.
+ */
+ get: operations["microvms_get_port_forward"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/microvms/{microvm_id}/files": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Download a file from a MicroVM
+ * @description To read a file from a MicroVM's workload container, send a GET request to
+ * `/v2/microvms/{microvm_id}/files?path=`.
+ *
+ * The response body is the raw file content with a `Content-Type` of
+ * `application/octet-stream`. The `Content-Length` and `X-Checksum-Sha256` headers describe the
+ * file as it was when the transfer began. Only regular files of up to 64 MiB can be downloaded.
+ * A MicroVM serves up to 4 downloads at a time.
+ *
+ * Your team needs the `file_transfer` feature. Check `GET /v2/microvms/options`. If the MicroVM
+ * is paused and auto-resume is on, the request resumes it.
+ */
+ get: operations["microvms_get_file"];
+ /**
+ * Upload a file to a MicroVM
+ * @description To write a file into a MicroVM's workload container, send a PUT request to
+ * `/v2/microvms/{microvm_id}/files?path=` with the raw file content as the
+ * request body and a `Content-Type` of `application/octet-stream`.
+ *
+ * The file replaces any existing regular file at `path` atomically. The parent directory
+ * must already exist. The request must carry a `Content-Length` header; chunked bodies are
+ * rejected. A body of up to 64 MiB is accepted, and a `Content-Length` of `0` writes an empty
+ * file. Pass `sha256` to have the API verify the content before it replaces the target.
+ *
+ * Your team needs the `file_transfer` feature. Check `GET /v2/microvms/options`. If the MicroVM
+ * is paused and auto-resume is on, the request resumes it.
+ */
+ put: operations["microvms_upload_file"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/microvms/{microvm_id}/checkpoints": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Create a checkpoint of a MicroVM
+ * @description To create a checkpoint of a running or paused MicroVM, send a POST request to
+ * `/v2/microvms/{microvm_id}/checkpoints`.
+ *
+ * The capture runs in the background and does not change the MicroVM's state. Poll
+ * `GET /v2/microvms/checkpoints/{checkpoint_id}` until `status` is `CHECKPOINT_AVAILABLE`.
+ */
+ post: operations["microvmCheckpoints_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/alerts": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Alert Policies
+ * @description Returns all alert policies that are configured for the given account. To List all alert policies, send a GET request to `/v2/monitoring/alerts`.
+ */
+ get: operations["monitoring_list_alertPolicy"];
+ put?: never;
+ /**
+ * Create Alert Policy
+ * @description To create a new alert, send a POST request to `/v2/monitoring/alerts`.
+ */
+ post: operations["monitoring_create_alertPolicy"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/alerts/{alert_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Alert Policy
+ * @description To retrieve a given alert policy, send a GET request to `/v2/monitoring/alerts/{alert_uuid}`
+ */
+ get: operations["monitoring_get_alertPolicy"];
+ /**
+ * Update an Alert Policy
+ * @description To update en existing policy, send a PUT request to `v2/monitoring/alerts/{alert_uuid}`.
+ */
+ put: operations["monitoring_update_alertPolicy"];
+ post?: never;
+ /**
+ * Delete an Alert Policy
+ * @description To delete an alert policy, send a DELETE request to `/v2/monitoring/alerts/{alert_uuid}`
+ */
+ delete: operations["monitoring_delete_alertPolicy"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/droplet/bandwidth": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Droplet Bandwidth Metrics
+ * @description To retrieve bandwidth metrics for a given Droplet, send a GET request to `/v2/monitoring/metrics/droplet/bandwidth`. Use the `interface` query parameter to specify if the results should be for the `private` or `public` interface. Use the `direction` query parameter to specify if the results should be for `inbound` or `outbound` traffic.
+ * The metrics in the response body are in megabits per second (Mbps).
+ */
+ get: operations["monitoring_get_dropletBandwidthMetrics"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/droplet/cpu": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Droplet CPU Metrics
+ * @description To retrieve CPU metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/cpu`.
+ */
+ get: operations["monitoring_get_DropletCpuMetrics"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/droplet/filesystem_free": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Droplet Filesystem Free Metrics
+ * @description To retrieve filesystem free metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/filesystem_free`.
+ */
+ get: operations["monitoring_get_dropletFilesystemFreeMetrics"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/droplet/filesystem_size": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Droplet Filesystem Size Metrics
+ * @description To retrieve filesystem size metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/filesystem_size`.
+ */
+ get: operations["monitoring_get_dropletFilesystemSizeMetrics"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/droplet/load_1": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Droplet Load1 Metrics
+ * @description To retrieve 1 minute load average metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/load_1`.
+ */
+ get: operations["monitoring_get_dropletLoad1Metrics"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/droplet/load_5": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Droplet Load5 Metrics
+ * @description To retrieve 5 minute load average metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/load_5`.
+ */
+ get: operations["monitoring_get_dropletLoad5Metrics"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/droplet/load_15": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Droplet Load15 Metrics
+ * @description To retrieve 15 minute load average metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/load_15`.
+ */
+ get: operations["monitoring_get_dropletLoad15Metrics"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/droplet/memory_cached": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Droplet Cached Memory Metrics
+ * @description To retrieve cached memory metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/memory_cached`.
+ */
+ get: operations["monitoring_get_dropletMemoryCachedMetrics"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/droplet/memory_free": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Droplet Free Memory Metrics
+ * @description To retrieve free memory metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/memory_free`.
+ */
+ get: operations["monitoring_get_dropletMemoryFreeMetrics"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/droplet/memory_total": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Droplet Total Memory Metrics
+ * @description To retrieve total memory metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/memory_total`.
+ */
+ get: operations["monitoring_get_dropletMemoryTotalMetrics"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/droplet/memory_available": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Droplet Available Memory Metrics
+ * @description To retrieve available memory metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/memory_available`.
+ */
+ get: operations["monitoring_get_dropletMemoryAvailableMetrics"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/apps/memory_percentage": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get App Memory Percentage Metrics
+ * @description To retrieve memory percentage metrics for a given app, send a GET request to `/v2/monitoring/metrics/apps/memory_percentage`.
+ */
+ get: operations["monitoring_get_appMemoryPercentageMetrics"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/apps/cpu_percentage": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get App CPU Percentage Metrics
+ * @description To retrieve cpu percentage metrics for a given app, send a GET request to `/v2/monitoring/metrics/apps/cpu_percentage`.
+ */
+ get: operations["monitoring_get_appCPUPercentageMetrics"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/apps/restart_count": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get App Restart Count Metrics
+ * @description To retrieve restart count metrics for a given app, send a GET request to `/v2/monitoring/metrics/apps/restart_count`.
+ */
+ get: operations["monitoring_get_appRestartCountMetrics.yml"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/frontend_connections_current": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Frontend Total Current Active Connections Metrics
+ * @description To retrieve frontend total current active connections for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_connections_current`.
+ */
+ get: operations["monitoring_get_lb_frontend_connections_current"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/frontend_connections_limit": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Frontend Max Connections Limit Metrics
+ * @description To retrieve frontend max connections limit for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_connections_limit`.
+ */
+ get: operations["monitoring_get_lb_frontend_connections_limit"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/frontend_cpu_utilization": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Frontend Average Percentage CPU Utilization Metrics
+ * @description To retrieve frontend average percentage CPU utilization for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_cpu_utilization`.
+ */
+ get: operations["monitoring_get_lb_frontend_cpu_utilization"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/frontend_firewall_dropped_bytes": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Frontend Firewall Dropped Bytes Metrics
+ * @description To retrieve firewall dropped bytes for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_firewall_dropped_bytes`. This is currently only supported for network load balancers.
+ */
+ get: operations["monitoring_get_lb_frontend_firewall_dropped_bytes"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/frontend_firewall_dropped_packets": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Frontend Firewall Dropped Packets Metrics
+ * @description To retrieve firewall dropped packets per second for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_firewall_dropped_packets`. This is currently only supported for network load balancers.
+ */
+ get: operations["monitoring_get_lb_frontend_firewall_dropped_packets"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/frontend_http_responses": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Frontend HTTP Rate Of Response Code Metrics
+ * @description To retrieve frontend HTTP rate of response code for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_http_responses`.
+ */
+ get: operations["monitoring_get_lb_frontend_http_responses"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/frontend_http_requests_per_second": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Frontend HTTP Requests Metrics
+ * @description To retrieve frontend HTTP requests per second for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_http_requests_per_second`.
+ */
+ get: operations["monitoring_get_lb_frontend_http_requests_per_second"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/frontend_network_throughput_http": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Frontend HTTP Throughput Metrics
+ * @description To retrieve frontend HTTP throughput in bytes per second for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_network_throughput_http`.
+ */
+ get: operations["monitoring_get_lb_frontend_network_throughput_http"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/frontend_network_throughput_udp": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Frontend UDP Throughput Metrics
+ * @description To retrieve frontend UDP throughput in bytes per second for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_network_throughput_udp`.
+ */
+ get: operations["monitoring_get_lb_frontend_network_throughput_udp"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/frontend_network_throughput_tcp": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Frontend TCP Throughput Metrics
+ * @description To retrieve frontend TCP throughput in bytes per second for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_network_throughput_tcp`.
+ */
+ get: operations["monitoring_get_lb_frontend_network_throughput_tcp"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/frontend_nlb_tcp_network_throughput": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Network Load Balancer Frontend TCP Throughput Metrics
+ * @description To retrieve frontend TCP throughput in bytes per second for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_nlb_tcp_network_throughput`.
+ */
+ get: operations["monitoring_get_lb_frontend_nlb_tcp_network_throughput"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/frontend_nlb_udp_network_throughput": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Network Load Balancer Frontend UDP Throughput Metrics
+ * @description To retrieve frontend UDP throughput in bytes per second for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_nlb_udp_network_throughput`.
+ */
+ get: operations["monitoring_get_lb_frontend_nlb_udp_network_throughput"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/frontend_tls_connections_current": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Frontend Current TLS Connections Rate Metrics
+ * @description To retrieve frontend current TLS connections rate for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_tls_connections_current`.
+ */
+ get: operations["monitoring_get_lb_frontend_tls_connections_current"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/frontend_tls_connections_limit": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Frontend Max TLS Connections Limit Metrics
+ * @description To retrieve frontend max TLS connections limit for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_tls_connections_limit`.
+ */
+ get: operations["monitoring_get_lb_frontend_tls_connections_limit"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/frontend_tls_connections_exceeding_rate_limit": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Frontend Closed TLS Connections For Exceeded Rate Limit Metrics
+ * @description To retrieve frontend closed TLS connections for exceeded rate limit for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_tls_connections_exceeding_rate_limit`.
+ */
+ get: operations["monitoring_get_lb_frontend_tls_connections_exceeding_rate_limit"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/droplets_http_session_duration_avg": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Droplets Average HTTP Session Duration Metrics
+ * @description To retrieve Droplets average HTTP session duration in seconds for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_session_duration_avg`.
+ */
+ get: operations["monitoring_get_lb_droplets_http_session_duration_avg"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/droplets_http_session_duration_50p": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Droplets 50th Percentile HTTP Session Duration Metrics
+ * @description To retrieve Droplets 50th percentile HTTP session duration in seconds for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_session_duration_50p`.
+ */
+ get: operations["monitoring_get_lb_droplets_http_session_duration_50p"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/droplets_http_session_duration_95p": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Droplets 95th Percentile HTTP Session Duration Metrics
+ * @description To retrieve Droplets 95th percentile HTTP session duration in seconds for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_session_duration_95p`.
+ */
+ get: operations["monitoring_get_lb_droplets_http_session_duration_95p"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/droplets_http_response_time_avg": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Droplets Average HTTP Response Time Metrics
+ * @description To retrieve Droplets average HTTP response time in seconds for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_response_time_avg`.
+ */
+ get: operations["monitoring_get_lb_droplets_http_response_time_avg"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/droplets_http_response_time_50p": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Droplets 50th Percentile HTTP Response Time Metrics
+ * @description To retrieve Droplets 50th percentile HTTP response time in seconds for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_response_time_50p`.
+ */
+ get: operations["monitoring_get_lb_droplets_http_response_time_50p"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/droplets_http_response_time_95p": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Droplets 95th Percentile HTTP Response Time Metrics
+ * @description To retrieve Droplets 95th percentile HTTP response time in seconds for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_response_time_95p`.
+ */
+ get: operations["monitoring_get_lb_droplets_http_response_time_95p"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/droplets_http_response_time_99p": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Droplets 99th Percentile HTTP Response Time Metrics
+ * @description To retrieve Droplets 99th percentile HTTP response time in seconds for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_response_time_99p`.
+ */
+ get: operations["monitoring_get_lb_droplets_http_response_time_99p"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/droplets_queue_size": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Droplets Queue Size Metrics
+ * @description To retrieve Droplets queue size for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_queue_size`.
+ */
+ get: operations["monitoring_get_lb_droplets_queue_size"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/droplets_http_responses": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Droplets HTTP Rate Of Response Code Metrics
+ * @description To retrieve Droplets HTTP rate of response code for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_responses`.
+ */
+ get: operations["monitoring_get_lb_droplets_http_responses"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/droplets_connections": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Droplets Active Connections Metrics
+ * @description To retrieve Droplets active connections for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_connections`.
+ */
+ get: operations["monitoring_get_lb_droplets_connections"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/droplets_health_checks": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Droplets Health Check Status Metrics
+ * @description To retrieve Droplets health check status for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_health_checks`.
+ */
+ get: operations["monitoring_get_lb_droplets_health_checks"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/load_balancer/droplets_downtime": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Load Balancer Droplets Downtime Status Metrics
+ * @description To retrieve Droplets downtime status for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_downtime`.
+ */
+ get: operations["monitoring_get_lb_droplets_downtime"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/droplet_autoscale/current_instances": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Droplet Autoscale Pool Current Size
+ * @description To retrieve the current size for a given Droplet Autoscale Pool, send a GET request to `/v2/monitoring/metrics/droplet_autoscale/current_instances`.
+ */
+ get: operations["monitoring_get_droplet_autoscale_current_instances"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/droplet_autoscale/target_instances": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Droplet Autoscale Pool Target Size
+ * @description To retrieve the target size for a given Droplet Autoscale Pool, send a GET request to `/v2/monitoring/metrics/droplet_autoscale/target_instances`.
+ */
+ get: operations["monitoring_get_droplet_autoscale_target_instances"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/droplet_autoscale/current_cpu_utilization": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Droplet Autoscale Pool Current Average CPU utilization
+ * @description To retrieve the current average CPU utilization for a given Droplet Autoscale Pool, send a GET request to `/v2/monitoring/metrics/droplet_autoscale/current_cpu_utilization`.
+ */
+ get: operations["monitoring_get_droplet_autoscale_current_cpu_utilization.yml"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/droplet_autoscale/target_cpu_utilization": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Droplet Autoscale Pool Target Average CPU utilization
+ * @description To retrieve the target average CPU utilization for a given Droplet Autoscale Pool, send a GET request to `/v2/monitoring/metrics/droplet_autoscale/target_cpu_utilization`.
+ */
+ get: operations["monitoring_get_droplet_autoscale_target_cpu_utilization"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/droplet_autoscale/current_memory_utilization": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Droplet Autoscale Pool Current Average Memory utilization
+ * @description To retrieve the current average memory utilization for a given Droplet Autoscale Pool, send a GET request to `/v2/monitoring/metrics/droplet_autoscale/current_memory_utilization`.
+ */
+ get: operations["monitoring_get_droplet_autoscale_current_memory_utilization"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/droplet_autoscale/target_memory_utilization": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Droplet Autoscale Pool Target Average Memory utilization
+ * @description To retrieve the target average memory utilization for a given Droplet Autoscale Pool, send a GET request to `/v2/monitoring/metrics/droplet_autoscale/target_memory_utilization`.
+ */
+ get: operations["monitoring_get_droplet_autoscale_target_memory_utilization"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/database/mysql/cpu_usage": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Database MySQL CPU Usage Metrics
+ * @description Retrieve CPU usage (percent) for a MySQL cluster. Response is a time series of cluster-level CPU usage. Use **aggregate** to get avg, max, or min over the range.
+ */
+ get: operations["monitoring_get_database_mysql_cpu_usage"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/database/mysql/load": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Database MySQL Load Average Metrics
+ * @description Retrieve load metrics for a MySQL cluster. Use **metric** for the window: **load1** (1-minute), **load5** (5-minute), or **load15** (15-minute). Use **aggregate** to get either the average (avg) or maximum (max) over that window over the time range.
+ */
+ get: operations["monitoring_get_database_mysql_load"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/database/mysql/memory_usage": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Database MySQL Memory Usage Metrics
+ * @description Retrieve memory usage (percent) for a MySQL cluster. Use **aggregate** (avg, max, or min) over the time range.
+ */
+ get: operations["monitoring_get_database_mysql_memory_usage"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/database/mysql/disk_usage": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Database MySQL Disk Usage Metrics
+ * @description Retrieve disk usage (percent) for a MySQL cluster. Use **aggregate** (avg, max, or min) over the time range.
+ */
+ get: operations["monitoring_get_database_mysql_disk_usage"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/database/mysql/threads_connected": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Database MySQL Threads Connected Metrics
+ * @description Retrieve current threads connected for a MySQL service (gauge).
+ */
+ get: operations["monitoring_get_database_mysql_threads_connected"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/database/mysql/threads_created_rate": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Database MySQL Threads Created Rate Metrics
+ * @description Retrieve threads created rate for a MySQL service (per second).
+ */
+ get: operations["monitoring_get_database_mysql_threads_created_rate"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/database/mysql/threads_active": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Database MySQL Threads Active Metrics
+ * @description Retrieve active (running) threads for a MySQL service.
+ */
+ get: operations["monitoring_get_database_mysql_threads_active"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/database/mysql/index_vs_sequential_reads": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Database MySQL Index vs Sequential Reads Metrics
+ * @description Retrieve index vs sequential reads ratio (percent) for a MySQL service — i.e. percentage of reads using an index.
+ */
+ get: operations["monitoring_get_database_mysql_index_vs_sequential_reads"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/database/mysql/op_rates": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Database MySQL Operations Throughput Metrics
+ * @description Retrieve operations rate (per second) for a MySQL service. Use **metric** to choose select, insert, update, or delete.
+ */
+ get: operations["monitoring_get_database_mysql_op_rates"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/database/mysql/schema_throughput": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Database MySQL Schema Throughput Metrics
+ * @description Retrieve table I/O throughput (rows per second) for a schema. Requires **schema** and **metric** (insert, fetch, update, delete).
+ */
+ get: operations["monitoring_get_database_mysql_schema_throughput"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/metrics/database/mysql/schema_latency": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Database MySQL Schema Latency Metrics
+ * @description Retrieve table I/O latency (seconds) for a schema. Requires **schema** and **metric** (insert, fetch, update, delete).
+ */
+ get: operations["monitoring_get_database_mysql_schema_latency"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/sinks/destinations": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Logging Destinations
+ * @description To list all logging destinations, send a GET request to `/v2/monitoring/sinks/destinations`.
+ */
+ get: operations["monitoring_list_destinations"];
+ put?: never;
+ /**
+ * Create Logging Destination
+ * @description To create a new destination, send a POST request to `/v2/monitoring/sinks/destinations`.
+ */
+ post: operations["monitoring_create_destination"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/sinks/destinations/{destination_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Logging Destination
+ * @description To get the details of a destination, send a GET request to `/v2/monitoring/sinks/destinations/${destination_uuid}`.
+ */
+ get: operations["monitoring_get_destination"];
+ put?: never;
+ /**
+ * Update Logging Destination
+ * @description To update the details of a destination, send a PATCH request to `/v2/monitoring/sinks/destinations/${destination_uuid}`.
+ */
+ post: operations["monitoring_update_destination"];
+ /**
+ * Delete Logging Destination
+ * @description To delete a destination and all associated sinks, send a DELETE request to `/v2/monitoring/sinks/destinations/${destination_uuid}`.
+ */
+ delete: operations["monitoring_delete_destination"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/sinks": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Lists all sinks
+ * @description To list all sinks, send a GET request to `/v2/monitoring/sinks`.
+ */
+ get: operations["monitoring_list_sinks"];
+ put?: never;
+ /**
+ * Create Sink
+ * @description To create a new sink, send a POST request to `/v2/monitoring/sinks`. Forwards logs from the
+ * resources identified in `resources` to the specified pre-existing destination.
+ */
+ post: operations["monitoring_create_sink"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/monitoring/sinks/{sink_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Sink
+ * @description To get the details of a sink (resources and destination), send a GET request to `/v2/monitoring/sinks/${sink_uuid}`.
+ */
+ get: operations["monitoring_get_sink"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete Sink
+ * @description To delete a sink, send a DELETE request to `/v2/monitoring/sinks/${sink_uuid}`.
+ */
+ delete: operations["monitoring_delete_sink"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/nfs": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List NFS shares per region
+ * @description To list NFS shares, send a GET request to `/v2/nfs?region=${region}`.
+ *
+ * A successful request will return all NFS shares belonging to the authenticated user.
+ */
+ get: operations["nfs_list"];
+ put?: never;
+ /**
+ * Create a new NFS share
+ * @description To create a new NFS share, send a POST request to `/v2/nfs`.
+ */
+ post: operations["nfs_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/nfs/{nfs_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get an NFS share
+ * @description To get an NFS share, send a GET request to `/v2/nfs/{nfs_id}?region=${region}`.
+ *
+ * A successful request will return the NFS share.
+ */
+ get: operations["nfs_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete an NFS share
+ * @description To delete an NFS share, send a DELETE request to `/v2/nfs/{nfs_id}?region=${region}`.
+ *
+ * A successful request will return a `204 No Content` status code.
+ */
+ delete: operations["nfs_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/nfs/{nfs_id}/actions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Initiate an NFS action
+ * @description To execute an action (such as resize) on a specified NFS share,
+ * send a POST request to `/v2/nfs/{nfs_id}/actions`. In the JSON body
+ * to the request, set the `type` attribute to on of the supported action types:
+ *
+ * | Action | Details |
+ * | -------------------------------- | ----------- |
+ * | `resize` | Resizes an NFS share. Set the size_gib attribute to a desired value in GiB |
+ * | `snapshot` | Takes a snapshot of an NFS share |
+ * | `attach` | Attaches an NFS share to a VPC. Set the vpc_id attribute to the desired VPC ID |
+ * | `detach` | Detaches an NFS share from a VPC. Set the vpc_id attribute to the desired VPC ID |
+ * | `reassign` | Reassigns an NFS share from one VPC to another. Set the old_vpc_id and new_vpc_id attributes to the desired VPC IDs |
+ * | `switch_performance_tier` | Switches the performance tier of an NFS share. Set the performance_tier attribute to the desired tier (e.g., standard, high) |
+ */
+ post: operations["nfs_create_action"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/nfs/snapshots": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List NFS snapshots per region
+ * @description To list all NFS snapshots, send a GET request to `/v2/nfs/snapshots?region=${region}&share_id={share_id}`.
+ *
+ * A successful request will return all NFS snapshots belonging to the authenticated user in the specified region.
+ *
+ * Optionally, you can filter snapshots by a specific NFS share by including the `share_id` query parameter.
+ */
+ get: operations["nfs_list_snapshot"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/nfs/snapshots/{nfs_snapshot_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get an NFS snapshot by ID
+ * @description To get an NFS snapshot, send a GET request to `/v2/nfs/snapshots/{nfs_snapshot_id}?region=${region}`.
+ *
+ * A successful request will return the NFS snapshot.
+ */
+ get: operations["nfs_get_snapshot"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete an NFS snapshot
+ * @description To delete an NFS snapshot, send a DELETE request to `/v2/nfs/snapshots/{nfs_snapshot_id}?region=${region}`.
+ *
+ * A successful request will return a `204 No Content` status code.
+ */
+ delete: operations["nfs_delete_snapshot"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/nfs/shares/{share_id}/access_points": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List NFS access points for a share
+ * @description To list access points for an NFS share, send a GET request to
+ * `/v2/nfs/shares/{share_id}/access_points`. You may use query parameters to filter
+ * by status.
+ *
+ * A successful request will return a list of NFS access points ordered with the default
+ * access point first, then by `created_at` ascending.
+ */
+ get: operations["nfs_list_access_points"];
+ put?: never;
+ /**
+ * Create an NFS access point
+ * @description To create a new access point on an NFS share, send a POST request to
+ * `/v2/nfs/shares/{share_id}/access_points`.
+ *
+ * A successful request will return the newly created access point and an action object.
+ *
+ * The parent share must be in `ACTIVE` or `INACTIVE` status. Validation failures and
+ * precondition errors (such as an ineligible share state) return `400 Bad Request`.
+ * Duplicate name or path conflicts return `409 Conflict`.
+ */
+ post: operations["nfs_create_access_point"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/nfs/access_points/{access_point_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get an NFS access point
+ * @description To get an NFS access point, send a GET request to `/v2/nfs/access_points/{access_point_id}`.
+ *
+ * A successful request will return the NFS access point.
+ */
+ get: operations["nfs_get_access_point"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete an NFS access point
+ * @description To delete an NFS access point, send a DELETE request to
+ * `/v2/nfs/access_points/{access_point_id}`.
+ *
+ * A successful request will soft-delete the access point and return the deleted access point
+ * with status `ACCESS_POINT_DELETED` and an action object indicating the delete operation.
+ *
+ * The default access point (`is_default: true`) cannot be deleted. Access points already
+ * in `ACCESS_POINT_DELETED` or `ACCESS_POINT_FAILED` status return `400 Bad Request`.
+ */
+ delete: operations["nfs_delete_access_point"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/organizations/team": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Create a Team in an Organization
+ * @description To create a new team within an organization, send a POST request to
+ * `/v2/organizations/team`.
+ *
+ * This endpoint must be called in an organization context. Optionally include
+ * `invitations` to invite users to the new team. The `owner` role cannot be
+ * assigned via invitation.
+ */
+ post: operations["organizations_create_team"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/organizations/teams": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Teams in an Organization
+ * @description To list all teams in an organization, send a GET request to
+ * `/v2/organizations/teams`.
+ *
+ * This endpoint must be called in an organization context.
+ */
+ get: operations["organizations_list_teams"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/partner_network_connect/attachments": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List all partner attachments
+ * @description To list all of the Partner Attachments on your account, send a `GET` request to `/v2/partner_network_connect/attachments`.
+ */
+ get: operations["partnerAttachments_list"];
+ put?: never;
+ /**
+ * Create a new partner attachment
+ * @description To create a new partner attachment, send a `POST` request to
+ * `/v2/partner_network_connect/attachments` with a JSON object containing the
+ * required configuration details.
+ */
+ post: operations["partnerAttachments_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/partner_network_connect/attachments/{pa_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an existing partner attachment
+ * @description To get the details of a partner attachment, send a `GET` request to
+ * `/v2/partner_network_connect/attachments/{pa_id}`.
+ */
+ get: operations["partnerAttachments_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete an existing partner attachment
+ * @description To delete an existing partner attachment, send a `DELETE` request to
+ * `/v2/partner_network_connect/attachments/{pa_id}`.
+ */
+ delete: operations["partnerAttachments_delete"];
+ options?: never;
+ head?: never;
+ /**
+ * Update an existing partner attachment
+ * @description To update an existing partner attachment, send a `PATCH` request to
+ * `/v2/partner_network_connect/attachments/{pa_id}` with a JSON object containing the
+ * fields to be updated.
+ */
+ patch: operations["partnerAttachments_patch"];
+ trace?: never;
+ };
+ "/v2/partner_network_connect/attachments/{pa_id}/bgp_auth_key": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get current BGP auth key for the partner attachment
+ * @description To get the current BGP auth key for a partner attachment, send a `GET` request to
+ * `/v2/partner_network_connect/attachments/{pa_id}/bgp_auth_key`.
+ */
+ get: operations["partnerAttachments_get_bgp_auth_key"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/partner_network_connect/attachments/{pa_id}/remote_routes": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List remote routes for a partner attachment
+ * @description To list all remote routes associated with a partner attachment, send a `GET` request to
+ * `/v2/partner_network_connect/attachments/{pa_id}/remote_routes`.
+ */
+ get: operations["partnerAttachments_list_remote_routes"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/partner_network_connect/attachments/{pa_id}/service_key": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get the current service key for the partner attachment
+ * @description To get the current service key for a partner attachment, send a `GET` request to
+ * `/v2/partner_network_connect/attachments/{pa_id}/service_key`.
+ */
+ get: operations["partnerAttachments_get_service_key"];
+ put?: never;
+ /**
+ * Regenerate the service key for the partner attachment
+ * @description This operation generates a new service key for the specified partner attachment. The operation is asynchronous, and the response is an empty JSON object returned with a 202 status code. To poll for the new service key, send a `GET` request to `/v2/partner_network_connect/attachments/{pa_id}/service_key`.
+ */
+ post: operations["partnerAttachments_create_service_key"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/projects": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Projects
+ * @description To list all your projects, send a GET request to `/v2/projects`.
+ */
+ get: operations["projects_list"];
+ put?: never;
+ /**
+ * Create a Project
+ * @description To create a project, send a POST request to `/v2/projects`.
+ */
+ post: operations["projects_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/projects/default": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve the Default Project
+ * @description To get your default project, send a GET request to `/v2/projects/default`.
+ */
+ get: operations["projects_get_default"];
+ /**
+ * Update the Default Project
+ * @description To update you default project, send a PUT request to `/v2/projects/default`. All of the following attributes must be sent.
+ */
+ put: operations["projects_update_default"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ /**
+ * Patch the Default Project
+ * @description To update only specific attributes of your default project, send a PATCH request to `/v2/projects/default`. At least one of the following attributes needs to be sent.
+ */
+ patch: operations["projects_patch_default"];
+ trace?: never;
+ };
+ "/v2/projects/{project_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Project
+ * @description To get a project, send a GET request to `/v2/projects/$PROJECT_ID`.
+ */
+ get: operations["projects_get"];
+ /**
+ * Update a Project
+ * @description To update a project, send a PUT request to `/v2/projects/$PROJECT_ID`. All of the following attributes must be sent.
+ */
+ put: operations["projects_update"];
+ post?: never;
+ /**
+ * Delete an Existing Project
+ * @description To delete a project, send a DELETE request to `/v2/projects/$PROJECT_ID`. To
+ * be deleted, a project must not have any resources assigned to it. Any existing
+ * resources must first be reassigned or destroyed, or you will receive a 412 error.
+ *
+ * A successful request will receive a 204 status code with no body in response.
+ * This indicates that the request was processed successfully.
+ */
+ delete: operations["projects_delete"];
+ options?: never;
+ head?: never;
+ /**
+ * Patch a Project
+ * @description To update only specific attributes of a project, send a PATCH request to `/v2/projects/$PROJECT_ID`. At least one of the following attributes needs to be sent.
+ */
+ patch: operations["projects_patch"];
+ trace?: never;
+ };
+ "/v2/projects/{project_id}/resources": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Project Resources
+ * @description To list all your resources in a project, send a GET request to `/v2/projects/$PROJECT_ID/resources`.
+ *
+ * This endpoint will only return resources that you are authorized to see. For example, to see Droplets in a project, include the `droplet:read` scope.
+ */
+ get: operations["projects_list_resources"];
+ put?: never;
+ /**
+ * Assign Resources to a Project
+ * @description To assign resources to a project, send a POST request to `/v2/projects/$PROJECT_ID/resources`.
+ *
+ * You must have both `project:assign_resource` and `:read` scopes to assign new resources. For example, to assign a Droplet to a project, include both the `project:assign_resource` and `droplet:read` scopes. The `project:update` scope also grants `project:assign_resource`.
+ */
+ post: operations["projects_assign_resources"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/projects/default/resources": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Default Project Resources
+ * @description To list all your resources in your default project, send a GET request to `/v2/projects/default/resources`.
+ *
+ * Only resources that you are authorized to see will be returned. For example, to see Droplets in a project, include the `droplet:read` scope.
+ */
+ get: operations["projects_list_resources_default"];
+ put?: never;
+ /**
+ * Assign Resources to Default Project
+ * @description To assign resources to your default project, send a POST request to `/v2/projects/default/resources`.
+ *
+ * You must have both `project:assign_resource` and `:read` scopes to assign new resources. For example, to assign a Droplet to the default project, include both the `project:assign_resource` and `droplet:read` scopes. The `project:update` scope also grants `project:assign_resource`.
+ */
+ post: operations["projects_assign_resources_default"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/regions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Data Center Regions
+ * @description To list all of the regions that are available, send a GET request to `/v2/regions`.
+ * The response will be a JSON object with a key called `regions`. The value of this will be an array of `region` objects, each of which will contain the standard region attributes.
+ */
+ get: operations["regions_list"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registries": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Container Registries
+ * @description To get information about any container registry in your account, send a GET request to `/v2/registries/`.
+ */
+ get: operations["registries_list"];
+ put?: never;
+ /**
+ * Create Container Registry
+ * @description To create your container registry, send a POST request to `/v2/registries`.
+ *
+ * The `name` becomes part of the URL for images stored in the registry. For
+ * example, if your registry is called `example`, an image in it will have the
+ * URL `registry.digitalocean.com/example/image:tag`.
+ */
+ post: operations["registries_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registries/{registry_name}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get a Container Registry By Name
+ * @description To get information about any container registry in your account, send a GET request to `/v2/registries/{registry_name}`.
+ */
+ get: operations["registries_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete Container Registry By Name
+ * @description To delete your container registry, destroying all container image data stored in it, send a DELETE request to `/v2/registries/{registry_name}`.
+ */
+ delete: operations["registries_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registries/{registry_name}/docker-credentials": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Docker Credentials By Registry Name
+ * @description In order to access your container registry with the Docker client or from a
+ * Kubernetes cluster, you will need to configure authentication. The necessary
+ * JSON configuration can be retrieved by sending a GET request to
+ * `/v2/registries/{registry_name}/docker-credentials`.
+ *
+ * The response will be in the format of a Docker `config.json` file. To use the
+ * config in your Kubernetes cluster, create a Secret with:
+ *
+ * kubectl create secret generic docr \
+ * --from-file=.dockerconfigjson=config.json \
+ * --type=kubernetes.io/dockerconfigjson
+ *
+ * By default, the returned credentials have read-only access to your registry
+ * and cannot be used to push images. This is appropriate for most Kubernetes
+ * clusters. To retrieve read/write credentials, suitable for use with the Docker
+ * client or in a CI system, read_write may be provided as query parameter. For
+ * example: `/v2/registries/{registry_name}/docker-credentials?read_write=true`
+ *
+ * By default, the returned credentials will not expire. To retrieve credentials
+ * with an expiry set, expiry_seconds may be provided as a query parameter. For
+ * example: `/v2/registries/{registry_name}/docker-credentials?expiry_seconds=3600` will return
+ * credentials that expire after one hour.
+ */
+ get: operations["registries_get_dockerCredentials"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registries/subscription": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Subscription Information
+ * @description A subscription is automatically created when you configure your container registry. To get information about your subscription, send a GET request to `/v2/registries/subscription`. It is similar to GET `/v2/registry/subscription`.
+ */
+ get: operations["registries_get_subscription"];
+ put?: never;
+ /**
+ * Update Subscription Tier
+ * @description After creating your registry, you can switch to a different subscription tier to better suit your needs. To do this, send a POST request to `/v2/registries/subscription`. It is similar to POST `/v2/registry/subscription`.
+ */
+ post: operations["registries_update_subscription"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registries/options": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Registry Options (Subscription Tiers and Available Regions)
+ * @description This endpoint serves to provide additional information as to which option values are available when creating a container registry.
+ * There are multiple subscription tiers available for container registry. Each tier allows a different number of image repositories to be created in your registry, and has a different amount of storage and transfer included.
+ * There are multiple regions available for container registry and controls where your data is stored.
+ * To list the available options, send a GET request to `/v2/registries/options`. This is similar to GET `/v2/registry/options`.
+ */
+ get: operations["registries_get_options"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registries/{registry_name}/garbage-collection": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Active Garbage Collection
+ * @description To get information about the currently-active garbage collection for a registry, send a GET request to `/v2/registry/$REGISTRY_NAME/garbage-collection`.
+ */
+ get: operations["registries_get_garbageCollection"];
+ put?: never;
+ /**
+ * Start Garbage Collection
+ * @description Garbage collection enables users to clear out unreferenced blobs (layer &
+ * manifest data) after deleting one or more manifests from a repository. If
+ * there are no unreferenced blobs resulting from the deletion of one or more
+ * manifests, garbage collection is effectively a noop.
+ * [See here for more information](https://docs.digitalocean.com/products/container-registry/how-to/clean-up-container-registry/)
+ * about how and why you should clean up your container registry periodically.
+ *
+ * To request a garbage collection run on your registry, send a POST request to
+ * `/v2/registries/$REGISTRY_NAME/garbage-collection`. This will initiate the
+ * following sequence of events on your registry.
+ *
+ * * Set the registry to read-only mode, meaning no further write-scoped
+ * JWTs will be issued to registry clients. Existing write-scoped JWTs will
+ * continue to work until they expire which can take up to 15 minutes.
+ * * Wait until all existing write-scoped JWTs have expired.
+ * * Scan all registry manifests to determine which blobs are unreferenced.
+ * * Delete all unreferenced blobs from the registry.
+ * * Record the number of blobs deleted and bytes freed, mark the garbage
+ * collection status as `success`.
+ * * Remove the read-only mode restriction from the registry, meaning write-scoped
+ * JWTs will once again be issued to registry clients.
+ */
+ post: operations["registries_run_garbageCollection"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registries/{registry_name}/garbage-collections": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Garbage Collections
+ * @description To get information about past garbage collections for a registry, send a GET request to `/v2/registry/$REGISTRY_NAME/garbage-collections`.
+ */
+ get: operations["registries_list_garbageCollections"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registries/{registry_name}/garbage-collection/{garbage_collection_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Update Garbage Collection
+ * @description To cancel the currently-active garbage collection for a registry, send a PUT request to `/v2/registries/$REGISTRY_NAME/garbage-collection/$GC_UUID` and specify one or more of the attributes below. It is similar to PUT `/v2/registries/$REGISTRY_NAME/garbage-collection/$GC_UUID`.
+ */
+ put: operations["registries_update_garbageCollection"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registries/{registry_name}/repositoriesV2": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Container Registry Repositories (V2)
+ * @description To list all repositories in your container registry, send a GET request to `/v2/registries/$REGISTRY_NAME/repositoriesV2`. It is similar to GET `/v2/registry/$REGISTRY_NAME/repositoriesV2`.
+ */
+ get: operations["registries_list_repositoriesV2"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registries/{registry_name}/repositories/{repository_name}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Delete Container Registry Repository
+ * @description To delete a container repository including all of its tags, send a DELETE request to
+ * `/v2/registries/$REGISTRY_NAME/repositories/$REPOSITORY_NAME`.
+ *
+ * A successful request will receive a 204 status code with no body in response.
+ * This indicates that the request was processed successfully.
+ */
+ delete: operations["registries_delete_repository"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registries/{registry_name}/repositories/{repository_name}/tags": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Container Registry Repository Tags
+ * @description To list all tags in one of your container registry's repository, send a GET
+ * request to `/v2/registries/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/tags`.
+ *
+ * Note that if your repository name contains `/` characters, it must be
+ * URL-encoded in the request URL. For example, to list tags for
+ * `registry.digitalocean.com/example/my/repo`, the path would be
+ * `/v2/registry/example/repositories/my%2Frepo/tags`.
+ *
+ * It is similar to GET `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/tags`.
+ */
+ get: operations["registries_list_repositoryTags"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registries/{registry_name}/repositories/{repository_name}/tags/{repository_tag}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Delete Container Registry Repository Tag
+ * @description To delete a container repository tag in on of our container registries, send a DELETE request to
+ * `/v2/registries/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/tags/$TAG`.
+ *
+ * Note that if your repository name contains `/` characters, it must be
+ * URL-encoded in the request URL. For example, to delete
+ * `registry.digitalocean.com/example/my/repo:mytag`, the path would be
+ * `/v2/registry/example/repositories/my%2Frepo/tags/mytag`.
+ *
+ * A successful request will receive a 204 status code with no body in response.
+ * This indicates that the request was processed successfully. It is similar to DELETE `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/tags/$TAG`.
+ */
+ delete: operations["registries_delete_repositoryTag"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registries/{registry_name}/repositories/{repository_name}/digests": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Container Registry Repository Manifests
+ * @description To list all manifests in your container registry repository, send a GET
+ * request to `/v2/registries/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests`.
+ *
+ * Note that if your repository name contains `/` characters, it must be
+ * URL-encoded in the request URL. For example, to list manifests for
+ * `registry.digitalocean.com/example/my/repo`, the path would be
+ * `/v2/registry/example/repositories/my%2Frepo/digests`.
+ *
+ * It is similar to `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests`.
+ */
+ get: operations["registries_list_repositoryManifests"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registries/{registry_name}/repositories/{repository_name}/digests/{manifest_digest}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Delete Container Registry Repository Manifest
+ * @description To delete a container repository manifest by digest in one of your registries, send a DELETE request to
+ * `/v2/registries/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests/$MANIFEST_DIGEST`.
+ *
+ * Note that if your repository name contains `/` characters, it must be
+ * URL-encoded in the request URL. For example, to delete
+ * `registry.digitalocean.com/example/my/repo@sha256:abcd`, the path would be
+ * `/v2/registry/example/repositories/my%2Frepo/digests/sha256:abcd`.
+ *
+ * A successful request will receive a 204 status code with no body in response.
+ * This indicates that the request was processed successfully.
+ *
+ * It is similar to DELETE `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests/$MANIFEST_DIGEST`.
+ */
+ delete: operations["registries_delete_repositoryManifest"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registries/validate-name": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Validate a Container Registry Name
+ * @description To validate that a container registry name is available for use, send a POST
+ * request to `/v2/registries/validate-name`.
+ *
+ * If the name is both formatted correctly and available, the response code will
+ * be 204 and contain no body. If the name is already in use, the response will
+ * be a 409 Conflict.
+ *
+ * It is similar to `/v2/registry/validate-name`.
+ */
+ post: operations["registries_validate_name"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registry": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Container Registry Information
+ * @deprecated
+ * @description **Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.**
+ *
+ * To get information about your container registry, send a GET
+ * request to `/v2/registry`.
+ *
+ * This operation is not compatible with multiple registries in a DO account. You should use `/v2/registries/{registry_name}` instead.
+ */
+ get: operations["registry_get"];
+ put?: never;
+ /**
+ * Create Container Registry
+ * @deprecated
+ * @description **Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.**
+ *
+ * To create your container registry, send a POST request to `/v2/registry`.
+ *
+ * The `name` becomes part of the URL for images stored in the registry. For
+ * example, if your registry is called `example`, an image in it will have the
+ * URL `registry.digitalocean.com/example/image:tag`.
+ */
+ post: operations["registry_create"];
+ /**
+ * Delete Container Registry
+ * @deprecated
+ * @description **Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.**
+ *
+ * To delete your container registry, destroying all container image
+ * data stored in it, send a DELETE request to `/v2/registry`.
+ *
+ * This operation is not compatible with multiple registries in a DO account. You should use `/v2/registries/{registry_name}` instead.
+ */
+ delete: operations["registry_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registry/subscription": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Subscription
+ * @deprecated
+ * @description **Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.**
+ *
+ * A subscription is automatically created when you configure your
+ * container registry. To get information about your subscription, send a GET
+ * request to `/v2/registry/subscription`.
+ */
+ get: operations["registry_get_subscription"];
+ put?: never;
+ /**
+ * Update Subscription Tier
+ * @deprecated
+ * @description **Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.**
+ *
+ * After creating your registry, you can switch to a different
+ * subscription tier to better suit your needs. To do this, send a POST request
+ * to `/v2/registry/subscription`.
+ */
+ post: operations["registry_update_subscription"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registry/docker-credentials": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Docker Credentials for Container Registry
+ * @deprecated
+ * @description **Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.**
+ *
+ * In order to access your container registry with the Docker client or from a
+ * Kubernetes cluster, you will need to configure authentication. The necessary
+ * JSON configuration can be retrieved by sending a GET request to
+ * `/v2/registry/docker-credentials`.
+ *
+ * The response will be in the format of a Docker `config.json` file. To use the
+ * config in your Kubernetes cluster, create a Secret with:
+ *
+ * kubectl create secret generic docr \
+ * --from-file=.dockerconfigjson=config.json \
+ * --type=kubernetes.io/dockerconfigjson
+ *
+ * By default, the returned credentials have read-only access to your registry
+ * and cannot be used to push images. This is appropriate for most Kubernetes
+ * clusters. To retrieve read/write credentials, suitable for use with the Docker
+ * client or in a CI system, read_write may be provided as query parameter. For
+ * example: `/v2/registry/docker-credentials?read_write=true`
+ *
+ * By default, the returned credentials will not expire. To retrieve credentials
+ * with an expiry set, expiry_seconds may be provided as a query parameter. For
+ * example: `/v2/registry/docker-credentials?expiry_seconds=3600` will return
+ * credentials that expire after one hour.
+ */
+ get: operations["registry_get_dockerCredentials"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registry/validate-name": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Validate a Container Registry Name
+ * @deprecated
+ * @description **Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.**
+ *
+ * To validate that a container registry name is available for use, send a POST
+ * request to `/v2/registry/validate-name`.
+ *
+ * If the name is both formatted correctly and available, the response code will
+ * be 204 and contain no body. If the name is already in use, the response will
+ * be a 409 Conflict.
+ */
+ post: operations["registry_validate_name"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registry/{registry_name}/repositories": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Container Registry Repositories
+ * @deprecated
+ * @description **Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.**
+ *
+ * This endpoint has been deprecated in favor of the _List All Container Registry Repositories [V2]_ endpoint.
+ *
+ * To list all repositories in your container registry, send a GET
+ * request to `/v2/registry/$REGISTRY_NAME/repositories`.
+ */
+ get: operations["registry_list_repositories"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registry/{registry_name}/repositoriesV2": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Container Registry Repositories (V2)
+ * @deprecated
+ * @description **Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.**
+ *
+ * To list all repositories in your container registry, send a GET
+ * request to `/v2/registry/$REGISTRY_NAME/repositoriesV2`.
+ */
+ get: operations["registry_list_repositoriesV2"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registry/{registry_name}/repositories/{repository_name}/tags": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Container Registry Repository Tags
+ * @deprecated
+ * @description **Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.**
+ *
+ * To list all tags in your container registry repository, send a GET
+ * request to `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/tags`.
+ *
+ * Note that if your repository name contains `/` characters, it must be
+ * URL-encoded in the request URL. For example, to list tags for
+ * `registry.digitalocean.com/example/my/repo`, the path would be
+ * `/v2/registry/example/repositories/my%2Frepo/tags`.
+ */
+ get: operations["registry_list_repositoryTags"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registry/{registry_name}/repositories/{repository_name}/tags/{repository_tag}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Delete Container Registry Repository Tag
+ * @deprecated
+ * @description **Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.**
+ *
+ * To delete a container repository tag, send a DELETE request to
+ * `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/tags/$TAG`.
+ *
+ * Note that if your repository name contains `/` characters, it must be
+ * URL-encoded in the request URL. For example, to delete
+ * `registry.digitalocean.com/example/my/repo:mytag`, the path would be
+ * `/v2/registry/example/repositories/my%2Frepo/tags/mytag`.
+ *
+ * A successful request will receive a 204 status code with no body in response.
+ * This indicates that the request was processed successfully.
+ */
+ delete: operations["registry_delete_repositoryTag"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registry/{registry_name}/repositories/{repository_name}/digests": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Container Registry Repository Manifests
+ * @deprecated
+ * @description **Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.**
+ *
+ * To list all manifests in your container registry repository, send a GET
+ * request to `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests`.
+ *
+ * Note that if your repository name contains `/` characters, it must be
+ * URL-encoded in the request URL. For example, to list manifests for
+ * `registry.digitalocean.com/example/my/repo`, the path would be
+ * `/v2/registry/example/repositories/my%2Frepo/digests`.
+ */
+ get: operations["registry_list_repositoryManifests"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registry/{registry_name}/repositories/{repository_name}/digests/{manifest_digest}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Delete Container Registry Repository Manifest
+ * @deprecated
+ * @description **Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.**
+ *
+ * To delete a container repository manifest by digest, send a DELETE request to
+ * `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests/$MANIFEST_DIGEST`.
+ *
+ * Note that if your repository name contains `/` characters, it must be
+ * URL-encoded in the request URL. For example, to delete
+ * `registry.digitalocean.com/example/my/repo@sha256:abcd`, the path would be
+ * `/v2/registry/example/repositories/my%2Frepo/digests/sha256:abcd`.
+ *
+ * A successful request will receive a 204 status code with no body in response.
+ * This indicates that the request was processed successfully.
+ */
+ delete: operations["registry_delete_repositoryManifest"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registry/{registry_name}/garbage-collection": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Active Garbage Collection
+ * @deprecated
+ * @description **Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.**
+ *
+ * To get information about the currently-active garbage collection
+ * for a registry, send a GET request to `/v2/registry/$REGISTRY_NAME/garbage-collection`.
+ */
+ get: operations["registry_get_garbageCollection"];
+ put?: never;
+ /**
+ * Start Garbage Collection
+ * @deprecated
+ * @description **Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.**
+ *
+ * Garbage collection enables users to clear out unreferenced blobs (layer &
+ * manifest data) after deleting one or more manifests from a repository. If
+ * there are no unreferenced blobs resulting from the deletion of one or more
+ * manifests, garbage collection is effectively a noop.
+ * [See here for more information](https://docs.digitalocean.com/products/container-registry/how-to/clean-up-container-registry/)
+ * about how and why you should clean up your container registry periodically.
+ *
+ * To request a garbage collection run on your registry, send a POST request to
+ * `/v2/registry/$REGISTRY_NAME/garbage-collection`. This will initiate the
+ * following sequence of events on your registry.
+ *
+ * * Set the registry to read-only mode, meaning no further write-scoped
+ * JWTs will be issued to registry clients. Existing write-scoped JWTs will
+ * continue to work until they expire which can take up to 15 minutes.
+ * * Wait until all existing write-scoped JWTs have expired.
+ * * Scan all registry manifests to determine which blobs are unreferenced.
+ * * Delete all unreferenced blobs from the registry.
+ * * Record the number of blobs deleted and bytes freed, mark the garbage
+ * collection status as `success`.
+ * * Remove the read-only mode restriction from the registry, meaning write-scoped
+ * JWTs will once again be issued to registry clients.
+ */
+ post: operations["registry_run_garbageCollection"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registry/{registry_name}/garbage-collections": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Garbage Collections
+ * @deprecated
+ * @description **Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.**
+ *
+ * To get information about past garbage collections for a registry,
+ * send a GET request to `/v2/registry/$REGISTRY_NAME/garbage-collections`.
+ */
+ get: operations["registry_list_garbageCollections"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registry/{registry_name}/garbage-collection/{garbage_collection_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Update Garbage Collection
+ * @deprecated
+ * @description **Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.**
+ *
+ * To cancel the currently-active garbage collection for a registry,
+ * send a PUT request to `/v2/registry/$REGISTRY_NAME/garbage-collection/$GC_UUID`
+ * and specify one or more of the attributes below.
+ */
+ put: operations["registry_update_garbageCollection"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/registry/options": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Registry Options (Subscription Tiers and Available Regions)
+ * @deprecated
+ * @description **Note: This endpoint is deprecated and may be removed in a future version. There is no alternative.****Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.**
+ *
+ * This endpoint serves to provide additional information as to which option values
+ * are available when creating a container registry.
+ *
+ * There are multiple subscription tiers available for container registry. Each
+ * tier allows a different number of image repositories to be created in your
+ * registry, and has a different amount of storage and transfer included.
+ *
+ * There are multiple regions available for container registry and controls
+ * where your data is stored.
+ *
+ * To list the available options, send a GET request to
+ * `/v2/registry/options`.
+ */
+ get: operations["registry_get_options"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/reports/droplet_neighbors_ids": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Droplet Neighbors
+ * @description To retrieve a list of all Droplets that are co-located on the same physical
+ * hardware, send a GET request to `/v2/reports/droplet_neighbors_ids`.
+ *
+ * The results will be returned as a JSON object with a key of `neighbor_ids`.
+ * This will be set to an array of arrays. Each array will contain a set of
+ * Droplet IDs for Droplets that share a physical server. An empty array
+ * indicates that all Droplets associated with your account are located on
+ * separate physical hardware.
+ */
+ get: operations["droplets_list_neighborsIds"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/reserved_ips": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Reserved IPs
+ * @description To list all of the reserved IPs available on your account, send a GET request to `/v2/reserved_ips`.
+ */
+ get: operations["reservedIPs_list"];
+ put?: never;
+ /**
+ * Create a New Reserved IP
+ * @description On creation, a reserved IP must be either assigned to a Droplet or reserved to a region.
+ * * To create a new reserved IP assigned to a Droplet, send a POST
+ * request to `/v2/reserved_ips` with the `droplet_id` attribute.
+ *
+ * * To create a new reserved IP reserved to a region, send a POST request to
+ * `/v2/reserved_ips` with the `region` attribute.
+ */
+ post: operations["reservedIPs_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/reserved_ips/{reserved_ip}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Reserved IP
+ * @description To show information about a reserved IP, send a GET request to `/v2/reserved_ips/$RESERVED_IP_ADDR`.
+ */
+ get: operations["reservedIPs_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete a Reserved IP
+ * @description To delete a reserved IP and remove it from your account, send a DELETE request
+ * to `/v2/reserved_ips/$RESERVED_IP_ADDR`.
+ *
+ * A successful request will receive a 204 status code with no body in response.
+ * This indicates that the request was processed successfully.
+ */
+ delete: operations["reservedIPs_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/reserved_ips/{reserved_ip}/actions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Actions for a Reserved IP
+ * @description To retrieve all actions that have been executed on a reserved IP, send a GET request to `/v2/reserved_ips/$RESERVED_IP/actions`.
+ */
+ get: operations["reservedIPsActions_list"];
+ put?: never;
+ /**
+ * Initiate a Reserved IP Action
+ * @description To initiate an action on a reserved IP send a POST request to
+ * `/v2/reserved_ips/$RESERVED_IP/actions`. In the JSON body to the request,
+ * set the `type` attribute to on of the supported action types:
+ *
+ * | Action | Details
+ * |------------|--------
+ * | `assign` | Assigns a reserved IP to a Droplet
+ * | `unassign` | Unassign a reserved IP from a Droplet
+ */
+ post: operations["reservedIPsActions_post"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/reserved_ips/{reserved_ip}/actions/{action_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Reserved IP Action
+ * @description To retrieve the status of a reserved IP action, send a GET request to `/v2/reserved_ips/$RESERVED_IP/actions/$ACTION_ID`.
+ */
+ get: operations["reservedIPsActions_get"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/reserved_ipv6": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Reserved IPv6s
+ * @description To list all of the reserved IPv6s available on your account, send a GET request to `/v2/reserved_ipv6`.
+ */
+ get: operations["reservedIPv6_list"];
+ put?: never;
+ /**
+ * Create a New Reserved IPv6
+ * @description On creation, a reserved IPv6 must be reserved to a region.
+ * * To create a new reserved IPv6 reserved to a region, send a POST request to
+ * `/v2/reserved_ipv6` with the `region_slug` attribute.
+ */
+ post: operations["reservedIPv6_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/reserved_ipv6/{reserved_ipv6}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Reserved IPv6
+ * @description To show information about a reserved IPv6, send a GET request to `/v2/reserved_ipv6/$RESERVED_IPV6`.
+ */
+ get: operations["reservedIPv6_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete a Reserved IPv6
+ * @description To delete a reserved IP and remove it from your account, send a DELETE request
+ * to `/v2/reserved_ipv6/$RESERVED_IPV6`.
+ *
+ * A successful request will receive a 204 status code with no body in response.
+ * This indicates that the request was processed successfully.
+ */
+ delete: operations["reservedIPv6_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/reserved_ipv6/{reserved_ipv6}/actions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Initiate a Reserved IPv6 Action
+ * @description To initiate an action on a reserved IPv6 send a POST request to
+ * `/v2/reserved_ipv6/$RESERVED_IPV6/actions`. In the JSON body to the request,
+ * set the `type` attribute to on of the supported action types:
+ *
+ * | Action | Details
+ * |------------|--------
+ * | `assign` | Assigns a reserved IPv6 to a Droplet
+ * | `unassign` | Unassign a reserved IPv6 from a Droplet
+ */
+ post: operations["reservedIPv6Actions_post"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/byoip_prefixes": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List BYOIP Prefixes
+ * @description To list all BYOIP prefixes, send a GET request to `/v2/byoip_prefixes`.
+ * A successful response will return a list of all BYOIP prefixes associated with the account.
+ */
+ get: operations["byoipPrefixes_list"];
+ put?: never;
+ /**
+ * Create a BYOIP Prefix
+ * @description To create a BYOIP prefix, send a POST request to `/v2/byoip_prefixes`.
+ *
+ * A successful request will initiate the process of bringing your BYOIP Prefix into your account.
+ * The response will include the details of the created prefix, including its UUID and status.
+ */
+ post: operations["byoipPrefixes_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/byoip_prefixes/{byoip_prefix_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get a BYOIP Prefix
+ * @description To get a BYOIP prefix, send a GET request to `/v2/byoip_prefixes/$byoip_prefix_uuid`.
+ *
+ * A successful response will return the details of the specified BYOIP prefix.
+ */
+ get: operations["byoipPrefixes_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete a BYOIP Prefix
+ * @description To delete a BYOIP prefix and remove it from your account, send a DELETE request
+ * to `/v2/byoip_prefixes/$byoip_prefix_uuid`.
+ *
+ * A successful request will receive a 202 status code with no body in response.
+ * This indicates that the request was accepted and the prefix is being deleted.
+ */
+ delete: operations["byoipPrefixes_delete"];
+ options?: never;
+ head?: never;
+ /**
+ * Update a BYOIP Prefix
+ * @description To update a BYOIP prefix, send a PATCH request to `/v2/byoip_prefixes/$byoip_prefix_uuid`.
+ *
+ * Currently, you can update the advertisement status of the prefix.
+ * The response will include the updated details of the prefix.
+ */
+ patch: operations["byoipPrefixes_patch"];
+ trace?: never;
+ };
+ "/v2/byoip_prefixes/{byoip_prefix_uuid}/ips": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List BYOIP Prefix Resources
+ * @description To list resources associated with BYOIP prefixes, send a GET request to `/v2/byoip_prefixes/{byoip_prefix_uuid}/ips`.
+ *
+ * A successful response will return a list of resources associated with the specified BYOIP prefix.
+ */
+ get: operations["byoipPrefixes_list_resources"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/security/scans": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Scans
+ * @description To list all CSPM scans, send a GET request to `/v2/security/scans`.
+ */
+ get: operations["security_list_scans"];
+ put?: never;
+ /**
+ * Create Scan
+ * @description To create a CSPM scan, send a POST request to `/v2/security/scans`.
+ */
+ post: operations["security_create_scan"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/security/scans/{scan_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Scan
+ * @description To get a CSPM scan by ID, send a GET request to `/v2/security/scans/{scan_id}`.
+ */
+ get: operations["security_get_scan"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/security/scans/latest": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Latest Scan
+ * @description To get the latest CSPM scan, send a GET request to `/v2/security/scans/latest`.
+ */
+ get: operations["security_get_latest_scan"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/security/scans/rules": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Create Scan Rule
+ * @description To mark a scan finding as a false positive, send a POST request to
+ * `/v2/security/scans/rules` to create a new scan rule.
+ */
+ post: operations["security_create_scan_rule"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/security/scans/{scan_id}/findings/{finding_uuid}/affected_resources": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Finding Affected Resources
+ * @description To get affected resources for a scan finding, send a GET request to `/v2/security/scans/{scan_id}/findings/{finding_uuid}/affected_resources`.
+ */
+ get: operations["security_list_scan_finding_affected_resources"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/security/settings": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Settings
+ * @description To list CSPM scan settings, send a GET request to `/v2/security/settings`.
+ */
+ get: operations["security_list_settings"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/security/settings/plan": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Update Plan
+ * @description To update CSPM plan coverage, send a PUT request to `/v2/security/settings/plan`.
+ */
+ put: operations["security_update_settings_plan"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/security/settings/suppressions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Create Suppression
+ * @description To suppress scan findings, send a POST request to `/v2/security/settings/suppressions`.
+ */
+ post: operations["security_create_suppression"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/security/settings/suppressions/{suppression_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Delete Suppression
+ * @description To remove a suppression, send a DELETE request to `/v2/security/settings/suppressions/{suppression_uuid}`.
+ */
+ delete: operations["security_delete_suppression"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/security/secrets": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Secrets
+ * @description To list secrets across all configured regions, send a GET request to `/v2/security/secrets`.
+ *
+ * The response includes secret metadata only. Secret values are not returned.
+ * Use `name` to return secrets whose names start with that prefix, and
+ * `include_deleted` to include secrets that are pending deletion.
+ */
+ get: operations["security_list_secrets"];
+ put?: never;
+ /**
+ * Create Secret
+ * @description To create a secret, send a POST request to `/v2/security/secrets`.
+ *
+ * Creating a secret that already exists in the same region returns a `409` response.
+ */
+ post: operations["security_create_secret"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/security/secrets/{secret}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Secret
+ * @description To retrieve a secret and its values, send a GET request to `/v2/security/secrets/{secret}`.
+ *
+ * `region` is required.
+ */
+ get: operations["security_get_secret"];
+ /**
+ * Update Secret
+ * @description To update a secret, send a PUT request to `/v2/security/secrets/{secret}`.
+ *
+ * `version` is the secret's current version. If it does not match, the request
+ * returns a `409` response and the secret is not changed.
+ */
+ put: operations["security_update_secret"];
+ post?: never;
+ /**
+ * Delete Secret
+ * @description To schedule a secret for deletion, send a DELETE request to `/v2/security/secrets/{secret}`.
+ *
+ * `region` is required. The secret is pending deletion and can be restored
+ * until it is permanently removed.
+ */
+ delete: operations["security_delete_secret"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/security/secrets/{secret}/versions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Secret Versions
+ * @description To list all versions of a secret, send a GET request to `/v2/security/secrets/{secret}/versions`.
+ *
+ * `region` is required. Version entries do not include secret values.
+ */
+ get: operations["security_list_secret_versions"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/security/secrets/{secret}/restore": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Restore Secret
+ * @description To restore a secret that is pending deletion, send a POST request to `/v2/security/secrets/{secret}/restore`.
+ *
+ * `region` is required. The response contains the secret metadata and does not
+ * include secret values.
+ */
+ post: operations["security_post_restore_secret"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/sizes": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Droplet Sizes
+ * @description To list all of available Droplet sizes, send a GET request to `/v2/sizes`.
+ * The response will be a JSON object with a key called `sizes`. The value of this will be an array of `size` objects each of which contain the standard size attributes.
+ */
+ get: operations["sizes_list"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/snapshots": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Snapshots
+ * @description To list all of the snapshots available on your account, send a GET request to
+ * `/v2/snapshots`.
+ *
+ * The response will be a JSON object with a key called `snapshots`. This will be
+ * set to an array of `snapshot` objects, each of which will contain the standard
+ * snapshot attributes.
+ *
+ * ### Filtering Results by Resource Type
+ *
+ * It's possible to request filtered results by including certain query parameters.
+ *
+ * #### List Droplet Snapshots
+ *
+ * To retrieve only snapshots based on Droplets, include the `resource_type`
+ * query parameter set to `droplet`. For example, `/v2/snapshots?resource_type=droplet`.
+ *
+ * #### List Volume Snapshots
+ *
+ * To retrieve only snapshots based on volumes, include the `resource_type`
+ * query parameter set to `volume`. For example, `/v2/snapshots?resource_type=volume`.
+ */
+ get: operations["snapshots_list"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/snapshots/{snapshot_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Snapshot
+ * @description To retrieve information about a snapshot, send a GET request to
+ * `/v2/snapshots/$SNAPSHOT_ID`.
+ *
+ * The response will be a JSON object with a key called `snapshot`. The value of
+ * this will be an snapshot object containing the standard snapshot attributes.
+ */
+ get: operations["snapshots_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete a Snapshot
+ * @description Both Droplet and volume snapshots are managed through the `/v2/snapshots/`
+ * endpoint. To delete a snapshot, send a DELETE request to
+ * `/v2/snapshots/$SNAPSHOT_ID`.
+ *
+ * A status of 204 will be given. This indicates that the request was processed
+ * successfully, but that no response body is needed.
+ */
+ delete: operations["snapshots_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/snapshots/{snapshot_id}/regions/{region}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Delete a Snapshot Copy from a Region
+ * @description A Droplet snapshot that has been transferred to additional regions holds an
+ * independent copy in each one. To delete the copy in a single region without
+ * affecting the snapshot or its copies in other regions, send a DELETE request
+ * to `/v2/snapshots/$SNAPSHOT_ID/regions/$REGION`.
+ *
+ * The regions a snapshot holds copies in are listed in the `regions` attribute
+ * of the snapshot. The copy in the snapshot's original region cannot be
+ * deleted individually; to delete the snapshot entirely, use
+ * `DELETE /v2/snapshots/$SNAPSHOT_ID`. This endpoint is only available for
+ * Droplet snapshots.
+ *
+ * A status of 204 will be given. This indicates that the request was processed
+ * successfully, but that no response body is needed.
+ */
+ delete: operations["snapshots_delete_region"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/spaces/keys": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Spaces Access Keys
+ * @description To list Spaces Access Key, send a GET request to `/v2/spaces/keys`. Sort parameter must be used with Sort Direction.
+ */
+ get: operations["spacesKey_list"];
+ put?: never;
+ /**
+ * Create a New Spaces Access Key
+ * @description To create a new Spaces Access Key, send a POST request to `/v2/spaces/keys`.
+ * At the moment, you cannot mix a fullaccess permission with scoped permissions.
+ * A fullaccess permission will be prioritized if fullaccess and scoped permissions are both added.
+ */
+ post: operations["spacesKey_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/spaces/keys/{access_key}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get a Spaces Access Key
+ * @description To get a Spaces Access Key, send a GET request to `/v2/spaces/keys/$ACCESS_KEY`.
+ *
+ * A successful request will return the Access Key.
+ */
+ get: operations["spacesKey_get"];
+ /**
+ * Update Spaces Access Keys
+ * @description To update Spaces Access Key, send a PUT or PATCH request to `/v2/spaces/keys/$ACCESS_KEY`. At the moment, you cannot convert a
+ * fullaccess key to a scoped key or vice versa. You can only update the name of the key.
+ */
+ put: operations["spacesKey_update"];
+ post?: never;
+ /**
+ * Delete a Spaces Access Key
+ * @description To delete a Spaces Access Key, send a DELETE request to `/v2/spaces/keys/$ACCESS_KEY`.
+ *
+ * A successful request will return a `204 No Content` status code.
+ */
+ delete: operations["spacesKey_delete"];
+ options?: never;
+ head?: never;
+ /**
+ * Update Spaces Access Keys
+ * @description To update Spaces Access Key, send a PUT or PATCH request to `/v2/spaces/keys/$ACCESS_KEY`. At the moment, you cannot convert a
+ * fullaccess key to a scoped key or vice versa. You can only update the name of the key.
+ */
+ patch: operations["spacesKey_patch"];
+ trace?: never;
+ };
+ "/v2/tags": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Tags
+ * @description To list all of your tags, you can send a GET request to `/v2/tags`.
+ *
+ * This endpoint will only return tagged resources that you are authorized to see
+ * (e.g. Droplets will only be returned if you have `droplet:read`).
+ */
+ get: operations["tags_list"];
+ put?: never;
+ /**
+ * Create a New Tag
+ * @description To create a tag you can send a POST request to `/v2/tags` with a `name` attribute.
+ */
+ post: operations["tags_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/tags/{tag_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve a Tag
+ * @description To retrieve an individual tag, you can send a `GET` request to
+ * `/v2/tags/$TAG_NAME`.
+ *
+ * This endpoint will only return tagged resources that you are authorized to see.
+ * For example, to see tagged Droplets, include the `droplet:read` scope.
+ */
+ get: operations["tags_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete a Tag
+ * @description A tag can be deleted by sending a `DELETE` request to `/v2/tags/$TAG_NAME`. Deleting a tag also untags all the resources that have previously been tagged by the Tag
+ */
+ delete: operations["tags_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/tags/{tag_id}/resources": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Tag a Resource
+ * @description Resources can be tagged by sending a POST request to
+ * `/v2/tags/$TAG_NAME/resources` with an array of json objects containing
+ * `resource_id` and `resource_type` attributes.
+ *
+ * Currently only tagging of Droplets, Databases, Images, Volumes, and Volume
+ * Snapshots is supported. `resource_type` is expected to be the string `droplet`,
+ * `database`, `image`, `volume` or `volume_snapshot`. `resource_id` is expected
+ * to be the ID of the resource as a string.
+ *
+ * In order to tag a resource, you must have both `tag:create` and `:update` scopes. For example,
+ * to tag a Droplet, you must have `tag:create` and `droplet:update`.
+ */
+ post: operations["tags_assign_resources"];
+ /**
+ * Untag a Resource
+ * @description Resources can be untagged by sending a DELETE request to
+ * `/v2/tags/$TAG_NAME/resources` with an array of json objects containing
+ * `resource_id` and `resource_type` attributes.
+ *
+ * Currently only untagging of Droplets, Databases, Images, Volumes, and Volume
+ * Snapshots is supported. `resource_type` is expected to be the string `droplet`,
+ * `database`, `image`, `volume` or `volume_snapshot`. `resource_id` is expected
+ * to be the ID of the resource as a string.
+ *
+ * In order to untag a resource, you must have both `tag:delete` and `:update` scopes. For example,
+ * to untag a Droplet, you must have `tag:delete` and `droplet:update`.
+ */
+ delete: operations["tags_unassign_resources"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/vector-databases": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Vector Databases
+ * @description To list all of the vector databases on your account, send a GET request to `/v2/vector-databases`. Use the `page` and `per_page` query parameters to paginate the results. The response body contains a `vector_dbs` array of vector database objects and a `total` field with the overall count.
+ */
+ get: operations["vectorDatabases_list"];
+ put?: never;
+ /**
+ * Create a New Vector Database
+ * @description To create a vector database, send a POST request to `/v2/vector-databases`. The response body contains a JSON object with a `vector_db` key holding the newly created database. Its initial `status` is `creating` and changes to `active` once the database is ready to receive traffic.
+ */
+ post: operations["vectorDatabases_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/vector-databases/{id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Vector Database
+ * @description To show information about an existing vector database, send a GET request to `/v2/vector-databases/{id}`. The response body contains a JSON object with a `vector_db` key holding the standard vector database attributes, including an embedded `endpoints` object with the connection information needed to access the database.
+ */
+ get: operations["vectorDatabases_get"];
+ /**
+ * Update a Vector Database
+ * @description To update an existing vector database, send a PUT request to `/v2/vector-databases/{id}`. The response body contains a JSON object with a `vector_db` key holding the updated vector database.
+ */
+ put: operations["vectorDatabases_update"];
+ post?: never;
+ /**
+ * Delete a Vector Database
+ * @description To delete a vector database, send a DELETE request to `/v2/vector-databases/{id}`. Deleting a vector database is irreversible and destroys the underlying instance along with its data.
+ */
+ delete: operations["vectorDatabases_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/vector-databases/{id}/backups": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Backups for a Vector Database
+ * @description To list the available backups for a vector database, send a GET request to `/v2/vector-databases/{id}/backups`. Only backups with a status of `SUCCESS` are returned.
+ */
+ get: operations["vectorDatabases_list_backups"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/vector-databases/{id}/backups/{backup_id}/restore": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve the Status of a Restore
+ * @description To check the status of a restore operation, send a GET request to `/v2/vector-databases/{id}/backups/{backup_id}/restore`. The response body contains the current status of the restore.
+ */
+ get: operations["vectorDatabases_get_restore_status"];
+ put?: never;
+ /**
+ * Restore a Vector Database from a Backup
+ * @description To restore a vector database from a backup, send a POST request to `/v2/vector-databases/{id}/backups/{backup_id}/restore`. The restore runs asynchronously; use the restore-status endpoint to monitor its progress.
+ */
+ post: operations["vectorDatabases_post_restore_backup"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/vector-databases/{id}/credentials": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Admin Credentials for a Vector Database
+ * @description To retrieve the admin credentials for a vector database, send a GET request to `/v2/vector-databases/{id}/credentials`. The response body contains the `user_id` and `api_token` for the admin user provisioned on the cluster.
+ */
+ get: operations["vectorDatabases_get_credentials"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/vector-databases/{id}/resize": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Resize a Vector Database
+ * @description To resize a vector database, send a POST request to `/v2/vector-databases/{id}/resize`. This changes the database's resource tier. The response body contains a JSON object with the updated vector database.
+ */
+ post: operations["vectorDatabases_post_resize"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/vector-databases/{id}/tags": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Update Tags on a Vector Database
+ * @description To update the tags on a vector database, send a PUT request to `/v2/vector-databases/{id}/tags`. The supplied set of tags replaces the database's existing tags.
+ */
+ put: operations["vectorDatabases_update_tags"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/volumes": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Block Storage Volumes
+ * @description To list all of the block storage volumes available on your account, send a GET request to `/v2/volumes`.
+ * ## Filtering Results
+ * ### By Region
+ * The `region` may be provided as query parameter in order to restrict results to volumes available in a specific region. For example: `/v2/volumes?region=nyc1`
+ * ### By Name
+ * It is also possible to list volumes on your account that match a specified name. To do so, send a GET request with the volume's name as a query parameter to `/v2/volumes?name=$VOLUME_NAME`.
+ * **Note:** You can only create one volume per region with the same name.
+ * ### By Name and Region
+ * It is also possible to retrieve information about a block storage volume by name. To do so, send a GET request with the volume's name and the region slug for the region it is located in as query parameters to `/v2/volumes?name=$VOLUME_NAME®ion=nyc1`.
+ */
+ get: operations["volumes_list"];
+ put?: never;
+ /**
+ * Create a New Block Storage Volume
+ * @description To create a new volume, send a POST request to `/v2/volumes`. Optionally, a `filesystem_type` attribute may be provided in order to automatically format the volume's filesystem. Pre-formatted volumes are automatically mounted when attached to Ubuntu, Debian, Fedora, Fedora Atomic, and CentOS Droplets created on or after April 26, 2018. Attaching pre-formatted volumes to Droplets without support for auto-mounting is not recommended.
+ */
+ post: operations["volumes_create"];
+ /**
+ * Delete a Block Storage Volume by Name
+ * @description Block storage volumes may also be deleted by name by sending a DELETE request with the volume's **name** and the **region slug** for the region it is located in as query parameters to `/v2/volumes?name=$VOLUME_NAME®ion=nyc1`.
+ * No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.
+ */
+ delete: operations["volumes_delete_byName"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/volumes/actions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Initiate A Block Storage Action By Volume Name
+ * @description To initiate an action on a block storage volume by Name, send a POST request to
+ * `~/v2/volumes/actions`. The body should contain the appropriate
+ * attributes for the respective action.
+ *
+ * ## Attach a Block Storage Volume to a Droplet
+ *
+ * | Attribute | Details |
+ * | ----------- | ------------------------------------------------------------------- |
+ * | type | This must be `attach` |
+ * | volume_name | The name of the block storage volume |
+ * | droplet_id | Set to the Droplet's ID |
+ * | region | Set to the slug representing the region where the volume is located |
+ *
+ * Each volume may only be attached to a single Droplet. However, up to fifteen
+ * volumes may be attached to a Droplet at a time. Pre-formatted volumes will be
+ * automatically mounted to Ubuntu, Debian, Fedora, Fedora Atomic, and CentOS
+ * Droplets created on or after April 26, 2018 when attached. On older Droplets,
+ * [additional configuration](https://docs.digitalocean.com/products/volumes/how-to/mount/)
+ * is required.
+ *
+ * ## Remove a Block Storage Volume from a Droplet
+ *
+ * | Attribute | Details |
+ * | ----------- | ------------------------------------------------------------------- |
+ * | type | This must be `detach` |
+ * | volume_name | The name of the block storage volume |
+ * | droplet_id | Set to the Droplet's ID |
+ * | region | Set to the slug representing the region where the volume is located |
+ */
+ post: operations["volumeActions_post"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/volumes/snapshots/{snapshot_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Volume Snapshot
+ * @description To retrieve the details of a snapshot that has been created from a volume, send a GET request to `/v2/volumes/snapshots/$VOLUME_SNAPSHOT_ID`.
+ */
+ get: operations["volumeSnapshots_get_byId"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete a Volume Snapshot
+ * @description To delete a volume snapshot, send a DELETE request to
+ * `/v2/volumes/snapshots/$VOLUME_SNAPSHOT_ID`.
+ *
+ * A status of 204 will be given. This indicates that the request was processed
+ * successfully, but that no response body is needed.
+ */
+ delete: operations["volumeSnapshots_delete_byId"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/volumes/{volume_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Block Storage Volume
+ * @description To show information about a block storage volume, send a GET request to `/v2/volumes/$VOLUME_ID`.
+ */
+ get: operations["volumes_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete a Block Storage Volume
+ * @description To delete a block storage volume, destroying all data and removing it from your account, send a DELETE request to `/v2/volumes/$VOLUME_ID`.
+ * No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.
+ */
+ delete: operations["volumes_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/volumes/{volume_id}/actions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Actions for a Volume
+ * @description To retrieve all actions that have been executed on a volume, send a GET request to `/v2/volumes/$VOLUME_ID/actions`.
+ */
+ get: operations["volumeActions_list"];
+ put?: never;
+ /**
+ * Initiate A Block Storage Action By Volume Id
+ * @description To initiate an action on a block storage volume by Id, send a POST request to
+ * `~/v2/volumes/$VOLUME_ID/actions`. The body should contain the appropriate
+ * attributes for the respective action.
+ *
+ * ## Attach a Block Storage Volume to a Droplet
+ *
+ * | Attribute | Details |
+ * | ---------- | ------------------------------------------------------------------- |
+ * | type | This must be `attach` |
+ * | droplet_id | Set to the Droplet's ID |
+ * | region | Set to the slug representing the region where the volume is located |
+ *
+ * Each volume may only be attached to a single Droplet. However, up to fifteen
+ * volumes may be attached to a Droplet at a time. Pre-formatted volumes will be
+ * automatically mounted to Ubuntu, Debian, Fedora, Fedora Atomic, and CentOS
+ * Droplets created on or after April 26, 2018 when attached. On older Droplets,
+ * [additional configuration](https://docs.digitalocean.com/products/volumes/how-to/mount/)
+ * is required.
+ *
+ * ## Remove a Block Storage Volume from a Droplet
+ *
+ * | Attribute | Details |
+ * | ---------- | ------------------------------------------------------------------- |
+ * | type | This must be `detach` |
+ * | droplet_id | Set to the Droplet's ID |
+ * | region | Set to the slug representing the region where the volume is located |
+ *
+ * ## Resize a Volume
+ *
+ * | Attribute | Details |
+ * | -------------- | ------------------------------------------------------------------- |
+ * | type | This must be `resize` |
+ * | size_gigabytes | The new size of the block storage volume in GiB (1024^3) |
+ * | region | Set to the slug representing the region where the volume is located |
+ *
+ * Volumes may only be resized upwards. The maximum size for a volume is 16TiB.
+ */
+ post: operations["volumeActions_post_byId"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/volumes/{volume_id}/actions/{action_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Volume Action
+ * @description To retrieve the status of a volume action, send a GET request to `/v2/volumes/$VOLUME_ID/actions/$ACTION_ID`.
+ */
+ get: operations["volumeActions_get"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/volumes/{volume_id}/snapshots": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Snapshots for a Volume
+ * @description To retrieve the snapshots that have been created from a volume, send a GET request to `/v2/volumes/$VOLUME_ID/snapshots`.
+ */
+ get: operations["volumeSnapshots_list"];
+ put?: never;
+ /**
+ * Create Snapshot from a Volume
+ * @description To create a snapshot from a volume, sent a POST request to `/v2/volumes/$VOLUME_ID/snapshots`.
+ */
+ post: operations["volumeSnapshots_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/vpcs": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All VPCs
+ * @description To list all of the VPCs on your account, send a GET request to `/v2/vpcs`.
+ */
+ get: operations["vpcs_list"];
+ put?: never;
+ /**
+ * Create a New VPC
+ * @description To create a VPC, send a POST request to `/v2/vpcs` specifying the attributes
+ * in the table below in the JSON body.
+ *
+ * **Note:** If you do not currently have a VPC network in a specific datacenter
+ * region, the first one that you create will be set as the default for that
+ * region. The default VPC for a region cannot be changed or deleted.
+ */
+ post: operations["vpcs_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/vpcs/{vpc_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing VPC
+ * @description To show information about an existing VPC, send a GET request to `/v2/vpcs/$VPC_ID`.
+ */
+ get: operations["vpcs_get"];
+ /**
+ * Update a VPC
+ * @description To update information about a VPC, send a PUT request to `/v2/vpcs/$VPC_ID`.
+ */
+ put: operations["vpcs_update"];
+ post?: never;
+ /**
+ * Delete a VPC
+ * @description To delete a VPC, send a DELETE request to `/v2/vpcs/$VPC_ID`. A 204 status
+ * code with no body will be returned in response to a successful request.
+ *
+ * The default VPC for a region can not be deleted. Additionally, a VPC can only
+ * be deleted if it does not contain any member resources. Attempting to delete
+ * a region's default VPC or a VPC that still has members will result in a
+ * 403 Forbidden error response.
+ */
+ delete: operations["vpcs_delete"];
+ options?: never;
+ head?: never;
+ /**
+ * Partially Update a VPC
+ * @description To update a subset of information about a VPC, send a PATCH request to
+ * `/v2/vpcs/$VPC_ID`.
+ */
+ patch: operations["vpcs_patch"];
+ trace?: never;
+ };
+ "/v2/vpcs/{vpc_id}/members": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List the Member Resources of a VPC
+ * @description To list all of the resources that are members of a VPC, send a GET request to
+ * `/v2/vpcs/$VPC_ID/members`.
+ *
+ * To only list resources of a specific type that are members of the VPC,
+ * included a `resource_type` query parameter. For example, to only list Droplets
+ * in the VPC, send a GET request to `/v2/vpcs/$VPC_ID/members?resource_type=droplet`.
+ *
+ * Only resources that you are authorized to see will be returned (e.g. to see Droplets,
+ * you must have `droplet:read`).
+ */
+ get: operations["vpcs_list_members"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/vpcs/{vpc_id}/peerings": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List the Peerings of a VPC
+ * @description To list all of a VPC's peerings, send a GET request to
+ * `/v2/vpcs/$VPC_ID/peerings`.
+ */
+ get: operations["vpcs_list_peerings"];
+ put?: never;
+ /**
+ * Create a Peering with a VPC
+ * @description To create a new VPC peering for a given VPC, send a POST request to
+ * `/v2/vpcs/$VPC_ID/peerings`.
+ */
+ post: operations["vpcs_create_peerings"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/vpcs/{vpc_id}/peerings/{vpc_peering_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ /**
+ * Update a VPC Peering
+ * @description To update the name of a VPC peering in a particular VPC, send a PATCH request
+ * to `/v2/vpcs/$VPC_ID/peerings/$VPC_PEERING_ID` with the new `name` in the
+ * request body.
+ */
+ patch: operations["vpcs_patch_peerings"];
+ trace?: never;
+ };
+ "/v2/vpcs/{vpc_uuid}/routes": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List VPC Routes
+ * @description To list the read-only VPC-scoped routes for a VPC, send a GET request to
+ * `/v2/vpcs/$VPC_UUID/routes`. VPC-scoped routes cannot be created, updated,
+ * or deleted through the public API.
+ */
+ get: operations["vpcRoutes_list"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/vpcs/{vpc_uuid}/subnets": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List VPC Subnets
+ * @description To list all subnets within a VPC, send a GET request to
+ * `/v2/vpcs/$VPC_UUID/subnets`.
+ */
+ get: operations["vpcSubnets_list"];
+ put?: never;
+ /**
+ * Create a VPC Subnet
+ * @description To create a subnet within a VPC, send a POST request to
+ * `/v2/vpcs/$VPC_UUID/subnets` with a name and, optionally, an IP range.
+ */
+ post: operations["vpcSubnets_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/vpcs/{vpc_uuid}/subnets/{subnet_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve a VPC Subnet
+ * @description To retrieve a specific subnet within a VPC, send a GET request to
+ * `/v2/vpcs/$VPC_UUID/subnets/$SUBNET_UUID`.
+ */
+ get: operations["vpcSubnets_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete a VPC Subnet
+ * @description To delete a specific subnet from a VPC, send a DELETE request to
+ * `/v2/vpcs/$VPC_UUID/subnets/$SUBNET_UUID`. A successful request returns a
+ * 204 status code with no response body.
+ */
+ delete: operations["vpcSubnets_delete"];
+ options?: never;
+ head?: never;
+ /**
+ * Update a VPC Subnet
+ * @description To update the name of a specific subnet within a VPC, send a PATCH request
+ * to `/v2/vpcs/$VPC_UUID/subnets/$SUBNET_UUID`.
+ */
+ patch: operations["vpcSubnets_update"];
+ trace?: never;
+ };
+ "/v2/vpcs/{vpc_uuid}/subnets/{subnet_uuid}/members": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List the Member Resources of a VPC Subnet
+ * @description To list all resources that are members of a VPC subnet, send a GET request to
+ * `/v2/vpcs/$VPC_UUID/subnets/$SUBNET_UUID/members`.
+ *
+ * To list only members of a specific type, include the `resource_type` query
+ * parameter. Only resources that you are authorized to view are returned. For
+ * example, viewing Droplets requires the `droplet:read` scope.
+ */
+ get: operations["vpcSubnets_list_members"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/vpcs/{vpc_uuid}/subnets/{subnet_uuid}/routes": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List VPC Subnet Routes
+ * @description To list routes for a VPC subnet, send a GET request to
+ * `/v2/vpcs/$VPC_UUID/subnets/$SUBNET_UUID/routes`. The response includes
+ * VPC-scoped routes propagated into the subnet and subnet-scoped routes.
+ */
+ get: operations["vpcSubnetRoutes_list"];
+ put?: never;
+ /**
+ * Create a VPC Subnet Route
+ * @description To add a static route to a VPC subnet, send a POST request to
+ * `/v2/vpcs/$VPC_UUID/subnets/$SUBNET_UUID/routes`. This route is additional
+ * to the routes the VPC already propagates to the subnet. The server assigns
+ * the route's `id` and `type`.
+ *
+ * Droplet targets must use a numeric ID. A Droplet UUID or another invalid
+ * `target_urns` value returns a 422 response.
+ */
+ post: operations["vpcSubnetRoutes_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/vpcs/{vpc_uuid}/subnets/{subnet_uuid}/routes/{route_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Delete a VPC Subnet Route
+ * @description To delete a user-defined VPC subnet route, send a DELETE request to
+ * `/v2/vpcs/$VPC_UUID/subnets/$SUBNET_UUID/routes/$ROUTE_UUID`. Managed routes
+ * cannot be deleted. A successful request returns a 204 status code with no
+ * response body.
+ */
+ delete: operations["vpcSubnetRoutes_delete"];
+ options?: never;
+ head?: never;
+ /**
+ * Update a VPC Subnet Route
+ * @description To update the next hop for a user-defined VPC subnet route, send a PATCH
+ * request to
+ * `/v2/vpcs/$VPC_UUID/subnets/$SUBNET_UUID/routes/$ROUTE_UUID`. The
+ * `destination_cidr` cannot be changed.
+ *
+ * Droplet targets must use a numeric ID. A Droplet UUID or another invalid
+ * `target_urns` value returns a 422 response.
+ */
+ patch: operations["vpcSubnetRoutes_update"];
+ trace?: never;
+ };
+ "/v2/vpc_peerings": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All VPC Peerings
+ * @description To list all of the VPC peerings on your account, send a GET request to `/v2/vpc_peerings`.
+ */
+ get: operations["vpcPeerings_list"];
+ put?: never;
+ /**
+ * Create a New VPC Peering
+ * @description To create a new VPC Peering, send a POST request to `/v2/vpc_peerings`
+ * specifying a name and a list of two VPC IDs to peer. The response code, 202
+ * Accepted, does not indicate the success or failure of the operation, just
+ * that the request has been accepted for processing.
+ */
+ post: operations["vpcPeerings_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/vpc_peerings/{vpc_peering_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing VPC Peering
+ * @description To show information about an existing VPC Peering, send a GET request to `/v2/vpc_peerings/$VPC_PEERING_ID`.
+ */
+ get: operations["vpcPeerings_get"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete a VPC peering
+ * @description To delete a VPC peering, send a DELETE request to `/v2/vpc_peerings/$VPC_PEERING_ID`.
+ */
+ delete: operations["vpcPeerings_delete"];
+ options?: never;
+ head?: never;
+ /**
+ * Update a VPC peering
+ * @description To update the name of a VPC peering, send a PATCH request to `/v2/vpc_peerings/$VPC_PEERING_ID` with the new `name` in the request body.
+ */
+ patch: operations["vpcPeerings_patch"];
+ trace?: never;
+ };
+ "/v2/vpc_nat_gateways": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All VPC NAT Gateways
+ * @description To list all VPC NAT gateways in your team, send a GET request to `/v2/vpc_nat_gateways`.
+ * The response body will be a JSON object with a key of `vpc_nat_gateways` containing an array of VPC NAT gateway objects.
+ * These each contain the standard VPC NAT gateway attributes.
+ */
+ get: operations["vpcnatgateways_list"];
+ put?: never;
+ /**
+ * Create a New VPC NAT Gateway
+ * @description To create a new VPC NAT gateway, send a POST request to `/v2/vpc_nat_gateways` setting the required attributes.
+ *
+ * The response body will contain a JSON object with a key called `vpc_nat_gateway` containing the standard attributes for the new VPC NAT gateway.
+ */
+ post: operations["vpcnatgateways_create"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/vpc_nat_gateways/{id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing VPC NAT Gateway
+ * @description To show information about an individual VPC NAT gateway, send a GET request to
+ * `/v2/vpc_nat_gateways/$VPC_NAT_GATEWAY_ID`.
+ */
+ get: operations["vpcnatgateways_get"];
+ /**
+ * Update VPC NAT Gateway
+ * @description To update the configuration of an existing VPC NAT Gateway, send a PUT request to
+ * `/v2/vpc_nat_gateways/$VPC_NAT_GATEWAY_ID`. The request must contain a full representation
+ * of the VPC NAT Gateway including existing attributes.
+ */
+ put: operations["vpcnatgateways_update"];
+ post?: never;
+ /**
+ * Delete VPC NAT Gateway
+ * @description To destroy a VPC NAT Gateway, send a DELETE request to the `/v2/vpc_nat_gateways/$VPC_NAT_GATEWAY_ID` endpoint.
+ *
+ * A successful response will include a 202 response code and no content.
+ */
+ delete: operations["vpcnatgateways_delete"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/uptime/checks": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Checks
+ * @description To list all of the Uptime checks on your account, send a GET request to `/v2/uptime/checks`.
+ */
+ get: operations["uptime_list_checks"];
+ put?: never;
+ /**
+ * Create a New Check
+ * @description To create an Uptime check, send a POST request to `/v2/uptime/checks` specifying the attributes
+ * in the table below in the JSON body.
+ */
+ post: operations["uptime_create_check"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/uptime/checks/{check_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Check
+ * @description To show information about an existing check, send a GET request to `/v2/uptime/checks/$CHECK_ID`.
+ */
+ get: operations["uptime_get_check"];
+ /**
+ * Update a Check
+ * @description To update the settings of an Uptime check, send a PUT request to `/v2/uptime/checks/$CHECK_ID`.
+ */
+ put: operations["uptime_update_check"];
+ post?: never;
+ /**
+ * Delete a Check
+ * @description To delete an Uptime check, send a DELETE request to `/v2/uptime/checks/$CHECK_ID`. A 204 status
+ * code with no body will be returned in response to a successful request.
+ *
+ *
+ * Deleting a check will also delete alerts associated with the check.
+ */
+ delete: operations["uptime_delete_check"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/uptime/checks/{check_id}/state": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Check State
+ * @description To show information about an existing check's state, send a GET request to `/v2/uptime/checks/$CHECK_ID/state`.
+ */
+ get: operations["uptime_get_checkState"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/uptime/checks/{check_id}/alerts": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List All Alerts
+ * @description To list all of the alerts for an Uptime check, send a GET request to `/v2/uptime/checks/$CHECK_ID/alerts`.
+ */
+ get: operations["uptime_list_alerts"];
+ put?: never;
+ /**
+ * Create a New Alert
+ * @description To create an Uptime alert, send a POST request to `/v2/uptime/checks/$CHECK_ID/alerts` specifying the attributes
+ * in the table below in the JSON body.
+ */
+ post: operations["uptime_create_alert"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/uptime/checks/{check_id}/alerts/{alert_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Alert
+ * @description To show information about an existing alert, send a GET request to `/v2/uptime/checks/$CHECK_ID/alerts/$ALERT_ID`.
+ */
+ get: operations["uptime_get_alert"];
+ /**
+ * Update an Alert
+ * @description To update the settings of an Uptime alert, send a PUT request to `/v2/uptime/checks/$CHECK_ID/alerts/$ALERT_ID`.
+ */
+ put: operations["uptime_update_alert"];
+ post?: never;
+ /**
+ * Delete an Alert
+ * @description To delete an Uptime alert, send a DELETE request to `/v2/uptime/checks/$CHECK_ID/alerts/$ALERT_ID`. A 204 status
+ * code with no body will be returned in response to a successful request.
+ */
+ delete: operations["uptime_delete_alert"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/agents": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Agents
+ * @description To list all agents, send a GET request to `/v2/gen-ai/agents`.
+ */
+ get: operations["genai_list_agents"];
+ put?: never;
+ /**
+ * Create an Agent
+ * @description To create a new agent, send a POST request to `/v2/gen-ai/agents`. The response body contains a JSON object with the newly created agent object.
+ */
+ post: operations["genai_create_agent"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/agents/{agent_uuid}/api_keys": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Agent API Keys
+ * @description To list all agent API keys, send a GET request to `/v2/gen-ai/agents/{agent_uuid}/api_keys`.
+ */
+ get: operations["genai_list_agent_api_keys"];
+ put?: never;
+ /**
+ * Create an Agent API Key
+ * @description To create an agent API key, send a POST request to `/v2/gen-ai/agents/{agent_uuid}/api_keys`.
+ */
+ post: operations["genai_create_agent_api_key"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/agents/{agent_uuid}/api_keys/{api_key_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Update API Key for an Agent
+ * @description To update an agent API key, send a PUT request to `/v2/gen-ai/agents/{agent_uuid}/api_keys/{api_key_uuid}`.
+ */
+ put: operations["genai_update_agent_api_key"];
+ post?: never;
+ /**
+ * Delete API Key for an Agent
+ * @description To delete an API key for an agent, send a DELETE request to `/v2/gen-ai/agents/{agent_uuid}/api_keys/{api_key_uuid}`.
+ */
+ delete: operations["genai_delete_agent_api_key"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/agents/{agent_uuid}/api_keys/{api_key_uuid}/regenerate": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Regenerate API Key for an Agent
+ * @description To regenerate an agent API key, send a PUT request to `/v2/gen-ai/agents/{agent_uuid}/api_keys/{api_key_uuid}/regenerate`.
+ */
+ put: operations["genai_regenerate_agent_api_key"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/agents/{agent_uuid}/functions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Add Function Route to an Agent
+ * @description To create a function route for an agent, send a POST request to `/v2/gen-ai/agents/{agent_uuid}/functions`.
+ */
+ post: operations["genai_attach_agent_function"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/agents/{agent_uuid}/functions/{function_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Update Function Route for an Agent
+ * @description To update the function route, send a PUT request to `/v2/gen-ai/agents/{agent_uuid}/functions/{function_uuid}`.
+ */
+ put: operations["genai_update_agent_function"];
+ post?: never;
+ /**
+ * Delete Function Route for an Agent
+ * @description To delete a function route from an agent, send a DELETE request to `/v2/gen-ai/agents/{agent_uuid}/functions/{function_uuid}`.
+ */
+ delete: operations["genai_detach_agent_function"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/agents/{agent_uuid}/guardrails": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Attach Guardrails to an Agent
+ * @description To attach guardrails to an agent, send a POST request to `/v2/gen-ai/agents/{agent_uuid}/guardrails`.
+ */
+ post: operations["genai_attach_agent_guardrails"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/agents/{agent_uuid}/guardrails/{guardrail_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Detach a Guardrail from an Agent
+ * @description To detach a guardrail from an agent, send a DELETE request to `/v2/gen-ai/agents/{agent_uuid}/guardrails/{guardrail_uuid}`.
+ */
+ delete: operations["genai_detach_agent_guardrail"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/agents/{agent_uuid}/knowledge_bases": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Attach Knowledge Bases to an Agent
+ * @description To attach knowledge bases to an agent, send a POST request to `/v2/gen-ai/agents/{agent_uuid}/knowledge_bases`
+ */
+ post: operations["genai_attach_knowledge_bases"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/agents/{agent_uuid}/knowledge_bases/{knowledge_base_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Attach Knowledge Base to an Agent
+ * @description To attach a knowledge base to an agent, send a POST request to `/v2/gen-ai/agents/{agent_uuid}/knowledge_bases/{knowledge_base_uuid}`
+ */
+ post: operations["genai_attach_knowledge_base"];
+ /**
+ * Detach Knowledge Base from an Agent
+ * @description To detach a knowledge base from an agent, send a DELETE request to `/v2/gen-ai/agents/{agent_uuid}/knowledge_bases/{knowledge_base_uuid}`.
+ */
+ delete: operations["genai_detach_knowledge_base"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/agents/{parent_agent_uuid}/child_agents/{child_agent_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Update Agent Route for an Agent
+ * @description To update an agent route for an agent, send a PUT request to `/v2/gen-ai/agents/{parent_agent_uuid}/child_agents/{child_agent_uuid}`.
+ */
+ put: operations["genai_update_attached_agent"];
+ /**
+ * Add Agent Route to an Agent
+ * @description To add an agent route to an agent, send a POST request to `/v2/gen-ai/agents/{parent_agent_uuid}/child_agents/{child_agent_uuid}`.
+ */
+ post: operations["genai_attach_agent"];
+ /**
+ * Delete Agent Route for an Agent
+ * @description To delete an agent route from a parent agent, send a DELETE request to `/v2/gen-ai/agents/{parent_agent_uuid}/child_agents/{child_agent_uuid}`.
+ */
+ delete: operations["genai_detach_agent"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/agents/{uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Agent
+ * @description To retrieve details of an agent, GET request to `/v2/gen-ai/agents/{uuid}`. The response body is a JSON object containing the agent.
+ */
+ get: operations["genai_get_agent"];
+ /**
+ * Update an Agent
+ * @description To update an agent, send a PUT request to `/v2/gen-ai/agents/{uuid}`. The response body is a JSON object containing the agent.
+ */
+ put: operations["genai_update_agent"];
+ post?: never;
+ /**
+ * Delete an Agent
+ * @description To delete an agent, send a DELETE request to `/v2/gen-ai/agents/{uuid}`.
+ */
+ delete: operations["genai_delete_agent"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/agents/{uuid}/child_agents": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * View Agent Routes
+ * @description To view agent routes for an agent, send a GET requtest to `/v2/gen-ai/agents/{uuid}/child_agents`.
+ */
+ get: operations["genai_get_agent_children"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/agents/{uuid}/deployment_visibility": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Update Agent Status
+ * @description Check whether an agent is public or private. To update the agent status, send a PUT request to `/v2/gen-ai/agents/{uuid}/deployment_visibility`.
+ */
+ put: operations["genai_update_agent_deployment_visibility"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/agents/{uuid}/usage": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Agent Usage
+ * @description To get agent usage, send a GET request to `/v2/gen-ai/agents/{uuid}/usage`. Returns usage metrics for the specified agent within the provided time range.
+ */
+ get: operations["genai_get_agent_usage"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/agents/{uuid}/versions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Agent Versions
+ * @description To list all agent versions, send a GET request to `/v2/gen-ai/agents/{uuid}/versions`.
+ */
+ get: operations["genai_list_agent_versions"];
+ /**
+ * Rollback to Agent Version
+ * @description To update to a specific agent version, send a PUT request to `/v2/gen-ai/agents/{uuid}/versions`.
+ */
+ put: operations["genai_rollback_to_agent_version"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/anthropic/keys": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Anthropic API Keys
+ * @description To list all Anthropic API keys, send a GET request to `/v2/gen-ai/anthropic/keys`.
+ */
+ get: operations["genai_list_anthropic_api_keys"];
+ put?: never;
+ /**
+ * Create Anthropic API Key
+ * @description To create an Anthropic API key, send a POST request to `/v2/gen-ai/anthropic/keys`.
+ */
+ post: operations["genai_create_anthropic_api_key"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/anthropic/keys/{api_key_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Anthropic API Key
+ * @description To retrieve details of an Anthropic API key, send a GET request to `/v2/gen-ai/anthropic/keys/{api_key_uuid}`.
+ */
+ get: operations["genai_get_anthropic_api_key"];
+ /**
+ * Update Anthropic API Key
+ * @description To update an Anthropic API key, send a PUT request to `/v2/gen-ai/anthropic/keys/{api_key_uuid}`.
+ */
+ put: operations["genai_update_anthropic_api_key"];
+ post?: never;
+ /**
+ * Delete Anthropic API Key
+ * @description To delete an Anthropic API key, send a DELETE request to `/v2/gen-ai/anthropic/keys/{api_key_uuid}`.
+ */
+ delete: operations["genai_delete_anthropic_api_key"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/anthropic/keys/{uuid}/agents": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List agents by Anthropic key
+ * @description List Agents by Anthropic Key.
+ */
+ get: operations["genai_list_agents_by_anthropic_key"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/custom_models": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Custom Models
+ * @description To list custom models, send a GET request to `/v2/gen-ai/custom_models`.
+ */
+ get: operations["genai_list_custom_models"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/custom_models/import": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Import Custom Model
+ * @description To import a custom model, send a POST request to `/v2/gen-ai/custom_models/import`.
+ */
+ post: operations["genai_import_custom_model"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/custom_models/{uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Custom Model
+ * @description To retrieve details of a custom model, send a GET request to `/v2/gen-ai/custom_models/{uuid}`.
+ */
+ get: operations["genai_get_custom_model"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete Custom Model
+ * @description To delete a custom model, send a DELETE request to `/v2/genai/custom_models/{uuid}`.
+ */
+ delete: operations["genai_delete_custom_model"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/custom_models/{uuid}/metadata": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ /**
+ * Update Custom Model Metadata
+ * @description To update custom model metadata, send a PATCH request to `/v2/gen-ai/custom_models/{uuid}/metadata`.
+ */
+ patch: operations["genai_update_custom_model_metadata"];
+ trace?: never;
+ };
+ "/v2/gen-ai/evaluation_datasets": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Evaluation Datasets
+ * @description To list evaluation datasets, send a GET request to `/v2/gen-ai/evaluation_datasets`.
+ */
+ get: operations["genai_list_evaluation_datasets"];
+ put?: never;
+ /**
+ * Create Evaluation Dataset
+ * @description To create an evaluation dataset, send a POST request to `/v2/gen-ai/evaluation_datasets`.
+ */
+ post: operations["genai_create_evaluation_dataset"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/evaluation_datasets/file_upload_presigned_urls": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Create Presigned URLs for Evaluation Dataset File Upload
+ * @description To create presigned URLs for evaluation dataset file upload, send a POST request to `/v2/gen-ai/evaluation_datasets/file_upload_presigned_urls`.
+ */
+ post: operations["genai_create_evaluation_dataset_file_upload_presigned_urls"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/evaluation_datasets/{dataset_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Delete Evaluation Dataset
+ * @description To delete an evaluation dataset, send a DELETE request to `/v2/genai/evaluation_datasets/{dataset_uuid}`. This works for both model and agent evaluation datasets.
+ */
+ delete: operations["genai_delete_evaluation_dataset"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/evaluation_datasets/{dataset_uuid}/download_url": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Download URL for Evaluation Dataset
+ * @description To get a presigned download URL for an evaluation dataset, send a GET request to `/v2/genai/evaluation_datasets/{dataset_uuid}/download_url`.
+ */
+ get: operations["genai_get_evaluation_dataset_download_url"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/evaluation_metrics": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Evaluation Metrics
+ * @description To list all evaluation metrics, send a GET request to `/v2/gen-ai/evaluation_metrics`.
+ */
+ get: operations["genai_list_evaluation_metrics"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/custom_evaluation_metrics": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Create Custom Evaluation Metric
+ * @description To create a custom LLM-as-judge metric for model evaluation, send a POST request to `/v2/gen-ai/custom_evaluation_metrics`.
+ */
+ post: operations["genai_create_custom_evaluation_metric"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/custom_evaluation_metrics/{metric_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Update Custom Evaluation Metric
+ * @description To update a custom metric (issuing a new metric UUID), send a PUT request to `/v2/gen-ai/custom_evaluation_metrics/{metric_uuid}`.
+ */
+ put: operations["genai_update_custom_evaluation_metric"];
+ post?: never;
+ /**
+ * Delete Custom Evaluation Metric
+ * @description To soft-delete a custom model evaluation metric, send a DELETE request to `/v2/gen-ai/custom_evaluation_metrics/{metric_uuid}`.
+ */
+ delete: operations["genai_delete_custom_evaluation_metric"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/evaluation_runs": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Run an Evaluation Test Case
+ * @description To run an evaluation test case, send a POST request to `/v2/gen-ai/evaluation_runs`.
+ */
+ post: operations["genai_run_evaluation_test_case"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/evaluation_runs/{evaluation_run_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Information About an Existing Evaluation Run
+ * @description To retrive information about an existing evaluation run, send a GET request to `/v2/gen-ai/evaluation_runs/{evaluation_run_uuid}`.
+ */
+ get: operations["genai_get_evaluation_run"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/evaluation_runs/{evaluation_run_uuid}/results": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Results of an Evaluation Run
+ * @description To retrieve results of an evaluation run, send a GET request to `/v2/gen-ai/evaluation_runs/{evaluation_run_uuid}/results`.
+ */
+ get: operations["genai_get_evaluation_run_results"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/evaluation_runs/{evaluation_run_uuid}/results/{prompt_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Results of an Evaluation Run Prompt
+ * @description To retrieve results of an evaluation run, send a GET request to `/v2/gen-ai/evaluation_runs/{evaluation_run_uuid}/results/{prompt_id}`.
+ */
+ get: operations["genai_get_evaluation_run_prompt_results"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/evaluation_test_cases": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Evaluation Test Cases
+ * @description To list all evaluation test cases, send a GET request to `/v2/gen-ai/evaluation_test_cases`.
+ */
+ get: operations["genai_list_evaluation_test_cases"];
+ put?: never;
+ /**
+ * Create Evaluation Test Case.
+ * @description To create an evaluation test-case send a POST request to `/v2/gen-ai/evaluation_test_cases`.
+ */
+ post: operations["genai_create_evaluation_test_case"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/evaluation_test_cases/{evaluation_test_case_uuid}/evaluation_runs": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Evaluation Runs by Test Case
+ * @description To list all evaluation runs by test case, send a GET request to `/v2/gen-ai/evaluation_test_cases/{evaluation_test_case_uuid}/evaluation_runs`.
+ */
+ get: operations["genai_list_evaluation_runs_by_test_case"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/evaluation_test_cases/{test_case_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Information About an Existing Evaluation Test Case
+ * @description To retrive information about an existing evaluation test case, send a GET request to `/v2/gen-ai/evaluation_test_case/{test_case_uuid}`.
+ */
+ get: operations["genai_get_evaluation_test_case"];
+ /**
+ * Update an Evaluation Test Case.
+ * @description To update an evaluation test-case send a PUT request to `/v2/gen-ai/evaluation_test_cases/{test_case_uuid}`.
+ */
+ put: operations["genai_update_evaluation_test_case"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/indexing_jobs": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Indexing Jobs for a Knowledge Base
+ * @description To list all indexing jobs for a knowledge base, send a GET request to `/v2/gen-ai/indexing_jobs`.
+ */
+ get: operations["genai_list_indexing_jobs"];
+ put?: never;
+ /**
+ * Start Indexing Job for a Knowledge Base
+ * @description To start an indexing job for a knowledge base, send a POST request to `/v2/gen-ai/indexing_jobs`.
+ */
+ post: operations["genai_create_indexing_job"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/indexing_jobs/{indexing_job_uuid}/data_sources": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Data Sources for Indexing Job for a Knowledge Base
+ * @description To list all datasources for an indexing job, send a GET request to `/v2/gen-ai/indexing_jobs/{indexing_job_uuid}/data_sources`.
+ */
+ get: operations["genai_list_indexing_job_data_sources"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/indexing_jobs/{indexing_job_uuid}/details_signed_url": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Signed URL for Indexing Job Details
+ * @description To get a signed URL for indexing job details, send a GET request to `/v2/gen-ai/indexing_jobs/{uuid}/details_signed_url`.
+ */
+ get: operations["genai_get_indexing_job_details_signed_url"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/indexing_jobs/{uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Status of Indexing Job for a Knowledge Base
+ * @description To get status of an indexing Job for a knowledge base, send a GET request to `/v2/gen-ai/indexing_jobs/{uuid}`.
+ */
+ get: operations["genai_get_indexing_job"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/indexing_jobs/{uuid}/cancel": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Cancel Indexing Job for a Knowledge Base
+ * @description To cancel an indexing job for a knowledge base, send a PUT request to `/v2/gen-ai/indexing_jobs/{uuid}/cancel`.
+ */
+ put: operations["genai_cancel_indexing_job"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/knowledge_bases": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Knowledge Bases
+ * @description To list all knowledge bases, send a GET request to `/v2/gen-ai/knowledge_bases`.
+ */
+ get: operations["genai_list_knowledge_bases"];
+ put?: never;
+ /**
+ * Create a Knowledge Base
+ * @description To create a knowledge base, send a POST request to `/v2/gen-ai/knowledge_bases`.
+ */
+ post: operations["genai_create_knowledge_base"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/knowledge_bases/data_sources/file_upload_presigned_urls": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Create Presigned URLs for Data Source File Upload
+ * @description To create presigned URLs for knowledge base data source file upload, send a POST request to `/v2/gen-ai/knowledge_bases/data_sources/file_upload_presigned_urls`.
+ */
+ post: operations["genai_create_data_source_file_upload_presigned_urls"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Data Sources for a Knowledge Base
+ * @description To list all data sources for a knowledge base, send a GET request to `/v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources`.
+ */
+ get: operations["genai_list_knowledge_base_data_sources"];
+ put?: never;
+ /**
+ * Add Data Source to a Knowledge Base
+ * @description To add a data source to a knowledge base, send a POST request to `/v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources`.
+ */
+ post: operations["genai_create_knowledge_base_data_source"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources/{data_source_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Update Data Source options
+ * @description To update a data source (e.g. chunking options), send a PUT request to `/v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources/{data_source_uuid}`.
+ */
+ put: operations["genai_update_knowledge_base_data_source"];
+ post?: never;
+ /**
+ * Delete a Data Source from a Knowledge Base
+ * @description To delete a data source from a knowledge base, send a DELETE request to `/v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources/{data_source_uuid}`.
+ */
+ delete: operations["genai_delete_knowledge_base_data_source"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/indexing_jobs": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Indexing Jobs for a Knowledge Base
+ * @description To list latest 15 indexing jobs for a knowledge base, send a GET request to `/v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/indexing_jobs`.
+ */
+ get: operations["genai_list_indexing_jobs_by_knowledge_base"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/knowledge_bases/{uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Information About an Existing Knowledge Base
+ * @description To retrive information about an existing knowledge base, send a GET request to `/v2/gen-ai/knowledge_bases/{uuid}`.
+ */
+ get: operations["genai_get_knowledge_base"];
+ /**
+ * Update a Knowledge Base
+ * @description To update a knowledge base, send a PUT request to `/v2/gen-ai/knowledge_bases/{uuid}`.
+ */
+ put: operations["genai_update_knowledge_base"];
+ post?: never;
+ /**
+ * Delete a Knowledge Base
+ * @description To delete a knowledge base, send a DELETE request to `/v2/gen-ai/knowledge_bases/{uuid}`.
+ */
+ delete: operations["genai_delete_knowledge_base"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/model_evaluation/datasets/file_upload_presigned_urls": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Create Presigned URLs for Model Evaluation Dataset File Upload
+ * @description To create presigned URLs for model evaluation dataset file upload, send a POST request to `/v2/genai/model_evaluation/datasets/file_upload_presigned_urls`.
+ */
+ post: operations["genai_create_model_eval_dataset_upload_presigned_urls"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/model_evaluation_metrics": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Model Evaluation Metrics
+ * @description To list all available metrics for model evaluation, send a GET request to `/v2/genai/model_evaluation_metrics`.
+ */
+ get: operations["genai_list_model_evaluation_metrics"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/model_evaluation_presets": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Model Evaluation Presets
+ * @description To list all saved model evaluation presets, send a GET request to `/v2/genai/model_evaluation_presets`.
+ */
+ get: operations["genai_list_model_evaluation_presets"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/model_evaluation_presets/{eval_preset_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Model Evaluation Preset
+ * @description To retrieve a saved model evaluation preset, send a GET request to `/v2/genai/model_evaluation_presets/{eval_preset_uuid}`.
+ */
+ get: operations["genai_get_model_evaluation_preset"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete Model Evaluation Preset
+ * @description To delete a saved model evaluation preset, send a DELETE request to `/v2/gen-ai/model_evaluation_presets/{eval_preset_uuid}`.
+ */
+ delete: operations["genai_delete_model_evaluation_preset"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/model_evaluation_runs": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Model Evaluation Runs
+ * @description To list model evaluation runs, send a GET request to `/v2/genai/model_evaluation_runs`.
+ */
+ get: operations["genai_list_model_evaluation_runs"];
+ put?: never;
+ /**
+ * Create Model Evaluation Run
+ * @description To create a model evaluation run, send a POST request to `/v2/genai/model_evaluation_runs`.
+ */
+ post: operations["genai_create_model_evaluation_run"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/model_evaluation_runs/{eval_run_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Model Evaluation Run
+ * @description To retrieve a model evaluation run, send a GET request to `/v2/genai/model_evaluation_runs/{eval_run_uuid}`.
+ */
+ get: operations["genai_get_model_evaluation_run"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete Model Evaluation Run
+ * @description To delete a model evaluation run, send a DELETE request to `/v2/gen-ai/model_evaluation_runs/{eval_run_uuid}`. The run must be in a terminal status (`successful`, `partially_successful`, `failed`, or `cancelled`). For runs still in progress, either wait for the run to finish or cancel it, then retry the delete once the run reaches a terminal status.
+ */
+ delete: operations["genai_delete_model_evaluation_run"];
+ options?: never;
+ head?: never;
+ /**
+ * Update Model Evaluation Run
+ * @description To update a model evaluation run's display name, send a PATCH request to `/v2/gen-ai/model_evaluation_runs/{eval_run_uuid}`.
+ */
+ patch: operations["genai_update_model_evaluation_run"];
+ trace?: never;
+ };
+ "/v2/gen-ai/model_evaluation_runs/{eval_run_uuid}/cancel": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Cancel Model Evaluation Run
+ * @description To cancel an in-progress model evaluation run, send a PUT request to `/v2/gen-ai/model_evaluation_runs/{eval_run_uuid}/cancel`.
+ */
+ put: operations["genai_cancel_model_evaluation_run"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/model_evaluation_runs/{eval_run_uuid}/results/download_url": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Download URL for Model Evaluation Run Results
+ * @description To get a presigned download URL for model evaluation run results (gzip-compressed JSON), send a GET request to `/v2/genai/model_evaluation_runs/{eval_run_uuid}/results/download_url`.
+ */
+ get: operations["genai_get_model_evaluation_run_results_download_url"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/models": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Available Models
+ * @description To list all models, send a GET request to `/v2/gen-ai/models`.
+ */
+ get: operations["genai_list_models"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/models/api_keys": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Model API Keys
+ * @description To list all model API keys, send a GET request to `/v2/gen-ai/models/api_keys`.
+ */
+ get: operations["genai_list_model_api_keys"];
+ put?: never;
+ /**
+ * Create a Model API Key
+ * @deprecated
+ * @description **Note: This endpoint is deprecated and has been retired. All requests return a `410 gone` response.**
+ *
+ * Creating model API keys through this endpoint is no longer supported. To create a model access key, visit the manage page in the control panel.
+ *
+ * Previously, you could create a model API key by sending a POST request to `/v2/gen-ai/models/api_keys`.
+ */
+ post: operations["genai_create_model_api_key"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/models/api_keys/{api_key_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Update API Key for a Model
+ * @description To update a model API key, send a PUT request to `/v2/gen-ai/models/api_keys/{api_key_uuid}`.
+ */
+ put: operations["genai_update_model_api_key"];
+ post?: never;
+ /**
+ * Delete API Key for a Model
+ * @description To delete an API key for a model, send a DELETE request to `/v2/gen-ai/models/api_keys/{api_key_uuid}`.
+ */
+ delete: operations["genai_delete_model_api_key"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/models/api_keys/{api_key_uuid}/regenerate": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Regenerate API Key for a Model
+ * @description To regenerate a model API key, send a PUT request to `/v2/gen-ai/models/api_keys/{api_key_uuid}/regenerate`.
+ */
+ put: operations["genai_regenerate_model_api_key"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/models/catalog": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Model Catalog
+ * @description Returns all available models.
+ */
+ get: operations["genai_list_model_catalog"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/models/catalog/{id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Model Catalog Card
+ * @description Returns detailed information for a specific model in the catalog including capabilities, pricing, and code examples.
+ */
+ get: operations["genai_get_model_catalog_card"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/models/catalog_v2": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Model Catalog V2
+ * @description Returns the model catalog using the V2 card shape (typed serving, badges, and modalities). Requires authentication.
+ */
+ get: operations["genai_list_model_catalog_v2"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/models/catalog_v2/{id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Model Catalog Card V2
+ * @description Returns a V2 catalog card by catalog ID or model ID. Requires authentication.
+ * Visibility matches List Model Catalog V2.
+ */
+ get: operations["genai_get_model_catalog_card_v2"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/models/routers": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Model Routers
+ * @description To list model routers, send a GET request to `/v2/gen-ai/models/routers`.
+ */
+ get: operations["genai_list_model_routers"];
+ put?: never;
+ /**
+ * Create a Model Router
+ * @description To create a model router, send a POST request to `/v2/gen-ai/models/routers`.
+ */
+ post: operations["genai_create_model_router"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/models/routers/presets": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Model Router Presets
+ * @description To list model router presets, send a GET request to `/v2/gen-ai/models/routers/presets`.
+ */
+ get: operations["genai_list_model_router_presets"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/models/routers/tasks/presets": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Model Router Task Presets
+ * @description To list model router task presets, send a GET request to `/v2/gen-ai/models/routers/tasks/presets`.
+ */
+ get: operations["genai_list_model_router_task_presets"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/models/routers/{uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Model Router
+ * @description To retrieve details of a model router, send a GET request to `/v2/gen-ai/models/routers/{uuid}`.
+ */
+ get: operations["genai_get_model_router"];
+ /**
+ * Update a Model Router
+ * @description To update a model router, send a PUT request to `/v2/gen-ai/models/routers/{uuid}`.
+ */
+ put: operations["genai_update_model_router"];
+ post?: never;
+ /**
+ * Delete a Model Router
+ * @description To delete a model router, send a DELETE request to `/v2/gen-ai/models/routers/{uuid}`.
+ */
+ delete: operations["genai_delete_model_router"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/oauth2/dropbox/tokens": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Get Oauth2 Dropbox Tokens
+ * @description To obtain the refresh token, needed for creation of data sources, send a GET request to `/v2/gen-ai/oauth2/dropbox/tokens`. Pass the code you obtrained from the oauth flow in the field 'code'
+ */
+ post: operations["genai_create_oauth2_dropbox_tokens"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/oauth2/url": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Oauth2 URL
+ * @description To generate an Oauth2-URL for use with your localhost, send a GET request to `/v2/gen-ai/oauth2/url`. Pass 'http://localhost:3000 as redirect_url
+ */
+ get: operations["genai_get_oauth2_url"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/openai/keys": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List OpenAI API Keys
+ * @description To list all OpenAI API keys, send a GET request to `/v2/gen-ai/openai/keys`.
+ */
+ get: operations["genai_list_openai_api_keys"];
+ put?: never;
+ /**
+ * Create OpenAI API Key
+ * @description To create an OpenAI API key, send a POST request to `/v2/gen-ai/openai/keys`.
+ */
+ post: operations["genai_create_openai_api_key"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/openai/keys/{api_key_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get OpenAI API Key
+ * @description To retrieve details of an OpenAI API key, send a GET request to `/v2/gen-ai/openai/keys/{api_key_uuid}`.
+ */
+ get: operations["genai_get_openai_api_key"];
+ /**
+ * Update OpenAI API Key
+ * @description To update an OpenAI API key, send a PUT request to `/v2/gen-ai/openai/keys/{api_key_uuid}`.
+ */
+ put: operations["genai_update_openai_api_key"];
+ post?: never;
+ /**
+ * Delete OpenAI API Key
+ * @description To delete an OpenAI API key, send a DELETE request to `/v2/gen-ai/openai/keys/{api_key_uuid}`.
+ */
+ delete: operations["genai_delete_openai_api_key"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/openai/keys/{uuid}/agents": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List agents by OpenAI key
+ * @description List Agents by OpenAI Key.
+ */
+ get: operations["genai_list_agents_by_openai_key"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/regions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Datacenter Regions
+ * @description To list all datacenter regions, send a GET request to `/v2/gen-ai/regions`.
+ */
+ get: operations["genai_list_datacenter_regions"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/scenario_library": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Common Scenario & Goal Library
+ * @description To list the platform-curated Common Scenario & Goal Library, send a GET request to `/v2/gen-ai/scenario_library`.
+ */
+ get: operations["genai_list_scenario_library"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/scenario_library/{library_scenario_uuid}/create_scenario_set": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Create Scenario Set From Library
+ * @description To create a scenario set from a Common Scenario & Goal Library entry, send a POST request to `/v2/gen-ai/scenario_library/{library_scenario_uuid}/create_scenario_set`. The library scenarios are copied into a new scenario set owned by the calling team. The new set is ready to use when creating a simulation run.
+ */
+ post: operations["genai_create_scenario_set_from_library"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/scenario_library/{library_scenario_uuid}/scenarios": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Scenarios In Library Entry
+ * @description To list the scenarios inside a Common Scenario & Goal Library entry without creating a team-owned scenario set, send a GET request to `/v2/gen-ai/scenario_library/{library_scenario_uuid}/scenarios`.
+ */
+ get: operations["genai_list_scenario_library_scenarios"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/scenario_sets": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Scenario Sets
+ * @description To list scenario sets, send a GET request to `/v2/gen-ai/scenario_sets`.
+ */
+ get: operations["genai_list_scenario_sets"];
+ put?: never;
+ /**
+ * Create Scenario Set
+ * @description To create a scenario set, send a POST request to `/v2/gen-ai/scenario_sets`. Provide exactly one of `scenarios` or `file_upload_scenario_set`. The set is created in the ready state.
+ */
+ post: operations["genai_create_scenario_set"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/scenario_sets/file_upload_presigned_urls": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Create Presigned URLs for Scenario Set File Upload
+ * @description To create presigned URLs for uploading a scenario set file, send a POST request to `/v2/gen-ai/scenario_sets/file_upload_presigned_urls`. After uploading, pass the stored object in Create Scenario Set as `file_upload_scenario_set`.
+ */
+ post: operations["genai_create_scenario_set_upload_presigned_urls"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/scenario_sets/generate": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Generate Scenario Set
+ * @description To dispatch goal-driven scenario generation, send a POST request to `/v2/gen-ai/scenario_sets/generate`. The scenario set is returned in the generating state. Poll the retrieve scenario set endpoint until the set reaches a ready, failed, or cancelled status.
+ */
+ post: operations["genai_create_generated_scenario_set"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/scenario_sets/{scenario_set_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Scenario Set
+ * @description To retrieve a scenario set, send a GET request to `/v2/gen-ai/scenario_sets/{scenario_set_uuid}`.
+ */
+ get: operations["genai_get_scenario_set"];
+ /**
+ * Update Scenario Set
+ * @description To update a scenario set in place, send a PUT request to `/v2/gen-ai/scenario_sets/{scenario_set_uuid}`. Provide a new `name` and/or replacement `scenarios`. At least one is required. Replacing contents keeps the same scenario set UUID, remints scenario UUIDs, and is rejected unless the set is ready and no simulation run references it. There is no file-upload path on update.
+ */
+ put: operations["genai_update_scenario_set"];
+ post?: never;
+ /**
+ * Delete Scenario Set
+ * @description To delete a scenario set, send a DELETE request to `/v2/gen-ai/scenario_sets/{scenario_set_uuid}`. A scenario set that is referenced by a simulation run cannot be deleted.
+ */
+ delete: operations["genai_delete_scenario_set"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/scenario_sets/{scenario_set_uuid}/download_url": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Scenario Set Download URL
+ * @description To retrieve a presigned download URL for a scenario set file, send a GET request to `/v2/gen-ai/scenario_sets/{scenario_set_uuid}/download_url`.
+ */
+ get: operations["genai_get_scenario_set_download_url"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/scenario_sets/{scenario_set_uuid}/duplicate": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Duplicate Scenario Set
+ * @description To duplicate a scenario set, send a POST request to `/v2/gen-ai/scenario_sets/{scenario_set_uuid}/duplicate`. The source set must be ready. The new set is named `{original name} duplicate` and contains a copy of the source scenarios.
+ */
+ post: operations["genai_create_duplicate_scenario_set"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/scenario_sets/{scenario_set_uuid}/scenarios": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Scenarios
+ * @description To list the scenarios in a scenario set, send a GET request to `/v2/gen-ai/scenario_sets/{scenario_set_uuid}/scenarios`.
+ */
+ get: operations["genai_list_scenarios"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/scheduled-indexing": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Create scheduled indexing for knowledge base
+ * @description To create scheduled indexing for a knowledge base, send a POST request to `/v2/gen-ai/scheduled-indexing`.
+ */
+ post: operations["genai_create_scheduled_indexing"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/scheduled-indexing/knowledge-base/{knowledge_base_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Scheduled Indexing for Knowledge Base
+ * @description Get Scheduled Indexing for knowledge base using knoweldge base uuid, send a GET request to `/v2/gen-ai/scheduled-indexing/knowledge-base/{knowledge_base_uuid}`.
+ */
+ get: operations["genai_get_scheduled_indexing"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/scheduled-indexing/{uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Delete Scheduled Indexing
+ * @description Delete Scheduled Indexing for knowledge base, send a DELETE request to `/v2/gen-ai/scheduled-indexing/{uuid}`.
+ */
+ delete: operations["genai_delete_scheduled_indexing"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/simulation_runs": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Simulation Runs
+ * @description To list simulation runs, send a GET request to `/v2/gen-ai/simulation_runs`.
+ */
+ get: operations["genai_list_simulation_runs"];
+ put?: never;
+ /**
+ * Create Simulation Run
+ * @description To create a simulation run, send a POST request to `/v2/gen-ai/simulation_runs`. The scenario set must be ready. Judge and user simulator models are optional and use platform defaults when omitted. The run is returned in the pending state.
+ */
+ post: operations["genai_create_simulation_run"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/simulation_runs/{run_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Simulation Run
+ * @description To retrieve a simulation run, send a GET request to `/v2/gen-ai/simulation_runs/{run_uuid}`.
+ */
+ get: operations["genai_get_simulation_run"];
+ /**
+ * Update Simulation Run
+ * @description To update a simulation run's display name, send a PUT request to `/v2/gen-ai/simulation_runs/{run_uuid}`. Only the name is mutable; run configuration and results are immutable.
+ */
+ put: operations["genai_update_simulation_run"];
+ post?: never;
+ /**
+ * Delete Simulation Run
+ * @description To delete a simulation run, send a DELETE request to `/v2/gen-ai/simulation_runs/{run_uuid}`. The run must be in a terminal status (`SIMULATION_RUN_STATUS_SUCCEEDED`, `SIMULATION_RUN_STATUS_PARTIALLY_SUCCESSFUL`, `SIMULATION_RUN_STATUS_FAILED`, or `SIMULATION_RUN_STATUS_CANCELLED`). For runs still in progress, cancel the run first, then retry the delete.
+ */
+ delete: operations["genai_delete_simulation_run"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/simulation_runs/{run_uuid}/cancel": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ /**
+ * Cancel Simulation Run
+ * @description To cancel an in-progress simulation run, send a PATCH request to `/v2/gen-ai/simulation_runs/{run_uuid}/cancel`.
+ */
+ patch: operations["genai_patch_cancel_simulation_run"];
+ trace?: never;
+ };
+ "/v2/gen-ai/simulation_runs/{run_uuid}/episodes": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Simulation Episodes
+ * @description To list the episodes within a simulation run, send a GET request to `/v2/gen-ai/simulation_runs/{run_uuid}/episodes`.
+ */
+ get: operations["genai_list_simulation_episodes"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/simulation_runs/{run_uuid}/episodes/{episode_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Simulation Episode
+ * @description To retrieve a single episode, send a GET request to `/v2/gen-ai/simulation_runs/{run_uuid}/episodes/{episode_uuid}`.
+ */
+ get: operations["genai_get_simulation_episode"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/simulation_runs/{run_uuid}/episodes/{episode_uuid}/trajectory": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Episode Trajectory
+ * @description To retrieve an episode's live trajectory, send a GET request to `/v2/gen-ai/simulation_runs/{run_uuid}/episodes/{episode_uuid}/trajectory`. Poll while the episode is running to watch turn-by-turn progress.
+ */
+ get: operations["genai_get_simulation_episode_trajectory"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/simulation_runs/{run_uuid}/episodes/{episode_uuid}/trajectory_url": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve Episode Trajectory Download URL
+ * @description To retrieve a presigned download URL for an episode's trajectory, send a GET request to `/v2/gen-ai/simulation_runs/{run_uuid}/episodes/{episode_uuid}/trajectory_url`.
+ */
+ get: operations["genai_get_simulation_episode_trajectory_url"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/workspaces": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Workspaces
+ * @description To list all workspaces, send a GET request to `/v2/gen-ai/workspaces`.
+ */
+ get: operations["genai_list_workspaces"];
+ put?: never;
+ /**
+ * Create a Workspace
+ * @description To create a new workspace, send a POST request to `/v2/gen-ai/workspaces`. The response body contains a JSON object with the newly created workspace object.
+ */
+ post: operations["genai_create_workspace"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/workspaces/{workspace_uuid}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve an Existing Workspace
+ * @description To retrieve details of a workspace, GET request to `/v2/gen-ai/workspaces/{workspace_uuid}`. The response body is a JSON object containing the workspace.
+ */
+ get: operations["genai_get_workspace"];
+ /**
+ * Update a Workspace
+ * @description To update a workspace, send a PUT request to `/v2/gen-ai/workspaces/{workspace_uuid}`. The response body is a JSON object containing the workspace.
+ */
+ put: operations["genai_update_workspace"];
+ post?: never;
+ /**
+ * Delete a Workspace
+ * @description To delete a workspace, send a DELETE request to `/v2/gen-ai/workspace/{workspace_uuid}`.
+ */
+ delete: operations["genai_delete_workspace"];
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/workspaces/{workspace_uuid}/agents": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List agents by Workspace
+ * @description To list all agents by a Workspace, send a GET request to `/v2/gen-ai/workspaces/{workspace_uuid}/agents`.
+ */
+ get: operations["genai_list_agents_by_workspace"];
+ /**
+ * Move Agents to a Workspace
+ * @description To move all listed agents a given workspace, send a PUT request to `/v2/gen-ai/workspaces/{workspace_uuid}/agents`.
+ */
+ put: operations["genai_update_agents_workspace"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v2/gen-ai/workspaces/{workspace_uuid}/evaluation_test_cases": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Evaluation Test Cases by Workspace
+ * @description To list all evaluation test cases by a workspace, send a GET request to `/v2/gen-ai/workspaces/{workspace_uuid}/evaluation_test_cases`.
+ */
+ get: operations["genai_list_evaluation_test_cases_by_workspace"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/chat/completions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Create a model response for the given chat conversation
+ * @description Creates a model response for the given chat conversation.
+ */
+ post: operations["inference_create_chat_completion"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/messages": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Create the next assistant message
+ * @description Send a structured list of input messages with text and/or image content, and the model will generate the next message in the conversation.
+ */
+ post: operations["inference_create_messages"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/embeddings": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Create embedding
+ * @description Create vector embeddings for one or more text inputs. OpenAI-compatible request and response. Unknown fields in the request body are rejected. There is no streaming response for this endpoint.
+ */
+ post: operations["inference_create_embedding"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/api/v1/chat/completions": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Create a model response for the given chat conversation
+ * @description Creates a model response for the given chat conversation via a customer-provisioned
+ * agent endpoint.
+ */
+ post: operations["agentInference_create_chat_completion"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/images/generations": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Generate images from text prompts
+ * @description Creates a high-quality image from a text prompt using GPT-IMAGE-2, the latest image generation model with automatic prompt optimization and enhanced visual capabilities.
+ */
+ post: operations["inference_create_image"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/models": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List available models
+ * @description Lists the currently available models, and provides basic information about each one such as the owner and availability.
+ */
+ get: operations["inference_list_models"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/systemone": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Create a System One evaluation
+ * @description Evaluates a provided state against one or more typed questions using TypeSafe AI's Jev model. Unlike chat completion endpoints, System One returns typed answers, a truth-likelihood score, a choice from a fixed set, or a numeric score, each paired with a calibrated probability, instead of free-form text.
+ */
+ post: operations["inference_create_systemone"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/responses": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Send Prompt to a Model Using the Responses API
+ * @description Generate text responses from text prompts. This endpoint supports both streaming and non-streaming responses for supported text models.
+ */
+ post: operations["inference_create_response"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/async-invoke": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Generate Image, Audio, or Text-to-Speech Using fal Models
+ * @description Generate Image, Audio, or Text-to-Speech Using fal Models. This endpoint starts an asynchronous job and returns a request_id. The job status is QUEUED initially. Use the request_id to poll for the result.
+ */
+ post: operations["inference_create_async_invoke"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/audio/speech": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Generate speech from text
+ * @description Convert text input to speech audio. The response may be raw audio bytes (`audio/mpeg`, `audio/wav`, and similar) or a JSON envelope with base64-encoded audio in `data[].b64_json`.
+ */
+ post: operations["inference_create_speech"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/videos": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Start a video generation job
+ * @description Start an asynchronous video generation job from a text prompt. Poll `GET /v1/videos/{video_id}` until the job reaches a terminal status, then download the MP4 with `GET /v1/videos/{video_id}/content` or from `output.url` when present.
+ */
+ post: operations["inference_create_video"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/videos/{video_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve a video generation job
+ * @description Returns the current state of a video generation job. Poll until `status` reaches a terminal value such as `completed` or `failed`.
+ */
+ get: operations["inference_get_video"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/videos/{video_id}/content": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Download generated video content
+ * @description Downloads the generated MP4 for a completed video generation job.
+ */
+ get: operations["inference_get_video_content"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/batches/files": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Create a Batch Inference Input File
+ * @description Creates a file record and returns a `file_id` plus a short-lived presigned `PUT` URL (typically valid for ~15 minutes). Upload the raw JSONL bytes to `upload_url` (see `PUT /{upload_path}`) before calling `POST /v1/batches`.
+ */
+ post: operations["inference_create_batch_file"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ /**
+ * Upload a Batch Inference Input File
+ * @description Uploads the raw JSONL bytes to the presigned `upload_url` returned by `POST /v1/batches/files`.
+ *
+ * **The URL is dynamic — do not construct it.** Use the `upload_url` value from the previous step verbatim. Its host, path, and query parameters are part of the short-lived (~15 minute) signature and change per request; the server and path shown here are illustrative. If the URL expires before the upload completes, create a new file intent and retry.
+ *
+ * `POST /v1/batches` performs a `HEAD` check on the uploaded object and will reject the batch if this upload has not completed.
+ *
+ * Send the raw JSONL bytes verbatim. Presigned PUT URLs are signature-sensitive to request headers — prefer `application/octet-stream` or omit `Content-Type` entirely. A custom value (for example `application/jsonl`) can cause signature mismatches unless the URL was signed for that exact header.
+ */
+ put: operations["inference_upload_batch_file"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/batches": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Batch Inference Jobs
+ * @description Returns a cursor-paginated list of batch jobs, ordered newest first. Use `limit` to control page size and `after` to page forward using the `last_id` from the previous response.
+ */
+ get: operations["inference_list_batches"];
+ put?: never;
+ /**
+ * Create a Batch Inference Job
+ * @description Submits a batch job against a previously uploaded JSONL input file. The upload must have completed before this call; otherwise the request is rejected.
+ *
+ * Supply a unique `request_id` to make the submission idempotent — retries with the same value return the existing job. When `provider` is `openai`, the `url` on each JSONL line must match `endpoint`.
+ */
+ post: operations["inference_create_batch"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/batches/{batch_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Retrieve a Batch Inference Job
+ * @description Returns the current state of a batch job. Poll until `status` reaches a terminal value (`completed`, `failed`, `expired`, or `cancelled`).
+ */
+ get: operations["inference_get_batch"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/batches/{batch_id}/results": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Batch Inference Results Download Links
+ * @description Returns short-lived presigned download URLs for the output (and optional error sidecar) of a completed batch job. If results are not yet ready, the response sets `result_available: false` or returns `412 Precondition Failed`; in both cases, keep polling batch status and retry.
+ *
+ * Download the artifacts soon after fetching — the URLs are short-lived. Result files themselves are retained for up to 30 days after the job completes, after which they are deleted.
+ */
+ get: operations["inference_get_batch_results"];
+ put?: never;
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/v1/batches/{batch_id}/cancel": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ /**
+ * Cancel a Batch Inference Job
+ * @description Requests cancellation of a batch job. The job transitions to `cancelling` and, once in-flight requests drain, to `cancelled`. Jobs already in a terminal state (`completed`, `failed`, `expired`, `cancelled`) cannot be cancelled and return `409 Conflict`. Cancellation is also rejected with `409 Conflict` while the job has not yet been submitted to the upstream provider — there is nothing to cancel until the provider batch id is assigned.
+ *
+ * Partial results produced before cancellation remain available via `GET /v1/batches/{batch_id}/results`.
+ */
+ post: operations["inference_cancel_batch"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+}
+export type webhooks = Record;
+export interface components {
+ schemas: {
+ error: {
+ /**
+ * @description A short identifier corresponding to the HTTP status code returned. For example, the ID for a response returning a 404 status code would be "not_found."
+ * @example not_found
+ */
+ id: string;
+ /**
+ * @description A message providing additional information about the error, including details to help resolve it when possible.
+ * @example The resource you were accessing could not be found.
+ */
+ message: string;
+ /**
+ * @description Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.
+ * @example 4d9d8375-3c56-4925-a3e7-eb137fed17e9
+ */
+ request_id?: string;
+ };
+ /**
+ * @example LIMIT_CATEGORY_WEB_SEARCH_REQUESTS_PER_MINUTE
+ * @enum {string}
+ */
+ limit_category: "LIMIT_CATEGORY_WEB_SEARCH_REQUESTS_PER_MINUTE" | "LIMIT_CATEGORY_WEB_FETCH_REQUESTS_PER_MINUTE" | "LIMIT_CATEGORY_NATIVE_TOOL_CALLS_REQUESTS_PER_MINUTE" | "LIMIT_CATEGORY_NON_NATIVE_TOOL_CALLS_REQUESTS_PER_MINUTE";
+ /** @description Actor's limit for one category. */
+ limit_override: {
+ /** @description The category the limit applies to. */
+ category: string & components["schemas"]["limit_category"];
+ /**
+ * Format: uint64
+ * @description Calls allowed per minute. 0 blocks every call in the category.
+ * @example 30
+ */
+ requests_per_minute: string;
+ };
+ /** @description Per-minute call limits by category. */
+ tool_quotas: {
+ /**
+ * Format: uint64
+ * @description Calls per minute to the `exa_web_search` tool.
+ * @example 30
+ */
+ web_search_requests_per_minute?: string;
+ /**
+ * Format: uint64
+ * @description Calls per minute to the `exa_web_fetch` tool.
+ * @example 120
+ */
+ web_fetch_requests_per_minute?: string;
+ /**
+ * Format: uint64
+ * @description Calls per minute to DigitalOcean tools.
+ * @example 600
+ */
+ native_tool_calls_requests_per_minute?: string;
+ /**
+ * Format: uint64
+ * @description Calls per minute to all other tools.
+ * @example 600
+ */
+ non_native_tool_calls_requests_per_minute?: string;
+ };
+ /** @description Reports an actor's limits. */
+ get_actor_limits_response: {
+ /** @description Overrides set for the actor; categories without one are omitted. */
+ configured_limits?: components["schemas"]["limit_override"][];
+ /** @description Limits in effect for the actor in every category: the lower of your team's limit and the actor's override. */
+ effective_limits?: components["schemas"]["tool_quotas"];
+ };
+ /** @description Removes an actor's overrides. */
+ clear_actor_limits: {
+ /**
+ * @description Required. Categories to clear, each at most once.
+ * @example [
+ * "LIMIT_CATEGORY_WEB_SEARCH_REQUESTS_PER_MINUTE"
+ * ]
+ */
+ categories: components["schemas"]["limit_category"][];
+ };
+ /**
+ * @description Empty.
+ * @example {}
+ */
+ empty_response: Record;
+ /** @description Sets an actor's overrides. */
+ set_actor_limits: {
+ /** @description Required. Limits to set, at most one per category. */
+ overrides: components["schemas"]["limit_override"][];
+ };
+ /** @description Team-level MCP tool discovery authorization, not tool invocation authorization. */
+ provider_credential_discovery: {
+ /**
+ * @description Whether discovery needs authorization, is waiting for it, is active, or has expired.
+ * @example active
+ * @enum {string}
+ */
+ status?: "not_required" | "pending" | "active" | "expired";
+ /**
+ * @description DigitalOcean user ID of the team owner who authorized discovery, or empty before consent.
+ * @example example-digitalocean-user-id
+ */
+ consented_by_user_id?: string;
+ /**
+ * Format: date-time
+ * @description When discovery was authorized, if consent has been given.
+ * @example 2026-11-01T12:00:00Z
+ */
+ consented_at?: string | null;
+ /**
+ * @description Where a team owner authorizes discovery. Set only while status is pending.
+ * @example
+ */
+ authorization_url?: string;
+ } | null;
+ /** @description A stored provider credential. Responses contain metadata only, never API keys, client secrets, or secret storage references. */
+ provider_credential: {
+ /**
+ * @description Opaque ID used to select, retrieve, update, or delete the credential.
+ * @example example-credential-id
+ */
+ id?: string;
+ /**
+ * @description Provider slug.
+ * @example example-provider
+ */
+ provider?: string;
+ /**
+ * @description Label, unique among the team's credentials for this provider, ignoring case.
+ * @example Production key
+ */
+ display_name?: string;
+ /**
+ * @description Credential type. NONE, NO_AUTH, and USER_API_KEY describe MCP server credentials; NO_AUTH and USER_API_KEY are output-only values.
+ * @example PROVIDER_CREDENTIAL_KIND_API_KEY
+ * @enum {string}
+ */
+ kind?: "PROVIDER_CREDENTIAL_KIND_UNSPECIFIED" | "PROVIDER_CREDENTIAL_KIND_OAUTH_CLIENT" | "PROVIDER_CREDENTIAL_KIND_API_KEY" | "PROVIDER_CREDENTIAL_KIND_NONE" | "PROVIDER_CREDENTIAL_KIND_NO_AUTH" | "PROVIDER_CREDENTIAL_KIND_USER_API_KEY";
+ /**
+ * @description Normalized HTTPS origin for this credential's provider API, when configured.
+ * @example https://api.example.com
+ */
+ base_url?: string;
+ /**
+ * @description Credential lifecycle state. Disabled credentials cannot be used by existing or new connections and cannot be re-enabled through this API. DELETED is returned only by deletion.
+ * @example PROVIDER_CREDENTIAL_STATUS_ACTIVE
+ * @enum {string}
+ */
+ status?: "PROVIDER_CREDENTIAL_STATUS_UNSPECIFIED" | "PROVIDER_CREDENTIAL_STATUS_ACTIVE" | "PROVIDER_CREDENTIAL_STATUS_DISABLED" | "PROVIDER_CREDENTIAL_STATUS_DELETED";
+ /**
+ * Format: date-time
+ * @description When the credential was created.
+ * @example 2026-11-01T12:00:00Z
+ */
+ created_at?: string;
+ /**
+ * Format: date-time
+ * @description When the credential was last modified.
+ * @example 2026-11-01T12:00:00Z
+ */
+ updated_at?: string;
+ /**
+ * @description DigitalOcean user ID of the creator. Absent for a credential shared with the team.
+ * @example example-digitalocean-user-id
+ */
+ owning_user_id?: string;
+ /**
+ * @description Whether everyone on the team can see and use the credential instead of only its creator.
+ * @example false
+ */
+ reusable_by_team?: boolean;
+ /**
+ * @description OAuth redirect URI supplied at registration. Empty when using DigitalOcean's callback or when the credential is not an OAuth client.
+ * @example
+ */
+ redirect_url?: string;
+ /**
+ * @description Who can use the credential, either its creator (user) or the whole team (team).
+ * @example user
+ * @enum {string}
+ */
+ scope?: "user" | "team";
+ /** @description Authorization to discover a team-scoped MCP server's tools, when required. This authorization is not used to invoke tools. */
+ discovery?: components["schemas"]["provider_credential_discovery"];
+ };
+ /** @description Registered credentials visible to the caller, without pagination. */
+ provider_credentials_list_response: {
+ /** @description Credentials ordered by provider and display name, excluding DigitalOcean-owned OAuth applications. */
+ credentials?: components["schemas"]["provider_credential"][];
+ };
+ /** @description Register a credential for a provider that supports the selected kind. API keys require api_key; OAuth clients require client_id and client_secret. Fields for the other kind are rejected. Register custom MCP servers through the MCP server API rather than creating API-key credentials for them here. */
+ provider_credential_create: {
+ /**
+ * @description Required provider slug from the provider catalog.
+ * @example example-provider
+ */
+ provider: string;
+ /**
+ * @description Credential type. NONE is available only for eligible MCP providers when team-scoped provider credentials are enabled; it accepts no credential fields.
+ * @example PROVIDER_CREDENTIAL_KIND_API_KEY
+ * @enum {string}
+ */
+ kind: "PROVIDER_CREDENTIAL_KIND_OAUTH_CLIENT" | "PROVIDER_CREDENTIAL_KIND_API_KEY" | "PROVIDER_CREDENTIAL_KIND_NONE";
+ /**
+ * @description Required label, unique among the team's credentials for this provider, ignoring case. A duplicate returns 409.
+ * @example Production key
+ */
+ display_name: string;
+ /**
+ * @description Required for API-key credentials. Rejected for other kinds. Never returned.
+ * @example
+ */
+ api_key?: string;
+ /**
+ * @description Required for OAuth client credentials. Rejected for other kinds.
+ * @example example-client-id
+ */
+ client_id?: string;
+ /**
+ * @description Required for OAuth client credentials. Rejected for other kinds. Never returned.
+ * @example
+ */
+ client_secret?: string;
+ /**
+ * @description Provider API HTTPS origin. Accepted only when the provider allows one, restricted to its allowed hosts, and required when the provider requires it. Do not send this alongside credential_parameters.
+ * @example https://api.example.com
+ */
+ base_url?: string;
+ /**
+ * @description Non-secret configuration for API-key providers that declare credential parameters. Validated against the provider's parameter definitions and used to derive base_url. Rejected for other credential kinds.
+ * @example {
+ * "subdomain": "example"
+ * }
+ */
+ credential_parameters?: {
+ [key: string]: unknown;
+ };
+ /**
+ * @description Share the credential with the team. Defaults to false, so only its creator can see and use it. Requires the team owner role when team-scoped provider credentials are enabled for the account.
+ * @default false
+ * @example false
+ */
+ reusable_by_team?: boolean;
+ /**
+ * @description OAuth clients only. Optional absolute HTTPS redirect URI registered at the provider, with no user information or fragment. Requires custom OAuth redirects to be enabled for the account. Omit to use DigitalOcean's callback. Cannot be changed after registration.
+ * @example https://app.example.com/oauth/callback
+ */
+ redirect_url?: string;
+ } & ({
+ /** @enum {string} */
+ kind?: "PROVIDER_CREDENTIAL_KIND_API_KEY";
+ } | {
+ /** @enum {string} */
+ kind?: "PROVIDER_CREDENTIAL_KIND_OAUTH_CLIENT";
+ } | {
+ /** @enum {string} */
+ kind?: "PROVIDER_CREDENTIAL_KIND_NONE";
+ });
+ /** @description Credential metadata and the number of connections removed by the operation. */
+ provider_credential_response: {
+ /** @description The registered or deleted credential, without secret material. */
+ credential?: components["schemas"]["provider_credential"];
+ /**
+ * Format: int32
+ * @description Number of connections deleted with the credential. Always zero for create, get, and update operations.
+ * @example 0
+ */
+ revoked_connections?: number;
+ };
+ /**
+ * @description Non-secret configuration for API-key providers that declare credential parameters. Validated against the provider's parameter definitions and used to derive base_url. Rejected for other credential kinds.
+ * @example {
+ * "subdomain": "example"
+ * }
+ */
+ credential_parameters: {
+ [key: string]: unknown;
+ };
+ /** @description Change only the supplied fields. Omitted fields remain unchanged; no update mask is required. The provider, kind, and redirect_url cannot be changed. Empty secrets and display names are rejected. Connections keep the same credential ID. */
+ provider_credential_update: {
+ /**
+ * @description New label, unique among the team's credentials for this provider, ignoring case.
+ * @example Production key
+ */
+ display_name?: string;
+ /**
+ * @description New API key. Only valid for API-key credentials. Never returned.
+ * @example
+ */
+ api_key?: string;
+ /**
+ * @description OAuth clients only. Required when changing client_id, client_secret, or base_url. Must match the originally registered client ID; a different ID is rejected. Register another credential to use a different OAuth client.
+ * @example example-client-id
+ */
+ client_id?: string;
+ /**
+ * @description New OAuth client secret. Requires client_id. Never returned.
+ * @example
+ */
+ client_secret?: string;
+ /**
+ * @description New HTTPS origin, validated as on creation. An empty string clears it unless the provider requires an origin. OAuth client updates also require client_id.
+ * @example https://api.example.com
+ */
+ base_url?: string;
+ credential_parameters?: components["schemas"]["credential_parameters"];
+ /**
+ * @description Set to true to share a credential with the team. Requires team-scoped provider credentials to be enabled and the team owner role to share a private credential. Sharing cannot be undone; false is rejected.
+ * @example true
+ * @enum {boolean}
+ */
+ reusable_by_team?: true;
+ };
+ /** @description Routes a connection's calls through a private network instead of the public internet. */
+ connection_network: {
+ /** @description Route through a VPC. */
+ vpc?: {
+ /**
+ * Format: uuid
+ * @description UUID of a VPC owned by your team.
+ * @example 5a4981aa-9653-4bd1-bef5-d6bff52042e4
+ */
+ vpc_uuid?: string;
+ /**
+ * @description Region of the VPC. Set by DigitalOcean; do not send it.
+ * @example nyc3
+ */
+ readonly region?: string;
+ /** @description Private hosts the connection's calls may reach through the VPC. At least one is required. */
+ destinations?: {
+ /**
+ * @description Host name or IP address. It must resolve only to private addresses.
+ * @example jira.internal.example.com
+ */
+ host?: string;
+ /**
+ * Format: uint32
+ * @description Port, 1 to 65535.
+ * @example 443
+ */
+ port?: number;
+ /**
+ * @description Optional CIDR ranges; when set, every address the host resolves to must fall within one of them.
+ * @example [
+ * "10.116.0.0/20"
+ * ]
+ */
+ allowed_ip_cidrs?: string[];
+ }[];
+ };
+ } | null;
+ /** @description One connection of any kind. Everything every kind has stays on the envelope, so a reader takes an ID, a status or a provider without first asking what kind it is; only the members a kind alone has move into details. */
+ connection: {
+ /**
+ * Format: uuid
+ * @description Opaque connection ID.
+ * @example 39f9f768-a7f9-4c91-9557-3328c53dd054
+ */
+ id?: string;
+ /**
+ * @description Provider slug, for example `jira`.
+ * @example jira
+ */
+ provider?: string;
+ /**
+ * @description Human-readable provider name, for example `Jira`.
+ * @example Jira
+ */
+ provider_display_name?: string;
+ /**
+ * @description Your identifier for the user the connection acts for.
+ * @example alice
+ */
+ user_id?: string;
+ /**
+ * @description pending, active, revoked, or expired.
+ * @example active
+ * @enum {string}
+ */
+ status?: "pending" | "active" | "revoked" | "expired";
+ /**
+ * Format: date-time
+ * @description When the connection was created.
+ * @example 2026-07-14T00:50:00Z
+ */
+ created_at?: string | null;
+ /**
+ * Format: date-time
+ * @description When the connection was last modified.
+ * @example 2026-07-14T00:52:10Z
+ */
+ updated_at?: string | null;
+ /**
+ * Format: date-time
+ * @description When the connection was revoked.
+ * @example null
+ */
+ revoked_at?: string | null;
+ /**
+ * @description Non-sensitive provider configuration.
+ * @example {
+ * "site_url": "https://example.atlassian.net"
+ * }
+ */
+ connection_parameters?: Record | null;
+ /**
+ * @description `digitalocean_oauth`, `private_oauth`, or `team_api_key`.
+ * @example digitalocean_oauth
+ * @enum {string}
+ */
+ credential_kind?: "digitalocean_oauth" | "private_oauth" | "team_api_key";
+ /**
+ * @description Empty for `digitalocean_oauth`; otherwise the ID of the team provider credential the connection uses.
+ * @example
+ */
+ credential_id?: string;
+ /** @description Private network the connection's calls use, when configured. */
+ network?: components["schemas"]["connection_network"];
+ /** @description Set for `digitalocean_oauth` and `private_oauth` connections. */
+ oauth?: {
+ /**
+ * @description Provider scopes granted, or requested while pending.
+ * @example [
+ * "write:jira-work"
+ * ]
+ */
+ scopes?: string[];
+ /**
+ * Format: date-time
+ * @description When the user completed authorization.
+ * @example 2026-07-14T00:52:10Z
+ */
+ granted_at?: string | null;
+ };
+ /** @description Set for `team_api_key` connections. */
+ api_key?: Record;
+ /**
+ * @deprecated
+ * @description Deprecated: read `oauth.scopes`. Duplicated here so a reader of the pre-union shape keeps working; empty for a kind with no OAuth grant.
+ * @example [
+ * "write:jira-work"
+ * ]
+ */
+ scopes?: string[];
+ /**
+ * Format: date-time
+ * @deprecated
+ * @description Deprecated: read `oauth.granted_at`.
+ * @example 2026-07-14T00:52:10Z
+ */
+ granted_at?: string | null;
+ /**
+ * @description DigitalOcean user ID of the user who created the connection, when recorded.
+ * @example 2f8e1c3a-6b4d-4f7e-9a1c-5d3b7e9f1a2c
+ */
+ owning_user_id?: string;
+ };
+ /** @description Describes one page of an offset-paged list. */
+ pagination: {
+ /**
+ * Format: int32
+ * @description 1-based page number of this response.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * Format: int32
+ * @description Page size applied to this response, after defaults and caps.
+ * @example 20
+ */
+ per_page?: number;
+ /**
+ * Format: int32
+ * @description Number of matching items across all pages.
+ * @example 1
+ */
+ total?: number;
+ };
+ /** @description One page of connections. */
+ list_connections_response: {
+ /** @description Connections on this page. */
+ connections?: components["schemas"]["connection"][];
+ /** @description Paging applied to this response and the total number of connections. */
+ pagination?: components["schemas"]["pagination"];
+ };
+ /** @description Describes a connection to create. */
+ connection_create: {
+ /**
+ * @description Required provider slug, from the provider list.
+ * @example jira
+ */
+ provider: string;
+ /**
+ * @description Required. Your identifier for the user the connection acts for: 1 to 64 characters from `[A-Za-z0-9._-]`. A session whose `actor_id` equals it uses this connection.
+ * @example alice
+ */
+ user_id: string;
+ /**
+ * @description Optional OAuth scopes to request. Defaults to every scope the provider offers; scopes outside that set are rejected. Ignored for API-key credentials.
+ * @example [
+ * "write:jira-work"
+ * ]
+ */
+ scopes?: string[];
+ /**
+ * @description Values for the provider's `connection_parameters`, validated against their specifications.
+ * @example {
+ * "site_url": "https://example.atlassian.net"
+ * }
+ */
+ connection_parameters?: Record;
+ /** @description Optional credential to connect through. Omitted uses DigitalOcean's shared OAuth application. */
+ credential?: {
+ /** @description Use DigitalOcean's shared OAuth application. */
+ digitalocean_oauth?: Record;
+ /** @description Use one of your team's provider credentials. */
+ team_credential?: {
+ /**
+ * @description Required. ID of an active provider credential for the same provider that you can use.
+ * @example 8d6f2b1a-3c4e-4d5f-9a8b-7c6d5e4f3a2b
+ */
+ credential_id?: string;
+ };
+ };
+ /** @description Optional private network for the connection's calls. Requires VPC networking to be enabled for your account (403 otherwise). */
+ network?: {
+ /** @description Route through a VPC. */
+ vpc?: {
+ /**
+ * Format: uuid
+ * @description UUID of a VPC owned by your team.
+ * @example 5a4981aa-9653-4bd1-bef5-d6bff52042e4
+ */
+ vpc_uuid?: string;
+ /** @description Private hosts the connection's calls may reach through the VPC. At least one is required. */
+ destinations?: {
+ /**
+ * @description Host name or IP address. It must resolve only to private addresses.
+ * @example jira.internal.example.com
+ */
+ host?: string;
+ /**
+ * Format: uint32
+ * @description Port, 1 to 65535.
+ * @example 443
+ */
+ port?: number;
+ /**
+ * @description Optional CIDR ranges; when set, every address the host resolves to must fall within one of them.
+ * @example [
+ * "10.116.0.0/20"
+ * ]
+ */
+ allowed_ip_cidrs?: string[];
+ }[];
+ };
+ };
+ };
+ /** @description Present only while a connection is pending. Send the user to `connect_url`, then read the connection until it becomes active or expired. */
+ connection_authorization: {
+ /**
+ * @description Currently always `requires_authorization`.
+ * @example requires_authorization
+ * @enum {string}
+ */
+ status?: "requires_authorization";
+ /**
+ * @description Browser URL, on a DigitalOcean Cloud origin, where the user authorizes the connection.
+ * @example https://cloud.digitalocean.com/security/connectlinks/confirm?token=eyJhbGciOi
+ */
+ connect_url?: string;
+ /**
+ * @description Verification code issued with `connect_url`.
+ * @example 97rwxzcy
+ */
+ verification_code?: string;
+ /**
+ * Format: date-time
+ * @description When the authorization expires. The link can stop working earlier; if the connection becomes expired, create it again for a new link.
+ * @example 2026-07-14T01:00:00Z
+ */
+ expires_at?: string | null;
+ } | null;
+ /** @description Returns the connection and any authorization still needed. */
+ connection_response: {
+ /** @description The connection. */
+ connection?: components["schemas"]["connection"];
+ /** @description Present only while the connection is pending. */
+ authorization?: components["schemas"]["connection_authorization"];
+ };
+ /** @description Returns the connection and any authorization still needed. */
+ get_connection_response: {
+ /** @description The connection. */
+ connection?: components["schemas"]["connection"];
+ /** @description Present only while the connection is pending and you created it. */
+ authorization?: components["schemas"]["connection_authorization"];
+ };
+ /** @description Returns the revoked connection. */
+ delete_connection_response: {
+ /** @description The resulting revoked connection. */
+ connection?: components["schemas"]["connection"];
+ };
+ /** @description MCP server registered by your team. It never contains secret material. */
+ mcp_server: {
+ /**
+ * @description Server identifier, unique within your team. The server's tool slugs are `_`.
+ * @example docs
+ */
+ serverRef?: string;
+ /**
+ * @description HTTPS URL of the server's MCP endpoint.
+ * @example https://mcp.example.com/mcp
+ */
+ endpoint?: string;
+ /**
+ * @description Always `streamable_http`.
+ * @example streamable_http
+ * @enum {string}
+ */
+ transport?: "streamable_http";
+ /**
+ * @description How requests to the server authenticate: none, secret (a key or token sent in the Authorization header), or connection (each user's own OAuth authorization).
+ * @example secret
+ * @enum {string}
+ */
+ credentialRefSource?: "none" | "secret" | "connection";
+ /**
+ * @description The secret reference supplied at registration when source=secret, or the team's OAuth credential ID when source=connection. Empty when the server was registered with an `api_key`, whose storage DigitalOcean manages.
+ * @example action-infra/tool-credentials/mcp/docs/3f5b2c1e-9a7d-4e8b-b6c4-2d1f0e9a8b7c
+ */
+ credentialRef?: string;
+ /**
+ * @description Outcome of the latest discovery: pending (no discovery has finished yet), ok, failed, or `unsupported_protocol`. It is not reset while a resync runs.
+ * @example ok
+ * @enum {string}
+ */
+ syncStatus?: "pending" | "ok" | "failed" | "unsupported_protocol";
+ /**
+ * @description Why the latest discovery failed; empty after a successful one.
+ * @example
+ */
+ syncError?: string;
+ /**
+ * @description When discovery last succeeded, in RFC 3339 format; empty until the first success.
+ * @example 2026-09-20T15:04:05Z
+ */
+ lastSyncedAt?: string;
+ /**
+ * @description MCP protocol revision negotiated with the server.
+ * @example 2025-06-18
+ */
+ protocolVersion?: string;
+ /**
+ * Format: int32
+ * @description Number of tools discovered on the server, whether enabled or not.
+ * @example 3
+ */
+ toolCount?: number;
+ /**
+ * @description When the server was registered, in RFC 3339 format.
+ * @example 2026-09-20T15:00:00Z
+ */
+ createdAt?: string;
+ /**
+ * @description When the server was last modified, in RFC 3339 format.
+ * @example 2026-09-20T15:04:05Z
+ */
+ updatedAt?: string;
+ /**
+ * @description Team-authored description, shown on the server's catalog card. A resync does not replace it.
+ * @example Internal documentation search.
+ */
+ description?: string;
+ /**
+ * @description OAuth authorization endpoint. Set only when `credentialRefSource` is connection; the client secret is never returned.
+ * @example
+ */
+ oauth_authorize_url?: string;
+ /**
+ * @description OAuth scopes requested from each user. Set only when `credentialRefSource` is connection.
+ * @example []
+ */
+ oauth_scopes?: string[];
+ /**
+ * Format: uint64
+ * @description How long a user's authorization is reused before re-consent. Echoed so a team can read the window without re-registering to discover it.
+ * @example 0
+ */
+ oauth_authorization_ttl_seconds?: string;
+ };
+ /** @description Lists your team's MCP servers. */
+ list_mcp_servers_response: {
+ /** @description Servers sorted by `serverRef`. */
+ mcpServers?: components["schemas"]["mcp_server"][];
+ };
+ /** @description Describes an MCP server to register. */
+ mcp_server_create: {
+ /**
+ * @description Identifier for the server, unique within your team. Must match `^`[a-z]``[a-z0-9-]`{0,63}$`.
+ * @example docs
+ */
+ serverRef: string;
+ /**
+ * @description HTTPS URL of the server's MCP endpoint. Its host must resolve only to public IP addresses. Required.
+ * @example https://mcp.example.com/mcp
+ */
+ endpoint: string;
+ /**
+ * @description Optional. `streamable_http`, the default and only accepted value.
+ * @default streamable_http
+ * @example streamable_http
+ * @enum {string}
+ */
+ transport?: "streamable_http";
+ /**
+ * @description How requests to the server authenticate: none (the default), secret, or connection. With secret, the value from `credentialRef` or `api_key` is sent in the Authorization header, prefixed with "Bearer " unless it already contains a space.
+ * @default none
+ * @example secret
+ * @enum {string}
+ */
+ credentialRefSource?: "none" | "secret" | "connection";
+ /**
+ * @description Optional description shown on the server's catalog card. At most 1024 characters.
+ * @example Internal documentation search.
+ */
+ description?: string;
+ /**
+ * @description For `credentialRefSource` secret: a reference to a secret your team stores with DigitalOcean. Must match `^`[A-Za-z0-9]``[A-Za-z0-9:/_.-]`{0,254}$`. Set exactly one of `credentialRef` and `api_key`.
+ * @example
+ */
+ credentialRef?: string;
+ /**
+ * @description For `credentialRefSource` secret: the key or token itself. DigitalOcean stores it; it is write-only and no response returns it. Set exactly one of `credentialRef` and `api_key`.
+ * @example sk_live_example
+ */
+ api_key?: string;
+ /**
+ * @description Required for `credentialRefSource` connection: the client ID of your team's OAuth client for the server. Each user of the server then authorizes individually.
+ * @example
+ */
+ oauth_client_id?: string;
+ /**
+ * @description Required for `credentialRefSource` connection. Write-only; no response returns it.
+ * @example
+ */
+ oauth_client_secret?: string;
+ /**
+ * @description Required for `credentialRefSource` connection: the OAuth authorization endpoint. It must use the endpoint's scheme and port, on the endpoint's host or another host under the same registrable domain.
+ * @example
+ */
+ oauth_authorize_url?: string;
+ /**
+ * @description Required for `credentialRefSource` connection: the OAuth token endpoint, under the same rules as `oauth_authorize_url`.
+ * @example
+ */
+ oauth_token_url?: string;
+ /**
+ * @description Required for `credentialRefSource` connection: the scopes to request from each user, 1 to 64 of them.
+ * @example []
+ */
+ oauth_scopes?: string[];
+ /**
+ * Format: uint64
+ * @description How long, in seconds, a user's authorization may be reused before they must consent again. Optional;
+ * 0 means 30 days, and the maximum is 100 years.
+ *
+ * Authorizations are not refreshed automatically, so this window, not the provider's token lifetime,
+ * decides how often a user is sent back through consent. Set it no longer than the provider's own
+ * token lifetime, so the prompt arrives before a tool call fails against an expired token.
+ * @example 86400
+ */
+ oauth_authorization_ttl_seconds?: string;
+ };
+ /** @description Returns one MCP server. */
+ mcp_server_response: {
+ /** @description The MCP server. */
+ mcpServer?: components["schemas"]["mcp_server"];
+ };
+ /** @description Carries the editable fields of a registered server. */
+ mcp_server_update: {
+ /**
+ * @description Replaces the stored description; empty clears it. At most 1024 characters.
+ * @example Internal documentation and runbook search.
+ */
+ description?: string;
+ };
+ /** @description Selects the server to discover. */
+ mcp_server_resync: {
+ /**
+ * @description Required for a server registered with `credentialRefSource` connection: discovery reaches the server as this user, through their connection, because such a server has no team-wide credential. Ignored otherwise.
+ * @example alice
+ */
+ user_id?: string;
+ };
+ /** @description One tool discovered on an MCP server. */
+ mcp_server_tool: {
+ /**
+ * @description Tool name as the server reports it, normalized to the catalog's naming rules.
+ * @example search
+ */
+ name?: string;
+ /**
+ * @description `_`: the tool's catalog slug, and the value to list in `enabledToolSlugs`.
+ * @example docs_search
+ */
+ toolSlug?: string;
+ /**
+ * @description Tool description as the server reports it.
+ * @example Search the documentation index.
+ */
+ description?: string;
+ /**
+ * @description Whether the tool is enabled in your team's catalog.
+ * @example true
+ */
+ enabled?: boolean;
+ /**
+ * @description True when the enabled tool was suspended because it disappeared from the server or its input schema changed incompatibly. Calls to it fail until it is enabled again.
+ * @example false
+ */
+ quarantined?: boolean;
+ /**
+ * @description Why the tool was quarantined; empty otherwise.
+ * @example
+ */
+ quarantineReason?: string;
+ };
+ /** @description Reports the result of a discovery. */
+ resync_mcp_server_response: {
+ /** @description The server, including `syncStatus` and `syncError`. */
+ mcpServer?: components["schemas"]["mcp_server"];
+ /** @description Every tool discovered on the server when discovery finished in time; empty when pending is true. */
+ tools?: components["schemas"]["mcp_server_tool"][];
+ /**
+ * @description True when discovery is still running (HTTP 202). Poll the server to see the outcome.
+ * @example false
+ */
+ pending?: boolean;
+ /** @description Set when discovery could not run because `user_id` has no authorized connection to this server yet. It carries the remedy — send the user to `connect_url` — so the caller acts on this response rather than parsing the server's `syncError`. */
+ authorization?: components["schemas"]["connection_authorization"];
+ };
+ /** @description Lists an MCP server's discovered tools. */
+ list_mcp_server_tools_response: {
+ /** @description Tools sorted by name. */
+ tools?: components["schemas"]["mcp_server_tool"][];
+ };
+ /** @description Complete set of a server's tools to enable. */
+ mcp_server_tools_update: {
+ /**
+ * @description The complete set of tool slugs (`_`) to enable; every other tool of the server is disabled. Empty disables every tool.
+ * @example [
+ * "docs_search",
+ * "docs_get_page"
+ * ]
+ */
+ enabledToolSlugs: string[];
+ /**
+ * @description Required for a server registered with `credentialRefSource` connection when a tool needs verification against the live server, which can only be reached as a user who has authorized it. Ignored otherwise.
+ * @example
+ */
+ user_id?: string;
+ };
+ /** @description Output view as your team sees it. */
+ output_view: {
+ /**
+ * @description Output view ID, for example `ov_` followed by 32 hex digits. Empty on a preview.
+ * @example ov_4f0c2a9d8e1b47c6a3d5f7e9b1c3a5d7
+ */
+ view_id?: string;
+ /**
+ * @description The opaque identity of the exact tool version the view is bound to; tool and version are its readable coordinates.
+ * @example tul_exa_web_search
+ */
+ tool_id?: string;
+ /**
+ * @description The provider-qualified tool slug, for example `exa_search`.
+ * @example exa_web_search
+ */
+ tool?: string;
+ /**
+ * @description The tool version, for example `v3`.
+ * @example v1
+ */
+ version?: string;
+ /**
+ * @description Your team's ID on your team's views, and empty for a view DigitalOcean publishes to every team.
+ * @example 123456
+ */
+ team_id?: string;
+ /**
+ * @description View name, unique per tool version among its owner's views.
+ * @example titles-and-urls
+ */
+ name?: string;
+ /**
+ * @description View description.
+ * @example Keep only result titles and URLs.
+ */
+ description?: string;
+ /**
+ * @description `OUTPUT_VIEW_KIND_PROJECTION` or `OUTPUT_VIEW_KIND_TRANSFORM`.
+ * @example OUTPUT_VIEW_KIND_PROJECTION
+ * @enum {string}
+ */
+ kind?: "OUTPUT_VIEW_KIND_PROJECTION" | "OUTPUT_VIEW_KIND_TRANSFORM";
+ /**
+ * @description The dotted output paths a projection keeps; arrays are traversed element-wise. Empty for a transform.
+ * @example [
+ * "results.title",
+ * "results.url"
+ * ]
+ */
+ fields?: string[];
+ /**
+ * @description The JSON Schema every result of this view satisfies.
+ * @example {
+ * "type": "object",
+ * "properties": {
+ * "results": {
+ * "type": "array",
+ * "items": {
+ * "type": "object",
+ * "properties": {
+ * "title": {
+ * "type": "string"
+ * },
+ * "url": {
+ * "type": "string"
+ * }
+ * }
+ * }
+ * }
+ * }
+ * }
+ */
+ output_schema?: Record | null;
+ /** @description Null on a preview, which stores nothing. */
+ audit?: {
+ /**
+ * Format: date-time
+ * @description When the resource was created.
+ * @example 2026-09-01T16:00:00Z
+ */
+ createdAt?: string | null;
+ /**
+ * Format: date-time
+ * @description When the resource was last modified.
+ * @example 2026-09-01T16:00:00Z
+ */
+ updatedAt?: string | null;
+ /**
+ * Format: date-time
+ * @description Set once the resource is deleted.
+ * @example null
+ */
+ deletedAt?: string | null;
+ } | null;
+ };
+ /**
+ * @description An opaque cursor for the next page of results. Pass it back verbatim as `page_token`. It is empty on the last page.
+ * @example ZXhhX3dlYl9zZWFyY2hAMQ
+ */
+ next_page_token: string;
+ /** @description One page of output views. */
+ list_output_views_response: {
+ /** @description Ordered by tool version, then published views before your team's own, then name. */
+ views?: components["schemas"]["output_view"][];
+ /**
+ * @description The tool version the views are bound to, echoed so an unpinned request learns which version it resolved. Empty when the request named no tool.
+ * @example tul_exa_web_search
+ */
+ tool_id?: string;
+ /**
+ * @description Tool slug of that version. Empty when the request named no tool.
+ * @example exa_web_search
+ */
+ tool?: string;
+ /**
+ * @description Version of that tool, for example `v3`. Empty when the request named no tool.
+ * @example v1
+ */
+ version?: string;
+ /** @description Empty on the last page. */
+ next_page_token?: string & components["schemas"]["next_page_token"];
+ };
+ /** @description Describes a projection of one tool version's output. */
+ output_view_create: {
+ /**
+ * @description Exactly one of tool or `tool_id` selects the tool version. tool is a provider-qualified slug, optionally pinned as `@`. You can bind only the released version your catalog exposes: an unpinned slug resolves it and the response echoes it as version; a pin must equal it, and a `tool_id` (the opaque identity from tool search) must be that version. Any other version returns 404.
+ * @example exa_web_search
+ */
+ tool?: string;
+ /**
+ * @description Opaque ID of the tool version; see tool.
+ * @example
+ */
+ tool_id?: string;
+ /**
+ * @description View name. Must match `^`[a-z]``[a-z0-9_-]`{0,63}$` and be unique per tool version within your team.
+ * @example titles-and-urls
+ */
+ name: string;
+ /**
+ * @description Optional description. At most 512 bytes.
+ * @example Keep only result titles and URLs.
+ */
+ description?: string;
+ /**
+ * @description Output paths to keep, 1 to 64 of them. Each is a dotted path of up to 8 segments made of `[A-Za-z0-9_-]`, and must be declared by the tool's output schema; arrays are traversed element-wise. Paths may not repeat or be a prefix of one another. The tool version must declare an object output schema.
+ * @example [
+ * "results.title",
+ * "results.url"
+ * ]
+ */
+ fields: string[];
+ };
+ /** @description Returns one output view. */
+ output_view_response: {
+ /** @description The output view. */
+ view?: components["schemas"]["output_view"];
+ };
+ /** @description Carries the same fields as CreateOutputViewRequest. name and description are optional here: when present they are validated as on create, so a form can preview before the view is named. */
+ output_view_preview: {
+ /**
+ * @description Tool slug, optionally pinned; as on create.
+ * @example exa_web_search
+ */
+ tool?: string;
+ /**
+ * @description Opaque ID of the tool version; as on create.
+ * @example
+ */
+ tool_id?: string;
+ /**
+ * @description Optional view name, validated as on create when present.
+ * @example titles-and-urls
+ */
+ name?: string;
+ /**
+ * @description Optional description, validated as on create when present.
+ * @example Keep only result titles and URLs.
+ */
+ description?: string;
+ /**
+ * @description Output paths to keep; as on create.
+ * @example [
+ * "results.title",
+ * "results.url"
+ * ]
+ */
+ fields: string[];
+ };
+ /**
+ * Format: uuid
+ * @description Lowercase, hyphenated endpoint UUID, without a URN prefix.
+ * @example 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13
+ */
+ endpoint_id: string;
+ /**
+ * @description Endpoint name, unique within your team.
+ * @example support-agent
+ */
+ endpoint_name: string;
+ /**
+ * @description The endpoint UUID followed by .v and its version number, without a URN prefix. The UUID is lowercase and hyphenated. The number is from 1 through 4294967295, in decimal without signs or leading zeros. A bare UUID is not a version ID.
+ * @example 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13.v1
+ */
+ endpoint_version_id: string;
+ /**
+ * Format: int64
+ * @description Positive unsigned 32-bit version number, never reused after deletion.
+ * @example 1
+ */
+ version_number: number;
+ /** @description Tool-permission policy. Omission or an empty object asks before every call. Property names are camelCase, as in the session API. */
+ endpoint_policy: {
+ /**
+ * @description Action for calls no rule matches. Omission means ask; responses then return SESSION_POLICY_ACTION_UNSPECIFIED.
+ * @example ask
+ * @enum {string}
+ */
+ defaultAction?: "allow" | "ask" | "deny" | "SESSION_POLICY_ACTION_UNSPECIFIED";
+ /**
+ * @description Rules for selected tools or toolbelts.
+ * @example []
+ */
+ rules?: {
+ /**
+ * @description Selected tool slug or version-pinned toolbelt reference.
+ * @example exa_web_search
+ */
+ tool: string;
+ /**
+ * @description Argument conditions; an empty object matches every call to the tool.
+ * @example {}
+ */
+ match?: {
+ [key: string]: string;
+ };
+ /**
+ * @description Action when the rule matches.
+ * @example allow
+ * @enum {string}
+ */
+ action: "allow" | "ask" | "deny";
+ }[];
+ } | null;
+ /** @description Omitted when the request omitted tools (all tools). A present selection with no references represents tools: []. */
+ tools: {
+ /** @description The selected references. Empty means the session exposes no tools. */
+ references?: {
+ /**
+ * @description Whether name is a tool or a toolbelt.
+ * @example SESSION_TOOL_REFERENCE_KIND_TOOLBELT
+ * @enum {string}
+ */
+ kind?: "SESSION_TOOL_REFERENCE_KIND_TOOL" | "SESSION_TOOL_REFERENCE_KIND_TOOLBELT";
+ /**
+ * @description Tool slug or toolbelt name.
+ * @example search-toolbelt
+ */
+ name?: string;
+ /**
+ * @description Pinned version.
+ * @example 1
+ */
+ version?: string;
+ }[];
+ };
+ /**
+ * @description Opts the session into result caching. Omit config.cache to leave caching off. Set exactly one of tools or allEligible. Caching must also be enabled for the team. Tool selection and permission rules still apply to every call.
+ * @example {
+ * "allEligible": true,
+ * "maxAgeSeconds": 60
+ * }
+ */
+ session_cache: {
+ /**
+ * @description Provider-qualified tool slugs to cache. Every listed tool must resolve for the team and have a catalog cache policy, or session creation fails. Use slugs without version suffixes or toolbelt references. An empty array enables no tools.
+ * @example [
+ * "exa_web_search"
+ * ]
+ */
+ tools?: string[];
+ /**
+ * @description Enables caching for every called tool version with a catalog cache policy, including tools that become eligible after session creation. Do not combine with tools.
+ * @example true
+ * @enum {boolean}
+ */
+ allEligible?: true;
+ /**
+ * @description Maximum cache lifetime in seconds for this session. Omit to use each tool's lifetime, up to 300 seconds. A smaller tool lifetime or provider response cache header can shorten it. Per-call max_age_seconds can require a fresher result but cannot increase this limit.
+ * @example 60
+ */
+ maxAgeSeconds?: number;
+ } & (unknown | unknown);
+ /** @description Version options, stored and returned as supplied. Omission leaves config absent; an explicit empty object is preserved. Property names are camelCase, as in the session API; other keys are stored but have no effect. */
+ endpoint_config: {
+ /**
+ * @description Tool names, optionally version-pinned, or version-pinned toolbelt references.
+ * @example [
+ * "exa_web_search"
+ * ]
+ */
+ preloadTools?: string[];
+ /**
+ * @description Maps up to 100 tool slugs to output-view names.
+ * @example {
+ * "exa_web_search": "titles-and-urls"
+ * }
+ */
+ outputViews?: {
+ [key: string]: string;
+ };
+ /**
+ * @description Instructions for tools in this version.
+ * @example Prefer primary sources and cite URLs.
+ */
+ customInstructions?: string;
+ cache?: components["schemas"]["session_cache"];
+ } & {
+ [key: string]: unknown;
+ };
+ /**
+ * Format: uuid
+ * @description UUID of a VPC owned by your team in a supported region.
+ * @example 5a4981aa-9653-4bd1-bef5-d6bff52042e4
+ */
+ vpcUuid: string;
+ /** @description VPC binding, including the VPC region recorded at creation. Omitted when no binding was supplied. */
+ endpoint_network_response: {
+ vpcUuid: components["schemas"]["vpcUuid"];
+ /**
+ * @description The VPC's region, recorded when the version was created. A tool call through a connection whose VPC is in a different region is refused. This field is returned in responses only and is rejected in requests.
+ * @example nyc3
+ */
+ readonly region: string;
+ };
+ /** @description Records which of a session's telemetry is sent to Insights. */
+ session_insights: {
+ /**
+ * @description Accepted and stored for parity with the Insights schema.
+ * @example true
+ */
+ metrics?: boolean | null;
+ /**
+ * @description Whether the session's customer logs are sent to Insights.
+ * @example true
+ */
+ logs?: boolean | null;
+ /**
+ * @description Whether the session's customer traces are sent to Insights.
+ * @example false
+ */
+ traces?: boolean | null;
+ };
+ /** @description An immutable, live endpoint version. Its ID must encode endpoint_id and version_number. Deleting it does not reuse its number or change older versions. Deletion is final: retries, replays, and later writes cannot resurrect its identity. Identical contents require a new version identity and number. Omitted tools means every tool; a present selection with empty references means no tools. Policy and config retain omission versus explicitly empty objects. */
+ endpoint_version: {
+ id: components["schemas"]["endpoint_version_id"];
+ endpoint_id: components["schemas"]["endpoint_id"];
+ version_number: components["schemas"]["version_number"];
+ promoted_from_version_number?: components["schemas"]["version_number"];
+ /**
+ * @description The endpoint's name when this version was created. Renaming the endpoint does not change it.
+ * @example support-agent
+ */
+ name: string;
+ /**
+ * @description Actor binding shared by every version of the endpoint; empty means no actor.
+ * @example alice
+ */
+ actor_id: string;
+ policy: components["schemas"]["endpoint_policy"];
+ /** @description Canonical pinned selection; omitted means every tool, empty references means none. */
+ tools?: components["schemas"]["tools"];
+ config?: components["schemas"]["endpoint_config"];
+ network?: components["schemas"]["endpoint_network_response"];
+ /**
+ * @deprecated
+ * @description Deprecated: always omitted. Versions do not carry Insights consent; read the endpoint's insights instead.
+ */
+ insights?: components["schemas"]["session_insights"];
+ /**
+ * Format: uri
+ * @description Pinned MCP URL for this version, valid for the version's lifetime. It is the same value the create response returns as version_mcp_url. Its final segment is the backing session UUID, not the composite version ID. VPC-bound versions may use a regional host. Returned in responses only.
+ * @example https://actions.do-ai.run/mcp/endpoint/1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13/version/9a7c2d5b-6e8f-4a13-8f3c-2a6e1b4d4e0f
+ */
+ readonly mcp_url?: string;
+ /**
+ * Format: date-time
+ * @description When the version was created.
+ * @example 2026-10-15T14:00:00Z
+ */
+ created_at: string;
+ /**
+ * Format: date-time
+ * @description When the version was last updated.
+ * @example 2026-10-15T14:00:00Z
+ */
+ updated_at: string;
+ };
+ /**
+ * @description Accepted and stored for parity with the Insights schema.
+ * @example true
+ */
+ metrics: boolean | null;
+ /**
+ * @description Whether the session's customer logs are sent to Insights.
+ * @example true
+ */
+ logs: boolean | null;
+ /**
+ * @description Whether the session's customer traces are sent to Insights.
+ * @example false
+ */
+ traces: boolean | null;
+ /** @description The endpoint's Insights consent. It applies to every version of the endpoint, including pinned and older versions. For each signal independently, the latest explicit true enables and false disables. Omission preserves the existing value through updates, head replacement, and new-version creation; none of these operations implicitly resets a choice, and a stored choice cannot be cleared. Metrics defaults are unchanged. */
+ endpoint_insights: {
+ metrics?: components["schemas"]["metrics"];
+ /**
+ * @description Explicit true enables customer logs and false disables them. Omission preserves the existing choice without an implicit reset.
+ * @example true
+ */
+ logs?: (boolean & components["schemas"]["logs"]) | null;
+ /**
+ * @description Explicit true enables customer traces and false disables them. Omission preserves the existing choice without an implicit reset.
+ * @example false
+ */
+ traces?: (boolean & components["schemas"]["traces"]) | null;
+ } | null;
+ /** @description A named lineage of immutable versions owned by its creating user. Only that user may use it, update it, create versions, or promote versions. A team owner may also list and delete team endpoints, but may not use them or add versions. Service-managed endpoints and their versions are not part of the public API: lists and search omit them, every read or write of one returns the same 404 as an unknown ID, and deleting one returns the same 204 as deleting an unknown ID without changing it. Deletion is final for this identity and all cascaded version identities; retries, replays, and later writes cannot resurrect them. Reusing identical contents after endpoint deletion requires a new endpoint identity and a new version identity and number. */
+ endpoint: {
+ id: components["schemas"]["endpoint_id"];
+ name: components["schemas"]["endpoint_name"];
+ /**
+ * @description Immutable actor binding; empty means no actor.
+ * @example alice
+ */
+ actor_id: string;
+ /**
+ * @description True only for your own default endpoint in the team: the one the generic MCP URL and data-plane requests without `X-Session-Id` or `X-Endpoint-Id` resolve to for you, which Action Gateway creates on first use. False for every other endpoint, including other team members' default endpoints that a team owner can see, so a response marks at most one endpoint. A default endpoint does not count toward your team's endpoint limit or reserve its name. After it is deleted, the next such request creates a new default. Returned in responses only.
+ * @example false
+ */
+ readonly is_default?: boolean;
+ /** @description Embedded live head version, the highest-numbered live version. Null when no live version remains. */
+ head_version?: components["schemas"]["endpoint_version"] | null;
+ insights?: components["schemas"]["endpoint_insights"];
+ /**
+ * Format: uri
+ * @description MCP URL that resolves the highest-numbered live version on every request. Its host follows the head version's VPC region, or the default host when no version is live. It is the same value the create response returns as mcp_url. Returned in responses only.
+ * @example https://actions.do-ai.run/mcp/endpoint/1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13
+ */
+ readonly mcp_url?: string;
+ /**
+ * Format: date-time
+ * @description When the endpoint was created.
+ * @example 2026-10-15T14:00:00Z
+ */
+ created_at: string;
+ /**
+ * Format: date-time
+ * @description When the endpoint was last changed.
+ * @example 2026-10-15T14:00:00Z
+ */
+ updated_at: string;
+ };
+ /**
+ * @description Opaque keyset cursor for the next page; an empty string marks the last page. Bound to the team, caller visibility, normalized filters, resource kind, and parent endpoint for version lists. Contains no full URNs or database row IDs. Pass it unchanged as page_token with the same criteria.
+ * @example
+ */
+ endpoints_next_page_token: string;
+ /** @description A keyset page without offsets or totals. */
+ endpoints_response: {
+ /**
+ * @description Endpoints ordered by creation time descending, then endpoint UUID descending.
+ * @example []
+ */
+ endpoints: components["schemas"]["endpoint"][];
+ next_page_token: components["schemas"]["endpoints_next_page_token"];
+ };
+ /** @description VPC binding supplied at creation. Omitted when no binding was supplied. region is output-only; requests containing it are rejected. */
+ endpoint_network: {
+ /**
+ * Format: uuid
+ * @description UUID of a VPC owned by your team in a supported region.
+ * @example 5a4981aa-9653-4bd1-bef5-d6bff52042e4
+ */
+ vpcUuid?: string;
+ };
+ /** @description Immutable version configuration. The endpoint owner and actor cannot change between versions. Omitted or empty actor_id means no actor binding. */
+ endpoint_version_spec: {
+ /**
+ * @description Actor whose provider connections are used. Omitted or empty means no actor.
+ * @example alice
+ */
+ actor_id?: string;
+ policy?: components["schemas"]["endpoint_policy"];
+ /**
+ * @description Omitted enables every tool; an explicit empty array enables no tools. Direct tools use provider-qualified slugs, optionally pinned as tool@version. Toolbelts must be pinned as toolbelt:name@version. Floating pins are rejected.
+ * @example [
+ * "exa_web_search@1"
+ * ]
+ */
+ tools?: string[];
+ config?: components["schemas"]["endpoint_config"];
+ network?: components["schemas"]["endpoint_network"];
+ /**
+ * @deprecated
+ * @description Deprecated: accepted and ignored. Versions do not carry Insights consent; set the endpoint's insights when creating the endpoint or with PATCH /v2/action-gateway/endpoints/{endpoint_id}.
+ */
+ insights?: components["schemas"]["endpoint_insights"] | null;
+ };
+ /** @description Creates an endpoint and its first version atomically. Omitting insights stores no explicit Insights choice. */
+ endpoint_create: {
+ name: components["schemas"]["endpoint_name"];
+ version: components["schemas"]["endpoint_version_spec"];
+ insights?: components["schemas"]["endpoint_insights"];
+ };
+ /** @description Returns the new head, its endpoint, and both MCP URLs. */
+ endpoint_publish_response: {
+ endpoint: components["schemas"]["endpoint"];
+ version: components["schemas"]["endpoint_version"];
+ /**
+ * Format: uri
+ * @description MCP URL that resolves the highest-numbered live version on every request. Its host follows the head version's VPC region, or the default host when no version is live.
+ * @example https://actions.do-ai.run/mcp/endpoint/1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13
+ */
+ mcp_url: string;
+ /**
+ * Format: uri
+ * @description Pinned MCP URL, valid for this version's lifetime. Its final segment is the backing session UUID, not the public composite version ID. VPC-bound versions may use a regional host. Existing /mcp/session/ URLs keep working.
+ * @example https://actions.do-ai.run/mcp/endpoint/1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13/version/9a7c2d5b-6e8f-4a13-8f3c-2a6e1b4d4e0f
+ */
+ version_mcp_url: string;
+ };
+ /** @description A ranked page of matching endpoints without offsets or totals. */
+ endpoint_search_response: {
+ /**
+ * @description Matching endpoints in rank order across the whole result set. Do not re-sort a page to rank it.
+ * @example []
+ */
+ endpoints: components["schemas"]["endpoint"][];
+ next_page_token: components["schemas"]["endpoints_next_page_token"];
+ };
+ /** @description Returns an endpoint, including its live head when one exists. */
+ endpoint_response: {
+ endpoint: components["schemas"]["endpoint"];
+ };
+ /** @description Renames an endpoint, changes its Insights consent, or both; its identity and versions do not change. Send a name, at least one insights signal, or both. A body with neither, including one whose only field is an empty insights object, returns 400 endpoint_update_empty. An empty insights object next to a name is a rename. Unrecognized fields are ignored. */
+ endpoint_patch: {
+ name?: components["schemas"]["endpoint_name"];
+ insights?: components["schemas"]["endpoint_insights"];
+ };
+ /** @description A keyset page of live versions without offsets or totals. */
+ endpoint_versions_response: {
+ /**
+ * @description Live versions ordered by version_number descending.
+ * @example []
+ */
+ versions: components["schemas"]["endpoint_version"][];
+ next_page_token: components["schemas"]["endpoints_next_page_token"];
+ };
+ /** @description Live version of this endpoint whose configuration will be copied to a new head. */
+ endpoint_promotion: {
+ version_id: components["schemas"]["endpoint_version_id"];
+ };
+ /** @description Returns one immutable live version. */
+ endpoint_version_response: {
+ version: components["schemas"]["endpoint_version"];
+ };
+ /** @description Tool-permission policy of a session. */
+ session_policy: {
+ /**
+ * @description Action for calls no rule matches. Empty means ask; otherwise this must be allow, ask, or deny.
+ * @example ask
+ * @enum {string}
+ */
+ defaultAction?: "allow" | "ask" | "deny";
+ /** @description Rules for specific tools or toolbelts. */
+ rules?: {
+ /**
+ * @description Required. A tool slug, optionally `@`, or a toolbelt as `toolbelt:@`. When the session selects tools, the rule must name one of them.
+ * @example exa_web_search
+ */
+ tool?: string;
+ /**
+ * @description Optional argument conditions, keyed by argument name; the rule applies only to calls whose arguments match.
+ * @example {}
+ */
+ match?: {
+ [key: string]: string;
+ };
+ /**
+ * @description Required: allow, ask, or deny.
+ * @example allow
+ * @enum {string}
+ */
+ action?: "allow" | "ask" | "deny";
+ }[];
+ } | null;
+ /** @description Attaches a session to a VPC. */
+ session_network: {
+ /**
+ * Format: uuid
+ * @description UUID of a VPC owned by your team, in a region that supports sessions.
+ * @example 5a4981aa-9653-4bd1-bef5-d6bff52042e4
+ */
+ vpcUuid?: string;
+ };
+ /** @description A session and the tool-permission policy bound to it. */
+ session: {
+ /**
+ * Format: uuid
+ * @description Public parent endpoint UUID. Absent for legacy sessions without a parent.
+ * @example 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13
+ */
+ endpoint_id?: string;
+ /**
+ * @description Public composite version ID. Absent for legacy sessions without a parent.
+ * @example 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13.v1
+ */
+ endpoint_version_id?: string;
+ /**
+ * Format: int64
+ * @description Version number within the parent endpoint. Absent for legacy sessions without a parent.
+ * @example 1
+ */
+ version_number?: number;
+ /**
+ * @description Session URN, for example `do:managed_agent_session:`.
+ * @example do:managed_agent_session:2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b
+ */
+ sessionUrn?: string;
+ /**
+ * @description The required human-readable session name.
+ * @example support-bot-alice
+ */
+ name?: string;
+ /**
+ * @description Empty when the session is not bound to an actor.
+ * @example alice
+ */
+ actorId?: string;
+ /** @description The session's tool-permission policy. */
+ policy?: components["schemas"]["session_policy"];
+ /** @description Omitted when the request omitted tools (all tools). A present selection with no references represents tools: []. */
+ tools?: {
+ /** @description The selected references. Empty means the session exposes no tools. */
+ references?: {
+ /**
+ * @description Whether name is a tool or a toolbelt.
+ * @example SESSION_TOOL_REFERENCE_KIND_TOOLBELT
+ * @enum {string}
+ */
+ kind?: "SESSION_TOOL_REFERENCE_KIND_TOOL" | "SESSION_TOOL_REFERENCE_KIND_TOOLBELT";
+ /**
+ * @description Tool slug or toolbelt name.
+ * @example search-toolbelt
+ */
+ name?: string;
+ /**
+ * @description Pinned version.
+ * @example 1
+ */
+ version?: string;
+ }[];
+ };
+ /**
+ * @description Session options as supplied at creation. Omitted when none were supplied.
+ * @example {
+ * "preloadTools": [
+ * "exa_web_search"
+ * ],
+ * "outputViews": {
+ * "exa_web_search": "titles-and-urls"
+ * }
+ * }
+ */
+ config?: {
+ cache?: components["schemas"]["session_cache"];
+ } & {
+ [key: string]: unknown;
+ };
+ /** @description Omitted when the request omitted network. A present binding currently supports only VPC attachment by UUID. */
+ network?: components["schemas"]["session_network"];
+ /** @description Omitted when no explicit customer Insights choice was stored. */
+ insights?: components["schemas"]["session_insights"];
+ /**
+ * @description URN of the agent that started the session. Empty for sessions created through this API.
+ * @example
+ */
+ agentUrn?: string;
+ /**
+ * @description Name of the agent that started the session. Empty for sessions created through this API.
+ * @example
+ */
+ agentName?: string;
+ /**
+ * Format: date-time
+ * @description When the session was created.
+ * @example 2026-09-24T12:00:00Z
+ */
+ createdAt?: string | null;
+ /**
+ * Format: date-time
+ * @description When the session was last modified.
+ * @example 2026-09-24T12:00:00Z
+ */
+ updatedAt?: string | null;
+ /**
+ * @description DigitalOcean user ID of the user who created the session, when recorded.
+ * @example 2f8e1c3a-6b4d-4f7e-9a1c-5d3b7e9f1a2c
+ */
+ owning_user_id?: string;
+ };
+ /** @description One page of sessions. */
+ list_sessions_response: {
+ /** @description Sessions, newest first. */
+ sessions?: components["schemas"]["session"][];
+ /** @description Paging applied to this response and the total number of sessions. */
+ pagination?: components["schemas"]["pagination"];
+ };
+ /** @description Describes a session to create. */
+ session_create: {
+ /**
+ * @description Required human-readable session name.
+ * @example support-bot-alice
+ */
+ name: string;
+ /**
+ * @description Optional actor binding: the user whose connections the session's tool calls use, matched against connection `user_id`. When set it must use the same alphabet as a connection's `user_id`, `[A-Za-z0-9._-]`, at most 64 characters; anything else is rejected with 400.
+ * @example alice
+ */
+ actorId?: string;
+ /** @description Optional tool-permission policy. Omitted asks before every call. */
+ policy?: components["schemas"]["session_policy"];
+ /**
+ * @description Omitted enables every tool. An explicit empty array enables no tools. Direct tools may be `` or `@`, using provider-qualified tool slugs, and a pinned version must be the released one; toolbelt references must be version-pinned as `toolbelt:@`.
+ * @example [
+ * "toolbelt:search-toolbelt@1",
+ * "jira_create_issue"
+ * ]
+ */
+ tools?: string[];
+ /**
+ * @description Optional session options. config.preloadTools may contain concrete tool names (optionally version-pinned) and version-pinned toolbelt references. config.customInstructions is a string of at most 1000 characters. config.outputViews maps up to 100 tool slugs to the name of an output view to apply to that tool's results. config.cache opts eligible tools into result caching for this session.
+ * @example {
+ * "preloadTools": [
+ * "exa_web_search"
+ * ],
+ * "outputViews": {
+ * "exa_web_search": "titles-and-urls"
+ * },
+ * "customInstructions": "Prefer primary sources and cite URLs."
+ * }
+ */
+ config?: {
+ cache?: components["schemas"]["session_cache"];
+ } & {
+ [key: string]: unknown;
+ };
+ /** @description Product-level session network binding. When set, `vpc_uuid` must identify a VPC owned by the session's team. */
+ network?: components["schemas"]["session_network"];
+ /** @description Omitted when the request omitted insights or explicitly sent null. */
+ insights?: components["schemas"]["session_insights"];
+ };
+ /** @description Returns the created session. */
+ create_session_response: {
+ /** @description The created session. */
+ session?: components["schemas"]["session"];
+ /**
+ * @description URL of the session's MCP endpoint, for the agent to connect to.
+ * @example https://actions.do-ai.run/mcp/session/2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b
+ */
+ mcpUrl?: string;
+ /**
+ * @description Canonical, version-pinned selected tool references. Empty when the session exposes every tool.
+ * @example [
+ * "toolbelt:search-toolbelt@1",
+ * "jira_create_issue@1"
+ * ]
+ */
+ tools?: string[];
+ };
+ /** @description One page of matching sessions. */
+ search_sessions_response: {
+ /** @description Matching sessions in rank order. */
+ sessions?: components["schemas"]["session"][];
+ /** @description Token for the next page; empty on the last page. */
+ next_page_token?: string & components["schemas"]["next_page_token"];
+ };
+ /** @description Describes a toolbelt by its latest version, without the member list. */
+ toolbelt_summary: {
+ /**
+ * @description Toolbelt name.
+ * @example search-toolbelt
+ */
+ name?: string;
+ /**
+ * @description Human-readable label of the latest version.
+ * @example Search Tools
+ */
+ display_name?: string;
+ /**
+ * @description Description of the latest version.
+ * @example Tools for searching and fetching public web pages.
+ */
+ description?: string;
+ /**
+ * @description Latest version number, as a string.
+ * @example 1
+ */
+ latest_version?: string;
+ /**
+ * Format: int32
+ * @description Number of versions recorded under this name, including versions from before the toolbelt was deleted and the name reused.
+ * @example 1
+ */
+ version_count?: number;
+ /**
+ * Format: int32
+ * @description Number of members in the latest version.
+ * @example 2
+ */
+ tool_count?: number;
+ /**
+ * @description active, or deprecated once the toolbelt is deleted.
+ * @example active
+ * @enum {string}
+ */
+ status?: "active" | "deprecated";
+ /**
+ * @description The toolbelt name, which refers to whichever version is latest.
+ * @example search-toolbelt
+ */
+ reference_latest?: string;
+ /**
+ * Format: date-time
+ * @description When the latest version was last modified, in RFC 3339 format.
+ * @example 2026-06-11T12:00:00Z
+ */
+ updated_at?: string;
+ };
+ /** @description One page of your team's toolbelts. */
+ toolbelts_response: {
+ /** @description Toolbelts sorted by name. */
+ toolbelts?: components["schemas"]["toolbelt_summary"][];
+ /** @description Paging applied to this response and the total number of toolbelts. */
+ pagination?: components["schemas"]["pagination"];
+ };
+ /** @description Describes a new toolbelt. */
+ toolbelt_create: {
+ /**
+ * @description Toolbelt name, unique among your team's active toolbelts. Must match `^`[a-z]``[a-z0-9_-]`{0,63}$`; `search` is reserved.
+ * @example search-toolbelt
+ */
+ name: string;
+ /**
+ * @description Optional initial version number, a positive integer such as `1`. Defaults to 1.
+ * @default 1
+ * @example 1
+ */
+ version?: string;
+ /**
+ * @description Optional human-readable label, separate from name. At most 128 bytes.
+ * @example Search Tools
+ */
+ display_name?: string;
+ /**
+ * @description Optional description. At most 255 bytes.
+ * @example Tools for searching and fetching public web pages.
+ */
+ description?: string;
+ /**
+ * @description Optional initial members, as catalog tool slugs (`_`). Each may be pinned as `@`; a pin must equal the tool's current released version, and an unpinned tool is pinned to that version. Every tool must be an active catalog tool. Duplicates are merged; at most 500 tools. Empty creates a toolbelt with no tools.
+ * @example [
+ * "exa_web_search",
+ * "exa_web_fetch"
+ * ]
+ */
+ tools?: string[];
+ };
+ /** @description One version of a toolbelt. */
+ toolbelt: {
+ /**
+ * @description Toolbelt name, unique among your team's active toolbelts.
+ * @example search-toolbelt
+ */
+ name?: string;
+ /**
+ * @description Version number of this toolbelt version, as a string, for example `3`.
+ * @example 1
+ */
+ version?: string;
+ /**
+ * @description Human-readable label.
+ * @example Search Tools
+ */
+ display_name?: string;
+ /**
+ * @description Team-authored description.
+ * @example Tools for searching and fetching public web pages.
+ */
+ description?: string;
+ /**
+ * @description Members, sorted, each as `@`: the tool and the version this toolbelt version pins.
+ * @example [
+ * "exa_web_fetch@1",
+ * "exa_web_search@1"
+ * ]
+ */
+ tools?: string[];
+ /**
+ * @description active, or deprecated once the toolbelt is deleted.
+ * @example active
+ * @enum {string}
+ */
+ status?: "active" | "deprecated";
+ /**
+ * @description `@`, identifying this exact version. Sessions reference it as `toolbelt:@`.
+ * @example search-toolbelt@1
+ */
+ reference?: string;
+ /**
+ * @description The toolbelt name, which refers to whichever version is latest.
+ * @example search-toolbelt
+ */
+ reference_latest?: string;
+ /**
+ * Format: int32
+ * @description Number of entries in tools.
+ * @example 2
+ */
+ tool_count?: number;
+ /**
+ * Format: date-time
+ * @description When this version was created, in RFC 3339 format.
+ * @example 2026-06-11T12:00:00Z
+ */
+ created_at?: string;
+ /**
+ * Format: date-time
+ * @description When this version was last modified, in RFC 3339 format.
+ * @example 2026-06-11T12:00:00Z
+ */
+ updated_at?: string;
+ };
+ /** @description Returns the created toolbelt. */
+ toolbelt_response: {
+ /** @description The first version of the new toolbelt. */
+ toolbelt?: components["schemas"]["toolbelt"];
+ };
+ /** @description One page of matching toolbelts. */
+ search_toolbelts_response: {
+ /** @description Matching toolbelts sorted by name. */
+ toolbelts?: components["schemas"]["toolbelt_summary"][];
+ /** @description Token for the next page; empty on the last page. */
+ next_page_token?: string & components["schemas"]["next_page_token"];
+ };
+ /** @description Catalog metadata for one toolbelt member, so a client can render a toolbelt without also fetching the tool catalog. Input and output schemas are omitted; the tool catalog (`GET /v2/action-gateway/tools`) carries them. */
+ toolbelt_tool_detail: {
+ /**
+ * @description The provider-qualified, stable tool identifier (`_`). Treat it as opaque and pass it back verbatim.
+ * @example exa_web_search
+ */
+ tool_slug?: string;
+ /**
+ * @description The unqualified tool name, without the provider prefix.
+ * @example web_search
+ */
+ name?: string;
+ /**
+ * @description Human-readable tool title.
+ * @example Web Search
+ */
+ title?: string;
+ /**
+ * @description What the tool does.
+ * @example Search the public web with Exa and return relevant results with normalized text snippets.
+ */
+ description?: string;
+ /**
+ * @description The ID of the provider that offers the tool, broken out so a client never has to split `tool_slug`.
+ * @example exa
+ */
+ provider?: string;
+ /**
+ * @description Best-effort catalog metadata and is empty for a large share of the catalog. Do not rely on it being present.
+ * @example web-search
+ */
+ category?: string;
+ /**
+ * Format: int32
+ * @description The version this toolbelt version pins for the member, matching the `@` suffix in the corresponding toolbelt.tools entry.
+ * @example 1
+ */
+ version?: number;
+ };
+ /** @description Returns one toolbelt version and a page of member details. */
+ get_toolbelt_response: {
+ /** @description The requested toolbelt version. */
+ toolbelt?: components["schemas"]["toolbelt"];
+ /** @description The requested page of resolved catalog metadata for the members named in toolbelt.tools. It is a page, so it is not the membership of the toolbelt: read toolbelt.tools for that, and toolbelt.tool_count for the total. Ordering matches toolbelt.tools. */
+ tool_details?: components["schemas"]["toolbelt_tool_detail"][];
+ /** @description Token for the next page of `tool_details`; empty on the last page. */
+ next_page_token?: string & components["schemas"]["next_page_token"];
+ };
+ /** @description Returns a toolbelt after a change. */
+ toolbelt_update_response: {
+ /** @description After adding or removing tools: the new version, or the current version when membership did not change. After a delete: the latest version, with status deprecated. */
+ toolbelt?: components["schemas"]["toolbelt"];
+ };
+ /** @description One provider represented in a toolbelt's membership. Its provider fields (ID, name, description, `created_at`) match the toolkit entries of `GET /v2/action-gateway/tools/toolkits`, so a client can render the same provider card without a second request. */
+ toolbelt_provider_summary: {
+ /**
+ * @description The provider ID. Members recorded without a provider are grouped under `_legacy`, which is also accepted in the provider path.
+ * @example exa
+ */
+ provider?: string;
+ /**
+ * Format: int32
+ * @description How many toolbelt members belong to this provider.
+ * @example 2
+ */
+ tool_count?: number;
+ /**
+ * @description Equals provider; present so the entry has the same shape as a toolkit.
+ * @example exa
+ */
+ id?: string;
+ /**
+ * @description The provider's display name. Empty for `_legacy`.
+ * @example Exa
+ */
+ name?: string;
+ /**
+ * @description Provider description. Empty for `_legacy`.
+ * @example Web search tools backed by Exa.
+ */
+ description?: string;
+ /**
+ * @description The distinct tool categories among this toolbelt's members for the provider (sorted). Empty for `_legacy` or when no member has a category.
+ * @example [
+ * "web-search"
+ * ]
+ */
+ categories?: string[];
+ /**
+ * Format: date-time
+ * @description When the provider was added to the catalog. Unset for `_legacy`.
+ * @example 2026-06-01T00:00:00Z
+ */
+ created_at?: string | null;
+ };
+ /** @description One page of a toolbelt's providers. */
+ list_toolbelt_providers_response: {
+ /** @description The toolbelt version the providers were read from. */
+ toolbelt?: components["schemas"]["toolbelt"];
+ /** @description Providers sorted by ID. */
+ providers?: components["schemas"]["toolbelt_provider_summary"][];
+ /** @description Paging applied to this response and the total number of providers. */
+ pagination?: components["schemas"]["pagination"];
+ };
+ /** @description One page of a toolbelt's members from one provider. */
+ list_toolbelt_provider_tools_response: {
+ /** @description Members sorted by tool slug. */
+ tools?: components["schemas"]["toolbelt_tool_detail"][];
+ /** @description Paging applied to this response and the total number of matching members. */
+ pagination?: components["schemas"]["pagination"];
+ };
+ /** @description Lists the tools to add to or remove from a toolbelt. */
+ toolbelt_tools: {
+ /**
+ * @description Tool slugs (`_`) to add or remove, each optionally pinned as `@`. At least one is required. When adding, a pin must equal the tool's current released version.
+ * @example [
+ * "exa_web_search"
+ * ]
+ */
+ tools: string[];
+ };
+ /** @description Advisory hints about a tool's behavior, with the meaning of MCP tool annotations. Do not rely on them for security decisions. */
+ tool_annotations: {
+ /**
+ * @description Human-readable tool title.
+ * @example Web Search
+ */
+ title?: string;
+ /**
+ * @description The tool does not modify anything.
+ * @example true
+ */
+ readOnlyHint?: boolean;
+ /**
+ * @description Repeating a call with the same arguments has no additional effect.
+ * @example true
+ */
+ idempotentHint?: boolean;
+ /**
+ * @description The tool interacts with external systems beyond the provider's own data.
+ * @example true
+ */
+ openWorldHint?: boolean | null;
+ /**
+ * @description The tool may perform destructive updates.
+ * @example false
+ */
+ destructiveHint?: boolean | null;
+ } | null;
+ /** @description Summarizes a released tool. */
+ tool: {
+ /**
+ * @description Tool name, without the provider prefix.
+ * @example web_search
+ */
+ name?: string;
+ /**
+ * @description ID of the provider that offers the tool. For a tool from one of your team's MCP servers it is that server's `serverRef`.
+ * @example exa
+ */
+ toolkitId?: string;
+ /**
+ * @description The provider-qualified, stable tool identifier `_`. Pass this value back verbatim to the toolbelt add/remove endpoints; clients should treat it as opaque rather than reconstructing it from `toolkitId` and name.
+ * @example exa_web_search
+ */
+ toolSlug?: string;
+ /**
+ * @description Human-readable tool title.
+ * @example Web Search
+ */
+ title?: string;
+ /**
+ * @description What the tool does.
+ * @example Search the public web with Exa and return relevant results with normalized text snippets.
+ */
+ description?: string;
+ /**
+ * @description Released version, for example `v3`.
+ * @example v1
+ */
+ version?: string;
+ /**
+ * @description JSON Schema the tool's arguments must satisfy.
+ * @example {
+ * "type": "object",
+ * "properties": {
+ * "query": {
+ * "type": "string",
+ * "description": "Search query string."
+ * },
+ * "max_results": {
+ * "type": "integer",
+ * "description": "Maximum number of search results to return."
+ * }
+ * },
+ * "required": [
+ * "query"
+ * ]
+ * }
+ */
+ inputSchema?: Record | null;
+ /**
+ * @description JSON Schema of the tool's result, when declared.
+ * @example {
+ * "type": "object",
+ * "properties": {
+ * "query": {
+ * "type": "string"
+ * },
+ * "provider": {
+ * "type": "string"
+ * },
+ * "results": {
+ * "type": "array",
+ * "items": {
+ * "type": "object",
+ * "properties": {
+ * "title": {
+ * "type": "string"
+ * },
+ * "url": {
+ * "type": "string"
+ * },
+ * "text": {
+ * "type": "string"
+ * },
+ * "publishedDate": {
+ * "type": "string"
+ * }
+ * }
+ * }
+ * }
+ * }
+ * }
+ */
+ outputSchema?: Record | null;
+ /** @description Advisory behavior hints for the tool. */
+ annotations?: components["schemas"]["tool_annotations"];
+ /**
+ * @description Catalog hint that calls to the tool may run in parallel.
+ * @example true
+ */
+ parallelizable?: boolean;
+ /**
+ * @description Catalog hint that the tool's result can be streamed.
+ * @example true
+ */
+ streamingSafe?: boolean;
+ };
+ /** @description Catalog cache policy for an eligible read-only, non-destructive tool. Omitted when the tool is not eligible. This does not enable caching for a session; opt in through config.cache at session creation. */
+ tool_cache: {
+ /**
+ * @description Maximum cache lifetime in seconds for this tool version.
+ * @example 120
+ */
+ ttlSeconds: number;
+ };
+ /** @description Describes a tool you can call. */
+ tool_definition: {
+ /**
+ * @description The opaque identity of this released tool version.
+ * @example tul_exa_web_search
+ */
+ toolId?: string;
+ cache?: components["schemas"]["tool_cache"];
+ /**
+ * @description The tool name without the provider prefix.
+ * @example web_search
+ */
+ name?: string;
+ /**
+ * @description The ID of the provider that offers the tool. For a tool from one of your team's MCP servers it is that server's `serverRef`.
+ * @example exa
+ */
+ toolkitId?: string;
+ /**
+ * @description The provider-qualified tool identifier `_`. Treat it as opaque and pass it back verbatim.
+ * @example exa_web_search
+ */
+ toolSlug?: string;
+ /**
+ * @description Human-readable tool title.
+ * @example Web Search
+ */
+ title?: string;
+ /**
+ * @description What the tool does.
+ * @example Search the public web with Exa and return relevant results with normalized text snippets.
+ */
+ description?: string;
+ /**
+ * @description The JSON Schema the tool's arguments must satisfy.
+ * @example {
+ * "type": "object",
+ * "properties": {
+ * "query": {
+ * "type": "string"
+ * }
+ * },
+ * "required": [
+ * "query"
+ * ]
+ * }
+ */
+ inputSchema?: Record | null;
+ /**
+ * @description The JSON Schema of the tool's result, when declared.
+ * @example {
+ * "type": "object",
+ * "properties": {
+ * "results": {
+ * "type": "array",
+ * "items": {
+ * "type": "object"
+ * }
+ * }
+ * }
+ * }
+ */
+ outputSchema?: Record | null;
+ /** @description Advisory behavior hints for the tool. */
+ annotations?: components["schemas"]["tool_annotations"];
+ /**
+ * @description The released version, for example `v3`.
+ * @example v1
+ */
+ version?: string;
+ /** @description Names the provider account the tool acts through and the scopes it requests. */
+ auth?: {
+ /**
+ * @description Lists how the tool authenticates: oauth (a user connection), `user_token` (a key your team supplies), `shared_key` (a key DigitalOcean supplies), or none.
+ * @example [
+ * "shared_key"
+ * ]
+ */
+ modes?: string[];
+ /**
+ * @description The provider slug a connection is created for. Empty when the tool needs no provider account.
+ * @example exa
+ */
+ provider?: string;
+ /**
+ * @description The provider permissions the tool requests.
+ * @example []
+ */
+ scopes?: string[];
+ } | null;
+ /**
+ * @description Classifies the provider: native, `managed_api`, `customer_mcp`, sandbox, or `byo_mcp` (one of your team's MCP servers).
+ * @example managed_api
+ */
+ providerKind?: string;
+ };
+ /** @description One page of the tool catalog. */
+ list_tools_response: {
+ /**
+ * @description Catalog version identifier, for example `v1`.
+ * @example v1
+ */
+ version?: string;
+ /** @description Tools on this page, grouped by provider and sorted by name within a provider. */
+ tools?: components["schemas"]["tool"][];
+ /** @description definitions[i] describes tools[i]. */
+ definitions?: components["schemas"]["tool_definition"][];
+ /** @description page and `per_page` echo the values applied; total is the number of tools matching `toolkitId` across all pages. */
+ pagination?: components["schemas"]["pagination"];
+ };
+ /** @description Describes when health metrics were computed. */
+ health_snapshot: {
+ /**
+ * Format: date-time
+ * @description When the metrics were computed. They are recomputed at most every five minutes.
+ * @example 2026-09-24T12:00:00Z
+ */
+ measured_at?: string | null;
+ /**
+ * @description Length of the window the metrics cover, ending at `measured_at`.
+ * @example 86400s
+ */
+ window?: string;
+ /**
+ * @description True when the latest recomputation failed and earlier metrics, up to 30 minutes old, are returned instead.
+ * @example false
+ */
+ stale?: boolean;
+ };
+ /** @description Availability and latency of a tool or provider over a window, aggregated across all customers. Request volumes are not reported. */
+ health_metrics: {
+ /**
+ * @description `HEALTH_DATA_STATUS_AVAILABLE` when the window has calls to measure; `HEALTH_DATA_STATUS_NO_DATA` when it has none, in which case the metrics are null. Do not treat no data as healthy.
+ * @example HEALTH_DATA_STATUS_AVAILABLE
+ * @enum {string}
+ */
+ data_status?: "HEALTH_DATA_STATUS_AVAILABLE" | "HEALTH_DATA_STATUS_NO_DATA";
+ /**
+ * Format: double
+ * @description Percentage of calls that did not fail because of the provider (an upstream error, timeout, rate limit, or unavailability). Calls that failed for other reasons are not counted.
+ * @example 99.82
+ */
+ uptime_percentage?: number | null;
+ /**
+ * Format: double
+ * @description Median duration of successful calls, in milliseconds. Durations above 40960 ms are reported as 40960.
+ * @example 412.5
+ */
+ latency_p50_ms?: number | null;
+ /**
+ * Format: double
+ * @description 95th-percentile duration of successful calls, in milliseconds. Durations above 40960 ms are reported as 40960.
+ * @example 1180
+ */
+ latency_p95_ms?: number | null;
+ };
+ /** @description Health of one tool. */
+ tool_health: {
+ /**
+ * @description Catalog tool slug.
+ * @example exa_web_search
+ */
+ tool_slug?: string;
+ /**
+ * @description ID of the provider that offers the tool.
+ * @example exa
+ */
+ provider?: string;
+ /** @description Metrics over the window. */
+ health?: components["schemas"]["health_metrics"];
+ };
+ /** @description One page of tool health. */
+ list_tool_health_response: {
+ /** @description When the metrics were computed and the window they cover. */
+ snapshot?: components["schemas"]["health_snapshot"];
+ /** @description Tools sorted by provider, then tool slug. */
+ tools?: components["schemas"]["tool_health"][];
+ /** @description Paging applied to this response and the total number of tools. */
+ pagination?: components["schemas"]["pagination"];
+ };
+ /** @description Health of one provider, combining its tools. */
+ provider_health: {
+ /**
+ * @description Provider ID.
+ * @example exa
+ */
+ provider?: string;
+ /** @description Metrics over the window. */
+ health?: components["schemas"]["health_metrics"];
+ };
+ /** @description One page of provider health. */
+ list_provider_health_response: {
+ /** @description When the metrics were computed and the window they cover. */
+ snapshot?: components["schemas"]["health_snapshot"];
+ /** @description Providers sorted by ID. */
+ providers?: components["schemas"]["provider_health"][];
+ /** @description Paging applied to this response and the total number of providers. */
+ pagination?: components["schemas"]["pagination"];
+ };
+ /** @description Health of one tool. */
+ get_tool_health_response: {
+ /** @description When the metrics were computed and the window they cover. */
+ snapshot?: components["schemas"]["health_snapshot"];
+ /** @description The tool's metrics over the window. */
+ tool?: components["schemas"]["tool_health"];
+ /** @description Present only when the request set `include_history`. */
+ history?: {
+ /**
+ * @description Length of each point.
+ * @example 3600s
+ */
+ resolution?: string;
+ /**
+ * @description Means the same as HealthSnapshot.stale, for the history series. The series is refreshed independently, so a fresh snapshot can accompany an older history and vice versa.
+ * @example false
+ */
+ stale?: boolean;
+ /** @description Points oldest first, ending with the slot in progress. */
+ points?: {
+ /**
+ * Format: date-time
+ * @description Start of the slot.
+ * @example 2026-09-24T11:00:00Z
+ */
+ bucket_start?: string;
+ /** @description Metrics over the slot. */
+ health?: components["schemas"]["health_metrics"];
+ }[];
+ } | null;
+ };
+ /** @description One difference from the previous released version. */
+ tool_version_change: {
+ /**
+ * @description What changed. `inputPropertyAdded` is breaking when the property is required. `inputTypeChanged` and `outputTypeChanged` list the new types in `values`, and are breaking when a previously accepted input type is no longer accepted or an output can hold a new type. `requiredScopesAdded` is breaking because a connection authorized before the version may lack the scopes and must be reconnected. `inputSchemaChanged` and `outputSchemaChanged` cover other schema changes and are reported as breaking, except when an output schema is declared for the first time.
+ * @example requiredScopesAdded
+ * @enum {string}
+ */
+ type?: "inputPropertyAdded" | "inputPropertyRemoved" | "inputPropertyRequired" | "inputPropertyOptional" | "inputTypeChanged" | "inputEnumValuesAdded" | "inputEnumValuesRemoved" | "inputSchemaChanged" | "outputPropertyAdded" | "outputPropertyRemoved" | "outputPropertyOptional" | "outputTypeChanged" | "outputEnumValuesAdded" | "outputSchemaChanged" | "requiredScopesAdded" | "requiredScopesRemoved";
+ /**
+ * @description Dotted path of the schema property that changed, for example `page.cursor`. `items[]` names an array's elements. Empty for the schema root and for scope changes.
+ * @example page.cursor
+ */
+ path?: string;
+ /**
+ * @description The values the change concerns, sorted: enum values added or removed, the property's new types, or the scopes added or removed. Empty otherwise.
+ * @example [
+ * "organizations:read"
+ * ]
+ */
+ values?: string[];
+ /**
+ * @description True when a call that worked against the previous version can fail against this one.
+ * @example true
+ */
+ breaking?: boolean;
+ };
+ /** @description One released version of a catalog tool. */
+ tool_version_release: {
+ /**
+ * @description Catalog tool slug.
+ * @example supabase_list_organizations
+ */
+ tool_slug?: string;
+ /**
+ * @description Version, for example `v3`. Pin it as `@v3`.
+ * @example v17
+ */
+ version?: string;
+ /**
+ * Format: date-time
+ * @description When this version was first released.
+ * @example 2026-11-12T09:30:00Z
+ */
+ released_at?: string;
+ /**
+ * @description True for the version calls without a pinned version currently use. At most one version is latest; none is while a tool is withdrawn from the catalog.
+ * @example true
+ */
+ latest?: boolean;
+ /**
+ * @description The released version this one is compared with. Empty for the oldest version listed, which has no changes.
+ * @example v16
+ */
+ previous_version?: string;
+ /**
+ * @description True when any change is breaking.
+ * @example true
+ */
+ breaking?: boolean;
+ /** @description Changes from `previous_version`, input changes first, then output, then scopes. Descriptions, titles, and examples are not compared. */
+ changes?: components["schemas"]["tool_version_change"][];
+ };
+ /** @description One page of a tool's released versions, newest first. */
+ list_tool_versions_response: {
+ /** @description Released versions, newest first. */
+ versions?: components["schemas"]["tool_version_release"][];
+ /**
+ * @description Pass as `page_token` to read older versions. Empty on the last page.
+ * @example djE1
+ */
+ next_page_token?: string;
+ };
+ /** @description Describes one non-sensitive value collected while configuring a provider connection. Clients can render these specifications generically. */
+ connection_parameter_spec: {
+ /**
+ * @description Key of the value in `connection_parameters` or `credential_parameters`.
+ * @example site_url
+ */
+ key?: string;
+ /**
+ * @description Display label.
+ * @example Jira site URL
+ */
+ label?: string;
+ /**
+ * @description Help text.
+ * @example The HTTPS origin of the Jira Cloud site to use.
+ */
+ description?: string;
+ /**
+ * @description How the value is entered: string, `https_origin`, or enum.
+ * @example https_origin
+ * @enum {string}
+ */
+ input_kind?: "string" | "https_origin" | "enum";
+ /**
+ * @description Whether the value must be supplied.
+ * @example true
+ */
+ required?: boolean;
+ /**
+ * @description How the value is normalized before it is validated and stored: trim, lowercase, uppercase, or `https_origin`.
+ * @example https_origin
+ */
+ normalization?: string;
+ /**
+ * @description For enum inputs, the accepted values.
+ * @example []
+ */
+ allowed_values?: string[];
+ /**
+ * @description For `https_origin` inputs, the host suffixes the origin's host must match.
+ * @example [
+ * "atlassian.net"
+ * ]
+ */
+ allowed_host_suffixes?: string[];
+ /**
+ * Format: int32
+ * @description Maximum length of the value. 0 means the default maximum of 4096.
+ * @example 255
+ */
+ max_length?: number;
+ /**
+ * @description Optional RE2 expression matched against the whole normalized value.
+ * @example
+ */
+ pattern?: string;
+ };
+ /** @description Describes a catalog provider and how to authenticate to it. */
+ provider_summary: {
+ /**
+ * @description Provider slug, used as provider when creating a connection or a provider credential.
+ * @example jira
+ */
+ name?: string;
+ /**
+ * @description Human-readable provider name.
+ * @example Jira
+ */
+ display_name?: string;
+ /**
+ * @description Provider description.
+ * @example Jira issue tracking tools.
+ */
+ description?: string;
+ /**
+ * @description Credential kinds the provider accepts, sorted:
+ * none|oauth|`shared_api_key`|unknown|`user_oauth_app`|`user_token`.
+ *
+ * `none` means the provider needs no credential. `oauth` means users can connect through
+ * DigitalOcean's shared OAuth application. `user_oauth_app` means users can connect through an OAuth
+ * client your team registers as a provider credential; without `oauth` alongside it, that is the only
+ * way to connect. `shared_api_key` means DigitalOcean supplies the key. `user_token` means your team
+ * or its users supply a key or token.
+ *
+ * `unknown` means the provider declares no kind this API recognizes, including an OAuth provider whose
+ * shared application is not available. It is never paired with another kind.
+ * @example [
+ * "oauth"
+ * ]
+ */
+ auth_types?: string[];
+ /**
+ * @deprecated
+ * @description Deprecated: read `auth_types`, since a provider may accept more than one credential kind. This is the first entry of `auth_types` other than `none`, or `none` when that is the only entry.
+ * @example oauth
+ */
+ auth_type?: string;
+ /**
+ * @description The OAuth scopes a connection may request; a connection that requests none gets all of them. Set only when `auth_types` contains `oauth` or `user_oauth_app`.
+ * @example [
+ * "write:jira-work"
+ * ]
+ */
+ scopes?: string[];
+ /** @description Non-sensitive values collected when creating a connection. Set only when `auth_types` contains `oauth` or `user_oauth_app`. */
+ connection_parameters?: components["schemas"]["connection_parameter_spec"][];
+ /** @description Non-secret values collected when registering an API key provider credential. They are validated against the provider's declaration and used to derive the credential's `base_url`; callers cannot supply header names or arbitrary destinations. */
+ credential_parameters?: components["schemas"]["connection_parameter_spec"][];
+ /**
+ * @description Callback URL a team must register with the provider when it creates its own OAuth client. It is the same for every provider and cannot be changed per credential. Empty unless `auth_types` contains `user_oauth_app`.
+ * @example https://cloud.digitalocean.com/api/v1/security/connectlinks/callback
+ */
+ oauth_redirect_url?: string;
+ /**
+ * @description HTTPS page at the provider where a team creates that OAuth client, such as its developer console or setup guide. Empty unless `auth_types` contains `user_oauth_app` and the provider declares one.
+ * @example https://developer.atlassian.com/console/myapps/
+ */
+ oauth_client_setup_url?: string;
+ };
+ /** @description Lists the catalog providers. */
+ list_providers_response: {
+ /** @description Providers sorted by display name. */
+ providers?: components["schemas"]["provider_summary"][];
+ };
+ /** @description One page of matching providers. */
+ search_providers_response: {
+ /** @description Matching providers sorted by name. */
+ providers?: components["schemas"]["provider_summary"][];
+ /** @description Token for the next page; empty on the last page. */
+ next_page_token?: string & components["schemas"]["next_page_token"];
+ };
+ /** @description Summarizes one matching tool. Input and output schemas are omitted; the tool catalog (`GET /v2/action-gateway/tools`) carries them. */
+ tool_search_result: {
+ /**
+ * @description The provider-qualified, stable tool identifier (`_`). Treat it as opaque and pass it back verbatim.
+ * @example exa_web_search
+ */
+ tool_slug?: string;
+ /**
+ * @description The unqualified tool name, without the provider prefix.
+ * @example web_search
+ */
+ name?: string;
+ /**
+ * @description Human-readable tool title.
+ * @example Web Search
+ */
+ title?: string;
+ /**
+ * @description What the tool does.
+ * @example Search the public web with Exa and return relevant results with normalized text snippets.
+ */
+ description?: string;
+ /**
+ * @description The owning toolkit ID, broken out so a client never has to split `tool_slug`. It is what a client groups results by.
+ * @example exa
+ */
+ provider?: string;
+ /**
+ * @description Best-effort catalog metadata and is empty for a large share of the catalog. Do not rely on it being present.
+ * @example web-search
+ */
+ category?: string;
+ /**
+ * Format: int32
+ * @description The released version number of the tool, for example 3.
+ * @example 1
+ */
+ version?: number;
+ };
+ /** @description One page of matching tools. */
+ search_tools_response: {
+ /** @description Ordered by descending match quality, then by provider and name. The ordering is applied across the whole result set rather than within a page, so a client must not re-sort a page to rank it. */
+ tools?: components["schemas"]["tool_search_result"][];
+ /** @description Token for the next page; empty on the last page. */
+ next_page_token?: string & components["schemas"]["next_page_token"];
+ };
+ /** @description Provider of tools. */
+ toolkit: {
+ /**
+ * @description Provider ID. For one of your team's MCP servers it is normally the server's `serverRef`; `provider_kind` tells the two kinds apart.
+ * @example exa
+ */
+ id?: string;
+ /**
+ * @description Human-readable provider name.
+ * @example Exa
+ */
+ name?: string;
+ /**
+ * @description Provider description.
+ * @example Web search tools backed by Exa.
+ */
+ description?: string;
+ /**
+ * @description Distinct categories of the provider's released tools, sorted.
+ * @example [
+ * "web-search"
+ * ]
+ */
+ categories?: string[];
+ /**
+ * Format: date-time
+ * @description When the provider was added.
+ * @example 2026-06-01T00:00:00Z
+ */
+ created_at?: string | null;
+ /**
+ * @description Classifies the provider, for example `managed_api` or `byo_mcp` (one of your team's MCP servers). It is the same value as PublicToolDefinition.provider_kind for the provider's tools.
+ * @example managed_api
+ */
+ provider_kind?: string;
+ };
+ /** @description Lists the toolkits available to your team. */
+ list_toolkits_response: {
+ /**
+ * @description Catalog version identifier, for example `v1`.
+ * @example v1
+ */
+ version?: string;
+ /** @description Toolkits available to your team. */
+ toolkits?: components["schemas"]["toolkit"][];
+ };
+ /** @description One page of user IDs. */
+ list_users_response: {
+ /**
+ * @description User IDs on this page.
+ * @example [
+ * "alice",
+ * "bob"
+ * ]
+ */
+ user_ids?: string[];
+ /** @description Paging applied to this response and the total number of users. */
+ pagination?: components["schemas"]["pagination"];
+ };
+ /** @description One of your team's users, as seen across its sessions and connections. */
+ user: {
+ /**
+ * @description The user ID: a session `actor_id` or a connection `user_id`.
+ * @example alice
+ */
+ user_id?: string;
+ /** @description Sessions bound to the user, oldest first. */
+ sessions?: {
+ /**
+ * @description Session URN.
+ * @example do:managed_agent_session:2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b
+ */
+ session_urn?: string;
+ /**
+ * @description Session name.
+ * @example support-bot-alice
+ */
+ name?: string;
+ /**
+ * Format: date-time
+ * @description When the session was created.
+ * @example 2026-09-24T12:00:00Z
+ */
+ created_at?: string | null;
+ /**
+ * Format: date-time
+ * @description When the session was last modified.
+ * @example 2026-09-24T12:00:00Z
+ */
+ updated_at?: string | null;
+ }[];
+ /** @description The user's connections that are not revoked, sorted by provider. */
+ connections?: {
+ /**
+ * Format: uuid
+ * @description Opaque connection ID.
+ * @example 39f9f768-a7f9-4c91-9557-3328c53dd054
+ */
+ id?: string;
+ /**
+ * @description Provider slug, for example `jira`.
+ * @example jira
+ */
+ provider?: string;
+ /**
+ * @description Human-readable provider name, for example `Jira`.
+ * @example Jira
+ */
+ provider_display_name?: string;
+ /**
+ * @description Your identifier for the user the connection acts for.
+ * @example alice
+ */
+ user_id?: string;
+ /**
+ * @description Provider scopes granted, or requested while pending.
+ * @example [
+ * "write:jira-work"
+ * ]
+ */
+ scopes?: string[];
+ /**
+ * @description pending, active, revoked, or expired.
+ * @example active
+ * @enum {string}
+ */
+ status?: "pending" | "active" | "revoked" | "expired";
+ /**
+ * Format: date-time
+ * @description When the user completed authorization.
+ * @example 2026-07-14T00:52:10Z
+ */
+ granted_at?: string | null;
+ /**
+ * Format: date-time
+ * @description When the connection was revoked.
+ * @example null
+ */
+ revoked_at?: string | null;
+ /**
+ * Format: date-time
+ * @description When the connection was created.
+ * @example 2026-07-14T00:50:00Z
+ */
+ created_at?: string | null;
+ /**
+ * Format: date-time
+ * @description When the connection was last modified.
+ * @example 2026-07-14T00:52:10Z
+ */
+ updated_at?: string | null;
+ /**
+ * @description Non-sensitive provider configuration.
+ * @example {
+ * "site_url": "https://example.atlassian.net"
+ * }
+ */
+ connection_parameters?: Record | null;
+ /**
+ * @description `digitalocean_oauth`, `private_oauth`, or `team_api_key`.
+ * @example digitalocean_oauth
+ * @enum {string}
+ */
+ credential_kind?: "digitalocean_oauth" | "private_oauth" | "team_api_key";
+ /**
+ * @description ID of the team provider credential the connection uses; empty for DigitalOcean's shared application.
+ * @example
+ */
+ credential_id?: string;
+ /** @description Private network the connection's calls use, when configured. */
+ network?: components["schemas"]["connection_network"];
+ /**
+ * @description DigitalOcean user ID of the user who created the connection, when recorded.
+ * @example 2f8e1c3a-6b4d-4f7e-9a1c-5d3b7e9f1a2c
+ */
+ owning_user_id?: string;
+ }[];
+ };
+ /** @description Returns one user. */
+ get_user_response: {
+ /** @description The user. */
+ user?: components["schemas"]["user"];
+ };
+ /** @description A catalog tool the session can call, in MCP tool format plus Action Gateway fields. */
+ session_tool: {
+ /**
+ * @description The provider-qualified tool name. Pass it as `tool` to invoke the tool.
+ * @example exa_web_search
+ */
+ name?: string;
+ /** @example Web Search */
+ title?: string;
+ /** @example Search the public web and return ranked results with titles and URLs. */
+ description?: string;
+ /**
+ * @description The JSON Schema for the tool's `arguments`.
+ * @example {
+ * "type": "object",
+ * "required": [
+ * "query"
+ * ],
+ * "properties": {
+ * "query": {
+ * "type": "string"
+ * },
+ * "max_results": {
+ * "type": "integer"
+ * }
+ * }
+ * }
+ */
+ inputSchema?: {
+ [key: string]: unknown;
+ };
+ /**
+ * @description The JSON Schema for the tool's output, or for the output view bound to the tool in the session.
+ * @example {
+ * "type": "object"
+ * }
+ */
+ outputSchema?: {
+ [key: string]: unknown;
+ };
+ annotations?: components["schemas"]["tool_annotations"];
+ /**
+ * @description Additional tool metadata.
+ * @example {
+ * "version": "1",
+ * "parallelizable": true,
+ * "streaming_safe": false
+ * }
+ */
+ _meta?: {
+ [key: string]: unknown;
+ };
+ /**
+ * @description The immutable tool version.
+ * @example 1
+ */
+ version?: string;
+ /**
+ * @description Whether the tool can run alongside other calls in one invoke request.
+ * @example true
+ */
+ parallelizable?: boolean;
+ /** @example false */
+ streamingSafe?: boolean;
+ };
+ list_session_tools_response: {
+ /**
+ * @description The catalog version.
+ * @example v1
+ */
+ version?: string;
+ /** @description Tools ordered by name. */
+ tools?: components["schemas"]["session_tool"][];
+ next_page_token?: components["schemas"]["next_page_token"];
+ };
+ /** @description Describes why a request or tool call failed and whether retrying can help. */
+ error_envelope: {
+ /**
+ * @description The failure class. Branch on this value rather than on `message`, which may change.
+ * @example invalid_argument
+ * @enum {string}
+ */
+ class?: "invalid_argument" | "unauthorized" | "forbidden" | "rate_limited" | "not_found" | "timeout" | "upstream_error" | "output_too_large" | "execution_failed" | "unavailable" | "canceled" | "render_required" | "unsupported_media_type" | "view_materialization_failed";
+ /**
+ * @description A human-readable explanation that is safe to show to an agent or end user.
+ * @example Request is invalid. Fix request arguments and retry.
+ */
+ message?: string;
+ /**
+ * @description Whether retrying the same request later can succeed.
+ * @example false
+ */
+ retriable?: boolean;
+ /**
+ * @description The suggested next step.
+ * @example fix_args
+ * @enum {string}
+ */
+ recovery_hint?: "fix_args" | "refresh_auth" | "retry_later" | "narrow_output" | "contact_support" | "verify_provider_state";
+ };
+ /** @description A failed request. The body has the same shape as a failed tool result. */
+ tool_result_error: {
+ /**
+ * @example failed
+ * @enum {string}
+ */
+ status: "failed";
+ error: components["schemas"]["error_envelope"];
+ /**
+ * @description A unique identifier for this request, when one was assigned.
+ * @example call_8b7c6d5e-4f3a-4b2c-9d1e-0f9a8b7c6d5e
+ */
+ call_id: string;
+ };
+ search_query: {
+ /**
+ * @description A normalized English description of one complete use case: the action and the intended outcome, including any app the user named. Put personal identifiers in `known_fields` instead. Up to 512 bytes and 32 search terms, with at least one letter or digit.
+ * @example search the public web for current information
+ */
+ use_case: string;
+ /**
+ * @description Known workflow inputs as one string of comma-separated `key:value` pairs, such as identifiers or settings. Used as context, not for keyword matching.
+ * @example project:checkout
+ */
+ known_fields?: string;
+ };
+ search_tools_request: {
+ /** @description Independent search queries. Split separate actions into separate queries. Each query is searched on its own and gets its own result group. */
+ queries: components["schemas"]["search_query"][];
+ /**
+ * @description Restricts every query to these providers.
+ * @example [
+ * "exa"
+ * ]
+ */
+ providers?: string[];
+ /**
+ * @description Restricts every query to tools with these tags.
+ * @example [
+ * "web-search"
+ * ]
+ */
+ tags?: string[];
+ /**
+ * @description The maximum number of tools returned per query. Values above 50 are capped at 50.
+ * @default 10
+ * @example 3
+ */
+ limit?: number;
+ };
+ /** @description Cache outcome. Hits always include this metadata. MISS and BYPASS appear only when the call includes cache controls. Cache hits still incur the gateway invocation charge but not an additional provider charge. */
+ cache_status: {
+ /**
+ * @description HIT returned a cached result without calling the provider. MISS found no usable result and called the provider. BYPASS skipped caching.
+ * @example HIT
+ * @enum {string}
+ */
+ status: "HIT" | "MISS" | "BYPASS";
+ /**
+ * @description Age of the cached result in seconds. Present only on a hit.
+ * @example 12
+ */
+ age_seconds?: number;
+ };
+ /** @description The result of one tool call. Check `status` before reading `output`. A call that needs approval, authorization, or connection setup fails with a `_meta.status` that names the step to complete. */
+ tool_result: {
+ /**
+ * @example succeeded
+ * @enum {string}
+ */
+ status: "succeeded" | "failed";
+ /**
+ * @description The tool's JSON output. Present when `status` is `succeeded`. Its shape is the tool's output schema, or the output view bound to the tool in the session.
+ * @example {
+ * "provider": "exa",
+ * "results": [
+ * {
+ * "title": "DigitalOcean",
+ * "url": "https://www.digitalocean.com/"
+ * }
+ * ]
+ * }
+ */
+ output?: {
+ [key: string]: unknown;
+ };
+ error?: components["schemas"]["error_envelope"];
+ /**
+ * @description A unique identifier for this call. Include it when contacting support.
+ * @example call_8b7c6d5e-4f3a-4b2c-9d1e-0f9a8b7c6d5e
+ */
+ call_id: string;
+ /**
+ * @description Additional result metadata. Keys include:
+ *
+ * - `status`: `requires_approval`, `requires_authorization`, or
+ * `requires_connection_configuration` when the call stopped before
+ * running.
+ *
+ * - `approval_id`, `tool_name`, `expires_at`, and `decide`: present with
+ * `requires_approval`. `decide` gives the `method`, `path`, and `body`
+ * of the approval request to send. Approve the call, then repeat it
+ * with the same arguments before `expires_at`.
+ *
+ * - `retry`: `{"attempt_count": N, "exhausted": bool}` when the gateway
+ * retried the call.
+ *
+ * - `output_view`: the output view applied to the result.
+ * - `cache`: whether the result came from cache, with its age on a hit.
+ * @example {
+ * "status": "requires_approval",
+ * "approval_id": "7d3c2b1a-9e8f-4a6b-8c5d-4e3f2a1b0c9d",
+ * "tool_name": "exa_web_search",
+ * "expires_at": "2026-10-09T18:30:00Z",
+ * "decide": {
+ * "method": "POST",
+ * "path": "/approvals/session/2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b/7d3c2b1a-9e8f-4a6b-8c5d-4e3f2a1b0c9d",
+ * "body": "{\"decision\": \"approve\"}"
+ * }
+ * }
+ */
+ _meta?: {
+ cache?: components["schemas"]["cache_status"];
+ } & {
+ [key: string]: unknown;
+ };
+ };
+ /** @description Present when this tool accepts cache controls in the session. Unlike the catalog's cache.ttlSeconds, this describes the session's caching opt-in. */
+ cache_advertisement: {
+ /**
+ * @description Maximum result age the session allows, or 300 if the session sets no limit. The tool's own cache lifetime can be shorter. Invoke controls use max_age_seconds, not this field's camelCase spelling.
+ * @example 60
+ */
+ maxAgeSeconds: number;
+ };
+ /** @description A tool that matched a query. */
+ search_tools_result: {
+ cache?: components["schemas"]["cache_advertisement"];
+ /**
+ * @description The provider-qualified tool name. Pass it as `tool` to invoke the tool.
+ * @example exa_web_search
+ */
+ name?: string;
+ /** @example 1 */
+ version?: string;
+ /** @example Web Search */
+ title?: string;
+ /** @example Search the public web and return ranked results with titles and URLs. */
+ description?: string;
+ /**
+ * @description The JSON Schema for the tool's `arguments`.
+ * @example {
+ * "type": "object",
+ * "required": [
+ * "query"
+ * ],
+ * "properties": {
+ * "query": {
+ * "type": "string"
+ * }
+ * }
+ * }
+ */
+ inputSchema?: {
+ [key: string]: unknown;
+ };
+ /**
+ * @description The relevance score. Higher is more relevant.
+ * @example 0.92
+ */
+ score?: number;
+ };
+ /** @description The results for one query, in request order. */
+ search_tools_group: {
+ /**
+ * @description The 1-based position of the query in the request.
+ * @example 1
+ */
+ index?: number;
+ /**
+ * @description The query's `use_case`.
+ * @example search the public web for current information
+ */
+ use_case?: string;
+ results?: components["schemas"]["search_tools_result"][];
+ /**
+ * @description A suggested next step. Present only when no tools matched.
+ * @example No catalog tools matched this query. Retry with different terms.
+ */
+ guidance?: string;
+ };
+ data_plane_search_tools_response: components["schemas"]["tool_result"] & {
+ output?: {
+ /** @description One result group per query, in request order. */
+ results?: components["schemas"]["search_tools_group"][];
+ };
+ };
+ /** @description Optional per-call caching controls. Send beside arguments, not inside them. Accepted only for tools opted into caching in this session; tool search advertises these tools with a cache field. Omitting controls uses the session's settings. Direct MCP tools/call requests use session settings without overrides; use action_invoke for per-call controls. */
+ cache_controls: {
+ /**
+ * @description auto uses a sufficiently recent cached result or calls the provider and can store a successful result. bypass skips lookup and storage without clearing or refreshing existing entries.
+ * @default auto
+ * @example auto
+ * @enum {string}
+ */
+ mode?: "auto" | "bypass";
+ /**
+ * @description Oldest cached result this call accepts, in seconds. Zero bypasses caching. Values above 300 are clamped to 300; larger values cannot increase the session or tool lifetime. This controls accepted result age, not the lifetime of a newly stored entry.
+ * @example 30
+ */
+ max_age_seconds?: number;
+ };
+ tool_call: {
+ cache?: components["schemas"]["cache_controls"];
+ /**
+ * @description The tool name, as returned by `GET /tools` or `POST /tools/search`. Names are case-insensitive.
+ * @example exa_web_search
+ */
+ tool: string;
+ /**
+ * @description An immutable tool version. Omit to use the released version.
+ * @example 1
+ */
+ version?: string;
+ /**
+ * @description The tool's arguments, matching its `inputSchema`.
+ * @example {
+ * "query": "DigitalOcean cloud computing",
+ * "max_results": 1
+ * }
+ */
+ arguments?: {
+ [key: string]: unknown;
+ };
+ };
+ invoke_tools_request: {
+ /**
+ * @description One sentence explaining why the tools are being called. Values longer than 512 characters are truncated.
+ * @example Find current information about DigitalOcean.
+ */
+ rationale?: string;
+ /** @description The tool calls to run in parallel. */
+ tools: components["schemas"]["tool_call"][];
+ };
+ invoke_tools_item: {
+ /**
+ * @description The 0-based position of the call in the request.
+ * @example 0
+ */
+ index?: number;
+ /**
+ * @description The canonical tool name.
+ * @example exa_web_search
+ */
+ tool?: string;
+ /**
+ * @description The tool version that ran.
+ * @example 1
+ */
+ version?: string;
+ result?: components["schemas"]["tool_result"];
+ };
+ invoke_tools_response: {
+ /** @example 1 */
+ total_count?: number;
+ /** @example 1 */
+ success_count?: number;
+ /** @example 0 */
+ error_count?: number;
+ /** @description One result per call, in request order. */
+ results?: components["schemas"]["invoke_tools_item"][];
+ };
+ execute_code_request: {
+ /**
+ * @description Python source to run. The sandbox provides `invoke_digitalocean_tool(name: str, arguments: dict) -> dict`, which calls a catalog tool under the session's policy and returns a tool result.
+ * @example print("hello from Action Gateway")
+ */
+ code: string;
+ };
+ execute_code_response: components["schemas"]["tool_result"] & {
+ output?: {
+ /** @example hello from Action Gateway */
+ stdout?: string;
+ /**
+ * @description Omitted when empty.
+ * @example
+ */
+ stderr?: string;
+ /**
+ * Format: int32
+ * @description The process exit code. A nonzero exit code is still a succeeded result.
+ * @example 0
+ */
+ exit_code?: number;
+ };
+ };
+ approval_decision: {
+ /**
+ * @description Whether to let the pending call run.
+ * @example approve
+ * @enum {string}
+ */
+ decision: "approve" | "deny";
+ };
+ approval_decision_response: {
+ /**
+ * @description The approval ID.
+ * @example 7d3c2b1a-9e8f-4a6b-8c5d-4e3f2a1b0c9d
+ */
+ id?: string;
+ /**
+ * @example approved
+ * @enum {string}
+ */
+ status?: "approved" | "denied";
+ /**
+ * Format: date-time
+ * @description Repeat an approved call with the same arguments before this time.
+ * @example 2026-10-09T18:30:00Z
+ */
+ expires_at?: string;
+ };
+ oneClicks: {
+ /**
+ * slug
+ * @description The slug identifier for the 1-Click application.
+ * @example monitoring
+ */
+ slug: string;
+ /**
+ * type
+ * @description The type of the 1-Click application.
+ * @example kubernetes
+ */
+ type: string;
+ };
+ oneClicks_create: {
+ /**
+ * addon_slugs
+ * @description An array of 1-Click Application slugs to be installed to the Kubernetes cluster.
+ * @default []
+ * @example [
+ * "kube-state-metrics",
+ * "loki"
+ * ]
+ */
+ addon_slugs: string[];
+ /**
+ * cluster_uuid
+ * @description A unique ID for the Kubernetes cluster to which the 1-Click Applications will be installed.
+ * @example 50a994b6-c303-438f-9495-7e896cfe6b08
+ */
+ cluster_uuid: string;
+ };
+ account: {
+ /**
+ * @description The total number of Droplets current user or team may have active at one time.
+ * Requires `droplet:read` scope.
+ * @example 25
+ */
+ droplet_limit: number;
+ /**
+ * @description The total number of Floating IPs the current user or team may have.
+ * Requires `reserved_ip:read` scope.
+ * @example 5
+ */
+ floating_ip_limit: number;
+ /**
+ * @description The email address used by the current user to register for DigitalOcean.
+ * @example sammy@digitalocean.com
+ */
+ email: string;
+ /**
+ * @description The display name for the current user.
+ * @example Sammy the Shark
+ */
+ name?: string;
+ /**
+ * @description The unique universal identifier for the current user.
+ * @example b6fr89dbf6d9156cace5f3c78dc9851d957381ef
+ */
+ uuid: string;
+ /**
+ * @description If true, the user has verified their account via email. False otherwise.
+ * @default false
+ * @example true
+ */
+ email_verified: boolean;
+ /**
+ * @description This value is one of "active", "warning" or "locked".
+ * @default active
+ * @example active
+ * @enum {string}
+ */
+ status: "active" | "warning" | "locked";
+ /**
+ * @description A human-readable message giving more details about the status of the account.
+ * @example
+ */
+ status_message: string;
+ /** @description When authorized in a team context, includes information about the current team. */
+ team?: {
+ /**
+ * @description The unique universal identifier for the current team.
+ * @example 5df3e3004a17e242b7c20ca6c9fc25b701a47ece
+ */
+ uuid?: string;
+ /**
+ * @description The name for the current team.
+ * @example My Team
+ */
+ name?: string;
+ };
+ };
+ /**
+ * @description A unique identification number for this key. Can be used to embed a specific SSH key into a Droplet.
+ * @example 512189
+ */
+ ssh_key_id: number;
+ /**
+ * @description A unique identifier that differentiates this key from other keys using a format that SSH recognizes. The fingerprint is created when the key is added to your account.
+ * @example 3b:16:bf:e4:8b:00:8b:b8:59:8c:a9:d3:f0:19:45:fa
+ */
+ ssh_key_fingerprint: string;
+ /**
+ * @description A human-readable display name for this key, used to easily identify the SSH keys when they are displayed.
+ * @example My SSH Public Key
+ */
+ ssh_key_name: string;
+ sshKeys: {
+ id?: components["schemas"]["ssh_key_id"];
+ fingerprint?: components["schemas"]["ssh_key_fingerprint"];
+ /**
+ * @description The entire public key string that was uploaded. Embedded into the root user's `authorized_keys` file if you include this key during Droplet creation.
+ * @example ssh-rsa AEXAMPLEaC1yc2EAAAADAQABAAAAQQDDHr/jh2Jy4yALcK4JyWbVkPRaWmhck3IgCoeOO3z1e2dBowLh64QAM+Qb72pxekALga2oi4GvT+TlWNhzPH4V example
+ */
+ public_key: string;
+ name: components["schemas"]["ssh_key_name"];
+ };
+ link_to_last_page: {
+ /**
+ * @description URI of the last page of the results.
+ * @example https://api.digitalocean.com/v2/images?page=2
+ */
+ last?: string;
+ };
+ link_to_next_page: {
+ /**
+ * @description URI of the next page of the results.
+ * @example https://api.digitalocean.com/v2/images?page=2
+ */
+ next?: string;
+ };
+ forward_links: components["schemas"]["link_to_last_page"] & components["schemas"]["link_to_next_page"];
+ link_to_first_page: {
+ /**
+ * @description URI of the first page of the results.
+ * @example https://api.digitalocean.com/v2/images?page=1
+ */
+ first?: string;
+ };
+ link_to_prev_page: {
+ /**
+ * @description URI of the previous page of the results.
+ * @example https://api.digitalocean.com/v2/images?page=1
+ */
+ prev?: string;
+ };
+ backward_links: components["schemas"]["link_to_first_page"] & components["schemas"]["link_to_prev_page"];
+ page_links: {
+ /**
+ * @example {
+ * "pages": {
+ * "first": "https://api.digitalocean.com/v2/account/keys?page=1",
+ * "prev": "https://api.digitalocean.com/v2/account/keys?page=2"
+ * }
+ * }
+ */
+ pages?: components["schemas"]["forward_links"] | components["schemas"]["backward_links"] | unknown;
+ };
+ pages_pagination: {
+ links?: components["schemas"]["page_links"];
+ };
+ /** @description Information about the response itself. */
+ meta_properties: {
+ /**
+ * @description Number of objects returned by the request.
+ * @example 1
+ */
+ total?: number;
+ };
+ meta: {
+ meta: components["schemas"]["meta_properties"] & unknown;
+ };
+ region: {
+ /**
+ * @description The display name of the region. This will be a full name that is used in the control panel and other interfaces.
+ * @example New York 3
+ */
+ name: string;
+ /**
+ * @description A human-readable string that is used as a unique identifier for each region.
+ * @example nyc3
+ */
+ slug: string;
+ /**
+ * @description This attribute is set to an array which contains features available in this region
+ * @example [
+ * "private_networking",
+ * "backups",
+ * "ipv6",
+ * "metadata",
+ * "install_agent",
+ * "storage",
+ * "image_transfer"
+ * ]
+ */
+ features: string[];
+ /**
+ * @description This is a boolean value that represents whether new Droplets can be created in this region.
+ * @example true
+ */
+ available: boolean;
+ /**
+ * @description This attribute is set to an array which contains the identifying slugs for the sizes available in this region. sizes:read is required to view.
+ * @example [
+ * "s-1vcpu-1gb",
+ * "s-1vcpu-2gb",
+ * "s-1vcpu-3gb",
+ * "s-2vcpu-2gb",
+ * "s-3vcpu-1gb",
+ * "s-2vcpu-4gb",
+ * "s-4vcpu-8gb",
+ * "s-6vcpu-16gb",
+ * "s-8vcpu-32gb",
+ * "s-12vcpu-48gb",
+ * "s-16vcpu-64gb",
+ * "s-20vcpu-96gb",
+ * "s-24vcpu-128gb",
+ * "s-32vcpu-192g"
+ * ]
+ */
+ sizes: string[];
+ };
+ action: {
+ /**
+ * @description A unique numeric ID that can be used to identify and reference an action.
+ * @example 36804636
+ */
+ id?: number;
+ /**
+ * @description The current status of the action. This can be "in-progress", "completed", or "errored".
+ * @default in-progress
+ * @example completed
+ * @enum {string}
+ */
+ status?: "in-progress" | "completed" | "errored";
+ /**
+ * @description This is the type of action that the object represents. For example, this could be "transfer" to represent the state of an image transfer action.
+ * @example create
+ */
+ type?: string;
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the action was initiated.
+ * @example 2020-11-14T16:29:21Z
+ */
+ started_at?: string;
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the action was completed.
+ * @example 2020-11-14T16:30:06Z
+ */
+ completed_at?: string | null;
+ /**
+ * @description A unique identifier for the resource that the action is associated with.
+ * @example 3164444
+ */
+ resource_id?: number | null;
+ /**
+ * @description The type of resource that the action is associated with.
+ * @example droplet
+ */
+ resource_type?: string;
+ region?: components["schemas"]["region"];
+ /**
+ * @description A human-readable string that is used as a unique identifier for each region.
+ * @example nyc3
+ */
+ region_slug?: string | null;
+ };
+ addons_feature: {
+ /**
+ * id
+ * @description Unique identifier for the app feature.
+ * @example 1
+ */
+ id: number;
+ /**
+ * name
+ * @description Name of the feature.
+ * @example Support
+ */
+ name: string;
+ /**
+ * type
+ * @description Feature type, indicating the kind of data it holds.
+ * @example string
+ * @enum {string}
+ */
+ type: "unknown" | "string" | "boolean" | "allowance";
+ /**
+ * unit
+ * @description Unit of measurement for the feature, if applicable. Units apply to allowance features.
+ * @example GB
+ * @enum {string}
+ */
+ unit?: "unit_unknown" | "GB" | "GIB" | "count" | "byte" | "byte_second";
+ /**
+ * @description Value of the feature, which can vary based on the type.
+ * @example Unlimited
+ */
+ value: string | boolean;
+ /**
+ * created_at
+ * Format: date-time
+ * @description Timestamp when the feature was created.
+ * @example 2023-10-01T12:00:00Z
+ */
+ created_at: string;
+ /**
+ * updated_at
+ * Format: date-time
+ * @description Timestamp when the feature was last updated.
+ * @example 2023-10-01T12:00:00Z
+ */
+ updated_at: string;
+ };
+ addons_dimension_volume_with_price: {
+ /**
+ * id
+ * @description Unique identifier for the addon.
+ * @example 123
+ */
+ id: number;
+ /**
+ * low_volume
+ * @description The minimum volume for the volume pricing tier.
+ * @example 1
+ */
+ low_volume: number;
+ /**
+ * max_volume
+ * @description The maximum volume for the volume pricing tier.
+ * @example 100
+ */
+ max_volume: number;
+ /**
+ * price_per_unit
+ * @description The price per unit for the volume tier in US dollars.
+ * @example 0.10
+ */
+ price_per_unit: string;
+ };
+ addons_dimension_with_price: {
+ /**
+ * id
+ * @description Unique identifier for the dimension.
+ * @example 1
+ */
+ id: number;
+ /**
+ * sku
+ * @description Unique string identifier for the dimension, tied to a price.
+ * @example addon_sku_123
+ */
+ sku: string;
+ /**
+ * slug
+ * @description Slug identifier for the dimension.
+ * @example addon_dimension_slug
+ */
+ slug: string;
+ /**
+ * display_name
+ * @description Display name for the dimension.
+ * @example Addon Dimension Display Name
+ */
+ display_name: string;
+ /**
+ * feature_name
+ * @description Name of the feature associated with the dimension.
+ * @example Feature Name
+ */
+ feature_name: string;
+ /**
+ * volumes
+ * @description A list of volumes associated with the dimension, each with its own price.
+ */
+ volumes: components["schemas"]["addons_dimension_volume_with_price"][];
+ };
+ addons_plan: {
+ /**
+ * id
+ * @description ID of a given plan.
+ * @example 1
+ */
+ id: number;
+ /**
+ * app_id
+ * @description ID of the app associated with this plan.
+ * @example 2
+ */
+ app_id: number;
+ /**
+ * display_name
+ * @description Display name for a given plan.
+ * @example Basic Plan
+ */
+ display_name: string;
+ /**
+ * description
+ * @description Description of an app plan.
+ * @example Description of the app plan.
+ */
+ description?: string;
+ /**
+ * slug
+ * @description Slug identifier for the plan.
+ * @example plan_basic
+ */
+ slug: string;
+ /**
+ * price_per_month
+ * @description Price of a month's usage of the plan in US dollars.
+ * @example 10
+ */
+ price_per_month: number;
+ /**
+ * active
+ * @description Indicates if the plan is currently active.
+ * @example true
+ */
+ active: boolean;
+ /**
+ * state
+ * @description Current state of the plan.
+ * @example approved
+ * @enum {string}
+ */
+ state: "unknown" | "draft" | "in_review" | "approved" | "suspended" | "archived";
+ /**
+ * features
+ * @description List of features included in the plan.
+ * @example []
+ */
+ features?: components["schemas"]["addons_feature"][];
+ /**
+ * created_at
+ * Format: date-time
+ * @description Timestamp when the plan was created.
+ * @example 2023-10-01T12:00:00Z
+ */
+ created_at: string;
+ /**
+ * updated_at
+ * Format: date-time
+ * @description Timestamp when the plan was last updated.
+ * @example 2023-10-01T12:00:00Z
+ */
+ updated_at: string;
+ /**
+ * available
+ * @description Indicates if the plan is available for selection.
+ * @example true
+ */
+ available: boolean;
+ /**
+ * uuid
+ * @description Unique identifier for the plan.
+ * @example 123e4567-e89b-12d3-a456-426 614174000
+ */
+ uuid: string;
+ /**
+ * by_default
+ * @description Indicates if this plan is the default option for the app.
+ * @example false
+ */
+ by_default: boolean;
+ /**
+ * dimensions
+ * @description List of dimensions associated with the plan, each with its own pricing.
+ */
+ dimensions?: components["schemas"]["addons_dimension_with_price"][];
+ };
+ addons_app_info: {
+ /**
+ * app_slug
+ * @description The slug identifier for the application associated with the resource.
+ * @example example-app
+ */
+ app_slug: string;
+ /**
+ * tos
+ * @description The Terms of Service URL for the resource.
+ * @example https://example.com/tos
+ */
+ tos: string;
+ /**
+ * eula
+ * @description The End User License Agreement URL for the resource.
+ * @example https://example.com/eula
+ */
+ eula: string;
+ /**
+ * plans
+ * @description A list of plans available for the resource.
+ */
+ plans: components["schemas"]["addons_plan"][];
+ };
+ addons_app_metadata: {
+ /**
+ * id
+ * @description Unique identifier for the addon metadata item.
+ * @example 1
+ */
+ id: number;
+ /**
+ * name
+ * @description The name of the metadata item.
+ * @example country_of_origin
+ */
+ name: string;
+ /**
+ * display_name
+ * @description The display name of the metadata item.
+ * @example Country of Origin
+ */
+ display_name: string;
+ /**
+ * description
+ * @description A brief description of the metadata item.
+ * @example Country for localization
+ */
+ description: string;
+ /**
+ * type
+ * @description The data type of the metadata value.
+ * @example string
+ * @enum {string}
+ */
+ type: "string" | "boolean";
+ /**
+ * options
+ * @example [
+ * "US",
+ * "UK",
+ * "CA"
+ * ]
+ */
+ options?: string[];
+ };
+ addons_resource_metadata: {
+ /**
+ * name
+ * @description The name of the metadata item to be set.
+ * @example property_name
+ */
+ name: string;
+ /**
+ * @description The value to be set for the metadata item, which can be a string or boolean.
+ * @example example_value
+ */
+ value: string | boolean;
+ };
+ addons_resource: {
+ /**
+ * uuid
+ * @description The unique identifier for the addon resource.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid: string;
+ /**
+ * name
+ * @description The name of the addon resource.
+ * @example my-resource-01
+ */
+ name: string;
+ /**
+ * state
+ * @description The state the resource is currently in.
+ * @example provisioned
+ * @enum {string}
+ */
+ state: "pending" | "provisioning" | "provisioned" | "deprovisioning" | "deprovisioned" | "provisioning-failed" | "deprovisioning-failed" | "suspended";
+ /**
+ * app_name
+ * @description The name of the application associated with the resource.
+ * @example Example App
+ */
+ app_name?: string;
+ /**
+ * app_slug
+ * @description The slug identifier for the application associated with the resource.
+ * @example example_app
+ */
+ app_slug: string;
+ /**
+ * plan_name
+ * @description The name of the plan associated with the resource.
+ * @example Basic Plan
+ */
+ plan_name?: string;
+ /**
+ * plan_slug
+ * @description The slug identifier for the plan associated with the resource.
+ * @example basic_plan
+ */
+ plan_slug: string;
+ /**
+ * plan_price_per_month
+ * @description The price of the plan per month in US dollars.
+ * @example 10
+ */
+ plan_price_per_month?: number;
+ /**
+ * has_config
+ * @description Indicates if the resource has configuration values set by the vendor.
+ * @example true
+ */
+ has_config: boolean;
+ /**
+ * metadata
+ * @description Metadata associated with the resource, set by the user.
+ */
+ metadata?: components["schemas"]["addons_resource_metadata"][];
+ /**
+ * sso_url
+ * @description The Single Sign-On URL for the resource, if applicable.
+ * @example https://example.com/sso
+ */
+ sso_url?: string;
+ /**
+ * message
+ * @description A message related to the resource, if applicable.
+ * @example Resource is provisioned successfully.
+ */
+ message?: string;
+ };
+ addons_resource_new: {
+ /**
+ * app_slug
+ * @description The slug identifier for the application associated with the resource.
+ * @example example-app
+ */
+ app_slug: string;
+ /**
+ * plan_slug
+ * @description The slug identifier for the plan associated with the resource.
+ * @example basic_plan
+ */
+ plan_slug: string;
+ /**
+ * name
+ * @description The name of the addon resource.
+ * @example my-resource-01
+ */
+ name: string;
+ /**
+ * metadata
+ * @description Metadata associated with the resource, set by the user. Metadata expected varies per app, and can be verified with a GET request to "/v2/add-ons/apps/{app_slug}/metadata"
+ */
+ metadata: components["schemas"]["addons_resource_metadata"][];
+ /**
+ * linked_droplet_id
+ * @description ID of the droplet to be linked to this resource, if applicable.
+ * @example 12345678
+ */
+ linked_droplet_id?: number;
+ /**
+ * fleet_uuid
+ * @description UUID of the fleet/project to which this resource will belong.
+ * @example f1234567-89ab-cdef-0123-456789abcdef01
+ */
+ fleet_uuid?: string;
+ };
+ start_provider_connect_request: {
+ /**
+ * @description When true, start a new login even if the team is already connected.
+ * @example false
+ */
+ force_reconnect?: boolean;
+ };
+ start_provider_connect_response: {
+ /** @example github */
+ provider?: string;
+ /**
+ * @description success when a credential already exists. requires_authorization when the user must finish the interactive step at connect_url.
+ * @example requires_authorization
+ * @enum {string}
+ */
+ status?: "success" | "requires_authorization";
+ /**
+ * @description Where to send the user. Omitted once status is success.
+ * @example https://example.invalid/connect
+ */
+ connect_url?: string;
+ /**
+ * @description Pass this to the poll call. Omitted once status is success.
+ * @example https://example.invalid/poll
+ */
+ poll_url?: string;
+ /**
+ * @description Code the user confirms during the interactive step. Omitted once status is success.
+ * @example ABCD-1234
+ */
+ verification_code?: string;
+ /**
+ * Format: date-time
+ * @description When the interactive step expires. Omitted when there is nothing to expire.
+ * @example 2026-07-27T12:00:00Z
+ */
+ expires_at?: string;
+ };
+ poll_provider_connect_response: {
+ /** @example github */
+ provider?: string;
+ /**
+ * @description success when login has finished. requires_authorization while it is still outstanding.
+ * @example success
+ * @enum {string}
+ */
+ status?: "success" | "requires_authorization";
+ /**
+ * Format: date-time
+ * @example 2026-07-27T12:00:00Z
+ */
+ expires_at?: string;
+ };
+ /** @description The grant on an OAuth connection. Absent for a connection that has no grant. */
+ provider_connection_oauth: {
+ /**
+ * @example [
+ * "repo"
+ * ]
+ */
+ scopes?: string[];
+ /**
+ * Format: date-time
+ * @example 2026-07-27T12:00:00Z
+ */
+ granted_at?: string;
+ };
+ /** @description One provider connection. Identifiers only — no token or authorization handle. */
+ provider_connection: {
+ /** @example 3f2a1b0c-9d8e-7f6a-5b4c-3d2e1f0a9b8c */
+ id?: string;
+ /** @example github */
+ provider?: string;
+ /** @example GitHub */
+ provider_display_name?: string;
+ /**
+ * @description Actor identifier the connection acts for. Not a DigitalOcean user id.
+ * @example octocat
+ */
+ user_id?: string;
+ /**
+ * @description pending, active, revoked, or expired. A list does not include revoked connections.
+ * @example active
+ */
+ status?: string;
+ /**
+ * @description DigitalOcean user id of the member who created the connection, when recorded.
+ * @example b1c2d3e4-f5a6-7890-abcd-ef1234567890
+ */
+ owning_user_id?: string;
+ /**
+ * @description True when an ordinary delete will be refused because an environment config uses it.
+ * @example false
+ */
+ deletion_protected?: boolean;
+ /**
+ * Format: date-time
+ * @example 2026-07-27T12:00:00Z
+ */
+ created_at?: string;
+ /**
+ * Format: date-time
+ * @example 2026-07-27T12:00:00Z
+ */
+ updated_at?: string;
+ oauth?: components["schemas"]["provider_connection_oauth"];
+ };
+ provider_connection_pagination: {
+ /**
+ * Format: int32
+ * @example 1
+ */
+ page?: number;
+ /**
+ * Format: int32
+ * @example 20
+ */
+ per_page?: number;
+ /**
+ * Format: int32
+ * @example 1
+ */
+ total?: number;
+ };
+ list_provider_connections_response: {
+ connections?: components["schemas"]["provider_connection"][];
+ pagination?: components["schemas"]["provider_connection_pagination"];
+ };
+ create_provider_connection_request: {
+ /**
+ * @description Actor identifier the connection acts for. Not a DigitalOcean user id.
+ * @example octocat
+ */
+ user_id: string;
+ /**
+ * @example [
+ * "repo"
+ * ]
+ */
+ scopes?: string[];
+ };
+ /** @description Interactive step a pending connection still needs. Omitted when the connection is active. */
+ provider_connection_authorization: {
+ /** @example requires_authorization */
+ status?: string;
+ /** @example https://example.invalid/connect */
+ connect_url?: string;
+ /** @example ABCD-1234 */
+ verification_code?: string;
+ /**
+ * Format: date-time
+ * @example 2026-07-27T12:00:00Z
+ */
+ expires_at?: string;
+ };
+ provider_connection_response: {
+ connection?: components["schemas"]["provider_connection"];
+ authorization?: components["schemas"]["provider_connection_authorization"];
+ };
+ /** @description One live notice on a sandbox image. */
+ image_message: {
+ /**
+ * @description Notice kind. The documented value is vulnerability.
+ * @example vulnerability
+ */
+ type?: string;
+ /** @example Image update available */
+ title?: string;
+ /** @example This sandbox image has a published fix. */
+ message?: string;
+ /** @example https://docs.digitalocean.com/products/gradient-ai-platform/ */
+ more_info_url?: string;
+ };
+ /** @description A session or checkpoint and the live notices on its sandbox image. Every key is present. messages is an empty array when the image has no notice. */
+ image_message_resource: {
+ /**
+ * @example SESSION
+ * @enum {string}
+ */
+ kind?: "SESSION" | "CHECKPOINT";
+ /** @example a1b2c3d4-e5f6-7890-abcd-ef1234567890 */
+ session_id?: string;
+ /** @example support-agent */
+ session_name?: string;
+ /** @example cp_example */
+ checkpoint_id?: string;
+ /** @example before-upgrade */
+ checkpoint_name?: string;
+ /** @example img_example */
+ image_id?: string;
+ /** @example true */
+ resolution_complete?: boolean;
+ /** @example false */
+ vulnerable?: boolean;
+ messages?: components["schemas"]["image_message"][];
+ };
+ list_image_messages_response: {
+ resources?: components["schemas"]["image_message_resource"][];
+ /**
+ * @description Opaque cursor for the next page. Empty on the last page and on a single-resource lookup.
+ * @example
+ */
+ next_page_token?: string;
+ };
+ /** @description Lightweight list representation; the manifest is available from config reads, not list responses. */
+ agent_config_summary: {
+ /**
+ * Format: uuid
+ * @example 019fb39c-14d9-7080-933e-b9b90e25acda
+ */
+ id: string;
+ /** @example support-agent */
+ name: string;
+ /**
+ * @description The manifest contract the server accepted at create time: the manifest's own apiVersion for legacy envelope parses (currently agents.digitalocean.com/v1alpha1), or agents.digitalocean.com/flat.v1 for flat-format parses.
+ * @example agents.digitalocean.com/v1alpha1
+ */
+ agentspec_schema_version: string;
+ /**
+ * @description Lowercase SHA-256 hex digest of the canonical sanitized manifest JSON.
+ * @example 75803fef24dc731824ecd4a1853c76153c7d8503534092b94da3ca3f31a882f4
+ */
+ content_hash: string;
+ /**
+ * @description Authenticated user identity that created the config.
+ * @example user-1
+ */
+ created_by: string;
+ /**
+ * Format: date-time
+ * @example 2026-08-01T12:00:00Z
+ */
+ created_at: string;
+ /**
+ * Format: date-time
+ * @example 2026-08-01T12:00:00Z
+ */
+ updated_at: string;
+ /**
+ * @description DO region slug the config lives in, e.g. ric1. Stamped once at create from the region whose API host served the request, and never changed. Returned only for teams on the regional routing rollout; omitted otherwise.
+ * @example ric1
+ */
+ region?: string;
+ };
+ list_agent_configs_response: {
+ configs?: components["schemas"]["agent_config_summary"][];
+ /** @example */
+ next_page_token?: string;
+ };
+ /** @description Per-signal DigitalOcean Insights telemetry opt-in, mirroring the Insights-owned schema insights.telemetry.opt_in. Each signal is independently optional and tri-state: omitted or null records that the customer expressed no choice and falls back to the product default, which is NOT equivalent to false. */
+ insights_opt_in: {
+ /** @description Accepted and stored for parity with the Insights schema, but metrics are always collected: unregistered metrics are dropped at ingest rather than opted out of here. */
+ metrics?: boolean | null;
+ /** @description Whether the agent's logs are sent to Insights. */
+ logs?: boolean | null;
+ /** @description Whether the agent's traces are sent to Insights. */
+ traces?: boolean | null;
+ };
+ /** @description Environment Config create body. Credentials are not request fields: every secret is declared in the environment spec under secrets (or legacy spec.secrets), with tenantSecret slots carrying plaintext in a write-only value extracted into Secrets Manager and never returned. */
+ agent_config_create_request: {
+ /**
+ * @description Config name, case-insensitively unique among the team's active configs.
+ * @example support-agent
+ */
+ name: string;
+ /**
+ * @description Customer environment-spec YAML text. The HTTP JSON body is capped at 1 MiB and this field is capped at 512 KiB.
+ * @example apiVersion: agents.digitalocean.com/v1alpha1
+ * kind: Agent
+ * spec:
+ * runtime:
+ * adapter: opencode
+ */
+ manifest_yaml: string;
+ insights?: components["schemas"]["insights_opt_in"] & unknown;
+ };
+ permission_rule: {
+ /**
+ * @description Tool taxonomy this rule matches (e.g. bash, file.read, file.write, web.fetch, git.*, mcp).
+ * @example example
+ */
+ tool: string;
+ /** @description Optional keys narrowing the rule (e.g. {"command": "npm run deploy"} for bash). Values are globs and must not contain shell-style ${VAR}/$VAR expansions. */
+ match?: {
+ [key: string]: string;
+ };
+ /**
+ * @example allow
+ * @enum {string}
+ */
+ action: "allow" | "ask" | "deny";
+ /**
+ * @description What happens when the agent cannot enforce the rule exactly. "strict" rejects the session; "best-effort" degrades to the closest more-restrictive form and warns (never widens). Defaults to strict for deny rules, best-effort otherwise.
+ * @example strict
+ * @enum {string}
+ */
+ enforcement?: "strict" | "best-effort";
+ };
+ /** @description Filesystem boundary, enforced by the microVM (read-only root + bind-mounted writable roots) for every agent. */
+ permission_filesystem: {
+ /**
+ * @example read-only
+ * @enum {string}
+ */
+ mode?: "read-only" | "workspace-write";
+ /**
+ * @description Additional writable paths beyond the workspace. Values must not contain shell-style ${VAR}/$VAR expansions.
+ * @example [
+ * "example"
+ * ]
+ */
+ allowWrite?: string[];
+ };
+ /** @description Network boundary. Narrows (subtract-only) spec.sandbox.egress; link-local/internal addresses stay blocked by the broader egress policy. */
+ permission_network: {
+ /**
+ * @example allow
+ * @enum {string}
+ */
+ default?: "allow" | "deny";
+ /**
+ * @example [
+ * "example"
+ * ]
+ */
+ allow?: string[];
+ };
+ /** @description Customer-declared tool-execution permission policy (spec.permissions). REQUEST only: the policy engine resolves it (∩ tenant ∩ platform) into the canonical policy and validates it against the (agent, version) capability descriptor. Absent or empty means the agent keeps its built-in default gating — no policy is shipped to the sandbox. */
+ permissions: {
+ /**
+ * @description Disposition for tool calls that match no rule. Defaults to "ask" when omitted.
+ * @example allow
+ * @enum {string}
+ */
+ defaultAction?: "allow" | "ask" | "deny";
+ /** @description Ordered match→action rules. Declared order is authoritative: the LAST matching rule wins (author-order last-match). */
+ rules?: components["schemas"]["permission_rule"][];
+ filesystem?: components["schemas"]["permission_filesystem"];
+ network?: components["schemas"]["permission_network"];
+ };
+ /** @description Customer-authored agents.yaml Agent manifest, sent as the CreateSession request body with a YAML Content-Type. Two formats are accepted during the dual-format transition: the FLAT format (primary - no envelope, snake_case, duration strings; authoritative published schema contracts/agent.flat.schema.json, field reference docs/agent-manifest.md) and the legacy v1alpha1 envelope documented by the properties below (DEPRECATED; schema contracts/agent.v1alpha1.schema.json; parses append a deprecation notice to session.warnings). A top-level apiVersion key selects the legacy parser; its absence selects flat. Untrusted input: every value is a request that is validated and clamped server-side. Decoding is strict in both formats: unknown or misspelled fields are rejected with HTTP 400 (with did-you-mean and legacy-spelling hints on the flat path). */
+ agent_manifest: {
+ /**
+ * @description Legacy envelope only - must be "agents.digitalocean.com/v1alpha1", and its presence is what routes the document to the deprecated legacy parser. Flat-format manifests carry no version key (the endpoint owns the contract); required, with kind and spec, when authoring the legacy format.
+ * @example agents.digitalocean.com/v1alpha1
+ * @enum {string}
+ */
+ apiVersion?: "agents.digitalocean.com/v1alpha1";
+ /**
+ * @description Must be "Agent".
+ * @example Agent
+ * @enum {string}
+ */
+ kind?: "Agent";
+ metadata?: {
+ /**
+ * @description Optional team-unique session name: 1-64 chars of letters, digits, '-', '.', '_', starting and ending alphanumeric; case-insensitive; must not be UUID-shaped. Omit to have the control plane generate one ("session--"). Unique among the team's ACTIVE (non-terminal) sessions; destroying a session frees its name for reuse.
+ * @example example
+ */
+ name?: string;
+ /**
+ * @description Free-form description (max 1024 chars), stored and echoed back for Console / catalog surfaces.
+ * @example Use when ...
+ */
+ description?: string;
+ /** @example {} */
+ labels?: {
+ [key: string]: string;
+ };
+ };
+ spec?: {
+ permissions?: components["schemas"]["permissions"];
+ /**
+ * @description Explicit lifecycle discriminator. Defaults to "interactive" (spec.serving forbidden); "served" requires spec.serving.
+ * @example interactive
+ * @enum {string}
+ */
+ mode?: "interactive" | "served";
+ /** @description Canonical adapter ids: claude-code | opencode | codex | cursor | hermes | codex-agentapi | custom. codex-agentapi is the OpenAI sandbox-provider runtime (DO runs codex exec-server; the agent loop lives at OpenAI) and pairs with the opaque spec.runtime.config block. codex-cli and cursor-cli are deprecated aliases (accepted with a create-time warning). The framework adapters (openai-agents, claude-agent-sdk, crewai, langgraph) are declared but not yet supported; CreateSession rejects them. adapter: custom requires the custom block. */
+ runtime: {
+ /**
+ * @example claude-code
+ * @enum {string}
+ */
+ adapter: "claude-code" | "opencode" | "codex" | "cursor" | "hermes" | "codex-agentapi" | "custom" | "codex-cli" | "cursor-cli" | "openai-agents" | "claude-agent-sdk" | "crewai" | "langgraph";
+ /** @description BYO container; requires adapter: custom. image is required and should be digest-pinned. */
+ custom?: {
+ /** @example example.registry/image@sha256:abc */
+ image: string;
+ /**
+ * @example [
+ * "example"
+ * ]
+ */
+ entrypoint?: string[];
+ };
+ /**
+ * @description OPAQUE, provider-specific runtime config. Only for adapter: codex-agentapi today, where it is the OpenAI Agents API create-session body (agent/environment/input) that doctl forwards verbatim to OpenAI's POST /v1/agents/sessions; harness-api stores and echoes it but never parses or validates its contents (so DO stays forward-compatible as OpenAI's schema evolves). The OpenAI session_id is passed on the create call (the openai_session_id query parameter), not in this block.
+ * @example {}
+ */
+ config?: {
+ [key: string]: unknown;
+ };
+ };
+ /** @description Repositories the session works against. */
+ workspace?: {
+ /**
+ * @description GitHub OWNER/REPO entries, unique. The first entry becomes the session's repo_hint; the full list is the forward shape for multi-repo sessions.
+ * @example [
+ * "example"
+ * ]
+ */
+ repos?: string[];
+ };
+ sandbox?: {
+ /**
+ * @description Optional sandbox template. Empty (or the legacy placeholder "coding") means "no preference": the template derives from the adapter.
+ * @example example
+ */
+ template?: string;
+ /** @example true */
+ persistentWorkspace?: boolean;
+ /**
+ * Format: int64
+ * @description Inactivity suspend timeout. 0 means tenant policy default.
+ * @example 1
+ */
+ idleTimeoutSeconds?: number;
+ /**
+ * Format: int64
+ * @description Hard wall-clock ceiling for the whole session, independent of activity. Accepted, not yet enforced (returns a warning).
+ * @example 1
+ */
+ maxLifetimeSeconds?: number;
+ /**
+ * @description Requested sandbox size (catalog: GET /v2/harness-runtime/sessions/sandbox/sizes). Empty means the service default.
+ * @example example
+ */
+ sizeSlug?: string;
+ /** @description Requested data mounts. Accepted, not yet enforced (returns a warning). accessKeyRef/secretKeyRef name declared tenantSecret slots in spec.secrets, validated at create; declare those slots with env: false so the keys stay mount-scoped and out of the guest env. */
+ mounts?: {
+ /**
+ * @example s3fuse
+ * @enum {string}
+ */
+ type: "s3fuse";
+ /**
+ * @description Absolute guest path the mount appears at.
+ * @example /mnt/data
+ */
+ path: string;
+ /** @example my-bucket */
+ bucket: string;
+ /**
+ * @description Optional storage endpoint override; https:// only.
+ * @example https://nyc3.digitaloceanspaces.com
+ */
+ endpoint?: string;
+ /** @example true */
+ readOnly?: boolean;
+ /**
+ * @description Names a declared tenantSecret slot in spec.secrets.
+ * @example my-secret
+ */
+ accessKeyRef: string;
+ /**
+ * @description Names a declared tenantSecret slot in spec.secrets.
+ * @example my-secret
+ */
+ secretKeyRef: string;
+ }[];
+ /** @description Requested egress policy (legacy envelope object). Absent means no destination ACL, same as unrestricted: true. unrestricted cannot combine with allow / allowIps / vpcUuid / subnetUuid. If allow or allowIps is present and neither list names an entry, the policy is deny-all: every outbound destination is blocked. Deny-all cannot combine with unrestricted / vpcUuid / subnetUuid, and a session that also binds URL-bound credentials is rejected with 400. If the other list names entries, only those are allowed (allow: [] with a non-empty allowIps is IP-only). A null egress, allow or allowIps is rejected with 400; omit the key instead. The flat manifest format spells these differently: egress: none (deny-all), egress: unrestricted, a bare host list (an empty list is deny-all), or an object with allow_hosts / allow_ips / vpc_uuid / subnet_uuid. Platform host defaults are unioned only when allow names something; allowIps does not trigger that union (IP-only turns the destination ACL on without domain rules). VPC attachment is create-time immutable; ownership is verified at session create. Allowlists are a request only: the server intersects them with tenant + platform policy and can only narrow them. */
+ egress?: {
+ /** @description Host allowlist. allow: [] with no non-empty allowIps means deny-all (flat spelling: egress: none). With a non-empty allowIps it is IP-only. */
+ allow?: {
+ /** @example api.example.com */
+ host: string;
+ }[];
+ /**
+ * @description Exact IPv4/IPv6 literals (not CIDRs). Present-but-empty with no non-empty allow means deny-all; allow: [] with a non-empty allowIps is IP-only.
+ * @example [
+ * "example"
+ * ]
+ */
+ allowIps?: string[];
+ /**
+ * @description Customer VPC UUID. Create-time immutable.
+ * @example example
+ */
+ vpcUuid?: string;
+ /**
+ * @description Optional subnet within vpcUuid.
+ * @example example
+ */
+ subnetUuid?: string;
+ /**
+ * @description When true, opts out of the platform-default host allowlist union. Mutually exclusive with allow / allowIps / vpcUuid / subnetUuid.
+ * @example true
+ */
+ unrestricted?: boolean;
+ };
+ };
+ /** @description Accepted, not yet enforced (returns a warning). Model routing (Plano); catalog-validated when enforcement lands. */
+ model?: {
+ /** @example example */
+ default?: string;
+ /** @example example */
+ routing?: string;
+ /** @example example */
+ profile?: string;
+ };
+ /** @description Accepted, not yet enforced (returns a warning). Exactly one of mcpServers or bundle. */
+ tools?: {
+ mcpServers?: {
+ /**
+ * @description DO-owned catalog reference (catalog form); do.* only, e.g. do.actions. Mutually exclusive with name/url/auth.
+ * @example do.actions
+ */
+ ref?: string;
+ /**
+ * @description Inline server name (required with url): 1-64 chars of lowercase letters, digits, '-', '.', '_', starting/ending alphanumeric. Unique across the list. Must not start with do. (reserved for catalog refs).
+ * @example example
+ */
+ name?: string;
+ /**
+ * @description Inline server endpoint; https:// only.
+ * @example https://example.com
+ */
+ url?: string;
+ /**
+ * @description Optional selection allowlist; omitted means all tools the server advertises. Each entry is an individual tool name with an optional integer version pin (e.g. web_search, execute_code@3) or a toolbelt reference - a server-defined named tool group written toolbelt:[@] (e.g. toolbelt:read-only@1; catalog refs only). Versions are integer pins (no semver). The server owns belt expansion; a pinned tool or belt attaches exactly that version, an unpinned one resolves at session create and is frozen for the session (no floating latest). Entries non-empty, unique per server. The selection bounds the session and is never preloaded into the session MCP tools/list; see preloadTools.
+ * @example [
+ * "example"
+ * ]
+ */
+ tools?: string[];
+ /**
+ * @description Catalog form only. Individual tools (optional integer pin) advertised directly in the session MCP tools/list next to the action_search/action_invoke/action_code meta tools. Each entry must appear in tools when tools is set; toolbelt references are rejected. Every preloaded schema is in the model's context on every turn, so keep this to a handful of tools. Omitted means nothing is preloaded.
+ * @example [
+ * "example"
+ * ]
+ */
+ preloadTools?: string[];
+ /** @description Brokered credential for an INLINE server (invalid on the catalog form). secretRef names a declared tenantSecret slot in spec.secrets, validated at create; the slot is resolved server-side and sent as an HTTP header. Plaintext credentials are never accepted. */
+ auth?: {
+ /**
+ * @description HTTP header the credential is sent in. Defaults to Authorization.
+ * @example Authorization
+ */
+ header?: string;
+ /**
+ * @description Tenant-vault secret name.
+ * @example my-secret
+ */
+ secretRef: string;
+ };
+ }[];
+ /** @example default */
+ bundle?: string;
+ };
+ /** @description Inline agent skills (SKILL.md shape): reusable markdown instructions the agent loads on demand, selected by description. Accepted, not yet enforced (returns a warning). Max 32 entries; instructions additionally capped at 256 KiB summed across the list so a valid manifest always fits the request-body limits. v0 is inline-only - remote skill sources come later as an additive field. */
+ skills?: {
+ /**
+ * @description Unique across the list; 1-64 chars of lowercase letters, digits, and single hyphen separators - no consecutive hyphens, per the Agent Skills spec (safe as a directory name at materialization).
+ * @example example
+ */
+ name: string;
+ /**
+ * @description Load-bearing: the agent reads it to decide WHEN to load the skill (progressive disclosure); write it as "Use when ...". Max 1024 chars.
+ * @example Use when ...
+ */
+ description: string;
+ /**
+ * @description The markdown body (the content below the SKILL.md frontmatter). Max 32 KiB.
+ * @example Use when diagnosing errors.
+ */
+ instructions: string;
+ /**
+ * @description Optional standard passthrough (e.g. Apache-2.0).
+ * @example Apache-2.0
+ */
+ license?: string;
+ /**
+ * @description Optional string-map passthrough (e.g. author), rendered into the frontmatter verbatim.
+ * @example {}
+ */
+ metadata?: {
+ [key: string]: string;
+ };
+ /**
+ * @description Advisory scoping of which tools the skill expects to use (experimental in the skills standard). NOT a security boundary - spec.permissions remains the only enforcement surface.
+ * @example [
+ * "example"
+ * ]
+ */
+ allowedTools?: string[];
+ }[];
+ /**
+ * @description Non-secret guest env (debug-readable - never put secrets here; use spec.secrets). Reserved platform keys (TEAM_ID, SESSION_ID, SANDBOX_ID, CONTROL_PLANE_CALLBACK_URL, SANDBOX_TEMPLATE, SANDBOX_AGENT_WORKDIR, SIZE_SLUG, SANDBOX_IMAGE_ID, SANDBOX_OCI_REF, PLANO_PERMISSION_*) are rejected. Credential-looking values (dop_v1_..., sk-..., ghp_...) trigger a create-time warning.
+ * @example {}
+ */
+ env?: {
+ [key: string]: string;
+ };
+ /** @description Accepted, not yet enforced (returns a warning). */
+ memory?: {
+ /** @example example */
+ backend: string;
+ /**
+ * @example tenant
+ * @enum {string}
+ */
+ scope?: "tenant" | "user" | "agent" | "session";
+ };
+ /** @description Declared credential requirements. source tenantSecret is enforced today: value is write-only plaintext, extracted into Secrets Manager at create and never persisted or returned. source oauth requires provider and carries no value: at session create, the guest environment receives a token from your team's connection for provider, or from the connection that actor names, and session create fails if that connection isn't connected. ref is legacy and ignored. env false keeps the resolved value out of the guest environment (mount-only slots). */
+ secrets?: {
+ /** @example example */
+ name: string;
+ /**
+ * @example oauth
+ * @enum {string}
+ */
+ source: "oauth" | "tenantSecret";
+ /** @example openai */
+ provider?: string;
+ /** @example do.actions */
+ ref?: string;
+ /**
+ * @description Write-only tenantSecret plaintext; never persisted or returned.
+ * @example sk-example
+ */
+ value?: string;
+ /**
+ * @description For source oauth only: the user_id of the provider connection the secret uses, instead of your team's connection for provider. Requires naming connections in secrets to be enabled for your team. Only a secret with actor can switch to another connection on a running session (see the session update operation).
+ * @example github1
+ */
+ actor?: string;
+ /**
+ * @description Whether the resolved credential is injected into the guest env. Omitted means true; false is for mount-only slots (tenantSecret only).
+ * @example true
+ */
+ env?: boolean;
+ }[];
+ defaults?: {
+ /** @description Accepted, not yet enforced (returns a warning). Advisory per-run ceilings, clamped server-side to tenant policy. */
+ budget?: {
+ /** @example 1 */
+ maxCostUSD?: number;
+ /** @example 1 */
+ maxSteps?: number;
+ /**
+ * Format: int64
+ * @example 1
+ */
+ maxWallClockSeconds?: number;
+ /**
+ * @example pause
+ * @enum {string}
+ */
+ onBreach?: "pause" | "humanInput" | "fail";
+ };
+ };
+ /** @description Present only when spec.mode is "served" (autoscaled fleet). */
+ serving?: {
+ /** @example 1 */
+ minReplicas?: number;
+ /** @example 1 */
+ maxReplicas?: number;
+ /** @example 1 */
+ targetConcurrency?: number;
+ scaleToZero?: {
+ /**
+ * Format: int64
+ * @example 1
+ */
+ idleSeconds?: number;
+ };
+ };
+ };
+ };
+ agent_config_credential_slot: {
+ /** @example OPENAI_API_KEY */
+ name: string;
+ /**
+ * @example tenantSecret
+ * @enum {string}
+ */
+ source?: "tenantSecret" | "oauth";
+ /** @example openai */
+ provider?: string;
+ };
+ /** @description Immutable team-scoped Environment Config: one sanitized manifest per config. There is no update; clone to a new config to change content. */
+ agent_config: {
+ /**
+ * Format: uuid
+ * @example 019fb39c-14d9-7080-933e-b9b90e25acda
+ */
+ id: string;
+ /** @example support-agent */
+ name: string;
+ /**
+ * @description The manifest contract the server accepted at create time: the manifest's own apiVersion for legacy envelope parses (currently agents.digitalocean.com/v1alpha1), or agents.digitalocean.com/flat.v1 for flat-format parses.
+ * @example agents.digitalocean.com/v1alpha1
+ */
+ agentspec_schema_version: string;
+ /** @description Canonical runnable environment spec JSON, immutable after create. Validated non-secret spec.env and spec.permissions remain; spec.secrets retains name/source/provider but omits ref and the write-only value; metadata.name is cleared while safe metadata such as labels remains. */
+ manifest: components["schemas"]["agent_manifest"];
+ /**
+ * @description Lowercase SHA-256 hex digest of the canonical sanitized manifest JSON.
+ * @example 75803fef24dc731824ecd4a1853c76153c7d8503534092b94da3ca3f31a882f4
+ */
+ content_hash: string;
+ insights?: components["schemas"]["insights_opt_in"] & unknown;
+ /**
+ * @description Authenticated user identity that created the config.
+ * @example user-1
+ */
+ created_by: string;
+ /**
+ * Format: date-time
+ * @example 2026-08-01T12:00:00Z
+ */
+ created_at: string;
+ /**
+ * Format: date-time
+ * @example 2026-08-01T12:00:00Z
+ */
+ updated_at: string;
+ /** @description Redacted credential slot metadata (name/source/provider). Secret values are never included. */
+ credentials?: components["schemas"]["agent_config_credential_slot"][];
+ /**
+ * @description DO region slug the config lives in, e.g. ric1. Stamped once at create from the region whose API host served the request, and never changed. Returned only for teams on the regional routing rollout; omitted otherwise.
+ * @example ric1
+ */
+ region?: string;
+ };
+ agent_config_response: {
+ config?: components["schemas"]["agent_config"];
+ };
+ /** @description Clone body: required new name plus write-only credentials for any declared slots. No lineage field. */
+ agent_config_clone_request: {
+ /** @description New config name, unique among the team's active configs. */
+ name: string;
+ /** @description Write-only map from tenantSecret logical slot to plaintext. Required when the source declares those slots; never copied from the source. */
+ secrets?: {
+ [key: string]: string;
+ };
+ /** @description Write-only map from oauth logical slot to an OAuth assignment UUID. Required when the source declares those slots; never copied from the source. */
+ oauth_assignments?: {
+ [key: string]: string;
+ };
+ };
+ /**
+ * @description AgentKind identifies what runs inside the session sandbox. CreateSession accepts CLAUDE_CODE, OPENCODE, CODEX_CLI, CURSOR_CLI, OPENAI_CODEX, LANGGRAPH, and CREWAI (the supported set is overridable via HARNESS_SUPPORTED_AGENT_KINDS); other values are rejected with 400. AGENT_KIND_OPENAI_CODEX is the OpenAI sandbox-provider kind (DO runs codex exec-server; the agent loop lives at OpenAI). AGENT_KIND_LANGGRAPH is the LangGraph framework adapter. AGENT_KIND_CREWAI is the CrewAI Crew framework adapter: like LANGGRAPH the template bakes no agent code, so spec.env must supply FRAMEWORK_REPO and FRAMEWORK_REPO_SHA; a Crew kickoff is one-shot and exposes no HITL surface. CREWAI is additionally gated per team and returns 400 for teams it is not enabled for.
+ * @default AGENT_KIND_UNSPECIFIED
+ * @example AGENT_KIND_UNSPECIFIED
+ * @enum {string}
+ */
+ agent_kind: "AGENT_KIND_UNSPECIFIED" | "AGENT_KIND_CLAUDE_CODE" | "AGENT_KIND_OPENCODE" | "AGENT_KIND_CODEX_CLI" | "AGENT_KIND_CURSOR_CLI" | "AGENT_KIND_NONE" | "AGENT_KIND_CUSTOM" | "AGENT_KIND_HERMES" | "AGENT_KIND_OPENAI_CODEX" | "AGENT_KIND_LANGGRAPH" | "AGENT_KIND_CREWAI";
+ /**
+ * @description SessionStatus is the lifecycle state of the sandbox + agent pair. SESSION_STATUS_ALL is a ListSessions status-filter value only -- no session is ever actually in this status. SESSION_STATUS_LOCKED is reserved for internal use and never appears in an end-user-facing response. SESSION_STATUS_UPDATING is reported while a session settings update (PATCH with `manifest_yaml`) is being applied; poll the session until it leaves this status.
+ * @default SESSION_STATUS_UNSPECIFIED
+ * @example SESSION_STATUS_UNSPECIFIED
+ * @enum {string}
+ */
+ session_status: "SESSION_STATUS_UNSPECIFIED" | "SESSION_STATUS_PROVISIONING" | "SESSION_STATUS_READY" | "SESSION_STATUS_DETACHED" | "SESSION_STATUS_DESTROYING" | "SESSION_STATUS_DESTROYED" | "SESSION_STATUS_FAILED" | "SESSION_STATUS_PAUSED" | "SESSION_STATUS_UPDATING" | "SESSION_STATUS_ALL" | "SESSION_STATUS_LOCKED";
+ /**
+ * @description State of a session settings update. `APPLYING`: in progress. `APPLIED`: live. `APPLIED_RESTARTED`: live, and the agent was restarted to apply it (`env` and plain secret changes). `FAILED`: the update did not take effect; see `reverted` and `detail`.
+ * @example APPLIED
+ * @enum {string}
+ */
+ session_config_update_state: "APPLYING" | "APPLIED" | "APPLIED_RESTARTED" | "FAILED";
+ /** @description Names of the entries added, removed, or changed in one manifest section. */
+ session_config_section_changes: {
+ /**
+ * @example [
+ * "jira"
+ * ]
+ */
+ added?: string[];
+ /**
+ * @example [
+ * "docs"
+ * ]
+ */
+ removed?: string[];
+ /**
+ * @example [
+ * "github"
+ * ]
+ */
+ changed?: string[];
+ };
+ /** @description The hosts and IP addresses an `egress` change added or removed, and the new egress mode when it changed. Omitted when the egress policy is unchanged. */
+ session_config_egress_changes: {
+ /**
+ * @description The new egress mode. Present only when the mode changed.
+ * @example allowlist
+ * @enum {string}
+ */
+ mode?: "allowlist" | "unrestricted" | "deny_all";
+ /**
+ * @example [
+ * "example.atlassian.net"
+ * ]
+ */
+ added?: string[];
+ /**
+ * @example [
+ * "203.0.113.10"
+ * ]
+ */
+ removed?: string[];
+ };
+ /** @description Changes made in each manifest section. Secret values are never included. */
+ session_config_changes: {
+ tools?: components["schemas"]["session_config_section_changes"];
+ env?: components["schemas"]["session_config_section_changes"];
+ /** @description Secret names, never values. On an update, `changed` lists the secrets that got a new value or were bound to another URL or scheme. On `config_diff`, `changed` lists only the secrets bound to a different URL or scheme than in the agent config. */
+ secrets?: components["schemas"]["session_config_section_changes"];
+ egress?: components["schemas"]["session_config_egress_changes"];
+ };
+ /** @description The most recent session settings update to the session, or the automatic rollback of a failed one. */
+ session_config_update: {
+ /** @example 019b0000-0000-7000-8000-000000000001 */
+ update_id?: string;
+ /** @example a1b2c3d4-e5f6-7890-abcd-ef1234567890 */
+ session_id?: string;
+ /**
+ * @example update
+ * @enum {string}
+ */
+ kind?: "update" | "rollback";
+ state?: components["schemas"]["session_config_update_state"];
+ /**
+ * @description Manifest sections this update touched.
+ * @example [
+ * "tools"
+ * ]
+ */
+ sections?: string[];
+ changes?: components["schemas"]["session_config_changes"];
+ /**
+ * @description Failure class; present when state is FAILED.
+ * @example update_failed
+ * @enum {string}
+ */
+ error?: "update_failed" | "requires_new_session" | "interrupted";
+ /** @description True when a failed update was rolled back to the previous config. */
+ reverted?: boolean;
+ /**
+ * @description Human-readable explanation, typically for a failed update.
+ * @example agent restart did not become healthy; reverted to previous config
+ */
+ detail?: string;
+ /**
+ * @description Hash of the manifest after this update.
+ * @example 9f2c1a7e
+ */
+ manifest_hash?: string;
+ /**
+ * @description Hash of the manifest before this update.
+ * @example 3b8d0e54
+ */
+ previous_hash?: string;
+ /**
+ * @description User who requested the update.
+ * @example 4f3c2b1a-0000-4000-8000-000000000000
+ */
+ user_uuid?: string;
+ /**
+ * @description Email of the user who requested the update.
+ * @example user@example.com
+ */
+ user_email?: string;
+ /**
+ * Format: date-time
+ * @example 2026-11-11T12:00:00Z
+ */
+ started_at?: string;
+ /**
+ * Format: date-time
+ * @example 2026-11-11T12:00:20Z
+ */
+ finished_at?: string;
+ };
+ /** @description Session is the user-facing record of a environment session + sandbox pair. */
+ definitions_session: {
+ /** @example a1b2c3d4-e5f6-7890-abcd-ef1234567890 */
+ session_id?: string;
+ /**
+ * @description User-assignable display name, unique per team among non-terminal sessions. Usable in place of session_id by clients (doctl / Console resolve it to the id via the ListSessions ?name= filter; the {session_id} path stays UUID-only). Supplied via the environment-spec metadata.name, or auto-generated ("session--") when omitted.
+ * @example demo-agent
+ */
+ name?: string;
+ /**
+ * @description Lineage: id of the session this one was forked from. Omitted/empty for root (non-fork) sessions.
+ * @example example
+ */
+ parent_session_id?: string;
+ /**
+ * Format: uuid
+ * @description Lineage: branch label assigned when this session was created by ForkSession (or rollback's internal fork). Omitted/empty for root sessions.
+ * @example 11111111-2222-3333-4444-555555555555
+ */
+ fork_id?: string;
+ /**
+ * @description Lineage: harness-api checkpoint id (cp_) the child booted from at fork time. Drives OHP inherited-history replay on attach. Omitted/empty for root sessions and legacy forks created before this field was persisted.
+ * @example example
+ */
+ fork_from_checkpoint_id?: string;
+ agent_kind?: components["schemas"]["agent_kind"];
+ status?: components["schemas"]["session_status"];
+ /**
+ * @description Sandbox identity for support / debugging. Informational; omitted until a sandbox is allocated.
+ * @example example
+ */
+ sandbox_id?: string;
+ /**
+ * Format: date-time
+ * @example 2026-08-01T12:00:00Z
+ */
+ created_at?: string;
+ /**
+ * Format: date-time
+ * @description Timestamp of the most recent event in this session's canonical stream. Drives the inactivity policy that pauses idle sessions.
+ * @example 2026-08-01T12:00:00Z
+ */
+ last_event_at?: string;
+ /**
+ * @description Session is exempt from idle auto-pause (manifest keep_warm, or the agent-kind default: hermes sessions keep warm). It still accepts a manual pause. Omitted when false.
+ * @example false
+ */
+ keep_warm?: boolean;
+ /**
+ * @description Session consents to being resumed automatically when the team's prepayment balance is restored after a low-balance pause. Defaults to false at create time; may be toggled later via PATCH /v2/harness-runtime/sessions/{session_id} (resume_on_topoff only). Only a session paused with reason low_balance whose latest run did not complete is ever resumed automatically - a session the customer paused themselves, or one that idled out, stays paused regardless. Not an environment-spec field, and forks do not inherit it. Omitted when false.
+ * @example false
+ */
+ resume_on_topoff?: boolean;
+ /**
+ * @description Why this session is paused. Present only when status is SESSION_STATUS_PAUSED; omitted otherwise. Known values: manual (the customer paused the session), idle (inactivity auto-pause), zero_balance (prepay gate; stored rows may still say low_balance), trigger (a reuse trigger paused the session after a firing). Clients should treat an unrecognized value as an opaque reason string.
+ * @example manual
+ */
+ pause_reason?: string;
+ /**
+ * Format: int64
+ * @description This session's own idle-pause timeout (manifest idle_timeout). Omitted when the session uses the deployment-wide default.
+ * @example 60
+ */
+ idle_timeout_seconds?: number;
+ /**
+ * @description Optional repository hint supplied at session creation (first spec.workspace.repos entry of the manifest). Not authoritative; the agent may change repos in-session.
+ * @example example
+ */
+ repo_hint?: string;
+ /**
+ * @description Non-fatal advisories computed from the manifest at create time: one entry per populated accepted-but-not-yet-enforced section (flat names: secrets, model, tools, memory, budget, max_lifetime, mounts; legacy manifests get the corresponding spec.* paths), a deprecation entry when a legacy-envelope manifest or an adapter alias (codex-cli, cursor-cli) is used, and a heuristic entry per credential-looking spec.env value. Populated on the CreateSession response only.
+ * @example []
+ */
+ warnings?: string[];
+ /**
+ * Format: uuid
+ * @description Durable Environment Config UUID the session was created from (inline manifests persist a config too, named after the session). Persisted and returned on create/get/list; absent only for sessions created before config references were stored.
+ * @example 11111111-2222-3333-4444-555555555555
+ */
+ config_id?: string;
+ /**
+ * @description OpenAI Agents API session id (sess_…) this DO sandbox hosts. Populated only for AGENT_KIND_OPENAI_CODEX sessions (empty otherwise). Non-secret correlation metadata; a client (doctl agents attach) reads it to bridge to the OpenAI session. See docs/design/openai-sandbox-provider.md.
+ * @example example
+ */
+ openai_session_id?: string;
+ /**
+ * @description OpenAI Agents API environment id (env_…), captured from the resolved CODEX_ENVIRONMENT_ID guest env value. Populated only for AGENT_KIND_OPENAI_CODEX sessions. Non-secret correlation metadata.
+ * @example example
+ */
+ openai_environment_id?: string;
+ /**
+ * @description DO region slug the session lives in, e.g. ric1. Stamped once at create from the region whose API host served the request, and never changed. Returned only for teams on the regional routing rollout; omitted otherwise.
+ * @example ric1
+ */
+ region?: string;
+ /**
+ * @description The persistent workspace attached to the session, mounted at `/workspace`. Empty when the session has none. Fork and rollback return 409 for a session that has a workspace.
+ * @example 019a2f4e-8c1d-7b3a-9e5f-2d6c8a1b4e70
+ */
+ workspace_id?: string;
+ update?: components["schemas"]["session_config_update"];
+ /**
+ * @description True when the running config differs from the manifest the session was created from, for example after a successful PATCH with `manifest_yaml`. Omitted when false.
+ * @example true
+ */
+ config_drifted?: boolean;
+ config_diff?: components["schemas"]["session_config_changes"];
+ /** @description The effective manifest of the session. Present only when `config_drifted` is true. Never contains secret values. */
+ manifest?: {
+ [key: string]: unknown;
+ };
+ };
+ definitions_list_sessions_response: {
+ sessions?: components["schemas"]["definitions_session"][];
+ /**
+ * @description Opaque cursor for the next page. Empty when there are no further pages.
+ * @example example
+ */
+ next_page_token?: string;
+ };
+ /** @description One entry of the ListRegions catalog. */
+ harness_region: {
+ /**
+ * @description DO datacenter slug. Names the regional API host to call to work in this region — "ric1" means https://api-ric1.digitalocean.com. A request is placed in the region of the host that served it; the optional `region` field on a create is a check against that host, not a choice of region.
+ * @example ric1
+ */
+ slug?: string;
+ /**
+ * @description True for the region the region-less host, https://api.digitalocean.com, serves. Exactly one listed region is the default and every team sees it. Preselect it in a picker instead of hardcoding a slug.
+ * @example true
+ */
+ is_default?: boolean;
+ };
+ /** @description Response for ListRegions. */
+ harness_regions_response: {
+ /** @description Regions the team may place resources in, each on its own API host, sorted by slug. */
+ regions?: components["schemas"]["harness_region"][];
+ };
+ /** @description Strict application/json CreateSession form. Loads config_id, resolves the config's single internal secret binding, and creates the session. Body capped at 16 KiB; no inline secrets. */
+ create_session_config_request: {
+ /**
+ * @description Session name, independent of the config name. Must satisfy the existing environment-spec metadata.name rules and must not be UUID-shaped.
+ * @example demo-agent
+ */
+ name: string;
+ /**
+ * Format: uuid
+ * @example 11111111-2222-3333-4444-555555555555
+ */
+ config_id: string;
+ /**
+ * @description Opt the new session in to automatic resumption when the team's prepayment balance is restored. Defaults to false. Session-scoped, not config-scoped: the referenced config never confers this, so one shared config cannot enrol every session created from it. Omit to leave the default (or to let the ?resume_on_topoff= query parameter supply it).
+ * @example false
+ */
+ resume_on_topoff?: boolean;
+ /**
+ * @description Optional placement check, not a placement choice: the session is always created in the region whose API host served the request. If set, it must equal that region, or the request fails with 400 and a region_mismatch message. Honored only for teams on the regional routing rollout; ignored otherwise.
+ * @example ric1
+ */
+ region?: string;
+ /**
+ * @description Optional persistent workspace to attach at create; its files are mounted at `/workspace`. The workspace must be `AVAILABLE`, otherwise the request returns 409. Accepted only in this JSON form; an environment spec that contains workspace_id is rejected with 400. Returns 403 when persistent workspaces are not enabled for the team.
+ * @example 019a2f4e-8c1d-7b3a-9e5f-2d6c8a1b4e70
+ */
+ workspace_id?: string;
+ };
+ definitions_create_session_response: {
+ session?: components["schemas"]["definitions_session"];
+ };
+ /** @description A rule after resolution (∩ tenant ∩ platform), carrying a stable id for audit correlation. */
+ resolved_rule: {
+ /**
+ * @description Stable rule id assigned during resolution; correlates with the PolicyDenied event's matched rule.
+ * @example example
+ */
+ id?: string;
+ /** @example example */
+ tool?: string;
+ match?: {
+ [key: string]: string;
+ };
+ /**
+ * @example allow
+ * @enum {string}
+ */
+ action?: "allow" | "ask" | "deny";
+ /**
+ * @example strict
+ * @enum {string}
+ */
+ enforcement?: "strict" | "best-effort";
+ };
+ /** @description Validation outcome for one resolved rule. */
+ rule_verdict: {
+ rule?: components["schemas"]["resolved_rule"];
+ /**
+ * @description exact — enforced precisely as written; degraded — renderable only in a more-restrictive form (deny→ask), warned; unsupported — cannot be enforced (strict ⇒ session reject); unverified — no descriptor available, rendered conservatively but unproven.
+ * @example exact
+ * @enum {string}
+ */
+ verdict?: "exact" | "degraded" | "unsupported" | "unverified";
+ /**
+ * @description The disposition the agent will actually enforce: the requested action when exact/unverified, the more-restrictive target when degraded, omitted when unsupported (cannot render).
+ * @example allow
+ * @enum {string}
+ */
+ rendered?: "allow" | "ask" | "deny";
+ /**
+ * @description Human-readable explanation of the verdict.
+ * @example example
+ */
+ reason?: string;
+ /**
+ * @description Optional actionable hint (e.g. "set enforcement: best-effort, or target a capable agent").
+ * @example example
+ */
+ suggestion?: string;
+ };
+ /** @description Response of POST /v2/harness-runtime/sessions/policy/validate: per-rule verdicts for the (agent, version). The same shape is persisted per session in session_policies.verdicts. */
+ validation_result: {
+ /** @example example */
+ agent?: string;
+ /** @example example */
+ version?: string;
+ /**
+ * @description False when any strict rule is unsupported or unverified — i.e. CreateSession would reject this policy for this (agent, version).
+ * @example true
+ */
+ ok?: boolean;
+ /**
+ * @description Catch-all disposition AS SHIPPED (after unverified allow→ask downgrade). When defaultActionVerdict is degraded, this remains the shipped value; see defaultActionRendered for what the agent will actually enforce.
+ * @example allow
+ * @enum {string}
+ */
+ defaultAction?: "allow" | "ask" | "deny";
+ /**
+ * @description exact — agent can enforce the catch-all as written; degraded — agent cannot enforce the requested defaultAction (warn-only; shipped value unchanged); omitted when no descriptor was available to classify against.
+ * @example exact
+ * @enum {string}
+ */
+ defaultActionVerdict?: "exact" | "degraded" | "unsupported" | "unverified";
+ /**
+ * @description Disposition the agent will actually enforce as the catch-all: equals defaultAction when exact; the more-restrictive degrade target (usually ask) when degraded.
+ * @example allow
+ * @enum {string}
+ */
+ defaultActionRendered?: "allow" | "ask" | "deny";
+ /**
+ * @description Human-readable explanation when defaultActionVerdict is degraded.
+ * @example example
+ */
+ defaultActionReason?: string;
+ verdicts?: components["schemas"]["rule_verdict"][];
+ };
+ /** @description A customer-selectable sandbox (microVM) size. */
+ sandbox_size: {
+ /**
+ * @description DO size slug; submit as spec.sandbox.sizeSlug on CreateSession. e.g. "mars-2vcpu-4gb".
+ * @example mars-2vcpu-4gb
+ */
+ slug?: string;
+ /**
+ * Format: int64
+ * @description vCPU count (for display).
+ * @example 2
+ */
+ vcpus?: number;
+ /**
+ * Format: int64
+ * @description Memory in MB (for display).
+ * @example 4096
+ */
+ memory_mb?: number;
+ /**
+ * Format: double
+ * @description Hourly on-demand price in USD (for display).
+ * @example 0.00003
+ */
+ price_per_hour_usd?: number;
+ /**
+ * Format: double
+ * @description Monthly on-demand price in USD, assuming continuous usage (for display).
+ * @example 93.744
+ */
+ price_per_month_usd?: number;
+ };
+ /** @description Response for ListSandboxSizes. */
+ sandbox_sizes_response: {
+ /** @description Selectable sizes, ordered smallest-to-largest. */
+ sizes?: components["schemas"]["sandbox_size"][];
+ };
+ get_session_response: {
+ session?: components["schemas"]["definitions_session"];
+ };
+ /** @description Request body for updating a session. Set either `resume_on_topoff` to change a session preference, or `manifest_yaml` to change the session settings, not both. At least one property is required, so `{}` returns `400`. Unknown properties return `400`. */
+ patch_session_request: {
+ /**
+ * @description Whether this session resumes automatically after it is paused for low balance and your team's prepaid balance is topped up. Applies to this session only. Can't be combined with `manifest_yaml`.
+ * @example false
+ */
+ resume_on_topoff?: boolean;
+ /**
+ * @description A partial agent manifest, as a YAML string, that holds only the sections to change. Can't
+ * be combined with `resume_on_topoff`. Requires session settings updates to be enabled for
+ * your team (`403` otherwise).
+ *
+ * Supported sections are `tools`, `env`, `secrets`, and `egress`. Sections you omit are not
+ * changed. Any other top-level key returns `400`, including `model` (set the model in `env`
+ * instead; see **Changing the model**) and `permissions` (can't be changed on an existing
+ * session).
+ *
+ * Each section you include replaces that section in full:
+ *
+ * - `tools`: the complete list of tools for the session. Only Action Gateway tools
+ * (`do.actions` entries) can be added, removed, or changed. Custom MCP servers can't be
+ * changed on an existing session: include the session's current custom MCP servers
+ * exactly as they are. Adding, removing, or changing one returns `422`. To remove all
+ * Action Gateway tools from a session that has no custom MCP servers, send `tools: []`.
+ * `tools: null` returns `400`.
+ * - `env`: the complete set of environment variables, as name-value pairs. A variable you
+ * leave out is removed. `env: {}` removes all variables; `env: null` returns `400`.
+ * - `secrets`: the complete set of secrets, as name-value pairs. A secret you leave out is
+ * removed. For each secret, set the value to a string to add or rotate it, or to `{}` to
+ * keep its current value. URL-bound and OAuth secrets also accept an object; see
+ * **URL-bound secrets** and **Switching an OAuth connection**. A `null` value returns
+ * `400`.
+ * - `egress`: the complete egress allowlist, as an object with `allow_hosts` (hostnames) and
+ * `allow_ips` (exact IPv4 or IPv6 addresses, not CIDR ranges). Only this object form is
+ * supported in an update. It replaces the session's
+ * current allowlist: a host or IP address you leave out is removed. Leave out `vpc_uuid`
+ * and `subnet_uuid` to keep the session's current VPC, or set them to their current values.
+ * A different value returns `422`. See **Egress**.
+ *
+ * **URL-bound secrets.** The egress proxy sends a URL-bound secret only to requests that
+ * match its `url`; the agent never receives the value. An update to a URL-bound secret
+ * doesn't restart the agent. In `secrets`, you can:
+ *
+ * - Rotate the value: set the secret to the new value as a string. Its `url` and `scheme`
+ * don't change.
+ * - Move it to another URL or scheme: set it to `{value, url, scheme}`. A new host or path,
+ * or a change to `scheme: raw`, requires `value` (`400` otherwise). Sending the current
+ * `value`, `url`, and `scheme` again is not a change.
+ * - Add one: set it to `{value, url}`. `scheme` is optional and defaults to `bearer`
+ * (`Authorization: Bearer `); `raw` sends the value exactly as stored.
+ * - Bind an existing plain secret to a URL: set it to `{url}`. The secret keeps its current
+ * value.
+ * - Keep one unchanged: set it to `{}`.
+ * - Remove one: leave it out of `secrets`.
+ *
+ * `url` must use `https://` and name an exact hostname (no wildcards, IP addresses, or
+ * `localhost`), with an optional path and no port, query, or fragment. A session can have up
+ * to 16 URL-bound secrets, fewer if it has storage mounts, which count toward the same limit. A URL-bound secret can't be changed back to a plain secret. If
+ * the session has an egress allowlist, the secret's host is added to it. After a rollback or
+ * fork, a URL-bound secret that was moved off its agent config's URL can need its value
+ * again: the request returns `409` until you send `value`.
+ *
+ * **Egress.** `egress` changes the hosts and IP addresses the session can reach. The new
+ * allowlist takes effect on the session's next outbound connection, without an agent
+ * restart. Connections that are already open stay open, including connections to a host you
+ * removed. Only `allow_hosts` and `allow_ips` can change; the VPC is fixed when the session
+ * is created. A session created with unrestricted egress and no URL-bound secrets can't gain
+ * an allowlist: the update ends in `FAILED` with `error` set to `requires_new_session`.
+ *
+ * **Switching an OAuth connection.** An OAuth secret that was created with `actor` can move
+ * to another connection of the same provider: set it to `{source: oauth, provider, actor}`
+ * with the new connection's `user_id` as `actor`. The connection must be active, and either
+ * yours or shared with your team (`400` otherwise), except when you switch back to the
+ * connection the agent config names. Switching OAuth connections must be enabled for your
+ * team (`403` otherwise). The agent restarts to read the new token. Sending the connection
+ * the secret already uses is not a change. Adding or removing an OAuth secret, changing its
+ * provider, or switching one that was created without `actor` returns `422`.
+ * This example switches `GITHUB_TOKEN` to the connection `github2` and assumes the session
+ * has no other secrets:
+ *
+ * ```yaml
+ * secrets:
+ * GITHUB_TOKEN:
+ * source: oauth
+ * provider: github
+ * actor: github2
+ * ```
+ *
+ * **Changing the model.** You change a session's model through `env`. The key to set depends
+ * on the model endpoint the session was created with:
+ *
+ * - DigitalOcean Serverless Inference (created with `HARNESS_INFERENCE_MODEL` and without
+ * `OPENAI_BASE_URL`, `ANTHROPIC_BASE_URL`, or an `ANTHROPIC_API_KEY` secret): set
+ * `HARNESS_INFERENCE_MODEL` to a Serverless Inference model ID, or to `router:` for
+ * an inference router. Removing the key, or moving the session to its own endpoint,
+ * returns `422`. Adding the key to a session that was created without it also returns
+ * `422`.
+ * - Your own OpenAI-compatible endpoint (created with `OPENAI_BASE_URL`): set `MODEL`. The
+ * session reads `MODEL` before `OPENAI_MODEL`, so set `OPENAI_MODEL` only if the session
+ * uses it and doesn't have `MODEL`.
+ * - Your own Anthropic endpoint (created with `ANTHROPIC_BASE_URL`), or the Anthropic API
+ * (created with an `ANTHROPIC_API_KEY` secret and no base URL): set `ANTHROPIC_MODEL`. The
+ * session reads `ANTHROPIC_MODEL` before `MODEL`.
+ *
+ * On a session that uses its own endpoint, the following rules also apply:
+ *
+ * - Removing the model key makes the agent use its default model for that endpoint.
+ * - The model provider and the base URL (`OPENAI_BASE_URL` or `ANTHROPIC_BASE_URL`) can't be
+ * changed (`422`). Include the base URL with its current value.
+ * - The provider API key (`OPENAI_API_KEY` or `ANTHROPIC_API_KEY`) can only be rotated: set
+ * it to the new value as a string, or to `{}` to keep it. Removing it, adding it to a
+ * session that was created without it, or changing its `url` or `scheme` returns `422`.
+ * If the key is URL-bound, rotating it follows the URL-bound secret rules: the agent isn't
+ * restarted, and URL-bound secret updates must be enabled for your team (`403`
+ * otherwise).
+ *
+ * A model name can't be empty, start or end with whitespace, span more than one line, be
+ * longer than 256 bytes, or contain ` #` or `: ` (`400`). Whether the endpoint serves the
+ * model is not checked when you send the request; an unknown model fails on the agent's next
+ * turn.
+ *
+ * **Reserved keys.** `HARNESS_INFERENCE_API_KEY` and `HARNESS_INFERENCE_BASE_URL` are
+ * managed by the platform: include them with their current values, or the request returns
+ * `422`. Framework keys can't be changed either (`422`). Mount-only secrets (`env: false`)
+ * can't be changed on an existing session: set them to `{}` (`422` otherwise). Set an OAuth
+ * secret to `{}` unless you switch its connection.
+ *
+ * Example that changes the model, keeps one secret, and rotates another. Because each
+ * section is a full replacement, the example assumes the session has no other env
+ * variables or secrets:
+ *
+ * ```yaml
+ * env:
+ * HARNESS_INFERENCE_MODEL: llama3.3-70b-instruct
+ * LOG_LEVEL: info
+ * secrets:
+ * GITHUB_TOKEN: {}
+ * JIRA_API_TOKEN: new-token-value
+ * ```
+ *
+ * Example that changes the model and rotates the provider API key of a session that was
+ * created with its own OpenAI-compatible endpoint. The example assumes the session has no
+ * other env variables or secrets:
+ *
+ * ```yaml
+ * env:
+ * OPENAI_BASE_URL: https://llm.example.com/v1
+ * MODEL: my-model-v2
+ * secrets:
+ * OPENAI_API_KEY: new-api-key
+ * ```
+ *
+ * Example that keeps one URL-bound secret, moves another to a new URL, and replaces the
+ * egress allowlist. The example assumes the session has no other secrets:
+ *
+ * ```yaml
+ * secrets:
+ * GITHUB_TOKEN: {}
+ * JIRA_API_TOKEN:
+ * value: new-token-value
+ * url: https://example.atlassian.net/rest/api/3
+ * egress:
+ * allow_hosts:
+ * - api.github.com
+ * - example.atlassian.net
+ * allow_ips:
+ * - 203.0.113.10
+ * ```
+ * @example tools:
+ * - do.actions:
+ * tools: [toolbelt:read-only@1]
+ */
+ manifest_yaml?: string;
+ };
+ patch_session_response: {
+ session?: components["schemas"]["definitions_session"];
+ /**
+ * @description Returned for `manifest_yaml` requests. `ACCEPTED` (HTTP 202): the update is being applied and the session status is `SESSION_STATUS_UPDATING`. Poll the session until the status changes, then read `session.update`. `UNCHANGED` (HTTP 200): the requested settings match the current ones, so nothing was applied.
+ * @example ACCEPTED
+ * @enum {string}
+ */
+ outcome?: "ACCEPTED" | "UNCHANGED";
+ /** @description Warnings about the update that did not stop it from being accepted. */
+ warnings?: string[];
+ };
+ /**
+ * @description Capture lifecycle: PENDING -> READY | FAILED. Only READY checkpoints are forkable/restorable. CreateCheckpoint blocks until terminal, so PENDING is only ever observable via list/get while a capture is in flight.
+ * @example READY
+ * @enum {string}
+ */
+ checkpoint_status: "PENDING" | "READY" | "FAILED";
+ /**
+ * @description How the checkpoint came to exist: explicit - requested via CreateCheckpoint; implicit - minted automatically by the platform (on run completion, or when ForkSession is called without from_checkpoint_id).
+ * @example explicit
+ * @enum {string}
+ */
+ checkpoint_kind: "explicit" | "implicit";
+ /** @description Checkpoint is a durable capture of a session's live sandbox machine state bound to the event-log cursor at the cut. READY checkpoints seed forks (ForkSession) and rollback. Internal fields (team_id, the substrate checkpoint id, event_seq) are never serialized. */
+ checkpoint: {
+ /**
+ * @description Public checkpoint id, stable for the checkpoint's lifetime (e.g. cp_9f2c1a4b).
+ * @example cp_9f2c1a4b
+ */
+ checkpoint_id?: string;
+ /**
+ * @description Owning session.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id?: string;
+ status?: components["schemas"]["checkpoint_status"];
+ kind?: components["schemas"]["checkpoint_kind"];
+ /**
+ * @description Optional user-supplied label from CreateCheckpoint; empty when omitted.
+ * @example before-refactor
+ */
+ label?: string;
+ /**
+ * @description Event-log cursor (ULID) of the last event included in the cut; forks resume event replay from here.
+ * @example 01JABCDEFGHJKLMNPQRSTVWXYZ
+ */
+ event_id?: string;
+ /**
+ * Format: int64
+ * @description Size of the captured machine state. 0 until the checkpoint reaches READY.
+ * @example 1048576
+ */
+ size_bytes?: number;
+ /**
+ * Format: date-time
+ * @example 2026-08-01T12:00:00Z
+ */
+ created_at?: string;
+ /**
+ * @description Client-safe failure detail; set only when status is FAILED.
+ * @example capture timed out
+ */
+ error_message?: string;
+ };
+ list_checkpoints_response: {
+ /** @description Newest first. */
+ checkpoints?: components["schemas"]["checkpoint"][];
+ /** @description Opaque cursor for the next page. Empty when there are no further pages. */
+ next_page_token?: string;
+ };
+ create_checkpoint_request: {
+ /** @description Optional human-readable label stored on the checkpoint; "" if omitted. */
+ label?: string;
+ };
+ /** @description Terminal result of the synchronous capture: checkpoint.status is READY on success. Failures are reported through the error envelope, never as a FAILED checkpoint here. */
+ create_checkpoint_response: {
+ checkpoint?: components["schemas"]["checkpoint"];
+ };
+ get_checkpoint_response: {
+ checkpoint?: components["schemas"]["checkpoint"];
+ };
+ delete_checkpoint_response: {
+ /** @description Echo of the requested checkpoint id. */
+ checkpoint_id?: string;
+ /** @description Always true on 200 (delete is idempotent). */
+ deleted?: boolean;
+ };
+ get_image_message_resource_response: {
+ resource?: components["schemas"]["image_message_resource"];
+ };
+ /** @description The session after in-place rollback: same session_id, sandbox_id swapped to the restored VM. */
+ rollback_to_checkpoint_response: {
+ session?: components["schemas"]["definitions_session"];
+ };
+ fork_session_request: {
+ /** @description Checkpoint to fork from; must be READY. Omitted/empty means capture an implicit checkpoint of the session "now" first and fork from that. */
+ from_checkpoint_id?: string;
+ /**
+ * Format: int32
+ * @description Number of child sessions to create, 1-4. Defaults to 1 when omitted; a value outside 1-4 is rejected with 400.
+ * @default 1
+ */
+ count?: number;
+ };
+ fork_session_response: {
+ /** @description The created child sessions, each a full Session with parent_session_id and fork_id set (PROVISIONING -> READY) and drivable exactly like any other session. */
+ sessions?: components["schemas"]["definitions_session"][];
+ };
+ /**
+ * @description HITLOutcome is the user's decision on a HITL request. DEFER backs off this attempt without treating it as a rejection.
+ * @default HITL_OUTCOME_UNSPECIFIED
+ * @example HITL_OUTCOME_UNSPECIFIED
+ * @enum {string}
+ */
+ hitl_outcome: "HITL_OUTCOME_UNSPECIFIED" | "HITL_OUTCOME_APPROVE" | "HITL_OUTCOME_REJECT" | "HITL_OUTCOME_DEFER";
+ /**
+ * @description How a HITL resolution was triggered. Defaults to RESOLUTION_SOURCE_OUT_OF_BAND when omitted.
+ * @default RESOLUTION_SOURCE_UNSPECIFIED
+ * @example RESOLUTION_SOURCE_UNSPECIFIED
+ * @enum {string}
+ */
+ resolution_source: "RESOLUTION_SOURCE_UNSPECIFIED" | "RESOLUTION_SOURCE_INLINE_KEYSTROKE" | "RESOLUTION_SOURCE_OUT_OF_BAND";
+ resolve_hitl_request: {
+ outcome: components["schemas"]["hitl_outcome"];
+ /**
+ * @description Optional free-text reason. Captured in the audit trail; not interpreted.
+ * @example example
+ */
+ reason?: string;
+ source?: components["schemas"]["resolution_source"];
+ };
+ /** @description Optional. An empty body cancels the turn in flight. */
+ cancel_session_turn_request: {
+ /**
+ * @description Turn id returned by POST /input. Omit it to cancel whichever turn is in flight.
+ * @example run_example
+ */
+ run_id?: string;
+ };
+ cancel_session_turn_response: {
+ /**
+ * @description acked means the agent accepted the interrupt. no_turn means nothing addressable was running. unsupported means this agent cannot be interrupted.
+ * @example acked
+ * @enum {string}
+ */
+ outcome: "acked" | "no_turn" | "unsupported";
+ /**
+ * @description The turn the cancel was aimed at. Omitted when an unnamed cancel found no turn.
+ * @example run_example
+ */
+ run_id?: string;
+ };
+ send_input_request: {
+ /**
+ * @description The user message to deliver into the session. Required and non-empty.
+ * @example example
+ */
+ text: string;
+ };
+ send_input_response: {
+ /**
+ * @description The run id the input was attributed to. Clients can correlate against the run.started event on the stream. May be empty if OHR returned no run id.
+ * @example example
+ */
+ run_id?: string;
+ };
+ exec_in_sandbox_request: {
+ /**
+ * @description Program and arguments. Required and non-empty; run directly, with no shell interpretation.
+ * @example [
+ * "uname",
+ * "-a"
+ * ]
+ */
+ argv: string[];
+ /**
+ * @description Working directory inside the sandbox. Empty uses the sandbox default (/workspace); not restricted to the workspace root.
+ * @example /workspace
+ */
+ workdir?: string;
+ /**
+ * @description Optional environment variables for this command only; nothing is stored on the session and values are not logged, but any process in the sandbox can read them. For credentials the platform holds, use `spec.secrets`. Keys must match `[A-Z][A-Z0-9_]*` and must not be platform-reserved keys (the same rule as `spec.env`). At most 64 entries, keys up to 256 bytes, values up to 64 KiB.
+ * @example {
+ * "LOG_LEVEL": "debug",
+ * "API_BASE_URL": "https://api.example.com",
+ * "API_KEY": "your-api-key"
+ * }
+ */
+ env?: {
+ [key: string]: string;
+ };
+ /**
+ * Format: byte
+ * @description Optional base64 stdin payload. Without keep_stdin_open it is delivered in full and then closed so the process sees EOF. With keep_stdin_open it is the optional first chunk. Later bytes use POST /v2/harness-runtime/sessions/{session_id}/sandbox/exec/{exec_id}/stdin.
+ * @example
+ */
+ stdin?: string;
+ /**
+ * @description Leave the process stdin open. Requires an event-stream response (Accept text/event-stream, or stream=1). The stream starts with event started and an exec_id. A buffered request with this set returns 400.
+ * @example false
+ */
+ keep_stdin_open?: boolean;
+ /**
+ * Format: int64
+ * @description Optional timeout. Clamped server-side (default 60, maximum 240) regardless of the value sent.
+ * @example 60
+ */
+ timeout_seconds?: number;
+ };
+ exec_in_sandbox_response: {
+ /**
+ * Format: int32
+ * @description The guest process's exit code. Non-zero is still a 200 response.
+ * @example 0
+ */
+ exit_code?: number;
+ /**
+ * @description Buffered stdout, capped at 1 MiB. Check X-Exec-Stdout-Truncated for drops.
+ * @example Linux
+ */
+ stdout?: string;
+ /**
+ * @description Buffered stderr, capped at 1 MiB. Check X-Exec-Stderr-Truncated for drops.
+ * @example
+ */
+ stderr?: string;
+ /**
+ * Format: int64
+ * @description Wall-clock duration the guest reported for the command.
+ * @example 12
+ */
+ duration_ms?: number;
+ };
+ write_exec_stdin_request: {
+ /**
+ * Format: byte
+ * @description Base64 stdin bytes to append. Omit on an eof-only write.
+ * @example aGVsbG8K
+ */
+ data?: string;
+ /**
+ * Format: int64
+ * @description Required. Count of stdin bytes already accepted. An equal offset appends. A lower offset retries and trims the overlap. A higher offset returns 409.
+ * @example 0
+ */
+ offset: number;
+ /**
+ * @description Close stdin after this write. A later write, or a second eof, returns 409.
+ * @example false
+ */
+ eof?: boolean;
+ };
+ write_exec_stdin_response: {
+ /**
+ * Format: int64
+ * @description Count of stdin bytes accepted after this write.
+ * @example 6
+ */
+ offset?: number;
+ };
+ /** @description Response to CreateWorkspaceTransfer. Upload responses carry `upload_id`, `part_size`, and `expires_at`; download responses carry only `transfer_id`, `direction`, and `status`. */
+ workspace_transfer_created: {
+ /**
+ * @description Opaque id used on all subsequent calls.
+ * @example example
+ */
+ transfer_id?: string;
+ /**
+ * @example upload
+ * @enum {string}
+ */
+ direction?: "upload" | "download";
+ /**
+ * @example pending
+ * @enum {string}
+ */
+ status?: "pending" | "in_progress" | "completed" | "failed";
+ /**
+ * @description Upload only. Multipart upload id (informational).
+ * @example example
+ */
+ upload_id?: string;
+ /**
+ * Format: int64
+ * @description Upload only. Split the payload into parts of this size; the last part may be smaller.
+ * @example 1
+ */
+ part_size?: number;
+ /**
+ * Format: date-time
+ * @description Transfer credential window.
+ * @example 2026-07-27T12:00:00Z
+ */
+ expires_at?: string;
+ };
+ workspace_transfer_status: {
+ /** @example example */
+ transfer_id?: string;
+ /**
+ * @example upload
+ * @enum {string}
+ */
+ direction?: "upload" | "download";
+ /**
+ * @example pending
+ * @enum {string}
+ */
+ status?: "pending" | "in_progress" | "completed" | "failed";
+ /**
+ * Format: int64
+ * @example 1
+ */
+ bytes_written?: number;
+ /**
+ * @description Lowercase hex SHA-256 of the payload, when known. Verify the downloaded object against this.
+ * @example example
+ */
+ sha256?: string;
+ /**
+ * @description Download + completed only. Presigned GET URL; fetch the object directly.
+ * @example example
+ */
+ download_url?: string;
+ /**
+ * Format: date-time
+ * @description Expiry of download_url when present.
+ * @example 2026-07-27T12:00:00Z
+ */
+ expires_at?: string;
+ /**
+ * @description Populated when status is failed.
+ * @example example
+ */
+ error_message?: string;
+ };
+ workspace_transfer_cancelled: {
+ /** @example example */
+ transfer_id?: string;
+ /**
+ * @description True if this call transitioned an active transfer to terminal; false if it was already terminal.
+ * @example true
+ */
+ aborted?: boolean;
+ /**
+ * @example pending
+ * @enum {string}
+ */
+ status?: "pending" | "in_progress" | "completed" | "failed";
+ };
+ workspace_upload_committed: {
+ /** @example example */
+ transfer_id?: string;
+ /**
+ * @example pending
+ * @enum {string}
+ */
+ status?: "pending" | "in_progress" | "completed" | "failed";
+ /**
+ * Format: int64
+ * @description Size of the completed staging object, when known.
+ * @example 1
+ */
+ size_bytes?: number;
+ };
+ workspace_part_upload_url: {
+ /**
+ * Format: int32
+ * @example 1
+ */
+ part_number?: number;
+ /**
+ * @description Presigned PUT URL for this part. PUT the part bytes here directly.
+ * @example example
+ */
+ upload_url?: string;
+ };
+ workspace_part_upload_urls: {
+ /** @example example */
+ transfer_id?: string;
+ /** @description One presigned PUT URL per requested part number, in request order. */
+ part_urls?: components["schemas"]["workspace_part_upload_url"][];
+ /**
+ * Format: date-time
+ * @description Shared expiry for all URLs in this batch.
+ * @example 2026-07-27T12:00:00Z
+ */
+ expires_at?: string;
+ };
+ workspace_upload_response: {
+ /**
+ * @description Absolute guest path the payload was written to.
+ * @example example
+ */
+ path?: string;
+ /**
+ * Format: int64
+ * @description Number of bytes committed to the workspace.
+ * @example 1
+ */
+ bytes_written?: number;
+ };
+ /** @description The JSON payload carried in each SSE event's `data:` field (canonical SPI event envelope). The SSE `event:` field repeats `type`, and the `id:` field repeats `event_id`. */
+ stream_event: {
+ /** @example example */
+ event_id?: string;
+ /** @example example */
+ run_id?: string;
+ /**
+ * @description DO Team ID rendered as a decimal string.
+ * @example example
+ */
+ tenant_id?: string;
+ /** @example example */
+ session_id?: string;
+ /** @example example */
+ trace_parent?: string;
+ /**
+ * Format: date-time
+ * @example 2026-07-27T12:00:00Z
+ */
+ timestamp?: string;
+ /**
+ * Format: int64
+ * @description Producer-supplied sequence number; nonzero values increase monotonically within an ingress stream.
+ * @example 1
+ */
+ seq?: number;
+ /** @example example */
+ source_event_id?: string;
+ /** @example example */
+ source_event_type?: string;
+ /**
+ * @description Optional runtime-native tenant identifier; distinct from authoritative tenant_id.
+ * @example example
+ */
+ source_tenant_id?: string;
+ /**
+ * @description Server-assigned component that submitted the event.
+ * @example agent
+ * @enum {string}
+ */
+ producer?: "agent" | "ohr" | "ohp" | "ohs";
+ /** @example example */
+ definition_id?: string;
+ /** @example example */
+ revision_id?: string;
+ /** @example example */
+ credential_binding_set_id?: string;
+ /**
+ * @description Canonical SPI event type. The SSE `event:` field carries the same value.
+ * @example run.started
+ * @enum {string}
+ */
+ type?: "run.started" | "run.token_delta" | "run.tool_call_started" | "run.tool_call_completed" | "run.human_input_requested" | "run.human_input_received" | "run.completed" | "run.failed" | "run.paused" | "run.resumed" | "session.updated" | "run.state_checkpointed" | "run.handoff" | "run.usage_recorded" | "run.sandbox_allocated" | "run.sandbox_released" | "run.cost_accrued" | "run.log" | "policy.denied" | "stream.state";
+ /**
+ * @description Type-specific payload, discriminated by `type` (canonical SPI shapes; numeric fields are JSON numbers):
+ * - run.started: {agent}
+ * - run.token_delta: {text}
+ * - run.tool_call_started: {tool_call_id, name, input}
+ * - run.tool_call_completed: {tool_call_id, ok, duration_ms, summary}
+ * - run.human_input_requested: {hitl_id, payload}
+ * - run.human_input_received: {hitl_id, outcome, actor, reason}
+ * - run.completed: {total_tokens_in, total_tokens_out, run_cost_micros}
+ * - run.failed: {code, message}
+ * - run.paused: {reason}
+ * - run.resumed: {}
+ * - session.updated: {}
+ * - run.state_checkpointed: {checkpoint_id, digest}
+ * - run.handoff: {from, to, description}
+ * - run.usage_recorded: {step_id, model_id, usage: {input_tokens, output_tokens, cached_input_tokens, reasoning_tokens, tool_seconds}}
+ * - run.sandbox_allocated: {sandbox_id, kind, template}
+ * - run.sandbox_released: {sandbox_id, exit_code, duration_ms}
+ * - run.cost_accrued: {running_total_micros, delta_micros}
+ * - run.log: {level, message, fields}
+ */
+ data?: Record;
+ };
+ /**
+ * @description PENDING: route not yet published, URL not servable. READY: servable. There is no failed state; the substrate retries until READY.
+ * @example INGRESS_URL_STATE_READY
+ * @enum {string}
+ */
+ ingress_url_state: "INGRESS_URL_STATE_PENDING" | "INGRESS_URL_STATE_READY";
+ /** @description A publicly routable HTTPS URL to one guest port of the session's sandbox. The hostname is stable while the session runs; it is revoked on pause and lock, and rollback moves the session to a new sandbox, so re-fetch after resume, unlock or rollback. Requests must carry the caller's DO token as a Bearer header. */
+ session_ingress_url: {
+ /** @example 3f2a1b0c-9d8e-7f6a-5b4c-3d2e1f0a9b8c */
+ ingress_url_id?: string;
+ /** @example a1b2c3d4-e5f6-7890-abcd-ef1234567890 */
+ session_id?: string;
+ /**
+ * Format: int64
+ * @description Guest port the URL fronts; 8000 (OpenHands Agent Server) today.
+ * @example 8000
+ */
+ port?: number;
+ /**
+ * @description Immutable HTTPS origin, e.g. https://.nyc3.sandbox.ondigitalocean.com.
+ * @example https://abc123.nyc3.sandbox.ondigitalocean.com
+ */
+ url?: string;
+ state?: components["schemas"]["ingress_url_state"];
+ /**
+ * Format: date-time
+ * @example 2026-07-27T12:00:00Z
+ */
+ created_at?: string;
+ };
+ get_ingress_url_response: {
+ ingress_url?: components["schemas"]["session_ingress_url"];
+ };
+ sandbox_template_image_source: {
+ /** @example registry.digitalocean.com */
+ registry?: string;
+ /** @example my-team/agent-base */
+ repository?: string;
+ /** @example latest */
+ tag?: string;
+ /** @example sha256:deadbeef */
+ digest?: string;
+ };
+ sandbox_template_spec: {
+ /**
+ * @description Base template key. One of: coding-base, coding-claude-code, coding-codex, coding-hermes, coding-opencode, langgraph.
+ * @example coding-opencode
+ */
+ base_template?: string;
+ image?: components["schemas"]["sandbox_template_image_source"];
+ };
+ sandbox_template: {
+ /**
+ * Format: uuid
+ * @example aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
+ */
+ template_id: string;
+ /** @example my-custom-template */
+ name: string;
+ spec?: components["schemas"]["sandbox_template_spec"];
+ /**
+ * @example TEMPLATE_STATUS_READY
+ * @enum {string}
+ */
+ status: "TEMPLATE_STATUS_UNSPECIFIED" | "TEMPLATE_STATUS_PENDING" | "TEMPLATE_STATUS_BUILDING" | "TEMPLATE_STATUS_READY" | "TEMPLATE_STATUS_FAILED";
+ /**
+ * Format: date-time
+ * @example 2026-08-01T12:00:00Z
+ */
+ created_at: string;
+ /**
+ * Format: date-time
+ * @example 2026-08-01T12:05:00Z
+ */
+ updated_at: string;
+ };
+ list_templates_response: {
+ templates?: components["schemas"]["sandbox_template"][];
+ next_page_token?: string;
+ };
+ create_template_request: {
+ name: string;
+ /** @description Base template key. One of: coding-base, coding-claude-code, coding-codex, coding-hermes, coding-opencode, langgraph. */
+ base_template: string;
+ source_oci_ref: string;
+ };
+ create_template_response: {
+ template?: components["schemas"]["sandbox_template"];
+ };
+ get_template_response: {
+ template?: components["schemas"]["sandbox_template"];
+ };
+ update_template_request: {
+ source_oci_ref?: string;
+ base_template?: string;
+ };
+ delete_template_response: {
+ /** Format: uuid */
+ template_id?: string;
+ deleted?: boolean;
+ };
+ sandbox_template_build: {
+ /**
+ * Format: uuid
+ * @example 11111111-2222-3333-4444-555555555555
+ */
+ build_id: string;
+ /**
+ * Format: uuid
+ * @example aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
+ */
+ template_id?: string;
+ /** @example my-custom-template */
+ name?: string;
+ spec?: components["schemas"]["sandbox_template_spec"];
+ /**
+ * @example SUCCEEDED
+ * @enum {string}
+ */
+ status: "STATUS_UNSPECIFIED" | "PENDING" | "BUILDING" | "SUCCEEDED" | "FAILED";
+ /** @example */
+ error?: string;
+ /**
+ * Format: date-time
+ * @example 2026-08-01T12:00:00Z
+ */
+ created_at: string;
+ /**
+ * Format: date-time
+ * @example 2026-08-01T12:05:00Z
+ */
+ updated_at: string;
+ };
+ list_template_builds_response: {
+ builds?: components["schemas"]["sandbox_template_build"][];
+ next_page_token?: string;
+ };
+ get_template_build_response: {
+ build?: components["schemas"]["sandbox_template_build"];
+ };
+ /**
+ * @description How the trigger fires - on an event (webhook) or on a schedule (cron). Immutable after create.
+ * @example webhook
+ * @enum {string}
+ */
+ trigger_kind: "webhook" | "cron";
+ /**
+ * @description Trigger lifecycle state. Soft-deleted triggers are never returned (404).
+ * @example active
+ * @enum {string}
+ */
+ trigger_status: "active" | "paused";
+ /**
+ * @description fresh = a new session is created from the trigger's spec on every firing and destroyed after. reuse = the trigger binds an existing PAUSED session, resumed on each firing and paused after; multiple triggers may bind one session.
+ * @example fresh
+ * @enum {string}
+ */
+ trigger_session_mode: "fresh" | "reuse";
+ /**
+ * @description none = nothing pushed; the result stays in run history for self-serve. email = the collected run output is emailed to a configured address. slack = the collected run output is posted to a Slack incoming webhook URL (channel fixed by the webhook at install time).
+ * @example email
+ * @enum {string}
+ */
+ trigger_output_mode: "none" | "email" | "slack";
+ /** @description Output-delivery configuration as seen on reads. The email address and Slack webhook URL are write-only and never returned. */
+ trigger_output_read: {
+ mode?: components["schemas"]["trigger_output_mode"];
+ /**
+ * @description True when an email address is stored (mode=email).
+ * @example true
+ */
+ email_configured?: boolean;
+ /**
+ * @description True when a Slack incoming webhook URL is stored (mode=slack).
+ * @example false
+ */
+ slack_configured?: boolean;
+ };
+ /**
+ * @description Signature-verification scheme applied to a delivery. Omitted on create defaults to custom.
+ * @example github
+ * @enum {string}
+ */
+ webhook_provider_key: "github" | "gitlab" | "custom";
+ /** @description Present iff kind=webhook. The secret is never in this object (see create_trigger_response / rotate_secret_response). */
+ webhook_config: {
+ provider?: components["schemas"]["webhook_provider_key"];
+ /**
+ * @description The Payload URL to configure in the external system. The service returns the `/v2/agents` spelling. Paste that value unchanged.
+ * @example https://api.digitalocean.com/v2/agents/triggers/b1a0.../webhook
+ */
+ webhook_url?: string;
+ };
+ /** @description Present iff kind=cron. */
+ cron_config: {
+ /**
+ * @description Cron expression; must parse with the scanner's cron library.
+ * @example 0 9 * * 1-5
+ */
+ cron_expr?: string;
+ /**
+ * @description IANA timezone (e.g. "America/New_York").
+ * @example America/New_York
+ */
+ timezone?: string;
+ /**
+ * Format: date-time
+ * @description Read-only; server-computed next fire time.
+ * @example 2026-07-27T13:00:00Z
+ */
+ next_run_at?: string;
+ };
+ /** @description A single automation bound to exactly one agent/session (agent == session in v1). The nested block present depends on `kind` (webhook xor cron) and `session_mode` (fresh => session_template; reuse => bound_session_id). `agent_kind` is read-only and derived; the webhook secret, the output email address / Slack webhook URL, and any env values inside session_template are write-only and never returned. */
+ trigger: {
+ /**
+ * @description Server-allocated UUID; opaque to clients.
+ * @example b1a0c6de-1f2e-4a3b-9c8d-0e1f2a3b4c5d
+ */
+ trigger_id?: string;
+ kind?: components["schemas"]["trigger_kind"];
+ /**
+ * @description Unique per team among non-deleted triggers. Same rules as session names; not UUID-form.
+ * @example nightly-deploy-check
+ */
+ name?: string;
+ status?: components["schemas"]["trigger_status"];
+ session_mode?: components["schemas"]["trigger_session_mode"];
+ agent_kind?: components["schemas"]["agent_kind"];
+ /**
+ * @description The prompt sent on each fire. Opaque to clients; payload-interpolation syntax is server-defined. For cron triggers it must not reference payload placeholders.
+ * @example Review the latest push and summarize risks.
+ */
+ prompt_template?: string;
+ output?: components["schemas"]["trigger_output_read"];
+ /**
+ * @description Present iff session_mode=fresh. The agents.yaml Agent manifest used to CREATE a session on each fire, returned with its env values REDACTED.
+ * @example
+ */
+ session_template?: string;
+ /**
+ * Format: uuid
+ * @description Present iff session_mode=reuse. UUID of the existing PAUSED session this trigger resumes; may be shared by multiple triggers.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ bound_session_id?: string;
+ webhook?: components["schemas"]["webhook_config"];
+ cron?: components["schemas"]["cron_config"];
+ /**
+ * Format: date-time
+ * @example 2026-07-27T12:00:00Z
+ */
+ created_at?: string;
+ /**
+ * Format: date-time
+ * @example 2026-07-27T12:00:00Z
+ */
+ updated_at?: string;
+ };
+ list_triggers_response: {
+ triggers?: components["schemas"]["trigger"][];
+ /**
+ * @description Opaque cursor for the next page. Empty when there are no further pages.
+ * @example
+ */
+ next_page_token?: string;
+ };
+ /** @description Slack destination on create/update. webhook_url is required when mode=slack; must be https://hooks.slack.com/services/...; stored encrypted and never returned. */
+ slack_output_write: {
+ /**
+ * @description Slack incoming webhook URL (https://hooks.slack.com/services/...). The channel is bound to this URL at install time.
+ * @example https://hooks.slack.com/services/T0000/B0000/XXXX
+ */
+ webhook_url: string;
+ };
+ /** @description Output-delivery configuration on create/update. Exactly one of email / slack is required for the matching mode and forbidden otherwise; destinations are stored encrypted and never returned. */
+ trigger_output_write: {
+ mode: components["schemas"]["trigger_output_mode"];
+ /**
+ * @description Destination address; required iff mode=email.
+ * @example oncall@example.com
+ */
+ email?: string;
+ slack?: components["schemas"]["slack_output_write"];
+ };
+ /** @description webhook block on create. Omitting provider defaults to custom. */
+ create_webhook_config: {
+ provider?: components["schemas"]["webhook_provider_key"];
+ };
+ /** @description cron block on create. */
+ create_cron_config: {
+ /** @example 0 9 * * 1-5 */
+ cron_expr: string;
+ /**
+ * @description IANA timezone.
+ * @example America/New_York
+ */
+ timezone: string;
+ };
+ /** @description See the CreateTrigger operation description for the conditional-requirement matrix. team_id is NOT accepted here - it is derived from the authenticated principal. */
+ create_trigger_request: {
+ kind: components["schemas"]["trigger_kind"];
+ /**
+ * @description Team-unique (among non-deleted triggers) trigger name. Same rules as session names; not UUID-form.
+ * @example nightly-deploy-check
+ */
+ name: string;
+ session_mode: components["schemas"]["trigger_session_mode"];
+ /**
+ * @description The prompt sent on each fire. For cron it must not contain payload-interpolation placeholders.
+ * @example Review the latest push and summarize risks.
+ */
+ prompt_template: string;
+ output: components["schemas"]["trigger_output_write"];
+ /**
+ * @description fresh only. Full agents.yaml Agent manifest (YAML or JSON). Any embedded env values are split out and encrypted server-side.
+ * @example
+ */
+ session_template?: string;
+ /**
+ * Format: uuid
+ * @description reuse only. UUID of an existing session owned by the team.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ bound_session_id?: string;
+ webhook?: components["schemas"]["create_webhook_config"];
+ cron?: components["schemas"]["create_cron_config"];
+ };
+ create_trigger_response: {
+ trigger?: components["schemas"]["trigger"];
+ /**
+ * @description The generated webhook secret. Present for webhook triggers only and shown EXACTLY ONCE - it is never returned again. Paste it into the external system's webhook configuration.
+ * @example whsec_a1b2c3d4e5f6
+ */
+ webhook_secret?: string;
+ };
+ get_trigger_response: {
+ trigger?: components["schemas"]["trigger"];
+ };
+ /** @description The hosted-agents Session shape (subset), returned verbatim from an internal ListSessions(status=PAUSED). Enum spellings match the sessions API. */
+ reusable_session: {
+ /** @example a1b2c3d4-e5f6-7890-abcd-ef1234567890 */
+ session_id?: string;
+ /** @example demo-agent */
+ name?: string;
+ agent_kind?: components["schemas"]["agent_kind"];
+ status?: components["schemas"]["session_status"];
+ /**
+ * Format: date-time
+ * @example 2026-07-27T12:00:00Z
+ */
+ created_at?: string;
+ /**
+ * Format: date-time
+ * @example 2026-07-27T12:00:00Z
+ */
+ last_event_at?: string;
+ };
+ list_reusable_sessions_response: {
+ sessions?: components["schemas"]["reusable_session"][];
+ /**
+ * @description Opaque cursor for the next page. Empty when there are no further pages.
+ * @example
+ */
+ next_page_token?: string;
+ };
+ /** @description Partial update. Only the supplied fields change. kind and webhook.provider are immutable. Sending status alone is how pause/re-enable work. */
+ update_trigger_request: {
+ /**
+ * @description New team-unique trigger name. Same charset/length rules as create.
+ * @example nightly-deploy-check
+ */
+ name?: string;
+ status?: components["schemas"]["trigger_status"];
+ /** @example Review the latest push and summarize risks. */
+ prompt_template?: string;
+ output?: components["schemas"]["trigger_output_write"];
+ /**
+ * @description fresh triggers only. A session_template PATCH is a full replacement of the stored template; you must resupply every spec.secrets slot value the new manifest declares, or the request is a 400.
+ * @example
+ */
+ session_template?: string;
+ /**
+ * Format: uuid
+ * @description reuse triggers only. UUID of an existing session owned by the team.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ bound_session_id?: string;
+ cron?: components["schemas"]["create_cron_config"];
+ };
+ /**
+ * @description Per-firing outcome.
+ * @example succeeded
+ * @enum {string}
+ */
+ trigger_execution_status: "pending" | "running" | "succeeded" | "failed";
+ /** @description One row per firing (webhook delivery or cron tick). */
+ trigger_execution: {
+ /** @example 7c1f9e2a-3b4c-5d6e-7f80-91a2b3c4d5e6 */
+ execution_id?: string;
+ /** @example b1a0c6de-1f2e-4a3b-9c8d-0e1f2a3b4c5d */
+ trigger_id?: string;
+ status?: components["schemas"]["trigger_execution_status"];
+ /**
+ * @description The run's session. Populated once the session is created (fresh) or is known (reuse); empty before then.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id?: string;
+ /**
+ * @description Populated once SendInput acks; correlation/audit only. May be empty.
+ * @example
+ */
+ run_id?: string;
+ /**
+ * @description Why a running execution has not started its turn. Omitted when there is nothing to report. Known value: waiting_for_bound_session (a reuse firing is waiting for its bound session to pause; status stays running). Clients should treat an unrecognized value as an opaque string.
+ * @example waiting_for_bound_session
+ */
+ status_reason?: string;
+ /**
+ * @description Human-readable detail for status_reason. Omitted when status_reason is omitted.
+ * @example Waiting for the bound session to pause.
+ */
+ status_message?: string;
+ /**
+ * @description Client-safe reason when status=failed; absent otherwise. One of a fixed set of messages; do not parse it or match on substrings. Quote the execution_id when contacting support.
+ * @example
+ */
+ failure_reason?: string;
+ /**
+ * Format: date-time
+ * @example 2026-07-27T12:00:00Z
+ */
+ created_at?: string;
+ /**
+ * Format: date-time
+ * @example 2026-07-27T12:00:05Z
+ */
+ updated_at?: string;
+ /**
+ * @description The raw webhook body or cron tick metadata. Returned by GetTriggerExecution only; omitted from list items. Cleared for terminal executions after the payload retention window (default 7 days from creation).
+ * @example
+ */
+ payload?: string;
+ /**
+ * @description The doctl-parity transcript rendered from the run's SPI events. Returned by GetTriggerExecution only; omitted from list items.
+ * @example
+ */
+ output_text?: string;
+ /**
+ * @description True when output_text is incomplete. Returned by GetTriggerExecution only; omitted from list items.
+ * @example false
+ */
+ output_truncated?: boolean;
+ };
+ list_trigger_executions_response: {
+ executions?: components["schemas"]["trigger_execution"][];
+ /**
+ * @description Opaque cursor for the next page. Empty when there are no further pages.
+ * @example
+ */
+ next_page_token?: string;
+ };
+ get_trigger_execution_response: {
+ execution?: components["schemas"]["trigger_execution"];
+ };
+ rotate_secret_response: {
+ /**
+ * @description The new webhook secret, shown once.
+ * @example whsec_f6e5d4c3b2a1
+ */
+ webhook_secret?: string;
+ /**
+ * Format: date-time
+ * @description The instant the outgoing secret stops verifying deliveries. Omitted when grace_period_seconds=0.
+ * @example 2026-07-27T12:05:00Z
+ */
+ previous_secret_expires_at?: string;
+ /**
+ * @description True when grace_period_seconds=0 retired the old secret on this call. Exactly one of this and previous_secret_expires_at is present.
+ * @example false
+ */
+ previous_secret_revoked?: boolean;
+ };
+ webhook_accepted_response: {
+ /**
+ * @description The queued (or deduped-existing) execution. Absent when the trigger is paused (202 with empty body).
+ * @example 7c1f9e2a-3b4c-5d6e-7f80-91a2b3c4d5e6
+ */
+ execution_id?: string;
+ };
+ /**
+ * @description How the external system authenticates a delivery: hmac-sha256 over the raw body (github), a plaintext token replayed verbatim (gitlab), or do-signature-v1 (`t=,v1=` over `{unix}.{body}`, custom).
+ * @example hmac-sha256
+ * @enum {string}
+ */
+ webhook_signature_scheme: "hmac-sha256" | "plaintext" | "do-signature-v1";
+ webhook_provider_signature: {
+ /**
+ * @description HTTP header the external system sends the signature/token in.
+ * @example X-Hub-Signature-256
+ */
+ header?: string;
+ scheme?: components["schemas"]["webhook_signature_scheme"];
+ };
+ webhook_provider: {
+ key?: components["schemas"]["webhook_provider_key"];
+ /** @example GitHub */
+ display_name?: string;
+ /** @example Verify deliveries with an HMAC-SHA256 signature over the raw body. */
+ description?: string;
+ /** @example https://docs.github.com/webhooks */
+ docs_url?: string;
+ /**
+ * @description Per-provider instruction for where the generated secret goes in the external system.
+ * @example Paste into the webhook's Secret field.
+ */
+ paste_hint?: string;
+ signature?: components["schemas"]["webhook_provider_signature"];
+ };
+ list_webhook_providers_response: {
+ providers?: components["schemas"]["webhook_provider"][];
+ };
+ /**
+ * @description Lifecycle state of a persistent workspace. `AVAILABLE`: ready to attach to a new session. `ATTACHING`: a session is being created with it. `ATTACHED`: a session is using it. `RELEASING`: the session was removed and the files are being saved. `FAILED`: the workspace could not be saved or created; it keeps its last successful save. `DELETING`: a delete is in progress. States may be added; treat an unknown value as unavailable.
+ * @example AVAILABLE
+ * @enum {string}
+ */
+ workspace_state: "AVAILABLE" | "ATTACHING" | "ATTACHED" | "RELEASING" | "FAILED" | "DELETING";
+ /** @description A persistent workspace: a set of files with its own ID, mounted at `/workspace` in the one session it is attached to and kept when that session is removed. */
+ workspace: {
+ /**
+ * @description Assigned at create and never reused. Treat it as an opaque string.
+ * @example 019a2f4e-8c1d-7b3a-9e5f-2d6c8a1b4e70
+ */
+ workspace_id: string;
+ /**
+ * @description Optional label. Not unique, and never accepted in place of workspace_id.
+ * @example notes
+ */
+ name?: string;
+ state: components["schemas"]["workspace_state"];
+ /**
+ * @description The session that holds the workspace. Absent when no session does.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ attached_session_id?: string;
+ /**
+ * Format: int32
+ * @description Size limit in GiB, fixed at create. It is a quota, so the filesystem total inside the session is slightly lower.
+ * @example 10
+ */
+ size_limit_gib: number;
+ /**
+ * Format: int64
+ * @description Estimated used space in bytes as of the last save. It can differ from the usage seen inside the session.
+ * @example 1073741824
+ */
+ bytes_used: number;
+ /**
+ * Format: date-time
+ * @description Time of the newest complete save. Absent until the first save.
+ * @example 2026-10-27T12:00:00Z
+ */
+ last_saved_at?: string;
+ /**
+ * Format: date-time
+ * @description When the workspace was created.
+ * @example 2026-10-27T11:00:00Z
+ */
+ created_at: string;
+ /**
+ * Format: date-time
+ * @description When a user request last changed the workspace. Equal to created_at until then. Saves made by the platform do not change it.
+ * @example 2026-10-27T11:00:00Z
+ */
+ updated_at: string;
+ /**
+ * @description UUID of the user that created the workspace.
+ * @example 3c5d7e9f-1a2b-4c6d-8e0f-a1b2c3d4e5f6
+ */
+ created_by: string;
+ /**
+ * @description UUID of the user whose request last changed the workspace. Equal to created_by until then.
+ * @example 3c5d7e9f-1a2b-4c6d-8e0f-a1b2c3d4e5f6
+ */
+ updated_by: string;
+ };
+ list_workspaces_response: {
+ workspaces?: components["schemas"]["workspace"][];
+ /**
+ * @description Opaque cursor for the next page. Empty when there are no further pages. A page can hold fewer results than page_size, so keep paging until this is empty.
+ * @example
+ */
+ next_page_token?: string;
+ };
+ create_workspace_request: {
+ /**
+ * Format: int32
+ * @description Size limit of the workspace in GiB, from 1 to 100. A team limit can lower the maximum. The size cannot be changed after create.
+ * @example 10
+ */
+ size_limit_gib: number;
+ /**
+ * @description Optional label of at most 255 characters. It does not need to be unique.
+ * @example notes
+ */
+ name?: string;
+ };
+ create_workspace_response: {
+ workspace?: components["schemas"]["workspace"];
+ };
+ get_workspace_response: {
+ workspace?: components["schemas"]["workspace"];
+ };
+ apps_deployment_job: {
+ /**
+ * The name of this job
+ * @example migrate-db
+ */
+ name?: string;
+ /**
+ * The commit hash of the repository that was used to build this job
+ * @example 54d4a727f457231062439895000d45437c7bb405
+ */
+ source_commit_hash?: string;
+ };
+ apps_deployment_functions: {
+ /**
+ * The name of this functions component
+ * @example my-functions-component
+ */
+ name?: string;
+ /**
+ * @description The commit hash of the repository that was used to build this functions component.
+ * @example 54d4a727f457231062439895000d45437c7bb405
+ */
+ source_commit_hash?: string;
+ /**
+ * @description The namespace where the functions are deployed.
+ * @example ap-b2a93513-8d9b-4223-9d61-5e7272c81c32
+ */
+ namespace?: string;
+ };
+ /**
+ * @default UNKNOWN
+ * @example ACTIVE
+ * @enum {string}
+ */
+ apps_deployment_phase: "UNKNOWN" | "PENDING_BUILD" | "BUILDING" | "PENDING_DEPLOY" | "DEPLOYING" | "ACTIVE" | "SUPERSEDED" | "ERROR" | "CANCELED";
+ apps_deployment_progress_step_reason: {
+ /**
+ * The error code
+ * @example Title of Error
+ */
+ code?: string;
+ /**
+ * The error message
+ * @example This is an error
+ */
+ message?: string;
+ };
+ /**
+ * @default UNKNOWN
+ * @example SUCCESS
+ * @enum {string}
+ */
+ apps_deployment_progress_step_status: "UNKNOWN" | "PENDING" | "RUNNING" | "ERROR" | "SUCCESS";
+ /** A step that is run as part of the deployment's lifecycle */
+ apps_deployment_progress_step: {
+ /**
+ * The component name that this step is associated with
+ * @example component
+ */
+ component_name?: string;
+ /**
+ * The end time of this step
+ * Format: date-time
+ * @example 2020-11-19T20:27:18Z
+ */
+ ended_at?: string;
+ /**
+ * @description The base of a human-readable description of the step intended to be combined with the component name for presentation. For example:
+ *
+ * `message_base` = "Building service"
+ * `component_name` = "api"
+ * @example Building service
+ */
+ message_base?: string;
+ /**
+ * The name of this step
+ * @example example_step
+ */
+ name?: string;
+ reason?: components["schemas"]["apps_deployment_progress_step_reason"];
+ /**
+ * The start time of this step
+ * Format: date-time
+ * @example 2020-11-19T20:27:18Z
+ */
+ started_at?: string;
+ status?: components["schemas"]["apps_deployment_progress_step_status"];
+ /** Child steps of this step */
+ steps?: Record[];
+ };
+ apps_deployment_progress: {
+ /**
+ * Number of unsuccessful steps
+ * Format: int32
+ * @example 3
+ */
+ error_steps?: number;
+ /**
+ * Number of pending steps
+ * Format: int32
+ * @example 2
+ */
+ pending_steps?: number;
+ /**
+ * Number of currently running steps
+ * Format: int32
+ * @example 2
+ */
+ running_steps?: number;
+ /** The deployment's steps */
+ steps?: components["schemas"]["apps_deployment_progress_step"][];
+ /**
+ * Number of successful steps
+ * Format: int32
+ * @example 4
+ */
+ success_steps?: number;
+ /** A flattened summary of the steps */
+ summary_steps?: components["schemas"]["apps_deployment_progress_step"][];
+ /**
+ * Total number of steps
+ * Format: int32
+ * @example 5
+ */
+ total_steps?: number;
+ };
+ apps_deployment_service: {
+ /**
+ * The name of this service
+ * @example web
+ */
+ name?: string;
+ /**
+ * The commit hash of the repository that was used to build this service
+ * @example 54d4a727f457231062439895000d45437c7bb405
+ */
+ source_commit_hash?: string;
+ };
+ app_domain_spec: {
+ /**
+ * @description The hostname for the domain
+ * @example app.example.com
+ */
+ domain: string;
+ /**
+ * @description - DEFAULT: The default `.ondigitalocean.app` domain assigned to this app
+ * - PRIMARY: The primary domain for this app that is displayed as the default in the control panel, used in bindable environment variables, and any other places that reference an app's live URL. Only one domain may be set as primary.
+ * - ALIAS: A non-primary domain
+ * @default UNSPECIFIED
+ * @example DEFAULT
+ * @enum {string}
+ */
+ type?: "UNSPECIFIED" | "DEFAULT" | "PRIMARY" | "ALIAS";
+ /**
+ * @description Indicates whether the domain includes all sub-domains, in addition to the given domain
+ * @example true
+ */
+ wildcard?: boolean;
+ /**
+ * Format: hostname
+ * @description Optional. If the domain uses DigitalOcean DNS and you would like App
+ * Platform to automatically manage it for you, set this to the name of the
+ * domain on your account.
+ *
+ * For example, If the domain you are adding is `app.domain.com`, the zone
+ * could be `domain.com`.
+ * @example example.com
+ */
+ zone?: string;
+ /**
+ * @description The minimum version of TLS a client application can use to access resources for the domain. Must be one of the following values wrapped within quotations: `"1.2"` or `"1.3"`.
+ * @example 1.3
+ * @enum {string}
+ */
+ minimum_tls_version?: "1.2" | "1.3";
+ };
+ apps_git_source_spec: {
+ /**
+ * @description The name of the branch to use
+ * @example main
+ */
+ branch?: string;
+ /**
+ * @description The clone URL of the repo. Example: `https://github.com/digitalocean/sample-golang.git`
+ * @example https://github.com/digitalocean/sample-golang.git
+ */
+ repo_clone_url?: string;
+ };
+ apps_github_source_spec: {
+ /**
+ * @description The name of the branch to use
+ * @example main
+ */
+ branch?: string;
+ /**
+ * @description Whether to automatically deploy new commits made to the repo
+ * @example true
+ */
+ deploy_on_push?: boolean;
+ /**
+ * @description The name of the repo in the format owner/repo. Example: `digitalocean/sample-golang`
+ * @example digitalocean/sample-golang
+ */
+ repo?: string;
+ };
+ apps_gitlab_source_spec: {
+ /**
+ * @description The name of the branch to use
+ * @example main
+ */
+ branch?: string;
+ /**
+ * @description Whether to automatically deploy new commits made to the repo
+ * @example true
+ */
+ deploy_on_push?: boolean;
+ /**
+ * @description The name of the repo in the format owner/repo. Example: `digitalocean/sample-golang`
+ * @example digitalocean/sample-golang
+ */
+ repo?: string;
+ };
+ apps_bitbucket_source_spec: {
+ /**
+ * @description The name of the branch to use
+ * @example main
+ */
+ branch?: string;
+ /**
+ * @description Whether to automatically deploy new commits made to the repo
+ * @example true
+ */
+ deploy_on_push?: boolean;
+ /**
+ * @description The name of the repo in the format owner/repo. Example: `digitalocean/sample-golang`
+ * @example digitalocean/sample-golang
+ */
+ repo?: string;
+ };
+ apps_image_source_spec: {
+ /**
+ * @description The registry name. Must be left empty for the `DOCR` registry type.
+ * @example registry.hub.docker.com
+ */
+ registry?: string;
+ /**
+ * @description - DOCKER_HUB: The DockerHub container registry type.
+ * - DOCR: The DigitalOcean container registry type.
+ * - GHCR: The Github container registry type.
+ * @example DOCR
+ * @enum {string}
+ */
+ registry_type?: "DOCKER_HUB" | "DOCR" | "GHCR";
+ /**
+ * @description The credentials to be able to pull the image. The value will be encrypted on first submission. On following submissions, the encrypted value should be used.
+ * - "$username:$access_token" for registries of type `DOCKER_HUB`.
+ * - "$username:$access_token" for registries of type `GHCR`.
+ * @example my-dockerhub-username:dckr_pat_the_access_token
+ */
+ registry_credentials?: string;
+ /**
+ * @description The repository name.
+ * @example origin/master
+ */
+ repository?: string;
+ /**
+ * @description The repository tag. Defaults to `latest` if not provided and no digest is provided. Cannot be specified if digest is provided.
+ * @default latest
+ * @example latest
+ */
+ tag?: string;
+ /**
+ * @description The image digest. Cannot be specified if tag is provided.
+ * @example sha256:795e91610e9cccb7bb80893fbabf9c808df7d52ae1f39cd1158618b4a33041ac
+ */
+ digest?: string;
+ deploy_on_push?: {
+ /**
+ * @description Whether to automatically deploy new images. Can only be used for images hosted in DOCR and can only be used with an image tag, not a specific digest.
+ * @example true
+ */
+ enabled?: boolean;
+ };
+ };
+ app_variable_definition: {
+ /**
+ * @description The variable name
+ * @example BASE_URL
+ */
+ key: string;
+ /**
+ * @description - RUN_TIME: Made available only at run-time
+ * - BUILD_TIME: Made available only at build-time
+ * - RUN_AND_BUILD_TIME: Made available at both build and run-time
+ * @default RUN_AND_BUILD_TIME
+ * @example BUILD_TIME
+ * @enum {string}
+ */
+ scope?: "UNSET" | "RUN_TIME" | "BUILD_TIME" | "RUN_AND_BUILD_TIME";
+ /**
+ * @description - GENERAL: A plain-text environment variable
+ * - SECRET: A secret encrypted environment variable
+ * @default GENERAL
+ * @example GENERAL
+ * @enum {string}
+ */
+ type?: "GENERAL" | "SECRET";
+ /**
+ * @description The value. If the type is `SECRET`, the value will be encrypted on first submission. On following submissions, the encrypted value should be used.
+ * @example http://example.com
+ */
+ value?: string;
+ };
+ /** @description Papertrail configuration. */
+ app_log_destination_papertrail_spec: {
+ /**
+ * @description Papertrail syslog endpoint.
+ * @example https://mypapertrailendpoint.com
+ */
+ endpoint: string;
+ };
+ /** @description DataDog configuration. */
+ app_log_destination_datadog_spec: {
+ /**
+ * @description Datadog HTTP log intake endpoint.
+ * @example https://mydatadogendpoint.com
+ */
+ endpoint?: string;
+ /**
+ * @description Datadog API key.
+ * @example abcdefghijklmnopqrstuvwxyz0123456789
+ */
+ api_key: string;
+ };
+ /** @description Logtail configuration. */
+ app_log_destination_logtail_spec: {
+ /**
+ * @description Logtail token.
+ * @example abcdefghijklmnopqrstuvwxyz0123456789
+ */
+ token?: string;
+ };
+ /** @description Configure Username and/or Password for Basic authentication. */
+ app_log_destination_open_search_spec_basic_auth: {
+ /**
+ * @description Username to authenticate with. Only required when `endpoint` is set.
+ * Defaults to `doadmin` when `cluster_name` is set.
+ * @example apps_user
+ */
+ user?: string;
+ /**
+ * @description Password for user defined in User. Is required when `endpoint` is set.
+ * Cannot be set if using a DigitalOcean DBaaS OpenSearch cluster.
+ * @example password1
+ */
+ password?: string;
+ };
+ /** @description OpenSearch configuration. */
+ app_log_destination_open_search_spec: {
+ /**
+ * @description OpenSearch API Endpoint. Only HTTPS is supported. Format: https://:.
+ * Cannot be specified if `cluster_name` is also specified.
+ * @example https://example.com:9300
+ */
+ endpoint?: string;
+ basic_auth?: components["schemas"]["app_log_destination_open_search_spec_basic_auth"];
+ /**
+ * @description The index name to use for the logs. If not set, the default index name is "logs".
+ * @default logs
+ * @example logs
+ */
+ index_name?: string;
+ /**
+ * @description The name of a DigitalOcean DBaaS OpenSearch cluster to use as a log forwarding destination.
+ * Cannot be specified if `endpoint` is also specified.
+ * @example my-opensearch-cluster
+ */
+ cluster_name?: string;
+ };
+ /** Configurations for external logging. */
+ app_log_destination_definition: {
+ /** @example my_log_destination */
+ name: string;
+ papertrail?: components["schemas"]["app_log_destination_papertrail_spec"];
+ datadog?: components["schemas"]["app_log_destination_datadog_spec"];
+ logtail?: components["schemas"]["app_log_destination_logtail_spec"];
+ open_search?: components["schemas"]["app_log_destination_open_search_spec"];
+ };
+ app_component_base: {
+ /**
+ * @description The name. Must be unique across all components within the same app.
+ * @example api
+ */
+ name?: string;
+ git?: components["schemas"]["apps_git_source_spec"];
+ github?: components["schemas"]["apps_github_source_spec"];
+ gitlab?: components["schemas"]["apps_gitlab_source_spec"];
+ bitbucket?: components["schemas"]["apps_bitbucket_source_spec"];
+ image?: components["schemas"]["apps_image_source_spec"];
+ /**
+ * @description The path to the Dockerfile relative to the root of the repo. If set, it will be used to build this component. Otherwise, App Platform will attempt to build it using buildpacks.
+ * @example path/to/Dockerfile
+ */
+ dockerfile_path?: string;
+ /**
+ * @description An optional build command to run while building this component from source.
+ * @example npm run build
+ */
+ build_command?: string;
+ /**
+ * @description An optional run command to override the component's default.
+ * @example bin/api
+ */
+ run_command?: string;
+ /**
+ * @description An optional path to the working directory to use for the build. For Dockerfile builds, this will be used as the build context. Must be relative to the root of the repo.
+ * @example path/to/dir
+ */
+ source_dir?: string;
+ /** @description A list of environment variables made available to the component. */
+ envs?: components["schemas"]["app_variable_definition"][];
+ /**
+ * @description An environment slug describing the type of this app. For a full list, please refer to [the product documentation](https://docs.digitalocean.com/products/app-platform/).
+ * @example node-js
+ */
+ environment_slug?: string;
+ /** @description A list of configured log forwarding destinations. */
+ log_destinations?: components["schemas"]["app_log_destination_definition"][];
+ };
+ app_component_instance_base: {
+ /**
+ * Format: int64
+ * @description The amount of instances that this component should be scaled to. Default: 1. Must not be set if autoscaling is used.
+ * @default 1
+ * @example 2
+ */
+ instance_count?: number;
+ /**
+ * @description The instance size to use for this component. Default: `apps-s-1vcpu-0.5gb`
+ * @example apps-s-1vcpu-0.5gb
+ */
+ instance_size_slug?: ("apps-s-1vcpu-0.5gb" | "apps-s-1vcpu-1gb-fixed" | "apps-s-1vcpu-1gb" | "apps-s-1vcpu-2gb" | "apps-s-2vcpu-4gb" | "apps-d-1vcpu-0.5gb" | "apps-d-1vcpu-1gb" | "apps-d-1vcpu-2gb" | "apps-d-1vcpu-4gb" | "apps-d-2vcpu-4gb" | "apps-d-2vcpu-8gb" | "apps-d-4vcpu-8gb" | "apps-d-4vcpu-16gb" | "apps-d-8vcpu-32gb") | ("basic-xxs" | "basic-xs" | "basic-s" | "basic-m" | "professional-xs" | "professional-s" | "professional-m" | "professional-1l" | "professional-l" | "professional-xl");
+ };
+ /** @description Configuration for automatically scaling this component based on metrics. */
+ app_autoscaling_spec: {
+ /**
+ * Format: uint32
+ * @description The minimum amount of instances for this component.
+ * @example 2
+ */
+ min_instance_count?: number;
+ /**
+ * Format: uint32
+ * @description The maximum amount of instances for this component. Maximum 250. Consider using a larger instance size if your application requires more than 250 instances.
+ * @example 3
+ */
+ max_instance_count?: number;
+ /** @description The metrics that the component is scaled on. */
+ metrics?: {
+ /** @description Settings for scaling the component based on CPU utilization. */
+ cpu?: {
+ /**
+ * Format: uint32
+ * @description The average target CPU utilization for the component.
+ * @default 80
+ * @example 75
+ */
+ percent?: number;
+ };
+ };
+ };
+ app_autoscaling_spec_service: components["schemas"]["app_autoscaling_spec"] & {
+ metrics?: {
+ /** @description Settings for scaling the component based on requests per second. */
+ requests_per_second?: {
+ /**
+ * Format: uint32
+ * @description The target number of requests per second per instance for the component.
+ * @example 100
+ */
+ per_instance?: number;
+ };
+ /** @description Settings for scaling the component based on request duration. */
+ request_duration?: {
+ /**
+ * Format: uint32
+ * @description The p95 target request duration in milliseconds for the component.
+ * @example 500
+ */
+ p95_milliseconds?: number;
+ };
+ };
+ };
+ apps_string_match: {
+ /**
+ * @description Exact string match. Only 1 of `exact`, `prefix`, or `regex` must be set. An empty string is a valid value and will be serialized explicitly rather than being omitted from the payload.
+ * @example https://www.example.com
+ */
+ exact?: string | null;
+ /**
+ * @deprecated
+ * @description Prefix-based match. Only 1 of `exact`, `prefix`, or `regex` must be set.
+ * @example https://www.example.com
+ */
+ prefix?: string | null;
+ /**
+ * @description RE2 style regex-based match. Only 1 of `exact`, `prefix`, or `regex` must be set. For more information about RE2 syntax, see: https://github.com/google/re2/wiki/Syntax
+ * @example ^.*example.com
+ */
+ regex?: string;
+ };
+ apps_cors_policy: {
+ /**
+ * @description The set of allowed CORS origins.
+ * @example [
+ * {
+ * "exact": "https://www.example.com"
+ * },
+ * {
+ * "regex": "^.*example.com"
+ * }
+ * ]
+ */
+ allow_origins?: components["schemas"]["apps_string_match"][];
+ /**
+ * @description The set of allowed HTTP methods. This configures the `Access-Control-Allow-Methods` header.
+ * @example [
+ * "GET",
+ * "OPTIONS",
+ * "POST",
+ * "PUT",
+ * "PATCH",
+ * "DELETE"
+ * ]
+ */
+ allow_methods?: string[];
+ /**
+ * @description The set of allowed HTTP request headers. This configures the `Access-Control-Allow-Headers` header.
+ * @example [
+ * "Content-Type",
+ * "X-Custom-Header"
+ * ]
+ */
+ allow_headers?: string[];
+ /**
+ * @description The set of HTTP response headers that browsers are allowed to access. This configures the `Access-Control-Expose-Headers` header.
+ * @example [
+ * "Content-Encoding",
+ * "X-Custom-Header"
+ * ]
+ */
+ expose_headers?: string[];
+ /**
+ * @description An optional duration specifying how long browsers can cache the results of a preflight request. This configures the `Access-Control-Max-Age` header.
+ * @example 5h30m
+ */
+ max_age?: string;
+ /**
+ * @description Whether browsers should expose the response to the client-side JavaScript code when the request’s credentials mode is include. This configures the `Access-Control-Allow-Credentials` header.
+ * @example false
+ */
+ allow_credentials?: boolean;
+ };
+ app_service_spec_health_check: {
+ /**
+ * Format: int32
+ * @description The number of failed health checks before considered unhealthy.
+ * @example 2
+ */
+ failure_threshold?: number;
+ /**
+ * Format: int64
+ * @description The port on which the health check will be performed. If not set, the health check will be performed on the component's http_port.
+ * @example 80
+ */
+ port?: number;
+ /**
+ * @description The route path used for the HTTP health check ping. If not set, the HTTP health check will be disabled and a TCP health check used instead.
+ * @example /health
+ */
+ http_path?: string;
+ /**
+ * Format: int32
+ * @description The number of seconds to wait before beginning health checks.
+ * @example 30
+ */
+ initial_delay_seconds?: number;
+ /**
+ * Format: int32
+ * @description The number of seconds to wait between health checks.
+ * @example 60
+ */
+ period_seconds?: number;
+ /**
+ * Format: int32
+ * @description The number of successful health checks before considered healthy.
+ * @example 3
+ */
+ success_threshold?: number;
+ /**
+ * Format: int32
+ * @description The number of seconds after which the check times out.
+ * @example 45
+ */
+ timeout_seconds?: number;
+ };
+ app_health_check_spec: {
+ /**
+ * Format: int32
+ * @description The number of failed health checks before considered unhealthy.
+ * @example 18
+ */
+ failure_threshold?: number;
+ /**
+ * Format: int64
+ * @description The port on which the health check will be performed.
+ * @example 80
+ */
+ port?: number;
+ /**
+ * @description The route path used for the HTTP health check ping. If not set, the HTTP health check will be disabled and a TCP health check used instead.
+ * @example /health
+ */
+ http_path?: string;
+ /**
+ * Format: int32
+ * @description The number of seconds to wait before beginning health checks.
+ * @example 30
+ */
+ initial_delay_seconds?: number;
+ /**
+ * Format: int32
+ * @description The number of seconds to wait between health checks.
+ * @example 10
+ */
+ period_seconds?: number;
+ /**
+ * Format: int32
+ * @description The number of successful health checks before considered healthy.
+ * @example 1
+ */
+ success_threshold?: number;
+ /**
+ * Format: int32
+ * @description The number of seconds after which the check times out.
+ * @example 1
+ */
+ timeout_seconds?: number;
+ };
+ /** A criterion for routing HTTP traffic to a component. */
+ app_route_spec: {
+ /**
+ * @description (Deprecated - Use Ingress Rules instead). An HTTP path prefix. Paths must start with / and must be unique across all components within an app.
+ * @example /api
+ */
+ path?: string;
+ /**
+ * @description An optional flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. For example, a component with `path=/api` will have requests to `/api/list` trimmed to `/list`. If this value is `true`, the path will remain `/api/list`.
+ * @example true
+ */
+ preserve_path_prefix?: boolean;
+ };
+ app_service_spec_termination: {
+ /**
+ * Format: int32
+ * @description The number of seconds to wait between selecting a container instance for termination and issuing the TERM signal. Selecting a container instance for termination begins an asynchronous drain of new requests on upstream load-balancers. (Default 15)
+ * @example 15
+ */
+ drain_seconds?: number;
+ /**
+ * Format: int32
+ * @description The number of seconds to wait between sending a TERM signal to a container and issuing a KILL which causes immediate shutdown. (Default 120)
+ * @example 120
+ */
+ grace_period_seconds?: number;
+ };
+ app_service_spec: components["schemas"]["app_component_base"] & components["schemas"]["app_component_instance_base"] & {
+ autoscaling?: components["schemas"]["app_autoscaling_spec_service"];
+ cors?: components["schemas"]["apps_cors_policy"] & unknown & unknown;
+ health_check?: components["schemas"]["app_service_spec_health_check"];
+ liveness_health_check?: components["schemas"]["app_health_check_spec"];
+ /**
+ * @description The protocol which the service uses to serve traffic on the http_port.
+ *
+ * - `HTTP`: The app is serving the HTTP protocol. Default.
+ * - `HTTP2`: The app is serving the HTTP/2 protocol. Currently, this needs to be implemented in the service by serving HTTP/2 cleartext (h2c).
+ * @example HTTP
+ * @enum {string}
+ */
+ protocol?: "HTTP" | "HTTP2";
+ /**
+ * Format: int64
+ * @description The internal port on which this service's run command will listen. Default: 8080
+ * If there is not an environment variable with the name `PORT`, one will be automatically added with its value set to the value of this field.
+ * @example 3000
+ */
+ http_port?: number;
+ /**
+ * @description The ports on which this service will listen for internal traffic.
+ * @example [
+ * 80,
+ * 443
+ * ]
+ */
+ internal_ports?: number[];
+ /**
+ * @deprecated
+ * @description (Deprecated - Use Ingress Rules instead). A list of HTTP routes that should be routed to this component.
+ */
+ routes?: components["schemas"]["app_route_spec"][];
+ termination?: components["schemas"]["app_service_spec_termination"];
+ };
+ app_static_site_spec: WithRequired & {
+ /**
+ * @description The name of the index document to use when serving this static site. Default: index.html
+ * @default index.html
+ * @example main.html
+ */
+ index_document?: string;
+ /**
+ * @description The name of the error document to use when serving this static site. Default: 404.html. If no such file exists within the built assets, App Platform will supply one.
+ * @default 404.html
+ * @example error.html
+ */
+ error_document?: string;
+ /**
+ * @description The name of the document to use as the fallback for any requests to documents that are not found when serving this static site. Only 1 of `catchall_document` or `error_document` can be set.
+ * @example index.html
+ */
+ catchall_document?: string;
+ /**
+ * @description An optional path to where the built assets will be located, relative to the build context. If not set, App Platform will automatically scan for these directory names: `_static`, `dist`, `public`, `build`.
+ * @example dist/
+ */
+ output_dir?: string;
+ cors?: components["schemas"]["apps_cors_policy"] & unknown & unknown;
+ /**
+ * @deprecated
+ * @description (Deprecated - Use Ingress Rules instead). A list of HTTP routes that should be routed to this component.
+ */
+ routes?: components["schemas"]["app_route_spec"][];
+ };
+ app_job_spec_termination: {
+ /**
+ * Format: int32
+ * @description The number of seconds to wait between sending a TERM signal to a container and issuing a KILL which causes immediate shutdown. (Default 120)
+ * @example 120
+ */
+ grace_period_seconds?: number;
+ };
+ app_job_spec: components["schemas"]["app_component_base"] & components["schemas"]["app_component_instance_base"] & {
+ /**
+ * @description - UNSPECIFIED: Default job type, will auto-complete to POST_DEPLOY kind.
+ * - PRE_DEPLOY: Indicates a job that runs before an app deployment.
+ * - POST_DEPLOY: Indicates a job that runs after an app deployment.
+ * - FAILED_DEPLOY: Indicates a job that runs after a component fails to deploy.
+ * @default UNSPECIFIED
+ * @example PRE_DEPLOY
+ * @enum {string}
+ */
+ kind?: "UNSPECIFIED" | "PRE_DEPLOY" | "POST_DEPLOY" | "FAILED_DEPLOY";
+ termination?: components["schemas"]["app_job_spec_termination"];
+ };
+ app_worker_spec_termination: {
+ /**
+ * Format: int32
+ * @description The number of seconds to wait between sending a TERM signal to a container and issuing a KILL which causes immediate shutdown. (Default 120)
+ * @example 120
+ */
+ grace_period_seconds?: number;
+ };
+ app_worker_spec: WithRequired & components["schemas"]["app_component_instance_base"] & {
+ autoscaling?: components["schemas"]["app_autoscaling_spec"];
+ termination?: components["schemas"]["app_worker_spec_termination"];
+ liveness_health_check?: components["schemas"]["app_health_check_spec"];
+ };
+ /**
+ * @default UNSPECIFIED_RULE
+ * @example CPU_UTILIZATION
+ * @enum {string}
+ */
+ app_alert_spec_rule: "UNSPECIFIED_RULE" | "CPU_UTILIZATION" | "MEM_UTILIZATION" | "RESTART_COUNT" | "DEPLOYMENT_FAILED" | "DEPLOYMENT_LIVE" | "DOMAIN_FAILED" | "DOMAIN_LIVE" | "AUTOSCALE_FAILED" | "AUTOSCALE_SUCCEEDED" | "FUNCTIONS_ACTIVATION_COUNT" | "FUNCTIONS_AVERAGE_DURATION_MS" | "FUNCTIONS_ERROR_RATE_PER_MINUTE" | "FUNCTIONS_AVERAGE_WAIT_TIME_MS" | "FUNCTIONS_ERROR_COUNT" | "FUNCTIONS_GB_RATE_PER_SECOND" | "REQUESTS_PER_SECOND" | "REQUEST_DURATION_P95_MS";
+ /**
+ * @default UNSPECIFIED_OPERATOR
+ * @example GREATER_THAN
+ * @enum {string}
+ */
+ app_alert_spec_operator: "UNSPECIFIED_OPERATOR" | "GREATER_THAN" | "LESS_THAN";
+ /**
+ * @default UNSPECIFIED_WINDOW
+ * @example FIVE_MINUTES
+ * @enum {string}
+ */
+ app_alert_spec_window: "UNSPECIFIED_WINDOW" | "FIVE_MINUTES" | "TEN_MINUTES" | "THIRTY_MINUTES" | "ONE_HOUR";
+ app_alert_spec: {
+ rule?: components["schemas"]["app_alert_spec_rule"];
+ /**
+ * @description Is the alert disabled?
+ * @example false
+ */
+ disabled?: boolean;
+ operator?: components["schemas"]["app_alert_spec_operator"];
+ /**
+ * Format: float
+ * @description Threshold value for alert
+ * @example 2.32
+ */
+ value?: number;
+ window?: components["schemas"]["app_alert_spec_window"];
+ };
+ app_functions_spec: {
+ cors?: components["schemas"]["apps_cors_policy"] & unknown & unknown;
+ /**
+ * @deprecated
+ * @description (Deprecated - Use Ingress Rules instead). A list of HTTP routes that should be routed to this component.
+ */
+ routes?: components["schemas"]["app_route_spec"][];
+ /**
+ * @description The name. Must be unique across all components within the same app.
+ * @example api
+ */
+ name: string;
+ /**
+ * @description An optional path to the working directory to use for the build. For Dockerfile builds, this will be used as the build context. Must be relative to the root of the repo.
+ * @example path/to/dir
+ */
+ source_dir?: string;
+ alerts?: components["schemas"]["app_alert_spec"][];
+ /** @description A list of environment variables made available to the component. */
+ envs?: components["schemas"]["app_variable_definition"][];
+ git?: components["schemas"]["apps_git_source_spec"];
+ github?: components["schemas"]["apps_github_source_spec"];
+ gitlab?: components["schemas"]["apps_gitlab_source_spec"];
+ bitbucket?: components["schemas"]["apps_bitbucket_source_spec"];
+ /** @description A list of configured log forwarding destinations. */
+ log_destinations?: components["schemas"]["app_log_destination_definition"][];
+ };
+ app_database_spec: {
+ /**
+ * @description The name of the underlying DigitalOcean DBaaS cluster. This is required for production databases. For dev databases, if cluster_name is not set, a new cluster will be provisioned.
+ * @example cluster_name
+ */
+ cluster_name?: string;
+ /**
+ * @description The name of the MySQL or PostgreSQL database to configure.
+ * @example my_db
+ */
+ db_name?: string;
+ /**
+ * @description The name of the MySQL or PostgreSQL user to configure.
+ * @example superuser
+ */
+ db_user?: string;
+ /**
+ * @description - MYSQL: MySQL
+ * - PG: PostgreSQL
+ * - REDIS: Caching
+ * - MONGODB: MongoDB
+ * - KAFKA: Kafka
+ * - OPENSEARCH: OpenSearch
+ * - VALKEY: ValKey
+ * @default UNSET
+ * @example PG
+ * @enum {string}
+ */
+ engine?: "UNSET" | "MYSQL" | "PG" | "REDIS" | "MONGODB" | "KAFKA" | "OPENSEARCH" | "VALKEY";
+ /**
+ * @description The database's name. The name must be unique across all components within the same app and cannot use capital letters.
+ * @example prod-db
+ */
+ name: string;
+ /**
+ * @description Whether this is a production or dev database.
+ * @example true
+ */
+ production?: boolean;
+ /**
+ * @description The version of the database engine
+ * @example 12
+ */
+ version?: string;
+ };
+ /** @description The path to match on. */
+ app_ingress_spec_rule_string_match_prefix: {
+ /**
+ * @description Prefix-based match. For example, `/api` will match `/api`, `/api/`, and any nested paths such as `/api/v1/endpoint`.
+ * @example /api
+ */
+ prefix: string | null;
+ };
+ /** @description The authority to match on. */
+ app_ingress_spec_rule_string_match_exact: {
+ /**
+ * @description Exact string match. An empty string is a valid value and will be serialized explicitly rather than being omitted from the payload.
+ * @example example.com
+ */
+ exact: string | null;
+ };
+ /** @description The match configuration for the rule. */
+ app_ingress_spec_rule_match: {
+ path?: components["schemas"]["app_ingress_spec_rule_string_match_prefix"];
+ authority?: components["schemas"]["app_ingress_spec_rule_string_match_exact"];
+ };
+ /** @description The component to route to. Only one of `component` or `redirect` may be set. */
+ app_ingress_spec_rule_routing_component: {
+ /**
+ * @description The name of the component to route to.
+ * @example web
+ */
+ name: string;
+ /**
+ * @description An optional flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. For example, a component with `path=/api` will have requests to `/api/list` trimmed to `/list`. If this value is `true`, the path will remain `/api/list`. Note: this is not applicable for Functions Components and is mutually exclusive with `rewrite`.
+ * @example true
+ */
+ preserve_path_prefix?: string;
+ /**
+ * @description An optional field that will rewrite the path of the component to be what is specified here. By default, the HTTP request path will be trimmed from the left when forwarded to the component. For example, a component with `path=/api` will have requests to `/api/list` trimmed to `/list`. If you specified the rewrite to be `/v1/`, requests to `/api/list` would be rewritten to `/v1/list`. Note: this is mutually exclusive with `preserve_path_prefix`.
+ * @example /api/v1/
+ */
+ rewrite?: string;
+ };
+ /** @description The redirect configuration for the rule. Only one of `component` or `redirect` may be set. */
+ app_ingress_spec_rule_routing_redirect: {
+ /**
+ * @description An optional URI path to redirect to. Note: if this is specified the whole URI of the original request will be overwritten to this value, irrespective of the original request URI being matched.
+ * @example /about
+ */
+ uri?: string;
+ /**
+ * @description The authority/host to redirect to. This can be a hostname or IP address. Note: use `port` to set the port.
+ * @example example.com
+ */
+ authority?: string;
+ /**
+ * Format: int64
+ * @description The port to redirect to.
+ * @example 443
+ */
+ port?: number;
+ /**
+ * @description The scheme to redirect to. Supported values are `http` or `https`. Default: `https`.
+ * @example https
+ */
+ scheme?: string;
+ /**
+ * Format: int64
+ * @description The redirect code to use. Defaults to `302`. Supported values are 300, 301, 302, 303, 304, 307, 308.
+ * @example 302
+ */
+ redirect_code?: number;
+ };
+ app_ingress_spec_rule: {
+ match?: components["schemas"]["app_ingress_spec_rule_match"];
+ cors?: components["schemas"]["apps_cors_policy"];
+ component?: components["schemas"]["app_ingress_spec_rule_routing_component"];
+ redirect?: components["schemas"]["app_ingress_spec_rule_routing_redirect"];
+ };
+ /** @description Specification for app ingress configurations. */
+ app_ingress_spec: {
+ /** @description Rules for configuring HTTP ingress for component routes, CORS, rewrites, and redirects. */
+ rules?: components["schemas"]["app_ingress_spec_rule"][];
+ /**
+ * Format: uri
+ * @description Optional HTTPS URL of a custom error page to display when the app is unreachable. The
+ * page is shown in a full-viewport iframe. The target must allow framing: avoid
+ * `X-Frame-Options: DENY` and a restrictive `Content-Security-Policy` `frame-ancestors`
+ * that blocks the platform. If omitted, the default platform error page is used.
+ * @example https://status.example.com/app-unavailable
+ */
+ custom_error_page_url?: string;
+ };
+ /**
+ * The app egress type.
+ * @default AUTOASSIGN
+ * @example AUTOASSIGN
+ * @enum {string}
+ */
+ app_egress_type_spec: "AUTOASSIGN" | "DEDICATED_IP";
+ /** @description Specification for app egress configurations. */
+ app_egress_spec: {
+ type?: components["schemas"]["app_egress_type_spec"];
+ };
+ /** @description Specification to configure maintenance settings for the app, such as maintenance mode and archiving the app. */
+ app_maintenance_spec: {
+ /**
+ * @description Indicates whether maintenance mode should be enabled for the app.
+ * @example true
+ */
+ enabled?: boolean;
+ /**
+ * @description Indicates whether the app should be archived. Setting this to true implies that enabled is set to true.
+ * @example true
+ */
+ archive?: boolean;
+ /**
+ * @description A custom offline page to display when maintenance mode is enabled or the app is archived.
+ * @example https://example.com/offline.html
+ */
+ offline_page_url?: string;
+ };
+ apps_vpc_egress_ip: {
+ /** @example 10.0.0.1 */
+ ip?: string;
+ };
+ apps_vpc: {
+ /**
+ * The ID of the VPC.
+ * @example c22d8f48-4bc4-49f5-8ca0-58e7164427ac
+ */
+ id?: string;
+ /** The egress ips associated with the VPC. */
+ egress_ips?: components["schemas"]["apps_vpc_egress_ip"][];
+ };
+ /**
+ * AppSpec
+ * @description The desired configuration of an application.
+ */
+ app_spec: {
+ /**
+ * @description The name of the app. Must be unique across all apps in the same account.
+ * @example web-app-01
+ */
+ name: string;
+ /**
+ * @description The slug form of the geographical origin of the app. Default: `nearest available`
+ * @example nyc
+ * @enum {string}
+ */
+ region?: "atl" | "nyc" | "sfo" | "tor" | "ams" | "fra" | "lon" | "blr" | "sgp" | "syd";
+ /**
+ * @description If set to `true`, the app will **not** be cached at the edge (CDN). Enable this option if you want to manage CDN configuration yourself—whether by using an external CDN provider or by handling static content and caching within your app. This setting is also recommended for apps that require real-time data or serve dynamic content, such as those using Server-Sent Events (SSE) over GET, or hosting an MCP (Model Context Protocol) Server that utilizes SSE.
+ * **Note:** This feature is not available for static site components.
+ * For more information, see [Disable CDN Cache](https://docs.digitalocean.com/products/app-platform/how-to/cache-content/#disable-cdn-cache).
+ * @default false
+ */
+ disable_edge_cache?: boolean;
+ /**
+ * @description If set to `true`, email addresses in the app will not be obfuscated. This is
+ * useful for apps that require email addresses to be visible (in the HTML markup).
+ * @default false
+ */
+ disable_email_obfuscation?: boolean;
+ /**
+ * @description If set to `true`, suspicious requests will go through additional security checks to help mitigate layer 7 DDoS attacks.
+ * @default false
+ */
+ enhanced_threat_control_enabled?: boolean;
+ /** @description A set of hostnames where the application will be available. */
+ domains?: components["schemas"]["app_domain_spec"][];
+ /** @description Workloads which expose publicly-accessible HTTP services. */
+ services?: components["schemas"]["app_service_spec"][];
+ /** @description Content which can be rendered to static web assets. */
+ static_sites?: components["schemas"]["app_static_site_spec"][];
+ /** @description Pre and post deployment workloads which do not expose publicly-accessible HTTP routes. */
+ jobs?: components["schemas"]["app_job_spec"][];
+ /** @description Workloads which do not expose publicly-accessible HTTP services. */
+ workers?: components["schemas"]["app_worker_spec"][];
+ /** @description Workloads which expose publicly-accessible HTTP services via Functions Components. */
+ functions?: components["schemas"]["app_functions_spec"][];
+ /**
+ * @description Database instances which can provide persistence to workloads within the
+ * application.
+ */
+ databases?: components["schemas"]["app_database_spec"][];
+ ingress?: components["schemas"]["app_ingress_spec"];
+ egress?: components["schemas"]["app_egress_spec"];
+ maintenance?: components["schemas"]["app_maintenance_spec"];
+ vpc?: components["schemas"]["apps_vpc"];
+ };
+ apps_deployment_static_site: {
+ /**
+ * The name of this static site
+ * @example web
+ */
+ name?: string;
+ /**
+ * The commit hash of the repository that was used to build this static site
+ * @example 54d4a727f457231062439895000d45437c7bb405
+ */
+ source_commit_hash?: string;
+ };
+ apps_deployment_worker: {
+ /**
+ * The name of this worker
+ * @example queue-runner
+ */
+ name?: string;
+ /**
+ * The commit hash of the repository that was used to build this worker
+ * @example 54d4a727f457231062439895000d45437c7bb405
+ */
+ source_commit_hash?: string;
+ };
+ /** An app deployment */
+ apps_deployment: {
+ /**
+ * What caused this deployment to be created
+ * @example commit 9a4df0b pushed to github/digitalocean/sample-golang
+ */
+ cause?: string;
+ /**
+ * The ID of a previous deployment that this deployment was cloned from
+ * @example 3aa4d20e-5527-4c00-b496-601fbd22520a
+ */
+ cloned_from?: string;
+ /**
+ * The creation time of the deployment
+ * Format: date-time
+ * @example 2020-07-28T18:00:00Z
+ */
+ created_at?: string;
+ /**
+ * The ID of the deployment
+ * @example b6bdf840-2854-4f87-a36c-5f231c617c84
+ */
+ id?: string;
+ /** Job components that are part of this deployment */
+ jobs?: components["schemas"]["apps_deployment_job"][];
+ /** Functions components that are part of this deployment */
+ functions?: components["schemas"]["apps_deployment_functions"][];
+ phase?: components["schemas"]["apps_deployment_phase"];
+ /**
+ * When the deployment phase was last updated
+ * Format: date-time
+ * @example 0001-01-01T00:00:00Z
+ */
+ phase_last_updated_at?: string;
+ progress?: components["schemas"]["apps_deployment_progress"];
+ /** Service components that are part of this deployment */
+ services?: components["schemas"]["apps_deployment_service"][];
+ spec?: components["schemas"]["app_spec"];
+ /** Static Site components that are part of this deployment */
+ static_sites?: components["schemas"]["apps_deployment_static_site"][];
+ /**
+ * The current pricing tier slug of the deployment
+ * @example basic
+ */
+ readonly tier_slug?: string;
+ /**
+ * When the deployment was last updated
+ * Format: date-time
+ * @example 2020-07-28T18:00:00Z
+ */
+ updated_at?: string;
+ /** Worker components that are part of this deployment */
+ workers?: components["schemas"]["apps_deployment_worker"][];
+ };
+ /**
+ * @default UNKNOWN
+ * @example ACTIVE
+ * @enum {string}
+ */
+ apps_domain_phase: "UNKNOWN" | "PENDING" | "CONFIGURING" | "ACTIVE" | "ERROR";
+ apps_domain_progress: {
+ /** The steps of the domain's progress */
+ steps?: Record[];
+ };
+ app_domain_validation: {
+ /**
+ * TXT record name
+ * @example _acme-challenge.app.example.com
+ */
+ readonly txt_name?: string;
+ /**
+ * TXT record value
+ * @example lXLOcN6cPv0nproViNcUHcahD9TrIPlNgdwesj0pYpk
+ */
+ readonly txt_value?: string;
+ };
+ apps_domain: {
+ /**
+ * The ID of the domain
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ id?: string;
+ phase?: components["schemas"]["apps_domain_phase"];
+ progress?: components["schemas"]["apps_domain_progress"];
+ spec?: components["schemas"]["app_domain_spec"];
+ /** List of TXT validation records */
+ validations?: components["schemas"]["app_domain_validation"][];
+ /** Validation values have changed and require manual intervention */
+ readonly rotate_validation_records?: boolean;
+ /**
+ * Current SSL certificate expiration time
+ * Format: date-time
+ * @example 2024-01-29T23:59:59Z
+ */
+ readonly certificate_expires_at?: string;
+ };
+ /** Geographical information about an app origin */
+ apps_region: {
+ /**
+ * The continent that this region is in
+ * @example europe
+ */
+ readonly continent?: string;
+ /**
+ * Data centers that are in this region
+ * @example [
+ * "ams"
+ * ]
+ */
+ readonly data_centers?: string[];
+ /**
+ * @description Whether or not the region is presented as the default.
+ * @example true
+ */
+ readonly default?: boolean;
+ /**
+ * Whether or not the region is open for new apps
+ * @example true
+ */
+ readonly disabled?: boolean;
+ /**
+ * The flag of this region
+ * @example ams
+ */
+ readonly flag?: string;
+ /**
+ * A human-readable name of the region
+ * @example ams
+ */
+ readonly label?: string;
+ /**
+ * Reason that this region is not available
+ * @example to crowded
+ */
+ readonly reason?: string;
+ /**
+ * The slug form of the region name
+ * @example basic
+ */
+ readonly slug?: string;
+ };
+ /**
+ * The status of the dedicated egress IP.
+ * @default UNKNOWN
+ * @example ASSIGNED
+ * @enum {string}
+ */
+ apps_dedicated_egress_ip_status: "UNKNOWN" | "ASSIGNING" | "ASSIGNED" | "REMOVED";
+ apps_dedicated_egress_ip: {
+ /**
+ * The IP address of the dedicated egress IP.
+ * @example 192.168.1.1
+ */
+ ip?: string;
+ /**
+ * The ID of the dedicated egress IP.
+ * @example 9e7bc2ac-205a-45d6-919c-e1ac5e73f962
+ */
+ id?: string;
+ status?: components["schemas"]["apps_dedicated_egress_ip_status"];
+ };
+ /** @description An application's configuration and status. */
+ app: {
+ active_deployment?: components["schemas"]["apps_deployment"];
+ /**
+ * The creation time of the app
+ * Format: date-time
+ * @example 2020-11-19T20:27:18Z
+ */
+ readonly created_at?: string;
+ /**
+ * The default hostname on which the app is accessible
+ * @example digitalocean.com
+ */
+ readonly default_ingress?: string;
+ /** Contains all domains for the app */
+ readonly domains?: components["schemas"]["apps_domain"][];
+ /**
+ * The ID of the application
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ readonly id?: string;
+ in_progress_deployment?: components["schemas"]["apps_deployment"];
+ /**
+ * The creation time of the last deployment
+ * Format: date-time
+ * @example 2020-11-19T20:27:18Z
+ */
+ readonly last_deployment_created_at?: string;
+ /**
+ * The live domain of the app
+ * @example live_domain
+ */
+ readonly live_domain?: string;
+ /**
+ * The live URL of the app
+ * @example google.com
+ */
+ readonly live_url?: string;
+ /**
+ * The live URL base of the app, the URL excluding the path
+ * @example digitalocean.com
+ */
+ readonly live_url_base?: string;
+ /**
+ * The ID of the account to which the application belongs
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ readonly owner_uuid?: string;
+ pending_deployment?: unknown & components["schemas"]["apps_deployment"];
+ /**
+ * The ID of the project the app is assigned to. This will be empty if there is a lookup failure.
+ * @description Requires `project:read` scope.
+ * @example 88b72d1a-b78a-4d9f-9090-b53c4399073f
+ */
+ readonly project_id?: string;
+ region?: components["schemas"]["apps_region"];
+ spec: components["schemas"]["app_spec"];
+ /**
+ * The current pricing tier slug of the app
+ * @example basic
+ */
+ readonly tier_slug?: string;
+ /**
+ * Time of the app's last configuration update
+ * Format: date-time
+ * @example 2020-12-01T00:42:16Z
+ */
+ readonly updated_at?: string;
+ pinned_deployment?: unknown & components["schemas"]["apps_deployment"];
+ /** The dedicated egress IP addresses associated with the app. */
+ readonly dedicated_ips?: components["schemas"]["apps_dedicated_egress_ip"][];
+ vpc?: components["schemas"]["apps_vpc"];
+ };
+ apps_response: {
+ /** A list of apps */
+ apps?: components["schemas"]["app"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ apps_create_app_request: {
+ spec: components["schemas"]["app_spec"];
+ /**
+ * @description The ID of the project the app should be assigned to. If omitted, it will be assigned to your default project.
+ * Requires `project:assign_resource` and `project:update` scopes.
+ */
+ project_id?: string;
+ };
+ app_response: {
+ app?: components["schemas"]["app"];
+ };
+ apps_update_app_request: {
+ spec: components["schemas"]["app_spec"];
+ /**
+ * @description Whether or not to update the source versions (for example fetching a new commit or image digest) of all components. By default (when this is false) only newly added sources will be updated to avoid changes like updating the scale of a component from also updating the respective code.
+ * @default false
+ * @example true
+ */
+ update_all_source_versions?: boolean;
+ };
+ apps_delete_app_response: {
+ /**
+ * The ID of the app that was deleted
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ id?: string;
+ };
+ apps_restart_request: {
+ /**
+ * Optional list of components to restart. If not provided, all components will be restarted.
+ * @example [
+ * "component1",
+ * "component2"
+ * ]
+ */
+ components?: string[];
+ };
+ apps_deployment_response: {
+ deployment?: components["schemas"]["apps_deployment"];
+ };
+ apps_get_logs_response: {
+ /** A list of URLs to archived log files */
+ historic_urls?: string[];
+ /**
+ * @description A URL of the real-time live logs. This URL may use either the `https://` or `wss://` protocols and will keep pushing live logs as they become available.
+ * @example ws://logs/build
+ */
+ live_url?: string;
+ };
+ apps_get_exec_response: {
+ /**
+ * @description A websocket URL that allows sending/receiving console input and receiving console output.
+ * @example wss://exec/?token=xxx
+ */
+ url?: string;
+ };
+ app_instance: {
+ /**
+ * @description Name of the component, from the app spec.
+ * @example sample-golang
+ */
+ component_name?: string;
+ /**
+ * @description Supported compute component by DigitalOcean App Platform.
+ * @example SERVICE
+ * @enum {string}
+ */
+ component_type?: "SERVICE" | "WORKER" | "JOB";
+ /**
+ * @description Name of the instance, which is a unique identifier for the instance.
+ * @example sample-golang-76b84c7fb8-6p8kq
+ */
+ instance_name?: string;
+ /**
+ * @description Readable identifier, an alias of the instance name, reference for mapping insights to instance names.
+ * @example sample-golang-0
+ */
+ instance_alias?: string;
+ };
+ app_instances: {
+ instances?: components["schemas"]["app_instance"][];
+ };
+ apps_deployments_response: {
+ /** A list of deployments */
+ deployments?: components["schemas"]["apps_deployment"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ apps_create_deployment_request: {
+ /**
+ * Indicates whether to force a build of app from source even if an existing cached build is suitable for re-use
+ * @example true
+ */
+ force_build?: boolean;
+ };
+ schema: string;
+ app_job_invocation: {
+ /**
+ * The ID of the job invocation
+ * @example ba32b134-569c-4c0c-ba02-8ffdb0492ece
+ */
+ id?: string;
+ /**
+ * The name of the job this invocation belongs to.
+ * @example good-job
+ */
+ job_name?: string;
+ /**
+ * The deployment ID this job invocation belongs to.
+ * @example c020763f-ddb7-4112-a0df-7f01c69fc00b
+ */
+ deployment_id?: string;
+ /**
+ * @description The phase of the job invocation
+ * @example SUCCEEDED
+ * @enum {string}
+ */
+ phase?: "UNKNOWN" | "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "CANCELED" | "SKIPPED";
+ /** The JobInvocation Trigger */
+ trigger?: {
+ /**
+ * @description The type of trigger that initiated the job invocation.
+ * @default UNKNOWN
+ * @example MANUAL
+ * @enum {string}
+ */
+ type?: "MANUAL" | "SCHEDULE" | "UNKNOWN";
+ /**
+ * @description The schedule for the job
+ * @example {
+ * "schedule": {
+ * "cron": "0 0 * * *",
+ * "time_zone": "America/New_York"
+ * }
+ * }
+ */
+ scheduled?: {
+ schedule?: {
+ /**
+ * @description The cron expression defining the schedule
+ * @example 0 0 * * *
+ */
+ cron?: string;
+ /**
+ * @description The time zone for the schedule
+ * @example America/New_York
+ */
+ time_zone?: string;
+ };
+ };
+ /**
+ * @description Details about the manual trigger, if applicable
+ * @example {
+ * "user": {
+ * "uuid": "550e8400-e29b-41d4-a716-446655440000",
+ * "email": "user@example.com",
+ * "full_name": "John Doe"
+ * }
+ * }
+ */
+ manual?: {
+ /** @description The user who triggered the job */
+ user?: {
+ /**
+ * The ID of the user who triggered the job
+ * @example 550e8400-e29b-41d4-a716-446655440000
+ */
+ uuid?: string;
+ /**
+ * The email of the user who triggered the job
+ * Format: email
+ * @example user@example.com
+ */
+ email?: string;
+ /**
+ * The name of the user who triggered the job
+ * @example John Doe
+ */
+ full_name?: string;
+ };
+ };
+ };
+ /**
+ * The time when the job invocation was created
+ * Format: date-time
+ * @example 2023-10-01T12:00:00Z
+ */
+ created_at?: string;
+ /**
+ * The time when the job invocation started
+ * Format: date-time
+ * @example 2023-10-01T12:05:00Z
+ */
+ started_at?: string;
+ /**
+ * The time when the job invocation completed
+ * Format: date-time
+ * @example 2023-10-01T12:10:00Z
+ */
+ completed_at?: string;
+ };
+ app_job_invocations: {
+ /** A list of job invocations */
+ job_invocations?: components["schemas"]["app_job_invocation"][];
+ } & components["schemas"]["pages_pagination"];
+ app_event: {
+ /**
+ * The ID of the event (UUID)
+ * @example ba32b134-569c-4c0c-ba02-8ffdb0492ece
+ */
+ id?: string;
+ /**
+ * @description The type of event
+ * @example DEPLOYMENT
+ * @enum {string}
+ */
+ type?: "UNKNOWN" | "DEPLOYMENT" | "AUTOSCALING";
+ /**
+ * When the event was created
+ * Format: date-time
+ * @example 2023-10-01T12:00:00Z
+ */
+ created_at?: string;
+ /**
+ * The deployment ID associated with this event
+ * @description For deployment events, this is the same as the deployment's ID. For autoscaling events, this is the deployment that was autoscaled.
+ * @example c020763f-ddb7-4112-a0df-7f01c69fc00b
+ */
+ deployment_id?: string;
+ deployment?: components["schemas"]["apps_deployment"];
+ /** @description Autoscaling event details. Only present for autoscaling events. */
+ autoscaling?: {
+ /**
+ * @description The current phase of the autoscaling event
+ * @example SUCCEEDED
+ * @enum {string}
+ */
+ phase?: "UNKNOWN" | "PENDING" | "IN_PROGRESS" | "SUCCEEDED" | "FAILED" | "CANCELED";
+ /** @description Map of component names to their scale changes */
+ components?: {
+ [key: string]: {
+ /**
+ * Format: int64
+ * @description The number of replicas before scaling
+ * @example 1
+ */
+ from?: number;
+ /**
+ * Format: int64
+ * @description The number of replicas after scaling
+ * @example 3
+ */
+ to?: number;
+ /**
+ * @description The metric that triggered the scale change. Known values are "cpu", "requests_per_second", "request_duration". For inactivity sleep, "scale_from_zero" and "scale_to_zero" are used.
+ * @example cpu
+ */
+ triggering_metric?: string;
+ };
+ };
+ };
+ };
+ app_events: {
+ /** A list of events */
+ events?: components["schemas"]["app_event"][];
+ } & components["schemas"]["pages_pagination"];
+ /**
+ * - SHARED: Shared vCPU cores
+ * - DEDICATED: Dedicated vCPU cores
+ * @default UNSPECIFIED
+ * @example SHARED
+ * @enum {string}
+ */
+ instance_size_cpu_type: "UNSPECIFIED" | "SHARED" | "DEDICATED";
+ apps_instance_size: {
+ /**
+ * The bandwidth allowance in GiB for the instance size
+ * Format: int64
+ * @example 1
+ */
+ bandwidth_allowance_gib?: string;
+ cpu_type?: components["schemas"]["instance_size_cpu_type"];
+ /**
+ * The number of allotted vCPU cores
+ * Format: int64
+ * @example 3
+ */
+ cpus?: string;
+ /**
+ * Indicates if the instance size is intended for deprecation
+ * @example true
+ */
+ deprecation_intent?: boolean;
+ /**
+ * The allotted memory in bytes
+ * Format: int64
+ * @example 1048
+ */
+ memory_bytes?: string;
+ /**
+ * A human-readable name of the instance size
+ * @example name
+ */
+ name?: string;
+ /**
+ * Indicates if the instance size can enable autoscaling
+ * @example false
+ */
+ scalable?: boolean;
+ /**
+ * Indicates if the instance size allows more than one instance
+ * @example true
+ */
+ single_instance_only?: boolean;
+ /**
+ * The slug of the instance size
+ * @example apps-s-1vcpu-1gb
+ */
+ slug?: string;
+ /**
+ * The slug of the corresponding downgradable instance size on the lower tier
+ * @deprecated
+ * @example basic
+ */
+ tier_downgrade_to?: string;
+ /**
+ * The slug of the tier to which this instance size belongs
+ * @example basic
+ */
+ tier_slug?: string;
+ /**
+ * The slug of the corresponding upgradable instance size on the higher tier
+ * @deprecated
+ * @example basic
+ */
+ tier_upgrade_to?: string;
+ /**
+ * The cost of this instance size in USD per month
+ * @example 23
+ */
+ usd_per_month?: string;
+ /**
+ * The cost of this instance size in USD per second
+ * @example 0.00000001232
+ */
+ usd_per_second?: string;
+ };
+ apps_list_instance_sizes_response: {
+ /**
+ * Format: float
+ * @example 2.32
+ */
+ discount_percent?: number;
+ instance_sizes?: components["schemas"]["apps_instance_size"][];
+ };
+ apps_get_instance_size_response: {
+ instance_size?: components["schemas"]["apps_instance_size"];
+ };
+ apps_list_regions_response: {
+ regions?: components["schemas"]["apps_region"][];
+ };
+ app_propose: {
+ spec: components["schemas"]["app_spec"];
+ /**
+ * @description An optional ID of an existing app. If set, the spec will be treated as a proposed update to the specified app. The existing app is not modified using this method.
+ * @example b6bdf840-2854-4f87-a36c-5f231c617c84
+ */
+ app_id?: string;
+ };
+ app_propose_response: {
+ /**
+ * @description Indicates whether the app is a static app.
+ * @example true
+ */
+ app_is_static?: boolean;
+ /**
+ * @description Indicates whether the app name is available.
+ * @example true
+ */
+ app_name_available?: boolean;
+ /**
+ * @description The suggested name if the proposed app name is unavailable.
+ * @example newName
+ */
+ app_name_suggestion?: string;
+ /**
+ * @description The maximum number of free static apps the account can have. We will charge you for any additional static apps.
+ * @example 2
+ */
+ existing_static_apps?: string;
+ spec?: components["schemas"]["app_spec"];
+ /**
+ * Format: int32
+ * @description The monthly cost of the proposed app in USD.
+ * @example 5
+ */
+ app_cost?: number;
+ /**
+ * Format: int32
+ * @deprecated
+ * @description The monthly cost of the proposed app in USD using the previous pricing plan tier. For example, if you propose an app that uses the Professional tier, the `app_tier_downgrade_cost` field displays the monthly cost of the app if it were to use the Basic tier. If the proposed app already uses the lest expensive tier, the field is empty.
+ * @example 17
+ */
+ app_tier_downgrade_cost?: number;
+ };
+ /**
+ * @default
+ * @example sammy@digitalocean.com
+ */
+ app_alert_email: string;
+ app_alert_slack_webhook: {
+ /**
+ * URL of the Slack webhook
+ * @example https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
+ */
+ url?: string;
+ /**
+ * Name of the Slack Webhook Channel
+ * @example Channel Name
+ */
+ channel?: string;
+ };
+ /**
+ * @default UNKNOWN
+ * @example ACTIVE
+ * @enum {string}
+ */
+ app_alert_phase: "UNKNOWN" | "PENDING" | "CONFIGURING" | "ACTIVE" | "ERROR";
+ /**
+ * @default UNKNOWN
+ * @example SUCCESS
+ * @enum {string}
+ */
+ app_alert_progress_step_status: "UNKNOWN" | "PENDING" | "RUNNING" | "ERROR" | "SUCCESS";
+ app_alert_progress_step_reason: {
+ /**
+ * The error code
+ * @example Title of Error
+ */
+ code?: string;
+ /**
+ * The error message
+ * @example This is an error
+ */
+ message?: string;
+ };
+ app_alert_progress_step: {
+ /**
+ * The name of this step
+ * @example example_step
+ */
+ name?: string;
+ status?: components["schemas"]["app_alert_progress_step_status"];
+ /**
+ * The start time of this step
+ * Format: date-time
+ * @example 2020-11-19T20:27:18Z
+ */
+ started_at?: string;
+ /**
+ * The start time of this step
+ * Format: date-time
+ * @example 2020-11-19T20:27:18Z
+ */
+ ended_at?: string;
+ reason?: components["schemas"]["app_alert_progress_step_reason"];
+ };
+ app_alert_progress: {
+ /** Steps of an alert's progress. */
+ steps?: components["schemas"]["app_alert_progress_step"][];
+ };
+ app_alert: {
+ /**
+ * The ID of the alert
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ readonly id?: string;
+ /**
+ * Name of component the alert belongs to
+ * @example backend
+ */
+ component_name?: string;
+ spec?: components["schemas"]["app_alert_spec"];
+ /**
+ * Emails for alerts to go to
+ * @example [
+ * "sammy@digitalocean.com"
+ * ]
+ */
+ emails?: components["schemas"]["app_alert_email"][];
+ /** Slack Webhooks to send alerts to */
+ slack_webhooks?: components["schemas"]["app_alert_slack_webhook"][];
+ phase?: components["schemas"]["app_alert_phase"];
+ progress?: components["schemas"]["app_alert_progress"];
+ };
+ apps_list_alerts_response: {
+ alerts?: components["schemas"]["app_alert"][];
+ };
+ apps_assign_app_alert_destinations_request: {
+ /**
+ * @example [
+ * "sammy@digitalocean.com"
+ * ]
+ */
+ emails?: components["schemas"]["app_alert_email"][];
+ slack_webhooks?: components["schemas"]["app_alert_slack_webhook"][];
+ };
+ apps_alert_response: {
+ alert?: components["schemas"]["app_alert"];
+ };
+ apps_rollback_app_request: {
+ /**
+ * @description The ID of the deployment to rollback to.
+ * @example 3aa4d20e-5527-4c00-b496-601fbd22520a
+ */
+ deployment_id?: string;
+ /**
+ * @description Whether to skip pinning the rollback deployment. If false, the rollback deployment will be pinned and any new deployments including Auto Deploy on Push hooks will be disabled until the rollback is either manually committed or reverted via the CommitAppRollback or RevertAppRollback endpoints respectively. If true, the rollback will be immediately committed and the app will remain unpinned.
+ * @example false
+ */
+ skip_pin?: boolean;
+ };
+ app_rollback_validation_condition: {
+ /**
+ * @description A code identifier that represents the failing condition.
+ *
+ * Failing conditions:
+ * - `incompatible_phase` - indicates that the deployment's phase is not suitable for rollback.
+ * - `incompatible_result` - indicates that the deployment's result is not suitable for rollback.
+ * - `exceeded_revision_limit` - indicates that the app has exceeded the rollback revision limits for its tier.
+ * - `app_pinned` - indicates that there is already a rollback in progress and the app is pinned.
+ * - `database_config_conflict` - indicates that the deployment's database config is different than the current config.
+ * - `region_conflict` - indicates that the deployment's region differs from the current app region.
+ *
+ * Warning conditions:
+ * - `static_site_requires_rebuild` - indicates that the deployment contains at least one static site that will require a rebuild.
+ * - `image_source_missing_digest` - indicates that the deployment contains at least one component with an image source that is missing a digest.
+ * @example exceeded_revision_limit
+ * @enum {string}
+ */
+ code?: "incompatible_phase" | "incompatible_result" | "exceeded_revision_limit" | "app_pinned" | "database_config_conflict" | "region_conflict" | "static_site_requires_rebuild" | "image_source_missing_digest";
+ /**
+ * @description A human-readable message describing the failing condition.
+ * @example the deployment is past the maximum historical revision limit of 0 for the "starter" app tier
+ */
+ message?: string;
+ /**
+ * @example [
+ * "www"
+ * ]
+ */
+ components?: string[];
+ };
+ /** @description Bandwidth usage for an app. */
+ app_metrics_bandwidth_usage_details: {
+ /**
+ * @description The ID of the app.
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id?: string;
+ /**
+ * Format: uint64
+ * @description The used bandwidth amount in bytes.
+ * @example 513668
+ */
+ bandwidth_bytes?: string;
+ };
+ app_metrics_bandwidth_usage: {
+ /** @description A list of bandwidth usage details by app. */
+ app_bandwidth_usage?: components["schemas"]["app_metrics_bandwidth_usage_details"][];
+ /**
+ * Format: date-time
+ * @description The date for the metrics data.
+ * @example 2023-01-17T00:00:00Z
+ */
+ date?: string;
+ };
+ app_metrics_bandwidth_usage_request: {
+ /**
+ * @description A list of app IDs to query bandwidth metrics for.
+ * @example [
+ * "4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf",
+ * "c2a93513-8d9b-4223-9d61-5e7272c81cf5"
+ * ]
+ */
+ app_ids: string[];
+ /**
+ * Format: date-time
+ * @description Optional day to query. Only the date component of the timestamp will be considered. Default: yesterday.
+ * @example 2023-01-17T00:00:00Z
+ */
+ date?: string;
+ };
+ app_component_health: {
+ /** @example sample_app */
+ name?: string;
+ /**
+ * Format: double
+ * @example 30
+ */
+ cpu_usage_percent?: number;
+ /**
+ * Format: double
+ * @example 25
+ */
+ memory_usage_percent?: number;
+ /**
+ * Format: int64
+ * @example 1
+ */
+ replicas_desired?: number;
+ /**
+ * Format: int64
+ * @example 1
+ */
+ replicas_ready?: number;
+ /**
+ * @default UNKNOWN
+ * @example HEALTHY
+ * @enum {string}
+ */
+ state?: "UNKNOWN" | "HEALTHY" | "UNHEALTHY";
+ };
+ app_functions_component_health: {
+ /** @example sample_function */
+ name?: string;
+ functions_component_health_metrics?: {
+ /** @example activations_count */
+ metric_label?: string;
+ /**
+ * Format: double
+ * @example 100
+ */
+ metric_value?: number;
+ /** @example 1h */
+ time_window?: string;
+ }[];
+ };
+ app_health: {
+ components?: components["schemas"]["app_component_health"][];
+ functions_components?: components["schemas"]["app_functions_component_health"][];
+ };
+ app_health_response: {
+ app_health?: components["schemas"]["app_health"];
+ };
+ cdn_endpoint: {
+ /**
+ * Format: uuid
+ * @description A unique ID that can be used to identify and reference a CDN endpoint.
+ * @example 892071a0-bb95-49bc-8021-3afd67a210bf
+ */
+ readonly id?: string;
+ /**
+ * Format: hostname
+ * @description The fully qualified domain name (FQDN) for the origin server which provides the content for the CDN. This is currently restricted to a Space.
+ * @example static-images.nyc3.digitaloceanspaces.com
+ */
+ origin: string;
+ /**
+ * Format: hostname
+ * @description The fully qualified domain name (FQDN) from which the CDN-backed content is served.
+ * @example static-images.nyc3.cdn.digitaloceanspaces.com
+ */
+ readonly endpoint?: string;
+ /**
+ * @description The amount of time the content is cached by the CDN's edge servers in seconds. TTL must be one of 60, 600, 3600, 86400, or 604800. Defaults to 3600 (one hour) when excluded.
+ * @default 3600
+ * @example 3600
+ * @enum {integer}
+ */
+ ttl?: 60 | 600 | 3600 | 86400 | 604800;
+ /**
+ * Format: uuid
+ * @description The ID of a DigitalOcean managed TLS certificate used for SSL when a custom subdomain is provided.
+ * @example 892071a0-bb95-49bc-8021-3afd67a210bf
+ */
+ certificate_id?: string;
+ /**
+ * Format: hostname
+ * @description The fully qualified domain name (FQDN) of the custom subdomain used with the CDN endpoint.
+ * @example static.example.com
+ */
+ custom_domain?: string;
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the CDN endpoint was created.
+ * @example 2018-03-21T16:02:37Z
+ */
+ readonly created_at?: string;
+ };
+ update_endpoint: {
+ /**
+ * @description The amount of time the content is cached by the CDN's edge servers in seconds. TTL must be one of 60, 600, 3600, 86400, or 604800. Defaults to 3600 (one hour) when excluded.
+ * @default 3600
+ * @example 3600
+ * @enum {integer}
+ */
+ ttl?: 60 | 600 | 3600 | 86400 | 604800;
+ /**
+ * Format: uuid
+ * @description The ID of a DigitalOcean managed TLS certificate used for SSL when a custom subdomain is provided.
+ * @example 892071a0-bb95-49bc-8021-3afd67a210bf
+ */
+ certificate_id?: string;
+ /**
+ * Format: hostname
+ * @description The fully qualified domain name (FQDN) of the custom subdomain used with the CDN endpoint.
+ * @example static.example.com
+ */
+ custom_domain?: string;
+ };
+ purge_cache: {
+ /**
+ * @description An array of strings containing the path to the content to be purged from the CDN cache.
+ * @example [
+ * "path/to/image.png",
+ * "path/to/css/*"
+ * ]
+ */
+ files: string[];
+ };
+ certificate: {
+ /**
+ * Format: uuid
+ * @description A unique ID that can be used to identify and reference a certificate.
+ * @example 892071a0-bb95-49bc-8021-3afd67a210bf
+ */
+ readonly id?: string;
+ /**
+ * @description A unique human-readable name referring to a certificate.
+ * @example web-cert-01
+ */
+ name?: string;
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents the certificate's expiration date.
+ * @example 2017-02-22T00:23:00Z
+ */
+ readonly not_after?: string;
+ /**
+ * @description A unique identifier generated from the SHA-1 fingerprint of the certificate.
+ * @example dfcc9f57d86bf58e321c2c6c31c7a971be244ac7
+ */
+ readonly sha1_fingerprint?: string;
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the certificate was created.
+ * @example 2017-02-08T16:02:37Z
+ */
+ readonly created_at?: string;
+ /**
+ * @description An array of fully qualified domain names (FQDNs) for which the certificate was issued.
+ * @example [
+ * "www.example.com",
+ * "example.com"
+ * ]
+ */
+ dns_names?: string[];
+ /**
+ * @description A string representing the current state of the certificate. It may be `pending`, `verified`, or `error`.
+ * @example verified
+ * @enum {string}
+ */
+ readonly state?: "pending" | "verified" | "error";
+ /**
+ * @description A string representing the type of the certificate. The value will be `custom` for a user-uploaded certificate or `lets_encrypt` for one automatically generated with Let's Encrypt.
+ * @example lets_encrypt
+ * @enum {string}
+ */
+ type?: "custom" | "lets_encrypt";
+ };
+ certificate_create_base: {
+ /**
+ * @description A unique human-readable name referring to a certificate.
+ * @example web-cert-01
+ */
+ name: string;
+ /**
+ * @description A string representing the type of the certificate. The value will be `custom` for a user-uploaded certificate or `lets_encrypt` for one automatically generated with Let's Encrypt.
+ * @example lets_encrypt
+ * @enum {string}
+ */
+ type?: "custom" | "lets_encrypt";
+ };
+ /** Let's Encrypt Certificate Request */
+ certificate_request_lets_encrypt: components["schemas"]["certificate_create_base"] & {
+ /**
+ * @description An array of fully qualified domain names (FQDNs) for which the certificate was issued. A certificate covering all subdomains can be issued using a wildcard (e.g. `*.example.com`).
+ * @example [
+ * "www.example.com",
+ * "example.com"
+ * ]
+ */
+ dns_names: string[];
+ };
+ /** Custom Certificate Request */
+ certificate_request_custom: components["schemas"]["certificate_create_base"] & {
+ /**
+ * @description The contents of a PEM-formatted private-key corresponding to the SSL certificate.
+ * @example -----BEGIN PRIVATE KEY-----
+ * MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDBIZMz8pnK6V52
+ * SVf+CYssOfCQHAx5f0Ou5rYbq3xNh8VHAIYJCQ1QxQIxKSP6+uODSYrb2KWyurP1
+ * DwGb8OYm0J3syEDtCUQik1cpCzpeNlAZ2f8FzXyYQAqPopxdRpsFz8DtZnVvu86X
+ * wrE4oFPl9MReICmZfBNWylpV5qgFPoXyJ70ZAsTm3cEe3n+LBXEnY4YrVDRWxA3w
+ * Z2mzZ03HZ1hHrxK9CMnS829U+8sK+UneZpCO7yLRPuxwhmps0wpK/YuZZfRAKF1F
+ * ZRnak/SIQ28rnWufmdg16YqqHgl5JOgnb3aslKRvL4dI2Gwnkd2IHtpZnTR0gxFX
+ * fqqbQwuRAgMBAAECggEBAILLmkW0JzOkmLTDNzR0giyRkLoIROqDpfLtjKdwm95l
+ * 9NUBJcU4vCvXQITKt/NhtnNTexcowg8pInb0ksJpg3UGE+4oMNBXVi2UW5MQZ5cm
+ * cVkQqgXkBF2YAY8FMaB6EML+0En2+dGR/3gIAr221xsFiXe1kHbB8Nb2c/d5HpFt
+ * eRpLVJnK+TxSr78PcZA8DDGlSgwvgimdAaFUNO2OqB9/0E9UPyKk2ycdff/Z6ldF
+ * 0hkCLtdYTTl8Kf/OwjcuTgmA2O3Y8/CoQX/L+oP9Rvt9pWCEfuebiOmHJVPO6Y6x
+ * gtQVEXwmF1pDHH4Qtz/e6UZTdYeMl9G4aNO2CawwcaYECgYEA57imgSOG4XsJLRh
+ * GGncV9R/xhy4AbDWLtAMzQRX4ktvKCaHWyQV2XK2we/cu29NLv2Y89WmerTNPOU+
+ * P8+pB31uty2ELySVn15QhKpQClVEAlxCnnNjXYrii5LOM80+lVmxvQwxVd8Yz8nj
+ * IntyioXNBEnYS7V2RxxFGgFun1cCgYEA1V3W+Uyamhq8JS5EY0FhyGcXdHd70K49
+ * W1ou7McIpncf9tM9acLS1hkI98rd2T69Zo8mKoV1V2hjFaKUYfNys6tTkYWeZCcJ
+ * 3rW44j9DTD+FmmjcX6b8DzfybGLehfNbCw6n67/r45DXIV/fk6XZfkx6IEGO4ODt
+ * Nfnvx4TuI1cCgYBACDiKqwSUvmkUuweOo4IuCxyb5Ee8v98P5JIE/VRDxlCbKbpx
+ * pxEam6aBBQVcDi+n8o0H3WjjlKc6UqbW/01YMoMrvzotxNBLz8Y0QtQHZvR6KoCG
+ * RKCKstxTcWflzKuknbqN4RapAhNbKBDJ8PMSWfyDWNyaXzSmBdvaidbF1QKBgDI0
+ * o4oD0Xkjg1QIYAUu9FBQmb9JAjRnW36saNBEQS/SZg4RRKknM683MtoDvVIKJk0E
+ * sAlfX+4SXQZRPDMUMtA+Jyrd0xhj6zmhbwClvDMr20crF3fWdgcqtft1BEFmsuyW
+ * JUMe5OWmRkjPI2+9ncDPRAllA7a8lnSV/Crph5N/AoGBAIK249temKrGe9pmsmAo
+ * QbNuYSmwpnMoAqdHTrl70HEmK7ob6SIVmsR8QFAkH7xkYZc4Bxbx4h1bdpozGB+/
+ * AangbiaYJcAOD1QyfiFbflvI1RFeHgrk7VIafeSeQv6qu0LLMi2zUbpgVzxt78Wg
+ * eTuK2xNR0PIM8OI7pRpgyj1I
+ * -----END PRIVATE KEY-----
+ */
+ private_key: string;
+ /**
+ * @description The contents of a PEM-formatted public SSL certificate.
+ * @example -----BEGIN CERTIFICATE-----
+ * MIIFFjCCA/6gAwIBAgISA0AznUJmXhu08/89ZuSPC/kRMA0GCSqGSIb3DQEBCwUA
+ * MEoxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MSMwIQYDVQQD
+ * ExpMZXQncyBFbmNyeXB0IEF1dGhvcml0eSBYMzAeFw0xNjExMjQwMDIzMDBaFw0x
+ * NzAyMjIwMDIzMDBaMCQxIjAgBgNVBAMTGWNsb3VkLmFuZHJld3NvbWV0aGluZy5j
+ * b20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDBIZMz8pnK6V52SVf+
+ * CYssOfCQHAx5f0Ou5rYbq3xNh8VWHIYJCQ1QxQIxKSP6+uODSYrb2KWyurP1DwGb
+ * 8OYm0J3syEDtCUQik1cpCzpeNlAZ2f8FzXyYQAqPopxdRpsFz8DtZnVvu86XwrE4
+ * oFPl9MReICmZfBNWylpV5qgFPoXyJ70ZAsTm3cEe3n+LBXEnY4YrVDRWxA3wZ2mz
+ * Z03HZ1hHrxK9CMnS829U+8sK+UneZpCO7yLRPuxwhmps0wpK/YuZZfRAKF1FZRna
+ * k/SIQ28rnWufmdg16YqqHgl5JOgnb3aslKRvL4dI2Gwnkd2IHtpZnTR0gxFXfqqb
+ * QwuRAgMBAAGjggIaMIICFjAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYB
+ * BQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFLsAFcxAhFX1
+ * MbCnzr9hEO5rL4jqMB8GA1UdIwQYMBaAFKhKamMEfd265tE5t6ZFZe/zqOyhMHAG
+ * CCsGAQUFBwEBBGQwYjAvBggrBgEFBQcwAYYjaHR0cDovL29jc3AuaW50LXgzLmxl
+ * dHNlbmNyeXB0Lm9yZy8wLwYIKwYBBQUHMAKGI2h0dHA6Ly9jZXJ0LmludC14My5s
+ * ZXRzZW5jcnlwdC5vcmcvMCQGA1UdEQQdMBuCGWNsb3VkLmFuZHJld3NvbWV0aGlu
+ * Zy5jb20wgf4GA1UdIASB9jCB8zAIBgZngQwBAgWrgeYGCysGAQQBgt8TAQEBMIHW
+ * MCYGCCsGAQUFBwIBFhpodHRwOi8vY3BzLmxldHNlbmNyeXB0Lm9yZzCBqwYIKwYB
+ * BQUHAgIwgZ4MgZtUaGlzIENlcnRpZmljYXRlIG1heSBvbmx5IGJlIHJlbGllZCB1
+ * cG9uIGJ5IFJlbHlpbmcgUGFydGllcyBhbmQgb25seSQ2ziBhY2NvcmRhbmNlIHdp
+ * dGggdGhlIENlcnRpZmljYXRlIFBvbGljeSBmb3VuZCBhdCBodHRwczovL2xldHNl
+ * bmNyeXB0Lm9yZy9yZXBvc2l0b3J5LzANBgkqhkiG9w0BAQsFAAOCAQEAOZVQvrjM
+ * PKXLARTjB5XsgfyDN3/qwLl7SmwGkPe+B+9FJpfScYG1JzVuCj/SoaPaK34G4x/e
+ * iXwlwOXtMOtqjQYzNu2Pr2C+I+rVmaxIrCUXFmC205IMuUBEeWXG9Y/HvXQLPabD
+ * D3Gdl5+Feink9SDRP7G0HaAwq13hI7ARxkL9p+UIY39X0dV3WOboW2Re8nrkFXJ7
+ * q9Z6shK5QgpBfsLjtjNsQzaGV3ve1gOg25aTJGearBWOvEjJNA1wGMoKVXOtYwm/
+ * WyWoVdCQ8HmconcbJB6xc0UZ1EjvzRr5ZIvSa5uHZD0L3m7/kpPWlAlFJ7hHASPu
+ * UlF1zblDmg2Iaw==
+ * -----END CERTIFICATE-----
+ */
+ leaf_certificate: string;
+ /**
+ * @description The full PEM-formatted trust chain between the certificate authority's certificate and your domain's SSL certificate.
+ * @example -----BEGIN CERTIFICATE-----
+ * MIIFFjCCA/6gAwIBAgISA0AznUJmXhu08/89ZuSPC/kRMA0GCSqGSIb3DQEBCwUA
+ * MEoxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MSMwIQYDVQQD
+ * ExpMZXQncyBFbmNyeXB0IEF1dGhvcml0eSBYMzAeFw0xNjExMjQwMDIzMDBaFw0x
+ * NzAyMjIwMDIzMDBaMCQxIjAgBgNVBAMTGWNsb3VkLmFuZHJld3NvbWV0aGluZy5j
+ * b20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDBIZMz7tnK6V52SVf+
+ * CYssOfCQHAx5f0Ou5rYbq3xNh8VHAIYJCQ1QxQIxKSP6+uODSYrb2KWyurP1DwGb
+ * 8OYm0J3syEDtCUQik1cpCzpeNlAZ2f8FzXyYQAqPopxdRpsFz8DtZnVvu86XwrE4
+ * oFPl9MReICmZfBNWylpV5qgFPoXyJ70ZAsTm3cEe3n+LBXEnY4YrVDRWxA3wZ2mz
+ * Z03HZ1hHrxK9CMnS829U+8sK+UneZpCO7yLRPuxwhmps0wpK/YuZZfRAKF1FZRna
+ * k/SIQ28rnWufmdg16YqqHgl5JOgnb3aslKRvL4dI2Gwnkd2IHtpZnTR0gxFXfqqb
+ * QwuRAgMBAAGjggIaMIICFjAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYB
+ * BQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFLsAFcxAhFX1
+ * MbCnzr9hEO5rL4jqMB8GA1UdIwQYMBaAFKhKamMEfd265tE5t6ZFZe/zqOyhMHAG
+ * CCsGAQUFBwEBBGQwYjAvBggrBgEFBQcwAYYjaHR0cDovL29jc3AuaW50LXgzLmxl
+ * dHNlbmNyeXB0Lm9yZy8wLwYIKwYBBQUHMAKGI2h0dHA6Ly9jZXJ0LmludC14My5s
+ * ZXRzZW5jcnlwdC5vcmcvMCQGA1UdEQQdMBuCGWNsb3VkLmFuZHJld3NvbWV0aGlu
+ * Zy5jb20wgf4GA1UdIASB9jCB8zAIBgZngQwBAgEwgeWECysGAQQBgt8TAQEBMIHW
+ * MCYGCCsGAQUFBwIBFhpodHRwOi8vY3BzLmxldHNlbmNyeXB0Lm9yZzCBqwYIKwYB
+ * BQUHAgIwgZ4MgZtUaGlzIENlcnRpZmljYXRlIG1heSBvbmx5IGJlIHJlbGllZCB1
+ * cG9uIGJ5IFJlbHlpbmcgUGFydGllcyBhbmQgb25seSQ2ziBhY2NvcmRhbmNlIHdp
+ * dGggdGhlIENlcnRpZmljYXRlIFBvbGljeSBmb3VuZCBhdCBsdHRwczovL2xldHNl
+ * bmNyeXB0Lm9yZy9yZXBvc2l0b3J5LzANBgkqhkiG9w0BAQsFAAOCAQEAOZVQvrjM
+ * PKXLARTjB5XsgfyDN3/qwLl7SmwGkPe+B+9FJpfScYG1JzVuCj/SoaPaK34G4x/e
+ * iXwlwOXtMOtqjQYzNu2Pr2C+I+rVmaxIrCUXFmC205IMuUBEeWXG9Y/HvXQLPabD
+ * D3Gdl5+Feink9SDRP7G0HaAwq13hI7ARxkL3o+UIY39X0dV3WOboW2Re8nrkFXJ7
+ * q9Z6shK5QgpBfsLjtjNsQzaGV3ve1gOg25aTJGearBWOvEjJNA1wGMoKVXOtYwm/
+ * WyWoVdCQ8HmconcbJB6xc0UZ1EjvzRr5ZIvSa5uHZD0L3m7/kpPWlAlFJ7hHASPu
+ * UlF1zblDmg2Iaw==
+ * -----END CERTIFICATE-----
+ * -----BEGIN CERTIFICATE-----
+ * MIIEkjCCA3qgAwIBAgIQCgFBQgAAAVOFc2oLheynCDANBgkqhkiG9w0BAQsFADA/
+ * MSQwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAMT
+ * DkRTVCBSb290IENBIFgzMB4XDTE2MDMxNzE2NDA0NloXDTIxMDMxNzE2NDA0Nlow
+ * SjELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUxldCdzIEVuY3J5cHQxIzAhBgNVBAMT
+ * GkxldCdzIEVuY3J5cHQgQXV0aG9yaXR5IFgzMIIBIjANBgkqhkiG9w0BAQEFAAOC
+ * AQ8AMIIBCgKCAQEAnNMM8FrlLsd3cl03g7NoYzDq1zUmGSXhvb418XCSL7e4S0EF
+ * q6meNQhY7LEqxGiHC6PjdeTm86dicbp5gWAf15Gan/PQeGdxyGkOlZHP/uaZ6WA8
+ * SMx+yk13EiSdRxta67nsHjcAHJyse6cF6s5K671B5TaYucv9bTyWaN8jKkKQDIZ0
+ * Z8h/pZq4UmEUEz9l6YKHy9v6Dlb2honzhT+Xhq+w3Brvaw2VFn3EK6BlspkENnWA
+ * a6xK8xuQSXgvopZPKiAlKQTGdMDQMc2PMTiVFrqoM7hD8bEfwzB/onkxEz0tNvjj
+ * /PIzark5McWvxI0NHWQWM6r6hCm21AvA2H3DkwIPOIUo4IBfTCCAXkwEgYDVR0T
+ * AQH/BAgwBgEB/wIBADAOBgNVHQ8BAf8EBAMCAYYwfwYIKwYBBQUHAQEEczBxMDIG
+ * CCsGAQUFBzABhiZodHRwOi8vaXNyZy50cnVzdGlkLm9jc3AuaWRlbnRydXN0LmNv
+ * bTA7BggrBgEFBQcwAoYvaHR0cDovL2FwcHMuaWRlbnRydXN0LmNvbS9yb290cy9k
+ * c3Ryb290Y2F4My5wN2MwHwYDVR0jBBgwFoAUxKexpHsscfrb4UuQdf/EFWCFiRAw
+ * VAYDVR0gBE0wSzAIBgZngQwBAgEwPwYLKwYBBAGC3xMBAQEwMDAuBggrBgEFBQcC
+ * ARYiaHR0cDovL2Nwcy5yb290LXgxLmxldHNlbmNyeXB0Lm9yZzA8BgNVHR8ENTAz
+ * MDGgL6AthitodHRwOi8vY3JsLmlkZW50cnVzdC5jb20vRFNUUk9PVENBWDNDUkwu
+ * Y3JsMB0GA1UdDgQWBBSoSmpjBH3duubRObemRWXv86jsoTANBgkqhkiG9w0BAQsF
+ * AAOCAQEA3TPXEfNjWDjdGBX7CVW+dla5cEilaUcne8IkCJLxWh9KEik3JHRRHGJo
+ * uM2VcGfl96S8TihRzZvoroed6ti6WqEBmtzw3Wodatg+VyOeph4EYpr/1wXKtx8/
+ * wApIvJSwtmVi4MFU5aMqrSDE6ea73Mj2tcMyo5jMd6jmeWUHK8so/joWUoHOUgwu
+ * X4Po1QYz+3dszkDqMp4fklxBwXRsW10KXzPMTZ+sOPAveyxindmjkW8lGy+QsRlG
+ * PfZ+G6Z6h7mjem0Y+iWlkYcV4PIWL1iwBi8saCbGS5jN2p8M+X+Q7UNKEkROb3N6
+ * KOqkqm57TH2H3eDJAkSnh6/DNFu0Qg==
+ * -----END CERTIFICATE-----
+ */
+ certificate_chain?: string;
+ };
+ balance: {
+ /**
+ * @description Balance as of the `generated_at` time. This value includes the `account_balance` and `month_to_date_usage`.
+ * @example 23.44
+ */
+ month_to_date_balance?: string;
+ /**
+ * @description Current balance of the customer's most recent billing activity. Does not reflect `month_to_date_usage`.
+ * @example 12.23
+ */
+ account_balance?: string;
+ /**
+ * @description Amount used in the current billing period as of the `generated_at` time.
+ * @example 11.21
+ */
+ month_to_date_usage?: string;
+ /**
+ * Format: date-time
+ * @description The time at which balances were most recently generated.
+ * @example 2019-07-09T15:01:12Z
+ */
+ generated_at?: string;
+ };
+ prepayment_config: {
+ /**
+ * @description Maximum spend allowed before the prepayment gate blocks usage. Decimal dollars, e.g. `"100.00"`.
+ * @example 100.00
+ */
+ spend_limit?: string;
+ /**
+ * @description Whether automatic prepayment top-up is enabled.
+ * @example true
+ */
+ is_auto_prepay_enabled?: boolean;
+ /**
+ * @description Amount to charge when auto top-up triggers. Decimal dollars, e.g. `"50.00"`.
+ * @example 50.00
+ */
+ prepay_amount?: string;
+ /**
+ * @description Balance threshold that triggers auto top-up. Decimal dollars, e.g. `"10.00"`.
+ * @example 10.00
+ */
+ prepay_threshold?: string;
+ /**
+ * Format: date-time
+ * @description Time at which the prepayment configuration was created.
+ * @example 2026-06-22T19:31:51Z
+ */
+ created_at?: string;
+ /**
+ * Format: date-time
+ * @description Time at which the prepayment configuration was last updated.
+ * @example 2026-06-25T18:40:07Z
+ */
+ updated_at?: string;
+ };
+ prepayment_status: {
+ /**
+ * @description Current prepayment balance. Decimal dollars, e.g. `"25.00"`.
+ * @example 25.00
+ */
+ balance?: string;
+ /**
+ * @description Whether automatic prepayment top-up is enabled.
+ * @example true
+ */
+ is_auto_prepay_enabled?: boolean;
+ /**
+ * @description Whether the prepayment gate is currently blocking usage.
+ * @example true
+ */
+ blocked?: boolean;
+ /**
+ * @description Whether the account is eligible for the prepayment gate experience.
+ * @example true
+ */
+ eligible?: boolean;
+ /**
+ * @description Current account balance including month-to-date usage. Decimal dollars, e.g. `"75.00"`.
+ * @example 75.00
+ */
+ month_to_date_balance?: string;
+ };
+ prepayment_config_response: {
+ config?: components["schemas"]["prepayment_config"];
+ status?: components["schemas"]["prepayment_status"];
+ };
+ prepayment_status_response: {
+ status?: components["schemas"]["prepayment_status"];
+ };
+ billing_history: {
+ /**
+ * @description Description of the billing history entry.
+ * @example Invoice for May 2018
+ */
+ description?: string;
+ /**
+ * @description Amount of the billing history entry.
+ * @example 12.34
+ */
+ amount?: string;
+ /**
+ * @description ID of the invoice associated with the billing history entry, if applicable.
+ * @example 123
+ */
+ invoice_id?: string;
+ /**
+ * @description UUID of the invoice associated with the billing history entry, if applicable.
+ * @example example-uuid
+ */
+ invoice_uuid?: string;
+ /**
+ * Format: date-time
+ * @description Time the billing history entry occurred.
+ * @example 2018-06-01T08:44:38Z
+ */
+ date?: string;
+ /**
+ * @description Type of billing history entry.
+ * @example Invoice
+ * @enum {string}
+ */
+ type?: "ACHFailure" | "Adjustment" | "AttemptFailed" | "Chargeback" | "Credit" | "CreditExpiration" | "Invoice" | "Payment" | "Refund" | "Reversal";
+ };
+ meta_optional_total: {
+ meta: components["schemas"]["meta_properties"];
+ };
+ /** @description The invoice preview. */
+ invoice_preview: {
+ /**
+ * @description The UUID of the invoice. The canonical reference for the invoice.
+ * @example fdabb512-6faf-443c-ba2e-665452332a9e
+ */
+ invoice_uuid?: string;
+ /**
+ * @description ID of the invoice. Listed on the face of the invoice PDF as the "Invoice number".
+ * @example 123456789
+ */
+ invoice_id?: string;
+ /**
+ * @description Total amount of the invoice, in USD. This will reflect month-to-date usage in the invoice preview.
+ * @example 23.45
+ */
+ amount?: string;
+ /**
+ * @description Billing period of usage for which the invoice is issued, in `YYYY-MM` format.
+ * @example 2020-01
+ */
+ invoice_period?: string;
+ /**
+ * @description Time the invoice was last updated. This is only included with the invoice preview.
+ * @example 2020-01-23T06:31:50Z
+ */
+ updated_at?: string;
+ };
+ invoice_item: {
+ /**
+ * @description Name of the product being billed in the invoice item.
+ * @example Kubernetes Clusters
+ */
+ product?: string;
+ /**
+ * @description UUID of the resource billing in the invoice item if available.
+ * @example 711157cb-37c8-4817-b371-44fa3504a39c
+ */
+ resource_uuid?: string;
+ /**
+ * @description ID of the resource billing in the invoice item if available.
+ * @example 2353624
+ */
+ resource_id?: string;
+ /**
+ * @description Description of the invoice item when it is a grouped set of usage, such as DOKS or databases.
+ * @example my-doks-cluster
+ */
+ group_description?: string;
+ /**
+ * @description Description of the invoice item.
+ * @example a56e086a317d8410c8b4cfd1f4dc9f82
+ */
+ description?: string;
+ /**
+ * @description Billed amount of this invoice item. Billed in USD.
+ * @example 12.34
+ */
+ amount?: string;
+ /**
+ * @description Duration of time this invoice item was used and subsequently billed.
+ * @example 744
+ */
+ duration?: string;
+ /**
+ * @description Unit of time for duration.
+ * @example Hours
+ */
+ duration_unit?: string;
+ /**
+ * @description Time the invoice item began to be billed for usage.
+ * @example 2020-01-01T00:00:00Z
+ */
+ start_time?: string;
+ /**
+ * @description Time the invoice item stopped being billed for usage.
+ * @example 2020-02-01T00:00:00Z
+ */
+ end_time?: string;
+ /**
+ * @description Name of the DigitalOcean Project this resource belongs to.
+ * @example web
+ */
+ project_name?: string;
+ };
+ billing_address: {
+ /**
+ * @description Street address line 1
+ * @example 101 Shark Row
+ */
+ address_line1?: string;
+ /**
+ * @description Street address line 2
+ * @example
+ */
+ address_line2?: string;
+ /**
+ * @description City
+ * @example Atlantis
+ */
+ city?: string;
+ /**
+ * @description Region
+ * @example OC
+ */
+ region?: string;
+ /**
+ * @description Postal code
+ * @example 12345
+ */
+ postal_code?: string;
+ /**
+ * @description Country (ISO2) code
+ * @example US
+ */
+ country_iso2_code?: string;
+ /**
+ * @description Timestamp billing address was created
+ * @example 2019-09-03T16:34:46.000+00:00
+ */
+ created_at?: string;
+ /**
+ * @description Timestamp billing address was updated
+ * @example 2019-09-03T16:34:46.000+00:00
+ */
+ updated_at?: string;
+ };
+ product_charge_item: {
+ /**
+ * @description Amount of the charge
+ * @example 10.00
+ */
+ amount?: string;
+ /**
+ * @description Description of the charge
+ * @example Spaces Subscription
+ */
+ name?: string;
+ /**
+ * @description Number of times the charge was applied
+ * @example 1
+ */
+ count?: string;
+ };
+ product_usage_charges: {
+ /**
+ * @description Description of usage charges
+ * @example Product usage charges
+ */
+ name?: string;
+ /**
+ * @description Total amount charged
+ * @example 12.34
+ */
+ amount?: string;
+ /**
+ * @description List of amount, and grouped aggregates by resource type.
+ * @example [
+ * {
+ * "amount": "10.00",
+ * "name": "Spaces Subscription",
+ * "count": "1"
+ * },
+ * {
+ * "amount": "2.34",
+ * "name": "Database Clusters",
+ * "count": "1"
+ * }
+ * ]
+ */
+ items?: components["schemas"]["product_charge_item"][];
+ };
+ simple_charge: {
+ /**
+ * @description Name of the charge
+ * @example Overages
+ */
+ name?: string;
+ /**
+ * @description Total amount charged in USD
+ * @example 3.45
+ */
+ amount?: string;
+ };
+ invoice_summary: {
+ /**
+ * @description UUID of the invoice
+ * @example 22737513-0ea7-4206-8ceb-98a575af7681
+ */
+ invoice_uuid?: string;
+ /**
+ * @description ID of the invoice
+ * @example 123456789
+ */
+ invoice_id?: string;
+ /**
+ * @description Billing period of usage for which the invoice is issued, in `YYYY-MM` format.
+ * @example 2020-01
+ */
+ billing_period?: string;
+ /**
+ * @description Total amount of the invoice, in USD. This will reflect month-to-date usage in the invoice preview.
+ * @example 27.13
+ */
+ amount?: string;
+ /**
+ * @description Name of the DigitalOcean customer being invoiced.
+ * @example Sammy Shark
+ */
+ user_name?: string;
+ user_billing_address?: unknown & components["schemas"]["billing_address"];
+ /**
+ * @description Company of the DigitalOcean customer being invoiced, if set.
+ * @example DigitalOcean
+ */
+ user_company?: string;
+ /**
+ * @description Email of the DigitalOcean customer being invoiced.
+ * @example sammy@digitalocean.com
+ */
+ user_email?: string;
+ product_charges?: unknown & components["schemas"]["product_usage_charges"];
+ overages?: unknown & components["schemas"]["simple_charge"];
+ taxes?: unknown & components["schemas"]["simple_charge"];
+ credits_and_adjustments?: unknown & components["schemas"]["simple_charge"];
+ };
+ billing_data_point: {
+ /**
+ * @description URN of the team that incurred the usage
+ * @example do:team:12345678-1234-1234-1234-123456789012
+ */
+ usage_team_urn?: string;
+ /**
+ * Format: date
+ * @description Start date of the billing data point in YYYY-MM-DD format
+ * @example 2025-01-15
+ */
+ start_date?: string;
+ /**
+ * @description Total amount for this data point in USD
+ * @example 12.45
+ */
+ total_amount?: string;
+ /**
+ * @description Region where the usage occurred
+ * @example nyc3
+ */
+ region?: string;
+ /**
+ * @description Unique SKU identifier for the billed resource
+ * @example 1-DO-DROP-0109
+ */
+ sku?: string;
+ /**
+ * @description Description of the billed resource or service as shown on an invoice item
+ * @example droplet name (c-2-4GiB)
+ */
+ description?: string;
+ /**
+ * @description Optional invoice item group name of the billed resource or service, blank when not part an invoice item group
+ * @example kubernetes cluster name
+ */
+ group_description?: string;
+ };
+ database_region_options: {
+ /**
+ * @description An array of strings containing the names of available regions
+ * @example [
+ * "ams3",
+ * "blr1"
+ * ]
+ */
+ readonly regions?: string[];
+ };
+ database_version_options: {
+ /**
+ * @description An array of strings containing the names of available regions
+ * @example [
+ * "4.4",
+ * "5.0"
+ * ]
+ */
+ readonly versions?: string[];
+ };
+ database_layout_option: {
+ /** @example 1 */
+ num_nodes?: number;
+ /**
+ * @description An array of objects containing the slugs available with various node counts
+ * @example [
+ * "db-s-1vcpu-1gb",
+ * "db-s-1vcpu-2gb"
+ * ]
+ */
+ readonly sizes?: string[];
+ };
+ database_layout_options: {
+ /** @description An array of objects, each indicating the node sizes (otherwise referred to as slugs) that are available with various numbers of nodes in the database cluster. Each slugs denotes the node's identifier, CPU, and RAM (in that order). */
+ readonly layouts?: components["schemas"]["database_layout_option"][];
+ };
+ database_version_availability: {
+ /**
+ * @description A timestamp referring to the date when the particular version will no longer be supported. If null, the version does not have an end of life timeline.
+ * @example 2023-11-09T00:00:00Z
+ */
+ end_of_life?: string | null;
+ /**
+ * @description A timestamp referring to the date when the particular version will no longer be available for creating new clusters. If null, the version does not have an end of availability timeline.
+ * @example 2023-05-09T00:00:00Z
+ */
+ end_of_availability?: string | null;
+ /**
+ * @description The engine version.
+ * @example 8
+ */
+ version?: string;
+ };
+ /** @description An array of objects, each indicating the version end-of-life, end-of-availability for various database engines */
+ database_version_availabilities: components["schemas"]["database_version_availability"][];
+ options: {
+ options?: {
+ kafka?: components["schemas"]["database_region_options"] & components["schemas"]["database_version_options"] & components["schemas"]["database_layout_options"];
+ mongodb?: components["schemas"]["database_region_options"] & components["schemas"]["database_version_options"] & components["schemas"]["database_layout_options"];
+ pg?: components["schemas"]["database_region_options"] & components["schemas"]["database_version_options"] & components["schemas"]["database_layout_options"];
+ mysql?: components["schemas"]["database_region_options"] & components["schemas"]["database_version_options"] & components["schemas"]["database_layout_options"];
+ redis?: components["schemas"]["database_region_options"] & components["schemas"]["database_version_options"] & components["schemas"]["database_layout_options"];
+ valkey?: components["schemas"]["database_region_options"] & components["schemas"]["database_version_options"] & components["schemas"]["database_layout_options"];
+ opensearch?: components["schemas"]["database_region_options"] & components["schemas"]["database_version_options"] & components["schemas"]["database_layout_options"];
+ advanced_pg?: components["schemas"]["database_region_options"] & components["schemas"]["database_version_options"] & components["schemas"]["database_layout_options"];
+ advanced_mysql?: components["schemas"]["database_region_options"] & components["schemas"]["database_version_options"] & components["schemas"]["database_layout_options"];
+ };
+ version_availability?: {
+ kafka?: components["schemas"]["database_version_availabilities"];
+ pg?: components["schemas"]["database_version_availabilities"];
+ mysql?: components["schemas"]["database_version_availabilities"];
+ redis?: components["schemas"]["database_version_availabilities"];
+ valkey?: components["schemas"]["database_version_availabilities"];
+ mongodb?: components["schemas"]["database_version_availabilities"];
+ opensearch?: components["schemas"]["database_version_availabilities"];
+ advanced_pg?: components["schemas"]["database_version_availabilities"];
+ advanced_mysql?: components["schemas"]["database_version_availabilities"];
+ };
+ };
+ opensearch_connection: {
+ /**
+ * @description This is provided as a convenience and should be able to be constructed by the other attributes.
+ * @example https://doadmin:example_password@db.example.com:25060
+ */
+ readonly uri?: string;
+ /**
+ * @description The FQDN pointing to the opensearch cluster's current primary node.
+ * @example db.example.com
+ */
+ readonly host?: string;
+ /**
+ * @description The port on which the opensearch dashboard is listening.
+ * @example 25060
+ */
+ readonly port?: number;
+ /**
+ * @description The default user for the opensearch dashboard. Requires `database:view_credentials` scope.
+ * @example doadmin
+ */
+ readonly user?: string;
+ /**
+ * @description The randomly generated password for the default user. Requires `database:view_credentials` scope.
+ * @example example_password
+ */
+ readonly password?: string;
+ /**
+ * @description A boolean value indicating if the connection should be made over SSL.
+ * @example true
+ */
+ readonly ssl?: boolean;
+ };
+ schema_registry_connection: {
+ /**
+ * @description This is provided as a convenience and should be able to be constructed by the other attributes.
+ * @example https://doadmin:example_password@db.example.com:25060
+ */
+ readonly uri?: string;
+ /**
+ * @description The FQDN pointing to the schema registry connection uri.
+ * @example db.example.com
+ */
+ readonly host?: string;
+ /**
+ * @description The port on which the schema registry is listening.
+ * @example 20835
+ */
+ readonly port?: number;
+ /**
+ * @description The default user for the schema registry. Requires `database:view_credentials` scope.
+ * @example doadmin
+ */
+ readonly user?: string;
+ /**
+ * @description The randomly generated password for the schema registry. Requires `database:view_credentials` scope.
+ * @example example_password
+ */
+ readonly password?: string;
+ /**
+ * @description A boolean value indicating if the connection should be made over SSL.
+ * @example true
+ */
+ readonly ssl?: boolean;
+ };
+ database_connection: {
+ /**
+ * @description A connection string in the format accepted by the `psql` command. This is provided as a convenience and should be able to be constructed by the other attributes.
+ * @example postgres://doadmin:example_password@db.example.com:25060/defaultdb?sslmode=require
+ */
+ readonly uri?: string;
+ /**
+ * @description The name of the default database.
+ * @example defaultdb
+ */
+ readonly database?: string;
+ /**
+ * @description The FQDN pointing to the database cluster's current primary node.
+ * @example db.example.com
+ */
+ readonly host?: string;
+ /**
+ * @description The port on which the database cluster is listening.
+ * @example 25060
+ */
+ readonly port?: number;
+ /**
+ * @description The default user for the database. Requires `database:view_credentials` scope.
+ * @example doadmin
+ */
+ readonly user?: string;
+ /**
+ * @description The randomly generated password for the default user. Requires `database:view_credentials` scope.
+ * @example example_password
+ */
+ readonly password?: string;
+ /**
+ * @description A boolean value indicating if the connection should be made over SSL.
+ * @example true
+ */
+ readonly ssl?: boolean;
+ };
+ mysql_settings: {
+ /**
+ * @description A string specifying the authentication method to be used for connections
+ * to the MySQL user account. The valid values are `mysql_native_password`
+ * or `caching_sha2_password`. If excluded when creating a new user, the
+ * default for the version of MySQL in use will be used. As of MySQL 8.0, the
+ * default is `caching_sha2_password`.
+ * @example mysql_native_password
+ * @enum {string}
+ */
+ auth_plugin: "mysql_native_password" | "caching_sha2_password";
+ };
+ user_settings: {
+ /**
+ * @description For PostgreSQL clusters, set to `true` to grant the user replication
+ * privileges. When omitted on create or update, the value defaults to
+ * `false` and replication privileges are not granted. This option is not
+ * currently supported for other database engines.
+ * @example true
+ */
+ pg_allow_replication?: boolean;
+ /** @description ACLs (Access Control Lists) specifying permissions on index within a OpenSearch cluster. */
+ opensearch_acl?: {
+ /**
+ * @description A regex for matching the indexes that this ACL should apply to.
+ * @example index-abc.*
+ */
+ index?: string;
+ /**
+ * @description Permission set applied to the ACL. 'read' allows user to read from the index. 'write' allows for user to write to the index. 'readwrite' allows for both 'read' and 'write' permission. 'deny'(default) restricts user from performing any operation over an index. 'admin' allows for 'readwrite' as well as any operations to administer the index.
+ * @example read
+ * @enum {string}
+ */
+ permission?: "deny" | "admin" | "read" | "readwrite" | "write";
+ }[];
+ /** @description ACLs (Access Control Lists) specifying permissions on topics within a Kafka cluster. */
+ acl?: {
+ /**
+ * @description An identifier for the ACL. Will be computed after the ACL is created/updated.
+ * @example aaa
+ */
+ id?: string;
+ /**
+ * @description A regex for matching the topic(s) that this ACL should apply to.
+ * @example topic-abc.*
+ */
+ topic: string;
+ /**
+ * @description Permission set applied to the ACL. 'consume' allows for messages to be consumed from the topic. 'produce' allows for messages to be published to the topic. 'produceconsume' allows for both 'consume' and 'produce' permission. 'admin' allows for 'produceconsume' as well as any operations to administer the topic (delete, update).
+ * @example consume
+ * @enum {string}
+ */
+ permission: "admin" | "consume" | "produce" | "produceconsume";
+ }[];
+ /** @description MongoDB-specific settings for the user. Configure these when creating a user. Updating MongoDB roles or database access after creation is not supported; recreate the user to change them. This option is not currently supported for other database engines. */
+ mongo_user_settings?: {
+ /**
+ * @description A list of databases to which the user should have access. When the database is set to `admin`, the user will have access to all databases based on the user's role i.e. a user with the role `readOnly` assigned to the `admin` database will have read access to all databases.
+ * @example [
+ * "my-db",
+ * "my-db-2"
+ * ]
+ */
+ databases?: string[];
+ /**
+ * @description The role to assign to the user with each role mapping to a MongoDB built-in role. `readOnly` maps to a [read](https://www.mongodb.com/docs/manual/reference/built-in-roles/#mongodb-authrole-read) role. `readWrite` maps to a [readWrite](https://www.mongodb.com/docs/manual/reference/built-in-roles/#mongodb-authrole-readWrite) role. `dbAdmin` maps to a [dbAdmin](https://www.mongodb.com/docs/manual/reference/built-in-roles/#mongodb-authrole-dbAdmin) role.
+ * @example readOnly
+ * @enum {string}
+ */
+ role?: "readOnly" | "readWrite" | "dbAdmin";
+ };
+ };
+ database_user: {
+ /**
+ * @description The name of a database user.
+ * @example app-01
+ */
+ name: string;
+ /**
+ * @description A string representing the database user's role. The value will be either
+ * "primary" or "normal".
+ * @example normal
+ * @enum {string}
+ */
+ readonly role?: "primary" | "normal";
+ /**
+ * @description A randomly generated password for the database user. Requires `database:view_credentials` scope.
+ * @example example_password
+ */
+ readonly password?: string;
+ /**
+ * @description Access certificate for TLS client authentication. (Kafka only)
+ * @example -----BEGIN CERTIFICATE-----
+ * MIIEexampleCertificateNotForProductionUseOnly
+ * -----END CERTIFICATE-----
+ */
+ readonly access_cert?: string;
+ /**
+ * @description Access key for TLS client authentication. (Kafka only)
+ * @example -----BEGIN PRIVATE KEY-----
+ * MIIEexamplePrivateKeyNotForProductionUseOnly
+ * -----END PRIVATE KEY-----
+ */
+ readonly access_key?: string;
+ mysql_settings?: components["schemas"]["mysql_settings"];
+ settings?: components["schemas"]["user_settings"];
+ };
+ database_maintenance_window: {
+ /**
+ * @description The day of the week on which to apply maintenance updates.
+ * @example tuesday
+ */
+ day: string;
+ /**
+ * @description The hour in UTC at which maintenance updates will be applied in 24 hour format.
+ * @example 14:00
+ */
+ hour: string;
+ /**
+ * @description A boolean value indicating whether any maintenance is scheduled to be performed in the next window.
+ * @example true
+ */
+ readonly pending?: boolean;
+ /**
+ * @description A list of strings, each containing information about a pending maintenance update.
+ * @example [
+ * "Update TimescaleDB to version 1.2.1",
+ * "Upgrade to PostgreSQL 11.2 and 10.7 bugfix releases"
+ * ]
+ */
+ readonly description?: string[];
+ } | null;
+ firewall_rule: {
+ /**
+ * @description A unique ID for the firewall rule itself.
+ * @example 79f26d28-ea8a-41f2-8ad8-8cfcdd020095
+ */
+ uuid?: string;
+ /**
+ * @description A unique ID for the database cluster to which the rule is applied.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ readonly cluster_uuid?: string;
+ /**
+ * @description The type of resource that the firewall rule allows to access the database cluster.
+ * @example droplet
+ * @enum {string}
+ */
+ type: "droplet" | "k8s" | "ip_addr" | "tag" | "app";
+ /**
+ * @description The ID of the specific resource, the name of a tag applied to a group of resources, or the IP address that the firewall rule allows to access the database cluster.
+ * @example ff2a6c52-5a44-4b63-b99c-0e98e7a63d61
+ */
+ value: string;
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the firewall rule was created.
+ * @example 2019-01-11T18:37:36Z
+ */
+ readonly created_at?: string;
+ /**
+ * @description A human-readable description of the rule.
+ * @example an IP address for local development
+ */
+ description?: string;
+ };
+ database_service_endpoint: {
+ /**
+ * @description A FQDN pointing to the database cluster's node(s).
+ * @example db.example.com
+ */
+ readonly host?: string;
+ /**
+ * @description The port on which a service is listening.
+ * @example 9273
+ */
+ readonly port?: number;
+ };
+ /** @description DigitalOcean-specific settings for the database cluster. */
+ do_settings: {
+ /**
+ * @description An array of custom CNAMEs for the database cluster. Each CNAME must be a valid RFC 1123 hostname (e.g., "db.example.com"). Maximum of 16 CNAMEs allowed, each up to 253 characters.
+ * @example [
+ * "db.example.com",
+ * "database.myapp.io"
+ * ]
+ */
+ service_cnames?: string[];
+ };
+ database_cluster_read: {
+ /**
+ * Format: uuid
+ * @description A unique ID that can be used to identify and reference a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ readonly id?: string;
+ /**
+ * @description A unique, human-readable name referring to a database cluster.
+ * @example backend
+ */
+ name: string;
+ /**
+ * @description A slug representing the database engine used for the cluster. The possible values are: "pg" for PostgreSQL, "mysql" for MySQL, "redis" for Caching, "mongodb" for MongoDB, "kafka" for Kafka, "opensearch" for OpenSearch, "valkey" for Valkey, "advanced_pg" for PostgreSQL Advanced Edition, and "advanced_mysql" for MySQL Advanced Edition. Advanced Edition engines are currently in public preview.
+ * @example mysql
+ * @enum {string}
+ */
+ engine: "pg" | "mysql" | "redis" | "valkey" | "mongodb" | "kafka" | "opensearch" | "advanced_pg" | "advanced_mysql";
+ /**
+ * @description A string representing the version of the database engine in use for the cluster.
+ * @example 8
+ */
+ version?: string;
+ /**
+ * @description A string representing the semantic version of the database engine in use for the cluster.
+ * @example 8.0.28
+ */
+ readonly semantic_version?: string;
+ /**
+ * @description The number of nodes in the database cluster.
+ * @example 2
+ */
+ num_nodes: number;
+ /**
+ * @description The slug identifier representing the size of the nodes in the database cluster.
+ * @example db-s-2vcpu-4gb
+ */
+ size: string;
+ /**
+ * @description The slug identifier for the region where the database cluster is located.
+ * @example nyc3
+ */
+ region: string;
+ /**
+ * @description A string representing the current status of the database cluster.
+ * @example creating
+ * @enum {string}
+ */
+ readonly status?: "creating" | "online" | "resizing" | "migrating" | "forking";
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the database cluster was created.
+ * @example 2019-01-11T18:37:36Z
+ */
+ readonly created_at?: string;
+ /**
+ * @description A string specifying the UUID of the VPC to which the database cluster will be assigned. If excluded, the cluster when creating a new database cluster, it will be assigned to your account's default VPC for the region. Requires `vpc:read` scope.
+ * @example d455e75d-4858-4eec-8c95-da2f0a5f93a7
+ */
+ private_network_uuid?: string;
+ /**
+ * @description An array of tags that have been applied to the database cluster. Requires `tag:read` scope.
+ * @example [
+ * "production"
+ * ]
+ */
+ tags?: string[] | null;
+ /**
+ * @description An array of strings containing the names of databases created in the database cluster.
+ * @example [
+ * "doadmin"
+ * ]
+ */
+ readonly db_names?: string[] | null;
+ /** @description The connection details for OpenSearch dashboard. */
+ ui_connection?: components["schemas"]["opensearch_connection"] & unknown;
+ /** @description The connection details for Schema Registry. */
+ schema_registry_connection?: components["schemas"]["schema_registry_connection"] & unknown;
+ connection?: components["schemas"]["database_connection"] & unknown;
+ private_connection?: components["schemas"]["database_connection"] & unknown;
+ standby_connection?: components["schemas"]["database_connection"] & unknown;
+ standby_private_connection?: components["schemas"]["database_connection"] & unknown;
+ readonly users?: components["schemas"]["database_user"][] | null;
+ maintenance_window?: components["schemas"]["database_maintenance_window"] & unknown;
+ /**
+ * Format: uuid
+ * @description The ID of the project that the database cluster is assigned to. If excluded when creating a new database cluster, it will be assigned to your default project. Requires `project:read` scope.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ project_id?: string;
+ rules?: components["schemas"]["firewall_rule"][];
+ /**
+ * @description A timestamp referring to the date when the particular version will no longer be supported. If null, the version does not have an end of life timeline.
+ * @example 2023-11-09T00:00:00Z
+ */
+ readonly version_end_of_life?: string;
+ /**
+ * @description A timestamp referring to the date when the particular version will no longer be available for creating new clusters. If null, the version does not have an end of availability timeline.
+ * @example 2023-05-09T00:00:00Z
+ */
+ readonly version_end_of_availability?: string;
+ /**
+ * @description Additional storage added to the cluster, in MiB. If null, no additional storage is added to the cluster, beyond what is provided as a base amount from the 'size' and any previously added additional storage.
+ * @example 61440
+ */
+ storage_size_mib?: number;
+ /** @description Public hostname and port of the cluster's metrics endpoint(s). Includes one record for the cluster's primary node and a second entry for the cluster's standby node(s). */
+ readonly metrics_endpoints?: components["schemas"]["database_service_endpoint"][];
+ do_settings?: components["schemas"]["do_settings"] & unknown;
+ };
+ /** @description Configuration for database cluster storage autoscaling */
+ database_storage_autoscale_params: {
+ /**
+ * @description Whether storage autoscaling is enabled for the cluster
+ * @example true
+ */
+ enabled: boolean;
+ /**
+ * @description The storage usage threshold percentage that triggers autoscaling. When storage usage exceeds this percentage, additional storage will be added automatically.
+ * @example 80
+ */
+ threshold_percent?: number;
+ /**
+ * @description The amount of additional storage to add (in GiB) when autoscaling is triggered
+ * @example 10
+ */
+ increment_gib?: number;
+ };
+ /** @description Contains all autoscaling configuration for a database cluster */
+ database_autoscale_params: {
+ storage?: components["schemas"]["database_storage_autoscale_params"] & unknown;
+ };
+ database_cluster: {
+ /**
+ * Format: uuid
+ * @description A unique ID that can be used to identify and reference a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ readonly id?: string;
+ /**
+ * @description A unique, human-readable name referring to a database cluster.
+ * @example backend
+ */
+ name: string;
+ /**
+ * @description A slug representing the database engine used for the cluster. The possible values are: "pg" for PostgreSQL, "mysql" for MySQL, "redis" for Caching, "mongodb" for MongoDB, "kafka" for Kafka, "opensearch" for OpenSearch, "valkey" for Valkey, "advanced_pg" for PostgreSQL Advanced Edition, and "advanced_mysql" for MySQL Advanced Edition. Advanced Edition engines are currently in public preview.
+ * @example mysql
+ * @enum {string}
+ */
+ engine: "pg" | "mysql" | "redis" | "valkey" | "mongodb" | "kafka" | "opensearch" | "advanced_pg" | "advanced_mysql";
+ /**
+ * @description A string representing the version of the database engine in use for the cluster.
+ * @example 8
+ */
+ version?: string;
+ /**
+ * @description A string representing the semantic version of the database engine in use for the cluster.
+ * @example 8.0.28
+ */
+ readonly semantic_version?: string;
+ /**
+ * @description The number of nodes in the database cluster.
+ * @example 2
+ */
+ num_nodes: number;
+ /**
+ * @description The slug identifier representing the size of the nodes in the database cluster.
+ * @example db-s-2vcpu-4gb
+ */
+ size: string;
+ /**
+ * @description The slug identifier for the region where the database cluster is located.
+ * @example nyc3
+ */
+ region: string;
+ /**
+ * @description A string representing the current status of the database cluster.
+ * @example creating
+ * @enum {string}
+ */
+ readonly status?: "creating" | "online" | "resizing" | "migrating" | "forking";
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the database cluster was created.
+ * @example 2019-01-11T18:37:36Z
+ */
+ readonly created_at?: string;
+ /**
+ * @description A string specifying the UUID of the VPC to which the database cluster will be assigned. If excluded, the cluster when creating a new database cluster, it will be assigned to your account's default VPC for the region. Requires `vpc:read` scope.
+ * @example d455e75d-4858-4eec-8c95-da2f0a5f93a7
+ */
+ private_network_uuid?: string;
+ /**
+ * @description An array of tags (as strings) to apply to the database cluster. Requires `tag:create` scope.
+ * @example [
+ * "production"
+ * ]
+ */
+ tags?: string[] | null;
+ /**
+ * @description An array of strings containing the names of databases created in the database cluster.
+ * @example [
+ * "doadmin"
+ * ]
+ */
+ readonly db_names?: string[] | null;
+ /** @description The connection details for OpenSearch dashboard. */
+ ui_connection?: components["schemas"]["opensearch_connection"] & unknown;
+ /** @description The connection details for Schema Registry. */
+ schema_registry_connection?: components["schemas"]["schema_registry_connection"] & unknown;
+ connection?: components["schemas"]["database_connection"] & unknown;
+ private_connection?: components["schemas"]["database_connection"] & unknown;
+ standby_connection?: components["schemas"]["database_connection"] & unknown;
+ standby_private_connection?: components["schemas"]["database_connection"] & unknown;
+ readonly users?: components["schemas"]["database_user"][] | null;
+ maintenance_window?: components["schemas"]["database_maintenance_window"] & unknown;
+ /**
+ * Format: uuid
+ * @description The ID of the project that the database cluster is assigned to. If excluded when creating a new database cluster, it will be assigned to your default project. Requires `project:assign_resource` scope.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ project_id?: string;
+ rules?: components["schemas"]["firewall_rule"][];
+ /**
+ * @description A timestamp referring to the date when the particular version will no longer be supported. If null, the version does not have an end of life timeline.
+ * @example 2023-11-09T00:00:00Z
+ */
+ readonly version_end_of_life?: string;
+ /**
+ * @description A timestamp referring to the date when the particular version will no longer be available for creating new clusters. If null, the version does not have an end of availability timeline.
+ * @example 2023-05-09T00:00:00Z
+ */
+ readonly version_end_of_availability?: string;
+ /**
+ * @description Additional storage added to the cluster, in MiB. If null, no additional storage is added to the cluster, beyond what is provided as a base amount from the 'size' and any previously added additional storage.
+ * @example 61440
+ */
+ storage_size_mib?: number;
+ /** @description Public hostname and port of the cluster's metrics endpoint(s). Includes one record for the cluster's primary node and a second entry for the cluster's standby node(s). */
+ readonly metrics_endpoints?: components["schemas"]["database_service_endpoint"][];
+ /** @description Autoscaling configuration for the database cluster. Currently only supports storage autoscaling. If null, autoscaling is not configured for the cluster. */
+ autoscale?: components["schemas"]["database_autoscale_params"];
+ do_settings?: components["schemas"]["do_settings"] & unknown;
+ };
+ database_backup: {
+ /**
+ * @description The name of an existing database cluster from which the backup will be restored.
+ * @example backend
+ */
+ database_name: string;
+ /**
+ * Format: date-time
+ * @description The timestamp of an existing database cluster backup in ISO8601 combined date and time format. The most recent backup will be used if excluded.
+ * @example 2019-01-31T19:25:22Z
+ */
+ backup_created_at?: string;
+ };
+ /** @description MySQL Incremental Backup configuration settings */
+ mysql_incremental_backup: {
+ /** @description Enable periodic incremental backups. When enabled, full_backup_week_schedule must be set. Incremental backups only store changes since the last backup, making them faster and more storage-efficient than full backups. This is particularly useful for large databases where daily full backups would be too time-consuming or expensive. */
+ enabled?: boolean;
+ /**
+ * @description Comma-separated list of days of the week when full backups should be created. Valid values: mon, tue, wed, thu, fri, sat, sun. Default is null. Example : "mon,fri,sun".
+ * @example mon,thu
+ */
+ full_backup_week_schedule?: string;
+ };
+ mysql_advanced_config: {
+ /**
+ * @description The hour of day (in UTC) when backup for the service starts. New backup only starts if previous backup has already completed.
+ * @example 3
+ */
+ backup_hour?: number;
+ /**
+ * @description The minute of the backup hour when backup for the service starts. New backup only starts if previous backup has already completed.
+ * @example 30
+ */
+ backup_minute?: number;
+ /**
+ * @description When enabled, grants `EXECUTE` and `ALTER ROUTINE` privileges to the creator of a stored routine. When disabled, these privileges are not granted automatically.
+ * @example true
+ */
+ automatic_sp_privileges?: boolean;
+ /**
+ * @description Global SQL mode. If empty, uses MySQL server defaults. Must only include uppercase alphabetic characters, underscores, and commas.
+ * @example ANSI,TRADITIONAL
+ */
+ sql_mode?: string;
+ /**
+ * @description The number of seconds that the mysqld server waits for a connect packet before responding with bad handshake.
+ * @example 10
+ */
+ connect_timeout?: number;
+ /**
+ * @description Default server time zone, in the form of an offset from UTC (from -12:00 to +12:00), a time zone name (EST), or 'SYSTEM' to use the MySQL server default.
+ * @example +03:00
+ */
+ default_time_zone?: string;
+ /**
+ * @description The number of digits by which to increase the scale of the result of division operations performed with the `/` operator.
+ * @example 4
+ */
+ div_precision_increment?: number;
+ /**
+ * @description When enabled, the JSON output of `EXPLAIN FORMAT=JSON` includes end markers for nested structures.
+ * @example false
+ */
+ end_markers_in_json?: boolean;
+ /**
+ * @description The number of equality ranges in an equality comparison condition when the optimizer should switch from using index dives to index statistics.
+ * @example 200
+ */
+ eq_range_index_dive_limit?: number;
+ /**
+ * @description The maximum permitted result length, in bytes, for the GROUP_CONCAT() function.
+ * @example 1024
+ */
+ group_concat_max_len?: number;
+ /**
+ * @description The time, in seconds, before cached statistics expire.
+ * @example 86400
+ */
+ information_schema_stats_expiry?: number;
+ /**
+ * @description When enabled, InnoDB uses an adaptive hash index to speed up equality lookups. The optimal setting is workload-dependent: it can improve performance for some workloads, but under high concurrency the associated latch can become a contention point, in which case disabling it may improve throughput. Default is true.
+ * @example true
+ */
+ innodb_adaptive_hash_index?: boolean;
+ /**
+ * @description When enabled, the InnoDB FULLTEXT index stopword list is used. Disabled by default when a custom stopword table is configured.
+ * @example true
+ */
+ innodb_ft_enable_stopword?: boolean;
+ /**
+ * @description The maximum length of words that an InnoDB FULLTEXT index stores. Changing this parameter will lead to a restart of the MySQL service.
+ * @example 20
+ */
+ innodb_ft_max_token_size?: number;
+ /**
+ * @description The minimum length of words that an InnoDB FULLTEXT index stores.
+ * @example 3
+ */
+ innodb_ft_min_token_size?: number;
+ /**
+ * @description The number of words to process during each OPTIMIZE TABLE operation on an InnoDB FULLTEXT index.
+ * @example 2000
+ */
+ innodb_ft_num_word_optimize?: number;
+ /**
+ * @description The InnoDB FULLTEXT index query result cache size limit, in bytes.
+ * @example 2000000000
+ */
+ innodb_ft_result_cache_limit?: number;
+ /**
+ * @description The InnoDB FULLTEXT index stopword list for all InnoDB tables.
+ * @example db_name/table_name
+ */
+ innodb_ft_server_stopword_table?: string;
+ /**
+ * @description The InnoDB FULLTEXT index stopword list for user-created FULLTEXT indexes. Must be in the form `db_name/table_name`. Set to `null` to clear a previously configured value.
+ * @example db_name/table_name
+ */
+ innodb_ft_user_stopword_table?: string | null;
+ /**
+ * @description The time, in seconds, that an InnoDB transaction waits for a row lock. before giving up.
+ * @example 50
+ */
+ innodb_lock_wait_timeout?: number;
+ /**
+ * @description The size of the buffer, in bytes, that InnoDB uses to write to the log files. on disk.
+ * @example 16777216
+ */
+ innodb_log_buffer_size?: number;
+ /**
+ * @description The upper limit, in bytes, of the size of the temporary log files used during online DDL operations for InnoDB tables.
+ * @example 134217728
+ */
+ innodb_online_alter_log_max_size?: number;
+ /**
+ * @description When enabled, OPTIMIZE TABLE rebuilds only the InnoDB FULLTEXT index, not the table itself.
+ * @example false
+ */
+ innodb_optimize_fulltext_only?: boolean;
+ /**
+ * @description When enabled, records information about all deadlocks in InnoDB user transactions in the error log. Disabled by default.
+ * @example true
+ */
+ innodb_print_all_deadlocks?: boolean;
+ /**
+ * @description When enabled, transaction timeouts cause InnoDB to abort and roll back the entire transaction.
+ * @example true
+ */
+ innodb_rollback_on_timeout?: boolean;
+ /**
+ * @description The time, in seconds, the server waits for activity on an interactive. connection before closing it.
+ * @example 3600
+ */
+ interactive_timeout?: number;
+ /**
+ * @description The storage engine for in-memory internal temporary tables.
+ * @example TempTable
+ * @enum {string}
+ */
+ internal_tmp_mem_storage_engine?: "TempTable" | "MEMORY";
+ /**
+ * @description The time, in seconds, to wait for more data from an existing connection. aborting the read.
+ * @example 30
+ */
+ net_read_timeout?: number;
+ /**
+ * @description The number of seconds to wait for a block to be written to a connection before aborting the write.
+ * @example 30
+ */
+ net_write_timeout?: number;
+ /**
+ * @description Require primary key to be defined for new tables or old tables modified with ALTER TABLE and fail if missing. It is recommended to always have primary keys because various functionality may break if any large table is missing them.
+ * @example true
+ */
+ sql_require_primary_key?: boolean;
+ /**
+ * @description The number of seconds the server waits for activity on a noninteractive connection before closing it.
+ * @example 28800
+ */
+ wait_timeout?: number;
+ /**
+ * @description When enabled, window functions use a higher precision for internal calculations, which can be more accurate but slower.
+ * @example true
+ */
+ windowing_use_high_precision?: boolean;
+ /**
+ * @description The size of the largest message, in bytes, that can be received by the server. Default is 67108864 (64M).
+ * @example 67108864
+ */
+ max_allowed_packet?: number;
+ /**
+ * @description The execution timeout for `SELECT` statements, in milliseconds. A value of `0` disables the timeout (no limit).
+ * @example 0
+ */
+ max_execution_time?: number;
+ /**
+ * @description The maximum size, in bytes, of internal in-memory tables. Also set tmp_table_size. Default is 16777216 (16M)
+ * @example 16777216
+ */
+ max_heap_table_size?: number;
+ /**
+ * @description Limits the assumed maximum number of seeks when looking up rows based on a key. Lower values cause the query optimizer to prefer indexes over table scans for non-covering indexes.
+ * @example 1000
+ */
+ max_seeks_for_key?: number;
+ /**
+ * @description Controls the heuristics applied during query optimization to prune less promising partial plans from the optimizer search space. `0` disables pruning and `1` enables it.
+ * @example 1
+ */
+ optimizer_prune_level?: number;
+ /**
+ * @description The maximum depth of search performed by the query optimizer. Smaller values can reduce compilation time for large joins; a value of `0` lets the server automatically pick a reasonable value.
+ * @example 62
+ */
+ optimizer_search_depth?: number;
+ /**
+ * @description Controls query optimizer behavior as a comma-separated list of `option=value` pairs, or `default` to restore server defaults. Each value must be `on`, `off`, or `default`.
+ * @example batched_key_access=on,hash_join=off
+ */
+ optimizer_switch?: string;
+ /**
+ * @description The sort buffer size, in bytes, for ORDER BY optimization. Default is 262144. (256K).
+ * @example 262144
+ */
+ sort_buffer_size?: number;
+ /**
+ * @description The maximum size, in bytes, of internal in-memory tables. Also set max_heap_table_size. Default is 16777216 (16M).
+ * @example 16777216
+ */
+ tmp_table_size?: number;
+ /**
+ * @description When enabled, captures slow queries. When disabled, also truncates the mysql.slow_log table. Default is false.
+ * @example true
+ */
+ slow_query_log?: boolean;
+ /**
+ * @description The time, in seconds, for a query to take to execute before being captured by slow_query_logs. Default is 10 seconds.
+ * @example 10
+ */
+ long_query_time?: number;
+ /**
+ * @description The minimum amount of time, in seconds, to keep binlog entries before deletion. This may be extended for services that require binlog entries for longer than the default, for example if using the MySQL Debezium Kafka connector.
+ * @example 600
+ */
+ binlog_retention_period?: number;
+ /**
+ * @description Specifies the maximum size of the InnoDB change buffer as a percentage of the buffer pool.
+ * @example 25
+ */
+ innodb_change_buffer_max_size?: number;
+ /**
+ * @description Specifies whether flushing a page from the InnoDB buffer pool also flushes other dirty pages in the same extent.
+ * - 0 — disables this functionality, dirty pages in the same extent are not flushed.
+ * - 1 — flushes contiguous dirty pages in the same extent.
+ * - 2 — flushes dirty pages in the same extent.
+ * @example 0
+ * @enum {integer}
+ */
+ innodb_flush_neighbors?: 0 | 1 | 2;
+ /**
+ * @description The number of I/O threads for read operations in InnoDB. Changing this parameter will lead to a restart of the MySQL service.
+ * @example 16
+ */
+ innodb_read_io_threads?: number;
+ /**
+ * @description The number of I/O threads for write operations in InnoDB. Changing this parameter will lead to a restart of the MySQL service.
+ * @example 16
+ */
+ innodb_write_io_threads?: number;
+ /**
+ * @description Defines the maximum number of threads permitted inside of InnoDB. A value of 0 (the default) is interpreted as infinite concurrency (no limit). This variable is intended for performance tuning on high concurrency systems.
+ * @example 0
+ */
+ innodb_thread_concurrency?: number;
+ /**
+ * @description Start sizes of connection buffer and result buffer, must be multiple of 1024. Changing this parameter will lead to a restart of the MySQL service.
+ * @example 4096
+ */
+ net_buffer_length?: number;
+ /**
+ * @description Defines the destination for logs. Can be `INSIGHTS`, `TABLE`, or both (`INSIGHTS,TABLE`), or `NONE` to disable logs. To specify both destinations, use `INSIGHTS,TABLE` (order matters). Default is NONE.
+ * @default NONE
+ * @example INSIGHTS
+ * @enum {string}
+ */
+ log_output?: "INSIGHTS" | "TABLE" | "INSIGHTS,TABLE" | "NONE";
+ mysql_incremental_backup?: components["schemas"]["mysql_incremental_backup"];
+ };
+ /** @description PGBouncer connection pooling settings */
+ pgbouncer_advanced_config: {
+ /**
+ * @description Run server_reset_query (DISCARD ALL) in all pooling modes.
+ * @example false
+ */
+ server_reset_query_always?: boolean;
+ /**
+ * @description List of parameters to ignore when given in startup packet.
+ * @example [
+ * "extra_float_digits",
+ * "search_path"
+ * ]
+ */
+ ignore_startup_parameters?: ("extra_float_digits" | "search_path")[];
+ /**
+ * @description If current server connections are below this number, adds more. Improves behavior when usual load comes suddenly back after period of total inactivity. The value is effectively capped at the pool size.
+ * @example 1
+ */
+ min_pool_size?: number;
+ /**
+ * @description The pooler closes any unused server connection that has been connected longer than this amount of seconds.
+ * @example 3600
+ */
+ server_lifetime?: number;
+ /**
+ * @description Drops server connections if they have been idle more than this many seconds. If 0, timeout is disabled.
+ * @example 600
+ */
+ server_idle_timeout?: number;
+ /**
+ * @description If non-zero, automatically creates a pool of that size per user when a pool doesn't exist.
+ * @example 1
+ */
+ autodb_pool_size?: number;
+ /**
+ * @description PGBouncer pool mode
+ * @example session
+ * @enum {string}
+ */
+ autodb_pool_mode?: "session" | "transaction" | "statement";
+ /**
+ * @description Only allows a maximum this many server connections per database (regardless of user). If 0, allows unlimited connections.
+ * @example 1
+ */
+ autodb_max_db_connections?: number;
+ /**
+ * @description If the automatically-created database pools have been unused this many seconds, they are freed. If 0, timeout is disabled.
+ * @example 3600
+ */
+ autodb_idle_timeout?: number;
+ };
+ /** @description TimescaleDB extension configuration values */
+ timescaledb_advanced_config: {
+ /**
+ * @description The number of background workers for timescaledb operations. Set to the sum of your number of databases and the total number of concurrent background workers you want running at any given point in time.
+ * @example 8
+ */
+ max_background_workers?: number;
+ };
+ postgres_advanced_config: {
+ /**
+ * @description Specifies the maximum age (in transactions) that a table's pg_class.relfrozenxid field can attain before a VACUUM operation is forced to prevent transaction ID wraparound within the table. Note that the system will launch autovacuum processes to prevent wraparound even when autovacuum is otherwise disabled. This parameter will cause the server to be restarted.
+ * @example 200000000
+ */
+ autovacuum_freeze_max_age?: number;
+ /**
+ * @description Specifies the maximum number of autovacuum processes (other than the autovacuum launcher) that may be running at any one time. The default is three. This parameter can only be set at server start.
+ * @example 5
+ */
+ autovacuum_max_workers?: number;
+ /**
+ * @description Specifies the minimum delay, in seconds, between autovacuum runs on any given database. The default is one minute.
+ * @example 43200
+ */
+ autovacuum_naptime?: number;
+ /**
+ * @description Specifies the minimum number of updated or deleted tuples needed to trigger a VACUUM in any one table. The default is 50 tuples.
+ * @example 50
+ */
+ autovacuum_vacuum_threshold?: number;
+ /**
+ * @description Specifies the minimum number of inserted, updated, or deleted tuples needed to trigger an ANALYZE in any one table. The default is 50 tuples.
+ * @example 50
+ */
+ autovacuum_analyze_threshold?: number;
+ /**
+ * @description Specifies a fraction, in a decimal value, of the table size to add to autovacuum_vacuum_threshold when deciding whether to trigger a VACUUM. The default is 0.2 (20% of table size).
+ * @example 0.2
+ */
+ autovacuum_vacuum_scale_factor?: number;
+ /**
+ * @description Specifies a fraction, in a decimal value, of the table size to add to autovacuum_analyze_threshold when deciding whether to trigger an ANALYZE. The default is 0.2 (20% of table size).
+ * @example 0.2
+ */
+ autovacuum_analyze_scale_factor?: number;
+ /**
+ * @description Specifies the cost delay value, in milliseconds, that will be used in automatic VACUUM operations. If -1, uses the regular vacuum_cost_delay value, which is 20 milliseconds.
+ * @example 20
+ */
+ autovacuum_vacuum_cost_delay?: number;
+ /**
+ * @description Specifies the cost limit value that will be used in automatic VACUUM operations. If -1 is specified (which is the default), the regular vacuum_cost_limit value will be used.
+ * @example -1
+ */
+ autovacuum_vacuum_cost_limit?: number;
+ /**
+ * @description The hour of day (in UTC) when backup for the service starts. New backup only starts if previous backup has already completed.
+ * @example 3
+ */
+ backup_hour?: number;
+ /**
+ * @description The minute of the backup hour when backup for the service starts. New backup is only started if previous backup has already completed.
+ * @example 30
+ */
+ backup_minute?: number;
+ /**
+ * @description Specifies the delay, in milliseconds, between activity rounds for the background writer. Default is 200 ms.
+ * @example 200
+ */
+ bgwriter_delay?: number;
+ /**
+ * @description The amount of kilobytes that need to be written by the background writer before attempting to force the OS to issue these writes to underlying storage. Specified in kilobytes, default is 512. Setting of 0 disables forced writeback.
+ * @example 512
+ */
+ bgwriter_flush_after?: number;
+ /**
+ * @description The maximum number of buffers that the background writer can write. Setting this to zero disables background writing. Default is 100.
+ * @example 100
+ */
+ bgwriter_lru_maxpages?: number;
+ /**
+ * @description The average recent need for new buffers is multiplied by bgwriter_lru_multiplier to arrive at an estimate of the number that will be needed during the next round, (up to bgwriter_lru_maxpages). 1.0 represents a “just in time” policy of writing exactly the number of buffers predicted to be needed. Larger values provide some cushion against spikes in demand, while smaller values intentionally leave writes to be done by server processes. The default is 2.0.
+ * @example 2
+ */
+ bgwriter_lru_multiplier?: number;
+ /**
+ * @description The amount of time, in milliseconds, to wait on a lock before checking to see if there is a deadlock condition.
+ * @example 1000
+ */
+ deadlock_timeout?: number;
+ /**
+ * @description Specifies the default TOAST compression method for values of compressible columns (the default is lz4).
+ * @example lz4
+ * @enum {string}
+ */
+ default_toast_compression?: "lz4" | "pglz";
+ /**
+ * @description Time out sessions with open transactions after this number of milliseconds
+ * @example 10000
+ */
+ idle_in_transaction_session_timeout?: number;
+ /**
+ * @description Activates, in a boolean, the system-wide use of Just-in-Time Compilation (JIT).
+ * @example true
+ */
+ jit?: boolean;
+ /**
+ * @description Causes each action executed by autovacuum to be logged if it ran for at least the specified number of milliseconds. Setting this to zero logs all autovacuum actions. Minus-one (the default) disables logging autovacuum actions.
+ * @example -1
+ */
+ log_autovacuum_min_duration?: number;
+ /**
+ * @description Controls the amount of detail written in the server log for each message that is logged.
+ * @example VERBOSE
+ * @enum {string}
+ */
+ log_error_verbosity?: "TERSE" | "DEFAULT" | "VERBOSE";
+ /**
+ * @description Selects one of the available log-formats. These can support popular log analyzers like pgbadger, pganalyze, etc.
+ * @example pid=%p,user=%u,db=%d,app=%a,client=%h
+ * @enum {string}
+ */
+ log_line_prefix?: "pid=%p,user=%u,db=%d,app=%a,client=%h" | "%m [%p] %q[user=%u,db=%d,app=%a]" | "%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h";
+ /**
+ * @description Log statements that take more than this number of milliseconds to run. If -1, disables.
+ * @example -1
+ */
+ log_min_duration_statement?: number;
+ /**
+ * @description PostgreSQL maximum number of files that can be open per process.
+ * @example 2048
+ */
+ max_files_per_process?: number;
+ /**
+ * @description PostgreSQL maximum prepared transactions. Once increased, this parameter cannot be lowered from its set value.
+ * @example 20
+ */
+ max_prepared_transactions?: number;
+ /**
+ * @description PostgreSQL maximum predicate locks per transaction.
+ * @example 128
+ */
+ max_pred_locks_per_transaction?: number;
+ /**
+ * @description PostgreSQL maximum locks per transaction. Once increased, this parameter cannot be lowered from its set value.
+ * @example 128
+ */
+ max_locks_per_transaction?: number;
+ /**
+ * @description Maximum depth of the stack in bytes.
+ * @example 2097152
+ */
+ max_stack_depth?: number;
+ /**
+ * @description Max standby archive delay in milliseconds.
+ * @example 43200
+ */
+ max_standby_archive_delay?: number;
+ /**
+ * @description Max standby streaming delay in milliseconds.
+ * @example 43200
+ */
+ max_standby_streaming_delay?: number;
+ /**
+ * @description PostgreSQL maximum replication slots.
+ * @example 16
+ */
+ max_replication_slots?: number;
+ /**
+ * @description PostgreSQL maximum logical replication workers (taken from the pool of max_parallel_workers).
+ * @example 16
+ */
+ max_logical_replication_workers?: number;
+ /**
+ * @description Sets the maximum number of workers that the system can support for parallel queries.
+ * @example 12
+ */
+ max_parallel_workers?: number;
+ /**
+ * @description Sets the maximum number of workers that can be started by a single Gather or Gather Merge node.
+ * @example 16
+ */
+ max_parallel_workers_per_gather?: number;
+ /**
+ * @description Sets the maximum number of background processes that the system can support. Once increased, this parameter cannot be lowered from its set value.
+ * @example 16
+ */
+ max_worker_processes?: number;
+ /**
+ * @description Controls which role to use for pg_partman's scheduled background tasks. Must consist of alpha-numeric characters, dots, underscores, or dashes. May not start with dash or dot. Maximum of 64 characters.
+ * @example myrolename
+ */
+ "pg_partman_bgw.role"?: string;
+ /**
+ * @description Sets the time interval to run pg_partman's scheduled tasks.
+ * @example 3600
+ */
+ "pg_partman_bgw.interval"?: number;
+ /**
+ * @description Controls which statements are counted. Specify 'top' to track top-level statements (those issued directly by clients), 'all' to also track nested statements (such as statements invoked within functions), or 'none' to disable statement statistics collection. The default value is top.
+ * @example all
+ * @enum {string}
+ */
+ "pg_stat_statements.track"?: "all" | "top" | "none";
+ /**
+ * @description PostgreSQL temporary file limit in KiB. If -1, sets to unlimited.
+ * @example 5000000
+ */
+ temp_file_limit?: number;
+ /**
+ * @description PostgreSQL service timezone
+ * @example Europe/Helsinki
+ */
+ timezone?: string;
+ /**
+ * @description Specifies the number of bytes reserved to track the currently executing command for each active session.
+ * @example 1024
+ */
+ track_activity_query_size?: number;
+ /**
+ * @description Record commit time of transactions.
+ * @example off
+ * @enum {string}
+ */
+ track_commit_timestamp?: "off" | "on";
+ /**
+ * @description Enables tracking of function call counts and time used.
+ * @example all
+ * @enum {string}
+ */
+ track_functions?: "all" | "pl" | "none";
+ /**
+ * @description Enables timing of database I/O calls. This parameter is off by default, because it will repeatedly query the operating system for the current time, which may cause significant overhead on some platforms.
+ * @example off
+ * @enum {string}
+ */
+ track_io_timing?: "off" | "on";
+ /**
+ * @description PostgreSQL maximum WAL senders. Once increased, this parameter cannot be lowered from its set value.
+ * @example 32
+ */
+ max_wal_senders?: number;
+ /**
+ * @description Terminate replication connections that are inactive for longer than this amount of time, in milliseconds. Setting this value to zero disables the timeout. Must be either 0 or between 5000 and 10800000.
+ * @example 60000
+ */
+ wal_sender_timeout?: number;
+ /**
+ * @description WAL flush interval in milliseconds. Note that setting this value to lower than the default 200ms may negatively impact performance
+ * @example 50
+ */
+ wal_writer_delay?: number;
+ /**
+ * @description Percentage of total RAM that the database server uses for shared memory buffers. Valid range is 20-60 (float), which corresponds to 20% - 60%. This setting adjusts the shared_buffers configuration value.
+ * @example 41.5
+ */
+ shared_buffers_percentage?: number;
+ pgbouncer?: components["schemas"]["pgbouncer_advanced_config"];
+ /**
+ * @description The maximum amount of memory, in MB, used by a query operation (such as a sort or hash table) before writing to temporary disk files. Default is 1MB + 0.075% of total RAM (up to 32MB).
+ * @example 4
+ */
+ work_mem?: number;
+ timescaledb?: components["schemas"]["timescaledb_advanced_config"];
+ /**
+ * @description Synchronous replication type. Note that the service plan also needs to support synchronous replication.
+ * @example off
+ * @enum {string}
+ */
+ synchronous_replication?: "off" | "quorum";
+ /**
+ * @description Enable the pg_stat_monitor extension. Enabling this extension will cause the cluster to be restarted. When this extension is enabled, pg_stat_statements results for utility commands are unreliable.
+ * @example false
+ */
+ stat_monitor_enable?: boolean;
+ /**
+ * @description Number of seconds of master unavailability before triggering database failover to standby. The default value is 60.
+ * @example 50
+ */
+ max_failover_replication_time_lag?: number;
+ /**
+ * @description Sets the PostgreSQL maximum number of concurrent connections to the database server. This is a limited-release parameter. Contact your account team to confirm your eligibility. You cannot decrease this parameter value when set. For services with a read replica, first increase the read replica's value. After the change is applied to the replica, you can increase the primary service's value. Changing this parameter causes a service restart.
+ * @example 75
+ */
+ max_connections?: number;
+ /**
+ * @description PostgreSQL maximum WAL size (MB) reserved for replication slots. If -1 is specified, replication slots may retain an unlimited amount of WAL files. The default is -1 (upstream default). wal_keep_size minimum WAL size setting takes precedence over this.
+ * @example 100
+ */
+ max_slot_wal_keep_size?: number;
+ /** @description System-wide settings for the pgaudit extension. When `feature_enabled` is true, the pgaudit extension is automatically installed. When false, the extension is uninstalled but auditing configurations (such as `log`) are preserved. */
+ pgaudit?: {
+ /**
+ * @description Enable pgaudit extension. When enabled, pgaudit extension will be automatically installed. Otherwise, extension will be uninstalled but auditing configurations will be preserved.
+ * @example false
+ */
+ feature_enabled?: boolean;
+ /**
+ * @description Specifies which classes of statements will be logged by session audit logging. Available values are `read` (SELECT and COPY when the source is a relation or query), `write` (INSERT, UPDATE, DELETE, TRUNCATE, and COPY when the destination is a relation), `function` (function calls and DO blocks), `role` (statements related to roles and privileges: GRANT, REVOKE, CREATE/ALTER/DROP ROLE), `ddl` (all DDL that is not included in the role class), `misc` (miscellaneous commands, e.g. DISCARD, FETCH, CHECKPOINT, VACUUM, SET), `misc_set` (miscellaneous SET commands, e.g. SET ROLE), and `all` (include all of the above).
+ * @example [
+ * "read",
+ * "write",
+ * "ddl"
+ * ]
+ */
+ log?: ("read" | "write" | "function" | "role" | "ddl" | "misc" | "misc_set" | "all")[];
+ };
+ };
+ redis_advanced_config: {
+ /**
+ * @description A string specifying the desired eviction policy for the Caching cluster.
+ *
+ * - `noeviction`: Don't evict any data, returns error when memory limit is reached.
+ * - `allkeys-lru:` Evict any key, least recently used (LRU) first.
+ * - `allkeys-random`: Evict keys in a random order.
+ * - `volatile-lru`: Evict keys with expiration only, least recently used (LRU) first.
+ * - `volatile-random`: Evict keys with expiration only in a random order.
+ * - `volatile-ttl`: Evict keys with expiration only, shortest time-to-live (TTL) first.
+ * @example allkeys-lru
+ * @enum {string}
+ */
+ redis_maxmemory_policy?: "noeviction" | "allkeys-lru" | "allkeys-random" | "volatile-lru" | "volatile-random" | "volatile-ttl";
+ /**
+ * @description Set output buffer limit for pub / sub clients in MB. The value is the hard limit, the soft limit is 1/4 of the hard limit. When setting the limit, be mindful of the available memory in the selected service plan.
+ * @example 64
+ */
+ redis_pubsub_client_output_buffer_limit?: number;
+ /**
+ * @description Set number of redis databases. Changing this will cause a restart of redis service.
+ * @example 16
+ */
+ redis_number_of_databases?: number;
+ /**
+ * @description Caching IO thread count
+ * @example 1
+ */
+ redis_io_threads?: number;
+ /**
+ * @description Counter logarithm factor for volatile-lfu and allkeys-lfu maxmemory-policies
+ * @default 10
+ * @example 10
+ */
+ redis_lfu_log_factor?: number;
+ /**
+ * @description LFU maxmemory-policy counter decay time in minutes
+ * @default 1
+ * @example 1
+ */
+ redis_lfu_decay_time?: number;
+ /**
+ * @description Require SSL to access Caching.
+ * - When enabled, Caching accepts only SSL connections on port `25061`.
+ * - When disabled, port `25060` is opened for non-SSL connections, while port `25061` remains available for SSL connections.
+ * @default true
+ * @example true
+ */
+ redis_ssl?: boolean;
+ /**
+ * @description Caching idle connection timeout in seconds
+ * @default 300
+ * @example 300
+ */
+ redis_timeout?: number;
+ /**
+ * @description Set notify-keyspace-events option. Requires at least `K` or `E` and accepts any combination of the following options. Setting the parameter to `""` disables notifications.
+ * - `K` — Keyspace events
+ * - `E` — Keyevent events
+ * - `g` — Generic commands (e.g. `DEL`, `EXPIRE`, `RENAME`, ...)
+ * - `$` — String commands
+ * - `l` — List commands
+ * - `s` — Set commands
+ * - `h` — Hash commands
+ * - `z` — Sorted set commands
+ * - `t` — Stream commands
+ * - `d` — Module key type events
+ * - `x` — Expired events
+ * - `e` — Evicted events
+ * - `m` — Key miss events
+ * - `n` — New key events
+ * - `A` — Alias for `"g$lshztxed"`
+ * @default
+ * @example K
+ */
+ redis_notify_keyspace_events?: string;
+ /**
+ * @description Creates an RDB dump of the database every 10 minutes that can be used to recover data after a node crash. The database does not create the dump if no keys have changed since the last dump. When set to `off`, the database cannot fork services, and data can be lost if a service is restarted or powered off. DigitalOcean Managed Caching databases do not support the Append Only File (AOF) persistence method.
+ * @example rdb
+ * @enum {string}
+ */
+ redis_persistence?: "off" | "rdb";
+ /**
+ * @description Determines default pub/sub channels' ACL for new users if ACL is not supplied. When this option is not defined, all_channels is assumed to keep backward compatibility. This option doesn't affect Caching configuration acl-pubsub-default.
+ * @example allchannels
+ * @enum {string}
+ */
+ redis_acl_channels_default?: "allchannels" | "resetchannels";
+ };
+ /**
+ * @description A string specifying the desired eviction policy for a Caching or Valkey cluster.
+ *
+ * - `noeviction`: Don't evict any data, returns error when memory limit is reached.
+ * - `allkeys_lru:` Evict any key, least recently used (LRU) first.
+ * - `allkeys_random`: Evict keys in a random order.
+ * - `volatile_lru`: Evict keys with expiration only, least recently used (LRU) first.
+ * - `volatile_random`: Evict keys with expiration only in a random order.
+ * - `volatile_ttl`: Evict keys with expiration only, shortest time-to-live (TTL) first.
+ * @example allkeys_lru
+ * @enum {string}
+ */
+ eviction_policy_model: "noeviction" | "allkeys_lru" | "allkeys_random" | "volatile_lru" | "volatile_random" | "volatile_ttl";
+ valkey_advanced_config: {
+ valkey_maxmemory_policy?: components["schemas"]["eviction_policy_model"];
+ /**
+ * @description Set output buffer limit for pub / sub clients in MB. The value is the hard limit, the soft limit is 1/4 of the hard limit. When setting the limit, be mindful of the available memory in the selected service plan.
+ * @example 64
+ */
+ valkey_pubsub_client_output_buffer_limit?: number;
+ /**
+ * @description Set number of valkey databases. Changing this will cause a restart of valkey service.
+ * @example 16
+ */
+ valkey_number_of_databases?: number;
+ /**
+ * @description Valkey IO thread count
+ * @example 1
+ */
+ valkey_io_threads?: number;
+ /**
+ * @description Counter logarithm factor for volatile-lfu and allkeys-lfu maxmemory-policies
+ * @default 10
+ * @example 10
+ */
+ valkey_lfu_log_factor?: number;
+ /**
+ * @description LFU maxmemory-policy counter decay time in minutes
+ * @default 1
+ * @example 1
+ */
+ valkey_lfu_decay_time?: number;
+ /**
+ * @description Require SSL to access Valkey
+ * @default true
+ * @example true
+ */
+ valkey_ssl?: boolean;
+ /**
+ * @description Valkey idle connection timeout in seconds
+ * @default 300
+ * @example 300
+ */
+ valkey_timeout?: number;
+ /**
+ * @description Set notify-keyspace-events option. Requires at least `K` or `E` and accepts any combination of the following options. Setting the parameter to `""` disables notifications.
+ * - `K` — Keyspace events
+ * - `E` — Keyevent events
+ * - `g` — Generic commands (e.g. `DEL`, `EXPIRE`, `RENAME`, ...)
+ * - `$` — String commands
+ * - `l` — List commands
+ * - `s` — Set commands
+ * - `h` — Hash commands
+ * - `z` — Sorted set commands
+ * - `t` — Stream commands
+ * - `d` — Module key type events
+ * - `x` — Expired events
+ * - `e` — Evicted events
+ * - `m` — Key miss events
+ * - `n` — New key events
+ * - `A` — Alias for `"g$lshztxed"`
+ * @default
+ * @example K
+ */
+ valkey_notify_keyspace_events?: string;
+ /**
+ * @description When persistence is 'rdb', Valkey does RDB dumps each 10 minutes if any key is changed. Also RDB dumps are done according to backup schedule for backup purposes. When persistence is 'off', no RDB dumps and backups are done, so data can be lost at any moment if service is restarted for any reason, or if service is powered off. Also service can't be forked.
+ * @example rdb
+ * @enum {string}
+ */
+ valkey_persistence?: "off" | "rdb";
+ /**
+ * @description Determines default pub/sub channels' ACL for new users if ACL is not supplied. When this option is not defined, all_channels is assumed to keep backward compatibility. This option doesn't affect Valkey configuration acl-pubsub-default.
+ * @example allchannels
+ * @enum {string}
+ */
+ valkey_acl_channels_default?: "allchannels" | "resetchannels";
+ /**
+ * @description Frequent RDB snapshots
+ * When enabled, Valkey will create frequent local RDB snapshots. When disabled, Valkey will only take RDB snapshots when a backup is created, based on the backup schedule. This setting is ignored when valkey_persistence is set to off.
+ * @default true
+ * @example true
+ */
+ frequent_snapshots?: boolean;
+ /**
+ * @description Active expire effort
+ * Valkey reclaims expired keys both when accessed and in the background. The background process scans for expired keys to free memory. Increasing the active-expire-effort setting (default 1, max 10) uses more CPU to reclaim expired keys faster, reducing memory usage but potentially increasing latency.
+ * @default 1
+ * @example 1
+ */
+ valkey_active_expire_effort?: number;
+ };
+ kafka_advanced_config: {
+ /**
+ * @description Specify the final compression type for a given topic. This configuration accepts the standard compression codecs ('gzip', 'snappy', 'lz4', 'zstd'). It additionally accepts 'uncompressed' which is equivalent to no compression; and 'producer' which means retain the original compression codec set by the producer.
+ * @example gzip
+ * @enum {string}
+ */
+ compression_type?: "gzip" | "snappy" | "lz4" | "zstd" | "uncompressed" | "producer";
+ /**
+ * @description The amount of time, in milliseconds, the group coordinator will wait for more consumers to join a new group before performing the first rebalance. A longer delay means potentially fewer rebalances, but increases the time until processing begins. The default value for this is 3 seconds. During development and testing it might be desirable to set this to 0 in order to not delay test execution time.
+ * @example 3000
+ */
+ group_initial_rebalance_delay_ms?: number;
+ /**
+ * @description The minimum allowed session timeout for registered consumers. Longer timeouts give consumers more time to process messages in between heartbeats at the cost of a longer time to detect failures.
+ * @example 6000
+ */
+ group_min_session_timeout_ms?: number;
+ /**
+ * @description The maximum allowed session timeout for registered consumers. Longer timeouts give consumers more time to process messages in between heartbeats at the cost of a longer time to detect failures.
+ * @example 1800000
+ */
+ group_max_session_timeout_ms?: number;
+ /**
+ * @description Idle connections timeout: the server socket processor threads close the connections that idle for longer than this.
+ * @example 540000
+ */
+ connections_max_idle_ms?: number;
+ /**
+ * @description The maximum number of incremental fetch sessions that the broker will maintain.
+ * @example 1000
+ */
+ max_incremental_fetch_session_cache_slots?: number;
+ /**
+ * @description The maximum size of message that the server can receive.
+ * @example 1048588
+ */
+ message_max_bytes?: number;
+ /**
+ * @description Log retention window in minutes for offsets topic
+ * @example 10080
+ */
+ offsets_retention_minutes?: number;
+ /**
+ * @description How long are delete records retained?
+ * @example 86400000
+ */
+ log_cleaner_delete_retention_ms?: number;
+ /**
+ * @description Controls log compactor frequency. Larger value means more frequent compactions but also more space wasted for logs. Consider setting log_cleaner_max_compaction_lag_ms to enforce compactions sooner, instead of setting a very high value for this option.
+ * @example 0.5
+ */
+ log_cleaner_min_cleanable_ratio?: number;
+ /**
+ * @description The maximum amount of time message will remain uncompacted. Only applicable for logs that are being compacted
+ * @example 60000
+ */
+ log_cleaner_max_compaction_lag_ms?: number;
+ /**
+ * @description The minimum time a message will remain uncompacted in the log. Only applicable for logs that are being compacted.
+ * @example 100000
+ */
+ log_cleaner_min_compaction_lag_ms?: number;
+ /**
+ * @description The default cleanup policy for segments beyond the retention window
+ * @example delete
+ * @enum {string}
+ */
+ log_cleanup_policy?: "delete" | "compact" | "compact,delete";
+ /**
+ * @description The number of messages accumulated on a log partition before messages are flushed to disk
+ * @example 9223372036854776000
+ */
+ log_flush_interval_messages?: number;
+ /**
+ * @description The maximum time in ms that a message in any topic is kept in memory before flushed to disk. If not set, the value in log.flush.scheduler.interval.ms is used
+ * @example 1000000
+ */
+ log_flush_interval_ms?: number;
+ /**
+ * @description The interval with which Kafka adds an entry to the offset index
+ * @example 4096
+ */
+ log_index_interval_bytes?: number;
+ /**
+ * @description The maximum size in bytes of the offset index
+ * @example 10485760
+ */
+ log_index_size_max_bytes?: number;
+ /**
+ * @description This configuration controls whether down-conversion of message formats is enabled to satisfy consume requests.
+ * @example true
+ */
+ log_message_downconversion_enable?: boolean;
+ /**
+ * @description Define whether the timestamp in the message is message create time or log append time.
+ * @example CreateTime
+ * @enum {string}
+ */
+ log_message_timestamp_type?: "CreateTime" | "LogAppendTime";
+ /**
+ * @description The maximum difference allowed between the timestamp when a broker receives a message and the timestamp specified in the message
+ * @example 1000000
+ */
+ log_message_timestamp_difference_max_ms?: number;
+ /**
+ * @description Controls whether to preallocate a file when creating a new segment
+ * @example false
+ */
+ log_preallocate?: boolean;
+ /**
+ * @description The maximum size of the log before deleting messages
+ * @example 1000000
+ */
+ log_retention_bytes?: number;
+ /**
+ * @description The number of hours to keep a log file before deleting it
+ * @example 1000000
+ */
+ log_retention_hours?: number;
+ /**
+ * @description The number of milliseconds to keep a log file before deleting it (in milliseconds), If not set, the value in log.retention.minutes is used. If set to -1, no time limit is applied.
+ * @example 100000000
+ */
+ log_retention_ms?: number;
+ /**
+ * @description The maximum jitter to subtract from logRollTimeMillis (in milliseconds). If not set, the value in log.roll.jitter.hours is used
+ * @example 10000000
+ */
+ log_roll_jitter_ms?: number;
+ /**
+ * @description The maximum time before a new log segment is rolled out (in milliseconds).
+ * @example 1000000
+ */
+ log_roll_ms?: number;
+ /**
+ * @description The maximum size of a single log file
+ * @example 100000000
+ */
+ log_segment_bytes?: number;
+ /**
+ * @description The amount of time to wait before deleting a file from the filesystem
+ * @example 60000
+ */
+ log_segment_delete_delay_ms?: number;
+ /**
+ * @description Enable auto creation of topics
+ * @default false
+ * @example true
+ */
+ auto_create_topics_enable?: boolean;
+ /**
+ * @description When a producer sets acks to 'all' (or '-1'), min_insync_replicas specifies the minimum number of replicas that must acknowledge a write for the write to be considered successful.
+ * @example 1
+ */
+ min_insync_replicas?: number;
+ /**
+ * @description Number of partitions for autocreated topics
+ * @example 10
+ */
+ num_partitions?: number;
+ /**
+ * @description Replication factor for autocreated topics
+ * @example 2
+ */
+ default_replication_factor?: number;
+ /**
+ * @description The number of bytes of messages to attempt to fetch for each partition (defaults to 1048576). This is not an absolute maximum, if the first record batch in the first non-empty partition of the fetch is larger than this value, the record batch will still be returned to ensure that progress can be made.
+ * @example 2097152
+ */
+ replica_fetch_max_bytes?: number;
+ /**
+ * @description Maximum bytes expected for the entire fetch response (defaults to 10485760). Records are fetched in batches, and if the first record batch in the first non-empty partition of the fetch is larger than this value, the record batch will still be returned to ensure that progress can be made. As such, this is not an absolute maximum.
+ * @example 20971520
+ */
+ replica_fetch_response_max_bytes?: number;
+ /**
+ * @description The maximum number of connections allowed from each ip address (defaults to 2147483647).
+ * @example 512
+ */
+ max_connections_per_ip?: number;
+ /**
+ * @description The purge interval (in number of requests) of the producer request purgatory (defaults to 1000).
+ * @example 100
+ */
+ producer_purgatory_purge_interval_requests?: number;
+ /**
+ * @description The maximum number of bytes in a socket request (defaults to 104857600).
+ * @example 20971520
+ */
+ socket_request_max_bytes?: number;
+ /**
+ * @description The transaction topic segment bytes should be kept relatively small in order to facilitate faster log compaction and cache loads (defaults to 104857600 (100 mebibytes)).
+ * @example 104857600
+ */
+ transaction_state_log_segment_bytes?: number;
+ /**
+ * @description The interval at which to remove transactions that have expired due to transactional.id.expiration.ms passing (defaults to 3600000 (1 hour)).
+ * @example 3600000
+ */
+ transaction_remove_expired_transaction_cleanup_interval_ms?: number;
+ /**
+ * @description Enable creation of schema registry for the Kafka cluster. Schema_registry only works with General Purpose - Dedicated CPU plans.
+ * @default false
+ * @example true
+ */
+ schema_registry?: boolean;
+ };
+ opensearch_advanced_config: {
+ /**
+ * @description Maximum content length for HTTP requests to the OpenSearch HTTP API, in bytes.
+ * @default 100000000
+ * @example 100000000
+ */
+ http_max_content_length_bytes?: number;
+ /**
+ * @description Maximum size of allowed headers, in bytes.
+ * @default 8192
+ * @example 8192
+ */
+ http_max_header_size_bytes?: number;
+ /**
+ * @description Maximum length of an HTTP URL, in bytes.
+ * @default 4096
+ * @example 4096
+ */
+ http_max_initial_line_length_bytes?: number;
+ /**
+ * @description Maximum number of clauses Lucene BooleanQuery can have. Only increase it if necessary, as it may cause performance issues.
+ * @default 1024
+ * @example 1024
+ */
+ indices_query_bool_max_clause_count?: number;
+ /**
+ * @description Maximum amount of heap memory used for field data cache, expressed as a percentage. Decreasing the value too much will increase overhead of loading field data. Increasing the value too much will decrease amount of heap available for other operations.
+ * @example 3
+ */
+ indices_fielddata_cache_size_percentage?: number;
+ /**
+ * @description Total amount of heap used for indexing buffer before writing segments to disk, expressed as a percentage. Too low value will slow down indexing; too high value will increase indexing performance but causes performance issues for query performance.
+ * @default 10
+ * @example 10
+ */
+ indices_memory_index_buffer_size_percentage?: number;
+ /**
+ * @description Minimum amount of heap used for indexing buffer before writing segments to disk, in mb. Works in conjunction with indices_memory_index_buffer_size_percentage, each being enforced.
+ * @default 48
+ * @example 48
+ */
+ indices_memory_min_index_buffer_size_mb?: number;
+ /**
+ * @description Maximum amount of heap used for indexing buffer before writing segments to disk, in mb. Works in conjunction with indices_memory_index_buffer_size_percentage, each being enforced. The default is unbounded.
+ * @example 48
+ */
+ indices_memory_max_index_buffer_size_mb?: number;
+ /**
+ * @description Maximum amount of heap used for query cache. Too low value will decrease query performance and increase performance for other operations; too high value will cause issues with other functionality.
+ * @default 10
+ * @example 10
+ */
+ indices_queries_cache_size_percentage?: number;
+ /**
+ * @description Limits total inbound and outbound recovery traffic for each node, expressed in mb per second. Applies to both peer recoveries as well as snapshot recoveries (i.e., restores from a snapshot).
+ * @default 40
+ * @example 40
+ */
+ indices_recovery_max_mb_per_sec?: number;
+ /**
+ * @description Maximum number of file chunks sent in parallel for each recovery.
+ * @default 2
+ * @example 2
+ */
+ indices_recovery_max_concurrent_file_chunks?: number;
+ /**
+ * @description Number of workers in the search operation thread pool. Do note this may have maximum value depending on CPU count - value is automatically lowered if set to higher than maximum value.
+ * @example 1
+ */
+ thread_pool_search_size?: number;
+ /**
+ * @description Number of workers in the search throttled operation thread pool. This pool is used for searching frozen indices. Do note this may have maximum value depending on CPU count - value is automatically lowered if set to higher than maximum value.
+ * @example 1
+ */
+ thread_pool_search_throttled_size?: number;
+ /**
+ * @description Number of workers in the get operation thread pool. Do note this may have maximum value depending on CPU count - value is automatically lowered if set to higher than maximum value.
+ * @example 1
+ */
+ thread_pool_get_size?: number;
+ /**
+ * @description Number of workers in the analyze operation thread pool. Do note this may have maximum value depending on CPU count - value is automatically lowered if set to higher than maximum value.
+ * @example 1
+ */
+ thread_pool_analyze_size?: number;
+ /**
+ * @description Number of workers in the write operation thread pool. Do note this may have maximum value depending on CPU count - value is automatically lowered if set to higher than maximum value.
+ * @example 1
+ */
+ thread_pool_write_size?: number;
+ /**
+ * @description Number of workers in the force merge operation thread pool. This pool is used for forcing a merge between shards of one or more indices. Do note this may have maximum value depending on CPU count - value is automatically lowered if set to higher than maximum value.
+ * @example 1
+ */
+ thread_pool_force_merge_size?: number;
+ /**
+ * @description Size of queue for operations in the search thread pool.
+ * @example 10
+ */
+ thread_pool_search_queue_size?: number;
+ /**
+ * @description Size of queue for operations in the search throttled thread pool.
+ * @example 10
+ */
+ thread_pool_search_throttled_queue_size?: number;
+ /**
+ * @description Size of queue for operations in the get thread pool.
+ * @example 10
+ */
+ thread_pool_get_queue_size?: number;
+ /**
+ * @description Size of queue for operations in the analyze thread pool.
+ * @example 10
+ */
+ thread_pool_analyze_queue_size?: number;
+ /**
+ * @description Size of queue for operations in the write thread pool.
+ * @example 10
+ */
+ thread_pool_write_queue_size?: number;
+ /**
+ * @description Specifies whether ISM is enabled or not.
+ * @default true
+ * @example true
+ */
+ ism_enabled?: boolean;
+ /**
+ * @description Specifies whether audit history is enabled or not. The logs from ISM are automatically indexed to a logs document.
+ * @default true
+ * @example true
+ */
+ ism_history_enabled?: boolean;
+ /**
+ * @description Maximum age before rolling over the audit history index, in hours.
+ * @default 24
+ * @example 24
+ */
+ ism_history_max_age_hours?: number;
+ /**
+ * @description Maximum number of documents before rolling over the audit history index.
+ * @default 2500000
+ * @example 2500000
+ */
+ ism_history_max_docs?: number;
+ /**
+ * @description The time between rollover checks for the audit history index, in hours.
+ * @default 8
+ * @example 8
+ */
+ ism_history_rollover_check_period_hours?: number;
+ /**
+ * @description Length of time long audit history indices are kept, in days.
+ * @default 30
+ * @example 30
+ */
+ ism_history_rollover_retention_period_days?: number;
+ /**
+ * @description Maximum number of aggregation buckets allowed in a single response.
+ * @default 10000
+ * @example 10000
+ */
+ search_max_buckets?: number;
+ /**
+ * @description Specifices whether to allow automatic creation of indices.
+ * @default true
+ * @example true
+ */
+ action_auto_create_index_enabled?: boolean;
+ /**
+ * @description Specifies whether to allow security audit logging.
+ * @default false
+ * @example false
+ */
+ enable_security_audit?: boolean;
+ /**
+ * @description Specifies whether to require explicit index names when deleting indices.
+ * @example false
+ */
+ action_destructive_requires_name?: boolean;
+ /**
+ * @description Maximum number of shards allowed per data node.
+ * @example 100
+ */
+ cluster_max_shards_per_node?: number;
+ /**
+ * @description Compatibility mode sets OpenSearch to report its version as 7.10 so clients continue to work.
+ * @default false
+ * @example false
+ */
+ override_main_response_version?: boolean;
+ /**
+ * @description Limits the number of inline script compilations within a period of time. Default is use-context
+ * @default use-context
+ * @example 75/5m
+ */
+ script_max_compilations_rate?: string;
+ /**
+ * @description Maximum concurrent incoming/outgoing shard recoveries (normally replicas) are allowed to happen per node .
+ * @default 2
+ * @example 2
+ */
+ cluster_routing_allocation_node_concurrent_recoveries?: number;
+ /**
+ * @description Allowlist of remote IP addresses for reindexing. Changing this value will cause all OpenSearch instances to restart.
+ * @example [
+ * "255.255.223.233:9200",
+ * "222.33.222.222:6300"
+ * ]
+ */
+ reindex_remote_whitelist?: string[];
+ /**
+ * @description Enable or disable filtering of alerting by backend roles.
+ * @default false
+ * @example false
+ */
+ plugins_alerting_filter_by_backend_roles_enabled?: boolean;
+ /**
+ * @description Enable or disable KNN memory circuit breaker.
+ * @default true
+ * @example true
+ */
+ knn_memory_circuit_breaker_enabled?: boolean;
+ /**
+ * @description Maximum amount of memory in percentage that can be used for the KNN index. Defaults to 50% of the JVM heap size. 0 is used to set it to null which can be used to invalidate caches.
+ * @default 50
+ * @example 60
+ */
+ knn_memory_circuit_breaker_limit?: number;
+ /**
+ * @description DigitalOcean automatically resets the `index.refresh_interval` to the default value (once per second) to ensure that new documents are quickly available for search queries. If you are setting your own refresh intervals, you can disable this by setting this field to true.
+ * @default false
+ * @example true
+ */
+ keep_index_refresh_interval?: boolean;
+ };
+ mongo_advanced_config: {
+ /**
+ * @description Specifies the default consistency behavior of reads from the database. Data that is returned from the query with may or may not have been acknowledged by all nodes in the replicaset depending on this value. Learn more [here](https://www.mongodb.com/docs/manual/reference/read-concern/).
+ * @default local
+ * @example local
+ * @enum {string}
+ */
+ default_read_concern?: "local" | "available" | "majority";
+ /**
+ * @description Describes the level of acknowledgment requested from MongoDB for write operations clusters. This field can set to either `majority` or a number `0...n` which will describe the number of nodes that must acknowledge the write operation before it is fully accepted. Setting to `0` will request no acknowledgement of the write operation. Learn more [here](https://www.mongodb.com/docs/manual/reference/write-concern/).
+ * @default majority
+ * @example majority
+ */
+ default_write_concern?: string;
+ /**
+ * @description Specifies the lifetime of multi-document transactions. Transactions that exceed this limit are considered expired and will be aborted by a periodic cleanup process. The cleanup process runs every `transactionLifetimeLimitSeconds/2 seconds` or at least once every 60 seconds. *Changing this parameter will lead to a restart of the MongoDB service.* Learn more [here](https://www.mongodb.com/docs/manual/reference/parameters/#mongodb-parameter-param.transactionLifetimeLimitSeconds).
+ * @default 60
+ * @example 100
+ */
+ transaction_lifetime_limit_seconds?: number;
+ /**
+ * @description Operations that run for longer than this threshold are considered slow which are then recorded to the diagnostic logs. Higher log levels (verbosity) will record all operations regardless of this threshold on the primary node. *Changing this parameter will lead to a restart of the MongoDB service.* Learn more [here](https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-operationProfiling.slowOpThresholdMs).
+ * @default 100
+ * @example 200
+ */
+ slow_op_threshold_ms?: number;
+ /**
+ * @description The log message verbosity level. The verbosity level determines the amount of Informational and Debug messages MongoDB outputs. 0 includes informational messages while 1...5 increases the level to include debug messages. *Changing this parameter will lead to a restart of the MongoDB service.* Learn more [here](https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-systemLog.verbosity).
+ * @default 0
+ * @example 3
+ */
+ verbosity?: number;
+ };
+ database_config: {
+ config?: components["schemas"]["mysql_advanced_config"] | components["schemas"]["postgres_advanced_config"] | components["schemas"]["redis_advanced_config"] | components["schemas"]["valkey_advanced_config"] | components["schemas"]["mongo_advanced_config"] | components["schemas"]["kafka_advanced_config"] | components["schemas"]["opensearch_advanced_config"];
+ };
+ ca: {
+ /**
+ * @description base64 encoding of the certificate used to secure database connections
+ * @example LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVRVENDQXFtZ0F3SUJBZ0lVRUZZWTdBWFZQS0Raam9jb1lpMk00Y0dvcU0wd0RRWUpLb1pJaHZjTkFRRU0KQlFBd09qRTRNRFlHQTFVRUF3d3ZOek0zT1RaaE1XRXRaamhrTUMwME9HSmpMV0V4Wm1NdFpqbGhNVFZsWXprdwpORGhsSUZCeWIycGxZM1FnUTBFd0hoY05NakF3TnpFM01UVTFNREEyV2hjTk16QXdOekUxTVRVMU1EQTJXakE2Ck1UZ3dOZ1lEVlFRRERDODNNemM1Tm1FeFlTMW1PR1F3TFRRNFltTXRZVEZtWXkxbU9XRXhOV1ZqT1RBME9HVWcKVUhKdmFtVmpkQ0JEUVRDQ0FhSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnR1BBRENDQVlvQ2dnR0JBTVdScXhycwpMZnpNdHZyUmxKVEw4MldYMVBLZkhKbitvYjNYcmVBY3FZd1dBUUp2Q3IycmhxSXZieVZzMGlaU0NzOHI4c3RGClljQ0R1bkxJNmUwTy9laERZYTBIT2RrMkFFRzE1ckVOVmNha2NSczcyQWlHVHNrdkNXS2VkUjFTUWswVWt0WCsKQUg4S1ExS3F5bzNtZ2Y2cVV1WUpzc3JNTXFselk3YTN1RVpEb2ZqTjN5Q3MvM21pTVJKcVcyNm1JV0IrUUlEbAo5YzdLRVF5MTZvdCtjeHVnd0lLMm9oZHMzaFY1bjBKMFVBM0I3QWRBdXY5aUl5L3JHaHlTNm5CNTdaWm9JZnAyCnFybXdOY0UrVjlIdXhQSGtRVjFOQjUwOFFudWZ4Z0E5VCtqU2VrdGVUbWFORkxqNjFXL3BtcndrTytOaWFXUTIKaGgzVXBKOEozY1BoNkErbHRnUmpSV2NEb2lsYVNwRVVpU09WemNNYVFvalZKYVJlNk9NbnZYc29NaSs3ZzdneApWcittQ0lUcGcvck9DaXpBWWQ2UFAxLzdYTjk1ZXNmU2tBQnM5c3hJakpjTUFqbDBYTEFzRmtGZVdyeHNIajlVCmJnaDNWYXdtcnpUeXhZT0RQcXV1cS9JcGlwc0RRT3Fpb2ZsUStkWEJJL3NUT0NNbVp6K0pNcG5HYXdJREFRQUIKb3o4d1BUQWRCZ05WSFE0RUZnUVVSekdDRlE3WEtUdHRDN3JzNS8ydFlQcExTZGN3RHdZRFZSMFRCQWd3QmdFQgovd0lCQURBTEJnTlZIUThFQkFNQ0FRWXdEUVlKS29aSWh2Y05BUUVNQlFBRGdnR0JBSWFKQ0dSVVNxUExtcmcvCmk3MW10b0NHUDdzeG1BVXVCek1oOEdrU25uaVdaZnZGMTRwSUtqTlkwbzVkWmpHKzZqK1VjalZtK0RIdGE1RjYKOWJPeEk5S0NFeEI1blBjRXpMWjNZYitNOTcrellxbm9zUm85S21DVFJBb2JrNTZ0WU1FS1h1aVJja2tkMm1yUQo4cGw2N2xxdThjM1V4c0dHZEZVT01wMkk3ZTNpdUdWVm5UR0ZWM3JQZUdaQ0J3WGVyUUQyY0F4UjkzS3BnWVZ2ClhUUzk5dnpSbm1HOHhhUm9EVy9FbEdXZ2xWd0Q5a1JrbXhUUkdoYTdDWVZCcjFQVWY2dVVFVjhmVFIxc1hFZnIKLytMR1JoSVVsSUhWT3l2Yzk3YnZYQURPbWF1MWZDVE5lWGtRdTNyZnZFSlBmaFlLeVIwT0V3eWVvdlhRNzl0LwpTV2ZGTjBreU1Pc1UrNVNIdHJKSEh1eWNWcU0yQlVVK083VjM1UnNwOU9MZGRZMFFVbTZldFpEVEhhSUhYYzRRCnl1Rm1OL1NhSFZtNE0wL3BTVlJQdVd6TmpxMnZyRllvSDRtbGhIZk95TUNJMjc2elE2aWhGNkdDSHlkOUJqajcKUm1UWGEyNHM3NWhmSi9YTDV2bnJSdEtpVHJlVHF6V21EOVhnUmNMQ0gyS1hJaVRtSWc9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
+ */
+ readonly certificate: string;
+ };
+ online_migration: {
+ /**
+ * @description The ID of the most recent migration.
+ * @example 77b28fc8-19ff-11eb-8c9c-c68e24557488
+ */
+ id?: string;
+ /**
+ * @description The current status of the migration.
+ * @example running
+ * @enum {string}
+ */
+ status?: "running" | "syncing" | "canceled" | "error" | "done";
+ /**
+ * @description The time the migration was initiated, in ISO 8601 format.
+ * @example 2020-10-29T15:57:38Z
+ */
+ created_at?: string;
+ };
+ source_database: {
+ source: {
+ /**
+ * @description The FQDN pointing to the database cluster's current primary node.
+ * @example db.example.com
+ */
+ host?: string;
+ /**
+ * @description The port on which the database cluster is listening.
+ * @example 25060
+ */
+ port?: number;
+ /**
+ * @description The name of the default database.
+ * @example defaultdb
+ */
+ dbname?: string;
+ /**
+ * @description The default user for the database.
+ * @example doadmin
+ */
+ username?: string;
+ /**
+ * @description The randomly generated password for the default user.
+ * @example example_password
+ */
+ password?: string;
+ };
+ /**
+ * @description Enables SSL encryption when connecting to the source database.
+ * @example false
+ */
+ disable_ssl?: boolean;
+ /**
+ * @description List of databases that should be ignored during migration.
+ * @default []
+ * @example [
+ * "db0",
+ * "db1"
+ * ]
+ */
+ ignore_dbs?: string[];
+ };
+ database_cluster_resize: {
+ /**
+ * @description A slug identifier representing desired the size of the nodes in the database cluster.
+ * @example db-s-4vcpu-8gb
+ */
+ size: string;
+ /**
+ * Format: int32
+ * @description The number of nodes in the database cluster. Valid values are are 1-3. In addition to the primary node, up to two standby nodes may be added for highly available configurations.
+ * @example 3
+ */
+ num_nodes: number;
+ /**
+ * @description Additional storage added to the cluster, in MiB. If null, no additional storage is added to the cluster, beyond what is provided as a base amount from the 'size' and any previously added additional storage.
+ * @example 61440
+ */
+ storage_size_mib?: number;
+ };
+ backup: {
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format at which the backup was created.
+ * @example 2019-01-31T19:25:22Z
+ */
+ created_at: string;
+ /**
+ * @description The size of the database backup in GBs.
+ * @example 0.03364864
+ */
+ size_gigabytes: number;
+ /**
+ * @description Indicates if this backup is a full or an incremental one (available only for MySQL).
+ * @example false
+ */
+ incremental?: boolean;
+ };
+ database_replica_read: {
+ /**
+ * Format: uuid
+ * @description A unique ID that can be used to identify and reference a database replica.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ readonly id?: string;
+ /**
+ * @description The name to give the read-only replicating
+ * @example read-nyc3-01
+ */
+ name: string;
+ /**
+ * @description A slug identifier for the region where the read-only replica will be located. If excluded, the replica will be placed in the same region as the cluster.
+ * @example nyc3
+ */
+ region?: string;
+ /**
+ * @description A slug identifier representing the size of the node for the read-only replica. The size of the replica must be at least as large as the node size for the database cluster from which it is replicating.
+ * @example db-s-2vcpu-4gb
+ */
+ size?: string;
+ /**
+ * @description A string representing the current status of the database cluster.
+ * @example creating
+ * @enum {string}
+ */
+ readonly status?: "creating" | "online" | "resizing" | "migrating" | "forking";
+ /**
+ * @description A flat array of tag names as strings applied to the read-only replica. Requires `tag:read` scope.
+ * @example [
+ * "production"
+ * ]
+ */
+ tags?: string[];
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the database cluster was created.
+ * @example 2019-01-11T18:37:36Z
+ */
+ readonly created_at?: string;
+ /**
+ * @description A string specifying the UUID of the VPC to which the read-only replica will be assigned. If excluded, the replica will be assigned to your account's default VPC for the region. Requires `vpc:read` scope.
+ * @example 9423cbad-9211-442f-820b-ef6915e99b5f
+ */
+ private_network_uuid?: string;
+ connection?: unknown & components["schemas"]["database_connection"];
+ private_connection?: unknown & components["schemas"]["database_connection"];
+ /**
+ * @description Additional storage added to the cluster, in MiB. If null, no additional storage is added to the cluster, beyond what is provided as a base amount from the 'size' and any previously added additional storage.
+ * @example 61440
+ */
+ storage_size_mib?: number;
+ do_settings?: components["schemas"]["do_settings"] & unknown;
+ };
+ database_replica: {
+ /**
+ * Format: uuid
+ * @description A unique ID that can be used to identify and reference a database replica.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ readonly id?: string;
+ /**
+ * @description The name to give the read-only replicating
+ * @example read-nyc3-01
+ */
+ name: string;
+ /**
+ * @description A slug identifier for the region where the read-only replica will be located. If excluded, the replica will be placed in the same region as the cluster.
+ * @example nyc3
+ */
+ region?: string;
+ /**
+ * @description A slug identifier representing the size of the node for the read-only replica. The size of the replica must be at least as large as the node size for the database cluster from which it is replicating.
+ * @example db-s-2vcpu-4gb
+ */
+ size?: string;
+ /**
+ * @description A string representing the current status of the database cluster.
+ * @example creating
+ * @enum {string}
+ */
+ readonly status?: "creating" | "online" | "resizing" | "migrating" | "forking";
+ /**
+ * @description A flat array of tag names as strings to apply to the read-only replica after it is created. Tag names can either be existing or new tags. Requires `tag:create` scope.
+ * @example [
+ * "production"
+ * ]
+ */
+ tags?: string[];
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the database cluster was created.
+ * @example 2019-01-11T18:37:36Z
+ */
+ readonly created_at?: string;
+ /**
+ * @description A string specifying the UUID of the VPC to which the read-only replica will be assigned. If excluded, the replica will be assigned to your account's default VPC for the region. Requires `vpc:read` scope.
+ * @example 9423cbad-9211-442f-820b-ef6915e99b5f
+ */
+ private_network_uuid?: string;
+ connection?: unknown & components["schemas"]["database_connection"];
+ private_connection?: unknown & components["schemas"]["database_connection"];
+ /**
+ * @description Additional storage added to the cluster, in MiB. If null, no additional storage is added to the cluster, beyond what is provided as a base amount from the 'size' and any previously added additional storage.
+ * @example 61440
+ */
+ storage_size_mib?: number;
+ do_settings?: components["schemas"]["do_settings"] & unknown;
+ };
+ events_logs: {
+ /**
+ * @description ID of the particular event.
+ * @example pe8u2huh
+ */
+ id?: string;
+ /**
+ * @description The name of cluster.
+ * @example sample_cluster
+ */
+ cluster_name?: string;
+ /**
+ * @description Type of the event.
+ * @example cluster_create
+ * @enum {string}
+ */
+ event_type?: "cluster_maintenance_perform" | "cluster_master_promotion" | "cluster_create" | "cluster_update" | "cluster_delete" | "cluster_poweron" | "cluster_poweroff";
+ /**
+ * @description The time of the generation of a event.
+ * @example 2020-10-29T15:57:38Z
+ */
+ create_time?: string;
+ };
+ /**
+ * @description User settings that can be updated via the Update a Database User endpoint.
+ * Supported for PostgreSQL, Kafka, and OpenSearch clusters. For other engines,
+ * the request returns a 422. MongoDB user roles and database access
+ * (`mongo_user_settings`) cannot be updated after creation; recreate the user
+ * to change them.
+ */
+ user_settings_update: {
+ /**
+ * @description For PostgreSQL clusters, set to `true` to grant the user replication
+ * privileges. When omitted on create or update, the value defaults to
+ * `false` and replication privileges are not granted. This option is not
+ * currently supported for other database engines.
+ * @example true
+ */
+ pg_allow_replication?: boolean;
+ /** @description ACLs (Access Control Lists) specifying permissions on index within a OpenSearch cluster. */
+ opensearch_acl?: {
+ /**
+ * @description A regex for matching the indexes that this ACL should apply to.
+ * @example index-abc.*
+ */
+ index?: string;
+ /**
+ * @description Permission set applied to the ACL. 'read' allows user to read from the index. 'write' allows for user to write to the index. 'readwrite' allows for both 'read' and 'write' permission. 'deny'(default) restricts user from performing any operation over an index. 'admin' allows for 'readwrite' as well as any operations to administer the index.
+ * @example read
+ * @enum {string}
+ */
+ permission?: "deny" | "admin" | "read" | "readwrite" | "write";
+ }[];
+ /** @description ACLs (Access Control Lists) specifying permissions on topics within a Kafka cluster. */
+ acl?: {
+ /**
+ * @description An identifier for the ACL. Will be computed after the ACL is created/updated.
+ * @example aaa
+ */
+ id?: string;
+ /**
+ * @description A regex for matching the topic(s) that this ACL should apply to.
+ * @example topic-abc.*
+ */
+ topic: string;
+ /**
+ * @description Permission set applied to the ACL. 'consume' allows for messages to be consumed from the topic. 'produce' allows for messages to be published to the topic. 'produceconsume' allows for both 'consume' and 'produce' permission. 'admin' allows for 'produceconsume' as well as any operations to administer the topic (delete, update).
+ * @example consume
+ * @enum {string}
+ */
+ permission: "admin" | "consume" | "produce" | "produceconsume";
+ }[];
+ };
+ database: {
+ /**
+ * @description The name of the database.
+ * @example alpha
+ */
+ name: string;
+ };
+ connection_pool: {
+ /**
+ * @description A unique name for the connection pool. Must be between 3 and 60 characters.
+ * @example backend-pool
+ */
+ name: string;
+ /**
+ * @description The PGBouncer transaction mode for the connection pool. The allowed values are session, transaction, and statement.
+ * @example transaction
+ */
+ mode: string;
+ /**
+ * Format: int32
+ * @description The desired size of the PGBouncer connection pool. The maximum allowed size is determined by the size of the cluster's primary node. 25 backend server connections are allowed for every 1GB of RAM. Three are reserved for maintenance. For example, a primary node with 1 GB of RAM allows for a maximum of 22 backend server connections while one with 4 GB would allow for 97. Note that these are shared across all connection pools in a cluster.
+ * @example 10
+ */
+ size: number;
+ /**
+ * @description The database for use with the connection pool.
+ * @example defaultdb
+ */
+ db: string;
+ /**
+ * @description The name of the user for use with the connection pool. When excluded, all sessions connect to the database as the inbound user.
+ * @example doadmin
+ */
+ user?: string;
+ connection?: components["schemas"]["database_connection"] & unknown;
+ private_connection?: components["schemas"]["database_connection"] & unknown;
+ standby_connection?: components["schemas"]["database_connection"] & unknown;
+ standby_private_connection?: components["schemas"]["database_connection"] & unknown;
+ };
+ connection_pools: {
+ /** @description An array of connection pool objects. */
+ readonly pools?: components["schemas"]["connection_pool"][];
+ };
+ connection_pool_update: {
+ /**
+ * @description The PGBouncer transaction mode for the connection pool. The allowed values are session, transaction, and statement.
+ * @example transaction
+ */
+ mode: string;
+ /**
+ * Format: int32
+ * @description The desired size of the PGBouncer connection pool. The maximum allowed size is determined by the size of the cluster's primary node. 25 backend server connections are allowed for every 1GB of RAM. Three are reserved for maintenance. For example, a primary node with 1 GB of RAM allows for a maximum of 22 backend server connections while one with 4 GB would allow for 97. Note that these are shared across all connection pools in a cluster.
+ * @example 10
+ */
+ size: number;
+ /**
+ * @description The database for use with the connection pool.
+ * @example defaultdb
+ */
+ db: string;
+ /**
+ * @description The name of the user for use with the connection pool. When excluded, all sessions connect to the database as the inbound user.
+ * @example doadmin
+ */
+ user?: string;
+ };
+ sql_mode: {
+ /**
+ * @description A string specifying the configured SQL modes for the MySQL cluster.
+ * @example ANSI,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,STRICT_ALL_TABLES
+ */
+ sql_mode: string;
+ };
+ /**
+ * @description A string representing the version of the database engine in use for the cluster.
+ * @example 8
+ */
+ version: string;
+ "version-2": {
+ version?: components["schemas"]["version"];
+ };
+ kafka_topic_base: {
+ /**
+ * @description The name of the Kafka topic.
+ * @example events
+ */
+ name?: string;
+ /**
+ * @description The number of nodes to replicate data across the cluster.
+ * @example 2
+ */
+ replication_factor?: number;
+ /**
+ * @description The number of partitions available for the topic. On update, this value can only be increased.
+ * @example 3
+ */
+ partition_count?: number;
+ };
+ kafka_topic: components["schemas"]["kafka_topic_base"] & {
+ /**
+ * @description The state of the Kafka topic.
+ * @example active
+ * @enum {string}
+ */
+ state?: "active" | "configuring" | "deleting" | "unknown";
+ };
+ kafka_topic_config: {
+ /**
+ * @description The cleanup_policy sets the retention policy to use on log segments. 'delete' will discard old segments when retention time/size limits are reached. 'compact' will enable log compaction, resulting in retention of the latest value for each key.
+ * @default delete
+ * @example delete
+ * @enum {string}
+ */
+ cleanup_policy?: "delete" | "compact" | "compact_delete";
+ /**
+ * @description The compression_type specifies the compression type of the topic.
+ * @default producer
+ * @example producer
+ * @enum {string}
+ */
+ compression_type?: "producer" | "gzip" | "snappy" | "Iz4" | "zstd" | "uncompressed";
+ /**
+ * @description The delete_retention_ms specifies how long (in ms) to retain delete tombstone markers for topics.
+ * @default 86400000
+ * @example 86400000
+ */
+ delete_retention_ms?: number;
+ /**
+ * @description The file_delete_delay_ms specifies the time (in ms) to wait before deleting a file from the filesystem.
+ * @default 60000
+ * @example 60000
+ */
+ file_delete_delay_ms?: number;
+ /**
+ * @description The flush_messages specifies the number of messages to accumulate on a log partition before messages are flushed to disk.
+ * @default 9223372036854776000
+ * @example 9223372036854776000
+ */
+ flush_messages?: number;
+ /**
+ * @description The flush_ms specifies the maximum time (in ms) that a message is kept in memory before being flushed to disk.
+ * @default 9223372036854776000
+ * @example 9223372036854776000
+ */
+ flush_ms?: number;
+ /**
+ * @description The index_interval_bytes specifies the number of bytes between entries being added into te offset index.
+ * @default 4096
+ * @example 4096
+ */
+ index_interval_bytes?: number;
+ /**
+ * @description The max_compaction_lag_ms specifies the maximum amount of time (in ms) that a message will remain uncompacted. This is only applicable if the logs are have compaction enabled.
+ * @default 9223372036854776000
+ * @example 9223372036854776000
+ */
+ max_compaction_lag_ms?: number;
+ /**
+ * @description The max_messages_bytes specifies the largest record batch size (in bytes) that can be sent to the server. This is calculated after compression if compression is enabled.
+ * @default 1048588
+ * @example 1048588
+ */
+ max_message_bytes?: number;
+ /**
+ * @description The message_down_conversion_enable specifies whether down-conversion of message formats is enabled to satisfy consumer requests. When 'false', the broker will not perform conversion for consumers expecting older message formats. The broker will respond with an `UNSUPPORTED_VERSION` error for consume requests from these older clients.
+ * @default true
+ * @example true
+ */
+ message_down_conversion_enable?: boolean;
+ /**
+ * @description The message_format_version specifies the message format version used by the broker to append messages to the logs. The value of this setting is assumed to be 3.0-IV1 if the broker protocol version is 3.0 or higher. By setting a particular message format version, all existing messages on disk must be smaller or equal to the specified version.
+ * @default 3.0-IV1
+ * @example 3.0-IV1
+ * @enum {string}
+ */
+ message_format_version?: "0.8.0" | "0.8.1" | "0.8.2" | "0.9.0" | "0.10.0-IV0" | "0.10.0-IV1" | "0.10.1-IV0" | "0.10.1-IV1" | "0.10.1-IV2" | "0.10.2-IV0" | "0.11.0-IV0" | "0.11.0-IV1" | "0.11.0-IV2" | "1.0-IV0" | "1.1-IV0" | "2.0-IV0" | "2.0-IV1" | "2.1-IV0" | "2.1-IV1" | "2.1-IV2" | "2.2-IV0" | "2.2-IV1" | "2.3-IV0" | "2.3-IV1" | "2.4-IV0" | "2.4-IV1" | "2.5-IV0" | "2.6-IV0" | "2.7-IV0" | "2.7-IV1" | "2.7-IV2" | "2.8-IV0" | "2.8-IV1" | "3.0-IV0" | "3.0-IV1" | "3.1-IV0" | "3.2-IV0" | "3.3-IV0" | "3.3-IV1" | "3.3-IV2" | "3.3-IV3";
+ /**
+ * @description The message_timestamp_type specifies whether to use the message create time or log append time as the timestamp on a message.
+ * @default create_time
+ * @example create_time
+ * @enum {string}
+ */
+ message_timestamp_type?: "create_time" | "log_append_time";
+ /**
+ * Format: float
+ * @description The min_cleanable_dirty_ratio specifies the frequency of log compaction (if enabled) in relation to duplicates present in the logs. For example, at 0.5, at most 50% of the log could be duplicates before compaction would begin.
+ * @default 0.5
+ * @example 0.5
+ */
+ min_cleanable_dirty_ratio?: number;
+ /**
+ * @description The min_compaction_lag_ms specifies the minimum time (in ms) that a message will remain uncompacted in the log. Only relevant if log compaction is enabled.
+ * @default 0
+ * @example 0
+ */
+ min_compaction_lag_ms?: number;
+ /**
+ * @description The min_insync_replicas specifies the number of replicas that must ACK a write for the write to be considered successful.
+ * @default 1
+ * @example 1
+ */
+ min_insync_replicas?: number;
+ /**
+ * @description The preallocate specifies whether a file should be preallocated on disk when creating a new log segment.
+ * @default false
+ * @example false
+ */
+ preallocate?: boolean;
+ /**
+ * @description The retention_bytes specifies the maximum size of the log (in bytes) before deleting messages. -1 indicates that there is no limit.
+ * @default -1
+ * @example 1000000
+ */
+ retention_bytes?: number;
+ /**
+ * @description The retention_ms specifies the maximum amount of time (in ms) to keep a message before deleting it.
+ * @default 604800000
+ * @example 604800000
+ */
+ retention_ms?: number;
+ /**
+ * @description The segment_bytes specifies the maximum size of a single log file (in bytes).
+ * @default 209715200
+ * @example 209715200
+ */
+ segment_bytes?: number;
+ /**
+ * @description The segment_jitter_ms specifies the maximum random jitter subtracted from the scheduled segment roll time to avoid thundering herds of segment rolling.
+ * @default 0
+ * @example 0
+ */
+ segment_jitter_ms?: number;
+ /**
+ * @description The segment_ms specifies the period of time after which the log will be forced to roll if the segment file isn't full. This ensures that retention can delete or compact old data.
+ * @default 604800000
+ * @example 604800000
+ */
+ segment_ms?: number;
+ };
+ kafka_topic_create: components["schemas"]["kafka_topic_base"] & {
+ config?: components["schemas"]["kafka_topic_config"];
+ };
+ kafka_topic_partition: {
+ /**
+ * @description Size of the topic partition in bytes.
+ * @example 4096
+ */
+ size?: number;
+ /**
+ * @description An identifier for the partition.
+ * @example 1
+ */
+ id?: number;
+ /**
+ * @description The number of nodes that are in-sync (have the latest data) for the given partition
+ * @example 3
+ */
+ in_sync_replicas?: number;
+ /**
+ * @description The earliest consumer offset amongst consumer groups.
+ * @example 0
+ */
+ earliest_offset?: number;
+ consumer_groups?: {
+ /**
+ * @description Name of the consumer group.
+ * @example consumer
+ */
+ group_name?: string;
+ /**
+ * @description The current offset of the consumer group.
+ * @example 0
+ */
+ offset?: number;
+ }[] | null;
+ };
+ kafka_topic_verbose: {
+ /**
+ * @description The name of the Kafka topic.
+ * @example events
+ */
+ name?: string;
+ /**
+ * @description The state of the Kafka topic.
+ * @example active
+ * @enum {string}
+ */
+ state?: "active" | "configuring" | "deleting" | "unknown";
+ /**
+ * @description The number of nodes to replicate data across the cluster.
+ * @example 2
+ */
+ replication_factor?: number;
+ partitions?: components["schemas"]["kafka_topic_partition"][];
+ config?: components["schemas"]["kafka_topic_config"];
+ };
+ kafka_topic_update: {
+ /**
+ * @description The number of nodes to replicate data across the cluster.
+ * @example 2
+ */
+ replication_factor?: number;
+ /**
+ * @description The number of partitions available for the topic. On update, this value can only be increased.
+ * @example 3
+ */
+ partition_count?: number;
+ config?: components["schemas"]["kafka_topic_config"];
+ };
+ logsink_base_verbose: {
+ /**
+ * @description A unique identifier for Logsink
+ * @example dfcc9f57d86bf58e321c2c6c31c7a971be244ac7
+ */
+ sink_id?: string;
+ /**
+ * @description The name of the Logsink
+ * @example prod-logsink
+ */
+ sink_name?: string;
+ /**
+ * @example rsyslog
+ * @enum {string}
+ */
+ sink_type?: "rsyslog" | "elasticsearch" | "opensearch";
+ };
+ rsyslog_logsink: {
+ /**
+ * @description DNS name or IPv4 address of the rsyslog server
+ * @example 192.168.0.1
+ */
+ server: string;
+ /**
+ * @description The internal port on which the rsyslog server is listening
+ * @example 514
+ */
+ port: number;
+ /**
+ * @description Use TLS (as the messages are not filtered and may contain sensitive information, it is highly recommended to set this to true if the remote server supports it)
+ * @example false
+ */
+ tls: boolean;
+ /**
+ * @description Message format used by the server, this can be either rfc3164 (the old BSD style message format), `rfc5424` (current syslog message format) or custom
+ * @example rfc5424
+ * @enum {string}
+ */
+ format: "rfc5424" | "rfc3164" | "custom";
+ /**
+ * @description Conditional (required if `format` == `custom`).
+ *
+ * Syslog log line template for a custom format, supporting limited rsyslog style templating (using `%tag%`). Supported tags are: `HOSTNAME`, `app-name`, `msg`, `msgid`, `pri`, `procid`, `structured-data`, `timestamp` and `timestamp:::date-rfc3339`.
+ *
+ * ---
+ * **Datadog Integration Example for Non-Mongo clusters**:
+ * ```
+ * DD_KEY <%pri%>1 %timestamp:::date-rfc3339% %HOSTNAME%.DB_NAME %app-name% - - - %msg%
+ * ```
+ * - Replace `DD_KEY` with your actual Datadog API key.
+ * - Replace `DB_NAME` with the actual name of your database cluster.
+ * - Configure the Server:
+ * - US Region: Use `intake.logs.datadoghq.com`
+ * - EU Region: Use `tcp-intake.logs.datadoghq.eu`
+ * - Configure the Port:
+ * - US Region: Use port `10516`
+ * - EU Region: Use port `443`
+ * - Enable TLS:
+ * - Ensure the TLS checkbox is enabled.
+ * - Note: This configuration applies to **non-Mongo clusters only**. For **Mongo clusters**, use the `datadog_logsink` integration instead.
+ * @example <%pri%>%timestamp:::date-rfc3339% %HOSTNAME% %app-name% %msg%
+ */
+ logline?: string;
+ /**
+ * @description content of the structured data block of rfc5424 message
+ * @example TOKEN tag="LiteralValue"
+ */
+ sd?: string;
+ /**
+ * @description PEM encoded CA certificate
+ * @example -----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n
+ */
+ ca?: string;
+ /**
+ * @description (PEM format) client key if the server requires client authentication
+ * @example -----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n
+ */
+ key?: string;
+ /**
+ * @description (PEM format) client cert to use
+ * @example -----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n
+ */
+ cert?: string;
+ };
+ elasticsearch_logsink: {
+ /**
+ * @description Elasticsearch connection URL
+ * @example https://user:passwd@192.168.0.1:9200
+ */
+ url: string;
+ /**
+ * @description Elasticsearch index prefix
+ * @example elastic-logs
+ */
+ index_prefix: string;
+ /**
+ * @description Maximum number of days of logs to keep
+ * @default 7
+ * @example 5
+ */
+ index_days_max?: number;
+ /**
+ * Format: float
+ * @description Elasticsearch request timeout limit
+ * @default 10
+ * @example 10
+ */
+ timeout?: number;
+ /**
+ * @description PEM encoded CA certificate
+ * @example -----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n
+ */
+ ca?: string;
+ };
+ opensearch_logsink: {
+ /**
+ * @description Opensearch connection URL
+ * @example https://user:passwd@192.168.0.1:9200
+ */
+ url: string;
+ /**
+ * @description Opensearch index prefix
+ * @example opensearch-logs
+ */
+ index_prefix: string;
+ /**
+ * @description Maximum number of days of logs to keep
+ * @default 7
+ * @example 5
+ */
+ index_days_max?: number;
+ /**
+ * Format: float
+ * @description Opensearch request timeout limit
+ * @default 10
+ * @example 10
+ */
+ timeout?: number;
+ /**
+ * @description PEM encoded CA certificate
+ * @example -----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n
+ */
+ ca?: string;
+ };
+ /** @description Configuration for Datadog integration **applicable only to MongoDB clusters**. */
+ datadog_logsink: {
+ /**
+ * @description Datadog connection URL
+ * @example http-intake.logs.datadoghq.com
+ */
+ site: string;
+ /**
+ * @description Datadog API key
+ * @example xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+ */
+ datadog_api_key: string;
+ };
+ logsink_verbose: components["schemas"]["logsink_base_verbose"] & {
+ /**
+ * @example {
+ * "config": {
+ * "server": "192.168.0.1",
+ * "port": 514,
+ * "tls": false,
+ * "format": "rfc5424"
+ * }
+ * }
+ */
+ config?: components["schemas"]["rsyslog_logsink"] | components["schemas"]["elasticsearch_logsink"] | components["schemas"]["opensearch_logsink"] | components["schemas"]["datadog_logsink"];
+ };
+ logsink_schema: components["schemas"]["logsink_verbose"];
+ logsink_base: {
+ /**
+ * @description The name of the Logsink
+ * @example prod-logsink
+ */
+ sink_name?: string;
+ /**
+ * @description Type of logsink integration.
+ *
+ * - Use `datadog` for Datadog integration **only with MongoDB clusters**.
+ * - For non-MongoDB clusters, use `rsyslog` for general syslog forwarding.
+ * - Other supported types include `elasticsearch` and `opensearch`.
+ *
+ * More details about the configuration can be found in the `config` property.
+ * @example rsyslog
+ * @enum {string}
+ */
+ sink_type?: "rsyslog" | "elasticsearch" | "opensearch" | "datadog";
+ };
+ logsink_create: components["schemas"]["logsink_base"] & {
+ config?: components["schemas"]["rsyslog_logsink"] | components["schemas"]["elasticsearch_logsink"] | components["schemas"]["opensearch_logsink"] | components["schemas"]["datadog_logsink"];
+ };
+ logsink_update: {
+ config: components["schemas"]["rsyslog_logsink"] | components["schemas"]["elasticsearch_logsink"] | components["schemas"]["opensearch_logsink"] | components["schemas"]["datadog_logsink"];
+ };
+ kafka_schema_verbose: {
+ /**
+ * @description The id for schema.
+ * @example 12345
+ */
+ schema_id?: number;
+ /**
+ * @description The name of the schema subject.
+ * @example customer-schema
+ */
+ subject_name?: string;
+ /**
+ * @description The type of the schema.
+ * @example AVRO
+ * @enum {string}
+ */
+ schema_type?: "AVRO" | "JSON" | "PROTOBUF";
+ /**
+ * @description The schema definition in the specified format.
+ * @example {
+ * "type": "record",
+ * "name": "Customer",
+ * "fields": [
+ * {"name": "id", "type": "int"},
+ * {"name": "name", "type": "string"}
+ * ]
+ * }
+ */
+ schema?: string;
+ };
+ database_kafka_schema_create: {
+ /**
+ * @description The name of the schema subject.
+ * @example customer-schema
+ */
+ subject_name?: string;
+ /**
+ * @description The type of the schema.
+ * @example AVRO
+ * @enum {string}
+ */
+ schema_type?: "AVRO" | "JSON" | "PROTOBUF";
+ /**
+ * @description The schema definition in the specified format.
+ * @example {
+ * "type": "record",
+ * "name": "Customer",
+ * "fields": [
+ * {"name": "id", "type": "int"},
+ * {"name": "name", "type": "string"}
+ * ]
+ * }
+ */
+ schema?: string;
+ };
+ kafka_schema_version_verbose: {
+ /**
+ * @description The id for schema.
+ * @example 12345
+ */
+ schema_id?: number;
+ /**
+ * @description The version of the schema.
+ * @example 1
+ */
+ version?: string;
+ /**
+ * @description The name of the schema subject.
+ * @example customer-schema
+ */
+ subject_name?: string;
+ /**
+ * @description The type of the schema.
+ * @example AVRO
+ * @enum {string}
+ */
+ schema_type?: "AVRO" | "JSON" | "PROTOBUF";
+ /**
+ * @description The schema definition in the specified format.
+ * @example {
+ * "type": "record",
+ * "name": "Customer",
+ * "fields": [
+ * {"name": "id", "type": "int"},
+ * {"name": "name", "type": "string"}
+ * ]
+ * }
+ */
+ schema?: string;
+ };
+ databases_basic_auth_credentials: {
+ /**
+ * @description basic authentication username for metrics HTTP endpoint
+ * @example username
+ */
+ basic_auth_username?: string;
+ /**
+ * @description basic authentication password for metrics HTTP endpoint
+ * @example password
+ */
+ basic_auth_password?: string;
+ };
+ database_metrics_credentials: {
+ credentials?: components["schemas"]["databases_basic_auth_credentials"];
+ };
+ opensearch_index_base: {
+ /**
+ * @description The name of the opensearch index.
+ * @example events
+ */
+ index_name?: string;
+ /**
+ * @description The number of shards for the index.
+ * @example 2
+ */
+ number_of_shards?: number;
+ /**
+ * @description The number of replicas for the index.
+ * @example 3
+ */
+ number_of_replicas?: number;
+ /**
+ * @description The size of the index.
+ * @example 208
+ */
+ size?: number;
+ /**
+ * Format: date-time
+ * @description The date and time the index was created.
+ * @example 2021-01-01T00:00:00Z
+ */
+ created_time?: string;
+ };
+ opensearch_index: components["schemas"]["opensearch_index_base"] & {
+ /**
+ * @description The status of the OpenSearch index.
+ * @example open
+ * @enum {string}
+ */
+ status?: "unknown" | "open" | "close" | "none";
+ /**
+ * @description The health of the OpenSearch index.
+ * @example green
+ * @enum {string}
+ */
+ health?: "unknown" | "green" | "yellow" | "red" | "red*";
+ };
+ accelerator_config_spec: {
+ /**
+ * @description Number of accelerator instances.
+ * @example 1
+ */
+ scale: number;
+ /**
+ * @description Accelerator type (e.g. prefill_decode).
+ * @example prefill_decode
+ */
+ type: string;
+ /**
+ * @description DigitalOcean GPU slug.
+ * @example gpu-mi300x1-192gb
+ */
+ accelerator_slug: string;
+ /**
+ * @description Current state of the Accelerator.
+ * @example active
+ * @enum {string}
+ */
+ readonly status?: "new" | "provisioning" | "active";
+ };
+ /** @description Configuration for a single model deployment. */
+ model_deployment_spec: {
+ /**
+ * @description Used to identify an existing deployment when updating; empty means create new.
+ * @example
+ */
+ model_id?: string;
+ /**
+ * @description Model identifier (e.g. Hugging Face slug).
+ * @example mistral/mistral-7b-instruct-v3
+ */
+ model_slug?: string;
+ /**
+ * @description Model provider.
+ * @example hugging_face
+ * @enum {string}
+ */
+ model_provider?: "hugging_face";
+ /** @description Workload-specific configuration (e.g. ISL/OSL in future). */
+ workload_config?: Record;
+ /** @description Accelerator configuration for this deployment. */
+ accelerators?: components["schemas"]["accelerator_config_spec"][];
+ };
+ /** @description Structured configuration for a Dedicated Inference deployment. */
+ dedicated_inference_spec: {
+ /**
+ * @description Spec version.
+ * @example 1
+ */
+ version: number;
+ /**
+ * @description Name of the Dedicated Inference. Must be unique within the team.
+ * @example new-dedicated-inference
+ */
+ name: string;
+ /**
+ * @description DigitalOcean region where the Dedicated Inference is hosted.
+ * @example atl1
+ * @enum {string}
+ */
+ region: "atl1" | "nyc2" | "tor1";
+ vpc: {
+ /**
+ * Format: uuid
+ * @description VPC UUID for the Dedicated Inference.
+ * @example 997615ce-132d-4bae-9270-9ee21b395e5d
+ */
+ uuid: string;
+ };
+ /** @description Whether to expose a public LLM endpoint. */
+ enable_public_endpoint: boolean;
+ /** @description At least one model deployment is required. */
+ model_deployments: components["schemas"]["model_deployment_spec"][];
+ };
+ /** @description Pending deployment when status is provisioning or updating. */
+ pending_deployment_spec: {
+ /**
+ * Format: uuid
+ * @description Deployment UUID.
+ * @example 7c6d729d-360d-44db-88e3-58e98281d12e
+ */
+ id?: string;
+ /**
+ * @description Spec version.
+ * @example 1
+ */
+ version?: number;
+ /**
+ * @description Name of the Dedicated Inference. Must be unique within the team.
+ * @example new-dedicated-inference
+ */
+ name?: string;
+ /**
+ * @example provisioning
+ * @enum {string}
+ */
+ status?: "provisioning" | "updating";
+ vpc?: {
+ /**
+ * Format: uuid
+ * @description VPC UUID for the Dedicated Inference.
+ * @example 997615ce-132d-4bae-9270-9ee21b395e5d
+ */
+ uuid: string;
+ };
+ /** @description Whether to expose a public LLM endpoint. */
+ enable_public_endpoint?: boolean;
+ /** @description At least one model deployment is required. */
+ model_deployments?: components["schemas"]["model_deployment_spec"][];
+ /**
+ * Format: date-time
+ * @example 2024-01-09T20:44:32Z
+ */
+ created_at?: string;
+ /**
+ * Format: date-time
+ * @example 2024-01-09T20:44:32Z
+ */
+ updated_at?: string;
+ };
+ /** @description A Dedicated Inference instance. */
+ dedicated_inference: {
+ /**
+ * Format: uuid
+ * @description Unique ID of the Dedicated Inference.
+ * @example 6b5c619c-359c-44ca-87e2-47e98170c01d
+ */
+ readonly id?: string;
+ /**
+ * @description Current state of the Dedicated Inference.
+ * @example active
+ * @enum {string}
+ */
+ readonly status?: "active" | "new" | "provisioning" | "updating" | "deleting" | "error";
+ /**
+ * @description DigitalOcean region where the Dedicated Inference is hosted.
+ * @example atl1
+ */
+ readonly region?: string;
+ /**
+ * Format: uuid
+ * @description VPC UUID of the Dedicated Inference.
+ * @example 997615ce-132d-4bae-9270-9ee21b395e5d
+ */
+ readonly vpc_uuid?: string;
+ spec?: components["schemas"]["dedicated_inference_spec"];
+ pending_deployment_spec?: components["schemas"]["pending_deployment_spec"];
+ readonly endpoints?: {
+ /**
+ * Format: uri
+ * @description Public FQDN of the Dedicated Inference instance.
+ * @example https://b4bfug4jc41kts2ro54if91eo-public-dedicated-inference.do-infra.ai
+ */
+ public_endpoint_fqdn?: string;
+ /**
+ * Format: uri
+ * @description Private VPC FQDN of the Dedicated Inference instance.
+ * @example https://b4bfug4jc41kts2ro54if91eo-private-dedicated-inference.do-infra.ai
+ */
+ private_endpoint_fqdn?: string;
+ };
+ /**
+ * Format: date-time
+ * @description When the Dedicated Inference was created.
+ * @example 2024-01-09T20:44:32Z
+ */
+ readonly created_at?: string;
+ /**
+ * Format: date-time
+ * @description When the Dedicated Inference was last updated.
+ * @example 2024-01-09T20:44:32Z
+ */
+ readonly updated_at?: string;
+ };
+ dedicated_inference_update_request: {
+ spec?: components["schemas"]["dedicated_inference_spec"];
+ /** @description Provider tokens for model access (e.g. gated Hugging Face models). */
+ access_tokens?: {
+ /**
+ * @description Hugging Face token required for gated models.
+ * @example $HF_TOKEN
+ */
+ hugging_face_token?: string;
+ };
+ };
+ dedicated_inference_create_request: {
+ spec: components["schemas"]["dedicated_inference_spec"];
+ /**
+ * @description Key-value pairs for provider tokens (e.g. Hugging Face).
+ * @example {
+ * "hugging_face_token": "$HF_TOKEN"
+ * }
+ */
+ access_tokens?: {
+ [key: string]: string;
+ };
+ };
+ /** @description Access token for authenticating to Dedicated Inference endpoints. */
+ dedicated_inference_access_token: {
+ /**
+ * Format: uuid
+ * @description Unique ID of the token.
+ * @example 01333f14-a903-4b8e-92b3-363a767aa052
+ */
+ readonly id?: string;
+ /**
+ * @description Name of the token.
+ * @example first-token
+ */
+ readonly name?: string;
+ /**
+ * @description Token value; only returned once on create. Store securely.
+ * @example di_xxxxxxxxxxxxxxxxxxxxxxxx
+ */
+ readonly value?: string;
+ /**
+ * Format: date-time
+ * @example 2024-01-09T20:44:32Z
+ */
+ readonly created_at?: string;
+ /**
+ * @description When true, the token is managed by DigitalOcean (for example, system-provisioned). When false, the token was created by the user.
+ * @example false
+ */
+ readonly is_managed?: boolean;
+ };
+ /** @description A Dedicated Inference accelerator (GPU) in use by an instance. */
+ dedicated_inference_accelerator: {
+ /**
+ * Format: uuid
+ * @description Unique ID of the accelerator.
+ * @example 5b5c619c-359c-44ca-87e2-47e98170c02f
+ */
+ readonly id?: string;
+ /**
+ * @description Name of the accelerator.
+ * @example mi300x1-ghfpsf
+ */
+ readonly name?: string;
+ /**
+ * @description DigitalOcean GPU slug.
+ * @example gpu-mi300x1-192gb
+ */
+ readonly slug?: string;
+ /**
+ * @description Role of the accelerator (e.g. prefill_decode).
+ * @example prefill_decode
+ */
+ readonly role?: string;
+ /**
+ * @description Status of the accelerator.
+ * @example active
+ */
+ readonly status?: string;
+ /**
+ * Format: date-time
+ * @example 2024-01-09T20:44:32Z
+ */
+ readonly created_at?: string;
+ };
+ dedicated_inference_token_create_request: {
+ /**
+ * @description Name for the new token.
+ * @example new-inference-token
+ */
+ name: string;
+ };
+ dedicated_inference_size: {
+ /** @example gpu-mi300x1-192gb */
+ gpu_slug?: string;
+ /** @example 2 */
+ price_per_hour?: string;
+ /** @example nyc2 */
+ region?: string;
+ /** @example USD */
+ currency?: string;
+ };
+ /** @description Available Dedicated Inference sizes and pricing. */
+ dedicated_inference_sizes_response: {
+ /**
+ * @description Regions where Dedicated Inference is available.
+ * @example [
+ * "nyc2",
+ * "atl1"
+ * ]
+ */
+ enabled_regions?: string[];
+ sizes?: components["schemas"]["dedicated_inference_size"][];
+ };
+ dedicated_inference_gpu_model_config: {
+ /**
+ * @example [
+ * "gpu-mi300x1-192gb"
+ * ]
+ */
+ gpu_slugs?: string[];
+ /** @example mistral/mistral-7b-instruct-v3 */
+ model_slug?: string;
+ /** @example Mistral-7B-Instruct-v0.3 */
+ model_name?: string;
+ /** @description Whether the model requires gated access (e.g. Hugging Face token). */
+ is_gated_model?: boolean;
+ };
+ /** @description Supported GPU and model configurations for Dedicated Inference. */
+ dedicated_inference_gpu_model_configs_response: {
+ gpu_model_configs?: components["schemas"]["dedicated_inference_gpu_model_config"][];
+ };
+ domain: {
+ /**
+ * @description The name of the domain itself. This should follow the standard domain format of domain.TLD. For instance, `example.com` is a valid domain name.
+ * @example example.com
+ */
+ name?: string;
+ /**
+ * @description This optional attribute may contain an IP address. When provided, an A record will be automatically created pointing to the apex domain.
+ * @example 192.0.2.1
+ */
+ ip_address?: string;
+ /**
+ * @description This value is the time to live for the records on this domain, in seconds. This defines the time frame that clients can cache queried information before a refresh should be requested.
+ * @example 1800
+ */
+ readonly ttl?: number | null;
+ /**
+ * @description This attribute contains the complete contents of the zone file for the selected domain. Individual domain record resources should be used to get more granular control over records. However, this attribute can also be used to get information about the SOA record, which is created automatically and is not accessible as an individual record resource.
+ * @example $ORIGIN example.com.
+ * $TTL 1800
+ * example.com. IN SOA ns1.digitalocean.com. hostmaster.example.com. 1415982609 10800 3600 604800 1800
+ * example.com. 1800 IN NS ns1.digitalocean.com.
+ * example.com. 1800 IN NS ns2.digitalocean.com.
+ * example.com. 1800 IN NS ns3.digitalocean.com.
+ * example.com. 1800 IN A 1.2.3.4
+ */
+ readonly zone_file?: string | null;
+ };
+ domain_record: {
+ /**
+ * @description A unique identifier for each domain record.
+ * @example 28448429
+ */
+ readonly id?: number;
+ /**
+ * @description The type of the DNS record. For example: A, CNAME, TXT, ...
+ * @example NS
+ */
+ type: string;
+ /**
+ * @description The host name, alias, or service being defined by the record.
+ * @example @
+ */
+ name?: string;
+ /**
+ * @description Variable data depending on record type. For example, the "data" value for an A record would be the IPv4 address to which the domain will be mapped. For a CAA record, it would contain the domain name of the CA being granted permission to issue certificates.
+ * @example ns1.digitalocean.com
+ */
+ data?: string;
+ /**
+ * @description The priority for SRV and MX records.
+ * @example null
+ */
+ priority?: number | null;
+ /**
+ * @description The port for SRV records.
+ * @example null
+ */
+ port?: number | null;
+ /**
+ * @description This value is the time to live for the record, in seconds. This defines the time frame that clients can cache queried information before a refresh should be requested.
+ * @example 1800
+ */
+ ttl?: number;
+ /**
+ * @description The weight for SRV records.
+ * @example null
+ */
+ weight?: number | null;
+ /**
+ * @description An unsigned integer between 0-255 used for CAA records.
+ * @example null
+ */
+ flags?: number | null;
+ /**
+ * @description The parameter tag for CAA records. Valid values are "issue", "issuewild", or "iodef"
+ * @example null
+ */
+ tag?: string | null;
+ };
+ domain_record_a: components["schemas"]["domain_record"] & unknown;
+ domain_record_aaaa: components["schemas"]["domain_record"] & unknown;
+ domain_record_caa: components["schemas"]["domain_record"] & unknown;
+ domain_record_cname: components["schemas"]["domain_record"] & unknown;
+ domain_record_mx: components["schemas"]["domain_record"] & unknown;
+ domain_record_ns: components["schemas"]["domain_record"] & unknown;
+ domain_record_soa: components["schemas"]["domain_record"] & unknown;
+ domain_record_srv: components["schemas"]["domain_record"] & unknown;
+ domain_record_txt: components["schemas"]["domain_record"] & unknown;
+ disk_info: {
+ /**
+ * @description The type of disk. All Droplets contain a `local` or `boot` disk. Additionally, GPU Droplets can also have a `scratch` disk for non-persistent data.
+ * @example local
+ * @enum {string}
+ */
+ type?: "local" | "boot" | "scratch";
+ size?: {
+ /**
+ * @description The amount of space allocated to the disk.
+ * @example 25
+ */
+ amount?: number;
+ /**
+ * @description The unit of measure for the disk size.
+ * @example gib
+ */
+ unit?: string;
+ };
+ /**
+ * @description Indicates an ephemeral (non-persistent) disk.
+ * @example false
+ */
+ ephemeral?: boolean;
+ };
+ /**
+ * @deprecated
+ * @description **Note**: All Droplets created after March 2017 use internal kernels by default.
+ * These Droplets will have this attribute set to `null`.
+ *
+ * The current [kernel](https://docs.digitalocean.com/products/droplets/how-to/kernel/)
+ * for Droplets with externally managed kernels. This will initially be set to
+ * the kernel of the base image when the Droplet is created.
+ */
+ kernel: {
+ /**
+ * @description A unique number used to identify and reference a specific kernel.
+ * @example 7515
+ */
+ id?: number;
+ /**
+ * @description The display name of the kernel. This is shown in the web UI and is generally a descriptive title for the kernel in question.
+ * @example DigitalOcean GrubLoader v0.2 (20160714)
+ */
+ name?: string;
+ /**
+ * @description A standard kernel version string representing the version, patch, and release information.
+ * @example 2016.07.13-DigitalOcean_loader_Ubuntu
+ */
+ version?: string;
+ } | null;
+ droplet_next_backup_window: {
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format specifying the start of the Droplet's backup window.
+ * @example 2019-12-04T00:00:00Z
+ */
+ start?: string;
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format specifying the end of the Droplet's backup window.
+ * @example 2019-12-04T23:00:00Z
+ */
+ end?: string;
+ } | null;
+ /**
+ * @description The display name that has been given to an image. This is what is shown in the control panel and is generally a descriptive title for the image in question.
+ * @example Nifty New Snapshot
+ */
+ image_name: string;
+ /**
+ * @description The name of a custom image's distribution. Currently, the valid values are `Arch Linux`, `CentOS`, `CoreOS`, `Debian`, `Fedora`, `Fedora Atomic`, `FreeBSD`, `Gentoo`, `openSUSE`, `RancherOS`, `Rocky Linux`, `Ubuntu`, and `Unknown`. Any other value will be accepted but ignored, and `Unknown` will be used in its place.
+ * @example Ubuntu
+ * @enum {string}
+ */
+ distribution: "Arch Linux" | "CentOS" | "CoreOS" | "Debian" | "Fedora" | "Fedora Atomic" | "FreeBSD" | "Gentoo" | "openSUSE" | "RancherOS" | "Rocky Linux" | "Ubuntu" | "Unknown";
+ /**
+ * @description The slug identifier for the region where the resource will initially be available.
+ * @example nyc3
+ * @enum {string}
+ */
+ region_slug: "ams1" | "ams2" | "ams3" | "blr1" | "fra1" | "lon1" | "nyc1" | "nyc2" | "nyc3" | "sfo1" | "sfo2" | "sfo3" | "sgp1" | "tor1" | "syd1";
+ /**
+ * @description This attribute is an array of the regions that the image is available in. The regions are represented by their identifying slug values.
+ * @example [
+ * "nyc1",
+ * "nyc2"
+ * ]
+ */
+ regions_array: components["schemas"]["region_slug"][];
+ /**
+ * @description An optional free-form text field to describe an image.
+ * @example
+ */
+ image_description: string;
+ /**
+ * @description A flat array of tag names as strings to be applied to the resource. Tag names may be for either existing or new tags. Requires `tag:create` scope.
+ * @example [
+ * "base-image",
+ * "prod"
+ * ]
+ */
+ tags_array: string[] | null;
+ image: {
+ /**
+ * @description A unique number that can be used to identify and reference a specific image.
+ * @example 7555620
+ */
+ readonly id?: number;
+ name?: components["schemas"]["image_name"];
+ /**
+ * @description Describes the kind of image. It may be one of `base`, `snapshot`, `backup`, `custom`, or `admin`. Respectively, this specifies whether an image is a DigitalOcean base OS image, user-generated Droplet snapshot, automatically created Droplet backup, user-provided virtual machine image, or an image used for DigitalOcean managed resources (e.g. DOKS worker nodes).
+ * @example snapshot
+ * @enum {string}
+ */
+ type?: "base" | "snapshot" | "backup" | "custom" | "admin";
+ distribution?: components["schemas"]["distribution"];
+ /**
+ * @description A uniquely identifying string that is associated with each of the DigitalOcean-provided public images. These can be used to reference a public image as an alternative to the numeric id.
+ * @example nifty1
+ */
+ slug?: string | null;
+ /**
+ * @description This is a boolean value that indicates whether the image in question is public or not. An image that is public is available to all accounts. A non-public image is only accessible from your account.
+ * @example true
+ */
+ public?: boolean;
+ regions?: components["schemas"]["regions_array"];
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the image was created.
+ * @example 2020-05-04T22:23:02Z
+ */
+ created_at?: string;
+ /**
+ * @description The minimum disk size in GB required for a Droplet to use this image.
+ * @example 20
+ */
+ min_disk_size?: number | null;
+ /**
+ * Format: float
+ * @description The size of the image in gigabytes.
+ * @example 2.34
+ */
+ size_gigabytes?: number | null;
+ description?: components["schemas"]["image_description"];
+ tags?: components["schemas"]["tags_array"];
+ /**
+ * @description A status string indicating the state of a custom image. This may be `NEW`,
+ * `available`, `pending`, `deleted`, or `retired`.
+ * @example NEW
+ * @enum {string}
+ */
+ status?: "NEW" | "available" | "pending" | "deleted" | "retired";
+ /**
+ * @description A string containing information about errors that may occur when importing
+ * a custom image.
+ * @example
+ */
+ error_message?: string;
+ };
+ /** @description An object containing information about the GPU capabilities of Droplets created with this size. */
+ gpu_info: {
+ /**
+ * @description The number of GPUs allocated to the Droplet.
+ * @example 1
+ */
+ count?: number;
+ /**
+ * @description If GPU fabric networking is enabled.
+ * @example true
+ */
+ fabric?: boolean;
+ /**
+ * @description The model of the GPU.
+ * @example nvidia_h100
+ */
+ model?: string;
+ vram?: {
+ /**
+ * @description The amount of VRAM allocated to the GPU.
+ * @example 25
+ */
+ amount?: number;
+ /**
+ * @description The unit of measure for the VRAM.
+ * @example gib
+ */
+ unit?: string;
+ };
+ };
+ size: {
+ /**
+ * @description A human-readable string that is used to uniquely identify each size.
+ * @example s-1vcpu-1gb
+ */
+ slug: string;
+ /**
+ * @description The amount of RAM allocated to Droplets created of this size. The value is represented in megabytes.
+ * @example 1024
+ */
+ memory: number;
+ /**
+ * @description The number of CPUs allocated to Droplets of this size.
+ * @example 1
+ */
+ vcpus: number;
+ /**
+ * @description The amount of disk space set aside for Droplets of this size. The value is represented in gigabytes.
+ * @example 25
+ */
+ disk: number;
+ /**
+ * Format: float
+ * @description The amount of transfer bandwidth that is available for Droplets created in this size. This only counts traffic on the public interface. The value is given in terabytes.
+ * @example 1
+ */
+ transfer: number;
+ /**
+ * Format: float
+ * @description This attribute describes the monthly cost of this Droplet size if the Droplet is kept for an entire month. The value is measured in US dollars.
+ * @example 5
+ */
+ price_monthly: number;
+ /**
+ * Format: float
+ * @description This describes the price of the Droplet size as measured hourly. The value is measured in US dollars.
+ * @example 0.00743999984115362
+ */
+ price_hourly: number;
+ /**
+ * @description An array containing the region slugs where this size is available for Droplet creates.
+ * @example [
+ * "ams2",
+ * "ams3",
+ * "blr1",
+ * "fra1",
+ * "lon1",
+ * "nyc1",
+ * "nyc2",
+ * "nyc3",
+ * "sfo1",
+ * "sfo2",
+ * "sfo3",
+ * "sgp1",
+ * "tor1"
+ * ]
+ */
+ regions: string[];
+ /**
+ * @description This is a boolean value that represents whether new Droplets can be created with this size.
+ * @default true
+ * @example true
+ */
+ available: boolean;
+ /**
+ * @description A string describing the class of Droplets created from this size. For example: Basic, General Purpose, CPU-Optimized, Memory-Optimized, or Storage-Optimized.
+ * @example Basic
+ */
+ description: string;
+ /** @description An array of objects containing information about the disks available to Droplets created with this size. */
+ disk_info?: components["schemas"]["disk_info"][];
+ gpu_info?: components["schemas"]["gpu_info"];
+ };
+ network_v4: {
+ /**
+ * Format: ipv4
+ * @description The IP address of the IPv4 network interface.
+ * @example 104.236.32.182
+ */
+ ip_address?: string;
+ /**
+ * Format: ipv4
+ * @description The netmask of the IPv4 network interface.
+ * @example 255.255.192.0
+ */
+ netmask?: string;
+ /**
+ * @description The gateway of the specified IPv4 network interface.
+ *
+ * For private interfaces, a gateway is not provided. This is denoted by
+ * returning `nil` as its value.
+ * @example 104.236.0.1
+ */
+ gateway?: string;
+ /**
+ * @description The type of the IPv4 network interface.
+ * @example public
+ * @enum {string}
+ */
+ type?: "public" | "private";
+ };
+ network_v6: {
+ /**
+ * Format: ipv6
+ * @description The IP address of the IPv6 network interface.
+ * @example 2604:a880:0:1010::18a:a001
+ */
+ ip_address?: string;
+ /**
+ * @description The netmask of the IPv6 network interface.
+ * @example 64
+ */
+ netmask?: number;
+ /**
+ * Format: ipv6
+ * @description The gateway of the specified IPv6 network interface.
+ * @example 2604:a880:0:1010::1
+ */
+ gateway?: string;
+ /**
+ * @description The type of the IPv6 network interface.
+ *
+ * **Note**: IPv6 private networking is not currently supported.
+ * @example public
+ * @enum {string}
+ */
+ type?: "public";
+ };
+ droplet: {
+ /**
+ * @description A unique identifier for each Droplet instance. This is automatically generated upon Droplet creation.
+ * @example 3164444
+ */
+ id: number;
+ /**
+ * @description The human-readable name set for the Droplet instance.
+ * @example example.com
+ */
+ name: string;
+ /**
+ * @description Memory of the Droplet in megabytes.
+ * @example 1024
+ */
+ memory: number;
+ /**
+ * @description The number of virtual CPUs.
+ * @example 1
+ */
+ vcpus: number;
+ /**
+ * @description The size of the Droplet's disk in gigabytes.
+ * @example 25
+ */
+ disk: number;
+ /** @description An array of objects containing information about the disks available to the Droplet. */
+ disk_info?: components["schemas"]["disk_info"][];
+ /**
+ * @description A boolean value indicating whether the Droplet has been locked, preventing actions by users.
+ * @example false
+ */
+ locked: boolean;
+ /**
+ * @description A status string indicating the state of the Droplet instance. This may be "new", "active", "off", or "archive".
+ * @example active
+ * @enum {string}
+ */
+ status: "new" | "active" | "off" | "archive";
+ kernel?: components["schemas"]["kernel"];
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the Droplet was created.
+ * @example 2020-07-21T18:37:44Z
+ */
+ created_at: string;
+ /**
+ * @description An array of features enabled on this Droplet.
+ * @example [
+ * "backups",
+ * "private_networking",
+ * "ipv6"
+ * ]
+ */
+ features: string[];
+ /**
+ * @description An array of backup IDs of any backups that have been taken of the Droplet instance. Droplet backups are enabled at the time of the instance creation. Requires `image:read` scope.
+ * @example [
+ * 53893572
+ * ]
+ */
+ backup_ids: number[];
+ next_backup_window: components["schemas"]["droplet_next_backup_window"] & unknown;
+ /**
+ * @description An array of snapshot IDs of any snapshots created from the Droplet instance. Requires `image:read` scope.
+ * @example [
+ * 67512819
+ * ]
+ */
+ snapshot_ids: number[];
+ image: components["schemas"]["image"] & unknown;
+ /**
+ * @description A flat array including the unique identifier for each Block Storage volume attached to the Droplet. Requires `block_storage:read` scope.
+ * @example [
+ * "506f78a4-e098-11e5-ad9f-000f53306ae1"
+ * ]
+ */
+ volume_ids: string[];
+ size: components["schemas"]["size"];
+ /**
+ * @description The unique slug identifier for the size of this Droplet.
+ * @example s-1vcpu-1gb
+ */
+ size_slug: string;
+ /** @description The details of the network that are configured for the Droplet instance. This is an object that contains keys for IPv4 and IPv6. The value of each of these is an array that contains objects describing an individual IP resource allocated to the Droplet. These will define attributes like the IP address, netmask, and gateway of the specific network depending on the type of network it is. */
+ networks: {
+ v4?: components["schemas"]["network_v4"][];
+ v6?: components["schemas"]["network_v6"][];
+ };
+ region: components["schemas"]["region"];
+ /**
+ * @description An array of Tags the Droplet has been tagged with. Requires `tag:read` scope.
+ * @example [
+ * "web",
+ * "env:prod"
+ * ]
+ */
+ tags: string[];
+ /**
+ * @description A string specifying the UUID of the VPC to which the Droplet is assigned. Requires `vpc:read` scope.
+ * @example 760e09ef-dc84-11e8-981e-3cfdfeaae000
+ */
+ vpc_uuid?: string;
+ /**
+ * @description A string specifying the UUID of the VPC subnet to which the Droplet is assigned. Requires `vpc:read` scope.
+ * @example 9c7a0d63-3c4e-4d3d-9f56-3b0fb0e5e4a1
+ */
+ subnet_uuid?: string;
+ gpu_info?: components["schemas"]["gpu_info"];
+ };
+ droplet_backup_policy: {
+ /**
+ * @description The backup plan used for the Droplet. The plan can be either `daily` or `weekly`.
+ * @example daily
+ * @enum {string}
+ */
+ plan?: "daily" | "weekly";
+ /**
+ * @description The day of the week on which the backup will occur.
+ * @example SUN
+ * @enum {string}
+ */
+ weekday?: "SUN" | "MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT";
+ /**
+ * @description The hour of the day that the backup window will start.
+ * @example 0
+ * @enum {integer}
+ */
+ hour?: 0 | 4 | 8 | 12 | 16 | 20;
+ /**
+ * @description The length of the backup window starting from `hour`.
+ * @example 4
+ */
+ readonly window_length_hours?: number;
+ /**
+ * @description The number of days the backup will be retained.
+ * @example 7
+ */
+ readonly retention_period_days?: number;
+ };
+ droplet_create: {
+ /**
+ * @description The slug identifier for the region that you wish to deploy the Droplet in. If the specific datacenter is not not important, a slug prefix (e.g. `nyc`) can be used to deploy the Droplet in any of the that region's locations (`nyc1`, `nyc2`, or `nyc3`). If the region is omitted from the create request completely, the Droplet may deploy in any region.
+ * @example nyc3
+ */
+ region?: string;
+ /**
+ * @description The slug identifier for the size that you wish to select for this Droplet.
+ * @example s-1vcpu-1gb
+ */
+ size: string;
+ /**
+ * @description The image ID of a public or private image or the slug identifier for a public image. This image will be the base image for your Droplet. Requires `image:read` scope.
+ * @example ubuntu-20-04-x64
+ */
+ image: string | number;
+ /**
+ * @description An array containing the IDs or fingerprints of the SSH keys that you wish to embed in the Droplet's root account upon creation. You must add the keys to your team before they can be embedded on a Droplet. Requires `ssh_key:read` scope.
+ * @default []
+ * @example [
+ * 289794,
+ * "3b:16:e4:bf:8b:00:8b:b8:59:8c:a9:d3:f0:19:fa:45"
+ * ]
+ */
+ ssh_keys?: (string | number)[];
+ /**
+ * @description A boolean indicating whether automated backups should be enabled for the Droplet.
+ * @default false
+ * @example true
+ */
+ backups?: boolean;
+ backup_policy?: components["schemas"]["droplet_backup_policy"] & unknown;
+ /**
+ * @description A boolean indicating whether to enable IPv6 on the Droplet.
+ * @default false
+ * @example true
+ */
+ ipv6?: boolean;
+ /**
+ * @description A boolean indicating whether to install the DigitalOcean agent for monitoring.
+ * @default false
+ * @example true
+ */
+ monitoring?: boolean;
+ /**
+ * @description A flat array of tag names as strings to apply to the Droplet after it is created. Tag names can either be existing or new tags. Requires `tag:create` scope.
+ * @default []
+ * @example [
+ * "env:prod",
+ * "web"
+ * ]
+ */
+ tags?: string[] | null;
+ /**
+ * @description A string containing 'user data' which may be used to configure the Droplet on first boot, often a 'cloud-config' file or Bash script. It must be plain text and may not exceed 64 KiB in size.
+ * @example #cloud-config
+ * runcmd:
+ * - touch /test.txt
+ */
+ user_data?: string;
+ /**
+ * @deprecated
+ * @description This parameter has been deprecated. Use `vpc_uuid` instead to specify a VPC network for the Droplet. If no `vpc_uuid` is provided, the Droplet will be placed in your account's default VPC for the region.
+ * @default false
+ * @example true
+ */
+ private_networking?: boolean;
+ /**
+ * @description An array of IDs for block storage volumes that will be attached to the Droplet once created. The volumes must not already be attached to an existing Droplet. Requires `block_storage:read` scpoe.
+ * @default []
+ * @example [
+ * "12e97116-7280-11ed-b3d0-0a58ac146812"
+ * ]
+ */
+ volumes?: string[];
+ /**
+ * @description A string specifying the UUID of the VPC to which the Droplet will be assigned. If excluded, the Droplet will be assigned to your account's default VPC for the region. Requires `vpc:read` scope.
+ * @example 760e09ef-dc84-11e8-981e-3cfdfeaae000
+ */
+ vpc_uuid?: string;
+ /**
+ * @description An optional string specifying the UUID of the VPC subnet to which the Droplet will be assigned. If excluded, the Droplet will be assigned to a default subnet of the VPC. Requires `vpc:read` scope.
+ * @example 9c7a0d63-3c4e-4d3d-9f56-3b0fb0e5e4a1
+ */
+ subnet_uuid?: string;
+ /**
+ * @description A boolean indicating whether to install the DigitalOcean agent used for providing access to the Droplet web console in the control panel. By default, the agent is installed on new Droplets but installation errors (i.e. OS not supported) are ignored. To prevent it from being installed, set to `false`. To make installation errors fatal, explicitly set it to `true`.
+ * @example true
+ */
+ with_droplet_agent?: boolean;
+ /**
+ * @description An optional boolean indicating whether this Droplet should be created with public networking or not. By default, all Droplets are created with public networking available. If explicitly set to `false`, only private networking will be enabled, and public networking will be disabled; currently this means that it will not have any public static or Reserved IPv4 or IPv6 address, nor can one be assigned later. If explicitly set to `false`, `ipv6` must also be `false`.
+ * @default true
+ * @example true
+ */
+ public_networking?: boolean;
+ };
+ /** Single Droplet Request */
+ droplet_single_create: {
+ /**
+ * @description The human-readable string you wish to use when displaying the Droplet name. The name, if set to a domain name managed in the DigitalOcean DNS management system, will configure a PTR record for the Droplet. The name set during creation will also determine the hostname for the Droplet in its internal configuration.
+ * @example example.com
+ */
+ name: string;
+ } & components["schemas"]["droplet_create"];
+ /** Multiple Droplet Request */
+ droplet_multi_create: {
+ /**
+ * @description An array of human human-readable strings you wish to use when displaying the Droplet name. Each name, if set to a domain name managed in the DigitalOcean DNS management system, will configure a PTR record for the Droplet. Each name set during creation will also determine the hostname for the Droplet in its internal configuration.
+ * @example [
+ * "sub-01.example.com",
+ * "sub-02.example.com"
+ * ]
+ */
+ names: string[];
+ } & components["schemas"]["droplet_create"];
+ /** @description The linked actions can be used to check the status of a Droplet's create event. */
+ action_link: {
+ /**
+ * @description A unique numeric ID that can be used to identify and reference an action.
+ * @example 7515
+ */
+ id?: number;
+ /**
+ * @description A string specifying the type of the related action.
+ * @example create
+ */
+ rel?: string;
+ /**
+ * Format: uri
+ * @description A URL that can be used to access the action.
+ * @example https://api.digitalocean.com/v2/actions/7515
+ */
+ href?: string;
+ };
+ snapshots_base: {
+ /**
+ * @description A human-readable name for the snapshot.
+ * @example web-01-1595954862243
+ */
+ name: string;
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the snapshot was created.
+ * @example 2020-07-28T16:47:44Z
+ */
+ created_at: string;
+ /**
+ * @description An array of the regions that the snapshot is available in. The regions are represented by their identifying slug values.
+ * @example [
+ * "nyc3",
+ * "sfo3"
+ * ]
+ */
+ regions: string[];
+ /**
+ * @description The minimum size in GB required for a volume or Droplet to use this snapshot.
+ * @example 25
+ */
+ min_disk_size: number;
+ /**
+ * Format: float
+ * @description The billable size of the snapshot in gigabytes.
+ * @example 2.34
+ */
+ size_gigabytes: number;
+ };
+ droplet_snapshot: {
+ /**
+ * @description The unique identifier for the snapshot or backup.
+ * @example 6372321
+ */
+ id: number;
+ } & components["schemas"]["snapshots_base"] & {
+ /**
+ * @description Describes the kind of image. It may be one of `snapshot` or `backup`. This specifies whether an image is a user-generated Droplet snapshot or automatically created Droplet backup.
+ * @example snapshot
+ * @enum {string}
+ */
+ type: "snapshot" | "backup";
+ };
+ droplet_backup_policy_record: {
+ /**
+ * @description The unique identifier for the Droplet.
+ * @example 7101383
+ */
+ droplet_id?: number;
+ /**
+ * @description A boolean value indicating whether backups are enabled for the Droplet.
+ * @example true
+ */
+ backup_enabled?: boolean;
+ backup_policy?: components["schemas"]["droplet_backup_policy"] & unknown;
+ next_backup_window?: components["schemas"]["droplet_next_backup_window"] & unknown;
+ };
+ supported_droplet_backup_policy: {
+ /**
+ * @description The name of the Droplet backup plan.
+ * @example daily
+ */
+ name?: string;
+ /**
+ * @description An array of integers representing the hours of the day that a backup can
+ * start.
+ * @example [
+ * 0,
+ * 4,
+ * 8,
+ * 12,
+ * 16,
+ * 20
+ * ]
+ */
+ possible_window_starts?: number[];
+ /**
+ * @description The number of hours that a backup window is open.
+ * @example 4
+ */
+ window_length_hours?: number;
+ /**
+ * @description The number of days that a backup will be kept.
+ * @example 7
+ */
+ retention_period_days?: number;
+ /**
+ * @description The day of the week the backup will occur.
+ * @example [
+ * "SUN",
+ * "MON",
+ * "TUE",
+ * "WED",
+ * "THU",
+ * "FRI",
+ * "SAT"
+ * ]
+ */
+ possible_days?: string[];
+ };
+ /** @description Specifies the action that will be taken on the Droplet. */
+ droplet_action: {
+ /**
+ * @description The type of action to initiate for the Droplet. (enum property replaced by openapi-typescript)
+ * @enum {string}
+ */
+ type: "enable_backups" | "disable_backups" | "power_cycle" | "shutdown" | "power_off" | "power_on" | "enable_ipv6";
+ };
+ /**
+ * @example {
+ * "type": "enable_backups",
+ * "backup_policy": {
+ * "plan": "daily",
+ * "hour": 20
+ * }
+ * }
+ */
+ droplet_action_enable_backups: components["schemas"]["droplet_action"] & {
+ backup_policy?: components["schemas"]["droplet_backup_policy"] & unknown;
+ };
+ /**
+ * @example {
+ * "type": "enable_backups",
+ * "backup_policy": {
+ * "plan": "weekly",
+ * "day": "SUN",
+ * "hour": 20
+ * }
+ * }
+ */
+ droplet_action_change_backup_policy: components["schemas"]["droplet_action"] & {
+ backup_policy: components["schemas"]["droplet_backup_policy"] & unknown;
+ };
+ droplet_action_restore: components["schemas"]["droplet_action"] & {
+ /**
+ * @description The ID of a backup of the current Droplet instance to restore from.
+ * @example 12389723
+ */
+ image?: number;
+ };
+ droplet_action_resize: components["schemas"]["droplet_action"] & {
+ /**
+ * @description When `true`, the Droplet's disk will be resized in addition to its RAM and CPU. This is a permanent change and cannot be reversed as a Droplet's disk size cannot be decreased.
+ * @example true
+ */
+ disk?: boolean;
+ /**
+ * @description The slug identifier for the size to which you wish to resize the Droplet.
+ * @example s-2vcpu-2gb
+ */
+ size?: string;
+ };
+ droplet_action_rebuild: components["schemas"]["droplet_action"] & {
+ /**
+ * @description The image ID of a public or private image or the slug identifier for a public image. The Droplet will be rebuilt using this image as its base.
+ * @example ubuntu-20-04-x64
+ */
+ image?: string | number;
+ };
+ droplet_action_rename: components["schemas"]["droplet_action"] & {
+ /**
+ * @description The new name for the Droplet.
+ * @example nifty-new-name
+ */
+ name?: string;
+ };
+ droplet_action_change_kernel: components["schemas"]["droplet_action"] & {
+ /**
+ * @description A unique number used to identify and reference a specific kernel.
+ * @example 12389723
+ */
+ kernel?: number;
+ };
+ droplet_action_snapshot: components["schemas"]["droplet_action"] & {
+ /**
+ * @description The name to give the new snapshot of the Droplet.
+ * @example Nifty New Snapshot
+ */
+ name?: string;
+ } & {
+ /**
+ * @description discriminator enum property added by openapi-typescript
+ * @enum {string}
+ */
+ type: "snapshot";
+ };
+ /**
+ * @description A flat array of tag names as strings to be applied to the resource. Tag names must exist in order to be referenced in a request. Requires `tag:create` and `tag:read` scopes.
+ * @example [
+ * "base-image",
+ * "prod"
+ * ]
+ */
+ existing_tags_array: string[] | null;
+ firewall_rule_base: {
+ /**
+ * @description The type of traffic to be allowed. This may be one of `tcp`, `udp`, or `icmp`.
+ * @example tcp
+ * @enum {string}
+ */
+ protocol: "tcp" | "udp" | "icmp";
+ /**
+ * @description The ports on which traffic will be allowed specified as a string containing a single port, a range (e.g. "8000-9000"), or "0" when all ports are open for a protocol. For ICMP rules this parameter will always return "0".
+ * @example 8000
+ */
+ ports: string;
+ /**
+ * @description The action to be taken when traffic matches the rule. This may be one of `allow` or `deny`. For backward compatibility, this field is optional. When not set, it defaults to `allow`.
+ * @default allow
+ * @example allow
+ * @enum {string}
+ */
+ action?: "allow" | "deny";
+ };
+ firewall_rule_target: {
+ /**
+ * @description An array of strings containing the IPv4 addresses, IPv6 addresses, IPv4 CIDRs, and/or IPv6 CIDRs to which the firewall will allow traffic.
+ * @example [
+ * "1.2.3.4",
+ * "18.0.0.0/8"
+ * ]
+ */
+ addresses?: string[];
+ /**
+ * @description An array containing the IDs of the Droplets to which the firewall will allow traffic.
+ * @example [
+ * 8043964
+ * ]
+ */
+ droplet_ids?: number[];
+ /**
+ * @description An array containing the IDs of the load balancers to which the firewall will allow traffic.
+ * @example [
+ * "4de7ac8b-495b-4884-9a69-1050c6793cd6"
+ * ]
+ */
+ load_balancer_uids?: string[];
+ /**
+ * @description An array containing the IDs of the Kubernetes clusters to which the firewall will allow traffic.
+ * @example [
+ * "41b74c5d-9bd0-5555-5555-a57c495b81a3"
+ * ]
+ */
+ kubernetes_ids?: string[];
+ tags?: components["schemas"]["existing_tags_array"] & unknown;
+ };
+ firewall_rules: {
+ inbound_rules?: (components["schemas"]["firewall_rule_base"] & {
+ sources: components["schemas"]["firewall_rule_target"] & unknown;
+ })[] | null;
+ outbound_rules?: (components["schemas"]["firewall_rule_base"] & {
+ destinations: components["schemas"]["firewall_rule_target"] & unknown;
+ })[] | null;
+ };
+ firewall: {
+ /**
+ * @description A unique ID that can be used to identify and reference a firewall.
+ * @example bb4b2611-3d72-467b-8602-280330ecd65c
+ */
+ readonly id?: string;
+ /**
+ * @description A status string indicating the current state of the firewall. This can be "waiting", "succeeded", or "failed".
+ * @example waiting
+ * @enum {string}
+ */
+ readonly status?: "waiting" | "succeeded" | "failed";
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the firewall was created.
+ * @example 2020-05-23T21:24:00Z
+ */
+ readonly created_at?: string;
+ /**
+ * @description An array of objects each containing the fields "droplet_id", "removing", and "status". It is provided to detail exactly which Droplets are having their security policies updated. When empty, all changes have been successfully applied.
+ * @example [
+ * {
+ * "droplet_id": 8043964,
+ * "removing": false,
+ * "status": "waiting"
+ * }
+ * ]
+ */
+ readonly pending_changes?: {
+ /** @example 8043964 */
+ droplet_id?: number;
+ /** @example false */
+ removing?: boolean;
+ /** @example waiting */
+ status?: string;
+ }[];
+ /**
+ * @description A human-readable name for a firewall. The name must begin with an alphanumeric character. Subsequent characters must either be alphanumeric characters, a period (.), or a dash (-).
+ * @example firewall
+ */
+ name?: string;
+ /**
+ * @description An array containing the IDs of the Droplets assigned to the firewall. Requires `droplet:read` scope.
+ * @example [
+ * 8043964
+ * ]
+ */
+ droplet_ids?: number[] | null;
+ tags?: components["schemas"]["existing_tags_array"] & unknown;
+ } & components["schemas"]["firewall_rules"];
+ /** @description An objects containing information about a resource associated with a Droplet. */
+ associated_resource: {
+ /**
+ * @description The unique identifier for the resource associated with the Droplet.
+ * @example 61486916
+ */
+ id?: string;
+ /**
+ * @description The name of the resource associated with the Droplet.
+ * @example ubuntu-s-1vcpu-1gb-nyc1-01-1585758823330
+ */
+ name?: string;
+ /**
+ * @description The cost of the resource in USD per month if the resource is retained after the Droplet is destroyed.
+ * @example 0.05
+ */
+ cost?: string;
+ };
+ /** @description An object containing information about a resource to be scheduled for deletion. */
+ selective_destroy_associated_resource: {
+ /**
+ * @deprecated
+ * @description An array of unique identifiers for the floating IPs to be scheduled for deletion.
+ * @example [
+ * "6186916"
+ * ]
+ */
+ floating_ips?: string[];
+ /**
+ * @description An array of unique identifiers for the reserved IPs to be scheduled for deletion.
+ * @example [
+ * "6186916"
+ * ]
+ */
+ reserved_ips?: string[];
+ /**
+ * @description An array of unique identifiers for the snapshots to be scheduled for deletion.
+ * @example [
+ * "61486916"
+ * ]
+ */
+ snapshots?: string[];
+ /**
+ * @description An array of unique identifiers for the volumes to be scheduled for deletion.
+ * @example [
+ * "ba49449a-7435-11ea-b89e-0a58ac14480f"
+ * ]
+ */
+ volumes?: string[];
+ /**
+ * @description An array of unique identifiers for the volume snapshots to be scheduled for deletion.
+ * @example [
+ * "edb0478d-7436-11ea-86e6-0a58ac144b91"
+ * ]
+ */
+ volume_snapshots?: string[];
+ };
+ /** @description An object containing information about a resource scheduled for deletion. */
+ destroyed_associated_resource: {
+ /**
+ * @description The unique identifier for the resource scheduled for deletion.
+ * @example 61486916
+ */
+ id?: string;
+ /**
+ * @description The name of the resource scheduled for deletion.
+ * @example ubuntu-s-1vcpu-1gb-nyc1-01-1585758823330
+ */
+ name?: string;
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format indicating when the resource was destroyed if the request was successful.
+ * @example 2020-04-01T18:11:49Z
+ */
+ destroyed_at?: string;
+ /**
+ * @description A string indicating that the resource was not successfully destroyed and providing additional information.
+ * @example
+ */
+ error_message?: string;
+ };
+ /** @description An objects containing information about a resources scheduled for deletion. */
+ associated_resource_status: {
+ droplet?: components["schemas"]["destroyed_associated_resource"];
+ /** @description An object containing additional information about resource related to a Droplet requested to be destroyed. */
+ resources?: {
+ reserved_ips?: components["schemas"]["destroyed_associated_resource"][];
+ floating_ips?: components["schemas"]["destroyed_associated_resource"][];
+ snapshots?: components["schemas"]["destroyed_associated_resource"][];
+ volumes?: components["schemas"]["destroyed_associated_resource"][];
+ volume_snapshots?: components["schemas"]["destroyed_associated_resource"][];
+ };
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format indicating when the requested action was completed.
+ * @example 2020-04-01T18:11:49Z
+ */
+ completed_at?: string;
+ /**
+ * @description A count of the associated resources that failed to be destroyed, if any.
+ * @example 0
+ */
+ failures?: number;
+ };
+ autoscale_pool_static_config: {
+ /**
+ * static config
+ * @description Fixed number of instances in an autoscale pool.
+ * @example 3
+ */
+ target_number_instances: number;
+ };
+ autoscale_pool_dynamic_config: {
+ /**
+ * @description The minimum number of Droplets in an autoscale pool.
+ * @example 5
+ */
+ min_instances: number;
+ /**
+ * @description The maximum number of Droplets in an autoscale pool.
+ * @example 10
+ */
+ max_instances: number;
+ /**
+ * Format: float
+ * @description Target CPU utilization as a decimal.
+ * @example 0.6
+ */
+ target_cpu_utilization?: number;
+ /**
+ * Format: float
+ * @description Target memory utilization as a decimal.
+ * @example 0.6
+ */
+ target_memory_utilization?: number;
+ /**
+ * @description The number of minutes to wait between scaling events in an autoscale pool. Defaults to 10 minutes.
+ * @example 5
+ */
+ cooldown_minutes?: number;
+ };
+ autoscale_pool_droplet_template: {
+ /**
+ * @description The name(s) to be applied to all Droplets in the autoscale pool.
+ * @example my-droplet-name
+ */
+ name?: string;
+ /**
+ * @description The datacenter in which all of the Droplets will be created.
+ * @example tor1
+ * @enum {string}
+ */
+ region: "nyc1" | "nyc2" | "nyc3" | "ams2" | "ams3" | "sfo1" | "sfo2" | "sfo3" | "sgp1" | "lon1" | "fra1" | "tor1" | "blr1" | "syd1";
+ /**
+ * @description The Droplet size to be used for all Droplets in the autoscale pool.
+ * @example c-2
+ */
+ size: string;
+ /**
+ * @description The Droplet image to be used for all Droplets in the autoscale pool. You may specify the slug or the image ID.
+ * @example ubuntu-20-04-x64
+ */
+ image: string;
+ /**
+ * @description The SSH keys to be installed on the Droplets in the autoscale pool. You can either specify the key ID or the fingerprint.
+ * Requires `ssh_key:read` scope.
+ * @example [
+ * "88:66:90:d2:68:d5:b5:85:e3:26:26:11:31:57:e6:f8"
+ * ]
+ */
+ ssh_keys: string[];
+ /**
+ * @description The tags to apply to each of the Droplets in the autoscale pool.
+ * Requires `tag:read` scope.
+ * @example [
+ * "my-tag"
+ * ]
+ */
+ tags?: string[];
+ /**
+ * @description The VPC where the Droplets in the autoscale pool will be created. The VPC must be in the region where you want to create the Droplets.
+ * Requires `vpc:read` scope.
+ * @example 760e09ef-dc84-11e8-981e-3cfdfeaae000
+ */
+ vpc_uuid?: string;
+ /**
+ * @description Installs the Droplet agent. This must be set to true to monitor Droplets for resource utilization scaling.
+ * @example true
+ */
+ with_droplet_agent?: boolean;
+ /**
+ * @description The project that the Droplets in the autoscale pool will belong to.
+ * Requires `project:read` scope.
+ * @example 746c6152-2fa2-11ed-92d3-27aaa54e4988
+ */
+ project_id?: string;
+ /**
+ * @description Assigns a unique IPv6 address to each of the Droplets in the autoscale pool.
+ * @example true
+ */
+ ipv6?: boolean;
+ /**
+ * @description A string containing user data that cloud-init consumes to configure a Droplet on first boot. User data is often a cloud-config file or Bash script. It must be plain text and may not exceed 64 KiB in size.
+ * @example #cloud-config
+ * runcmd:
+ * - touch /test.txt
+ */
+ user_data?: string;
+ /**
+ * @description An optional boolean indicating whether the Droplets should be created with public networking or not. By default, all Droplets are created with public networking available. If explicitly set to `false`, only private networking will be enabled, and public networking will be disabled; currently this means that it will not have any public static or Reserved IPv4 or IPv6 address, nor can one be assigned later. If explicitly set to `false`, `ipv6` must also be `false`.
+ * @default true
+ * @example true
+ */
+ public_networking?: boolean;
+ };
+ current_utilization: {
+ /**
+ * Format: float
+ * @description The average memory utilization of the autoscale pool.
+ * @example 0.3588531587713522
+ */
+ memory?: number;
+ /**
+ * Format: float
+ * @description The average CPU utilization of the autoscale pool.
+ * @example 0.0007338008770232183
+ */
+ cpu?: number;
+ };
+ autoscale_pool: {
+ /**
+ * @description A unique identifier for each autoscale pool instance. This is automatically generated upon autoscale pool creation.
+ * @example 0d3db13e-a604-4944-9827-7ec2642d32ac
+ */
+ id: string;
+ /**
+ * @description The human-readable name set for the autoscale pool.
+ * @example my-autoscale-pool
+ */
+ name: string;
+ /** @description The scaling configuration for an autoscale pool, which is how the pool scales up and down (either by resource utilization or static configuration). */
+ config: components["schemas"]["autoscale_pool_static_config"] | components["schemas"]["autoscale_pool_dynamic_config"];
+ droplet_template: components["schemas"]["autoscale_pool_droplet_template"];
+ current_utilization?: components["schemas"]["current_utilization"];
+ /**
+ * The creation time of the autoscale pool
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the autoscale pool was created.
+ * @example 2020-07-28T18:00:00Z
+ */
+ created_at: string;
+ /**
+ * When the autoscale pool was last updated
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the autoscale pool was last updated.
+ * @example 2020-07-28T18:00:00Z
+ */
+ updated_at: string;
+ /**
+ * @description The current status of the autoscale pool.
+ * @example active
+ * @enum {string}
+ */
+ status: "active" | "deleting" | "error";
+ /**
+ * @description The number of active Droplets in the autoscale pool.
+ * @example 1
+ */
+ active_resources_count: number;
+ };
+ autoscale_pool_create: {
+ /**
+ * @description The human-readable name of the autoscale pool. This field cannot be updated
+ * @example my-autoscale-pool
+ */
+ name: string;
+ /** @description The scaling configuration for an autoscale pool, which is how the pool scales up and down (either by resource utilization or static configuration). */
+ config: components["schemas"]["autoscale_pool_static_config"] | components["schemas"]["autoscale_pool_dynamic_config"];
+ droplet_template: components["schemas"]["autoscale_pool_droplet_template"];
+ };
+ member_current_utilization: {
+ /**
+ * Format: float
+ * @description The memory utilization average of the individual Droplet.
+ * @example 0.3588531587713522
+ */
+ memory?: number;
+ /**
+ * Format: float
+ * @description The CPU utilization average of the individual Droplet.
+ * @example 0.0007338008770232183
+ */
+ cpu?: number;
+ };
+ member: {
+ /**
+ * @description The unique identifier of the Droplet.
+ * @example 459903570
+ */
+ droplet_id: number;
+ /**
+ * Format: date-time
+ * @description The creation time of the Droplet in ISO8601 combined date and time format.
+ * @example 2020-07-28T18:00:00Z
+ */
+ created_at: string;
+ /**
+ * Format: date-time
+ * @description The last updated time of the Droplet in ISO8601 combined date and time format.
+ * @example 2020-07-28T18:00:00Z
+ */
+ updated_at: string;
+ /**
+ * @description The health status of the Droplet.
+ * @example healthy
+ * @enum {string}
+ */
+ health_status: "healthy" | "unhealthy";
+ /**
+ * @description A human-readable description of why the Droplet is unhealthy. Only
+ * present when `health_status` is `unhealthy`.
+ * @example Droplet failed health check
+ */
+ unhealthy_reason?: string;
+ /**
+ * @description The power status of the Droplet.
+ * @example active
+ * @enum {string}
+ */
+ status: "provisioning" | "active" | "deleting" | "off";
+ current_utilization: components["schemas"]["member_current_utilization"];
+ };
+ history: {
+ /**
+ * @description The unique identifier of the history event.
+ * @example 01936530-4471-7b86-9634-32d8fcfecbc6
+ */
+ history_event_id: string;
+ /**
+ * @description The current number of Droplets in the autoscale pool.
+ * @example 2
+ */
+ current_instance_count: number;
+ /**
+ * @description The target number of Droplets for the autoscale pool after the scaling event.
+ * @example 2
+ */
+ desired_instance_count: number;
+ /**
+ * @description The reason for the scaling event.
+ * @example CONFIGURATION_CHANGE
+ * @enum {string}
+ */
+ reason: "CONFIGURATION_CHANGE" | "SCALE_UP" | "SCALE_DOWN";
+ /**
+ * @description The status of the scaling event.
+ * @example success
+ * @enum {string}
+ */
+ status: "in_progress" | "success" | "error";
+ /**
+ * Format: date-time
+ * @description The creation time of the history event in ISO8601 combined date and time format.
+ * @example 2020-07-28T18:00:00Z
+ */
+ created_at: string;
+ /**
+ * Format: date-time
+ * @description The last updated time of the history event in ISO8601 combined date and time format.
+ * @example 2020-07-28T18:00:00Z
+ */
+ updated_at: string;
+ };
+ floating_ip: {
+ /**
+ * Format: ipv4
+ * @description The public IP address of the floating IP. It also serves as its identifier.
+ * @example 45.55.96.47
+ */
+ ip?: string;
+ region?: components["schemas"]["region"] & Record;
+ /**
+ * @description The Droplet that the floating IP has been assigned to. When you query a floating IP, if it is assigned to a Droplet, the entire Droplet object will be returned. If it is not assigned, the value will be null. Requires `droplet:read` scope.
+ * @example null
+ */
+ droplet?: (Record | null) | components["schemas"]["droplet"];
+ /**
+ * @description A boolean value indicating whether or not the floating IP has pending actions preventing new ones from being submitted.
+ * @example true
+ */
+ locked?: boolean;
+ /**
+ * Format: uuid
+ * @description The UUID of the project to which the reserved IP currently belongs. Requires `project:read` scope.
+ * @example 746c6152-2fa2-11ed-92d3-27aaa54e4988
+ */
+ project_id?: string;
+ };
+ floating_ip_create: {
+ /**
+ * @description The ID of the Droplet that the floating IP will be assigned to.
+ * @example 2457247
+ */
+ droplet_id: number;
+ } | {
+ /**
+ * @description The slug identifier for the region the floating IP will be reserved to.
+ * @example nyc3
+ */
+ region: string;
+ /**
+ * Format: uuid
+ * @description The UUID of the project to which the floating IP will be assigned.
+ * @example 746c6152-2fa2-11ed-92d3-27aaa54e4988
+ */
+ project_id?: string;
+ };
+ floatingIPsAction: {
+ /**
+ * @description The type of action to initiate for the floating IP.
+ * @enum {string}
+ */
+ type: "assign" | "unassign";
+ };
+ floating_ip_action_assign: Omit & {
+ /**
+ * @description The ID of the Droplet that the floating IP will be assigned to.
+ * @example 758604968
+ */
+ droplet_id: number;
+ } & {
+ /**
+ * @description discriminator enum property added by openapi-typescript
+ * @enum {string}
+ */
+ type: "assign";
+ };
+ floating_ip_action_unassign: Omit & Record & {
+ /**
+ * @description discriminator enum property added by openapi-typescript
+ * @enum {string}
+ */
+ type: "unassign";
+ };
+ namespace_info: {
+ /**
+ * @description The namespace's API hostname. Each function in a namespace is provided an endpoint at the namespace's hostname.
+ * @example https://api_host.io
+ */
+ api_host?: string;
+ /**
+ * @description A unique string format of UUID with a prefix fn-.
+ * @example fn-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+ */
+ namespace?: string;
+ /**
+ * @description UTC time string.
+ * @example 2022-09-14T04:16:45Z
+ */
+ created_at?: string;
+ /**
+ * @description UTC time string.
+ * @example 2022-09-14T04:16:45Z
+ */
+ updated_at?: string;
+ /**
+ * @description The namespace's unique name.
+ * @example my namespace
+ */
+ label?: string;
+ /**
+ * @description The namespace's datacenter region.
+ * @example nyc1
+ */
+ region?: string;
+ /**
+ * @description The namespace's Universally Unique Identifier.
+ * @example xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+ */
+ uuid?: string;
+ /**
+ * @description A random alpha numeric string. This key is used in conjunction with the namespace's UUID to authenticate
+ * a user to use the namespace via `doctl`, DigitalOcean's official CLI.
+ * @example d1zcd455h01mqjfs4s2eaewyejehi5f2uj4etqq3h7cera8iwkub6xg5of1wdde2
+ */
+ key?: string;
+ };
+ create_namespace: {
+ /**
+ * @description The [datacenter region](https://docs.digitalocean.com/products/platform/availability-matrix/#available-datacenters) in which to create the namespace.
+ * @example nyc1
+ */
+ region: string;
+ /**
+ * @description The namespace's unique name.
+ * @example my namespace
+ */
+ label: string;
+ };
+ /** @description Trigger details for SCHEDULED type, where body is optional. */
+ scheduled_details: {
+ /**
+ * @description valid cron expression string which is required for SCHEDULED type triggers.
+ * @example * * * * *
+ */
+ cron: string;
+ /** @description Optional data to be sent to function while triggering the function. */
+ body?: {
+ /** @example Welcome to DO! */
+ name?: string;
+ } | null;
+ };
+ trigger_info: {
+ /**
+ * @description A unique string format of UUID with a prefix fn-.
+ * @example fn-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+ */
+ namespace?: string;
+ /**
+ * @description The trigger's unique name within the namespace.
+ * @example my trigger
+ */
+ name?: string;
+ /**
+ * @description Name of function(action) that exists in the given namespace.
+ * @example hello
+ */
+ function?: string;
+ /**
+ * @description String which indicates the type of trigger source like SCHEDULED.
+ * @example SCHEDULED
+ */
+ type?: string;
+ /**
+ * @description Indicates weather the trigger is paused or unpaused.
+ * @example true
+ */
+ is_enabled?: boolean;
+ /**
+ * @description UTC time string.
+ * @example 2022-11-11T04:16:45Z
+ */
+ created_at?: string;
+ /**
+ * @description UTC time string.
+ * @example 2022-11-11T04:16:45Z
+ */
+ updated_at?: string;
+ scheduled_details?: components["schemas"]["scheduled_details"];
+ scheduled_runs?: {
+ /**
+ * @description Indicates last run time. null value indicates trigger not run yet.
+ * @example 2022-11-11T04:16:45Z
+ */
+ last_run_at?: string | null;
+ /**
+ * @description Indicates next run time. null value indicates trigger will not run.
+ * @example 2022-11-11T04:16:45Z
+ */
+ next_run_at?: string | null;
+ };
+ };
+ create_trigger: {
+ /**
+ * @description The trigger's unique name within the namespace.
+ * @example my trigger
+ */
+ name: string;
+ /**
+ * @description Name of function(action) that exists in the given namespace.
+ * @example hello
+ */
+ function: string;
+ /**
+ * @description One of different type of triggers. Currently only SCHEDULED is supported.
+ * @example SCHEDULED
+ */
+ type: string;
+ /**
+ * @description Indicates weather the trigger is paused or unpaused.
+ * @example true
+ */
+ is_enabled: boolean;
+ scheduled_details: components["schemas"]["scheduled_details"];
+ };
+ update_trigger: {
+ /**
+ * @description Indicates weather the trigger is paused or unpaused.
+ * @example true
+ */
+ is_enabled?: boolean;
+ scheduled_details?: components["schemas"]["scheduled_details"];
+ };
+ access_key: {
+ /**
+ * @description The access key's unique identifier with prefix 'dof_v1_'.
+ * @example dof_v1_d79e8aeb42e5476893c7d4c59a166264
+ */
+ readonly id?: string;
+ /**
+ * @description The access key's name.
+ * @example my-function-access-key
+ */
+ name?: string;
+ /**
+ * Format: date-time
+ * @description When the key expires (null for non-expiring keys).
+ * @example 2026-12-19T10:30:00Z
+ */
+ readonly expires_at?: string | null;
+ /**
+ * Format: date-time
+ * @description The date and time the key was created.
+ * @example 2025-12-19T10:30:00Z
+ */
+ readonly created_at?: string;
+ /**
+ * Format: date-time
+ * @description The date and time the key was last updated.
+ * @example 2025-12-19T10:30:00Z
+ */
+ readonly updated_at?: string;
+ };
+ access_key_create_request: {
+ /**
+ * @description The access key's name.
+ * @example my-function-access-key
+ */
+ name: string;
+ /**
+ * @description The duration after which the access key expires, specified as a human-readable duration string in the format `h` (hours) or `d` (days). Minimum value is `1h`. If omitted, the key will never expire.
+ * @example 7d
+ */
+ expires_in?: string;
+ };
+ access_key_create_response: {
+ /**
+ * @description The secret key used to authenticate. This is only returned once upon creation. Make sure to copy and securely store it.
+ * @example fn_secret_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+ */
+ readonly secret?: string;
+ } & components["schemas"]["access_key"];
+ image_update: {
+ name?: components["schemas"]["image_name"];
+ distribution?: components["schemas"]["distribution"];
+ description?: components["schemas"]["image_description"];
+ };
+ /**
+ * @example {
+ * "name": "ubuntu-18.04-minimal",
+ * "url": "http://cloud-images.ubuntu.com/minimal/releases/bionic/release/ubuntu-18.04-minimal-cloudimg-amd64.img",
+ * "distribution": "Ubuntu",
+ * "region": "nyc3",
+ * "description": "Cloud-optimized image w/ small footprint",
+ * "tags": [
+ * "base-image",
+ * "prod"
+ * ]
+ * }
+ */
+ image_new_custom: WithRequired & {
+ /**
+ * @description A URL from which the custom Linux virtual machine image may be retrieved. The image it points to must be in the raw, qcow2, vhdx, vdi, or vmdk format. It may be compressed using gzip or bzip2 and must be smaller than 100 GB after being decompressed.
+ * @example http://cloud-images.ubuntu.com/minimal/releases/bionic/release/ubuntu-18.04-minimal-cloudimg-amd64.img
+ */
+ url: string;
+ region: components["schemas"]["region_slug"];
+ tags?: components["schemas"]["tags_array"];
+ };
+ images_post_account_transfer_create: {
+ /**
+ * @description The email address of the user account that the image will be transferred to.
+ * @example alice@example.com
+ */
+ recipient_email: string;
+ } | {
+ /**
+ * @description The UUID of the team that the image will be transferred to.
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ recipient_uuid: string;
+ };
+ /**
+ * @description A unique number that used to identify and reference an image account transfer.
+ * @example 3164444
+ */
+ transfer_id: number;
+ images_post_account_transfer_accept: {
+ /**
+ * @description A unique number that used to identify and reference an image account transfer.
+ * @example 3164444
+ */
+ transfer_id: number;
+ } & {
+ /**
+ * @description The UUID of the team that the image will be transferred to.
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ recipient_uuid: string;
+ };
+ images_post_account_transfer_cancel: {
+ /**
+ * @description A unique number that used to identify and reference an image account transfer.
+ * @example 3164444
+ */
+ transfer_id: number;
+ };
+ images_post_account_transfer_decline: {
+ /**
+ * @description A unique number that used to identify and reference an image account transfer.
+ * @example 3164444
+ */
+ transfer_id: number;
+ };
+ image_action_base: {
+ /**
+ * @description The action to be taken on the image. Can be either `convert` or `transfer`.
+ * @example convert
+ * @enum {string}
+ */
+ type: "convert" | "transfer";
+ };
+ image_action_transfer: components["schemas"]["image_action_base"] & {
+ region: components["schemas"]["region_slug"];
+ };
+ /** @description A read-only record of an alert rule firing against a resource. */
+ alert_instance: {
+ /**
+ * Format: uuid
+ * @description A unique identifier for the alert instance.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ id: string;
+ /**
+ * Format: uuid
+ * @description ID of the alert rule that fired this alert instance.
+ * @example 8f3a2b1c-4d5e-6f7a-8b9c-0d1e2f3a4b5c
+ */
+ rule_id: string;
+ /**
+ * @description Severity of the breached threshold.
+ * @example warning
+ * @enum {string}
+ */
+ severity: "warning" | "critical";
+ /**
+ * @description Current status of the alert instance.
+ * @example active
+ * @enum {string}
+ */
+ status: "active" | "resolved";
+ /**
+ * @description URN of the DigitalOcean resource the alert fired for. May be an empty
+ * string for alerts fired on non-resource-bound signals (for example,
+ * cluster/pod/namespace-scoped Kubernetes alerts).
+ * @example do:droplet:12345
+ */
+ resource_urn?: string;
+ /**
+ * Format: double
+ * @description The observed metric value that breached the threshold.
+ * @example 87.5
+ */
+ value: number;
+ /**
+ * Format: date-time
+ * @description Time the alert instance first fired.
+ * @example 2026-09-03T10:15:00Z
+ */
+ triggered_at: string;
+ /**
+ * Format: date-time
+ * @description Time the alert instance most recently fired.
+ * @example 2026-09-03T10:45:00Z
+ */
+ last_triggered_at: string;
+ /**
+ * Format: date-time
+ * @description Time the alert instance resolved. Only present when `status` is
+ * `resolved`.
+ * @example 2026-09-03T11:00:00Z
+ */
+ resolved_at?: string;
+ /**
+ * Format: date-time
+ * @description Time a notification was last sent for this alert instance.
+ * @example 2026-09-03T10:15:00Z
+ */
+ last_notified_at?: string;
+ };
+ /** @description A filter applied to the metrics query. */
+ query_filter: {
+ /**
+ * @description The metric label or field to filter on.
+ * @example host_id
+ */
+ field: string;
+ /**
+ * @description Comparison operator for the filter. Allowed values:
+ *
+ * - `FILTER_OPERATOR_EQUAL` = equal
+ * - `FILTER_OPERATOR_NOT_EQUAL` = `not_equal`
+ * - `FILTER_OPERATOR_LESS_THAN` = `less_than`
+ * - `FILTER_OPERATOR_LESS_THAN_OR_EQUAL` = `less_than_or_equal`
+ * - `FILTER_OPERATOR_GREATER_THAN` = `greater_than`
+ * - `FILTER_OPERATOR_GREATER_THAN_OR_EQUAL` = `greater_than_or_equal`
+ * @example FILTER_OPERATOR_EQUAL
+ * @enum {string}
+ */
+ operator: "FILTER_OPERATOR_EQUAL" | "FILTER_OPERATOR_NOT_EQUAL" | "FILTER_OPERATOR_LESS_THAN" | "FILTER_OPERATOR_LESS_THAN_OR_EQUAL" | "FILTER_OPERATOR_GREATER_THAN" | "FILTER_OPERATOR_GREATER_THAN_OR_EQUAL";
+ /**
+ * @description Value compared against the field.
+ * @example 12345678
+ */
+ value: string;
+ };
+ /**
+ * @description Metrics query that the alert rule evaluates. `metric` must be a dotted
+ * OpenTelemetry name (for example `do.droplets.cpu_utilization`). Underscored
+ * Prometheus-style names are rejected. When `resource_urns` is omitted or empty,
+ * the rule is not scoped to specific resources.
+ */
+ metrics_query: {
+ /**
+ * @description Dotted OpenTelemetry metric name to evaluate
+ * (for example `do.droplets.cpu_utilization`).
+ * @example do.droplets.cpu_utilization
+ */
+ metric: string;
+ /** @description Optional label filters applied to the metric series. */
+ filters?: components["schemas"]["query_filter"][];
+ /**
+ * @description Optional list of DigitalOcean resource URNs the rule applies to. Empty or
+ * omitted means the rule is not scoped to specific resources.
+ * @example [
+ * "do:droplet:12345"
+ * ]
+ */
+ resource_urns?: string[];
+ /**
+ * @description Optional resource tags used to select matching resources.
+ * @example [
+ * "env:prod"
+ * ]
+ */
+ tags?: string[];
+ };
+ /** @description Evaluation condition for the alert rule. */
+ alert_condition: {
+ /**
+ * @description Time window over which the metric is evaluated. Allowed values:
+ *
+ * - `EVALUATION_WINDOW_1M` = `1m`
+ * - `EVALUATION_WINDOW_5M` = `5m`
+ * - `EVALUATION_WINDOW_10M` = `10m`
+ * - `EVALUATION_WINDOW_15M` = `15m`
+ * - `EVALUATION_WINDOW_30M` = `30m`
+ * - `EVALUATION_WINDOW_1H` = `1h`
+ * @example EVALUATION_WINDOW_5M
+ * @enum {string}
+ */
+ window?: "EVALUATION_WINDOW_1M" | "EVALUATION_WINDOW_5M" | "EVALUATION_WINDOW_10M" | "EVALUATION_WINDOW_15M" | "EVALUATION_WINDOW_30M" | "EVALUATION_WINDOW_1H";
+ };
+ /**
+ * @description Threshold configuration for the alert rule. At least one of `warning` or
+ * `critical` must be set.
+ */
+ alert_thresholds: {
+ /**
+ * Format: double
+ * @description Warning threshold value.
+ * @example 80
+ */
+ warning?: number;
+ /**
+ * Format: double
+ * @description Critical threshold value.
+ * @example 95
+ */
+ critical?: number;
+ /**
+ * @description Comparison operator applied to the aggregated metric value. Allowed
+ * values:
+ *
+ * - `THRESHOLD_OPERATOR_EQUAL` = equal
+ * - `THRESHOLD_OPERATOR_LESS_THAN_OR_EQUAL` = `less_than_or_equal`
+ * - `THRESHOLD_OPERATOR_LESS_THAN` = `less_than`
+ * - `THRESHOLD_OPERATOR_GREATER_THAN` = `greater_than`
+ * - `THRESHOLD_OPERATOR_GREATER_THAN_OR_EQUAL` = `greater_than_or_equal`
+ * - `THRESHOLD_OPERATOR_NOT_EQUAL` = `not_equal`
+ * @example THRESHOLD_OPERATOR_GREATER_THAN
+ * @enum {string}
+ */
+ operator: "THRESHOLD_OPERATOR_EQUAL" | "THRESHOLD_OPERATOR_LESS_THAN_OR_EQUAL" | "THRESHOLD_OPERATOR_LESS_THAN" | "THRESHOLD_OPERATOR_GREATER_THAN" | "THRESHOLD_OPERATOR_GREATER_THAN_OR_EQUAL" | "THRESHOLD_OPERATOR_NOT_EQUAL";
+ } | unknown | unknown;
+ /**
+ * @description Binding from an alert rule to a notification channel. When `notify_on` is
+ * omitted or empty, the channel is notified for all severities.
+ */
+ notification_channel_binding: {
+ /**
+ * Format: uuid
+ * @description ID of an existing notification channel owned by the account.
+ * @example 550e8400-e29b-41d4-a716-446655440000
+ */
+ notification_channel_id: string;
+ /**
+ * @description Severities that trigger this channel. Allowed values:
+ *
+ * - `SEVERITY_WARNING` = warning
+ * - `SEVERITY_CRITICAL` = critical
+ * @example [
+ * "SEVERITY_CRITICAL"
+ * ]
+ */
+ notify_on?: ("SEVERITY_WARNING" | "SEVERITY_CRITICAL")[];
+ };
+ /**
+ * @description Spec for an Insights alert rule. On create, `name`, `query`, `thresholds`,
+ * and at least one `notification_channels` binding are required. On update,
+ * omit `notification_channels` to keep existing bindings; an explicit empty
+ * list is rejected.
+ */
+ alert_rule_spec: {
+ /**
+ * @description A human-readable name for the alert rule.
+ * @example High CPU
+ */
+ name: string;
+ query: components["schemas"]["metrics_query"];
+ condition?: components["schemas"]["alert_condition"];
+ thresholds: components["schemas"]["alert_thresholds"];
+ /** @description Notification channels to notify when the rule fires. */
+ notification_channels?: components["schemas"]["notification_channel_binding"][];
+ /**
+ * @description Minimum wait before re-notifying a still-firing alert. Defaults to
+ * `RE_ALERT_DURATION_4H` on create when omitted. Allowed values:
+ *
+ * - `RE_ALERT_DURATION_30M` = `30m`
+ * - `RE_ALERT_DURATION_1H` = `1h`
+ * - `RE_ALERT_DURATION_4H` = `4h`
+ * - `RE_ALERT_DURATION_NEVER` = never
+ * @example RE_ALERT_DURATION_4H
+ * @enum {string}
+ */
+ re_alert_duration?: "RE_ALERT_DURATION_30M" | "RE_ALERT_DURATION_1H" | "RE_ALERT_DURATION_4H" | "RE_ALERT_DURATION_NEVER";
+ };
+ /** @description An Insights alert rule. */
+ alert_rule: {
+ /**
+ * Format: uuid
+ * @description A unique identifier for the alert rule.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ readonly id: string;
+ spec: components["schemas"]["alert_rule_spec"];
+ /**
+ * @description Current alert rule status. Allowed values:
+ *
+ * - `ALERT_RULE_STATUS_ACTIVE` = active
+ * - `ALERT_RULE_STATUS_PAUSED` = paused
+ * @example ALERT_RULE_STATUS_ACTIVE
+ * @enum {string}
+ */
+ readonly status: "ALERT_RULE_STATUS_ACTIVE" | "ALERT_RULE_STATUS_PAUSED";
+ /**
+ * Format: date-time
+ * @description Time the alert rule was created.
+ * @example 2026-09-03T10:00:00Z
+ */
+ readonly created_at: string;
+ /**
+ * Format: date-time
+ * @description Time the alert rule was last updated.
+ * @example 2026-09-03T10:00:00Z
+ */
+ readonly updated_at: string;
+ };
+ list_alert_rules: {
+ alert_rules: components["schemas"]["alert_rule"][];
+ };
+ /**
+ * @description Create or update body for an alert rule. `spec` is required. `status` is
+ * optional; create defaults to `ALERT_RULE_STATUS_ACTIVE`, and update keeps the
+ * existing status when omitted.
+ */
+ alert_rule_request: {
+ spec: components["schemas"]["alert_rule_spec"];
+ /**
+ * @description Desired alert rule status. Allowed values:
+ *
+ * - `ALERT_RULE_STATUS_ACTIVE` = active
+ * - `ALERT_RULE_STATUS_PAUSED` = paused
+ * @example ALERT_RULE_STATUS_ACTIVE
+ * @enum {string}
+ */
+ status?: "ALERT_RULE_STATUS_ACTIVE" | "ALERT_RULE_STATUS_PAUSED";
+ };
+ alert_rule_create_request: components["schemas"]["alert_rule_request"] & {
+ spec?: components["schemas"]["alert_rule_spec"] & Record;
+ };
+ /** @description An Insights dashboard. */
+ dashboard: {
+ /**
+ * Format: uuid
+ * @description A unique identifier for the dashboard.
+ * @example 7c9e6679-7425-40de-944b-e07fc1f90ae7
+ */
+ readonly uuid: string;
+ /**
+ * @description The dashboard's display name. Populated by the server from `spec.display.name`; it cannot be set directly. Omitted when `spec.display.name` is an empty string.
+ * @example Droplet CPU
+ */
+ readonly name?: string;
+ /**
+ * @description The dashboard's display description. Populated by the server from `spec.display.description`; it cannot be set directly. Omitted when the spec has no description.
+ * @example CPU utilization across production Droplets.
+ */
+ readonly description?: string;
+ /**
+ * @description The dashboard definition as a JSON document serialized to a string. The document must have `kind` set to `Dashboard` and a `spec.display.name` between 1 and 255 characters, which is projected to `name`. An optional `spec.display.description` of up to 1000 characters is projected to `description`. Retrieve the full JSON Schema from `GET /v2/insights/dashboards/schema`. The document is returned in a normalized form: content is unchanged, but object keys may be reordered and whitespace may differ from the submitted string.
+ * @example {"kind": "Dashboard", "spec": {"panels": {"cpu": {"kind": "Panel", "spec": {"plugin": {"kind": "TimeSeriesChart", "spec": {}}, "display": {"name": "CPU utilization"}, "queries": [{"kind": "TimeSeriesQuery", "spec": {"plugin": {"kind": "MetricsTimeSeriesQuery", "spec": {"kind": "gauge", "filters": [], "groupBy": [], "metricName": "do.droplets.cpu_utilization"}}}}]}}}, "display": {"name": "Droplet CPU", "description": "CPU utilization across production Droplets."}, "layouts": [{"kind": "Grid", "spec": {"items": [{"x": 0, "y": 0, "width": 12, "height": 6, "content": {"$ref": "#/spec/panels/cpu"}}]}}], "duration": "1h", "variables": []}, "apiVersion": "perses.dev/v1alpha1"}
+ */
+ spec: string;
+ /**
+ * Format: date-time
+ * @description Time the dashboard was created.
+ * @example 2026-10-29T10:21:44Z
+ */
+ readonly created_at: string;
+ /**
+ * Format: date-time
+ * @description Time the dashboard was last updated.
+ * @example 2026-10-29T10:21:44Z
+ */
+ readonly updated_at: string;
+ };
+ /** @description Page-based pagination metadata for a dashboards list. */
+ dashboards_pagination_response: {
+ /**
+ * @description The current page number.
+ * @example 1
+ */
+ page: number;
+ /**
+ * @description The total number of pages. Omitted when there are no results.
+ * @example 3
+ */
+ pages?: number;
+ /**
+ * @description The number of items per page.
+ * @example 20
+ */
+ per_page: number;
+ /**
+ * @description The total number of dashboards across all pages. Omitted when there are no results.
+ * @example 42
+ */
+ total?: number;
+ };
+ /** @description Response body for listing dashboards. */
+ list_dashboards_response: {
+ /** @description The requested page of dashboards. Omitted when the page is empty. */
+ dashboards?: components["schemas"]["dashboard"][];
+ pagination: components["schemas"]["dashboards_pagination_response"];
+ };
+ /** @description Error body returned by the dashboards service. Unlike most DigitalOcean API errors, this body carries a gRPC status code rather than an `id` string. */
+ dashboard_error: {
+ /**
+ * @description A human-readable description of the error. Identical to `message`.
+ * @example dashboard not found
+ */
+ error: string;
+ /**
+ * @description A human-readable description of the error. Identical to `error`.
+ * @example dashboard not found
+ */
+ message: string;
+ /**
+ * @description The gRPC status code for the error. `3` = invalid argument, `5` = not found, `6` = already exists, `8` = resource exhausted, `13` = internal.
+ * @example 5
+ */
+ code: number;
+ /** @description Additional machine-readable error details. Omitted when there are none. Each entry carries an `@type` identifying its schema. */
+ details?: {
+ [key: string]: unknown;
+ }[];
+ };
+ /** @description Request body for creating or updating a dashboard. */
+ dashboard_request: {
+ /**
+ * @description The dashboard definition as a JSON document serialized to a string. The document must have `kind` set to `Dashboard` and a `spec.display.name` between 1 and 255 characters. An empty value or a value that is not valid JSON is rejected with `400`. Retrieve the full JSON Schema from `GET /v2/insights/dashboards/schema`.
+ * @example {"kind":"Dashboard","apiVersion":"perses.dev/v1alpha1","spec":{"display":{"name":"Droplet CPU","description":"CPU utilization across production Droplets."},"duration":"1h","variables":[],"layouts":[{"kind":"Grid","spec":{"items":[{"x":0,"y":0,"width":12,"height":6,"content":{"$ref":"#/spec/panels/cpu"}}]}}],"panels":{"cpu":{"kind":"Panel","spec":{"display":{"name":"CPU utilization"},"plugin":{"kind":"TimeSeriesChart","spec":{}},"queries":[{"kind":"TimeSeriesQuery","spec":{"plugin":{"kind":"MetricsTimeSeriesQuery","spec":{"metricName":"do.droplets.cpu_utilization","kind":"gauge","filters":[],"groupBy":[]}}}}]}}}}}
+ */
+ spec: string;
+ };
+ /**
+ * @description Email notification channel configuration. Recipients must be team contact
+ * emails added and verified by a team owner. They do not need to be team
+ * members.
+ */
+ email_notification_config: {
+ /**
+ * @description One or more recipient email addresses, separated by commas, semicolons,
+ * or spaces.
+ * @example alerts@example.com, backup@example.com
+ */
+ to: string;
+ };
+ /**
+ * @description Indicates whether a secret credential is configured without exposing its
+ * value. Status fields that use this schema are omitted from responses when
+ * the secret is not set.
+ */
+ secret_status: {
+ /**
+ * @description Whether the secret is configured.
+ * @example true
+ */
+ configured: boolean;
+ };
+ /**
+ * @description Slack notification channel configuration as returned in API responses. The
+ * webhook URL is never returned; `webhook_url_status` indicates whether it is
+ * configured.
+ */
+ slack_notification_config_response: {
+ /**
+ * @description The Slack channel name to notify.
+ * @example #platform-alerts
+ */
+ channel: string;
+ /**
+ * @description Present when a Slack webhook URL is configured. Omitted when not
+ * configured.
+ */
+ webhook_url_status?: components["schemas"]["secret_status"];
+ };
+ /**
+ * @description HTTP basic authentication as returned in API responses. The password is
+ * never returned; `password_status` indicates whether it is configured.
+ */
+ webhook_basic_auth_response: {
+ /**
+ * @description Basic auth username.
+ * @example webhook-user
+ */
+ username: string;
+ /**
+ * @description Present when a basic auth password is configured. Omitted when not
+ * configured.
+ */
+ password_status?: components["schemas"]["secret_status"];
+ };
+ /**
+ * @description Bearer token authentication as returned in API responses. The token is never
+ * returned; `token_status` indicates whether it is configured.
+ */
+ webhook_bearer_token_response: {
+ /** @description Present when a bearer token is configured. Omitted when not configured. */
+ token_status?: components["schemas"]["secret_status"];
+ };
+ /**
+ * @description HMAC signature configuration as returned in API responses. The signing
+ * secret is never returned; `secret_status` indicates whether it is
+ * configured.
+ */
+ webhook_signature_config_response: {
+ /**
+ * @description Present when a signing secret is configured. Omitted when not
+ * configured.
+ */
+ secret_status?: components["schemas"]["secret_status"];
+ };
+ /**
+ * @description Generic HTTPS webhook notification channel configuration as returned in API
+ * responses. The URL and headers are returned in full. Credential secrets are
+ * never returned; nested `*_status` objects indicate whether they are
+ * configured.
+ */
+ webhook_notification_config_response: {
+ /**
+ * Format: uri
+ * @description HTTPS URL that receives webhook deliveries.
+ * @example https://example.com/hook
+ */
+ url: string;
+ basic_auth?: components["schemas"]["webhook_basic_auth_response"];
+ bearer_token?: components["schemas"]["webhook_bearer_token_response"];
+ /**
+ * @description Optional custom HTTP headers included on webhook deliveries. At most 20
+ * headers are allowed.
+ * @example {
+ * "X-Custom": "1"
+ * }
+ */
+ headers?: {
+ [key: string]: string;
+ };
+ signature?: components["schemas"]["webhook_signature_config_response"];
+ };
+ /**
+ * @description Output-only usage summary derived from alert rules that reference this
+ * notification channel.
+ */
+ notification_channel_usage: {
+ /**
+ * @description Number of alert rules that reference this channel.
+ * @example 2
+ */
+ rule_count?: number;
+ };
+ /** @description A reusable Insights notification channel. */
+ notification_channel: {
+ /**
+ * Format: uuid
+ * @description A unique identifier for the notification channel.
+ * @example 550e8400-e29b-41d4-a716-446655440000
+ */
+ readonly id: string;
+ /**
+ * @description A human-readable name for the notification channel.
+ * @example On-call email
+ */
+ name: string;
+ /**
+ * @description The configured channel type. Allowed values:
+ *
+ * - `CHANNEL_TYPE_EMAIL` = email
+ * - `CHANNEL_TYPE_SLACK` = slack
+ * - `CHANNEL_TYPE_WEBHOOK` = webhook
+ * @example CHANNEL_TYPE_EMAIL
+ * @enum {string}
+ */
+ readonly channel_type: "CHANNEL_TYPE_EMAIL" | "CHANNEL_TYPE_SLACK" | "CHANNEL_TYPE_WEBHOOK";
+ email?: components["schemas"]["email_notification_config"];
+ slack?: components["schemas"]["slack_notification_config_response"];
+ webhook?: components["schemas"]["webhook_notification_config_response"];
+ readonly usage?: components["schemas"]["notification_channel_usage"];
+ /**
+ * Format: date-time
+ * @description Time the notification channel was created.
+ * @example 2026-09-03T10:15:00Z
+ */
+ readonly created_at: string;
+ /**
+ * Format: date-time
+ * @description Time the notification channel was last updated.
+ * @example 2026-09-03T10:15:00Z
+ */
+ readonly updated_at: string;
+ };
+ list_notification_channels: {
+ notification_channels: components["schemas"]["notification_channel"][];
+ };
+ /**
+ * @description Slack notification channel configuration for create and update requests.
+ * `webhook_url` is write-only: send the full value to set or rotate. Omit
+ * `webhook_url` on update to keep the existing secret.
+ */
+ slack_notification_config: {
+ /**
+ * @description Slack incoming webhook URL. Write-only secret — send the full value on
+ * create or update. Omit on update to retain the existing value. Never
+ * returned in responses.
+ * @example https://hooks.slack.com/services/T000/B000/XXXXXXXX
+ */
+ webhook_url?: string;
+ /**
+ * @description The Slack channel name to notify.
+ * @example #platform-alerts
+ */
+ channel: string;
+ };
+ /**
+ * @description HTTP basic authentication credentials for a webhook create or update
+ * request. `password` is write-only: send the full value to set or rotate.
+ * Omit `password` on update to keep the existing password.
+ */
+ webhook_basic_auth: {
+ /**
+ * @description Basic auth username.
+ * @example webhook-user
+ */
+ username: string;
+ /**
+ * Format: password
+ * @description Basic auth password. Write-only secret — send the full value on create
+ * or update. Omit on update to retain the existing value. Never returned
+ * in responses.
+ * @example secret-password
+ */
+ password?: string;
+ };
+ /**
+ * @description Bearer token authentication for a webhook create or update request. `token`
+ * is write-only: send the full value to set or rotate. Omit `token` on update
+ * to keep the existing token.
+ */
+ webhook_bearer_token: {
+ /**
+ * Format: password
+ * @description Bearer token value sent in the Authorization header. Write-only secret —
+ * send the full value on create or update. Omit on update to retain the
+ * existing value. Never returned in responses.
+ * @example secret-token
+ */
+ token?: string;
+ };
+ /**
+ * @description Optional HMAC signature configuration for a webhook create or update
+ * request. `secret` is write-only: send the full value to set or rotate. Omit
+ * `secret` on update to keep the existing secret.
+ */
+ webhook_signature_config: {
+ /**
+ * Format: password
+ * @description Shared secret used to sign webhook payloads. Write-only secret — send
+ * the full value on create or update. Omit on update to retain the
+ * existing value. Never returned in responses.
+ * @example whsec
+ */
+ secret?: string;
+ };
+ /**
+ * @description Generic HTTPS webhook notification channel configuration for create and
+ * update requests. The URL must use HTTPS and must not include userinfo.
+ * Optionally configure either `basic_auth` or `bearer_token` (not both),
+ * custom headers, and a signing secret.
+ *
+ * `url` is not a secret and is returned in full on read. Credential fields
+ * (`basic_auth.password`, `bearer_token.token`, `signature.secret`) are
+ * write-only: send the full value to set or rotate. Omit a secret field on
+ * update to keep the existing value. Responses return nested `*_status`
+ * objects instead of secret values.
+ */
+ webhook_notification_config: {
+ /**
+ * Format: uri
+ * @description HTTPS URL that receives webhook deliveries. Returned in full on read.
+ * @example https://example.com/hook
+ */
+ url: string;
+ basic_auth?: components["schemas"]["webhook_basic_auth"];
+ bearer_token?: components["schemas"]["webhook_bearer_token"];
+ /**
+ * @description Optional custom HTTP headers to include on webhook deliveries. At most
+ * 20 headers are allowed. Reserved header names such as `host`,
+ * `content-type`, and `proxy-*` are rejected.
+ * @example {
+ * "X-Custom": "1"
+ * }
+ */
+ headers?: {
+ [key: string]: string;
+ };
+ signature?: components["schemas"]["webhook_signature_config"];
+ };
+ /**
+ * @description Create or update body for a notification channel. Provide a `name` and
+ * exactly one of `email`, `slack`, or `webhook`.
+ *
+ * Secret fields are write-only: send the full value to set or rotate; omit the
+ * field on update to keep the existing secret.
+ */
+ notification_channel_request: {
+ /**
+ * @description A human-readable name for the notification channel.
+ * @example Platform alerts
+ */
+ name: string;
+ email?: components["schemas"]["email_notification_config"];
+ slack?: components["schemas"]["slack_notification_config"];
+ webhook?: components["schemas"]["webhook_notification_config"];
+ } & (unknown | unknown | unknown);
+ /**
+ * @description Metric labels as key/value pairs. By default, metric names in responses use Prometheus underscored spelling (for example `do_droplets_cpu_time`), even when the request used a dotted selector (for example `do.droplets.cpu_time`).
+ * @example {
+ * "__name__": "do_droplets_cpu_time"
+ * }
+ */
+ prom_metric_labels: {
+ [key: string]: string;
+ };
+ /**
+ * @description A Prometheus sample as `[timestamp_seconds, value]`. The timestamp is a UNIX epoch float; the value is a string.
+ * @example [
+ * 1620683817,
+ * "1"
+ * ]
+ */
+ prom_sample: (number | string)[];
+ prom_vector_sample: {
+ metric: components["schemas"]["prom_metric_labels"];
+ value: components["schemas"]["prom_sample"];
+ };
+ prom_matrix_sample: {
+ metric: components["schemas"]["prom_metric_labels"];
+ values: components["schemas"]["prom_sample"][];
+ };
+ prom_query_data: {
+ /**
+ * @example vector
+ * @enum {string}
+ */
+ resultType: "vector" | "matrix" | "scalar" | "string";
+ /**
+ * @description Result payload shape depends on `resultType`. `vector` and `matrix` are series arrays. `scalar` and `string` both use a `[timestamp, value]` sample pair.
+ * @example [
+ * {
+ * "metric": {
+ * "__name__": "do_droplets_cpu_time"
+ * },
+ * "value": [
+ * 1620683817,
+ * "1"
+ * ]
+ * }
+ * ]
+ */
+ result: components["schemas"]["prom_vector_sample"][] | components["schemas"]["prom_matrix_sample"][] | components["schemas"]["prom_sample"];
+ };
+ prom_query_response: {
+ /**
+ * @example success
+ * @enum {string}
+ */
+ status: "success";
+ data: components["schemas"]["prom_query_data"];
+ };
+ prom_error: {
+ /**
+ * @example error
+ * @enum {string}
+ */
+ status: "error";
+ /**
+ * @description Prometheus error category.
+ * @example bad_data
+ * @enum {string}
+ */
+ errorType: "bad_data" | "internal" | "timeout" | "canceled" | "execution" | "unavailable";
+ /**
+ * @description Human-readable error message.
+ * @example missing query parameter
+ */
+ error: string;
+ };
+ prom_matrix_data: {
+ /**
+ * @example matrix
+ * @enum {string}
+ */
+ resultType: "matrix";
+ /**
+ * @description One entry per matching series, each carrying the samples evaluated at every step across the requested range.
+ * @example [
+ * {
+ * "metric": {
+ * "__name__": "do_droplets_cpu_time"
+ * },
+ * "values": [
+ * [
+ * 1620683817,
+ * "1"
+ * ],
+ * [
+ * 1620683832,
+ * "1"
+ * ]
+ * ]
+ * }
+ * ]
+ */
+ result: components["schemas"]["prom_matrix_sample"][];
+ };
+ prom_query_range_response: {
+ /**
+ * @example success
+ * @enum {string}
+ */
+ status: "success";
+ data: components["schemas"]["prom_matrix_data"];
+ };
+ prom_string_list_response: {
+ /**
+ * @example success
+ * @enum {string}
+ */
+ status: "success";
+ /**
+ * @example [
+ * "__name__",
+ * "job",
+ * "instance"
+ * ]
+ */
+ data: string[];
+ };
+ prom_series_response: {
+ /**
+ * @example success
+ * @enum {string}
+ */
+ status: "success";
+ data: components["schemas"]["prom_metric_labels"][];
+ };
+ /** @description A single point in time. Exactly one value form is set per message. */
+ logs_time_instant: {
+ /**
+ * Format: date-time
+ * @description An absolute timestamp. Accepts RFC3339/RFC3339Nano strings or Unix seconds/nanoseconds as decimal strings.
+ * @example 2026-09-01T00:00:00Z
+ */
+ absolute?: string;
+ /**
+ * @description A relative time. Use `now` for the current time, a bare duration such as `1h` or `7d` to look back from now, or an offset such as `now-1h` or `now+30m`. Supported units are `s`, `m`, `h`, `d`, and `w`.
+ * @example 1h
+ */
+ relative?: string;
+ /**
+ * Format: int64
+ * @description A Unix nanosecond timestamp, encoded as a string to preserve 64-bit precision.
+ * @example 1756684800000000000
+ */
+ unix_nano?: string;
+ };
+ /** @description An inclusive query time window. */
+ logs_time_range: {
+ from: components["schemas"]["logs_time_instant"];
+ to: components["schemas"]["logs_time_instant"];
+ };
+ /** @description A reference to a logical field for filters, ordering, grouping, or facets. */
+ logs_field_ref: {
+ /**
+ * @description The field name. Intrinsic columns include `timestamp`, `severity_text`, `severity_number`, `body`, `trace_id`, `span_id`, and `trace_flags`. The dotted shorthands `service.name`, `resource.type`, and `resource.urn` are also supported. Arbitrary resource or log attributes can be accessed with `ResourceAttributes['key']` or `LogAttributes['key']`.
+ * @example service.name
+ */
+ name: string;
+ /**
+ * @description The attribute scope to resolve the field against. Omit to let the server apply its default mapping for the field name.
+ * @example FIELD_SCOPE_RESOURCE
+ * @enum {string}
+ */
+ scope?: "FIELD_SCOPE_RESOURCE" | "FIELD_SCOPE_ATTRIBUTES";
+ };
+ /** @description A typed literal or list value for a filter condition. Exactly one kind is set per message. */
+ logs_filter_value: {
+ /** @example droplet-123 */
+ string_value?: string;
+ /** @example 42 */
+ number_value?: number;
+ /** @example true */
+ bool_value?: boolean;
+ string_array_value?: {
+ /**
+ * @example [
+ * "droplet-123",
+ * "droplet-456"
+ * ]
+ */
+ values: string[];
+ };
+ number_array_value?: {
+ /**
+ * @example [
+ * 42,
+ * 84
+ * ]
+ */
+ values: number[];
+ };
+ };
+ /** @description A single field comparison in a logs filter expression. */
+ logs_filter_condition: {
+ field: components["schemas"]["logs_field_ref"];
+ /**
+ * @description The comparison operator.
+ * @example FILTER_OPERATOR_EQ
+ * @enum {string}
+ */
+ operator: "FILTER_OPERATOR_EQ" | "FILTER_OPERATOR_NEQ" | "FILTER_OPERATOR_IN" | "FILTER_OPERATOR_EXISTS" | "FILTER_OPERATOR_GTE" | "FILTER_OPERATOR_LTE";
+ value?: components["schemas"]["logs_filter_value"];
+ };
+ /** @description A boolean filter tree for logs queries. Exactly one node is set per message. */
+ logs_filter_expression: {
+ condition?: components["schemas"]["logs_filter_condition"];
+ and?: {
+ expressions: components["schemas"]["logs_filter_expression"][];
+ };
+ or?: {
+ expressions: components["schemas"]["logs_filter_expression"][];
+ };
+ not?: components["schemas"]["logs_filter_expression"];
+ /** @description A substring search across the log body, service name, and resource URN. */
+ text_search?: {
+ /**
+ * @description The search string.
+ * @example error
+ */
+ query: string;
+ };
+ };
+ /** @description A sort clause for logs search results. */
+ logs_order_by: {
+ field: components["schemas"]["logs_field_ref"];
+ /**
+ * @description The sort direction. Omit to use the server default.
+ * @example SORT_DIRECTION_DESC
+ * @enum {string}
+ */
+ direction?: "SORT_DIRECTION_ASC" | "SORT_DIRECTION_DESC";
+ };
+ /** @description Opaque keyset pagination request. Cursors are only valid when ordering by `timestamp` alone. */
+ logs_pagination_request: {
+ /**
+ * Format: int32
+ * @description Maximum number of results to return. Defaults to 100 and is clamped to 1000.
+ * @default 100
+ * @example 100
+ */
+ limit?: number;
+ /**
+ * @description Opaque cursor from a previous response.
+ * @example eyJ0cyI6MTc1NjY4NDgwMDAwMDAwMDAwfQ
+ */
+ cursor?: string;
+ };
+ /** @description Request body for searching logs. */
+ logs_search_request: {
+ time_range: components["schemas"]["logs_time_range"];
+ filter?: components["schemas"]["logs_filter_expression"];
+ /** @description Sort clauses applied to the result set. */
+ order_by?: components["schemas"]["logs_order_by"][];
+ pagination?: components["schemas"]["logs_pagination_request"];
+ };
+ /** @description A single log record returned by a logs search. */
+ logs_log_record: {
+ /**
+ * Format: date-time
+ * @description The log record timestamp.
+ * @example 2026-09-01T00:00:00Z
+ */
+ timestamp: string;
+ /**
+ * Format: int32
+ * @description The numeric severity level.
+ * @example 17
+ */
+ severity_number?: number;
+ /**
+ * @description The textual severity level.
+ * @example Error
+ */
+ severity_text?: string;
+ /**
+ * @description The log message body. Omitted when empty.
+ * @example Connection timeout
+ */
+ body?: string;
+ /**
+ * @description The trace ID if present.
+ * @example abc123
+ */
+ trace_id?: string;
+ /**
+ * @description The span ID if present.
+ * @example def456
+ */
+ span_id?: string;
+ /**
+ * @description The service name that emitted the log.
+ * @example api-gateway
+ */
+ service_name?: string;
+ /**
+ * @description Resource attributes associated with the log.
+ * @example {
+ * "do.component": "droplet",
+ * "do.droplet.id": "12345678"
+ * }
+ */
+ resource?: {
+ [key: string]: string;
+ };
+ /**
+ * @description Log attributes.
+ * @example {
+ * "http.method": "GET",
+ * "http.status_code": "504"
+ * }
+ */
+ attributes?: {
+ [key: string]: string;
+ };
+ };
+ /** @description Pagination response. */
+ logs_pagination_response: {
+ /**
+ * @description Whether more results are available.
+ * @example true
+ */
+ has_more?: boolean;
+ /**
+ * @description Opaque cursor to fetch the next page.
+ * @example eyJ0cyI6MTc1NjY4NDgwMDAwMDAwMDAwfQ
+ */
+ next_cursor?: string;
+ };
+ /** @description Response body for a logs search. */
+ logs_search_response: {
+ /** @description Matching log records. Omitted when no records match. */
+ data?: components["schemas"]["logs_log_record"][];
+ pagination?: components["schemas"]["logs_pagination_response"];
+ };
+ /** @description A single point in time. Set `absolute` or `relative`; if both are set, `absolute` is used. */
+ traces_time_instant: {
+ /**
+ * @description An absolute timestamp, either RFC3339 (with optional fractional seconds) or a Unix epoch integer as a decimal string. Epoch precision is inferred from magnitude: seconds, milliseconds, microseconds, or nanoseconds.
+ * @example 2026-10-09T00:00:00Z
+ */
+ absolute?: string;
+ /**
+ * @description A time relative to now. Use `now` for the current time, a bare duration such as `15m` or `24h` to look back from now, or an offset such as `now-2h` or `now+30m`. Supported units are `s`, `m`, `h`, `d`, and `w`; decimal amounts such as `1.5h` are allowed.
+ * @example 15m
+ */
+ relative?: string;
+ };
+ /** @description An inclusive query time window. Both bounds are required, `from` must not be after `to`, and the window must not exceed 7 days (`168h`). */
+ traces_time_range: {
+ from: components["schemas"]["traces_time_instant"];
+ to: components["schemas"]["traces_time_instant"];
+ };
+ /** @description A reference to a span field, used in filters and `order_by`. */
+ traces_field_ref: {
+ /**
+ * @description The field name. Without `scope`, these names (case-insensitive) resolve to built-in span columns: `trace_id`, `span_id`, `parent_span_id`, `start_time`, `end_time`, `duration_ns`, `name` (`span.name`), `kind` (`span.kind`), `status_code` (`status.code`, `status_code`), `status_message`, and `service_name` (`service.name`). Any other name is looked up as a span attribute, falling back to a resource attribute. With `scope` set, `name` is always treated as an attribute key. Attribute keys may contain only letters, digits, and `.`, `_`, `-`, `/`, `:`, `@`.
+ *
+ * In traces `order_by`, `name` must be a trace-level sort field instead; see the `order_by` field description.
+ * @example service.name
+ */
+ name: string;
+ /**
+ * @description Restricts the lookup to one attribute map and is matched case-insensitively. `FIELD_SCOPE_RESOURCE` reads resource attributes and accepts `resource` or `resource.attributes` as aliases. `FIELD_SCOPE_ATTRIBUTES` reads span attributes and accepts `attribute`, `attributes`, or `span.attributes` as aliases. Omit to use the built-in column mapping described for `name`. Ignored in traces `order_by`.
+ * @example FIELD_SCOPE_RESOURCE
+ * @enum {string}
+ */
+ scope?: "FIELD_SCOPE_RESOURCE" | "FIELD_SCOPE_ATTRIBUTES" | "resource" | "resource.attributes" | "attribute" | "attributes" | "span.attributes";
+ };
+ /** @description A typed literal or list value for a traces filter condition. Exactly one kind is set per message. */
+ traces_filter_value: {
+ /** @example checkout-api */
+ string_value?: string;
+ /** @example 500000000 */
+ number_value?: number;
+ string_array_value?: {
+ /**
+ * @example [
+ * "checkout-api",
+ * "payments-api"
+ * ]
+ */
+ values: string[];
+ };
+ number_array_value?: {
+ /**
+ * @example [
+ * 42,
+ * 84
+ * ]
+ */
+ values: number[];
+ };
+ } & (unknown | unknown | unknown | unknown);
+ /** @description A single field comparison in a traces filter expression. */
+ traces_filter_condition: {
+ field: components["schemas"]["traces_field_ref"];
+ /**
+ * @description The comparison operator.
+ * @example FILTER_OPERATOR_EQ
+ * @enum {string}
+ */
+ operator: "FILTER_OPERATOR_EQ" | "FILTER_OPERATOR_NEQ" | "FILTER_OPERATOR_IN" | "FILTER_OPERATOR_EXISTS" | "FILTER_OPERATOR_GTE" | "FILTER_OPERATOR_LTE";
+ value?: components["schemas"]["traces_filter_value"];
+ } & ({
+ /**
+ * @example FILTER_OPERATOR_EXISTS
+ * @enum {string}
+ */
+ operator?: "FILTER_OPERATOR_EXISTS";
+ } | {
+ /**
+ * @example FILTER_OPERATOR_EQ
+ * @enum {string}
+ */
+ operator?: "FILTER_OPERATOR_EQ" | "FILTER_OPERATOR_NEQ" | "FILTER_OPERATOR_IN" | "FILTER_OPERATOR_GTE" | "FILTER_OPERATOR_LTE";
+ });
+ /** @description A boolean filter tree for traces queries. Exactly one node is set per message. Trees may be nested at most 16 levels deep and contain at most 256 nodes in total. */
+ traces_filter_expression: {
+ condition?: components["schemas"]["traces_filter_condition"];
+ and?: {
+ expressions: components["schemas"]["traces_filter_expression"][];
+ };
+ or?: {
+ expressions: components["schemas"]["traces_filter_expression"][];
+ };
+ not?: components["schemas"]["traces_filter_expression"];
+ /** @description A substring search across span names, service names, and status messages. */
+ text_search?: {
+ /**
+ * @description The search string. Leading and trailing whitespace is trimmed, and the remaining string must not be empty.
+ * @example timeout
+ */
+ query: string;
+ };
+ } & (unknown | unknown | unknown | unknown | unknown);
+ /**
+ * @description A sort clause for traces search results. Supported `field.name` values are `started`, `duration_ns`, `service_name`, `trace_id`, `error_count`, `span_count`, and `status`. Any other name returns `400`.
+ *
+ * Sorting by `started` is exact. For every other field, the server first selects the most recent matching traces by start time (up to the requested limit) and then sorts only those traces, so results are not a global top-N across the whole time range.
+ */
+ traces_order_by: {
+ field: components["schemas"]["traces_field_ref"];
+ /**
+ * @description The sort direction, matched case-insensitively. Omit to use the server default.
+ * @example desc
+ * @enum {string}
+ */
+ direction?: "asc" | "desc";
+ };
+ /** @description Limits the size of a traces search result set. There is no cursor; use `pagination.has_more` in the response to tell whether more traces matched, and narrow the time range or filter to see them. */
+ traces_pagination_request: {
+ /**
+ * Format: int32
+ * @description Maximum number of traces to return. Omitted or `0` uses the default of 100. Negative values or values above 1000 return `400`; they are not clamped.
+ * @default 100
+ * @example 50
+ */
+ limit?: number;
+ };
+ /** @description Request body for searching traces. Unknown properties are rejected. */
+ traces_search_request: {
+ time_range: components["schemas"]["traces_time_range"];
+ filter?: components["schemas"]["traces_filter_expression"];
+ /** @description Sort clauses applied in order. Defaults to `started` descending. */
+ order_by?: components["schemas"]["traces_order_by"][];
+ pagination?: components["schemas"]["traces_pagination_request"];
+ };
+ /** @description A single trace returned by a traces search. One row per trace, aggregated from its spans. Every field except `trace_id` is omitted when it holds its zero value (for example, `error_count` is absent when no spans errored). */
+ traces_trace_summary: {
+ /**
+ * @description The trace identifier.
+ * @example bef35030c4024f42fb88041fea062e97
+ */
+ trace_id: string;
+ /**
+ * Format: date-time
+ * @description The start time of the earliest span in the trace, in RFC 3339 format.
+ * @example 2026-10-09T09:21:39.99Z
+ */
+ started?: string;
+ /**
+ * @description The service that emitted the root span. Omitted when the root span has no service.name resource attribute.
+ * @example checkout-api
+ */
+ service_name?: string;
+ /**
+ * Format: int64
+ * @description Wall-clock duration of the trace in nanoseconds.
+ * @example 10000000
+ */
+ duration_ns?: number;
+ /**
+ * Format: int32
+ * @description The number of spans in the trace.
+ * @example 1
+ */
+ span_count?: number;
+ /**
+ * Format: int32
+ * @description The number of spans in the trace with an `Error` status code. Omitted when zero.
+ * @example 1
+ */
+ error_count?: number;
+ /**
+ * @description The rolled-up status of the trace. `Error` if any span has an `Error` status code, otherwise `Ok`.
+ * @example Ok
+ * @enum {string}
+ */
+ status?: "Ok" | "Error";
+ /**
+ * @description The distinct span names present in the trace.
+ * @example [
+ * "checkout-api-root"
+ * ]
+ */
+ span_names?: string[];
+ };
+ /** @description Pagination response. */
+ traces_pagination_response: {
+ /**
+ * @description Whether more results matched the query than were returned.
+ * @example false
+ */
+ has_more: boolean;
+ };
+ /** @description Response body for a traces search. */
+ traces_search_response: {
+ /** @description Matching traces. Empty when no traces match. */
+ data: components["schemas"]["traces_trace_summary"][];
+ pagination: components["schemas"]["traces_pagination_response"];
+ };
+ /** @description A single span belonging to a trace. */
+ traces_span_record: {
+ /**
+ * @description The trace this span belongs to.
+ * @example 7b0b4e56abab38362b24e5498eb9ec64
+ */
+ trace_id: string;
+ /**
+ * @description The span identifier.
+ * @example e7867486e45cda47
+ */
+ span_id: string;
+ /**
+ * @description The parent span identifier. Omitted for the root span.
+ * @example a2fb4a1d1a96d312
+ */
+ parent_span_id?: string;
+ /**
+ * Format: date-time
+ * @description The span start time.
+ * @example 2026-10-09T06:44:37Z
+ */
+ start_time?: string;
+ /**
+ * Format: date-time
+ * @description The span end time.
+ * @example 2026-10-09T06:44:39Z
+ */
+ end_time?: string;
+ /**
+ * Format: int64
+ * @description Span duration in nanoseconds.
+ * @example 200000000
+ */
+ duration_ns?: number;
+ /**
+ * @description The span name, typically the operation being performed.
+ * @example GET /checkout
+ */
+ name?: string;
+ /**
+ * @description The OpenTelemetry span kind as a string, for example `Server`, `Client`, or `Internal`.
+ * @example Server
+ */
+ kind?: string;
+ /**
+ * @description The OpenTelemetry span status code as a string: `Unset`, `Ok`, or `Error`.
+ * @example Error
+ */
+ status_code?: string;
+ /**
+ * @description The status description. Omitted when empty.
+ * @example upstream timeout
+ */
+ status_message?: string;
+ /**
+ * @description The service that emitted the span. Omitted when the span has no service.name resource attribute.
+ * @example checkout-api
+ */
+ service_name?: string;
+ /**
+ * @description Resource attributes associated with the span.
+ * @example {
+ * "service.name": "checkout-api"
+ * }
+ */
+ resource?: {
+ [key: string]: string;
+ };
+ /**
+ * @description Span attributes. Omitted when empty.
+ * @example {
+ * "http.method": "GET"
+ * }
+ */
+ attributes?: {
+ [key: string]: string;
+ };
+ };
+ /** @description A single trace and all of its spans. */
+ traces_trace_response: {
+ /**
+ * @description The trace identifier.
+ * @example 7b0b4e56abab38362b24e5498eb9ec64
+ */
+ trace_id?: string;
+ /** @description Every span in the trace, ordered by start time. */
+ spans?: components["schemas"]["traces_span_record"][];
+ /**
+ * @description True when the trace has more spans than were returned in this response. Omitted when false.
+ * @example false
+ */
+ truncated?: boolean;
+ };
+ /** @description A single time bound. Exactly one of `relative` or `absolute` is set. */
+ spans_time_bound: {
+ /**
+ * @description A relative time. Use `now` for the current time, a bare duration such as `1h` or `7d` to look back from now, or an offset such as `now-15m` or `now+30m`. Supported units are `s`, `m`, `h`, `d`, and `w`.
+ * @example 1h
+ */
+ relative?: string;
+ /**
+ * @description An absolute timestamp. Accepts an RFC3339/RFC3339Nano string or a Unix timestamp (seconds, milliseconds, microseconds, or nanoseconds) encoded as a decimal string.
+ * @example 2026-09-30T00:00:00Z
+ */
+ absolute?: string;
+ };
+ /** @description An inclusive query time window. The window must not exceed 7 days. */
+ spans_time_range: {
+ from: components["schemas"]["spans_time_bound"];
+ to: components["schemas"]["spans_time_bound"];
+ };
+ /** @description A reference to a searchable span field. */
+ spans_filter_field: {
+ /**
+ * @description The field name. Well-known span fields include `trace_id`, `span_id`, `parent_span_id`, `start_time`, `end_time`, `duration_ns`, `name`, `service_name`, `kind`, `status_code`, and `status_message`. Any other value is treated as a span or resource attribute key.
+ * @example service.name
+ */
+ name: string;
+ /**
+ * @description Optional attribute scope, matched case-insensitively. Use `FIELD_SCOPE_RESOURCE` to match a resource attribute or `FIELD_SCOPE_ATTRIBUTES` to match a span attribute. The aliases `resource` and `resource.attributes` are accepted for resource attributes; `attribute`, `attributes`, and `span.attributes` are accepted for span attributes. Omit for well-known fields or to search both attribute maps.
+ * @example FIELD_SCOPE_ATTRIBUTES
+ * @enum {string}
+ */
+ scope?: "FIELD_SCOPE_RESOURCE" | "FIELD_SCOPE_ATTRIBUTES" | "resource" | "resource.attributes" | "attribute" | "attributes" | "span.attributes";
+ };
+ /** @description A typed literal or list value for a spans filter condition. Exactly one kind is set per message. */
+ spans_filter_value: {
+ /** @example api-gateway */
+ string_value?: string;
+ /** @example 42 */
+ number_value?: number;
+ string_array_value?: {
+ /**
+ * @example [
+ * "api-gateway",
+ * "checkout"
+ * ]
+ */
+ values: string[];
+ };
+ number_array_value?: {
+ /**
+ * @example [
+ * 42,
+ * 84
+ * ]
+ */
+ values: number[];
+ };
+ } & (unknown | unknown | unknown | unknown);
+ /** @description A single field comparison in a spans filter expression. */
+ spans_filter_condition: {
+ field: components["schemas"]["spans_filter_field"];
+ /**
+ * @description The comparison operator.
+ * @example FILTER_OPERATOR_EQ
+ * @enum {string}
+ */
+ operator: "FILTER_OPERATOR_EQ" | "FILTER_OPERATOR_NEQ" | "FILTER_OPERATOR_IN" | "FILTER_OPERATOR_EXISTS" | "FILTER_OPERATOR_GTE" | "FILTER_OPERATOR_LTE";
+ value?: components["schemas"]["spans_filter_value"];
+ } & ({
+ /**
+ * @example FILTER_OPERATOR_EXISTS
+ * @enum {string}
+ */
+ operator?: "FILTER_OPERATOR_EXISTS";
+ } | {
+ /**
+ * @example FILTER_OPERATOR_EQ
+ * @enum {string}
+ */
+ operator?: "FILTER_OPERATOR_EQ" | "FILTER_OPERATOR_NEQ" | "FILTER_OPERATOR_IN" | "FILTER_OPERATOR_GTE" | "FILTER_OPERATOR_LTE";
+ });
+ /** @description A boolean filter tree for spans queries. Exactly one node is set per message. Trees may be nested at most 16 levels deep and contain at most 256 nodes in total. */
+ spans_filter_expression: {
+ condition?: components["schemas"]["spans_filter_condition"];
+ and?: {
+ expressions: components["schemas"]["spans_filter_expression"][];
+ };
+ or?: {
+ expressions: components["schemas"]["spans_filter_expression"][];
+ };
+ not?: components["schemas"]["spans_filter_expression"];
+ /** @description A substring search across the span name, service name, and status message. */
+ text_search?: {
+ /**
+ * @description The search string. Leading and trailing whitespace is trimmed, and the remaining string must not be empty.
+ * @example timeout
+ */
+ query: string;
+ };
+ } & (unknown | unknown | unknown | unknown | unknown);
+ /** @description A sort clause for spans search results. */
+ spans_order_by: {
+ field: components["schemas"]["spans_filter_field"];
+ /**
+ * @description The sort direction, matched case-insensitively. Omit to use the server default.
+ * @example desc
+ * @enum {string}
+ */
+ direction?: "asc" | "desc";
+ };
+ /** @description Limits the number of spans returned. */
+ spans_pagination_request: {
+ /**
+ * Format: int32
+ * @description Maximum number of spans to return. Defaults to 100 and must be between 1 and 1000.
+ * @default 100
+ * @example 100
+ */
+ limit?: number;
+ };
+ /** @description Request body for searching spans. */
+ spans_search_request: {
+ time_range: components["schemas"]["spans_time_range"];
+ filter?: components["schemas"]["spans_filter_expression"];
+ /** @description Sort clauses applied to the result set. Defaults to `start_time` descending when omitted. */
+ order_by?: components["schemas"]["spans_order_by"][];
+ pagination?: components["schemas"]["spans_pagination_request"];
+ };
+ /** @description A single span returned by a spans search. */
+ span_record: {
+ /**
+ * @description The trace identifier the span belongs to.
+ * @example 4bf92f3577b34da6a3ce929d0e0e4736
+ */
+ trace_id?: string;
+ /**
+ * @description The span identifier.
+ * @example 00f067aa0ba902b7
+ */
+ span_id?: string;
+ /**
+ * @description The parent span identifier. Omitted for root spans.
+ * @example 00f067aa0ba902b6
+ */
+ parent_span_id?: string;
+ /**
+ * Format: date-time
+ * @description The span start time.
+ * @example 2026-09-30T00:00:00Z
+ */
+ start_time?: string;
+ /**
+ * Format: date-time
+ * @description The span end time.
+ * @example 2026-09-30T00:00:01Z
+ */
+ end_time?: string;
+ /**
+ * Format: int64
+ * @description The span duration in nanoseconds.
+ * @example 1000000
+ */
+ duration_ns?: number;
+ /**
+ * @description The span name.
+ * @example GET /v2/droplets
+ */
+ name?: string;
+ /**
+ * @description The span kind.
+ * @example Server
+ */
+ kind?: string;
+ /**
+ * @description The span status code.
+ * @example Ok
+ */
+ status_code?: string;
+ /**
+ * @description The span status message. Omitted when empty.
+ * @example connection reset by peer
+ */
+ status_message?: string;
+ /**
+ * @description The name of the service that emitted the span.
+ * @example api-gateway
+ */
+ service_name?: string;
+ /**
+ * @description Resource attributes associated with the span.
+ * @example {
+ * "service.name": "api-gateway",
+ * "service.version": "1.4.2"
+ * }
+ */
+ resource?: {
+ [key: string]: string;
+ };
+ /**
+ * @description Span attributes.
+ * @example {
+ * "http.method": "GET",
+ * "http.status_code": "200"
+ * }
+ */
+ attributes?: {
+ [key: string]: string;
+ };
+ /**
+ * @description The datacenter region slug the span was queried from.
+ * @example nyc3
+ */
+ region?: string;
+ };
+ /** @description Pagination metadata for a spans search response. */
+ spans_pagination_response: {
+ /**
+ * @description Whether more spans matched than were returned in this page. Cursor-based continuation is not yet supported.
+ * @example true
+ */
+ has_more?: boolean;
+ };
+ /** @description Response body for a spans search. */
+ spans_search_response: {
+ /** @description Matching spans. Empty when no spans match. */
+ data?: components["schemas"]["span_record"][];
+ pagination?: components["schemas"]["spans_pagination_response"];
+ };
+ /** @description The enablement state of a single telemetry signal (metrics, logs, or traces) for a resource. A signal state is omitted from a resource when no explicit enablement has ever been recorded for that signal. */
+ resource_signal_state: {
+ /**
+ * @description Whether the signal is enabled for the resource.
+ * @example true
+ */
+ enabled?: boolean;
+ /**
+ * Format: date-time
+ * @description When this signal state last changed.
+ * @example 2026-10-01T12:00:00Z
+ */
+ effective_at?: string;
+ };
+ /** @description The current telemetry signal enablement for a single resource. */
+ enablement_resource: {
+ /**
+ * @description The uniform resource name (URN) of the resource.
+ * @example do:droplet:12345
+ */
+ resource_urn: string;
+ /**
+ * @description The product type of the resource, for example `droplet` or `kubernetes`.
+ * @example droplet
+ */
+ product_type: string;
+ /**
+ * @description The region slug for region-specific resources. Omitted when the resource has no region.
+ * @example nyc3
+ */
+ region?: string;
+ metrics?: components["schemas"]["resource_signal_state"];
+ logs?: components["schemas"]["resource_signal_state"];
+ traces?: components["schemas"]["resource_signal_state"];
+ };
+ /** @description Page-based pagination metadata for a resources list. */
+ resources_pagination_response: {
+ /**
+ * @description The current page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description The total number of pages. Omitted when there are no results.
+ * @example 3
+ */
+ pages?: number;
+ /**
+ * @description The number of items per page.
+ * @example 20
+ */
+ per_page?: number;
+ /**
+ * @description The total number of resources across all pages. Omitted when there are no results.
+ * @example 42
+ */
+ total?: number;
+ };
+ /** @description Response body for listing resource signal enablement. */
+ list_resources_response: {
+ /** @description Resources with recorded signal enablement. Omitted when none match. */
+ resources?: components["schemas"]["enablement_resource"][];
+ pagination?: components["schemas"]["resources_pagination_response"];
+ };
+ /** @description Response body wrapping a single resource's signal enablement. */
+ resource_response: {
+ resource: components["schemas"]["enablement_resource"];
+ };
+ /** @description Request body for updating a resource's signal enablement. At least one of `metrics`, `logs`, or `traces` must be set. Signals that are omitted are left unchanged. */
+ resource_signals_update_request: {
+ /**
+ * @description The region slug for region-specific resources. Only used when the resource has no existing enablement. On later updates, omit it or send the stored value; changing the region is rejected.
+ * @example nyc3
+ */
+ region?: string;
+ /**
+ * @description Enable or disable the metrics signal. Omit to leave unchanged.
+ * @example true
+ */
+ metrics?: boolean;
+ /**
+ * @description Enable or disable the logs signal. Omit to leave unchanged.
+ * @example true
+ */
+ logs?: boolean;
+ /**
+ * @description Enable or disable the traces signal. Omit to leave unchanged.
+ * @example false
+ */
+ traces?: boolean;
+ };
+ /** @description A consent record indicating whether signals collection is enabled for a source. Records with `source: agent` apply to one environment; the record with `source: inference` applies to the whole team. */
+ consent_record: {
+ /**
+ * @description The unique numeric identifier for the consent record.
+ * @example 13
+ */
+ id: number;
+ /**
+ * @description The team ID that owns this consent record.
+ * @example 39449946
+ */
+ team_id: number;
+ /**
+ * @description The source this consent applies to. `agent` is per-environment consent for Harness Runtime; `inference` is team-level consent for Serverless Inference chat completions.
+ * @example agent
+ * @enum {string}
+ */
+ source: "agent" | "inference";
+ /**
+ * @description The unique identifier of the environment. For Harness Runtime, this is the Environment Config ID. Empty for team-level records (`source: inference`), which are not tied to an environment.
+ * @example 019fb3d2-8a56-72cc-8bf9-9d21510b2a99
+ */
+ agent_id: string;
+ /**
+ * @description Same as agent_id when present. Dual-emitted during the rename; omitted when agent_id is empty.
+ * @example 019fb3d2-8a56-72cc-8bf9-9d21510b2a99
+ */
+ environment_id?: string;
+ /**
+ * @description Whether signals collection is enabled for this source.
+ * @example true
+ */
+ enabled: boolean;
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format.
+ * @example 2026-08-10T10:09:25.738533Z
+ */
+ updated_at: string;
+ };
+ /** @description A wrapper for a list of consent records. */
+ list_consents: {
+ /** @description A list of consent records for the team. Includes per-environment records (`source: agent`) and, when set, the team-level inference record (`source: inference`). */
+ consents: components["schemas"]["consent_record"][];
+ /**
+ * @description Echoes the `source` filter when the request was filtered by source. Omitted when the list was not filtered.
+ * @example inference
+ * @enum {string}
+ */
+ source?: "agent" | "inference";
+ };
+ /** @description Consent details for a specific environment. */
+ agent_consent: {
+ /**
+ * @description The unique numeric identifier for the consent record.
+ * @example 13
+ */
+ id?: number;
+ /**
+ * @description The team ID that owns this consent record.
+ * @example 39449946
+ */
+ team_id: number;
+ /**
+ * @description The source this consent applies to. Always `agent` for per-environment records returned by this endpoint.
+ * @example agent
+ * @enum {string}
+ */
+ source: "agent";
+ /**
+ * Format: uuid
+ * @description The unique identifier of the environment. For Harness Runtime, this is the Environment Config ID.
+ * @example 019fb3d2-8a56-72cc-8bf9-9d21510b2a99
+ */
+ agent_id: string;
+ /**
+ * Format: uuid
+ * @description Same as agent_id. Dual-emitted during the rename.
+ * @example 019fb3d2-8a56-72cc-8bf9-9d21510b2a99
+ */
+ environment_id: string;
+ /**
+ * @description Whether signals collection is enabled for this environment.
+ * @example true
+ */
+ enabled: boolean;
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format.
+ * @example 2026-08-10T10:09:25.738533Z
+ */
+ updated_at?: string;
+ };
+ /** @description A session represents a conversation monitored by Signals, such as a Harness Runtime environment session or a Serverless Inference chat completion. */
+ "session-2": {
+ /**
+ * Format: uuid
+ * @description The unique identifier for the session.
+ * @example 01a0f3d5-d5f1-798a-9352-2cd8f8b81e78
+ */
+ session_id: string;
+ /**
+ * @description The total number of conversation turns in this session.
+ * @example 5
+ */
+ total_turns?: number;
+ /**
+ * Format: date-time
+ * @description When the session started.
+ * @example 2026-09-15T14:30:00Z
+ */
+ started_at?: string;
+ /**
+ * @description The duration of the session in seconds.
+ * @example 120.5
+ */
+ duration_seconds?: number;
+ /**
+ * @description The number of signals detected in this session.
+ * @example 3
+ */
+ signal_count?: number;
+ };
+ /** @description A dialogue entry within a session, representing a single turn of conversation. */
+ session_dialogue: {
+ /**
+ * @description The unique identifier for the dialogue.
+ * @example 01a0f3d6-1234-7abc-def0-123456789abc
+ */
+ id: string;
+ /**
+ * @description The sequence number of this dialogue within the session.
+ * @example 1
+ */
+ sequence?: number;
+ /**
+ * @description The execution status of this dialogue turn.
+ * @example completed
+ */
+ run_status?: string;
+ /**
+ * @description The user's message in this dialogue turn.
+ * @example How do I create a Droplet?
+ */
+ user_message?: string;
+ /**
+ * @description A list of signal types detected in this dialogue.
+ * @example [
+ * "SatisfactionConfirmation"
+ * ]
+ */
+ signals?: string[];
+ };
+ /** @description An export job that produces a downloadable archive of signals data. */
+ export_job: {
+ /**
+ * Format: uuid
+ * @description The unique identifier for the export job.
+ * @example 9f13c09c-c877-436b-9863-dcc39c9dd737
+ */
+ export_id: string;
+ /**
+ * @description The scope of the export. `agent` covers one Harness Runtime environment; `inference` covers the team's Serverless Inference Signals conversations.
+ * @example agent
+ * @enum {string}
+ */
+ type?: "agent" | "inference";
+ /**
+ * Format: uuid
+ * @description The environment whose data is being exported. For Harness Runtime, this is the Environment Config ID. Not meaningful for `inference` exports; use `type` to distinguish the export scope.
+ * @example 01a0f3d5-b58d-7c99-a743-7ca0397b7f5d
+ */
+ agent_id?: string;
+ /**
+ * Format: uuid
+ * @description Same as agent_id. Dual-emitted during the rename.
+ * @example 01a0f3d5-b58d-7c99-a743-7ca0397b7f5d
+ */
+ environment_id?: string;
+ /**
+ * @description The current status of the export job.
+ * @example complete
+ * @enum {string}
+ */
+ status: "pending" | "processing" | "complete" | "failed";
+ /** @description The filters applied to this export. */
+ filters: {
+ /**
+ * @description Signal types included in the export.
+ * @example [
+ * "ExecutionFailureToolNotFound"
+ * ]
+ */
+ signal_type?: string[];
+ /**
+ * @description Specific session IDs included in the export.
+ * @example [
+ * "01a0f3d5-d5f1-798a-9352-2cd8f8b81e78"
+ * ]
+ */
+ session_ids?: string[];
+ };
+ /**
+ * @description Unix timestamp when the export was created.
+ * @example 1791036405
+ */
+ created_at: number;
+ /**
+ * @description Unix timestamp when the export completed, or null if still in progress.
+ * @example 1791036405
+ */
+ completed_at?: number | null;
+ /**
+ * @description Unix timestamp when the export download link expires.
+ * @example 1791641205
+ */
+ expires_at?: number | null;
+ /**
+ * @description Error message if the export failed, or null on success.
+ * @example null
+ */
+ error_message?: string | null;
+ };
+ /** @description Request body to create a new signals data export. */
+ create_export_request: {
+ /**
+ * @description The scope of the export. `agent` exports Signals conversations for one Harness Runtime environment and requires `environment_id` (or deprecated `agent_id`). `inference` exports Serverless Inference Signals conversations for the whole team (team-wide; omit `environment_id` and `agent_id`). Defaults to `agent` when `environment_id` or `agent_id` is provided and to `inference` when both are omitted.
+ * @example agent
+ * @enum {string}
+ */
+ type?: "agent" | "inference";
+ /**
+ * Format: uuid
+ * @description The environment whose data should be exported. For Harness Runtime, this is the Environment Config ID. Required when `type` is `agent` if `agent_id` is omitted; must be omitted when `type` is `inference`. Prefer this over `agent_id`.
+ * @example 01a0f3d5-b58d-7c99-a743-7ca0397b7f5d
+ */
+ environment_id?: string;
+ /**
+ * Format: uuid
+ * @deprecated
+ * @description Deprecated alias for `environment_id`. Accepted for backward compatibility; must equal `environment_id` when both are set. Both set and different returns 400. Required when `type` is `agent` if `environment_id` is omitted; must be omitted when `type` is `inference`.
+ * @example 01a0f3d5-b58d-7c99-a743-7ca0397b7f5d
+ */
+ agent_id?: string;
+ /**
+ * @description Filter the export to only include the specified signal types. Use the export options endpoint to list available values.
+ * @example [
+ * "ExecutionFailureToolNotFound"
+ * ]
+ */
+ signal_type?: string[];
+ /**
+ * @description Optional list of specific session IDs to include in the export.
+ * @example [
+ * "01a0f3d5-d5f1-798a-9352-2cd8f8b81e78"
+ * ]
+ */
+ session_ids?: string[];
+ /**
+ * Format: date-time
+ * @description Include only sessions that started at or after this timestamp.
+ * @example 2026-09-01T00:00:00Z
+ */
+ start_time?: string;
+ /**
+ * Format: date-time
+ * @description Include only sessions that started at or before this timestamp.
+ * @example 2026-10-01T00:00:00Z
+ */
+ end_time?: string;
+ };
+ /** @description Available filter options for creating exports. */
+ export_options: {
+ filters: {
+ /**
+ * @description The list of valid signal type values that can be used when creating an export.
+ * @example [
+ * "DisengagementEscalation",
+ * "DisengagementNegativeStance",
+ * "DisengagementQuit",
+ * "EnvironmentExhaustionApiError",
+ * "EnvironmentExhaustionContextOverflow",
+ * "ExecutionFailureToolNotFound",
+ * "ExecutionLoopsRetry",
+ * "MisalignmentCorrection",
+ * "SatisfactionConfirmation",
+ * "SatisfactionGratitude",
+ * "SatisfactionSuccess",
+ * "StagnationRepetition"
+ * ]
+ */
+ signal_type: string[];
+ };
+ };
+ /** @description A pre-signed download URL for a completed export. */
+ export_download: {
+ /**
+ * Format: uri
+ * @description A temporary pre-signed URL to download the export archive.
+ * @example https://example-bucket.nyc3.digitaloceanspaces.com/exports/3f2a1c4e-5b6d-4e7f-8a9b-0c1d2e3f4a5b/9f13c09c-c877-436b-9863-dcc39c9dd737.json.gz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Signature=EXAMPLE
+ */
+ download_url: string;
+ /**
+ * @description Unix timestamp when the download URL expires. The URL is valid for 15 minutes.
+ * @example 1791390640
+ */
+ expires_at: number;
+ };
+ /** @description A deletion job that permanently removes Signals conversations for one Harness Runtime environment, or Serverless Inference Signals conversations for a whole team. Aggregated Insights or metrics summaries may still remain. */
+ deletion_job: {
+ /**
+ * Format: int64
+ * @description The team that owns the deletion job.
+ * @example 12345678
+ */
+ team_id: number;
+ /**
+ * @description The unique identifier for the deletion job (ULID).
+ * @example 01J9ZX0N5Q7M2K3R4S5T6V7W8X
+ */
+ deletion_id: string;
+ /**
+ * @description The scope of the deletion. `agent` deletes Signals conversations for one Harness Runtime environment. `inference` deletes Serverless Inference Signals conversations for the whole team.
+ * @example agent
+ * @enum {string}
+ */
+ type: "agent" | "inference";
+ /**
+ * Format: uuid
+ * @description The Harness Runtime Environment Config ID (agent UUID) whose conversations are being deleted. Only present for `agent` deletions.
+ * @example 01a10d3f-2c09-764f-99f8-458e521627f3
+ */
+ agent_id?: string;
+ /**
+ * Format: uuid
+ * @description Same as agent_id when present. Dual-emitted during the rename; omitted when agent_id is omitted.
+ * @example 01a10d3f-2c09-764f-99f8-458e521627f3
+ */
+ environment_id?: string;
+ /**
+ * @description The current status of the deletion job.
+ * @example running
+ * @enum {string}
+ */
+ status: "queued" | "running" | "complete" | "failed";
+ /**
+ * @description Error message if the deletion failed, or null otherwise.
+ * @example null
+ */
+ error_message?: string | null;
+ /**
+ * Format: int64
+ * @description Unix timestamp when the deletion job was created.
+ * @example 1791036405
+ */
+ created_at: number;
+ /**
+ * Format: int64
+ * @description Unix timestamp when processing started, or null if still queued.
+ * @example 1791036410
+ */
+ started_at?: number | null;
+ /**
+ * Format: int64
+ * @description Unix timestamp when the deletion finished, or null if still in progress.
+ * @example null
+ */
+ completed_at?: number | null;
+ };
+ /** @description Request body to create a new signals data deletion job. */
+ create_deletion_request: {
+ /**
+ * @description The scope of the deletion. `agent` deletes Signals conversations for one Harness Runtime environment and requires `environment_id` (or deprecated `agent_id`). `inference` deletes Serverless Inference Signals conversations for the whole team (team-wide; omit `environment_id` and `agent_id`).
+ * @example agent
+ * @enum {string}
+ */
+ type: "agent" | "inference";
+ /**
+ * Format: int64
+ * @description The team whose data should be deleted. Must match the authenticated team.
+ * @example 12345678
+ */
+ team_id: number;
+ /**
+ * Format: uuid
+ * @description The Harness Runtime Environment Config ID of the environment whose conversations should be deleted. Required when `type` is `agent` if `agent_id` is omitted; must be omitted when `type` is `inference`. Prefer this over `agent_id`.
+ * @example 01a10d3f-2c09-764f-99f8-458e521627f3
+ */
+ environment_id?: string;
+ /**
+ * Format: uuid
+ * @deprecated
+ * @description Deprecated alias for `environment_id`. Accepted for backward compatibility; must equal `environment_id` when both are set. Both set and different returns 400. Required when `type` is `agent` if `environment_id` is omitted; must be omitted when `type` is `inference`.
+ * @example 01a10d3f-2c09-764f-99f8-458e521627f3
+ */
+ agent_id?: string;
+ };
+ kubernetes_node_pool_size: {
+ /**
+ * @description The slug identifier for the type of Droplet used as workers in the node pool.
+ * @example s-1vcpu-2gb
+ */
+ size?: string;
+ };
+ kubernetes_node_pool_taint: {
+ /**
+ * @description An arbitrary string. The `key` and `value` fields of the `taint` object form a key-value pair. For example, if the value of the `key` field is "special" and the value of the `value` field is "gpu", the key value pair would be `special=gpu`.
+ * @example priority
+ */
+ key?: string;
+ /**
+ * @description An arbitrary string. The `key` and `value` fields of the `taint` object form a key-value pair. For example, if the value of the `key` field is "special" and the value of the `value` field is "gpu", the key value pair would be `special=gpu`.
+ * @example high
+ */
+ value?: string;
+ /**
+ * @description How the node reacts to pods that it won't tolerate. Available effect values are `NoSchedule`, `PreferNoSchedule`, and `NoExecute`.
+ * @example NoSchedule
+ * @enum {string}
+ */
+ effect?: "NoSchedule" | "PreferNoSchedule" | "NoExecute";
+ };
+ node: {
+ /**
+ * Format: uuid
+ * @description A unique ID that can be used to identify and reference the node.
+ * @example e78247f8-b1bb-4f7a-8db9-2a5f8d4b8f8f
+ */
+ id?: string;
+ /**
+ * @description An automatically generated, human-readable name for the node.
+ * @example adoring-newton-3niq
+ */
+ name?: string;
+ /** @description An object containing a `state` attribute whose value is set to a string indicating the current status of the node. */
+ status?: {
+ /**
+ * @description A string indicating the current status of the node.
+ * @example provisioning
+ * @enum {string}
+ */
+ state?: "provisioning" | "running" | "draining" | "deleting";
+ };
+ /**
+ * @description The ID of the Droplet used for the worker node.
+ * @example 205545370
+ */
+ droplet_id?: string;
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the node was created.
+ * @example 2018-11-15T16:00:11Z
+ */
+ created_at?: string;
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the node was last updated.
+ * @example 2018-11-15T16:00:11Z
+ */
+ updated_at?: string;
+ };
+ kubernetes_node_pool_base: {
+ /**
+ * Format: uuid
+ * @description A unique ID that can be used to identify and reference a specific node pool.
+ * @example cdda885e-7663-40c8-bc74-3a036c66545d
+ */
+ readonly id?: string;
+ /**
+ * @description A human-readable name for the node pool.
+ * @example frontend-pool
+ */
+ name?: string;
+ /**
+ * @description The number of Droplet instances in the node pool.
+ * @example 3
+ */
+ count?: number;
+ /**
+ * @description An array containing the tags applied to the node pool. All node pools are automatically tagged `k8s`, `k8s-worker`, and `k8s:$K8S_CLUSTER_ID`. Requires `tag:read` scope.
+ * @example [
+ * "k8s",
+ * "k8s:bd5f5959-5e1e-4205-a714-a914373942af",
+ * "k8s-worker",
+ * "production",
+ * "web-team"
+ * ]
+ */
+ tags?: string[];
+ /**
+ * @description An object of key/value mappings specifying labels to apply to all nodes in a pool. Labels will automatically be applied to all existing nodes and any subsequent nodes added to the pool. Note that when a label is removed, it is not deleted from the nodes in the pool.
+ * @example null
+ */
+ labels?: Record | null;
+ /** @description An array of taints to apply to all nodes in a pool. Taints will automatically be applied to all existing nodes and any subsequent nodes added to the pool. When a taint is removed, it is deleted from all nodes in the pool. */
+ taints?: components["schemas"]["kubernetes_node_pool_taint"][];
+ /**
+ * @description A boolean value indicating whether auto-scaling is enabled for this node pool.
+ * @example true
+ */
+ auto_scale?: boolean;
+ /**
+ * @description The minimum number of nodes that this node pool can be auto-scaled to. The value will be `0` if `auto_scale` is set to `false`.
+ * @example 3
+ */
+ min_nodes?: number;
+ /**
+ * @description The maximum number of nodes that this node pool can be auto-scaled to. The value will be `0` if `auto_scale` is set to `false`.
+ * @example 6
+ */
+ max_nodes?: number;
+ /** @description An object specifying the details of a specific worker node in a node pool. */
+ readonly nodes?: components["schemas"]["node"][];
+ };
+ kubernetes_node_pool_gpu_partition: {
+ /**
+ * @description The AMD GPU partition mode for this node pool. Only applicable to AMD GPU sizes that support partitioning. Immutable after the node pool is created. When omitted, the GPUs in the pool are left unpartitioned.
+ * @example AMD_PARTITION_MODE_SPX_NPS1
+ * @enum {string}
+ */
+ gpu_partition_mode?: "AMD_PARTITION_MODE_SPX_NPS1" | "AMD_PARTITION_MODE_DPX_NPS2";
+ };
+ kubernetes_node_pool: WithRequired & WithRequired & components["schemas"]["kubernetes_node_pool_gpu_partition"];
+ /** @description An object specifying the maintenance window policy for the Kubernetes cluster. */
+ maintenance_policy: {
+ /**
+ * @description The start time in UTC of the maintenance window policy in 24-hour clock format / HH:MM notation (e.g., `15:00`).
+ * @example 12:00
+ */
+ start_time?: string;
+ /**
+ * @description The duration of the maintenance window policy in human-readable format.
+ * @example 4h0m0s
+ */
+ readonly duration?: string;
+ /**
+ * @description The day of the maintenance window policy. May be one of `monday` through `sunday`, or `any` to indicate an arbitrary week day.
+ * @example any
+ * @enum {string}
+ */
+ day?: "any" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
+ } | null;
+ /** @description An object specifying the control plane firewall for the Kubernetes cluster. Control plane firewall is in early availability (invite only). */
+ control_plane_firewall: {
+ /**
+ * @description Indicates whether the control plane firewall is enabled.
+ * @example true
+ */
+ enabled?: boolean;
+ /**
+ * @description An array of public addresses (IPv4 or CIDR) allowed to access the control plane.
+ * @example [
+ * "1.2.3.4/32",
+ * "1.1.0.0/16"
+ * ]
+ */
+ allowed_addresses?: string[];
+ } | null;
+ /** @description An object specifying custom cluster autoscaler configuration. */
+ cluster_autoscaler_configuration: {
+ /**
+ * @description Used to customize when cluster autoscaler scales down non-empty nodes by setting the node utilization threshold.
+ * @example 0.65
+ */
+ scale_down_utilization_threshold?: number;
+ /**
+ * @description Used to customize how long a node is unneeded before being scaled down.
+ * @example 1m0s
+ */
+ scale_down_unneeded_time?: string;
+ /**
+ * @description Customizes expanders used by cluster-autoscaler.
+ * The autoscaler will apply each expander from the provided list to narrow down the selection of node types created to scale up,
+ * until either a single node type is left, or the list of expanders is exhausted.
+ * If this flag is unset, autoscaler will use its default expander `random`.
+ * Passing an empty list (_not_ `null`) will unset any previous expander customizations.
+ *
+ * Available expanders:
+ * - `random`: Randomly selects a node group to scale.
+ * - `priority`: Selects the node group with the highest priority as per [user-provided configuration](https://docs.digitalocean.com/products/kubernetes/how-to/autoscale/#configuring-priority-expander)
+ * - `least_waste`: Selects the node group that will result in the least amount of idle resources.
+ * @example [
+ * "priority",
+ * "random"
+ * ]
+ */
+ expanders?: ("random" | "priority" | "least_waste")[];
+ } | null;
+ /** @description An object specifying Single Sign-On (SSO) configuration for the Kubernetes cluster. */
+ sso: {
+ /**
+ * @description Indicates whether SSO authentication is enabled for the cluster.
+ * @default false
+ * @example true
+ */
+ enabled?: boolean;
+ /**
+ * @description Indicates whether any non-SSO forms of authentication are disallowed.
+ * Can only be set to `true` when `enabled` is
+ * `true`.
+ * @default false
+ * @example false
+ */
+ required?: boolean;
+ /**
+ * Format: uri
+ * @description The OIDC issuer URL for the identity provider. Required when `enabled` is
+ * `true`.
+ * @example https://sso.example.com
+ */
+ issuer_url?: string;
+ /**
+ * @description The OIDC client ID registered with the identity provider. Required when
+ * `enabled` is `true`.
+ * @example doks-cluster-client
+ */
+ client_id?: string;
+ } | null;
+ /** @description An object specifying whether the routing-agent component should be enabled for the Kubernetes cluster. */
+ routing_agent: {
+ /**
+ * @description Indicates whether the routing-agent component is enabled.
+ * @example true
+ */
+ enabled?: boolean;
+ } | null;
+ /** @description An object specifying whether the AMD GPU Device Plugin should be enabled in the Kubernetes cluster. It's enabled by default for clusters with an AMD GPU node pool. */
+ amd_gpu_device_plugin: {
+ /**
+ * @description Indicates whether the AMD GPU Device Plugin is enabled.
+ * @example true
+ */
+ enabled?: boolean;
+ } | null;
+ /** @description An object specifying whether the AMD Device Metrics Exporter should be enabled in the Kubernetes cluster. */
+ amd_gpu_device_metrics_exporter_plugin: {
+ /**
+ * @description Indicates whether the AMD Device Metrics Exporter is enabled.
+ * @example true
+ */
+ enabled?: boolean;
+ } | null;
+ /** @description An object specifying whether the Nvidia GPU Device Plugin should be enabled in the Kubernetes cluster. It's enabled by default for clusters with an Nvidia GPU node pool. */
+ nvidia_gpu_device_plugin: {
+ /**
+ * @description Indicates whether the Nvidia GPU Device Plugin is enabled.
+ * @example true
+ */
+ enabled?: boolean;
+ } | null;
+ /** @description An object specifying whether the NVIDIA GPU DRA Driver should be enabled in the Kubernetes cluster. Mutually exclusive with `nvidia_gpu_device_plugin`. */
+ nvidia_gpu_dra_driver: {
+ /**
+ * @description Indicates whether the NVIDIA GPU DRA Driver is enabled.
+ * @example true
+ */
+ enabled?: boolean;
+ } | null;
+ /** @description An object specifying whether the AMD GPU DRA Driver should be enabled in the Kubernetes cluster. Mutually exclusive with `amd_gpu_device_plugin`. */
+ amd_gpu_dra_driver: {
+ /**
+ * @description Indicates whether the AMD GPU DRA Driver is enabled.
+ * @example true
+ */
+ enabled?: boolean;
+ } | null;
+ /** @description An object specifying whether the RDMA shared device plugin should be enabled in the Kubernetes cluster. */
+ rdma_shared_dev_plugin: {
+ /**
+ * @description Indicates whether the RDMA shared device plugin is enabled.
+ * @example true
+ */
+ enabled?: boolean;
+ } | null;
+ /** @description An object specifying whether the Cluster Proportional Autoscaler (CPA) add-on for CoreDNS should be enabled for the Kubernetes cluster. */
+ coredns_autoscaler: {
+ /**
+ * @description Indicates whether the CoreDNS Cluster Proportional Autoscaler add-on is enabled.
+ * @example true
+ */
+ enabled?: boolean;
+ } | null;
+ /** @description An object specifying whether the Peer-to-peer OCI registry component should be enabled for the Kubernetes cluster. */
+ p2p_oci_registry_plugin: {
+ /**
+ * @description Indicates whether the Peer-to-peer OCI registry component is enabled.
+ * @example true
+ */
+ enabled?: boolean;
+ } | null;
+ /** @description An object specifying whether the NFS CSI plugin should be enabled for the Kubernetes cluster. */
+ nfs_csi_plugin: {
+ /**
+ * @description Indicates whether the NFS CSI plugin is enabled.
+ * @example true
+ */
+ enabled?: boolean;
+ } | null;
+ cluster_read: {
+ /**
+ * Format: uuid
+ * @description A unique ID that can be used to identify and reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ readonly id?: string;
+ /**
+ * @description A human-readable name for a Kubernetes cluster.
+ * @example prod-cluster-01
+ */
+ name: string;
+ /**
+ * @description The slug identifier for the region where the Kubernetes cluster is located.
+ * @example nyc1
+ */
+ region: string;
+ /**
+ * @description The slug identifier for the version of Kubernetes used for the cluster. If set to a minor version (e.g. "1.14"), the latest version within it will be used (e.g. "1.14.6-do.1"); if set to "latest", the latest published version will be used. See the `/v2/kubernetes/options` endpoint to find all currently available versions.
+ * @example 1.18.6-do.0
+ */
+ version: string;
+ /**
+ * Format: cidr
+ * @description The range of IP addresses for the overlay network of the Kubernetes cluster in CIDR notation.
+ * @example 192.168.0.0/20
+ */
+ cluster_subnet?: string;
+ /**
+ * Format: cidr
+ * @description The range of assignable IP addresses for services running in the Kubernetes cluster in CIDR notation.
+ * @example 192.168.16.0/24
+ */
+ service_subnet?: string;
+ /**
+ * Format: uuid
+ * @description A string specifying the UUID of the VPC to which the Kubernetes cluster is assigned. Requires `vpc:read` scope.
+ * @example c33931f2-a26a-4e61-b85c-4e95a2ec431b
+ */
+ vpc_uuid?: string;
+ /**
+ * Format: uuid
+ * @description The UUID of the VPC subnet worker nodes are attached to. When unset, the
+ * default subnet for the VPC is used. Requires `vpc:read` scope.
+ * @example cbd79771-23eb-49be-b5ea-59cc56222622
+ */
+ worker_subnet_uuid?: string;
+ /**
+ * @description The public IPv4 address of the Kubernetes master node. This will not be set if high availability is configured on the cluster (v1.21+)
+ * @example 68.183.121.157
+ */
+ readonly ipv4?: string;
+ /**
+ * @description The base URL of the API server on the Kubernetes master node.
+ * @example https://bd5f5959-5e1e-4205-a714-a914373942af.k8s.ondigitalocean.com
+ */
+ readonly endpoint?: string;
+ /**
+ * @description An array of tags applied to the Kubernetes cluster. All clusters are automatically tagged `k8s` and `k8s:$K8S_CLUSTER_ID`. Requires `tag:read` scope.
+ * @example [
+ * "k8s",
+ * "k8s:bd5f5959-5e1e-4205-a714-a914373942af",
+ * "production",
+ * "web-team"
+ * ]
+ */
+ tags?: string[];
+ /** @description An object specifying the details of the worker nodes available to the Kubernetes cluster. */
+ node_pools: components["schemas"]["kubernetes_node_pool"][];
+ maintenance_policy?: components["schemas"]["maintenance_policy"];
+ /**
+ * @description A boolean value indicating whether the cluster will be automatically upgraded to new patch releases during its maintenance window.
+ * @default false
+ * @example true
+ */
+ auto_upgrade?: boolean;
+ /**
+ * @description A boolean value indicating whether worker nodes in the cluster are not assigned public IP addresses. When omitted on create, the default value is false. When enabled, a NAT gateway must exist in the VPC where the cluster is created.
+ * @default false
+ * @example false
+ */
+ isolated_workers?: boolean;
+ /**
+ * @description A boolean value indicating whether GPU nodes in the cluster are launched with images that do not include pre-installed GPU drivers, allowing GPU drivers to be managed by a GPU operator instead. Mutually exclusive with other GPU-related cluster options, such as `nvidia_gpu_dra_driver` and `amd_gpu_dra_driver`. When omitted on create, the default value is false.
+ * @default false
+ * @example false
+ */
+ gpu_operator_ready?: boolean;
+ /** @description An object containing a `state` attribute whose value is set to a string indicating the current status of the cluster. */
+ readonly status?: {
+ /**
+ * @description A string indicating the current status of the cluster.
+ * @example provisioning
+ * @enum {string}
+ */
+ state?: "running" | "provisioning" | "degraded" | "error" | "deleted" | "upgrading" | "deleting";
+ /**
+ * @description An optional message providing additional information about the current cluster state.
+ * @example provisioning
+ */
+ message?: string;
+ };
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the Kubernetes cluster was created.
+ * @example 2018-11-15T16:00:11Z
+ */
+ readonly created_at?: string;
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the Kubernetes cluster was last updated.
+ * @example 2018-11-15T16:00:11Z
+ */
+ readonly updated_at?: string;
+ /**
+ * @description A boolean value indicating whether surge upgrade is enabled/disabled for the cluster. Surge upgrade makes cluster upgrades fast and reliable by bringing up new nodes before destroying the outdated nodes.
+ * @default false
+ * @example true
+ */
+ surge_upgrade?: boolean;
+ /**
+ * @description A boolean value indicating whether the control plane is run in a highly available configuration in the cluster. Highly available control planes incur less downtime. The property cannot be disabled. When omitted on create, the default is version-dependent; for DOKS 1.36.0 and later, the default is true; for earlier versions, the default is false.
+ * @default false
+ * @example true
+ */
+ ha?: boolean;
+ /**
+ * @description A read-only boolean value indicating if a container registry is integrated with the cluster.
+ * @example true
+ */
+ readonly registry_enabled?: boolean;
+ /**
+ * @description A boolean value indicating whether GPU nodes in the cluster are launched with images that do not include pre-installed GPU drivers, allowing GPU drivers to be managed by a GPU operator instead. Mutually exclusive with other GPU-related cluster options, such as `nvidia_gpu_dra_driver` and `amd_gpu_dra_driver`. When omitted on create, the default value is false.
+ * @example [
+ * "registry-a",
+ * "registry-b"
+ * ]
+ */
+ registries?: string[] | null;
+ control_plane_firewall?: components["schemas"]["control_plane_firewall"];
+ cluster_autoscaler_configuration?: components["schemas"]["cluster_autoscaler_configuration"];
+ sso?: components["schemas"]["sso"];
+ routing_agent?: components["schemas"]["routing_agent"];
+ amd_gpu_device_plugin?: components["schemas"]["amd_gpu_device_plugin"];
+ amd_gpu_device_metrics_exporter_plugin?: components["schemas"]["amd_gpu_device_metrics_exporter_plugin"];
+ nvidia_gpu_device_plugin?: components["schemas"]["nvidia_gpu_device_plugin"];
+ nvidia_gpu_dra_driver?: components["schemas"]["nvidia_gpu_dra_driver"];
+ amd_gpu_dra_driver?: components["schemas"]["amd_gpu_dra_driver"];
+ rdma_shared_dev_plugin?: components["schemas"]["rdma_shared_dev_plugin"];
+ coredns_autoscaler?: components["schemas"]["coredns_autoscaler"];
+ p2p_oci_registry_plugin?: components["schemas"]["p2p_oci_registry_plugin"];
+ nfs_csi_plugin?: components["schemas"]["nfs_csi_plugin"];
+ };
+ /** @description An object specifying the Insights telemetry that the customer opts in to for the Kubernetes cluster. This is only accepted when creating a cluster and is not returned in responses. If the object is omitted, or if `logs` is not set, no opt-in is recorded for the cluster. */
+ "insights_opt_in-2": {
+ /**
+ * @description A boolean value indicating whether the cluster's logs are sent to Insights. Setting this to `false` records an explicit opt-out. When omitted, no choice is recorded.
+ * @example true
+ */
+ logs?: boolean;
+ } | null;
+ cluster: {
+ /**
+ * Format: uuid
+ * @description A unique ID that can be used to identify and reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ readonly id?: string;
+ /**
+ * @description A human-readable name for a Kubernetes cluster.
+ * @example prod-cluster-01
+ */
+ name: string;
+ /**
+ * @description The slug identifier for the region where the Kubernetes cluster is located.
+ * @example nyc1
+ */
+ region: string;
+ /**
+ * @description The slug identifier for the version of Kubernetes used for the cluster. If set to a minor version (e.g. "1.14"), the latest version within it will be used (e.g. "1.14.6-do.1"); if set to "latest", the latest published version will be used. See the `/v2/kubernetes/options` endpoint to find all currently available versions.
+ * @example 1.18.6-do.0
+ */
+ version: string;
+ /**
+ * Format: cidr
+ * @description The range of IP addresses for the overlay network of the Kubernetes cluster in CIDR notation.
+ * @example 192.168.0.0/20
+ */
+ cluster_subnet?: string;
+ /**
+ * Format: cidr
+ * @description The range of assignable IP addresses for services running in the Kubernetes cluster in CIDR notation.
+ * @example 192.168.16.0/24
+ */
+ service_subnet?: string;
+ /**
+ * Format: uuid
+ * @description A string specifying the UUID of the VPC to which the Kubernetes cluster is assigned. Requires `vpc:read` scope.
+ * @example c33931f2-a26a-4e61-b85c-4e95a2ec431b
+ */
+ vpc_uuid?: string;
+ /**
+ * Format: uuid
+ * @description The UUID of the VPC subnet to attach worker nodes to. When omitted on
+ * create, the default subnet for the VPC is used. This value cannot be changed
+ * after the cluster is created.
+ *
+ * `vpc_uuid` must also be set.
+ * Requires `vpc:read` scope.
+ * @example cbd79771-23eb-49be-b5ea-59cc56222622
+ */
+ worker_subnet_uuid?: string;
+ /**
+ * @description The public IPv4 address of the Kubernetes master node. This will not be set if high availability is configured on the cluster (v1.21+)
+ * @example 68.183.121.157
+ */
+ readonly ipv4?: string;
+ /**
+ * @description The base URL of the API server on the Kubernetes master node.
+ * @example https://bd5f5959-5e1e-4205-a714-a914373942af.k8s.ondigitalocean.com
+ */
+ readonly endpoint?: string;
+ /**
+ * @description An array of tags to apply to the Kubernetes cluster. All clusters are automatically tagged `k8s` and `k8s:$K8S_CLUSTER_ID`. Requires `tag:read` and `tag:create` scope, as well as `tag:delete` if existing tags are getting removed.
+ * @example [
+ * "k8s",
+ * "k8s:bd5f5959-5e1e-4205-a714-a914373942af",
+ * "production",
+ * "web-team"
+ * ]
+ */
+ tags?: string[];
+ /** @description An object specifying the details of the worker nodes available to the Kubernetes cluster. */
+ node_pools: components["schemas"]["kubernetes_node_pool"][];
+ maintenance_policy?: components["schemas"]["maintenance_policy"];
+ /**
+ * @description A boolean value indicating whether the cluster will be automatically upgraded to new patch releases during its maintenance window.
+ * @default false
+ * @example true
+ */
+ auto_upgrade?: boolean;
+ /**
+ * @description A boolean value indicating whether worker nodes in the cluster are not assigned public IP addresses. When omitted on create, the default value is false. When enabled, a NAT gateway must exist in the VPC where the cluster is created.
+ * @default false
+ * @example false
+ */
+ isolated_workers?: boolean;
+ /**
+ * @description A boolean value indicating whether GPU nodes in the cluster are launched with images that do not include pre-installed GPU drivers, allowing GPU drivers to be managed by a GPU operator instead. Mutually exclusive with other GPU-related cluster options, such as `nvidia_gpu_dra_driver` and `amd_gpu_dra_driver`. When omitted on create, the default value is false.
+ * @default false
+ * @example false
+ */
+ gpu_operator_ready?: boolean;
+ /** @description An object containing a `state` attribute whose value is set to a string indicating the current status of the cluster. */
+ readonly status?: {
+ /**
+ * @description A string indicating the current status of the cluster.
+ * @example provisioning
+ * @enum {string}
+ */
+ state?: "running" | "provisioning" | "degraded" | "error" | "deleted" | "upgrading" | "deleting";
+ /**
+ * @description An optional message providing additional information about the current cluster state.
+ * @example provisioning
+ */
+ message?: string;
+ };
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the Kubernetes cluster was created.
+ * @example 2018-11-15T16:00:11Z
+ */
+ readonly created_at?: string;
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the Kubernetes cluster was last updated.
+ * @example 2018-11-15T16:00:11Z
+ */
+ readonly updated_at?: string;
+ /**
+ * @description A boolean value indicating whether surge upgrade is enabled/disabled for the cluster. Surge upgrade makes cluster upgrades fast and reliable by bringing up new nodes before destroying the outdated nodes.
+ * @default false
+ * @example true
+ */
+ surge_upgrade?: boolean;
+ /**
+ * @description A boolean value indicating whether the control plane is run in a highly available configuration in the cluster. Highly available control planes incur less downtime. The property cannot be disabled. When omitted on create, the default is version-dependent; for DOKS 1.36.0 and later, the default is true; for earlier versions, the default is false.
+ * @example true
+ */
+ ha?: boolean;
+ /**
+ * @description A boolean value indicating whether GPU nodes in the cluster are launched with images that do not include pre-installed GPU drivers, allowing GPU drivers to be managed by a GPU operator instead. Mutually exclusive with other GPU-related cluster options, such as `nvidia_gpu_dra_driver` and `amd_gpu_dra_driver`. When omitted on create, the default value is false.
+ * @example true
+ */
+ readonly registry_enabled?: boolean;
+ control_plane_firewall?: components["schemas"]["control_plane_firewall"];
+ cluster_autoscaler_configuration?: components["schemas"]["cluster_autoscaler_configuration"];
+ sso?: components["schemas"]["sso"];
+ routing_agent?: components["schemas"]["routing_agent"];
+ p2p_oci_registry_plugin?: components["schemas"]["p2p_oci_registry_plugin"];
+ nfs_csi_plugin?: components["schemas"]["nfs_csi_plugin"];
+ amd_gpu_device_plugin?: components["schemas"]["amd_gpu_device_plugin"];
+ amd_gpu_device_metrics_exporter_plugin?: components["schemas"]["amd_gpu_device_metrics_exporter_plugin"];
+ nvidia_gpu_device_plugin?: components["schemas"]["nvidia_gpu_device_plugin"];
+ nvidia_gpu_dra_driver?: components["schemas"]["nvidia_gpu_dra_driver"];
+ amd_gpu_dra_driver?: components["schemas"]["amd_gpu_dra_driver"];
+ rdma_shared_dev_plugin?: components["schemas"]["rdma_shared_dev_plugin"];
+ coredns_autoscaler?: components["schemas"]["coredns_autoscaler"];
+ insights?: components["schemas"]["insights_opt_in-2"];
+ };
+ cluster_update: {
+ /**
+ * @description A human-readable name for a Kubernetes cluster.
+ * @example prod-cluster-01
+ */
+ name: string;
+ /**
+ * @description An array of tags applied to the Kubernetes cluster. All clusters are automatically tagged `k8s` and `k8s:$K8S_CLUSTER_ID`.
+ * @example [
+ * "k8s",
+ * "k8s:bd5f5959-5e1e-4205-a714-a914373942af",
+ * "production",
+ * "web-team"
+ * ]
+ */
+ tags?: string[];
+ maintenance_policy?: components["schemas"]["maintenance_policy"];
+ /**
+ * @description A boolean value indicating whether the cluster will be automatically upgraded to new patch releases during its maintenance window.
+ * @default false
+ * @example true
+ */
+ auto_upgrade?: boolean;
+ /**
+ * @description A boolean value indicating whether surge upgrade is enabled/disabled for the cluster. Surge upgrade makes cluster upgrades fast and reliable by bringing up new nodes before destroying the outdated nodes.
+ * @default false
+ * @example true
+ */
+ surge_upgrade?: boolean;
+ /**
+ * @description A boolean value indicating whether the control plane is run in a highly available configuration in the cluster. Highly available control planes incur less downtime. The property cannot be disabled. When omitted on create, the default is version-dependent; for DOKS 1.36.0 and later, the default is true; for earlier versions, the default is false.
+ * @example true
+ */
+ ha?: boolean;
+ /**
+ * @description A boolean value indicating whether GPU nodes in the cluster are launched with images that do not include pre-installed GPU drivers, allowing GPU drivers to be managed by a GPU operator instead. Mutually exclusive with other GPU-related cluster options, such as `nvidia_gpu_dra_driver` and `amd_gpu_dra_driver`. When omitted, the current value is left unchanged.
+ * @example false
+ */
+ gpu_operator_ready?: boolean;
+ control_plane_firewall?: components["schemas"]["control_plane_firewall"];
+ cluster_autoscaler_configuration?: components["schemas"]["cluster_autoscaler_configuration"];
+ sso?: components["schemas"]["sso"];
+ routing_agent?: components["schemas"]["routing_agent"];
+ p2p_oci_registry_plugin?: components["schemas"]["p2p_oci_registry_plugin"];
+ nfs_csi_plugin?: components["schemas"]["nfs_csi_plugin"];
+ amd_gpu_device_plugin?: components["schemas"]["amd_gpu_device_plugin"];
+ amd_gpu_device_metrics_exporter_plugin?: components["schemas"]["amd_gpu_device_metrics_exporter_plugin"];
+ nvidia_gpu_device_plugin?: components["schemas"]["nvidia_gpu_device_plugin"];
+ nvidia_gpu_dra_driver?: components["schemas"]["nvidia_gpu_dra_driver"];
+ amd_gpu_dra_driver?: components["schemas"]["amd_gpu_dra_driver"];
+ rdma_shared_dev_plugin?: components["schemas"]["rdma_shared_dev_plugin"];
+ coredns_autoscaler?: components["schemas"]["coredns_autoscaler"];
+ };
+ associated_kubernetes_resource: {
+ /**
+ * @description The ID of a resource associated with a Kubernetes cluster.
+ * @example edb0478d-7436-11ea-86e6-0a58ac144b91
+ */
+ id?: string;
+ /**
+ * @description The name of a resource associated with a Kubernetes cluster.
+ * @example volume-001
+ */
+ name?: string;
+ };
+ /** @description An object containing the IDs of resources associated with a Kubernetes cluster. */
+ associated_kubernetes_resources: {
+ /**
+ * @description A list of names and IDs for associated load balancers that can be destroyed along with the cluster.
+ * @example [
+ * {
+ * "id": "4de7ac8b-495b-4884-9a69-1050c6793cd6",
+ * "name": "lb-001"
+ * }
+ * ]
+ */
+ load_balancers?: components["schemas"]["associated_kubernetes_resource"][];
+ /**
+ * @description A list of names and IDs for associated volumes that can be destroyed along with the cluster.
+ * @example [
+ * {
+ * "id": "ba49449a-7435-11ea-b89e-0a58ac14480f",
+ * "name": "volume-001"
+ * }
+ * ]
+ */
+ volumes?: components["schemas"]["associated_kubernetes_resource"][];
+ /**
+ * @description A list of names and IDs for associated volume snapshots that can be destroyed along with the cluster.
+ * @example [
+ * {
+ * "id": "edb0478d-7436-11ea-86e6-0a58ac144b91",
+ * "name": "snapshot-001"
+ * }
+ * ]
+ */
+ volume_snapshots?: components["schemas"]["associated_kubernetes_resource"][];
+ };
+ /** @description An object containing the IDs of resources to be destroyed along with their associated with a Kubernetes cluster. */
+ destroy_associated_kubernetes_resources: {
+ /**
+ * @description A list of IDs for associated load balancers to destroy along with the cluster.
+ * @example [
+ * "4de7ac8b-495b-4884-9a69-1050c6793cd6"
+ * ]
+ */
+ load_balancers?: string[];
+ /**
+ * @description A list of IDs for associated volumes to destroy along with the cluster.
+ * @example [
+ * "ba49449a-7435-11ea-b89e-0a58ac14480f"
+ * ]
+ */
+ volumes?: string[];
+ /**
+ * @description A list of IDs for associated volume snapshots to destroy along with the cluster.
+ * @example [
+ * "edb0478d-7436-11ea-86e6-0a58ac144b91"
+ * ]
+ */
+ volume_snapshots?: string[];
+ };
+ credentials: {
+ /**
+ * Format: uri
+ * @description The URL used to access the cluster API server.
+ * @example https://bd5f5959-5e1e-4205-a714-a914373942af.k8s.ondigitalocean.com
+ */
+ server?: string;
+ /**
+ * Format: byte
+ * @description A base64 encoding of bytes representing the certificate authority data for accessing the cluster.
+ * @example LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURKekNDQWcrZ0F3SUJBZ0lDQm5Vd0RRWUpLb1pJaHZjTkFRRUxCUUF3TXpFVk1CTUdBMVVFQ2hNTVJHbG4KYVhSaGJFOWpaV0Z1TVJvd0dBWURWUVFERXhGck9ITmhZWE1nUTJ4MWMzUmxjaUJEUVRBZUZ3MHlNREE0TURNeApOVEkxTWpoYUZ3MDBNREE0TURNeE5USTFNamhhTURNeEZUQVRCZ05WQkFvVERFUnBaMmwwWVd4UFkyVmhiakVhCk1CZ0dBMVVFQXhNUmF6aHpZV0Z6SUVOc2RYTjBaWElnUTBFd2dnRWlNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0SUIKRHdBd2dnRUtBb0lCQVFDc21oa2JrSEpUcGhZQlN0R05VVE1ORVZTd2N3bmRtajArelQvcUZaNGsrOVNxUnYrSgpBd0lCaGpBU0JnTlZIUk1CQWY4RUNEQUdBUUgvQWdFQU1CMEdBMVVkRGdRV0JCUlRzazhhZ1hCUnFyZXdlTXJxClhwa3E1NXg5dVRBTkJna3Foa2lHOXcwQkFRc0ZBQU9DQVFFQXB6V2F6bXNqYWxXTEx3ZjVpbWdDblNINDlKcGkKYWkvbzFMdEJvVEpleGdqZzE1ZVppaG5BMUJMc0lWNE9BZGM3UEFsL040L0hlbENrTDVxandjamRnNVdaYnMzYwozcFVUQ0g5bVVwMFg1SVdhT1VKV292Q1hGUlM1R2VKYXlkSDVPUXhqTURzR2N2UlNvZGQrVnQ2MXE3aWdFZ2I1CjBOZ1l5RnRnc2p0MHpJN3hURzZFNnlsOVYvUmFoS3lIQks2eExlM1RnUGU4SXhWa2RwT3QzR0FhSDRaK0pLR3gKYisyMVZia1NnRE1QQTlyR0VKNVZwVXlBV0FEVXZDRVFHV0hmNGpQN2ZGZlc3T050S0JWY3h3YWFjcVBVdUhzWApwRG5DZVR3V1NuUVp6L05xNmQxWUtsMFdtbkwzTEowemJzRVFGbEQ4MkkwL09MY2dZSDVxMklOZHhBPT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
+ */
+ certificate_authority_data?: string;
+ /**
+ * Format: byte
+ * @deprecated
+ * @description A base64 encoding of bytes representing the x509 client
+ * certificate data for access the cluster. This is only returned for clusters
+ * without support for token-based authentication.
+ *
+ * Newly created Kubernetes clusters do not return credentials using
+ * certificate-based authentication. For additional information,
+ * [see here](https://docs.digitalocean.com/products/kubernetes/how-to/connect-to-cluster/#authenticate).
+ * @example null
+ */
+ client_certificate_data?: string | null;
+ /**
+ * Format: byte
+ * @deprecated
+ * @description A base64 encoding of bytes representing the x509 client key
+ * data for access the cluster. This is only returned for clusters without
+ * support for token-based authentication.
+ *
+ * Newly created Kubernetes clusters do not return credentials using
+ * certificate-based authentication. For additional information,
+ * [see here](https://docs.digitalocean.com/products/kubernetes/how-to/connect-to-cluster/#authenticate).
+ * @example null
+ */
+ client_key_data?: string | null;
+ /**
+ * @description An access token used to authenticate with the cluster. This is only returned for clusters with support for token-based authentication.
+ * @example $DIGITALOCEAN_TOKEN
+ */
+ token?: string;
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the access token expires.
+ * @example 2019-11-09T11:50:28.889080521Z
+ */
+ expires_at?: string;
+ };
+ kubernetes_version: {
+ /**
+ * @description The slug identifier for an available version of Kubernetes for use when creating or updating a cluster. The string contains both the upstream version of Kubernetes as well as the DigitalOcean revision.
+ * @example 1.16.13-do.0
+ */
+ slug?: string;
+ /**
+ * @description The upstream version string for the version of Kubernetes provided by a given slug.
+ * @example 1.16.13
+ */
+ kubernetes_version?: string;
+ /**
+ * @description The features available with the version of Kubernetes provided by a given slug.
+ * @example [
+ * "cluster-autoscaler",
+ * "docr-integration",
+ * "token-authentication"
+ * ]
+ */
+ supported_features?: string[];
+ };
+ kubernetes_node_pool_update: WithRequired;
+ "user-2": {
+ kubernetes_cluster_user?: {
+ /**
+ * Format: email
+ * @description The username for the cluster admin user.
+ * @example sammy@digitalocean.com
+ */
+ username?: string;
+ /**
+ * @description A list of in-cluster groups that the user belongs to.
+ * @example [
+ * "k8saas:authenticated"
+ * ]
+ */
+ groups?: string[];
+ };
+ };
+ kubernetes_region: {
+ /**
+ * @description A DigitalOcean region where Kubernetes is available.
+ * @example New York 3
+ */
+ name?: string;
+ /**
+ * @description The identifier for a region for use when creating a new cluster.
+ * @example nyc3
+ */
+ slug?: string;
+ };
+ kubernetes_size: {
+ /**
+ * @description A Droplet size available for use in a Kubernetes node pool.
+ * @example s-1vcpu-2gb
+ */
+ name?: string;
+ /**
+ * @description The identifier for a size for use when creating a new cluster.
+ * @example s-1vcpu-2gb
+ */
+ slug?: string;
+ };
+ kubernetes_options: {
+ options?: {
+ regions?: components["schemas"]["kubernetes_region"][];
+ versions?: components["schemas"]["kubernetes_version"][];
+ sizes?: components["schemas"]["kubernetes_size"][];
+ };
+ };
+ clusterlint_results: {
+ /**
+ * @description Id of the clusterlint run that can be used later to fetch the diagnostics.
+ * @example 50c2f44c-011d-493e-aee5-361a4a0d1844
+ */
+ run_id?: string;
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the schedule clusterlint run request was made.
+ * @example 2019-10-30T05:34:07Z
+ */
+ requested_at?: string;
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the schedule clusterlint run request was completed.
+ * @example 2019-10-30T05:34:11Z
+ */
+ completed_at?: string;
+ /** @description An array of diagnostics reporting potential problems for the given cluster. */
+ diagnostics?: {
+ /**
+ * @description The clusterlint check that resulted in the diagnostic.
+ * @example unused-config-map
+ */
+ check_name?: string;
+ /**
+ * @description Can be one of error, warning or suggestion.
+ * @example warning
+ */
+ severity?: string;
+ /**
+ * @description Feedback about the object for users to fix.
+ * @example Unused config map
+ */
+ message?: string;
+ /** @description Metadata about the Kubernetes API object the diagnostic is reported on. */
+ object?: {
+ /**
+ * @description Name of the object
+ * @example foo
+ */
+ name?: string;
+ /**
+ * @description The kind of Kubernetes API object
+ * @example config map
+ */
+ kind?: string;
+ /**
+ * @description The namespace the object resides in the cluster.
+ * @example kube-system
+ */
+ namespace?: string;
+ };
+ }[];
+ };
+ clusterlint_request: {
+ /**
+ * @description An array of check groups that will be run when clusterlint executes checks.
+ * @example [
+ * "basic",
+ * "doks",
+ * "security"
+ * ]
+ */
+ include_groups?: string[];
+ /**
+ * @description An array of checks that will be run when clusterlint executes checks.
+ * @example [
+ * "bare-pods",
+ * "resource-requirements"
+ * ]
+ */
+ include_checks?: string[];
+ /**
+ * @description An array of check groups that will be omitted when clusterlint executes checks.
+ * @example [
+ * "workload-health"
+ * ]
+ */
+ exclude_groups?: string[];
+ /**
+ * @description An array of checks that will be run when clusterlint executes checks.
+ * @example [
+ * "default-namespace"
+ * ]
+ */
+ exclude_checks?: string[];
+ };
+ cluster_registry: {
+ /**
+ * @description An array containing the UUIDs of Kubernetes clusters.
+ * @example [
+ * "bd5f5959-5e1e-4205-a714-a914373942af",
+ * "50c2f44c-011d-493e-aee5-361a4a0d1844"
+ * ]
+ */
+ cluster_uuids?: string[];
+ };
+ cluster_registries: {
+ /**
+ * @description An array containing the UUIDs of Kubernetes clusters.
+ * @example [
+ * "bd5f5959-5e1e-4205-a714-a914373942af",
+ * "50c2f44c-011d-493e-aee5-361a4a0d1844"
+ * ]
+ */
+ cluster_uuids?: string[];
+ /**
+ * @description An array containing the registry names.
+ * @example [
+ * "registry-a",
+ * "registry-b"
+ * ]
+ */
+ registries?: string[];
+ };
+ status_messages: {
+ /**
+ * @description Status information about the cluster which impacts it's lifecycle.
+ * @example Resource provisioning may be delayed while our team resolves an incident
+ */
+ readonly message?: string;
+ /**
+ * Format: date-time
+ * @description A timestamp in ISO8601 format that represents when the status message was emitted.
+ * @example 2018-11-15T16:00:11Z
+ */
+ readonly timestamp?: string;
+ };
+ /** @description An object specifying a forwarding rule for a load balancer. */
+ forwarding_rule: {
+ /**
+ * @description The protocol used for traffic to the load balancer. The possible values are: `http`, `https`, `http2`, `http3`, `tcp`, or `udp`. If you set the `entry_protocol` to `udp`, the `target_protocol` must be set to `udp`. When using UDP, the load balancer requires that you set up a health check with a port that uses TCP, HTTP, or HTTPS to work properly.
+ * @example https
+ * @enum {string}
+ */
+ entry_protocol: "http" | "https" | "http2" | "http3" | "tcp" | "udp";
+ /**
+ * @description An integer representing the port on which the load balancer instance will listen.
+ * @example 443
+ */
+ entry_port: number;
+ /**
+ * @description The protocol used for traffic from the load balancer to the backend Droplets. The possible values are: `http`, `https`, `http2`, `tcp`, or `udp`. If you set the `target_protocol` to `udp`, the `entry_protocol` must be set to `udp`. When using UDP, the load balancer requires that you set up a health check with a port that uses TCP, HTTP, or HTTPS to work properly.
+ * @example http
+ * @enum {string}
+ */
+ target_protocol: "http" | "https" | "http2" | "tcp" | "udp";
+ /**
+ * @description An integer representing the port on the backend Droplets to which the load balancer will send traffic.
+ * @example 80
+ */
+ target_port: number;
+ /**
+ * @description The ID of the TLS certificate used for SSL termination if enabled.
+ * @example 892071a0-bb95-49bc-8021-3afd67a210bf
+ */
+ certificate_id?: string;
+ /**
+ * @description A boolean value indicating whether SSL encrypted traffic will be passed through to the backend Droplets.
+ * @example false
+ */
+ tls_passthrough?: boolean;
+ };
+ /** @description An object specifying health check settings for the load balancer. */
+ health_check: {
+ /**
+ * @description The protocol used for health checks sent to the backend Droplets. The possible values are `http`, `https`, or `tcp`.
+ * @default http
+ * @example http
+ * @enum {string}
+ */
+ protocol?: "http" | "https" | "tcp";
+ /**
+ * @description An integer representing the port on the backend Droplets on which the health check will attempt a connection.
+ * @default 80
+ * @example 80
+ */
+ port?: number;
+ /**
+ * @description The path on the backend Droplets to which the load balancer instance will send a request.
+ * @default /
+ * @example /
+ */
+ path?: string;
+ /**
+ * @description The number of seconds between between two consecutive health checks.
+ * @default 10
+ * @example 10
+ */
+ check_interval_seconds?: number;
+ /**
+ * @description The number of seconds the load balancer instance will wait for a response until marking a health check as failed.
+ * @default 5
+ * @example 5
+ */
+ response_timeout_seconds?: number;
+ /**
+ * @description The number of times a health check must fail for a backend Droplet to be marked "unhealthy" and be removed from the pool.
+ * @default 5
+ * @example 5
+ */
+ unhealthy_threshold?: number;
+ /**
+ * @description The number of times a health check must pass for a backend Droplet to be marked "healthy" and be re-added to the pool.
+ * @default 3
+ * @example 3
+ */
+ healthy_threshold?: number;
+ };
+ /** @description An object specifying sticky sessions settings for the load balancer. */
+ sticky_sessions: {
+ /**
+ * @description An attribute indicating how and if requests from a client will be persistently served by the same backend Droplet. The possible values are `cookies` or `none`.
+ * @default none
+ * @example cookies
+ * @enum {string}
+ */
+ type?: "cookies" | "none";
+ /**
+ * @description The name of the cookie sent to the client. This attribute is only returned when using `cookies` for the sticky sessions type.
+ * @example DO-LB
+ */
+ cookie_name?: string;
+ /**
+ * @description The number of seconds until the cookie set by the load balancer expires. This attribute is only returned when using `cookies` for the sticky sessions type.
+ * @example 300
+ */
+ cookie_ttl_seconds?: number;
+ };
+ /** @description An object specifying allow and deny rules to control traffic to the load balancer. */
+ lb_firewall: {
+ /**
+ * @description the rules for denying traffic to the load balancer (in the form 'ip:1.2.3.4' or 'cidr:1.2.0.0/16')
+ * @default []
+ * @example [
+ * "ip:1.2.3.4",
+ * "cidr:2.3.0.0/16"
+ * ]
+ */
+ deny?: string[];
+ /**
+ * @description the rules for allowing traffic to the load balancer (in the form 'ip:1.2.3.4' or 'cidr:1.2.0.0/16')
+ * @default []
+ * @example [
+ * "ip:1.2.3.4",
+ * "cidr:2.3.0.0/16"
+ * ]
+ */
+ allow?: string[];
+ };
+ /** @description An object specifying domain configurations for a Global load balancer. */
+ domains: {
+ /**
+ * @description FQDN to associate with a Global load balancer.
+ * @example example.com
+ */
+ name?: string;
+ /**
+ * @description A boolean value indicating if the domain is already managed by DigitalOcean. If true, all A and AAAA records required to enable Global load balancers will be automatically added.
+ * @example true
+ */
+ is_managed?: boolean;
+ /**
+ * @description The ID of the TLS certificate used for SSL termination.
+ * @example 892071a0-bb95-49bc-8021-3afd67a210bf
+ */
+ certificate_id?: string;
+ };
+ /** @description An object specifying forwarding configurations for a Global load balancer. */
+ glb_settings: {
+ /**
+ * @description The protocol used for forwarding traffic from the load balancer to the target backends. The possible values are `http`, `https` and `http2`.
+ * @example http
+ * @enum {string}
+ */
+ target_protocol?: "http" | "https" | "http2";
+ /**
+ * @description An integer representing the port on the target backends which the load balancer will forward traffic to.
+ * @example 80
+ */
+ target_port?: number;
+ /** @description An object specifying CDN configurations for a Global load balancer. */
+ cdn?: {
+ /**
+ * @description A boolean flag to enable CDN caching.
+ * @example true
+ */
+ is_enabled?: boolean;
+ };
+ /**
+ * @description A map of region string to an integer priority value indicating preference for which regional target a Global load balancer will forward traffic to. A lower value indicates a higher priority.
+ * @example {
+ * "nyc1": 1,
+ * "fra1": 2,
+ * "sgp1": 3
+ * }
+ */
+ region_priorities?: {
+ [key: string]: number;
+ };
+ /**
+ * @description An integer value as a percentage to indicate failure threshold to decide how the regional priorities will take effect. A value of `50` would indicate that the Global load balancer will choose a lower priority region to forward traffic to once this failure threshold has been reached for the higher priority region.
+ * @example 50
+ */
+ failover_threshold?: number;
+ };
+ load_balancer_base: {
+ /**
+ * Format: uuid
+ * @description A unique ID that can be used to identify and reference a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ readonly id?: string;
+ /**
+ * @description A human-readable name for a load balancer instance.
+ * @example example-lb-01
+ */
+ name?: string;
+ /**
+ * @description The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project. If an invalid project ID is provided, the load balancer will not be created.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ project_id?: string;
+ /**
+ * @description An attribute containing the public-facing IPv6 address of the load balancer.
+ * @example 2604:a880:800:14::85f5:c000
+ */
+ readonly ipv6?: string;
+ /**
+ * @description How many nodes the load balancer contains. Each additional node increases the load balancer's ability to manage more connections. Load balancers can be scaled up or down, and you can change the number of nodes after creation up to once per hour. This field is currently not available in the AMS2, NYC2, or SFO1 regions. Use the `size` field to scale load balancers that reside in these regions.
+ * @default 1
+ * @example 3
+ */
+ size_unit?: number;
+ /**
+ * @deprecated
+ * @description This field has been replaced by the `size_unit` field for all regions except in AMS2, NYC2, and SFO1. Each available load balancer size now equates to the load balancer having a set number of nodes.
+ * * `lb-small` = 1 node
+ * * `lb-medium` = 3 nodes
+ * * `lb-large` = 6 nodes
+ *
+ * You can resize load balancers after creation up to once per hour. You cannot resize a load balancer within the first hour of its creation.
+ * @default lb-small
+ * @example lb-small
+ * @enum {string}
+ */
+ size?: "lb-small" | "lb-medium" | "lb-large";
+ /**
+ * @deprecated
+ * @description This field has been deprecated. You can no longer specify an algorithm for load balancers.
+ * @default round_robin
+ * @example round_robin
+ * @enum {string}
+ */
+ algorithm?: "round_robin" | "least_connections";
+ /**
+ * @description A status string indicating the current state of the load balancer. This can be `new`, `active`, or `errored`.
+ * @example new
+ * @enum {string}
+ */
+ readonly status?: "new" | "active" | "errored";
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the load balancer was created.
+ * @example 2017-02-01T22:22:58Z
+ */
+ readonly created_at?: string;
+ /** @description An array of objects specifying the forwarding rules for a load balancer. */
+ forwarding_rules: components["schemas"]["forwarding_rule"][];
+ health_check?: components["schemas"]["health_check"];
+ sticky_sessions?: components["schemas"]["sticky_sessions"];
+ /**
+ * @description A boolean value indicating whether HTTP requests to the load balancer on port 80 will be redirected to HTTPS on port 443.
+ * @default false
+ * @example true
+ */
+ redirect_http_to_https?: boolean;
+ /**
+ * @description A boolean value indicating whether PROXY Protocol is in use.
+ * @default false
+ * @example true
+ */
+ enable_proxy_protocol?: boolean;
+ /**
+ * @description A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets.
+ * @default false
+ * @example true
+ */
+ enable_backend_keepalive?: boolean;
+ /**
+ * @description An integer value which configures the idle timeout for HTTP requests to the target droplets.
+ * @default 60
+ * @example 90
+ */
+ http_idle_timeout_seconds?: number;
+ /**
+ * Format: uuid
+ * @description A string specifying the UUID of the VPC to which the load balancer is assigned.
+ * @example c33931f2-a26a-4e61-b85c-4e95a2ec431b
+ */
+ vpc_uuid?: string;
+ /**
+ * Format: uuid
+ * @description A string specifying the UUID of the VPC subnet to which the load balancer is assigned.
+ * @example cbd79771-23eb-49be-b5ea-59cc56222622
+ */
+ subnet_uuid?: string;
+ /**
+ * @description A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer.
+ * @default false
+ * @example true
+ */
+ disable_lets_encrypt_dns_records?: boolean;
+ firewall?: components["schemas"]["lb_firewall"];
+ /**
+ * @description A string indicating whether the load balancer should be external or internal. Internal load balancers have no public IPs and are only accessible to resources on the same VPC network. This property cannot be updated after creating the load balancer.
+ * @default EXTERNAL
+ * @example EXTERNAL
+ * @enum {string}
+ */
+ network?: "EXTERNAL" | "INTERNAL";
+ /**
+ * @description A string indicating whether the load balancer will support IPv4 or both IPv4 and IPv6 networking. This property cannot be updated after creating the load balancer.
+ * @default IPV4
+ * @example IPV4
+ * @enum {string}
+ */
+ network_stack?: "IPV4" | "DUALSTACK";
+ /**
+ * @description A string indicating whether the load balancer should be a standard regional HTTP load balancer, a regional network load balancer that routes traffic at the TCP/UDP transport layer, or a global load balancer.
+ * @default REGIONAL
+ * @example REGIONAL
+ * @enum {string}
+ */
+ type?: "REGIONAL" | "REGIONAL_NETWORK" | "GLOBAL";
+ /** @description An array of objects specifying the domain configurations for a Global load balancer. */
+ domains?: components["schemas"]["domains"][];
+ glb_settings?: components["schemas"]["glb_settings"];
+ /**
+ * @description An array containing the UUIDs of the Regional load balancers to be used as target backends for a Global load balancer.
+ * @example [
+ * "7dbf91fe-cbdb-48dc-8290-c3a181554905",
+ * "996fa239-fac3-42a2-b9a1-9fa822268b7a"
+ * ]
+ */
+ target_load_balancer_ids?: string[];
+ /**
+ * @description A string indicating the policy for the TLS cipher suites used by the load balancer. The possible values are `DEFAULT` or `STRONG`. The default value is `DEFAULT`.
+ * @default DEFAULT
+ * @example STRONG
+ * @enum {string}
+ */
+ tls_cipher_policy?: "DEFAULT" | "STRONG";
+ };
+ load_balancer_droplet_ids: {
+ /**
+ * @description An array containing the IDs of the Droplets assigned to the load balancer.
+ * @example [
+ * 3164444,
+ * 3164445
+ * ]
+ */
+ droplet_ids?: number[];
+ };
+ load_balancer_droplet_tag: {
+ /**
+ * @description The name of a Droplet tag corresponding to Droplets assigned to the load balancer.
+ * @example prod:web
+ */
+ tag?: string;
+ };
+ load_balancer: components["schemas"]["load_balancer_base"] & {
+ /**
+ * @description An attribute containing the public-facing IP address of the load balancer.
+ * @example 104.131.186.241
+ */
+ readonly ip?: string;
+ } & {
+ region?: unknown & components["schemas"]["region"];
+ } & components["schemas"]["load_balancer_droplet_ids"] & components["schemas"]["load_balancer_droplet_tag"];
+ load_balancer_ip: {
+ /**
+ * @description An optional IP address to assign to the load balancer from one of your Bring Your Own IP (BYOIP) prefixes. The address must be an unassigned BYOIP address on your account in the same region as the load balancer. If omitted, DigitalOcean assigns a public IP address automatically. This field is only applied when creating the load balancer, cannot be changed afterward, and is not supported for `GLOBAL` or `INTERNAL` load balancers.
+ * @example 203.0.113.42
+ */
+ ip?: string;
+ };
+ /** @description The request schema for creating a load balancer. This is the same as the update schema with the addition of the create-only `ip` field, which assigns a Bring Your Own IP (BYOIP) address to the load balancer. */
+ load_balancer_create: (WithRequired & components["schemas"]["load_balancer_ip"] & {
+ region: components["schemas"]["region_slug"];
+ } & components["schemas"]["load_balancer_base"]) | (WithRequired & components["schemas"]["load_balancer_ip"] & {
+ region: components["schemas"]["region_slug"];
+ } & components["schemas"]["load_balancer_base"]);
+ load_balancer_update: (WithRequired & {
+ region: components["schemas"]["region_slug"];
+ } & components["schemas"]["load_balancer_base"]) | (WithRequired & {
+ region: components["schemas"]["region_slug"];
+ } & components["schemas"]["load_balancer_base"]);
+ /** @description The MicroVM's size. `cpu` and `memory` must be one of the pairs `1`/`2048`, `2`/`4096`, `8`/`16384`, or `16`/`32768`. The size sets the disk, which is returned in responses. */
+ microvm_size: {
+ /**
+ * @description The number of vCPUs.
+ * @example 1
+ */
+ cpu: number;
+ /**
+ * @description The amount of memory, in MiB.
+ * @example 2048
+ */
+ memory: number;
+ /**
+ * @description The size of the disk, in GB. Set by the size.
+ * @example 50
+ */
+ readonly disk?: number;
+ };
+ /** @description What the MicroVM runs. Set exactly one of `oci_ref` or `checkpoint_id`. */
+ microvm_source: {
+ /**
+ * @description A reference to a `linux/amd64` container image in the form `registry/repository:tag`. The image can be public, such as an image on Docker Hub, or private in your team's DigitalOcean Container Registry.
+ * @example docker.io/library/nginx:latest
+ */
+ oci_ref?: string;
+ /**
+ * Format: uuid
+ * @description The ID of a checkpoint to create the MicroVM from. The new MicroVM inherits the checkpoint's region, size, container image, and environment variables.
+ * @example 01a0ed98-0a74-75dd-a625-e4856adbc298
+ */
+ checkpoint_id?: string;
+ };
+ /** @description An outbound allow list. A destination that matches any rule is allowed; `default_action` decides every other destination. Only valid with `public` networking, and fixed at create: there is no way to change it later. With a policy set, direct connections out of the MicroVM are dropped; only HTTP and HTTPS through the platform proxy to the allowed destinations works, so clients must honor the injected `HTTP_PROXY` / `HTTPS_PROXY` environment. The registries needed to pull the workload image are allowed automatically. On a MicroVM this is the policy set at create, as supplied, except that credential secrets are never returned. On a checkpoint it is the policy a restored MicroVM inherits; a restore cannot change it. Omitted when egress is unrestricted. */
+ microvm_egress_policy: {
+ /**
+ * @description What to do with a destination no rule matches. `deny` refuses it (an HTTP request gets a 403 and a TLS connection is closed).
+ * @default deny
+ * @example deny
+ * @enum {string}
+ */
+ default_action?: "deny" | "allow";
+ /** @description The destinations to allow. Rules match the host only: port, path, and method are not considered, and a hostname that resolves to an IP is not matched by an `ip` rule. Each rule sets exactly one of `domain` or `ip`. */
+ rules?: {
+ /**
+ * @description An exact host such as `api.example.com`, or a wildcard such as `*.example.com`.
+ * @example api.example.com
+ */
+ domain?: string;
+ /**
+ * @description An exact IP address. CIDR ranges are not supported.
+ * @example 203.0.113.5
+ */
+ ip?: string;
+ }[];
+ /** @description Credentials the platform adds to outbound requests, so the workload never holds them. Settable only at create, and only in regions that support credential injection. Each host must be allowed by a rule (or `default_action` must be `allow`). HTTPS requests to these hosts are intercepted so the credential can be attached; clients that pin certificates will fail on them. The credential is sent in the `authorization` header. Credentials cannot be set when restoring a checkpoint: the restored MicroVM inherits the origin's. Responses include `host`, `path_prefix`, and `scheme` for each credential. The `secret` is never returned. */
+ credentials?: {
+ /**
+ * @description An exact host. Wildcards and IP addresses are not allowed.
+ * @example api.example.com
+ */
+ host: string;
+ /**
+ * @description Only requests whose path starts with this prefix get the credential. Must start with `/`. Defaults to every path.
+ * @example /v1
+ */
+ path_prefix?: string;
+ /**
+ * @description How the value is sent. `bearer` sends `Bearer `; `raw` sends the secret as is.
+ * @default bearer
+ * @example bearer
+ * @enum {string}
+ */
+ scheme?: "bearer" | "raw";
+ /**
+ * @description The credential value. It is stored in a secrets vault, never returned by the API, and cannot be read back.
+ * @example s3cr3t-t0k3n
+ */
+ secret: string;
+ }[];
+ };
+ /** @description Automatic pause settings. A MicroVM always pauses after it is idle for `idle_timeout`. Sending `enabled` set to `false` is rejected. */
+ microvm_auto_pause: {
+ /**
+ * @description Whether auto-pause is on. Always `true`.
+ * @example true
+ */
+ enabled?: boolean;
+ /**
+ * @description How long the MicroVM is idle before it pauses, as a duration such as `30s`, `5m`, or `1h`. Defaults to `5m`. The maximum is `4h`. Responses show the duration in the form `5m0s`.
+ * @example 5m0s
+ */
+ idle_timeout?: string;
+ };
+ /** @description An HTTPS endpoint for one of the MicroVM's ports: the system default URL minted at create, or one added with POST `/v2/microvms/{microvm_id}/urls`. */
+ microvm_url: {
+ /**
+ * Format: uuid
+ * @description The unique ID of the URL. Use it to remove the URL with DELETE `/v2/microvms/{microvm_id}/urls/{url_id}`.
+ * @example 3f6c1a2b-9d4e-5f70-8a1b-2c3d4e5f6a7b
+ */
+ readonly id?: string;
+ /**
+ * @description The endpoint's hostname. Empty until provisioning finishes. Requests to the endpoint must include a DigitalOcean API token with the `microvm:access` scope in the `Authorization` header.
+ * @example 01a0ef1a-d873-793d-ae6a-5dd6239be62a.mkc1.microvm.ondigitalocean.com
+ */
+ hostname?: string;
+ /**
+ * @description The guest port the endpoint serves.
+ * @example 80
+ */
+ port?: number;
+ /**
+ * @description Whether this is the endpoint for the MicroVM's HTTP port.
+ * @example true
+ */
+ default?: boolean;
+ /**
+ * @description `PENDING` until provisioning finishes, then `ACTIVE`.
+ * @example ACTIVE
+ * @enum {string}
+ */
+ status?: "PENDING" | "ACTIVE";
+ };
+ /** @description A MicroVM without its tags. Pause and resume return this shape; read tags with GET `/v2/microvms/{microvm_id}`. */
+ microvm_base: {
+ /**
+ * Format: uuid
+ * @description The unique ID of the MicroVM.
+ * @example 01a0ef1a-d873-793d-ae6a-5dd6239be62a
+ */
+ readonly id?: string;
+ /**
+ * @description The name of the MicroVM. Must be unique in the region and contain 1 to 63 lowercase letters, digits, and hyphens.
+ * @example example-microvm
+ */
+ name?: string;
+ /**
+ * @description The slug of the region the MicroVM is in.
+ * @example mkc1
+ */
+ region?: string;
+ size?: components["schemas"]["microvm_size"];
+ source?: components["schemas"]["microvm_source"];
+ /**
+ * @description The MicroVM's current state.
+ * @example running
+ * @enum {string}
+ */
+ readonly state?: "creating" | "running" | "pausing" | "paused" | "resuming" | "terminating" | "terminated" | "failed" | "unknown";
+ /**
+ * @description Why the MicroVM failed. Present only when `state` is `failed`.
+ * @example workload container exited (code 0): exited with code 0
+ */
+ readonly failure_reason?: string;
+ /**
+ * @description `public` sends outbound traffic through a shared NAT gateway. `vpc` places the MicroVM in a VPC network. The VPC ID is not returned.
+ * @default public
+ * @example public
+ * @enum {string}
+ */
+ networking?: "public" | "vpc";
+ egress_policy?: components["schemas"]["microvm_egress_policy"];
+ auto_pause?: components["schemas"]["microvm_auto_pause"];
+ /**
+ * @description Whether an HTTP request, command, or console session resumes the MicroVM when it is paused.
+ * @default true
+ * @example true
+ */
+ auto_resume?: boolean;
+ /**
+ * @description The protocol the MicroVM's HTTP port serves. `null` if the protocol was not set when the MicroVM was created.
+ * @example http
+ * @enum {string|null}
+ */
+ http_protocol?: "http" | "http2" | null;
+ /**
+ * @description The guest ports declared on the MicroVM, including the HTTP port. During the public preview, only the HTTP port is reachable through the MicroVM's endpoint.
+ * @example [
+ * 80
+ * ]
+ */
+ ports?: number[];
+ /** @description The MicroVM's HTTPS endpoints. The entry with `default` set to `true` is the endpoint for the HTTP port. */
+ readonly urls?: components["schemas"]["microvm_url"][];
+ /**
+ * Format: date-time
+ * @description When the MicroVM was created, in ISO 8601 format.
+ * @example 2026-09-29T21:38:29Z
+ */
+ readonly created_at?: string;
+ };
+ microvm: components["schemas"]["microvm_base"] & {
+ /**
+ * @description The tags applied to the MicroVM.
+ * @example [
+ * "example"
+ * ]
+ */
+ tags?: string[];
+ /**
+ * Format: uuid
+ * @description The project the MicroVM belongs to. Omitted when the project could not be resolved.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ project_id?: string;
+ };
+ /** @description The request body for creating a MicroVM. With `source.oci_ref`, `region` and `size` are required. With `source.checkpoint_id`, the MicroVM inherits the checkpoint's region, size, container image, and environment variables, and a different `region` or `size`, or any `environment`, is rejected. */
+ microvm_create: {
+ /**
+ * @description The name of the MicroVM. Must be unique in the region and contain 1 to 63 lowercase letters, digits, and hyphens.
+ * @example example-microvm
+ */
+ name: string;
+ source: components["schemas"]["microvm_source"];
+ /**
+ * @description The slug of the region to create the MicroVM in. Required with `source.oci_ref`.
+ * @example mkc1
+ */
+ region?: string;
+ size?: components["schemas"]["microvm_size"];
+ /**
+ * @description `public` sends outbound traffic through a shared NAT gateway. `vpc` places the MicroVM in the VPC network set by `vpc_uuid`.
+ * @default public
+ * @example public
+ * @enum {string}
+ */
+ networking?: "public" | "vpc";
+ /**
+ * Format: uuid
+ * @description The ID of a VPC network in the same region that belongs to your team. When `networking` is `vpc` and this is omitted, the team's default VPC is used.
+ * @example 5a4981aa-9653-4bd1-bef5-d6bff52042e4
+ */
+ vpc_uuid?: string;
+ egress_policy?: components["schemas"]["microvm_egress_policy"];
+ /**
+ * Format: uuid
+ * @description The project to place the MicroVM in. Omit to use the team's default project. A project that does not belong to the team is rejected.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ project_id?: string;
+ /**
+ * @description Whether to create the MicroVM with a default public URL. Defaults to `true`. Set to `false` to create the MicroVM without one; URLs can be added later with POST `/v2/microvms/{microvm_id}/urls`.
+ * @default true
+ * @example true
+ */
+ ingress?: boolean;
+ auto_pause?: components["schemas"]["microvm_auto_pause"];
+ /**
+ * @description Whether an HTTP request, command, or console session resumes the MicroVM when it is paused. Set to `false` to require a manual resume.
+ * @default true
+ * @example true
+ */
+ auto_resume?: boolean;
+ /**
+ * @description The guest port the workload serves HTTP on. Defaults to `8080`. Not returned in responses. When creating from a checkpoint without `ports`, must be one of the checkpoint's ports.
+ * @default 8080
+ * @example 80
+ */
+ http_port?: number;
+ /**
+ * @description The protocol the HTTP port serves.
+ * @example http
+ * @enum {string}
+ */
+ http_protocol?: "http" | "http2";
+ /**
+ * @description The guest ports to declare, up to five. Must include `http_port`. Defaults to only the HTTP port. During the public preview, only the HTTP port is reachable through the MicroVM's endpoint.
+ * @example [
+ * 80
+ * ]
+ */
+ ports?: number[];
+ /**
+ * @description Environment variables passed into the MicroVM at boot, as key and value pairs. Not returned in responses.
+ * @example {
+ * "APP_ENV": "production"
+ * }
+ */
+ environment?: {
+ [key: string]: string;
+ };
+ /**
+ * @description Tags to apply to the MicroVM.
+ * @example [
+ * "example"
+ * ]
+ */
+ tags?: string[];
+ };
+ /** @description A MicroVMs API error response. */
+ microvm_error: {
+ /**
+ * @description A service-defined error code.
+ * @example NOT_FOUND
+ */
+ code: string;
+ /**
+ * @description A human-readable description of the error.
+ * @example MicroVM not found
+ */
+ message: string;
+ };
+ /** @description The default region, sizes, prices, account limits, and features available to your team. */
+ microvm_options: {
+ /**
+ * @description The slug of the region MicroVMs are created in by default.
+ * @example mkc1
+ */
+ default_region?: string;
+ /** @description The sizes available to your team. */
+ sizes?: {
+ /**
+ * @description The number of vCPUs.
+ * @example 1
+ */
+ cpu?: number;
+ /**
+ * @description The amount of memory, in MiB.
+ * @example 2048
+ */
+ memory?: number;
+ /**
+ * @description The size of the disk, in GB.
+ * @example 50
+ */
+ disk?: number;
+ /**
+ * @description Whether the size is available on your team's plan.
+ * @example true
+ */
+ available?: boolean;
+ /**
+ * @description The slugs of the regions the size is available in.
+ * @example [
+ * "mkc1"
+ * ]
+ */
+ regions?: string[];
+ /** @description The compute price of the size. */
+ pricing?: {
+ /**
+ * @description The price per hour of running time, in USD.
+ * @example 0.039
+ */
+ price_per_hour?: number;
+ /**
+ * @description The price for running continuously for a month (730 hours), in USD.
+ * @example 28.47
+ */
+ price_per_month?: number;
+ };
+ }[];
+ /** @description Per-resource rates, in USD. */
+ resource_pricing?: {
+ /**
+ * @description The price per vCPU per hour of running time.
+ * @example 0.022
+ */
+ price_per_vcpu_hour?: number;
+ /**
+ * @description The price per GiB of memory per hour of running time.
+ * @example 0.0085
+ */
+ price_per_gib_memory_hour?: number;
+ /**
+ * @description The price per GiB-month of disk and checkpoint storage.
+ * @example 0.05
+ */
+ price_per_gib_storage_month?: number;
+ /**
+ * @description The price per GiB of outbound data transfer.
+ * @example 0.01
+ */
+ price_per_gib_bandwidth?: number;
+ };
+ /** @description Your team's MicroVM limits. */
+ account_limits?: {
+ /**
+ * @description The maximum number of MicroVMs, counting both running and paused MicroVMs.
+ * @example 1000
+ */
+ max_total_count?: number;
+ /**
+ * Format: int64
+ * @description The maximum memory per MicroVM, in bytes.
+ * @example 34359738368
+ */
+ max_memory_bytes?: number;
+ /**
+ * Format: int64
+ * @description The maximum disk per MicroVM, in bytes.
+ * @example 429496729600
+ */
+ max_disk_bytes?: number;
+ /**
+ * @description The maximum auto-pause idle timeout, in seconds.
+ * @example 14400
+ */
+ max_idle_timeout_seconds?: number;
+ };
+ /** @description Features and whether they are enabled for your team. `exec_pty` gates `exec` and `console`; `port_forward` gates `port_forward`; `file_transfer` gates `files`; `egress_policy` gates `egress_policy` on create; `egress_credentials` gates `egress_policy.credentials` (requires `egress_policy`, and only in regions that support credential injection). */
+ features?: {
+ /**
+ * @description The name of the feature.
+ * @example exec_pty
+ */
+ name?: string;
+ /**
+ * @description Whether the feature is enabled.
+ * @example true
+ */
+ enabled?: boolean;
+ }[];
+ };
+ /** @description A checkpoint of a MicroVM's memory and disk. New MicroVMs created from a checkpoint start from that state. */
+ "checkpoint-2": {
+ /**
+ * Format: uuid
+ * @description The unique ID of the checkpoint.
+ * @example 01a0ed98-0a74-75dd-a625-e4856adbc298
+ */
+ readonly id?: string;
+ /**
+ * @description The name of the checkpoint. If you do not set one, a name such as `checkpoint-20260929-143559` is generated.
+ * @example checkpoint-20260929-143559
+ */
+ name?: string;
+ /**
+ * Format: uuid
+ * @description The ID of the MicroVM the checkpoint was taken from.
+ * @example 01a0ed71-4efb-718f-9598-ca9cba942595
+ */
+ readonly microvm_id?: string;
+ /**
+ * @description The name of the MicroVM the checkpoint was taken from.
+ * @example example-microvm
+ */
+ readonly microvm_name?: string;
+ /**
+ * @description The slug of the checkpoint's region.
+ * @example mkc1
+ */
+ readonly region?: string;
+ size?: components["schemas"]["microvm_size"];
+ /**
+ * @description The checkpoint's status. You can create MicroVMs from the checkpoint when it is `CHECKPOINT_AVAILABLE`.
+ * @example CHECKPOINT_AVAILABLE
+ * @enum {string}
+ */
+ readonly status?: "CHECKPOINT_CREATING" | "CHECKPOINT_AVAILABLE" | "CHECKPOINT_FAILED" | "CHECKPOINT_DELETING" | "CHECKPOINT_DELETED";
+ /**
+ * @description Why the checkpoint failed. Present only when `status` is `CHECKPOINT_FAILED`.
+ * @example another checkpoint of this MicroVM is in progress; retry shortly
+ */
+ readonly failure_reason?: string;
+ egress_policy?: components["schemas"]["microvm_egress_policy"];
+ /**
+ * Format: int64
+ * @description The stored size of the checkpoint's memory, in bytes.
+ * @example 2147483648
+ */
+ readonly memory_bytes?: number;
+ /**
+ * Format: int64
+ * @description The stored size of the checkpoint's disk, in bytes.
+ * @example 1073741824
+ */
+ readonly disk_bytes?: number;
+ /**
+ * Format: date-time
+ * @description When the checkpoint was created, in ISO 8601 format.
+ * @example 2026-09-29T14:35:59Z
+ */
+ readonly created_at?: string;
+ };
+ /** @description The request body for updating a MicroVM. Set at least one field. Fields fixed at create (region, size, source, checkpoint_id, networking, vpc_uuid, http_port, http_protocol, ports, environment, auto_resume, project_id, ingress, egress_policy) are rejected. */
+ microvm_update: {
+ /**
+ * @description The new name. Must be unique in the region and contain 1 to 63 lowercase letters, digits, and hyphens.
+ * @example example-microvm-2
+ */
+ name?: string;
+ /**
+ * @description The complete tag set. Replaces the current tags; tags not in the list are removed, and an empty list removes every tag.
+ * @example [
+ * "example",
+ * "prod"
+ * ]
+ */
+ tags?: string[];
+ };
+ /** @description The request body for adding a URL to a MicroVM. */
+ microvm_url_create: {
+ /**
+ * @description The guest port the URL routes to. Must be one of the MicroVM's `ports`. Defaults to the MicroVM's HTTP port when omitted.
+ * @example 8080
+ */
+ port?: number;
+ };
+ /** @description The metadata of one access token of a MicroVM. The token value is never on this object: it exists only in the create response. */
+ microvm_access_token: {
+ /**
+ * Format: uuid
+ * @description The unique ID of the access token. Use it to revoke the token with DELETE `/v2/microvms/{microvm_id}/access_tokens/{token_id}`.
+ * @example 4f6a1c2e-9d3b-4e7a-8f10-2b5c7d9e1a33
+ */
+ readonly id: string;
+ /**
+ * Format: uuid
+ * @description The MicroVM the token grants access to.
+ * @example 01a0ef1a-d873-793d-ae6a-5dd6239be62a
+ */
+ readonly micro_vm_id: string;
+ /**
+ * @description The name given at create.
+ * @example alice-workspace
+ */
+ name: string;
+ /**
+ * Format: date-time
+ * @description When the token was created, in ISO 8601 format.
+ * @example 2026-10-21T14:02:11Z
+ */
+ readonly created_at: string;
+ /**
+ * Format: date-time
+ * @description When the token expires. Absent when the token does not expire.
+ * @example 2026-11-20T14:02:11Z
+ */
+ readonly expires_at?: string;
+ };
+ /** @description The request body for creating an access token for a MicroVM. */
+ microvm_access_token_create: {
+ /**
+ * @description A name for the token. Unique among the live access tokens of the MicroVM.
+ * @example alice-workspace
+ */
+ name: string;
+ /**
+ * @description The lifetime of the token in seconds. Omit for a token that does not expire.
+ * @example 2592000
+ */
+ expires_in_seconds?: number;
+ };
+ /** @description A command to run in the MicroVM's workload container. The command runs directly, not through a shell. To use pipes, redirects, or environment variables, run it with `sh -c`. The request body can be up to 1 MiB. */
+ exec_request: {
+ /**
+ * @description The command and its arguments.
+ * @example [
+ * "nginx",
+ * "-v"
+ * ]
+ */
+ argv: string[];
+ /**
+ * @description The working directory to run the command in.
+ * @example /usr/share/nginx/html
+ */
+ cwd?: string;
+ /**
+ * @description How `stdout` and `stderr` are returned. `utf-8` (the default) is a JSON string; bytes that are not valid UTF-8 become U+FFFD. `base64` returns the exact bytes. Use `base64` when the command may emit binary output.
+ * @default utf-8
+ * @example utf-8
+ * @enum {string}
+ */
+ output_encoding?: "utf-8" | "base64";
+ };
+ /** @description The result of a command. The command has 60 seconds to finish. Combined `stdout` and `stderr` are limited to 4 MiB. */
+ exec_response: {
+ /**
+ * @description The command's standard output. A UTF-8 string when `output_encoding` is `utf-8`; standard Base64 when it is `base64`.
+ * @example
+ */
+ stdout?: string;
+ /**
+ * @description The command's standard error. A UTF-8 string when `output_encoding` is `utf-8`; standard Base64 when it is `base64`.
+ * @example nginx version: nginx/1.29.1
+ */
+ stderr?: string;
+ /**
+ * @description The encoding of `stdout` and `stderr`, echoing the request's `output_encoding` (or the `utf-8` default).
+ * @example utf-8
+ * @enum {string}
+ */
+ output_encoding?: "utf-8" | "base64";
+ /**
+ * @description The command's exit code.
+ * @example 0
+ */
+ exit_code?: number;
+ /**
+ * @description Present and `true` when the output exceeded 4 MiB and was cut off.
+ * @example false
+ */
+ truncated?: boolean;
+ };
+ /** @description Metadata of a file written into a MicroVM. */
+ file_info: {
+ /**
+ * @description The absolute path inside the workload container.
+ * @example /app/config.json
+ */
+ path: string;
+ /**
+ * Format: uint64
+ * @description The file size in bytes.
+ * @example 1024
+ */
+ size_bytes: number;
+ /**
+ * @description The lowercase hex SHA-256 of the content.
+ * @example e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
+ */
+ sha256: string;
+ /**
+ * @description The octal permission bits as written.
+ * @example 0644
+ */
+ mode?: string;
+ /**
+ * Format: uint32
+ * @description The owner user ID.
+ * @example 0
+ */
+ uid?: number;
+ /**
+ * Format: uint32
+ * @description The owner group ID.
+ * @example 0
+ */
+ gid?: number;
+ };
+ slack_details: {
+ /**
+ * @description Slack channel to notify of an alert trigger.
+ * @example Production Alerts
+ */
+ channel: string;
+ /**
+ * @description Slack Webhook URL.
+ * @example https://hooks.slack.com/services/T1234567/AAAAAAAA/ZZZZZZ
+ */
+ url: string;
+ };
+ alerts: {
+ /**
+ * @description An email to notify on an alert trigger.
+ * @example [
+ * "bob@exmaple.com"
+ * ]
+ */
+ email: string[];
+ /** @description Slack integration details. */
+ slack: components["schemas"]["slack_details"][];
+ };
+ alert_policy: {
+ alerts: components["schemas"]["alerts"];
+ /**
+ * @example GreaterThan
+ * @enum {string}
+ */
+ compare: "GreaterThan" | "LessThan";
+ /** @example CPU Alert */
+ description: string;
+ /** @example true */
+ enabled: boolean;
+ /**
+ * @example [
+ * "192018292"
+ * ]
+ */
+ entities: string[];
+ /**
+ * @example [
+ * "droplet_tag"
+ * ]
+ */
+ tags: string[];
+ /**
+ * @example v1/insights/droplet/cpu
+ * @enum {string}
+ */
+ type: "v1/insights/droplet/load_1" | "v1/insights/droplet/load_5" | "v1/insights/droplet/load_15" | "v1/insights/droplet/memory_utilization_percent" | "v1/insights/droplet/disk_utilization_percent" | "v1/insights/droplet/cpu" | "v1/insights/droplet/disk_read" | "v1/insights/droplet/disk_write" | "v1/insights/droplet/public_outbound_bandwidth" | "v1/insights/droplet/public_inbound_bandwidth" | "v1/insights/droplet/private_outbound_bandwidth" | "v1/insights/droplet/private_inbound_bandwidth" | "v1/insights/lbaas/avg_cpu_utilization_percent" | "v1/insights/lbaas/connection_utilization_percent" | "v1/insights/lbaas/droplet_health" | "v1/insights/lbaas/tls_connections_per_second_utilization_percent" | "v1/insights/lbaas/increase_in_http_error_rate_percentage_5xx" | "v1/insights/lbaas/increase_in_http_error_rate_percentage_4xx" | "v1/insights/lbaas/increase_in_http_error_rate_count_5xx" | "v1/insights/lbaas/increase_in_http_error_rate_count_4xx" | "v1/insights/lbaas/high_http_request_response_time" | "v1/insights/lbaas/high_http_request_response_time_50p" | "v1/insights/lbaas/high_http_request_response_time_95p" | "v1/insights/lbaas/high_http_request_response_time_99p" | "v1/dbaas/alerts/load_15_alerts" | "v1/dbaas/alerts/memory_utilization_alerts" | "v1/dbaas/alerts/disk_utilization_alerts" | "v1/dbaas/alerts/cpu_alerts" | "v1/droplet/autoscale_alerts/current_instances" | "v1/droplet/autoscale_alerts/target_instances" | "v1/droplet/autoscale_alerts/current_cpu_utilization" | "v1/droplet/autoscale_alerts/target_cpu_utilization" | "v1/droplet/autoscale_alerts/current_memory_utilization" | "v1/droplet/autoscale_alerts/target_memory_utilization" | "v1/droplet/autoscale_alerts/scale_up" | "v1/droplet/autoscale_alerts/scale_down";
+ /** @example 78b3da62-27e5-49ba-ac70-5db0b5935c64 */
+ uuid: string;
+ /**
+ * Format: float
+ * @example 80
+ */
+ value: number;
+ /**
+ * @example 5m
+ * @enum {string}
+ */
+ window: "5m" | "10m" | "30m" | "1h";
+ };
+ list_alert_policy: {
+ policies: components["schemas"]["alert_policy"][];
+ };
+ alert_policy_request: {
+ alerts: components["schemas"]["alerts"];
+ /**
+ * @example GreaterThan
+ * @enum {string}
+ */
+ compare: "GreaterThan" | "LessThan";
+ /** @example CPU Alert */
+ description: string;
+ /** @example true */
+ enabled: boolean;
+ /**
+ * @example [
+ * "192018292"
+ * ]
+ */
+ entities: string[];
+ /**
+ * @example [
+ * "droplet_tag"
+ * ]
+ */
+ tags: string[];
+ /**
+ * @example v1/insights/droplet/cpu
+ * @enum {string}
+ */
+ type: "v1/insights/droplet/load_1" | "v1/insights/droplet/load_5" | "v1/insights/droplet/load_15" | "v1/insights/droplet/memory_utilization_percent" | "v1/insights/droplet/disk_utilization_percent" | "v1/insights/droplet/cpu" | "v1/insights/droplet/disk_read" | "v1/insights/droplet/disk_write" | "v1/insights/droplet/public_outbound_bandwidth" | "v1/insights/droplet/public_inbound_bandwidth" | "v1/insights/droplet/private_outbound_bandwidth" | "v1/insights/droplet/private_inbound_bandwidth" | "v1/insights/lbaas/avg_cpu_utilization_percent" | "v1/insights/lbaas/connection_utilization_percent" | "v1/insights/lbaas/droplet_health" | "v1/insights/lbaas/tls_connections_per_second_utilization_percent" | "v1/insights/lbaas/increase_in_http_error_rate_percentage_5xx" | "v1/insights/lbaas/increase_in_http_error_rate_percentage_4xx" | "v1/insights/lbaas/increase_in_http_error_rate_count_5xx" | "v1/insights/lbaas/increase_in_http_error_rate_count_4xx" | "v1/insights/lbaas/high_http_request_response_time" | "v1/insights/lbaas/high_http_request_response_time_50p" | "v1/insights/lbaas/high_http_request_response_time_95p" | "v1/insights/lbaas/high_http_request_response_time_99p" | "v1/dbaas/alerts/load_15_alerts" | "v1/dbaas/alerts/memory_utilization_alerts" | "v1/dbaas/alerts/disk_utilization_alerts" | "v1/dbaas/alerts/cpu_alerts" | "v1/droplet/autoscale_alerts/current_instances" | "v1/droplet/autoscale_alerts/target_instances" | "v1/droplet/autoscale_alerts/current_cpu_utilization" | "v1/droplet/autoscale_alerts/target_cpu_utilization" | "v1/droplet/autoscale_alerts/current_memory_utilization" | "v1/droplet/autoscale_alerts/target_memory_utilization" | "v1/droplet/autoscale_alerts/scale_up" | "v1/droplet/autoscale_alerts/scale_down";
+ /**
+ * Format: float
+ * @example 80
+ */
+ value: number;
+ /**
+ * @example 5m
+ * @enum {string}
+ */
+ window: "5m" | "10m" | "30m" | "1h";
+ };
+ metrics_result: {
+ /**
+ * @description An object containing the metric's labels. These labels are key/value pairs that vary depending on the metric being queried. For example, load balancer metrics contain a `lb_id` label, while Droplet metrics contain a `host_id` label, and App Platform metrics contain a `app_component` label.
+ * @example {
+ * "host_id": "19201920"
+ * }
+ */
+ metric: {
+ [key: string]: string;
+ };
+ /**
+ * @description An array of values for the metric.
+ * @example [
+ * [
+ * 1435781430,
+ * "1"
+ * ],
+ * [
+ * 1435781445,
+ * "1"
+ * ]
+ * ]
+ */
+ values: (number | string)[][];
+ };
+ metrics_data: {
+ /** @description Result of query. */
+ result: components["schemas"]["metrics_result"][];
+ /**
+ * @example matrix
+ * @enum {string}
+ */
+ resultType: "matrix";
+ };
+ "metrics-2": {
+ data: components["schemas"]["metrics_data"];
+ /**
+ * @example success
+ * @enum {string}
+ */
+ status: "success" | "error";
+ };
+ /** @description OpenSearch destination configuration with `credentials` omitted. */
+ opensearch_config_omit_credentials: {
+ /**
+ * @description A unique identifier for a configuration.
+ * @example 41078d41-165c-4cff-9f0a-19536e3e3d49
+ */
+ id?: string;
+ /**
+ * @description host of the OpenSearch cluster
+ * @example example.com
+ */
+ endpoint?: string;
+ /**
+ * @description A unique identifier for a managed OpenSearch cluster.
+ * @example 85148069-7e35-4999-80bd-6fa1637ca385
+ */
+ cluster_uuid?: string;
+ /**
+ * @description Name of a managed OpenSearch cluster.
+ * @example managed_dbaas_cluster
+ */
+ cluster_name?: string;
+ /**
+ * @description OpenSearch index to send logs to.
+ * @example logs
+ */
+ index_name?: string;
+ /**
+ * @description Number of days to retain logs in OpenSearch.
+ * @default 14
+ * @example 14
+ */
+ retention_days?: number;
+ };
+ destination_omit_credentials: {
+ /**
+ * @description A unique identifier for a destination.
+ * @example 01f30bfa-319a-4769-ba95-9d43971fb514
+ */
+ id?: string;
+ /**
+ * @description destination name
+ * @example managed_opensearch_cluster
+ */
+ name?: string;
+ /**
+ * @description The destination type. `opensearch_dbaas` for a DigitalOcean managed OpenSearch
+ * cluster or `opensearch_ext` for an externally managed one.
+ * @example opensearch_dbaas
+ * @enum {string}
+ */
+ type?: "opensearch_dbaas" | "opensearch_ext";
+ config?: components["schemas"]["opensearch_config_omit_credentials"];
+ };
+ opensearch_config_request: {
+ /** @description Credentials for an OpenSearch cluster user. Optional if `cluster_uuid` is passed. */
+ credentials?: {
+ /** @example username */
+ username?: string;
+ /** @example password */
+ password?: string;
+ };
+ /**
+ * @description host of the OpenSearch cluster
+ * @example example.com
+ */
+ endpoint: string;
+ /**
+ * @description A unique identifier for a managed OpenSearch cluster.
+ * @example 85148069-7e35-4999-80bd-6fa1637ca385
+ */
+ cluster_uuid?: string;
+ /**
+ * @description Name of a managed OpenSearch cluster.
+ * @example managed_dbaas_cluster
+ */
+ cluster_name?: string;
+ /**
+ * @description OpenSearch index to send logs to.
+ * @example logs
+ */
+ index_name?: string;
+ /**
+ * @description Number of days to retain logs in an OpenSearch cluster.
+ * @default 14
+ * @example 14
+ */
+ retention_days?: number;
+ };
+ destination_request: {
+ /**
+ * @description destination name
+ * @example managed_opensearch_cluster
+ */
+ name?: string;
+ /**
+ * @description The destination type. `opensearch_dbaas` for a DigitalOcean managed OpenSearch
+ * cluster or `opensearch_ext` for an externally managed one.
+ * @enum {string}
+ */
+ type: "opensearch_dbaas" | "opensearch_ext";
+ config: components["schemas"]["opensearch_config_request"];
+ };
+ /**
+ * @description The uniform resource name (URN) for the resource in the format do:resource_type:resource_id.
+ * @example do:droplet:13457723
+ */
+ urn: string;
+ opensearch_config: {
+ /**
+ * @description A unique identifier for a configuration.
+ * @example 41078d41-165c-4cff-9f0a-19536e3e3d49
+ */
+ id?: string;
+ /** @description Credentials for an OpenSearch cluster user. Optional if `cluster_uuid` is passed. */
+ credentials?: {
+ /** @example username */
+ username?: string;
+ /** @example password */
+ password?: string;
+ };
+ /**
+ * @description host of the OpenSearch cluster
+ * @example example.com
+ */
+ endpoint: string;
+ /**
+ * @description A unique identifier for a managed OpenSearch cluster.
+ * @example 85148069-7e35-4999-80bd-6fa1637ca385
+ */
+ cluster_uuid?: string;
+ /**
+ * @description Name of a managed OpenSearch cluster.
+ * @example managed_dbaas_cluster
+ */
+ cluster_name?: string;
+ /**
+ * @description OpenSearch index to send logs to.
+ * @example logs
+ */
+ index_name?: string;
+ /**
+ * @description Number of days to retain logs in OpenSearch (default: 14)
+ * @example 14
+ */
+ retention_days?: number;
+ };
+ destination: {
+ /**
+ * @description A unique identifier for a destination.
+ * @example 01f30bfa-319a-4769-ba95-9d43971fb514
+ */
+ id?: string;
+ /**
+ * @description destination name
+ * @example managed_opensearch_cluster
+ */
+ name?: string;
+ /**
+ * @description The destination type. `opensearch_dbaas` for a DigitalOcean managed OpenSearch
+ * cluster or `opensearch_ext` for an externally managed one.
+ * @example opensearch_dbaas
+ * @enum {string}
+ */
+ type?: "opensearch_dbaas" | "opensearch_ext";
+ config: components["schemas"]["opensearch_config"];
+ };
+ sink_resource: {
+ /**
+ * @description The uniform resource name (URN) for the resource in the format do:resource_type:resource_id.
+ * @example do:kubernetes:f453aa14-646e-4cf8-8c62-75a19fb24ec2
+ */
+ urn: string;
+ /**
+ * @description resource name
+ * @example managed_kubernetes_cluster
+ */
+ name?: string;
+ };
+ sinks_response: {
+ destination?: components["schemas"]["destination"];
+ /** @description List of resources identified by their URNs. */
+ resources?: components["schemas"]["sink_resource"][];
+ };
+ /**
+ * @description Provider-agnostic NFS access policy for an access point. Network CIDRs are
+ * managed by attach, detach, and managed-access workflows and are not part of
+ * this policy.
+ */
+ access_policy: {
+ /**
+ * @description UID used for squashed users. Currently only 65534 is supported.
+ * @example 65534
+ */
+ anonuid: number;
+ /**
+ * @description GID used for squashed users. Currently only 65534 is supported.
+ * @example 65534
+ */
+ anongid: number;
+ /**
+ * @description Allowed NFS protocols for this export.
+ * @example [
+ * "NFS4",
+ * "NFS"
+ * ]
+ */
+ protocols: ("NFS4" | "NFS")[];
+ /**
+ * @description The squash mode applied to the access point export.
+ * @example ROOT_SQUASH
+ * @enum {string}
+ */
+ squash_config: "NO_SQUASH" | "ROOT_SQUASH" | "ALL_SQUASH";
+ /**
+ * @description Whether identity enforcement is enabled for this export.
+ * @example false
+ */
+ identity_enforcement_enabled: boolean;
+ };
+ /** @description Represents an NFS access point resource. */
+ access_point_response: {
+ /**
+ * Format: uuid
+ * @description The unique identifier of the access point.
+ * @example a1b2c3d4-e5f6-4a5b-9c8d-1e2f3a4b5c6d
+ */
+ readonly id: string;
+ /**
+ * @description The human-readable name of the access point. Must be unique per share.
+ * @example other-vpc
+ */
+ name: string;
+ /**
+ * Format: uuid
+ * @description The unique identifier of the share this access point belongs to.
+ * @example 0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d
+ */
+ readonly share_id: string;
+ /**
+ * @description The export sub-path for this access point (always starts with `/`).
+ * @example /other-vpc
+ */
+ path: string;
+ /**
+ * @description The current lifecycle status of an access point. There is no ACCESS_POINT_DELETING state:
+ * DELETE soft-deletes the access point synchronously (mirroring share deletion);
+ * the response of a delete request returns the access point already in ACCESS_POINT_DELETED.
+ * @example ACCESS_POINT_ACTIVE
+ * @enum {string}
+ */
+ readonly status: "ACCESS_POINT_CREATING" | "ACCESS_POINT_ACTIVE" | "ACCESS_POINT_FAILED" | "ACCESS_POINT_DELETED";
+ access_policy: components["schemas"]["access_policy"];
+ /**
+ * Format: date-time
+ * @description The timestamp when the access point was created.
+ * @example 2023-01-01T00:00:00Z
+ */
+ readonly created_at: string;
+ /**
+ * @description The timestamp when the access point was last updated. May be empty while the
+ * access point is still being created.
+ * @example 2026-06-25T08:11:16Z
+ */
+ readonly updated_at: string;
+ /**
+ * @description Whether this is the share's default access point.
+ * @example false
+ */
+ readonly is_default: boolean;
+ /**
+ * @description The VPC this access point is pinned to. Omitted on the default access point.
+ * Every non-default access point owns its own storage gateway in this VPC and
+ * is independent of the parent share's VPC lifecycle.
+ * @example 3f34cdb2-1e4f-4100-b5c7-f55f2762085f
+ */
+ vpc_id?: string;
+ };
+ nfs_response: {
+ /**
+ * @description The unique identifier of the NFS share.
+ * @example 0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d
+ */
+ readonly id: string;
+ /**
+ * @description The human-readable name of the share.
+ * @example sammy-share-drive
+ */
+ name: string;
+ /**
+ * @description The desired/provisioned size of the share in GiB (Gibibytes). Must be >= 50.
+ * @example 1024
+ */
+ size_gib: number;
+ /**
+ * @description The DigitalOcean region slug (e.g., nyc2, atl1) where the NFS share resides.
+ * @example atl1
+ */
+ region: string;
+ /**
+ * @description The current status of the share. `INACTIVE` means the share exists but is
+ * not attached to any VPC.
+ * @example ACTIVE
+ * @enum {string}
+ */
+ readonly status: "CREATING" | "ACTIVE" | "INACTIVE" | "FAILED" | "DELETED";
+ /**
+ * Format: date-time
+ * @description Timestamp for when the NFS share was created.
+ * @example 2023-01-01T00:00:00Z
+ */
+ readonly created_at: string;
+ /**
+ * @description List of VPC IDs that should be able to access the share.
+ * @example [
+ * "796c6fe3-2a1d-4da2-9f3e-38239827dc91"
+ * ]
+ */
+ vpc_ids?: string[];
+ /**
+ * @description The performance tier of the share.
+ * @example PERFORMANCE_TIER_HIGH
+ */
+ performance_tier?: string;
+ /**
+ * @description Path at which the share will be available, to be mounted at a target of the user's choice within the client
+ * @example /123456/your-nfs-share-uuid
+ */
+ mount_path?: string;
+ /**
+ * @description The host IP of the NFS server that will be accessible from the associated VPC
+ * @example 10.128.32.2
+ */
+ host?: string;
+ /** @description Access points configured on this share. The default access point is returned first. */
+ access_points?: components["schemas"]["access_point_response"][];
+ };
+ nfs_list_response: {
+ shares?: components["schemas"]["nfs_response"][];
+ };
+ nfs_request: {
+ /**
+ * @description The human-readable name of the share.
+ * @example my-nfs-share
+ */
+ name: string;
+ /**
+ * @description The desired/provisioned size of the share in GiB (Gibibytes). Must be >= 50.
+ * @example 50
+ */
+ size_gib: number;
+ /**
+ * @description The DigitalOcean region slug (e.g., nyc2, atl1) where the NFS share resides.
+ * @example atl1
+ */
+ region: string;
+ /**
+ * @description List of VPC IDs that should be able to access the share.
+ * @example [
+ * "796c6fe3-2a1d-4da2-9f3e-38239827dc91"
+ * ]
+ */
+ vpc_ids: string[];
+ /**
+ * @description The performance tier of the share.
+ * @example standard
+ */
+ performance_tier?: string;
+ };
+ nfs_create_response: {
+ share?: components["schemas"]["nfs_response"];
+ };
+ nfs_get_response: {
+ share?: components["schemas"]["nfs_response"];
+ };
+ /** @description Specifies the action that will be taken on the NFS share. */
+ nfs_action: {
+ /**
+ * @description The type of action to initiate for the NFS share (such as resize or snapshot).
+ * @example resize
+ * @enum {string}
+ */
+ type: "resize" | "snapshot" | "attach" | "detach" | "reassign" | "switch_performance_tier";
+ /**
+ * @description The DigitalOcean region slug (e.g. atl1, nyc2) where the NFS snapshot resides.
+ * @example atl1
+ */
+ region?: string;
+ };
+ nfs_action_resize: components["schemas"]["nfs_action"] & {
+ params?: {
+ /**
+ * @description The new size for the NFS share.
+ * @example 2048
+ */
+ size_gib: number;
+ };
+ };
+ nfs_action_snapshot: components["schemas"]["nfs_action"] & {
+ params?: {
+ /**
+ * @description Snapshot name of the NFS share
+ * @example daily-backup
+ */
+ name: string;
+ };
+ };
+ nfs_action_attach: components["schemas"]["nfs_action"] & {
+ params?: {
+ /**
+ * @description The ID of the VPC to which the NFS share will be attached
+ * @example vpc-id-123
+ */
+ vpc_id: string;
+ };
+ };
+ nfs_action_detach: components["schemas"]["nfs_action"] & {
+ params?: {
+ /**
+ * @description The ID of the VPC from which the NFS share will be detached
+ * @example vpc-id-123
+ */
+ vpc_id: string;
+ };
+ };
+ nfs_action_reassign: components["schemas"]["nfs_action"] & {
+ params?: {
+ /**
+ * @description The ID of the VPC from which the NFS share will be reassigned
+ * @example vpc-id-123
+ */
+ old_vpc_id: string;
+ /**
+ * @description The ID of the VPC to which the NFS share will be reassigned
+ * @example vpc-id-456
+ */
+ new_vpc_id: string;
+ };
+ };
+ nfs_action_switch_performance_tier: components["schemas"]["nfs_action"] & {
+ params?: {
+ /**
+ * @description The performance tier to which the NFS share will be switched (e.g., standard, high).
+ * @example standard
+ */
+ performance_tier: string;
+ };
+ };
+ /** @description The action that was submitted. */
+ "nfs_action-2": {
+ /**
+ * @description The unique identifier of the action.
+ * @example 084c3b9c-2382-441b-92d4-10b095bb5d7c
+ */
+ id?: string;
+ /**
+ * @description The DigitalOcean region slug where the resource is located.
+ * @example s2r1
+ */
+ region_slug: string;
+ /**
+ * Format: uuid
+ * @description The unique identifier of the resource on which the action is being performed.
+ * @example 7659ce91-354d-4f61-9cda-ae2c7feb61d9
+ */
+ resource_id: string;
+ /**
+ * @description The type of resource on which the action is being performed. Access point
+ * mutations return `SHARE` with `resource_id` set to the access point UUID.
+ * @example SHARE
+ * @enum {string}
+ */
+ resource_type: "SHARE" | "SNAPSHOT";
+ /**
+ * Format: date-time
+ * @description The timestamp when the action was started.
+ * @example 2026-06-25T08:11:12Z
+ */
+ started_at: string;
+ /**
+ * @description The current status of the action.
+ * @example IN_PROGRESS
+ * @enum {string}
+ */
+ status: "IN_PROGRESS" | "COMPLETED" | "ACTION_FAILED";
+ /**
+ * @description The type of action being performed. Share actions use values such as
+ * `RESIZE_SHARE` and `CREATE_SHARE`. Access point mutations use
+ * `CREATE_ACCESS_POINT` and `DELETE_ACCESS_POINT`.
+ * @example CREATE_ACCESS_POINT
+ */
+ type: string;
+ };
+ /** @description Action response of an NFS share. */
+ nfs_actions_response: {
+ action: components["schemas"]["nfs_action-2"];
+ };
+ /** @description Represents an NFS snapshot. */
+ nfs_snapshot_response: {
+ /**
+ * @description The unique identifier of the snapshot.
+ * @example 0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d
+ */
+ id: string;
+ /**
+ * @description The human-readable name of the snapshot.
+ * @example daily-backup
+ */
+ name: string;
+ /**
+ * Format: uint64
+ * @description The size of the snapshot in GiB.
+ * @example 1024
+ */
+ size_gib: number;
+ /**
+ * @description The DigitalOcean region slug where the snapshot is located.
+ * @example atl1
+ */
+ region: string;
+ /**
+ * @description The current status of the snapshot.
+ * @example CREATING
+ * @enum {string}
+ */
+ status: "UNKNOWN" | "CREATING" | "ACTIVE" | "FAILED" | "DELETED";
+ /**
+ * Format: date-time
+ * @description The timestamp when the snapshot was created.
+ * @example 2023-11-14T16:29:21Z
+ */
+ created_at: string;
+ /**
+ * Format: uuid
+ * @description The unique identifier of the share from which this snapshot was created.
+ * @example 1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
+ */
+ share_id: string;
+ };
+ nfs_snapshot_list_response: {
+ snapshots?: components["schemas"]["nfs_snapshot_response"][];
+ };
+ nfs_snapshot_get_response: {
+ snapshot?: components["schemas"]["nfs_snapshot_response"];
+ };
+ /** @description Response containing a list of access points. */
+ access_point_list_response: {
+ /** @description Array of access point objects. */
+ access_points: components["schemas"]["access_point_response"][];
+ };
+ /** @description A standard NFS API error response object. */
+ nfs_api_error: {
+ /**
+ * @description A service-defined error code.
+ * @example MISSING_NAME
+ */
+ code: string;
+ /**
+ * @description A human-readable description of the error.
+ * @example name is required
+ */
+ message: string;
+ };
+ /** @description Payload for creating a new access point on a share. */
+ access_point_request: {
+ /**
+ * @description The name for the access point. Must be unique per share. Must be 2–63
+ * characters and match `^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9]$`.
+ * The name `default` is reserved (case-insensitive) for the implicit default
+ * access point created with each share.
+ * @example other-vpc
+ */
+ name: string;
+ /**
+ * @description The export sub-path. Must start with `/`, must not be exactly `/` (reserved
+ * for the default access point), must be at most 1024 characters, may contain
+ * only alphanumerics, `-`, `_`, `.`, and `/`, and must not contain `..` path
+ * segments.
+ * @example /other-vpc
+ */
+ path: string;
+ access_policy: components["schemas"]["access_policy"];
+ /**
+ * @description Required. The VPC this access point will be pinned to. A storage gateway is
+ * provisioned (or reused) in this VPC, and the access point becomes mountable from
+ * this VPC regardless of whether the parent share is currently attached to it.
+ * @example 3f34cdb2-1e4f-4100-b5c7-f55f2762085f
+ */
+ vpc_id: string;
+ };
+ /** @description Response returned after starting an access point mutation. */
+ access_point_action_response: {
+ access_point: components["schemas"]["access_point_response"];
+ action: components["schemas"]["nfs_action-2"];
+ };
+ /** @description Response containing a single access point. */
+ access_point_get_response: {
+ access_point: components["schemas"]["access_point_response"];
+ };
+ /** @description An invitation to join a newly created team. */
+ team_invitation: {
+ /**
+ * Format: email
+ * @description The email address of the user to invite.
+ * @example member@example.com
+ */
+ email: string;
+ /**
+ * @description The role to assign to the invited user. The `owner` role cannot be assigned via invitation.
+ * @example member
+ * @enum {string}
+ */
+ role: "member" | "biller" | "billing viewer" | "resource viewer" | "modifier";
+ };
+ create_team_request: {
+ /**
+ * @description The human-readable name for the team to create.
+ * @example production
+ */
+ name: string;
+ /**
+ * @description Optional invitations to send when creating the team. Each invitation includes an email address and a role. The `owner` role cannot be assigned via invitation.
+ * @example [
+ * {
+ * "email": "member@example.com",
+ * "role": "member"
+ * },
+ * {
+ * "email": "biller@example.com",
+ * "role": "biller"
+ * }
+ * ]
+ */
+ invitations?: components["schemas"]["team_invitation"][];
+ };
+ /** @description The team resource returned when a team is created in an organization. */
+ create_team: {
+ /**
+ * Format: uuid
+ * @description A unique universal identifier for the newly created team.
+ * @example 4e1bfbc3-dc3e-41f2-a18f-1b4d7ba71679
+ */
+ readonly uuid: string;
+ /**
+ * @description The human-readable name for the newly created team.
+ * @example production
+ */
+ name: string;
+ };
+ /** @description The result of attempting to send a team invitation. */
+ team_invitation_status: {
+ /**
+ * @description The invitation delivery status for the email address.
+ * @example ok
+ * @enum {string}
+ */
+ status?: "ok" | "daily_invite_limit_reached";
+ };
+ /** @description A team that belongs to an organization. */
+ organization_team: {
+ /**
+ * Format: uint64
+ * @description A unique identifier for the team.
+ * @example 4126873
+ */
+ readonly id?: number;
+ /**
+ * Format: uuid
+ * @description A unique universal identifier for the team.
+ * @example 4e1bfbc3-dc3e-41f2-a18f-1b4d7ba71679
+ */
+ readonly uuid?: string;
+ /**
+ * @description The human-readable name for the team.
+ * @example production
+ */
+ name?: string;
+ /**
+ * Format: email
+ * @description The email address associated with the team.
+ * @example sammy@example.com
+ */
+ email?: string;
+ /**
+ * Format: uint64
+ * @description The number of members on the team.
+ * @example 3
+ */
+ readonly member_count?: number;
+ /**
+ * @description The team's membership status within the organization.
+ * @example joined
+ * @enum {string}
+ */
+ status?: "joined" | "pending";
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the team joined the organization.
+ * @example 2024-06-12T15:04:05Z
+ */
+ readonly joined_organization_at?: string;
+ /**
+ * @description The company name associated with the team, if set.
+ * @example DigitalOcean
+ */
+ company?: string;
+ };
+ partner_attachment: {
+ /**
+ * Format: string
+ * @description A unique ID that can be used to identify and reference the partner attachment.
+ * @example 5a4981aa-9653-4bd1-bef5-d6bff52042e4
+ */
+ readonly id?: string;
+ /**
+ * @description The name of the partner attachment. Must be unique and may only contain alphanumeric characters, dashes, and periods.
+ * @example env.prod-partner-network-connect
+ */
+ name?: string;
+ /**
+ * @description The current operational state of the attachment.
+ * @example active
+ */
+ readonly state?: string;
+ /**
+ * @description The bandwidth (in Mbps) of the connection.
+ * @example 1000
+ */
+ connection_bandwidth_in_mbps?: number;
+ /**
+ * @description The region where the partner attachment is located.
+ * @example nyc
+ */
+ region?: string;
+ /**
+ * @description The Network as a Service (NaaS) provider for the partner attachment.
+ * @example megaport
+ */
+ naas_provider?: string;
+ /**
+ * @description An array of VPC network IDs.
+ * @example [
+ * "c140286f-e6ce-4131-8b7b-df4590ce8d6a",
+ * "994a2735-dc84-11e8-80bc-3cfdfea9fba1"
+ * ]
+ */
+ vpc_ids?: string[];
+ /** @description The BGP configuration for the partner attachment. */
+ bgp?: {
+ /**
+ * @description ASN of the local router.
+ * @example 64532
+ */
+ local_asn?: number;
+ /**
+ * @description ASN of the peer router
+ * @example 64532
+ */
+ peer_asn?: number;
+ /**
+ * @description IP of the DigitalOcean router
+ * @example 169.254.0.1/29
+ */
+ local_router_ip?: string;
+ /**
+ * @description IP of the peer router
+ * @example 169.254.0.1/29
+ */
+ peer_router_ip?: string;
+ };
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format.
+ * @example 2020-03-13T19:20:47.442049222Z
+ */
+ readonly created_at?: string;
+ /**
+ * @description Associated partner attachment UUID
+ * @example 34259a41-0ca6-4a6b-97dd-a22bcab900dd
+ */
+ readonly parent_uuid?: string;
+ /**
+ * @description An array of associated partner attachment UUIDs.
+ * @example [
+ * "ee1ad867-7026-44a5-bfcc-2587b52e1291"
+ * ]
+ */
+ readonly children?: string[];
+ };
+ partner_attachment_writable: {
+ /**
+ * @description The name of the partner attachment. Must be unique and may only contain alphanumeric characters, dashes, and periods.
+ * @example env.prod-partner-network-connect
+ */
+ name: string;
+ /**
+ * @description Bandwidth (in Mbps) of the connection.
+ * @example 1000
+ * @enum {integer}
+ */
+ connection_bandwidth_in_mbps: 1000 | 2000 | 5000 | 10000;
+ /**
+ * @description The region to create the partner attachment.
+ * @example nyc
+ * @enum {string}
+ */
+ region: "nyc" | "sfo" | "fra" | "ams" | "sgp";
+ /** @example megaport */
+ naas_provider: string;
+ /**
+ * @description An array of VPCs IDs.
+ * @example [
+ * "c140286f-e6ce-4131-8b7b-df4590ce8d6a",
+ * "994a2735-dc84-11e8-80bc-3cfdfea9fba1"
+ * ]
+ */
+ vpc_ids: string[];
+ /**
+ * @description Optional associated partner attachment UUID
+ * @example d594cf8d-8c79-4bc5-aec1-6f9b211506b3
+ */
+ parent_uuid?: string;
+ /** @description Optional BGP configurations */
+ bgp?: {
+ /**
+ * @description IP of the DO router
+ * @example 169.254.0.1/29
+ */
+ local_router_ip: string;
+ /**
+ * @description IP of the Naas Provider router
+ * @example 169.254.0.6/29
+ */
+ peer_router_ip: string;
+ /**
+ * @description ASN of the peer router
+ * @example 64532
+ */
+ peer_router_asn: number;
+ /**
+ * @description BGP Auth Key
+ * @example 0xsNnb1pwQlowdoMySEfWwk4I
+ */
+ auth_key: string;
+ };
+ /**
+ * @description Optional redundancy zone for the partner attachment.
+ * @example MEGAPORT_BLUE
+ * @enum {string}
+ */
+ redundancy_zone?: "MEGAPORT_BLUE" | "MEGAPORT_RED";
+ };
+ partner_attachment_updatable: {
+ /**
+ * @description The name of the partner attachment. Must be unique and may only contain alphanumeric characters, dashes, and periods.
+ * @example env.prod-partner-network-connect
+ */
+ name: string;
+ } | {
+ /**
+ * @description An array of VPCs IDs.
+ * @example [
+ * "c140286f-e6ce-4131-8b7b-df4590ce8d6a",
+ * "994a2735-dc84-11e8-80bc-3cfdfea9fba1"
+ * ]
+ */
+ vpc_ids: string[];
+ } | {
+ /** @description BGP configurations */
+ bgp?: {
+ /**
+ * @description IP of the DO router
+ * @example 169.254.0.1/29
+ */
+ local_router_ip: string;
+ /**
+ * @description IP of the NaaS provider router
+ * @example 169.254.0.6/29
+ */
+ peer_router_ip: string;
+ /**
+ * @description ASN of the peer router
+ * @example 64532
+ */
+ peer_router_asn: number;
+ /**
+ * @description BGP Auth Key
+ * @example 0xsNnb1pwQlowdoMySEfWwk4I
+ */
+ auth_key: string;
+ };
+ };
+ partner_attachment_service_key: {
+ /** @example 5a4981aa-9653-4bd1-bef5-d6bff52042e4 */
+ readonly value?: string;
+ /**
+ * Format: date-time
+ * @description A time value given in the ISO 8601 combined date and time format.
+ * @example 2020-03-13T19:20:47.442049222Z
+ */
+ readonly created_at?: string;
+ /** @example CREATED */
+ readonly state?: string;
+ };
+ partner_attachment_remote_route: {
+ /**
+ * @description A CIDR block representing a remote route.
+ * @example 10.10.10.0/24
+ */
+ readonly cidr?: string;
+ };
+ project_base: {
+ /**
+ * Format: uuid
+ * @description The unique universal identifier of this project.
+ * @example 4e1bfbc3-dc3e-41f2-a18f-1b4d7ba71679
+ */
+ readonly id?: string;
+ /**
+ * @description The unique universal identifier of the project owner.
+ * @example 99525febec065ca37b2ffe4f852fd2b2581895e7
+ */
+ readonly owner_uuid?: string;
+ /**
+ * @description The integer id of the project owner.
+ * @example 258992
+ */
+ readonly owner_id?: number;
+ /**
+ * @description The human-readable name for the project. The maximum length is 175 characters and the name must be unique.
+ * @example my-web-api
+ */
+ name?: string;
+ /**
+ * @description The description of the project. The maximum length is 255 characters.
+ * @example My website API
+ */
+ description?: string;
+ /**
+ * @description The purpose of the project. The maximum length is 255 characters. It can
+ * have one of the following values:
+ *
+ * - Just trying out DigitalOcean
+ * - Class project / Educational purposes
+ * - Website or blog
+ * - Web Application
+ * - Service or API
+ * - Mobile Application
+ * - Machine learning / AI / Data processing
+ * - IoT
+ * - Operational / Developer tooling
+ *
+ * If another value for purpose is specified, for example, "your custom purpose",
+ * your purpose will be stored as `Other: your custom purpose`.
+ * @example Service or API
+ */
+ purpose?: string;
+ /**
+ * @description The environment of the project's resources.
+ * @example Production
+ * @enum {string}
+ */
+ environment?: "Development" | "Staging" | "Production";
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the project was created.
+ * @example 2018-09-27T20:10:35Z
+ */
+ readonly created_at?: string;
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the project was updated.
+ * @example 2018-09-27T20:10:35Z
+ */
+ readonly updated_at?: string;
+ };
+ project: components["schemas"]["project_base"] & {
+ /**
+ * @description If true, all resources will be added to this project if no project is specified.
+ * @example false
+ */
+ is_default?: boolean;
+ };
+ resource: {
+ urn?: components["schemas"]["urn"];
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the project was created.
+ * @example 2018-09-28T19:26:37Z
+ */
+ assigned_at?: string;
+ /** @description The links object contains the `self` object, which contains the resource relationship. */
+ links?: {
+ /**
+ * Format: uri
+ * @description A URI that can be used to retrieve the resource.
+ * @example https://api.digitalocean.com/v2/droplets/13457723
+ */
+ self?: string;
+ };
+ /**
+ * @description The status of assigning and fetching the resources.
+ * @example ok
+ * @enum {string}
+ */
+ status?: "ok" | "not_found" | "assigned" | "already_assigned" | "service_down";
+ };
+ project_assignment: {
+ /**
+ * @description A list of uniform resource names (URNs) to be added to a project. Only resources that you are authorized to see will be returned.
+ * @example [
+ * "do:droplet:13457723"
+ * ]
+ */
+ resources?: components["schemas"]["urn"][];
+ };
+ registry_base: {
+ /**
+ * @description A globally unique name for the container registry. Must be lowercase and be composed only of numbers, letters and `-`, up to a limit of 63 characters.
+ * @example example
+ */
+ name?: string;
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the registry was created.
+ * @example 2020-03-21T16:02:37Z
+ */
+ readonly created_at?: string;
+ /**
+ * @description Slug of the region where registry data is stored
+ * @example fra1
+ */
+ region?: string;
+ /**
+ * @description The amount of storage used in the registry in bytes.
+ * @example 29393920
+ */
+ readonly storage_usage_bytes?: number;
+ /**
+ * Format: date-time
+ * @description The time at which the storage usage was updated. Storage usage is calculated asynchronously, and may not immediately reflect pushes to the registry.
+ * @example 2020-11-04T21:39:49.530562231Z
+ */
+ readonly storage_usage_bytes_updated_at?: string;
+ };
+ subscription_tier_base: {
+ /**
+ * @description The name of the subscription tier.
+ * @example Basic
+ */
+ name?: string;
+ /**
+ * @description The slug identifier of the subscription tier.
+ * @example basic
+ */
+ slug?: string;
+ /**
+ * @description The number of repositories included in the subscription tier. `0` indicates that the subscription tier includes unlimited repositories.
+ * @example 5
+ */
+ included_repositories?: number;
+ /**
+ * @description The amount of storage included in the subscription tier in bytes.
+ * @example 5368709120
+ */
+ included_storage_bytes?: number;
+ /**
+ * @description A boolean indicating whether the subscription tier supports additional storage above what is included in the base plan at an additional cost per GiB used.
+ * @example true
+ */
+ allow_storage_overage?: boolean;
+ /**
+ * @description The amount of outbound data transfer included in the subscription tier in bytes.
+ * @example 5368709120
+ */
+ included_bandwidth_bytes?: number;
+ /**
+ * @description The monthly cost of the subscription tier in cents.
+ * @example 500
+ */
+ monthly_price_in_cents?: number;
+ /**
+ * @description The price paid in cents per GiB for additional storage beyond what is included in the subscription plan.
+ * @example 2
+ */
+ storage_overage_price_in_cents?: number;
+ };
+ subscription: {
+ tier?: components["schemas"]["subscription_tier_base"];
+ /**
+ * Format: date-time
+ * @description The time at which the subscription was created.
+ * @example 2020-01-23T21:19:12Z
+ */
+ readonly created_at?: string;
+ /**
+ * Format: date-time
+ * @description The time at which the subscription was last updated.
+ * @example 2020-11-05T15:53:24Z
+ */
+ readonly updated_at?: string;
+ };
+ registry: components["schemas"]["registry_base"] & {
+ subscription?: unknown & components["schemas"]["subscription"];
+ };
+ /** @description An object specifying the Insights telemetry that the customer opts in to for the container registry. This is only accepted when creating a registry and is not returned in responses. If the object is omitted, or if `logs` is not set, the registry is created with logs not enabled. */
+ registry_insights_opt_in: {
+ /**
+ * @description A boolean value indicating whether the registry's logs are sent to Insights. Set this to `true` to send the registry's logs to Insights. `false`, and omitting `insights` or `logs`, both create the registry with logs not enabled.
+ * @example true
+ */
+ logs?: boolean;
+ } | null;
+ multiregistry_create: {
+ /**
+ * @description A globally unique name for the container registry. Must be lowercase and be composed only of numbers, letters and `-`, up to a limit of 63 characters.
+ * @example example
+ */
+ name: string;
+ /**
+ * @description The slug of the subscription tier to sign up for. Valid values can be retrieved using the options endpoint.
+ * @example basic
+ * @enum {string}
+ */
+ subscription_tier_slug?: "starter" | "basic" | "professional";
+ /**
+ * @description Slug of the region where registry data is stored. When not provided, a region will be selected.
+ * @example fra1
+ * @enum {string}
+ */
+ region?: "nyc3" | "sfo3" | "sfo2" | "ams3" | "sgp1" | "fra1" | "blr1" | "syd1";
+ insights?: components["schemas"]["registry_insights_opt_in"];
+ };
+ multiregistry: components["schemas"]["registry_base"];
+ docker_credentials: {
+ auths?: {
+ "registry.digitalocean.com"?: {
+ /**
+ * @description A base64 encoded string containing credentials for the container registry.
+ * @example YjdkMDNhNjk0N2IyMTdlZmI2ZjNlYzNiZDM1MDQ1ODI6YjdkMDNhNjk0N2IyMTdlZmI2ZjNlYzNiZDM1MDQ1ODIK
+ */
+ auth?: string;
+ };
+ };
+ };
+ subscription_tier_extended: {
+ /**
+ * @description A boolean indicating whether your account it eligible to use a certain subscription tier.
+ * @example true
+ */
+ eligible?: boolean;
+ /**
+ * @description If your account is not eligible to use a certain subscription tier, this will include a list of reasons that prevent you from using the tier.
+ * @example [
+ * "OverRepositoryLimit"
+ * ]
+ */
+ eligibility_reasons?: ("OverRepositoryLimit" | "OverStorageLimit")[];
+ };
+ garbage_collection: {
+ /**
+ * @description A string specifying the UUID of the garbage collection.
+ * @example eff0feee-49c7-4e8f-ba5c-a320c109c8a8
+ */
+ uuid?: string;
+ /**
+ * @description The name of the container registry.
+ * @example example
+ */
+ registry_name?: string;
+ /**
+ * @description The current status of this garbage collection.
+ * @example requested
+ * @enum {string}
+ */
+ status?: "requested" | "waiting for write JWTs to expire" | "scanning manifests" | "deleting unreferenced blobs" | "cancelling" | "failed" | "succeeded" | "cancelled";
+ /**
+ * Format: date-time
+ * @description The time the garbage collection was created.
+ * @example 2020-10-30T21:03:24Z
+ */
+ created_at?: string;
+ /**
+ * Format: date-time
+ * @description The time the garbage collection was last updated.
+ * @example 2020-10-30T21:03:44Z
+ */
+ updated_at?: string;
+ /**
+ * @description The number of blobs deleted as a result of this garbage collection.
+ * @example 42
+ */
+ blobs_deleted?: number;
+ /**
+ * @description The number of bytes freed as a result of this garbage collection.
+ * @example 667
+ */
+ freed_bytes?: number;
+ };
+ update_registry: {
+ /**
+ * @description A boolean value indicating that the garbage collection should be cancelled.
+ * @example true
+ */
+ cancel?: boolean;
+ };
+ repository_blob: {
+ /**
+ * @description The digest of the blob
+ * @example sha256:cb8a924afdf0229ef7515d9e5b3024e23b3eb03ddbba287f4a19c6ac90b8d221
+ */
+ digest?: string;
+ /**
+ * @description The compressed size of the blob in bytes.
+ * @example 2803255
+ */
+ compressed_size_bytes?: number;
+ };
+ repository_manifest: {
+ /**
+ * @description The name of the container registry.
+ * @example example
+ */
+ registry_name?: string;
+ /**
+ * @description The name of the repository.
+ * @example repo-1
+ */
+ repository?: string;
+ /**
+ * @description The manifest digest
+ * @example sha256:cb8a924afdf0229ef7515d9e5b3024e23b3eb03ddbba287f4a19c6ac90b8d221
+ */
+ digest?: string;
+ /**
+ * @description The compressed size of the manifest in bytes.
+ * @example 2803255
+ */
+ compressed_size_bytes?: number;
+ /**
+ * @description The uncompressed size of the manifest in bytes (this size is calculated asynchronously so it may not be immediately available).
+ * @example 5861888
+ */
+ size_bytes?: number;
+ /**
+ * Format: date-time
+ * @description The time the manifest was last updated.
+ * @example 2020-04-09T23:54:25Z
+ */
+ updated_at?: string;
+ /**
+ * @description All tags associated with this manifest
+ * @example [
+ * "latest",
+ * "v1",
+ * "v2"
+ * ]
+ */
+ tags?: string[];
+ /** @description All blobs associated with this manifest */
+ blobs?: components["schemas"]["repository_blob"][];
+ };
+ repository_v2: {
+ /**
+ * @description The name of the container registry.
+ * @example example
+ */
+ registry_name?: string;
+ /**
+ * @description The name of the repository.
+ * @example repo-1
+ */
+ name?: string;
+ latest_manifest?: components["schemas"]["repository_manifest"];
+ /**
+ * @description The number of tags in the repository.
+ * @example 1
+ */
+ tag_count?: number;
+ /**
+ * @description The number of manifests in the repository.
+ * @example 1
+ */
+ manifest_count?: number;
+ };
+ repository_tag: {
+ /**
+ * @description The name of the container registry.
+ * @example example
+ */
+ registry_name?: string;
+ /**
+ * @description The name of the repository.
+ * @example repo-1
+ */
+ repository?: string;
+ /**
+ * @description The name of the tag.
+ * @example latest
+ */
+ tag?: string;
+ /**
+ * @description The digest of the manifest associated with the tag.
+ * @example sha256:cb8a924afdf0229ef7515d9e5b3024e23b3eb03ddbba287f4a19c6ac90b8d221
+ */
+ manifest_digest?: string;
+ /**
+ * @description The compressed size of the tag in bytes.
+ * @example 2803255
+ */
+ compressed_size_bytes?: number;
+ /**
+ * @description The uncompressed size of the tag in bytes (this size is calculated asynchronously so it may not be immediately available).
+ * @example 5861888
+ */
+ size_bytes?: number;
+ /**
+ * Format: date-time
+ * @description The time the tag was last updated.
+ * @example 2020-04-09T23:54:25Z
+ */
+ updated_at?: string;
+ };
+ validate_registry: {
+ /**
+ * @description A globally unique name for the container registry. Must be lowercase and be composed only of numbers, letters and `-`, up to a limit of 63 characters.
+ * @example example
+ */
+ name: string;
+ };
+ registry_create: {
+ /**
+ * @description A globally unique name for the container registry. Must be lowercase and be composed only of numbers, letters and `-`, up to a limit of 63 characters.
+ * @example example
+ */
+ name: string;
+ /**
+ * @description The slug of the subscription tier to sign up for. Valid values can be retrieved using the options endpoint.
+ * @example basic
+ * @enum {string}
+ */
+ subscription_tier_slug: "starter" | "basic" | "professional";
+ /**
+ * @description Slug of the region where registry data is stored. When not provided, a region will be selected.
+ * @example fra1
+ * @enum {string}
+ */
+ region?: "nyc3" | "sfo3" | "ams3" | "sgp1" | "fra1";
+ insights?: components["schemas"]["registry_insights_opt_in"];
+ };
+ repository: {
+ /**
+ * @description The name of the container registry.
+ * @example example
+ */
+ registry_name?: string;
+ /**
+ * @description The name of the repository.
+ * @example repo-1
+ */
+ name?: string;
+ latest_tag?: components["schemas"]["repository_tag"];
+ /**
+ * @description The number of tags in the repository.
+ * @example 1
+ */
+ tag_count?: number;
+ };
+ registry_run_gc: {
+ /**
+ * @description Type of the garbage collection to run against this registry
+ * @example unreferenced blobs only
+ * @enum {string}
+ */
+ type?: "untagged manifests only" | "unreferenced blobs only" | "untagged manifests and unreferenced blobs";
+ };
+ neighbor_ids: {
+ /**
+ * @description An array of arrays. Each array will contain a set of Droplet IDs for Droplets that share a physical server.
+ * @example [
+ * [
+ * 168671828,
+ * 168663509,
+ * 168671815
+ * ],
+ * [
+ * 168671883,
+ * 168671750
+ * ]
+ * ]
+ */
+ neighbor_ids?: number[][];
+ };
+ reserved_ip: {
+ /**
+ * Format: ipv4
+ * @description The public IP address of the reserved IP. It also serves as its identifier.
+ * @example 45.55.96.47
+ */
+ ip?: string;
+ region?: components["schemas"]["region"] & Record;
+ /**
+ * @description The Droplet that the reserved IP has been assigned to. When you query a reserved IP, if it is assigned to a Droplet, the entire Droplet object will be returned. If it is not assigned, the value will be null. Requires `droplet:read` scope.
+ * @example null
+ */
+ droplet?: (Record | null) | components["schemas"]["droplet"];
+ /**
+ * @description A boolean value indicating whether or not the reserved IP has pending actions preventing new ones from being submitted.
+ * @example true
+ */
+ locked?: boolean;
+ /**
+ * Format: uuid
+ * @description The UUID of the project to which the reserved IP currently belongs. Requires `project:read` scope.
+ * @example 746c6152-2fa2-11ed-92d3-27aaa54e4988
+ */
+ project_id?: string;
+ };
+ reserved_ip_create: {
+ /**
+ * @description The ID of the Droplet that the reserved IP will be assigned to.
+ * @example 2457247
+ */
+ droplet_id: number;
+ } | {
+ /**
+ * @description The slug identifier for the region the reserved IP will be reserved to.
+ * @example nyc3
+ */
+ region: string;
+ /**
+ * Format: uuid
+ * @description The UUID of the project to which the reserved IP will be assigned.
+ * @example 746c6152-2fa2-11ed-92d3-27aaa54e4988
+ */
+ project_id?: string;
+ };
+ reserved_ip_action_type: {
+ /**
+ * @description The type of action to initiate for the reserved IP.
+ * @enum {string}
+ */
+ type: "assign" | "unassign";
+ };
+ reserved_ip_action_assign: Omit & {
+ /**
+ * @description The ID of the Droplet that the reserved IP will be assigned to.
+ * @example 758604968
+ */
+ droplet_id: number;
+ } & {
+ /**
+ * @description discriminator enum property added by openapi-typescript
+ * @enum {string}
+ */
+ type: "assign";
+ };
+ reserved_ip_action_unassign: Omit & Record & {
+ /**
+ * @description discriminator enum property added by openapi-typescript
+ * @enum {string}
+ */
+ type: "unassign";
+ };
+ reserved_ipv6_list: {
+ reserved_ipv6s?: {
+ /**
+ * Format: ipv6
+ * @description The public IP address of the reserved IPv6. It also serves as its identifier.
+ * @example 2409:40d0:f7:1017:74b4:3a96:105e:4c6e
+ */
+ ip?: string;
+ /**
+ * @description The region that the reserved IPv6 is reserved to. When you query a reserved IPv6,the region_slug will be returned.
+ * @example nyc3
+ */
+ region_slug?: string;
+ /**
+ * Format: date-time
+ * @example 2020-01-01T00:00:00Z
+ */
+ reserved_at?: string;
+ /**
+ * @description Requires `droplet:read` scope.
+ * @example null
+ */
+ droplet?: (Record | null) | components["schemas"]["droplet"];
+ }[];
+ };
+ /** Reserve to Region */
+ reserved_ipv6_create: {
+ /**
+ * @description The slug identifier for the region the reserved IPv6 will be reserved to.
+ * @example nyc3
+ */
+ region_slug: string;
+ };
+ reserved_ipv6: {
+ /**
+ * Format: ipv6
+ * @description The public IP address of the reserved IPv6. It also serves as its identifier.
+ * @example 2409:40d0:f7:1017:74b4:3a96:105e:4c6e
+ */
+ ip?: string;
+ /**
+ * Format: date-time
+ * @description The date and time when the reserved IPv6 was reserved.
+ * @example 2024-11-20T11:08:30Z
+ */
+ reserved_at?: string;
+ /**
+ * @description The region that the reserved IPv6 is reserved to. When you query a reserved IPv6,the region_slug will be returned.
+ * @example nyc3
+ */
+ region_slug?: string;
+ /** @example null */
+ droplet?: (Record | null) | components["schemas"]["droplet"];
+ };
+ reserved_ipv6_action_type: {
+ /**
+ * @description The type of action to initiate for the reserved IPv6.
+ * @enum {string}
+ */
+ type: "assign" | "unassign";
+ };
+ reserved_ipv6_action_assign: Omit & {
+ /**
+ * @description The ID of the Droplet that the reserved IPv6 will be assigned to.
+ * @example 758604968
+ */
+ droplet_id: number;
+ } & {
+ /**
+ * @description discriminator enum property added by openapi-typescript
+ * @enum {string}
+ */
+ type: "assign";
+ };
+ reserved_ipv6_action_unassign: Omit & Record & {
+ /**
+ * @description discriminator enum property added by openapi-typescript
+ * @enum {string}
+ */
+ type: "unassign";
+ };
+ byoip_prefix: {
+ /**
+ * @description Unique identifier for the BYOIP prefix
+ * @example f47ac10b-58cc-4372-a567-0e02b2c3d479
+ */
+ uuid?: string;
+ /**
+ * @description Name of the BYOIP prefix
+ * @example
+ */
+ name?: string;
+ /**
+ * @description The IP prefix in CIDR notation
+ * @example 203.0.113.0/24
+ */
+ prefix?: string;
+ /**
+ * @description Status of the BYOIP prefix
+ * @example active
+ */
+ status?: string;
+ /**
+ * @description Region where the BYOIP prefix is located
+ * @example nyc3
+ */
+ region?: string;
+ /** @description List of validation statuses for the BYOIP prefix */
+ validations?: {
+ /**
+ * @description Name of the validation
+ * @example SIGNATURE HASH
+ */
+ name?: string;
+ /**
+ * @description Status of the validation
+ * @example FAILED
+ */
+ status?: string;
+ /**
+ * @description Additional notes or details about the validation
+ * @example
+ */
+ note?: string;
+ }[];
+ /**
+ * @description Reason for failure, if applicable
+ * @example
+ */
+ failure_reason?: string;
+ /**
+ * @description Whether the BYOIP prefix is locked
+ * @example false
+ */
+ locked?: boolean;
+ /**
+ * @description Whether the BYOIP prefix is being advertised
+ * @example true
+ */
+ advertised?: boolean;
+ /**
+ * @description The ID of the project associated with the BYOIP prefix
+ * @example 12345678-1234-1234-1234-123456789012
+ */
+ project_id?: string;
+ };
+ byoip_prefix_create: {
+ /**
+ * @description The IP prefix in CIDR notation to bring
+ * @example 203.11.13.0/24
+ */
+ prefix: string;
+ /**
+ * @description The region where the prefix will be created
+ * @example nyc3
+ */
+ region: string;
+ /**
+ * @description The signature hash for the prefix creation request
+ * @example
+ */
+ signature: string;
+ };
+ byoip_prefix_update: {
+ /**
+ * @description Whether the BYOIP prefix should be advertised
+ * @example true
+ */
+ advertise?: boolean;
+ };
+ byoip_prefix_resource: {
+ /**
+ * Format: int64
+ * @description Unique identifier for the allocation
+ * @example 10001
+ */
+ id?: number;
+ /**
+ * @description The BYOIP prefix UUID
+ * @example f47ac10b-58cc-4372-a567-0e02b2c3d479
+ */
+ byoip?: string;
+ /**
+ * @description Region where the allocation is made
+ * @example nyc3
+ */
+ region?: string;
+ /**
+ * @description The resource associated with the allocation
+ * @example do:droplet:fa3c10b-58cc-4372-a567-0e02b2c3d479
+ */
+ resource?: string;
+ /**
+ * Format: date-time
+ * @description Time when the allocation was assigned
+ * @example 2025-06-25T12:00:00Z
+ */
+ assigned_at?: string;
+ };
+ scan: {
+ /**
+ * id
+ * @description The unique identifier for the scan.
+ * @example 760e09ef-dc84-11e8-981e-3cfdfeaae000
+ */
+ id?: string;
+ /**
+ * status
+ * @description The status of the scan.
+ * @example COMPLETED
+ * @enum {string}
+ */
+ status?: "IN_PROGRESS" | "COMPLETED" | "FAILED" | "CSPM_NOT_ENABLED" | "SCAN_NOT_RUN";
+ /**
+ * created_at
+ * Format: date-time
+ * @description When scan was created.
+ * @example 2025-12-04T00:00:00Z
+ */
+ created_at?: string;
+ /** findings */
+ findings?: {
+ /**
+ * rule_uuid
+ * @description The unique identifier for the rule that triggered the finding.
+ * @example 760e09ef-dc84-11e8-981e-3cfdfeaae000
+ */
+ rule_uuid?: string;
+ /**
+ * name
+ * @description The name of the rule that triggered the finding.
+ * @example All Firewall Ports Exposed to a Source
+ */
+ name?: string;
+ /**
+ * details
+ * @description A description of the risk associated with the finding.
+ * @example The Cloud Firewall protecting this Droplet includes a rule that allows traffic on all
+ * ports for one or more protocols. Even if sources are restricted, this overly
+ * permissive configuration can expose sensitive internal or administrative services.
+ */
+ details?: string;
+ /**
+ * found_at
+ * Format: date-time
+ * @description When the finding was discovered.
+ * @example 2025-12-04T00:00:00Z
+ */
+ found_at?: string;
+ /**
+ * severity
+ * @description The severity of the finding.
+ * @example CRITICAL
+ * @enum {string}
+ */
+ severity?: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW";
+ /**
+ * business_impact
+ * @description A description of the business impact of the finding.
+ * @example Without at least one completed backup, any critical event such as hardware failure,
+ * ransomware, or accidental deletion could result in permanent data loss. This can lead
+ * to downtime, expensive recovery efforts, and loss of customer trust. Until a backup
+ * successfully completes, your environment remains unprotected.
+ */
+ business_impact?: string;
+ /**
+ * technical_details
+ * @description A description of the technical details related to the finding.
+ * @example DigitalOcean's backup service automatically runs on a weekly schedule. This condition
+ * can occur for two main reasons:\n- The Droplet is newly created and its first scheduled
+ * backup window hasn't run yet, or\n- A previous backup attempt failed. In both cases,
+ * no backup image currently exists in your account, leaving the Droplet without a
+ * restorable recovery point managed by the platform.
+ */
+ technical_details?: string;
+ /**
+ * mitigation_steps
+ * @description The mitigation steps to resolve the finding.
+ */
+ mitigation_steps?: {
+ /**
+ * step
+ * @example 1
+ */
+ step?: number;
+ /**
+ * title
+ * @example Enable backups
+ */
+ title?: string;
+ /**
+ * description
+ * @example Turn on automated backups for this Droplet.
+ */
+ description?: string;
+ }[];
+ /**
+ * affected_resources_count
+ * @description The number of affected resources for the finding.
+ * @example 12
+ */
+ affected_resources_count?: number;
+ }[];
+ };
+ affected_resource: {
+ /**
+ * urn
+ * @description The URN for the affected resource.
+ * @example do:droplet:760e09ef-dc84-11e8-981e-3cfdfeaae000
+ */
+ urn?: string;
+ /**
+ * name
+ * @description The name of the affected resource.
+ * @example Test Droplet
+ */
+ name?: string;
+ /**
+ * type
+ * @description The type of the affected resource.
+ * @example Droplet
+ */
+ type?: string;
+ };
+ suppressed_resource: {
+ /**
+ * id
+ * @description Unique identifier for the suppressed resource.
+ * @example 760e09ef-dc84-11e8-981e-3cfdfeaae000
+ */
+ id?: string;
+ /**
+ * rule_uuid
+ * @description Unique identifier for the suppressed rule.
+ * @example 460e09ef-dc84-11e8-981e-3cfdfeaae000
+ */
+ rule_uuid?: string;
+ /**
+ * rule_name
+ * @description Human-readable rule name for the suppressed rule.
+ * @example Droplet Backups Not Enabled
+ */
+ rule_name?: string;
+ /**
+ * resource_id
+ * @description Unique identifier for the resource suppressed.
+ * @example 123
+ */
+ resource_id?: string;
+ /**
+ * resource_type
+ * @description Resource type for the resource suppressed.
+ * @example Droplet
+ */
+ resource_type?: string;
+ };
+ suppressed_resource_root: {
+ resources?: components["schemas"]["suppressed_resource"][];
+ meta?: {
+ /** @example 1 */
+ page?: number;
+ /** @example 3 */
+ pages?: number;
+ /** @example 25 */
+ total?: number;
+ };
+ links?: {
+ pages?: {
+ /** @example https://api.digitalocean.com/v2/security/settings/suppressions?page=1 */
+ first?: string;
+ /** @example https://api.digitalocean.com/v2/security/settings/suppressions?page=1 */
+ prev?: string;
+ /** @example https://api.digitalocean.com/v2/security/settings/suppressions?page=2 */
+ next?: string;
+ /** @example https://api.digitalocean.com/v2/security/settings/suppressions?page=3 */
+ last?: string;
+ };
+ };
+ };
+ /** @description Resources moving to a tier at a given effective time. */
+ plan_downgrades: {
+ /**
+ * @description URNs of resources that will be downgraded.
+ * @example [
+ * "do:droplet:fe3a2fd7-903d-46e6-ada3-3e4f285fb89d"
+ * ]
+ */
+ resources?: string[];
+ /**
+ * Format: date-time
+ * @description When the coverage downgrade takes effect.
+ * @example 2025-12-01T00:00:00Z
+ */
+ effective_at?: string;
+ };
+ settings: {
+ settings?: {
+ suppressions?: components["schemas"]["suppressed_resource_root"];
+ };
+ tier_coverage?: {
+ [key: string]: {
+ /**
+ * @example [
+ * "do:droplet:fe3a2fd7-903d-46e6-ada3-3e4f285fb89d"
+ * ]
+ */
+ resources?: string[];
+ /**
+ * @example [
+ * "production"
+ * ]
+ */
+ tags?: string[];
+ };
+ };
+ plan_downgrades?: {
+ [key: string]: components["schemas"]["plan_downgrades"];
+ };
+ };
+ secret_list_item: {
+ /**
+ * secret
+ * @description The name of the secret.
+ * @example my-database-password
+ */
+ secret?: string;
+ /**
+ * region
+ * @description The region where the secret is stored.
+ * @example nyc3
+ */
+ region?: string;
+ /**
+ * version
+ * Format: int32
+ * @description The current version of the secret.
+ * @example 1
+ */
+ version?: number;
+ /**
+ * created_at
+ * Format: date-time
+ * @description When the secret was created.
+ * @example 2025-12-04T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * updated_at
+ * Format: date-time
+ * @description When the secret was last updated.
+ * @example 2025-12-04T00:00:00Z
+ */
+ updated_at?: string;
+ /**
+ * delete_requested_at
+ * Format: date-time
+ * @description When deletion was requested for the secret.
+ * @example 2025-12-04T00:00:00Z
+ */
+ delete_requested_at?: string;
+ };
+ create_secret_response: {
+ /**
+ * name
+ * @description The name of the secret.
+ * @example my-database-password
+ */
+ name?: string;
+ /**
+ * region
+ * @description The region where the secret is stored.
+ * @example nyc3
+ */
+ region?: string;
+ /**
+ * version
+ * Format: int32
+ * @description The version of the secret after the operation.
+ * @example 1
+ */
+ version?: number;
+ };
+ secret: {
+ /**
+ * secret
+ * @description The name of the secret.
+ * @example my-database-password
+ */
+ secret?: string;
+ /**
+ * region
+ * @description The region where the secret is stored.
+ * @example nyc3
+ */
+ region?: string;
+ /**
+ * version
+ * Format: int32
+ * @description The current version of the secret.
+ * @example 1
+ */
+ version?: number;
+ /**
+ * values
+ * @description Key-value pairs stored in the secret.
+ * @example {
+ * "password": "s3cr3t"
+ * }
+ */
+ values?: {
+ [key: string]: string;
+ };
+ /**
+ * created_at
+ * Format: date-time
+ * @description When the secret was created.
+ * @example 2025-12-04T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * updated_at
+ * Format: date-time
+ * @description When the secret was last updated.
+ * @example 2025-12-04T00:00:00Z
+ */
+ updated_at?: string;
+ /**
+ * delete_requested_at
+ * Format: date-time
+ * @description When deletion was requested for the secret.
+ * @example 2025-12-04T00:00:00Z
+ */
+ delete_requested_at?: string;
+ };
+ secret_version: {
+ /**
+ * version
+ * Format: int32
+ * @description The version number.
+ * @example 1
+ */
+ version?: number;
+ /**
+ * created_at
+ * Format: date-time
+ * @description When this version was created.
+ * @example 2025-12-04T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * updated_at
+ * Format: date-time
+ * @description When this version was last updated.
+ * @example 2025-12-04T00:00:00Z
+ */
+ updated_at?: string;
+ };
+ snapshots: {
+ /**
+ * @description The unique identifier for the snapshot.
+ * @example 6372321
+ */
+ id: string;
+ } & components["schemas"]["snapshots_base"] & {
+ /**
+ * @description The unique identifier for the resource that the snapshot originated from.
+ * @example 200776916
+ */
+ resource_id: string;
+ /**
+ * @description The type of resource that the snapshot originated from.
+ * @example droplet
+ * @enum {string}
+ */
+ resource_type: "droplet" | "volume";
+ /**
+ * @description An array of Tags the snapshot has been tagged with. Requires `tag:read` scope.
+ * @example [
+ * "web",
+ * "env:prod"
+ * ]
+ */
+ tags: string[] | null;
+ };
+ grant: {
+ /**
+ * @description The name of the bucket.
+ * @example my-bucket
+ */
+ bucket: string;
+ /**
+ * @description The permission to grant to the user. Possible values are `read`, `readwrite`, `fullaccess`, or an empty string.
+ * @example read
+ */
+ permission: string;
+ };
+ key: {
+ /**
+ * @description The access key's name.
+ * @example my-access-key
+ */
+ name?: string;
+ /**
+ * @description The list of permissions for the access key.
+ * @default []
+ */
+ grants?: components["schemas"]["grant"][];
+ /**
+ * @description The Access Key ID used to access a bucket.
+ * @example DOACCESSKEYEXAMPLE
+ */
+ readonly access_key?: string;
+ /**
+ * Format: date-time
+ * @description The date and time the key was created.
+ * @example 2018-07-19T15:04:16Z
+ */
+ readonly created_at?: string;
+ };
+ key_create_response: {
+ /**
+ * @description The secret key used to access the bucket. We return secret keys only once upon creation. Make sure to copy the key and securely store it.
+ * @example DOSECRETKEYEXAMPLE
+ */
+ readonly secret_key?: string;
+ } & components["schemas"]["key"];
+ /** @description Tagged Resource Statistics include metadata regarding the resource type that has been tagged. */
+ tags_metadata: {
+ /**
+ * @description The number of tagged objects for this type of resource.
+ * @example 5
+ */
+ count?: number;
+ /**
+ * @description The URI for the last tagged object for this type of resource.
+ * @example https://api.digitalocean.com/v2/images/7555620
+ */
+ last_tagged_uri?: string;
+ };
+ /**
+ * @description A tag is a label that can be applied to a resource (currently Droplets, Images, Volumes, Volume Snapshots, and Database clusters) in order to better organize or facilitate the lookups and actions on it.
+ * Tags have two attributes: a user defined `name` attribute and an embedded `resources` attribute with information about resources that have been tagged.
+ */
+ tags: {
+ /**
+ * @description The name of the tag. Tags may contain letters, numbers, colons, dashes, and underscores.
+ * There is a limit of 255 characters per tag.
+ *
+ * **Note:** Tag names are case stable, which means the capitalization you use when you first create a tag is canonical.
+ *
+ * When working with tags in the API, you must use the tag's canonical capitalization. For example, if you create a tag named "PROD", the URL to add that tag to a resource would be `https://api.digitalocean.com/v2/tags/PROD/resources` (not `/v2/tags/prod/resources`).
+ *
+ * Tagged resources in the control panel will always display the canonical capitalization. For example, if you create a tag named "PROD", you can tag resources in the control panel by entering "prod". The tag will still display with its canonical capitalization, "PROD".
+ * @example extra-awesome
+ */
+ name?: string;
+ /**
+ * @description An embedded object containing key value pairs of resource type and resource statistics.
+ * It also includes a count of the total number of resources tagged with the current tag as well as a `last_tagged_uri` attribute set to the last resource tagged with the current tag.
+ *
+ * This will only include resources that you are authorized to see. For example, to see tagged Droplets, include the `droplet:read` scope.
+ * @example {
+ * "count": 5,
+ * "last_tagged_uri": "https://api.digitalocean.com/v2/images/7555620",
+ * "droplets": {
+ * "count": 1,
+ * "last_tagged_uri": "https://api.digitalocean.com/v2/droplets/3164444"
+ * },
+ * "images": {
+ * "count": 1,
+ * "last_tagged_uri": "https://api.digitalocean.com/v2/images/7555620"
+ * },
+ * "volumes": {
+ * "count": 1,
+ * "last_tagged_uri": "https://api.digitalocean.com/v2/volumes/3d80cb72-342b-4aaa-b92e-4e4abb24a933"
+ * },
+ * "volume_snapshots": {
+ * "count": 1,
+ * "last_tagged_uri": "https://api.digitalocean.com/v2/snapshots/1f6f46e8-6b60-11e9-be4e-0a58ac144519"
+ * },
+ * "databases": {
+ * "count": 1,
+ * "last_tagged_uri": "https://api.digitalocean.com/v2/databases/b92438f6-ba03-416c-b642-e9236db91976"
+ * }
+ * }
+ */
+ readonly resources?: components["schemas"]["tags_metadata"] & {
+ droplets?: unknown & components["schemas"]["tags_metadata"];
+ imgages?: unknown & components["schemas"]["tags_metadata"];
+ volumes?: unknown & components["schemas"]["tags_metadata"];
+ volume_snapshots?: unknown & components["schemas"]["tags_metadata"];
+ databases?: unknown & components["schemas"]["tags_metadata"];
+ };
+ };
+ error_with_root_causes: {
+ /**
+ * @description A message providing information about the error.
+ * @example not_found
+ */
+ error: string;
+ /**
+ * @description A list of error messages.
+ * @example null
+ */
+ messages?: string[] | null;
+ /**
+ * @description A list of underlying causes for the error, including details to help resolve it when possible.
+ * @example []
+ */
+ root_causes: string[];
+ };
+ tags_resource: {
+ /**
+ * @description An array of objects containing resource_id and resource_type
+ * attributes.
+ *
+ * This response will only include resources that you are authorized to see.
+ * For example, to see Droplets, include the `droplet:read` scope.
+ * @example [
+ * {
+ * "resource_id": "9569411",
+ * "resource_type": "droplet"
+ * },
+ * {
+ * "resource_id": "7555620",
+ * "resource_type": "image"
+ * },
+ * {
+ * "resource_id": "3d80cb72-342b-4aaa-b92e-4e4abb24a933",
+ * "resource_type": "volume"
+ * }
+ * ]
+ */
+ resources: {
+ /**
+ * @description The identifier of a resource.
+ * @example 3d80cb72-342b-4aaa-b92e-4e4abb24a933
+ */
+ resource_id?: string;
+ /**
+ * @description The type of the resource.
+ * @example volume
+ * @enum {string}
+ */
+ resource_type?: "droplet" | "image" | "volume" | "volume_snapshot";
+ }[];
+ };
+ /** @description VectorDBConfig holds optional, advanced cluster settings. */
+ vectordbVectorDBConfig: {
+ /**
+ * @description Default vector compression for new collections: rq, pq, bq, or sq. Empty means platform default (rq).
+ * @example example string
+ */
+ default_quantization?: string;
+ /** @example true */
+ enable_auto_schema?: boolean;
+ /**
+ * @description The Vector Database version running on the cluster.
+ * @example example string
+ */
+ weaviate_version?: string;
+ };
+ /** @description VectorDBEndpoints contains the connection endpoints for a vector database instance. */
+ vectordbVectorDBEndpoints: {
+ /**
+ * @description Endpoint for gRPC connections (e.g. "my-db-tor1-a1b2c3d4-grpc.weaviate.ondigitalocean.com:443").
+ * @example my-db-tor1-a1b2c3d4-grpc.weaviate.ondigitalocean.com:443
+ */
+ grpc?: string;
+ /**
+ * @description Endpoint for HTTPS connections (e.g. "https://my-db-tor1-a1b2c3d4.weaviate.ondigitalocean.com").
+ * @example https://my-db-tor1-a1b2c3d4.weaviate.ondigitalocean.com
+ */
+ http?: string;
+ };
+ /** @description VectorDB represents a provisioned vector database instance. */
+ vectordbVectorDB: {
+ config?: components["schemas"]["vectordbVectorDBConfig"];
+ /**
+ * Format: date-time
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ endpoints?: components["schemas"]["vectordbVectorDBEndpoints"];
+ /**
+ * @description ID of the vector database this instance was forked from. Empty when the
+ * instance was created directly via CreateVectorDB. Read-only and set by
+ * the platform at fork time; never modifiable through UpdateVectorDB.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ forked_from_id?: string;
+ /** @example example string */
+ id?: string;
+ /**
+ * @description Backup_id of the most recent restore initiated against this instance.
+ * Empty if no restore has ever been triggered. Lets callers recover the
+ * identifier of an in-flight or last-completed restore without having
+ * to retain the RestoreBackupResponse themselves. Use it with
+ * GetRestoreStatus to fetch the live status.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ last_restore_id?: string;
+ /** @example example name */
+ name?: string;
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ owner_uuid?: string;
+ /**
+ * @description Project this database belongs to.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ project_id?: string;
+ /** @example tor1 */
+ region?: string;
+ /**
+ * @description Resource tier: small, medium, or large.
+ * @example example string
+ */
+ size?: string;
+ /**
+ * @description Lifecycle state: pending, creating, active, errored, or deleting.
+ * @example example string
+ */
+ status?: string;
+ /**
+ * @example [
+ * "example string"
+ * ]
+ */
+ tags?: string[];
+ /**
+ * Format: date-time
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ };
+ vectordbListVectorDBsResponse: {
+ /**
+ * Format: int64
+ * @example 123
+ */
+ total?: number;
+ vector_dbs?: components["schemas"]["vectordbVectorDB"][];
+ };
+ vectordbCreateVectorDBRequest: {
+ /**
+ * @description Required. Human-readable name for the database.
+ * @example example name
+ */
+ name?: string;
+ /**
+ * @description Required. ID of the project to create the vector database in.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ project_id?: string;
+ /**
+ * @description Required. Region slug where the database will be provisioned.
+ * @example tor1
+ */
+ region?: string;
+ /**
+ * @description Required. Resource tier: small, medium, or large.
+ * @example example string
+ */
+ size?: string;
+ /**
+ * @description A set of arbitrary tags to organize your vector database
+ * @example [
+ * "example string"
+ * ]
+ */
+ tags?: string[];
+ };
+ vectordbCreateVectorDBResponse: {
+ vector_db?: components["schemas"]["vectordbVectorDB"];
+ };
+ vectordbGetVectorDBResponse: {
+ vector_db?: components["schemas"]["vectordbVectorDB"];
+ };
+ vectordbUpdateVectorDBRequest: {
+ config?: components["schemas"]["vectordbVectorDBConfig"];
+ /**
+ * @description ID of the vector database.
+ * @example example string
+ */
+ id?: string;
+ /**
+ * @description Optional. New project UUID to assign the database to.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ project_id?: string;
+ };
+ vectordbUpdateVectorDBResponse: {
+ vector_db?: components["schemas"]["vectordbVectorDB"];
+ };
+ /** @description Backup represents a single backup of a vector database. */
+ vectordbBackup: {
+ /**
+ * @description Unique identifier for the backup (e.g., "vectordb-{uuid}-20240101-120000").
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ backup_id?: string;
+ /**
+ * Format: date-time
+ * @description Timestamp when the backup process completed.
+ * @example 2023-01-01T00:00:00Z
+ */
+ completed_at?: string;
+ /**
+ * Format: date-time
+ * @description Timestamp when the backup process started.
+ * @example 2023-01-01T00:00:00Z
+ */
+ started_at?: string;
+ /**
+ * @description Status of the backup: SUCCESS.
+ * @example example string
+ */
+ status?: string;
+ };
+ vectordbListBackupsResponse: {
+ /** @description List of available backups. */
+ backups?: components["schemas"]["vectordbBackup"][];
+ };
+ vectordbGetRestoreStatusResponse: {
+ /**
+ * @description The backup ID being restored.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ backup_id?: string;
+ /**
+ * @description Error message if the restore failed.
+ * @example example string
+ */
+ error?: string;
+ /**
+ * @description Current status: STARTED, TRANSFERRING, TRANSFERRED, FINALIZING, SUCCESS, FAILED, CANCELLING, CANCELED.
+ * @example example string
+ */
+ status?: string;
+ };
+ vectordbRestoreBackupRequest: {
+ /**
+ * @description Required. ID of the backup to restore from.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ backup_id?: string;
+ /**
+ * @description Required. ID of the vector database.
+ * @example example string
+ */
+ id?: string;
+ };
+ vectordbRestoreBackupResponse: {
+ /**
+ * @description The backup ID being restored.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ backup_id?: string;
+ /**
+ * @description Initial status of the restore operation (e.g., "STARTED").
+ * @example example string
+ */
+ status?: string;
+ };
+ vectordbGetVectorDBAdminCredentialsResponse: {
+ /**
+ * @description API token for that user.
+ * @example example string
+ */
+ api_token?: string;
+ /**
+ * @description Database user id from the cluster secret (opaque; matches what was provisioned).
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ user_id?: string;
+ };
+ vectordbResizeVectorDBRequest: {
+ /**
+ * @description Required. ID of the vector database to resize.
+ * @example example string
+ */
+ id?: string;
+ /**
+ * @description Required. Target resource tier: small, medium, or large.
+ * @example example string
+ */
+ size?: string;
+ };
+ vectordbResizeVectorDBResponse: {
+ vector_db?: components["schemas"]["vectordbVectorDB"];
+ };
+ vectordbUpdateVectorDBTagsRequest: {
+ /**
+ * @description Required. ID of the vector database to update tags for.
+ * @example example string
+ */
+ id?: string;
+ /**
+ * @description Tags to set on the vector database. Replaces all existing tags.
+ * @example [
+ * "example string"
+ * ]
+ */
+ tags?: string[];
+ };
+ vectordbUpdateVectorDBTagsResponse: {
+ vector_db?: components["schemas"]["vectordbVectorDB"];
+ };
+ /**
+ * @description A flat array of tag names as strings applied to the resource. Requires `tag:read` scope.
+ * @example [
+ * "base-image",
+ * "prod"
+ * ]
+ */
+ tags_array_read: string[] | null;
+ volume_base_read: {
+ /**
+ * @description The unique identifier for the block storage volume.
+ * @example 506f78a4-e098-11e5-ad9f-000f53306ae1
+ */
+ readonly id?: string;
+ /**
+ * @description An array containing the IDs of the Droplets the volume is attached to. Note that at this time, a volume can only be attached to a single Droplet.
+ * @example []
+ */
+ readonly droplet_ids?: number[] | null;
+ /**
+ * @description A human-readable name for the block storage volume. Must be lowercase and be composed only of numbers, letters and "-", up to a limit of 64 characters. The name must begin with a letter.
+ * @example example
+ */
+ name?: string;
+ /**
+ * @description An optional free-form text field to describe a block storage volume.
+ * @example Block store for examples
+ */
+ description?: string;
+ /**
+ * @description The size of the block storage volume in GiB (1024^3). This field does not apply when creating a volume from a snapshot.
+ * @example 10
+ */
+ size_gigabytes?: number;
+ /**
+ * @description A time value given in ISO8601 combined date and time format that represents when the block storage volume was created.
+ * @example 2020-03-02T17:00:49Z
+ */
+ readonly created_at?: string;
+ tags?: components["schemas"]["tags_array_read"];
+ };
+ volume_full: components["schemas"]["volume_base_read"] & {
+ /**
+ * @example {
+ * "name": "New York 1",
+ * "slug": "nyc1",
+ * "sizes": [
+ * "s-1vcpu-1gb",
+ * "s-1vcpu-2gb",
+ * "s-1vcpu-3gb",
+ * "s-2vcpu-2gb",
+ * "s-3vcpu-1gb",
+ * "s-2vcpu-4gb",
+ * "s-4vcpu-8gb",
+ * "s-6vcpu-16gb",
+ * "s-8vcpu-32gb",
+ * "s-12vcpu-48gb",
+ * "s-16vcpu-64gb",
+ * "s-20vcpu-96gb",
+ * "s-24vcpu-128gb",
+ * "s-32vcpu-192gb"
+ * ],
+ * "features": [
+ * "private_networking",
+ * "backups",
+ * "ipv6",
+ * "metadata"
+ * ],
+ * "available": true
+ * }
+ */
+ readonly region?: unknown & components["schemas"]["region"];
+ /**
+ * @description The type of filesystem currently in-use on the volume.
+ * @example ext4
+ */
+ filesystem_type?: string;
+ /**
+ * @description The label currently applied to the filesystem.
+ * @example example
+ */
+ filesystem_label?: string;
+ };
+ volume_base: {
+ /**
+ * @description The unique identifier for the block storage volume.
+ * @example 506f78a4-e098-11e5-ad9f-000f53306ae1
+ */
+ readonly id?: string;
+ /**
+ * @description An array containing the IDs of the Droplets the volume is attached to. Note that at this time, a volume can only be attached to a single Droplet.
+ * @example []
+ */
+ readonly droplet_ids?: number[] | null;
+ /**
+ * @description A human-readable name for the block storage volume. Must be lowercase and be composed only of numbers, letters and "-", up to a limit of 64 characters. The name must begin with a letter.
+ * @example example
+ */
+ name?: string;
+ /**
+ * @description An optional free-form text field to describe a block storage volume.
+ * @example Block store for examples
+ */
+ description?: string;
+ /**
+ * @description The size of the block storage volume in GiB (1024^3). This field does not apply when creating a volume from a snapshot.
+ * @example 10
+ */
+ size_gigabytes?: number;
+ /**
+ * @description A time value given in ISO8601 combined date and time format that represents when the block storage volume was created.
+ * @example 2020-03-02T17:00:49Z
+ */
+ readonly created_at?: string;
+ tags?: components["schemas"]["tags_array"];
+ };
+ volume_snapshot_id: {
+ /**
+ * @description The unique identifier for the volume snapshot from which to create the volume.
+ * @example b0798135-fb76-11eb-946a-0a58ac146f33
+ */
+ snapshot_id?: string;
+ };
+ volume_write_file_system_type: {
+ /**
+ * @description The name of the filesystem type to be used on the volume. When provided, the volume will automatically be formatted to the specified filesystem type. Currently, the available options are `ext4` and `xfs`. Pre-formatted volumes are automatically mounted when attached to Ubuntu, Debian, Fedora, Fedora Atomic, and CentOS Droplets created on or after April 26, 2018. Attaching pre-formatted volumes to other Droplets is not recommended.
+ * @example ext4
+ */
+ filesystem_type?: string;
+ };
+ /**
+ * @description The label applied to the filesystem. Labels for ext4 type filesystems may contain 16 characters while labels for xfs type filesystems are limited to 12 characters. May only be used in conjunction with filesystem_type.
+ * @example example
+ */
+ volume_write_file_system_label: string;
+ volumes_ext4: components["schemas"]["volume_base"] & components["schemas"]["volume_snapshot_id"] & components["schemas"]["volume_write_file_system_type"] & {
+ region: components["schemas"]["region_slug"];
+ filesystem_label?: components["schemas"]["volume_write_file_system_label"] & unknown;
+ };
+ volumes_xfs: components["schemas"]["volume_base"] & components["schemas"]["volume_snapshot_id"] & components["schemas"]["volume_write_file_system_type"] & {
+ region: components["schemas"]["region_slug"];
+ filesystem_label?: components["schemas"]["volume_write_file_system_label"] & unknown;
+ };
+ volume_action_post_base: {
+ /**
+ * @description The volume action to initiate.
+ * @example attach
+ * @enum {string}
+ */
+ type: "attach" | "detach" | "resize";
+ region?: components["schemas"]["region_slug"];
+ };
+ /**
+ * @description The unique identifier for the Droplet the volume will be attached or detached from.
+ * @example 11612190
+ */
+ volume_action_droplet_id: number;
+ volume_action_post_attach: components["schemas"]["volume_action_post_base"] & {
+ droplet_id: components["schemas"]["volume_action_droplet_id"];
+ tags?: components["schemas"]["tags_array"];
+ };
+ volume_action_post_detach: components["schemas"]["volume_action_post_base"] & {
+ droplet_id: components["schemas"]["volume_action_droplet_id"];
+ };
+ volumeAction: {
+ /**
+ * @description This is the type of action that the object represents. For example, this could be "attach_volume" to represent the state of a volume attach action.
+ * @example attach_volume
+ */
+ type?: string;
+ /** @example null */
+ resource_id?: number | null;
+ } & components["schemas"]["action"];
+ volume_action_post_resize: components["schemas"]["volume_action_post_base"] & {
+ /** @description The new size of the block storage volume in GiB (1024^3). */
+ size_gigabytes: number;
+ };
+ vpc_updatable: {
+ /**
+ * @description The name of the VPC. Must be unique and may only contain alphanumeric characters, dashes, and periods.
+ * @example env.prod-vpc
+ */
+ name?: string;
+ /**
+ * @description A free-form text field for describing the VPC's purpose. It may be a maximum of 255 characters.
+ * @example VPC for production environment
+ */
+ description?: string;
+ };
+ vpc_create: {
+ /**
+ * @description The slug identifier for the region where the VPC will be created.
+ * @example nyc1
+ */
+ region?: string;
+ /**
+ * @description The range of IP addresses in the VPC in CIDR notation. Network ranges cannot overlap with other networks in the same account and must be in range of private addresses as defined in RFC1918. It may not be smaller than `/28` nor larger than `/16`. If no IP range is specified, a `/20` network range is generated that won't conflict with other VPC networks in your account.
+ * @example 10.10.10.0/24
+ */
+ ip_range?: string;
+ };
+ vpc_default: {
+ /**
+ * @description A boolean value indicating whether or not the VPC is the default network for the region. All applicable resources are placed into the default VPC network unless otherwise specified during their creation. The `default` field cannot be unset from `true`. If you want to set a new default VPC network, update the `default` field of another VPC network in the same region. The previous network's `default` field will be set to `false` when a new default VPC has been defined.
+ * @example true
+ */
+ default?: boolean;
+ };
+ /**
+ * @description The uniform resource name (URN) for the resource in the format do:resource_type:resource_id.
+ * @example do:vpc:5a4981aa-9653-4bd1-bef5-d6bff52042e4
+ */
+ "urn-2": string;
+ vpc_base: {
+ /**
+ * Format: uuid
+ * @description A unique ID that can be used to identify and reference the VPC.
+ * @example 5a4981aa-9653-4bd1-bef5-d6bff52042e4
+ */
+ readonly id?: string;
+ urn?: components["schemas"]["urn-2"];
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format.
+ * @example 2020-03-13T19:20:47.442049222Z
+ */
+ readonly created_at?: string;
+ };
+ vpc: components["schemas"]["vpc_updatable"] & components["schemas"]["vpc_create"] & components["schemas"]["vpc_default"] & components["schemas"]["vpc_base"];
+ vpc_member: {
+ /**
+ * @description The name of the resource.
+ * @example nyc1-load-balancer-01
+ */
+ name?: string;
+ urn?: components["schemas"]["urn"];
+ /**
+ * @description A time value given in ISO8601 combined date and time format that represents when the resource was created.
+ * @example 2020-03-13T19:30:48Z
+ */
+ created_at?: string;
+ };
+ vpc_peering_base: {
+ /**
+ * Format: uuid
+ * @description A unique ID that can be used to identify and reference the VPC peering.
+ * @example 5a4981aa-9653-4bd1-bef5-d6bff52042e4
+ */
+ readonly id?: string;
+ /**
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format.
+ * @example 2020-03-13T19:20:47.442049222Z
+ */
+ readonly created_at?: string;
+ /**
+ * @description The current status of the VPC peering.
+ * @example ACTIVE
+ * @enum {string}
+ */
+ readonly status?: "PROVISIONING" | "ACTIVE" | "DELETING";
+ };
+ vpc_peering_create: {
+ /**
+ * @description An array of the two peered VPCs IDs.
+ * @example [
+ * "c140286f-e6ce-4131-8b7b-df4590ce8d6a",
+ * "994a2735-dc84-11e8-80bc-3cfdfea9fba1"
+ * ]
+ */
+ vpc_ids?: string[];
+ };
+ vpc_peering_updatable: {
+ /**
+ * @description The name of the VPC peering. Must be unique within the team and may only contain alphanumeric characters and dashes.
+ * @example nyc1-blr1-peering
+ */
+ name?: string;
+ };
+ vpc_peering: components["schemas"]["vpc_peering_base"] & components["schemas"]["vpc_peering_create"] & components["schemas"]["vpc_peering_updatable"];
+ route: {
+ /**
+ * Format: uuid
+ * @description The unique identifier of the route.
+ * @example f0e1d2c3-b4a5-6789-0fed-cba987654321
+ */
+ readonly id: string;
+ /**
+ * @description The route type inferred from how the route is sourced.
+ * @example STATIC
+ * @enum {string}
+ */
+ readonly type: "STATIC" | "DYNAMIC";
+ /**
+ * @description The destination IPv4 network for the route in CIDR notation.
+ * @example 0.0.0.0/0
+ */
+ destination_cidr: string;
+ /**
+ * @description The URNs of resources that act as next hops for the route. Supported
+ * next hops are Droplets, using a numeric ID in the format
+ * `do:droplet:`, and VPC NAT Gateways, using a UUID in the format
+ * `do:nat_gateway:`.
+ * @example [
+ * "do:droplet:4126873"
+ * ]
+ */
+ target_urns: string[];
+ /**
+ * @description Whether the caller can update or delete the route.
+ * @example true
+ */
+ readonly modifiable?: boolean;
+ /**
+ * Format: date-time
+ * @description The time when the route was created.
+ * @example 2026-01-14T10:05:00Z
+ */
+ readonly created_at?: string;
+ };
+ /** @description Member statistics, excluding resources the caller is not permitted to read. */
+ vpc_subnet_statistics: {
+ /**
+ * Format: int32
+ * @description The number of members in the VPC subnet.
+ * @example 3
+ */
+ members?: number;
+ /**
+ * @description The number of members grouped by resource type.
+ * @example {
+ * "droplet": 2,
+ * "loadbalancer": 1
+ * }
+ */
+ resources?: {
+ [key: string]: number;
+ };
+ };
+ /** @description Additional information about the VPC subnet. */
+ vpc_subnet_meta: {
+ stats?: components["schemas"]["vpc_subnet_statistics"];
+ };
+ vpc_subnet: {
+ /**
+ * Format: uuid
+ * @description The unique identifier of the VPC subnet.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ readonly id: string;
+ /**
+ * @description The uniform resource name of the VPC subnet.
+ * @example do:vpc_subnet:4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ readonly urn: string;
+ /**
+ * @description The human-readable name of the VPC subnet.
+ * @example new-subnet
+ */
+ name: string;
+ /**
+ * @description The IPv4 range assigned to the subnet in CIDR notation.
+ * @example 10.20.0.0/16
+ */
+ readonly ip_range: string;
+ /**
+ * @description Whether this is the default subnet for the VPC.
+ * @example true
+ */
+ readonly default?: boolean;
+ /**
+ * @description The type of the VPC subnet.
+ * @example REGULAR
+ * @enum {string}
+ */
+ readonly type: "REGULAR" | "MANAGED" | "OVERLAY";
+ /**
+ * @description The slug of the region containing the VPC subnet.
+ * @example nyc3
+ */
+ readonly region: string;
+ /**
+ * Format: date-time
+ * @description The time when the VPC subnet was created.
+ * @example 2024-01-01T12:00:00Z
+ */
+ readonly created_at: string;
+ meta?: components["schemas"]["vpc_subnet_meta"];
+ };
+ vpc_subnet_create: {
+ /**
+ * @description The human-readable name of the VPC subnet.
+ * @example new-subnet
+ */
+ name: string;
+ /**
+ * @description An RFC1918 CIDR range between /16 and /24 that does not overlap another team or VPC network.
+ * @example 10.20.0.0/16
+ */
+ ip_range?: string;
+ };
+ vpc_subnet_update: {
+ /**
+ * @description The new human-readable name of the VPC subnet.
+ * @example renamed-subnet
+ */
+ name: string;
+ };
+ route_create: {
+ /**
+ * @description A valid IPv4 CIDR accepted by the VPC routing product.
+ * @example 0.0.0.0/0
+ */
+ destination_cidr: string;
+ /**
+ * @description The URNs of supported next-hop resources. Droplet targets must use a
+ * numeric ID in the format `do:droplet:`. VPC NAT Gateway targets use
+ * a UUID in the format `do:nat_gateway:`.
+ * @example [
+ * "do:droplet:4126873"
+ * ]
+ */
+ target_urns: string[];
+ };
+ route_update: {
+ /**
+ * @description The URNs of supported next-hop resources. Droplet targets must use a
+ * numeric ID in the format `do:droplet:`. VPC NAT Gateway targets use
+ * a UUID in the format `do:nat_gateway:`.
+ * @example [
+ * "do:droplet:4126873"
+ * ]
+ */
+ target_urns: string[];
+ };
+ vpc_nat_gateway_get: {
+ /**
+ * @description The unique identifier for the VPC NAT gateway. This is automatically generated upon creation.
+ * @example 70e1b58d-cdec-4e95-b3ee-2d4d95feff51
+ */
+ id?: string;
+ /**
+ * @description The human-readable name of the VPC NAT gateway.
+ * @example my-vpc-nat-gateway
+ */
+ name?: string;
+ /**
+ * @description The type of the VPC NAT gateway.
+ * @example PUBLIC
+ * @enum {string}
+ */
+ type?: "PUBLIC";
+ /**
+ * @description The current state of the VPC NAT gateway.
+ * @example ACTIVE
+ * @enum {string}
+ */
+ state?: "NEW" | "PROVISIONING" | "ACTIVE" | "DELETING" | "ERROR" | "INVALID";
+ /**
+ * @description The region in which the VPC NAT gateway is created.
+ * @example tor1
+ * @enum {string}
+ */
+ region?: "nyc1" | "nyc2" | "nyc3" | "ams2" | "ams3" | "sfo1" | "sfo2" | "sfo3" | "sgp1" | "lon1" | "fra1" | "tor1" | "blr1" | "syd1" | "atl1";
+ /**
+ * @description The size of the VPC NAT gateway.
+ * @example 1
+ */
+ size?: number;
+ /** @description An array of VPCs associated with the VPC NAT gateway. */
+ vpcs?: {
+ /**
+ * Format: uuid
+ * @description The unique identifier of the VPC to which the NAT gateway is attached.
+ * @example 0d3db13e-a604-4944-9827-7ec2642d32ac
+ */
+ vpc_uuid?: string;
+ /**
+ * Format: uuid
+ * @description The unique identifier of the VPC subnet to which the NAT gateway is attached.
+ * @example cbd79771-23eb-49be-b5ea-59cc56222622
+ */
+ subnet_uuid?: string;
+ /**
+ * @description The gateway IP address of the VPC NAT gateway.
+ * @example 10.118.0.35
+ */
+ gateway_ip?: string;
+ }[];
+ /** @description An object containing egress information for the VPC NAT gateway. */
+ egresses?: {
+ /** @description An array of public gateway IP addresses for the VPC NAT gateway. */
+ public_gateways?: {
+ /**
+ * @description The public egress IPv4 address of the VPC NAT gateway. This is the address assigned to the gateway, which you can optionally set when creating the gateway using the `ip` or `ipv4` field.
+ * @example 174.138.113.197
+ */
+ ipv4?: string;
+ }[];
+ };
+ /**
+ * @description The UDP timeout in seconds for the VPC NAT gateway.
+ * @example 30
+ */
+ udp_timeout_seconds?: number;
+ /**
+ * @description The ICMP timeout in seconds for the VPC NAT gateway.
+ * @example 30
+ */
+ icmp_timeout_seconds?: number;
+ /**
+ * @description The TCP timeout in seconds for the VPC NAT gateway.
+ * @example 30
+ */
+ tcp_timeout_seconds?: number;
+ /**
+ * The creation time of the VPC NAT gateway.
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the VPC NAT gateway was created.
+ * @example 2020-07-28T18:00:00Z
+ */
+ created_at?: string;
+ /**
+ * The last update time of the VPC NAT gateway.
+ * Format: date-time
+ * @description A time value given in ISO8601 combined date and time format that represents when the VPC NAT gateway was last updated.
+ * @example 2020-07-28T18:00:00Z
+ */
+ updated_at?: string;
+ };
+ vpc_nat_gateway_create: {
+ /**
+ * @description The human-readable name of the VPC NAT gateway.
+ * @example my-vpc-nat-gateway
+ */
+ name: string;
+ /**
+ * @description The type of the VPC NAT gateway.
+ * @example PUBLIC
+ * @enum {string}
+ */
+ type: "PUBLIC";
+ /**
+ * @description The region in which the VPC NAT gateway is created.
+ * @example tor1
+ * @enum {string}
+ */
+ region: "nyc1" | "nyc2" | "nyc3" | "ams2" | "ams3" | "sfo1" | "sfo2" | "sfo3" | "sgp1" | "lon1" | "fra1" | "tor1" | "blr1" | "syd1" | "atl1";
+ /**
+ * @description The size of the VPC NAT gateway.
+ * @example 1
+ */
+ size: number;
+ /** @description An array of VPCs associated with the VPC NAT gateway. */
+ vpcs: {
+ /**
+ * Format: uuid
+ * @description The unique identifier of the VPC to which the NAT gateway is attached.
+ * @example 0d3db13e-a604-4944-9827-7ec2642d32ac
+ */
+ vpc_uuid: string;
+ /**
+ * Format: uuid
+ * @description The unique identifier of the VPC subnet to which the NAT gateway is attached.
+ * @example cbd79771-23eb-49be-b5ea-59cc56222622
+ */
+ subnet_uuid?: string;
+ /**
+ * @description The classification of the NAT gateway as the default egress route for the VPC traffic.
+ * @example true
+ */
+ default_gateway?: boolean;
+ }[];
+ /**
+ * @description The UDP timeout in seconds for the VPC NAT gateway.
+ * @example 30
+ */
+ udp_timeout_seconds?: number;
+ /**
+ * @description The ICMP timeout in seconds for the VPC NAT gateway.
+ * @example 30
+ */
+ icmp_timeout_seconds?: number;
+ /**
+ * @description The TCP timeout in seconds for the VPC NAT gateway.
+ * @example 30
+ */
+ tcp_timeout_seconds?: number;
+ /** @description An optional object specifying the public egress IP address to assign to the VPC NAT gateway. Provide this only to use a specific address. If omitted, DigitalOcean allocates a public IP address automatically. */
+ egresses?: {
+ /** @description An array containing a single public gateway object that sets the gateway's public egress IP address. */
+ public_gateways?: {
+ /**
+ * @description The public egress IP address to assign to the VPC NAT gateway, and the preferred field for setting it. Provide an unassigned Bring Your Own IP (BYOIP) address on your account in the same region to use your own IP address. This field is only applied when creating the gateway and cannot be changed afterward. The assigned address is returned as `ipv4` in GET and list responses.
+ * @example 203.0.113.42
+ */
+ ip?: string;
+ /**
+ * @description An alternative to `ip` for setting the public egress IP address on create. Accepts the same value as `ip`, which takes precedence if both are provided. This field is only applied when creating the gateway and cannot be changed afterward.
+ * @example 203.0.113.42
+ */
+ ipv4?: string;
+ }[];
+ };
+ };
+ vpc_nat_gateway_update: {
+ /**
+ * @description The human-readable name of the VPC NAT gateway.
+ * @example my-vpc-nat-gateway
+ */
+ name: string;
+ /**
+ * @description The size of the VPC NAT gateway.
+ * @example 1
+ */
+ size: number;
+ /** @description An array of VPCs associated with the VPC NAT gateway. */
+ vpcs?: {
+ /**
+ * Format: uuid
+ * @description The unique identifier of the VPC to which the NAT gateway is attached.
+ * @example 0d3db13e-a604-4944-9827-7ec2642d32ac
+ */
+ vpc_uuid?: string;
+ /**
+ * Format: uuid
+ * @description The unique identifier of the VPC subnet to which the NAT gateway is attached.
+ * @example cbd79771-23eb-49be-b5ea-59cc56222622
+ */
+ subnet_uuid?: string;
+ /**
+ * @description The classification of the NAT gateway as the default egress route for the VPC traffic.
+ * @example false
+ */
+ default_gateway?: boolean;
+ }[];
+ /**
+ * @description The UDP timeout in seconds for the VPC NAT gateway.
+ * @example 30
+ */
+ udp_timeout_seconds?: number;
+ /**
+ * @description The ICMP timeout in seconds for the VPC NAT gateway.
+ * @example 30
+ */
+ icmp_timeout_seconds?: number;
+ /**
+ * @description The TCP timeout in seconds for the VPC NAT gateway.
+ * @example 30
+ */
+ tcp_timeout_seconds?: number;
+ };
+ check_base: {
+ /**
+ * Format: uuid
+ * @description A unique ID that can be used to identify and reference the check.
+ * @example 5a4981aa-9653-4bd1-bef5-d6bff52042e4
+ */
+ readonly id?: string;
+ };
+ check_updatable: {
+ /**
+ * @description A human-friendly display name.
+ * @example Landing page check
+ */
+ name?: string;
+ /**
+ * @description The type of health check to perform.
+ * @example https
+ * @enum {string}
+ */
+ type?: "ping" | "http" | "https";
+ /**
+ * Format: url
+ * @description The endpoint to perform healthchecks on.
+ * @example https://www.landingpage.com
+ */
+ target?: string;
+ /**
+ * @description An array containing the selected regions to perform healthchecks from.
+ * @example [
+ * "us_east",
+ * "eu_west"
+ * ]
+ */
+ regions?: ("us_east" | "us_west" | "eu_west" | "se_asia")[];
+ /**
+ * @description A boolean value indicating whether the check is enabled/disabled.
+ * @default true
+ * @example true
+ */
+ enabled?: boolean;
+ };
+ check: components["schemas"]["check_base"] & components["schemas"]["check_updatable"];
+ region_state: {
+ /**
+ * @example UP
+ * @enum {string}
+ */
+ status?: "DOWN" | "UP" | "CHECKING";
+ /** @example 2022-03-17T22:28:51Z */
+ status_changed_at?: string;
+ /** @example 97.99 */
+ thirty_day_uptime_percentage?: number;
+ };
+ /** @description A map of region to regional state */
+ regional_state: {
+ us_east?: components["schemas"]["region_state"];
+ eu_west?: components["schemas"]["region_state"];
+ };
+ previous_outage: {
+ /** @example us_east */
+ region?: string;
+ /** @example 2022-03-17T18:04:55Z */
+ started_at?: string;
+ /** @example 2022-03-17T18:06:55Z */
+ ended_at?: string;
+ /** @example 120 */
+ duration_seconds?: number;
+ };
+ state: {
+ regions?: components["schemas"]["regional_state"];
+ previous_outage?: components["schemas"]["previous_outage"];
+ };
+ alert_base: {
+ /**
+ * Format: uuid
+ * @description A unique ID that can be used to identify and reference the alert.
+ * @example 5a4981aa-9653-4bd1-bef5-d6bff52042e4
+ */
+ readonly id?: string;
+ };
+ /** @description The notification settings for a trigger alert. */
+ notification: {
+ /**
+ * @description An email to notify on an alert trigger. The Email has to be one that is verified on that DigitalOcean account.
+ * @example [
+ * "bob@example.com"
+ * ]
+ */
+ email: string[];
+ /** @description Slack integration details. */
+ slack: {
+ /**
+ * Format: string
+ * @description Slack channel to notify of an alert trigger.
+ * @example Production Alerts
+ */
+ channel: string;
+ /**
+ * Format: string
+ * @description Slack Webhook URL.
+ * @example https://hooks.slack.com/services/T1234567/AAAAAAAA/ZZZZZZ
+ */
+ url: string;
+ }[];
+ };
+ alert_updatable: {
+ /**
+ * @description A human-friendly display name.
+ * @example Landing page degraded performance
+ */
+ name?: string;
+ /**
+ * @description The type of alert.
+ * @example latency
+ * @enum {string}
+ */
+ type?: "latency" | "down" | "down_global" | "ssl_expiry";
+ /**
+ * @description The threshold at which the alert will enter a trigger state. The specific threshold is dependent on the alert type.
+ * @example 300
+ */
+ threshold?: number;
+ /**
+ * @description The comparison operator used against the alert's threshold.
+ * @example greater_than
+ * @enum {string}
+ */
+ comparison?: "greater_than" | "less_than";
+ notifications?: components["schemas"]["notification"];
+ /**
+ * @description Period of time the threshold must be exceeded to trigger the alert.
+ * @example 2m
+ * @enum {string}
+ */
+ period?: "2m" | "3m" | "5m" | "10m" | "15m" | "30m" | "1h";
+ };
+ alert: components["schemas"]["alert_base"] & components["schemas"]["alert_updatable"];
+ /** @description A Chatbot */
+ apiChatbot: {
+ /**
+ * @example [
+ * "example string"
+ * ]
+ */
+ allowed_domains?: string[];
+ /** @example example string */
+ button_background_color?: string;
+ /** @example example string */
+ logo?: string;
+ /**
+ * @description Name of chatbot
+ * @example example name
+ */
+ name?: string;
+ /** @example example string */
+ primary_color?: string;
+ /** @example example string */
+ secondary_color?: string;
+ /** @example example string */
+ starting_message?: string;
+ };
+ /** @description Agent Chatbot Identifier */
+ apiAgentChatbotIdentifier: {
+ /**
+ * @description Agent chatbot identifier
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ agent_chatbot_identifier?: string;
+ };
+ /**
+ * @default STATUS_UNKNOWN
+ * @example STATUS_UNKNOWN
+ * @enum {string}
+ */
+ apiDeploymentStatus: "STATUS_UNKNOWN" | "STATUS_WAITING_FOR_DEPLOYMENT" | "STATUS_DEPLOYING" | "STATUS_RUNNING" | "STATUS_FAILED" | "STATUS_WAITING_FOR_UNDEPLOYMENT" | "STATUS_UNDEPLOYING" | "STATUS_UNDEPLOYMENT_FAILED" | "STATUS_DELETED" | "STATUS_BUILDING";
+ /**
+ * @description - VISIBILITY_UNKNOWN: The status of the deployment is unknown
+ * - VISIBILITY_DISABLED: The deployment is disabled and will no longer service requests
+ * - VISIBILITY_PLAYGROUND: Deprecated: No longer a valid state
+ * - VISIBILITY_PUBLIC: The deployment is public and will service requests from the public internet
+ * - VISIBILITY_PRIVATE: The deployment is private and will only service requests from other agents, or through API keys
+ * @default VISIBILITY_UNKNOWN
+ * @example VISIBILITY_UNKNOWN
+ * @enum {string}
+ */
+ apiDeploymentVisibility: "VISIBILITY_UNKNOWN" | "VISIBILITY_DISABLED" | "VISIBILITY_PLAYGROUND" | "VISIBILITY_PUBLIC" | "VISIBILITY_PRIVATE";
+ /** @description Description of deployment */
+ apiDeployment: {
+ /**
+ * Format: date-time
+ * @description Creation date / time
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * @description Name
+ * @example example name
+ */
+ name?: string;
+ status?: components["schemas"]["apiDeploymentStatus"];
+ /**
+ * Format: date-time
+ * @description Last modified
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ /**
+ * @description Access your deployed agent here
+ * @example example string
+ */
+ url?: string;
+ /**
+ * @description Unique id
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ visibility?: components["schemas"]["apiDeploymentVisibility"];
+ };
+ /** @description McpServer defines a remote MCP server configuration for an agent. */
+ apiMcpServer: {
+ /**
+ * @description Optional list of allowed tool names to expose from this server
+ * @example [
+ * "example string"
+ * ]
+ */
+ allowed_tools?: string[];
+ /**
+ * @description Optional authorization header value for the MCP server
+ * @example example string
+ */
+ authorization?: string;
+ /** @description Optional additional headers to send to the MCP server */
+ headers?: {
+ [key: string]: string;
+ };
+ /**
+ * @description A label identifying this MCP server
+ * @example example string
+ */
+ server_label?: string;
+ /**
+ * @description The URL of the MCP server
+ * @example example string
+ */
+ server_url?: string;
+ };
+ /** @description Agreement Description */
+ apiAgreement: {
+ /** @example example string */
+ description?: string;
+ /** @example example name */
+ name?: string;
+ /** @example example string */
+ url?: string;
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ uuid?: string;
+ };
+ /** @description An available endpoint for a model and its capabilities */
+ apiModelEndpoint: {
+ /**
+ * @description Capabilities supported by this endpoint (e.g. input_text, output_text, input_image)
+ * @example [
+ * "example string"
+ * ]
+ */
+ capabilities?: string[];
+ /**
+ * @description The endpoint path (e.g. /chat/responses)
+ * @example /chat/responses
+ */
+ endpoint?: string;
+ };
+ /** @description Input/output modalities */
+ apiModelModalities: {
+ /**
+ * @example [
+ * "example string"
+ * ]
+ */
+ input?: string[];
+ /**
+ * @example [
+ * "example string"
+ * ]
+ */
+ output?: string[];
+ };
+ /**
+ * @default MODEL_PROVIDER_DIGITALOCEAN
+ * @example MODEL_PROVIDER_DIGITALOCEAN
+ * @enum {string}
+ */
+ apiModelProvider: "MODEL_PROVIDER_DIGITALOCEAN" | "MODEL_PROVIDER_ANTHROPIC" | "MODEL_PROVIDER_OPENAI";
+ /** @description A configurable setting for a model in the playground */
+ apiModelSetting: {
+ /**
+ * @description String default value (for type="dropdown", e.g. "medium")
+ * @example example string
+ */
+ default_string?: string;
+ /**
+ * Format: double
+ * @description Numeric default value (for type="number")
+ * @example 0.7
+ */
+ default_value?: number;
+ /**
+ * Format: double
+ * @description Maximum allowed value (for type="number")
+ * @example 1
+ */
+ max?: number;
+ /**
+ * Format: double
+ * @description Minimum allowed value (for type="number")
+ * @example 0
+ */
+ min?: number;
+ /**
+ * @description Setting key name (e.g. "max_tokens", "temperature", "resolution")
+ * @example temperature
+ */
+ name?: string;
+ /**
+ * @description Allowed values for dropdown selections (for type="dropdown")
+ * @example [
+ * "example string"
+ * ]
+ */
+ options?: string[];
+ /**
+ * Format: double
+ * @description Step increment for numeric settings (for type="number")
+ * @example 123
+ */
+ step?: number;
+ /**
+ * @description Setting value type: "number" or "dropdown"
+ * @example number
+ */
+ type?: string;
+ };
+ /**
+ * @description - MODEL_USECASE_UNKNOWN: The use case of the model is unknown
+ * - MODEL_USECASE_AGENT: The model maybe used in an agent
+ * - MODEL_USECASE_FINETUNED: The model maybe used for fine tuning
+ * - MODEL_USECASE_KNOWLEDGEBASE: The model maybe used for knowledge bases (embedding models)
+ * - MODEL_USECASE_GUARDRAIL: The model maybe used for guardrails
+ * - MODEL_USECASE_REASONING: The model usecase for reasoning
+ * - MODEL_USECASE_SERVERLESS: The model usecase for serverless inference
+ * - MODEL_USECASE_EVALUATION_JUDGE: The model usecase for evaluation judge
+ * - MODEL_USECASE_CODING: The model usecase for coding-optimized models
+ * - MODEL_USECASE_AUDIO: The model usecase for audio models
+ * - MODEL_USECASE_RERANKING: The model usecase for knowledge base reranking (cross-encoder) models
+ * - MODEL_USECASE_TEXT: The model usecase for text modality (non image, non audio, non embedding, non reranking) serverless chat models
+ * @default MODEL_USECASE_UNKNOWN
+ * @example MODEL_USECASE_UNKNOWN
+ * @enum {string}
+ */
+ apiModelUsecase: "MODEL_USECASE_UNKNOWN" | "MODEL_USECASE_AGENT" | "MODEL_USECASE_FINETUNED" | "MODEL_USECASE_KNOWLEDGEBASE" | "MODEL_USECASE_GUARDRAIL" | "MODEL_USECASE_REASONING" | "MODEL_USECASE_SERVERLESS" | "MODEL_USECASE_EVALUATION_JUDGE" | "MODEL_USECASE_CODING" | "MODEL_USECASE_AUDIO" | "MODEL_USECASE_RERANKING" | "MODEL_USECASE_TEXT";
+ /** @description Version Information about a Model */
+ apiModelVersion: {
+ /**
+ * Format: int64
+ * @description Major version number
+ * @example 123
+ */
+ major?: number;
+ /**
+ * Format: int64
+ * @description Minor version number
+ * @example 123
+ */
+ minor?: number;
+ /**
+ * Format: int64
+ * @description Patch version number
+ * @example 123
+ */
+ patch?: number;
+ };
+ /** @description Description of a Model */
+ apiModel: {
+ agreement?: components["schemas"]["apiAgreement"];
+ /** @description Benchmark scores for this model, stored as arbitrary JSON */
+ benchmark_score?: Record;
+ /**
+ * @description High-level capabilities (e.g. tool_calling, vision, streaming)
+ * @example [
+ * "example string"
+ * ]
+ */
+ capabilities?: string[];
+ /**
+ * Format: int64
+ * @description Context window size in tokens
+ * @example 12345
+ */
+ context_window?: string;
+ /**
+ * Format: date-time
+ * @description Creation date / time
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /** @description Available endpoints and their capabilities */
+ endpoints?: components["schemas"]["apiModelEndpoint"][];
+ /**
+ * @description Internally used name
+ * @example example name
+ */
+ inference_name?: string;
+ /**
+ * @description Internally used version
+ * @example example string
+ */
+ inference_version?: string;
+ /**
+ * @description True if it is a foundational model provided by do
+ * @example true
+ */
+ is_foundational?: boolean;
+ /**
+ * Format: int64
+ * @description Default chunking size limit to show in UI
+ * @example 123
+ */
+ kb_default_chunk_size?: number;
+ /**
+ * Format: int64
+ * @description Maximum chunk size limit of model
+ * @example 123
+ */
+ kb_max_chunk_size?: number;
+ /**
+ * Format: int64
+ * @description Minimum chunking size token limits if model supports KNOWLEDGEBASE usecase
+ * @example 123
+ */
+ kb_min_chunk_size?: number;
+ /**
+ * @description Lifecycle status of the model (internal, public-preview, active, deprecated, end_of_life)
+ * @example example string
+ */
+ lifecycle_status?: string;
+ /** @description Additional meta data */
+ metadata?: Record;
+ modalities?: components["schemas"]["apiModelModalities"];
+ /**
+ * @description Name of the model
+ * @example example name
+ */
+ name?: string;
+ /**
+ * Format: float
+ * @description Parameter count in billions
+ * @example 123
+ */
+ parameter_count?: number;
+ /**
+ * @description Unique id of the model, this model is based on
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ parent_uuid?: string;
+ provider?: components["schemas"]["apiModelProvider"];
+ /**
+ * @description Available reasoning efforts for this model
+ * @example [
+ * "example string"
+ * ]
+ */
+ reasoning_efforts?: string[];
+ /** @description Playground settings derived from model metadata */
+ settings?: components["schemas"]["apiModelSetting"][];
+ /**
+ * @description Whether this model supports extended thinking (Anthropic models)
+ * @example true
+ */
+ thinking?: boolean;
+ /**
+ * @description Model type (chat, embedding, image, reasoning, coding)
+ * @example example string
+ */
+ type?: string;
+ /**
+ * Format: date-time
+ * @description Last modified
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ /**
+ * @description Model has been fully uploaded
+ * @example true
+ */
+ upload_complete?: boolean;
+ /**
+ * @description Download url
+ * @example example string
+ */
+ url?: string;
+ /**
+ * @description Usecases of the model
+ * @example [
+ * "MODEL_USECASE_AGENT",
+ * "MODEL_USECASE_GUARDRAIL"
+ * ]
+ */
+ usecases?: components["schemas"]["apiModelUsecase"][];
+ /**
+ * @description Unique id
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ version?: components["schemas"]["apiModelVersion"];
+ };
+ /** @description Task definition embedded in a model router config. */
+ apiModelRouterTaskDetails: {
+ /**
+ * @description Short task description
+ * @example "Summarize long-form text"
+ */
+ description?: string;
+ /**
+ * @description Task name
+ * @example "Custom Summarization"
+ */
+ name?: string;
+ };
+ /** @description Selection policy preference for choosing among assigned models. */
+ apiModelRouterSelectionPolicy: {
+ /**
+ * @description One of: none, cheapest, fastest
+ * @example "cheapest"
+ */
+ prefer?: string;
+ };
+ /** @description Model router policy */
+ apiModelRouterTaskPolicy: {
+ custom_task?: components["schemas"]["apiModelRouterTaskDetails"];
+ /**
+ * @description Models assigned to the task
+ * @example [
+ * "example string"
+ * ]
+ */
+ models?: string[];
+ selection_policy?: components["schemas"]["apiModelRouterSelectionPolicy"];
+ /**
+ * @description Task slug
+ * @example "summarization"
+ */
+ task_slug?: string;
+ };
+ apiModelRouterConfig: {
+ /**
+ * @description Router-level fallback models
+ * @example [
+ * "example string"
+ * ]
+ */
+ fallback_models?: string[];
+ /** @description Task routing policies */
+ policies?: components["schemas"]["apiModelRouterTaskPolicy"][];
+ };
+ /** @description Model router */
+ apiModelRouter: {
+ config?: components["schemas"]["apiModelRouterConfig"];
+ /**
+ * Format: date-time
+ * @description Creation date / time
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * @description Description
+ * @example example string
+ */
+ description?: string;
+ /**
+ * @description Name of the model router
+ * @example example name
+ */
+ name?: string;
+ /**
+ * @description Target regions for the router
+ * @example [
+ * "example string"
+ * ]
+ */
+ regions?: string[];
+ /**
+ * Format: date-time
+ * @description Last modified
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ /**
+ * @description Unique id
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ };
+ /**
+ * @description - RETRIEVAL_METHOD_UNKNOWN: The retrieval method is unknown
+ * - RETRIEVAL_METHOD_REWRITE: The retrieval method is rewrite
+ * - RETRIEVAL_METHOD_STEP_BACK: The retrieval method is step back
+ * - RETRIEVAL_METHOD_SUB_QUERIES: The retrieval method is sub queries
+ * - RETRIEVAL_METHOD_NONE: The retrieval method is none
+ * @default RETRIEVAL_METHOD_UNKNOWN
+ * @example RETRIEVAL_METHOD_UNKNOWN
+ * @enum {string}
+ */
+ apiRetrievalMethod: "RETRIEVAL_METHOD_UNKNOWN" | "RETRIEVAL_METHOD_REWRITE" | "RETRIEVAL_METHOD_STEP_BACK" | "RETRIEVAL_METHOD_SUB_QUERIES" | "RETRIEVAL_METHOD_NONE";
+ apiAgentTemplateGuardrail: {
+ /**
+ * Format: int32
+ * @description Priority of the guardrail
+ * @example 123
+ */
+ priority?: number;
+ /**
+ * @description Uuid of the guardrail
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ };
+ /**
+ * @default DATA_SOURCE_STATUS_UNKNOWN
+ * @example DATA_SOURCE_STATUS_UNKNOWN
+ * @enum {string}
+ */
+ apiIndexedDataSourceStatus: "DATA_SOURCE_STATUS_UNKNOWN" | "DATA_SOURCE_STATUS_IN_PROGRESS" | "DATA_SOURCE_STATUS_UPDATED" | "DATA_SOURCE_STATUS_PARTIALLY_UPDATED" | "DATA_SOURCE_STATUS_NOT_UPDATED" | "DATA_SOURCE_STATUS_FAILED" | "DATA_SOURCE_STATUS_CANCELLED";
+ apiIndexedDataSource: {
+ /**
+ * Format: date-time
+ * @description Timestamp when data source completed indexing
+ * @example 2023-01-01T00:00:00Z
+ */
+ completed_at?: string;
+ /**
+ * @description Uuid of the indexed data source
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ data_source_uuid?: string;
+ /**
+ * @description A detailed error description
+ * @example example string
+ */
+ error_details?: string;
+ /**
+ * @description A string code provinding a hint which part of the system experienced an error
+ * @example example string
+ */
+ error_msg?: string;
+ /**
+ * Format: uint64
+ * @description Total count of files that have failed
+ * @example 12345
+ */
+ failed_item_count?: string;
+ /**
+ * Format: uint64
+ * @description Total count of files that have been indexed
+ * @example 12345
+ */
+ indexed_file_count?: string;
+ /**
+ * Format: uint64
+ * @description Total count of files that have been indexed
+ * @example 12345
+ */
+ indexed_item_count?: string;
+ /**
+ * Format: uint64
+ * @description Total count of files that have been removed
+ * @example 12345
+ */
+ removed_item_count?: string;
+ /**
+ * Format: uint64
+ * @description Total count of files that have been skipped
+ * @example 12345
+ */
+ skipped_item_count?: string;
+ /**
+ * Format: date-time
+ * @description Timestamp when data source started indexing
+ * @example 2023-01-01T00:00:00Z
+ */
+ started_at?: string;
+ status?: components["schemas"]["apiIndexedDataSourceStatus"];
+ /**
+ * Format: uint64
+ * @description Total size of files in data source in bytes
+ * @example 12345
+ */
+ total_bytes?: string;
+ /**
+ * Format: uint64
+ * @description Total size of files in data source in bytes that have been indexed
+ * @example 12345
+ */
+ total_bytes_indexed?: string;
+ /**
+ * Format: uint64
+ * @description Total file count in the data source
+ * @example 12345
+ */
+ total_file_count?: string;
+ };
+ /**
+ * @default BATCH_JOB_PHASE_UNKNOWN
+ * @example BATCH_JOB_PHASE_UNKNOWN
+ * @enum {string}
+ */
+ apiBatchJobPhase: "BATCH_JOB_PHASE_UNKNOWN" | "BATCH_JOB_PHASE_PENDING" | "BATCH_JOB_PHASE_RUNNING" | "BATCH_JOB_PHASE_SUCCEEDED" | "BATCH_JOB_PHASE_FAILED" | "BATCH_JOB_PHASE_ERROR" | "BATCH_JOB_PHASE_CANCELLED";
+ /**
+ * @default INDEX_JOB_STATUS_UNKNOWN
+ * @example INDEX_JOB_STATUS_UNKNOWN
+ * @enum {string}
+ */
+ apiIndexJobStatus: "INDEX_JOB_STATUS_UNKNOWN" | "INDEX_JOB_STATUS_PARTIAL" | "INDEX_JOB_STATUS_IN_PROGRESS" | "INDEX_JOB_STATUS_COMPLETED" | "INDEX_JOB_STATUS_FAILED" | "INDEX_JOB_STATUS_NO_CHANGES" | "INDEX_JOB_STATUS_PENDING" | "INDEX_JOB_STATUS_CANCELLED";
+ /** @description IndexingJob description */
+ apiIndexingJob: {
+ /**
+ * Format: int64
+ * @description Number of datasources indexed completed
+ * @example 123
+ */
+ completed_datasources?: number;
+ /**
+ * Format: date-time
+ * @description Creation date / time
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /** @description Details on Data Sources included in the Indexing Job */
+ data_source_jobs?: components["schemas"]["apiIndexedDataSource"][];
+ /**
+ * @example [
+ * "example string"
+ * ]
+ */
+ data_source_uuids?: string[];
+ /**
+ * Format: date-time
+ * @example 2023-01-01T00:00:00Z
+ */
+ finished_at?: string;
+ /**
+ * @description Boolean value to determine if the indexing job details are available
+ * @example true
+ */
+ is_report_available?: boolean;
+ /**
+ * @description Knowledge base id
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ knowledge_base_uuid?: string;
+ phase?: components["schemas"]["apiBatchJobPhase"];
+ /**
+ * Format: date-time
+ * @example 2023-01-01T00:00:00Z
+ */
+ started_at?: string;
+ status?: components["schemas"]["apiIndexJobStatus"];
+ /**
+ * Format: int64
+ * @description Number of tokens [This field is deprecated]
+ * @example 123
+ */
+ tokens?: number;
+ /**
+ * Format: int64
+ * @description Number of datasources being indexed
+ * @example 123
+ */
+ total_datasources?: number;
+ /**
+ * Format: uint64
+ * @description Total Tokens Consumed By the Indexing Job
+ * @example 12345
+ */
+ total_tokens?: string;
+ /**
+ * Format: date-time
+ * @description Last modified
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ /**
+ * @description Unique id
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ };
+ /** @description Configuration for cross-encoder reranking during retrieval. */
+ apiRerankingConfiguration: {
+ /**
+ * @description Whether reranking is enabled for retrieval
+ * @example true
+ */
+ enabled?: boolean;
+ /**
+ * @description Reranker model internal name
+ * @example "bge-reranker-v2-m3"
+ */
+ model?: string;
+ };
+ /** @description Knowledgebase Description */
+ apiKnowledgeBase: {
+ /**
+ * Format: date-time
+ * @description Time when the knowledge base was added to the agent
+ * @example 2023-01-01T00:00:00Z
+ */
+ added_to_agent_at?: string;
+ /**
+ * Format: date-time
+ * @description Creation date / time
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ database_id?: string;
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ embedding_model_uuid?: string;
+ /**
+ * @description Whether the knowledge base is public or not
+ * @example true
+ */
+ is_public?: boolean;
+ last_indexing_job?: components["schemas"]["apiIndexingJob"];
+ /**
+ * @description Name of knowledge base
+ * @example example name
+ */
+ name?: string;
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ project_id?: string;
+ /**
+ * @description Region code
+ * @example example string
+ */
+ region?: string;
+ reranking_config?: components["schemas"]["apiRerankingConfiguration"];
+ /**
+ * @description Tags to organize related resources
+ * @example [
+ * "example string"
+ * ]
+ */
+ tags?: string[];
+ /**
+ * Format: date-time
+ * @description Last modified
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ /**
+ * Format: int64
+ * @description Id of user that created the knowledge base
+ * @example 12345
+ */
+ user_id?: string;
+ /**
+ * @description Unique id for knowledge base
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ };
+ /**
+ * @description - AGENT_TEMPLATE_TYPE_STANDARD: The standard agent template
+ * - AGENT_TEMPLATE_TYPE_ONE_CLICK: The one click agent template
+ * @default AGENT_TEMPLATE_TYPE_STANDARD
+ * @example AGENT_TEMPLATE_TYPE_STANDARD
+ * @enum {string}
+ */
+ apiAgentTemplateType: "AGENT_TEMPLATE_TYPE_STANDARD" | "AGENT_TEMPLATE_TYPE_ONE_CLICK";
+ /** @description Represents an AgentTemplate entity */
+ apiAgentTemplate: {
+ /**
+ * Format: date-time
+ * @description The agent template's creation date
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * @description Deprecated - Use summary instead
+ * @example example string
+ */
+ description?: string;
+ /** @description List of guardrails associated with the agent template */
+ guardrails?: components["schemas"]["apiAgentTemplateGuardrail"][];
+ /**
+ * @description Instructions for the agent template
+ * @example example string
+ */
+ instruction?: string;
+ /**
+ * Format: int64
+ * @description The 'k' value for the agent template
+ * @example 123
+ */
+ k?: number;
+ /** @description List of knowledge bases associated with the agent template */
+ knowledge_bases?: components["schemas"]["apiKnowledgeBase"][];
+ /**
+ * @description The long description of the agent template
+ * @example "Enhance your customer service with an AI agent designed to provide consistent, helpful, and accurate support across multiple channels. This template creates an agent that can answer product questions, troubleshoot common issues, process simple requests, and maintain a friendly, on-brand voice throughout customer interactions. Reduce response times, handle routine inquiries efficiently, and ensure your customers feel heard and helped."
+ */
+ long_description?: string;
+ /**
+ * Format: int64
+ * @description The max_tokens setting for the agent template
+ * @example 123
+ */
+ max_tokens?: number;
+ model?: components["schemas"]["apiModel"];
+ /**
+ * @description Name of the agent template
+ * @example example name
+ */
+ name?: string;
+ /**
+ * @description The short description of the agent template
+ * @example "This template has been designed with question-answer and conversational use cases in mind. It comes with validated agent instructions, fine-tuned model settings, and preconfigured guardrails defined for customer support-related use cases."
+ */
+ short_description?: string;
+ /**
+ * @description The summary of the agent template
+ * @example example string
+ */
+ summary?: string;
+ /**
+ * @description List of tags associated with the agent template
+ * @example [
+ * "example string"
+ * ]
+ */
+ tags?: string[];
+ /**
+ * Format: float
+ * @description The temperature setting for the agent template
+ * @example 123
+ */
+ temperature?: number;
+ template_type?: components["schemas"]["apiAgentTemplateType"];
+ /**
+ * Format: float
+ * @description The top_p setting for the agent template
+ * @example 123
+ */
+ top_p?: number;
+ /**
+ * Format: date-time
+ * @description The agent template's last updated date
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ /**
+ * @description Unique id
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ };
+ /** @description A GenAI Agent's configuration */
+ apiAgentPublic: {
+ chatbot?: components["schemas"]["apiChatbot"];
+ /** @description Chatbot identifiers */
+ chatbot_identifiers?: components["schemas"]["apiAgentChatbotIdentifier"][];
+ /**
+ * Format: date-time
+ * @description Creation date / time
+ * @example 2021-01-01T00:00:00Z
+ */
+ created_at?: string;
+ deployment?: components["schemas"]["apiDeployment"];
+ /**
+ * @description Description of agent
+ * @example This is a chatbot that can help you with your questions.
+ */
+ description?: string;
+ /**
+ * @description Instructions to the agent on how to use the route
+ * @example if talking about the weather use this route
+ */
+ if_case?: string;
+ /**
+ * @description Agent instruction. Instructions help your agent to perform its job effectively. See [Write Effective Agent Instructions](https://docs.digitalocean.com/products/genai-platform/concepts/best-practices/#agent-instructions) for best practices.
+ * @example Hello, how can I help you?
+ */
+ instruction?: string;
+ /**
+ * Format: int64
+ * @description How many results should be considered from an attached knowledge base
+ * @example 5
+ */
+ k?: number;
+ /**
+ * Format: int64
+ * @description Specifies the maximum number of tokens the model can process in a single input or output, set as a number between 1 and 512. This determines the length of each response.
+ * @example 100
+ */
+ max_tokens?: number;
+ /** @description MCP (Model Context Protocol) servers attached to this agent */
+ mcp_servers?: components["schemas"]["apiMcpServer"][];
+ model?: components["schemas"]["apiModel"];
+ model_router?: components["schemas"]["apiModelRouter"];
+ /**
+ * @description Agent name
+ * @example My Agent
+ */
+ name?: string;
+ /**
+ * @description The DigitalOcean project ID associated with the agent
+ * @example 12345678-1234-1234-1234-123456789012
+ */
+ project_id?: string;
+ /**
+ * @description Whether the agent should provide in-response citations
+ * @example true
+ */
+ provide_citations?: boolean;
+ /**
+ * @description The reasoning effort for the agent
+ * @example "low"
+ */
+ reasoning_effort?: string;
+ /**
+ * @description Region code
+ * @example "tor1"
+ */
+ region?: string;
+ retrieval_method?: components["schemas"]["apiRetrievalMethod"];
+ /**
+ * Format: date-time
+ * @description Creation of route date / time
+ * @example 2021-01-01T00:00:00Z
+ */
+ route_created_at?: string;
+ /**
+ * Format: uint64
+ * @description Id of user that created the route
+ * @example 12345678
+ */
+ route_created_by?: string;
+ /**
+ * @description Route name
+ * @example Route Name
+ */
+ route_name?: string;
+ /**
+ * @description Route uuid
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ route_uuid?: string;
+ /**
+ * @description A set of abitrary tags to organize your agent
+ * @example [
+ * "example string"
+ * ]
+ */
+ tags?: string[];
+ /**
+ * Format: float
+ * @description Controls the model’s creativity, specified as a number between 0 and 1. Lower values produce more predictable and conservative responses, while higher values encourage creativity and variation.
+ * @example 0.5
+ */
+ temperature?: number;
+ template?: components["schemas"]["apiAgentTemplate"];
+ /**
+ * Format: int64
+ * @description The thinking token budget for Anthropic extended thinking (0 = disabled)
+ * @example 1000
+ */
+ thinking_token_budget?: number;
+ /**
+ * Format: float
+ * @description Defines the cumulative probability threshold for word selection, specified as a number between 0 and 1. Higher values allow for more diverse outputs, while lower values ensure focused and coherent responses.
+ * @example 0.9
+ */
+ top_p?: number;
+ /**
+ * Format: date-time
+ * @description Last modified
+ * @example 2021-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ /**
+ * @description Access your agent under this url
+ * @example https://example.com/agent
+ */
+ url?: string;
+ /**
+ * Format: uint64
+ * @description Id of user that created the agent
+ * @example 12345678
+ */
+ user_id?: string;
+ /**
+ * @description Unique agent id
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ uuid?: string;
+ /**
+ * @description The latest version of the agent
+ * @example example string
+ */
+ version_hash?: string;
+ /**
+ * @description Whether this agent can use the built-in web_fetch tool to retrieve content from public web pages.
+ * @example true
+ */
+ web_fetch_enabled?: boolean;
+ /**
+ * @description Whether this agent can use the built-in web_search tool to search the public web for current information.
+ * @example true
+ */
+ web_search_enabled?: boolean;
+ };
+ /** @description Information about how to reach other pages */
+ apiPages: {
+ /**
+ * @description First page
+ * @example example string
+ */
+ first?: string;
+ /**
+ * @description Last page
+ * @example example string
+ */
+ last?: string;
+ /**
+ * @description Next page
+ * @example example string
+ */
+ next?: string;
+ /**
+ * @description Previous page
+ * @example example string
+ */
+ previous?: string;
+ };
+ /** @description Links to other pages */
+ apiLinks: {
+ pages?: components["schemas"]["apiPages"];
+ };
+ /** @description Meta information about the data set */
+ apiMeta: {
+ /**
+ * Format: int64
+ * @description The current page
+ * @example 123
+ */
+ page?: number;
+ /**
+ * Format: int64
+ * @description Total number of pages
+ * @example 123
+ */
+ pages?: number;
+ /**
+ * Format: int64
+ * @description Total amount of items over all pages
+ * @example 123
+ */
+ total?: number;
+ };
+ /** @description List of Agents */
+ apiListAgentsOutputPublic: {
+ /** @description Agents */
+ agents?: components["schemas"]["apiAgentPublic"][];
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ };
+ /** @description Parameters for Agent Creation */
+ apiCreateAgentInputPublic: {
+ /**
+ * @description Optional Anthropic API key ID to use with Anthropic models
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ anthropic_key_uuid?: string;
+ /**
+ * @description A text description of the agent, not used in inference
+ * @example "My Agent Description"
+ */
+ description?: string;
+ /**
+ * @description Agent instruction. Instructions help your agent to perform its job effectively. See [Write Effective Agent Instructions](https://docs.digitalocean.com/products/genai-platform/concepts/best-practices/#agent-instructions) for best practices.
+ * @example "You are an agent who thinks deeply about the world"
+ */
+ instruction?: string;
+ /**
+ * @description Ids of the knowledge base(s) to attach to the agent
+ * @example [
+ * "example string"
+ * ]
+ */
+ knowledge_base_uuid?: string[];
+ /** @description MCP (Model Context Protocol) servers to attach to the agent */
+ mcp_servers?: components["schemas"]["apiMcpServer"][];
+ /** @example "12345678-1234-1234-1234-123456789012" */
+ model_provider_key_uuid?: string;
+ /** @example "12345678-1234-1234-1234-123456789012" */
+ model_router_uuid?: string;
+ /**
+ * @description Identifier for the foundation model.
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ model_uuid?: string;
+ /**
+ * @description Agent name
+ * @example "My Agent"
+ */
+ name?: string;
+ /**
+ * @description Optional OpenAI API key ID to use with OpenAI models
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ open_ai_key_uuid?: string;
+ /**
+ * @description The id of the DigitalOcean project this agent will belong to
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ project_id?: string;
+ /** @example "low" */
+ reasoning_effort?: string;
+ /**
+ * @description The DigitalOcean region to deploy your agent in
+ * @example "tor1"
+ */
+ region?: string;
+ /** @example "general" */
+ router_preset_slug?: string;
+ /**
+ * @description Agent tag to organize related resources
+ * @example [
+ * "example string"
+ * ]
+ */
+ tags?: string[];
+ /**
+ * Format: int64
+ * @example 123
+ */
+ thinking_token_budget?: number;
+ /**
+ * @description Whether the agent can use the built-in web_fetch tool to retrieve content from public web pages.
+ * @example true
+ */
+ web_fetch_enabled?: boolean;
+ /**
+ * @description Whether the agent can use the built-in web_search tool to search the public web for current information.
+ * @example true
+ */
+ web_search_enabled?: boolean;
+ /**
+ * @description Identifier for the workspace
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ workspace_uuid?: string;
+ };
+ /** @description Anthropic API Key Info */
+ apiAnthropicAPIKeyInfo: {
+ /**
+ * Format: date-time
+ * @description Key creation date
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * Format: uint64
+ * @description Created by user id from DO
+ * @example 12345
+ */
+ created_by?: string;
+ /**
+ * Format: date-time
+ * @description Key deleted date
+ * @example 2023-01-01T00:00:00Z
+ */
+ deleted_at?: string;
+ /**
+ * @description Name
+ * @example example name
+ */
+ name?: string;
+ /**
+ * Format: date-time
+ * @description Key last updated date
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ /**
+ * @description Uuid
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ };
+ /** @description Agent API Key Info */
+ apiAgentAPIKeyInfo: {
+ /**
+ * Format: date-time
+ * @description Creation date
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * Format: uint64
+ * @description Created by
+ * @example 12345
+ */
+ created_by?: string;
+ /**
+ * Format: date-time
+ * @description Deleted date
+ * @example 2023-01-01T00:00:00Z
+ */
+ deleted_at?: string;
+ /**
+ * @description Name
+ * @example example name
+ */
+ name?: string;
+ /** @example example string */
+ secret_key?: string;
+ /**
+ * @description Uuid
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ };
+ /** @description Agent API Key */
+ apiAgentAPIKey: {
+ /**
+ * @description Api key
+ * @example example string
+ */
+ api_key?: string;
+ };
+ /** @description An Agent */
+ apiAgent: {
+ anthropic_api_key?: components["schemas"]["apiAnthropicAPIKeyInfo"];
+ /** @description Api key infos */
+ api_key_infos?: components["schemas"]["apiAgentAPIKeyInfo"][];
+ /** @description Api keys */
+ api_keys?: components["schemas"]["apiAgentAPIKey"][];
+ chatbot?: components["schemas"]["apiChatbot"];
+ /** @description Chatbot identifiers */
+ chatbot_identifiers?: components["schemas"]["apiAgentChatbotIdentifier"][];
+ /** @description Child agents */
+ child_agents?: components["schemas"]["apiAgent"][];
+ /**
+ * @description Whether conversation logs are enabled for the agent
+ * @example true
+ */
+ conversation_logs_enabled?: boolean;
+ /**
+ * Format: date-time
+ * @description Creation date / time
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ deployment?: components["schemas"]["apiDeployment"];
+ /**
+ * @description Description of agent
+ * @example example string
+ */
+ description?: string;
+ functions?: components["schemas"]["apiAgentFunction"][];
+ /** @description The guardrails the agent is attached to */
+ guardrails?: components["schemas"]["apiAgentGuardrail"][];
+ /** @example example string */
+ if_case?: string;
+ /**
+ * @description Agent instruction. Instructions help your agent to perform its job effectively. See [Write Effective Agent Instructions](https://docs.digitalocean.com/products/genai-platform/concepts/best-practices/#agent-instructions) for best practices.
+ * @example example string
+ */
+ instruction?: string;
+ /**
+ * Format: int64
+ * @example 123
+ */
+ k?: number;
+ /** @description Knowledge bases */
+ knowledge_bases?: components["schemas"]["apiKnowledgeBase"][];
+ logging_config?: components["schemas"]["apiAgentLoggingConfig"];
+ /**
+ * Format: int64
+ * @example 123
+ */
+ max_tokens?: number;
+ /** @description MCP (Model Context Protocol) servers attached to this agent */
+ mcp_servers?: components["schemas"]["apiMcpServer"][];
+ model?: components["schemas"]["apiModel"];
+ model_provider_key?: components["schemas"]["apiModelProviderKeyInfo"];
+ model_router?: components["schemas"]["apiModelRouter"];
+ /**
+ * @description Agent name
+ * @example example name
+ */
+ name?: string;
+ openai_api_key?: components["schemas"]["apiOpenAIAPIKeyInfo"];
+ /** @description Parent agents */
+ parent_agents?: components["schemas"]["apiAgent"][];
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ project_id?: string;
+ /**
+ * @description Whether the agent should provide in-response citations
+ * @example true
+ */
+ provide_citations?: boolean;
+ /**
+ * @description The reasoning effort for the agent
+ * @example example string
+ */
+ reasoning_effort?: string;
+ /**
+ * @description Region code
+ * @example example string
+ */
+ region?: string;
+ retrieval_method?: components["schemas"]["apiRetrievalMethod"];
+ /**
+ * Format: date-time
+ * @description Creation of route date / time
+ * @example 2023-01-01T00:00:00Z
+ */
+ route_created_at?: string;
+ /**
+ * Format: uint64
+ * @example 12345
+ */
+ route_created_by?: string;
+ /**
+ * @description Route name
+ * @example example name
+ */
+ route_name?: string;
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ route_uuid?: string;
+ /**
+ * @description Agent tag to organize related resources
+ * @example [
+ * "example string"
+ * ]
+ */
+ tags?: string[];
+ /**
+ * Format: float
+ * @example 123
+ */
+ temperature?: number;
+ template?: components["schemas"]["apiAgentTemplate"];
+ /**
+ * Format: int64
+ * @description The thinking token budget for Anthropic extended thinking (0 = disabled)
+ * @example 123
+ */
+ thinking_token_budget?: number;
+ /**
+ * Format: float
+ * @example 123
+ */
+ top_p?: number;
+ /**
+ * Format: date-time
+ * @description Last modified
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ /**
+ * @description Access your agent under this url
+ * @example example string
+ */
+ url?: string;
+ /**
+ * Format: uint64
+ * @description Id of user that created the agent
+ * @example 12345
+ */
+ user_id?: string;
+ /**
+ * @description Unique agent id
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ /**
+ * @description The latest version of the agent
+ * @example example string
+ */
+ version_hash?: string;
+ /**
+ * @description VPC Egress IPs
+ * @example [
+ * "example string"
+ * ]
+ */
+ vpc_egress_ips?: string[];
+ /** @example "12345678-1234-1234-1234-123456789012" */
+ vpc_uuid?: string;
+ /**
+ * @description Whether this agent can use the built-in web_fetch tool.
+ * @example true
+ */
+ web_fetch_enabled?: boolean;
+ /**
+ * @description Whether this agent can use the built-in web_search tool.
+ * @example true
+ */
+ web_search_enabled?: boolean;
+ workspace?: components["schemas"]["apiWorkspace"];
+ };
+ /** @description Description missing */
+ apiAgentFunction: {
+ /**
+ * @description Api key
+ * @example example string
+ */
+ api_key?: string;
+ /**
+ * Format: date-time
+ * @description Creation date / time
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * Format: uint64
+ * @description Created by user id from DO
+ * @example 12345
+ */
+ created_by?: string;
+ /**
+ * @description Agent description
+ * @example example string
+ */
+ description?: string;
+ /** @example example name */
+ faas_name?: string;
+ /** @example example name */
+ faas_namespace?: string;
+ input_schema?: Record;
+ /**
+ * @description Name
+ * @example example name
+ */
+ name?: string;
+ output_schema?: Record;
+ /**
+ * Format: date-time
+ * @description Last modified
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ /**
+ * @description Download your agent here
+ * @example example string
+ */
+ url?: string;
+ /**
+ * @description Unique id
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ };
+ /**
+ * @default GUARDRAIL_TYPE_UNKNOWN
+ * @example GUARDRAIL_TYPE_UNKNOWN
+ * @enum {string}
+ */
+ apiGuardrailType: "GUARDRAIL_TYPE_UNKNOWN" | "GUARDRAIL_TYPE_JAILBREAK" | "GUARDRAIL_TYPE_SENSITIVE_DATA" | "GUARDRAIL_TYPE_CONTENT_MODERATION";
+ /** @description A Agent Guardrail */
+ apiAgentGuardrail: {
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ agent_uuid?: string;
+ /**
+ * Format: date-time
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /** @example example string */
+ default_response?: string;
+ /** @example example string */
+ description?: string;
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ guardrail_uuid?: string;
+ /** @example true */
+ is_attached?: boolean;
+ /** @example true */
+ is_default?: boolean;
+ metadata?: Record;
+ /** @example example name */
+ name?: string;
+ /**
+ * Format: int32
+ * @example 123
+ */
+ priority?: number;
+ type?: components["schemas"]["apiGuardrailType"];
+ /**
+ * Format: date-time
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ uuid?: string;
+ };
+ apiAgentLoggingConfig: {
+ /**
+ * @description Galileo project identifier
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ galileo_project_id?: string;
+ /**
+ * @description Name of the Galileo project
+ * @example example name
+ */
+ galileo_project_name?: string;
+ /**
+ * @description Whether insights are enabled
+ * @example true
+ */
+ insights_enabled?: boolean;
+ /**
+ * Format: date-time
+ * @description Timestamp when insights were enabled
+ * @example 2023-01-01T00:00:00Z
+ */
+ insights_enabled_at?: string;
+ /**
+ * @description Identifier for the log stream
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ log_stream_id?: string;
+ /**
+ * @description Name of the log stream
+ * @example example name
+ */
+ log_stream_name?: string;
+ };
+ apiModelProviderKeyInfo: {
+ /**
+ * @description API key ID
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ api_key_uuid?: string;
+ /**
+ * Format: date-time
+ * @description Key creation date
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * Format: uint64
+ * @description Created by user id from DO
+ * @example 12345
+ */
+ created_by?: string;
+ /**
+ * Format: date-time
+ * @description Key deleted date
+ * @example 2023-01-01T00:00:00Z
+ */
+ deleted_at?: string;
+ /** @description Models supported by the openAI api key */
+ models?: components["schemas"]["apiModel"][];
+ /**
+ * @description Name of the key
+ * @example example name
+ */
+ name?: string;
+ provider?: components["schemas"]["apiModelProvider"];
+ /**
+ * Format: date-time
+ * @description Key last updated date
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ };
+ /** @description OpenAI API Key Info */
+ apiOpenAIAPIKeyInfo: {
+ /**
+ * Format: date-time
+ * @description Key creation date
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * Format: uint64
+ * @description Created by user id from DO
+ * @example 12345
+ */
+ created_by?: string;
+ /**
+ * Format: date-time
+ * @description Key deleted date
+ * @example 2023-01-01T00:00:00Z
+ */
+ deleted_at?: string;
+ /** @description Models supported by the openAI api key */
+ models?: components["schemas"]["apiModel"][];
+ /**
+ * @description Name
+ * @example example name
+ */
+ name?: string;
+ /**
+ * Format: date-time
+ * @description Key last updated date
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ /**
+ * @description Uuid
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ };
+ /**
+ * @description EvaluationDatasetParadigm is the row/content shape of a dataset, orthogonal to the
+ * surface in EvaluationDatasetType (e.g. a model dataset can be single- or multi-turn).
+ * @default EVALUATION_DATASET_PARADIGM_SINGLE_TURN
+ * @example EVALUATION_DATASET_PARADIGM_SINGLE_TURN
+ * @enum {string}
+ */
+ apiEvaluationDatasetParadigm: "EVALUATION_DATASET_PARADIGM_SINGLE_TURN" | "EVALUATION_DATASET_PARADIGM_MULTI_TURN" | "EVALUATION_DATASET_PARADIGM_CODING" | "EVALUATION_DATASET_PARADIGM_N_PLUS_1";
+ /**
+ * @default EVALUATION_DATASET_TYPE_UNKNOWN
+ * @example EVALUATION_DATASET_TYPE_UNKNOWN
+ * @enum {string}
+ */
+ apiEvaluationDatasetType: "EVALUATION_DATASET_TYPE_UNKNOWN" | "EVALUATION_DATASET_TYPE_MODEL";
+ apiEvaluationDataset: {
+ /**
+ * Format: date-time
+ * @description Time created at.
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * @description Name of the dataset.
+ * @example example name
+ */
+ dataset_name?: string;
+ dataset_paradigm?: components["schemas"]["apiEvaluationDatasetParadigm"];
+ dataset_type?: components["schemas"]["apiEvaluationDatasetType"];
+ /**
+ * @description UUID of the dataset.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ dataset_uuid?: string;
+ /**
+ * Format: uint64
+ * @description The size of the dataset uploaded file in bytes.
+ * @example 12345
+ */
+ file_size?: string;
+ /**
+ * @description Does the dataset have a ground truth column?
+ * @example true
+ */
+ has_ground_truth?: boolean;
+ /**
+ * Format: int64
+ * @description Number of rows in the dataset.
+ * @example 123
+ */
+ row_count?: number;
+ };
+ /**
+ * @description AssociatedModelEvaluationPreset identifies a saved model evaluation preset
+ * that references a metric. Returned alongside custom metrics so the dashboard
+ * can warn that deleting the metric will also delete these presets.
+ */
+ apiAssociatedModelEvaluationPreset: {
+ /**
+ * @description Unique identifier of the saved model evaluation preset that references the metric.
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ eval_preset_uuid?: string;
+ /**
+ * @description Display name of the saved model evaluation preset.
+ * @example "My evaluation preset"
+ */
+ name?: string;
+ };
+ /**
+ * @default METRIC_CATEGORY_UNSPECIFIED
+ * @example METRIC_CATEGORY_UNSPECIFIED
+ * @enum {string}
+ */
+ apiEvaluationMetricCategory: "METRIC_CATEGORY_UNSPECIFIED" | "METRIC_CATEGORY_CORRECTNESS" | "METRIC_CATEGORY_USER_OUTCOMES" | "METRIC_CATEGORY_SAFETY_AND_SECURITY" | "METRIC_CATEGORY_CONTEXT_QUALITY" | "METRIC_CATEGORY_MODEL_FIT" | "METRIC_CATEGORY_CONVERSATIONAL";
+ /**
+ * @description Whether the metric is for single-turn or multi-turn evaluations.
+ * @default EVALUATION_METRIC_TURN_TYPE_UNSPECIFIED
+ * @example EVALUATION_METRIC_TURN_TYPE_UNSPECIFIED
+ * @enum {string}
+ */
+ apiEvaluationMetricTurnType: "EVALUATION_METRIC_TURN_TYPE_UNSPECIFIED" | "EVALUATION_METRIC_TURN_TYPE_SINGLE_TURN" | "EVALUATION_METRIC_TURN_TYPE_MULTI_TURN";
+ /**
+ * @description Configuration for a custom model-evaluation metric scored by an LLM judge.
+ * Prompt and model response are always included in the judge context.
+ */
+ apiCustomEvaluationMetricConfig: {
+ /**
+ * Format: date-time
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * Format: date-time
+ * @description When set, the custom metric is soft-deleted and must not appear in pickers.
+ * @example 2023-01-01T00:00:00Z
+ */
+ deleted_at?: string;
+ /**
+ * @description When true, each row must provide ground truth and it is included in the judge context.
+ * When false, ground truth is not required and is not sent to the judge.
+ * @example true
+ */
+ requires_ground_truth?: boolean;
+ /**
+ * @description Instructions for the judge model (multi-line).
+ * @example example string
+ */
+ scoring_prompt?: string;
+ turn_type?: components["schemas"]["apiEvaluationMetricTurnType"];
+ /**
+ * Format: date-time
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ };
+ /**
+ * @description Scope that determines whether a metric belongs to agent evaluation or model evaluation.
+ * For backwards compatibility, UNSPECIFIED defaults to agent metrics only in list operations.
+ * @default EVALUATION_SCOPE_UNSPECIFIED
+ * @example EVALUATION_SCOPE_UNSPECIFIED
+ * @enum {string}
+ */
+ apiEvaluationScope: "EVALUATION_SCOPE_UNSPECIFIED" | "EVALUATION_SCOPE_AGENT" | "EVALUATION_SCOPE_MODEL";
+ /**
+ * @default METRIC_TYPE_UNSPECIFIED
+ * @example METRIC_TYPE_UNSPECIFIED
+ * @enum {string}
+ */
+ apiEvaluationMetricType: "METRIC_TYPE_UNSPECIFIED" | "METRIC_TYPE_GENERAL_QUALITY" | "METRIC_TYPE_RAG_AND_TOOL" | "METRIC_TYPE_MODEL_QUALITY" | "METRIC_TYPE_MODEL_SAFETY";
+ /**
+ * @default METRIC_VALUE_TYPE_UNSPECIFIED
+ * @example METRIC_VALUE_TYPE_UNSPECIFIED
+ * @enum {string}
+ */
+ apiEvaluationMetricValueType: "METRIC_VALUE_TYPE_UNSPECIFIED" | "METRIC_VALUE_TYPE_NUMBER" | "METRIC_VALUE_TYPE_STRING" | "METRIC_VALUE_TYPE_PERCENTAGE";
+ /**
+ * @description Distinguishes platform catalog metrics from user-defined LLM-as-judge metrics.
+ * @default EVALUATION_METRIC_SOURCE_UNSPECIFIED
+ * @example EVALUATION_METRIC_SOURCE_UNSPECIFIED
+ * @enum {string}
+ */
+ apiEvaluationMetricSource: "EVALUATION_METRIC_SOURCE_UNSPECIFIED" | "EVALUATION_METRIC_SOURCE_BUILTIN" | "EVALUATION_METRIC_SOURCE_CUSTOM";
+ apiEvaluationMetric: {
+ /**
+ * @description Saved model evaluation presets that reference this metric. Populated for
+ * custom metrics when listing metrics so the dashboard can warn that deleting
+ * the metric will also delete these presets. Empty for built-in metrics.
+ */
+ associated_presets?: components["schemas"]["apiAssociatedModelEvaluationPreset"][];
+ category?: components["schemas"]["apiEvaluationMetricCategory"];
+ custom_eval_config?: components["schemas"]["apiCustomEvaluationMetricConfig"];
+ /** @example example string */
+ description?: string;
+ evaluation_scope?: components["schemas"]["apiEvaluationScope"];
+ /**
+ * @description If true, the metric is inverted, meaning that a lower value is better.
+ * @example true
+ */
+ inverted?: boolean;
+ /** @example true */
+ is_metric_goal?: boolean;
+ /** @example example name */
+ metric_name?: string;
+ /**
+ * Format: int64
+ * @example 123
+ */
+ metric_rank?: number;
+ metric_type?: components["schemas"]["apiEvaluationMetricType"];
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ metric_uuid?: string;
+ metric_value_type?: components["schemas"]["apiEvaluationMetricValueType"];
+ /**
+ * Format: float
+ * @description The maximum value for the metric.
+ * @example 123
+ */
+ range_max?: number;
+ /**
+ * Format: float
+ * @description The minimum value for the metric.
+ * @example 123
+ */
+ range_min?: number;
+ source?: components["schemas"]["apiEvaluationMetricSource"];
+ turn_type?: components["schemas"]["apiEvaluationMetricTurnType"];
+ };
+ apiStarMetric: {
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ metric_uuid?: string;
+ /** @example example name */
+ name?: string;
+ /**
+ * Format: float
+ * @description The success threshold for the star metric.
+ * This is a value that the metric must reach to be considered successful.
+ * @example 123
+ */
+ success_threshold?: number;
+ /**
+ * Format: int32
+ * @description The success threshold for the star metric.
+ * This is a percentage value between 0 and 100.
+ * @example 123
+ */
+ success_threshold_pct?: number;
+ };
+ apiEvaluationTestCase: {
+ /**
+ * Format: date-time
+ * @example 2023-01-01T00:00:00Z
+ */
+ archived_at?: string;
+ /**
+ * Format: date-time
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /** @example example@example.com */
+ created_by_user_email?: string;
+ /**
+ * Format: uint64
+ * @example 12345
+ */
+ created_by_user_id?: string;
+ dataset?: components["schemas"]["apiEvaluationDataset"];
+ /** @example example name */
+ dataset_name?: string;
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ dataset_uuid?: string;
+ /** @example example string */
+ description?: string;
+ /**
+ * Format: int32
+ * @example 123
+ */
+ latest_version_number_of_runs?: number;
+ metrics?: components["schemas"]["apiEvaluationMetric"][];
+ /** @example example name */
+ name?: string;
+ star_metric?: components["schemas"]["apiStarMetric"];
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ test_case_uuid?: string;
+ /**
+ * Format: int32
+ * @example 123
+ */
+ total_runs?: number;
+ /**
+ * Format: date-time
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ /** @example example@example.com */
+ updated_by_user_email?: string;
+ /**
+ * Format: uint64
+ * @example 12345
+ */
+ updated_by_user_id?: string;
+ /**
+ * Format: int64
+ * @example 123
+ */
+ version?: number;
+ };
+ apiWorkspace: {
+ /** @description Agents */
+ agents?: components["schemas"]["apiAgent"][];
+ /**
+ * Format: date-time
+ * @description Creation date
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * Format: uint64
+ * @description The id of user who created this workspace
+ * @example 12345
+ */
+ created_by?: string;
+ /**
+ * @description The email of the user who created this workspace
+ * @example example@example.com
+ */
+ created_by_email?: string;
+ /**
+ * Format: date-time
+ * @description Deleted date
+ * @example 2023-01-01T00:00:00Z
+ */
+ deleted_at?: string;
+ /**
+ * @description Description of the workspace
+ * @example example string
+ */
+ description?: string;
+ /** @description Evaluations */
+ evaluation_test_cases?: components["schemas"]["apiEvaluationTestCase"][];
+ /**
+ * @description Name of the workspace
+ * @example example name
+ */
+ name?: string;
+ /**
+ * Format: date-time
+ * @description Update date
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ /**
+ * @description Unique id
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ };
+ /** @description Information about a newly created Agent */
+ apiCreateAgentOutput: {
+ agent?: components["schemas"]["apiAgent"];
+ };
+ apiListAgentAPIKeysOutput: {
+ /** @description Api key infos */
+ api_key_infos?: components["schemas"]["apiAgentAPIKeyInfo"][];
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ };
+ apiCreateAgentAPIKeyInputPublic: {
+ /**
+ * @description Agent id
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ agent_uuid?: string;
+ /**
+ * @description A human friendly name to identify the key
+ * @example Production Key
+ */
+ name?: string;
+ };
+ apiCreateAgentAPIKeyOutput: {
+ api_key_info?: components["schemas"]["apiAgentAPIKeyInfo"];
+ };
+ apiUpdateAgentAPIKeyInputPublic: {
+ /**
+ * @description Agent id
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ agent_uuid?: string;
+ /**
+ * @description API key ID
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ api_key_uuid?: string;
+ /**
+ * @description Name
+ * @example "Production Key"
+ */
+ name?: string;
+ };
+ apiUpdateAgentAPIKeyOutput: {
+ api_key_info?: components["schemas"]["apiAgentAPIKeyInfo"];
+ };
+ apiDeleteAgentAPIKeyOutput: {
+ api_key_info?: components["schemas"]["apiAgentAPIKeyInfo"];
+ };
+ apiRegenerateAgentAPIKeyOutput: {
+ api_key_info?: components["schemas"]["apiAgentAPIKeyInfo"];
+ };
+ /** @description Information for a agent function link */
+ apiLinkAgentFunctionInputPublic: {
+ /**
+ * @description Agent id
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ agent_uuid?: string;
+ /**
+ * @description Function description
+ * @example "My Function Description"
+ */
+ description?: string;
+ /**
+ * @description The name of the function in the DigitalOcean functions platform
+ * @example "my-function"
+ */
+ faas_name?: string;
+ /**
+ * @description The namespace of the function in the DigitalOcean functions platform
+ * @example "default"
+ */
+ faas_namespace?: string;
+ /**
+ * @description Function name
+ * @example "My Function"
+ */
+ function_name?: string;
+ /** @description Describe the input schema for the function so the agent may call it */
+ input_schema?: Record;
+ /** @description Describe the output schema for the function so the agent handle its response */
+ output_schema?: Record;
+ };
+ /** @description Information about a newly function linked agent */
+ apiLinkAgentFunctionOutput: {
+ agent?: components["schemas"]["apiAgent"];
+ };
+ /** @description Information about updating an agent function */
+ apiUpdateAgentFunctionInputPublic: {
+ /**
+ * @description Agent id
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ agent_uuid?: string;
+ /**
+ * @description Funciton description
+ * @example "My Function Description"
+ */
+ description?: string;
+ /**
+ * @description The name of the function in the DigitalOcean functions platform
+ * @example "my-function"
+ */
+ faas_name?: string;
+ /**
+ * @description The namespace of the function in the DigitalOcean functions platform
+ * @example "default"
+ */
+ faas_namespace?: string;
+ /**
+ * @description Function name
+ * @example "My Function"
+ */
+ function_name?: string;
+ /**
+ * @description Function id
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ function_uuid?: string;
+ /** @description Describe the input schema for the function so the agent may call it */
+ input_schema?: Record;
+ /** @description Describe the output schema for the function so the agent handle its response */
+ output_schema?: Record;
+ };
+ /** @description The updated agent */
+ apiUpdateAgentFunctionOutput: {
+ agent?: components["schemas"]["apiAgent"];
+ };
+ /** @description Information about a newly unlinked agent */
+ apiUnlinkAgentFunctionOutput: {
+ agent?: components["schemas"]["apiAgent"];
+ };
+ apiAgentGuardrailInput: {
+ /**
+ * @description Guardrail uuid
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ guardrail_uuid?: string;
+ /**
+ * Format: int64
+ * @description Priority of the guardrail
+ * @example 123
+ */
+ priority?: number;
+ };
+ /** @description Information about linking an agent to a guardrail */
+ apiLinkAgentGuardrailsInputPublic: {
+ /**
+ * @description The UUID of the agent.
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ agent_uuid?: string;
+ /** @description The list of guardrails to attach. */
+ guardrails?: components["schemas"]["apiAgentGuardrailInput"][];
+ };
+ /** @description Information about an updated agent */
+ apiLinkAgentGuardrailOutput: {
+ agent?: components["schemas"]["apiAgent"];
+ };
+ /** @description UnlinkAgentGuardrailOutput description */
+ apiUnlinkAgentGuardrailOutput: {
+ agent?: components["schemas"]["apiAgent"];
+ };
+ /** @description Information about a linked knowledge base */
+ apiLinkKnowledgeBaseOutput: {
+ agent?: components["schemas"]["apiAgent"];
+ };
+ /** @description Informatinon about a unlinked knowledge base */
+ apiUnlinkKnowledgeBaseOutput: {
+ agent?: components["schemas"]["apiAgent"];
+ };
+ /** @description Information about updating the linkage of an agent */
+ apiUpdateLinkedAgentInputPublic: {
+ /**
+ * @description Routed agent id
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ child_agent_uuid?: string;
+ /**
+ * @description Describes the case in which the child agent should be used
+ * @example "use this to get weather information"
+ */
+ if_case?: string;
+ /**
+ * @description A unique identifier for the parent agent.
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ parent_agent_uuid?: string;
+ /**
+ * @description Route name
+ * @example "weather_route"
+ */
+ route_name?: string;
+ /**
+ * @description Unique id of linkage
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ uuid?: string;
+ };
+ /** @description Information about an updated linkage */
+ apiUpdateLinkedAgentOutput: {
+ /**
+ * @description Routed agent id
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ child_agent_uuid?: string;
+ /**
+ * @description A unique identifier for the parent agent.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ parent_agent_uuid?: string;
+ /** @example true */
+ rollback?: boolean;
+ /**
+ * @description Unique id of linkage
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ };
+ /** @description Information for linking an agent */
+ apiLinkAgentInputPublic: {
+ /**
+ * @description Routed agent id
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ child_agent_uuid?: string;
+ /** @example "use this to get weather information" */
+ if_case?: string;
+ /**
+ * @description A unique identifier for the parent agent.
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ parent_agent_uuid?: string;
+ /**
+ * @description Name of route
+ * @example "weather_route"
+ */
+ route_name?: string;
+ };
+ /** @description Information about a newly linked agent */
+ apiLinkAgentOutput: {
+ /**
+ * @description Routed agent id
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ child_agent_uuid?: string;
+ /**
+ * @description A unique identifier for the parent agent.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ parent_agent_uuid?: string;
+ };
+ /** @description Information about a removed linkage */
+ apiUnlinkAgentOutput: {
+ /**
+ * @description Routed agent id
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ child_agent_uuid?: string;
+ /**
+ * @description Pagent agent id
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ parent_agent_uuid?: string;
+ };
+ /** @description One Agent */
+ apiGetAgentOutput: {
+ agent?: components["schemas"]["apiAgent"];
+ };
+ /** @description Data to modify an existing Agent */
+ apiUpdateAgentInputPublic: {
+ /** @example true */
+ agent_log_insights_enabled?: boolean;
+ /**
+ * @description Optional list of allowed domains for the chatbot - Must use fully qualified domain name (FQDN) such as https://example.com
+ * @example [
+ * "example string"
+ * ]
+ */
+ allowed_domains?: string[];
+ /**
+ * @description Optional anthropic key uuid for use with anthropic models
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ anthropic_key_uuid?: string;
+ /**
+ * @description When true, removes all MCP servers from the agent. Use this instead of sending an empty mcp_servers array.
+ * @example true
+ */
+ clear_mcp_servers?: boolean;
+ /**
+ * @description Optional update of conversation logs enabled
+ * @example true
+ */
+ conversation_logs_enabled?: boolean;
+ /**
+ * @description Agent description
+ * @example "My Agent Description"
+ */
+ description?: string;
+ /**
+ * @description Agent instruction. Instructions help your agent to perform its job effectively. See [Write Effective Agent Instructions](https://docs.digitalocean.com/products/genai-platform/concepts/best-practices/#agent-instructions) for best practices.
+ * @example "You are an agent who thinks deeply about the world"
+ */
+ instruction?: string;
+ /**
+ * Format: int64
+ * @description How many results should be considered from an attached knowledge base
+ * @example 5
+ */
+ k?: number;
+ /**
+ * Format: int64
+ * @description Specifies the maximum number of tokens the model can process in a single input or output, set as a number between 1 and 512. This determines the length of each response.
+ * @example 100
+ */
+ max_tokens?: number;
+ /** @description MCP (Model Context Protocol) servers to attach to the agent */
+ mcp_servers?: components["schemas"]["apiMcpServer"][];
+ /**
+ * @description Optional Model Provider uuid for use with provider models
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ model_provider_key_uuid?: string;
+ /** @example "12345678-1234-1234-1234-123456789012" */
+ model_router_uuid?: string;
+ /**
+ * @description Identifier for the foundation model.
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ model_uuid?: string;
+ /**
+ * @description Agent name
+ * @example "My New Agent Name"
+ */
+ name?: string;
+ /**
+ * @description Optional OpenAI key uuid for use with OpenAI models
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ open_ai_key_uuid?: string;
+ /**
+ * @description The id of the DigitalOcean project this agent will belong to
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ project_id?: string;
+ /** @example true */
+ provide_citations?: boolean;
+ /** @example "low" */
+ reasoning_effort?: string;
+ retrieval_method?: components["schemas"]["apiRetrievalMethod"];
+ /** @example "general" */
+ router_preset_slug?: string;
+ /**
+ * @description A set of abitrary tags to organize your agent
+ * @example [
+ * "example string"
+ * ]
+ */
+ tags?: string[];
+ /**
+ * Format: float
+ * @description Controls the model’s creativity, specified as a number between 0 and 1. Lower values produce more predictable and conservative responses, while higher values encourage creativity and variation.
+ * @example 0.7
+ */
+ temperature?: number;
+ /**
+ * Format: int64
+ * @example 123
+ */
+ thinking_token_budget?: number;
+ /**
+ * Format: float
+ * @description Defines the cumulative probability threshold for word selection, specified as a number between 0 and 1. Higher values allow for more diverse outputs, while lower values ensure focused and coherent responses.
+ * @example 0.9
+ */
+ top_p?: number;
+ /**
+ * @description Unique agent id
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ uuid?: string;
+ /**
+ * @description Optional. Set to true to let the agent use the built-in web_fetch tool to retrieve content from public web pages, or false to disable it.
+ * @example true
+ */
+ web_fetch_enabled?: boolean;
+ /**
+ * @description Optional. Set to true to let the agent use the built-in web_search tool to search the public web for current information, or false to disable it.
+ * @example true
+ */
+ web_search_enabled?: boolean;
+ };
+ /** @description Information about an updated agent */
+ apiUpdateAgentOutput: {
+ agent?: components["schemas"]["apiAgent"];
+ };
+ /** @description Info about a deleted agent */
+ apiDeleteAgentOutput: {
+ agent?: components["schemas"]["apiAgent"];
+ };
+ /** @description Child list for an agent */
+ apiGetChildrenOutput: {
+ /** @description Child agents */
+ children?: components["schemas"]["apiAgent"][];
+ };
+ /** @description UpdateAgentDeploymentVisibilityInputPublic description */
+ apiUpdateAgentDeploymentVisibilityInputPublic: {
+ /**
+ * @description Unique id
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ uuid?: string;
+ visibility?: components["schemas"]["apiDeploymentVisibility"];
+ };
+ /** @description UpdateAgentDeploymentVisbilityOutput description */
+ apiUpdateAgentDeploymentVisbilityOutput: {
+ agent?: components["schemas"]["apiAgent"];
+ };
+ /** @description Usage Measurement Description */
+ apiUsageMeasurement: {
+ /**
+ * Format: int64
+ * @example 123
+ */
+ tokens?: number;
+ /** @example example string */
+ usage_type?: string;
+ };
+ /** @description Resource Usage Description */
+ apiResourceUsage: {
+ measurements?: components["schemas"]["apiUsageMeasurement"][];
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ resource_uuid?: string;
+ /**
+ * Format: date-time
+ * @example 2023-01-01T00:00:00Z
+ */
+ start?: string;
+ /**
+ * Format: date-time
+ * @example 2023-01-01T00:00:00Z
+ */
+ stop?: string;
+ };
+ /** @description Agent usage */
+ apiGetAgentUsageOutput: {
+ log_insights_usage?: components["schemas"]["apiResourceUsage"];
+ usage?: components["schemas"]["apiResourceUsage"];
+ };
+ apiAgentChildRelationshipVerion: {
+ /**
+ * @description Name of the child agent
+ * @example example name
+ */
+ agent_name?: string;
+ /**
+ * @description Child agent unique identifier
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ child_agent_uuid?: string;
+ /**
+ * @description If case
+ * @example example string
+ */
+ if_case?: string;
+ /**
+ * @description Child agent is deleted
+ * @example true
+ */
+ is_deleted?: boolean;
+ /**
+ * @description Route name
+ * @example example name
+ */
+ route_name?: string;
+ };
+ /** @description Function represents a function configuration for an agent */
+ apiAgentFunctionVersion: {
+ /**
+ * @description Description of the function
+ * @example example string
+ */
+ description?: string;
+ /**
+ * @description FaaS name of the function
+ * @example example name
+ */
+ faas_name?: string;
+ /**
+ * @description FaaS namespace of the function
+ * @example example name
+ */
+ faas_namespace?: string;
+ /**
+ * @description Whether the function is deleted
+ * @example true
+ */
+ is_deleted?: boolean;
+ /**
+ * @description Name of the function
+ * @example example name
+ */
+ name?: string;
+ };
+ /** @description Agent Guardrail version */
+ apiAgentGuardrailVersion: {
+ /**
+ * @description Whether the guardrail is deleted
+ * @example true
+ */
+ is_deleted?: boolean;
+ /**
+ * @description Guardrail Name
+ * @example example name
+ */
+ name?: string;
+ /**
+ * Format: int64
+ * @description Guardrail Priority
+ * @example 123
+ */
+ priority?: number;
+ /**
+ * @description Guardrail UUID
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ };
+ apiAgentKnowledgeBaseVersion: {
+ /**
+ * @description Deletet at date / time
+ * @example true
+ */
+ is_deleted?: boolean;
+ /**
+ * @description Name of the knowledge base
+ * @example example name
+ */
+ name?: string;
+ /**
+ * @description Unique id of the knowledge base
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ };
+ /** @description Represents an AgentVersion entity */
+ apiAgentVersion: {
+ /**
+ * @description Uuid of the agent this version belongs to
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ agent_uuid?: string;
+ /** @description List of child agent relationships */
+ attached_child_agents?: components["schemas"]["apiAgentChildRelationshipVerion"][];
+ /** @description List of function versions */
+ attached_functions?: components["schemas"]["apiAgentFunctionVersion"][];
+ /** @description List of guardrail version */
+ attached_guardrails?: components["schemas"]["apiAgentGuardrailVersion"][];
+ /** @description List of knowledge base agent versions */
+ attached_knowledgebases?: components["schemas"]["apiAgentKnowledgeBaseVersion"][];
+ /**
+ * @description Whether the version is able to be rolled back to
+ * @example true
+ */
+ can_rollback?: boolean;
+ /**
+ * Format: date-time
+ * @description Creation date
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * @description User who created this version
+ * @example example@example.com
+ */
+ created_by_email?: string;
+ /**
+ * @description Whether this is the currently applied configuration
+ * @example true
+ */
+ currently_applied?: boolean;
+ /**
+ * @description Description of the agent
+ * @example example string
+ */
+ description?: string;
+ /**
+ * Format: uint64
+ * @description Unique identifier
+ * @example 12345
+ */
+ id?: string;
+ /**
+ * @description Instruction for the agent
+ * @example example string
+ */
+ instruction?: string;
+ /**
+ * Format: int64
+ * @description K value for the agent's configuration
+ * @example 123
+ */
+ k?: number;
+ /**
+ * Format: int64
+ * @description Max tokens setting for the agent
+ * @example 123
+ */
+ max_tokens?: number;
+ /**
+ * @description Name of model associated to the agent version
+ * @example example name
+ */
+ model_name?: string;
+ /**
+ * @description Name of the agent
+ * @example example name
+ */
+ name?: string;
+ /**
+ * @description Whether the agent should provide in-response citations
+ * @example true
+ */
+ provide_citations?: boolean;
+ retrieval_method?: components["schemas"]["apiRetrievalMethod"];
+ /**
+ * @description Tags associated with the agent
+ * @example [
+ * "example string"
+ * ]
+ */
+ tags?: string[];
+ /**
+ * Format: float
+ * @description Temperature setting for the agent
+ * @example 123
+ */
+ temperature?: number;
+ /**
+ * Format: float
+ * @description Top_p setting for the agent
+ * @example 123
+ */
+ top_p?: number;
+ /**
+ * @description Action triggering the configuration update
+ * @example example string
+ */
+ trigger_action?: string;
+ /**
+ * @description Version hash
+ * @example example string
+ */
+ version_hash?: string;
+ };
+ /** @description List of agent versions */
+ apiListAgentVersionsOutput: {
+ /** @description Agents */
+ agent_versions?: components["schemas"]["apiAgentVersion"][];
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ };
+ apiRollbackToAgentVersionInputPublic: {
+ /**
+ * @description Agent unique identifier
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ uuid?: string;
+ /**
+ * @description Unique identifier
+ * @example c3658d8b5c05494cd03ce042926ef08157889ed54b1b74b5ee0b3d66dcee4b73
+ */
+ version_hash?: string;
+ };
+ /** @description An alternative way to provide auth information. for internal use only. */
+ apiAuditHeader: {
+ /**
+ * Format: uint64
+ * @example 12345
+ */
+ actor_id?: string;
+ /** @example example string */
+ actor_ip?: string;
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ actor_uuid?: string;
+ /** @example example string */
+ context_urn?: string;
+ /** @example example string */
+ origin_application?: string;
+ /**
+ * Format: uint64
+ * @example 12345
+ */
+ user_id?: string;
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ user_uuid?: string;
+ };
+ apiRollbackToAgentVersionOutput: {
+ audit_header?: components["schemas"]["apiAuditHeader"];
+ /**
+ * @description Unique identifier
+ * @example example string
+ */
+ version_hash?: string;
+ };
+ /** @description ListAnthropicAPIKeysOutput is used to return the list of Anthropic API keys for a specific agent. */
+ apiListAnthropicAPIKeysOutput: {
+ /** @description Api key infos */
+ api_key_infos?: components["schemas"]["apiAnthropicAPIKeyInfo"][];
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ };
+ /** @description CreateAnthropicAPIKeyInputPublic is used to create a new Anthropic API key for a specific agent. */
+ apiCreateAnthropicAPIKeyInputPublic: {
+ /**
+ * @description Anthropic API key
+ * @example "sk-ant-12345678901234567890123456789012"
+ */
+ api_key?: string;
+ /**
+ * @description Name of the key
+ * @example "Production Key"
+ */
+ name?: string;
+ };
+ /** @description CreateAnthropicAPIKeyOutput is used to return the newly created Anthropic API key. */
+ apiCreateAnthropicAPIKeyOutput: {
+ api_key_info?: components["schemas"]["apiAnthropicAPIKeyInfo"];
+ };
+ apiGetAnthropicAPIKeyOutput: {
+ api_key_info?: components["schemas"]["apiAnthropicAPIKeyInfo"];
+ };
+ /** @description UpdateAnthropicAPIKeyInputPublic is used to update an existing Anthropic API key for a specific agent. */
+ apiUpdateAnthropicAPIKeyInputPublic: {
+ /**
+ * @description Anthropic API key
+ * @example "sk-ant-12345678901234567890123456789012"
+ */
+ api_key?: string;
+ /**
+ * @description API key ID
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ api_key_uuid?: string;
+ /**
+ * @description Name of the key
+ * @example "Production Key"
+ */
+ name?: string;
+ };
+ /** @description UpdateAnthropicAPIKeyOutput is used to return the updated Anthropic API key. */
+ apiUpdateAnthropicAPIKeyOutput: {
+ api_key_info?: components["schemas"]["apiAnthropicAPIKeyInfo"];
+ };
+ /** @description DeleteAnthropicAPIKeyOutput is used to return the deleted Anthropic API key. */
+ apiDeleteAnthropicAPIKeyOutput: {
+ api_key_info?: components["schemas"]["apiAnthropicAPIKeyInfo"];
+ };
+ /** @description List of Agents that linked to a specific Anthropic Key */
+ apiListAgentsByAnthropicKeyOutput: {
+ agents?: components["schemas"]["apiAgent"][];
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ };
+ /** @description Endpoint URLs for a dedicated inference deployment associated with a custom model. */
+ CustomModelActiveDeploymentEndpoints: {
+ /**
+ * @description Private FQDN for the deployment
+ * @example example string
+ */
+ private_endpoint_fqdn?: string;
+ /**
+ * @description Public FQDN for the deployment
+ * @example example string
+ */
+ public_endpoint_fqdn?: string;
+ };
+ /** @description An active dedicated inference deployment using this custom model. */
+ CustomModelActiveDeployment: {
+ /**
+ * @description RFC 3339 timestamp indicating when the dedicated inference deployment was created
+ * @example example string
+ */
+ created_at?: string;
+ endpoints?: components["schemas"]["CustomModelActiveDeploymentEndpoints"];
+ /**
+ * @description Unique identifier (UUID) of the dedicated inference deployment
+ * @example example string
+ */
+ id?: string;
+ /**
+ * @description Human-readable name of the dedicated inference deployment
+ * @example example name
+ */
+ name?: string;
+ /**
+ * @description Slug of the region where the dedicated inference deployment is running (e.g. "atl1")
+ * @example example string
+ */
+ region_slug?: string;
+ /**
+ * @description Current lifecycle state of the dedicated inference deployment (e.g. "ACTIVE", "PROVISIONING")
+ * @example example string
+ */
+ state?: string;
+ /**
+ * @description RFC 3339 timestamp indicating when the dedicated inference deployment was last updated
+ * @example 2023-01-01
+ */
+ updated_at?: string;
+ };
+ /**
+ * @description Access level required for the model repository
+ * @default ACCESS_TYPE_UNSPECIFIED
+ * @example ACCESS_TYPE_UNSPECIFIED
+ * @enum {string}
+ */
+ SourceRefAccessType: "ACCESS_TYPE_UNSPECIFIED" | "ACCESS_TYPE_PUBLIC" | "ACCESS_TYPE_PRIVATE" | "ACCESS_TYPE_GATED";
+ /** @description Reference to the original source of the model */
+ CustomModelSourceRef: {
+ access_type?: components["schemas"]["SourceRefAccessType"];
+ /**
+ * @description Spaces bucket name
+ * @example example string
+ */
+ bucket?: string;
+ /**
+ * @description Git commit SHA of the model version
+ * @example example string
+ */
+ commit_sha?: string;
+ /**
+ * @description User-provided HuggingFace token for gated/private models (not persisted in source_ref)
+ * @example example string
+ */
+ hf_token?: string;
+ /**
+ * @description Object prefix path in the bucket
+ * @example example string
+ */
+ prefix?: string;
+ /**
+ * @description Spaces bucket region
+ * @example example string
+ */
+ region?: string;
+ /**
+ * @description Huggingface repository identifier
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ repo_id?: string;
+ };
+ /**
+ * @description Source from which the model was imported
+ * @default SOURCE_TYPE_UNSPECIFIED
+ * @example SOURCE_TYPE_UNSPECIFIED
+ * @enum {string}
+ */
+ CustomModelSourceType: "SOURCE_TYPE_UNSPECIFIED" | "SOURCE_TYPE_HUGGINGFACE" | "SOURCE_TYPE_SPACES_BUCKET" | "SOURCE_TYPE_SDK_UPLOAD" | "SOURCE_TYPE_FINE_TUNING";
+ /**
+ * @description Import and deployment status of the custom model
+ * @default STATUS_UNSPECIFIED
+ * @example STATUS_UNSPECIFIED
+ * @enum {string}
+ */
+ apiCustomModelStatus: "STATUS_UNSPECIFIED" | "STATUS_IMPORTING" | "STATUS_READY" | "STATUS_FAILED" | "STATUS_DELETED";
+ /** @description User-defined tags for organizing models */
+ CustomModelTags: {
+ /**
+ * @description List of tag strings
+ * @example [
+ * "example string"
+ * ]
+ */
+ tags?: string[];
+ };
+ /** @description Custom model - user-imported model from HuggingFace, Spaces, etc. */
+ apiCustomModel: {
+ /** @description List of active deployments using this model */
+ active_deployments?: components["schemas"]["CustomModelActiveDeployment"][];
+ /**
+ * @description Model architecture type (free-form string from config.json)
+ * @example example string
+ */
+ architecture?: string;
+ /** @description Raw config.json contents from the model repository */
+ config_json?: Record;
+ /**
+ * Format: int64
+ * @description Maximum context length supported by the model
+ * @example 123
+ */
+ context_length?: number;
+ /**
+ * Format: int64
+ * @description Estimated monthly cost in dollars for hosting
+ * @example 123
+ */
+ cost_estimate_per_month?: number;
+ /**
+ * Format: date-time
+ * @description Timestamp when the model was created
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * @description Description of the custom model
+ * @example example string
+ */
+ description?: string;
+ /**
+ * @description User-facing reason the most recent import failed; empty otherwise.
+ * @example example string
+ */
+ error_message?: string;
+ /**
+ * Format: int64
+ * @description Number of files in the model
+ * @example 123
+ */
+ file_count?: number;
+ /**
+ * @description Input modalities supported (e.g., text, image)
+ * @example [
+ * "example string"
+ * ]
+ */
+ input_modalities?: string[];
+ /**
+ * @description License under which the model is distributed
+ * @example example string
+ */
+ license?: string;
+ /**
+ * @description Name of the custom model
+ * @example example name
+ */
+ name?: string;
+ /**
+ * @description Output modalities supported (e.g., text, image)
+ * @example [
+ * "example string"
+ * ]
+ */
+ output_modalities?: string[];
+ /**
+ * Format: uint64
+ * @description Number of parameters in the model
+ * @example 12345
+ */
+ parameters?: string;
+ source_ref?: components["schemas"]["CustomModelSourceRef"];
+ source_type?: components["schemas"]["CustomModelSourceType"];
+ status?: components["schemas"]["apiCustomModelStatus"];
+ /**
+ * @description Region of the Spaces bucket where model files are stored
+ * @example example string
+ */
+ storage_region?: string;
+ tags?: components["schemas"]["CustomModelTags"];
+ /**
+ * Format: uint64
+ * @description Team that owns the model
+ * @example 12345
+ */
+ team_id?: string;
+ /**
+ * Format: uint64
+ * @description Total size of model files in bytes
+ * @example 12345
+ */
+ total_size_bytes?: string;
+ /**
+ * Format: date-time
+ * @description Timestamp when the model was last updated
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ /**
+ * @description Unique identifier for the custom model
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ };
+ /** @description Response containing a list of custom models (public) */
+ apiListCustomModelsOutputPublic: {
+ links?: components["schemas"]["apiLinks"];
+ /**
+ * Format: int64
+ * @description Maximum number of custom models allowed for this team's tier
+ * @example 123
+ */
+ max_threshold?: number;
+ meta?: components["schemas"]["apiMeta"];
+ /** @description List of custom models */
+ models?: components["schemas"]["apiCustomModel"][];
+ };
+ /** @description Request to import a custom model (public) */
+ apiImportCustomModelInputPublic: {
+ /**
+ * @description Whether the caller accepts storage of their HuggingFace token for gated model access
+ * @example true
+ */
+ accept_hf_token_storage?: boolean;
+ /**
+ * @description Whether the caller accepts the terms and conditions for importing this model
+ * @example true
+ */
+ accept_terms_and_conditions?: boolean;
+ /**
+ * @description Description of the model
+ * @example Production model for customer support
+ */
+ description?: string;
+ /**
+ * @description Name for the imported model
+ * @example my-mistral-7b
+ */
+ name?: string;
+ /**
+ * @description Preferred GPU region for deployment
+ * @example nyc3
+ */
+ preferred_gpu_region?: string;
+ source_ref?: components["schemas"]["CustomModelSourceRef"];
+ source_type?: components["schemas"]["CustomModelSourceType"];
+ tags?: components["schemas"]["CustomModelTags"];
+ };
+ /** @description Import job tracking for a custom model */
+ apiCustomModelImportJob: {
+ /**
+ * Format: uint64
+ * @description Bytes imported so far
+ * @example 12345
+ */
+ bytes_done?: string;
+ /**
+ * Format: uint64
+ * @description Total bytes to import
+ * @example 12345
+ */
+ bytes_total?: string;
+ /**
+ * Format: date-time
+ * @description Timestamp when the import completed
+ * @example 2023-01-01T00:00:00Z
+ */
+ completed_at?: string;
+ /**
+ * Format: date-time
+ * @description Timestamp when the job was created
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * @description Error message if import failed
+ * @example example string
+ */
+ error_message?: string;
+ /**
+ * @description Step at which the error occurred
+ * @example example string
+ */
+ error_step?: string;
+ /**
+ * Format: int64
+ * @description Number of files imported so far
+ * @example 123
+ */
+ files_done?: number;
+ /**
+ * Format: int64
+ * @description Total number of files to import
+ * @example 123
+ */
+ files_total?: number;
+ /**
+ * Format: date-time
+ * @description Timestamp when the import started
+ * @example 2023-01-01T00:00:00Z
+ */
+ started_at?: string;
+ /**
+ * @description Current status of the import job
+ * @example example string
+ */
+ status?: string;
+ /**
+ * @description Unique identifier for the import job
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ };
+ /** @description Validation step result during model import */
+ apiImportValidationStep: {
+ /**
+ * @description Error message if validation failed
+ * @example example string
+ */
+ error?: string;
+ /**
+ * @description Name of the validation step
+ * @example example name
+ */
+ name?: string;
+ /**
+ * @description Whether the validation step passed
+ * @example true
+ */
+ passed?: boolean;
+ };
+ /** @description Response containing imported model details (public) */
+ apiImportCustomModelOutputPublic: {
+ /** @example example string */
+ error?: string;
+ import_job?: components["schemas"]["apiCustomModelImportJob"];
+ model?: components["schemas"]["apiCustomModel"];
+ /** @description Validation steps performed during import */
+ validation_steps?: components["schemas"]["apiImportValidationStep"][];
+ };
+ /** @description Response containing a single custom model (public) */
+ apiGetCustomModelOutputPublic: {
+ model?: components["schemas"]["apiCustomModel"];
+ };
+ /**
+ * @description Status of delete operation
+ * @default DELETE_CUSTOM_MODEL_STATUS_UNSPECIFIED
+ * @example DELETE_CUSTOM_MODEL_STATUS_UNSPECIFIED
+ * @enum {string}
+ */
+ apiDeleteCustomModelStatus: "DELETE_CUSTOM_MODEL_STATUS_UNSPECIFIED" | "DELETE_CUSTOM_MODEL_STATUS_SUCCESS" | "DELETE_CUSTOM_MODEL_STATUS_FAIL";
+ /** @description Response containing delete operation status (public) */
+ apiDeleteCustomModelOutputPublic: {
+ /**
+ * @description Error message if deletion failed
+ * @example example string
+ */
+ error?: string;
+ status?: components["schemas"]["apiDeleteCustomModelStatus"];
+ };
+ /** @description Request to update custom model metadata (public) */
+ apiUpdateCustomModelMetadataInputPublic: {
+ /** @example example string */
+ description?: string;
+ /**
+ * @description Optional new input modalities for the model (replaces existing list when non-empty).
+ * Spaces-imported models only.
+ * @example [
+ * "example string"
+ * ]
+ */
+ input_modalities?: string[];
+ /** @example example string */
+ license?: string;
+ /** @example example name */
+ name?: string;
+ /**
+ * @description Optional new output modalities for the model (replaces existing list when non-empty).
+ * Spaces-imported models only.
+ * @example [
+ * "example string"
+ * ]
+ */
+ output_modalities?: string[];
+ /**
+ * Format: uint64
+ * @example 12345
+ */
+ parameters?: string;
+ tags?: components["schemas"]["CustomModelTags"];
+ /**
+ * @description UUID of the custom model to update
+ * @example a1b2c3d4-...
+ */
+ uuid?: string;
+ };
+ /** @description Response containing the updated custom model (public) */
+ apiUpdateCustomModelMetadataOutputPublic: {
+ model?: components["schemas"]["apiCustomModel"];
+ };
+ /** @description Output for listing evaluation datasets. */
+ apiListEvaluationDatasetsOutput: {
+ /** @description The list of evaluation datasets. */
+ evaluation_datasets?: components["schemas"]["apiEvaluationDataset"][];
+ };
+ /** @description File to upload as data source for knowledge base. */
+ apiFileUploadDataSource: {
+ /**
+ * @description The original file name
+ * @example example name
+ */
+ original_file_name?: string;
+ /**
+ * Format: uint64
+ * @description The size of the file in bytes
+ * @example 12345
+ */
+ size_in_bytes?: string;
+ /**
+ * @description The object key the file was stored as
+ * @example example string
+ */
+ stored_object_key?: string;
+ };
+ /** @description Creates an evaluation dataset for an agent */
+ apiCreateEvaluationDatasetInputPublic: {
+ dataset_paradigm?: components["schemas"]["apiEvaluationDatasetParadigm"];
+ dataset_type?: components["schemas"]["apiEvaluationDatasetType"];
+ file_upload_dataset?: components["schemas"]["apiFileUploadDataSource"];
+ /**
+ * @description The name of the agent evaluation dataset.
+ * @example example name
+ */
+ name?: string;
+ };
+ /** @description Output for creating an agent evaluation dataset */
+ apiCreateEvaluationDatasetOutput: {
+ /**
+ * @description Evaluation dataset uuid.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ evaluation_dataset_uuid?: string;
+ };
+ /** @description A single file’s metadata in the request. */
+ apiPresignedUrlFile: {
+ /**
+ * @description Local filename
+ * @example example name
+ */
+ file_name?: string;
+ /**
+ * Format: int64
+ * @description The size of the file in bytes.
+ * @example 12345
+ */
+ file_size?: string;
+ };
+ /** @description Request for pre-signed URL's to upload files for KB Data Sources */
+ apiCreateDataSourceFileUploadPresignedUrlsInputPublic: {
+ /** @description A list of files to generate presigned URLs for. */
+ files?: components["schemas"]["apiPresignedUrlFile"][];
+ };
+ /** @description Detailed info about each presigned URL returned to the client. */
+ apiFilePresignedUrlResponse: {
+ /**
+ * Format: date-time
+ * @description The time the url expires at.
+ * @example 2023-01-01T00:00:00Z
+ */
+ expires_at?: string;
+ /**
+ * @description The unique object key to store the file as.
+ * @example example string
+ */
+ object_key?: string;
+ /**
+ * @description The original file name.
+ * @example example name
+ */
+ original_file_name?: string;
+ /**
+ * @description The actual presigned URL the client can use to upload the file directly.
+ * @example example string
+ */
+ presigned_url?: string;
+ };
+ /** @description Response with pre-signed urls to upload files. */
+ apiCreateDataSourceFileUploadPresignedUrlsOutput: {
+ /**
+ * @description The ID generated for the request for Presigned URLs.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ request_id?: string;
+ /** @description A list of generated presigned URLs and object keys, one per file. */
+ uploads?: components["schemas"]["apiFilePresignedUrlResponse"][];
+ };
+ /** @description Response for a delete evaluation dataset request. */
+ apiDeleteEvaluationDatasetOutput: Record;
+ /** @description Response containing a presigned download URL for an evaluation dataset. */
+ apiGetEvaluationDatasetDownloadURLOutput: {
+ /**
+ * @description The presigned URL to download the dataset file.
+ * @example example string
+ */
+ download_url?: string;
+ /**
+ * Format: date-time
+ * @description The time the URL expires at.
+ * @example 2023-01-01T00:00:00Z
+ */
+ expires_at?: string;
+ };
+ apiListEvaluationMetricsOutput: {
+ metrics?: components["schemas"]["apiEvaluationMetric"][];
+ };
+ apiCreateCustomEvaluationMetricInputPublic: {
+ config?: components["schemas"]["apiCustomEvaluationMetricConfig"];
+ /** @example "Scores adherence to our support macros" */
+ description?: string;
+ /** @example "My domain tone metric" */
+ metric_name?: string;
+ };
+ apiCreateCustomEvaluationMetricOutput: {
+ metric?: components["schemas"]["apiEvaluationMetric"];
+ };
+ apiUpdateCustomEvaluationMetricInputPublic: {
+ config?: components["schemas"]["apiCustomEvaluationMetricConfig"];
+ /** @example example string */
+ description?: string;
+ /** @example "My domain tone metric" */
+ metric_name?: string;
+ /** @example "12345678-1234-1234-1234-123456789012" */
+ metric_uuid?: string;
+ };
+ apiUpdateCustomEvaluationMetricOutput: {
+ metric?: components["schemas"]["apiEvaluationMetric"];
+ };
+ apiDeleteCustomEvaluationMetricOutput: Record;
+ /** @description Run an evaluation test case. */
+ apiRunEvaluationTestCaseInputPublic: {
+ /**
+ * @description Agent deployment names to run the test case against.
+ * @example [
+ * "example string"
+ * ]
+ */
+ agent_deployment_names?: string[];
+ /**
+ * @description Agent UUIDs to run the test case against (legacy agents).
+ * @example [
+ * "example string"
+ * ]
+ */
+ agent_uuids?: string[];
+ /**
+ * @description The name of the run.
+ * @example Evaluation Run Name
+ */
+ run_name?: string;
+ /**
+ * @description Test-case UUID to run
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ test_case_uuid?: string;
+ };
+ apiRunEvaluationTestCaseOutput: {
+ /**
+ * @example [
+ * "example string"
+ * ]
+ */
+ evaluation_run_uuids?: string[];
+ };
+ /**
+ * @description Outcome of scoring a single metric for one prompt or span.
+ * @default EVALUATION_METRIC_RESULT_STATUS_UNSPECIFIED
+ * @example EVALUATION_METRIC_RESULT_STATUS_UNSPECIFIED
+ * @enum {string}
+ */
+ apiEvaluationMetricResultStatus: "EVALUATION_METRIC_RESULT_STATUS_UNSPECIFIED" | "EVALUATION_METRIC_RESULT_STATUS_COMPLETED" | "EVALUATION_METRIC_RESULT_STATUS_FAILED" | "EVALUATION_METRIC_RESULT_STATUS_SKIPPED";
+ apiEvaluationMetricResult: {
+ /**
+ * @description Error description if the metric could not be calculated.
+ * @example example string
+ */
+ error_description?: string;
+ /**
+ * @description Metric name
+ * @example example name
+ */
+ metric_name?: string;
+ /**
+ * @description Metric UUID (built-in or custom); stable key for results UI and aggregation.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ metric_uuid?: string;
+ metric_value_type?: components["schemas"]["apiEvaluationMetricValueType"];
+ /**
+ * Format: double
+ * @description The value of the metric as a number.
+ * @example 123
+ */
+ number_value?: number;
+ /**
+ * @description Whether the score met the metric's success threshold. Set for model
+ * evaluation results only, and only when status is COMPLETED; omitted
+ * for skipped or failed metrics.
+ * @example true
+ */
+ passed?: boolean;
+ /**
+ * @description Reasoning of the metric result.
+ * @example example string
+ */
+ reasoning?: string;
+ status?: components["schemas"]["apiEvaluationMetricResultStatus"];
+ /**
+ * @description The value of the metric as a string.
+ * @example example string
+ */
+ string_value?: string;
+ };
+ /**
+ * @description Evaluation Run Statuses
+ * @default EVALUATION_RUN_STATUS_UNSPECIFIED
+ * @example EVALUATION_RUN_STATUS_UNSPECIFIED
+ * @enum {string}
+ */
+ apiEvaluationRunStatus: "EVALUATION_RUN_STATUS_UNSPECIFIED" | "EVALUATION_RUN_QUEUED" | "EVALUATION_RUN_RUNNING_DATASET" | "EVALUATION_RUN_EVALUATING_RESULTS" | "EVALUATION_RUN_CANCELLING" | "EVALUATION_RUN_CANCELLED" | "EVALUATION_RUN_SUCCESSFUL" | "EVALUATION_RUN_PARTIALLY_SUCCESSFUL" | "EVALUATION_RUN_FAILED";
+ apiEvaluationRun: {
+ /**
+ * @description Whether agent is deleted
+ * @example true
+ */
+ agent_deleted?: boolean;
+ /**
+ * @description The agent deployment name
+ * @example example name
+ */
+ agent_deployment_name?: string;
+ /**
+ * @description Agent name
+ * @example example name
+ */
+ agent_name?: string;
+ /**
+ * @description Agent UUID.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ agent_uuid?: string;
+ /**
+ * @description Version hash
+ * @example example string
+ */
+ agent_version_hash?: string;
+ /**
+ * @description Agent workspace uuid
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ agent_workspace_uuid?: string;
+ /** @example example@example.com */
+ created_by_user_email?: string;
+ /**
+ * Format: uint64
+ * @example 12345
+ */
+ created_by_user_id?: string;
+ /**
+ * @description The error description
+ * @example example string
+ */
+ error_description?: string;
+ /**
+ * @description Evaluation run UUID.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ evaluation_run_uuid?: string;
+ /**
+ * @description Evaluation test case workspace uuid
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ evaluation_test_case_workspace_uuid?: string;
+ /**
+ * Format: date-time
+ * @description Run end time.
+ * @example 2023-01-01T00:00:00Z
+ */
+ finished_at?: string;
+ /**
+ * @description The pass status of the evaluation run based on the star metric.
+ * @example true
+ */
+ pass_status?: boolean;
+ /**
+ * Format: date-time
+ * @description Run queued time.
+ * @example 2023-01-01T00:00:00Z
+ */
+ queued_at?: string;
+ run_level_metric_results?: components["schemas"]["apiEvaluationMetricResult"][];
+ /**
+ * @description Run name.
+ * @example example name
+ */
+ run_name?: string;
+ star_metric_result?: components["schemas"]["apiEvaluationMetricResult"];
+ /**
+ * Format: date-time
+ * @description Run start time.
+ * @example 2023-01-01T00:00:00Z
+ */
+ started_at?: string;
+ status?: components["schemas"]["apiEvaluationRunStatus"];
+ /**
+ * @description Test case description.
+ * @example example string
+ */
+ test_case_description?: string;
+ /**
+ * @description Test case name.
+ * @example example name
+ */
+ test_case_name?: string;
+ /**
+ * @description Test-case UUID.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ test_case_uuid?: string;
+ /**
+ * Format: int64
+ * @description Test-case-version.
+ * @example 123
+ */
+ test_case_version?: number;
+ };
+ apiGetEvaluationRunOutput: {
+ evaluation_run?: components["schemas"]["apiEvaluationRun"];
+ };
+ apiPromptChunk: {
+ /**
+ * Format: double
+ * @description The usage percentage of the chunk.
+ * @example 123
+ */
+ chunk_usage_pct?: number;
+ /**
+ * @description Indicates if the chunk was used in the prompt.
+ * @example true
+ */
+ chunk_used?: boolean;
+ /**
+ * @description The index uuid (Knowledge Base) of the chunk.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ index_uuid?: string;
+ /**
+ * @description The source name for the chunk, e.g., the file name or document title.
+ * @example example name
+ */
+ source_name?: string;
+ /**
+ * @description Text content of the chunk.
+ * @example example string
+ */
+ text?: string;
+ };
+ /**
+ * @description Agent span
+ * @default AGENT_TYPE_UNSPECIFIED
+ * @example AGENT_TYPE_UNSPECIFIED
+ * @enum {string}
+ */
+ apiAgentType: "AGENT_TYPE_UNSPECIFIED" | "AGENT_TYPE_DEFAULT" | "AGENT_TYPE_PLANNER" | "AGENT_TYPE_REACT" | "AGENT_TYPE_REFLECTION" | "AGENT_TYPE_ROUTER" | "AGENT_TYPE_CLASSIFIER" | "AGENT_TYPE_SUPERVISOR" | "AGENT_TYPE_JUDGE";
+ /** @description Common optional fields shared by all span types */
+ apiSpanCommon: {
+ /**
+ * Format: date-time
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * Format: int64
+ * @example 12345
+ */
+ duration_ns?: string;
+ /** @description Arbitrary structured metadata */
+ metadata?: {
+ [key: string]: string;
+ };
+ /**
+ * Format: int32
+ * @example 123
+ */
+ status_code?: number;
+ /**
+ * @description Free-form tags for filtering/grouping
+ * @example [
+ * "example string"
+ * ]
+ */
+ tags?: string[];
+ };
+ /** @description Represents a span within a trace (e.g., LLM call, tool call, etc.) */
+ apiTraceSpan: {
+ agent?: components["schemas"]["apiAgentSpan"];
+ /**
+ * Format: date-time
+ * @description When the span was created
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /** @description Input data for the span (flexible structure - can be messages array, string, etc.) */
+ input?: Record;
+ llm?: components["schemas"]["apiLLMSpan"];
+ /**
+ * @description Name/identifier for the span
+ * @example example name
+ */
+ name?: string;
+ /** @description Output data from the span (flexible structure - can be message, string, etc.) */
+ output?: Record;
+ retriever?: components["schemas"]["apiRetrieverSpan"];
+ tool?: components["schemas"]["apiToolSpan"];
+ type?: components["schemas"]["apiTraceSpanType"];
+ workflow?: components["schemas"]["apiWorkflowSpan"];
+ };
+ apiAgentSpan: {
+ agent_type?: components["schemas"]["apiAgentType"];
+ common?: components["schemas"]["apiSpanCommon"];
+ /** @example example string */
+ redacted_input?: string;
+ /** @example example string */
+ redacted_output?: string;
+ /**
+ * @description Child spans - must contain between 1 and 999 spans
+ * Allowed types: llm, tool, retriever
+ */
+ spans?: components["schemas"]["apiTraceSpan"][];
+ };
+ /** @description LLM span */
+ apiLLMSpan: {
+ common?: components["schemas"]["apiSpanCommon"];
+ /** @example example string */
+ model?: string;
+ /**
+ * Format: int32
+ * @example 123
+ */
+ num_input_tokens?: number;
+ /**
+ * Format: int32
+ * @example 123
+ */
+ num_output_tokens?: number;
+ /**
+ * Format: float
+ * @example 123
+ */
+ temperature?: number;
+ /**
+ * Format: int64
+ * @example 12345
+ */
+ time_to_first_token_ns?: string;
+ /** @description Tool definitions passed to the model */
+ tools?: Record[];
+ /**
+ * Format: int32
+ * @example 123
+ */
+ total_tokens?: number;
+ };
+ /** @description Retriever span */
+ apiRetrieverSpan: {
+ common?: components["schemas"]["apiSpanCommon"];
+ };
+ /** @description Tool span */
+ apiToolSpan: {
+ common?: components["schemas"]["apiSpanCommon"];
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ tool_call_id?: string;
+ };
+ /**
+ * @description Types of spans in a trace
+ * @default TRACE_SPAN_TYPE_UNKNOWN
+ * @example TRACE_SPAN_TYPE_UNKNOWN
+ * @enum {string}
+ */
+ apiTraceSpanType: "TRACE_SPAN_TYPE_UNKNOWN" | "TRACE_SPAN_TYPE_LLM" | "TRACE_SPAN_TYPE_RETRIEVER" | "TRACE_SPAN_TYPE_TOOL" | "TRACE_SPAN_TYPE_AGENT" | "TRACE_SPAN_TYPE_WORKFLOW";
+ /** @description Workflow span - can contain child spans (agent, llm, tool, retriever) */
+ apiWorkflowSpan: {
+ common?: components["schemas"]["apiSpanCommon"];
+ /**
+ * @description Child spans - must contain between 1 and 999 spans
+ * Allowed types: agent, llm, tool, retriever (not workflow)
+ */
+ spans?: components["schemas"]["apiTraceSpan"][];
+ };
+ /** @description Represents a span within an evaluatioin trace (e.g., LLM call, tool call, etc.) */
+ apiEvaluationTraceSpan: {
+ /**
+ * Format: date-time
+ * @description When the span was created
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /** @description Input data for the span (flexible structure - can be messages array, string, etc.) */
+ input?: Record;
+ /**
+ * @description Name/identifier for the span
+ * @example example name
+ */
+ name?: string;
+ /** @description Output data from the span (flexible structure - can be message, string, etc.) */
+ output?: Record;
+ /** @description Any retriever span chunks that were included as part of the span. */
+ retriever_chunks?: components["schemas"]["apiPromptChunk"][];
+ /** @description The span-level metric results. */
+ span_level_metric_results?: components["schemas"]["apiEvaluationMetricResult"][];
+ /**
+ * @description Child spans - must contain between 1 and 999 spans
+ * Allowed types: agent, llm, tool, retriever (not workflow)
+ */
+ spans?: components["schemas"]["apiTraceSpan"][];
+ type?: components["schemas"]["apiTraceSpanType"];
+ };
+ apiPrompt: {
+ /** @description The evaluated trace spans. */
+ evaluation_trace_spans?: components["schemas"]["apiEvaluationTraceSpan"][];
+ /**
+ * @description The ground truth for the prompt.
+ * @example example string
+ */
+ ground_truth?: string;
+ /** @example example string */
+ input?: string;
+ /**
+ * Format: uint64
+ * @description The number of input tokens used in the prompt.
+ * @example 12345
+ */
+ input_tokens?: string;
+ /** @example example string */
+ output?: string;
+ /**
+ * Format: uint64
+ * @description The number of output tokens used in the prompt.
+ * @example 12345
+ */
+ output_tokens?: string;
+ /** @description The list of prompt chunks. */
+ prompt_chunks?: components["schemas"]["apiPromptChunk"][];
+ /**
+ * Format: int64
+ * @description Prompt ID
+ * @example 123
+ */
+ prompt_id?: number;
+ /** @description The metric results for the prompt. */
+ prompt_level_metric_results?: components["schemas"]["apiEvaluationMetricResult"][];
+ /**
+ * @description The trace id for the prompt.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ trace_id?: string;
+ };
+ /** @description Gets the full results of an evaluation run with all prompts. */
+ apiGetEvaluationRunResultsOutput: {
+ evaluation_run?: components["schemas"]["apiEvaluationRun"];
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ /** @description The prompt level results. */
+ prompts?: components["schemas"]["apiPrompt"][];
+ };
+ apiGetEvaluationRunPromptResultsOutput: {
+ prompt?: components["schemas"]["apiPrompt"];
+ };
+ apiListEvaluationTestCasesOutput: {
+ /** @description Alternative way of authentication for internal usage only - should not be exposed to public api */
+ evaluation_test_cases?: components["schemas"]["apiEvaluationTestCase"][];
+ };
+ apiCreateEvaluationTestCaseInputPublic: {
+ /** @example example name */
+ agent_workspace_name?: string;
+ /**
+ * @description Dataset against which the test‑case is executed.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ dataset_uuid?: string;
+ /**
+ * @description Description of the test case.
+ * @example example string
+ */
+ description?: string;
+ /**
+ * @description Full metric list to use for evaluation test case.
+ * @example [
+ * "example string"
+ * ]
+ */
+ metrics?: string[];
+ /**
+ * @description Name of the test case.
+ * @example example name
+ */
+ name?: string;
+ star_metric?: components["schemas"]["apiStarMetric"];
+ /**
+ * @description The workspace uuid.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ workspace_uuid?: string;
+ };
+ apiCreateEvaluationTestCaseOutput: {
+ /**
+ * @description Test‑case UUID.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ test_case_uuid?: string;
+ };
+ apiListEvaluationRunsByTestCaseOutput: {
+ /** @description List of evaluation runs. */
+ evaluation_runs?: components["schemas"]["apiEvaluationRun"][];
+ };
+ apiGetEvaluationTestCaseOutput: {
+ evaluation_test_case?: components["schemas"]["apiEvaluationTestCase"];
+ };
+ apiEvaluationTestCaseMetricList: {
+ /**
+ * @example [
+ * "example string"
+ * ]
+ */
+ metric_uuids?: string[];
+ };
+ apiUpdateEvaluationTestCaseInputPublic: {
+ /**
+ * @description Dataset against which the test‑case is executed.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ dataset_uuid?: string;
+ /**
+ * @description Description of the test case.
+ * @example example string
+ */
+ description?: string;
+ metrics?: components["schemas"]["apiEvaluationTestCaseMetricList"];
+ /**
+ * @description Name of the test case.
+ * @example example name
+ */
+ name?: string;
+ star_metric?: components["schemas"]["apiStarMetric"];
+ /**
+ * @description Test-case UUID to update
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ test_case_uuid?: string;
+ };
+ apiUpdateEvaluationTestCaseOutput: {
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ test_case_uuid?: string;
+ /**
+ * Format: int32
+ * @description The new verson of the test case.
+ * @example 123
+ */
+ version?: number;
+ };
+ /** @description Indexing jobs */
+ apiListKnowledgeBaseIndexingJobsOutput: {
+ /** @description The indexing jobs */
+ jobs?: components["schemas"]["apiIndexingJob"][];
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ };
+ /** @description StartKnowledgeBaseIndexingJobInputPublic description */
+ apiStartKnowledgeBaseIndexingJobInputPublic: {
+ /**
+ * @description List of data source ids to index, if none are provided, all data sources will be indexed
+ * @example [
+ * "example string"
+ * ]
+ */
+ data_source_uuids?: string[];
+ /**
+ * @description Knowledge base id
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ knowledge_base_uuid?: string;
+ };
+ /** @description StartKnowledgeBaseIndexingJobOutput description */
+ apiStartKnowledgeBaseIndexingJobOutput: {
+ job?: components["schemas"]["apiIndexingJob"];
+ };
+ apiListIndexingJobDataSourcesOutput: {
+ indexed_data_sources?: components["schemas"]["apiIndexedDataSource"][];
+ };
+ apiGetIndexingJobDetailsSignedURLOutput: {
+ /**
+ * @description The signed url for downloading the indexing job details
+ * @example example string
+ */
+ signed_url?: string;
+ };
+ /** @description GetKnowledgeBaseIndexingJobOutput description */
+ apiGetKnowledgeBaseIndexingJobOutput: {
+ job?: components["schemas"]["apiIndexingJob"];
+ };
+ /** @description CancelKnowledgeBaseIndexingJobInputPublic description */
+ apiCancelKnowledgeBaseIndexingJobInputPublic: {
+ /**
+ * @description A unique identifier for an indexing job.
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ uuid?: string;
+ };
+ /** @description CancelKnowledgeBaseIndexingJobOutput description */
+ apiCancelKnowledgeBaseIndexingJobOutput: {
+ job?: components["schemas"]["apiIndexingJob"];
+ };
+ /** @description List of knowledge bases */
+ apiListKnowledgeBasesOutput: {
+ /** @description The knowledge bases */
+ knowledge_bases?: components["schemas"]["apiKnowledgeBase"][];
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ };
+ /** @description AWS S3 Data Source */
+ apiAWSDataSource: {
+ /**
+ * @description Spaces bucket name
+ * @example example name
+ */
+ bucket_name?: string;
+ /** @example example string */
+ item_path?: string;
+ /**
+ * @description The AWS Key ID
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ key_id?: string;
+ /**
+ * @description Region of bucket
+ * @example example string
+ */
+ region?: string;
+ /**
+ * @description The AWS Secret Key
+ * @example example string
+ */
+ secret_key?: string;
+ };
+ /**
+ * @default CHUNKING_ALGORITHM_UNKNOWN
+ * @example CHUNKING_ALGORITHM_UNKNOWN
+ * @enum {string}
+ */
+ apiChunkingAlgorithm: "CHUNKING_ALGORITHM_UNKNOWN" | "CHUNKING_ALGORITHM_SECTION_BASED" | "CHUNKING_ALGORITHM_HIERARCHICAL" | "CHUNKING_ALGORITHM_SEMANTIC" | "CHUNKING_ALGORITHM_FIXED_LENGTH";
+ apiChunkingOptions: {
+ /**
+ * Format: int64
+ * @example 350
+ */
+ child_chunk_size?: number;
+ /**
+ * Format: int64
+ * @description Common options
+ * @example 750
+ */
+ max_chunk_size?: number;
+ /**
+ * Format: int64
+ * @description Hierarchical options
+ * @example 1000
+ */
+ parent_chunk_size?: number;
+ /**
+ * Format: float
+ * @description Semantic options
+ * @example 0.5
+ */
+ semantic_threshold?: number;
+ };
+ /** @description Dropbox Data Source */
+ apiDropboxDataSource: {
+ /** @example example string */
+ folder?: string;
+ /**
+ * @description Refresh token. you can obrain a refresh token by following the oauth2 flow. see /v2/gen-ai/oauth2/dropbox/tokens for reference.
+ * @example example string
+ */
+ refresh_token?: string;
+ };
+ /** @description Google Drive Data Source */
+ apiGoogleDriveDataSource: {
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ folder_id?: string;
+ /**
+ * @description Refresh token. you can obrain a refresh token by following the oauth2 flow. see /v2/gen-ai/oauth2/google/tokens for reference.
+ * @example example string
+ */
+ refresh_token?: string;
+ };
+ /** @description Spaces Bucket Data Source */
+ apiSpacesDataSource: {
+ /**
+ * @description Spaces bucket name
+ * @example example name
+ */
+ bucket_name?: string;
+ /** @example example string */
+ item_path?: string;
+ /**
+ * @description Region of bucket
+ * @example example string
+ */
+ region?: string;
+ };
+ /**
+ * @description Options for specifying how URLs found on pages should be handled.
+ *
+ * - UNKNOWN: Default unknown value
+ * - SCOPED: Only include the base URL.
+ * - PATH: Crawl the base URL and linked pages within the URL path.
+ * - DOMAIN: Crawl the base URL and linked pages within the same domain.
+ * - SUBDOMAINS: Crawl the base URL and linked pages for any subdomain.
+ * - SITEMAP: Crawl URLs discovered in the sitemap.
+ * @default UNKNOWN
+ * @example UNKNOWN
+ * @enum {string}
+ */
+ apiCrawlingOption: "UNKNOWN" | "SCOPED" | "PATH" | "DOMAIN" | "SUBDOMAINS" | "SITEMAP";
+ /** @description WebCrawlerDataSource */
+ apiWebCrawlerDataSource: {
+ /**
+ * @description The base url to crawl.
+ * @example example string
+ */
+ base_url?: string;
+ crawling_option?: components["schemas"]["apiCrawlingOption"];
+ /**
+ * @description Whether to ingest and index media (images, etc.) on web pages.
+ * @example true
+ */
+ embed_media?: boolean;
+ /**
+ * @description Declaring which tags to exclude in web pages while webcrawling
+ * @example [
+ * "example string"
+ * ]
+ */
+ exclude_tags?: string[];
+ };
+ apiKBDataSource: {
+ aws_data_source?: components["schemas"]["apiAWSDataSource"];
+ /**
+ * @description Deprecated, moved to data_source_details
+ * @example example name
+ */
+ bucket_name?: string;
+ /**
+ * @description Deprecated, moved to data_source_details
+ * @example example string
+ */
+ bucket_region?: string;
+ chunking_algorithm?: components["schemas"]["apiChunkingAlgorithm"];
+ chunking_options?: components["schemas"]["apiChunkingOptions"];
+ dropbox_data_source?: components["schemas"]["apiDropboxDataSource"];
+ file_upload_data_source?: components["schemas"]["apiFileUploadDataSource"];
+ google_drive_data_source?: components["schemas"]["apiGoogleDriveDataSource"];
+ /** @example example string */
+ item_path?: string;
+ spaces_data_source?: components["schemas"]["apiSpacesDataSource"];
+ web_crawler_data_source?: components["schemas"]["apiWebCrawlerDataSource"];
+ };
+ /**
+ * @default OPEN_SEARCH_PLAN_SIZE_UNSPECIFIED
+ * @example OPEN_SEARCH_PLAN_SIZE_UNSPECIFIED
+ * @enum {string}
+ */
+ apiOpenSearchPlanSize: "OPEN_SEARCH_PLAN_SIZE_UNSPECIFIED" | "OPEN_SEARCH_PLAN_SIZE_SMALL" | "OPEN_SEARCH_PLAN_SIZE_MEDIUM" | "OPEN_SEARCH_PLAN_SIZE_LARGE" | "OPEN_SEARCH_PLAN_SIZE_EXTRA_LARGE";
+ /** @description Data to create a new knowledge base. */
+ apiCreateKnowledgeBaseInputPublic: {
+ /**
+ * @description Identifier of the DigitalOcean OpenSearch database this knowledge base will use, optional.
+ * If not provided, we create a new database for the knowledge base in
+ * the same region as the knowledge base.
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ database_id?: string;
+ /** @description Optional data sources to attach at creation. Omit or use an empty list to create the knowledge base without sources, then add sources (with chunking strategy and sizes) using [Add a Data Source to a Knowledge Base](#operation/create_knowledge_base_data_source). When provided, see [Organize Data Sources](https://docs.digitalocean.com/products/inference/how-to/create-manage-agent-knowledge-bases/#add-data-sources) for best practices. */
+ datasources?: components["schemas"]["apiKBDataSource"][];
+ /**
+ * @description Identifier for the [embedding model](https://docs.digitalocean.com/products/genai-platform/details/models/#embedding-models).
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ embedding_model_uuid?: string;
+ /**
+ * @description Name of the knowledge base.
+ * @example "My Knowledge Base"
+ */
+ name?: string;
+ /**
+ * @description Identifier of the DigitalOcean project this knowledge base will belong to.
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ project_id?: string;
+ /**
+ * @description The datacenter region to deploy the knowledge base in.
+ * @example "tor1"
+ */
+ region?: string;
+ reranking_config?: components["schemas"]["apiRerankingConfiguration"];
+ size?: components["schemas"]["apiOpenSearchPlanSize"];
+ /**
+ * @description Tags to organize your knowledge base.
+ * @example [
+ * "example string"
+ * ]
+ */
+ tags?: string[];
+ /**
+ * @description The VPC to deploy the knowledge base database in
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ vpc_uuid?: string;
+ };
+ /** @description Information about a newly created knowledge base */
+ apiCreateKnowledgeBaseOutput: {
+ knowledge_base?: components["schemas"]["apiKnowledgeBase"];
+ };
+ /** @description AWS S3 Data Source for Display */
+ apiAWSDataSourceDisplay: {
+ /**
+ * @description Spaces bucket name
+ * @example example name
+ */
+ bucket_name?: string;
+ /** @example example string */
+ item_path?: string;
+ /**
+ * @description Region of bucket
+ * @example example string
+ */
+ region?: string;
+ };
+ /** @description Dropbox Data Source for Display */
+ apiDropboxDataSourceDisplay: {
+ /** @example example string */
+ folder?: string;
+ };
+ /** @description Google Drive Data Source for Display */
+ apiGoogleDriveDataSourceDisplay: {
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ folder_id?: string;
+ /**
+ * @description Name of the selected folder if available
+ * @example example name
+ */
+ folder_name?: string;
+ };
+ /** @description Data Source configuration for Knowledge Bases */
+ apiKnowledgeBaseDataSource: {
+ aws_data_source?: components["schemas"]["apiAWSDataSourceDisplay"];
+ /**
+ * @description Name of storage bucket - Deprecated, moved to data_source_details
+ * @example example name
+ */
+ bucket_name?: string;
+ chunking_algorithm?: components["schemas"]["apiChunkingAlgorithm"];
+ chunking_options?: components["schemas"]["apiChunkingOptions"];
+ /**
+ * Format: date-time
+ * @description Creation date / time
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ dropbox_data_source?: components["schemas"]["apiDropboxDataSourceDisplay"];
+ file_upload_data_source?: components["schemas"]["apiFileUploadDataSource"];
+ google_drive_data_source?: components["schemas"]["apiGoogleDriveDataSourceDisplay"];
+ /**
+ * @description Path of folder or object in bucket - Deprecated, moved to data_source_details
+ * @example example string
+ */
+ item_path?: string;
+ last_datasource_indexing_job?: components["schemas"]["apiIndexedDataSource"];
+ /**
+ * @description Region code - Deprecated, moved to data_source_details
+ * @example example string
+ */
+ region?: string;
+ spaces_data_source?: components["schemas"]["apiSpacesDataSource"];
+ /**
+ * Format: date-time
+ * @description Last modified
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ /**
+ * @description Unique id of knowledge base
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ web_crawler_data_source?: components["schemas"]["apiWebCrawlerDataSource"];
+ };
+ /** @description A list of knowledge base data sources */
+ apiListKnowledgeBaseDataSourcesOutput: {
+ /** @description The data sources */
+ knowledge_base_data_sources?: components["schemas"]["apiKnowledgeBaseDataSource"][];
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ };
+ /** @description Data to create a knowledge base data source */
+ apiCreateKnowledgeBaseDataSourceInputPublic: {
+ aws_data_source?: components["schemas"]["apiAWSDataSource"];
+ chunking_algorithm?: components["schemas"]["apiChunkingAlgorithm"];
+ chunking_options?: components["schemas"]["apiChunkingOptions"];
+ /**
+ * @description Knowledge base id
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ knowledge_base_uuid?: string;
+ spaces_data_source?: components["schemas"]["apiSpacesDataSource"];
+ web_crawler_data_source?: components["schemas"]["apiWebCrawlerDataSource"];
+ };
+ /** @description Information about a newly created knowldege base data source */
+ apiCreateKnowledgeBaseDataSourceOutput: {
+ knowledge_base_data_source?: components["schemas"]["apiKnowledgeBaseDataSource"];
+ };
+ /** @description Update a data source of a knowledge base with change in chunking algorithm/options */
+ apiUpdateKnowledgeBaseDataSourceInputPublic: {
+ chunking_algorithm?: components["schemas"]["apiChunkingAlgorithm"];
+ chunking_options?: components["schemas"]["apiChunkingOptions"];
+ /**
+ * @description Data Source ID (Path Parameter)
+ * @example "98765432-1234-1234-1234-123456789012"
+ */
+ data_source_uuid?: string;
+ /**
+ * @description Knowledge Base ID (Path Parameter)
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ knowledge_base_uuid?: string;
+ };
+ /** @description Update a data source of a knowledge base with change in chunking algorithm/options */
+ apiUpdateKnowledgeBaseDataSourceOutput: {
+ knowledge_base_data_source?: components["schemas"]["apiKnowledgeBaseDataSource"];
+ };
+ /** @description Information about a newly deleted knowledge base data source */
+ apiDeleteKnowledgeBaseDataSourceOutput: {
+ /**
+ * @description Data source id
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ data_source_uuid?: string;
+ /**
+ * @description Knowledge base id
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ knowledge_base_uuid?: string;
+ };
+ /**
+ * @default CREATING
+ * @example CREATING
+ * @enum {string}
+ */
+ dbaasClusterStatus: "CREATING" | "ONLINE" | "POWEROFF" | "REBUILDING" | "REBALANCING" | "DECOMMISSIONED" | "FORKING" | "MIGRATING" | "RESIZING" | "RESTORING" | "POWERING_ON" | "UNHEALTHY" | "UPGRADING";
+ /** @description The knowledge base */
+ apiGetKnowledgeBaseOutput: {
+ database_status?: components["schemas"]["dbaasClusterStatus"];
+ knowledge_base?: components["schemas"]["apiKnowledgeBase"];
+ };
+ /** @description Information about updating a knowledge base */
+ apiUpdateKnowledgeBaseInputPublic: {
+ /**
+ * @description The id of the DigitalOcean database this knowledge base will use, optional.
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ database_id?: string;
+ /**
+ * @description Knowledge base name
+ * @example "My Knowledge Base"
+ */
+ name?: string;
+ /**
+ * @description The id of the DigitalOcean project this knowledge base will belong to
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ project_id?: string;
+ reranking_config?: components["schemas"]["apiRerankingConfiguration"];
+ /**
+ * @description Tags to organize your knowledge base.
+ * @example [
+ * "example string"
+ * ]
+ */
+ tags?: string[];
+ /**
+ * @description Knowledge base id
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ uuid?: string;
+ };
+ /** @description Information about an updated knowledge base */
+ apiUpdateKnowledgeBaseOutput: {
+ knowledge_base?: components["schemas"]["apiKnowledgeBase"];
+ };
+ /** @description Information about a deleted knowledge base */
+ apiDeleteKnowledgeBaseOutput: {
+ /**
+ * @description The id of the deleted knowledge base
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ };
+ /** @description Public request for presigned upload URLs for model evaluation dataset files. */
+ apiCreateModelEvalDatasetUploadPresignedUrlsInputPublic: {
+ /** @description A list of files to generate presigned URLs for. */
+ files?: components["schemas"]["apiPresignedUrlFile"][];
+ };
+ apiListModelEvaluationMetricsOutput: {
+ /** @description List of model evaluation metrics */
+ metrics?: components["schemas"]["apiEvaluationMetric"][];
+ };
+ /**
+ * @description Inference configuration for the candidate model during evaluation.
+ * The output token limit is set automatically and cannot be configured.
+ */
+ apiCandidateInferenceConfig: {
+ /**
+ * @description Reasoning effort for reasoning-capable models (e.g. "low", "medium",
+ * "high"). Validated against the candidate model's supported values; a model
+ * that advertises none rejects this field.
+ * @example low
+ */
+ reasoning_effort?: string;
+ /** @example example string */
+ stop_token?: string;
+ /** @example example string */
+ system_prompt?: string;
+ /**
+ * Format: float
+ * @example 123
+ */
+ temperature?: number;
+ };
+ /**
+ * @description Whether the candidate is a served model (serverless platform, a dedicated
+ * deployment, or a model router) or an OHS-hosted agent config.
+ * @default CANDIDATE_MODEL_SOURCE_SERVERLESS
+ * @example CANDIDATE_MODEL_SOURCE_SERVERLESS
+ * @enum {string}
+ */
+ apiCandidateModelSource: "CANDIDATE_MODEL_SOURCE_SERVERLESS" | "CANDIDATE_MODEL_SOURCE_DEDICATED" | "CANDIDATE_MODEL_SOURCE_ROUTER" | "CANDIDATE_MODEL_SOURCE_AGENT";
+ /**
+ * @description Sections of an inline evaluation config that can be persisted as a reusable
+ * preset. Each value names a self-contained group of fields; selecting a
+ * section saves exactly the fields it owns and leaves the rest of the preset
+ * empty so it can be merged with inline values on a future run.
+ *
+ * - PRESET_SAVE_SECTION_CANDIDATE: Candidate model identity (`candidate_model_uuid`, `candidate_model_source`,
+ * `candidate_model_name`) and the non-prompt inference params
+ * (`temperature`, `stop_token`, `reasoning_effort`).
+ * - PRESET_SAVE_SECTION_METRICS: The selected `metric_uuids` and the optional `star_metric`.
+ * - PRESET_SAVE_SECTION_JUDGE: The `judge_model_uuid`.
+ * - PRESET_SAVE_SECTION_DATASET: The `dataset_uuid`.
+ * - PRESET_SAVE_SECTION_SYSTEM_PROMPT: The candidate's `system_prompt` only. Independent of CANDIDATE so the
+ * model + params and the prompt can be saved/replayed separately.
+ * @default PRESET_SAVE_SECTION_UNSPECIFIED
+ * @example PRESET_SAVE_SECTION_UNSPECIFIED
+ * @enum {string}
+ */
+ apiPresetSaveSection: "PRESET_SAVE_SECTION_UNSPECIFIED" | "PRESET_SAVE_SECTION_CANDIDATE" | "PRESET_SAVE_SECTION_METRICS" | "PRESET_SAVE_SECTION_JUDGE" | "PRESET_SAVE_SECTION_DATASET" | "PRESET_SAVE_SECTION_SYSTEM_PROMPT";
+ /**
+ * @description Model Evaluation Preset - a saved, reusable configuration for model
+ * evaluation runs. Each section (dataset, judge, metrics, candidate, system
+ * prompt) is independent and may be empty; sections the preset omits must be
+ * supplied inline on the run that references it. Use `saved_sections` to tell
+ * "section saved with empty value" apart from "section not saved at all" —
+ * each section's scalar fields are left empty when the section was not saved.
+ */
+ apiModelEvaluationPreset: {
+ candidate_inference_config?: components["schemas"]["apiCandidateInferenceConfig"];
+ /**
+ * @description Model slug used to call the candidate model API. Empty when the CANDIDATE
+ * section was not saved.
+ * @example example name
+ */
+ candidate_model_name?: string;
+ candidate_model_source?: components["schemas"]["apiCandidateModelSource"];
+ /**
+ * @description UUID of the candidate model stored on this preset. Empty when the
+ * CANDIDATE section was not saved. For DEDICATED candidates this is the
+ * dedicated inference deployment UUID.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ candidate_model_uuid?: string;
+ /**
+ * @description System prompt / instructions to send to the candidate model. Empty when
+ * the SYSTEM_PROMPT section was not saved (check `saved_sections`).
+ * @example 2023-01-01
+ */
+ candidate_system_prompt?: string;
+ /**
+ * Format: date-time
+ * @description Timestamp when the preset was created.
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * @description Display name of the dataset stored on this preset. Empty when the DATASET
+ * section was not saved or the dataset no longer exists.
+ * @example example name
+ */
+ dataset_name?: string;
+ /**
+ * @description UUID of the dataset stored on this preset. Empty when the DATASET section
+ * was not saved (check `saved_sections`).
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ dataset_uuid?: string;
+ /**
+ * @description UUID of the evaluation preset.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ eval_preset_uuid?: string;
+ /**
+ * @description Display name of the judge model stored on this preset. Empty when the
+ * JUDGE section was not saved or the model no longer exists.
+ * @example example name
+ */
+ judge_model_name?: string;
+ /**
+ * @description UUID of the judge model stored on this preset. Empty when the JUDGE
+ * section was not saved (check `saved_sections`).
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ judge_model_uuid?: string;
+ /**
+ * @description Metrics selected for this preset. Empty when the METRICS section was not
+ * saved.
+ */
+ metrics?: components["schemas"]["apiEvaluationMetric"][];
+ /**
+ * @description Name of the evaluation preset.
+ * @example example name
+ */
+ name?: string;
+ /**
+ * @description Sections of the inline evaluation config that were persisted when this
+ * preset was created. Use this to tell "section was saved with an empty
+ * value" apart from "section was not saved" — scalar fields like
+ * `dataset_uuid` or `candidate_system_prompt` are always emitted as the
+ * empty string when the section was not saved.
+ * @example [
+ * "PRESET_SAVE_SECTION_CANDIDATE",
+ * "PRESET_SAVE_SECTION_METRICS"
+ * ]
+ */
+ saved_sections?: components["schemas"]["apiPresetSaveSection"][];
+ star_metric?: components["schemas"]["apiStarMetric"];
+ };
+ apiListModelEvaluationPresetsOutput: {
+ /** @description List of explicitly saved evaluation presets (reusable configs). */
+ presets?: components["schemas"]["apiModelEvaluationPreset"][];
+ };
+ apiGetModelEvaluationPresetOutput: {
+ preset?: components["schemas"]["apiModelEvaluationPreset"];
+ };
+ apiDeleteModelEvaluationPresetOutput: Record;
+ /**
+ * @description Model Evaluation Run Statuses
+ * @default MODEL_EVALUATION_RUN_STATUS_UNSPECIFIED
+ * @example MODEL_EVALUATION_RUN_STATUS_UNSPECIFIED
+ * @enum {string}
+ */
+ apiModelEvaluationRunStatus: "MODEL_EVALUATION_RUN_STATUS_UNSPECIFIED" | "MODEL_EVALUATION_RUN_QUEUED" | "MODEL_EVALUATION_RUN_RUNNING_DATASET" | "MODEL_EVALUATION_RUN_EVALUATING_RESULTS" | "MODEL_EVALUATION_RUN_CANCELLING" | "MODEL_EVALUATION_RUN_CANCELLED" | "MODEL_EVALUATION_RUN_SUCCESSFUL" | "MODEL_EVALUATION_RUN_PARTIALLY_SUCCESSFUL" | "MODEL_EVALUATION_RUN_FAILED";
+ /**
+ * @description Per-phase progress for a model evaluation run. The candidate phase invokes the
+ * candidate model once per dataset row; the judge phase scores each
+ * candidate-success row with the configured metrics. Counts grow as the run
+ * advances; compare against total_rows to render a progress bar.
+ */
+ apiModelEvaluationRunProgress: {
+ /**
+ * Format: int64
+ * @description Dataset rows whose candidate model call has completed (success or failure).
+ * @example 100
+ */
+ candidate_rows_evaluated?: number;
+ /**
+ * Format: int64
+ * @description Candidate-success rows the judge has finished (scored or skipped). Caps at
+ * the number of candidate successes, which may be below total_rows.
+ * @example 95
+ */
+ judge_rows_evaluated?: number;
+ /**
+ * Format: int64
+ * @description Total dataset rows for the run, sourced from the evaluation dataset.
+ * @example 100
+ */
+ total_rows?: number;
+ };
+ /** @description Model Evaluation Run Summary - lightweight view used in run history list. */
+ apiModelEvaluationRunSummary: {
+ /**
+ * @description Name of the candidate model being evaluated.
+ * @example example name
+ */
+ candidate_model_name?: string;
+ candidate_model_source?: components["schemas"]["apiCandidateModelSource"];
+ /**
+ * @description UUID of the candidate model being evaluated.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ candidate_model_uuid?: string;
+ /**
+ * Format: date-time
+ * @description Timestamp when the run was created.
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * @description Name of the dataset used for evaluation.
+ * @example example name
+ */
+ dataset_name?: string;
+ /**
+ * @description UUID of the dataset used for evaluation.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ dataset_uuid?: string;
+ /**
+ * @description UUID of the evaluation run.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ eval_run_uuid?: string;
+ /** @example example name */
+ judge_model_name?: string;
+ /**
+ * @description Judge model used to score responses.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ judge_model_uuid?: string;
+ /**
+ * @description Name of the evaluation run.
+ * @example example name
+ */
+ name?: string;
+ progress?: components["schemas"]["apiModelEvaluationRunProgress"];
+ status?: components["schemas"]["apiModelEvaluationRunStatus"];
+ };
+ apiListModelEvaluationRunsOutput: {
+ /**
+ * @description Full set of candidate model source types the FE can offer in the
+ * candidate-type filter UI.
+ */
+ available_candidate_types?: components["schemas"]["apiCandidateModelSource"][];
+ /**
+ * @description Full set of statuses the FE can offer in the status filter UI. Returned
+ * on every list call so clients never need to hardcode the enum values.
+ */
+ available_statuses?: components["schemas"]["apiModelEvaluationRunStatus"][];
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ /** @description Summary view of evaluation runs for the run history list. */
+ runs?: components["schemas"]["apiModelEvaluationRunSummary"][];
+ };
+ apiCreateModelEvaluationRunInputPublic: {
+ candidate_inference_config?: components["schemas"]["apiCandidateInferenceConfig"];
+ /**
+ * @description Model slug used to call the candidate model API.
+ * For dedicated inference, this is the model slug from the deployment.
+ * For serverless, this should match the model's internal name.
+ * @example example name
+ */
+ candidate_model_name?: string;
+ candidate_model_source?: components["schemas"]["apiCandidateModelSource"];
+ /**
+ * @description UUID of the candidate model to evaluate.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ candidate_model_uuid?: string;
+ /**
+ * @description UUID of the dataset to use for evaluation.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ dataset_uuid?: string;
+ /**
+ * Format: int64
+ * @description How many times each dataset row is evaluated. Defaults to 1, maximum 10.
+ * When more than 1, the results show how consistent the model is across
+ * attempts (avg@k, pass@k, cons@k). Each extra attempt makes the run take
+ * longer. Not saved in presets.
+ * @example 1
+ */
+ epochs?: number;
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ eval_preset_uuid?: string;
+ /**
+ * @description UUID of the judge model used to score responses.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ judge_model_uuid?: string;
+ /**
+ * @description UUIDs of metrics to evaluate (selected from ListModelEvaluationMetrics).
+ * @example [
+ * "example string"
+ * ]
+ */
+ metric_uuids?: string[];
+ /** @example example name */
+ name?: string;
+ /** @example example name */
+ preset_name?: string;
+ /**
+ * @description Which sections of this run's resolved configuration to persist as a
+ * reusable preset. Each selected section saves only its own fields; the
+ * remaining sections stay empty on the preset and must be supplied inline
+ * on future runs that reference it. Empty means do not save a preset
+ * (unless the deprecated `save_as_preset` boolean is true, in which case
+ * all sections are saved). Ignored when `eval_preset_uuid` is set. Use
+ * `preset_name` to label the saved preset.
+ * @example [
+ * "PRESET_SAVE_SECTION_CANDIDATE",
+ * "PRESET_SAVE_SECTION_METRICS"
+ * ]
+ */
+ preset_save_sections?: components["schemas"]["apiPresetSaveSection"][];
+ /**
+ * @description Deprecated: use `preset_save_sections`. When `true` and
+ * `preset_save_sections` is empty, all five sections of the resolved
+ * configuration are saved as a reusable preset (legacy behavior). Ignored
+ * when `eval_preset_uuid` is set.
+ * @example true
+ */
+ save_as_preset?: boolean;
+ /**
+ * @description Source of the run creation (api, sdk, cli).
+ * @example example string
+ */
+ source?: string;
+ star_metric?: components["schemas"]["apiStarMetric"];
+ };
+ apiCreateModelEvaluationRunOutput: {
+ /**
+ * @description UUID of the created evaluation run.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ eval_run_uuid?: string;
+ };
+ /**
+ * @description ModelEvaluationEpochAttempt is one epoch's attempt at a dataset row,
+ * nested under ModelEvaluationResult.epoch_results for multi-epoch runs.
+ * Carries only the fields that vary per pass — row-identifying fields
+ * (input/ground_truth/row_number) and candidate_model_name/uuid live once
+ * on the parent ModelEvaluationResult and aren't repeated here.
+ */
+ apiModelEvaluationEpochAttempt: {
+ /** @example Coding & brainstorming */
+ candidate_routed_task?: string;
+ /** @description Per-metric scores and judge reasoning for this specific pass. */
+ metric_results?: components["schemas"]["apiEvaluationMetricResult"][];
+ /**
+ * @description The response from the candidate model for this specific pass.
+ * @example example string
+ */
+ output?: string;
+ };
+ /** @description Result for a single prompt in a model evaluation run. */
+ apiModelEvaluationResult: {
+ /** @example example name */
+ candidate_model_name?: string;
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ candidate_model_uuid?: string;
+ /** @example Coding & brainstorming */
+ candidate_routed_task?: string;
+ /**
+ * Format: int64
+ * @description Which pass over this dataset row produced this result, 1-indexed (1 =
+ * first pass). Always 0 (and omitted from JSON) when the run's epochs is 1
+ * (the default) — per-attempt epoch numbering doesn't apply to
+ * single-pass runs. When epochs > 1, this always reflects epoch 1 (see
+ * epoch_results below).
+ * @example 1
+ */
+ epoch?: number;
+ /**
+ * @description Present only when the run's epochs > 1: every pass over this row —
+ * including epoch 1, duplicated here for convenience — keyed by
+ * 1-indexed "epoch1"/"epoch2"/"epoch3" labels. Mirrors the shape of the
+ * downloadable results file's epochResults object. The top-level fields
+ * above (output, metric_results, candidate_routed_task) always reflect
+ * epoch 1, so single-epoch clients reading only those fields see no
+ * difference when epochs > 1.
+ */
+ epoch_results?: {
+ [key: string]: components["schemas"]["apiModelEvaluationEpochAttempt"];
+ };
+ /** @example example string */
+ ground_truth?: string;
+ /**
+ * @description The input query sent to the candidate model.
+ * @example example string
+ */
+ input?: string;
+ /** @description Per-metric scores and judge reasoning for this prompt. */
+ metric_results?: components["schemas"]["apiEvaluationMetricResult"][];
+ /**
+ * @description The response from the candidate model.
+ * @example example string
+ */
+ output?: string;
+ /**
+ * Format: int64
+ * @description Which dataset row this result came from. Multiple results share a
+ * row_number when epochs > 1: one per pass over that row.
+ * @example 1
+ */
+ row_number?: number;
+ };
+ /**
+ * @description One epoch's standalone score, computed the same way overall_score_percent
+ * is computed today (flat pass rate over that epoch's rows).
+ */
+ apiPerEpochResultSummary: {
+ /**
+ * Format: int64
+ * @description 1-indexed epoch number (1 = first pass).
+ * @example 1
+ */
+ epoch?: number;
+ /**
+ * Format: double
+ * @example 123
+ */
+ overall_score_percent?: number;
+ /**
+ * Format: int64
+ * @example 123
+ */
+ rows_scored?: number;
+ };
+ /**
+ * @description Aggregation across epochs when a run repeats each dataset row k times.
+ * Only populated when epochs > 1; at epochs == 1 every number here would
+ * equal overall_score_percent, so it is omitted rather than duplicated.
+ */
+ apiEpochResultSummary: {
+ /**
+ * Format: double
+ * @description Mean over rows of (passing epochs / scored epochs) for the star metric.
+ * Equals overall_score_percent; this is the primary result for a
+ * multi-epoch run ("how often does it work").
+ * @example 123
+ */
+ avg_at_k_percent?: number;
+ /**
+ * Format: double
+ * @description Fraction of rows where a strict majority of scored epochs passed
+ * ("what does the model typically answer"). An even-k tie counts as fail.
+ * @example 123
+ */
+ cons_at_k_percent?: number;
+ /**
+ * Format: int64
+ * @description Number of passes per dataset row (k).
+ * @example 123
+ */
+ epochs?: number;
+ /**
+ * Format: double
+ * @description Unbiased estimate of the probability that at least one of k epochs
+ * passes ("can it work at all, given retries"). Always the most generous
+ * of the three.
+ * @example 123
+ */
+ pass_at_k_percent?: number;
+ /** @description Each epoch's own standalone score, persisted next to the aggregate. */
+ per_epoch?: components["schemas"]["apiPerEpochResultSummary"][];
+ /**
+ * Format: int64
+ * @description Rows where every epoch failed or was skipped, so the row contributes to
+ * no score. Not a random sample of difficulty — surface this explicitly.
+ * @example 123
+ */
+ rows_excluded?: number;
+ /**
+ * Format: int64
+ * @description Rows with at least one scored epoch. The effective N behind every
+ * percentage above; always display alongside them.
+ * @example 123
+ */
+ rows_scored?: number;
+ /**
+ * Format: double
+ * @description Population standard deviation of the k per-epoch scores below — the
+ * signal for whether a difference between runs is real or noise.
+ * @example 123
+ */
+ score_stddev_percent?: number;
+ };
+ /** @description Per-metric aggregated pass/fail statistics across all prompts. */
+ apiMetricResultSummary: {
+ /**
+ * Format: double
+ * @description Row-level (not attempt-level) aggregation across epochs for this metric,
+ * mirroring EpochResultSummary but scoped to one metric. Only set when the
+ * run's epochs > 1; pass_percent/pass_count/etc. above stay attempt-level
+ * (over row x epoch pairs) so they don't desynchronize from the counts
+ * sitting next to them.
+ * @example 123
+ */
+ avg_at_k_percent?: number;
+ /**
+ * Format: double
+ * @example 123
+ */
+ cons_at_k_percent?: number;
+ /** @example example string */
+ description?: string;
+ /**
+ * Format: int64
+ * @description Rows where the metric failed to score or completed below the threshold.
+ * @example 123
+ */
+ fail_count?: number;
+ /**
+ * Format: double
+ * @example 123
+ */
+ fail_percent?: number;
+ /** @example example name */
+ metric_name?: string;
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ metric_uuid?: string;
+ /**
+ * Format: double
+ * @example 123
+ */
+ pass_at_k_percent?: number;
+ /**
+ * Format: int64
+ * @description Rows where the metric completed and passed the configured threshold.
+ * @example 123
+ */
+ pass_count?: number;
+ /**
+ * Format: double
+ * @example 123
+ */
+ pass_percent?: number;
+ /**
+ * Format: double
+ * @description Percentage of rows that were skipped for this metric, computed as
+ * skipped_count divided by the total rows the metric saw
+ * (pass_count + fail_count + skipped_count).
+ * @example 123
+ */
+ skip_percent?: number;
+ /**
+ * Format: int64
+ * @description Rows where the metric was not evaluated for this prompt.
+ * @example 123
+ */
+ skipped_count?: number;
+ };
+ /** @description Latency metrics for candidate model invocations (in milliseconds). */
+ apiLatencyMetrics: {
+ /**
+ * Format: double
+ * @description Average end-to-end latency across all invocations.
+ * @example 123
+ */
+ avg_e2e_latency_ms?: number;
+ /**
+ * Format: double
+ * @description Maximum end-to-end latency observed.
+ * @example 123
+ */
+ max_e2e_latency_ms?: number;
+ /**
+ * Format: double
+ * @description Minimum end-to-end latency observed.
+ * @example 123
+ */
+ min_e2e_latency_ms?: number;
+ /**
+ * Format: double
+ * @description P50 (median) latency.
+ * @example 123
+ */
+ p50_latency_ms?: number;
+ /**
+ * Format: double
+ * @description P90 latency.
+ * @example 123
+ */
+ p90_latency_ms?: number;
+ /**
+ * Format: double
+ * @description P95 latency.
+ * @example 123
+ */
+ p95_latency_ms?: number;
+ };
+ apiTokenUsage: {
+ /**
+ * Format: uint64
+ * @example 12345
+ */
+ total_candidate_input_tokens?: string;
+ /**
+ * Format: uint64
+ * @example 12345
+ */
+ total_candidate_output_tokens?: string;
+ /**
+ * Format: uint64
+ * @example 12345
+ */
+ total_candidate_tokens?: string;
+ /**
+ * Format: uint64
+ * @example 12345
+ */
+ total_judge_input_tokens?: string;
+ /**
+ * Format: uint64
+ * @example 12345
+ */
+ total_judge_output_tokens?: string;
+ /**
+ * Format: uint64
+ * @example 12345
+ */
+ total_judge_tokens?: string;
+ };
+ /** @description All performance metrics are for the candidate model unless noted otherwise. */
+ apiPerformanceMetrics: {
+ candidate_latency?: components["schemas"]["apiLatencyMetrics"];
+ token_usage?: components["schemas"]["apiTokenUsage"];
+ };
+ /**
+ * @description Aggregated evaluation results for a single underlying model in a router
+ * evaluation run.
+ */
+ apiPerModelResultSummary: {
+ /**
+ * @description Pass/fail rate for each metric, computed over only the prompts
+ * routed to this model.
+ */
+ metric_summaries?: components["schemas"]["apiMetricResultSummary"][];
+ /**
+ * @description The underlying model these results are for, such as
+ * `Llama 3.3 Instruct (70B)`.
+ * @example example name
+ */
+ model_name?: string;
+ performance_metrics?: components["schemas"]["apiPerformanceMetrics"];
+ /**
+ * Format: int64
+ * @description Number of prompts in the run that were routed to this model.
+ * @example 123
+ */
+ prompt_count?: number;
+ };
+ /**
+ * @description Per-model breakdown of an evaluation run. Set on router evaluations to
+ * show how each underlying model performed across the prompts that were
+ * routed to it.
+ */
+ apiPerModelResultSummaries: {
+ /**
+ * @description One entry per underlying model that received at least one prompt
+ * during the evaluation run.
+ */
+ summaries?: components["schemas"]["apiPerModelResultSummary"][];
+ };
+ /**
+ * @description Aggregated evaluation results for a single routing task category in a
+ * router evaluation run.
+ */
+ apiPerTaskResultSummary: {
+ /**
+ * @description Pass/fail rate for each metric, computed over only the prompts in
+ * this task category.
+ */
+ metric_summaries?: components["schemas"]["apiMetricResultSummary"][];
+ performance_metrics?: components["schemas"]["apiPerformanceMetrics"];
+ /**
+ * Format: int64
+ * @description Number of prompts in the run that were classified into this task
+ * category.
+ * @example 123
+ */
+ prompt_count?: number;
+ /**
+ * @description The routing task category these results are for, such as
+ * `Coding & brainstorming` or `Summarization`.
+ * @example example name
+ */
+ task_name?: string;
+ };
+ /**
+ * @description Per-task breakdown of an evaluation run. Set on router evaluations to
+ * show how each routing task category performed across the prompts that
+ * were classified into it.
+ */
+ apiPerTaskResultSummaries: {
+ /**
+ * @description One entry per routing task category that received at least one
+ * prompt during the evaluation run.
+ */
+ summaries?: components["schemas"]["apiPerTaskResultSummary"][];
+ };
+ /** @description Token pricing breakdown for a single model. */
+ apiTokenPricing: {
+ /**
+ * Format: double
+ * @description Cost of input tokens.
+ * @example 123
+ */
+ input_cost?: number;
+ /**
+ * Format: double
+ * @description Cost of output tokens.
+ * @example 123
+ */
+ output_cost?: number;
+ /**
+ * Format: double
+ * @description Total cost (input + output).
+ * @example 123
+ */
+ total_cost?: number;
+ };
+ /** @description Pricing entry for a specific model. */
+ apiModelPricingEntry: {
+ /**
+ * @description Model name (for display purposes).
+ * @example example name
+ */
+ model_name?: string;
+ /**
+ * @description Model UUID.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ model_uuid?: string;
+ pricing?: components["schemas"]["apiTokenPricing"];
+ /**
+ * Format: int64
+ * @description Number of prompts/rows routed to this model.
+ * @example 123
+ */
+ prompt_count?: number;
+ };
+ /** @description Pricing breakdown for an evaluation run. */
+ apiEvaluationPricing: {
+ /**
+ * @description Currency code (e.g., "USD").
+ * @example example string
+ */
+ currency?: string;
+ judge_model_pricing?: components["schemas"]["apiTokenPricing"];
+ /** @description Pricing per candidate model. */
+ per_candidate_model_pricing?: components["schemas"]["apiModelPricingEntry"][];
+ /**
+ * Format: double
+ * @description Total cost of the evaluation run (all candidates + judge).
+ * @example 123
+ */
+ total_cost?: number;
+ };
+ /** @description Star metric summary with identifying details and threshold. */
+ apiStarMetricSummary: {
+ /** @example example name */
+ metric_name?: string;
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ metric_uuid?: string;
+ /**
+ * Format: float
+ * @example 123
+ */
+ threshold?: number;
+ };
+ /** @description Aggregated result summary for a completed model evaluation run. */
+ apiModelEvaluationRunResultSummary: {
+ /**
+ * Format: date-time
+ * @example 2023-01-01T00:00:00Z
+ */
+ end_time?: string;
+ epoch_summary?: components["schemas"]["apiEpochResultSummary"];
+ /**
+ * Format: int64
+ * @description Number of times each dataset row was evaluated (n-pass/epochs). Mirrors
+ * ModelEvaluationRunDetail.epochs. 1 for every existing run.
+ * @example 1
+ */
+ epochs?: number;
+ /** @description Per-metric aggregated pass/fail statistics. */
+ metric_summaries?: components["schemas"]["apiMetricResultSummary"][];
+ /**
+ * Format: double
+ * @example 123
+ */
+ overall_score_percent?: number;
+ per_model_summaries?: components["schemas"]["apiPerModelResultSummaries"];
+ per_task_summaries?: components["schemas"]["apiPerTaskResultSummaries"];
+ performance_metrics?: components["schemas"]["apiPerformanceMetrics"];
+ pricing?: components["schemas"]["apiEvaluationPricing"];
+ star_metric_summary?: components["schemas"]["apiStarMetricSummary"];
+ /**
+ * Format: date-time
+ * @description Run timing.
+ * @example 2023-01-01T00:00:00Z
+ */
+ start_time?: string;
+ /**
+ * Format: int64
+ * @description Total wall-clock duration in seconds.
+ * @example 123
+ */
+ total_duration_seconds?: number;
+ };
+ /** @description Model Evaluation Run Detail - full view returned when fetching a specific run. */
+ apiModelEvaluationRunDetail: {
+ candidate_inference_config?: components["schemas"]["apiCandidateInferenceConfig"];
+ /** @example example name */
+ candidate_model_name?: string;
+ candidate_model_source?: components["schemas"]["apiCandidateModelSource"];
+ /**
+ * @description Candidate model being evaluated.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ candidate_model_uuid?: string;
+ /**
+ * Format: date-time
+ * @example 2023-01-01T00:00:00Z
+ */
+ completed_at?: string;
+ /**
+ * Format: date-time
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /** @example example name */
+ dataset_name?: string;
+ /**
+ * @description Dataset used for the evaluation.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ dataset_uuid?: string;
+ /**
+ * Format: int64
+ * @description Number of times each dataset row is evaluated (n-pass/epochs). 1 by
+ * default. Drives the avg@k/pass@k/cons@k aggregation in result_summary.
+ * @example 1
+ */
+ epochs?: number;
+ /**
+ * @description Error description if the run failed or partially succeeded.
+ * @example example string
+ */
+ error_description?: string;
+ /** @example example name */
+ eval_preset_name?: string;
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ eval_preset_uuid?: string;
+ /**
+ * @description UUID of the evaluation run.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ eval_run_uuid?: string;
+ /** @example example name */
+ judge_model_name?: string;
+ /**
+ * @description Judge model used to score responses.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ judge_model_uuid?: string;
+ /** @description Metrics selected for this evaluation. */
+ metrics?: components["schemas"]["apiEvaluationMetric"][];
+ /**
+ * @description Name of the evaluation run.
+ * @example example name
+ */
+ name?: string;
+ progress?: components["schemas"]["apiModelEvaluationRunProgress"];
+ result_summary?: components["schemas"]["apiModelEvaluationRunResultSummary"];
+ star_metric?: components["schemas"]["apiStarMetric"];
+ /**
+ * Format: date-time
+ * @example 2023-01-01T00:00:00Z
+ */
+ started_at?: string;
+ status?: components["schemas"]["apiModelEvaluationRunStatus"];
+ };
+ apiGetModelEvaluationRunOutput: {
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ /** @description Paginated per-prompt evaluation results. */
+ results?: components["schemas"]["apiModelEvaluationResult"][];
+ run?: components["schemas"]["apiModelEvaluationRunDetail"];
+ };
+ /**
+ * @description Status of delete operation
+ * @default DELETE_MODEL_EVALUATION_RUN_STATUS_UNSPECIFIED
+ * @example DELETE_MODEL_EVALUATION_RUN_STATUS_UNSPECIFIED
+ * @enum {string}
+ */
+ apiDeleteModelEvaluationRunStatus: "DELETE_MODEL_EVALUATION_RUN_STATUS_UNSPECIFIED" | "DELETE_MODEL_EVALUATION_RUN_STATUS_SUCCESS" | "DELETE_MODEL_EVALUATION_RUN_STATUS_FAIL";
+ apiDeleteModelEvaluationRunOutputPublic: {
+ /**
+ * @description Error message if deletion failed
+ * @example example string
+ */
+ error?: string;
+ status?: components["schemas"]["apiDeleteModelEvaluationRunStatus"];
+ };
+ apiUpdateModelEvaluationRunInputPublic: {
+ /**
+ * @description UUID of the model evaluation run to update. Returned by `CreateModelEvaluationRun`
+ * and listed via `ListModelEvaluationRuns`.
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ eval_run_uuid?: string;
+ /**
+ * @description Optional new display name for the evaluation run (max 255 characters).
+ * @example My evaluation run
+ */
+ name?: string;
+ };
+ apiUpdateModelEvaluationRunOutput: {
+ run?: components["schemas"]["apiModelEvaluationRunSummary"];
+ };
+ apiCancelModelEvaluationRunInputPublic: {
+ /**
+ * @description UUID of the model evaluation run to cancel. Returned by `CreateModelEvaluationRun`
+ * and listed via `ListModelEvaluationRuns`. The run must be in a non-terminal status
+ * (queued, running_dataset, or evaluating_results); already-terminal runs return an
+ * error.
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ eval_run_uuid?: string;
+ };
+ apiCancelModelEvaluationRunOutput: {
+ run?: components["schemas"]["apiModelEvaluationRunSummary"];
+ };
+ /** @description Response containing a presigned download URL for model evaluation run results. */
+ apiGetModelEvaluationRunResultsDownloadURLOutput: {
+ /**
+ * @description The presigned URL to download the gzip-compressed JSON results file (.json.gz).
+ * @example example string
+ */
+ download_url?: string;
+ /**
+ * Format: date-time
+ * @description The time the URL expires at.
+ * @example 2023-01-01T00:00:00Z
+ */
+ expires_at?: string;
+ };
+ /** @description Pricing per million tokens (aligns with existing ModelPrice pattern) */
+ apiModelPricing: {
+ /**
+ * Format: double
+ * @description Per-million cache read rate for standard chat models (token_type "cache read input").
+ * Multimodal models use text_cache_read_input_price_per_million / image_cache_read_input_price_per_million instead.
+ * @example 0.15
+ */
+ cache_read_input_price_per_million?: number;
+ /**
+ * Format: double
+ * @description Price per million tokens written to the prompt cache with a 1-hour lifetime.
+ * @example 10
+ */
+ cache_write_1h_input_price_per_million?: number;
+ /**
+ * Format: double
+ * @description Price per million tokens written to the prompt cache with a 5-minute lifetime.
+ * @example 6.25
+ */
+ cache_write_5m_input_price_per_million?: number;
+ /**
+ * Format: double
+ * @example 0.08
+ */
+ image_cache_read_input_price_per_million?: number;
+ /**
+ * Format: double
+ * @example 0.3
+ */
+ image_input_price_per_million?: number;
+ /**
+ * Format: double
+ * @example 0.4
+ */
+ image_output_price_per_million?: number;
+ /**
+ * Format: double
+ * @description Cache read input price per single token. Equivalent to
+ * cache_read_input_price_per_million.
+ * @example 0.15
+ */
+ input_cache_read?: number;
+ /**
+ * Format: double
+ * @example 0.6
+ */
+ input_price_per_million?: number;
+ /**
+ * Format: double
+ * @example 0.9
+ */
+ output_price_per_million?: number;
+ /**
+ * Format: double
+ * @example 0.002
+ */
+ price_per_audio?: number;
+ /**
+ * Format: double
+ * @description Unit-based pricing for non-token models (e.g., Fal AI image/video/audio
+ * generation, speech models). At most one of these is typically populated
+ * per model. Token-based models (chat, embeddings) leave all of these at 0
+ * and populate input_price_per_million / output_price_per_million instead.
+ * @example 0.003
+ */
+ price_per_image?: number;
+ /**
+ * Format: double
+ * @example 0.00003
+ */
+ price_per_megapixel?: number;
+ /**
+ * Format: double
+ * @example 0.0001
+ */
+ price_per_second?: number;
+ /**
+ * Format: double
+ * @example 0.015
+ */
+ price_per_thousand_characters?: number;
+ /**
+ * Format: double
+ * @example 0.05
+ */
+ price_per_video?: number;
+ /**
+ * Format: double
+ * @description Price per million reasoning tokens. 0 if the model does not charge
+ * separately for reasoning tokens.
+ * @example 0
+ */
+ reasoning_price_per_million?: number;
+ /**
+ * Format: double
+ * @example 0.05
+ */
+ text_cache_read_input_price_per_million?: number;
+ /**
+ * Format: double
+ * @description Per-million token rates for models that bill text vs image tokens separately
+ * (e.g. OpenAI gpt-image-2). Standard chat models leave these at 0 and use
+ * input_price_per_million / output_price_per_million instead. Values align
+ * with usage token_type / internal/usage.Type string values for each meter.
+ * @example 0.1
+ */
+ text_input_price_per_million?: number;
+ /**
+ * Format: double
+ * @example 0.2
+ */
+ text_output_price_per_million?: number;
+ };
+ /** @description A machine learning model stored on the GenAI platform */
+ apiModelPublic: {
+ agreement?: components["schemas"]["apiAgreement"];
+ /** @description Benchmark scores for this model, stored as arbitrary JSON */
+ benchmark_score?: Record;
+ /**
+ * @description Model capabilities (inference, reasoning, vectorization, etc.)
+ * @example [
+ * "example string"
+ * ]
+ */
+ capabilities?: string[];
+ /**
+ * Format: int64
+ * @description Context window (maximum tokens)
+ * @example 12345
+ */
+ context_window?: string;
+ /**
+ * Format: date-time
+ * @description Creation date / time
+ * @example 2021-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * @description Model description
+ * @example example string
+ */
+ description?: string;
+ /** @description Available endpoints and their capabilities */
+ endpoints?: components["schemas"]["apiModelEndpoint"][];
+ /**
+ * @description Human-readable model identifier
+ * @example llama3.3-70b-instruct
+ */
+ id?: string;
+ /**
+ * @description True if it is a foundational model provided by do
+ * @example true
+ */
+ is_foundational?: boolean;
+ /**
+ * Format: int64
+ * @description Default chunking size limit to show in UI
+ * @example 123
+ */
+ kb_default_chunk_size?: number;
+ /**
+ * Format: int64
+ * @description Maximum chunk size limit of model
+ * @example 123
+ */
+ kb_max_chunk_size?: number;
+ /**
+ * Format: int64
+ * @description Minimum chunking size token limits if model supports KNOWLEDGEBASE usecase
+ * @example 123
+ */
+ kb_min_chunk_size?: number;
+ /**
+ * @description Lifecycle status of the model (internal, public-preview, active, deprecated, end_of_life)
+ * @example active
+ */
+ lifecycle_status?: string;
+ modalities?: components["schemas"]["apiModelModalities"];
+ /**
+ * @description Model availability (serverless, dedicated, etc.)
+ * @example example string
+ */
+ model_availability?: string;
+ /**
+ * @description Display name of the model
+ * @example Llama 3.3 Instruct (70B)
+ */
+ name?: string;
+ /**
+ * Format: float
+ * @description Parameter count in billions
+ * @example 123
+ */
+ parameter_count?: number;
+ /**
+ * @description Unique id of the model, this model is based on
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ parent_uuid?: string;
+ pricing?: components["schemas"]["apiModelPricing"];
+ provider?: components["schemas"]["apiModelProvider"];
+ /**
+ * @description Available reasoning efforts for this model
+ * @example [
+ * "example string"
+ * ]
+ */
+ reasoning_efforts?: string[];
+ /** @description Playground settings derived from model metadata */
+ settings?: components["schemas"]["apiModelSetting"][];
+ /**
+ * @description Whether this model supports extended thinking (Anthropic models)
+ * @example true
+ */
+ thinking?: boolean;
+ /**
+ * @description Model type (chat, embedding, image, reasoning, coding)
+ * @example example string
+ */
+ type?: string;
+ /**
+ * Format: date-time
+ * @description Last modified
+ * @example 2021-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ /**
+ * @description Model has been fully uploaded
+ * @example true
+ */
+ upload_complete?: boolean;
+ /**
+ * @description Download url
+ * @example https://example.com/model.zip
+ */
+ url?: string;
+ /**
+ * @description Unique id
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ uuid?: string;
+ version?: components["schemas"]["apiModelVersion"];
+ };
+ /** @description A list of models */
+ apiListModelsOutputPublic: {
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ /** @description The models */
+ models?: components["schemas"]["apiModelPublic"][];
+ };
+ /** @description Model API Key Info */
+ apiModelAPIKeyInfo: {
+ /**
+ * Format: date-time
+ * @description Creation date
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * Format: uint64
+ * @description Created by
+ * @example 12345
+ */
+ created_by?: string;
+ /**
+ * Format: date-time
+ * @description Deleted date
+ * @example 2023-01-01T00:00:00Z
+ */
+ deleted_at?: string;
+ /**
+ * @description Name
+ * @example example name
+ */
+ name?: string;
+ /** @example example string */
+ secret_key?: string;
+ /**
+ * @description Uuid
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ };
+ apiListModelAPIKeysOutput: {
+ /** @description Api key infos */
+ api_key_infos?: components["schemas"]["apiModelAPIKeyInfo"][];
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ };
+ apiCreateModelAPIKeyInputPublic: {
+ /**
+ * @description A human friendly name to identify the key
+ * @example Production Key
+ */
+ name?: string;
+ };
+ apiUpdateModelAPIKeyInputPublic: {
+ /**
+ * @description API key ID
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ api_key_uuid?: string;
+ /**
+ * @description Name
+ * @example "Production Key"
+ */
+ name?: string;
+ };
+ apiUpdateModelAPIKeyOutput: {
+ api_key_info?: components["schemas"]["apiModelAPIKeyInfo"];
+ };
+ apiDeleteModelAPIKeyOutput: {
+ api_key_info?: components["schemas"]["apiModelAPIKeyInfo"];
+ };
+ apiRegenerateModelAPIKeyOutput: {
+ api_key_info?: components["schemas"]["apiModelAPIKeyInfo"];
+ };
+ /**
+ * @description Field on which to sort model catalog results.
+ *
+ * - MODEL_CATALOG_SORT_BY_CREATED_AT: Default: sort by creation date.
+ * - MODEL_CATALOG_SORT_BY_NAME: Sort by the model's display name (case-insensitive).
+ * - MODEL_CATALOG_SORT_BY_PRICE: Sort by input token price.
+ * @default MODEL_CATALOG_SORT_BY_CREATED_AT
+ * @example MODEL_CATALOG_SORT_BY_CREATED_AT
+ * @enum {string}
+ */
+ apiModelCatalogSortBy: "MODEL_CATALOG_SORT_BY_CREATED_AT" | "MODEL_CATALOG_SORT_BY_NAME" | "MODEL_CATALOG_SORT_BY_PRICE";
+ /**
+ * @description Sort direction shared by list endpoints that support sorting.
+ * @default SORT_DIRECTION_UNSPECIFIED
+ * @example SORT_DIRECTION_UNSPECIFIED
+ * @enum {string}
+ */
+ apiSortDirection: "SORT_DIRECTION_UNSPECIFIED" | "SORT_DIRECTION_ASC" | "SORT_DIRECTION_DESC";
+ /** @description List item for ListModelCatalog */
+ apiModelCatalogEntry: {
+ /**
+ * @example [
+ * "example string"
+ * ]
+ */
+ availability?: string[];
+ /**
+ * @description Badges for models
+ * @example [
+ * "example string"
+ * ]
+ */
+ badges?: string[];
+ /** @description Benchmark scores for this model, stored as arbitrary JSON */
+ benchmark_score?: Record;
+ /**
+ * @example [
+ * "example string"
+ * ]
+ */
+ capabilities?: string[];
+ /**
+ * Format: int64
+ * @description Specs (flat)
+ * @example 128000
+ */
+ context_window?: string;
+ /**
+ * Format: date-time
+ * @description RFC 3339 timestamp indicating when the model was added to the catalog.
+ * @example 2021-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * @description Model creator/developer (e.g., "Meta", "Anthropic", "OpenAI")
+ * @example "Meta"
+ */
+ creator?: string;
+ /**
+ * @description The Hugging Face repository ID (e.g. "meta-llama/Llama-3.3-70B-Instruct")
+ * the model is based on, when applicable. Omitted for models not sourced from Hugging Face.
+ * @example "meta-llama/Llama-3.3-70B-Instruct"
+ */
+ hugging_face_id?: string;
+ /**
+ * @description Identity
+ * @example "506a3371-88d0-4047-9212-e2079497ac68"
+ */
+ id?: string;
+ /**
+ * Format: int64
+ * @description The maximum number of output tokens the model can generate in a single
+ * response.
+ * @example 65536
+ */
+ max_output_tokens?: string;
+ /**
+ * @description Model identifier used for API calls (e.g., "llama3.1-70b-instruct")
+ * @example "llama3.1-70b-instruct"
+ */
+ model_id?: string;
+ /** @example "Llama 3.1 70B" */
+ name?: string;
+ /**
+ * Format: float
+ * @example 70
+ */
+ parameter_count?: number;
+ pricing?: components["schemas"]["apiModelPricing"];
+ provider?: components["schemas"]["apiModelProvider"];
+ /**
+ * @description True when this model's pricing varies over time. Retrieve the model's
+ * details for the full pricing schedule. False for models with fixed pricing.
+ * @example true
+ */
+ scaled_pricing_enabled?: boolean;
+ /** @example "Fast, efficient model for general tasks" */
+ short_description?: string;
+ /** @example "text-to-text" */
+ type?: string;
+ };
+ apiListModelCatalogOutput: {
+ /**
+ * @description All deployment availability values the client can offer in the availability filter UI.
+ * @example [
+ * "example string"
+ * ]
+ */
+ available_availability?: string[];
+ /**
+ * @description All badge values the client can offer in the badges filter UI.
+ * @example [
+ * "example string"
+ * ]
+ */
+ available_badges?: string[];
+ /**
+ * @description All model type values the client can offer in the type filter UI.
+ * @example [
+ * "example string"
+ * ]
+ */
+ available_model_types?: string[];
+ /**
+ * @description All provider values the client can offer in the provider filter UI.
+ * @example [
+ * "example string"
+ * ]
+ */
+ available_providers?: string[];
+ /** @description All sort-by field values the client can offer in the sort UI. */
+ available_sort_by?: components["schemas"]["apiModelCatalogSortBy"][];
+ /** @description All sort-direction values the client can offer in the sort UI. */
+ available_sort_directions?: components["schemas"]["apiSortDirection"][];
+ data?: components["schemas"]["apiModelCatalogEntry"][];
+ meta?: components["schemas"]["apiMeta"];
+ };
+ /** @description Code examples for using the model */
+ apiCodeSnippets: {
+ /** @example example string */
+ curl?: string;
+ /** @example example string */
+ javascript?: string;
+ /** @example example string */
+ python?: string;
+ /** @example example string */
+ sdk?: string;
+ };
+ /**
+ * @description Whether rates apply to real-time or batch requests.
+ *
+ * - MODEL_BILLING_MODE_INTERACTIVE: Real-time request pricing.
+ * - MODEL_BILLING_MODE_BATCH: Discounted pricing for asynchronous batch requests.
+ * @default MODEL_BILLING_MODE_UNSPECIFIED
+ * @example MODEL_BILLING_MODE_UNSPECIFIED
+ * @enum {string}
+ */
+ apiModelBillingMode: "MODEL_BILLING_MODE_UNSPECIFIED" | "MODEL_BILLING_MODE_INTERACTIVE" | "MODEL_BILLING_MODE_BATCH";
+ /**
+ * @description A time window during which the model's rates stay the same. Together these
+ * intervals show how pricing changes over the course of a day.
+ */
+ apiModelPricingInterval: {
+ /**
+ * Format: date-time
+ * @description End of the interval, exclusive. Always on the hour.
+ * @example 2021-01-01T15:00:00Z
+ */
+ end_time?: string;
+ prices?: components["schemas"]["apiModelPricing"];
+ /**
+ * Format: date-time
+ * @description Start of the interval, inclusive. Always on the hour.
+ * @example 2021-01-01T13:00:00Z
+ */
+ start_time?: string;
+ };
+ /**
+ * @description Pricing that varies over time. When present, the rates move between the low
+ * and high bounds below across the intervals in the schedule.
+ */
+ apiModelScaledPricing: {
+ /**
+ * @description The pricing schedule as a series of consecutive time intervals, ordered by
+ * start time. Neighboring hours with the same rates are combined, so each
+ * interval represents a distinct price.
+ */
+ intervals?: components["schemas"]["apiModelPricingInterval"][];
+ max_prices?: components["schemas"]["apiModelPricing"];
+ min_prices?: components["schemas"]["apiModelPricing"];
+ };
+ /**
+ * @description A pricing variant of a model, such as a faster serving option or a larger
+ * context window.
+ *
+ * - MODEL_PRICING_TIER_STANDARD: Default pricing.
+ * - MODEL_PRICING_TIER_FAST_MODE: Faster, higher-priority serving at a premium price.
+ * - MODEL_PRICING_TIER_EXTENDED_1M: Pricing for the 1M-token context window.
+ * - MODEL_PRICING_TIER_EXTENDED_272K: Pricing for the 272K-token context window.
+ * - MODEL_PRICING_TIER_BYOK: Pricing when using your own model API key.
+ * @default MODEL_PRICING_TIER_UNSPECIFIED
+ * @example MODEL_PRICING_TIER_UNSPECIFIED
+ * @enum {string}
+ */
+ apiModelPricingTier: "MODEL_PRICING_TIER_UNSPECIFIED" | "MODEL_PRICING_TIER_STANDARD" | "MODEL_PRICING_TIER_FAST_MODE" | "MODEL_PRICING_TIER_EXTENDED_1M" | "MODEL_PRICING_TIER_EXTENDED_272K" | "MODEL_PRICING_TIER_BYOK";
+ /** @description Pricing for one variant of a model: a specific tier and billing mode. */
+ apiModelPricingVariant: {
+ /**
+ * @description Currency code for this variant's rates (e.g. `USD`).
+ * @example USD
+ */
+ currency?: string;
+ /**
+ * @description Display name for the variant (e.g. `Standard`, `Fast Mode`, `1M Context`).
+ * @example Standard
+ */
+ label?: string;
+ mode?: components["schemas"]["apiModelBillingMode"];
+ prices?: components["schemas"]["apiModelPricing"];
+ scaled_pricing?: components["schemas"]["apiModelScaledPricing"];
+ tier?: components["schemas"]["apiModelPricingTier"];
+ };
+ /** @description The complete set of prices for a model, covering every available variant. */
+ apiModelPricingDetail: {
+ /** @description Each available pricing variant for the model. */
+ variants?: components["schemas"]["apiModelPricingVariant"][];
+ };
+ /** @description Detail view for GetModelCatalogCard */
+ apiModelCatalogCard: {
+ /**
+ * @example [
+ * "example string"
+ * ]
+ */
+ availability?: string[];
+ /**
+ * @description Badges for models
+ * @example [
+ * "example string"
+ * ]
+ */
+ badges?: string[];
+ /** @description Benchmark scores for this model, stored as arbitrary JSON */
+ benchmark_score?: Record;
+ /**
+ * @example [
+ * "example string"
+ * ]
+ */
+ capabilities?: string[];
+ code_snippets?: components["schemas"]["apiCodeSnippets"];
+ /**
+ * Format: int64
+ * @description Specs (same as Entry)
+ * @example 128000
+ */
+ context_window?: string;
+ /**
+ * @description Model creator/developer (e.g., "Meta", "Anthropic", "OpenAI")
+ * @example "Meta"
+ */
+ creator?: string;
+ /**
+ * @description Card-specific
+ * @example "Claude Sonnet 4 is Anthropic's most capable model..."
+ */
+ description?: string;
+ /**
+ * @description The Hugging Face repository ID (e.g. "meta-llama/Llama-3.3-70B-Instruct")
+ * the model is based on, when applicable. Omitted for models not sourced from Hugging Face.
+ * @example "meta-llama/Llama-3.3-70B-Instruct"
+ */
+ hugging_face_id?: string;
+ /**
+ * @description Identity (same as Entry)
+ * @example "506a3371-88d0-4047-9212-e2079497ac68"
+ */
+ id?: string;
+ /**
+ * Format: int64
+ * @description The maximum number of output tokens the model can generate in a single
+ * response.
+ * @example 65536
+ */
+ max_output_tokens?: string;
+ modalities?: components["schemas"]["apiModelModalities"];
+ /**
+ * @description Model identifier used for API calls (e.g., "llama3.1-70b-instruct")
+ * @example "llama3.1-70b-instruct"
+ */
+ model_id?: string;
+ /** @example "Llama 3.1 70B" */
+ name?: string;
+ /**
+ * Format: float
+ * @example 70
+ */
+ parameter_count?: number;
+ pricing?: components["schemas"]["apiModelPricing"];
+ pricing_detail?: components["schemas"]["apiModelPricingDetail"];
+ provider?: components["schemas"]["apiModelProvider"];
+ /** @example "Fast, efficient model for general tasks" */
+ short_description?: string;
+ /** @example "text-to-text" */
+ type?: string;
+ };
+ apiGetModelCatalogCardOutput: {
+ data?: components["schemas"]["apiModelCatalogCard"];
+ };
+ /**
+ * @description Badge shown on a V2 catalog row.
+ *
+ * - MODEL_CATALOG_BADGE_FEATURED: Featured in the catalog.
+ * - MODEL_CATALOG_BADGE_NEW: Newly added.
+ * - MODEL_CATALOG_BADGE_PREVIEW: Preview.
+ * - MODEL_CATALOG_BADGE_DEPRECATING: Scheduled for deprecation.
+ * - MODEL_CATALOG_BADGE_INFERENCE_ROUTER: Inference Router preset.
+ * @default MODEL_CATALOG_BADGE_UNSPECIFIED
+ * @example MODEL_CATALOG_BADGE_UNSPECIFIED
+ * @enum {string}
+ */
+ apiModelCatalogBadge: "MODEL_CATALOG_BADGE_UNSPECIFIED" | "MODEL_CATALOG_BADGE_FEATURED" | "MODEL_CATALOG_BADGE_NEW" | "MODEL_CATALOG_BADGE_PREVIEW" | "MODEL_CATALOG_BADGE_DEPRECATING" | "MODEL_CATALOG_BADGE_INFERENCE_ROUTER";
+ /**
+ * @description A kind of data a model accepts as input or produces as output.
+ *
+ * - MODEL_MODALITY_TEXT: plain text
+ * - MODEL_MODALITY_IMAGE: still images
+ * - MODEL_MODALITY_AUDIO: audio
+ * - MODEL_MODALITY_VIDEO: video
+ * - MODEL_MODALITY_EMBEDDING: embedding vectors
+ * - MODEL_MODALITY_RANKING: document ranking scores produced by reranking models
+ * - MODEL_MODALITY_DECISIONS: structured decisions produced by classification models
+ * @default MODEL_MODALITY_UNSPECIFIED
+ * @example MODEL_MODALITY_UNSPECIFIED
+ * @enum {string}
+ */
+ apiModelModality: "MODEL_MODALITY_UNSPECIFIED" | "MODEL_MODALITY_TEXT" | "MODEL_MODALITY_IMAGE" | "MODEL_MODALITY_AUDIO" | "MODEL_MODALITY_VIDEO" | "MODEL_MODALITY_EMBEDDING" | "MODEL_MODALITY_RANKING" | "MODEL_MODALITY_DECISIONS";
+ /**
+ * @description Product that offers the model. Serving (serverless or dedicated) is separate.
+ *
+ * - MODEL_CATALOG_PRODUCT_EVALUATIONS_JUDGE: Model can judge evaluations.
+ * - MODEL_CATALOG_PRODUCT_HARNESS_RUNTIME: Model is enrolled for the harness runtime.
+ * - MODEL_CATALOG_PRODUCT_EVALUATION_CANDIDATE: Model can be an evaluation or simulation candidate.
+ * @default MODEL_CATALOG_PRODUCT_UNSPECIFIED
+ * @example MODEL_CATALOG_PRODUCT_UNSPECIFIED
+ * @enum {string}
+ */
+ apiModelCatalogProduct: "MODEL_CATALOG_PRODUCT_UNSPECIFIED" | "MODEL_CATALOG_PRODUCT_EVALUATIONS_JUDGE" | "MODEL_CATALOG_PRODUCT_HARNESS_RUNTIME" | "MODEL_CATALOG_PRODUCT_EVALUATION_CANDIDATE";
+ /**
+ * @description Where a V2 catalog model is served.
+ *
+ * - MODEL_SERVING_SERVERLESS: Serverless inference.
+ * - MODEL_SERVING_DEDICATED: Dedicated inference.
+ * @default MODEL_SERVING_UNSPECIFIED
+ * @example MODEL_SERVING_UNSPECIFIED
+ * @enum {string}
+ */
+ apiModelServing: "MODEL_SERVING_UNSPECIFIED" | "MODEL_SERVING_SERVERLESS" | "MODEL_SERVING_DEDICATED";
+ /**
+ * @description Field on which to sort V2 model catalog results.
+ *
+ * - MODEL_CATALOG_SORT_BY_CREATED_AT: Default: sort by creation date.
+ * - MODEL_CATALOG_SORT_BY_NAME: Sort by the model's display name (case-insensitive).
+ * - MODEL_CATALOG_SORT_BY_PRICE: Sort by input token price.
+ * - MODEL_CATALOG_SORT_BY_E2E_LATENCY_P50: Sort by canary end-to-end latency p50, in seconds. Lower is better. Rows without performance data sort after rows with data.
+ * - MODEL_CATALOG_SORT_BY_THROUGHPUT_P50: Sort by canary throughput p50, in tokens per second. Higher is better. Rows without performance data sort after rows with data.
+ * - MODEL_CATALOG_SORT_BY_TTFT_P50: Sort by canary time to first token p50, in seconds. Lower is better. Rows without performance data sort after rows with data.
+ * @default MODEL_CATALOG_SORT_BY_CREATED_AT
+ * @example MODEL_CATALOG_SORT_BY_CREATED_AT
+ * @enum {string}
+ */
+ apiModelCatalogSortByV2: "MODEL_CATALOG_SORT_BY_CREATED_AT" | "MODEL_CATALOG_SORT_BY_NAME" | "MODEL_CATALOG_SORT_BY_PRICE" | "MODEL_CATALOG_SORT_BY_E2E_LATENCY_P50" | "MODEL_CATALOG_SORT_BY_THROUGHPUT_P50" | "MODEL_CATALOG_SORT_BY_TTFT_P50";
+ /**
+ * @description Whether a catalog row is a foundation model or an Inference Router preset.
+ *
+ * - MODEL_CATALOG_ITEM_TYPE_MODEL: A foundation or inference model.
+ * - MODEL_CATALOG_ITEM_TYPE_INFERENCE_ROUTER: An Inference Router preset.
+ * @default MODEL_CATALOG_ITEM_TYPE_UNSPECIFIED
+ * @example MODEL_CATALOG_ITEM_TYPE_UNSPECIFIED
+ * @enum {string}
+ */
+ apiModelCatalogItemType: "MODEL_CATALOG_ITEM_TYPE_UNSPECIFIED" | "MODEL_CATALOG_ITEM_TYPE_MODEL" | "MODEL_CATALOG_ITEM_TYPE_INFERENCE_ROUTER";
+ /**
+ * @description One UTC day of a performance metric, merged across serving regions.
+ * Percentiles use the parent metric's unit.
+ */
+ apiModelLivelinessDay: {
+ /**
+ * Format: double
+ * @description Start of the day (00:00 UTC) as Unix milliseconds.
+ * @example 1758499200000
+ */
+ day_ms?: number;
+ /**
+ * Format: double
+ * @description Median value, rounded to 2 decimal places.
+ * @example 0.42
+ */
+ p50?: number;
+ /**
+ * Format: double
+ * @description 75th percentile value, rounded to 2 decimal places.
+ * @example 0.61
+ */
+ p75?: number;
+ /**
+ * Format: double
+ * @description 95th percentile value, rounded to 2 decimal places.
+ * @example 1.9
+ */
+ p95?: number;
+ /**
+ * @description True while the day is still in progress; its values will keep changing.
+ * @example true
+ */
+ partial?: boolean;
+ /**
+ * Format: int64
+ * @description Number of requests the percentiles were computed from.
+ * @example 24
+ */
+ samples?: number;
+ };
+ /**
+ * @description One performance metric for a model: its daily series, oldest day first, and
+ * whether it has data.
+ */
+ apiModelLivelinessMetric: {
+ /** @description Daily points, oldest first. Empty when status is "insufficient_data". */
+ days?: components["schemas"]["apiModelLivelinessDay"][];
+ /**
+ * @description "ok" when days has data; "insufficient_data" when there are not enough
+ * recent samples for this model.
+ * @example "ok"
+ */
+ status?: string;
+ /**
+ * @description Unit of the percentile values: "s" for ttft and e2e_latency, "tok/s" for
+ * throughput.
+ * @example "s"
+ */
+ unit?: string;
+ };
+ /**
+ * @description Performance statistics for a model, computed from canary traffic.
+ * Present when the feature is enabled. Each metric (ttft, e2e_latency,
+ * throughput) has its own status.
+ */
+ apiModelLiveliness: {
+ e2e_latency?: components["schemas"]["apiModelLivelinessMetric"];
+ /**
+ * @description Summary across metrics: "ok" when every metric has data, "partial_data"
+ * when some do and some do not, "insufficient_data" when none do.
+ * @example "ok"
+ */
+ overall_status?: string;
+ /**
+ * @description Traffic the statistics are computed from. Always "canary".
+ * @example "canary"
+ */
+ source?: string;
+ throughput?: components["schemas"]["apiModelLivelinessMetric"];
+ ttft?: components["schemas"]["apiModelLivelinessMetric"];
+ };
+ /** @description Numeric range with min, max, and default values for model tuning parameters. */
+ apiNumericRange: {
+ /**
+ * Format: double
+ * @example 123
+ */
+ default?: number;
+ /**
+ * Format: double
+ * @example 123
+ */
+ max?: number;
+ /**
+ * Format: double
+ * @example 123
+ */
+ min?: number;
+ };
+ /**
+ * @description Compact canary performance rollup for catalog browse and the catalog card.
+ * List Model Catalog V2 uses a rolling last-24-hour window (window_days is 1).
+ * Get Model Catalog Card V2 uses the sample-weighted mean of daily percentiles
+ * over the liveliness window, typically 7 days. The full daily series stays on
+ * liveliness. This is canary traffic, not live customer load.
+ */
+ apiModelCatalogPerformance: {
+ /**
+ * Format: double
+ * @description End-to-end latency in seconds, p50.
+ * @example 0.42
+ */
+ e2e_latency_p50_seconds?: number;
+ /**
+ * Format: double
+ * @description End-to-end latency in seconds, p75.
+ * @example 0.9
+ */
+ e2e_latency_p75_seconds?: number;
+ /**
+ * Format: double
+ * @description End-to-end latency in seconds, p95.
+ * @example 1.9
+ */
+ e2e_latency_p95_seconds?: number;
+ /**
+ * Format: int64
+ * @description Request samples across the window. Prefers end-to-end latency, then time to first token, then throughput.
+ * @example 168
+ */
+ samples?: number;
+ /**
+ * @description "ok" when time to first token, end-to-end latency, and throughput all
+ * have data, "partial_data" when only some do, "insufficient_data" when
+ * none do.
+ * @example "ok"
+ */
+ status?: string;
+ /**
+ * Format: double
+ * @description Throughput in tokens per second, p50.
+ * @example 48.5
+ */
+ throughput_p50_tok_per_s?: number;
+ /**
+ * Format: double
+ * @description Throughput in tokens per second, p75.
+ * @example 60
+ */
+ throughput_p75_tok_per_s?: number;
+ /**
+ * Format: double
+ * @description Throughput in tokens per second, p95.
+ * @example 72
+ */
+ throughput_p95_tok_per_s?: number;
+ /**
+ * Format: double
+ * @description Time to first token in seconds, p50. Streaming canary probes only.
+ * @example 0.18
+ */
+ ttft_p50_seconds?: number;
+ /**
+ * Format: double
+ * @description Time to first token in seconds, p75. Streaming canary probes only.
+ * @example 0.3
+ */
+ ttft_p75_seconds?: number;
+ /**
+ * Format: double
+ * @description Time to first token in seconds, p95. Streaming canary probes only.
+ * @example 0.55
+ */
+ ttft_p95_seconds?: number;
+ /**
+ * Format: int64
+ * @description Lookback window length in days. 1 is the rolling 24-hour list window.
+ * @example 7
+ */
+ window_days?: number;
+ };
+ /**
+ * @description An inference endpoint a model can be served on.
+ *
+ * - MODEL_SUPPORTED_ENDPOINT_CHAT_COMPLETIONS: OpenAI-compatible POST /v1/chat/completions
+ * - MODEL_SUPPORTED_ENDPOINT_COMPLETIONS: OpenAI-compatible POST /v1/completions
+ * - MODEL_SUPPORTED_ENDPOINT_EMBEDDINGS: OpenAI-compatible POST /v1/embeddings
+ * - MODEL_SUPPORTED_ENDPOINT_AUDIO_TRANSCRIPTIONS: POST /v1/audio/transcriptions
+ * - MODEL_SUPPORTED_ENDPOINT_AUDIO_SPEECH: POST /v1/audio/speech
+ * - MODEL_SUPPORTED_ENDPOINT_IMAGE_GENERATIONS: POST /v1/images/generations
+ * - MODEL_SUPPORTED_ENDPOINT_VIDEO_GENERATIONS: POST /v1/videos
+ * - MODEL_SUPPORTED_ENDPOINT_AUDIO_DIARIZATIONS: POST /v1/audio/diarizations
+ * - MODEL_SUPPORTED_ENDPOINT_ASYNC_INVOKE: POST /v1/async-invoke
+ * - MODEL_SUPPORTED_ENDPOINT_RERANKING: POST /v1/rerank
+ * - MODEL_SUPPORTED_ENDPOINT_SYSTEM_ONE: POST /v1/systemone
+ * - MODEL_SUPPORTED_ENDPOINT_RESPONSES: OpenAI-compatible POST /v1/responses
+ * @default MODEL_SUPPORTED_ENDPOINT_UNSPECIFIED
+ * @example MODEL_SUPPORTED_ENDPOINT_UNSPECIFIED
+ * @enum {string}
+ */
+ apiModelSupportedEndpoint: "MODEL_SUPPORTED_ENDPOINT_UNSPECIFIED" | "MODEL_SUPPORTED_ENDPOINT_CHAT_COMPLETIONS" | "MODEL_SUPPORTED_ENDPOINT_COMPLETIONS" | "MODEL_SUPPORTED_ENDPOINT_EMBEDDINGS" | "MODEL_SUPPORTED_ENDPOINT_AUDIO_TRANSCRIPTIONS" | "MODEL_SUPPORTED_ENDPOINT_AUDIO_SPEECH" | "MODEL_SUPPORTED_ENDPOINT_IMAGE_GENERATIONS" | "MODEL_SUPPORTED_ENDPOINT_VIDEO_GENERATIONS" | "MODEL_SUPPORTED_ENDPOINT_AUDIO_DIARIZATIONS" | "MODEL_SUPPORTED_ENDPOINT_ASYNC_INVOKE" | "MODEL_SUPPORTED_ENDPOINT_RERANKING" | "MODEL_SUPPORTED_ENDPOINT_SYSTEM_ONE" | "MODEL_SUPPORTED_ENDPOINT_RESPONSES";
+ /**
+ * @description Catalog row returned by List Model Catalog V2 and Get Model Catalog Card V2.
+ * description, code_snippets, pricing_detail, and liveliness are populated on
+ * the card and empty on list rows. performance is populated on list rows and
+ * the card when canary data is available.
+ */
+ apiModelCatalogEntryV2: {
+ /**
+ * @example [
+ * "MODEL_CATALOG_BADGE_FEATURED"
+ * ]
+ */
+ badges?: components["schemas"]["apiModelCatalogBadge"][];
+ /**
+ * @example [
+ * "tool_calling"
+ * ]
+ */
+ capabilities?: string[];
+ code_snippets?: components["schemas"]["apiCodeSnippets"];
+ /**
+ * Format: int64
+ * @example 128000
+ */
+ context_window?: string;
+ /**
+ * Format: date-time
+ * @description RFC 3339 timestamp indicating when the model was added to the catalog.
+ * @example 2021-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * @description Model creator or developer, such as Meta, Anthropic, or OpenAI.
+ * @example "Meta"
+ */
+ creator?: string;
+ /**
+ * @description Full catalog description. Populated on Get Model Catalog Card V2.
+ * @example "Claude Sonnet 4 is Anthropic's most capable model..."
+ */
+ description?: string;
+ /**
+ * @description Hugging Face repository ID the model is based on, when applicable.
+ * @example "meta-llama/Llama-3.3-70B-Instruct"
+ */
+ huggingface_repo_id?: string;
+ /** @example "506a3371-88d0-4047-9212-e2079497ac68" */
+ id?: string;
+ /**
+ * @example [
+ * "MODEL_MODALITY_TEXT"
+ * ]
+ */
+ input_modality?: components["schemas"]["apiModelModality"][];
+ item_type?: components["schemas"]["apiModelCatalogItemType"];
+ liveliness?: components["schemas"]["apiModelLiveliness"];
+ /**
+ * Format: int64
+ * @description Maximum number of output tokens the model can generate in one response.
+ * @example 65536
+ */
+ max_output_tokens?: string;
+ max_tokens?: components["schemas"]["apiNumericRange"];
+ /**
+ * @description Model identifier used for inference API calls, such as llama3.1-70b-instruct.
+ * @example "llama3.1-70b-instruct"
+ */
+ model_id?: string;
+ /** @example "Llama 3.1 70B" */
+ name?: string;
+ /**
+ * @example [
+ * "MODEL_MODALITY_TEXT"
+ * ]
+ */
+ output_modality?: components["schemas"]["apiModelModality"][];
+ /**
+ * Format: float
+ * @description Parameter count in billions. For example, 70.0 means 70B.
+ * @example 70
+ */
+ parameter_count_in_billions?: number;
+ performance?: components["schemas"]["apiModelCatalogPerformance"];
+ pricing?: components["schemas"]["apiModelPricing"];
+ pricing_detail?: components["schemas"]["apiModelPricingDetail"];
+ /**
+ * @example [
+ * "MODEL_CATALOG_PRODUCT_EVALUATION_CANDIDATE"
+ * ]
+ */
+ products?: components["schemas"]["apiModelCatalogProduct"][];
+ provider?: components["schemas"]["apiModelProvider"];
+ /**
+ * @description Supported reasoning effort levels, such as low, medium, and high.
+ * @example [
+ * "low"
+ * ]
+ */
+ reasoning_efforts?: string[];
+ /**
+ * @description True when this model's pricing varies over time.
+ * @example true
+ */
+ scaled_pricing_enabled?: boolean;
+ /**
+ * @example [
+ * "MODEL_SERVING_SERVERLESS"
+ * ]
+ */
+ serving?: components["schemas"]["apiModelServing"][];
+ /** @example "Fast, efficient model for general tasks" */
+ short_description?: string;
+ /**
+ * @description Inference endpoints this model serves, such as chat completions or responses.
+ * Empty for Inference Router presets.
+ * @example [
+ * "MODEL_SUPPORTED_ENDPOINT_CHAT_COMPLETIONS"
+ * ]
+ */
+ supported_endpoints?: components["schemas"]["apiModelSupportedEndpoint"][];
+ /**
+ * @description Whether the inference request schema includes a temperature field.
+ * @example true
+ */
+ supports_temperature?: boolean;
+ temperature?: components["schemas"]["apiNumericRange"];
+ /**
+ * @description Whether the model supports extended thinking.
+ * @example true
+ */
+ thinking?: boolean;
+ top_p?: components["schemas"]["apiNumericRange"];
+ /**
+ * @description Catalog model type, such as chat or embedding.
+ * @example "chat"
+ */
+ type?: string;
+ };
+ apiListModelCatalogV2Output: {
+ /** @description Badge values present in the unfiltered catalog. */
+ available_badges?: components["schemas"]["apiModelCatalogBadge"][];
+ /**
+ * @description Creator values the client can offer in the creator filter.
+ * @example [
+ * "Meta"
+ * ]
+ */
+ available_creators?: string[];
+ /** @description Modality values accepted by the input_modality filter. */
+ available_input_modalities?: components["schemas"]["apiModelModality"][];
+ /**
+ * @description Model types present in the unfiltered catalog, such as chat or embedding.
+ * Informational only. V2 has no model_type request filter; browse by
+ * input_modality, output_modality, or capabilities.
+ * @example [
+ * "chat"
+ * ]
+ */
+ available_model_types?: string[];
+ /** @description Modality values accepted by the output_modality filter. */
+ available_output_modalities?: components["schemas"]["apiModelModality"][];
+ /** @description Product enrollment values present in the unfiltered catalog. */
+ available_products?: components["schemas"]["apiModelCatalogProduct"][];
+ /** @description Serving values present in the unfiltered catalog. */
+ available_serving?: components["schemas"]["apiModelServing"][];
+ /** @description Sort fields the client can offer in the sort UI. */
+ available_sort_by?: components["schemas"]["apiModelCatalogSortByV2"][];
+ /** @description Sort directions the client can offer in the sort UI. */
+ available_sort_directions?: components["schemas"]["apiSortDirection"][];
+ data?: components["schemas"]["apiModelCatalogEntryV2"][];
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ };
+ /**
+ * @description V2 catalog card. description, code_snippets, pricing_detail, and liveliness
+ * are populated on this response.
+ */
+ apiGetModelCatalogCardV2Output: {
+ data?: components["schemas"]["apiModelCatalogEntryV2"];
+ };
+ /** @description List of model routers */
+ apiListModelRoutersOutput: {
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ /** @description The model routers */
+ model_routers?: components["schemas"]["apiModelRouter"][];
+ };
+ /** @description Create a model router */
+ apiCreateModelRouterInputPublic: {
+ /**
+ * @description Model router description
+ * @example "My Model Router Description"
+ */
+ description?: string;
+ /**
+ * @description At least one fallback model is required; order defines failover priority
+ * @example [
+ * "example string"
+ * ]
+ */
+ fallback_models?: string[];
+ /**
+ * @description Model router name: lowercase, at most 255 characters, only a-z, 0-9, and hyphens
+ * @example "my-model-router"
+ */
+ name?: string;
+ /** @description Router policies */
+ policies?: components["schemas"]["apiModelRouterTaskPolicy"][];
+ /**
+ * @description DEPRECATED: this field does not affect deployment and model routers are always
+ * deployed to all regions. Must be omitted or set to ["all"].
+ * @example [
+ * "example string"
+ * ]
+ */
+ regions?: string[];
+ };
+ /** @description Information about a newly created model router */
+ apiCreateModelRouterOutput: {
+ model_router?: components["schemas"]["apiModelRouter"];
+ };
+ /** @description Model router preset used to prefill new router configurations. */
+ apiModelRouterPreset: {
+ config?: components["schemas"]["apiModelRouterConfig"];
+ /**
+ * @description Display name for UI surfaces
+ * @example example name
+ */
+ display_name?: string;
+ /**
+ * @description Long description for details views
+ * @example example string
+ */
+ long_description?: string;
+ /**
+ * @description Short description for list views
+ * @example example string
+ */
+ short_description?: string;
+ /**
+ * @description Stable slug for routing usage
+ * @example example string
+ */
+ slug?: string;
+ };
+ /** @description List of model router presets */
+ apiListModelRouterPresetsOutput: {
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ /** @description The model router presets */
+ presets?: components["schemas"]["apiModelRouterPreset"][];
+ };
+ /** @description Task preset that can be referenced by slug in model router policies. */
+ apiModelRouterTaskPreset: {
+ /**
+ * @description Higher-level grouping used by the UI
+ * @example example string
+ */
+ category?: string;
+ /**
+ * @description Task description
+ * @example example string
+ */
+ description?: string;
+ /**
+ * @description Default models assigned to this task
+ * @example [
+ * "example string"
+ * ]
+ */
+ models?: string[];
+ /**
+ * @description Display name
+ * @example example name
+ */
+ name?: string;
+ selection_policy?: components["schemas"]["apiModelRouterSelectionPolicy"];
+ /**
+ * @description Lightweight labels for filtering
+ * @example [
+ * "example string"
+ * ]
+ */
+ tags?: string[];
+ /**
+ * @description Task slug
+ * @example example string
+ */
+ task_slug?: string;
+ };
+ /** @description List of model router task presets */
+ apiListModelRouterTaskPresetsOutput: {
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ /** @description The task presets */
+ tasks?: components["schemas"]["apiModelRouterTaskPreset"][];
+ };
+ /** @description The model router */
+ apiGetModelRouterOutput: {
+ model_router?: components["schemas"]["apiModelRouter"];
+ };
+ /** @description Information about updating a model router */
+ apiUpdateModelRouterInputPublic: {
+ /**
+ * @description Model router description
+ * @example "My Model Router Description"
+ */
+ description?: string;
+ fallback_models?: Record[];
+ /**
+ * @description Model router name: lowercase, at most 255 characters, only a-z, 0-9, and hyphens
+ * @example "my-model-router"
+ */
+ name?: string;
+ /** @description Router policies */
+ policies?: components["schemas"]["apiModelRouterTaskPolicy"][];
+ /**
+ * @description DEPRECATED: this field does not affect deployment and model routers are always
+ * deployed to all regions. Must be omitted or set to ["all"].
+ * @example [
+ * "example string"
+ * ]
+ */
+ regions?: string[];
+ /**
+ * @description Model router id
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ uuid?: string;
+ };
+ /** @description Information about an updated model router */
+ apiUpdateModelRouterOutput: {
+ model_router?: components["schemas"]["apiModelRouter"];
+ };
+ /** @description Information about a deleted model router */
+ apiDeleteModelRouterOutput: {
+ /**
+ * @description The id of the deleted model router
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ };
+ /** @description The oauth2 code from google */
+ apiDropboxOauth2GetTokensInput: {
+ /**
+ * @description The oauth2 code from google
+ * @example example string
+ */
+ code?: string;
+ /**
+ * @description Redirect url
+ * @example example string
+ */
+ redirect_url?: string;
+ };
+ /** @description The dropbox oauth2 token and refresh token */
+ apiDropboxOauth2GetTokensOutput: {
+ /**
+ * @description The refresh token
+ * @example example string
+ */
+ refresh_token?: string;
+ /**
+ * @description The access token
+ * @example example string
+ */
+ token?: string;
+ };
+ /** @description The url for the oauth2 flow */
+ apiGenerateOauth2URLOutput: {
+ /**
+ * @description The oauth2 url
+ * @example example string
+ */
+ url?: string;
+ };
+ /** @description ListOpenAIAPIKeysOutput is used to return the list of OpenAI API keys for a specific agent. */
+ apiListOpenAIAPIKeysOutput: {
+ /** @description Api key infos */
+ api_key_infos?: components["schemas"]["apiOpenAIAPIKeyInfo"][];
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ };
+ /** @description CreateOpenAIAPIKeyInputPublic is used to create a new OpenAI API key for a specific agent. */
+ apiCreateOpenAIAPIKeyInputPublic: {
+ /**
+ * @description OpenAI API key
+ * @example "sk-proj--123456789098765432123456789"
+ */
+ api_key?: string;
+ /**
+ * @description Name of the key
+ * @example "Production Key"
+ */
+ name?: string;
+ };
+ /** @description CreateOpenAIAPIKeyOutput is used to return the newly created OpenAI API key. */
+ apiCreateOpenAIAPIKeyOutput: {
+ api_key_info?: components["schemas"]["apiOpenAIAPIKeyInfo"];
+ };
+ apiGetOpenAIAPIKeyOutput: {
+ api_key_info?: components["schemas"]["apiOpenAIAPIKeyInfo"];
+ };
+ /** @description UpdateOpenAIAPIKeyInputPublic is used to update an existing OpenAI API key for a specific agent. */
+ apiUpdateOpenAIAPIKeyInputPublic: {
+ /**
+ * @description OpenAI API key
+ * @example "sk-ant-12345678901234567890123456789012"
+ */
+ api_key?: string;
+ /**
+ * @description API key ID
+ * @example "12345678-1234-1234-1234-123456789012"
+ */
+ api_key_uuid?: string;
+ /**
+ * @description Name of the key
+ * @example "Production Key"
+ */
+ name?: string;
+ };
+ /** @description UpdateOpenAIAPIKeyOutput is used to return the updated OpenAI API key. */
+ apiUpdateOpenAIAPIKeyOutput: {
+ api_key_info?: components["schemas"]["apiOpenAIAPIKeyInfo"];
+ };
+ /** @description DeleteOpenAIAPIKeyOutput is used to return the deleted OpenAI API key. */
+ apiDeleteOpenAIAPIKeyOutput: {
+ api_key_info?: components["schemas"]["apiOpenAIAPIKeyInfo"];
+ };
+ /** @description List of Agents that are linked to a specific OpenAI Key */
+ apiListAgentsByOpenAIKeyOutput: {
+ agents?: components["schemas"]["apiAgent"][];
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ };
+ /** @description Description for a specific Region */
+ genaiapiRegion: {
+ /**
+ * @description Url for inference server
+ * @example example string
+ */
+ inference_url?: string;
+ /**
+ * @description Region code
+ * @example example string
+ */
+ region?: string;
+ /**
+ * @description This datacenter is capable of running batch jobs
+ * @example true
+ */
+ serves_batch?: boolean;
+ /**
+ * @description This datacenter is capable of serving inference
+ * @example true
+ */
+ serves_inference?: boolean;
+ /**
+ * @description The url for the inference streaming server
+ * @example example string
+ */
+ stream_inference_url?: string;
+ };
+ /** @description Region Codes */
+ apiListRegionsOutput: {
+ /** @description Region code */
+ regions?: components["schemas"]["genaiapiRegion"][];
+ };
+ /**
+ * @description Sortable fields for listing the scenario library.
+ *
+ * - SCENARIO_LIBRARY_SORT_FIELD_NAME: Sort by customer-facing name (case-insensitive). Default.
+ * - SCENARIO_LIBRARY_SORT_FIELD_CREATED_AT: Sort by creation date.
+ * @default SCENARIO_LIBRARY_SORT_FIELD_UNSPECIFIED
+ * @example SCENARIO_LIBRARY_SORT_FIELD_UNSPECIFIED
+ * @enum {string}
+ */
+ apiScenarioLibrarySortField: "SCENARIO_LIBRARY_SORT_FIELD_UNSPECIFIED" | "SCENARIO_LIBRARY_SORT_FIELD_NAME" | "SCENARIO_LIBRARY_SORT_FIELD_CREATED_AT";
+ /**
+ * @description Lifecycle status of a Common Scenario & Goal Library entry.
+ *
+ * - SCENARIO_LIBRARY_ENTRY_STATUS_ACTIVE: Visible in the library and available to copy into a scenario set.
+ * - SCENARIO_LIBRARY_ENTRY_STATUS_ARCHIVED: Hidden from the library catalog. Existing scenario sets created from
+ * this entry keep their provenance.
+ * @default SCENARIO_LIBRARY_ENTRY_STATUS_UNSPECIFIED
+ * @example SCENARIO_LIBRARY_ENTRY_STATUS_UNSPECIFIED
+ * @enum {string}
+ */
+ apiScenarioLibraryEntryStatus: "SCENARIO_LIBRARY_ENTRY_STATUS_UNSPECIFIED" | "SCENARIO_LIBRARY_ENTRY_STATUS_ACTIVE" | "SCENARIO_LIBRARY_ENTRY_STATUS_ARCHIVED";
+ /** @description A platform-curated, ready-to-run scenario set that any team can pick from. */
+ apiScenarioLibraryEntry: {
+ /**
+ * @description Optional grouping for catalog browsing (e.g. "Billing", "Onboarding").
+ * Empty when uncategorized.
+ * @example example string
+ */
+ category?: string;
+ /**
+ * Format: date-time
+ * @description Time created at.
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * @description Curated description.
+ * @example example string
+ */
+ description?: string;
+ /**
+ * @description The goal this scenario set demonstrates, shown as context alongside
+ * goal-driven generation.
+ * @example example string
+ */
+ goal_description?: string;
+ /**
+ * @description UUID of the library entry.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ library_scenario_uuid?: string;
+ /**
+ * @description Curated display name.
+ * @example example name
+ */
+ name?: string;
+ /**
+ * Format: int64
+ * @description Number of scenarios in the library entry.
+ * @example 123
+ */
+ scenario_count?: number;
+ status?: components["schemas"]["apiScenarioLibraryEntryStatus"];
+ /**
+ * Format: date-time
+ * @description Time last updated at.
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ };
+ /** @description Output for listing the Common Scenario & Goal Library. */
+ apiListScenarioLibraryOutput: {
+ /**
+ * @description Categories currently in use, for filtering library results.
+ * @example [
+ * "example string"
+ * ]
+ */
+ available_categories?: string[];
+ /** @description Sort-by values available for this list request. */
+ available_sort_by?: components["schemas"]["apiScenarioLibrarySortField"][];
+ /** @description Sort-direction values available for this list request. */
+ available_sort_directions?: components["schemas"]["apiSortDirection"][];
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ /** @description The library entries for the current page. */
+ scenarios?: components["schemas"]["apiScenarioLibraryEntry"][];
+ };
+ /** @description Public parameters for creating a scenario set from a Common Scenario & Goal Library entry. */
+ apiCreateScenarioSetFromLibraryInputPublic: {
+ /**
+ * @description UUID of the library entry to copy.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ library_scenario_uuid?: string;
+ /**
+ * @description Optional name for the new scenario set. Defaults to the library entry's
+ * name when unset.
+ * @example example name
+ */
+ name?: string;
+ };
+ /**
+ * @description How a scenario set was created.
+ *
+ * - SCENARIO_SET_SOURCE_KIND_USER_UPLOAD: Created from uploaded or inline scenarios.
+ * - SCENARIO_SET_SOURCE_KIND_GOAL_GENERATED: Produced by goal-driven generation.
+ * - SCENARIO_SET_SOURCE_KIND_LIBRARY: Copied from a platform-curated library entry.
+ * - SCENARIO_SET_SOURCE_KIND_SIGNAL_GENERATED: Produced from a completed Signals export.
+ * @default SCENARIO_SET_SOURCE_KIND_UNSPECIFIED
+ * @example SCENARIO_SET_SOURCE_KIND_UNSPECIFIED
+ * @enum {string}
+ */
+ apiScenarioSetSourceKind: "SCENARIO_SET_SOURCE_KIND_UNSPECIFIED" | "SCENARIO_SET_SOURCE_KIND_USER_UPLOAD" | "SCENARIO_SET_SOURCE_KIND_GOAL_GENERATED" | "SCENARIO_SET_SOURCE_KIND_LIBRARY" | "SCENARIO_SET_SOURCE_KIND_SIGNAL_GENERATED";
+ /**
+ * @description Lifecycle status of a scenario set. Uploaded sets are created as ready.
+ * Generated sets start as generating and then become ready, failed, or
+ * cancelled.
+ *
+ * - SCENARIO_SET_STATUS_GENERATING: Generation is in progress. The scenarios are not ready yet.
+ * - SCENARIO_SET_STATUS_READY: The scenario set is ready to use.
+ * - SCENARIO_SET_STATUS_FAILED: Generation failed. The scenario set has no readable scenarios.
+ * - SCENARIO_SET_STATUS_CANCELLED: Generation was cancelled before completion.
+ * @default SCENARIO_SET_STATUS_UNSPECIFIED
+ * @example SCENARIO_SET_STATUS_UNSPECIFIED
+ * @enum {string}
+ */
+ apiScenarioSetStatus: "SCENARIO_SET_STATUS_UNSPECIFIED" | "SCENARIO_SET_STATUS_GENERATING" | "SCENARIO_SET_STATUS_READY" | "SCENARIO_SET_STATUS_FAILED" | "SCENARIO_SET_STATUS_CANCELLED";
+ /** @description A team-owned collection of scenarios. */
+ apiScenarioSet: {
+ /**
+ * @description Object storage bucket holding the scenario file. Unset while status is generating.
+ * @example example name
+ */
+ bucket_name?: string;
+ /**
+ * @description Object storage bucket region. Unset while status is generating.
+ * @example example string
+ */
+ bucket_region?: string;
+ /**
+ * Format: date-time
+ * @description Time created at.
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * Format: date-time
+ * @description Time deleted at. Unset unless the scenario set has been deleted.
+ * @example 2023-01-01T00:00:00Z
+ */
+ deleted_at?: string;
+ /**
+ * @description Customer-supplied description.
+ * @example example string
+ */
+ description?: string;
+ /**
+ * @description Human-readable explanation of a terminal FAILED status. Empty otherwise.
+ * @example example string
+ */
+ failure_reason?: string;
+ /**
+ * @description Model that produced the scenarios. Only set for goal-generated scenario sets.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ generator_model_uuid?: string;
+ /**
+ * @description UUID of the source library entry. Only set for library scenario sets
+ * (`source_kind=SCENARIO_SET_SOURCE_KIND_LIBRARY`).
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ library_scenario_uuid?: string;
+ /**
+ * @description Customer-supplied name.
+ * @example example name
+ */
+ name?: string;
+ /**
+ * Format: int64
+ * @description Number of scenarios in the set. Unset while status is generating.
+ * @example 123
+ */
+ scenario_count?: number;
+ /**
+ * @description UUID of the scenario set.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ scenario_set_uuid?: string;
+ /**
+ * @description Signals export UUID that produced this set. Only set for signal-generated
+ * scenario sets (`source_kind=SCENARIO_SET_SOURCE_KIND_SIGNAL_GENERATED`).
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ source_export_id?: string;
+ /**
+ * @description The goal that drove generation. Only set for goal_generated scenario sets.
+ * @example example string
+ */
+ source_goal_description?: string;
+ source_kind?: components["schemas"]["apiScenarioSetSourceKind"];
+ /**
+ * @description Object storage key for the scenario file. Unset while status is generating.
+ * @example example string
+ */
+ spaces_key?: string;
+ status?: components["schemas"]["apiScenarioSetStatus"];
+ /**
+ * Format: date-time
+ * @description Time last updated at.
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ /**
+ * @description Identifier of the generation workflow. Only set for goal-generated scenario sets.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ workflow_uuid?: string;
+ };
+ /** @description Output for creating a scenario set from a Common Scenario & Goal Library entry. */
+ apiCreateScenarioSetFromLibraryOutput: {
+ scenario_set?: components["schemas"]["apiScenarioSet"];
+ };
+ /**
+ * @description Sortable fields for listing scenarios.
+ *
+ * - SCENARIO_SORT_FIELD_FILE_ORDER: Preserve original file order. Default.
+ * - SCENARIO_SORT_FIELD_NAME: Sort by scenario name (case-insensitive). Empty names sort last.
+ * - SCENARIO_SORT_FIELD_DESCRIPTION: Sort by scenario description (case-insensitive).
+ * @default SCENARIO_SORT_FIELD_UNSPECIFIED
+ * @example SCENARIO_SORT_FIELD_UNSPECIFIED
+ * @enum {string}
+ */
+ apiScenarioSortField: "SCENARIO_SORT_FIELD_UNSPECIFIED" | "SCENARIO_SORT_FIELD_FILE_ORDER" | "SCENARIO_SORT_FIELD_NAME" | "SCENARIO_SORT_FIELD_DESCRIPTION";
+ /** @description A single test case in a scenario set. */
+ apiScenario: {
+ /**
+ * @description What the user tries to accomplish. Required.
+ * @example example string
+ */
+ description?: string;
+ /**
+ * Format: int64
+ * @description Number of episodes to explore for this scenario. Defaults to 1 if unset.
+ * @example 123
+ */
+ exploration_budget?: number;
+ /**
+ * Format: int64
+ * @description Turn budget for the scenario. Falls back to the run-level default if unset.
+ * @example 123
+ */
+ max_turns?: number;
+ /**
+ * @description Human-readable name for the scenario. Optional.
+ * @example example name
+ */
+ name?: string;
+ /**
+ * @description Unique id for the scenario. Always generated by the API; any
+ * customer-supplied value is ignored and overwritten.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ scenario_uuid?: string;
+ /**
+ * @description Judge stopping criteria. Required; must contain at least one entry.
+ * @example [
+ * "example string"
+ * ]
+ */
+ stopping_criteria?: string[];
+ /**
+ * @description How the user communicates (tone, role). Optional.
+ * @example example string
+ */
+ user_persona?: string;
+ };
+ /** @description Output for listing the scenarios in a scenario set. */
+ apiListScenariosOutput: {
+ /** @description Sort-by values available for this list request. */
+ available_sort_by?: components["schemas"]["apiScenarioSortField"][];
+ /** @description Sort-direction values available for this list request. */
+ available_sort_directions?: components["schemas"]["apiSortDirection"][];
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ /** @description The scenarios for the current page. */
+ scenarios?: components["schemas"]["apiScenario"][];
+ };
+ /**
+ * @description Sortable fields for listing scenario sets.
+ *
+ * - SCENARIO_SET_SORT_FIELD_CREATED_AT: Sort by creation date. Default.
+ * - SCENARIO_SET_SORT_FIELD_NAME: Sort by customer-supplied name (case-insensitive).
+ * - SCENARIO_SET_SORT_FIELD_STATUS: Sort by status using lifecycle order (generating → ready → terminal).
+ * - SCENARIO_SET_SORT_FIELD_SCENARIO_COUNT: Sort by scenario_count.
+ * - SCENARIO_SET_SORT_FIELD_UPDATED_AT: Sort by last update date.
+ * @default SCENARIO_SET_SORT_FIELD_UNSPECIFIED
+ * @example SCENARIO_SET_SORT_FIELD_UNSPECIFIED
+ * @enum {string}
+ */
+ apiScenarioSetSortField: "SCENARIO_SET_SORT_FIELD_UNSPECIFIED" | "SCENARIO_SET_SORT_FIELD_CREATED_AT" | "SCENARIO_SET_SORT_FIELD_NAME" | "SCENARIO_SET_SORT_FIELD_STATUS" | "SCENARIO_SET_SORT_FIELD_SCENARIO_COUNT" | "SCENARIO_SET_SORT_FIELD_UPDATED_AT";
+ /** @description Output for listing scenario sets. */
+ apiListScenarioSetsOutput: {
+ /** @description Sort-by values available for this list request. */
+ available_sort_by?: components["schemas"]["apiScenarioSetSortField"][];
+ /** @description Sort-direction values available for this list request. */
+ available_sort_directions?: components["schemas"]["apiSortDirection"][];
+ /** @description Source kinds available for filtering this list request. */
+ available_source_kinds?: components["schemas"]["apiScenarioSetSourceKind"][];
+ /** @description Statuses available for filtering this list request. */
+ available_statuses?: components["schemas"]["apiScenarioSetStatus"][];
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ /** @description The scenario sets for the current page. */
+ scenario_sets?: components["schemas"]["apiScenarioSet"][];
+ };
+ /** @description Public parameters for creating a scenario set. */
+ apiCreateScenarioSetInputPublic: {
+ /** @description Uploaded scenario file to ingest. Provide this or `scenarios`, not both. */
+ file_upload_scenario_set?: components["schemas"]["apiFileUploadDataSource"];
+ /**
+ * @description The name of the scenario set.
+ * @example support-agent-scenarios
+ */
+ name?: string;
+ /** @description Inline scenarios. Provide this or `file_upload_scenario_set`, not both. */
+ scenarios?: components["schemas"]["apiScenario"][];
+ };
+ /** @description Output for creating a scenario set. */
+ apiCreateScenarioSetOutput: {
+ scenario_set?: components["schemas"]["apiScenarioSet"];
+ };
+ /** @description Public parameters for requesting scenario set upload presigned URLs. */
+ apiCreateScenarioSetUploadPresignedUrlsInputPublic: {
+ /** @description A list of files to generate presigned URLs for. */
+ files?: components["schemas"]["apiPresignedUrlFile"][];
+ };
+ /** @description Public parameters for dispatching goal-driven scenario generation. */
+ apiGenerateScenarioSetInputPublic: {
+ /**
+ * @description Optional model to use for generation. Platform default when unset.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ generator_model_uuid?: string;
+ /**
+ * @description The goal that drives scenario generation.
+ * @example Test how the agent handles refund requests
+ */
+ goal_description?: string;
+ /**
+ * @description The name of the scenario set to create.
+ * @example billing-support-generated
+ */
+ name?: string;
+ /**
+ * Format: int64
+ * @description Number of scenarios to generate. Defaults to 1 if unset.
+ * @example 123
+ */
+ num_scenarios?: number;
+ };
+ /** @description Output for dispatching goal-driven scenario generation. */
+ apiGenerateScenarioSetOutput: {
+ scenario_set?: components["schemas"]["apiScenarioSet"];
+ };
+ /** @description Output for getting a scenario set. */
+ apiGetScenarioSetOutput: {
+ scenario_set?: components["schemas"]["apiScenarioSet"];
+ };
+ /** @description Public parameters for updating a scenario set. */
+ apiUpdateScenarioSetInputPublic: {
+ /**
+ * @description Optional new name. When set, must be non-empty and at most 255 characters.
+ * @example example name
+ */
+ name?: string;
+ /**
+ * @description UUID of the scenario set to update.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ scenario_set_uuid?: string;
+ /**
+ * @description Optional inline scenarios to replace the set contents. At least one of
+ * name or scenarios is required.
+ */
+ scenarios?: components["schemas"]["apiScenario"][];
+ };
+ /** @description Output for updating a scenario set. */
+ apiUpdateScenarioSetOutput: {
+ scenario_set?: components["schemas"]["apiScenarioSet"];
+ };
+ /** @description Output for deleting a scenario set. */
+ apiDeleteScenarioSetOutput: {
+ /**
+ * @description UUID of the deleted scenario set.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ scenario_set_uuid?: string;
+ };
+ /** @description Output containing a presigned download URL for a scenario set. */
+ apiGetScenarioSetDownloadURLOutput: {
+ /**
+ * @description The presigned URL to download the scenario set file.
+ * @example example string
+ */
+ download_url?: string;
+ /**
+ * Format: date-time
+ * @description The time the URL expires at.
+ * @example 2023-01-01T00:00:00Z
+ */
+ expires_at?: string;
+ };
+ /** @description Public parameters for duplicating a scenario set. */
+ apiDuplicateScenarioSetInputPublic: {
+ /**
+ * @description UUID of the scenario set to duplicate.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ scenario_set_uuid?: string;
+ };
+ /** @description Output for duplicating a scenario set. */
+ apiDuplicateScenarioSetOutput: {
+ scenario_set?: components["schemas"]["apiScenarioSet"];
+ };
+ apiCreateScheduledIndexingInputPublic: {
+ /** @description Days for execution (day is represented same as in a cron expression, e.g. Monday begins with 1 ) */
+ days?: number[];
+ /**
+ * @description Knowledge base uuid for which the schedule is created
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ knowledge_base_uuid?: string;
+ /**
+ * @description Time of execution (HH:MM) UTC
+ * @example example string
+ */
+ time?: string;
+ };
+ /** @description Metadata for scheduled indexing entries */
+ apiScheduledIndexingInfo: {
+ /**
+ * Format: date-time
+ * @description Created at timestamp
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /** @description Days for execution (day is represented same as in a cron expression, e.g. Monday begins with 1 ) */
+ days?: number[];
+ /**
+ * Format: date-time
+ * @description Deleted at timestamp (if soft deleted)
+ * @example 2023-01-01T00:00:00Z
+ */
+ deleted_at?: string;
+ /**
+ * @description Whether the schedule is currently active
+ * @example true
+ */
+ is_active?: boolean;
+ /**
+ * @description Knowledge base uuid associated with this schedule
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ knowledge_base_uuid?: string;
+ /**
+ * Format: date-time
+ * @description Last time the schedule was executed
+ * @example 2023-01-01T00:00:00Z
+ */
+ last_ran_at?: string;
+ /**
+ * Format: date-time
+ * @description Next scheduled run
+ * @example 2023-01-01T00:00:00Z
+ */
+ next_run_at?: string;
+ /**
+ * @description Scheduled time of execution (HH:MM:SS format)
+ * @example example string
+ */
+ time?: string;
+ /**
+ * Format: date-time
+ * @description Updated at timestamp
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ /**
+ * @description Unique identifier for the scheduled indexing entry
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ };
+ apiCreateScheduledIndexingOutput: {
+ indexing_info?: components["schemas"]["apiScheduledIndexingInfo"];
+ };
+ apiGetScheduledIndexingOutput: {
+ indexing_info?: components["schemas"]["apiScheduledIndexingInfo"];
+ };
+ apiDeleteScheduledIndexingOutput: {
+ indexing_info?: components["schemas"]["apiScheduledIndexingInfo"];
+ };
+ /**
+ * @description Sortable fields for listing simulation runs.
+ *
+ * - SIMULATION_RUN_SORT_FIELD_CREATED_AT: Sort by creation date. Default.
+ * - SIMULATION_RUN_SORT_FIELD_NAME: Sort by customer-supplied run name (case-insensitive).
+ * - SIMULATION_RUN_SORT_FIELD_STATUS: Sort by status using lifecycle order (pending → running → terminal).
+ * - SIMULATION_RUN_SORT_FIELD_UPDATED_AT: Sort by last update date.
+ * @default SIMULATION_RUN_SORT_FIELD_UNSPECIFIED
+ * @example SIMULATION_RUN_SORT_FIELD_UNSPECIFIED
+ * @enum {string}
+ */
+ apiSimulationRunSortField: "SIMULATION_RUN_SORT_FIELD_UNSPECIFIED" | "SIMULATION_RUN_SORT_FIELD_CREATED_AT" | "SIMULATION_RUN_SORT_FIELD_NAME" | "SIMULATION_RUN_SORT_FIELD_STATUS" | "SIMULATION_RUN_SORT_FIELD_UPDATED_AT";
+ /**
+ * @description Lifecycle status of a simulation run.
+ *
+ * - SIMULATION_RUN_STATUS_PENDING: Accepted and queued, not yet executing.
+ * - SIMULATION_RUN_STATUS_RUNNING: Episodes are executing.
+ * - SIMULATION_RUN_STATUS_SUCCEEDED: All episodes finished successfully.
+ * - SIMULATION_RUN_STATUS_FAILED: The run failed, for example because of a timeout or workflow error.
+ * - SIMULATION_RUN_STATUS_CANCELLED: The run was cancelled.
+ * - SIMULATION_RUN_STATUS_EVALUATING: Episodes finished and an attached evaluation is running. Only reachable
+ * when the create request included evaluation_config. When the evaluation
+ * reaches a terminal status, its outcome is reflected in the simulation run
+ * status.
+ * - SIMULATION_RUN_STATUS_PARTIALLY_SUCCESSFUL: The simulation or its attached evaluation completed with a mixture of
+ * successful and failed results.
+ * @default SIMULATION_RUN_STATUS_UNSPECIFIED
+ * @example SIMULATION_RUN_STATUS_UNSPECIFIED
+ * @enum {string}
+ */
+ apiSimulationRunStatus: "SIMULATION_RUN_STATUS_UNSPECIFIED" | "SIMULATION_RUN_STATUS_PENDING" | "SIMULATION_RUN_STATUS_RUNNING" | "SIMULATION_RUN_STATUS_SUCCEEDED" | "SIMULATION_RUN_STATUS_FAILED" | "SIMULATION_RUN_STATUS_CANCELLED" | "SIMULATION_RUN_STATUS_EVALUATING" | "SIMULATION_RUN_STATUS_PARTIALLY_SUCCESSFUL";
+ /** @description Configuration of the candidate agent under test for a simulation run. */
+ apiCandidateAgentConfig: {
+ /**
+ * @description Optional agent deployment to run. Defaults to the agent's current deployment when unset.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ agent_deployment_uuid?: string;
+ /**
+ * @description UUID of the agent to exercise as the candidate.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ agent_uuid?: string;
+ /**
+ * @description Display name of the candidate agent. Persisted with the run.
+ * @example example name
+ */
+ name?: string;
+ };
+ /** @description Per-actor token accounting for a run or episode. */
+ apiSimulationTokenUsage: {
+ /**
+ * Format: uint64
+ * @description Tokens consumed by the candidate agent.
+ * @example 12345
+ */
+ candidate_agent_tokens?: string;
+ /**
+ * Format: uint64
+ * @description Tokens consumed by the scenario generator.
+ * @example 12345
+ */
+ generator_tokens?: string;
+ /**
+ * Format: uint64
+ * @description Tokens consumed by the judge.
+ * @example 12345
+ */
+ judge_tokens?: string;
+ /**
+ * Format: uint64
+ * @description Tokens consumed by the user simulator.
+ * @example 12345
+ */
+ simulator_tokens?: string;
+ /**
+ * Format: uint64
+ * @description Total tokens across all actors.
+ * @example 12345
+ */
+ total_tokens?: string;
+ };
+ /**
+ * @description Breakdown of episode outcomes by judge verdict. Reused wherever a
+ * success / failure / inconclusive tally is reported (run row, result summary,
+ * per-scenario rollup).
+ */
+ apiSimulationEpisodeCounts: {
+ /**
+ * Format: int64
+ * @description Number of episodes with a FAILURE verdict.
+ * @example 123
+ */
+ failure_count?: number;
+ /**
+ * Format: int64
+ * @description Number of episodes with an INCONCLUSIVE verdict.
+ * @example 123
+ */
+ inconclusive_count?: number;
+ /**
+ * Format: int64
+ * @description Number of episodes with a SUCCESS verdict.
+ * @example 123
+ */
+ success_count?: number;
+ };
+ /**
+ * @description Aggregated final result of a simulation run: verdict counts plus token and
+ * duration totals.
+ */
+ apiSimulationRunResultSummary: {
+ token_usage?: components["schemas"]["apiSimulationTokenUsage"];
+ /**
+ * Format: uint64
+ * @description Total wall-clock duration across the run, in seconds.
+ * @example 12345
+ */
+ total_duration_sec?: string;
+ verdict_counts?: components["schemas"]["apiSimulationEpisodeCounts"];
+ };
+ /** @description One execution of a scenario set against a candidate agent. */
+ apiSimulationRun: {
+ agent_config?: components["schemas"]["apiCandidateAgentConfig"];
+ /**
+ * Format: date-time
+ * @description Time created at.
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * @description Email of the user who triggered this run.
+ * @example example@example.com
+ */
+ created_by_user_email?: string;
+ /**
+ * Format: uint64
+ * @description User id of the actor who triggered this run.
+ * @example 12345
+ */
+ created_by_user_id?: string;
+ /**
+ * Format: date-time
+ * @description Time deleted at. Unset unless the run has been deleted.
+ * @example 2023-01-01T00:00:00Z
+ */
+ deleted_at?: string;
+ /**
+ * @description UUID of the evaluation run reserved for this simulation, when the create
+ * request included evaluation_config. Empty when no evaluation is attached.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ evaluation_run_uuid?: string;
+ /**
+ * Format: int64
+ * @description Optional run-level episodes-per-scenario override. When set, overrides each scenario's exploration_budget.
+ * @example 123
+ */
+ exploration_budget?: number;
+ /**
+ * @description Human-readable explanation of a terminal FAILED status. Empty otherwise.
+ * @example example string
+ */
+ failure_reason?: string;
+ /**
+ * Format: int64
+ * @description Number of episodes that have finished (successfully or not).
+ * @example 123
+ */
+ episodes_finished?: number;
+ /**
+ * @description Display name of the judge model (from the model catalog).
+ * @example example name
+ */
+ judge_model_name?: string;
+ /**
+ * @description Model used by the judge.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ judge_model_uuid?: string;
+ /**
+ * Format: int64
+ * @description Optional run-level turn budget. When set, overrides each scenario's max_turns.
+ * @example 123
+ */
+ max_turns?: number;
+ /**
+ * @description Optional run name.
+ * @example example name
+ */
+ name?: string;
+ result_summary?: components["schemas"]["apiSimulationRunResultSummary"];
+ /**
+ * @description UUID of the run.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ run_uuid?: string;
+ /**
+ * Format: int64
+ * @description Number of scenarios in the scenario set for this run.
+ * @example 123
+ */
+ scenario_count?: number;
+ /**
+ * @description UUID of the scenario set being executed (must exist at run create).
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ scenario_set_uuid?: string;
+ status?: components["schemas"]["apiSimulationRunStatus"];
+ /**
+ * Format: int64
+ * @description Total number of episodes (sum of exploration budgets).
+ * @example 123
+ */
+ total_episodes?: number;
+ /**
+ * Format: date-time
+ * @description Time last updated at.
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ /** @description Optional user simulator model settings such as temperature and max_tokens. */
+ user_simulator_config?: Record;
+ /**
+ * @description Display name of the user simulator model (from the model catalog).
+ * @example example name
+ */
+ user_simulator_model_name?: string;
+ /**
+ * @description Model used by the user simulator.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ user_simulator_model_uuid?: string;
+ /**
+ * @description Identifier of the workflow executing this run.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ workflow_uuid?: string;
+ };
+ /** @description Output for listing simulation runs. */
+ apiListSimulationRunsOutput: {
+ /** @description Sort-by values available for this list request. */
+ available_sort_by?: components["schemas"]["apiSimulationRunSortField"][];
+ /** @description Sort-direction values available for this list request. */
+ available_sort_directions?: components["schemas"]["apiSortDirection"][];
+ /** @description Statuses available for filtering this list request. */
+ available_statuses?: components["schemas"]["apiSimulationRunStatus"][];
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ /** @description The simulation runs for the current page. */
+ simulation_runs?: components["schemas"]["apiSimulationRun"][];
+ };
+ /**
+ * @description Optional configuration that opts a simulation run into an evaluation. When
+ * included on the create-run request, the platform reserves a
+ * model_evaluation_run linked to this simulation run and dispatches the
+ * evaluation automatically after the simulation finishes. The evaluation
+ * reuses the simulation run's judge_model_uuid.
+ */
+ apiSimulationEvaluationConfig: {
+ /**
+ * @description Evaluation metric UUIDs (from the evaluation metrics catalog). Must be
+ * simulation-eligible (multi-turn) metrics; the create request is rejected
+ * if any UUID is unknown or ineligible.
+ * @example [
+ * "example string"
+ * ]
+ */
+ metric_uuids?: string[];
+ star_metric?: components["schemas"]["apiStarMetric"];
+ };
+ /** @description Public parameters for creating a simulation run. */
+ apiCreateSimulationRunInputPublic: {
+ agent_config?: components["schemas"]["apiCandidateAgentConfig"];
+ evaluation_config?: components["schemas"]["apiSimulationEvaluationConfig"];
+ /**
+ * Format: int64
+ * @description Optional run-level episodes-per-scenario override. When set, overrides each scenario's exploration_budget.
+ * @example 123
+ */
+ exploration_budget?: number;
+ /**
+ * @description Optional model override for the judge. Platform default when unset.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ judge_model_uuid?: string;
+ /**
+ * Format: int64
+ * @description Optional run-level turn budget. When set, overrides each scenario's max_turns.
+ * @example 123
+ */
+ max_turns?: number;
+ /**
+ * @description Optional run name.
+ * @example example name
+ */
+ name?: string;
+ /**
+ * @description UUID of the existing scenario set to execute. The set must be ready.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ scenario_set_uuid?: string;
+ /** @description Optional user simulator model settings such as temperature and max_tokens. */
+ user_simulator_config?: Record;
+ /**
+ * @description Optional model override for the user simulator. Platform default when unset.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ user_simulator_model_uuid?: string;
+ };
+ /** @description Output for creating a simulation run. */
+ apiCreateSimulationRunOutput: {
+ simulation_run?: components["schemas"]["apiSimulationRun"];
+ };
+ /**
+ * @description Per-scenario rollup of episode outcomes within a run, aggregated from the
+ * run's episode rows.
+ */
+ apiSimulationScenarioResult: {
+ /**
+ * Format: int64
+ * @description Episodes that have finished (successfully or not).
+ * @example 123
+ */
+ episodes_finished?: number;
+ /**
+ * @description UUID of the scenario.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ scenario_uuid?: string;
+ /**
+ * Format: int64
+ * @description Total episodes for this scenario (its exploration budget).
+ * @example 123
+ */
+ total_episodes?: number;
+ verdict_counts?: components["schemas"]["apiSimulationEpisodeCounts"];
+ };
+ /** @description Output for getting a simulation run. */
+ apiGetSimulationRunOutput: {
+ /** @description Per-scenario breakdown of episode outcomes, aggregated from episode rows. */
+ scenario_results?: components["schemas"]["apiSimulationScenarioResult"][];
+ simulation_run?: components["schemas"]["apiSimulationRun"];
+ };
+ /** @description Public parameters for updating a simulation run. */
+ apiUpdateSimulationRunInputPublic: {
+ /**
+ * @description The new name of the run.
+ * @example example name
+ */
+ name?: string;
+ /**
+ * @description UUID of the run to update.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ run_uuid?: string;
+ };
+ /** @description Output for updating a simulation run. */
+ apiUpdateSimulationRunOutput: {
+ simulation_run?: components["schemas"]["apiSimulationRun"];
+ };
+ /** @description Output for deleting a simulation run. */
+ apiDeleteSimulationRunOutput: {
+ /**
+ * @description UUID of the deleted run.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ run_uuid?: string;
+ };
+ /** @description Public parameters for cancelling a simulation run. */
+ apiCancelSimulationRunInputPublic: {
+ /**
+ * @description UUID of the run to cancel.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ run_uuid?: string;
+ };
+ /** @description Output for cancelling a simulation run. */
+ apiCancelSimulationRunOutput: {
+ simulation_run?: components["schemas"]["apiSimulationRun"];
+ };
+ /**
+ * @description Sortable fields for listing simulation episodes.
+ *
+ * - SIMULATION_EPISODE_SORT_FIELD_SCENARIO: Sort by scenario_uuid then episode_index. Default.
+ * - SIMULATION_EPISODE_SORT_FIELD_CREATED_AT: Sort by creation date.
+ * - SIMULATION_EPISODE_SORT_FIELD_STATUS: Sort by episode status using lifecycle order.
+ * - SIMULATION_EPISODE_SORT_FIELD_VERDICT: Sort by verdict (nulls last).
+ * @default SIMULATION_EPISODE_SORT_FIELD_UNSPECIFIED
+ * @example SIMULATION_EPISODE_SORT_FIELD_UNSPECIFIED
+ * @enum {string}
+ */
+ apiSimulationEpisodeSortField: "SIMULATION_EPISODE_SORT_FIELD_UNSPECIFIED" | "SIMULATION_EPISODE_SORT_FIELD_SCENARIO" | "SIMULATION_EPISODE_SORT_FIELD_CREATED_AT" | "SIMULATION_EPISODE_SORT_FIELD_STATUS" | "SIMULATION_EPISODE_SORT_FIELD_VERDICT";
+ /**
+ * @description Lifecycle status of a single episode.
+ *
+ * - SIMULATION_EPISODE_STATUS_RUNNING: The episode is executing and a trajectory is available to retrieve.
+ * - SIMULATION_EPISODE_STATUS_FINISHED: The episode reached a stop condition and produced a verdict.
+ * - SIMULATION_EPISODE_STATUS_FAILED: The episode failed because of a cancel, timeout, or error.
+ * - SIMULATION_EPISODE_STATUS_PREPARING: The episode is allocated but its trajectory is not available yet.
+ * @default SIMULATION_EPISODE_STATUS_UNSPECIFIED
+ * @example SIMULATION_EPISODE_STATUS_UNSPECIFIED
+ * @enum {string}
+ */
+ apiSimulationEpisodeStatus: "SIMULATION_EPISODE_STATUS_UNSPECIFIED" | "SIMULATION_EPISODE_STATUS_RUNNING" | "SIMULATION_EPISODE_STATUS_FINISHED" | "SIMULATION_EPISODE_STATUS_FAILED" | "SIMULATION_EPISODE_STATUS_PREPARING";
+ /**
+ * @description The judge's verdict for an episode.
+ *
+ * - SIMULATION_EPISODE_VERDICT_SUCCESS: The candidate agent satisfied the scenario's stopping criteria.
+ * - SIMULATION_EPISODE_VERDICT_FAILURE: The candidate agent did not satisfy the stopping criteria.
+ * - SIMULATION_EPISODE_VERDICT_INCONCLUSIVE: No conclusive verdict (e.g. max_turns reached without the judge finishing).
+ * @default SIMULATION_EPISODE_VERDICT_UNSPECIFIED
+ * @example SIMULATION_EPISODE_VERDICT_UNSPECIFIED
+ * @enum {string}
+ */
+ apiSimulationEpisodeVerdict: "SIMULATION_EPISODE_VERDICT_UNSPECIFIED" | "SIMULATION_EPISODE_VERDICT_SUCCESS" | "SIMULATION_EPISODE_VERDICT_FAILURE" | "SIMULATION_EPISODE_VERDICT_INCONCLUSIVE";
+ /** @description One independent execution within a simulation run, including its trajectory and verdict. */
+ apiSimulationEpisode: {
+ /**
+ * Format: date-time
+ * @description Time created at.
+ * @example 2023-01-01T00:00:00Z
+ */
+ created_at?: string;
+ /**
+ * Format: uint64
+ * @description Wall-clock time taken for the episode to complete, in seconds.
+ * @example 12345
+ */
+ duration_sec?: string;
+ /**
+ * @description Human-readable explanation of a terminal FAILED status. Empty otherwise.
+ * @example example string
+ */
+ failure_reason?: string;
+ /**
+ * Format: int64
+ * @description Zero-based index of this episode within its scenario's exploration budget.
+ * @example 123
+ */
+ episode_index?: number;
+ /**
+ * @description UUID of the episode.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ episode_uuid?: string;
+ /**
+ * @description Optional judge reasoning for the verdict.
+ * @example example string
+ */
+ judge_reasoning?: string;
+ /**
+ * @description UUID of the run this episode belongs to.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ run_uuid?: string;
+ /**
+ * @description UUID of the scenario this episode executed.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ scenario_uuid?: string;
+ /**
+ * @description Session identifier for this episode.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ session_id?: string;
+ status?: components["schemas"]["apiSimulationEpisodeStatus"];
+ token_usage?: components["schemas"]["apiSimulationTokenUsage"];
+ /**
+ * @description Object storage bucket holding the trajectory JSON. Set when the episode finishes.
+ * @example example name
+ */
+ trajectory_bucket_name?: string;
+ /**
+ * @description Object storage bucket region for the trajectory JSON. Set when the episode finishes.
+ * @example example string
+ */
+ trajectory_bucket_region?: string;
+ /**
+ * @description Object storage key for the trajectory JSON. Set when the episode finishes.
+ * @example example string
+ */
+ trajectory_spaces_key?: string;
+ /**
+ * Format: date-time
+ * @description Time last updated at.
+ * @example 2023-01-01T00:00:00Z
+ */
+ updated_at?: string;
+ verdict?: components["schemas"]["apiSimulationEpisodeVerdict"];
+ };
+ /** @description Output for listing the episodes within a simulation run. */
+ apiListSimulationEpisodesOutput: {
+ /** @description Sort-by values available for this list request. */
+ available_sort_by?: components["schemas"]["apiSimulationEpisodeSortField"][];
+ /** @description Sort-direction values available for this list request. */
+ available_sort_directions?: components["schemas"]["apiSortDirection"][];
+ /** @description Statuses available for filtering this list request. */
+ available_statuses?: components["schemas"]["apiSimulationEpisodeStatus"][];
+ /** @description Verdicts available for filtering this list request. */
+ available_verdicts?: components["schemas"]["apiSimulationEpisodeVerdict"][];
+ /** @description The episodes for the current page. */
+ episodes?: components["schemas"]["apiSimulationEpisode"][];
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ };
+ /** @description Output for getting a single episode. */
+ apiGetSimulationEpisodeOutput: {
+ episode?: components["schemas"]["apiSimulationEpisode"];
+ };
+ /** @description Per-criterion judge evaluation recorded in the trajectory JSON. */
+ apiSimulationTrajectoryJudgeCriterion: {
+ /** @example example string */
+ criterion?: string;
+ /** @example true */
+ passed?: boolean;
+ /** @example example string */
+ reasoning?: string;
+ };
+ /** @description Judge output embedded in the trajectory JSON. */
+ apiSimulationTrajectoryJudgeResult: {
+ criteria_pass_fail?: components["schemas"]["apiSimulationTrajectoryJudgeCriterion"][];
+ /** @example example string */
+ reasoning?: string;
+ verdict?: components["schemas"]["apiSimulationEpisodeVerdict"];
+ };
+ /** @description Token usage for a single assistant message in the trajectory JSON. */
+ apiSimulationTrajectoryMessageTokens: {
+ /**
+ * Format: int64
+ * @example 123
+ */
+ input?: number;
+ /**
+ * Format: int64
+ * @example 123
+ */
+ output?: number;
+ };
+ /** @description A tool call recorded on an assistant turn in the trajectory JSON. */
+ apiSimulationTrajectoryToolCall: {
+ /** @example example string */
+ description?: string;
+ input_parameters?: Record;
+ /** @example example name */
+ name?: string;
+ /** @example true */
+ ok?: boolean;
+ output?: Record;
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ tool_call_id?: string;
+ };
+ /** @description One user or assistant message in the turn-by-turn conversation view. */
+ apiSimulationTrajectoryMessage: {
+ /**
+ * @description ISO-8601 timestamp when the message completed.
+ * @example example string
+ */
+ completed_at?: string;
+ /**
+ * @description Message body text.
+ * @example example string
+ */
+ content?: string;
+ /**
+ * @description Message role: "user" or "assistant".
+ * @example example string
+ */
+ role?: string;
+ /**
+ * @description ISO-8601 timestamp when the message started.
+ * @example example string
+ */
+ started_at?: string;
+ tokens?: components["schemas"]["apiSimulationTrajectoryMessageTokens"];
+ /** @description Tool calls on assistant turns. */
+ tool_calls?: components["schemas"]["apiSimulationTrajectoryToolCall"][];
+ /**
+ * Format: int64
+ * @description Zero-based turn index shared by the user and assistant messages in one exchange.
+ * @example 123
+ */
+ turn_index?: number;
+ };
+ /**
+ * @description Lifecycle status of the trajectory. Distinct from episode status: the
+ * trajectory is updated on every turn while the episode is executing.
+ *
+ * - SIMULATION_TRAJECTORY_STATUS_RUNNING: The episode loop is in progress; messages may grow on each poll.
+ * - SIMULATION_TRAJECTORY_STATUS_COMPLETED: The episode reached a stop condition and the trajectory is complete.
+ * - SIMULATION_TRAJECTORY_STATUS_FAILED: The episode failed before or during execution.
+ * - SIMULATION_TRAJECTORY_STATUS_CANCELLED: The episode was cancelled.
+ * @default SIMULATION_TRAJECTORY_STATUS_UNSPECIFIED
+ * @example SIMULATION_TRAJECTORY_STATUS_UNSPECIFIED
+ * @enum {string}
+ */
+ apiSimulationTrajectoryStatus: "SIMULATION_TRAJECTORY_STATUS_UNSPECIFIED" | "SIMULATION_TRAJECTORY_STATUS_RUNNING" | "SIMULATION_TRAJECTORY_STATUS_COMPLETED" | "SIMULATION_TRAJECTORY_STATUS_FAILED" | "SIMULATION_TRAJECTORY_STATUS_CANCELLED";
+ /** @description Turn-by-turn trajectory for one episode. Poll this resource while the episode is running to watch live progress. */
+ apiSimulationTrajectory: {
+ /**
+ * @description Identifier of the candidate agent under test for this episode.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ agent_id?: string;
+ /** @example example string */
+ completed_at?: string;
+ /**
+ * Format: uint64
+ * @example 12345
+ */
+ duration_sec?: string;
+ /**
+ * @description Per-metric scores and judge reasoning for this trajectory. Empty when the
+ * simulation run has no associated evaluation.
+ */
+ evaluation_metrics?: components["schemas"]["apiEvaluationMetricResult"][];
+ /** @example example string */
+ failure_reason?: string;
+ /**
+ * Format: int64
+ * @example 123
+ */
+ episode_index?: number;
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ episode_uuid?: string;
+ judge?: components["schemas"]["apiSimulationTrajectoryJudgeResult"];
+ /**
+ * Format: int64
+ * @description Turn budget configured for this episode (per-scenario max_turns, after
+ * any run-level override). Compare with turn_count to see how many of the
+ * budgeted turns actually ran.
+ * @example 123
+ */
+ max_turns?: number;
+ messages?: components["schemas"]["apiSimulationTrajectoryMessage"][];
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ run_uuid?: string;
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ scenario_uuid?: string;
+ /** @example 123e4567-e89b-12d3-a456-426614174000 */
+ session_id?: string;
+ /** @example example string */
+ started_at?: string;
+ status?: components["schemas"]["apiSimulationTrajectoryStatus"];
+ token_usage?: components["schemas"]["apiSimulationTokenUsage"];
+ /**
+ * Format: int64
+ * @example 123
+ */
+ turn_count?: number;
+ verdict?: components["schemas"]["apiSimulationEpisodeVerdict"];
+ };
+ /** @description Output containing the parsed trajectory JSON. */
+ apiGetSimulationEpisodeTrajectoryOutput: {
+ trajectory?: components["schemas"]["apiSimulationTrajectory"];
+ };
+ /** @description Output containing a presigned download URL for an episode's trajectory JSON. */
+ apiGetSimulationEpisodeTrajectoryURLOutput: {
+ /**
+ * @description The presigned URL to download the trajectory JSON file.
+ * @example example string
+ */
+ download_url?: string;
+ /**
+ * Format: date-time
+ * @description The time the URL expires at.
+ * @example 2023-01-01T00:00:00Z
+ */
+ expires_at?: string;
+ };
+ apiListWorkspacesOutput: {
+ /** @description Workspaces */
+ workspaces?: components["schemas"]["apiWorkspace"][];
+ };
+ /** @description Parameters for Workspace Creation */
+ apiCreateWorkspaceInputPublic: {
+ /**
+ * @description Ids of the agents(s) to attach to the workspace
+ * @example [
+ * "example string"
+ * ]
+ */
+ agent_uuids?: string[];
+ /**
+ * @description Description of the workspace
+ * @example example string
+ */
+ description?: string;
+ /**
+ * @description Name of the workspace
+ * @example example name
+ */
+ name?: string;
+ };
+ apiCreateWorkspaceOutput: {
+ workspace?: components["schemas"]["apiWorkspace"];
+ };
+ apiGetWorkspaceOutput: {
+ workspace?: components["schemas"]["apiWorkspace"];
+ };
+ /** @description Parameters for Update Workspace */
+ apiUpdateWorkspaceInputPublic: {
+ /**
+ * @description The new description of the workspace
+ * @example example string
+ */
+ description?: string;
+ /**
+ * @description The new name of the workspace
+ * @example example name
+ */
+ name?: string;
+ /**
+ * @description Workspace UUID.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ workspace_uuid?: string;
+ };
+ apiUpdateWorkspaceOutput: {
+ workspace?: components["schemas"]["apiWorkspace"];
+ };
+ apiDeleteWorkspaceOutput: {
+ /**
+ * @description Workspace
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ workspace_uuid?: string;
+ };
+ apiListAgentsByWorkspaceOutput: {
+ agents?: components["schemas"]["apiAgent"][];
+ links?: components["schemas"]["apiLinks"];
+ meta?: components["schemas"]["apiMeta"];
+ };
+ /** @description Parameters for Moving agents to a Workspace */
+ apiMoveAgentsToWorkspaceInputPublic: {
+ /**
+ * @description Agent uuids
+ * @example [
+ * "example string"
+ * ]
+ */
+ agent_uuids?: string[];
+ /**
+ * @description Workspace uuid to move agents to
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ workspace_uuid?: string;
+ };
+ apiMoveAgentsToWorkspaceOutput: {
+ workspace?: components["schemas"]["apiWorkspace"];
+ };
+ apiListEvaluationTestCasesByWorkspaceOutput: {
+ evaluation_test_cases?: components["schemas"]["apiEvaluationTestCase"][];
+ };
+ chat_completion_tool_call: {
+ /**
+ * @description The ID of the tool call.
+ * @example call_abc123
+ */
+ id: string;
+ /**
+ * @description The type of the tool. Currently, only function is supported.
+ * @example function
+ * @enum {string}
+ */
+ type: "function";
+ function: {
+ /**
+ * @description The name of the function to call.
+ * @example get_weather
+ */
+ name: string;
+ /**
+ * @description The arguments to call the function with, as generated by the model in JSON format.
+ * @example {"location": "Boston"}
+ */
+ arguments: string;
+ };
+ };
+ /** @description A message in the chat conversation. */
+ chat_message: {
+ /**
+ * @description The role of the message author.
+ * @example user
+ * @enum {string}
+ */
+ role: "system" | "developer" | "user" | "assistant" | "tool";
+ /**
+ * @description The contents of the message.
+ * @example Hello, how are you?
+ */
+ content?: string | null;
+ /**
+ * @description The refusal message generated by the model (assistant messages only).
+ * @example null
+ */
+ refusal?: string | null;
+ /** @description The tool calls generated by the model (assistant messages only). */
+ tool_calls?: components["schemas"]["chat_completion_tool_call"][];
+ /**
+ * @description Tool call that this message is responding to (tool messages only).
+ * @example call_abc123
+ */
+ tool_call_id?: string;
+ /**
+ * @description The reasoning content generated by the model (assistant messages only).
+ * @example null
+ */
+ reasoning_content?: string | null;
+ };
+ function_object: {
+ /**
+ * @description The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
+ * @example get_weather
+ */
+ name: string;
+ /**
+ * @description A description of what the function does, used by the model to choose when and how to call the function.
+ * @example Get the current weather for a location.
+ */
+ description?: string;
+ /** @description The parameters the function accepts, described as a JSON Schema object. */
+ parameters?: {
+ [key: string]: unknown;
+ };
+ };
+ chat_completion_tool: {
+ /**
+ * @description The type of the tool. Currently, only function is supported.
+ * @example function
+ * @enum {string}
+ */
+ type: "function";
+ function: components["schemas"]["function_object"];
+ };
+ chat_completion_request: {
+ /** @description A list of messages comprising the conversation so far. */
+ messages: components["schemas"]["chat_message"][];
+ /**
+ * @description Model ID used to generate the response.
+ * @example llama3-8b-instruct
+ */
+ model: string;
+ /** @description The maximum number of tokens that can be generated in the completion. The token count of your prompt plus max_tokens cannot exceed the model's context length. */
+ max_tokens?: number | null;
+ /** @description The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. */
+ max_completion_tokens?: number | null;
+ /**
+ * @description Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
+ * @default 0
+ */
+ frequency_penalty?: number | null;
+ /**
+ * @description Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
+ * @default 0
+ */
+ presence_penalty?: number | null;
+ /** @description An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used. */
+ top_logprobs?: number | null;
+ /** @description A list of tools the model may call. Currently, only functions are supported as a tool. */
+ tools?: components["schemas"]["chat_completion_tool"][];
+ /** @description Controls which (if any) tool is called by the model. none means the model will not call any tool and instead generates a message. auto means the model can pick between generating a message or calling one or more tools. required means the model must call one or more tools. Specifying a particular tool via {"type": "function", "function": {"name": "my_function"}} forces the model to call that tool. none is the default when no tools are present. auto is the default if tools are present. */
+ tool_choice?: ("none" | "auto" | "required") | {
+ /**
+ * @example function
+ * @enum {string}
+ */
+ type: "function";
+ function: {
+ /**
+ * @description The name of the function to call.
+ * @example get_weather
+ */
+ name: string;
+ };
+ };
+ /**
+ * @description If set to true, the model response data will be streamed to the client as it is generated using server-sent events.
+ * @default false
+ */
+ stream?: boolean | null;
+ /**
+ * @description Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.
+ * @default null
+ */
+ stop?: string | string[];
+ /**
+ * @description Modify the likelihood of specified tokens appearing in the completion. Accepts a JSON object that maps tokens (specified by their token ID in the tokenizer) to an associated bias value from -100 to 100. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.
+ * @default null
+ */
+ logit_bias?: {
+ [key: string]: number;
+ } | null;
+ /**
+ * @description Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
+ * @default false
+ */
+ logprobs?: boolean | null;
+ /**
+ * @description How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
+ * @default 1
+ * @example 1
+ */
+ n?: number | null;
+ /**
+ * @description Options for streaming response. Only set this when you set stream to true.
+ * @default null
+ */
+ stream_options?: {
+ /** @description If set, an additional chunk will be streamed before the data [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. */
+ include_usage?: boolean;
+ } | null;
+ /**
+ * @description Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
+ * @enum {string|null}
+ */
+ reasoning_effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | null;
+ /** @description If specified, the system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed. */
+ seed?: number | null;
+ /** @description Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters. */
+ metadata?: {
+ [key: string]: string;
+ } | null;
+ /**
+ * @description What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or top_p but not both.
+ * @example 1
+ */
+ temperature?: number | null;
+ /**
+ * @description An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both.
+ * @example 1
+ */
+ top_p?: number | null;
+ /**
+ * @description A unique identifier representing your end-user, which can help DigitalOcean to monitor and detect abuse.
+ * @example user-1234
+ */
+ user?: string;
+ };
+ chat_completion_top_logprob_item: {
+ /**
+ * @description The token.
+ * @example Hello
+ */
+ token: string;
+ /**
+ * @description The log probability of this token.
+ * @example -1.2345
+ */
+ logprob: number;
+ bytes: number[] | null;
+ };
+ chat_completion_token_logprob: {
+ /**
+ * @description The token.
+ * @example Hello
+ */
+ token: string;
+ /**
+ * @description The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.
+ * @example -1.2345
+ */
+ logprob: number;
+ /** @description A list of integers representing the UTF-8 bytes representation of the token. Can be null if there is no bytes representation for the token. */
+ bytes: number[] | null;
+ /** @description List of the most likely tokens and their log probability, at this token position. */
+ top_logprobs: components["schemas"]["chat_completion_top_logprob_item"][];
+ };
+ /** @description Usage statistics for the completion request. */
+ completion_usage: {
+ /**
+ * @description Number of tokens in the generated completion.
+ * @default 0
+ * @example 20
+ */
+ completion_tokens: number;
+ /**
+ * @description Number of tokens in the prompt.
+ * @default 0
+ * @example 10
+ */
+ prompt_tokens: number;
+ /**
+ * @description Number of prompt tokens written to cache.
+ * @default 0
+ * @example 0
+ */
+ cache_created_input_tokens: number;
+ /** @description Breakdown of prompt tokens written to cache. */
+ cache_creation: {
+ /**
+ * @description Number of prompt tokens written to 5m cache.
+ * @default 0
+ * @example 0
+ */
+ ephemeral_5m_input_tokens: number;
+ /**
+ * @description Number of prompt tokens written to 1h cache.
+ * @default 0
+ * @example 0
+ */
+ ephemeral_1h_input_tokens: number;
+ };
+ /**
+ * @description Number of prompt tokens read from cache.
+ * @default 0
+ * @example 0
+ */
+ cache_read_input_tokens: number;
+ /**
+ * @description Total number of tokens used in the request (prompt + completion).
+ * @default 0
+ * @example 30
+ */
+ total_tokens: number;
+ };
+ /** @description Represents a chat completion response returned by model, based on the provided input. */
+ chat_completion_response: {
+ /**
+ * @description A unique identifier for the chat completion.
+ * @example chatcmpl-abc123
+ */
+ id: string;
+ /** @description A list of chat completion choices. Can be more than one if n is greater than 1. */
+ choices: {
+ /**
+ * @description The reason the model stopped generating tokens. stop if the model hit a natural stop point or a provided stop sequence, length if the maximum number of tokens specified in the request was reached, tool_calls if the model called a tool.
+ * @example stop
+ * @enum {string}
+ */
+ finish_reason: "stop" | "length" | "tool_calls" | "content_filter";
+ /**
+ * @description The index of the choice in the list of choices.
+ * @example 0
+ */
+ index: number;
+ /** @description A chat completion message generated by the model. */
+ message: {
+ /**
+ * @description The contents of the message.
+ * @example Hello! How can I help you today?
+ */
+ content: string | null;
+ /**
+ * @description The refusal message generated by the model.
+ * @example
+ */
+ refusal: string | null;
+ /** @description The tool calls generated by the model, such as function calls. */
+ tool_calls?: {
+ /**
+ * @description The ID of the tool call.
+ * @example call_abc123
+ */
+ id: string;
+ /**
+ * @description The type of the tool.
+ * @example function
+ * @enum {string}
+ */
+ type: "function";
+ function: {
+ /**
+ * @description The name of the function to call.
+ * @example get_weather
+ */
+ name: string;
+ /**
+ * @description The arguments to call the function with.
+ * @example {"location": "Boston"}
+ */
+ arguments: string;
+ };
+ }[];
+ /**
+ * @description The reasoning content generated by the model.
+ * @example
+ */
+ reasoning_content: string | null;
+ /**
+ * @description The role of the author of this message.
+ * @example assistant
+ * @enum {string}
+ */
+ role: "assistant";
+ };
+ /** @description Log probability information for the choice. */
+ logprobs: {
+ /** @description A list of message content tokens with log probability information. */
+ content: components["schemas"]["chat_completion_token_logprob"][] | null;
+ /** @description A list of message refusal tokens with log probability information. */
+ refusal: components["schemas"]["chat_completion_token_logprob"][] | null;
+ } | null;
+ }[];
+ /**
+ * @description The Unix timestamp (in seconds) of when the chat completion was created.
+ * @example 1677649420
+ */
+ created: number;
+ /**
+ * @description The model used for the chat completion.
+ * @example llama3-8b-instruct
+ */
+ model: string;
+ /**
+ * @description The object type, which is always chat.completion.
+ * @example chat.completion
+ * @enum {string}
+ */
+ object: "chat.completion";
+ usage?: components["schemas"]["completion_usage"];
+ };
+ chat_completion_tool_call_chunk: {
+ /** @example 0 */
+ index?: number;
+ /**
+ * @description The ID of the tool call.
+ * @example call_abc123
+ */
+ id?: string;
+ /**
+ * @example function
+ * @enum {string}
+ */
+ type?: "function";
+ function?: {
+ /**
+ * @description The name of the function to call.
+ * @example get_weather
+ */
+ name?: string;
+ /**
+ * @description The arguments to call the function with.
+ * @example {"location":
+ */
+ arguments?: string;
+ };
+ };
+ /** @description A chat completion delta generated by streamed model responses. */
+ chat_completion_stream_response_delta: {
+ /**
+ * @description The contents of the chunk message.
+ * @example Hello
+ */
+ content?: string | null;
+ tool_calls?: components["schemas"]["chat_completion_tool_call_chunk"][];
+ /**
+ * @description The reasoning content generated by the model.
+ * @example null
+ */
+ reasoning_content?: string | null;
+ /**
+ * @description The role of the author of this message.
+ * @example assistant
+ * @enum {string}
+ */
+ role?: "developer" | "user" | "assistant";
+ /**
+ * @description The refusal message generated by the model.
+ * @example null
+ */
+ refusal?: string | null;
+ };
+ /** @description Represents a streamed chunk of a chat completion response returned by the model, based on the provided input. */
+ chat_completion_chunk: {
+ /**
+ * @description A unique identifier for the chat completion. Each chunk has the same ID.
+ * @example chatcmpl-abc123
+ */
+ id: string;
+ /** @description A list of chat completion choices. Can contain more than one element if n is greater than 1. Can also be empty for the last chunk if you set stream_options include_usage to true. */
+ choices: {
+ delta: components["schemas"]["chat_completion_stream_response_delta"];
+ /** @description Log probability information for the choice. */
+ logprobs?: {
+ /** @description A list of message content tokens with log probability information. */
+ content: components["schemas"]["chat_completion_token_logprob"][] | null;
+ /** @description A list of message refusal tokens with log probability information. */
+ refusal: components["schemas"]["chat_completion_token_logprob"][] | null;
+ } | null;
+ /**
+ * @description The reason the model stopped generating tokens. stop if the model hit a natural stop point or a provided stop sequence, length if the maximum number of tokens specified in the request was reached, tool_calls if the model called a tool.
+ * @example stop
+ * @enum {string|null}
+ */
+ finish_reason: "stop" | "length" | "tool_calls" | "content_filter" | null;
+ /**
+ * @description The index of the choice in the list of choices.
+ * @example 0
+ */
+ index: number;
+ }[];
+ /**
+ * @description The Unix timestamp (in seconds) of when the chat completion was created. Each chunk has the same timestamp.
+ * @example 1677649420
+ */
+ created: number;
+ /**
+ * @description The model to generate the completion.
+ * @example llama3-8b-instruct
+ */
+ model: string;
+ /**
+ * @description The object type, which is always chat.completion.chunk.
+ * @example chat.completion.chunk
+ * @enum {string}
+ */
+ object: "chat.completion.chunk";
+ /** @description An optional field that will only be present when you set stream_options include_usage to true in your request. When present, it contains a null value except for the last chunk which contains the token usage statistics for the entire request. */
+ usage?: components["schemas"]["completion_usage"] | null;
+ };
+ /** @description A text content block in a request message. */
+ messages_request_text_block_param: {
+ /**
+ * @description Block type identifier.
+ * @example text
+ * @enum {string}
+ */
+ type: "text";
+ /**
+ * @description Plain text for this block.
+ * @example Hello, Claude
+ */
+ text: string;
+ };
+ /** @description Image payload (for example base64-encoded bytes). */
+ messages_image_source_param: {
+ /**
+ * @description Source kind (for example `base64`).
+ * @example base64
+ */
+ type: string;
+ /**
+ * @description MIME type of the image (for example `image/jpeg`).
+ * @example image/jpeg
+ */
+ media_type: string;
+ /**
+ * @description Encoded image data.
+ * @example /9j/4AAQSkZJRg==
+ */
+ data: string;
+ };
+ /** @description Image content block in a request message. */
+ messages_image_block_param: {
+ /**
+ * @example image
+ * @enum {string}
+ */
+ type: "image";
+ source: components["schemas"]["messages_image_source_param"];
+ };
+ /** @description Tool invocation block in a request message (from the model or a prior turn). */
+ messages_tool_use_block_param: {
+ /**
+ * @example tool_use
+ * @enum {string}
+ */
+ type: "tool_use";
+ /** @example toolu_01ABCdefGhIjKlMnOpQrStUv */
+ id: string;
+ /** @example get_weather */
+ name: string;
+ /** @description JSON object matching the tool's `input_schema`. */
+ input: {
+ [key: string]: unknown;
+ };
+ };
+ /** @description Result for a prior `tool_use` block, returned to the model. */
+ messages_tool_result_block_param: {
+ /**
+ * @example tool_result
+ * @enum {string}
+ */
+ type: "tool_result";
+ /** @example toolu_01ABCdefGhIjKlMnOpQrStUv */
+ tool_use_id: string;
+ /**
+ * @description Tool output as plain text or structured objects.
+ * @example 72°F and sunny
+ */
+ content: string | {
+ [key: string]: unknown;
+ }[];
+ };
+ /** @description Structured message content. Block `type` is one of `text`, `image`, `tool_use`, or `tool_result`. Some tool definitions may be rejected by server policy even when valid here. */
+ messages_request_content_block_param: components["schemas"]["messages_request_text_block_param"] | components["schemas"]["messages_image_block_param"] | components["schemas"]["messages_tool_use_block_param"] | components["schemas"]["messages_tool_result_block_param"];
+ /** @description One turn in the conversation. Roles are `user` or `assistant` (no `system` role; use the top-level `system` field). Content may be a string (equivalent to a single text block) or an array of content blocks. */
+ messages_api_message_param: {
+ /**
+ * @description Speaker role for this message.
+ * @example user
+ * @enum {string}
+ */
+ role: "user" | "assistant";
+ /**
+ * @description Message body as plain text or structured blocks.
+ * @example What is the capital of Portugal?
+ */
+ content: string | components["schemas"]["messages_request_content_block_param"][];
+ };
+ /** @description Tool definition the model may call (`name`, JSON Schema for `input`). */
+ messages_tool_definition_param: {
+ /**
+ * @description Tool name referenced in `tool_use` blocks.
+ * @example get_weather
+ */
+ name: string;
+ /**
+ * @description Human-readable description of what the tool does.
+ * @example Get the current weather for a location.
+ */
+ description?: string;
+ /** @description JSON Schema (draft 2020-12 style) describing the tool input object. */
+ input_schema: {
+ [key: string]: unknown;
+ };
+ };
+ /** @description Controls how the model uses tools: automatic selection, require any tool, force a specific tool, or a string form accepted by the service. */
+ messages_tool_choice_param: string | {
+ /**
+ * @description Tool selection mode.
+ * @example tool
+ * @enum {string}
+ */
+ type: "auto" | "any" | "tool";
+ /**
+ * @description When `type` is `tool`, the tool name to use.
+ * @example get_weather
+ */
+ name?: string;
+ };
+ /** @description Extended thinking configuration. Executors that do not support thinking may ignore this field. */
+ messages_thinking_config_param: {
+ /**
+ * @description Thinking mode discriminator (for example enabled or disabled).
+ * @example enabled
+ */
+ type: string;
+ } | null;
+ /** @description Request body for `POST /v1/messages`. Required fields are `model`, `messages`, and `max_tokens`. */
+ messages_create_request: {
+ /**
+ * @description Model ID (for example `claude-opus-4-6` or a serverless model id).
+ * @example claude-opus-4-6
+ */
+ model: string;
+ /** @description Maximum tokens to generate before stopping. */
+ max_tokens: number;
+ /** @description Conversation turns. Each item has `role` `user` or `assistant` and `content` as a string or an array of content blocks. */
+ messages: components["schemas"]["messages_api_message_param"][];
+ /** @description System prompt as plain text or as an array of text blocks. */
+ system?: string | components["schemas"]["messages_request_text_block_param"][];
+ /** @description Custom strings that stop generation when produced. */
+ stop_sequences?: string[];
+ /**
+ * @description When true, the response is streamed using server-sent events (SSE).
+ * @default false
+ */
+ stream?: boolean;
+ /** @description Sampling temperature between 0.0 and 1.0. */
+ temperature?: number | null;
+ /** @description Nucleus sampling; use either `temperature` or `top_p`, not both. */
+ top_p?: number | null;
+ /** @description Top-K sampling cutoff. */
+ top_k?: number | null;
+ /** @description Tool definitions the model may invoke. */
+ tools?: components["schemas"]["messages_tool_definition_param"][];
+ tool_choice?: components["schemas"]["messages_tool_choice_param"];
+ /** @description Optional request metadata. */
+ metadata?: {
+ /**
+ * @description Opaque identifier for the end user (for example a UUID or hash). Do not include PII.
+ * @example 550e8400-e29b-41d4-a716-446655440000
+ */
+ user_id?: string;
+ };
+ /**
+ * @description DigitalOcean extension for reasoning-capable models. Ignored by executors that do not support it.
+ * @enum {string|null}
+ */
+ reasoning_effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | null;
+ /**
+ * @description DigitalOcean extension for preferred inference speed. Ignored when not supported.
+ * @enum {string|null}
+ */
+ speed?: "standard" | "fast" | null;
+ thinking?: components["schemas"]["messages_thinking_config_param"];
+ };
+ /** @description A text block in an assistant message in the response. */
+ messages_response_text_block: {
+ /**
+ * @example text
+ * @enum {string}
+ */
+ type: "text";
+ /**
+ * @description Generated text for this block.
+ * @example Hi! How can I help?
+ */
+ text: string;
+ };
+ /** @description Tool call emitted by the assistant in the response. */
+ messages_response_tool_use_block: {
+ /**
+ * @example tool_use
+ * @enum {string}
+ */
+ type: "tool_use";
+ /** @example toolu_01ABCdefGhIjKlMnOpQrStUv */
+ id: string;
+ /** @example get_weather */
+ name: string;
+ /** @description Arguments for the tool invocation. */
+ input: {
+ [key: string]: unknown;
+ };
+ };
+ /** @description Assistant output block (text and tool calls). */
+ messages_response_content_block: components["schemas"]["messages_response_text_block"] | components["schemas"]["messages_response_tool_use_block"];
+ /** @description Token usage for a non-streaming `POST /v1/messages` response. */
+ messages_usage: {
+ /**
+ * @description Number of input tokens billed for this request.
+ * @example 42
+ */
+ input_tokens: number;
+ /**
+ * @description Number of output tokens generated.
+ * @example 128
+ */
+ output_tokens: number;
+ /**
+ * @description Input tokens used to create a prompt cache entry, if applicable.
+ * @example 0
+ */
+ cache_creation_input_tokens?: number;
+ /**
+ * @description Input tokens read from a prompt cache, if applicable.
+ * @example 0
+ */
+ cache_read_input_tokens?: number;
+ /**
+ * @description Inference speed tier reflected in billing or routing.
+ * @example standard
+ * @enum {string|null}
+ */
+ speed?: "standard" | "fast" | null;
+ };
+ /** @description Non-streaming assistant message from `POST /v1/messages`. `type` is always `message` and `role` is always `assistant`. */
+ messages_create_response: {
+ /**
+ * @description Unique identifier for this message object.
+ * @example msg_01AbCdEfGhIjKlMnOpQrStUv
+ */
+ id: string;
+ /**
+ * @description Object type discriminator.
+ * @example message
+ * @enum {string}
+ */
+ type: "message";
+ /**
+ * @description Always `assistant` for this response.
+ * @example assistant
+ * @enum {string}
+ */
+ role: "assistant";
+ /** @description Assistant output blocks (`text` and/or `tool_use`). */
+ content: components["schemas"]["messages_response_content_block"][];
+ /**
+ * @description Model that produced the message.
+ * @example claude-opus-4-6
+ */
+ model: string;
+ /**
+ * @description Why generation stopped.
+ * @enum {string|null}
+ */
+ stop_reason: "end_turn" | "max_tokens" | "stop_sequence" | "tool_use" | null;
+ /** @description When `stop_reason` is `stop_sequence`, the sequence that matched. */
+ stop_sequence?: string | null;
+ usage: components["schemas"]["messages_usage"];
+ };
+ /** @description One server-sent event (SSE) JSON payload when `stream` is true. Each event line contains a JSON object after the `data:` prefix. */
+ messages_stream_event: {
+ /**
+ * @description SSE event type.
+ * @enum {string}
+ */
+ type: "message_start" | "content_block_start" | "content_block_delta" | "content_block_stop" | "message_delta" | "message_stop" | "ping";
+ /** @description Present on `message_start`; initial message metadata. */
+ message?: {
+ [key: string]: unknown;
+ };
+ /** @description Index of the content block this event refers to. */
+ index?: number;
+ /** @description Present on `content_block_start`. */
+ content_block?: {
+ [key: string]: unknown;
+ };
+ /** @description Present on `content_block_delta` and `message_delta`. */
+ delta?: {
+ [key: string]: unknown;
+ };
+ /** @description Streamed usage (for example on `message_delta`). */
+ usage?: {
+ /** @example 64 */
+ output_tokens?: number;
+ /**
+ * @example fast
+ * @enum {string|null}
+ */
+ speed?: "standard" | "fast" | null;
+ };
+ };
+ /** @description Error envelope for some failures from this endpoint. */
+ messages_create_error_response: {
+ /** @enum {string} */
+ type: "error";
+ error: {
+ /**
+ * @description Machine-readable error code.
+ * @example invalid_request_error
+ */
+ type: string;
+ /**
+ * @description Human-readable error message.
+ * @example max_tokens must be positive
+ */
+ message: string;
+ };
+ };
+ /** @description Request body for `POST /v1/embeddings` (OpenAI-compatible). Extra fields are rejected. */
+ embeddings_request: {
+ /**
+ * @description Model id to use for embeddings. Must match a model your account can access.
+ * @example qwen3-embedding-0.6b
+ */
+ model: string;
+ /**
+ * @description A single string or 1–2048 strings; each string produces one row in `data`, in order.
+ * @example hello world
+ */
+ input: string | string[];
+ /**
+ * @description Optional end-user identifier to help with abuse monitoring.
+ * @example user-1234
+ */
+ user?: string;
+ /**
+ * @description How embedding values are returned in each `data[].embedding` field.
+ * @default float
+ * @example float
+ * @enum {string}
+ */
+ encoding_format?: "float" | "base64";
+ };
+ /** @description One row in the embeddings `data` array, aligned with a single `input` item. */
+ embedding_data_item: {
+ /**
+ * @description Zero-based index of the corresponding `input` item (0 when `input` is a string).
+ * @example 0
+ */
+ index: number;
+ /**
+ * @description The object type, which is always `embedding`.
+ * @example embedding
+ * @enum {string}
+ */
+ object: "embedding";
+ /**
+ * @description The embedding vector, or a base64-encoded string when the request set encoding_format to base64.
+ * @example [
+ * 0.0123,
+ * -0.0456,
+ * 0.0001
+ * ]
+ */
+ embedding: number[] | string;
+ };
+ /** @description Token usage for the embeddings request. */
+ embeddings_usage: {
+ /**
+ * @description Number of input tokens used for the embedding.
+ * @example 6
+ */
+ prompt_tokens: number;
+ /**
+ * @description Total billable tokens for the request.
+ * @example 6
+ */
+ total_tokens: number;
+ };
+ /** @description OpenAI-style embeddings response. */
+ embeddings_response: {
+ /**
+ * @description The object type, which is always the string `list`.
+ * @example list
+ * @enum {string}
+ */
+ object: "list";
+ /**
+ * @description The embedding model that produced the vectors.
+ * @example qwen3-embedding-0.6b
+ */
+ model: string;
+ /** @description One entry for each `input` string, in the same order. */
+ data: components["schemas"]["embedding_data_item"][];
+ usage: components["schemas"]["embeddings_usage"];
+ };
+ /** @description Request body for image generation. */
+ create_image_request: {
+ /**
+ * @description A text description of the desired image(s). Supports up to 32,000 characters and provides automatic prompt optimization for best results.
+ * @example A cute baby sea otter floating on its back in calm blue water
+ */
+ prompt: string;
+ /**
+ * @description The model to use for image generation.
+ * @example openai-gpt-image-2
+ */
+ model: string;
+ /**
+ * @description The moderation setting for the image generation. Supported values: low, auto.
+ * @example auto
+ */
+ moderation?: string | null;
+ /**
+ * @description The background setting for the image generation. Supported values: transparent, opaque, auto.
+ * @example auto
+ */
+ background?: string | null;
+ /**
+ * @description The output format for the image generation. Supported values: png, webp, jpeg.
+ * @example png
+ */
+ output_format?: string | null;
+ /**
+ * @description The output compression level for the image generation (0-100).
+ * @example 100
+ */
+ output_compression?: number | null;
+ /**
+ * @description The number of images to generate. Must be between 1 and 10.
+ * @example 1
+ */
+ n: number;
+ /**
+ * @description The quality of the image that will be generated. Supported values: auto, high, medium, low.
+ * @example auto
+ */
+ quality?: string | null;
+ /**
+ * @description The size of the generated images. GPT-IMAGE-2 supports: auto (automatically select best size), 1536x1024 (landscape), 1024x1536 (portrait).
+ * @example auto
+ * @enum {string}
+ */
+ size?: "auto" | "1536x1024" | "1024x1536";
+ /**
+ * @description If set to true, partial image data will be streamed as the image is being generated. The response will be sent as server-sent events with partial image chunks. When stream is true, partial_images must be greater than 0.
+ * @default false
+ * @example false
+ */
+ stream?: boolean | null;
+ /**
+ * @description The number of partial image chunks to return during streaming generation. Defaults to 0. When stream=true, this must be greater than 0 to receive progressive updates of the image as it is being generated.
+ * @example 1
+ */
+ partial_images?: number | null;
+ /**
+ * @description A unique identifier representing your end-user, which can help DigitalOcean to monitor and detect abuse.
+ * @example user-1234
+ */
+ user?: string | null;
+ };
+ /** @description Represents the content of a generated image. */
+ generated_image: {
+ /**
+ * @description The base64-encoded JSON of the generated image.
+ * @example iVBORw0KGgoAAAANSUhEUgAAAQAAAAEAAQMAAABmvDolAAAAA1BMVEX...
+ */
+ b64_json: string;
+ /**
+ * @description The optimized prompt that was used to generate the image.
+ * @example A cute baby sea otter floating on its back in calm blue water, captured with professional photography lighting and composition
+ */
+ revised_prompt?: string;
+ };
+ /** @description Token usage information for the image generation. */
+ images_usage: {
+ /**
+ * @description The total number of tokens (images and text) used for the image generation.
+ * @example 4172
+ */
+ total_tokens: number;
+ /**
+ * @description The number of tokens (images and text) in the input prompt.
+ * @example 12
+ */
+ input_tokens: number;
+ /**
+ * @description The number of image tokens in the output image.
+ * @example 4160
+ */
+ output_tokens: number;
+ /** @description Detailed breakdown of input tokens. */
+ input_tokens_details: {
+ /**
+ * @description The number of text tokens in the input prompt.
+ * @example 12
+ */
+ text_tokens: number;
+ /**
+ * @description The number of image tokens in the input prompt.
+ * @example 0
+ */
+ image_tokens: number;
+ };
+ };
+ /** @description The response from the image generation endpoint. */
+ images_response: {
+ /**
+ * @description The Unix timestamp (in seconds) of when the images were created.
+ * @example 1677649456
+ */
+ created: number;
+ /** @description The list of generated images. */
+ data: components["schemas"]["generated_image"][];
+ /**
+ * @description The background setting used for the image generation.
+ * @example opaque
+ */
+ background?: string | null;
+ /**
+ * @description The output format of the generated image.
+ * @example png
+ */
+ output_format?: string | null;
+ /**
+ * @description The quality setting used for the image generation.
+ * @example high
+ */
+ quality?: string | null;
+ /**
+ * @description The size of the generated image.
+ * @example 1024x1024
+ */
+ size?: string | null;
+ /** @description Usage statistics for the image generation request. */
+ usage?: components["schemas"]["images_usage"] | null;
+ };
+ /** @description Emitted when a partial image is available during image generation streaming. */
+ image_gen_partial_image_event: {
+ /**
+ * @description The type of the event. Always `image_generation.partial_image`.
+ * @example image_generation.partial_image
+ * @enum {string}
+ */
+ type: "image_generation.partial_image";
+ /**
+ * @description Base64-encoded partial image data, suitable for rendering as an image.
+ * @example iVBORw0KGgoAAAANSUhEUgAAAQ...
+ */
+ b64_json: string;
+ /**
+ * @description The Unix timestamp when the event was created.
+ * @example 1677649456
+ */
+ created_at: number;
+ /**
+ * @description The size of the requested image.
+ * @example 1024x1024
+ * @enum {string}
+ */
+ size: "1024x1024" | "1024x1536" | "1536x1024" | "auto";
+ /**
+ * @description The quality setting for the requested image.
+ * @example auto
+ * @enum {string}
+ */
+ quality: "low" | "medium" | "high" | "auto";
+ /**
+ * @description The background setting for the requested image.
+ * @example auto
+ * @enum {string}
+ */
+ background: "transparent" | "opaque" | "auto";
+ /**
+ * @description The output format for the requested image.
+ * @example png
+ * @enum {string}
+ */
+ output_format: "png" | "webp" | "jpeg";
+ /**
+ * @description 0-based index for the partial image (streaming).
+ * @example 0
+ */
+ partial_image_index: number;
+ };
+ /** @description Describes a model offering that can be used with the API. */
+ model: {
+ /**
+ * @description The model identifier, which can be referenced in the API endpoints.
+ * @example meta-llama/Meta-Llama-3.1-8B-Instruct
+ */
+ id: string;
+ /**
+ * @description The Unix timestamp (in seconds) when the model was created.
+ * @example 1686935002
+ */
+ created: number;
+ /**
+ * @description The object type, which is always "model".
+ * @example model
+ * @enum {string}
+ */
+ object: "model";
+ /**
+ * @description The organization that owns the model.
+ * @example digitalocean
+ */
+ owned_by: string;
+ };
+ /** @description Response listing available models. */
+ list_models_response: {
+ /**
+ * @description The object type, which is always "list".
+ * @example list
+ * @enum {string}
+ */
+ object: "list";
+ /** @description The list of available models. */
+ data: components["schemas"]["model"][];
+ };
+ /** @description A single question to evaluate against the provided state. The `type` field determines how `criteria` should be shaped and how the corresponding answer is returned. */
+ systemone_question: {
+ /**
+ * @description Question discriminator. Use `noul` for a boolean-like true/false check, `choice` to select one option from a fixed set, and `score` to rate against an ordered rubric.
+ * @example choice
+ * @enum {string}
+ */
+ type: "noul" | "choice" | "score";
+ /**
+ * @description The prompt describing what the question is asking the model to evaluate.
+ * @example What is the overall sentiment of this feedback?
+ */
+ instructions: string;
+ /**
+ * @description Optional criteria payload. The expected shape depends on `type`: for `noul`, an optional object describing the true/false semantics; for `choice`, an object mapping each option name to a description of that option (minimum 2 options, maximum 255 options); for `score`, an ordered array of descriptive rubric levels (minimum 2, maximum 10 levels). Score levels must be descriptive labels, such as `["poor", "average", "excellent"]`, not numeric values.
+ * @example {
+ * "positive": "Customer is happy overall",
+ * "negative": "Customer is unhappy overall",
+ * "mixed": "Customer has both good and bad things to say"
+ * }
+ */
+ criteria?: {
+ [key: string]: string;
+ } | string[];
+ };
+ /** @description Request payload for a System One evaluation. */
+ systemone_request: {
+ /**
+ * @description The state to evaluate.
+ * @example The customer said the delivery was late but the product quality was excellent.
+ */
+ state: string;
+ /**
+ * @description Model ID used to evaluate the request.
+ * @example typesafe-jev-1.13.0
+ */
+ model: string;
+ /**
+ * @description A map of question name to question definition. Each key becomes the corresponding key in the response's `answers` object.
+ * @example {
+ * "sentiment": {
+ * "type": "choice",
+ * "instructions": "What is the overall sentiment of this feedback?",
+ * "criteria": {
+ * "positive": "Customer is happy overall",
+ * "negative": "Customer is unhappy overall",
+ * "mixed": "Customer has both good and bad things to say"
+ * }
+ * },
+ * "needs_followup": {
+ * "type": "noul",
+ * "instructions": "Does this feedback require a follow-up from the support team?"
+ * }
+ * }
+ */
+ questions: {
+ [key: string]: components["schemas"]["systemone_question"];
+ };
+ };
+ /** @description The evaluated answer for a single question. The fields that are populated depend on the corresponding question's `type`. */
+ systemone_answer: {
+ /**
+ * @description Echoes the `type` of the question this answer corresponds to.
+ * @example choice
+ * @enum {string}
+ */
+ type: "noul" | "choice" | "score";
+ /**
+ * Format: double
+ * @description Present when the question type is `noul`. A truth-likelihood value.
+ * @example 0.74
+ */
+ noul?: number;
+ /**
+ * @description Present when the question type is `choice`. The selected option name from the question's `criteria` map.
+ * @example positive
+ */
+ choice?: string;
+ /**
+ * Format: double
+ * @description Present when the question type is `score`. The numeric position along the ordered rubric levels supplied in the question's `criteria`.
+ * @example 2
+ */
+ score?: number;
+ /** @description Present when the question type is `score`. Maps rubric levels to their corresponding numeric positions. */
+ legend?: {
+ [key: string]: unknown;
+ };
+ /**
+ * @description Calibrated probability for each possible answer value.
+ * @example {
+ * "positive": 0.82,
+ * "negative": 0.05,
+ * "mixed": 0.13
+ * }
+ */
+ probabilities?: {
+ [key: string]: number;
+ };
+ /**
+ * Format: double
+ * @description Overall calibrated confidence in the returned answer.
+ * @example 0.82
+ */
+ confidence?: number;
+ };
+ /** @description Token usage for the request. System One billing is input-token only. */
+ systemone_usage: {
+ /**
+ * Format: int64
+ * @description Number of input tokens consumed by the request.
+ * @example 42
+ */
+ input_tokens: number;
+ /**
+ * Format: int64
+ * @description Number of output tokens consumed by the request. Always 0 for System One.
+ * @example 0
+ */
+ output_tokens: number;
+ };
+ /** @description Response returned by a System One evaluation. */
+ systemone_response: {
+ /**
+ * @description Model ID that produced the response.
+ * @example typesafe-jev-1.13.0
+ */
+ model: string;
+ /** @description A map of question name to answer, using the same keys as the request's `questions` object. */
+ answers: {
+ [key: string]: components["schemas"]["systemone_answer"];
+ };
+ usage: components["schemas"]["systemone_usage"];
+ };
+ /** @description Request body for sending a prompt to a model using the Responses API. */
+ create_response_request: {
+ /**
+ * @description The model ID of the model you want to use. Get the model ID using `/v1/models` or on the available models page.
+ * @example openai-gpt-oss-20b
+ */
+ model: string;
+ /** @description The prompt or input content you want the model to respond to. Can be a simple text string or an array of message objects for conversation context. */
+ input: string | {
+ /**
+ * @description The role of the message author.
+ * @example user
+ * @enum {string}
+ */
+ role?: "user" | "assistant" | "system" | "tool" | "developer";
+ /**
+ * @description The content of the message.
+ * @example What is the capital of France?
+ */
+ content: string;
+ }[];
+ /**
+ * @description The maximum number of tokens to generate in the response.
+ * @example 50
+ */
+ max_output_tokens?: number | null;
+ /**
+ * @description A value between 0.0 and 2.0 to control randomness and creativity. Lower values like 0.2 make the output more focused and deterministic, while higher values like 0.8 make it more random.
+ * @example 0.7
+ */
+ temperature?: number | null;
+ /**
+ * @description Set to true to stream partial responses as Server-Sent Events.
+ * @default false
+ * @example false
+ */
+ stream?: boolean | null;
+ /**
+ * @description System-level instructions for the model. This sets the behavior and context for the response generation.
+ * @example You are a helpful assistant.
+ */
+ instructions?: string | null;
+ /**
+ * @description An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
+ * @example 1
+ */
+ top_p?: number | null;
+ /**
+ * @description Options for streaming response. Only set this when you set stream to true.
+ * @default null
+ */
+ stream_options?: {
+ /**
+ * @description If set, an additional chunk will be streamed before the data: [DONE] message with token usage statistics for the entire request.
+ * @example true
+ */
+ include_usage?: boolean;
+ } | null;
+ /** @description A list of tools the model may call. */
+ tools?: {
+ /**
+ * @description The type of the tool.
+ * @example function
+ * @enum {string}
+ */
+ type: "function";
+ /**
+ * @description The name of the function to be called.
+ * @example get_weather
+ */
+ name?: string;
+ /**
+ * @description A description of what the function does.
+ * @example Get the current weather in a given location.
+ */
+ description?: string;
+ /** @description The parameters the function accepts, described as a JSON Schema object. */
+ parameters?: {
+ [key: string]: unknown;
+ };
+ }[] | null;
+ /** @description Controls which (if any) tool is called by the model. */
+ tool_choice?: ("none" | "auto" | "required") | {
+ /**
+ * @example function
+ * @enum {string}
+ */
+ type: "function";
+ function: {
+ /**
+ * @description The name of the function to call.
+ * @example get_weather
+ */
+ name: string;
+ };
+ };
+ /**
+ * @description Up to 4 sequences where the API will stop generating further tokens.
+ * @default null
+ */
+ stop?: (string | string[]) | null;
+ /**
+ * @description Set of key-value pairs that can be attached to the request.
+ * @example {
+ * "session_id": "abc123"
+ * }
+ */
+ metadata?: {
+ [key: string]: string;
+ } | null;
+ /**
+ * @description A unique identifier representing your end-user.
+ * @example user-1234
+ */
+ user?: string | null;
+ };
+ /** @description Detailed usage statistics for the Responses API request, including input/output token counts and detailed breakdowns. */
+ response_usage: {
+ /**
+ * @description The number of input tokens.
+ * @example 133
+ */
+ input_tokens: number;
+ /** @description A detailed breakdown of the input tokens. */
+ input_tokens_details: {
+ /**
+ * @description The number of tokens that were retrieved from the cache.
+ * @example 128
+ */
+ cached_tokens: number;
+ };
+ /**
+ * @description The number of output tokens.
+ * @example 41
+ */
+ output_tokens: number;
+ /** @description A detailed breakdown of the output tokens. */
+ output_tokens_details: {
+ /**
+ * @description The number of reasoning tokens.
+ * @example 24
+ */
+ reasoning_tokens: number;
+ /**
+ * @description The number of tool output tokens.
+ * @example 0
+ */
+ tool_output_tokens: number;
+ };
+ /**
+ * @description The total number of tokens used.
+ * @example 174
+ */
+ total_tokens: number;
+ };
+ /** @description The response includes structured output and token usage details. */
+ create_response_response: {
+ /**
+ * @description A unique identifier for the response.
+ * @example response-abc123def456
+ */
+ id: string;
+ /**
+ * @description The object type, which is always `response`.
+ * @example response
+ * @enum {string}
+ */
+ object: "response";
+ /**
+ * @description The Unix timestamp (in seconds) of when the response was created.
+ * @example 1721596428
+ */
+ created: number;
+ /**
+ * @description The model used to generate the response.
+ * @example openai-gpt-oss-20b
+ */
+ model: string;
+ /** @description An array of content items generated by the model. Each item has a type and a content array. Types include reasoning and output text. */
+ output: {
+ /**
+ * @description The type of output item. One of `reasoning`, `message`, or `function_call`.
+ * @example message
+ * @enum {string}
+ */
+ type: "reasoning" | "message" | "function_call";
+ /**
+ * @description The unique ID of the output item.
+ * @example item_abc123
+ */
+ id?: string;
+ /**
+ * @description Status of the item.
+ * @example completed
+ */
+ status?: string | null;
+ /**
+ * @description The role associated with this output item (typically `assistant`).
+ * @example assistant
+ */
+ role?: string | null;
+ /** @description Array of content parts for this output item. Each part has a type and text. Content types include `reasoning_text` for reasoning items and `output_text` for final output. */
+ content: {
+ /**
+ * @description The type of content part. `reasoning_text` for reasoning content, `output_text` for final output text.
+ * @example output_text
+ * @enum {string}
+ */
+ type: "reasoning_text" | "output_text";
+ /**
+ * @description The text content.
+ * @example The capital of France is **Paris**.
+ */
+ text: string;
+ }[];
+ /**
+ * @description The unique ID of the function tool call (present when type is `function_call`).
+ * @example call_abc123
+ */
+ call_id?: string | null;
+ /**
+ * @description The name of the function to call (present when type is `function_call`).
+ * @example get_weather
+ */
+ name?: string | null;
+ /**
+ * @description JSON string of function arguments (present when type is `function_call`).
+ * @example {"location": "San Francisco"}
+ */
+ arguments?: string | null;
+ }[];
+ usage: components["schemas"]["response_usage"];
+ /**
+ * @description Whether parallel tool calls are enabled.
+ * @example false
+ */
+ parallel_tool_calls?: boolean | null;
+ /**
+ * @description Temperature setting used for the response.
+ * @example 0.7
+ */
+ temperature?: number | null;
+ /**
+ * @description Tool choice setting used for the response.
+ * @example auto
+ */
+ tool_choice?: string | null;
+ /** @description Tools available for the response. */
+ tools?: {
+ /**
+ * @description The type of the tool.
+ * @example function
+ * @enum {string}
+ */
+ type: "function";
+ /**
+ * @description The name of the function.
+ * @example get_weather
+ */
+ name?: string;
+ /**
+ * @description A description of what the function does.
+ * @example Get the current weather in a given location.
+ */
+ description?: string;
+ /** @description The parameters the function accepts. */
+ parameters?: {
+ [key: string]: unknown;
+ };
+ }[] | null;
+ /**
+ * @description Top-p setting used for the response.
+ * @example 1
+ */
+ top_p?: number | null;
+ /**
+ * @description Maximum output tokens setting.
+ * @example 50
+ */
+ max_output_tokens?: number | null;
+ /**
+ * @description Status of the response.
+ * @example completed
+ */
+ status?: string | null;
+ /**
+ * @description User identifier.
+ * @example user-1234
+ */
+ user?: string | null;
+ };
+ /** @description Represents a streamed chunk of a text-to-text response returned by the model, based on the provided input. */
+ create_response_stream_response: {
+ /**
+ * @description A unique identifier for the response. Each chunk has the same ID.
+ * @example response-abc123def456
+ */
+ id: string;
+ /**
+ * @description The object type, which is always `response.chunk`.
+ * @example response.chunk
+ * @enum {string}
+ */
+ object: "response.chunk";
+ /**
+ * @description The Unix timestamp (in seconds) of when the response was created. Each chunk has the same timestamp.
+ * @example 1721596428
+ */
+ created: number;
+ /**
+ * @description The model used to generate the response.
+ * @example llama3-8b-instruct
+ */
+ model: string;
+ /** @description A list of response choice chunks. Can contain more than one element if `n` is greater than 1. Can also be empty for the last chunk if you set `stream_options: {"include_usage": true}`. */
+ choices: {
+ /**
+ * @description The index of the choice in the list of choices.
+ * @example 0
+ */
+ index: number;
+ /** @description A chunk of the response message generated by the model. */
+ delta: {
+ /**
+ * @description The role of the message author. Only present in the first chunk.
+ * @example assistant
+ * @enum {string|null}
+ */
+ role?: "assistant" | null;
+ /**
+ * @description The contents of the chunk message. Can be null for chunks with tool calls or other non-text content.
+ * @example Once upon a time
+ */
+ content?: string | null;
+ /**
+ * @description The reasoning content generated by the model. Only present when the model generates reasoning text.
+ * @example Let me think about this...
+ */
+ reasoning_content?: string | null;
+ /** @description The tool calls generated by the model, such as function calls. Only present when the model decides to call a tool. */
+ tool_calls?: {
+ /**
+ * @description The ID of the tool call.
+ * @example call_abc123
+ */
+ id: string;
+ /**
+ * @description The type of the tool call.
+ * @example function
+ * @enum {string}
+ */
+ type: "function";
+ function: {
+ /**
+ * @description The name of the function to call.
+ * @example get_weather
+ */
+ name: string;
+ /**
+ * @description The arguments to call the function with, as a JSON string.
+ * @example {"location": "San Francisco"}
+ */
+ arguments: string;
+ };
+ }[] | null;
+ };
+ /**
+ * @description The reason the model stopped generating tokens. Only present in the final chunk.
+ * @example stop
+ * @enum {string|null}
+ */
+ finish_reason?: "stop" | "length" | "tool_calls" | "content_filter" | null;
+ /** @description Log probability information for the choice. */
+ logprobs?: {
+ /** @description A list of message content tokens with log probability information. */
+ content: components["schemas"]["chat_completion_token_logprob"][] | null;
+ } | null;
+ }[];
+ /** @description An optional field that will only be present when you set `stream_options: {"include_usage": true}` in your request. When present, it contains a null value except for the last chunk which contains the token usage statistics for the entire request. */
+ usage?: components["schemas"]["response_usage"] | null;
+ };
+ /** @description Request body for asynchronously invoking a model. Supports image generation, audio generation, and text-to-speech models. The `input` object fields vary depending on the model type. */
+ async_invoke_request: {
+ /**
+ * @description The ID of the model to invoke asynchronously.
+ * @example fal-ai/flux/schnell
+ */
+ model_id: string;
+ /**
+ * @description The input parameters for the model invocation. Fields vary by model type.
+ *
+ * For **image generation** models (e.g., `fal-ai/flux/schnell`, `fal-ai/fast-sdxl`), use `prompt` along with optional image parameters like `output_format`, `num_inference_steps`, `guidance_scale`, `num_images`, and `enable_safety_checker`.
+ *
+ * For **audio generation** models (e.g., `fal-ai/stable-audio-25/text-to-audio`), use `prompt` along with `seconds_total` to control the duration.
+ *
+ * For **text-to-speech** models (e.g., `fal-ai/elevenlabs/tts/multilingual-v2`), use `text` with the content you want converted to speech.
+ */
+ input: {
+ /**
+ * @description The text prompt describing the desired output. Used for image generation and audio generation models.
+ * @example A futuristic city at sunset
+ */
+ prompt?: string;
+ /**
+ * @description The text content to convert to speech. Used for text-to-speech models.
+ * @example This text-to-speech example uses DigitalOcean multilingual voice.
+ */
+ text?: string;
+ /**
+ * @description The desired output format or aspect ratio for image generation.
+ * @example landscape_4_3
+ */
+ output_format?: string | null;
+ /**
+ * @description The number of inference steps to use during image generation. More steps generally produce higher quality output but take longer.
+ * @example 4
+ */
+ num_inference_steps?: number | null;
+ /**
+ * @description Controls how closely the image generation model follows the prompt. Higher values produce output more closely matching the prompt.
+ * @example 3.5
+ */
+ guidance_scale?: number | null;
+ /**
+ * @description The number of images to generate.
+ * @example 1
+ */
+ num_images?: number | null;
+ /**
+ * @description Whether to enable the safety checker for generated content.
+ * @example true
+ */
+ enable_safety_checker?: boolean | null;
+ /**
+ * @description The total duration in seconds for generated audio. Used for audio generation models.
+ * @example 60
+ */
+ seconds_total?: number | null;
+ } & {
+ [key: string]: unknown;
+ };
+ /** @description An optional list of key-value tags to attach to the invocation request for tracking or categorization. */
+ tags?: {
+ /**
+ * @description The tag key.
+ * @example type
+ */
+ key: string;
+ /**
+ * @description The tag value.
+ * @example test
+ */
+ value: string;
+ }[] | null;
+ };
+ /** @description Response returned when an asynchronous invocation request is accepted. The job status is QUEUED initially. Use the request_id to poll for the result. */
+ async_invoke_response: {
+ /**
+ * @description A unique identifier for the async invocation request. Use this ID to check the status and retrieve the result.
+ * @example 6590784a-ce47-4556-9ff4-53baff2693fb
+ */
+ request_id: string;
+ /**
+ * @description The current status of the async invocation.
+ * @example QUEUED
+ * @enum {string}
+ */
+ status: "QUEUED" | "IN_PROGRESS" | "COMPLETED" | "FAILED";
+ /**
+ * @description The model ID that was invoked.
+ * @example fal-ai/fast-sdxl
+ */
+ model_id: string;
+ /**
+ * Format: date-time
+ * @description The timestamp when the request was created.
+ * @example 2026-01-22T19:19:19.112403432Z
+ */
+ created_at: string;
+ /**
+ * Format: date-time
+ * @description The timestamp when the job started processing. Null while queued.
+ * @example null
+ */
+ started_at?: string | null;
+ /**
+ * Format: date-time
+ * @description The timestamp when the job completed. Null until finished.
+ * @example null
+ */
+ completed_at?: string | null;
+ /**
+ * @description The output of the invocation. Null while the job is queued or in progress. Contains the result once completed.
+ * @example null
+ */
+ output?: {
+ [key: string]: unknown;
+ } | null;
+ /**
+ * @description Error message if the job failed. Null on success.
+ * @example null
+ */
+ error?: string | null;
+ };
+ /** @description Request body for text-to-speech generation. */
+ create_speech_request: {
+ /**
+ * @description The text-to-speech model to use.
+ * @example qwen3-tts-voicedesign
+ */
+ model: string;
+ /**
+ * @description The text to convert to speech.
+ * @example Hello, world!
+ */
+ input: string;
+ /**
+ * @description The voice to use for synthesis.
+ * @example alloy
+ */
+ voice?: string;
+ /**
+ * @description The audio format to return. Supported values include `mp3` and `wav`. The API may return raw audio bytes or a JSON envelope with base64-encoded audio.
+ * @example mp3
+ */
+ response_format?: string;
+ /**
+ * @description Optional style or delivery instructions for the synthesizer.
+ * @example Speak naturally.
+ */
+ instructions?: string;
+ };
+ /** @description A single audio payload in a JSON speech response envelope. */
+ speech_audio_item: {
+ /**
+ * @description Base64-encoded audio bytes.
+ * @example //uQxAAAA...
+ */
+ b64_json: string;
+ };
+ /** @description JSON envelope for text-to-speech when the endpoint returns `application/json`. The live endpoint may instead return raw audio bytes with an `audio/*` Content-Type. */
+ speech_response: {
+ /**
+ * @description Unix timestamp (in seconds) of when the audio was created.
+ * @example 1710700000
+ */
+ created?: number;
+ /** @description Generated audio items. */
+ data: components["schemas"]["speech_audio_item"][];
+ };
+ /** @description Request body to start an asynchronous video generation job. */
+ create_video_request: {
+ /**
+ * @description The video generation model to use.
+ * @example wan2-2-t2v-a14b
+ */
+ model: string;
+ /**
+ * @description A text description of the desired video.
+ * @example Two anthropomorphic cats in boxing gear fight intensely on a spotlighted stage
+ */
+ prompt: string;
+ /**
+ * @description The output resolution, for example `1280x720`.
+ * @example 1280x720
+ */
+ size?: string;
+ /**
+ * @description Frames per second for the generated video.
+ * @example 16
+ */
+ fps?: number;
+ };
+ /** @description Download location for a completed video when a presigned URL is available. */
+ video_generation_output: {
+ /**
+ * Format: uri
+ * @description Presigned URL for the generated MP4.
+ * @example https://example.com/output.mp4
+ */
+ url?: string;
+ };
+ /** @description Status of an asynchronous video generation job. */
+ video_generation: {
+ /**
+ * @description The video generation job identifier.
+ * @example video_bGl0ZWxsbTpjdXN0b21fbGxtX3Byb3ZpZGVyOm9wZW5haTttb2RlbF9pZDo7dmlkZW9faWQ6ZGExYjFmYzMtYTM3NC00MmM0LTgxMWMtOWE5NmE3ZWY0OTIz
+ */
+ id: string;
+ /**
+ * @description Object type returned by the API.
+ * @example video
+ */
+ object?: string;
+ /**
+ * @description Unix timestamp (in seconds) of when the job was created.
+ * @example 1777003604
+ */
+ created_at?: number;
+ /**
+ * @description The model used for generation.
+ * @example wan2.2-t2v-a14b
+ */
+ model?: string;
+ /**
+ * @description Job status. Poll until the value is a terminal state such as `completed` or `failed`.
+ * @example processing
+ */
+ status: string;
+ output?: components["schemas"]["video_generation_output"] | null;
+ /** @description Error details when status is `failed`. */
+ error?: {
+ [key: string]: unknown;
+ } | null;
+ /** @description Request correlation identifier when provided by the API. */
+ x_request_id?: string | null;
+ };
+ /**
+ * BatchFileCreateRequest
+ * @description Request body for creating a batch input file intent.
+ */
+ batch_file_create_request: {
+ /**
+ * @description The file you plan to upload. Must end with `.jsonl` (case-insensitive) and contain one request per line in the schema expected by the target `provider`.
+ * @example batch_requests.jsonl
+ */
+ file_name: string;
+ };
+ /** @description Presigned upload URL and `file_id` for a new batch input file. */
+ batch_file_create_response: {
+ /**
+ * Format: uuid
+ * @description Pass this value as `file_id` when creating a batch job.
+ * @example a1b2c3d4-e5f6-4789-90ab-cdef12345678
+ */
+ file_id: string;
+ /**
+ * Format: uri
+ * @description Short-lived presigned `PUT` URL (typically valid for ~15 minutes). If it expires before upload, create a new file intent.
+ * @example https://batch-inference.nyc3.digitaloceanspaces.com/uploads/a1b2c3d4-e5f6-4789-90ab-cdef12345678.jsonl?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=900&X-Amz-Signature=...
+ */
+ upload_url: string;
+ /**
+ * Format: date-time
+ * @description When `upload_url` expires.
+ * @example 2026-04-24T19:34:19Z
+ */
+ expires_at?: string | null;
+ };
+ /** @description A Batch Inference job. */
+ batch: {
+ /**
+ * Format: uuid
+ * @description Unique identifier for the batch job.
+ * @example 0e9d1d35-3d1e-4d66-9a2f-8c7e0f6b3e21
+ */
+ batch_id: string;
+ /**
+ * @description Lifecycle status. Terminal states: `completed`, `failed`, `expired`, `cancelled`.
+ * @example in_progress
+ * @enum {string}
+ */
+ status: "validating" | "in_progress" | "finalizing" | "completed" | "failed" | "expired" | "cancelling" | "cancelled";
+ /**
+ * @example openai
+ * @enum {string}
+ */
+ provider: "openai" | "anthropic";
+ /**
+ * @description Inference endpoint each request is dispatched to.
+ * @example /v1/chat/completions
+ */
+ endpoint?: string;
+ /**
+ * @example 24h
+ * @enum {string}
+ */
+ completion_window: "24h";
+ /**
+ * Format: uuid
+ * @description The uploaded JSONL input file.
+ * @example a1b2c3d4-e5f6-4789-90ab-cdef12345678
+ */
+ input_file_id: string;
+ /**
+ * Format: uuid
+ * @description Output JSONL file. Populated once the job completes.
+ * @example null
+ */
+ output_file_id?: string | null;
+ /**
+ * Format: uuid
+ * @description Error sidecar file. Null when no errors were produced.
+ * @example null
+ */
+ error_file_id?: string | null;
+ /** @description Aggregate request counts. */
+ request_counts?: {
+ /** @example 10000 */
+ total?: number;
+ /** @example 0 */
+ completed?: number;
+ /** @example 0 */
+ failed?: number;
+ };
+ /**
+ * @description The idempotency key supplied at creation.
+ * @example c7e3ad1e-20c3-4e47-9bf2-6f2a4d6a2f11
+ */
+ request_id?: string;
+ /**
+ * @description Metadata attached at creation.
+ * @example null
+ */
+ metadata?: {
+ [key: string]: string;
+ } | null;
+ /** @description Top-level errors that prevented the batch from completing. */
+ errors?: {
+ /** @example invalid_input_file */
+ code?: string;
+ /** @example Line 42: missing required field 'custom_id'. */
+ message?: string;
+ /**
+ * @description 1-based JSONL line number, if applicable.
+ * @example 42
+ */
+ line?: number | null;
+ }[] | null;
+ /**
+ * Format: date-time
+ * @example 2026-04-24T19:19:19Z
+ */
+ created_at: string;
+ /**
+ * Format: date-time
+ * @example 2026-04-24T19:20:05Z
+ */
+ in_progress_at?: string | null;
+ /**
+ * Format: date-time
+ * @example 2026-04-24T20:10:42Z
+ */
+ finalizing_at?: string | null;
+ /**
+ * Format: date-time
+ * @example 2026-04-24T20:15:30Z
+ */
+ completed_at?: string | null;
+ /**
+ * Format: date-time
+ * @description Derived from `created_at` plus `completion_window`.
+ * @example 2026-04-25T19:19:19Z
+ */
+ expires_at?: string | null;
+ /**
+ * Format: date-time
+ * @example 2026-04-24T19:45:11Z
+ */
+ cancelled_at?: string | null;
+ /**
+ * Format: date-time
+ * @example 2026-04-24T19:50:00Z
+ */
+ failed_at?: string | null;
+ };
+ /**
+ * BatchListResponse
+ * @description Cursor-paginated list of batch inference jobs.
+ */
+ batch_list_response: {
+ /**
+ * @description The object type, always `list`.
+ * @example list
+ * @enum {string}
+ */
+ object: "list";
+ /** @description Batch jobs on this page, ordered newest first. */
+ data: components["schemas"]["batch"][];
+ /**
+ * Format: uuid
+ * @description ID of the first batch on this page. Null when the page is empty.
+ * @example 0e9d1d35-3d1e-4d66-9a2f-8c7e0f6b3e21
+ */
+ first_id?: string | null;
+ /**
+ * Format: uuid
+ * @description ID of the last batch on this page. Pass as `after` to fetch the next page.
+ * @example 7b2e9c1a-6f4d-4d9b-a0f1-5c4b7e2f8a12
+ */
+ last_id?: string | null;
+ /**
+ * @description Whether additional batches exist beyond this page.
+ * @example false
+ */
+ has_more: boolean;
+ };
+ /**
+ * @description Request body for creating a batch inference job.
+ *
+ * When `provider` is `openai`, `endpoint` is required and must be one of `/v1/responses` or `/v1/chat/completions`. When `provider` is `anthropic`, `endpoint` must be omitted — the Anthropic Message Batches API does not need a per-job endpoint.
+ */
+ batch_create_request: {
+ /**
+ * Format: uuid
+ * @description The `file_id` returned by `POST /v1/batches/files`.
+ * @example a1b2c3d4-e5f6-4789-90ab-cdef12345678
+ */
+ file_id: string;
+ /**
+ * @description The inference provider whose JSONL schema the input file conforms to. `openai` follows the OpenAI Batch API input schema (`custom_id`, `method`, `url`, `body`); `anthropic` follows the Anthropic Message Batches JSONL conventions.
+ * @example openai
+ * @enum {string}
+ */
+ provider: "openai" | "anthropic";
+ /**
+ * @description Inference endpoint each request is dispatched to. **Required when `provider` is `openai` and must match the `url` on every JSONL line. Must be omitted when `provider` is `anthropic`.**
+ * @example /v1/chat/completions
+ * @enum {string}
+ */
+ endpoint?: "/v1/responses" | "/v1/chat/completions";
+ /**
+ * @description Time window in which the job must complete. Jobs that do not finish in time transition to `expired`.
+ * @default 24h
+ * @example 24h
+ * @enum {string}
+ */
+ completion_window: "24h";
+ /**
+ * @description Client-supplied idempotency key. Retries with the same value return the existing job instead of creating a duplicate.
+ * @example c7e3ad1e-20c3-4e47-9bf2-6f2a4d6a2f11
+ */
+ request_id: string;
+ /**
+ * @description Optional string-valued metadata to attach to the job.
+ * @example {
+ * "team": "ml-eval",
+ * "dataset": "prompts_v1"
+ * }
+ */
+ metadata?: {
+ [key: string]: string;
+ } | null;
+ };
+ /**
+ * BatchResultsResponse
+ * @description Presigned download URLs for a batch job. URLs are short-lived — download the artifacts soon after fetching them.
+ */
+ batch_results_response: {
+ /**
+ * Format: uuid
+ * @example 0e9d1d35-3d1e-4d66-9a2f-8c7e0f6b3e21
+ */
+ batch_id: string;
+ /**
+ * @description When `false`, keep polling batch status and retry later.
+ * @example true
+ */
+ result_available: boolean;
+ /**
+ * Format: uri
+ * @description Presigned URL for the main results JSONL.
+ * @example https://batch-inference.nyc3.digitaloceanspaces.com/outputs/0e9d1d35-3d1e-4d66-9a2f-8c7e0f6b3e21.jsonl?X-Amz-Signature=...
+ */
+ output_file_url?: string | null;
+ /**
+ * Format: uri
+ * @description Presigned URL for the error sidecar JSONL, if any.
+ * @example null
+ */
+ error_file_url?: string | null;
+ /**
+ * Format: date-time
+ * @description When the presigned URLs expire.
+ * @example 2026-04-24T20:19:19Z
+ */
+ expires_at?: string | null;
+ };
+ };
+ responses: {
+ /** @description There was an unexpected error. */
+ unexpected_error: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "example_error",
+ * "message": "some error message"
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description There was an error parsing the request body. */
+ bad_request: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "bad_request",
+ * "message": "error parsing request body",
+ * "request_id": "4851a473-1621-42ea-b2f9-5071c0ea8414"
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Authentication failed due to invalid credentials. */
+ unauthorized: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "unauthorized",
+ * "message": "Unable to authenticate you."
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The resource was not found. */
+ not_found: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "not_found",
+ * "message": "The resource you requested could not be found."
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The API rate limit has been exceeded. */
+ too_many_requests: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "too_many_requests",
+ * "message": "API rate limit exceeded."
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description There was a server error. */
+ server_error: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "server_error",
+ * "message": "Unexpected server-side error"
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The authenticated principal does not have permission to perform this action on the requested resource. */
+ forbidden: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "forbidden",
+ * "message": "You do not have permission to perform this action."
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The request was successful. Secret material is not returned. */
+ provider_credential: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "credential": {
+ * "id": "example-credential-id",
+ * "provider": "example-provider",
+ * "display_name": "Production key",
+ * "kind": "PROVIDER_CREDENTIAL_KIND_API_KEY",
+ * "status": "PROVIDER_CREDENTIAL_STATUS_ACTIVE",
+ * "base_url": "",
+ * "created_at": "2026-11-01T12:00:00Z",
+ * "updated_at": "2026-11-01T12:00:00Z",
+ * "owning_user_id": "example-digitalocean-user-id",
+ * "reusable_by_team": false,
+ * "scope": "user",
+ * "redirect_url": ""
+ * },
+ * "revoked_connections": 0
+ * }
+ */
+ "application/json": components["schemas"]["provider_credential_response"];
+ };
+ };
+ /** @description The request could not be completed due to a conflict. */
+ conflict: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "conflict",
+ * "message": "The request could not be completed due to a conflict."
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description An endpoint with this name already exists in the team (endpoint_name_taken). */
+ endpoint_name_taken: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "endpoint_name_taken",
+ * "message": "endpoint name is already in use"
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The API rate limit or your team's endpoint limit was exceeded. A rate-limit error uses too_many_requests. An endpoint-cap error uses endpoint_limit_exceeded; its message includes the limit and current count. The endpoint limit depends on your team's allowance, not a fixed limit for every team. It counts endpoints created through the public API. It does not count each user's default endpoint, which Action Gateway creates on first use, service-managed endpoints, or legacy sessions. Delete an endpoint before creating another when this cap is reached. */
+ endpoint_creation_limited: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description An inaccessible endpoint returns endpoint_not_found. A request whose owner or actor differs from the endpoint returns endpoint_identity_mismatch. */
+ version_creation_not_found: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The API rate limit or the endpoint's live-version limit was exceeded. A rate-limit error uses too_many_requests. A version-cap error uses endpoint_version_limit_exceeded. Each endpoint may have at most 100 live versions. Creation and promotion both consume a live-version slot. Delete an older live version before creating or promoting another when this cap is reached. */
+ version_creation_limited: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description An inaccessible endpoint returns endpoint_not_found. A version that is deleted, unknown, or belongs to another endpoint returns endpoint_version_not_found. A source version whose owner or actor differs from the endpoint returns endpoint_identity_mismatch. */
+ promotion_not_found: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The session is created as an endpoint, and every endpoint name derived from the session name is already in use in the team (endpoint_name_taken). */
+ session_name_taken: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "endpoint_name_taken",
+ * "message": "endpoint name is already in use; choose another session name"
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The API rate limit or your team's endpoint limit was exceeded. A rate-limit error uses too_many_requests. When the new session is created as an endpoint, it counts against your team's endpoint limit, and a full limit returns endpoint_limit_exceeded with the limit and current count in its message. */
+ session_creation_limited: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The request is invalid: the body is not valid JSON, a required field is missing, a value is out of range, `X-Endpoint-Id` is malformed or repeated, or both `X-Session-Id` and `X-Endpoint-Id` were sent. */
+ data_plane_responses_bad_request: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "status": "failed",
+ * "error": {
+ * "class": "invalid_argument",
+ * "message": "Request is invalid. Fix request arguments and retry.",
+ * "retriable": false,
+ * "recovery_hint": "fix_args"
+ * },
+ * "call_id": "call_8b7c6d5e-4f3a-4b2c-9d1e-0f9a8b7c6d5e"
+ * }
+ */
+ "application/json": components["schemas"]["tool_result_error"];
+ };
+ };
+ /** @description The token is missing, invalid, or expired. This response uses the standard DigitalOcean API error format. */
+ data_plane_responses_unauthorized: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "unauthorized",
+ * "message": "Unable to authenticate you."
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The token or session cannot be used for this request. Tokens without the `action_gateway:execute` scope, and accounts that are not in good standing, are rejected with the standard DigitalOcean API error format. Session failures return a tool result: the session ID is missing or invalid, the session or endpoint belongs to another user or team, `X-Actor-Id` does not match its actor binding, the session has no policy, or the session policy denies the operation. */
+ data_plane_responses_forbidden: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "status": "failed",
+ * "error": {
+ * "class": "forbidden",
+ * "message": "A valid session ID is required to invoke tools.",
+ * "retriable": false,
+ * "recovery_hint": "fix_args"
+ * },
+ * "call_id": ""
+ * }
+ */
+ "application/json": components["schemas"]["tool_result_error"] | components["schemas"]["error"];
+ };
+ };
+ /** @description The endpoint in `X-Endpoint-Id` does not exist, has no live version, or belongs to another user or team. */
+ endpoint_not_found: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "status": "failed",
+ * "error": {
+ * "class": "invalid_argument",
+ * "message": "The requested route is not supported.",
+ * "retriable": false,
+ * "recovery_hint": "fix_args"
+ * },
+ * "call_id": ""
+ * }
+ */
+ "application/json": components["schemas"]["tool_result_error"];
+ };
+ };
+ /** @description Your team is not enabled for Action Gateway, or the session or its connection is not set up for this call. For example, the session needs an `actorId` for OAuth tools, an OAuth connection must be reconnected, or the connection's private network does not match what the MCP server requires. */
+ precondition_failed: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "status": "failed",
+ * "error": {
+ * "class": "forbidden",
+ * "message": "Your team is not enabled for Action Gateway. Contact support to request access.",
+ * "retriable": false,
+ * "recovery_hint": "contact_support"
+ * },
+ * "call_id": ""
+ * }
+ */
+ "application/json": components["schemas"]["tool_result_error"];
+ };
+ };
+ /** @description A rate limit was exceeded. Wait for the number of seconds in `Retry-After`, when present, before retrying. */
+ data_plane_responses_too_many_requests: {
+ headers: {
+ /**
+ * @description The number of seconds to wait before retrying.
+ * @example 30
+ */
+ "Retry-After"?: number;
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "status": "failed",
+ * "error": {
+ * "class": "rate_limited",
+ * "message": "Rate limit exceeded. Retry after the indicated delay.",
+ * "retriable": true,
+ * "recovery_hint": "retry_later"
+ * },
+ * "call_id": "call_8b7c6d5e-4f3a-4b2c-9d1e-0f9a8b7c6d5e"
+ * }
+ */
+ "application/json": components["schemas"]["tool_result_error"];
+ };
+ };
+ /** @description The gateway failed to process the request. Retry later. */
+ data_plane_responses_server_error: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "status": "failed",
+ * "error": {
+ * "class": "unavailable",
+ * "message": "The server failed to process the request.",
+ * "retriable": true,
+ * "recovery_hint": "retry_later"
+ * },
+ * "call_id": "call_8b7c6d5e-4f3a-4b2c-9d1e-0f9a8b7c6d5e"
+ * }
+ */
+ "application/json": components["schemas"]["tool_result_error"];
+ };
+ };
+ /** @description The gateway or a service it depends on is temporarily unavailable. Retry later. */
+ service_unavailable: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "status": "failed",
+ * "error": {
+ * "class": "unavailable",
+ * "message": "Gateway is temporarily unavailable. Retry later.",
+ * "retriable": true,
+ * "recovery_hint": "retry_later"
+ * },
+ * "call_id": "call_8b7c6d5e-4f3a-4b2c-9d1e-0f9a8b7c6d5e"
+ * }
+ */
+ "application/json": components["schemas"]["tool_result_error"];
+ };
+ };
+ /** @description The request body is larger than 1 MiB. */
+ payload_too_large: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "status": "failed",
+ * "error": {
+ * "class": "invalid_argument",
+ * "message": "Request body is too large.",
+ * "retriable": false,
+ * "recovery_hint": "fix_args"
+ * },
+ * "call_id": ""
+ * }
+ */
+ "application/json": components["schemas"]["tool_result_error"];
+ };
+ };
+ /** @description Your team must add prepayment before it can make more tool calls. */
+ payment_required: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "status": "failed",
+ * "error": {
+ * "class": "forbidden",
+ * "message": "Prepayment is required before additional tool calls can be made.",
+ * "retriable": false,
+ * "recovery_hint": "contact_support"
+ * },
+ * "call_id": "call_8b7c6d5e-4f3a-4b2c-9d1e-0f9a8b7c6d5e"
+ * }
+ */
+ "application/json": components["schemas"]["tool_result_error"];
+ };
+ };
+ /** @description The code did not finish within the execution time limit. */
+ gateway_timeout: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "status": "failed",
+ * "error": {
+ * "class": "timeout",
+ * "message": "Tool execution timed out.",
+ * "retriable": true,
+ * "recovery_hint": "retry_later"
+ * },
+ * "call_id": "call_8b7c6d5e-4f3a-4b2c-9d1e-0f9a8b7c6d5e"
+ * }
+ */
+ "application/json": components["schemas"]["tool_result_error"];
+ };
+ };
+ /** @description The approval does not exist or belongs to another session. Approvals for other callers are reported as not found. */
+ data_plane_responses_not_found: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "status": "failed",
+ * "error": {
+ * "class": "invalid_argument",
+ * "message": "The requested route is not supported.",
+ * "retriable": false,
+ * "recovery_hint": "fix_args"
+ * },
+ * "call_id": ""
+ * }
+ */
+ "application/json": components["schemas"]["tool_result_error"];
+ };
+ };
+ /** @description The approval was already decided or has expired. Repeat the tool call to request a new approval. */
+ data_plane_responses_conflict: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "status": "failed",
+ * "error": {
+ * "class": "invalid_argument",
+ * "message": "The approval is no longer pending. Re-invoke the tool to request a new approval.",
+ * "retriable": false,
+ * "recovery_hint": "fix_args"
+ * },
+ * "call_id": ""
+ * }
+ */
+ "application/json": components["schemas"]["tool_result_error"];
+ };
+ };
+ /** @description A JSON object with a key of `1_clicks`. */
+ oneClicks_all: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ "1_clicks"?: components["schemas"]["oneClicks"][];
+ };
+ };
+ };
+ /**
+ * @description The response will verify that a job has been successfully created to install a 1-Click. The
+ * post-installation lifecycle of a 1-Click application can not be managed via the DigitalOcean
+ * API. For additional details specific to the 1-Click, find and view its
+ * [DigitalOcean Marketplace](https://marketplace.digitalocean.com) page.
+ */
+ oneClicks_create: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ /**
+ * @description A message about the result of the request.
+ * @example Successfully kicked off addon job.
+ */
+ message?: string;
+ };
+ };
+ };
+ /** @description A JSON object keyed on account with an excerpt of the current user account data. */
+ account: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ account?: components["schemas"]["account"];
+ };
+ };
+ };
+ /** @description A JSON object with the key set to `ssh_keys`. The value is an array of `ssh_key` objects, each of which contains the standard `ssh_key` attributes. */
+ sshKeys_all: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ ssh_keys?: components["schemas"]["sshKeys"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response body will be a JSON object with a key set to `ssh_key`. */
+ sshKeys_new: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ ssh_key?: components["schemas"]["sshKeys"];
+ };
+ };
+ };
+ /** @description A JSON object with the key set to `ssh_key`. The value is an `ssh_key` object containing the standard `ssh_key` attributes. */
+ sshKeys_existing: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ ssh_key?: components["schemas"]["sshKeys"];
+ };
+ };
+ };
+ /** @description The action was successful and the response body is empty. */
+ no_content: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description The results will be returned as a JSON object with an actions key. This will be set to an array filled with action objects containing the standard action attributes */
+ actions: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ actions?: components["schemas"]["action"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The result will be a JSON object with an action key. This will be set to an action object containing the standard action attributes. */
+ action: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ action?: components["schemas"]["action"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `apps`. `apps` will be an array of objects. */
+ addons_get_app: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ apps?: components["schemas"]["addons_app_info"][];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `metadata`. `metadata` will be an array of objects, each representing a metadata item for the app. Each object will contain details such as `id`, `name`, `display_name`, `description`, `type`, and `options`. For additional details specific to the app, find and view its [DigitalOcean Marketplace](https://marketplace.digitalocean.com) page. */
+ addons_get_app_metadata: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ metadata?: components["schemas"]["addons_app_metadata"][];
+ };
+ };
+ };
+ /** @description The response will be an array of JSON objects with a key called `resources`. */
+ addons_list: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ resources?: components["schemas"]["addons_resource"][];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `resource`. The value of this will be the resource created with the given. For additional details specific to the app, find and view its [DigitalOcean Marketplace](https://marketplace.digitalocean.com) page. */
+ addons_create: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ resource?: components["schemas"]["addons_resource"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `resource`. */
+ addons_get: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ resource?: components["schemas"]["addons_resource"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `resource`, representing the updated resource. */
+ addons_update: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ resource?: components["schemas"]["addons_resource"];
+ };
+ };
+ };
+ /** @description A JSON object with a `apps` key. This is list of object `apps`. */
+ list_apps: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apps_response"];
+ };
+ };
+ /** @description A JSON or YAML of a `spec` object. */
+ new_app: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["app_response"];
+ };
+ };
+ /** @description A JSON with key `app` */
+ apps_get: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["app_response"];
+ };
+ };
+ /** @description A JSON object of the updated `app` */
+ update_app: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["app_response"];
+ };
+ };
+ /** @description the ID of the app deleted. */
+ delete_app: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "b7d64052-3706-4cb7-b21a-c5a2f44e63b3"
+ * }
+ */
+ "application/json": components["schemas"]["apps_delete_app_response"];
+ };
+ };
+ /** @description A JSON object with a `deployment` key. */
+ new_app_deployment: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apps_deployment_response"];
+ };
+ };
+ /** @description A JSON object with urls that point to archived logs */
+ list_logs: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apps_get_logs_response"];
+ };
+ };
+ /** @description A JSON object with a websocket URL that allows sending/receiving console input and output. */
+ get_exec: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apps_get_exec_response"];
+ };
+ };
+ /** @description A JSON with key `instances` */
+ apps_instances: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["app_instances"];
+ };
+ };
+ /** @description A JSON object with a `deployments` key. This will be a list of all app deployments */
+ existing_deployments: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apps_deployments_response"];
+ };
+ };
+ /** @description A JSON of the requested deployment */
+ list_deployment: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apps_deployment_response"];
+ };
+ };
+ /** @description A JSON the `deployment` that was just cancelled. */
+ cancel_deployment: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apps_deployment_response"];
+ };
+ };
+ /** @description A JSON with key `job_invocations` */
+ list_job_invocations: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["app_job_invocations"];
+ };
+ };
+ /** @description A JSON with key `job_invocation` */
+ get_job_invocation: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["app_job_invocation"];
+ };
+ };
+ /** @description A JSON with key `job_invocation` */
+ cancel_job_invocation: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["app_job_invocation"];
+ };
+ };
+ /** @description A JSON object with urls that point to Job Invocation logs */
+ apps_get_logs: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apps_get_logs_response"];
+ };
+ };
+ /** @description A JSON with key `events` */
+ list_events: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["app_events"];
+ };
+ };
+ /** @description A JSON with key `event` */
+ get_event: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ event?: components["schemas"]["app_event"];
+ };
+ };
+ };
+ /** @description A JSON with key `event` */
+ cancel_event: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ event?: components["schemas"]["app_event"];
+ };
+ };
+ };
+ /** @description A JSON with key `instance_sizes` */
+ list_instance: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apps_list_instance_sizes_response"];
+ };
+ };
+ /** @description A JSON with key `instance_size` */
+ get_instance: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apps_get_instance_size_response"];
+ };
+ };
+ /** @description A JSON object with key `regions` */
+ list_regions: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apps_list_regions_response"];
+ };
+ };
+ /** @description A JSON object. */
+ propose_app: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["app_propose_response"];
+ };
+ };
+ /** @description A JSON object with a `alerts` key. This is list of object `alerts`. */
+ list_alerts: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apps_list_alerts_response"];
+ };
+ };
+ /** @description A JSON object with an `alert` key. This is an object of type `alert`. */
+ assign_alert_destinations: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apps_alert_response"];
+ };
+ };
+ /** @description A JSON object with the validation results. */
+ apps_validate_rollback: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ /** @description Indicates whether the app can be rolled back to the specified deployment. */
+ valid?: boolean;
+ error?: unknown & components["schemas"]["app_rollback_validation_condition"];
+ /** @description Contains a list of warnings that may cause the rollback to run under unideal circumstances. */
+ warnings?: components["schemas"]["app_rollback_validation_condition"][];
+ };
+ };
+ };
+ /** @description A JSON object with a `app_bandwidth_usage` key */
+ get_metrics_bandwidth_usage: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["app_metrics_bandwidth_usage"];
+ };
+ };
+ /** @description A JSON object with a `app_bandwidth_usage` key */
+ list_metrics_bandwidth_usage: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["app_metrics_bandwidth_usage"];
+ };
+ };
+ /** @description A JSON with key `app_health` */
+ apps_health: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["app_health_response"];
+ };
+ };
+ /** @description The result will be a JSON object with an `endpoints` key. This will be set to an array of endpoint objects, each of which will contain the standard CDN endpoint attributes. */
+ all_cdn_endpoints: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ endpoints?: components["schemas"]["cdn_endpoint"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with an `endpoint` key. This will be set to an object containing the standard CDN endpoint attributes. */
+ existing_endpoint: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ endpoint?: components["schemas"]["cdn_endpoint"];
+ };
+ };
+ };
+ /** @description The result will be a JSON object with a `certificates` key. This will be set to an array of certificate objects, each of which will contain the standard certificate attributes. */
+ all_certificates: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ certificates?: components["schemas"]["certificate"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `certificate`. The value of this will be an object that contains the standard attributes associated with a certificate.
+ * When using Let's Encrypt, the initial value of the certificate's `state` attribute will be `pending`. When the certificate has been successfully issued by Let's Encrypt, this will transition to `verified` and be ready for use.
+ */
+ new_certificate: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ certificate?: components["schemas"]["certificate"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a `certificate` key. This will be set to an object containing the standard certificate attributes. */
+ existing_certificate: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ certificate?: components["schemas"]["certificate"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object that contains the following attributes */
+ balance: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "month_to_date_balance": "23.44",
+ * "account_balance": "12.23",
+ * "month_to_date_usage": "11.21",
+ * "generated_at": "2019-07-09T15:01:12Z"
+ * }
+ */
+ "application/json": components["schemas"]["balance"];
+ };
+ };
+ /** @description The response will be a JSON object with the customer's prepayment configuration and current prepayment status. */
+ prepayment_config: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "config": {
+ * "spend_limit": "100.00",
+ * "is_auto_prepay_enabled": true,
+ * "prepay_amount": "50.00",
+ * "prepay_threshold": "10.00",
+ * "created_at": "2026-06-22T19:31:51Z",
+ * "updated_at": "2026-06-25T18:40:07Z"
+ * },
+ * "status": {
+ * "balance": "25.00",
+ * "is_auto_prepay_enabled": true,
+ * "blocked": true,
+ * "eligible": true,
+ * "month_to_date_balance": "75.00"
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["prepayment_config_response"];
+ };
+ };
+ /** @description The response will be a JSON object with the customer's prepayment gate status and balances. */
+ prepayment_status: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "status": {
+ * "balance": "25.00",
+ * "is_auto_prepay_enabled": true,
+ * "blocked": true,
+ * "eligible": true,
+ * "month_to_date_balance": "75.00"
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["prepayment_status_response"];
+ };
+ };
+ /** @description The response will be a JSON object that contains the following attributes */
+ billing_history: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ billing_history?: components["schemas"]["billing_history"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta_optional_total"];
+ };
+ };
+ /**
+ * @description The response will be a JSON object contains that contains a list of invoices under the `invoices` key, and the invoice preview under the `invoice_preview` key.
+ * Each element contains the invoice summary attributes.
+ */
+ invoices: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ invoices?: components["schemas"]["invoice_preview"][];
+ invoice_preview?: components["schemas"]["invoice_preview"];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `invoice_items`. This will be set to an array of invoice item objects. All resources will be shown on invoices, regardless of permissions. */
+ invoice: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ invoice_items?: components["schemas"]["invoice_item"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a CSV file. */
+ invoice_csv: {
+ headers: {
+ "content-disposition": components["headers"]["content-disposition"];
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example product,group_description,description,hours,start,end,USD,project_name,category
+ * Floating IPs,,Unused Floating IP - 1.1.1.1,100,2020-07-01 00:00:00 +0000,2020-07-22 18:14:39 +0000,$3.11,,iaas
+ * Taxes,,STATE SALES TAX (6.25%),,2020-07-01 00:00:00 +0000,2020-07-31 23:59:59 +0000,$0.16,,iaas
+ */
+ "text/csv": string;
+ };
+ };
+ /** @description The response will be a PDF file. */
+ invoice_pdf: {
+ headers: {
+ "content-disposition": components["headers"]["content-disposition"];
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/pdf": string;
+ };
+ };
+ /** @description To retrieve a summary for an invoice, send a GET request to `/v2/customers/my/invoices/$INVOICE_UUID/summary`. */
+ invoice_summary: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "invoice_uuid": "22737513-0ea7-4206-8ceb-98a575af7681",
+ * "invoice_id": "123456789",
+ * "billing_period": "2020-01",
+ * "amount": "27.13",
+ * "user_name": "Sammy Shark",
+ * "user_billing_address": {
+ * "address_line1": "101 Shark Row",
+ * "city": "Atlantis",
+ * "region": "OC",
+ * "postal_code": "12345",
+ * "country_iso2_code": "US",
+ * "created_at": "2019-09-03T16:34:46.000+00:00",
+ * "updated_at": "2019-09-03T16:34:46.000+00:00"
+ * },
+ * "user_company": "DigitalOcean",
+ * "user_email": "sammy@digitalocean.com",
+ * "product_charges": {
+ * "name": "Product usage charges",
+ * "amount": "12.34",
+ * "items": [
+ * {
+ * "amount": "10.00",
+ * "name": "Spaces Subscription",
+ * "count": "1"
+ * },
+ * {
+ * "amount": "2.34",
+ * "name": "Database Clusters",
+ * "count": "1"
+ * }
+ * ]
+ * },
+ * "overages": {
+ * "name": "Overages",
+ * "amount": "3.45"
+ * },
+ * "taxes": {
+ * "name": "Taxes",
+ * "amount": "4.56"
+ * },
+ * "credits_and_adjustments": {
+ * "name": "Credits & adjustments",
+ * "amount": "6.78"
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["invoice_summary"];
+ };
+ };
+ /** @description The response will be a JSON object that contains a list of billing data points under the `data_points` key, along with pagination metadata including `total_items`, `total_pages`, and `current_page`. */
+ billing_insights: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "data_points": [
+ * {
+ * "usage_team_urn": "do:team:12345678-1234-1234-1234-123456789012",
+ * "start_date": "2025-01-01",
+ * "total_amount": "0.86",
+ * "region": "nyc3",
+ * "sku": "1-DO-DROP-0109",
+ * "description": "droplet name (c-2-4GiB)",
+ * "group_description": ""
+ * },
+ * {
+ * "usage_team_urn": "do:team:12345678-1234-1234-1234-123456789012",
+ * "start_date": "2025-01-01",
+ * "total_amount": "2.57",
+ * "region": "nyc3",
+ * "sku": "1-KS-K8SWN-00109",
+ * "description": "3 nodes - 4 GB / 2 vCPU / 80 GB SSD",
+ * "group_description": "kubernetes cluster name"
+ * }
+ * ],
+ * "total_items": 2,
+ * "total_pages": 1,
+ * "current_page": 1
+ * }
+ */
+ "application/json": {
+ /** @description Array of billing data points, which are day-over-day changes in billing resource usage based on nightly invoice item estimates, for the requested period */
+ data_points: components["schemas"]["billing_data_point"][];
+ /**
+ * @description Total number of items available across all pages
+ * @example 250
+ */
+ total_items: number;
+ /**
+ * @description Total number of pages available
+ * @example 3
+ */
+ total_pages: number;
+ /**
+ * @description Current page number
+ * @example 1
+ */
+ current_page: number;
+ };
+ };
+ };
+ /** @description A JSON string with a key of `options`. */
+ options: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "options": {
+ * "kafka": {
+ * "regions": [
+ * "ams3",
+ * "blr1",
+ * "fra1",
+ * "lon1",
+ * "nyc1",
+ * "nyc2",
+ * "nyc3",
+ * "sfo2",
+ * "sfo3",
+ * "sgp1",
+ * "syd1",
+ * "tor1",
+ * "ric1",
+ * "atl1"
+ * ],
+ * "versions": [
+ * "3.8"
+ * ],
+ * "layouts": [
+ * {
+ * "num_nodes": 3,
+ * "sizes": [
+ * "gd-2vcpu-8gb",
+ * "gd-4vcpu-16gb",
+ * "db-s-2vcpu-4gb",
+ * "db-s-2vcpu-2gb"
+ * ]
+ * },
+ * {
+ * "num_nodes": 6,
+ * "sizes": [
+ * "gd-2vcpu-8gb",
+ * "gd-4vcpu-16gb"
+ * ]
+ * },
+ * {
+ * "num_nodes": 9,
+ * "sizes": [
+ * "gd-2vcpu-8gb",
+ * "gd-4vcpu-16gb"
+ * ]
+ * },
+ * {
+ * "num_nodes": 15,
+ * "sizes": [
+ * "gd-2vcpu-8gb",
+ * "gd-4vcpu-16gb"
+ * ]
+ * }
+ * ],
+ * "default_version": "3.8"
+ * },
+ * "mongodb": {
+ * "regions": [
+ * "ams3",
+ * "blr1",
+ * "fra1",
+ * "lon1",
+ * "nyc1",
+ * "nyc2",
+ * "nyc3",
+ * "sfo2",
+ * "sfo3",
+ * "sgp1",
+ * "syd1",
+ * "tor1",
+ * "ric1",
+ * "atl1"
+ * ],
+ * "versions": [
+ * "6.0",
+ * "7.0"
+ * ],
+ * "layouts": [
+ * {
+ * "num_nodes": 1,
+ * "sizes": [
+ * "db-s-1vcpu-1gb",
+ * "db-s-1vcpu-2gb",
+ * "db-s-2vcpu-4gb",
+ * "db-s-4vcpu-8gb",
+ * "db-s-6vcpu-16gb",
+ * "db-s-8vcpu-32gb",
+ * "db-s-16vcpu-64gb",
+ * "gd-2vcpu-8gb",
+ * "gd-4vcpu-16gb",
+ * "gd-8vcpu-32gb",
+ * "gd-16vcpu-64gb",
+ * "gd-32vcpu-128gb",
+ * "gd-40vcpu-160gb",
+ * "so1_5-2vcpu-16gb",
+ * "so1_5-4vcpu-32gb",
+ * "so1_5-8vcpu-64gb",
+ * "so1_5-16vcpu-128gb",
+ * "so1_5-24vcpu-192gb",
+ * "so1_5-32vcpu-256gb"
+ * ]
+ * },
+ * {
+ * "num_nodes": 3,
+ * "sizes": [
+ * "db-s-1vcpu-1gb",
+ * "db-s-1vcpu-2gb",
+ * "db-s-2vcpu-4gb",
+ * "db-s-4vcpu-8gb",
+ * "db-s-6vcpu-16gb",
+ * "db-s-8vcpu-32gb",
+ * "db-s-16vcpu-64gb",
+ * "gd-2vcpu-8gb",
+ * "gd-4vcpu-16gb",
+ * "gd-8vcpu-32gb",
+ * "gd-16vcpu-64gb",
+ * "gd-32vcpu-128gb",
+ * "gd-40vcpu-160gb",
+ * "so1_5-2vcpu-16gb",
+ * "so1_5-4vcpu-32gb",
+ * "so1_5-8vcpu-64gb",
+ * "so1_5-16vcpu-128gb",
+ * "so1_5-24vcpu-192gb",
+ * "so1_5-32vcpu-256gb"
+ * ]
+ * }
+ * ],
+ * "default_version": "7.0"
+ * },
+ * "mysql": {
+ * "regions": [
+ * "ams3",
+ * "blr1",
+ * "fra1",
+ * "lon1",
+ * "nyc1",
+ * "nyc2",
+ * "nyc3",
+ * "sfo2",
+ * "sfo3",
+ * "sgp1",
+ * "syd1",
+ * "tor1",
+ * "ric1",
+ * "atl1"
+ * ],
+ * "versions": [
+ * "8"
+ * ],
+ * "layouts": [
+ * {
+ * "num_nodes": 1,
+ * "sizes": [
+ * "db-s-1vcpu-1gb",
+ * "db-s-1vcpu-2gb",
+ * "db-s-2vcpu-4gb",
+ * "db-s-4vcpu-8gb",
+ * "db-s-6vcpu-16gb",
+ * "gd-2vcpu-8gb",
+ * "gd-4vcpu-16gb",
+ * "gd-8vcpu-32gb",
+ * "gd-16vcpu-64gb",
+ * "gd-32vcpu-128gb",
+ * "gd-40vcpu-160gb",
+ * "so1_5-2vcpu-16gb",
+ * "so1_5-4vcpu-32gb",
+ * "so1_5-8vcpu-64gb",
+ * "so1_5-16vcpu-128gb",
+ * "so1_5-24vcpu-192gb",
+ * "so1_5-32vcpu-256gb",
+ * "db-intel-1vcpu-1gb",
+ * "db-amd-1vcpu-1gb",
+ * "db-intel-1vcpu-2gb",
+ * "db-amd-1vcpu-2gb",
+ * "db-amd-2vcpu-4gb",
+ * "db-intel-2vcpu-4gb",
+ * "db-amd-2vcpu-8gb",
+ * "db-intel-2vcpu-8gb",
+ * "db-intel-4vcpu-8gb",
+ * "db-amd-4vcpu-8gb",
+ * "db-amd-4vcpu-16gb",
+ * "db-intel-4vcpu-16gb",
+ * "db-intel-8vcpu-32gb",
+ * "db-amd-8vcpu-32gb",
+ * "db-intel-16vcpu-64gb",
+ * "db-amd-16vcpu-64gb"
+ * ]
+ * },
+ * {
+ * "num_nodes": 2,
+ * "sizes": [
+ * "db-s-1vcpu-2gb",
+ * "db-s-2vcpu-4gb",
+ * "db-s-4vcpu-8gb",
+ * "db-s-6vcpu-16gb",
+ * "gd-2vcpu-8gb",
+ * "gd-4vcpu-16gb",
+ * "gd-8vcpu-32gb",
+ * "gd-16vcpu-64gb",
+ * "gd-32vcpu-128gb",
+ * "gd-40vcpu-160gb",
+ * "so1_5-2vcpu-16gb",
+ * "so1_5-4vcpu-32gb",
+ * "so1_5-8vcpu-64gb",
+ * "so1_5-16vcpu-128gb",
+ * "so1_5-24vcpu-192gb",
+ * "so1_5-32vcpu-256gb",
+ * "db-intel-1vcpu-2gb",
+ * "db-amd-1vcpu-2gb",
+ * "db-amd-2vcpu-4gb",
+ * "db-intel-2vcpu-4gb",
+ * "db-intel-2vcpu-8gb",
+ * "db-amd-2vcpu-8gb",
+ * "db-intel-4vcpu-8gb",
+ * "db-amd-4vcpu-8gb",
+ * "db-intel-4vcpu-16gb",
+ * "db-amd-4vcpu-16gb",
+ * "db-amd-8vcpu-32gb",
+ * "db-intel-8vcpu-32gb",
+ * "db-amd-16vcpu-64gb",
+ * "db-intel-16vcpu-64gb"
+ * ]
+ * },
+ * {
+ * "num_nodes": 3,
+ * "sizes": [
+ * "db-s-1vcpu-2gb",
+ * "db-s-2vcpu-4gb",
+ * "db-s-4vcpu-8gb",
+ * "db-s-6vcpu-16gb",
+ * "gd-2vcpu-8gb",
+ * "gd-4vcpu-16gb",
+ * "gd-8vcpu-32gb",
+ * "gd-16vcpu-64gb",
+ * "gd-32vcpu-128gb",
+ * "gd-40vcpu-160gb",
+ * "so1_5-2vcpu-16gb",
+ * "so1_5-4vcpu-32gb",
+ * "so1_5-8vcpu-64gb",
+ * "so1_5-16vcpu-128gb",
+ * "so1_5-24vcpu-192gb",
+ * "so1_5-32vcpu-256gb",
+ * "db-intel-1vcpu-2gb",
+ * "db-amd-1vcpu-2gb",
+ * "db-amd-2vcpu-4gb",
+ * "db-intel-2vcpu-4gb",
+ * "db-intel-2vcpu-8gb",
+ * "db-amd-2vcpu-8gb",
+ * "db-intel-4vcpu-8gb",
+ * "db-amd-4vcpu-8gb",
+ * "db-intel-4vcpu-16gb",
+ * "db-amd-4vcpu-16gb",
+ * "db-amd-8vcpu-32gb",
+ * "db-intel-8vcpu-32gb",
+ * "db-amd-16vcpu-64gb",
+ * "db-intel-16vcpu-64gb"
+ * ]
+ * }
+ * ],
+ * "default_version": "8"
+ * },
+ * "advanced_mysql": {
+ * "regions": [
+ * "ams3",
+ * "blr1",
+ * "fra1",
+ * "lon1",
+ * "nyc1",
+ * "nyc2",
+ * "nyc3",
+ * "sfo2",
+ * "sfo3",
+ * "sgp1",
+ * "syd1",
+ * "tor1",
+ * "ric1",
+ * "atl1"
+ * ],
+ * "versions": [
+ * "8.4.8"
+ * ],
+ * "layouts": [
+ * {
+ * "num_nodes": 1,
+ * "sizes": [
+ * "gd-2vcpu-8gb-intel",
+ * "so1_5-2vcpu-16gb-intel",
+ * "so1_5-2vcpu-16gb",
+ * "gd-2vcpu-8gb",
+ * "gd-4vcpu-16gb-intel",
+ * "so1_5-4vcpu-32gb-intel",
+ * "so1_5-4vcpu-32gb",
+ * "gd-4vcpu-16gb",
+ * "gd-8vcpu-32gb",
+ * "so1_5-8vcpu-64gb",
+ * "gd-8vcpu-32gb-intel",
+ * "so1_5-8vcpu-64gb-intel",
+ * "gd-16vcpu-64gb",
+ * "so1_5-16vcpu-128gb",
+ * "gd-16vcpu-64gb-intel",
+ * "so1_5-16vcpu-128gb-intel",
+ * "so1_5-24vcpu-192gb",
+ * "so1_5-24vcpu-192gb-intel",
+ * "so1_5-32vcpu-256gb-intel",
+ * "gd-32vcpu-128gb",
+ * "gd-32vcpu-128gb-intel",
+ * "so1_5-32vcpu-256gb",
+ * "gd-40vcpu-160gb",
+ * "so1_5-48vcpu-384gb-intel",
+ * "gd-48vcpu-192gb-intel",
+ * "so1_5-48vcpu-256gb",
+ * "c-96-intel"
+ * ]
+ * },
+ * {
+ * "num_nodes": 3,
+ * "sizes": [
+ * "gd-2vcpu-8gb-intel",
+ * "so1_5-2vcpu-16gb-intel",
+ * "so1_5-2vcpu-16gb",
+ * "gd-2vcpu-8gb",
+ * "gd-4vcpu-16gb-intel",
+ * "so1_5-4vcpu-32gb-intel",
+ * "so1_5-4vcpu-32gb",
+ * "gd-4vcpu-16gb",
+ * "gd-8vcpu-32gb",
+ * "so1_5-8vcpu-64gb",
+ * "gd-8vcpu-32gb-intel",
+ * "so1_5-8vcpu-64gb-intel",
+ * "gd-16vcpu-64gb",
+ * "so1_5-16vcpu-128gb",
+ * "gd-16vcpu-64gb-intel",
+ * "so1_5-16vcpu-128gb-intel",
+ * "so1_5-24vcpu-192gb",
+ * "so1_5-24vcpu-192gb-intel",
+ * "so1_5-32vcpu-256gb-intel",
+ * "gd-32vcpu-128gb",
+ * "gd-32vcpu-128gb-intel",
+ * "so1_5-32vcpu-256gb",
+ * "gd-40vcpu-160gb",
+ * "so1_5-48vcpu-384gb-intel",
+ * "gd-48vcpu-192gb-intel",
+ * "so1_5-48vcpu-256gb",
+ * "c-96-intel"
+ * ]
+ * }
+ * ],
+ * "default_version": "8.4.8"
+ * },
+ * "opensearch": {
+ * "regions": [
+ * "ams3",
+ * "blr1",
+ * "fra1",
+ * "lon1",
+ * "nyc1",
+ * "nyc2",
+ * "nyc3",
+ * "sfo2",
+ * "sfo3",
+ * "sgp1",
+ * "syd1",
+ * "tor1",
+ * "ric1",
+ * "atl1"
+ * ],
+ * "versions": [
+ * "1",
+ * "2"
+ * ],
+ * "layouts": [
+ * {
+ * "num_nodes": 1,
+ * "sizes": [
+ * "db-s-1vcpu-2gb",
+ * "db-s-2vcpu-4gb",
+ * "gd-2vcpu-8gb",
+ * "m3-2vcpu-16gb",
+ * "db-s-4vcpu-8gb",
+ * "gd-4vcpu-16gb",
+ * "m3-4vcpu-32gb",
+ * "m3-8vcpu-64gb"
+ * ]
+ * },
+ * {
+ * "num_nodes": 3,
+ * "sizes": [
+ * "db-s-2vcpu-4gb",
+ * "gd-2vcpu-8gb",
+ * "m3-2vcpu-16gb",
+ * "db-s-4vcpu-8gb",
+ * "gd-4vcpu-16gb",
+ * "m3-4vcpu-32gb",
+ * "m3-8vcpu-64gb"
+ * ]
+ * },
+ * {
+ * "num_nodes": 6,
+ * "sizes": [
+ * "gd-2vcpu-8gb",
+ * "m3-2vcpu-16gb",
+ * "gd-4vcpu-16gb",
+ * "m3-4vcpu-32gb",
+ * "m3-8vcpu-64gb"
+ * ]
+ * },
+ * {
+ * "num_nodes": 9,
+ * "sizes": [
+ * "gd-2vcpu-8gb",
+ * "m3-2vcpu-16gb",
+ * "gd-4vcpu-16gb",
+ * "m3-4vcpu-32gb",
+ * "m3-8vcpu-64gb"
+ * ]
+ * },
+ * {
+ * "num_nodes": 15,
+ * "sizes": [
+ * "gd-2vcpu-8gb",
+ * "m3-2vcpu-16gb",
+ * "gd-4vcpu-16gb",
+ * "m3-4vcpu-32gb",
+ * "m3-8vcpu-64gb"
+ * ]
+ * }
+ * ],
+ * "default_version": "2"
+ * },
+ * "pg": {
+ * "regions": [
+ * "ams3",
+ * "blr1",
+ * "fra1",
+ * "lon1",
+ * "nyc1",
+ * "nyc2",
+ * "nyc3",
+ * "sfo2",
+ * "sfo3",
+ * "sgp1",
+ * "syd1",
+ * "tor1",
+ * "ric1",
+ * "atl1"
+ * ],
+ * "versions": [
+ * "13",
+ * "14",
+ * "15",
+ * "16",
+ * "17"
+ * ],
+ * "layouts": [
+ * {
+ * "num_nodes": 1,
+ * "sizes": [
+ * "db-s-1vcpu-1gb",
+ * "db-s-1vcpu-2gb",
+ * "db-s-2vcpu-4gb",
+ * "db-s-4vcpu-8gb",
+ * "db-s-6vcpu-16gb",
+ * "gd-2vcpu-8gb",
+ * "gd-4vcpu-16gb",
+ * "gd-8vcpu-32gb",
+ * "gd-16vcpu-64gb",
+ * "gd-32vcpu-128gb",
+ * "gd-40vcpu-160gb",
+ * "so1_5-2vcpu-16gb",
+ * "so1_5-4vcpu-32gb",
+ * "so1_5-8vcpu-64gb",
+ * "so1_5-16vcpu-128gb",
+ * "so1_5-24vcpu-192gb",
+ * "so1_5-32vcpu-256gb",
+ * "db-intel-1vcpu-1gb",
+ * "db-amd-1vcpu-1gb",
+ * "db-intel-1vcpu-2gb",
+ * "db-amd-1vcpu-2gb",
+ * "db-amd-2vcpu-4gb",
+ * "db-intel-2vcpu-4gb",
+ * "db-amd-2vcpu-8gb",
+ * "db-intel-2vcpu-8gb",
+ * "db-intel-4vcpu-8gb",
+ * "db-amd-4vcpu-8gb",
+ * "db-amd-4vcpu-16gb",
+ * "db-intel-4vcpu-16gb",
+ * "db-intel-8vcpu-32gb",
+ * "db-amd-8vcpu-32gb",
+ * "db-intel-16vcpu-64gb",
+ * "db-amd-16vcpu-64gb"
+ * ]
+ * },
+ * {
+ * "num_nodes": 2,
+ * "sizes": [
+ * "db-s-1vcpu-2gb",
+ * "db-s-2vcpu-4gb",
+ * "db-s-4vcpu-8gb",
+ * "db-s-6vcpu-16gb",
+ * "gd-2vcpu-8gb",
+ * "gd-4vcpu-16gb",
+ * "gd-8vcpu-32gb",
+ * "gd-16vcpu-64gb",
+ * "gd-32vcpu-128gb",
+ * "gd-40vcpu-160gb",
+ * "so1_5-2vcpu-16gb",
+ * "so1_5-4vcpu-32gb",
+ * "so1_5-8vcpu-64gb",
+ * "so1_5-16vcpu-128gb",
+ * "so1_5-24vcpu-192gb",
+ * "so1_5-32vcpu-256gb",
+ * "db-intel-1vcpu-2gb",
+ * "db-amd-1vcpu-2gb",
+ * "db-amd-2vcpu-4gb",
+ * "db-intel-2vcpu-4gb",
+ * "db-intel-2vcpu-8gb",
+ * "db-amd-2vcpu-8gb",
+ * "db-intel-4vcpu-8gb",
+ * "db-amd-4vcpu-8gb",
+ * "db-intel-4vcpu-16gb",
+ * "db-amd-4vcpu-16gb",
+ * "db-amd-8vcpu-32gb",
+ * "db-intel-8vcpu-32gb",
+ * "db-amd-16vcpu-64gb",
+ * "db-intel-16vcpu-64gb"
+ * ]
+ * },
+ * {
+ * "num_nodes": 3,
+ * "sizes": [
+ * "db-s-1vcpu-2gb",
+ * "db-s-2vcpu-4gb",
+ * "db-s-4vcpu-8gb",
+ * "db-s-6vcpu-16gb",
+ * "gd-2vcpu-8gb",
+ * "gd-4vcpu-16gb",
+ * "gd-8vcpu-32gb",
+ * "gd-16vcpu-64gb",
+ * "gd-32vcpu-128gb",
+ * "gd-40vcpu-160gb",
+ * "so1_5-2vcpu-16gb",
+ * "so1_5-4vcpu-32gb",
+ * "so1_5-8vcpu-64gb",
+ * "so1_5-16vcpu-128gb",
+ * "so1_5-24vcpu-192gb",
+ * "so1_5-32vcpu-256gb",
+ * "db-intel-1vcpu-2gb",
+ * "db-amd-1vcpu-2gb",
+ * "db-amd-2vcpu-4gb",
+ * "db-intel-2vcpu-4gb",
+ * "db-intel-2vcpu-8gb",
+ * "db-amd-2vcpu-8gb",
+ * "db-intel-4vcpu-8gb",
+ * "db-amd-4vcpu-8gb",
+ * "db-intel-4vcpu-16gb",
+ * "db-amd-4vcpu-16gb",
+ * "db-amd-8vcpu-32gb",
+ * "db-intel-8vcpu-32gb",
+ * "db-amd-16vcpu-64gb",
+ * "db-intel-16vcpu-64gb"
+ * ]
+ * }
+ * ],
+ * "default_version": "17"
+ * },
+ * "advanced_pg": {
+ * "regions": [
+ * "ams3",
+ * "blr1",
+ * "fra1",
+ * "lon1",
+ * "nyc1",
+ * "nyc2",
+ * "nyc3",
+ * "sfo2",
+ * "sfo3",
+ * "sgp1",
+ * "syd1",
+ * "tor1",
+ * "ric1",
+ * "atl1"
+ * ],
+ * "versions": [
+ * "16",
+ * "17",
+ * "18"
+ * ],
+ * "layouts": [
+ * {
+ * "num_nodes": 1,
+ * "sizes": [
+ * "gd-2vcpu-8gb-intel",
+ * "so1_5-2vcpu-16gb-intel",
+ * "so1_5-2vcpu-16gb",
+ * "gd-2vcpu-8gb",
+ * "gd-4vcpu-16gb-intel",
+ * "so1_5-4vcpu-32gb-intel",
+ * "so1_5-4vcpu-32gb",
+ * "gd-4vcpu-16gb",
+ * "gd-8vcpu-32gb",
+ * "so1_5-8vcpu-64gb",
+ * "gd-8vcpu-32gb-intel",
+ * "so1_5-8vcpu-64gb-intel",
+ * "gd-16vcpu-64gb",
+ * "so1_5-16vcpu-128gb",
+ * "gd-16vcpu-64gb-intel",
+ * "so1_5-16vcpu-128gb-intel",
+ * "so1_5-24vcpu-192gb",
+ * "so1_5-24vcpu-192gb-intel",
+ * "so1_5-32vcpu-256gb-intel",
+ * "gd-32vcpu-128gb",
+ * "gd-32vcpu-128gb-intel",
+ * "so1_5-32vcpu-256gb",
+ * "gd-40vcpu-160gb",
+ * "so1_5-48vcpu-384gb-intel",
+ * "gd-48vcpu-192gb-intel",
+ * "so1_5-48vcpu-256gb",
+ * "c-96-intel"
+ * ]
+ * },
+ * {
+ * "num_nodes": 2,
+ * "sizes": [
+ * "gd-2vcpu-8gb-intel",
+ * "so1_5-2vcpu-16gb-intel",
+ * "so1_5-2vcpu-16gb",
+ * "gd-2vcpu-8gb",
+ * "gd-4vcpu-16gb-intel",
+ * "so1_5-4vcpu-32gb-intel",
+ * "so1_5-4vcpu-32gb",
+ * "gd-4vcpu-16gb",
+ * "gd-8vcpu-32gb",
+ * "so1_5-8vcpu-64gb",
+ * "gd-8vcpu-32gb-intel",
+ * "so1_5-8vcpu-64gb-intel",
+ * "gd-16vcpu-64gb",
+ * "so1_5-16vcpu-128gb",
+ * "gd-16vcpu-64gb-intel",
+ * "so1_5-16vcpu-128gb-intel",
+ * "so1_5-24vcpu-192gb",
+ * "so1_5-24vcpu-192gb-intel",
+ * "so1_5-32vcpu-256gb-intel",
+ * "gd-32vcpu-128gb",
+ * "gd-32vcpu-128gb-intel",
+ * "so1_5-32vcpu-256gb",
+ * "gd-40vcpu-160gb",
+ * "so1_5-48vcpu-384gb-intel",
+ * "gd-48vcpu-192gb-intel",
+ * "so1_5-48vcpu-256gb",
+ * "c-96-intel"
+ * ]
+ * },
+ * {
+ * "num_nodes": 3,
+ * "sizes": [
+ * "gd-2vcpu-8gb-intel",
+ * "so1_5-2vcpu-16gb-intel",
+ * "so1_5-2vcpu-16gb",
+ * "gd-2vcpu-8gb",
+ * "gd-4vcpu-16gb-intel",
+ * "so1_5-4vcpu-32gb-intel",
+ * "so1_5-4vcpu-32gb",
+ * "gd-4vcpu-16gb",
+ * "gd-8vcpu-32gb",
+ * "so1_5-8vcpu-64gb",
+ * "gd-8vcpu-32gb-intel",
+ * "so1_5-8vcpu-64gb-intel",
+ * "gd-16vcpu-64gb",
+ * "so1_5-16vcpu-128gb",
+ * "gd-16vcpu-64gb-intel",
+ * "so1_5-16vcpu-128gb-intel",
+ * "so1_5-24vcpu-192gb",
+ * "so1_5-24vcpu-192gb-intel",
+ * "so1_5-32vcpu-256gb-intel",
+ * "gd-32vcpu-128gb",
+ * "gd-32vcpu-128gb-intel",
+ * "so1_5-32vcpu-256gb",
+ * "gd-40vcpu-160gb",
+ * "so1_5-48vcpu-384gb-intel",
+ * "gd-48vcpu-192gb-intel",
+ * "so1_5-48vcpu-256gb",
+ * "c-96-intel"
+ * ]
+ * }
+ * ],
+ * "default_version": "18"
+ * },
+ * "redis": {
+ * "regions": [
+ * "ams3",
+ * "blr1",
+ * "fra1",
+ * "lon1",
+ * "nyc1",
+ * "nyc2",
+ * "nyc3",
+ * "sfo2",
+ * "sfo3",
+ * "sgp1",
+ * "syd1",
+ * "tor1",
+ * "ric1",
+ * "atl1"
+ * ],
+ * "versions": [
+ * "7"
+ * ],
+ * "layouts": [
+ * {
+ * "num_nodes": 1,
+ * "sizes": [
+ * "db-s-1vcpu-1gb",
+ * "db-s-1vcpu-2gb",
+ * "db-s-2vcpu-4gb",
+ * "db-s-4vcpu-8gb",
+ * "db-s-6vcpu-16gb",
+ * "db-s-8vcpu-32gb",
+ * "db-s-16vcpu-64gb",
+ * "m-2vcpu-16gb",
+ * "m-4vcpu-32gb",
+ * "m-8vcpu-64gb",
+ * "m-16vcpu-128gb",
+ * "m-24vcpu-192gb",
+ * "m-32vcpu-256gb"
+ * ]
+ * },
+ * {
+ * "num_nodes": 2,
+ * "sizes": [
+ * "db-s-1vcpu-2gb",
+ * "db-s-2vcpu-4gb",
+ * "db-s-4vcpu-8gb",
+ * "db-s-6vcpu-16gb",
+ * "db-s-8vcpu-32gb",
+ * "db-s-16vcpu-64gb",
+ * "m-2vcpu-16gb",
+ * "m-4vcpu-32gb",
+ * "m-8vcpu-64gb",
+ * "m-16vcpu-128gb",
+ * "m-24vcpu-192gb",
+ * "m-32vcpu-256gb"
+ * ]
+ * },
+ * {
+ * "num_nodes": 3,
+ * "sizes": [
+ * "db-s-1vcpu-2gb",
+ * "db-s-2vcpu-4gb",
+ * "db-s-4vcpu-8gb",
+ * "db-s-6vcpu-16gb",
+ * "db-s-8vcpu-32gb",
+ * "db-s-16vcpu-64gb",
+ * "m-2vcpu-16gb",
+ * "m-4vcpu-32gb",
+ * "m-8vcpu-64gb",
+ * "m-16vcpu-128gb",
+ * "m-24vcpu-192gb",
+ * "m-32vcpu-256gb"
+ * ]
+ * }
+ * ]
+ * },
+ * "valkey": {
+ * "regions": [
+ * "ams3",
+ * "blr1",
+ * "fra1",
+ * "lon1",
+ * "nyc1",
+ * "nyc3",
+ * "sfo2",
+ * "sfo3",
+ * "sgp1",
+ * "syd1",
+ * "tor1",
+ * "ric1",
+ * "atl1"
+ * ],
+ * "versions": [
+ * "8"
+ * ],
+ * "layouts": [
+ * {
+ * "num_nodes": 1,
+ * "sizes": [
+ * "db-s-1vcpu-1gb",
+ * "db-s-1vcpu-2gb",
+ * "db-s-2vcpu-4gb",
+ * "db-s-4vcpu-8gb",
+ * "db-s-6vcpu-16gb",
+ * "db-s-8vcpu-32gb",
+ * "db-s-16vcpu-64gb",
+ * "m-2vcpu-16gb",
+ * "m-4vcpu-32gb",
+ * "m-8vcpu-64gb",
+ * "m-16vcpu-128gb",
+ * "m-24vcpu-192gb",
+ * "m-32vcpu-256gb"
+ * ]
+ * },
+ * {
+ * "num_nodes": 2,
+ * "sizes": [
+ * "db-s-1vcpu-2gb",
+ * "db-s-2vcpu-4gb",
+ * "db-s-4vcpu-8gb",
+ * "db-s-6vcpu-16gb",
+ * "db-s-8vcpu-32gb",
+ * "db-s-16vcpu-64gb",
+ * "m-2vcpu-16gb",
+ * "m-4vcpu-32gb",
+ * "m-8vcpu-64gb",
+ * "m-16vcpu-128gb",
+ * "m-24vcpu-192gb",
+ * "m-32vcpu-256gb"
+ * ]
+ * },
+ * {
+ * "num_nodes": 3,
+ * "sizes": [
+ * "db-s-1vcpu-2gb",
+ * "db-s-2vcpu-4gb",
+ * "db-s-4vcpu-8gb",
+ * "db-s-6vcpu-16gb",
+ * "db-s-8vcpu-32gb",
+ * "db-s-16vcpu-64gb",
+ * "m-2vcpu-16gb",
+ * "m-4vcpu-32gb",
+ * "m-8vcpu-64gb",
+ * "m-16vcpu-128gb",
+ * "m-24vcpu-192gb",
+ * "m-32vcpu-256gb"
+ * ]
+ * }
+ * ],
+ * "default_version": "8"
+ * }
+ * },
+ * "version_availability": {
+ * "kafka": [
+ * {
+ * "end_of_life": null,
+ * "end_of_availability": "2025-06-03T00:00:00Z",
+ * "version": "3.8",
+ * "default": true
+ * }
+ * ],
+ * "mongodb": [
+ * {
+ * "end_of_life": "2025-07-01T07:00:00Z",
+ * "end_of_availability": null,
+ * "version": "6.0",
+ * "default": false
+ * },
+ * {
+ * "end_of_life": "2026-08-01T07:00:00Z",
+ * "end_of_availability": null,
+ * "version": "7.0",
+ * "default": true
+ * }
+ * ],
+ * "mysql": [
+ * {
+ * "end_of_life": null,
+ * "end_of_availability": null,
+ * "version": "8",
+ * "default": true
+ * }
+ * ],
+ * "opensearch": [
+ * {
+ * "end_of_life": null,
+ * "end_of_availability": null,
+ * "version": "1",
+ * "default": false
+ * },
+ * {
+ * "end_of_life": null,
+ * "end_of_availability": null,
+ * "version": "2",
+ * "default": true
+ * }
+ * ],
+ * "pg": [
+ * {
+ * "end_of_life": "2025-11-13T00:00:00Z",
+ * "end_of_availability": "2025-05-13T00:00:00Z",
+ * "version": "13",
+ * "default": false
+ * },
+ * {
+ * "end_of_life": "2026-11-12T00:00:00Z",
+ * "end_of_availability": "2026-05-12T00:00:00Z",
+ * "version": "14",
+ * "default": false
+ * },
+ * {
+ * "end_of_life": "2027-11-11T00:00:00Z",
+ * "end_of_availability": "2027-05-12T00:00:00Z",
+ * "version": "15",
+ * "default": false
+ * },
+ * {
+ * "end_of_life": "2028-11-09T00:00:00Z",
+ * "end_of_availability": "2028-05-09T00:00:00Z",
+ * "version": "16",
+ * "default": false
+ * },
+ * {
+ * "end_of_life": "2029-11-08T00:00:00Z",
+ * "end_of_availability": "2029-05-08T00:00:00Z",
+ * "version": "17",
+ * "default": true
+ * }
+ * ],
+ * "redis": [
+ * {
+ * "end_of_life": "2025-06-30T00:00:00Z",
+ * "end_of_availability": "2025-04-30T00:00:00Z",
+ * "version": "7",
+ * "default": true
+ * }
+ * ],
+ * "valkey": [
+ * {
+ * "end_of_life": null,
+ * "end_of_availability": null,
+ * "version": "8",
+ * "default": true
+ * }
+ * ],
+ * "advanced_pg": [
+ * {
+ * "end_of_life": "2028-11-09T00:00:00Z",
+ * "end_of_availability": "2028-05-09T00:00:00Z",
+ * "version": "16",
+ * "default": false
+ * },
+ * {
+ * "end_of_life": "2029-11-08T00:00:00Z",
+ * "end_of_availability": "2029-05-08T00:00:00Z",
+ * "version": "17",
+ * "default": false
+ * },
+ * {
+ * "end_of_life": "2030-11-13T00:00:00Z",
+ * "end_of_availability": "2030-05-13T00:00:00Z",
+ * "version": "18",
+ * "default": true
+ * }
+ * ],
+ * "advanced_mysql": [
+ * {
+ * "end_of_life": null,
+ * "end_of_availability": null,
+ * "version": "8.4.8",
+ * "default": true
+ * }
+ * ]
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["options"];
+ };
+ };
+ /** @description A JSON object with a key of `databases`. */
+ database_clusters: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "databases": [
+ * {
+ * "id": "9cc10173-e9ea-4176-9dbc-a4cee4c4ff30",
+ * "name": "backend",
+ * "engine": "pg",
+ * "version": "10",
+ * "connection": {
+ * "uri": "postgres://doadmin:example_password@db.example.com:25060/defaultdb?sslmode=require",
+ * "database": "",
+ * "host": "db.example.com",
+ * "port": 25060,
+ * "user": "doadmin",
+ * "password": "example_password",
+ * "ssl": true
+ * },
+ * "private_connection": {
+ * "uri": "postgres://doadmin:example_password@private-db.example.com:25060/defaultdb?sslmode=require",
+ * "database": "",
+ * "host": "private-db.example.com",
+ * "port": 25060,
+ * "user": "doadmin",
+ * "password": "example_password",
+ * "ssl": true
+ * },
+ * "users": [
+ * {
+ * "name": "doadmin",
+ * "role": "primary",
+ * "password": "example_password"
+ * }
+ * ],
+ * "db_names": [
+ * "defaultdb"
+ * ],
+ * "num_nodes": 1,
+ * "region": "nyc3",
+ * "status": "online",
+ * "created_at": "2019-01-11T18:37:36Z",
+ * "maintenance_window": {
+ * "day": "saturday",
+ * "hour": "08:45:12",
+ * "pending": true,
+ * "description": [
+ * "Update TimescaleDB to version 1.2.1",
+ * "Upgrade to PostgreSQL 11.2 and 10.7 bugfix releases"
+ * ]
+ * },
+ * "size": "db-s-2vcpu-4gb",
+ * "tags": [
+ * "production"
+ * ],
+ * "private_network_uuid": "d455e75d-4858-4eec-8c95-da2f0a5f93a7",
+ * "version_end_of_life": "2023-11-09T00:00:00Z",
+ * "version_end_of_availability": "2023-05-09T00:00:00Z",
+ * "storage_size_mib": 61440
+ * }
+ * ]
+ * }
+ */
+ "application/json": {
+ databases?: components["schemas"]["database_cluster_read"][];
+ };
+ };
+ };
+ /** @description A JSON object with a key of `database`. */
+ database_cluster: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "database": {
+ * "id": "9cc10173-e9ea-4176-9dbc-a4cee4c4ff30",
+ * "name": "backend",
+ * "engine": "pg",
+ * "version": "14",
+ * "semantic_version": "14.5",
+ * "connection": {
+ * "uri": "postgres://doadmin:example_password@db.example.com:25060/defaultdb?sslmode=require",
+ * "database": "",
+ * "host": "db.example.com",
+ * "port": 25060,
+ * "user": "doadmin",
+ * "password": "example_password",
+ * "ssl": true
+ * },
+ * "private_connection": {
+ * "uri": "postgres://doadmin:example_password@private-db.example.com:25060/defaultdb?sslmode=require",
+ * "database": "",
+ * "host": "private-db.example.com",
+ * "port": 25060,
+ * "user": "doadmin",
+ * "password": "example_password",
+ * "ssl": true
+ * },
+ * "standby_connection": {
+ * "uri": "postgres://doadmin:example_password@replica-db.example.com:25060/defaultdb?sslmode=require",
+ * "database": "",
+ * "host": "replica-db.example.com",
+ * "port": 25060,
+ * "user": "doadmin",
+ * "password": "example_password",
+ * "ssl": true
+ * },
+ * "standby_private_connection": {
+ * "uri": "postgres://doadmin:example_password@private-replica-db.example.com:25060/defaultdb?sslmode=require",
+ * "database": "",
+ * "host": "private-replica-db.example.com",
+ * "port": 25060,
+ * "user": "doadmin",
+ * "password": "example_password",
+ * "ssl": true
+ * },
+ * "users": [
+ * {
+ * "name": "doadmin",
+ * "role": "primary",
+ * "password": "example_password"
+ * }
+ * ],
+ * "db_names": [
+ * "defaultdb"
+ * ],
+ * "num_nodes": 2,
+ * "region": "nyc3",
+ * "status": "creating",
+ * "created_at": "2019-01-11T18:37:36Z",
+ * "maintenance_window": {
+ * "day": "saturday",
+ * "hour": "08:45:12",
+ * "pending": true,
+ * "description": [
+ * "Update TimescaleDB to version 1.2.1",
+ * "Upgrade to PostgreSQL 11.2 and 10.7 bugfix releases"
+ * ]
+ * },
+ * "size": "db-s-2vcpu-4gb",
+ * "tags": [
+ * "production"
+ * ],
+ * "private_network_uuid": "d455e75d-4858-4eec-8c95-da2f0a5f93a7",
+ * "version_end_of_life": "2023-11-09T00:00:00Z",
+ * "version_end_of_availability": "2023-05-09T00:00:00Z",
+ * "storage_size_mib": 61440,
+ * "do_settings": {
+ * "service_cnames": [
+ * "db.example.com",
+ * "database.myapp.io"
+ * ]
+ * }
+ * }
+ * }
+ */
+ "application/json": {
+ database: components["schemas"]["database_cluster_read"];
+ };
+ };
+ };
+ /** @description A JSON object with a key of `config`. */
+ database_config: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "config": {
+ * "sql_mode": "ANSI,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,STRICT_ALL_TABLES",
+ * "sql_require_primary_key": true
+ * }
+ * }
+ */
+ "application/json": {
+ config: components["schemas"]["mysql_advanced_config"] | components["schemas"]["postgres_advanced_config"] | components["schemas"]["redis_advanced_config"] | components["schemas"]["valkey_advanced_config"] | components["schemas"]["kafka_advanced_config"] | components["schemas"]["opensearch_advanced_config"] | components["schemas"]["mongo_advanced_config"];
+ };
+ };
+ };
+ /** @description A JSON object with a key of `ca`. */
+ ca: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "ca": {
+ * "certificate": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVRVENDQXFtZ0F3SUJBZ0lVRUZZWTdBWFZQS0Raam9jb1lpMk00Y0dvcU0wd0RRWUpLb1pJaHZjTkFRRU0KQlFBd09qRTRNRFlHQTFVRUF3d3ZOek0zT1RaaE1XRXRaamhrTUMwME9HSmpMV0V4Wm1NdFpqbGhNVFZsWXprdwpORGhsSUZCeWIycGxZM1FnUTBFd0hoY05NakF3TnpFM01UVTFNREEyV2hjTk16QXdOekUxTVRVMU1EQTJXakE2Ck1UZ3dOZ1lEVlFRRERDODNNemM1Tm1FeFlTMW1PR1F3TFRRNFltTXRZVEZtWXkxbU9XRXhOV1ZqT1RBME9HVWcKVUhKdmFtVmpkQ0JEUVRDQ0FhSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnR1BBRENDQVlvQ2dnR0JBTVdScXhycwpMZnpNdHZyUmxKVEw4MldYMVBLZkhKbitvYjNYcmVBY3FZd1dBUUp2Q3IycmhxSXZieVZzMGlaU0NzOHI4c3RGClljQ0R1bkxJNmUwTy9laERZYTBIT2RrMkFFRzE1ckVOVmNha2NSczcyQWlHVHNrdkNXS2VkUjFTUWswVWt0WCsKQUg4S1ExS3F5bzNtZ2Y2cVV1WUpzc3JNTXFselk3YTN1RVpEb2ZqTjN5Q3MvM21pTVJKcVcyNm1JV0IrUUlEbAo5YzdLRVF5MTZvdCtjeHVnd0lLMm9oZHMzaFY1bjBKMFVBM0I3QWRBdXY5aUl5L3JHaHlTNm5CNTdaWm9JZnAyCnFybXdOY0UrVjlIdXhQSGtRVjFOQjUwOFFudWZ4Z0E5VCtqU2VrdGVUbWFORkxqNjFXL3BtcndrTytOaWFXUTIKaGgzVXBKOEozY1BoNkErbHRnUmpSV2NEb2lsYVNwRVVpU09WemNNYVFvalZKYVJlNk9NbnZYc29NaSs3ZzdneApWcittQ0lUcGcvck9DaXpBWWQ2UFAxLzdYTjk1ZXNmU2tBQnM5c3hJakpjTUFqbDBYTEFzRmtGZVdyeHNIajlVCmJnaDNWYXdtcnpUeXhZT0RQcXV1cS9JcGlwc0RRT3Fpb2ZsUStkWEJJL3NUT0NNbVp6K0pNcG5HYXdJREFRQUIKb3o4d1BUQWRCZ05WSFE0RUZnUVVSekdDRlE3WEtUdHRDN3JzNS8ydFlQcExTZGN3RHdZRFZSMFRCQWd3QmdFQgovd0lCQURBTEJnTlZIUThFQkFNQ0FRWXdEUVlKS29aSWh2Y05BUUVNQlFBRGdnR0JBSWFKQ0dSVVNxUExtcmcvCmk3MW10b0NHUDdzeG1BVXVCek1oOEdrU25uaVdaZnZGMTRwSUtqTlkwbzVkWmpHKzZqK1VjalZtK0RIdGE1RjYKOWJPeEk5S0NFeEI1blBjRXpMWjNZYitNOTcrellxbm9zUm85S21DVFJBb2JrNTZ0WU1FS1h1aVJja2tkMm1yUQo4cGw2N2xxdThjM1V4c0dHZEZVT01wMkk3ZTNpdUdWVm5UR0ZWM3JQZUdaQ0J3WGVyUUQyY0F4UjkzS3BnWVZ2ClhUUzk5dnpSbm1HOHhhUm9EVy9FbEdXZ2xWd0Q5a1JrbXhUUkdoYTdDWVZCcjFQVWY2dVVFVjhmVFIxc1hFZnIKLytMR1JoSVVsSUhWT3l2Yzk3YnZYQURPbWF1MWZDVE5lWGtRdTNyZnZFSlBmaFlLeVIwT0V3eWVvdlhRNzl0LwpTV2ZGTjBreU1Pc1UrNVNIdHJKSEh1eWNWcU0yQlVVK083VjM1UnNwOU9MZGRZMFFVbTZldFpEVEhhSUhYYzRRCnl1Rm1OL1NhSFZtNE0wL3BTVlJQdVd6TmpxMnZyRllvSDRtbGhIZk95TUNJMjc2elE2aWhGNkdDSHlkOUJqajcKUm1UWGEyNHM3NWhmSi9YTDV2bnJSdEtpVHJlVHF6V21EOVhnUmNMQ0gyS1hJaVRtSWc9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg=="
+ * }
+ * }
+ */
+ "application/json": {
+ ca: components["schemas"]["ca"];
+ };
+ };
+ };
+ /** @description A JSON object. */
+ online_migration: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "77b28fc8-19ff-11eb-8c9c-c68e24557488",
+ * "status": "running",
+ * "created_at": "2020-10-29T15:57:38Z"
+ * }
+ */
+ "application/json": components["schemas"]["online_migration"];
+ };
+ };
+ /** @description This does not indicate the success or failure of any operation, just that the request has been accepted for processing. */
+ accepted: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description A JSON object with a key of `rules`. */
+ firewall_rules: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "rules": [
+ * {
+ * "uuid": "79f26d28-ea8a-41f2-8ad8-8cfcdd020095",
+ * "cluster_uuid": "9cc10173-e9ea-4176-9dbc-a4cee4c4ff30",
+ * "type": "k8s",
+ * "value": "ff2a6c52-5a44-4b63-b99c-0e98e7a63d61",
+ * "created_at": "2019-11-14T20:30:28Z"
+ * },
+ * {
+ * "uuid": "adfe81a8-0fa1-4e2d-973f-06aa5af19b44",
+ * "cluster_uuid": "9cc10173-e9ea-4176-9dbc-a4cee4c4ff30",
+ * "type": "ip_addr",
+ * "description": "a development IP address",
+ * "value": "192.168.1.1",
+ * "created_at": "2019-11-14T20:30:28Z"
+ * },
+ * {
+ * "uuid": "b9b42276-8295-4313-b40f-74173a7f46e6",
+ * "cluster_uuid": "9cc10173-e9ea-4176-9dbc-a4cee4c4ff30",
+ * "type": "droplet",
+ * "value": "163973392",
+ * "created_at": "2019-11-14T20:30:28Z"
+ * },
+ * {
+ * "uuid": "718d23e0-13d7-4129-8a00-47fb72ee0deb",
+ * "cluster_uuid": "9cc10173-e9ea-4176-9dbc-a4cee4c4ff30",
+ * "type": "tag",
+ * "value": "backend",
+ * "created_at": "2019-11-14T20:30:28Z"
+ * }
+ * ]
+ * }
+ */
+ "application/json": {
+ rules?: components["schemas"]["firewall_rule"][];
+ };
+ };
+ };
+ /** @description A JSON object with a key of `do_settings`. */
+ do_settings: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "do_settings": {
+ * "service_cnames": [
+ * "db.example.com",
+ * "api.myapp.io"
+ * ]
+ * }
+ * }
+ */
+ "application/json": {
+ do_settings: components["schemas"]["do_settings"];
+ };
+ };
+ };
+ /** @description Unprocessable Entity */
+ unprocessable_entity: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "unprocessable_entity",
+ * "message": "request payload validation failed",
+ * "request_id": "4851a473-1621-42ea-b2f9-5071c0ea8414"
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description A JSON object with a key of `backups`. */
+ database_backups: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "backups": [
+ * {
+ * "created_at": "2019-01-11T18:42:27Z",
+ * "size_gigabytes": 0.03357696,
+ * "incremental": false
+ * },
+ * {
+ * "created_at": "2019-01-12T18:42:29Z",
+ * "size_gigabytes": 0.03364864,
+ * "incremental": true
+ * }
+ * ],
+ * "scheduled_backup_time": {
+ * "backup_hour": 20,
+ * "backup_minute": 40,
+ * "backup_interval_hours": 24
+ * },
+ * "backup_progress": "36"
+ * }
+ */
+ "application/json": {
+ backups: components["schemas"]["backup"][];
+ scheduled_backup_time?: {
+ /**
+ * @description The hour of the day when the backup is scheduled (in UTC).
+ * @example 20
+ */
+ backup_hour?: number;
+ /**
+ * @description The minute of the hour when the backup is scheduled.
+ * @example 40
+ */
+ backup_minute?: number;
+ /**
+ * @description The frequency, in hours, at which backups are taken.
+ * @example 24
+ */
+ backup_interval_hours?: number;
+ };
+ /**
+ * @description If a backup is currently in progress, this attribute shows the percentage of completion. If no backup is in progress, this attribute will be hidden.
+ * @example 36
+ */
+ backup_progress?: string;
+ };
+ };
+ };
+ /** @description A JSON object with a key of `replicas`. */
+ database_replicas: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "replicas": [
+ * {
+ * "name": "read-nyc3-01",
+ * "connection": {
+ * "uri": "",
+ * "database": "defaultdb",
+ * "host": "read-db.example.com",
+ * "port": 25060,
+ * "user": "doadmin",
+ * "password": "example_password",
+ * "ssl": true
+ * },
+ * "private_connection": {
+ * "uri": "postgres://doadmin:example_password@private-read-db.example.com:25060/defaultdb?sslmode=require",
+ * "database": "",
+ * "host": "private-read-db.example.com",
+ * "port": 25060,
+ * "user": "doadmin",
+ * "password": "example_password",
+ * "ssl": true
+ * },
+ * "region": "nyc3",
+ * "status": "online",
+ * "created_at": "2019-01-11T18:37:36Z"
+ * }
+ * ]
+ * }
+ */
+ "application/json": {
+ replicas?: components["schemas"]["database_replica_read"][];
+ };
+ };
+ };
+ /** @description A JSON object with a key of `replica`. */
+ database_replica: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "replica": {
+ * "name": "read-nyc3-01",
+ * "connection": {
+ * "uri": "",
+ * "database": "defaultdb",
+ * "host": "read-db.example.com",
+ * "port": 25060,
+ * "user": "doadmin",
+ * "password": "example_password",
+ * "ssl": true
+ * },
+ * "private_connection": {
+ * "uri": "postgres://doadmin:example_password@private-read-db.example.com:25060/defaultdb?sslmode=require",
+ * "database": "",
+ * "host": "private-read-db.example.com",
+ * "port": 25060,
+ * "user": "doadmin",
+ * "password": "example_password",
+ * "ssl": true
+ * },
+ * "region": "nyc3",
+ * "status": "online",
+ * "created_at": "2019-01-11T18:37:36Z",
+ * "do_settings": {
+ * "service_cnames": [
+ * "replica-db.example.com",
+ * "read-replica.myapp.io"
+ * ]
+ * }
+ * }
+ * }
+ */
+ "application/json": {
+ replica?: components["schemas"]["database_replica_read"];
+ };
+ };
+ };
+ /** @description A JSON object with a key of `events`. */
+ events_logs: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "events": [
+ * {
+ * "id": "pe8u2huh",
+ * "cluster_name": "customer-events",
+ * "event_type": "cluster_create",
+ * "create_time": "2020-10-29T15:57:38Z"
+ * },
+ * {
+ * "id": "pe8ufefuh",
+ * "cluster_name": "customer-events",
+ * "event_type": "cluster_update",
+ * "create_time": "2023-10-30T15:57:38Z"
+ * }
+ * ]
+ * }
+ */
+ "application/json": {
+ events?: components["schemas"]["events_logs"][];
+ };
+ };
+ };
+ /** @description A JSON object with a key of `users`. */
+ users: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "users": [
+ * {
+ * "name": "app-01",
+ * "role": "normal",
+ * "password": "example_password"
+ * },
+ * {
+ * "name": "app-02",
+ * "role": "normal",
+ * "password": "example_password_2",
+ * "settings": {
+ * "pg_allow_replication": true
+ * }
+ * },
+ * {
+ * "name": "doadmin",
+ * "role": "primary",
+ * "password": "example_password"
+ * }
+ * ]
+ * }
+ */
+ "application/json": {
+ users?: components["schemas"]["database_user"][];
+ };
+ };
+ };
+ /** @description A JSON object with a key of `user`. */
+ user: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ user: components["schemas"]["database_user"];
+ };
+ };
+ };
+ /** @description A JSON object with a key of `databases`. */
+ databases: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "dbs": [
+ * {
+ * "name": "alpha"
+ * },
+ * {
+ * "name": "defaultdb"
+ * }
+ * ]
+ * }
+ */
+ "application/json": {
+ dbs?: components["schemas"]["database"][];
+ };
+ };
+ };
+ /** @description A JSON object with a key of `db`. */
+ database: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "db": {
+ * "name": "alpha"
+ * }
+ * }
+ */
+ "application/json": {
+ db: components["schemas"]["database"];
+ };
+ };
+ };
+ /** @description A JSON object with a key of `pools`. */
+ connection_pools: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "pools": [
+ * {
+ * "user": "doadmin",
+ * "name": "reporting-pool",
+ * "size": 10,
+ * "db": "defaultdb",
+ * "mode": "session",
+ * "connection": {
+ * "uri": "postgres://doadmin:example_password@db.example.com:25061/foo?sslmode=require",
+ * "database": "foo",
+ * "host": "db.example.com",
+ * "port": 25061,
+ * "user": "doadmin",
+ * "password": "example_password",
+ * "ssl": true
+ * }
+ * },
+ * {
+ * "user": "doadmin",
+ * "name": "backend-pool",
+ * "size": 10,
+ * "db": "defaultdb",
+ * "mode": "transaction",
+ * "connection": {
+ * "uri": "postgres://doadmin:example_password@db.example.com:25061/backend-pool?sslmode=require",
+ * "database": "backend-pool",
+ * "host": "db.example.com",
+ * "port": 25061,
+ * "user": "doadmin",
+ * "password": "example_password",
+ * "ssl": true
+ * }
+ * }
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["connection_pools"];
+ };
+ };
+ /** @description A JSON object with a key of `pool`. */
+ connection_pool: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "pool": {
+ * "user": "doadmin",
+ * "name": "backend-pool",
+ * "size": 10,
+ * "db": "defaultdb",
+ * "mode": "transaction",
+ * "connection": {
+ * "uri": "postgres://doadmin:example_password@db.example.com:25061/backend-pool?sslmode=require",
+ * "database": "backend-pool",
+ * "host": "db.example.com",
+ * "port": 25061,
+ * "user": "doadmin",
+ * "password": "example_password",
+ * "ssl": true
+ * }
+ * }
+ * }
+ */
+ "application/json": {
+ pool: components["schemas"]["connection_pool"];
+ };
+ };
+ };
+ /** @description A JSON string with a key of `eviction_policy`. */
+ eviction_policy_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ eviction_policy: components["schemas"]["eviction_policy_model"];
+ };
+ };
+ };
+ /** @description A JSON string with a key of `sql_mode`. */
+ sql_mode: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "sql_mode": "ANSI,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,STRICT_ALL_TABLES"
+ * }
+ */
+ "application/json": components["schemas"]["sql_mode"];
+ };
+ };
+ /** @description A JSON object with autoscale configuration details. */
+ autoscale: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "autoscale": {
+ * "storage": {
+ * "enabled": true,
+ * "threshold_percent": 80,
+ * "increment_gib": 10
+ * }
+ * }
+ * }
+ */
+ "application/json": {
+ autoscale?: components["schemas"]["database_autoscale_params"];
+ };
+ };
+ };
+ /** @description A JSON object with a key of `topics`. */
+ kafka_topics: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "topics": [
+ * {
+ * "name": "customer-events",
+ * "state": "active",
+ * "replication_factor": 2,
+ * "partition_count": 3
+ * },
+ * {
+ * "name": "engineering-events",
+ * "state": "configuring",
+ * "replication_factor": 2,
+ * "partition_count": 10
+ * }
+ * ]
+ * }
+ */
+ "application/json": {
+ topics?: components["schemas"]["kafka_topic"][];
+ };
+ };
+ };
+ /** @description A JSON object with a key of `topic`. */
+ kafka_topic: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "topic": {
+ * "name": "customer-events",
+ * "partitions": [
+ * {
+ * "size": 4096,
+ * "id": 0,
+ * "in_sync_replicas": 3,
+ * "earliest_offset": 0,
+ * "consumer_groups": [
+ * {
+ * "name": "consumer-group-1",
+ * "offset": 0
+ * },
+ * {
+ * "name": "consumer-group-2",
+ * "offset": 1
+ * }
+ * ]
+ * },
+ * {
+ * "size": 4096,
+ * "id": 1,
+ * "in_sync_replicas": 3,
+ * "earliest_offset": 0,
+ * "consumer_groups": null
+ * }
+ * ],
+ * "replication_factor": 3,
+ * "state": "active",
+ * "config": {
+ * "cleanup_policy": "delete",
+ * "compression_type": "producer",
+ * "delete_retention_ms": 86400000,
+ * "file_delete_delay_ms": 60000,
+ * "flush_messages": 9223372036854776000,
+ * "flush_ms": 9223372036854776000,
+ * "index_interval_bytes": 4096,
+ * "max_compaction_lag_ms": 9223372036854776000,
+ * "max_message_bytes": 1048588,
+ * "message_down_conversion_enable": true,
+ * "message_format_version": "3.0-IV1",
+ * "message_timestamp_difference_max_ms": 9223372036854776000,
+ * "message_timestamp_type": "create_time",
+ * "min_cleanable_dirty_ratio": 0.5,
+ * "min_compaction_lag_ms": 0,
+ * "min_insync_replicas": 1,
+ * "preallocate": false,
+ * "retention_bytes": -1,
+ * "retention_ms": 604800000,
+ * "segment_bytes": 209715200,
+ * "segment_index_bytes": 10485760,
+ * "segment_jitter_ms": 0,
+ * "segment_ms": 604800000
+ * }
+ * }
+ * }
+ */
+ "application/json": {
+ topic?: components["schemas"]["kafka_topic_verbose"];
+ };
+ };
+ };
+ /** @description A JSON object with a key of `sinks`. */
+ logsinks: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "sinks": [
+ * {
+ * "sink_id": "799990b6-d551-454b-9ffe-b8618e9d6272",
+ * "sink_name": "logs-sink-1",
+ * "sink_type": "rsyslog",
+ * "config": {
+ * "server": "192.168.0.1",
+ * "port": 514,
+ * "tls": false,
+ * "format": "rfc5424"
+ * }
+ * },
+ * {
+ * "sink_id": "d6e95157-5f58-48d0-9023-8cfb409d102a",
+ * "sink_name": "logs-sink-2",
+ * "sink_type": "rsyslog",
+ * "config": {
+ * "server": "192.168.10.1",
+ * "port": 514,
+ * "tls": false,
+ * "format": "rfc3164"
+ * }
+ * }
+ * ]
+ * }
+ */
+ "application/json": {
+ sinks?: components["schemas"]["logsink_schema"][];
+ };
+ };
+ };
+ /** @description A JSON object with a key of `sink`. */
+ logsink: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ sink?: components["schemas"]["logsink_schema"];
+ };
+ };
+ };
+ /** @description A JSON object with logsink properties. */
+ logsink_data: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["logsink_schema"];
+ };
+ };
+ /** @description A JSON object with a key of `subjects`. */
+ kafka_schemas: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ subjects?: components["schemas"]["kafka_schema_verbose"][];
+ };
+ };
+ };
+ /** @description A JSON object. */
+ kafka_schema: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": WithRequired;
+ };
+ };
+ /** @description A JSON object. */
+ kafka_schema_version: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": WithRequired;
+ };
+ };
+ /** @description A JSON object with a key of `compatibility_level`. */
+ database_schema_registry_config: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "compatibility_level": "BACKWARD"
+ * }
+ */
+ "application/json": {
+ /**
+ * @description The compatibility level of the schema registry.
+ * @enum {string}
+ */
+ compatibility_level: "NONE" | "BACKWARD" | "BACKWARD_TRANSITIVE" | "FORWARD" | "FORWARD_TRANSITIVE" | "FULL" | "FULL_TRANSITIVE";
+ };
+ };
+ };
+ /** @description A JSON object with a key of `compatibility_level`. */
+ database_schema_registry_subject_config: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "subject_name": "my-schema-subject",
+ * "compatibility_level": "BACKWARD"
+ * }
+ */
+ "application/json": {
+ /** @description The name of the schema subject. */
+ subject_name: string;
+ /**
+ * @description The compatibility level of the schema registry.
+ * @enum {string}
+ */
+ compatibility_level: "NONE" | "BACKWARD" | "BACKWARD_TRANSITIVE" | "FORWARD" | "FORWARD_TRANSITIVE" | "FULL" | "FULL_TRANSITIVE";
+ };
+ };
+ };
+ /** @description A JSON object with a key of `credentials`. */
+ database_metrics_auth: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "credentials": {
+ * "basic_auth_username": "username",
+ * "basic_auth_password": "password"
+ * }
+ * }
+ */
+ "application/json": {
+ credentials?: components["schemas"]["database_metrics_credentials"];
+ };
+ };
+ };
+ /** @description A JSON object with a key of `indexes`. */
+ opensearch_indexes: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "indexes": [
+ * {
+ * "index_name": "sample-data",
+ * "number_of_shards": 2,
+ * "number_of_replicas": 3,
+ * "size": 208,
+ * "created_time": "2021-01-01T00:00:00Z",
+ * "status": "open",
+ * "health": "green"
+ * },
+ * {
+ * "index_name": "logs-*",
+ * "number_of_shards": 2,
+ * "number_of_replicas": 3,
+ * "size": 208,
+ * "created_time": "2021-01-01T00:00:00Z",
+ * "status": "open",
+ * "health": "green"
+ * }
+ * ]
+ * }
+ */
+ "application/json": {
+ indexes?: components["schemas"]["opensearch_index"][];
+ };
+ };
+ };
+ /** @description Response containing a single Dedicated Inference instance. */
+ dedicated_inference: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "dedicated_inference": {
+ * "id": "6b5c619c-359c-44ca-87e2-47e98170c01d",
+ * "status": "active",
+ * "region": "atl1",
+ * "vpc_uuid": "997615ce-132d-4bae-9270-9ee21b395e5d",
+ * "endpoints": {
+ * "public_endpoint_fqdn": "https://b4bfug4jc41kts2ro54if91eo-public-dedicated-inference.do-infra.ai",
+ * "private_endpoint_fqdn": "https://b4bfug4jc41kts2ro54if91eo-private-dedicated-inference.do-infra.ai"
+ * },
+ * "created_at": "2024-01-09T20:44:32Z",
+ * "updated_at": "2024-01-09T20:44:32Z"
+ * }
+ * }
+ */
+ "application/json": {
+ dedicated_inference?: components["schemas"]["dedicated_inference"];
+ };
+ };
+ };
+ /** @description Dedicated Inference update accepted for processing (202). Response contains only the dedicated_inference; no token is returned. */
+ dedicated_inference_update_accepted: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ dedicated_inference?: components["schemas"]["dedicated_inference"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `dedicated_inferences`. This will be set to an array of objects, each of which will contain the standard attributes associated with a Dedicated Inference. Pagination uses the same `links` and `meta` structure as other list endpoints. */
+ all_dedicated_inferences: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "dedicated_inferences": [
+ * {
+ * "id": "6b5c619c-359c-44ca-87e2-47e98170c01d",
+ * "status": "active",
+ * "region": "atl1",
+ * "vpc_uuid": "997615ce-132d-4bae-9270-9ee21b395e5d",
+ * "endpoints": {
+ * "public_endpoint_fqdn": "https://b4bfug4jc41kts2ro54if91eo-public-dedicated-inference.do-infra.ai",
+ * "private_endpoint_fqdn": "https://b4bfug4jc41kts2ro54if91eo-private-dedicated-inference.do-infra.ai"
+ * },
+ * "created_at": "2024-01-09T20:44:32Z",
+ * "updated_at": "2024-01-09T20:44:32Z"
+ * }
+ * ],
+ * "links": {
+ * "pages": {
+ * "first": "https://api.digitalocean.com/v2/dedicated-inferences?page=1&per_page=20",
+ * "last": "https://api.digitalocean.com/v2/dedicated-inferences?page=1&per_page=20"
+ * }
+ * },
+ * "meta": {
+ * "total": 1
+ * }
+ * }
+ */
+ "application/json": {
+ /** @description Array of Dedicated Inference instances. */
+ dedicated_inferences: components["schemas"]["dedicated_inference"][];
+ links: {
+ /** @description Pagination links (first, prev, next, last). */
+ pages?: {
+ [key: string]: string;
+ };
+ };
+ meta: {
+ /**
+ * @description Total number of results.
+ * @example 1
+ */
+ total: number;
+ };
+ };
+ };
+ };
+ /** @description Dedicated Inference create/update accepted for processing (202). Success or failure is not indicated by the response code. */
+ dedicated_inference_provisioning: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ dedicated_inference?: components["schemas"]["dedicated_inference"];
+ token?: components["schemas"]["dedicated_inference_access_token"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `accelerators`. This will be set to an array of accelerator objects. Pagination uses the same `links` and `meta` structure as other list endpoints. */
+ accelerators_list: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "accelerators": [
+ * {
+ * "id": "5b5c619c-359c-44ca-87e2-47e98170c02f",
+ * "name": "mi300x1-ghfpsf",
+ * "slug": "gpu-mi300x1-192gb",
+ * "role": "prefill_and_decode",
+ * "status": "active",
+ * "created_at": "2024-01-09T20:44:32Z"
+ * }
+ * ],
+ * "links": {
+ * "pages": {
+ * "first": "https://api.digitalocean.com/v2/dedicated-inferences/6b5c619c-359c-44ca-87e2-47e98170c01d/accelerators?page=1&per_page=20",
+ * "last": "https://api.digitalocean.com/v2/dedicated-inferences/6b5c619c-359c-44ca-87e2-47e98170c01d/accelerators?page=1&per_page=20"
+ * }
+ * },
+ * "meta": {
+ * "total": 1
+ * }
+ * }
+ */
+ "application/json": {
+ accelerators?: components["schemas"]["dedicated_inference_accelerator"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description CA certificate for the Dedicated Inference (base64-encoded). Required for private endpoint connectivity. */
+ ca_certificate: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "cert": "LS0tLS1CRUdJTi..."
+ * }
+ */
+ "application/json": {
+ /** @description Base64-encoded CA certificate. */
+ cert: string;
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `tokens`. This will be set to an array of objects (id, name, created_at, is_managed; value is not returned). Pagination uses the same `links` and `meta` structure as other list endpoints (e.g. VPC peerings). */
+ tokens_list: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "tokens": [],
+ * "links": {
+ * "pages": {
+ * "first": "https://api.digitalocean.com/v2/dedicated-inferences/6b5c619c-359c-44ca-87e2-47e98170c01d/tokens?page=1&per_page=20",
+ * "last": "https://api.digitalocean.com/v2/dedicated-inferences/6b5c619c-359c-44ca-87e2-47e98170c01d/tokens?page=1&per_page=20"
+ * }
+ * },
+ * "meta": {
+ * "total": 0
+ * }
+ * }
+ */
+ "application/json": {
+ tokens?: components["schemas"]["dedicated_inference_access_token"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description Token created; value is returned only once. Store securely. */
+ token_created: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ token?: components["schemas"]["dedicated_inference_access_token"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `domains`. The value of this will be an array of Domain objects, each of which contain the standard domain attributes. */
+ all_domains_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ /** @description Array of volumes. */
+ domains: components["schemas"]["domain"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `domain`. The value of this will be an object that contains the standard attributes associated with a domain. */
+ create_domain_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ domain?: components["schemas"]["domain"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `domain`. The value of this will be an object that contains the standard attributes defined for a domain. */
+ existing_domain: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ domain?: components["schemas"]["domain"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `domain_records`. The value of this will be an array of domain record objects, each of which contains the standard domain record attributes. For attributes that are not used by a specific record type, a value of `null` will be returned. For instance, all records other than SRV will have `null` for the `weight` and `port` attributes. */
+ all_domain_records_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ domain_records?: components["schemas"]["domain_record"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response body will be a JSON object with a key called `domain_record`. The value of this will be an object representing the new record. Attributes that are not applicable for the record type will be set to `null`. An `id` attribute is generated for each record as part of the object. */
+ created_domain_record: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ domain_record?: components["schemas"]["domain_record"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `domain_record`. The value of this will be a domain record object which contains the standard domain record attributes. */
+ domain_record: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ domain_record?: components["schemas"]["domain_record"];
+ };
+ };
+ };
+ /** @description A JSON object with a key of `droplets`. */
+ all_droplets: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ droplets?: components["schemas"]["droplet"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description Accepted */
+ droplet_create: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ droplet: components["schemas"]["droplet"];
+ links: {
+ actions?: components["schemas"]["action_link"][];
+ };
+ } | {
+ droplets: components["schemas"]["droplet"][];
+ links: {
+ actions?: components["schemas"]["action_link"][];
+ };
+ };
+ };
+ };
+ /** @description The action was successful and the response body is empty. This response has content-type set. */
+ no_content_with_content_type: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ "content-type": components["headers"]["content-type"];
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /**
+ * @description The response will be a JSON object with a key called `droplet`. This will be
+ * set to a JSON object that contains the standard Droplet attributes.
+ */
+ existing_droplet: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ droplet?: components["schemas"]["droplet"];
+ };
+ };
+ };
+ /** @description A JSON object with an `backups` key. */
+ all_droplet_backups: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "backups": [
+ * {
+ * "id": 67539192,
+ * "name": "web-01- 2020-07-29",
+ * "distribution": "Ubuntu",
+ * "slug": null,
+ * "public": false,
+ * "regions": [
+ * "nyc3"
+ * ],
+ * "created_at": "2020-07-29T01:44:35Z",
+ * "min_disk_size": 50,
+ * "size_gigabytes": 2.34,
+ * "type": "backup"
+ * }
+ * ],
+ * "links": {},
+ * "meta": {
+ * "total": 1
+ * }
+ * }
+ */
+ "application/json": {
+ backups?: components["schemas"]["droplet_snapshot"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `policy`. This will be
+ * set to a JSON object that contains the standard Droplet backup policy attributes.
+ */
+ droplet_backup_policy: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "policy": {
+ * "droplet_id": 444909706,
+ * "backup_enabled": true,
+ * "backup_policy": {
+ * "plan": "weekly",
+ * "weekday": "SUN",
+ * "hour": 20,
+ * "window_length_hours": 4,
+ * "retention_period_days": 28
+ * },
+ * "next_backup_window": {
+ * "start": "2024-09-15T20:00:00Z",
+ * "end": "2024-09-16T00:00:00Z"
+ * }
+ * }
+ * }
+ */
+ "application/json": {
+ policy?: components["schemas"]["droplet_backup_policy_record"];
+ };
+ };
+ };
+ /** @description A JSON object with a `policies` key set to a map. The keys are Droplet IDs and the values are objects containing the backup policy information for each Droplet. */
+ all_droplet_backup_policies: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "policies": {
+ * "436444618": {
+ * "droplet_id": 436444618,
+ * "backup_enabled": false
+ * },
+ * "444909314": {
+ * "droplet_id": 444909314,
+ * "backup_enabled": true,
+ * "backup_policy": {
+ * "plan": "daily",
+ * "hour": 20,
+ * "window_length_hours": 4,
+ * "retention_period_days": 7
+ * },
+ * "next_backup_window": {
+ * "start": "2024-09-13T20:00:00Z",
+ * "end": "2024-09-14T00:00:00Z"
+ * }
+ * },
+ * "444909706": {
+ * "droplet_id": 444909706,
+ * "backup_enabled": true,
+ * "backup_policy": {
+ * "plan": "weekly",
+ * "weekday": "SUN",
+ * "hour": 20,
+ * "window_length_hours": 4,
+ * "retention_period_days": 28
+ * },
+ * "next_backup_window": {
+ * "start": "2024-09-15T20:00:00Z",
+ * "end": "2024-09-16T00:00:00Z"
+ * }
+ * }
+ * },
+ * "links": {},
+ * "meta": {
+ * "total": 3
+ * }
+ * }
+ */
+ "application/json": {
+ /**
+ * @description A map where the keys are the Droplet IDs and the values are
+ * objects containing the backup policy information for each Droplet.
+ */
+ policies?: {
+ [key: string]: components["schemas"]["droplet_backup_policy_record"];
+ };
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description A JSON object with an `supported_policies` key set to an array of objects describing each supported backup policy. */
+ droplets_supported_backup_policies: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "supported_policies": [
+ * {
+ * "name": "weekly",
+ * "possible_window_starts": [
+ * 0,
+ * 4,
+ * 8,
+ * 12,
+ * 16,
+ * 20
+ * ],
+ * "window_length_hours": 4,
+ * "retention_period_days": 28,
+ * "possible_days": [
+ * "SUN",
+ * "MON",
+ * "TUE",
+ * "WED",
+ * "THU",
+ * "FRI",
+ * "SAT"
+ * ]
+ * },
+ * {
+ * "name": "daily",
+ * "possible_window_starts": [
+ * 0,
+ * 4,
+ * 8,
+ * 12,
+ * 16,
+ * 20
+ * ],
+ * "window_length_hours": 4,
+ * "retention_period_days": 7,
+ * "possible_days": []
+ * }
+ * ]
+ * }
+ */
+ "application/json": {
+ supported_policies?: components["schemas"]["supported_droplet_backup_policy"][];
+ };
+ };
+ };
+ /** @description A JSON object with an `snapshots` key. */
+ all_droplet_snapshots: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "snapshots": [
+ * {
+ * "id": 6372321,
+ * "name": "web-01-1595954862243",
+ * "created_at": "2020-07-28T16:47:44Z",
+ * "regions": [
+ * "nyc3",
+ * "sfo3"
+ * ],
+ * "min_disk_size": 25,
+ * "size_gigabytes": 2.34,
+ * "type": "snapshot"
+ * }
+ * ],
+ * "links": {},
+ * "meta": {
+ * "total": 1
+ * }
+ * }
+ */
+ "application/json": {
+ snapshots?: components["schemas"]["droplet_snapshot"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description A JSON object with an `actions` key. */
+ all_droplet_actions: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "actions": [
+ * {
+ * "id": 982864273,
+ * "status": "completed",
+ * "type": "create",
+ * "started_at": "2020-07-20T19:37:30Z",
+ * "completed_at": "2020-07-20T19:37:45Z",
+ * "resource_id": 3164444,
+ * "resource_type": "droplet",
+ * "region": {
+ * "name": "New York 3",
+ * "slug": "nyc3",
+ * "features": [
+ * "private_networking",
+ * "backups",
+ * "ipv6",
+ * "metadata",
+ * "install_agent",
+ * "image_transfer"
+ * ],
+ * "available": true,
+ * "sizes": [
+ * "s-1vcpu-1gb",
+ * "s-1vcpu-2gb",
+ * "s-3vcpu-1gb",
+ * "s-2vcpu-2gb",
+ * "s-1vcpu-3gb",
+ * "s-2vcpu-4gb",
+ * "s-4vcpu-8gb",
+ * "m-1vcpu-8gb",
+ * "s-6vcpu-16gb",
+ * "s-8vcpu-32gb",
+ * "s-12vcpu-48gb"
+ * ]
+ * },
+ * "region_slug": "nyc3"
+ * }
+ * ],
+ * "links": {},
+ * "meta": {
+ * "total": 1
+ * }
+ * }
+ */
+ "application/json": {
+ actions?: components["schemas"]["action"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `action`. */
+ droplet_action: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ action?: components["schemas"]["action"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `actions`. */
+ droplet_actions_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ actions?: components["schemas"]["action"][];
+ };
+ };
+ };
+ /** @description A JSON object that has a key called `kernels`. */
+ all_kernels: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "kernels": [
+ * {
+ * "id": 7515,
+ * "name": "DigitalOcean GrubLoader v0.2 (20160714)",
+ * "version": "2016.07.13-DigitalOcean_loader_Ubuntu"
+ * }
+ * ],
+ * "links": {
+ * "pages": {
+ * "next": "https://api.digitalocean.com/v2/droplets/3164444/kernels?page=2&per_page=1",
+ * "last": "https://api.digitalocean.com/v2/droplets/3164444/kernels?page=171&per_page=1"
+ * }
+ * },
+ * "meta": {
+ * "total": 171
+ * }
+ * }
+ */
+ "application/json": {
+ kernels?: components["schemas"]["kernel"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description A JSON object that has a key called `firewalls`. */
+ all_firewalls: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "firewalls": [
+ * {
+ * "id": "bb4b2611-3d72-467b-8602-280330ecd65c",
+ * "status": "succeeded",
+ * "created_at": "2020-05-23T21:24:00Z",
+ * "pending_changes": [
+ * {
+ * "droplet_id": 8043964,
+ * "removing": true,
+ * "status": "waiting"
+ * }
+ * ],
+ * "name": "firewall",
+ * "droplet_ids": [
+ * 89989,
+ * 33322
+ * ],
+ * "tags": [
+ * "base-image",
+ * "prod"
+ * ],
+ * "inbound_rules": [
+ * {
+ * "protocol": "udp",
+ * "ports": "8000-9000",
+ * "action": "allow",
+ * "sources": {
+ * "addresses": [
+ * "1.2.3.4",
+ * "18.0.0.0/8"
+ * ],
+ * "droplet_ids": [
+ * 8282823,
+ * 3930392
+ * ],
+ * "load_balancer_uids": [
+ * "4de7ac8b-495b-4884-9a69-1050c6793cd6"
+ * ],
+ * "tags": [
+ * "base-image",
+ * "dev"
+ * ]
+ * }
+ * }
+ * ],
+ * "outbound_rules": [
+ * {
+ * "protocol": "tcp",
+ * "ports": "7000-9000",
+ * "action": "allow",
+ * "destinations": {
+ * "addresses": [
+ * "1.2.3.4",
+ * "18.0.0.0/8"
+ * ],
+ * "droplet_ids": [
+ * 3827493,
+ * 213213
+ * ],
+ * "load_balancer_uids": [
+ * "4de7ac8b-495b-4884-9a69-1050c6793cd6"
+ * ],
+ * "tags": [
+ * "base-image",
+ * "prod"
+ * ]
+ * }
+ * }
+ * ]
+ * }
+ * ],
+ * "links": {
+ * "pages": {}
+ * },
+ * "meta": {
+ * "total": 1
+ * }
+ * }
+ */
+ "application/json": {
+ firewalls?: components["schemas"]["firewall"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description A JSON object with an `droplets` key. */
+ neighbor_droplets: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ droplets?: components["schemas"]["droplet"][];
+ };
+ };
+ };
+ /** @description A JSON object containing `snapshots`, `volumes`, and `volume_snapshots` keys. */
+ associated_resources_list: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "reserved_ips": [
+ * {
+ * "id": "6186916",
+ * "name": "45.55.96.47",
+ * "cost": "4.00"
+ * }
+ * ],
+ * "floating_ips": [
+ * {
+ * "id": "6186916",
+ * "name": "45.55.96.47",
+ * "cost": "4.00"
+ * }
+ * ],
+ * "snapshots": [
+ * {
+ * "id": "61486916",
+ * "name": "ubuntu-s-1vcpu-1gb-nyc1-01-1585758823330",
+ * "cost": "0.05"
+ * }
+ * ],
+ * "volumes": [
+ * {
+ * "id": "ba49449a-7435-11ea-b89e-0a58ac14480f",
+ * "name": "volume-nyc1-01",
+ * "cost": "10.00"
+ * }
+ * ],
+ * "volume_snapshots": [
+ * {
+ * "id": "edb0478d-7436-11ea-86e6-0a58ac144b91",
+ * "name": "volume-nyc1-01-1585758983629",
+ * "cost": "0.04"
+ * }
+ * ]
+ * }
+ */
+ "application/json": {
+ /** @description Reserved IPs that are associated with this Droplet. Requires `reserved_ip:read` scope. */
+ reserved_ips?: components["schemas"]["associated_resource"][];
+ /** @description Floating IPs that are associated with this Droplet. Requires `reserved_ip:read` scope. */
+ floating_ips?: components["schemas"]["associated_resource"][];
+ /** @description Snapshots that are associated with this Droplet. Requires `image:read` scope. */
+ snapshots?: components["schemas"]["associated_resource"][];
+ /** @description Volumes that are associated with this Droplet. Requires `block_storage:read` scope. */
+ volumes?: components["schemas"]["associated_resource"][];
+ /** @description Volume Snapshots that are associated with this Droplet. Requires `block_storage_snapshot:read` scope. */
+ volume_snapshots?: components["schemas"]["associated_resource"][];
+ };
+ };
+ };
+ /** @description A JSON object containing containing the status of a request to destroy a Droplet and its associated resources. */
+ associated_resources_status: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "droplet": {
+ * "id": "187000742",
+ * "name": "ubuntu-s-1vcpu-1gb-nyc1-01",
+ * "destroyed_at": "2020-04-01T18:11:49Z"
+ * },
+ * "resources": {
+ * "reserved_ips": [
+ * {
+ * "id": "6186916",
+ * "name": "45.55.96.47",
+ * "destroyed_at": "2020-04-01T18:11:44Z"
+ * }
+ * ],
+ * "floating_ips": [
+ * {
+ * "id": "6186916",
+ * "name": "45.55.96.47",
+ * "destroyed_at": "2020-04-01T18:11:44Z"
+ * }
+ * ],
+ * "snapshots": [
+ * {
+ * "id": "61486916",
+ * "name": "ubuntu-s-1vcpu-1gb-nyc1-01-1585758823330",
+ * "destroyed_at": "2020-04-01T18:11:44Z"
+ * }
+ * ],
+ * "volumes": [],
+ * "volume_snapshots": [
+ * {
+ * "id": "edb0478d-7436-11ea-86e6-0a58ac144b91",
+ * "name": "volume-nyc1-01-1585758983629",
+ * "destroyed_at": "2020-04-01T18:11:44Z"
+ * }
+ * ]
+ * },
+ * "completed_at": "2020-04-01T18:11:49Z",
+ * "failures": 0
+ * }
+ */
+ "application/json": components["schemas"]["associated_resource_status"];
+ };
+ };
+ /** @description A JSON object with a key of `autoscale_pools`. */
+ all_autoscale_pools: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ autoscale_pools?: components["schemas"]["autoscale_pool"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description Accepted */
+ autoscale_pool_create: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ autoscale_pool?: components["schemas"]["autoscale_pool"];
+ };
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `autoscale_pool`. This will be
+ * set to a JSON object that contains the standard autoscale pool attributes.
+ */
+ existing_autoscale_pool: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ autoscale_pool?: components["schemas"]["autoscale_pool"];
+ };
+ };
+ };
+ /** @description A JSON object with a key of `droplets`. */
+ all_members: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ droplets?: components["schemas"]["member"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description A JSON object with a key of `history`. */
+ history_events: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ history?: components["schemas"]["history"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description To list all of the firewalls available on your account, send a GET request to `/v2/firewalls`. Firewalls responses will include only the resources that you are granted to see. Ensure that your API token includes all necessary `:read` permissions for requested firewall. */
+ list_firewalls_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "firewalls": [
+ * {
+ * "id": "fb6045f1-cf1d-4ca3-bfac-18832663025b",
+ * "name": "firewall",
+ * "status": "succeeded",
+ * "inbound_rules": [
+ * {
+ * "protocol": "tcp",
+ * "ports": "80",
+ * "action": "allow",
+ * "sources": {
+ * "load_balancer_uids": [
+ * "4de7ac8b-495b-4884-9a69-1050c6793cd6"
+ * ]
+ * }
+ * },
+ * {
+ * "protocol": "tcp",
+ * "ports": "22",
+ * "action": "allow",
+ * "sources": {
+ * "tags": [
+ * "gateway"
+ * ],
+ * "addresses": [
+ * "18.0.0.0/8"
+ * ]
+ * }
+ * }
+ * ],
+ * "outbound_rules": [
+ * {
+ * "protocol": "tcp",
+ * "ports": "80",
+ * "action": "allow",
+ * "destinations": {
+ * "addresses": [
+ * "0.0.0.0/0",
+ * "::/0"
+ * ]
+ * }
+ * }
+ * ],
+ * "created_at": "2017-05-23T21:23:59Z",
+ * "droplet_ids": [
+ * 8043964
+ * ],
+ * "tags": [],
+ * "pending_changes": []
+ * }
+ * ],
+ * "links": {},
+ * "meta": {
+ * "total": 1
+ * }
+ * }
+ */
+ "application/json": {
+ firewalls?: components["schemas"]["firewall"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with a firewall key. This will be set to an object containing the standard firewall attributes. */
+ create_firewall_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "firewall": {
+ * "id": "bb4b2611-3d72-467b-8602-280330ecd65c",
+ * "name": "firewall",
+ * "status": "waiting",
+ * "inbound_rules": [
+ * {
+ * "protocol": "tcp",
+ * "ports": "80",
+ * "action": "allow",
+ * "sources": {
+ * "load_balancer_uids": [
+ * "4de7ac8b-495b-4884-9a69-1050c6793cd6"
+ * ]
+ * }
+ * },
+ * {
+ * "protocol": "tcp",
+ * "ports": "22",
+ * "action": "allow",
+ * "sources": {
+ * "tags": [
+ * "gateway"
+ * ],
+ * "addresses": [
+ * "18.0.0.0/8"
+ * ]
+ * }
+ * }
+ * ],
+ * "outbound_rules": [
+ * {
+ * "protocol": "tcp",
+ * "ports": "80",
+ * "action": "allow",
+ * "destinations": {
+ * "addresses": [
+ * "0.0.0.0/0",
+ * "::/0"
+ * ]
+ * }
+ * }
+ * ],
+ * "created_at": "2017-05-23T21:24:00Z",
+ * "droplet_ids": [
+ * 8043964
+ * ],
+ * "tags": [],
+ * "pending_changes": [
+ * {
+ * "droplet_id": 8043964,
+ * "removing": false,
+ * "status": "waiting"
+ * }
+ * ]
+ * }
+ * }
+ */
+ "application/json": {
+ firewall?: components["schemas"]["firewall"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a firewall key. This will be set to an object containing the standard firewall attributes. Firewalls responses will include only the resources that you are granted to see. Ensure that your API token includes all necessary `:read` permissions for requested firewall. */
+ get_firewall_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "firewall": {
+ * "id": "bb4b2611-3d72-467b-8602-280330ecd65c",
+ * "name": "firewall",
+ * "status": "succeeded",
+ * "inbound_rules": [
+ * {
+ * "protocol": "tcp",
+ * "ports": "80",
+ * "action": "allow",
+ * "sources": {
+ * "load_balancer_uids": [
+ * "4de7ac8b-495b-4884-9a69-1050c6793cd6"
+ * ]
+ * }
+ * },
+ * {
+ * "protocol": "tcp",
+ * "ports": "22",
+ * "action": "allow",
+ * "sources": {
+ * "tags": [
+ * "gateway"
+ * ],
+ * "addresses": [
+ * "18.0.0.0/8"
+ * ]
+ * }
+ * }
+ * ],
+ * "outbound_rules": [
+ * {
+ * "protocol": "tcp",
+ * "ports": "80",
+ * "action": "allow",
+ * "destinations": {
+ * "addresses": [
+ * "0.0.0.0/0",
+ * "::/0"
+ * ]
+ * }
+ * }
+ * ],
+ * "created_at": "2017-05-23T21:24:00Z",
+ * "droplet_ids": [
+ * 8043964
+ * ],
+ * "tags": [],
+ * "pending_changes": []
+ * }
+ * }
+ */
+ "application/json": {
+ firewall?: components["schemas"]["firewall"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a `firewall` key. This will be set to an object containing the standard firewall attributes. */
+ put_firewall_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "firewall": {
+ * "id": "bb4b2611-3d72-467b-8602-280330ecd65c",
+ * "name": "frontend-firewall",
+ * "inbound_rules": [
+ * {
+ * "protocol": "tcp",
+ * "ports": "80",
+ * "action": "allow",
+ * "sources": {
+ * "load_balancer_uids": [
+ * "4de7ac8b-495b-4884-9a69-1050c6793cd6"
+ * ]
+ * }
+ * },
+ * {
+ * "protocol": "tcp",
+ * "ports": "22",
+ * "action": "allow",
+ * "sources": {
+ * "tags": [
+ * "gateway"
+ * ],
+ * "addresses": [
+ * "18.0.0.0/8"
+ * ]
+ * }
+ * }
+ * ],
+ * "outbound_rules": [
+ * {
+ * "protocol": "tcp",
+ * "ports": "80",
+ * "action": "allow",
+ * "destinations": {
+ * "addresses": [
+ * "0.0.0.0/0",
+ * "::/0"
+ * ]
+ * }
+ * }
+ * ],
+ * "created_at": "2020-05-23T21:24:00Z",
+ * "droplet_ids": [
+ * 8043964
+ * ],
+ * "tags": [
+ * "frontend"
+ * ],
+ * "status": "waiting",
+ * "pending_changes": [
+ * {
+ * "droplet_id": 8043964,
+ * "removing": false,
+ * "status": "waiting"
+ * }
+ * ]
+ * }
+ * }
+ */
+ "application/json": {
+ firewall?: components["schemas"]["firewall"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `floating_ips`. This will be set to an array of floating IP objects, each of which will contain the standard floating IP attributes */
+ floating_ip_list: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ floating_ips?: components["schemas"]["floating_ip"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `floating_ip`. The value of this will be an object that contains the standard attributes associated with a floating IP.
+ * When assigning a floating IP to a Droplet at same time as it created, the response's `links` object will contain links to both the Droplet and the assignment action. The latter can be used to check the status of the action.
+ */
+ floating_ip_created: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ floating_ip?: components["schemas"]["floating_ip"];
+ links?: {
+ droplets?: components["schemas"]["action_link"][];
+ actions?: components["schemas"]["action_link"][];
+ };
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `floating_ip`. The value of this will be an object that contains the standard attributes associated with a floating IP. */
+ floating_ip: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ floating_ip?: components["schemas"]["floating_ip"];
+ };
+ };
+ };
+ /** @description The results will be returned as a JSON object with an `actions` key. This will be set to an array filled with action objects containing the standard floating IP action attributes. */
+ floating_ip_actions: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ actions?: components["schemas"]["action"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be an object with a key called `action`. The value of this will be an object that contains the standard floating IP action attributes. */
+ floating_ip_action: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ action?: components["schemas"]["action"] & {
+ /**
+ * Format: uuid
+ * @description The UUID of the project to which the reserved IP currently belongs.
+ * @example 746c6152-2fa2-11ed-92d3-27aaa54e4988
+ */
+ project_id?: string;
+ };
+ };
+ };
+ };
+ /**
+ * @description An array of JSON objects with a key called `namespaces`. Each object represents a namespace and contains
+ * the properties associated with it.
+ */
+ list_namespaces: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ namespaces?: components["schemas"]["namespace_info"][];
+ };
+ };
+ };
+ /**
+ * @description A JSON response object with a key called `namespace`. The object contains the properties associated
+ * with the namespace.
+ */
+ namespace_created: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ namespace?: components["schemas"]["namespace_info"];
+ };
+ };
+ };
+ /** @description Bad Request. */
+ namespace_bad_request: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "bad_request",
+ * "message": "Invalid request payload: missing label field",
+ * "request_id": "4851a473-1621-42ea-b2f9-5071c0ea8414"
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Limit Reached */
+ namespace_limit_reached: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "unprocessable_entity",
+ * "message": "namespace limit reached",
+ * "request_id": "a3275238-3d04-4405-a123-55c389b406c0"
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Not Allowed. */
+ namespace_not_allowed: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "forbidden",
+ * "message": "not allowed to get namespace",
+ * "request_id": "b11e45a4-892c-48c9-9001-b6cffe9fe795"
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Bad Request. */
+ namespace_not_found: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "not_found",
+ * "message": "namespace not found",
+ * "request_id": "88d17b7a-630b-4083-99ce-5b91045efdb4"
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /**
+ * @description An array of JSON objects with a key called `namespaces`. Each object represents a namespace and contains
+ * the properties associated with it.
+ */
+ list_triggers: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ triggers?: components["schemas"]["trigger_info"][];
+ };
+ };
+ };
+ /**
+ * @description A JSON response object with a key called `trigger`. The object contains the properties associated
+ * with the trigger.
+ */
+ trigger_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ trigger?: components["schemas"]["trigger_info"];
+ };
+ };
+ };
+ /** @description Bad Request. */
+ trigger_bad_request: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "bad_request",
+ * "message": "validating create trigger: validation error: missing trigger name, missing function name, missing source details",
+ * "request_id": "4851a473-1621-42ea-b2f9-5071c0ea8414"
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Limit Reached */
+ trigger_limit_reached: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "unprocessable_entity",
+ * "message": "triggers limit reached",
+ * "request_id": "7ba99a43-6618-4fe0-9af7-092752ad0d56"
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Bad Request. */
+ trigger_not_found: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description A JSON response containing a list of access keys for the namespace. */
+ access_key_list: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ access_keys?: components["schemas"]["access_key"][];
+ /** @description Total number of access keys */
+ count?: number;
+ };
+ };
+ };
+ /** @description A JSON response containing details about the newly created access key. */
+ access_key_create: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ access_key?: components["schemas"]["access_key_create_response"];
+ };
+ };
+ };
+ /** @description A JSON response containing the updated access key details. */
+ access_key_update: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ access_key?: components["schemas"]["access_key"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `images`. This will be set to an array of image objects, each of which will contain the standard image attributes. */
+ all_images: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ images: components["schemas"]["image"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with a key set to `image`. The value of this will be an image object containing a subset of the standard image attributes as listed below, including the image's `id` and `status`. After initial creation, the `status` will be `NEW`. Using the image's id, you may query the image's status by sending a `GET` request to the `/v2/images/$IMAGE_ID` endpoint. When the `status` changes to `available`, the image will be ready for use. */
+ new_custom_image: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "image": {
+ * "created_at": "2018-09-20T19:28:00Z",
+ * "description": "Cloud-optimized image w/ small footprint",
+ * "distribution": "Ubuntu",
+ * "error_message": "",
+ * "id": 38413969,
+ * "name": "ubuntu-18.04-minimal",
+ * "regions": [],
+ * "type": "custom",
+ * "tags": [
+ * "base-image",
+ * "prod"
+ * ],
+ * "status": "NEW"
+ * }
+ * }
+ */
+ "application/json": {
+ image?: components["schemas"]["image"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `image`. The value of this will be an image object containing the standard image attributes. */
+ existing_image: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "image": {
+ * "id": 6918990,
+ * "name": "14.04 x64",
+ * "distribution": "Ubuntu",
+ * "slug": "ubuntu-16-04-x64",
+ * "public": true,
+ * "regions": [
+ * "nyc1",
+ * "ams1",
+ * "sfo1",
+ * "nyc2",
+ * "ams2",
+ * "sgp1",
+ * "lon1",
+ * "nyc3",
+ * "ams3",
+ * "nyc3"
+ * ],
+ * "created_at": "2014-10-17T20:24:33Z",
+ * "min_disk_size": 20,
+ * "size_gigabytes": 2.34,
+ * "description": "",
+ * "tags": [],
+ * "status": "available",
+ * "error_message": ""
+ * }
+ * }
+ */
+ "application/json": {
+ image: components["schemas"]["image"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key set to `image`. The value of this will be an image object containing the standard image attributes. */
+ updated_image: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "image": {
+ * "id": 7938391,
+ * "name": "new-image-name",
+ * "distribution": "Ubuntu",
+ * "slug": null,
+ * "public": false,
+ * "regions": [
+ * "nyc3",
+ * "nyc3"
+ * ],
+ * "created_at": "2014-11-14T16:44:03Z",
+ * "min_disk_size": 20,
+ * "size_gigabytes": 2.34,
+ * "description": "",
+ * "tags": [],
+ * "status": "available",
+ * "error_message": ""
+ * }
+ * }
+ */
+ "application/json": {
+ image: components["schemas"]["image"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `transfer_id`. The value of this will be a number that identifies the initiated transfer. If the value is `0`, then the transfer has been accepted. Otherwise, the transfer is pending and waiting for the recipient to accept it. */
+ images_post_account_transfer_created: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "transfer_id": 3164444
+ * }
+ */
+ "application/json": {
+ transfer_id?: components["schemas"]["transfer_id"];
+ };
+ };
+ };
+ /** @description The results will be returned as a JSON object with an `actions` key. This will be set to an array filled with action objects containing the standard action attributes. */
+ get_image_actions_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "actions": [
+ * {
+ * "id": 29410565,
+ * "status": "completed",
+ * "type": "transfer",
+ * "started_at": "2014-07-25T15:04:21Z",
+ * "completed_at": "2014-07-25T15:10:20Z",
+ * "resource_id": 7555620,
+ * "resource_type": "image",
+ * "region": {
+ * "name": "New York 2",
+ * "slug": "nyc2",
+ * "sizes": [
+ * "s-1vcpu-3gb",
+ * "m-1vcpu-8gb",
+ * "s-3vcpu-1gb",
+ * "s-1vcpu-2gb",
+ * "s-2vcpu-2gb",
+ * "s-2vcpu-4gb",
+ * "s-4vcpu-8gb",
+ * "s-6vcpu-16gb",
+ * "s-8vcpu-32gb",
+ * "s-12vcpu-48gb",
+ * "s-16vcpu-64gb",
+ * "s-20vcpu-96gb",
+ * "s-1vcpu-1gb",
+ * "c-1vcpu-2gb",
+ * "s-24vcpu-128gb"
+ * ],
+ * "features": [
+ * "private_networking",
+ * "backups",
+ * "ipv6",
+ * "metadata",
+ * "server_id",
+ * "install_agent",
+ * "storage",
+ * "image_transfer"
+ * ],
+ * "available": true
+ * },
+ * "region_slug": "nyc2"
+ * }
+ * ],
+ * "links": {
+ * "pages": {
+ * "last": "https://api.digitalocean.com/v2/images/7555620/actions?page=5&per_page=1",
+ * "next": "https://api.digitalocean.com/v2/images/7555620/actions?page=2&per_page=1"
+ * }
+ * },
+ * "meta": {
+ * "total": 5
+ * }
+ * }
+ */
+ "application/json": {
+ actions?: components["schemas"]["action"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `action`. The value of this will be an object containing the standard image action attributes. */
+ post_image_action_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "action": {
+ * "id": 36805527,
+ * "status": "in-progress",
+ * "type": "transfer",
+ * "started_at": "2014-11-14T16:42:45Z",
+ * "completed_at": null,
+ * "resource_id": 7938269,
+ * "resource_type": "image",
+ * "region": {
+ * "name": "New York 3",
+ * "slug": "nyc3",
+ * "sizes": [
+ * "s-1vcpu-3gb",
+ * "m-1vcpu-8gb",
+ * "s-3vcpu-1gb",
+ * "s-1vcpu-2gb",
+ * "s-2vcpu-2gb",
+ * "s-2vcpu-4gb",
+ * "s-4vcpu-8gb",
+ * "s-6vcpu-16gb",
+ * "s-8vcpu-32gb",
+ * "s-12vcpu-48gb",
+ * "s-16vcpu-64gb",
+ * "s-20vcpu-96gb",
+ * "s-1vcpu-1gb",
+ * "c-1vcpu-2gb",
+ * "s-24vcpu-128gb"
+ * ],
+ * "features": [
+ * "private_networking",
+ * "backups",
+ * "ipv6",
+ * "metadata",
+ * "server_id",
+ * "install_agent",
+ * "storage",
+ * "image_transfer"
+ * ],
+ * "available": true
+ * },
+ * "region_slug": "nyc3"
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["action"];
+ };
+ };
+ /** @description The response will be an object with a key called `action`. The value of this will be an object that contains the standard image action attributes. */
+ get_image_action_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "action": {
+ * "id": 36805527,
+ * "status": "in-progress",
+ * "type": "transfer",
+ * "started_at": "2014-11-14T16:42:45Z",
+ * "completed_at": null,
+ * "resource_id": 7938269,
+ * "resource_type": "image",
+ * "region": {
+ * "name": "New York 3",
+ * "slug": "nyc3",
+ * "sizes": [
+ * "s-1vcpu-3gb",
+ * "m-1vcpu-8gb",
+ * "s-3vcpu-1gb",
+ * "s-1vcpu-2gb",
+ * "s-2vcpu-2gb",
+ * "s-2vcpu-4gb",
+ * "s-4vcpu-8gb",
+ * "s-6vcpu-16gb",
+ * "s-8vcpu-32gb",
+ * "s-12vcpu-48gb",
+ * "s-16vcpu-64gb",
+ * "s-20vcpu-96gb",
+ * "s-1vcpu-1gb",
+ * "c-1vcpu-2gb",
+ * "s-24vcpu-128gb"
+ * ],
+ * "features": [
+ * "private_networking",
+ * "backups",
+ * "ipv6",
+ * "metadata",
+ * "server_id",
+ * "install_agent",
+ * "storage",
+ * "image_transfer"
+ * ],
+ * "available": true
+ * },
+ * "region_slug": "nyc3"
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["action"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `alert_instances`. This will be set to an array of alert instance objects, each of which will contain the standard attributes associated with an alert instance. */
+ list_alert_instances_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "alert_instances": [
+ * {
+ * "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
+ * "rule_id": "8f3a2b1c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
+ * "severity": "warning",
+ * "status": "active",
+ * "resource_urn": "do:droplet:12345",
+ * "value": 87.5,
+ * "triggered_at": "2026-09-03T10:15:00Z",
+ * "last_triggered_at": "2026-09-03T10:45:00Z",
+ * "last_notified_at": "2026-09-03T10:15:00Z"
+ * }
+ * ],
+ * "links": {
+ * "pages": {}
+ * },
+ * "meta": {
+ * "total": 1
+ * }
+ * }
+ */
+ "application/json": {
+ alert_instances?: components["schemas"]["alert_instance"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `alert_instance` containing the standard attributes associated with an alert instance. */
+ alert_instance_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "alert_instance": {
+ * "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
+ * "rule_id": "8f3a2b1c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
+ * "severity": "critical",
+ * "status": "resolved",
+ * "resource_urn": "do:droplet:12345",
+ * "value": 95.2,
+ * "triggered_at": "2026-09-02T08:00:00Z",
+ * "last_triggered_at": "2026-09-02T08:30:00Z",
+ * "resolved_at": "2026-09-02T09:00:00Z",
+ * "last_notified_at": "2026-09-02T08:00:00Z"
+ * }
+ * }
+ */
+ "application/json": {
+ alert_instance: components["schemas"]["alert_instance"];
+ };
+ };
+ };
+ /** @description A list of alert rules. */
+ list_alert_rules_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "alert_rules": [
+ * {
+ * "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
+ * "spec": {
+ * "name": "High CPU",
+ * "query": {
+ * "metric": "do.droplets.cpu_utilization",
+ * "resource_urns": [
+ * "do:droplet:12345"
+ * ]
+ * },
+ * "condition": {
+ * "window": "EVALUATION_WINDOW_5M"
+ * },
+ * "thresholds": {
+ * "warning": 80,
+ * "critical": 95,
+ * "operator": "THRESHOLD_OPERATOR_GREATER_THAN"
+ * },
+ * "notification_channels": [
+ * {
+ * "notification_channel_id": "550e8400-e29b-41d4-a716-446655440000",
+ * "notify_on": [
+ * "SEVERITY_CRITICAL"
+ * ]
+ * }
+ * ],
+ * "re_alert_duration": "RE_ALERT_DURATION_4H"
+ * },
+ * "status": "ALERT_RULE_STATUS_PAUSED",
+ * "created_at": "2026-09-03T10:00:00Z",
+ * "updated_at": "2026-09-03T10:30:00Z"
+ * }
+ * ],
+ * "links": {
+ * "pages": {
+ * "first": "https://api.digitalocean.com/v2/insights/alert-rules?page=1",
+ * "last": "https://api.digitalocean.com/v2/insights/alert-rules?page=1"
+ * }
+ * },
+ * "meta": {
+ * "total": 1
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["list_alert_rules"] & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description A single alert rule. */
+ alert_rule_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "alert_rule": {
+ * "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
+ * "spec": {
+ * "name": "High CPU",
+ * "query": {
+ * "metric": "do.droplets.cpu_utilization",
+ * "resource_urns": [
+ * "do:droplet:12345"
+ * ],
+ * "tags": [
+ * "env:prod"
+ * ]
+ * },
+ * "condition": {
+ * "window": "EVALUATION_WINDOW_5M"
+ * },
+ * "thresholds": {
+ * "warning": 80,
+ * "critical": 95,
+ * "operator": "THRESHOLD_OPERATOR_GREATER_THAN"
+ * },
+ * "notification_channels": [
+ * {
+ * "notification_channel_id": "550e8400-e29b-41d4-a716-446655440000",
+ * "notify_on": [
+ * "SEVERITY_CRITICAL"
+ * ]
+ * }
+ * ],
+ * "re_alert_duration": "RE_ALERT_DURATION_4H"
+ * },
+ * "status": "ALERT_RULE_STATUS_ACTIVE",
+ * "created_at": "2026-09-03T10:00:00Z",
+ * "updated_at": "2026-09-03T10:00:00Z"
+ * }
+ * }
+ */
+ "application/json": {
+ alert_rule: components["schemas"]["alert_rule"];
+ };
+ };
+ };
+ /** @description A paginated list of dashboards. */
+ list_dashboards_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "dashboards": [
+ * {
+ * "uuid": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
+ * "name": "Droplet CPU",
+ * "description": "CPU utilization across production Droplets.",
+ * "spec": "{\"kind\": \"Dashboard\", \"spec\": {\"panels\": {\"cpu\": {\"kind\": \"Panel\", \"spec\": {\"plugin\": {\"kind\": \"TimeSeriesChart\", \"spec\": {}}, \"display\": {\"name\": \"CPU utilization\"}, \"queries\": [{\"kind\": \"TimeSeriesQuery\", \"spec\": {\"plugin\": {\"kind\": \"MetricsTimeSeriesQuery\", \"spec\": {\"kind\": \"gauge\", \"filters\": [], \"groupBy\": [], \"metricName\": \"do.droplets.cpu_utilization\"}}}}]}}}, \"display\": {\"name\": \"Droplet CPU\", \"description\": \"CPU utilization across production Droplets.\"}, \"layouts\": [{\"kind\": \"Grid\", \"spec\": {\"items\": [{\"x\": 0, \"y\": 0, \"width\": 12, \"height\": 6, \"content\": {\"$ref\": \"#/spec/panels/cpu\"}}]}}], \"duration\": \"1h\", \"variables\": []}, \"apiVersion\": \"perses.dev/v1alpha1\"}",
+ * "created_at": "2026-10-29T10:21:44Z",
+ * "updated_at": "2026-10-29T10:21:44Z"
+ * },
+ * {
+ * "uuid": "3f2504e0-4f89-41d3-9a0c-0305e82c3301",
+ * "name": "Load balancer traffic",
+ * "spec": "{\"kind\": \"Dashboard\", \"spec\": {\"panels\": {\"requests\": {\"kind\": \"Panel\", \"spec\": {\"plugin\": {\"kind\": \"TimeSeriesChart\", \"spec\": {}}, \"display\": {\"name\": \"Requests per second\"}, \"queries\": [{\"kind\": \"TimeSeriesQuery\", \"spec\": {\"plugin\": {\"kind\": \"MetricsTimeSeriesQuery\", \"spec\": {\"kind\": \"gauge\", \"filters\": [], \"groupBy\": [], \"metricName\": \"do.load_balancers.requests_per_second\"}}}}]}}}, \"display\": {\"name\": \"Load balancer traffic\"}, \"layouts\": [{\"kind\": \"Grid\", \"spec\": {\"items\": [{\"x\": 0, \"y\": 0, \"width\": 12, \"height\": 6, \"content\": {\"$ref\": \"#/spec/panels/requests\"}}]}}], \"duration\": \"6h\", \"variables\": []}, \"apiVersion\": \"perses.dev/v1alpha1\"}",
+ * "created_at": "2026-10-27T16:09:31Z",
+ * "updated_at": "2026-10-28T09:12:05Z"
+ * }
+ * ],
+ * "pagination": {
+ * "page": 1,
+ * "pages": 1,
+ * "per_page": 20,
+ * "total": 2
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["list_dashboards_response"];
+ };
+ };
+ /** @description The request was malformed. Causes include an empty `spec`, a `spec` that is not valid JSON, a `pagination.per_page` above `200`, or an unsupported `pagination.sort` or `pagination.sort_direction`. */
+ dashboard_bad_request: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "error": "spec is required",
+ * "code": 3,
+ * "message": "spec is required"
+ * }
+ */
+ "application/json": components["schemas"]["dashboard_error"];
+ };
+ };
+ /** @description Either the API rate limit has been exceeded, or a dashboards product limit was reached: the team already holds its maximum number of dashboards, or the `spec` contains more panels than allowed per dashboard. Rate-limit responses use the standard DigitalOcean error body. Product-limit responses use the dashboards service error body; a dashboard-count limit carries a `google.rpc.ErrorInfo` detail with `reason` set to `dashboard_limit_reached`. */
+ dashboard_too_many_requests: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"] | components["schemas"]["dashboard_error"];
+ };
+ };
+ /** @description Unexpected server-side error. */
+ dashboard_server_error: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "error": "internal error",
+ * "code": 13,
+ * "message": "internal error"
+ * }
+ */
+ "application/json": components["schemas"]["dashboard_error"];
+ };
+ };
+ /** @description A single dashboard. */
+ dashboard_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "dashboard": {
+ * "uuid": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
+ * "name": "Droplet CPU",
+ * "description": "CPU utilization across production Droplets.",
+ * "spec": "{\"kind\": \"Dashboard\", \"spec\": {\"panels\": {\"cpu\": {\"kind\": \"Panel\", \"spec\": {\"plugin\": {\"kind\": \"TimeSeriesChart\", \"spec\": {}}, \"display\": {\"name\": \"CPU utilization\"}, \"queries\": [{\"kind\": \"TimeSeriesQuery\", \"spec\": {\"plugin\": {\"kind\": \"MetricsTimeSeriesQuery\", \"spec\": {\"kind\": \"gauge\", \"filters\": [], \"groupBy\": [], \"metricName\": \"do.droplets.cpu_utilization\"}}}}]}}}, \"display\": {\"name\": \"Droplet CPU\", \"description\": \"CPU utilization across production Droplets.\"}, \"layouts\": [{\"kind\": \"Grid\", \"spec\": {\"items\": [{\"x\": 0, \"y\": 0, \"width\": 12, \"height\": 6, \"content\": {\"$ref\": \"#/spec/panels/cpu\"}}]}}], \"duration\": \"1h\", \"variables\": []}, \"apiVersion\": \"perses.dev/v1alpha1\"}",
+ * "created_at": "2026-10-29T10:21:44Z",
+ * "updated_at": "2026-10-29T10:21:44Z"
+ * }
+ * }
+ */
+ "application/json": {
+ dashboard: components["schemas"]["dashboard"];
+ };
+ };
+ };
+ /** @description Another dashboard in your team already uses the `spec.display.name` in the request. Dashboard names are unique within a team. */
+ dashboard_conflict: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "error": "dashboard name already exists",
+ * "code": 6,
+ * "message": "dashboard name already exists"
+ * }
+ */
+ "application/json": components["schemas"]["dashboard_error"];
+ };
+ };
+ /** @description The JSON Schema (draft 2020-12) that dashboard `spec` documents must satisfy. The response body is the schema document itself, not wrapped in an object. */
+ dashboard_schema_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "$schema": "https://json-schema.org/draft/2020-12/schema",
+ * "$id": "https://api.digitalocean.com/v2/insights/dashboards/schema",
+ * "title": "Dashboard",
+ * "type": "object",
+ * "additionalProperties": false,
+ * "required": [
+ * "kind",
+ * "spec"
+ * ],
+ * "properties": {
+ * "apiVersion": {
+ * "const": "perses.dev/v1alpha1"
+ * },
+ * "kind": {
+ * "const": "Dashboard"
+ * },
+ * "spec": {
+ * "type": "object",
+ * "required": [
+ * "display",
+ * "duration",
+ * "variables",
+ * "layouts",
+ * "panels"
+ * ]
+ * }
+ * }
+ * }
+ */
+ "application/json": {
+ [key: string]: unknown;
+ };
+ };
+ };
+ /** @description No dashboard with this identifier exists in your team. Deleted dashboards and dashboards owned by other teams also return this response. */
+ dashboard_not_found: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "error": "dashboard not found",
+ * "code": 5,
+ * "message": "dashboard not found"
+ * }
+ */
+ "application/json": components["schemas"]["dashboard_error"];
+ };
+ };
+ /** @description The dashboard was deleted. The body is an empty JSON object. */
+ dashboard_deleted_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /** @example {} */
+ "application/json": Record;
+ };
+ };
+ /** @description A list of notification channels. */
+ list_notification_channels_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "notification_channels": [
+ * {
+ * "id": "550e8400-e29b-41d4-a716-446655440000",
+ * "name": "On-call email",
+ * "channel_type": "CHANNEL_TYPE_EMAIL",
+ * "email": {
+ * "to": "alerts@example.com"
+ * },
+ * "usage": {
+ * "rule_count": 2
+ * },
+ * "created_at": "2026-09-03T10:15:00Z",
+ * "updated_at": "2026-09-03T10:15:00Z"
+ * }
+ * ],
+ * "links": {
+ * "pages": {
+ * "first": "https://api.digitalocean.com/v2/insights/notification-channels?page=1",
+ * "last": "https://api.digitalocean.com/v2/insights/notification-channels?page=1"
+ * }
+ * },
+ * "meta": {
+ * "total": 1
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["list_notification_channels"] & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description A single notification channel. */
+ notification_channel_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ notification_channel: components["schemas"]["notification_channel"];
+ };
+ };
+ };
+ /** @description Instant query result. */
+ prom_query: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["prom_query_response"];
+ };
+ };
+ /** @description Prometheus-style query error. */
+ prom_error: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["prom_error"];
+ };
+ };
+ /** @description Range query result. */
+ prom_query_range: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["prom_query_range_response"];
+ };
+ };
+ /** @description Label names. */
+ prom_labels: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["prom_string_list_response"];
+ };
+ };
+ /** @description Label values. */
+ prom_label_values: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "status": "success",
+ * "data": [
+ * "do_droplets_cpu_time",
+ * "do_droplets_memory_free"
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["prom_string_list_response"];
+ };
+ };
+ /** @description Matching series label sets. */
+ prom_series: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["prom_series_response"];
+ };
+ };
+ /** @description Logs search result. */
+ logs_search: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["logs_search_response"];
+ };
+ };
+ /** @description Traces search result. */
+ traces_search: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "data": [
+ * {
+ * "trace_id": "bef35030c4024f42fb88041fea062e97",
+ * "started": "2026-10-09T09:21:39.99Z",
+ * "service_name": "checkout-api",
+ * "duration_ns": 10000000,
+ * "status": "Ok",
+ * "span_count": 1,
+ * "span_names": [
+ * "checkout-api-root"
+ * ]
+ * }
+ * ],
+ * "pagination": {
+ * "has_more": false
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["traces_search_response"];
+ };
+ };
+ /** @description The request was rejected by the traces service, for example because the body is malformed, a field is out of range, or the time range is invalid. The body is a short plain-text message. */
+ traces_bad_request: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "text/plain": string;
+ };
+ };
+ /** @description The trace or region was not found. When the traces service finds no matching trace, the body is the plain-text message `trace not found`. When the region is unknown or does not serve traces, the API gateway returns a JSON error object. */
+ traces_not_found: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /** @example trace not found */
+ "text/plain": string;
+ /**
+ * @example {
+ * "id": "not_found",
+ * "message": "Your request could not be routed."
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The regional traces backend could not be reached. The body is a short plain-text message. */
+ traces_bad_gateway: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /** @example Bad Gateway */
+ "text/plain": string;
+ };
+ };
+ /** @description The trace and its spans. */
+ trace: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["traces_trace_response"];
+ };
+ };
+ /** @description Spans search result. */
+ spans_search: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["spans_search_response"];
+ };
+ };
+ /** @description A paginated list of resources and their signal enablement. */
+ list_resources: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "resources": [
+ * {
+ * "resource_urn": "do:droplet:12345",
+ * "product_type": "droplet",
+ * "region": "nyc3",
+ * "metrics": {
+ * "enabled": true,
+ * "effective_at": "2026-10-01T12:00:00Z"
+ * },
+ * "logs": {
+ * "enabled": true,
+ * "effective_at": "2026-10-01T12:00:00Z"
+ * },
+ * "traces": {
+ * "enabled": false,
+ * "effective_at": "2026-10-03T08:30:00Z"
+ * }
+ * },
+ * {
+ * "resource_urn": "do:kubernetes:8d91d5e0-1c2b-4f3a-9e7d-6a5b4c3d2e1f",
+ * "product_type": "kubernetes",
+ * "region": "sfo3",
+ * "metrics": {
+ * "enabled": true,
+ * "effective_at": "2026-09-20T09:15:00Z"
+ * }
+ * }
+ * ],
+ * "pagination": {
+ * "page": 1,
+ * "pages": 1,
+ * "per_page": 20,
+ * "total": 2
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["list_resources_response"];
+ };
+ };
+ /** @description The resource's current signal enablement. */
+ resource: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "resource": {
+ * "resource_urn": "do:droplet:12345",
+ * "product_type": "droplet",
+ * "region": "nyc3",
+ * "metrics": {
+ * "enabled": true,
+ * "effective_at": "2026-10-01T12:00:00Z"
+ * },
+ * "logs": {
+ * "enabled": true,
+ * "effective_at": "2026-10-01T12:00:00Z"
+ * },
+ * "traces": {
+ * "enabled": false,
+ * "effective_at": "2026-10-03T08:30:00Z"
+ * }
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["resource_response"];
+ };
+ };
+ /** @description A list of consent records. */
+ list_consents_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "consents": [
+ * {
+ * "id": 13,
+ * "team_id": 39449946,
+ * "source": "agent",
+ * "agent_id": "019fb3d2-8a56-72cc-8bf9-9d21510b2a99",
+ * "environment_id": "019fb3d2-8a56-72cc-8bf9-9d21510b2a99",
+ * "enabled": true,
+ * "updated_at": "2026-08-10T10:09:25.738533Z"
+ * },
+ * {
+ * "id": 6,
+ * "team_id": 39449946,
+ * "source": "agent",
+ * "agent_id": "019fb6b1-aad4-7d54-a74e-c5570d768148",
+ * "environment_id": "019fb6b1-aad4-7d54-a74e-c5570d768148",
+ * "enabled": true,
+ * "updated_at": "2026-08-07T10:10:16.385447Z"
+ * },
+ * {
+ * "id": 21,
+ * "team_id": 39449946,
+ * "source": "inference",
+ * "agent_id": "",
+ * "enabled": true,
+ * "updated_at": "2026-10-09T11:41:27.104822Z"
+ * }
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["list_consents"];
+ };
+ };
+ /** @description The team-level consent record was updated successfully. */
+ update_team_consent_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "consent": {
+ * "id": 21,
+ * "team_id": 39449946,
+ * "source": "inference",
+ * "agent_id": "",
+ * "enabled": true,
+ * "updated_at": "2026-10-09T11:41:27.104822Z"
+ * }
+ * }
+ */
+ "application/json": {
+ consent: components["schemas"]["consent_record"];
+ };
+ };
+ };
+ /** @description A single environment consent record. */
+ agent_consent_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": 13,
+ * "team_id": 39449946,
+ * "source": "agent",
+ * "agent_id": "019fb3d2-8a56-72cc-8bf9-9d21510b2a99",
+ * "environment_id": "019fb3d2-8a56-72cc-8bf9-9d21510b2a99",
+ * "enabled": true,
+ * "updated_at": "2026-08-10T10:09:25.738533Z"
+ * }
+ */
+ "application/json": components["schemas"]["agent_consent"];
+ };
+ };
+ /** @description The consent record was updated successfully. */
+ update_consent_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "consent": {
+ * "id": 13,
+ * "team_id": 39449946,
+ * "source": "agent",
+ * "agent_id": "019fb3d2-8a56-72cc-8bf9-9d21510b2a99",
+ * "environment_id": "019fb3d2-8a56-72cc-8bf9-9d21510b2a99",
+ * "enabled": true,
+ * "updated_at": "2026-10-07T11:06:32.280572Z"
+ * }
+ * }
+ */
+ "application/json": {
+ consent: components["schemas"]["consent_record"];
+ };
+ };
+ };
+ /** @description A paginated list of sessions. */
+ list_sessions_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "edges": [
+ * {
+ * "cursor": "eyJ0ZWFtX2lkIjozOTQ0OTk0Nn0=",
+ * "node": {
+ * "session_id": "01a0f3d5-d5f1-798a-9352-2cd8f8b81e78",
+ * "total_turns": 5,
+ * "started_at": "2026-09-15T14:30:00Z",
+ * "duration_seconds": 120.5,
+ * "signal_count": 3
+ * }
+ * }
+ * ],
+ * "page_info": {
+ * "has_next_page": false
+ * }
+ * }
+ */
+ "application/json": {
+ edges?: {
+ /**
+ * @description An opaque cursor for pagination.
+ * @example eyJ0ZWFtX2lkIjozOTQ0OTk0Nn0=
+ */
+ cursor?: string;
+ node?: components["schemas"]["session-2"];
+ }[];
+ page_info?: {
+ /** @description Whether there are more results after this page. */
+ has_next_page?: boolean;
+ };
+ };
+ };
+ };
+ /** @description A paginated list of session dialogues. */
+ list_dialogues_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "edges": [
+ * {
+ * "cursor": "eyJzZXF1ZW5jZSI6MX0=",
+ * "node": {
+ * "id": "01a0f3d6-1234-7abc-def0-123456789abc",
+ * "sequence": 1,
+ * "run_status": "completed",
+ * "user_message": "How do I create a Droplet?",
+ * "signals": [
+ * "SatisfactionConfirmation"
+ * ]
+ * }
+ * }
+ * ],
+ * "page_info": {
+ * "has_next_page": false
+ * }
+ * }
+ */
+ "application/json": {
+ edges?: {
+ /**
+ * @description An opaque cursor for pagination.
+ * @example eyJzZXF1ZW5jZSI6MX0=
+ */
+ cursor?: string;
+ node?: components["schemas"]["session_dialogue"];
+ }[];
+ page_info?: {
+ /** @description Whether there are more results after this page. */
+ has_next_page?: boolean;
+ };
+ };
+ };
+ };
+ /** @description A paginated list of export jobs. */
+ list_exports_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "edges": [
+ * {
+ * "cursor": "eyJ0ZWFtX2lkIjozOTQ0OTk0Nn0=",
+ * "node": {
+ * "export_id": "9f13c09c-c877-436b-9863-dcc39c9dd737",
+ * "type": "agent",
+ * "agent_id": "01a0f3d5-b58d-7c99-a743-7ca0397b7f5d",
+ * "environment_id": "01a0f3d5-b58d-7c99-a743-7ca0397b7f5d",
+ * "status": "complete",
+ * "filters": {
+ * "signal_type": [
+ * "ExecutionFailureToolNotFound"
+ * ],
+ * "session_ids": [
+ * "01a0f3d5-d5f1-798a-9352-2cd8f8b81e78"
+ * ]
+ * },
+ * "created_at": 1791036405,
+ * "completed_at": 1791036405,
+ * "expires_at": 1791641205,
+ * "error_message": null
+ * }
+ * }
+ * ],
+ * "page_info": {
+ * "has_next_page": false
+ * }
+ * }
+ */
+ "application/json": {
+ edges?: {
+ /**
+ * @description An opaque cursor for pagination.
+ * @example eyJ0ZWFtX2lkIjozOTQ0OTk0Nn0=
+ */
+ cursor?: string;
+ node?: components["schemas"]["export_job"];
+ }[];
+ page_info?: {
+ /** @description Whether there are more results after this page. */
+ has_next_page?: boolean;
+ };
+ };
+ };
+ };
+ /** @description A single export job. */
+ export_job_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "export_id": "9f13c09c-c877-436b-9863-dcc39c9dd737",
+ * "type": "agent",
+ * "agent_id": "01a0f3d5-b58d-7c99-a743-7ca0397b7f5d",
+ * "environment_id": "01a0f3d5-b58d-7c99-a743-7ca0397b7f5d",
+ * "status": "complete",
+ * "filters": {
+ * "signal_type": [
+ * "ExecutionFailureToolNotFound"
+ * ],
+ * "session_ids": [
+ * "01a0f3d5-d5f1-798a-9352-2cd8f8b81e78"
+ * ]
+ * },
+ * "created_at": 1791036405,
+ * "completed_at": 1791036405,
+ * "expires_at": 1791641205,
+ * "error_message": null
+ * }
+ */
+ "application/json": components["schemas"]["export_job"];
+ };
+ };
+ /** @description Available export filter options. */
+ export_options_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "filters": {
+ * "signal_type": [
+ * "DisengagementEscalation",
+ * "DisengagementNegativeStance",
+ * "DisengagementQuit",
+ * "EnvironmentExhaustionApiError",
+ * "ExecutionFailureToolNotFound",
+ * "ExecutionLoopsRetry",
+ * "MisalignmentCorrection",
+ * "SatisfactionConfirmation",
+ * "SatisfactionGratitude",
+ * "SatisfactionSuccess",
+ * "StagnationRepetition"
+ * ]
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["export_options"];
+ };
+ };
+ /** @description A download URL for a completed export. */
+ export_download_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "download_url": "https://example-bucket.nyc3.digitaloceanspaces.com/exports/3f2a1c4e-5b6d-4e7f-8a9b-0c1d2e3f4a5b/9f13c09c-c877-436b-9863-dcc39c9dd737.json.gz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Signature=EXAMPLE",
+ * "expires_at": 1791390640
+ * }
+ */
+ "application/json": components["schemas"]["export_download"];
+ };
+ };
+ /** @description A paginated list of deletion jobs. */
+ list_deletions_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "edges": [
+ * {
+ * "cursor": "eyJkIjoiMDFKOVpYME41UTdNMkszUjRTNVQ2VjdXOFgifQ==",
+ * "node": {
+ * "team_id": 12345678,
+ * "deletion_id": "01J9ZX0N5Q7M2K3R4S5T6V7W8X",
+ * "type": "agent",
+ * "agent_id": "01a10d3f-2c09-764f-99f8-458e521627f3",
+ * "environment_id": "01a10d3f-2c09-764f-99f8-458e521627f3",
+ * "status": "running",
+ * "error_message": null,
+ * "created_at": 1791036405,
+ * "started_at": 1791036410,
+ * "completed_at": null
+ * }
+ * },
+ * {
+ * "cursor": "eyJkIjoiMDFKOVpXN0E4QjlDMEQxRTJGM0c0SDVKNksifQ==",
+ * "node": {
+ * "team_id": 12345678,
+ * "deletion_id": "01J9ZW7A8B9C0D1E2F3G4H5J6K",
+ * "type": "inference",
+ * "status": "complete",
+ * "error_message": null,
+ * "created_at": 1790950005,
+ * "started_at": 1790950010,
+ * "completed_at": 1790950605
+ * }
+ * }
+ * ],
+ * "page_info": {
+ * "has_next_page": false
+ * }
+ * }
+ */
+ "application/json": {
+ edges?: {
+ /**
+ * @description An opaque cursor for pagination.
+ * @example eyJkIjoiMDFKOVpYME41UTdNMkszUjRTNVQ2VjdXOFgifQ==
+ */
+ cursor?: string;
+ node?: components["schemas"]["deletion_job"];
+ }[];
+ page_info?: {
+ /** @description Whether there are more results after this page. */
+ has_next_page?: boolean;
+ /**
+ * @description Cursor of the last item. Pass as `after` to fetch the next page. Present only when there are more results.
+ * @example eyJkIjoiMDFKOVpXN0E4QjlDMEQxRTJGM0c0SDVKNksifQ==
+ */
+ end_cursor?: string;
+ };
+ };
+ };
+ };
+ /** @description A single deletion job. */
+ deletion_job_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "team_id": 12345678,
+ * "deletion_id": "01J9ZX0N5Q7M2K3R4S5T6V7W8X",
+ * "type": "agent",
+ * "agent_id": "01a10d3f-2c09-764f-99f8-458e521627f3",
+ * "environment_id": "01a10d3f-2c09-764f-99f8-458e521627f3",
+ * "status": "running",
+ * "error_message": null,
+ * "created_at": 1791036405,
+ * "started_at": 1791036410,
+ * "completed_at": null
+ * }
+ */
+ "application/json": components["schemas"]["deletion_job"];
+ };
+ };
+ /** @description The deletion job was accepted and will be processed asynchronously. */
+ deletion_job_accepted_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "team_id": 12345678,
+ * "deletion_id": "01J9ZX0N5Q7M2K3R4S5T6V7W8X",
+ * "type": "agent",
+ * "agent_id": "01a10d3f-2c09-764f-99f8-458e521627f3",
+ * "environment_id": "01a10d3f-2c09-764f-99f8-458e521627f3",
+ * "status": "queued",
+ * "error_message": null,
+ * "created_at": 1791036405,
+ * "started_at": null,
+ * "completed_at": null
+ * }
+ */
+ "application/json": components["schemas"]["deletion_job"];
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `kubernetes_clusters`.
+ * This will be set to an array of objects, each of which will contain the
+ * standard Kubernetes cluster attributes.
+ */
+ all_clusters: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ kubernetes_clusters?: components["schemas"]["cluster_read"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `kubernetes_cluster`. The
+ * value of this will be an object containing the standard attributes of a
+ * Kubernetes cluster.
+ *
+ * The IP address and cluster API server endpoint will not be available until the
+ * cluster has finished provisioning. The initial value of the cluster's
+ * `status.state` attribute will be `provisioning`. When the cluster is ready,
+ * this will transition to `running`.
+ */
+ cluster_create: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ kubernetes_cluster?: components["schemas"]["cluster"];
+ };
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `kubernetes_cluster`. The
+ * value of this will be an object containing the standard attributes of a
+ * Kubernetes cluster.
+ */
+ existing_cluster: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ kubernetes_cluster?: components["schemas"]["cluster_read"];
+ };
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `kubernetes_cluster`. The
+ * value of this will be an object containing the standard attributes of a
+ * Kubernetes cluster.
+ */
+ updated_cluster: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ kubernetes_cluster?: components["schemas"]["cluster"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object containing `load_balancers`, `volumes`, and `volume_snapshots` keys. Each will be set to an array of objects containing the standard attributes for associated resources. */
+ associated_kubernetes_resources_list: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["associated_kubernetes_resources"];
+ };
+ };
+ /** @description A kubeconfig file for the cluster in YAML format. */
+ kubeconfig: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example apiVersion: v1
+ * clusters:
+ * - cluster:
+ * certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURUxCUUF3TXpFVk1CTUdBMVVFQ2ftTVJHbG4KYVhSaGJFOWpaV0Z1TVJvd0dUSREERXhGck9ITmhZWE1nUTJ4MWMzUmxjaUJEUVRBZUZ3MHhPREV4TVRVeApOakF3TWpCYUZ3MHpPREV4TVRVeE5qQXdNakJhTURNeEZUQVRCZ05WQkFvVERFUnBaMmwwWVd4UFkyVmhiakVhCk1CZ0dBMVVFQXhNUmF6aHpZV0Z6SUVOc2RYTjBaWElnUTBFd2dnRWlNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0SUIKRHdBd2dnRUtBb0lCQVFDK2Z0L05Nd3pNaUxFZlFvTFU2bDgrY0hMbWttZFVKdjl4SmlhZUpIU0dZOGhPZFVEZQpGd1Zoc0pDTnVFWkpJUFh5Y0orcGpkU3pYc1lFSE03WVNKWk9xNkdaYThPMnZHUlJjN2ZQaUFJaFBRK0ZpUmYzCmRhMHNIUkZlM2hCTmU5ZE5SeTliQ2VCSTRSUlQrSEwzRFR3L2I5KytmRkdZQkRoVTEvTTZUWWRhUHR3WU0rdWgKb1pKcWJZVGJZZTFhb3R1ekdnYUpXaXRhdFdHdnNJYU8xYWthdkh0WEIOOHFxa2lPemdrSDdvd3RVY3JYM05iawozdmlVeFU4TW40MmlJaGFyeHNvTnlwdGhHOWZLMi9OdVdKTXJJS2R0Mzhwc0tkdDBFbng0MWg5K0dsMjUzMzhWCk1mdjBDVDF6SG1JanYwblIrakNkcFd0eFVLRyt0YjYzZFhNbkFnTUJBQUdqUlRCRE1BNEdBMVVkRHdFQi93UUUKQXdJQmhqQVNCZ05WSFJNQkFmOEVDREFHQVFIL0FnRUFNQjBHQTFVZERnUVdCQlNQMmJrOXJiUGJpQnZOd1Z1NQpUL0dwTFdvOTdEQU5CZ2txaGtpRzl3MEJBUXNGQUFPQ0FRRUFEVjFMSGZyc1JiYVdONHE5SnBFVDMxMlluRDZ6Cm5rM3BpU1ZSYVEvM09qWG8wdHJ6Z2N4KzlVTUQxeDRHODI1RnYxc0ROWUExZEhFc2dHUmNyRkVmdGZJQWUrUVYKTitOR3NMRnQrOGZrWHdnUlpoNEU4ZUJsSVlrdEprOWptMzFMT25vaDJYZno0aGs3VmZwYkdvVVlsbmVoak1JZApiL3ZMUk05Y2EwVTJlYTB5OTNveE5pdU9PcXdrZGFjU1orczJtb3JNdGZxc3VRSzRKZDA3SENIbUFIeWpXT2k4ClVOQVUyTnZnSnBKY2RiZ3VzN2I5S3ppR1ZERklFUk04cEo4U1Nob1ZvVFFJd3d5Y2xVTU9EUUJreFFHOHNVRk8KRDE3ZjRod1dNbW5qVHY2MEJBM0dxaTZRcjdsWVFSL3drSEtQcnZjMjhoNXB0NndPWEY1b1M4OUZkUT09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
+ * server: https://bd5f5959-5e1e-4205-a714-a914373942af.k8s.ondigitalocean.com
+ * name: do-nyc1-prod-cluster-01
+ * contexts:
+ * - context:
+ * cluster: do-nyc1-prod-cluster-01
+ * user: do-nyc1-prod-cluster-01-admin
+ * name: do-nyc1-prod-cluster-01
+ * current-context: do-nyc1-prod-cluster-01
+ * kind: Config
+ * preferences: {}
+ * users:
+ * - name: do-nyc1-prod-cluster-01-admin
+ * user:
+ * token: 403d085aaa80102277d8da97ffd2db2b6a4f129d0e2146098fdfb0cec624babc
+ */
+ "application/yaml": unknown;
+ };
+ };
+ /** @description A JSON object containing credentials for a cluster. */
+ credentials: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["credentials"];
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called
+ * `available_upgrade_versions`. The value of this will be an array of objects,
+ * representing the upgrade versions currently available for this cluster.
+ *
+ * If the cluster is up-to-date (i.e. there are no upgrades currently available)
+ * `available_upgrade_versions` will be `null`.
+ */
+ available_upgrades: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ available_upgrade_versions?: components["schemas"]["kubernetes_version"][] | null;
+ };
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `node_pools`. This will
+ * be set to an array of objects, each of which will contain the standard node
+ * pool attributes.
+ */
+ all_node_pools: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "node_pools": [
+ * {
+ * "id": "cdda885e-7663-40c8-bc74-3a036c66545d",
+ * "name": "frontend-pool",
+ * "size": "s-1vcpu-2gb",
+ * "count": 3,
+ * "tags": [
+ * "production",
+ * "web-team",
+ * "k8s",
+ * "k8s:bd5f5959-5e1e-4205-a714-a914373942af",
+ * "k8s:worker"
+ * ],
+ * "labels": null,
+ * "auto_scale": false,
+ * "min_nodes": 0,
+ * "max_nodes": 0,
+ * "nodes": [
+ * {
+ * "id": "478247f8-b1bb-4f7a-8db9-2a5f8d4b8f8f",
+ * "name": "adoring-newton-3niq",
+ * "status": {
+ * "state": "running"
+ * },
+ * "droplet_id": "205545370",
+ * "created_at": "2018-11-15T16:00:11Z",
+ * "updated_at": "2018-11-15T16:00:11Z"
+ * },
+ * {
+ * "id": "ad12e744-c2a9-473d-8aa9-be5680500eb1",
+ * "name": "adoring-newton-3nim",
+ * "status": {
+ * "state": "running"
+ * },
+ * "droplet_id": "205545371",
+ * "created_at": "2018-11-15T16:00:11Z",
+ * "updated_at": "2018-11-15T16:00:11Z"
+ * },
+ * {
+ * "id": "e46e8d07-f58f-4ff1-9737-97246364400e",
+ * "name": "adoring-newton-3ni7",
+ * "status": {
+ * "state": "running"
+ * },
+ * "droplet_id": "205545372",
+ * "created_at": "2018-11-15T16:00:11Z",
+ * "updated_at": "2018-11-15T16:00:11Z"
+ * }
+ * ]
+ * },
+ * {
+ * "id": "f49f4379-7e7f-4af5-aeb6-0354bd840778",
+ * "name": "backend-pool",
+ * "size": "g-4vcpu-16gb",
+ * "count": 2,
+ * "tags": [
+ * "production",
+ * "web-team",
+ * "k8s",
+ * "k8s:bd5f5959-5e1e-4205-a714-a914373942af",
+ * "k8s:worker"
+ * ],
+ * "labels": {
+ * "service": "backend",
+ * "priority": "high"
+ * },
+ * "auto_scale": true,
+ * "min_nodes": 2,
+ * "max_nodes": 5,
+ * "nodes": [
+ * {
+ * "id": "3385619f-8ec3-42ba-bb23-8d21b8ba7518",
+ * "name": "affectionate-nightingale-3nif",
+ * "status": {
+ * "state": "running"
+ * },
+ * "droplet_id": "205545373",
+ * "created_at": "2018-11-15T16:00:11Z",
+ * "updated_at": "2018-11-15T16:00:11Z"
+ * },
+ * {
+ * "id": "4b8f60ff-ba06-4523-a6a4-b8148244c7e6",
+ * "name": "affectionate-nightingale-3niy",
+ * "status": {
+ * "state": "running"
+ * },
+ * "droplet_id": "205545374",
+ * "created_at": "2018-11-15T16:00:11Z",
+ * "updated_at": "2018-11-15T16:00:11Z"
+ * }
+ * ]
+ * }
+ * ]
+ * }
+ */
+ "application/json": {
+ node_pools?: components["schemas"]["kubernetes_node_pool"][];
+ };
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `node_pool`. The value of
+ * this will be an object containing the standard attributes of a node pool.
+ */
+ node_pool_create: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ node_pool?: components["schemas"]["kubernetes_node_pool"];
+ };
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `node_pool`. The value
+ * of this will be an object containing the standard attributes of a node pool.
+ */
+ existing_node_pool: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ node_pool?: components["schemas"]["kubernetes_node_pool"];
+ };
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `node_pool`. The value of
+ * this will be an object containing the standard attributes of a node pool.
+ */
+ node_pool_update: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ node_pool?: components["schemas"]["kubernetes_node_pool"];
+ };
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `kubernetes_cluster_user`
+ * containing the username and in-cluster groups that it belongs to.
+ */
+ cluster_user: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["user-2"];
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `options` which contains
+ * `regions`, `versions`, and `sizes` objects listing the available options and
+ * the matching slugs for use when creating a new cluster.
+ */
+ all_options: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["kubernetes_options"];
+ };
+ };
+ /**
+ * @description The response is a JSON object which contains the diagnostics on Kubernetes
+ * objects in the cluster. Each diagnostic will contain some metadata information
+ * about the object and feedback for users to act upon.
+ */
+ clusterlint_results: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["clusterlint_results"];
+ };
+ };
+ /** @description The response is a JSON object with a key called `run_id` that you can later use to fetch the run results. */
+ clusterlint_run: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ /**
+ * @description ID of the clusterlint run that can be used later to fetch the diagnostics.
+ * @example 50c2f44c-011d-493e-aee5-361a4a0d1844
+ */
+ run_id?: string;
+ };
+ };
+ };
+ /** @description The response is a JSON object which contains status messages for a Kubernetes cluster. Each message object contains a timestamp and an indication of what issue the cluster is experiencing at a given time. */
+ status_messages: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ messages?: components["schemas"]["status_messages"][];
+ };
+ };
+ };
+ /** @description A JSON object with a key of `load_balancers`. This will be set to an array of objects, each of which will contain the standard load balancer attributes. */
+ all_load_balancers: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ load_balancers?: components["schemas"]["load_balancer"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description Accepted */
+ load_balancer_create: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ load_balancer?: components["schemas"]["load_balancer"];
+ };
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `load_balancer`. The
+ * value of this will be an object that contains the standard attributes
+ * associated with a load balancer
+ */
+ existing_load_balancer: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ load_balancer?: components["schemas"]["load_balancer"];
+ };
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `load_balancer`. The
+ * value of this will be an object containing the standard attributes of a
+ * load balancer.
+ */
+ updated_load_balancer: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ load_balancer?: components["schemas"]["load_balancer"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `microvms`. The value will be an array of MicroVM objects. */
+ all_microvms: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ microvms?: components["schemas"]["microvm"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `microvm`. A MicroVM created from a container image has `state` set to `creating` and an empty endpoint hostname until provisioning finishes. A MicroVM created from a checkpoint is usually already `running`. */
+ microvm_created: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ microvm?: components["schemas"]["microvm"];
+ };
+ };
+ };
+ /** @description The request was malformed, failed validation, or is not allowed in the resource's current state. */
+ errors_bad_request: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["microvm_error"];
+ };
+ };
+ /** @description The token does not have the required scope, or your team has reached a limit. */
+ errors_forbidden: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "code": "PERMISSION_DENIED",
+ * "message": "permission denied"
+ * }
+ */
+ "application/json": components["schemas"]["microvm_error"];
+ };
+ };
+ /** @description The response will be a JSON object with the default region, sizes, prices, account limits, and features available to your team. */
+ microvm_options: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["microvm_options"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `checkpoints`. The value will be an array of checkpoint objects, newest first. */
+ all_checkpoints: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ checkpoints?: components["schemas"]["checkpoint-2"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `checkpoint`. The value will be an object containing the standard attributes associated with a checkpoint. */
+ checkpoint: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ checkpoint?: components["schemas"]["checkpoint-2"];
+ };
+ };
+ };
+ /** @description The MicroVM or checkpoint does not exist, or it belongs to another team. */
+ errors_not_found: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "code": "NOT_FOUND",
+ * "message": "MicroVM not found"
+ * }
+ */
+ "application/json": components["schemas"]["microvm_error"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `microvm`. The value will be an object containing the standard attributes associated with a MicroVM. */
+ microvm: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ microvm?: components["schemas"]["microvm"];
+ };
+ };
+ };
+ /** @description The request conflicts with the resource's current state. */
+ errors_conflict: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "code": "CONFLICT",
+ * "message": "another MicroVM in the region already has the requested name"
+ * }
+ */
+ "application/json": components["schemas"]["microvm_error"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `url`. The value will be the added URL object. */
+ microvm_url: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ url?: components["schemas"]["microvm_url"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `access_tokens`. The value will be an array of access token objects, oldest first. Token values are never returned. */
+ all_access_tokens: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ access_tokens?: components["schemas"]["microvm_access_token"][];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `access_token`. The `token` value is shown once, in this response only. */
+ access_token_created: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ access_token?: components["schemas"]["microvm_access_token"] & {
+ /**
+ * @description The token value. Use it as a bearer token against the MicroVM's endpoint. Shown once, in this response only.
+ * @example dop_v1_2f8e1c3a9b4d6e7f8a0b1c2d3e4f5a6b7c91
+ */
+ token: string;
+ };
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `microvm`. The value is the MicroVM after the pause or resume, without its tags; read tags with GET `/v2/microvms/{microvm_id}`. */
+ microvm_lifecycle: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ microvm?: components["schemas"]["microvm_base"];
+ };
+ };
+ };
+ /** @description The command ran. HTTP 200 is returned even when the command itself fails. Check `exit_code` for the command's result. */
+ exec: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["exec_response"];
+ };
+ };
+ /** @description The command did not reach the workload, for example because the container is not running. */
+ bad_gateway: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "code": "UNAVAILABLE",
+ * "message": "workload unavailable"
+ * }
+ */
+ "application/json": components["schemas"]["microvm_error"];
+ };
+ };
+ /** @description The connection is upgraded to a WebSocket. Binary frames from the client are terminal input, and text frames are resize messages such as `{"resize":{"rows":40,"cols":120}}`. Binary frames from the server are terminal output with `stdout` and `stderr` combined. Text frames from the server are control messages: `{"status":{"state":"resuming"}}` while a paused MicroVM resumes, `{"error":{"code":"...","message":"..."}}` when the console fails to connect or start (with `code` set to `dial_failed`, `start_failed`, or `agent_error`), and `{"exit":{"code":0}}` when the shell exits. The server sends a ping every 30 seconds. A console closes after 4 hours, or after 30 minutes with no input and no output. A message larger than 1 MiB closes the console with WebSocket code 1009. */
+ console_upgrade: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description The connection is upgraded to a WebSocket. Binary frames in both directions are the raw bytes of the TCP connection. Text frames from the server are control messages: `{"status":{"state":"connected"}}` when the connection to the port is open, and `{"error":{"code":"...","message":"..."}}` when it fails (with `code` set to `dial_failed`, `start_failed`, or `agent_error`, for example when nothing listens on the port). The server closes the WebSocket after an error, or when the program in the MicroVM closes the connection. Text frames from the client are ignored. The server sends a ping every 30 seconds and closes a port forward whose client stops answering. A port forward closes after 4 hours. A message larger than 1 MiB closes the port forward with WebSocket code 1009. */
+ port_forward_upgrade: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description The raw file content. `Content-Length` and `X-Checksum-Sha256` describe the file as it was when the transfer began. */
+ file_content: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ "X-Checksum-Sha256": components["headers"]["x-checksum-sha256"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/octet-stream": string;
+ };
+ };
+ /** @description The file operation is not possible in the MicroVM's current state. `WORKLOAD_NOT_RUNNING`: the workload container is not running. `NOT_A_REGULAR_FILE`: the path is a directory, device, socket, or symlink. `AGENT_UNSUPPORTED`: the MicroVM runs an image that predates file transfer; recreate it. */
+ file_conflict: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["microvm_error"];
+ };
+ };
+ /** @description The file exceeds 64 MiB, or the guest disk is full. */
+ errors_payload_too_large: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "code": "PAYLOAD_TOO_LARGE",
+ * "message": "file exceeds the 67108864 byte limit"
+ * }
+ */
+ "application/json": components["schemas"]["microvm_error"];
+ };
+ };
+ /** @description The transfer did not finish within 10 minutes. On upload the target file is unchanged. On download, if the body had already started, the stream ends short of `Content-Length` instead. */
+ file_timeout: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "code": "FILE_TIMEOUT",
+ * "message": "file transfer timed out"
+ * }
+ */
+ "application/json": components["schemas"]["microvm_error"];
+ };
+ };
+ /** @description The file was written. The `X-Checksum-Sha256` header repeats the digest from the body. */
+ file_info: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ "X-Checksum-Sha256": components["headers"]["x-checksum-sha256"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["file_info"];
+ };
+ };
+ /** @description The request has no `Content-Length` header. */
+ length_required: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "code": "LENGTH_REQUIRED",
+ * "message": "Content-Length is required"
+ * }
+ */
+ "application/json": components["schemas"]["microvm_error"];
+ };
+ };
+ /** @description The request body does not match the `sha256` query parameter. The target file is unchanged. */
+ checksum_mismatch: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "code": "CHECKSUM_MISMATCH",
+ * "message": "sha256 mismatch: expected e3b0c442…, got 9f86d081…"
+ * }
+ */
+ "application/json": components["schemas"]["microvm_error"];
+ };
+ };
+ /** @description A list of alert policies. */
+ list_alert_policy_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["list_alert_policy"] & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description An alert policy. */
+ alert_policy_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ policy?: components["schemas"]["alert_policy"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `data` and `status`. */
+ droplet_bandwidth_metric_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["metrics-2"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `data` and `status`. */
+ droplet_cpu_metric_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["metrics-2"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `data` and `status`. */
+ droplet_filesystem_metric_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["metrics-2"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `data` and `status`. */
+ metric_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["metrics-2"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `data` and `status`. */
+ app_metric_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["metrics-2"];
+ };
+ };
+ /** @description The response is a JSON object with a `destinations` key. */
+ monitoring_list_destinations: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ destinations?: components["schemas"]["destination_omit_credentials"][];
+ };
+ };
+ };
+ /** @description The response is a JSON object with a `destination` key. */
+ destination: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ destination?: components["schemas"]["destination_omit_credentials"];
+ };
+ };
+ };
+ /** @description The response is a JSON object with a `sinks` key. */
+ list_sinks: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ /** @description List of sinks identified by their URNs. */
+ sinks?: components["schemas"]["sinks_response"][];
+ };
+ };
+ };
+ /** @description The response is a JSON object with a `sink` key. */
+ sinks: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ sink?: components["schemas"]["sinks_response"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `shares`. The value will be an array of objects, each containing the standard attributes associated with an NFS share. */
+ nfs_list: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["nfs_list_response"];
+ };
+ };
+ /** @description A JSON response containing details about the new NFS share. */
+ nfs_create: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["nfs_create_response"];
+ };
+ };
+ /** @description Size must be greater than or equal to 50Gib */
+ "bad_request-2": {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "bad_request",
+ * "message": "The value for 'size_gib' must be greater than or equal to 50Gib."
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `share`. The value will be an object containing the standard attributes associated with an NFS share. */
+ nfs_get: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["nfs_get_response"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `action`. */
+ nfs_actions: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["nfs_actions_response"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `snapshots`. The value will be an array of objects, each containing the standard attributes associated with an NFS snapshot. */
+ nfs_snapshot_list: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["nfs_snapshot_list_response"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `snapshot`. The value will be an object containing the standard attributes associated with an NFS snapshot. */
+ nfs_snapshot_get: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["nfs_snapshot_get_response"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `access_points`. The value will be an array of objects containing the standard attributes associated with NFS access points. */
+ access_point_list: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["access_point_list_response"];
+ };
+ };
+ /** @description The request could not be processed due to invalid arguments or an ineligible access point state. */
+ access_point_bad_request: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["nfs_api_error"];
+ };
+ };
+ /** @description The response will be a JSON object containing the created access point and an action object. */
+ access_point_create: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["access_point_action_response"];
+ };
+ };
+ /** @description The request could not be completed because an access point with the same name or path already exists on this share. */
+ access_point_conflict: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["nfs_api_error"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `access_point`. The value will be an object containing the standard attributes associated with an NFS access point. */
+ access_point_get: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["access_point_get_response"];
+ };
+ };
+ /** @description The response will be a JSON object containing the deleted access point (marked as DELETED) and an action object indicating the delete operation. */
+ access_point_delete: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["access_point_action_response"];
+ };
+ };
+ /** @description The response will be a JSON object with a `team` key containing the created team and an optional `invitations` key mapping invitee email addresses to invitation status objects. */
+ create_team: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "team": {
+ * "uuid": "4e1bfbc3-dc3e-41f2-a18f-1b4d7ba71679",
+ * "name": "production"
+ * },
+ * "invitations": {
+ * "member@example.com": {
+ * "status": "ok"
+ * },
+ * "biller@example.com": {
+ * "status": "ok"
+ * }
+ * }
+ * }
+ */
+ "application/json": {
+ team: components["schemas"]["create_team"];
+ /**
+ * @description A map of invitee email addresses to invitation status results.
+ * @example {
+ * "member@example.com": {
+ * "status": "ok"
+ * },
+ * "biller@example.com": {
+ * "status": "ok"
+ * }
+ * }
+ */
+ invitations?: {
+ [key: string]: components["schemas"]["team_invitation_status"];
+ };
+ };
+ };
+ };
+ /** @description The request could not be completed because a required precondition was not met. */
+ "precondition_failed-2": {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "precondition_failed",
+ * "message": "teamgroup limit reached"
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The response will be a JSON object with a `teams` key. This will be set to an array of team objects belonging to the organization. */
+ list_teams: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "teams": [
+ * {
+ * "id": 4126873,
+ * "uuid": "4e1bfbc3-dc3e-41f2-a18f-1b4d7ba71679",
+ * "name": "production",
+ * "email": "sammy@example.com",
+ * "member_count": 3,
+ * "status": "joined",
+ * "joined_organization_at": "2024-06-12T15:04:05Z",
+ * "company": "DigitalOcean"
+ * },
+ * {
+ * "id": 4126874,
+ * "uuid": "addb4547-6bab-419a-8542-76263a033cf6",
+ * "name": "staging",
+ * "email": "staging@example.com",
+ * "member_count": 2,
+ * "status": "joined",
+ * "joined_organization_at": "2024-07-01T10:00:00Z"
+ * }
+ * ]
+ * }
+ */
+ "application/json": {
+ teams: components["schemas"]["organization_team"][];
+ };
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a `partner_attachments` key
+ * that contains an array of all partner attachments
+ */
+ all_partner_attachments: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ partner_attachments?: components["schemas"]["partner_attachment"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /**
+ * @description The response will be a JSON object with details about the partner attachment
+ * including attached VPC network IDs and BGP configuration information
+ */
+ single_partner_attachment: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ partner_attachment?: components["schemas"]["partner_attachment"];
+ };
+ };
+ };
+ /**
+ * @description The response will be a JSON object with details about the partner attachment
+ * and `"state": "DELETING"` to indicate that the partner attachment is being deleted.
+ */
+ single_partner_attachment_deleting: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ partner_attachment?: components["schemas"]["partner_attachment"];
+ };
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a `bgp_auth_key` object containing a
+ * `value` field with the BGP auth key value
+ */
+ single_partner_attachment_bgp_auth_key: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ bgp_auth_key?: Record;
+ };
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a `remote_routes` array containing
+ * information on all the remote routes associated with the partner attachment
+ */
+ all_partner_attachment_remote_routes: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ remote_routes?: components["schemas"]["partner_attachment_remote_route"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a `service_key` object containing
+ * the service key value and creation information
+ */
+ single_partner_attachment_service_key: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ service_key?: Record;
+ };
+ };
+ };
+ /** @description The response is an empty JSON object. */
+ empty_json_object: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /** @example {} */
+ "application/json": Record;
+ };
+ };
+ /** @description The response will be a JSON object with a key called `projects`. The value of this will be an object with the standard project attributes */
+ projects_list: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ projects?: components["schemas"]["project"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `project`. The value of this will be an object with the standard project attributes */
+ existing_project: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ project?: components["schemas"]["project"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `project`. The value of this will be an object with the standard project attributes */
+ default_project: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ project?: components["schemas"]["project"];
+ };
+ };
+ };
+ /** @description Only an empty project can be deleted. */
+ "precondition_failed-3": {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "precondition_failed",
+ * "message": "cannot delete a project with resources. move or remove the resources first"
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `resources`.
+ * The value of this will be an object with the standard resource attributes.
+ *
+ * Only resources that you are authorized to see will be returned.
+ */
+ resources_list: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ /** @description The resources that are assigned to this project. Only resources that you are authorized to see will be returned. */
+ resources?: components["schemas"]["resource"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `resources`.
+ * The value of this will be an object with the standard resource attributes.
+ *
+ * Only resources that you are authorized to see will be returned.
+ */
+ assigned_resources_list: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ /** @description All resources, including the ones added in the request, that are assigned to the project. Only resources that you are authorized to see will be returned. */
+ resources?: components["schemas"]["resource"][];
+ };
+ };
+ };
+ /** @description A JSON object with a key set to `regions`. The value is an array of `region` objects, each of which contain the standard `region` attributes. */
+ all_regions: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ regions: components["schemas"]["region"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with the key `registry` containing information about your registry. */
+ all_registries_info: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ registries?: components["schemas"]["registry"][];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with the key `registry` containing information about your registry. */
+ multiregistry_info: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ registry?: components["schemas"]["multiregistry"];
+ };
+ };
+ };
+ /** @description A Docker `config.json` file for the container registry. */
+ docker_credentials: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["docker_credentials"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `subscription` containing information about your subscription. */
+ subscription_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ subscription?: components["schemas"]["subscription"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `options` which contains a key called `subscription_tiers` listing the available tiers. */
+ registry_options_response: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "options": {
+ * "available_regions": [
+ * "nyc3",
+ * "sfo3",
+ * "ams3",
+ * "sgp1",
+ * "fra1"
+ * ],
+ * "subscription_tiers": [
+ * {
+ * "name": "Starter",
+ * "slug": "starter",
+ * "included_repositories": 1,
+ * "included_storage_bytes": 524288000,
+ * "allow_storage_overage": false,
+ * "included_bandwidth_bytes": 524288000,
+ * "monthly_price_in_cents": 0,
+ * "eligible": false,
+ * "eligibility_reasons": [
+ * "OverRepositoryLimit"
+ * ]
+ * },
+ * {
+ * "name": "Basic",
+ * "slug": "basic",
+ * "included_repositories": 5,
+ * "included_storage_bytes": 5368709120,
+ * "allow_storage_overage": true,
+ * "included_bandwidth_bytes": 5368709120,
+ * "monthly_price_in_cents": 500,
+ * "eligible": true
+ * },
+ * {
+ * "name": "Professional",
+ * "slug": "professional",
+ * "included_repositories": 0,
+ * "included_storage_bytes": 107374182400,
+ * "allow_storage_overage": true,
+ * "included_bandwidth_bytes": 107374182400,
+ * "monthly_price_in_cents": 2000,
+ * "eligible": true
+ * }
+ * ]
+ * }
+ * }
+ */
+ "application/json": {
+ options?: {
+ /**
+ * @example [
+ * "nyc3"
+ * ]
+ */
+ available_regions?: string[];
+ subscription_tiers?: (components["schemas"]["subscription_tier_base"] & components["schemas"]["subscription_tier_extended"])[];
+ };
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key of `garbage_collection`. This will be a json object with attributes representing the currently-active garbage collection. */
+ garbage_collection: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ garbage_collection?: components["schemas"]["garbage_collection"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key of `garbage_collections`. This will be set to an array containing objects representing each past garbage collection. Each will contain the standard Garbage Collection attributes. */
+ garbage_collections: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "garbage_collections": [
+ * {
+ * "uuid": "eff0feee-49c7-4e8f-ba5c-a320c109c8a8",
+ * "registry_name": "example",
+ * "status": "requested",
+ * "created_at": "2020-10-30T21:03:24.000Z",
+ * "updated_at": "2020-10-30T21:03:44.000Z",
+ * "blobs_deleted": 42,
+ * "freed_bytes": 667
+ * }
+ * ],
+ * "meta": {
+ * "total": 1
+ * }
+ * }
+ */
+ "application/json": {
+ garbage_collections?: components["schemas"]["garbage_collection"][];
+ };
+ };
+ };
+ /** @description The response body will be a JSON object with a key of `repositories`. This will be set to an array containing objects each representing a repository. */
+ all_repositories_v2: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ repositories?: components["schemas"]["repository_v2"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response body will be a JSON object with a key of `tags`. This will be set to an array containing objects each representing a tag. */
+ repository_tags: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ tags?: components["schemas"]["repository_tag"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response body will be a JSON object with a key of `manifests`. This will be set to an array containing objects each representing a manifest. */
+ repository_manifests: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ manifests?: components["schemas"]["repository_manifest"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with the key `registry` containing information about your registry. */
+ registry_info: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ registry?: components["schemas"]["registry"];
+ };
+ };
+ };
+ /** @description There are more than one registries in the DO account. */
+ registries_precondition_fail: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "precondition_failed",
+ * "message": "This API is not supported if you have created multiple registries. Please use \n‘/v2/registries/{registry_name}’ instead. Refer to \nhttps://docs.digitalocean.com/reference/api/digitalocean/#tag/Container-Registry for more info."
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description There are more than one registries in the DO account. */
+ registries_over_limit: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "precondition_failed",
+ * "message": "registry is not eligible for tier because: [OverRegistryLimit]"
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The response body will be a JSON object with a key of `repositories`. This will be set to an array containing objects each representing a repository. */
+ all_repositories: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ repositories?: components["schemas"]["repository"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description A JSON object with an `neighbor_ids` key. */
+ droplet_neighbors_ids: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["neighbor_ids"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `reserved_ips`. This will be set to an array of reserved IP objects, each of which will contain the standard reserved IP attributes */
+ reserved_ip_list: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ reserved_ips?: components["schemas"]["reserved_ip"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `reserved_ip`. The value of this will be an object that contains the standard attributes associated with a reserved IP.
+ * When assigning a reserved IP to a Droplet at same time as it created, the response's `links` object will contain links to both the Droplet and the assignment action. The latter can be used to check the status of the action.
+ */
+ reserved_ip_created: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ reserved_ip?: components["schemas"]["reserved_ip"];
+ links?: {
+ droplets?: components["schemas"]["action_link"][];
+ actions?: components["schemas"]["action_link"][];
+ };
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `reserved_ip`. The value of this will be an object that contains the standard attributes associated with a reserved IP. */
+ reserved_ip: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ reserved_ip?: components["schemas"]["reserved_ip"];
+ };
+ };
+ };
+ /** @description The results will be returned as a JSON object with an `actions` key. This will be set to an array filled with action objects containing the standard reserved IP action attributes. */
+ reserved_ip_actions: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ actions?: components["schemas"]["action"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be an object with a key called `action`. The value of this will be an object that contains the standard reserved IP action attributes. */
+ reserved_ip_action: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ action?: components["schemas"]["action"] & {
+ /**
+ * Format: uuid
+ * @description The UUID of the project to which the reserved IP currently belongs.
+ * @example 746c6152-2fa2-11ed-92d3-27aaa54e4988
+ */
+ project_id?: string;
+ };
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `reserved_ipv6s`. This will be set to an array of reserved IP objects, each of which will contain the standard reserved IP attributes */
+ reserved_ipv6_list: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["reserved_ipv6_list"] & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with key `reserved_ipv6`. The value of this will be an object that contains the standard attributes associated with a reserved IPv6. */
+ reserved_ipv6_create: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ reserved_ipv6?: {
+ /**
+ * Format: ipv6
+ * @description The public IP address of the reserved IPv6. It also serves as its identifier.
+ * @example 2409:40d0:f7:1017:74b4:3a96:105e:4c6e
+ */
+ ip?: string;
+ /**
+ * @description The region that the reserved IPv6 is reserved to. When you query a reserved IPv6,the region_slug will be returned.
+ * @example nyc3
+ */
+ region_slug?: string;
+ /**
+ * Format: date-time
+ * @example 2024-11-20T11:08:30Z
+ */
+ reserved_at?: string;
+ };
+ };
+ };
+ };
+ /** @description The response will be a JSON object with key `reserved_ipv6`. The value of this will be an object that contains the standard attributes associated with a reserved IPv6. */
+ reserved_ipv6: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ reserved_ipv6?: components["schemas"]["reserved_ipv6"];
+ };
+ };
+ };
+ /** @description The response will be an object with a key called `action`. The value of this will be an object that contains the standard reserved IP action attributes. */
+ reserved_ipv6_action: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ action?: components["schemas"]["action"] & {
+ /**
+ * @description The ID of the resource that the action is being taken on.
+ * @example 758604968
+ */
+ resource_id?: number;
+ /**
+ * @description The type of resource that the action is being taken on.
+ * @example reserved_ipv6
+ */
+ resource_type?: string;
+ /**
+ * @description The slug identifier for the region the resource is located in.
+ * @example nyc3
+ */
+ region_slug?: string;
+ };
+ };
+ };
+ };
+ /** @description List of BYOIP prefixes as an array of BYOIP prefix JSON objects */
+ byoip_prefix_list: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "byoip_prefixes": [
+ * {
+ * "uuid": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
+ * "status": "active",
+ * "region": "nyc3",
+ * "prefix": "203.0.113.0/24",
+ * "validations": [],
+ * "failure_reason": "",
+ * "advertised": true,
+ * "locked": false,
+ * "project_id": "12345678-1234-1234-1234-123456789012"
+ * },
+ * {
+ * "uuid": "123e4567-e89b-12d3-a456-426614174001",
+ * "status": "in_progress",
+ * "region": "sfo2",
+ * "prefix": "203.1.113.0/24",
+ * "validations": [],
+ * "failure_reason": "",
+ * "advertised": false,
+ * "locked": false,
+ * "project_id": "12345678-1234-1234-1234-123456789012"
+ * }
+ * ],
+ * "links": {},
+ * "meta": {
+ * "total": 2
+ * }
+ * }
+ */
+ "application/json": {
+ byoip_prefixes?: components["schemas"]["byoip_prefix"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description BYOIP prefix request accepted, response will contain the details of the created prefix. */
+ byoip_prefix_create: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "byoip_prefix": {
+ * "uuid": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
+ * "status": "in_progress",
+ * "region": "nyc3"
+ * }
+ * }
+ */
+ "application/json": {
+ /**
+ * @description The unique identifier for the BYOIP prefix
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ uuid?: string;
+ /**
+ * @description The region where the prefix is created
+ * @example nyc3
+ */
+ region?: string;
+ /**
+ * @description The status of the BYOIP prefix
+ * @example in_progress
+ */
+ status?: string;
+ };
+ };
+ };
+ /** @description Details of the requested BYOIP prefix */
+ byoip_prefix_get: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "byoip_prefix": {
+ * "uuid": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
+ * "status": "active",
+ * "region": "nyc3",
+ * "prefix": "203.0.113.0/24",
+ * "validations": [],
+ * "failure_reason": "",
+ * "advertised": true,
+ * "locked": false,
+ * "project_id": "12345678-1234-1234-1234-123456789012"
+ * }
+ * }
+ */
+ "application/json": {
+ byoip_prefix?: components["schemas"]["byoip_prefix"];
+ };
+ };
+ };
+ /** @description Details of the updated BYOIP prefix */
+ byoip_prefix_update: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "byoip_prefix": {
+ * "uuid": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
+ * "status": "active",
+ * "region": "nyc3",
+ * "prefix": "203.0.113.0/24",
+ * "validations": [],
+ * "failure_reason": "",
+ * "advertised": true,
+ * "locked": false,
+ * "project_id": "12345678-1234-1234-1234-123456789012"
+ * }
+ * }
+ */
+ "application/json": {
+ byoip_prefix?: components["schemas"]["byoip_prefix"];
+ };
+ };
+ };
+ /** @description List of IP addresses assigned to resources (such as Droplets) in a BYOIP prefix */
+ byoip_prefix_list_resources: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "ips": [
+ * {
+ * "id": 11111023,
+ * "byoip": "203.0.113.2",
+ * "region": "nyc3",
+ * "resource": "do:droplet:fa3c10b-58cc-4372-a567-0e02b2c3d479",
+ * "assigned_at": "2025-06-25T12:00:00Z"
+ * },
+ * {
+ * "id": 11111024,
+ * "byoip": "203.0.113.3",
+ * "region": "nyc3",
+ * "resource": "do:droplet:fa3c10b-58cc-4372-a567-0e02b2c3d480",
+ * "assigned_at": "2025-06-25T13:00:00Z"
+ * }
+ * ],
+ * "links": {},
+ * "meta": {
+ * "total": 2
+ * }
+ * }
+ */
+ "application/json": {
+ ips?: components["schemas"]["byoip_prefix_resource"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `scans`. This will be set to an array of objects, each of which will contain the standard attributes associated with a scan. */
+ scans: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ scans?: components["schemas"]["scan"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `scan`. */
+ scan: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ scan?: components["schemas"]["scan"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `affected_resources`. */
+ affected_resources: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ affected_resources?: components["schemas"]["affected_resource"][];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with scan settings. */
+ settings: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["settings"];
+ };
+ };
+ /** @description The response will be a JSON object with updated tier coverage. */
+ tier_coverage: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ tier_coverage?: {
+ [key: string]: {
+ /**
+ * @example [
+ * "do:droplet:fe3a2fd7-903d-46e6-ada3-3e4f285fb89d"
+ * ]
+ */
+ resources?: string[];
+ /**
+ * @example [
+ * "production"
+ * ]
+ */
+ tags?: string[];
+ };
+ };
+ };
+ };
+ };
+ /** @description The response will be a JSON object containing suppressed resources. */
+ suppressed_resources: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["suppressed_resource_root"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `secrets`. This will be set to an array of objects, each of which will contain the standard attributes associated with a secret. */
+ secrets: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ secrets?: components["schemas"]["secret_list_item"][];
+ meta?: {
+ /**
+ * Format: int32
+ * @description The current page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * Format: int32
+ * @description The total number of pages.
+ * @example 5
+ */
+ pages?: number;
+ /**
+ * Format: int32
+ * @description The total number of secrets across all regions.
+ * @example 42
+ */
+ total?: number;
+ };
+ links?: {
+ pages?: {
+ /**
+ * @description URL for the first page of results.
+ * @example https://api.digitalocean.com/v2/security/secrets?page=1&per_page=20
+ */
+ first?: string;
+ /**
+ * @description URL for the previous page of results.
+ * @example https://api.digitalocean.com/v2/security/secrets?page=1&per_page=20
+ */
+ prev?: string;
+ /**
+ * @description URL for the next page of results.
+ * @example https://api.digitalocean.com/v2/security/secrets?page=3&per_page=20
+ */
+ next?: string;
+ /**
+ * @description URL for the last page of results.
+ * @example https://api.digitalocean.com/v2/security/secrets?page=5&per_page=20
+ */
+ last?: string;
+ };
+ };
+ /**
+ * @description Regions that could not be queried while building the list response.
+ * @example [
+ * "sfo3"
+ * ]
+ */
+ unavailable_regions?: string[];
+ };
+ };
+ };
+ /** @description The response will be a JSON object containing the secret name, region, and version. */
+ create_secret: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["create_secret_response"];
+ };
+ };
+ /** @description The response will be a JSON object containing the secret and its values. */
+ secret: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["secret"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `versions`. */
+ secret_versions: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ versions?: components["schemas"]["secret_version"][];
+ };
+ };
+ };
+ /** @description The response will be a JSON object containing the secret metadata. Secret values are not included. */
+ secret_list_item: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["secret_list_item"];
+ };
+ };
+ /** @description A JSON object with a key called `sizes`. The value of this will be an array of `size` objects each of which contain the standard size attributes. */
+ all_sizes: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ sizes: components["schemas"]["size"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description A JSON object with a key of `snapshots`. */
+ snapshots: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ snapshots?: components["schemas"]["snapshots"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description A JSON object with a key called `snapshot`. */
+ snapshots_existing: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ snapshot?: components["schemas"]["snapshots"];
+ };
+ };
+ };
+ /** @description Bad Request */
+ not_a_snapshot: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "bad_request",
+ * "message": "the resource is not a snapshot",
+ * "request_id": "bbd8d7d4-2beb-4be1-a374-338e6165e32d"
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Bad Request */
+ invalid_region: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "bad_request",
+ * "message": "the specified region is not valid",
+ * "request_id": "bbd8d7d4-2beb-4be1-a374-338e6165e32d"
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Unprocessable Entity */
+ cannot_delete_original_region: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "unprocessable_entity",
+ * "message": "The copy in the snapshot's original region cannot be deleted individually. To delete the snapshot and all of its copies, use DELETE /v2/snapshots/.",
+ * "request_id": "bbd8d7d4-2beb-4be1-a374-338e6165e32d"
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description A JSON response containing a list of keys. */
+ key_list: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ keys?: components["schemas"]["key"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description A JSON response containing details about the new key. */
+ key_create: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ key?: components["schemas"]["key_create_response"];
+ };
+ };
+ };
+ /** @description Cannot mix fullaccess permission with scoped permissions */
+ "bad_request-3": {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "bad_request",
+ * "message": "cannot mix fullaccess permission with scoped permissions."
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description A JSON response containing details about the key. */
+ key_get: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ keys?: components["schemas"]["key"][];
+ };
+ };
+ };
+ /** @description The response will be a JSON object */
+ key_update: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ key?: components["schemas"]["key"];
+ };
+ };
+ };
+ /** @description To list all of your tags, you can send a `GET` request to `/v2/tags`. */
+ tags_all: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ tags?: components["schemas"]["tags"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called tag. The value of this will be a tag object containing the standard tag attributes */
+ tags_new: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ tag?: components["schemas"]["tags"];
+ };
+ };
+ };
+ /** @description Bad Request */
+ tags_bad_request: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ "x-request-id": components["headers"]["x-request-id"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error_with_root_causes"];
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `tag`.
+ * The value of this will be a tag object containing the standard tag attributes.
+ *
+ * Tagged resources will only include resources that you are authorized to see.
+ */
+ tags_existing: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ tag?: components["schemas"]["tags"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `volumes`. This will be set to an array of volume objects, each of which will contain the standard volume attributes. */
+ volumes: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ /** @description Array of volumes. */
+ volumes: components["schemas"]["volume_full"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `volume`. The value will be an object containing the standard attributes associated with a volume. */
+ volume: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ volume?: components["schemas"]["volume_full"];
+ };
+ };
+ };
+ /** @description The response will be an object with a key called `action`. The value of this will be an object that contains the standard volume action attributes */
+ volumeAction: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ action?: components["schemas"]["volumeAction"];
+ };
+ };
+ };
+ /** @description You will get back a JSON object that has a `snapshot` key. This will contain the standard snapshot attributes */
+ volumeSnapshot: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ snapshot?: components["schemas"]["snapshots"];
+ };
+ };
+ };
+ /** @description The response will be an object with a key called `action`. The value of this will be an object that contains the standard volume action attributes. */
+ volumeActions: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ actions?: components["schemas"]["volumeAction"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description You will get back a JSON object that has a `snapshots` key. This will be set to an array of snapshot objects, each of which contain the standard snapshot attributes */
+ volumeSnapshots: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ snapshots?: components["schemas"]["snapshots"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `vpcs`. This will be set to an array of objects, each of which will contain the standard attributes associated with a VPC. */
+ all_vpcs: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ vpcs?: components["schemas"]["vpc"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `vpc`. The value of this will be an object that contains the standard attributes associated with a VPC. */
+ existing_vpc: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ vpc?: components["schemas"]["vpc"];
+ };
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called members. This will be set
+ * to an array of objects, each of which will contain the standard attributes
+ * associated with a VPC member.
+ *
+ * Only resources that you are authorized to see will be returned (e.g. to see Droplets,
+ * you must have `droplet:read`).
+ */
+ vpc_members: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ members?: components["schemas"]["vpc_member"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `peerings`. This will be set to an array of objects, each of which will contain the standard attributes associated with a VPC peering. */
+ vpc_peerings: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ peerings?: components["schemas"]["vpc_peering"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `peering`, containing the standard attributes associated with a VPC peering. */
+ vpc_peering: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ peering?: components["schemas"]["vpc_peering"];
+ };
+ };
+ };
+ /** @description A list of routes. */
+ all_vpc_routes: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "routes": [
+ * {
+ * "id": "f0e1d2c3-b4a5-6789-0fed-cba987654321",
+ * "type": "STATIC",
+ * "destination_cidr": "0.0.0.0/0",
+ * "target_urns": [
+ * "do:nat_gateway:14aa1d1b-e6ab-4ccb-bb10-dade56fcb8ec"
+ * ],
+ * "modifiable": false,
+ * "created_at": "2026-01-14T10:00:00Z"
+ * }
+ * ],
+ * "links": {
+ * "pages": {
+ * "next": "https://api.digitalocean.com/v2/vpcs/997615ce-132d-4bae-9270-9ee21b395e5d/routes?page=2&per_page=20"
+ * }
+ * },
+ * "meta": {
+ * "total": 1
+ * }
+ * }
+ */
+ "application/json": {
+ routes?: components["schemas"]["route"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description A list of VPC subnets. */
+ all_vpc_subnets: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ vpc_subnet?: components["schemas"]["vpc_subnet"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description A VPC subnet. */
+ single_vpc_subnet: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ vpc_subnet?: components["schemas"]["vpc_subnet"];
+ };
+ };
+ };
+ /**
+ * @description A list of resources that are members of the VPC subnet. Only resources that
+ * the caller is authorized to view are returned.
+ */
+ vpc_subnet_members: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "members": [
+ * {
+ * "urn": "do:droplet:4126873",
+ * "name": "ubuntu-s-1vcpu-1gb-nyc3-01",
+ * "created_at": "2026-01-14T10:00:00Z"
+ * },
+ * {
+ * "urn": "do:loadbalancer:fb294d78-d193-4cb2-8737-ea620993591b",
+ * "name": "nyc3-load-balancer-01",
+ * "created_at": "2026-01-14T10:05:00Z"
+ * }
+ * ],
+ * "links": {},
+ * "meta": {
+ * "total": 2
+ * }
+ * }
+ */
+ "application/json": {
+ members?: components["schemas"]["vpc_member"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description A list of routes. */
+ all_vpc_subnet_routes: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "routes": [
+ * {
+ * "id": "f0e1d2c3-b4a5-6789-0fed-cba987654321",
+ * "type": "STATIC",
+ * "destination_cidr": "0.0.0.0/0",
+ * "target_urns": [
+ * "do:nat_gateway:14aa1d1b-e6ab-4ccb-bb10-dade56fcb8ec"
+ * ],
+ * "modifiable": false,
+ * "created_at": "2026-01-14T10:00:00Z"
+ * }
+ * ],
+ * "links": {
+ * "pages": {
+ * "next": "https://api.digitalocean.com/v2/vpcs/997615ce-132d-4bae-9270-9ee21b395e5d/subnets/4de7ac8b-495b-4884-9a69-1050c6793cd6/routes?page=2&per_page=20"
+ * }
+ * },
+ * "meta": {
+ * "total": 1
+ * }
+ * }
+ */
+ "application/json": {
+ routes?: components["schemas"]["route"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description A route. */
+ single_route: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "route": {
+ * "id": "f0e1d2c3-b4a5-6789-0fed-cba987654321",
+ * "type": "STATIC",
+ * "destination_cidr": "0.0.0.0/0",
+ * "target_urns": [
+ * "do:droplet:4126873"
+ * ],
+ * "modifiable": true,
+ * "created_at": "2026-01-14T10:05:00Z"
+ * }
+ * }
+ */
+ "application/json": {
+ route?: components["schemas"]["route"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `vpc_peerings`. This will be set to an array of objects, each of which will contain the standard attributes associated with a VPC peering. */
+ all_vpc_peerings: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ vpc_peerings?: components["schemas"]["vpc_peering"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `vpc_peering`. The value of this will be an object that contains the standard attributes associated with a VPC peering. */
+ provisioning_vpc_peering: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ vpc_peering?: components["schemas"]["vpc_peering"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `vpc_peering`. The value of this will be an object that contains the standard attributes associated with a VPC peering. */
+ active_vpc_peering: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ vpc_peering?: components["schemas"]["vpc_peering"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `vpc_peering`. The value of this will be an object that contains the standard attributes associated with a VPC peering. */
+ deleting_vpc_peering: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ vpc_peering?: components["schemas"]["vpc_peering"];
+ };
+ };
+ };
+ /** @description A JSON object with a key of `vpc_nat_gateways`. */
+ vpc_nat_gateways: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ vpc_nat_gateways?: components["schemas"]["vpc_nat_gateway_get"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `vpc_nat_gateway`. This will be
+ * set to a JSON object that contains the standard VPC NAT gateway attributes.
+ */
+ vpc_nat_gateway_create: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ vpc_nat_gateway?: components["schemas"]["vpc_nat_gateway_create"];
+ };
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `vpc_nat_gateway`. This will be
+ * set to a JSON object that contains the standard VPC NAT gateway attributes.
+ */
+ vpc_nat_gateway: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ vpc_nat_gateway?: components["schemas"]["vpc_nat_gateway_get"];
+ };
+ };
+ };
+ /**
+ * @description The response will be a JSON object with a key called `vpc_nat_gateway`. This will be
+ * set to a JSON object that contains the standard VPC NAT gateway attributes.
+ */
+ vpc_nat_gateway_update: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ vpc_nat_gateway?: components["schemas"]["vpc_nat_gateway_update"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `checks`. This will be set to an array of objects, each of which will contain the standard attributes associated with an uptime check */
+ all_checks: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ checks?: components["schemas"]["check"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `check`. The value of this will be an object that contains the standard attributes associated with an uptime check. */
+ existing_check: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ check?: components["schemas"]["check"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `state`. The value of this will be an object that contains the standard attributes associated with an uptime check's state. */
+ existing_check_state: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ state?: components["schemas"]["state"];
+ };
+ };
+ };
+ /** @description The response will be a JSON object with a key called `alerts`. This will be set to an array of objects, each of which will contain the standard attributes associated with an uptime alert. */
+ all_alerts: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ alerts?: components["schemas"]["alert"][];
+ } & components["schemas"]["pages_pagination"] & components["schemas"]["meta"];
+ };
+ };
+ /** @description The response will be a JSON object with a key called `alert`. The value of this will be an object that contains the standard attributes associated with an uptime alert. */
+ existing_alert: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": {
+ alert?: components["schemas"]["alert"];
+ };
+ };
+ };
+ };
+ parameters: {
+ /**
+ * @description Actor ID: a session `actor_id` or a connection `user_id`, 1 to 64 characters from `[A-Za-z0-9._-]`.
+ * @example alice
+ */
+ actor_id: string;
+ /**
+ * @description Optional provider slug, matched case-insensitively. Omit to list credentials for all providers.
+ * @example example-provider
+ */
+ provider_credential_provider: string;
+ /**
+ * @description Provider credential ID returned when the credential was created.
+ * @example example-credential-id
+ */
+ provider_credential_id: string;
+ /**
+ * @description Optional provider slug, matched exactly.
+ * @example jira
+ */
+ connection_provider: string;
+ /**
+ * @description Optional substring of `user_id`. It must use the `user_id` alphabet, `[A-Za-z0-9._-]`.
+ * @example alice
+ */
+ connection_user_id: string;
+ /**
+ * @description pending|active|revoked|expired. List results always omit revoked connections, including when this filter is revoked.
+ * @example active
+ */
+ connection_status: "pending" | "active" | "expired";
+ /**
+ * @description `created_at`, provider, `user_id`, or status. Defaults to provider, then `user_id`.
+ * @example created_at
+ */
+ connection_sort: "created_at" | "provider" | "user_id" | "status";
+ /**
+ * @description asc (the default) or desc.
+ * @example desc
+ */
+ sort_direction: "asc" | "desc";
+ /**
+ * @description 1-based page number. Values below 1 are treated as 1.
+ * @example 1
+ */
+ page_connections: number;
+ /**
+ * @description Page size. Defaults to 20; values above 100 are capped at 100.
+ * @example 20
+ */
+ per_page: number;
+ /**
+ * @description Connection ID.
+ * @example 39f9f768-a7f9-4c91-9557-3328c53dd054
+ */
+ connection_id: string;
+ /**
+ * @description Server identifier (`serverRef`) of one of your team's MCP servers.
+ * @example docs
+ */
+ server_ref: string;
+ /**
+ * @description At most one of tool or `tool_id`, as on create. With one set, the list is the published views plus your team's own on that tool version. With neither, it is every live view your team owns plus every published view on a tool version your catalog exposes, across tools.
+ * @example exa_web_search
+ */
+ output_view_tool: string;
+ /**
+ * @description Opaque ID of the tool version; see tool.
+ * @example tul_exa_web_search
+ */
+ output_view_tool_id: string;
+ /**
+ * @description Page size, 1 to 100. Defaults to 20 when omitted or 0; other values are rejected with 400.
+ * @example 20
+ */
+ page_size: number;
+ /**
+ * @description `next_page_token` from the previous response. Valid only with the same tool selection; otherwise the request is rejected with 400.
+ * @example ZXhhX3dlYl9zZWFyY2hAMQ
+ */
+ page_token: string;
+ /**
+ * @description Output view ID.
+ * @example ov_4f0c2a9d8e1b47c6a3d5f7e9b1c3a5d7
+ */
+ view_id: string;
+ /**
+ * @description Page size; defaults to 20 when omitted. Supplied values outside 1 through 100 return 400. Sizes are not clamped.
+ * @example 20
+ */
+ endpoint_parameters_page_size: number;
+ /**
+ * @description Opaque next_page_token from the previous response. Omit for the first page. Malformed tokens or replay with a different team, caller visibility, normalized filters, resource kind, or parent endpoint return 400. Tokens contain no full URNs or database row IDs.
+ * @example
+ */
+ endpoint_parameters_page_token: string;
+ /**
+ * @description Filter by endpoint name.
+ * @example support-agent
+ */
+ name: string;
+ /**
+ * @description Filter by the endpoint's actor binding.
+ * @example alice
+ */
+ endpoint_parameters_actor_id: string;
+ /**
+ * @description Text matched case-insensitively as a substring of the endpoint name, endpoint ID, actor_id, or agent name. Leading and trailing whitespace is trimmed; an empty query returns 400 invalid_search_query.
+ * @example support
+ */
+ search_query: string;
+ /**
+ * @description Exact actor_id filter, combined with query. Omitted or empty means all actors.
+ * @example alice
+ */
+ search_actor_id: string;
+ /**
+ * @description Endpoint UUID only. Malformed IDs or full URNs return 400 invalid_endpoint_id.
+ * @example 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13
+ */
+ endpoint_id: components["schemas"]["endpoint_id"];
+ /**
+ * @description Composite version ID only. Invalid IDs return 400 invalid_endpoint_version_id.
+ * @example 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13.v1
+ */
+ version_id: components["schemas"]["endpoint_version_id"];
+ /**
+ * @description Optional `actor_id`, matched exactly.
+ * @example alice
+ */
+ end_user_id: string;
+ /**
+ * @description Matched case-insensitively as a substring of name, `actor_id`, `session_urn`, or `agentName`. Empty matches every session you can see. Results are ordered by match quality (an exact name, `session_urn`, or `actor_id` match, then a prefix, then a substring), then by name, across the whole result set, so a client must not re-sort a page to rank it.
+ * @example search
+ */
+ parameters_search_query: string;
+ /**
+ * @description `end_user_id`, when set, is an exact filter on `actor_id` (the same filter as on the session list) and combines with query as AND.
+ * @example alice
+ */
+ end_user_id_sessions_search: string;
+ /**
+ * @description `next_page_token` from the previous response. Valid only with the same query and `end_user_id`; otherwise the request is rejected with 400.
+ * @example ZXhhX3dlYl9zZWFyY2hAMQ
+ */
+ page_token_sessions_search: string;
+ /**
+ * @description URN of the session, for example `do:managed_agent_session:`.
+ * @example do:managed_agent_session:2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b
+ */
+ session_urn: string;
+ /**
+ * @description active (default), deprecated, or all. Case-insensitive.
+ * @example active
+ */
+ toolbelt_status: "active" | "deprecated" | "all";
+ /**
+ * @description Matched case-insensitively as a substring of name, `display_name`, or description. Empty matches every toolbelt of your team.
+ * @example search
+ */
+ search_query_toolbelts_search: string;
+ /**
+ * @description `next_page_token` from the previous response. Valid only with the same query and status; otherwise the request is rejected with 400.
+ * @example ZXhhX3dlYl9zZWFyY2hAMQ
+ */
+ page_token_toolbelts_search: string;
+ /**
+ * @description Toolbelt name.
+ * @example search-toolbelt
+ */
+ toolbelt_name: string;
+ /**
+ * @description Version number to read. Empty returns the latest version.
+ * @example 1
+ */
+ toolbelt_version: string;
+ /**
+ * @description Page size for `tool_details` only; toolbelt.tools always lists every member. Defaults to 20; values above 100 are capped at 100.
+ * @example 20
+ */
+ page_size_toolbelts: number;
+ /**
+ * @description `next_page_token` from the previous response, to continue `tool_details`. Treat it as opaque, and send it only with the same toolbelt, version, and search.
+ * @example ZXhhX3dlYl9zZWFyY2hAMQ
+ */
+ page_token_toolbelts: string;
+ /**
+ * @description Restricts `tool_details` to members whose tool slug, name, title, description, provider, or category contains this value, case-insensitively. It does not filter toolbelt.tools. This is a substring match, not a filter expression.
+ * @example search
+ */
+ toolbelt_search: string;
+ /**
+ * @description Version number to read. Empty reads the latest version.
+ * @example 1
+ */
+ toolbelt_version_toolbelts_providers: string;
+ /**
+ * @description Restricts providers whose ID, name, or description contains this value, case-insensitively.
+ * @example search
+ */
+ toolbelt_search_toolbelts_providers: string;
+ /**
+ * @description A provider ID from the toolbelt's provider list, or `_legacy` for members recorded without a provider. Matched exactly.
+ * @example exa
+ */
+ toolbelt_provider: string;
+ /**
+ * @description Restricts tools whose slug, name, title, description, provider, or category contains this value, case-insensitively, within the provider only.
+ * @example search
+ */
+ toolbelt_search_toolbelts_providers_tools: string;
+ /**
+ * @description Toolbelt name, from the path.
+ * @example search-toolbelt
+ */
+ toolbelt_name_toolbelts_tools_add: string;
+ /**
+ * @description Restricts the page to one provider. It accepts the provider ID the catalog returns, including the `serverRef` of one of your team's MCP servers.
+ * @example exa
+ */
+ toolkit_id: string;
+ /**
+ * @description 1-based page index; values below 1 are treated as 1. A page past the end returns an empty tools list with the real total.
+ * @example 1
+ */
+ page_tools: number;
+ /**
+ * @description Page size. Defaults to 100 when omitted or 0; values above 100 are capped at 100.
+ * @example 100
+ */
+ tools_per_page: number;
+ /**
+ * @description Optional provider ID, matched exactly, to return only that provider's tools.
+ * @example exa
+ */
+ health_provider: string;
+ /**
+ * @description Window to aggregate over. Defaults to twenty-four hours.
+ *
+ * - `HEALTH_WINDOW_UNSPECIFIED`: Twenty-four hours.
+ * - `HEALTH_WINDOW_ONE_HOUR`: One hour; history points are 10 minutes.
+ * - `HEALTH_WINDOW_TWENTY_FOUR_HOURS`: Twenty-four hours; history points are 1 hour.
+ * - `HEALTH_WINDOW_SEVEN_DAYS`: Seven days; history points are 6 hours.
+ * - `HEALTH_WINDOW_THIRTY_DAYS`: Thirty days; history points are 24 hours.
+ * @example HEALTH_WINDOW_SEVEN_DAYS
+ */
+ health_window: "HEALTH_WINDOW_ONE_HOUR" | "HEALTH_WINDOW_TWENTY_FOUR_HOURS" | "HEALTH_WINDOW_SEVEN_DAYS" | "HEALTH_WINDOW_THIRTY_DAYS";
+ /**
+ * @description Optional provider ID, matched exactly, to return only that provider.
+ * @example exa
+ */
+ health_provider_tools_health_providers: string;
+ /**
+ * @description Catalog tool slug, for example `exa_search`. Required.
+ * @example exa_web_search
+ */
+ tool_slug: string;
+ /**
+ * @description Additionally returns the window split into resolution-aligned points (the history field below).
+ * @example true
+ */
+ include_history: boolean;
+ /**
+ * @description Matched case-insensitively as a substring of name, `display_name`, or description. It does not match the titles of the tools a provider owns: "providers owning a tool that matches" is a tool search grouped by the provider field of each result.
+ * @example search
+ */
+ search_query_tools_providers_search: string;
+ /**
+ * @description `next_page_token` from the previous response. Valid only with the same query; otherwise the request is rejected with 400.
+ * @example ZXhhX3dlYl9zZWFyY2hAMQ
+ */
+ page_token_tools_providers_search: string;
+ /**
+ * @description Matched case- and accent-insensitively as a substring of the tool's name, title, description, category, provider ID, or tool slug. Empty matches every tool your team can use.
+ * @example search
+ */
+ search_query_tools_search: string;
+ /**
+ * @description Restricts results to these provider IDs, OR'd together. Repeat the parameter to select several. An unknown ID matches nothing.
+ * @example [
+ * "exa"
+ * ]
+ */
+ search_tools_provider: string[];
+ /**
+ * @description Restricts results to the members of that toolbelt of your team at its latest version, combined with query and provider as AND. Members are matched at the version the toolbelt pins, which is the same set and the same versions `GET /v2/action-gateway/toolbelts/{name}` reports. An unknown or deleted toolbelt returns 404 rather than an empty page.
+ * @example search-toolbelt
+ */
+ search_tools_toolbelt: string;
+ /**
+ * @description A `next_page_token` from the preceding response. It is pinned to the query and filters that produced it: replaying one against a different search is rejected with 400, not a silent restart from the top.
+ * @example ZXhhX3dlYl9zZWFyY2hAMQ
+ */
+ page_token_tools_search: string;
+ /**
+ * @description User ID prefix to return. An empty value returns all users.
+ * @example al
+ */
+ users_user_id: string;
+ /**
+ * @description `user_id`|`created_at`|`session_count`|`connection_count`. `created_at` is the earliest creation time among the user's sessions, connections, and limit overrides. Defaults to `created_at`.
+ * @example session_count
+ */
+ users_sort: "created_at" | "user_id" | "session_count" | "connection_count";
+ /**
+ * @description asc|desc. Defaults to desc.
+ * @example desc
+ */
+ sort_direction_users: "asc" | "desc";
+ /**
+ * @description User ID.
+ * @example alice
+ */
+ user_id: string;
+ /**
+ * @description The session to act in: the UUID at the end of the session's `sessionUrn` and `mcpUrl`. For a pinned endpoint version, use the session UUID at the end of its `mcp_url`, not the composite version ID. The session must belong to the authenticated user and team. Send either this header or `X-Endpoint-Id`, not both; both returns 400. With neither, the request uses your default endpoint when default endpoints are enabled for your team, and otherwise returns 403.
+ * @example 2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b
+ */
+ session_id_header: string;
+ /**
+ * @description The endpoint to act in, as a lowercase endpoint UUID. The request uses the endpoint's current head version, which the response reports in `X-Action-Gateway-Endpoint-Version`. The endpoint must belong to the authenticated user and team; an unknown or inaccessible endpoint returns 404. Send either this header or `X-Session-Id`, not both. A malformed value or more than one value returns 400.
+ * @example 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13
+ */
+ endpoint_id_header: string;
+ /**
+ * @description The actor you expect the session or endpoint to be bound to. It does not select an actor or connections; those come from the session's or endpoint's `actor_id`. When sent, it must equal that binding. A different value, including any value for a target with no actor, returns 403 with the message "The session is not bound to the request's actor."
+ * @example alice
+ */
+ actor_id_header: string;
+ /**
+ * @description The number of tools returned per page, from 1 to 100. Defaults to 20 when omitted. Other values are rejected with 400.
+ * @example 20
+ */
+ session_tools_page_size: number;
+ /**
+ * @description The `next_page_token` from the previous response. A token is only valid for the session that received it.
+ * @example eyJ2IjoxLCJhZnRlciI6ImV4YV93ZWJfc2VhcmNoIiwiZnAiOiI5YzFlNWI3YTNkMmY0ZTYwIn0
+ */
+ session_tools_page_token: string;
+ /**
+ * @description The `ETag` from a previous response for the same page. If the page is unchanged, the response is `304 Not Modified` with no body.
+ * @example "3f2a1b0c9d8e7f6a5b4c3d2e1f0a9b8c"
+ */
+ if_none_match: string;
+ /**
+ * @description The session UUID: the value at the end of the session's `sessionUrn` and `mcpUrl`. The session must belong to the authenticated user and team.
+ * @example 2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b
+ */
+ session_id: string;
+ /**
+ * @description The `approval_id` from a tool result whose `_meta.status` is `requires_approval`.
+ * @example 7d3c2b1a-9e8f-4a6b-8c5d-4e3f2a1b0c9d
+ */
+ approval_id: string;
+ /**
+ * @description Restrict results to a certain type of 1-Click.
+ * @example kubernetes
+ */
+ oneClicks_type: "droplet" | "kubernetes";
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ parameters_per_page: number;
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page: number;
+ /**
+ * @description Either the ID or the fingerprint of an existing SSH key.
+ * @example 512189
+ */
+ ssh_key_identifier: components["schemas"]["ssh_key_id"] | components["schemas"]["ssh_key_fingerprint"];
+ /**
+ * @description A unique numeric ID that can be used to identify and reference an action.
+ * @example 36804636
+ */
+ action_id: number;
+ /**
+ * @description A unique identifier for the add-on resource.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ resource_uuid: string;
+ /**
+ * @description Whether the project_id of listed apps should be fetched and included.
+ * @example true
+ */
+ with_projects: boolean;
+ /**
+ * @description The content-type that should be used by the response. By default, the response will be `application/json`. `application/yaml` is also supported.
+ * @example application/json
+ */
+ accept: "application/json" | "application/yaml";
+ /**
+ * @description The content-type used for the request. By default, the requests are assumed to use `application/json`. `application/yaml` is also supported.
+ * @example application/json
+ */
+ "content-type": "application/json" | "application/yaml";
+ /**
+ * @description The ID of the app
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ id_app: string;
+ /**
+ * @description The name of the app to retrieve.
+ * @example myApp
+ */
+ app_name: string;
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: string;
+ /**
+ * @description An optional component name. If set, logs will be limited to this component only.
+ * @example component
+ */
+ component: string;
+ /**
+ * @description Whether the logs should follow live updates.
+ * @example true
+ */
+ live_updates: boolean;
+ /**
+ * @description The type of logs to retrieve
+ * - BUILD: Build-time logs
+ * - DEPLOY: Deploy-time logs
+ * - RUN: Live run-time logs
+ * - RUN_RESTARTED: Logs of crashed/restarted instances during runtime
+ * - AUTOSCALE_EVENT: Logs of an autoscaling event (requires event_id)
+ * @example BUILD
+ */
+ log_type: "UNSPECIFIED" | "BUILD" | "DEPLOY" | "RUN" | "RUN_RESTARTED" | "AUTOSCALE_EVENT";
+ /**
+ * @description An optional time duration to wait if the underlying component instance is not immediately available. Default: `3m`.
+ * @example 3m
+ */
+ time_wait: string;
+ /**
+ * @description The name of the actively running ephemeral compute instance
+ * @example go-app-d768568df-zz77d
+ */
+ instance_name: string;
+ /**
+ * @description The deployment ID
+ * @example 3aa4d20e-5527-4c00-b496-601fbd22520a
+ */
+ deployment_id: string;
+ /**
+ * @description The job names to list job invocations for.
+ * @example [
+ * "component1",
+ * "component2"
+ * ]
+ */
+ job_names: components["schemas"]["schema"][];
+ /**
+ * @description The ID of the job invocation to retrieve.
+ * @example 123e4567-e89b-12d3-a456-426
+ */
+ job_invocation_id: string;
+ /**
+ * @description The job name to list job invocations for.
+ * @example component
+ */
+ job_name: string;
+ /**
+ * @description The number of lines from the end of the logs to retrieve.
+ * @example 100
+ */
+ number_lines: string;
+ /**
+ * @description The event ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ event_id: string;
+ /**
+ * @description The slug of the instance size
+ * @example apps-s-1vcpu-0.5gb
+ */
+ slug_size: string;
+ /**
+ * @description The alert ID
+ * @example 5a624ab5-dd58-4b39-b7dd-8b7c36e8a91d
+ */
+ alert_id: string;
+ /**
+ * @description A unique identifier for a CDN endpoint.
+ * @example 19f06b6a-3ace-4315-b086-499a0e521b76
+ */
+ cdn_endpoint_id: string;
+ /**
+ * @description Name of expected certificate
+ * @example certificate-name
+ */
+ certificate_name: string;
+ /**
+ * @description A unique identifier for a certificate.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ certificate_id: string;
+ /**
+ * @description UUID of the invoice
+ * @example 22737513-0ea7-4206-8ceb-98a575af7681
+ */
+ invoice_uuid: string;
+ /**
+ * @description URN of the customer account, can be a team (do:team:uuid) or an organization (do:teamgroup:uuid)
+ * @example do:team:12345678-1234-1234-1234-123456789012
+ */
+ account_urn: string;
+ /**
+ * @description Start date for billing insights in YYYY-MM-DD format
+ * @example 2025-01-01
+ */
+ start_date: string;
+ /**
+ * @description End date for billing insights in YYYY-MM-DD format. Must be within 31 days of start_date
+ * @example 2025-01-31
+ */
+ end_date: string;
+ /**
+ * @description Limits the results to database clusters with a specific tag. Requires `tag:read` scope.
+ * @example production
+ */
+ tag_name: string;
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: string;
+ /**
+ * @description A unique identifier assigned to the online migration.
+ * @example 77b28fc8-19ff-11eb-8c9c-c68e24557488
+ */
+ migration_id: string;
+ /**
+ * @description The name of the database replica.
+ * @example read-nyc3-01
+ */
+ replica_name: string;
+ /**
+ * @description The name of the database user.
+ * @example app-01
+ */
+ username: string;
+ /**
+ * @description The name of the database.
+ * @example alpha
+ */
+ database_name: string;
+ /**
+ * @description The name used to identify the connection pool.
+ * @example backend-pool
+ */
+ pool_name: string;
+ /**
+ * @description The name used to identify the Kafka topic.
+ * @example customer-events
+ */
+ kafka_topic_name: string;
+ /**
+ * @description A unique identifier for a logsink of a database cluster
+ * @example 50484ec3-19d6-4cd3-b56f-3b0381c289a6
+ */
+ logsink_id: string;
+ /**
+ * @description The name of the Kafka schema subject.
+ * @example customer-schema
+ */
+ kafka_schema_subject_name: string;
+ /**
+ * @description The version of the Kafka schema subject.
+ * @example 1
+ */
+ kafka_schema_version: string;
+ /**
+ * @description The name of the OpenSearch index.
+ * @example logs-*
+ */
+ opensearch_index_name: string;
+ /**
+ * @description A unique identifier for a Dedicated Inference instance.
+ * @example 6b5c619c-359c-44ca-87e2-47e98170c01d
+ */
+ dedicated_inference_id: string;
+ /**
+ * @description Filter by region. Dedicated Inference is only available in nyc2, tor1, and atl1.
+ * @example atl1
+ */
+ region: "nyc2" | "tor1" | "atl1";
+ /**
+ * @description A unique identifier for a Dedicated Inference accelerator.
+ * @example 5b5c619c-359c-44ca-87e2-47e98170c02f
+ */
+ accelerator_id: string;
+ /**
+ * @description A unique identifier for a Dedicated Inference access token.
+ * @example f11d4795-c1db-4ac3-9aa6-a0ea3c58877e
+ */
+ token_id: string;
+ /**
+ * @description The name of the domain itself.
+ * @example example.com
+ */
+ domain_name: string;
+ /**
+ * @description A fully qualified record name. For example, to only include records matching sub.example.com, send a GET request to `/v2/domains/$DOMAIN_NAME/records?name=sub.example.com`.
+ * @example sub.example.com
+ */
+ domain_name_query: string;
+ /**
+ * @description The type of the DNS record. For example: A, CNAME, TXT, ...
+ * @example A
+ */
+ domain_type_query: "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "NS" | "SOA" | "SRV" | "TXT";
+ /**
+ * @description The unique identifier of the domain record.
+ * @example 3352896
+ */
+ domain_record_id: number;
+ /**
+ * @description Used to filter Droplets by a specific tag. Can not be combined with `name` or `type`. Requires `tag:read` scope.
+ * @example env:prod
+ */
+ droplet_tag_name: string;
+ /**
+ * @description Used to filter list response by Droplet name returning only exact matches. It is case-insensitive and can not be combined with `tag_name`.
+ * @example web-01
+ */
+ droplet_name: string;
+ /**
+ * @description When `type` is set to `gpus`, only GPU Droplets will be returned. By default, only non-GPU Droplets are returned. Can not be combined with `tag_name`.
+ * @example droplets
+ */
+ droplet_type: "droplets" | "gpus";
+ /**
+ * @description Specifies Droplets to be deleted by tag.
+ * @example env:test
+ */
+ droplet_delete_tag_name: string;
+ /**
+ * @description A unique identifier for a Droplet instance.
+ * @example 3164444
+ */
+ droplet_id: number;
+ /**
+ * @description Acknowledge this action will destroy the Droplet and all associated resources and _can not_ be reversed.
+ * @example true
+ */
+ x_dangerous: boolean;
+ /**
+ * @description The name of the autoscale pool
+ * @example my-autoscale-pool
+ */
+ autoscale_pool_name: string;
+ /**
+ * @description A unique identifier for an autoscale pool.
+ * @example 0d3db13e-a604-4944-9827-7ec2642d32ac
+ */
+ autoscale_pool_id: string;
+ /**
+ * @description Acknowledge this action will destroy the autoscale pool and its associated resources and _can not_ be reversed.
+ * @example true
+ */
+ parameters_x_dangerous: boolean;
+ /**
+ * @description A unique ID that can be used to identify and reference a firewall.
+ * @example bb4b2611-3d72-467b-8602-280330ecd65c
+ */
+ firewall_id: string;
+ /**
+ * @description Field to sort results by. Possible values are `created_at`, `updated_at`,
+ * `ip`, `id`, and `droplet_id`. Defaults to `id`. Any other value is treated
+ * as `id`.
+ *
+ * Sorting by `droplet_id` orders floating IPs by the Droplet they are
+ * assigned to. Unassigned floating IPs (`droplet` is null) sort as the
+ * lowest value, so they are returned first when `sort_direction` is `asc`
+ * and last when it is `desc`.
+ * @example droplet_id
+ */
+ sort: "created_at" | "updated_at" | "ip" | "id" | "droplet_id";
+ /**
+ * @description Direction to sort results. Possible values are `asc` and `desc`. Defaults to `asc`.
+ * @example asc
+ */
+ parameters_sort_direction: "asc" | "desc";
+ /**
+ * @description A floating IP address.
+ * @example 45.55.96.47
+ */
+ floating_ip: string;
+ /**
+ * @description The ID of the namespace to be managed.
+ * @example fn-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+ */
+ namespace_id: string;
+ /**
+ * @description The name of the trigger to be managed.
+ * @example my trigger
+ */
+ trigger_name: string;
+ /**
+ * @description The ID of the access key to be managed.
+ * @example dof-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+ */
+ key_id: string;
+ /**
+ * @description Filters results based on image type which can be either `application` or `distribution`.
+ * @example distribution
+ */
+ type: "application" | "distribution";
+ /**
+ * @description Used to filter only user images.
+ * @example true
+ */
+ private: boolean;
+ /**
+ * @description Used to filter images by a specific tag.
+ * @example base-image
+ */
+ tag: string;
+ /**
+ * @description A unique number that can be used to identify and reference a specific image.
+ * @example 62137902
+ */
+ image_id: number;
+ /**
+ * @description Optional filter. When set, only alert instances with this status are
+ * returned.
+ * @example active
+ */
+ alert_instance_status: "active" | "resolved";
+ /**
+ * @description Optional filter. When set, only alert instances fired by the alert rule
+ * with this ID are returned.
+ * @example 8f3a2b1c-4d5e-6f7a-8b9c-0d1e2f3a4b5c
+ */
+ rule_id: string;
+ /**
+ * @description Optional filter. When set, only resources associated with this resource URN
+ * are returned.
+ * @example do:droplet:12345
+ */
+ resource_urn: string;
+ /**
+ * @description A unique identifier for an alert instance.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ alert_instance_id: string;
+ /**
+ * @description A unique identifier for an alert rule.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ alert_rule_id: string;
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ dashboards_page: number;
+ /**
+ * @description Number of items returned per page. Values above `200` are rejected with `400`.
+ * @example 20
+ */
+ dashboards_per_page: number;
+ /**
+ * @description Field to sort by. Matched case-insensitively. When omitted, results are ordered by `created_at` descending. Any other value is rejected with `400`.
+ * @example updated_at
+ */
+ dashboards_sort: "name" | "created_at" | "updated_at";
+ /**
+ * @description Sort direction. Only applied when `pagination.sort` is set, in which case it defaults to `asc`. When `pagination.sort` is omitted, results are ordered by `created_at` descending regardless of this parameter.
+ * @example desc
+ */
+ dashboards_sort_direction: "asc" | "desc";
+ /**
+ * @description The unique identifier of the dashboard. Unknown, deleted, or malformed identifiers return `404`.
+ * @example 7c9e6679-7425-40de-944b-e07fc1f90ae7
+ */
+ dashboard_uuid: string;
+ /**
+ * @description A unique identifier for a notification channel.
+ * @example 550e8400-e29b-41d4-a716-446655440000
+ */
+ notification_channel_id: string;
+ /**
+ * @description The datacenter region slug for the query.
+ * @example nyc3
+ */
+ parameters_region: string;
+ /**
+ * @description A PromQL expression. This may be a metric selector (for example `do.droplets.cpu_time`) or a fuller expression (for example `rate(do.droplets.cpu_time[5m])`).
+ * @example do.droplets.cpu_time
+ */
+ query: string;
+ /**
+ * @description Evaluation timestamp for an instant query. Accepts a RFC3339 string or a UNIX timestamp. Defaults to now when omitted.
+ * @example 1620683817
+ */
+ time: string;
+ /**
+ * @description Optional evaluation timeout as a Prometheus duration string.
+ * @example 30s
+ */
+ timeout: string;
+ /**
+ * @description Start timestamp (inclusive). Accepts a RFC3339 string or a UNIX timestamp.
+ * @example 1620683817
+ */
+ start: string;
+ /**
+ * @description End timestamp (inclusive). Accepts a RFC3339 string or a UNIX timestamp.
+ * @example 1620705417
+ */
+ end: string;
+ /**
+ * @description Query resolution step width as a Prometheus duration string (for example `15s`, `1m`, `1h`).
+ * @example 15s
+ */
+ step: string;
+ /**
+ * @description Optional start timestamp (inclusive). Accepts a RFC3339 string or a UNIX timestamp.
+ * @example 1620683817
+ */
+ start_optional: string;
+ /**
+ * @description Optional end timestamp (inclusive). Accepts a RFC3339 string or a UNIX timestamp.
+ * @example 1620705417
+ */
+ end_optional: string;
+ /**
+ * @description One or more series selectors. Repeat the parameter for multiple matchers.
+ * @example [
+ * "{__name__=~\".+\"}"
+ * ]
+ */
+ match: string[];
+ /**
+ * @description The label name whose values should be listed.
+ * @example __name__
+ */
+ label_name: string;
+ /**
+ * @description One or more series selectors. At least one matcher is required. Repeat the parameter for multiple matchers.
+ * @example [
+ * "{__name__=\"do.droplets.cpu_time\"}"
+ * ]
+ */
+ match_required: string[];
+ /**
+ * @description The OpenTelemetry trace ID to retrieve, as 32 lowercase hexadecimal characters. IDs are matched exactly; an ID with no spans in the lookup window returns `404`. Malformed or uppercase IDs are not rejected with `400`; they also return `404`.
+ * @example 7b0b4e56abab38362b24e5498eb9ec64
+ */
+ trace_id: string;
+ /**
+ * @description Start of the trace lookup window. Accepts a relative time (`now`, a bare duration such as `24h` to look back from now, or `now-2h`) or an absolute time (RFC3339, or a Unix epoch integer in seconds, milliseconds, microseconds, or nanoseconds). Defaults to 7 days before now.
+ * @example 24h
+ */
+ trace_from: string;
+ /**
+ * @description End of the trace lookup window, in the same formats as `from`. Defaults to now.
+ * @example now
+ */
+ trace_to: string;
+ /**
+ * @description Optional filter. When set, only resources of these product types are returned. Repeat the parameter for multiple product types.
+ * @example [
+ * "droplet"
+ * ]
+ */
+ resources_product_types: string[];
+ /**
+ * @description Optional filter. When set, only resources in these regions are returned. Repeat the parameter for multiple regions.
+ * @example [
+ * "nyc3"
+ * ]
+ */
+ resources_regions: string[];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ resources_page: number;
+ /**
+ * @description Number of items returned per page.
+ * @example 20
+ */
+ resources_per_page: number;
+ /**
+ * @description Field to sort by. Defaults to `resource_urn`.
+ * @example effective_at
+ */
+ resources_sort: "resource_urn" | "effective_at";
+ /**
+ * @description Sort direction. Defaults to `asc`.
+ * @example desc
+ */
+ resources_sort_direction: "asc" | "desc";
+ /**
+ * @description The uniform resource name (URN) of the resource, for example `do:droplet:12345`.
+ * @example do:droplet:12345
+ */
+ resource_urn_path: string;
+ /**
+ * @description Filter consent records by source. `agent` returns per-environment records (Harness Runtime); `inference` returns the team-level record for Serverless Inference chat completions. When omitted, records for all sources are returned.
+ * @example inference
+ */
+ source: "agent" | "inference";
+ /**
+ * @description The consent source to update. Only team-level sources are accepted on this endpoint; currently `inference` (Serverless Inference chat completions). Per-environment consent (`agent`) is managed with `PUT /v1/consent/{environment_id}` instead.
+ * @example inference
+ */
+ source_required: "inference";
+ /**
+ * @description A unique identifier for an environment. For Harness Runtime, this is the Environment Config ID. Formerly named agent_id.
+ * @example 019fb3d2-8a56-72cc-8bf9-9d21510b2a99
+ */
+ environment_id: string;
+ /**
+ * @description Maximum number of items to return per page.
+ * @example 20
+ */
+ limit: number;
+ /**
+ * @description An opaque cursor string returned from a previous page. Pass this value to retrieve the next page of results.
+ * @example eyJ0ZWFtX2lkIjozOTQ0OTk0Nn0=
+ */
+ after: string;
+ /**
+ * @description Filter results to those occurring at or after this timestamp (RFC 3339).
+ * @example 2026-09-01T00:00:00Z
+ */
+ start_time: string;
+ /**
+ * @description Filter results to those occurring at or before this timestamp (RFC 3339).
+ * @example 2026-10-01T00:00:00Z
+ */
+ end_time: string;
+ /**
+ * @description Filter results by signal type. Use the export options endpoint to list available signal types.
+ * @example DisengagementEscalation
+ */
+ signal_type: string;
+ /**
+ * @description A unique identifier for a signals session.
+ * @example 01a0f3d5-d5f1-798a-9352-2cd8f8b81e78
+ */
+ parameters_session_id: string;
+ /**
+ * @description Optional filter by environment ID.
+ * @example 019fb3d2-8a56-72cc-8bf9-9d21510b2a99
+ */
+ environment_id_query: string;
+ /**
+ * @deprecated
+ * @description Deprecated alias for environment_id. Accepted for backward compatibility; must equal environment_id when both are set. Both set and different returns 400.
+ * @example 019fb3d2-8a56-72cc-8bf9-9d21510b2a99
+ */
+ agent_id: string;
+ /**
+ * @description A unique identifier for an export job.
+ * @example 9f13c09c-c877-436b-9863-dcc39c9dd737
+ */
+ export_id: string;
+ /**
+ * @description A unique identifier for a data deletion job.
+ * @example 01J9ZX0N5Q7M2K3R4S5T6V7W8X
+ */
+ deletion_id: string;
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ kubernetes_cluster_id: string;
+ /**
+ * @description The duration in seconds that the returned Kubernetes credentials will be valid. If not set or 0, the credentials will have a 7 day expiry.
+ * @example 300
+ */
+ kubernetes_expiry_seconds: number;
+ /**
+ * @description The type of credentials to return in the kubeconfig. When omitted, the
+ * default credential type for the cluster is used: `sso` for clusters with SSO enabled, `token` for clusters without SSO enabled.
+ * @example sso
+ */
+ kubernetes_credentials_type: "token" | "sso";
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes node pool.
+ * @example cdda885e-7663-40c8-bc74-3a036c66545d
+ */
+ kubernetes_node_pool_id: string;
+ /**
+ * @description A unique ID that can be used to reference a node in a Kubernetes node pool.
+ * @example 478247f8-b1bb-4f7a-8db9-2a5f8d4b8f8f
+ */
+ kubernetes_node_id: string;
+ /**
+ * @description Specifies whether or not to drain workloads from a node before it is deleted. Setting it to `1` causes node draining to be skipped. Omitting the query parameter or setting its value to `0` carries out draining prior to deletion.
+ * @example 1
+ */
+ kubernetes_node_skip_drain: number;
+ /**
+ * @description Specifies whether or not to replace a node after it has been deleted. Setting it to `1` causes the node to be replaced by a new one after deletion. Omitting the query parameter or setting its value to `0` deletes without replacement.
+ * @example 1
+ */
+ kubernetes_node_replace: number;
+ /**
+ * @description Specifies the clusterlint run whose results will be retrieved.
+ * @example 50c2f44c-011d-493e-aee5-361a4a0d1844
+ */
+ clusterlint_run_id: string;
+ /**
+ * @description A timestamp used to return status messages emitted since the specified time. The timestamp should be in ISO8601 format.
+ * @example 2018-11-15T16:00:11Z
+ */
+ kubernetes_status_messages_since: string;
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ load_balancer_id: string;
+ /**
+ * @description Number of items returned per page.
+ * @example 25
+ */
+ microvm_per_page: number;
+ /**
+ * @description Only return MicroVMs in this region.
+ * @example mkc1
+ */
+ microvm_region: string;
+ /**
+ * @description Only return MicroVMs whose name contains this substring (case-insensitive).
+ * @example example-microvm
+ */
+ parameters_name: string;
+ /**
+ * @description Only return MicroVMs with this tag. A tag that matches no MicroVMs returns an empty list.
+ * @example example
+ */
+ parameters_tag_name: string;
+ /**
+ * @description Only return checkpoints taken from this MicroVM.
+ * @example 01a0ef1a-d873-793d-ae6a-5dd6239be62a
+ */
+ microvm_id_filter: string;
+ /**
+ * @description The unique ID of the checkpoint.
+ * @example 01a0ed98-0a74-75dd-a625-e4856adbc298
+ */
+ checkpoint_id: string;
+ /**
+ * @description The unique ID of the MicroVM.
+ * @example 01a0ef1a-d873-793d-ae6a-5dd6239be62a
+ */
+ microvm_id: string;
+ /**
+ * @description The unique ID of the URL, from the MicroVM's `urls` list.
+ * @example 3f6c1a2b-9d4e-5f70-8a1b-2c3d4e5f6a7b
+ */
+ url_id: string;
+ /**
+ * @description The unique ID of the access token, from the list.
+ * @example 4f6a1c2e-9d3b-4e7a-8f10-2b5c7d9e1a33
+ */
+ parameters_token_id: string;
+ /**
+ * @description The initial number of terminal rows.
+ * @example 24
+ */
+ console_rows: number;
+ /**
+ * @description The initial number of terminal columns.
+ * @example 80
+ */
+ console_cols: number;
+ /**
+ * @description The TCP port to connect to inside the MicroVM. Port 50051 is reserved and cannot be forwarded.
+ * @example 8080
+ */
+ port_forward_port: number;
+ /**
+ * @description The absolute path of the file inside the workload container.
+ * @example /app/config.json
+ */
+ file_path: string;
+ /**
+ * @description The octal permission bits for the file, from `0001` to `0777`. Defaults to `0644`. Setuid, setgid, sticky bits, and `0000` are rejected.
+ * @example 0600
+ */
+ file_mode: string;
+ /**
+ * @description The owner user ID. Set it together with `gid`. Defaults to the workload container's user.
+ * @example 1000
+ */
+ file_uid: number;
+ /**
+ * @description The owner group ID. Set it together with `uid`. Defaults to the workload container's group.
+ * @example 1000
+ */
+ file_gid: number;
+ /**
+ * @description The lowercase hex SHA-256 of the request body. When set, the API verifies the content before it replaces the target. A mismatch returns 422 and leaves the existing file unchanged.
+ * @example e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
+ */
+ file_sha256: string;
+ /**
+ * @description A unique identifier for an alert policy.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ alert_uuid: string;
+ /**
+ * @description The droplet ID.
+ * @example 17209102
+ */
+ parameters_droplet_id: string;
+ /**
+ * @description The network interface.
+ * @example private
+ */
+ network_interface: "private" | "public";
+ /**
+ * @description The traffic direction.
+ * @example inbound
+ */
+ network_direction: "inbound" | "outbound";
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ metric_timestamp_start: string;
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ metric_timestamp_end: string;
+ /**
+ * @description The app UUID.
+ * @example 2db3c021-15ad-4088-bfe8-99dc972b9cf6
+ */
+ parameters_app_id: string;
+ /**
+ * @description The app component name.
+ * @example sample-application
+ */
+ app_component: string;
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ parameters_load_balancer_id: string;
+ /**
+ * @description A unique identifier for an autoscale pool.
+ * @example 0d3db13e-a604-4944-9827-7ec2642d32ac
+ */
+ parameters_autoscale_pool_id: string;
+ /**
+ * @description The DBaaS cluster UUID (database ID).
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ db_id: string;
+ /**
+ * @description Aggregation over the time range (avg, max, or min).
+ * @example avg
+ */
+ aggregate_avg_max_min: "avg" | "max" | "min";
+ /**
+ * @description Load window: **load1** (1-minute), **load5** (5-minute), **load15** (15-minute). The value is either average or max over that window, depending on the **aggregate** parameter (avg or max).
+ * @example load1
+ */
+ metric_load: "load1" | "load5" | "load15";
+ /**
+ * @description Aggregation over the time range (avg or max).
+ * @example avg
+ */
+ aggregate_avg_max: "avg" | "max";
+ /**
+ * @description Operation type (select, insert, update, or delete).
+ * @example select
+ */
+ metric_op_rates: "select" | "insert" | "update" | "delete";
+ /**
+ * @description The schema (database) name.
+ * @example defaultdb
+ */
+ schema: string;
+ /**
+ * @description Table I/O operation (insert, fetch, update, or delete).
+ * @example insert
+ */
+ metric_schema_io: "insert" | "fetch" | "update" | "delete";
+ /**
+ * @description A unique identifier for a destination.
+ * @example 1a64809f-1708-48ee-a742-dec8d481b8d1
+ */
+ destination_uuid: string;
+ /**
+ * @description A unique URN for a resource.
+ * @example do:kubernetes:5ba4518b-b9e2-4978-aa92-2d4c727e8824
+ */
+ resource_id: components["schemas"]["urn"];
+ /**
+ * @description A unique identifier for a sink.
+ * @example 78b172b6-52c3-4a4b-96d5-78d3f1a0b18c
+ */
+ sink_uuid: string;
+ /**
+ * @description The DigitalOcean region slug (e.g., nyc2, atl1) where the NFS share resides.
+ * @example atl1
+ */
+ "parameters_region-2": string;
+ /**
+ * @description The unique ID of the NFS share
+ * @example 0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d
+ */
+ nfs_id: string;
+ /**
+ * @description The unique ID of an NFS share. If provided, only snapshots of this specific share will be returned.
+ * @example 0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d
+ */
+ share_id: string;
+ /**
+ * @description The unique ID of the NFS snapshot
+ * @example 0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d
+ */
+ nfs_snapshot_id: string;
+ /**
+ * @description The unique identifier of the NFS share.
+ * @example baf4827c-6fa9-456f-9dbd-9ddfcacd0720
+ */
+ share_id_path: string;
+ /**
+ * @description The unique identifier of the NFS access point.
+ * @example becd9f04-8afa-4ccd-b03e-9676447df603
+ */
+ access_point_id: string;
+ /**
+ * @description A unique identifier for a partner attachment.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ pa_id: string;
+ /**
+ * @description A unique identifier for a project.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ project_id: string;
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: string;
+ /**
+ * @description The UUID of a garbage collection run.
+ * @example eff0feee-49c7-4e8f-ba5c-a320c109c8a8
+ */
+ garbage_collection_uuid: string;
+ /**
+ * @description Which 'page' of paginated results to return. Ignored when 'page_token' is provided.
+ * @example 1
+ */
+ token_pagination_page: number;
+ /**
+ * @description Token to retrieve of the next or previous set of results more quickly than using 'page'.
+ * @example eyJUb2tlbiI6IkNnZGpiMjlz
+ */
+ token_pagination_page_token: string;
+ /**
+ * @description The name of a container registry repository. If the name contains `/` characters, they must be URL-encoded, e.g. `%2F`.
+ * @example repo-1
+ */
+ registry_repository_name: string;
+ /**
+ * @description The name of a container registry repository tag.
+ * @example 06a447a
+ */
+ registry_repository_tag: string;
+ /**
+ * @description The manifest digest of a container registry repository tag.
+ * @example sha256:cb8a924afdf0229ef7515d9e5b3024e23b3eb03ddbba287f4a19c6ac90b8d221
+ */
+ registry_manifest_digest: string;
+ /**
+ * @description The duration in seconds that the returned registry credentials will be valid. If not set or 0, the credentials will not expire.
+ * @example 3600
+ */
+ registry_expiry_seconds: number;
+ /**
+ * @description By default, the registry credentials allow for read-only access. Set this query parameter to `true` to obtain read-write credentials.
+ * @example true
+ */
+ registry_read_write: boolean;
+ /**
+ * @description Field to sort results by. Possible values are `created_at`, `updated_at`,
+ * `ip`, `id`, and `droplet_id`. Defaults to `id`. Any other value is treated
+ * as `id`.
+ *
+ * Sorting by `droplet_id` orders reserved IPs by the Droplet they are
+ * assigned to. Unassigned reserved IPs (`droplet` is null) sort as the
+ * lowest value, so they are returned first when `sort_direction` is `asc`
+ * and last when it is `desc`.
+ * @example droplet_id
+ */
+ parameters_sort: "created_at" | "updated_at" | "ip" | "id" | "droplet_id";
+ /**
+ * @description A reserved IP address.
+ * @example 45.55.96.47
+ */
+ reserved_ip: string;
+ /**
+ * @description A reserved IPv6 address.
+ * @example 2409:40d0:f7:1017:74b4:3a96:105e:4c6e
+ */
+ reserved_ipv6: string;
+ /**
+ * @description The unique identifier for the BYOIP Prefix.
+ * @example f47ac10b-58cc-4372-a567-0e02b2c3d479
+ */
+ byoip_prefix: string;
+ /**
+ * @description The scan UUID.
+ * @example 497dcba3-ecbf-4587-a2dd-5eb0665e6880
+ */
+ scan_id: string;
+ /**
+ * @description The finding severity level to include.
+ * @example CRITICAL
+ */
+ severity: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
+ /**
+ * @description The finding UUID.
+ * @example 50e14f43-dd4e-412f-864d-78943ea28d91
+ */
+ finding_uuid: string;
+ /**
+ * @description The suppression UUID to remove.
+ * @example 5b3b2b2d-5c9c-4a61-9e2f-4d8f80f30a12
+ */
+ suppression_uuid: string;
+ /**
+ * @description Whether to include secrets that are pending deletion.
+ * @example false
+ */
+ include_deleted: boolean;
+ /**
+ * @description Only return secrets whose names start with this value.
+ * @example app
+ */
+ secret_name_prefix: string;
+ /**
+ * @description The name of the secret.
+ * @example my-database-password
+ */
+ secret: string;
+ /**
+ * @description The region where the secret is stored.
+ * @example nyc3
+ */
+ secret_region: string;
+ /**
+ * @description Filter sizes with an inclusive minimum CPU count
+ * @example 4
+ */
+ cpu_minimum: number;
+ /**
+ * @description Filter sizes with an inclusive maximum CPU count
+ * @example 4
+ */
+ cpu_maximum: number;
+ /**
+ * @description Filter sizes with an inclusive minimum GPU count
+ * @example 1
+ */
+ gpu_minimum: number;
+ /**
+ * @description Filter sizes with an inclusive maximum GPU count. Zero is allowed to filter to sizes without GPUs.
+ * @example 8
+ */
+ gpu_maximum: number;
+ /**
+ * @description Filter sizes to those with a given GPU fabric setting
+ * @example true
+ */
+ gpu_fabric: boolean;
+ /**
+ * @description Filter sizes with an inclusive minimum memory amount (in megabytes)
+ * @example 1024
+ */
+ memory_minimum: number;
+ /**
+ * @description Filter sizes with an inclusive maximum memory amount (in megabytes)
+ * @example 1024
+ */
+ memory_maximum: number;
+ /**
+ * @description Filter sizes with an inclusive minimum hourly price (in USD)
+ * @example 0.50
+ */
+ price_hourly_minimum: string;
+ /**
+ * @description Filter sizes with an inclusive maximum hourly price (in USD)
+ * @example 1.00
+ */
+ price_hourly_maximum: string;
+ /**
+ * @description Filter sizes with an inclusive minimum monthly price (in USD)
+ * @example 5.00
+ */
+ price_monthly_minimum: string;
+ /**
+ * @description Filter sizes with an inclusive maximum monthly price (in USD)
+ * @example 10.00
+ */
+ price_monthly_maximum: string;
+ /**
+ * @description Used to filter snapshots by a resource type.
+ * @example droplet
+ */
+ snapshot_resource_type: "droplet" | "volume";
+ /**
+ * @description Either the ID of an existing snapshot. This will be an integer for a Droplet snapshot or a string for a volume snapshot.
+ * @example 6372321
+ */
+ snapshot_id: number | string;
+ /**
+ * @description The slug of the region from which to delete the snapshot's copy.
+ * @example fra1
+ */
+ "parameters_region-3": string;
+ /**
+ * @description The field to sort by.
+ * @example created_at
+ */
+ "parameters_sort-2": string;
+ /**
+ * @description The direction to sort by. Possible values are `asc` or `desc`.
+ * @example desc
+ */
+ "parameters_sort_direction-2": string;
+ /**
+ * @description The access key's name.
+ * @example my-access-key
+ */
+ "parameters_name-2": string;
+ /**
+ * @description The bucket's name.
+ * @example my-bucket
+ */
+ bucket: string;
+ /**
+ * @description The permission of the access key. Possible values are `read`, `readwrite`, `fullaccess`, or an empty string.
+ * @example read
+ */
+ permission: string;
+ /**
+ * @description The access key's ID.
+ * @example DOACCESSKEYEXAMPLE
+ */
+ access_key_id: string;
+ /**
+ * @description The name of the tag. Tags may contain letters, numbers, colons, dashes, and underscores. There is a limit of 255 characters per tag.
+ * @example awesome
+ */
+ tag_id: string;
+ /**
+ * @description The block storage volume's name.
+ * @example example
+ */
+ volume_name: string;
+ /**
+ * @description The slug identifier for the region where the resource is available.
+ * @example nyc3
+ */
+ "parameters_region-4": components["schemas"]["region_slug"];
+ /**
+ * @description The unique identifier for the snapshot.
+ * @example fbe805e8-866b-11e6-96bf-000f53315a41
+ */
+ volume_snapshot_id: string;
+ /**
+ * @description The ID of the block storage volume.
+ * @example 7724db7c-e098-11e5-b522-000f53304e51
+ */
+ volume_id: string;
+ /**
+ * @description A unique identifier for a VPC.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ vpc_id: string;
+ /**
+ * @description Used to filter VPC members by a resource type.
+ * @example droplet
+ */
+ vpc_resource_type: "droplet" | "loadbalancer" | "kubernetes" | "dbaas" | "nat_gateway" | "app" | "nfs_share";
+ /**
+ * @description A unique identifier for a VPC peering.
+ * @example 5a4981aa-9653-4bd1-bef5-d6bff52042e4
+ */
+ vpc_peering_id: string;
+ /**
+ * @description The unique identifier of the VPC.
+ * @example 997615ce-132d-4bae-9270-9ee21b395e5d
+ */
+ vpc_uuid: string;
+ /**
+ * @description The unique identifier of the VPC to which the subnet belongs.
+ * @example 997615ce-132d-4bae-9270-9ee21b395e5d
+ */
+ parameters_vpc_uuid: string;
+ /**
+ * @description The unique identifier of a VPC subnet.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ subnet_uuid: string;
+ /**
+ * @description Used to filter VPC subnet members by resource type.
+ * @example droplet
+ */
+ resource_type: "droplet" | "loadbalancer" | "kubernetes" | "dbaas" | "nat_gateway" | "app" | "nfs_share";
+ /**
+ * @description The unique identifier of the VPC subnet.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ parameters_subnet_uuid: string;
+ /**
+ * @description The unique identifier of the route.
+ * @example f0e1d2c3-b4a5-6789-0fed-cba987654321
+ */
+ route_uuid: string;
+ /**
+ * @description The current state of the VPC NAT gateway.
+ * @example active
+ */
+ vpc_nat_gateway_state: "new" | "provisioning" | "active" | "deleting" | "error" | "invalid";
+ /**
+ * @description The region where the VPC NAT gateway is located.
+ * @example tor1
+ */
+ vpc_nat_gateway_region: "nyc1" | "nyc2" | "nyc3" | "ams2" | "ams3" | "sfo1" | "sfo2" | "sfo3" | "sgp1" | "lon1" | "fra1" | "tor1" | "blr1" | "syd1" | "atl1";
+ /**
+ * @description The type of the VPC NAT gateway.
+ * @example public
+ */
+ vpc_nat_gateway_type: "public";
+ /**
+ * @description The name of the VPC NAT gateway.
+ * @example my-vpc-nat-gateway
+ */
+ vpc_nat_gateway_name: string;
+ /**
+ * @description The unique identifier of the VPC NAT gateway.
+ * @example 70e1b58d-cdec-4e95-b3ee-2d4d95feff51
+ */
+ vpc_nat_gateway_id: string;
+ /**
+ * @description A unique identifier for a check.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ check_id: string;
+ /**
+ * @description A unique identifier for an alert.
+ * @example 17f0f0ae-b7e5-4ef6-86e3-aa569db58284
+ */
+ parameters_alert_id: string;
+ };
+ requestBodies: never;
+ headers: {
+ /**
+ * @description The default limit on number of requests that can be made per hour and per minute. Current rate limits are 5000 requests per hour and 250 requests per minute.
+ * @example 5000
+ */
+ "ratelimit-limit": number;
+ /**
+ * @description The number of requests in your hourly quota that remain before you hit your request limit. See https://developers.digitalocean.com/documentation/v2/#rate-limit for information about how requests expire.
+ * @example 4816
+ */
+ "ratelimit-remaining": number;
+ /**
+ * @description The time when the oldest request will expire. The value is given in Unix epoch time. See https://developers.digitalocean.com/documentation/v2/#rate-limit for information about how requests expire.
+ * @example 1444931833
+ */
+ "ratelimit-reset": number;
+ /**
+ * @description The UUID of your default endpoint. Returned when the request sent neither `X-Session-Id` nor `X-Endpoint-Id` and used your default endpoint.
+ * @example 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13
+ */
+ "X-Endpoint-Id": string;
+ /**
+ * @description The composite ID of the endpoint version that served the request, such as `.v3`. Returned when the request targeted an endpoint with `X-Endpoint-Id` or used your default endpoint, so the version is the head at request time.
+ * @example 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13.v1
+ */
+ "X-Action-Gateway-Endpoint-Version": string;
+ /**
+ * @description Indicates if the content is expected to be displayed *inline* in the browser, that is, as a Web page or as part of a Web page, or as an *attachment*, that is downloaded and saved locally.
+ * @example attachment; filename="DigitalOcean Invoice 2020 Jul (6173678-418071234).csv"
+ */
+ "content-disposition": string;
+ /**
+ * @description The type of data that is returned from a request.
+ * @example application/json; charset=utf-8
+ */
+ "content-type": string;
+ /**
+ * @description The lowercase hex SHA-256 of the file content.
+ * @example e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
+ */
+ "x-checksum-sha256": string;
+ /**
+ * @description Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.
+ * @example 515850a0-a812-50bf-aa3c-d0d21d287e40
+ */
+ "x-request-id": string;
+ };
+ pathItems: never;
+}
+export type $defs = Record;
+export interface operations {
+ actorLimits_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Actor ID: a session `actor_id` or a connection `user_id`, 1 to 64 characters from `[A-Za-z0-9._-]`.
+ * @example alice
+ */
+ actor_id: components["parameters"]["actor_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "configured_limits": [
+ * {
+ * "category": "LIMIT_CATEGORY_WEB_SEARCH_REQUESTS_PER_MINUTE",
+ * "requests_per_minute": "10"
+ * }
+ * ],
+ * "effective_limits": {
+ * "web_search_requests_per_minute": "10",
+ * "web_fetch_requests_per_minute": "120",
+ * "native_tool_calls_requests_per_minute": "600",
+ * "non_native_tool_calls_requests_per_minute": "600"
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["get_actor_limits_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ actorLimits_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Actor ID: a session `actor_id` or a connection `user_id`, 1 to 64 characters from `[A-Za-z0-9._-]`.
+ * @example alice
+ */
+ actor_id: components["parameters"]["actor_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "categories": [
+ * "LIMIT_CATEGORY_WEB_SEARCH_REQUESTS_PER_MINUTE"
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["clear_actor_limits"];
+ };
+ };
+ responses: {
+ /** @description The overrides were removed. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /** @example {} */
+ "application/json": components["schemas"]["empty_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ actorLimits_update: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Actor ID: a session `actor_id` or a connection `user_id`, 1 to 64 characters from `[A-Za-z0-9._-]`.
+ * @example alice
+ */
+ actor_id: components["parameters"]["actor_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "overrides": [
+ * {
+ * "category": "LIMIT_CATEGORY_WEB_SEARCH_REQUESTS_PER_MINUTE",
+ * "requests_per_minute": "10"
+ * }
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["set_actor_limits"];
+ };
+ };
+ responses: {
+ /** @description The overrides were set. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /** @example {} */
+ "application/json": components["schemas"]["empty_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ providerCredentials_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Optional provider slug, matched case-insensitively. Omit to list credentials for all providers.
+ * @example example-provider
+ */
+ provider?: components["parameters"]["provider_credential_provider"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. Secret material is not returned. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "credentials": [
+ * {
+ * "id": "example-credential-id",
+ * "provider": "example-provider",
+ * "display_name": "Production key",
+ * "kind": "PROVIDER_CREDENTIAL_KIND_API_KEY",
+ * "status": "PROVIDER_CREDENTIAL_STATUS_ACTIVE",
+ * "base_url": "",
+ * "created_at": "2026-11-01T12:00:00Z",
+ * "updated_at": "2026-11-01T12:00:00Z",
+ * "owning_user_id": "example-digitalocean-user-id",
+ * "reusable_by_team": false,
+ * "scope": "user",
+ * "redirect_url": ""
+ * }
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["provider_credentials_list_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ providerCredentials_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "provider": "example-provider",
+ * "display_name": "Production key",
+ * "kind": "PROVIDER_CREDENTIAL_KIND_API_KEY",
+ * "api_key": ""
+ * }
+ */
+ "application/json": components["schemas"]["provider_credential_create"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["provider_credential"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 409: components["responses"]["conflict"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ providerCredentials_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Provider credential ID returned when the credential was created.
+ * @example example-credential-id
+ */
+ id: components["parameters"]["provider_credential_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["provider_credential"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ providerCredentials_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Provider credential ID returned when the credential was created.
+ * @example example-credential-id
+ */
+ id: components["parameters"]["provider_credential_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The credential and its connections were deleted. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "credential": {
+ * "id": "example-credential-id",
+ * "provider": "example-provider",
+ * "display_name": "Production key",
+ * "kind": "PROVIDER_CREDENTIAL_KIND_API_KEY",
+ * "status": "PROVIDER_CREDENTIAL_STATUS_DELETED",
+ * "created_at": "2026-11-01T12:00:00Z",
+ * "updated_at": "2026-11-01T13:00:00Z",
+ * "owning_user_id": "example-digitalocean-user-id",
+ * "reusable_by_team": false,
+ * "scope": "user"
+ * },
+ * "revoked_connections": 1
+ * }
+ */
+ "application/json": components["schemas"]["provider_credential_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ providerCredentials_update: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Provider credential ID returned when the credential was created.
+ * @example example-credential-id
+ */
+ id: components["parameters"]["provider_credential_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "api_key": ""
+ * }
+ */
+ "application/json": components["schemas"]["provider_credential_update"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["provider_credential"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 409: components["responses"]["conflict"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ connections_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Optional provider slug, matched exactly.
+ * @example jira
+ */
+ provider?: components["parameters"]["connection_provider"];
+ /**
+ * @description Optional substring of `user_id`. It must use the `user_id` alphabet, `[A-Za-z0-9._-]`.
+ * @example alice
+ */
+ user_id?: components["parameters"]["connection_user_id"];
+ /**
+ * @description pending|active|revoked|expired. List results always omit revoked connections, including when this filter is revoked.
+ * @example active
+ */
+ status?: components["parameters"]["connection_status"];
+ /**
+ * @description `created_at`, provider, `user_id`, or status. Defaults to provider, then `user_id`.
+ * @example created_at
+ */
+ sort?: components["parameters"]["connection_sort"];
+ /**
+ * @description asc (the default) or desc.
+ * @example desc
+ */
+ sort_direction?: components["parameters"]["sort_direction"];
+ /**
+ * @description 1-based page number. Values below 1 are treated as 1.
+ * @example 1
+ */
+ page?: components["parameters"]["page_connections"];
+ /**
+ * @description Page size. Defaults to 20; values above 100 are capped at 100.
+ * @example 20
+ */
+ per_page?: components["parameters"]["per_page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "connections": [
+ * {
+ * "id": "39f9f768-a7f9-4c91-9557-3328c53dd054",
+ * "provider": "jira",
+ * "provider_display_name": "Jira",
+ * "user_id": "alice",
+ * "status": "active",
+ * "created_at": "2026-07-14T00:50:00Z",
+ * "updated_at": "2026-07-14T00:52:10Z",
+ * "revoked_at": null,
+ * "connection_parameters": {
+ * "site_url": "https://example.atlassian.net"
+ * },
+ * "credential_kind": "digitalocean_oauth",
+ * "credential_id": "",
+ * "network": null,
+ * "scopes": [
+ * "write:jira-work"
+ * ],
+ * "granted_at": "2026-07-14T00:52:10Z",
+ * "oauth": {
+ * "scopes": [
+ * "write:jira-work"
+ * ],
+ * "granted_at": "2026-07-14T00:52:10Z"
+ * }
+ * }
+ * ],
+ * "pagination": {
+ * "page": 1,
+ * "per_page": 20,
+ * "total": 1
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["list_connections_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ connections_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["connection_create"];
+ };
+ };
+ responses: {
+ /** @description The connection was created. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "connection": {
+ * "id": "39f9f768-a7f9-4c91-9557-3328c53dd054",
+ * "provider": "jira",
+ * "provider_display_name": "Jira",
+ * "user_id": "alice",
+ * "status": "pending",
+ * "created_at": "2026-07-14T00:50:00Z",
+ * "updated_at": "2026-07-14T00:50:00Z",
+ * "revoked_at": null,
+ * "connection_parameters": {
+ * "site_url": "https://example.atlassian.net"
+ * },
+ * "credential_kind": "digitalocean_oauth",
+ * "credential_id": "",
+ * "network": null,
+ * "scopes": [
+ * "write:jira-work"
+ * ],
+ * "granted_at": null,
+ * "oauth": {
+ * "scopes": [
+ * "write:jira-work"
+ * ],
+ * "granted_at": null
+ * }
+ * },
+ * "authorization": {
+ * "status": "requires_authorization",
+ * "connect_url": "https://cloud.digitalocean.com/security/connectlinks/confirm?token=eyJhbGciOi",
+ * "verification_code": "97rwxzcy",
+ * "expires_at": "2026-07-14T01:00:00Z"
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["connection_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 409: components["responses"]["conflict"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ connections_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Connection ID.
+ * @example 39f9f768-a7f9-4c91-9557-3328c53dd054
+ */
+ id: components["parameters"]["connection_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "connection": {
+ * "id": "39f9f768-a7f9-4c91-9557-3328c53dd054",
+ * "provider": "jira",
+ * "provider_display_name": "Jira",
+ * "user_id": "alice",
+ * "status": "active",
+ * "created_at": "2026-07-14T00:50:00Z",
+ * "updated_at": "2026-07-14T00:52:10Z",
+ * "revoked_at": null,
+ * "connection_parameters": {
+ * "site_url": "https://example.atlassian.net"
+ * },
+ * "credential_kind": "digitalocean_oauth",
+ * "credential_id": "",
+ * "network": null,
+ * "scopes": [
+ * "write:jira-work"
+ * ],
+ * "granted_at": "2026-07-14T00:52:10Z",
+ * "oauth": {
+ * "scopes": [
+ * "write:jira-work"
+ * ],
+ * "granted_at": "2026-07-14T00:52:10Z"
+ * }
+ * },
+ * "authorization": null
+ * }
+ */
+ "application/json": components["schemas"]["get_connection_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ connections_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Connection ID.
+ * @example 39f9f768-a7f9-4c91-9557-3328c53dd054
+ */
+ id: components["parameters"]["connection_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The connection was revoked. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "connection": {
+ * "id": "39f9f768-a7f9-4c91-9557-3328c53dd054",
+ * "provider": "jira",
+ * "provider_display_name": "Jira",
+ * "user_id": "alice",
+ * "status": "revoked",
+ * "created_at": "2026-07-14T00:50:00Z",
+ * "updated_at": "2026-08-01T09:00:00Z",
+ * "revoked_at": "2026-08-01T09:00:00Z",
+ * "connection_parameters": {
+ * "site_url": "https://example.atlassian.net"
+ * },
+ * "credential_kind": "digitalocean_oauth",
+ * "credential_id": "",
+ * "network": null,
+ * "scopes": [
+ * "write:jira-work"
+ * ],
+ * "granted_at": "2026-07-14T00:52:10Z",
+ * "oauth": {
+ * "scopes": [
+ * "write:jira-work"
+ * ],
+ * "granted_at": "2026-07-14T00:52:10Z"
+ * }
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["delete_connection_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ mcpServers_list: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "mcpServers": [
+ * {
+ * "serverRef": "docs",
+ * "endpoint": "https://mcp.example.com/mcp",
+ * "transport": "streamable_http",
+ * "credentialRefSource": "secret",
+ * "credentialRef": "action-infra/tool-credentials/mcp/docs/3f5b2c1e-9a7d-4e8b-b6c4-2d1f0e9a8b7c",
+ * "syncStatus": "ok",
+ * "syncError": "",
+ * "lastSyncedAt": "2026-09-20T15:04:05Z",
+ * "protocolVersion": "2025-06-18",
+ * "toolCount": 2,
+ * "createdAt": "2026-09-20T15:00:00Z",
+ * "updatedAt": "2026-09-20T15:04:05Z",
+ * "description": "Internal documentation search.",
+ * "oauth_authorize_url": "",
+ * "oauth_scopes": [],
+ * "oauth_authorization_ttl_seconds": "0"
+ * }
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["list_mcp_servers_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ mcpServers_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "serverRef": "docs",
+ * "endpoint": "https://mcp.example.com/mcp",
+ * "credentialRefSource": "secret",
+ * "api_key": "sk_live_example",
+ * "description": "Internal documentation search."
+ * }
+ */
+ "application/json": components["schemas"]["mcp_server_create"];
+ };
+ };
+ responses: {
+ /** @description The MCP server was registered. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "mcpServer": {
+ * "serverRef": "docs",
+ * "endpoint": "https://mcp.example.com/mcp",
+ * "transport": "streamable_http",
+ * "credentialRefSource": "secret",
+ * "credentialRef": "action-infra/tool-credentials/mcp/docs/3f5b2c1e-9a7d-4e8b-b6c4-2d1f0e9a8b7c",
+ * "syncStatus": "pending",
+ * "syncError": "",
+ * "lastSyncedAt": "",
+ * "protocolVersion": "",
+ * "toolCount": 0,
+ * "createdAt": "2026-09-20T15:00:00Z",
+ * "updatedAt": "2026-09-20T15:00:00Z",
+ * "description": "Internal documentation search.",
+ * "oauth_authorize_url": "",
+ * "oauth_scopes": [],
+ * "oauth_authorization_ttl_seconds": "0"
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["mcp_server_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 409: components["responses"]["conflict"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ mcpServers_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Server identifier (`serverRef`) of one of your team's MCP servers.
+ * @example docs
+ */
+ server_ref: components["parameters"]["server_ref"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "mcpServer": {
+ * "serverRef": "docs",
+ * "endpoint": "https://mcp.example.com/mcp",
+ * "transport": "streamable_http",
+ * "credentialRefSource": "secret",
+ * "credentialRef": "action-infra/tool-credentials/mcp/docs/3f5b2c1e-9a7d-4e8b-b6c4-2d1f0e9a8b7c",
+ * "syncStatus": "ok",
+ * "syncError": "",
+ * "lastSyncedAt": "2026-09-20T15:04:05Z",
+ * "protocolVersion": "2025-06-18",
+ * "toolCount": 2,
+ * "createdAt": "2026-09-20T15:00:00Z",
+ * "updatedAt": "2026-09-20T15:04:05Z",
+ * "description": "Internal documentation search.",
+ * "oauth_authorize_url": "",
+ * "oauth_scopes": [],
+ * "oauth_authorization_ttl_seconds": "0"
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["mcp_server_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ mcpServers_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Server identifier (`serverRef`) of one of your team's MCP servers.
+ * @example docs
+ */
+ server_ref: components["parameters"]["server_ref"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The MCP server was deleted. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "mcpServer": {
+ * "serverRef": "docs",
+ * "endpoint": "https://mcp.example.com/mcp",
+ * "transport": "streamable_http",
+ * "credentialRefSource": "secret",
+ * "credentialRef": "action-infra/tool-credentials/mcp/docs/3f5b2c1e-9a7d-4e8b-b6c4-2d1f0e9a8b7c",
+ * "syncStatus": "ok",
+ * "syncError": "",
+ * "lastSyncedAt": "2026-09-20T15:04:05Z",
+ * "protocolVersion": "2025-06-18",
+ * "toolCount": 2,
+ * "createdAt": "2026-09-20T15:00:00Z",
+ * "updatedAt": "2026-09-20T15:04:05Z",
+ * "description": "Internal documentation search.",
+ * "oauth_authorize_url": "",
+ * "oauth_scopes": [],
+ * "oauth_authorization_ttl_seconds": "0"
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["mcp_server_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ mcpServers_patch: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Server identifier (`serverRef`) of one of your team's MCP servers.
+ * @example docs
+ */
+ server_ref: components["parameters"]["server_ref"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "description": "Internal documentation and runbook search."
+ * }
+ */
+ "application/json": components["schemas"]["mcp_server_update"];
+ };
+ };
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "mcpServer": {
+ * "serverRef": "docs",
+ * "endpoint": "https://mcp.example.com/mcp",
+ * "transport": "streamable_http",
+ * "credentialRefSource": "secret",
+ * "credentialRef": "action-infra/tool-credentials/mcp/docs/3f5b2c1e-9a7d-4e8b-b6c4-2d1f0e9a8b7c",
+ * "syncStatus": "ok",
+ * "syncError": "",
+ * "lastSyncedAt": "2026-09-20T15:04:05Z",
+ * "protocolVersion": "2025-06-18",
+ * "toolCount": 2,
+ * "createdAt": "2026-09-20T15:00:00Z",
+ * "updatedAt": "2026-09-21T10:00:00Z",
+ * "description": "Internal documentation and runbook search.",
+ * "oauth_authorize_url": "",
+ * "oauth_scopes": [],
+ * "oauth_authorization_ttl_seconds": "0"
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["mcp_server_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ mcpServers_run_resync: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Server identifier (`serverRef`) of one of your team's MCP servers.
+ * @example docs
+ */
+ server_ref: components["parameters"]["server_ref"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /** @example {} */
+ "application/json": components["schemas"]["mcp_server_resync"];
+ };
+ };
+ responses: {
+ /** @description Discovery finished. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "mcpServer": {
+ * "serverRef": "docs",
+ * "endpoint": "https://mcp.example.com/mcp",
+ * "transport": "streamable_http",
+ * "credentialRefSource": "secret",
+ * "credentialRef": "action-infra/tool-credentials/mcp/docs/3f5b2c1e-9a7d-4e8b-b6c4-2d1f0e9a8b7c",
+ * "syncStatus": "ok",
+ * "syncError": "",
+ * "lastSyncedAt": "2026-09-20T15:04:05Z",
+ * "protocolVersion": "2025-06-18",
+ * "toolCount": 2,
+ * "createdAt": "2026-09-20T15:00:00Z",
+ * "updatedAt": "2026-09-20T15:04:05Z",
+ * "description": "Internal documentation search.",
+ * "oauth_authorize_url": "",
+ * "oauth_scopes": [],
+ * "oauth_authorization_ttl_seconds": "0"
+ * },
+ * "tools": [
+ * {
+ * "name": "get_page",
+ * "toolSlug": "docs_get_page",
+ * "description": "Fetch one documentation page.",
+ * "enabled": false,
+ * "quarantined": false,
+ * "quarantineReason": ""
+ * },
+ * {
+ * "name": "search",
+ * "toolSlug": "docs_search",
+ * "description": "Search the documentation index.",
+ * "enabled": false,
+ * "quarantined": false,
+ * "quarantineReason": ""
+ * }
+ * ],
+ * "pending": false,
+ * "authorization": null
+ * }
+ */
+ "application/json": components["schemas"]["resync_mcp_server_response"];
+ };
+ };
+ /** @description Discovery is still running. Poll the MCP server for its `syncStatus`. */
+ 202: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "mcpServer": {
+ * "serverRef": "docs",
+ * "endpoint": "https://mcp.example.com/mcp",
+ * "transport": "streamable_http",
+ * "credentialRefSource": "secret",
+ * "credentialRef": "action-infra/tool-credentials/mcp/docs/3f5b2c1e-9a7d-4e8b-b6c4-2d1f0e9a8b7c",
+ * "syncStatus": "pending",
+ * "syncError": "",
+ * "lastSyncedAt": "2026-09-20T15:04:05Z",
+ * "protocolVersion": "2025-06-18",
+ * "toolCount": 2,
+ * "createdAt": "2026-09-20T15:00:00Z",
+ * "updatedAt": "2026-09-20T15:04:05Z",
+ * "description": "Internal documentation search.",
+ * "oauth_authorize_url": "",
+ * "oauth_scopes": [],
+ * "oauth_authorization_ttl_seconds": "0"
+ * },
+ * "tools": [],
+ * "pending": true,
+ * "authorization": null
+ * }
+ */
+ "application/json": components["schemas"]["resync_mcp_server_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ mcpServers_list_tools: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Server identifier (`serverRef`) of one of your team's MCP servers.
+ * @example docs
+ */
+ server_ref: components["parameters"]["server_ref"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "tools": [
+ * {
+ * "name": "get_page",
+ * "toolSlug": "docs_get_page",
+ * "description": "Fetch one documentation page.",
+ * "enabled": true,
+ * "quarantined": false,
+ * "quarantineReason": ""
+ * },
+ * {
+ * "name": "search",
+ * "toolSlug": "docs_search",
+ * "description": "Search the documentation index.",
+ * "enabled": true,
+ * "quarantined": false,
+ * "quarantineReason": ""
+ * }
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["list_mcp_server_tools_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ mcpServers_update_tools: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Server identifier (`serverRef`) of one of your team's MCP servers.
+ * @example docs
+ */
+ server_ref: components["parameters"]["server_ref"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "enabledToolSlugs": [
+ * "docs_get_page"
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["mcp_server_tools_update"];
+ };
+ };
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "tools": [
+ * {
+ * "name": "get_page",
+ * "toolSlug": "docs_get_page",
+ * "description": "Fetch one documentation page.",
+ * "enabled": true,
+ * "quarantined": false,
+ * "quarantineReason": ""
+ * },
+ * {
+ * "name": "search",
+ * "toolSlug": "docs_search",
+ * "description": "Search the documentation index.",
+ * "enabled": false,
+ * "quarantined": false,
+ * "quarantineReason": ""
+ * }
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["list_mcp_server_tools_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ outputViews_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description At most one of tool or `tool_id`, as on create. With one set, the list is the published views plus your team's own on that tool version. With neither, it is every live view your team owns plus every published view on a tool version your catalog exposes, across tools.
+ * @example exa_web_search
+ */
+ tool?: components["parameters"]["output_view_tool"];
+ /**
+ * @description Opaque ID of the tool version; see tool.
+ * @example tul_exa_web_search
+ */
+ tool_id?: components["parameters"]["output_view_tool_id"];
+ /**
+ * @description Page size, 1 to 100. Defaults to 20 when omitted or 0; other values are rejected with 400.
+ * @example 20
+ */
+ page_size?: components["parameters"]["page_size"];
+ /**
+ * @description `next_page_token` from the previous response. Valid only with the same tool selection; otherwise the request is rejected with 400.
+ * @example ZXhhX3dlYl9zZWFyY2hAMQ
+ */
+ page_token?: components["parameters"]["page_token"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "views": [
+ * {
+ * "view_id": "ov_4f0c2a9d8e1b47c6a3d5f7e9b1c3a5d7",
+ * "tool_id": "tul_exa_web_search",
+ * "tool": "exa_web_search",
+ * "version": "v1",
+ * "team_id": "123456",
+ * "name": "titles-and-urls",
+ * "description": "Keep only result titles and URLs.",
+ * "kind": "OUTPUT_VIEW_KIND_PROJECTION",
+ * "fields": [
+ * "results.title",
+ * "results.url"
+ * ],
+ * "output_schema": {
+ * "type": "object",
+ * "properties": {
+ * "results": {
+ * "type": "array",
+ * "items": {
+ * "type": "object",
+ * "properties": {
+ * "title": {
+ * "type": "string"
+ * },
+ * "url": {
+ * "type": "string"
+ * }
+ * }
+ * }
+ * }
+ * }
+ * },
+ * "audit": {
+ * "createdAt": "2026-09-01T16:00:00Z",
+ * "updatedAt": "2026-09-01T16:00:00Z",
+ * "deletedAt": null
+ * }
+ * }
+ * ],
+ * "tool_id": "tul_exa_web_search",
+ * "tool": "exa_web_search",
+ * "version": "v1",
+ * "next_page_token": ""
+ * }
+ */
+ "application/json": components["schemas"]["list_output_views_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ outputViews_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "tool": "exa_web_search",
+ * "name": "titles-and-urls",
+ * "description": "Keep only result titles and URLs.",
+ * "fields": [
+ * "results.title",
+ * "results.url"
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["output_view_create"];
+ };
+ };
+ responses: {
+ /** @description The output view was created. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "view": {
+ * "view_id": "ov_4f0c2a9d8e1b47c6a3d5f7e9b1c3a5d7",
+ * "tool_id": "tul_exa_web_search",
+ * "tool": "exa_web_search",
+ * "version": "v1",
+ * "team_id": "123456",
+ * "name": "titles-and-urls",
+ * "description": "Keep only result titles and URLs.",
+ * "kind": "OUTPUT_VIEW_KIND_PROJECTION",
+ * "fields": [
+ * "results.title",
+ * "results.url"
+ * ],
+ * "output_schema": {
+ * "type": "object",
+ * "properties": {
+ * "results": {
+ * "type": "array",
+ * "items": {
+ * "type": "object",
+ * "properties": {
+ * "title": {
+ * "type": "string"
+ * },
+ * "url": {
+ * "type": "string"
+ * }
+ * }
+ * }
+ * }
+ * }
+ * },
+ * "audit": {
+ * "createdAt": "2026-09-01T16:00:00Z",
+ * "updatedAt": "2026-09-01T16:00:00Z",
+ * "deletedAt": null
+ * }
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["output_view_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 409: components["responses"]["conflict"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ outputViews_validate: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "tool": "exa_web_search",
+ * "fields": [
+ * "results.title",
+ * "results.url"
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["output_view_preview"];
+ };
+ };
+ responses: {
+ /** @description The output view is valid. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "view": {
+ * "view_id": "",
+ * "tool_id": "tul_exa_web_search",
+ * "tool": "exa_web_search",
+ * "version": "v1",
+ * "team_id": "123456",
+ * "name": "titles-and-urls",
+ * "description": "Keep only result titles and URLs.",
+ * "kind": "OUTPUT_VIEW_KIND_PROJECTION",
+ * "fields": [
+ * "results.title",
+ * "results.url"
+ * ],
+ * "output_schema": {
+ * "type": "object",
+ * "properties": {
+ * "results": {
+ * "type": "array",
+ * "items": {
+ * "type": "object",
+ * "properties": {
+ * "title": {
+ * "type": "string"
+ * },
+ * "url": {
+ * "type": "string"
+ * }
+ * }
+ * }
+ * }
+ * }
+ * },
+ * "audit": null
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["output_view_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ outputViews_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Output view ID.
+ * @example ov_4f0c2a9d8e1b47c6a3d5f7e9b1c3a5d7
+ */
+ view_id: components["parameters"]["view_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "view": {
+ * "view_id": "ov_4f0c2a9d8e1b47c6a3d5f7e9b1c3a5d7",
+ * "tool_id": "tul_exa_web_search",
+ * "tool": "exa_web_search",
+ * "version": "v1",
+ * "team_id": "123456",
+ * "name": "titles-and-urls",
+ * "description": "Keep only result titles and URLs.",
+ * "kind": "OUTPUT_VIEW_KIND_PROJECTION",
+ * "fields": [
+ * "results.title",
+ * "results.url"
+ * ],
+ * "output_schema": {
+ * "type": "object",
+ * "properties": {
+ * "results": {
+ * "type": "array",
+ * "items": {
+ * "type": "object",
+ * "properties": {
+ * "title": {
+ * "type": "string"
+ * },
+ * "url": {
+ * "type": "string"
+ * }
+ * }
+ * }
+ * }
+ * }
+ * },
+ * "audit": {
+ * "createdAt": "2026-09-01T16:00:00Z",
+ * "updatedAt": "2026-09-01T16:00:00Z",
+ * "deletedAt": null
+ * }
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["output_view_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ outputViews_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Output view ID.
+ * @example ov_4f0c2a9d8e1b47c6a3d5f7e9b1c3a5d7
+ */
+ view_id: components["parameters"]["view_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The output view was deleted. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "view": {
+ * "view_id": "ov_4f0c2a9d8e1b47c6a3d5f7e9b1c3a5d7",
+ * "tool_id": "tul_exa_web_search",
+ * "tool": "exa_web_search",
+ * "version": "v1",
+ * "team_id": "123456",
+ * "name": "titles-and-urls",
+ * "description": "Keep only result titles and URLs.",
+ * "kind": "OUTPUT_VIEW_KIND_PROJECTION",
+ * "fields": [
+ * "results.title",
+ * "results.url"
+ * ],
+ * "output_schema": {
+ * "type": "object",
+ * "properties": {
+ * "results": {
+ * "type": "array",
+ * "items": {
+ * "type": "object",
+ * "properties": {
+ * "title": {
+ * "type": "string"
+ * },
+ * "url": {
+ * "type": "string"
+ * }
+ * }
+ * }
+ * }
+ * }
+ * },
+ * "audit": {
+ * "createdAt": "2026-09-01T16:00:00Z",
+ * "updatedAt": "2026-09-10T08:00:00Z",
+ * "deletedAt": "2026-09-10T08:00:00Z"
+ * }
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["output_view_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ endpoints_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page size; defaults to 20 when omitted. Supplied values outside 1 through 100 return 400. Sizes are not clamped.
+ * @example 20
+ */
+ page_size?: components["parameters"]["endpoint_parameters_page_size"];
+ /**
+ * @description Opaque next_page_token from the previous response. Omit for the first page. Malformed tokens or replay with a different team, caller visibility, normalized filters, resource kind, or parent endpoint return 400. Tokens contain no full URNs or database row IDs.
+ * @example
+ */
+ page_token?: components["parameters"]["endpoint_parameters_page_token"];
+ /**
+ * @description Filter by endpoint name.
+ * @example support-agent
+ */
+ name?: components["parameters"]["name"];
+ /**
+ * @description Filter by the endpoint's actor binding.
+ * @example alice
+ */
+ actor_id?: components["parameters"]["endpoint_parameters_actor_id"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["endpoints_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ endpoints_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["endpoint_create"];
+ };
+ };
+ responses: {
+ /** @description The new head version was created. */
+ 201: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["endpoint_publish_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 409: components["responses"]["endpoint_name_taken"];
+ 429: components["responses"]["endpoint_creation_limited"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ endpoints_list_search: {
+ parameters: {
+ query: {
+ /**
+ * @description Text matched case-insensitively as a substring of the endpoint name, endpoint ID, actor_id, or agent name. Leading and trailing whitespace is trimmed; an empty query returns 400 invalid_search_query.
+ * @example support
+ */
+ query: components["parameters"]["search_query"];
+ /**
+ * @description Exact actor_id filter, combined with query. Omitted or empty means all actors.
+ * @example alice
+ */
+ actor_id?: components["parameters"]["search_actor_id"];
+ /**
+ * @description Page size; defaults to 20 when omitted. Supplied values outside 1 through 100 return 400. Sizes are not clamped.
+ * @example 20
+ */
+ page_size?: components["parameters"]["endpoint_parameters_page_size"];
+ /**
+ * @description Opaque next_page_token from the previous response. Omit for the first page. Malformed tokens or replay with a different team, caller visibility, normalized filters, resource kind, or parent endpoint return 400. Tokens contain no full URNs or database row IDs.
+ * @example
+ */
+ page_token?: components["parameters"]["endpoint_parameters_page_token"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["endpoint_search_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ endpoints_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Endpoint UUID only. Malformed IDs or full URNs return 400 invalid_endpoint_id.
+ * @example 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13
+ */
+ endpoint_id: components["parameters"]["endpoint_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["endpoint_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ endpoints_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Endpoint UUID only. Malformed IDs or full URNs return 400 invalid_endpoint_id.
+ * @example 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13
+ */
+ endpoint_id: components["parameters"]["endpoint_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The endpoint was deleted or no visible endpoint matched. The response is empty in either case. */
+ 204: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ endpoints_patch: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Endpoint UUID only. Malformed IDs or full URNs return 400 invalid_endpoint_id.
+ * @example 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13
+ */
+ endpoint_id: components["parameters"]["endpoint_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["endpoint_patch"];
+ };
+ };
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["endpoint_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 409: components["responses"]["endpoint_name_taken"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ endpointVersions_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page size; defaults to 20 when omitted. Supplied values outside 1 through 100 return 400. Sizes are not clamped.
+ * @example 20
+ */
+ page_size?: components["parameters"]["endpoint_parameters_page_size"];
+ /**
+ * @description Opaque next_page_token from the previous response. Omit for the first page. Malformed tokens or replay with a different team, caller visibility, normalized filters, resource kind, or parent endpoint return 400. Tokens contain no full URNs or database row IDs.
+ * @example
+ */
+ page_token?: components["parameters"]["endpoint_parameters_page_token"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description Endpoint UUID only. Malformed IDs or full URNs return 400 invalid_endpoint_id.
+ * @example 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13
+ */
+ endpoint_id: components["parameters"]["endpoint_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["endpoint_versions_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ endpointVersions_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Endpoint UUID only. Malformed IDs or full URNs return 400 invalid_endpoint_id.
+ * @example 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13
+ */
+ endpoint_id: components["parameters"]["endpoint_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["endpoint_version_spec"];
+ };
+ };
+ responses: {
+ /** @description The new head version was created. */
+ 201: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["endpoint_publish_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["version_creation_not_found"];
+ 429: components["responses"]["version_creation_limited"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ endpointVersions_create_promotion: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Endpoint UUID only. Malformed IDs or full URNs return 400 invalid_endpoint_id.
+ * @example 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13
+ */
+ endpoint_id: components["parameters"]["endpoint_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["endpoint_promotion"];
+ };
+ };
+ responses: {
+ /** @description The new head version was created. */
+ 201: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["endpoint_publish_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["promotion_not_found"];
+ 429: components["responses"]["version_creation_limited"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ endpointVersions_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Composite version ID only. Invalid IDs return 400 invalid_endpoint_version_id.
+ * @example 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13.v1
+ */
+ version_id: components["parameters"]["version_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["endpoint_version_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ endpointVersions_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Composite version ID only. Invalid IDs return 400 invalid_endpoint_version_id.
+ * @example 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13.v1
+ */
+ version_id: components["parameters"]["version_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The resource was deleted. */
+ 204: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ sessions_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Optional `actor_id`, matched exactly.
+ * @example alice
+ */
+ end_user_id?: components["parameters"]["end_user_id"];
+ /**
+ * @description 1-based page number. Values below 1 are treated as 1.
+ * @example 1
+ */
+ page?: components["parameters"]["page_connections"];
+ /**
+ * @description Page size. Defaults to 20; values above 100 are capped at 100.
+ * @example 20
+ */
+ per_page?: components["parameters"]["per_page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "sessions": [
+ * {
+ * "sessionUrn": "do:managed_agent_session:2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b",
+ * "policy": {
+ * "defaultAction": "ask",
+ * "rules": [
+ * {
+ * "tool": "toolbelt:search-toolbelt@1",
+ * "match": {},
+ * "action": "allow"
+ * },
+ * {
+ * "tool": "jira_create_issue",
+ * "match": {},
+ * "action": "ask"
+ * }
+ * ]
+ * },
+ * "createdAt": "2026-09-24T12:00:00Z",
+ * "updatedAt": "2026-09-24T12:00:00Z",
+ * "name": "support-bot-alice",
+ * "actorId": "alice",
+ * "tools": {
+ * "references": [
+ * {
+ * "kind": "SESSION_TOOL_REFERENCE_KIND_TOOLBELT",
+ * "name": "search-toolbelt",
+ * "version": "1"
+ * },
+ * {
+ * "kind": "SESSION_TOOL_REFERENCE_KIND_TOOL",
+ * "name": "jira_create_issue",
+ * "version": "1"
+ * }
+ * ]
+ * },
+ * "config": {
+ * "preloadTools": [
+ * "exa_web_search"
+ * ],
+ * "outputViews": {
+ * "exa_web_search": "titles-and-urls"
+ * }
+ * },
+ * "agentUrn": "",
+ * "agentName": "",
+ * "owning_user_id": "2f8e1c3a-6b4d-4f7e-9a1c-5d3b7e9f1a2c"
+ * }
+ * ],
+ * "pagination": {
+ * "page": 1,
+ * "per_page": 20,
+ * "total": 1
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["list_sessions_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ sessions_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "name": "support-bot-alice",
+ * "actorId": "alice",
+ * "tools": [
+ * "toolbelt:search-toolbelt@1",
+ * "jira_create_issue"
+ * ],
+ * "policy": {
+ * "defaultAction": "ask",
+ * "rules": [
+ * {
+ * "tool": "toolbelt:search-toolbelt@1",
+ * "match": {},
+ * "action": "allow"
+ * },
+ * {
+ * "tool": "jira_create_issue",
+ * "match": {},
+ * "action": "ask"
+ * }
+ * ]
+ * },
+ * "config": {
+ * "preloadTools": [
+ * "exa_web_search"
+ * ],
+ * "outputViews": {
+ * "exa_web_search": "titles-and-urls"
+ * }
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["session_create"];
+ };
+ };
+ responses: {
+ /** @description The session was created. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "session": {
+ * "sessionUrn": "do:managed_agent_session:2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b",
+ * "policy": {
+ * "defaultAction": "ask",
+ * "rules": [
+ * {
+ * "tool": "toolbelt:search-toolbelt@1",
+ * "match": {},
+ * "action": "allow"
+ * },
+ * {
+ * "tool": "jira_create_issue",
+ * "match": {},
+ * "action": "ask"
+ * }
+ * ]
+ * },
+ * "createdAt": "2026-09-24T12:00:00Z",
+ * "updatedAt": "2026-09-24T12:00:00Z",
+ * "name": "support-bot-alice",
+ * "actorId": "alice",
+ * "tools": {
+ * "references": [
+ * {
+ * "kind": "SESSION_TOOL_REFERENCE_KIND_TOOLBELT",
+ * "name": "search-toolbelt",
+ * "version": "1"
+ * },
+ * {
+ * "kind": "SESSION_TOOL_REFERENCE_KIND_TOOL",
+ * "name": "jira_create_issue",
+ * "version": "1"
+ * }
+ * ]
+ * },
+ * "config": {
+ * "preloadTools": [
+ * "exa_web_search"
+ * ],
+ * "outputViews": {
+ * "exa_web_search": "titles-and-urls"
+ * }
+ * },
+ * "agentUrn": "",
+ * "agentName": "",
+ * "owning_user_id": "2f8e1c3a-6b4d-4f7e-9a1c-5d3b7e9f1a2c"
+ * },
+ * "mcpUrl": "https://actions.do-ai.run/mcp/session/2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b",
+ * "tools": [
+ * "toolbelt:search-toolbelt@1",
+ * "jira_create_issue@1"
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["create_session_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 409: components["responses"]["session_name_taken"];
+ 429: components["responses"]["session_creation_limited"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ sessions_list_search: {
+ parameters: {
+ query?: {
+ /**
+ * @description Matched case-insensitively as a substring of name, `actor_id`, `session_urn`, or `agentName`. Empty matches every session you can see. Results are ordered by match quality (an exact name, `session_urn`, or `actor_id` match, then a prefix, then a substring), then by name, across the whole result set, so a client must not re-sort a page to rank it.
+ * @example search
+ */
+ query?: components["parameters"]["parameters_search_query"];
+ /**
+ * @description `end_user_id`, when set, is an exact filter on `actor_id` (the same filter as on the session list) and combines with query as AND.
+ * @example alice
+ */
+ end_user_id?: components["parameters"]["end_user_id_sessions_search"];
+ /**
+ * @description Page size, 1 to 100. Defaults to 20 when omitted or 0; other values are rejected with 400.
+ * @example 20
+ */
+ page_size?: components["parameters"]["page_size"];
+ /**
+ * @description `next_page_token` from the previous response. Valid only with the same query and `end_user_id`; otherwise the request is rejected with 400.
+ * @example ZXhhX3dlYl9zZWFyY2hAMQ
+ */
+ page_token?: components["parameters"]["page_token_sessions_search"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "sessions": [
+ * {
+ * "sessionUrn": "do:managed_agent_session:2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b",
+ * "policy": {
+ * "defaultAction": "ask",
+ * "rules": [
+ * {
+ * "tool": "toolbelt:search-toolbelt@1",
+ * "match": {},
+ * "action": "allow"
+ * },
+ * {
+ * "tool": "jira_create_issue",
+ * "match": {},
+ * "action": "ask"
+ * }
+ * ]
+ * },
+ * "createdAt": "2026-09-24T12:00:00Z",
+ * "updatedAt": "2026-09-24T12:00:00Z",
+ * "name": "support-bot-alice",
+ * "actorId": "alice",
+ * "tools": {
+ * "references": [
+ * {
+ * "kind": "SESSION_TOOL_REFERENCE_KIND_TOOLBELT",
+ * "name": "search-toolbelt",
+ * "version": "1"
+ * },
+ * {
+ * "kind": "SESSION_TOOL_REFERENCE_KIND_TOOL",
+ * "name": "jira_create_issue",
+ * "version": "1"
+ * }
+ * ]
+ * },
+ * "config": {
+ * "preloadTools": [
+ * "exa_web_search"
+ * ],
+ * "outputViews": {
+ * "exa_web_search": "titles-and-urls"
+ * }
+ * },
+ * "agentUrn": "",
+ * "agentName": "",
+ * "owning_user_id": "2f8e1c3a-6b4d-4f7e-9a1c-5d3b7e9f1a2c"
+ * }
+ * ],
+ * "next_page_token": ""
+ * }
+ */
+ "application/json": components["schemas"]["search_sessions_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ sessions_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description URN of the session, for example `do:managed_agent_session:`.
+ * @example do:managed_agent_session:2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b
+ */
+ session_urn: components["parameters"]["session_urn"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The session was deleted. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /** @example {} */
+ "application/json": components["schemas"]["empty_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ toolbelts_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description active (default), deprecated, or all. Case-insensitive.
+ * @example active
+ */
+ status?: components["parameters"]["toolbelt_status"];
+ /**
+ * @description 1-based page number. Values below 1 are treated as 1.
+ * @example 1
+ */
+ page?: components["parameters"]["page_connections"];
+ /**
+ * @description Page size. Defaults to 20; values above 100 are capped at 100.
+ * @example 20
+ */
+ per_page?: components["parameters"]["per_page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "toolbelts": [
+ * {
+ * "name": "search-toolbelt",
+ * "display_name": "Search Tools",
+ * "latest_version": "1",
+ * "version_count": 1,
+ * "tool_count": 2,
+ * "status": "active",
+ * "reference_latest": "search-toolbelt",
+ * "updated_at": "2026-06-11T12:00:00Z",
+ * "description": "Tools for searching and fetching public web pages."
+ * }
+ * ],
+ * "pagination": {
+ * "page": 1,
+ * "per_page": 20,
+ * "total": 1
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["toolbelts_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ toolbelts_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "name": "search-toolbelt",
+ * "display_name": "Search Tools",
+ * "description": "Tools for searching and fetching public web pages.",
+ * "tools": [
+ * "exa_web_search",
+ * "exa_web_fetch"
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["toolbelt_create"];
+ };
+ };
+ responses: {
+ /** @description The toolbelt was created. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "toolbelt": {
+ * "name": "search-toolbelt",
+ * "version": "1",
+ * "display_name": "Search Tools",
+ * "description": "Tools for searching and fetching public web pages.",
+ * "tools": [
+ * "exa_web_fetch@1",
+ * "exa_web_search@1"
+ * ],
+ * "status": "active",
+ * "reference": "search-toolbelt@1",
+ * "reference_latest": "search-toolbelt",
+ * "tool_count": 2,
+ * "created_at": "2026-06-11T12:00:00Z",
+ * "updated_at": "2026-06-11T12:00:00Z"
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["toolbelt_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 409: components["responses"]["conflict"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ toolbelts_list_search: {
+ parameters: {
+ query?: {
+ /**
+ * @description Matched case-insensitively as a substring of name, `display_name`, or description. Empty matches every toolbelt of your team.
+ * @example search
+ */
+ query?: components["parameters"]["search_query_toolbelts_search"];
+ /**
+ * @description active (default), deprecated, or all. Case-insensitive.
+ * @example active
+ */
+ status?: components["parameters"]["toolbelt_status"];
+ /**
+ * @description Page size, 1 to 100. Defaults to 20 when omitted or 0; other values are rejected with 400.
+ * @example 20
+ */
+ page_size?: components["parameters"]["page_size"];
+ /**
+ * @description `next_page_token` from the previous response. Valid only with the same query and status; otherwise the request is rejected with 400.
+ * @example ZXhhX3dlYl9zZWFyY2hAMQ
+ */
+ page_token?: components["parameters"]["page_token_toolbelts_search"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "toolbelts": [
+ * {
+ * "name": "search-toolbelt",
+ * "display_name": "Search Tools",
+ * "latest_version": "1",
+ * "version_count": 1,
+ * "tool_count": 2,
+ * "status": "active",
+ * "reference_latest": "search-toolbelt",
+ * "updated_at": "2026-06-11T12:00:00Z",
+ * "description": "Tools for searching and fetching public web pages."
+ * }
+ * ],
+ * "next_page_token": ""
+ * }
+ */
+ "application/json": components["schemas"]["search_toolbelts_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ toolbelts_get: {
+ parameters: {
+ query?: {
+ /**
+ * @description Version number to read. Empty returns the latest version.
+ * @example 1
+ */
+ version?: components["parameters"]["toolbelt_version"];
+ /**
+ * @description Page size for `tool_details` only; toolbelt.tools always lists every member. Defaults to 20; values above 100 are capped at 100.
+ * @example 20
+ */
+ page_size?: components["parameters"]["page_size_toolbelts"];
+ /**
+ * @description `next_page_token` from the previous response, to continue `tool_details`. Treat it as opaque, and send it only with the same toolbelt, version, and search.
+ * @example ZXhhX3dlYl9zZWFyY2hAMQ
+ */
+ page_token?: components["parameters"]["page_token_toolbelts"];
+ /**
+ * @description Restricts `tool_details` to members whose tool slug, name, title, description, provider, or category contains this value, case-insensitively. It does not filter toolbelt.tools. This is a substring match, not a filter expression.
+ * @example search
+ */
+ search?: components["parameters"]["toolbelt_search"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description Toolbelt name.
+ * @example search-toolbelt
+ */
+ name: components["parameters"]["toolbelt_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "toolbelt": {
+ * "name": "search-toolbelt",
+ * "version": "1",
+ * "display_name": "Search Tools",
+ * "description": "Tools for searching and fetching public web pages.",
+ * "tools": [
+ * "exa_web_fetch@1",
+ * "exa_web_search@1"
+ * ],
+ * "status": "active",
+ * "reference": "search-toolbelt@1",
+ * "reference_latest": "search-toolbelt",
+ * "tool_count": 2,
+ * "created_at": "2026-06-11T12:00:00Z",
+ * "updated_at": "2026-06-11T12:00:00Z"
+ * },
+ * "tool_details": [
+ * {
+ * "tool_slug": "exa_web_fetch",
+ * "name": "web_fetch",
+ * "title": "Web Fetch",
+ * "description": "Fetch the contents of a public web page with Exa.",
+ * "provider": "exa",
+ * "category": "web-fetch",
+ * "version": 1
+ * },
+ * {
+ * "tool_slug": "exa_web_search",
+ * "name": "web_search",
+ * "title": "Web Search",
+ * "description": "Search the public web with Exa and return relevant results with normalized text snippets.",
+ * "provider": "exa",
+ * "category": "web-search",
+ * "version": 1
+ * }
+ * ],
+ * "next_page_token": ""
+ * }
+ */
+ "application/json": components["schemas"]["get_toolbelt_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ toolbelts_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Toolbelt name.
+ * @example search-toolbelt
+ */
+ name: components["parameters"]["toolbelt_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The toolbelt was deprecated. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "toolbelt": {
+ * "name": "search-toolbelt",
+ * "version": "1",
+ * "display_name": "Search Tools",
+ * "description": "Tools for searching and fetching public web pages.",
+ * "tools": [
+ * "exa_web_fetch@1",
+ * "exa_web_search@1"
+ * ],
+ * "status": "deprecated",
+ * "reference": "search-toolbelt@1",
+ * "reference_latest": "search-toolbelt",
+ * "tool_count": 2,
+ * "created_at": "2026-06-11T12:00:00Z",
+ * "updated_at": "2026-06-15T10:00:00Z"
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["toolbelt_update_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ toolbelts_list_providers: {
+ parameters: {
+ query?: {
+ /**
+ * @description Version number to read. Empty reads the latest version.
+ * @example 1
+ */
+ version?: components["parameters"]["toolbelt_version_toolbelts_providers"];
+ /**
+ * @description 1-based page number. Values below 1 are treated as 1.
+ * @example 1
+ */
+ page?: components["parameters"]["page_connections"];
+ /**
+ * @description Page size. Defaults to 20; values above 100 are capped at 100.
+ * @example 20
+ */
+ per_page?: components["parameters"]["per_page"];
+ /**
+ * @description Restricts providers whose ID, name, or description contains this value, case-insensitively.
+ * @example search
+ */
+ search?: components["parameters"]["toolbelt_search_toolbelts_providers"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description Toolbelt name.
+ * @example search-toolbelt
+ */
+ name: components["parameters"]["toolbelt_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "toolbelt": {
+ * "name": "search-toolbelt",
+ * "version": "1",
+ * "display_name": "Search Tools",
+ * "description": "Tools for searching and fetching public web pages.",
+ * "tools": [
+ * "exa_web_fetch@1",
+ * "exa_web_search@1"
+ * ],
+ * "status": "active",
+ * "reference": "search-toolbelt@1",
+ * "reference_latest": "search-toolbelt",
+ * "tool_count": 2,
+ * "created_at": "2026-06-11T12:00:00Z",
+ * "updated_at": "2026-06-11T12:00:00Z"
+ * },
+ * "providers": [
+ * {
+ * "provider": "exa",
+ * "tool_count": 2,
+ * "id": "exa",
+ * "name": "Exa",
+ * "description": "Web search tools backed by Exa.",
+ * "categories": [
+ * "web-fetch",
+ * "web-search"
+ * ],
+ * "created_at": "2026-06-01T00:00:00Z"
+ * }
+ * ],
+ * "pagination": {
+ * "page": 1,
+ * "per_page": 20,
+ * "total": 1
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["list_toolbelt_providers_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ toolbelts_list_provider_tools: {
+ parameters: {
+ query?: {
+ /**
+ * @description Version number to read. Empty reads the latest version.
+ * @example 1
+ */
+ version?: components["parameters"]["toolbelt_version_toolbelts_providers"];
+ /**
+ * @description 1-based page number. Values below 1 are treated as 1.
+ * @example 1
+ */
+ page?: components["parameters"]["page_connections"];
+ /**
+ * @description Page size. Defaults to 20; values above 100 are capped at 100.
+ * @example 20
+ */
+ per_page?: components["parameters"]["per_page"];
+ /**
+ * @description Restricts tools whose slug, name, title, description, provider, or category contains this value, case-insensitively, within the provider only.
+ * @example search
+ */
+ search?: components["parameters"]["toolbelt_search_toolbelts_providers_tools"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description Toolbelt name.
+ * @example search-toolbelt
+ */
+ name: components["parameters"]["toolbelt_name"];
+ /**
+ * @description A provider ID from the toolbelt's provider list, or `_legacy` for members recorded without a provider. Matched exactly.
+ * @example exa
+ */
+ provider: components["parameters"]["toolbelt_provider"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "tools": [
+ * {
+ * "tool_slug": "exa_web_fetch",
+ * "name": "web_fetch",
+ * "title": "Web Fetch",
+ * "description": "Fetch the contents of a public web page with Exa.",
+ * "provider": "exa",
+ * "category": "web-fetch",
+ * "version": 1
+ * },
+ * {
+ * "tool_slug": "exa_web_search",
+ * "name": "web_search",
+ * "title": "Web Search",
+ * "description": "Search the public web with Exa and return relevant results with normalized text snippets.",
+ * "provider": "exa",
+ * "category": "web-search",
+ * "version": 1
+ * }
+ * ],
+ * "pagination": {
+ * "page": 1,
+ * "per_page": 20,
+ * "total": 2
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["list_toolbelt_provider_tools_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ toolbelts_add_tools: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Toolbelt name, from the path.
+ * @example search-toolbelt
+ */
+ name: components["parameters"]["toolbelt_name_toolbelts_tools_add"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "tools": [
+ * "jira_create_issue"
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["toolbelt_tools"];
+ };
+ };
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "toolbelt": {
+ * "name": "search-toolbelt",
+ * "version": "2",
+ * "display_name": "Search Tools",
+ * "description": "Tools for searching and fetching public web pages.",
+ * "tools": [
+ * "exa_web_fetch@1",
+ * "exa_web_search@1",
+ * "jira_create_issue@1"
+ * ],
+ * "status": "active",
+ * "reference": "search-toolbelt@2",
+ * "reference_latest": "search-toolbelt",
+ * "tool_count": 3,
+ * "created_at": "2026-06-11T12:00:00Z",
+ * "updated_at": "2026-06-12T09:30:00Z"
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["toolbelt_update_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ toolbelts_delete_tools: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Toolbelt name, from the path.
+ * @example search-toolbelt
+ */
+ name: components["parameters"]["toolbelt_name_toolbelts_tools_add"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "tools": [
+ * "exa_web_fetch"
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["toolbelt_tools"];
+ };
+ };
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "toolbelt": {
+ * "name": "search-toolbelt",
+ * "version": "2",
+ * "display_name": "Search Tools",
+ * "description": "Tools for searching and fetching public web pages.",
+ * "tools": [
+ * "exa_web_search@1"
+ * ],
+ * "status": "active",
+ * "reference": "search-toolbelt@2",
+ * "reference_latest": "search-toolbelt",
+ * "tool_count": 1,
+ * "created_at": "2026-06-11T12:00:00Z",
+ * "updated_at": "2026-06-12T09:30:00Z"
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["toolbelt_update_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ tools_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Restricts the page to one provider. It accepts the provider ID the catalog returns, including the `serverRef` of one of your team's MCP servers.
+ * @example exa
+ */
+ toolkit_id?: components["parameters"]["toolkit_id"];
+ /**
+ * @description 1-based page index; values below 1 are treated as 1. A page past the end returns an empty tools list with the real total.
+ * @example 1
+ */
+ page?: components["parameters"]["page_tools"];
+ /**
+ * @description Page size. Defaults to 100 when omitted or 0; values above 100 are capped at 100.
+ * @example 100
+ */
+ per_page?: components["parameters"]["tools_per_page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "version": "v1",
+ * "tools": [
+ * {
+ * "name": "web_search",
+ * "toolkitId": "exa",
+ * "title": "Web Search",
+ * "description": "Search the public web with Exa and return relevant results with normalized text snippets.",
+ * "inputSchema": {
+ * "type": "object",
+ * "properties": {
+ * "query": {
+ * "type": "string",
+ * "description": "Search query string."
+ * },
+ * "max_results": {
+ * "type": "integer",
+ * "description": "Maximum number of search results to return."
+ * }
+ * },
+ * "required": [
+ * "query"
+ * ]
+ * },
+ * "annotations": {
+ * "title": "Web Search",
+ * "readOnlyHint": true,
+ * "idempotentHint": true,
+ * "openWorldHint": true,
+ * "destructiveHint": false
+ * },
+ * "version": "v1",
+ * "parallelizable": true,
+ * "streamingSafe": true,
+ * "outputSchema": {
+ * "type": "object",
+ * "additionalProperties": false,
+ * "properties": {
+ * "query": {
+ * "type": "string"
+ * },
+ * "provider": {
+ * "type": "string"
+ * },
+ * "results": {
+ * "type": "array",
+ * "items": {
+ * "type": "object",
+ * "properties": {
+ * "title": {
+ * "type": "string"
+ * },
+ * "url": {
+ * "type": "string"
+ * },
+ * "text": {
+ * "type": "string"
+ * },
+ * "publishedDate": {
+ * "type": "string"
+ * }
+ * }
+ * }
+ * }
+ * }
+ * },
+ * "toolSlug": "exa_web_search"
+ * }
+ * ],
+ * "definitions": [
+ * {
+ * "toolId": "tul_exa_web_search",
+ * "name": "web_search",
+ * "toolkitId": "exa",
+ * "title": "Web Search",
+ * "description": "Search the public web with Exa and return relevant results with normalized text snippets.",
+ * "inputSchema": {
+ * "type": "object",
+ * "properties": {
+ * "query": {
+ * "type": "string",
+ * "description": "Search query string."
+ * },
+ * "max_results": {
+ * "type": "integer",
+ * "description": "Maximum number of search results to return."
+ * }
+ * },
+ * "required": [
+ * "query"
+ * ]
+ * },
+ * "outputSchema": {
+ * "type": "object",
+ * "additionalProperties": false,
+ * "properties": {
+ * "query": {
+ * "type": "string"
+ * },
+ * "provider": {
+ * "type": "string"
+ * },
+ * "results": {
+ * "type": "array",
+ * "items": {
+ * "type": "object",
+ * "properties": {
+ * "title": {
+ * "type": "string"
+ * },
+ * "url": {
+ * "type": "string"
+ * },
+ * "text": {
+ * "type": "string"
+ * },
+ * "publishedDate": {
+ * "type": "string"
+ * }
+ * }
+ * }
+ * }
+ * }
+ * },
+ * "annotations": {
+ * "title": "Web Search",
+ * "readOnlyHint": true,
+ * "idempotentHint": true,
+ * "openWorldHint": true,
+ * "destructiveHint": false
+ * },
+ * "version": "v1",
+ * "auth": {
+ * "modes": [
+ * "shared_key"
+ * ],
+ * "provider": "exa",
+ * "scopes": []
+ * },
+ * "toolSlug": "exa_web_search",
+ * "providerKind": "managed_api"
+ * }
+ * ],
+ * "pagination": {
+ * "page": 1,
+ * "per_page": 100,
+ * "total": 1
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["list_tools_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ tools_list_health: {
+ parameters: {
+ query?: {
+ /**
+ * @description Optional provider ID, matched exactly, to return only that provider's tools.
+ * @example exa
+ */
+ provider?: components["parameters"]["health_provider"];
+ /**
+ * @description Window to aggregate over. Defaults to twenty-four hours.
+ *
+ * - `HEALTH_WINDOW_UNSPECIFIED`: Twenty-four hours.
+ * - `HEALTH_WINDOW_ONE_HOUR`: One hour; history points are 10 minutes.
+ * - `HEALTH_WINDOW_TWENTY_FOUR_HOURS`: Twenty-four hours; history points are 1 hour.
+ * - `HEALTH_WINDOW_SEVEN_DAYS`: Seven days; history points are 6 hours.
+ * - `HEALTH_WINDOW_THIRTY_DAYS`: Thirty days; history points are 24 hours.
+ * @example HEALTH_WINDOW_SEVEN_DAYS
+ */
+ window?: components["parameters"]["health_window"];
+ /**
+ * @description 1-based page number. Values below 1 are treated as 1.
+ * @example 1
+ */
+ page?: components["parameters"]["page_connections"];
+ /**
+ * @description Page size. Defaults to 20; values above 100 are capped at 100.
+ * @example 20
+ */
+ per_page?: components["parameters"]["per_page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "snapshot": {
+ * "measured_at": "2026-09-24T12:00:00Z",
+ * "window": "86400s",
+ * "stale": false
+ * },
+ * "tools": [
+ * {
+ * "tool_slug": "exa_web_search",
+ * "provider": "exa",
+ * "health": {
+ * "data_status": "HEALTH_DATA_STATUS_AVAILABLE",
+ * "uptime_percentage": 99.82,
+ * "latency_p50_ms": 412.5,
+ * "latency_p95_ms": 1180
+ * }
+ * }
+ * ],
+ * "pagination": {
+ * "page": 1,
+ * "per_page": 20,
+ * "total": 1
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["list_tool_health_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ tools_list_health_providers: {
+ parameters: {
+ query?: {
+ /**
+ * @description Optional provider ID, matched exactly, to return only that provider.
+ * @example exa
+ */
+ provider?: components["parameters"]["health_provider_tools_health_providers"];
+ /**
+ * @description Window to aggregate over. Defaults to twenty-four hours.
+ *
+ * - `HEALTH_WINDOW_UNSPECIFIED`: Twenty-four hours.
+ * - `HEALTH_WINDOW_ONE_HOUR`: One hour; history points are 10 minutes.
+ * - `HEALTH_WINDOW_TWENTY_FOUR_HOURS`: Twenty-four hours; history points are 1 hour.
+ * - `HEALTH_WINDOW_SEVEN_DAYS`: Seven days; history points are 6 hours.
+ * - `HEALTH_WINDOW_THIRTY_DAYS`: Thirty days; history points are 24 hours.
+ * @example HEALTH_WINDOW_SEVEN_DAYS
+ */
+ window?: components["parameters"]["health_window"];
+ /**
+ * @description 1-based page number. Values below 1 are treated as 1.
+ * @example 1
+ */
+ page?: components["parameters"]["page_connections"];
+ /**
+ * @description Page size. Defaults to 20; values above 100 are capped at 100.
+ * @example 20
+ */
+ per_page?: components["parameters"]["per_page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "snapshot": {
+ * "measured_at": "2026-09-24T12:00:00Z",
+ * "window": "86400s",
+ * "stale": false
+ * },
+ * "providers": [
+ * {
+ * "provider": "exa",
+ * "health": {
+ * "data_status": "HEALTH_DATA_STATUS_AVAILABLE",
+ * "uptime_percentage": 99.82,
+ * "latency_p50_ms": 412.5,
+ * "latency_p95_ms": 1180
+ * }
+ * }
+ * ],
+ * "pagination": {
+ * "page": 1,
+ * "per_page": 20,
+ * "total": 1
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["list_provider_health_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ tools_get_health: {
+ parameters: {
+ query?: {
+ /**
+ * @description Window to aggregate over. Defaults to twenty-four hours.
+ *
+ * - `HEALTH_WINDOW_UNSPECIFIED`: Twenty-four hours.
+ * - `HEALTH_WINDOW_ONE_HOUR`: One hour; history points are 10 minutes.
+ * - `HEALTH_WINDOW_TWENTY_FOUR_HOURS`: Twenty-four hours; history points are 1 hour.
+ * - `HEALTH_WINDOW_SEVEN_DAYS`: Seven days; history points are 6 hours.
+ * - `HEALTH_WINDOW_THIRTY_DAYS`: Thirty days; history points are 24 hours.
+ * @example HEALTH_WINDOW_SEVEN_DAYS
+ */
+ window?: components["parameters"]["health_window"];
+ /**
+ * @description Additionally returns the window split into resolution-aligned points (the history field below).
+ * @example true
+ */
+ include_history?: components["parameters"]["include_history"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description Catalog tool slug, for example `exa_search`. Required.
+ * @example exa_web_search
+ */
+ tool_slug: components["parameters"]["tool_slug"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "snapshot": {
+ * "measured_at": "2026-09-24T12:00:00Z",
+ * "window": "3600s",
+ * "stale": false
+ * },
+ * "tool": {
+ * "tool_slug": "exa_web_search",
+ * "provider": "exa",
+ * "health": {
+ * "data_status": "HEALTH_DATA_STATUS_AVAILABLE",
+ * "uptime_percentage": 99.82,
+ * "latency_p50_ms": 412.5,
+ * "latency_p95_ms": 1180
+ * }
+ * },
+ * "history": {
+ * "resolution": "600s",
+ * "stale": false,
+ * "points": [
+ * {
+ * "bucket_start": "2026-09-24T11:10:00Z",
+ * "health": {
+ * "data_status": "HEALTH_DATA_STATUS_AVAILABLE",
+ * "uptime_percentage": 99.82,
+ * "latency_p50_ms": 412.5,
+ * "latency_p95_ms": 1180
+ * }
+ * },
+ * {
+ * "bucket_start": "2026-09-24T11:20:00Z",
+ * "health": {
+ * "data_status": "HEALTH_DATA_STATUS_NO_DATA",
+ * "uptime_percentage": null,
+ * "latency_p50_ms": null,
+ * "latency_p95_ms": null
+ * }
+ * }
+ * ]
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["get_tool_health_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ tools_list_versions: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page size, 1 to 100. Defaults to 20 when omitted or 0; other values are rejected with 400.
+ * @example 20
+ */
+ page_size?: components["parameters"]["page_size"];
+ /**
+ * @description `next_page_token` from the previous response. Valid only with the same tool selection; otherwise the request is rejected with 400.
+ * @example ZXhhX3dlYl9zZWFyY2hAMQ
+ */
+ page_token?: components["parameters"]["page_token"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description Catalog tool slug, for example `exa_search`. Required.
+ * @example exa_web_search
+ */
+ tool_slug: components["parameters"]["tool_slug"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "versions": [
+ * {
+ * "tool_slug": "supabase_list_organizations",
+ * "version": "v17",
+ * "released_at": "2026-11-12T09:30:00Z",
+ * "latest": true,
+ * "previous_version": "v16",
+ * "breaking": true,
+ * "changes": [
+ * {
+ * "type": "requiredScopesAdded",
+ * "values": [
+ * "organizations:read"
+ * ],
+ * "breaking": true
+ * }
+ * ]
+ * },
+ * {
+ * "tool_slug": "supabase_list_organizations",
+ * "version": "v16",
+ * "released_at": "2026-10-20T14:05:00Z",
+ * "latest": false,
+ * "previous_version": "v15",
+ * "breaking": false,
+ * "changes": [
+ * {
+ * "type": "inputPropertyAdded",
+ * "path": "page.cursor",
+ * "breaking": false
+ * }
+ * ]
+ * }
+ * ],
+ * "next_page_token": "djE1"
+ * }
+ */
+ "application/json": components["schemas"]["list_tool_versions_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ tools_list_providers: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "providers": [
+ * {
+ * "name": "exa",
+ * "display_name": "Exa",
+ * "description": "Web search tools backed by Exa.",
+ * "auth_type": "shared_api_key",
+ * "scopes": [],
+ * "connection_parameters": [],
+ * "auth_types": [
+ * "shared_api_key"
+ * ],
+ * "credential_parameters": [],
+ * "oauth_client_setup_url": "https://developer.atlassian.com/console/myapps/",
+ * "oauth_redirect_url": "https://cloud.digitalocean.com/api/v1/security/connectlinks/callback"
+ * },
+ * {
+ * "name": "jira",
+ * "display_name": "Jira",
+ * "description": "Jira issue tracking tools.",
+ * "auth_type": "oauth",
+ * "scopes": [
+ * "write:jira-work"
+ * ],
+ * "connection_parameters": [
+ * {
+ * "key": "site_url",
+ * "label": "Jira site URL",
+ * "description": "The HTTPS origin of the Jira Cloud site to use.",
+ * "input_kind": "https_origin",
+ * "required": true,
+ * "normalization": "https_origin",
+ * "allowed_values": [],
+ * "allowed_host_suffixes": [
+ * "atlassian.net"
+ * ],
+ * "max_length": 255,
+ * "pattern": ""
+ * }
+ * ],
+ * "auth_types": [
+ * "oauth"
+ * ],
+ * "credential_parameters": [],
+ * "oauth_client_setup_url": "https://developer.atlassian.com/console/myapps/",
+ * "oauth_redirect_url": "https://cloud.digitalocean.com/api/v1/security/connectlinks/callback"
+ * }
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["list_providers_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ tools_list_search_providers: {
+ parameters: {
+ query?: {
+ /**
+ * @description Matched case-insensitively as a substring of name, `display_name`, or description. It does not match the titles of the tools a provider owns: "providers owning a tool that matches" is a tool search grouped by the provider field of each result.
+ * @example search
+ */
+ query?: components["parameters"]["search_query_tools_providers_search"];
+ /**
+ * @description Page size, 1 to 100. Defaults to 20 when omitted or 0; other values are rejected with 400.
+ * @example 20
+ */
+ page_size?: components["parameters"]["page_size"];
+ /**
+ * @description `next_page_token` from the previous response. Valid only with the same query; otherwise the request is rejected with 400.
+ * @example ZXhhX3dlYl9zZWFyY2hAMQ
+ */
+ page_token?: components["parameters"]["page_token_tools_providers_search"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "providers": [
+ * {
+ * "name": "jira",
+ * "display_name": "Jira",
+ * "description": "Jira issue tracking tools.",
+ * "auth_type": "oauth",
+ * "scopes": [
+ * "write:jira-work"
+ * ],
+ * "connection_parameters": [
+ * {
+ * "key": "site_url",
+ * "label": "Jira site URL",
+ * "description": "The HTTPS origin of the Jira Cloud site to use.",
+ * "input_kind": "https_origin",
+ * "required": true,
+ * "normalization": "https_origin",
+ * "allowed_values": [],
+ * "allowed_host_suffixes": [
+ * "atlassian.net"
+ * ],
+ * "max_length": 255,
+ * "pattern": ""
+ * }
+ * ],
+ * "auth_types": [
+ * "oauth"
+ * ],
+ * "credential_parameters": [],
+ * "oauth_client_setup_url": "https://developer.atlassian.com/console/myapps/",
+ * "oauth_redirect_url": "https://cloud.digitalocean.com/api/v1/security/connectlinks/callback"
+ * }
+ * ],
+ * "next_page_token": ""
+ * }
+ */
+ "application/json": components["schemas"]["search_providers_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ tools_list_search: {
+ parameters: {
+ query?: {
+ /**
+ * @description Matched case- and accent-insensitively as a substring of the tool's name, title, description, category, provider ID, or tool slug. Empty matches every tool your team can use.
+ * @example search
+ */
+ query?: components["parameters"]["search_query_tools_search"];
+ /**
+ * @description Restricts results to these provider IDs, OR'd together. Repeat the parameter to select several. An unknown ID matches nothing.
+ * @example [
+ * "exa"
+ * ]
+ */
+ provider?: components["parameters"]["search_tools_provider"];
+ /**
+ * @description Restricts results to the members of that toolbelt of your team at its latest version, combined with query and provider as AND. Members are matched at the version the toolbelt pins, which is the same set and the same versions `GET /v2/action-gateway/toolbelts/{name}` reports. An unknown or deleted toolbelt returns 404 rather than an empty page.
+ * @example search-toolbelt
+ */
+ toolbelt?: components["parameters"]["search_tools_toolbelt"];
+ /**
+ * @description Page size, 1 to 100. Defaults to 20 when omitted or 0; other values are rejected with 400.
+ * @example 20
+ */
+ page_size?: components["parameters"]["page_size"];
+ /**
+ * @description A `next_page_token` from the preceding response. It is pinned to the query and filters that produced it: replaying one against a different search is rejected with 400, not a silent restart from the top.
+ * @example ZXhhX3dlYl9zZWFyY2hAMQ
+ */
+ page_token?: components["parameters"]["page_token_tools_search"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "tools": [
+ * {
+ * "tool_slug": "exa_web_search",
+ * "name": "web_search",
+ * "title": "Web Search",
+ * "description": "Search the public web with Exa and return relevant results with normalized text snippets.",
+ * "provider": "exa",
+ * "category": "web-search",
+ * "version": 1
+ * }
+ * ],
+ * "next_page_token": ""
+ * }
+ */
+ "application/json": components["schemas"]["search_tools_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ tools_list_toolkits: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "version": "v1",
+ * "toolkits": [
+ * {
+ * "id": "exa",
+ * "name": "Exa",
+ * "description": "Web search tools backed by Exa.",
+ * "categories": [
+ * "web-fetch",
+ * "web-search"
+ * ],
+ * "created_at": "2026-06-01T00:00:00Z",
+ * "provider_kind": "managed_api"
+ * }
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["list_toolkits_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ users_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description User ID prefix to return. An empty value returns all users.
+ * @example al
+ */
+ user_id?: components["parameters"]["users_user_id"];
+ /**
+ * @description `user_id`|`created_at`|`session_count`|`connection_count`. `created_at` is the earliest creation time among the user's sessions, connections, and limit overrides. Defaults to `created_at`.
+ * @example session_count
+ */
+ sort?: components["parameters"]["users_sort"];
+ /**
+ * @description asc|desc. Defaults to desc.
+ * @example desc
+ */
+ sort_direction?: components["parameters"]["sort_direction_users"];
+ /**
+ * @description 1-based page number. Values below 1 are treated as 1.
+ * @example 1
+ */
+ page?: components["parameters"]["page_connections"];
+ /**
+ * @description Page size. Defaults to 20; values above 100 are capped at 100.
+ * @example 20
+ */
+ per_page?: components["parameters"]["per_page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "user_ids": [
+ * "alice",
+ * "bob"
+ * ],
+ * "pagination": {
+ * "page": 1,
+ * "per_page": 20,
+ * "total": 2
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["list_users_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ users_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description User ID.
+ * @example alice
+ */
+ user_id: components["parameters"]["user_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The request was successful. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "user": {
+ * "user_id": "alice",
+ * "sessions": [
+ * {
+ * "session_urn": "do:managed_agent_session:2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b",
+ * "name": "support-bot-alice",
+ * "created_at": "2026-09-24T12:00:00Z",
+ * "updated_at": "2026-09-24T12:00:00Z"
+ * }
+ * ],
+ * "connections": [
+ * {
+ * "id": "39f9f768-a7f9-4c91-9557-3328c53dd054",
+ * "provider": "jira",
+ * "user_id": "alice",
+ * "scopes": [
+ * "write:jira-work"
+ * ],
+ * "status": "active",
+ * "granted_at": "2026-07-14T00:52:10Z",
+ * "revoked_at": null,
+ * "created_at": "2026-07-14T00:50:00Z",
+ * "updated_at": "2026-07-14T00:52:10Z",
+ * "provider_display_name": "Jira",
+ * "connection_parameters": {
+ * "site_url": "https://example.atlassian.net"
+ * },
+ * "credential_kind": "digitalocean_oauth",
+ * "credential_id": "",
+ * "network": null
+ * }
+ * ]
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["get_user_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ gatewayTools_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description The number of tools returned per page, from 1 to 100. Defaults to 20 when omitted. Other values are rejected with 400.
+ * @example 20
+ */
+ page_size?: components["parameters"]["session_tools_page_size"];
+ /**
+ * @description The `next_page_token` from the previous response. A token is only valid for the session that received it.
+ * @example eyJ2IjoxLCJhZnRlciI6ImV4YV93ZWJfc2VhcmNoIiwiZnAiOiI5YzFlNWI3YTNkMmY0ZTYwIn0
+ */
+ page_token?: components["parameters"]["session_tools_page_token"];
+ };
+ header?: {
+ /**
+ * @description The session to act in: the UUID at the end of the session's `sessionUrn` and `mcpUrl`. For a pinned endpoint version, use the session UUID at the end of its `mcp_url`, not the composite version ID. The session must belong to the authenticated user and team. Send either this header or `X-Endpoint-Id`, not both; both returns 400. With neither, the request uses your default endpoint when default endpoints are enabled for your team, and otherwise returns 403.
+ * @example 2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b
+ */
+ "X-Session-Id"?: components["parameters"]["session_id_header"];
+ /**
+ * @description The endpoint to act in, as a lowercase endpoint UUID. The request uses the endpoint's current head version, which the response reports in `X-Action-Gateway-Endpoint-Version`. The endpoint must belong to the authenticated user and team; an unknown or inaccessible endpoint returns 404. Send either this header or `X-Session-Id`, not both. A malformed value or more than one value returns 400.
+ * @example 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13
+ */
+ "X-Endpoint-Id"?: components["parameters"]["endpoint_id_header"];
+ /**
+ * @description The actor you expect the session or endpoint to be bound to. It does not select an actor or connections; those come from the session's or endpoint's `actor_id`. When sent, it must equal that binding. A different value, including any value for a target with no actor, returns 403 with the message "The session is not bound to the request's actor."
+ * @example alice
+ */
+ "X-Actor-Id"?: components["parameters"]["actor_id_header"];
+ /**
+ * @description The `ETag` from a previous response for the same page. If the page is unchanged, the response is `304 Not Modified` with no body.
+ * @example "3f2a1b0c9d8e7f6a5b4c3d2e1f0a9b8c"
+ */
+ "If-None-Match"?: components["parameters"]["if_none_match"];
+ };
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A page of tools. */
+ 200: {
+ headers: {
+ /**
+ * @description An identifier for this page's contents.
+ * @example "3f2a1b0c9d8e7f6a5b4c3d2e1f0a9b8c"
+ */
+ ETag?: string;
+ "X-Endpoint-Id": components["headers"]["X-Endpoint-Id"];
+ "X-Action-Gateway-Endpoint-Version": components["headers"]["X-Action-Gateway-Endpoint-Version"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "version": "v1",
+ * "tools": [
+ * {
+ * "name": "exa_web_search",
+ * "title": "Web Search",
+ * "description": "Search the public web and return ranked results with titles and URLs.",
+ * "inputSchema": {
+ * "type": "object",
+ * "required": [
+ * "query"
+ * ],
+ * "properties": {
+ * "query": {
+ * "type": "string"
+ * },
+ * "max_results": {
+ * "type": "integer"
+ * }
+ * }
+ * },
+ * "annotations": {
+ * "title": "Web Search",
+ * "readOnlyHint": true,
+ * "openWorldHint": true
+ * },
+ * "_meta": {
+ * "version": "1",
+ * "parallelizable": true,
+ * "streaming_safe": false
+ * },
+ * "version": "1",
+ * "parallelizable": true,
+ * "streamingSafe": false
+ * }
+ * ],
+ * "next_page_token": "eyJ2IjoxLCJhZnRlciI6ImV4YV93ZWJfc2VhcmNoIiwiZnAiOiI5YzFlNWI3YTNkMmY0ZTYwIn0"
+ * }
+ */
+ "application/json": components["schemas"]["list_session_tools_response"];
+ };
+ };
+ /** @description The page is unchanged since the `ETag` in `If-None-Match`. */
+ 304: {
+ headers: {
+ "X-Endpoint-Id": components["headers"]["X-Endpoint-Id"];
+ "X-Action-Gateway-Endpoint-Version": components["headers"]["X-Action-Gateway-Endpoint-Version"];
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ 400: components["responses"]["data_plane_responses_bad_request"];
+ 401: components["responses"]["data_plane_responses_unauthorized"];
+ 403: components["responses"]["data_plane_responses_forbidden"];
+ 404: components["responses"]["endpoint_not_found"];
+ 412: components["responses"]["precondition_failed"];
+ 429: components["responses"]["data_plane_responses_too_many_requests"];
+ 500: components["responses"]["data_plane_responses_server_error"];
+ 503: components["responses"]["service_unavailable"];
+ };
+ };
+ gatewayTools_list_search: {
+ parameters: {
+ query?: never;
+ header?: {
+ /**
+ * @description The session to act in: the UUID at the end of the session's `sessionUrn` and `mcpUrl`. For a pinned endpoint version, use the session UUID at the end of its `mcp_url`, not the composite version ID. The session must belong to the authenticated user and team. Send either this header or `X-Endpoint-Id`, not both; both returns 400. With neither, the request uses your default endpoint when default endpoints are enabled for your team, and otherwise returns 403.
+ * @example 2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b
+ */
+ "X-Session-Id"?: components["parameters"]["session_id_header"];
+ /**
+ * @description The endpoint to act in, as a lowercase endpoint UUID. The request uses the endpoint's current head version, which the response reports in `X-Action-Gateway-Endpoint-Version`. The endpoint must belong to the authenticated user and team; an unknown or inaccessible endpoint returns 404. Send either this header or `X-Session-Id`, not both. A malformed value or more than one value returns 400.
+ * @example 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13
+ */
+ "X-Endpoint-Id"?: components["parameters"]["endpoint_id_header"];
+ /**
+ * @description The actor you expect the session or endpoint to be bound to. It does not select an actor or connections; those come from the session's or endpoint's `actor_id`. When sent, it must equal that binding. A different value, including any value for a target with no actor, returns 403 with the message "The session is not bound to the request's actor."
+ * @example alice
+ */
+ "X-Actor-Id"?: components["parameters"]["actor_id_header"];
+ };
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "queries": [
+ * {
+ * "use_case": "search the public web for current information"
+ * }
+ * ],
+ * "limit": 3
+ * }
+ */
+ "application/json": components["schemas"]["search_tools_request"];
+ };
+ };
+ responses: {
+ /** @description The search ran, or it is waiting for approval. Check `status` before reading `output`. */
+ 200: {
+ headers: {
+ "X-Endpoint-Id": components["headers"]["X-Endpoint-Id"];
+ "X-Action-Gateway-Endpoint-Version": components["headers"]["X-Action-Gateway-Endpoint-Version"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "status": "succeeded",
+ * "output": {
+ * "results": [
+ * {
+ * "index": 1,
+ * "use_case": "search the public web for current information",
+ * "results": [
+ * {
+ * "name": "exa_web_search",
+ * "version": "1",
+ * "title": "Web Search",
+ * "description": "Search the public web and return ranked results with titles and URLs.",
+ * "inputSchema": {
+ * "type": "object",
+ * "required": [
+ * "query"
+ * ],
+ * "properties": {
+ * "query": {
+ * "type": "string"
+ * },
+ * "max_results": {
+ * "type": "integer"
+ * }
+ * }
+ * },
+ * "score": 0.92
+ * }
+ * ]
+ * }
+ * ]
+ * },
+ * "call_id": "call_8b7c6d5e-4f3a-4b2c-9d1e-0f9a8b7c6d5e"
+ * }
+ */
+ "application/json": components["schemas"]["data_plane_search_tools_response"];
+ };
+ };
+ 400: components["responses"]["data_plane_responses_bad_request"];
+ 401: components["responses"]["data_plane_responses_unauthorized"];
+ 403: components["responses"]["data_plane_responses_forbidden"];
+ 404: components["responses"]["endpoint_not_found"];
+ 412: components["responses"]["precondition_failed"];
+ 413: components["responses"]["payload_too_large"];
+ 429: components["responses"]["data_plane_responses_too_many_requests"];
+ 500: components["responses"]["data_plane_responses_server_error"];
+ 503: components["responses"]["service_unavailable"];
+ };
+ };
+ gatewayTools_run: {
+ parameters: {
+ query?: never;
+ header?: {
+ /**
+ * @description The session to act in: the UUID at the end of the session's `sessionUrn` and `mcpUrl`. For a pinned endpoint version, use the session UUID at the end of its `mcp_url`, not the composite version ID. The session must belong to the authenticated user and team. Send either this header or `X-Endpoint-Id`, not both; both returns 400. With neither, the request uses your default endpoint when default endpoints are enabled for your team, and otherwise returns 403.
+ * @example 2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b
+ */
+ "X-Session-Id"?: components["parameters"]["session_id_header"];
+ /**
+ * @description The endpoint to act in, as a lowercase endpoint UUID. The request uses the endpoint's current head version, which the response reports in `X-Action-Gateway-Endpoint-Version`. The endpoint must belong to the authenticated user and team; an unknown or inaccessible endpoint returns 404. Send either this header or `X-Session-Id`, not both. A malformed value or more than one value returns 400.
+ * @example 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13
+ */
+ "X-Endpoint-Id"?: components["parameters"]["endpoint_id_header"];
+ /**
+ * @description The actor you expect the session or endpoint to be bound to. It does not select an actor or connections; those come from the session's or endpoint's `actor_id`. When sent, it must equal that binding. A different value, including any value for a target with no actor, returns 403 with the message "The session is not bound to the request's actor."
+ * @example alice
+ */
+ "X-Actor-Id"?: components["parameters"]["actor_id_header"];
+ };
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "rationale": "Find current information about DigitalOcean.",
+ * "tools": [
+ * {
+ * "tool": "exa_web_search",
+ * "arguments": {
+ * "query": "DigitalOcean cloud computing",
+ * "max_results": 1
+ * }
+ * }
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["invoke_tools_request"];
+ };
+ };
+ responses: {
+ /** @description The calls ran. Each item reports its own success or failure. */
+ 200: {
+ headers: {
+ "X-Endpoint-Id": components["headers"]["X-Endpoint-Id"];
+ "X-Action-Gateway-Endpoint-Version": components["headers"]["X-Action-Gateway-Endpoint-Version"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["invoke_tools_response"];
+ };
+ };
+ 400: components["responses"]["data_plane_responses_bad_request"];
+ 401: components["responses"]["data_plane_responses_unauthorized"];
+ 402: components["responses"]["payment_required"];
+ 403: components["responses"]["data_plane_responses_forbidden"];
+ 404: components["responses"]["endpoint_not_found"];
+ 412: components["responses"]["precondition_failed"];
+ 413: components["responses"]["payload_too_large"];
+ 429: components["responses"]["data_plane_responses_too_many_requests"];
+ 500: components["responses"]["data_plane_responses_server_error"];
+ 503: components["responses"]["service_unavailable"];
+ };
+ };
+ gatewayCode_run: {
+ parameters: {
+ query?: never;
+ header?: {
+ /**
+ * @description The session to act in: the UUID at the end of the session's `sessionUrn` and `mcpUrl`. For a pinned endpoint version, use the session UUID at the end of its `mcp_url`, not the composite version ID. The session must belong to the authenticated user and team. Send either this header or `X-Endpoint-Id`, not both; both returns 400. With neither, the request uses your default endpoint when default endpoints are enabled for your team, and otherwise returns 403.
+ * @example 2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b
+ */
+ "X-Session-Id"?: components["parameters"]["session_id_header"];
+ /**
+ * @description The endpoint to act in, as a lowercase endpoint UUID. The request uses the endpoint's current head version, which the response reports in `X-Action-Gateway-Endpoint-Version`. The endpoint must belong to the authenticated user and team; an unknown or inaccessible endpoint returns 404. Send either this header or `X-Session-Id`, not both. A malformed value or more than one value returns 400.
+ * @example 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13
+ */
+ "X-Endpoint-Id"?: components["parameters"]["endpoint_id_header"];
+ /**
+ * @description The actor you expect the session or endpoint to be bound to. It does not select an actor or connections; those come from the session's or endpoint's `actor_id`. When sent, it must equal that binding. A different value, including any value for a target with no actor, returns 403 with the message "The session is not bound to the request's actor."
+ * @example alice
+ */
+ "X-Actor-Id"?: components["parameters"]["actor_id_header"];
+ };
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "code": "print(\"hello from Action Gateway\")"
+ * }
+ */
+ "application/json": components["schemas"]["execute_code_request"];
+ };
+ };
+ responses: {
+ /** @description The code ran, or it is waiting for approval. Check `status` before reading `output`. */
+ 200: {
+ headers: {
+ "X-Endpoint-Id": components["headers"]["X-Endpoint-Id"];
+ "X-Action-Gateway-Endpoint-Version": components["headers"]["X-Action-Gateway-Endpoint-Version"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "status": "succeeded",
+ * "output": {
+ * "stdout": "hello from Action Gateway\n",
+ * "exit_code": 0
+ * },
+ * "call_id": "call_8b7c6d5e-4f3a-4b2c-9d1e-0f9a8b7c6d5e"
+ * }
+ */
+ "application/json": components["schemas"]["execute_code_response"];
+ };
+ };
+ 400: components["responses"]["data_plane_responses_bad_request"];
+ 401: components["responses"]["data_plane_responses_unauthorized"];
+ 403: components["responses"]["data_plane_responses_forbidden"];
+ 404: components["responses"]["endpoint_not_found"];
+ 412: components["responses"]["precondition_failed"];
+ 413: components["responses"]["payload_too_large"];
+ 429: components["responses"]["data_plane_responses_too_many_requests"];
+ 500: components["responses"]["data_plane_responses_server_error"];
+ 503: components["responses"]["service_unavailable"];
+ 504: components["responses"]["gateway_timeout"];
+ };
+ };
+ gatewaySessionApprovals_update: {
+ parameters: {
+ query?: never;
+ header?: {
+ /**
+ * @description The actor you expect the session or endpoint to be bound to. It does not select an actor or connections; those come from the session's or endpoint's `actor_id`. When sent, it must equal that binding. A different value, including any value for a target with no actor, returns 403 with the message "The session is not bound to the request's actor."
+ * @example alice
+ */
+ "X-Actor-Id"?: components["parameters"]["actor_id_header"];
+ };
+ path: {
+ /**
+ * @description The session UUID: the value at the end of the session's `sessionUrn` and `mcpUrl`. The session must belong to the authenticated user and team.
+ * @example 2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b
+ */
+ session_id: components["parameters"]["session_id"];
+ /**
+ * @description The `approval_id` from a tool result whose `_meta.status` is `requires_approval`.
+ * @example 7d3c2b1a-9e8f-4a6b-8c5d-4e3f2a1b0c9d
+ */
+ approval_id: components["parameters"]["approval_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "decision": "approve"
+ * }
+ */
+ "application/json": components["schemas"]["approval_decision"];
+ };
+ };
+ responses: {
+ /** @description The decision was recorded. */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "7d3c2b1a-9e8f-4a6b-8c5d-4e3f2a1b0c9d",
+ * "status": "approved",
+ * "expires_at": "2026-10-09T18:30:00Z"
+ * }
+ */
+ "application/json": components["schemas"]["approval_decision_response"];
+ };
+ };
+ 400: components["responses"]["data_plane_responses_bad_request"];
+ 401: components["responses"]["data_plane_responses_unauthorized"];
+ 403: components["responses"]["data_plane_responses_forbidden"];
+ 404: components["responses"]["data_plane_responses_not_found"];
+ 409: components["responses"]["data_plane_responses_conflict"];
+ 412: components["responses"]["precondition_failed"];
+ 429: components["responses"]["data_plane_responses_too_many_requests"];
+ 500: components["responses"]["data_plane_responses_server_error"];
+ 503: components["responses"]["service_unavailable"];
+ };
+ };
+ gatewayApprovals_update: {
+ parameters: {
+ query?: never;
+ header?: {
+ /**
+ * @description The session to act in: the UUID at the end of the session's `sessionUrn` and `mcpUrl`. For a pinned endpoint version, use the session UUID at the end of its `mcp_url`, not the composite version ID. The session must belong to the authenticated user and team. Send either this header or `X-Endpoint-Id`, not both; both returns 400. With neither, the request uses your default endpoint when default endpoints are enabled for your team, and otherwise returns 403.
+ * @example 2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b
+ */
+ "X-Session-Id"?: components["parameters"]["session_id_header"];
+ /**
+ * @description The endpoint to act in, as a lowercase endpoint UUID. The request uses the endpoint's current head version, which the response reports in `X-Action-Gateway-Endpoint-Version`. The endpoint must belong to the authenticated user and team; an unknown or inaccessible endpoint returns 404. Send either this header or `X-Session-Id`, not both. A malformed value or more than one value returns 400.
+ * @example 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13
+ */
+ "X-Endpoint-Id"?: components["parameters"]["endpoint_id_header"];
+ /**
+ * @description The actor you expect the session or endpoint to be bound to. It does not select an actor or connections; those come from the session's or endpoint's `actor_id`. When sent, it must equal that binding. A different value, including any value for a target with no actor, returns 403 with the message "The session is not bound to the request's actor."
+ * @example alice
+ */
+ "X-Actor-Id"?: components["parameters"]["actor_id_header"];
+ };
+ path: {
+ /**
+ * @description The `approval_id` from a tool result whose `_meta.status` is `requires_approval`.
+ * @example 7d3c2b1a-9e8f-4a6b-8c5d-4e3f2a1b0c9d
+ */
+ approval_id: components["parameters"]["approval_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "decision": "deny"
+ * }
+ */
+ "application/json": components["schemas"]["approval_decision"];
+ };
+ };
+ responses: {
+ /** @description The decision was recorded. */
+ 200: {
+ headers: {
+ "X-Endpoint-Id": components["headers"]["X-Endpoint-Id"];
+ "X-Action-Gateway-Endpoint-Version": components["headers"]["X-Action-Gateway-Endpoint-Version"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "7d3c2b1a-9e8f-4a6b-8c5d-4e3f2a1b0c9d",
+ * "status": "denied",
+ * "expires_at": "2026-10-09T18:30:00Z"
+ * }
+ */
+ "application/json": components["schemas"]["approval_decision_response"];
+ };
+ };
+ 400: components["responses"]["data_plane_responses_bad_request"];
+ 401: components["responses"]["data_plane_responses_unauthorized"];
+ 403: components["responses"]["data_plane_responses_forbidden"];
+ 404: components["responses"]["data_plane_responses_not_found"];
+ 409: components["responses"]["data_plane_responses_conflict"];
+ 412: components["responses"]["precondition_failed"];
+ 429: components["responses"]["data_plane_responses_too_many_requests"];
+ 500: components["responses"]["data_plane_responses_server_error"];
+ 503: components["responses"]["service_unavailable"];
+ };
+ };
+ oneClicks_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Restrict results to a certain type of 1-Click.
+ * @example kubernetes
+ */
+ type?: components["parameters"]["oneClicks_type"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["oneClicks_all"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ oneClicks_install_kubernetes: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["oneClicks_create"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["oneClicks_create"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ account_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["account"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ sshKeys_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["sshKeys_all"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ sshKeys_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["sshKeys"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["sshKeys_new"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ sshKeys_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Either the ID or the fingerprint of an existing SSH key.
+ * @example 512189
+ */
+ ssh_key_identifier: components["parameters"]["ssh_key_identifier"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["sshKeys_existing"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ sshKeys_update: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Either the ID or the fingerprint of an existing SSH key.
+ * @example 512189
+ */
+ ssh_key_identifier: components["parameters"]["ssh_key_identifier"];
+ };
+ cookie?: never;
+ };
+ /** @description Set the `name` attribute to the new name you want to use. */
+ requestBody: {
+ content: {
+ "application/json": {
+ name?: components["schemas"]["ssh_key_name"];
+ };
+ };
+ };
+ responses: {
+ 200: components["responses"]["sshKeys_existing"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ sshKeys_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Either the ID or the fingerprint of an existing SSH key.
+ * @example 512189
+ */
+ ssh_key_identifier: components["parameters"]["ssh_key_identifier"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ actions_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["actions"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ actions_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique numeric ID that can be used to identify and reference an action.
+ * @example 36804636
+ */
+ action_id: components["parameters"]["action_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["action"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ addons_get_app: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["addons_get_app"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ addons_get_app_metadata: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The slug identifier for the application whose metadata is being requested.
+ * @example example_app
+ */
+ app_slug: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["addons_get_app_metadata"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ addons_list: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["addons_list"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ addons_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": WithRequired;
+ };
+ };
+ responses: {
+ 200: components["responses"]["addons_create"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ addons_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The UUID of the add-on resource to retrieve.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ resource_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["addons_get"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ addons_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for the add-on resource.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ resource_uuid: components["parameters"]["resource_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ addons_patch: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The UUID of the add-on resource to rename.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ resource_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": {
+ /**
+ * @description The new name for the add-on resource.
+ * @example new-name
+ */
+ name: string;
+ };
+ };
+ };
+ responses: {
+ 200: components["responses"]["addons_update"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ addons_patch_plan: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The UUID of the add-on resource to update.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ resource_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": {
+ /**
+ * @description The slug identifier for the new plan to apply to the add-on resource.
+ * @example basic_plan
+ */
+ plan_slug: string;
+ };
+ };
+ };
+ responses: {
+ 200: components["responses"]["addons_update"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_create_provider_connect: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Provider key. `github` is the provider served today.
+ * @example github
+ */
+ provider: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["start_provider_connect_request"];
+ };
+ };
+ responses: {
+ /** @description Login started, or already complete. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["start_provider_connect_response"];
+ };
+ };
+ /** @description The body is present and is not the documented JSON object. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Provider login is not enabled, or this provider is not served. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_get_provider_connect: {
+ parameters: {
+ query: {
+ /**
+ * @description The `poll_url` returned by the start call.
+ * @example https://example.invalid/poll
+ */
+ poll_url: string;
+ };
+ header?: never;
+ path: {
+ /**
+ * @description Provider key. `github` is the provider served today.
+ * @example github
+ */
+ provider: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Current login status. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["poll_provider_connect_response"];
+ };
+ };
+ /** @description `poll_url` is missing. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Provider login is not enabled, or this provider is not served. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_list_provider_connections: {
+ parameters: {
+ query?: {
+ /**
+ * @description Return only the connection for this actor identifier.
+ * @example octocat
+ */
+ user_id?: string;
+ /**
+ * @description Filter by connection status. Known values are `pending`, `active`, and `expired`.
+ * @example active
+ */
+ status?: string;
+ /**
+ * @description Page number. Omit it or pass `0` to use the upstream default. A negative value is rejected.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Page size. Omit it or pass `0` to use the upstream default of 20. Values above 100 are capped. A negative value is rejected.
+ * @example 20
+ */
+ per_page?: number;
+ };
+ header?: never;
+ path: {
+ /**
+ * @description Provider key. `github` is the provider served today.
+ * @example github
+ */
+ provider: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description One page of connections. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["list_provider_connections_response"];
+ };
+ };
+ /** @description `page` or `per_page` is not an integer, or is negative. Zero is accepted and treated as omitted. Values of `per_page` above 100 are capped, not rejected. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Provider connections are not enabled. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_create_provider_connection: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Provider key. `github` is the provider served today.
+ * @example github
+ */
+ provider: string;
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["create_provider_connection_request"];
+ };
+ };
+ responses: {
+ /** @description The new connection, `pending`, with the authorization steps the user has to complete. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["provider_connection_response"];
+ };
+ };
+ /** @description The body is missing, is not the documented JSON object, or omits `user_id`. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ /** @description `user_id` already has an active, pending, or expired connection for `{provider}`. List the connections filtered by `user_id` to find its id, then reconnect it. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Provider connections are not enabled. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_get_provider_connection: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Provider key. `github` is the provider served today.
+ * @example github
+ */
+ provider: string;
+ /**
+ * @description The connection id.
+ * @example 3f2a1b0c-9d8e-7f6a-5b4c-3d2e1f0a9b8c
+ */
+ connection_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The connection, plus authorization steps when it is still pending. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["provider_connection_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Provider connections are not enabled. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_delete_provider_connection: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Provider key. `github` is the provider served today.
+ * @example github
+ */
+ provider: string;
+ /**
+ * @description The connection id.
+ * @example 3f2a1b0c-9d8e-7f6a-5b4c-3d2e1f0a9b8c
+ */
+ connection_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The revoked connection. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["provider_connection_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ /** @description An environment config still uses this connection, or that check could not be completed. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Provider connections are not enabled. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_post_provider_connection_reconnect: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Provider key. `github` is the provider served today.
+ * @example github
+ */
+ provider: string;
+ /**
+ * @description The connection id.
+ * @example 3f2a1b0c-9d8e-7f6a-5b4c-3d2e1f0a9b8c
+ */
+ connection_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The connection, plus authorization steps when login is still outstanding. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["provider_connection_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Provider connections are not enabled. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_list_image_messages: {
+ parameters: {
+ query?: {
+ /**
+ * @description Notice type. Omit it to return every type. The only documented value is `vulnerability`.
+ * @example vulnerability
+ */
+ type?: "vulnerability";
+ /**
+ * @description Exact session name. Returns one resource for that session. Cannot be combined with `checkpoint_name`.
+ * @example support-agent
+ */
+ session_name?: string;
+ /**
+ * @description Exact checkpoint name. Returns one resource for that checkpoint. Cannot be combined with `session_name`.
+ * @example before-upgrade
+ */
+ checkpoint_name?: string;
+ /**
+ * @description Page size when listing. Defaults to 50 when omitted or not positive; values above 200 are clamped to 200. A non-integer is rejected. Ignored when `session_name` or `checkpoint_name` is set.
+ * @example 50
+ */
+ page_size?: number;
+ /**
+ * @description Opaque cursor from the previous page. Empty starts at the beginning. A value that did not come from a previous page is rejected. Ignored when `session_name` or `checkpoint_name` is set.
+ * @example
+ */
+ page_token?: string;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Notices for the team's matching sessions and checkpoints. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["list_image_messages_response"];
+ };
+ };
+ /** @description Unknown `type`, a non-integer `page_size`, a malformed `page_token`, or both `session_name` and `checkpoint_name` set. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Image messages are not available on this deployment. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_list_configs: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page size. Defaults to 50 when omitted. Values above 200 are rejected.
+ * @example 50
+ */
+ page_size?: number;
+ /**
+ * @description Opaque keyset cursor returned by the previous page.
+ * @example
+ */
+ page_token?: string;
+ /**
+ * @description Optional case-insensitive substring filter on config name (contains). Empty or omitted returns the unfiltered page. At most 64 characters.
+ * @example support
+ */
+ search?: string;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A page of active Environment Configs. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["list_agent_configs_response"];
+ };
+ };
+ /** @description Invalid pagination input. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_create_config: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description Environment Config create body. Secret values live in the environment-spec YAML and are never returned. */
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["agent_config_create_request"];
+ };
+ };
+ responses: {
+ /** @description Config created. */
+ 201: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["agent_config_response"];
+ };
+ };
+ /** @description Invalid name, JSON wrapper, or environment spec. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description An active config with this name already exists for the team. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Request body exceeds 1 MiB. */
+ 413: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Content-Type is not application/json. */
+ 415: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_get_config: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The Environment Config UUID.
+ * @example 019fb39c-14d9-7080-933e-b9b90e25acda
+ */
+ config_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The team-scoped config. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["agent_config_response"];
+ };
+ };
+ /** @description config_id is not a UUID. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_delete_config: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The Environment Config UUID.
+ * @example 019fb39c-14d9-7080-933e-b9b90e25acda
+ */
+ config_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Config soft-deleted; no response body. */
+ 204: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description config_id is not a UUID. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ /** @description Config still has active sessions (or active credential binding sets). */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_create_config_clone: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The Environment Config UUID.
+ * @example 019fb39c-14d9-7080-933e-b9b90e25acda
+ */
+ config_id: string;
+ };
+ cookie?: never;
+ };
+ /** @description Clone body with required new name plus write-only credentials for any declared slots. */
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["agent_config_clone_request"];
+ };
+ };
+ responses: {
+ /** @description Clone created. */
+ 201: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["agent_config_response"];
+ };
+ };
+ /** @description Invalid name, missing credential slots, or source environment spec fails current durable validation. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ /** @description An active config with this name already exists for the team. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Request body exceeds 1 MiB. */
+ 413: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Content-Type is not application/json. */
+ 415: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_list_config_sessions: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page size. Defaults to 50 when omitted or non-positive; values above 200 are clamped to 200.
+ * @example 50
+ */
+ page_size?: number;
+ /**
+ * @description Opaque keyset cursor returned by the previous page. Empty starts from the beginning.
+ * @example
+ */
+ page_token?: string;
+ /**
+ * @description Optional filter on session status. Empty / SESSION_STATUS_UNSPECIFIED still hides destroyed and failed sessions by default; SESSION_STATUS_ALL opts out and returns every session regardless of status.
+ * @example SESSION_STATUS_READY
+ */
+ status?: "SESSION_STATUS_UNSPECIFIED" | "SESSION_STATUS_PROVISIONING" | "SESSION_STATUS_READY" | "SESSION_STATUS_DETACHED" | "SESSION_STATUS_DESTROYING" | "SESSION_STATUS_DESTROYED" | "SESSION_STATUS_FAILED" | "SESSION_STATUS_PAUSED" | "SESSION_STATUS_ALL";
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The Environment Config UUID.
+ * @example 019fb39c-14d9-7080-933e-b9b90e25acda
+ */
+ config_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A page of sessions created from the config. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["definitions_list_sessions_response"];
+ };
+ };
+ /** @description Invalid pagination input or config_id. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_list_regions: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The regions the team may place resources in. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["harness_regions_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_list_sessions: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page size. Defaults to 50 when omitted or non-positive; values above 200 are clamped to 200 (not rejected).
+ * @example 50
+ */
+ page_size?: number;
+ /**
+ * @description Opaque keyset cursor returned by the previous page. Empty starts from the beginning.
+ * @example
+ */
+ page_token?: string;
+ /**
+ * @description Optional filter on session status. Empty / SESSION_STATUS_UNSPECIFIED means no explicit filter, which still hides destroyed and failed sessions by default; SESSION_STATUS_ALL opts out and returns every session regardless of status (no session is ever actually in this status; it only means something as a filter value here); any other explicit status overrides the default.
+ * @example SESSION_STATUS_UNSPECIFIED
+ */
+ status?: components["schemas"]["session_status"];
+ /**
+ * @description Optional exact-name filter (case-insensitive). Returns the single live (non-terminal) session that currently holds this name for the caller's team, or an empty list if none does. Matches the live holder only, so historical terminal rows and reused names never make it ambiguous (per-team live-name uniqueness bounds it to at most one). This is how clients (doctl / Console) resolve a session name to its id; the {session_id} path stays UUID-only.
+ * @example demo-agent
+ */
+ name?: string;
+ /**
+ * @description Optional case-insensitive substring filter on session name (contains), for callers that don't know the exact name (e.g. a UI search box). Unlike `name`, this may return zero, one, or many sessions, including terminal ones. Independent of `name`; at most 64 characters.
+ * @example demo
+ */
+ search?: string;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["definitions_list_sessions_response"];
+ };
+ };
+ /** @description Invalid page_token. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_create_session: {
+ parameters: {
+ query?: {
+ /**
+ * @description OpenAI Agents API session id (sess_…) for adapter: codex-agentapi. doctl creates the OpenAI session before calling DO and passes the resulting id here; harness-api persists it for correlation. Empty/omitted for every other agent kind.
+ * @example sess_abc123
+ */
+ openai_session_id?: string;
+ /**
+ * @description Opt the new session in to automatic resumption when the team's prepayment balance is restored. Defaults to false. Exists as a query parameter so the environment spec (YAML body) form can carry it too. On the application/json form the body field is idiomatic, but this parameter wins when both are present. Must be exactly one of true/false/1/0; anything else is a 400.
+ * @example false
+ */
+ resume_on_topoff?: boolean;
+ };
+ header?: {
+ /**
+ * @description Optional hardware device id forwarded by doctl. Persisted on the session row for lifecycle attribution. Values over 128 bytes are ignored.
+ * @example device-uuid-example
+ */
+ "X-Device-UUID"?: string;
+ };
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * @description CreateSessionConfigRequest with `application/json`. The live API also accepts a raw environment
+ * spec under YAML Content-Types (see operation description); those forms are omitted from `content`
+ * so generated clients (pydo/autorest) can emit this operation.
+ */
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["create_session_config_request"];
+ };
+ };
+ responses: {
+ /** @description Session row allocated; sandbox boot continues asynchronously. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["definitions_create_session_response"];
+ };
+ };
+ /** @description Invalid manifest/config JSON, incompatible credentials, deny-all egress (an empty allowlist) combined with URL-bound credentials, or invalid query parameter. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The team is blocked by the prepayment gate. */
+ 402: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Secrets Manager denied access to a pinned credential, or `workspace_id` was sent and persistent workspaces are not enabled for the team. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description Team is at the active-session quota, a live session name already exists, or the requested workspace_id is not AVAILABLE (attached to another session, still being saved, FAILED, or being deleted). */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description JSON body exceeds 16 KiB or YAML body exceeds 1 MiB. */
+ 413: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Unsupported Content-Type. */
+ 415: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Requested capability is not available. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Secrets Manager is unavailable. */
+ 503: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_validate_session_policy: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * @description The same environment spec you would submit to CreateSession (YAML). Only agent/template selection
+ * and the permissions block are used. The live API also accepts `application/yaml`, `text/yaml`, and
+ * `text/x-yaml`; OpenAPI `content` lists a single media type so generated clients can emit this
+ * operation.
+ */
+ requestBody: {
+ content: {
+ "application/x-yaml": components["schemas"]["agent_manifest"];
+ };
+ };
+ responses: {
+ /** @description Per-rule verdicts for the agent the manifest resolves to. A 200 with `ok: false` still means the policy would be rejected at CreateSession. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["validation_result"];
+ };
+ };
+ /** @description Malformed manifest or invalid spec.permissions. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_list_session_sandbox_sizes: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The supported sandbox sizes. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["sandbox_sizes_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_get_session: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["get_session_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The caller holds no access grant on the session. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_delete_session: {
+ parameters: {
+ query?: never;
+ header?: {
+ /**
+ * @description Optional hardware device id forwarded by doctl. Recorded on the session row as the device that performed the destroy.
+ * @example device-uuid-example
+ */
+ "X-Device-UUID"?: string;
+ };
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Session destroyed; no response body. */
+ 204: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The caller holds no access grant on the session. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_update_session: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ };
+ cookie?: never;
+ };
+ /** @description Set either `resume_on_topoff` or `manifest_yaml`, not both. */
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["patch_session_request"];
+ };
+ };
+ responses: {
+ /** @description The session was updated (`resume_on_topoff`), or the requested session settings match the current ones and nothing was applied (`outcome` is `UNCHANGED`). */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["patch_session_response"];
+ };
+ };
+ /** @description The session settings update was accepted and is being applied. The session status is `SESSION_STATUS_UPDATING`. Poll the session until the status is `SESSION_STATUS_READY`, or `SESSION_STATUS_PAUSED` if the session was paused when you sent the update, then read `session.update` to see whether the update was applied. */
+ 202: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["patch_session_response"];
+ };
+ };
+ /** @description The request is invalid. For example: the body is empty or not valid JSON, `manifest_yaml` is not valid YAML, a field or manifest section is not recognized, a value is invalid, or both `resume_on_topoff` and `manifest_yaml` are set. A top-level `model` section (set the model in `env` instead) and a `permissions` section (can't be changed on an existing session) also return `400`, as does a malformed model name. A URL-bound secret moved to a new host or path, or to `scheme: raw`, without `value` returns `400`. An OAuth secret switched to a connection you can't use also returns `400`: no connection has that `actor`, or the connection is pending, expired, revoked, or another team member's. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description You don't have access to this session, or session settings updates are not enabled for your team (`manifest_yaml` only). A URL-bound secret or `egress` change also returns `403` when URL-bound secret and egress updates are not enabled for your team, and an OAuth connection switch returns `403` when switching OAuth connections is not enabled for your team. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description The session can't be updated right now. For example, it is still provisioning, already updating, running an agent turn, waiting on an approval, paused for zero balance, or destroyed, or its agent runtime doesn't support the change (including an `egress` change on a session that doesn't support egress updates). After a rollback or fork, a URL-bound secret that was moved off its agent config's URL also returns `409` until you send its value again. The error message gives the reason. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The change can only be made by creating a new session. For example: adding, removing, or changing a custom MCP server in `tools`; changing a reserved platform key or a mount-only secret; adding or removing an OAuth secret, changing its provider, or switching one that was created without `actor`; changing `vpc_uuid` or `subnet_uuid` in `egress`; adding, removing, or changing `HARNESS_INFERENCE_MODEL` on a session that doesn't use DigitalOcean Serverless Inference; changing a session's model provider or base URL; or adding, removing, or moving the provider API key of a session that uses its own endpoint. */
+ 422: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The session is unavailable. Contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_list_session_checkpoints: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page size. Defaults to 50 when omitted or non-positive.
+ * @example 50
+ */
+ page_size?: number;
+ /**
+ * @description Opaque keyset cursor returned by the previous page. Empty starts from the beginning.
+ * @example
+ */
+ page_token?: string;
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["list_checkpoints_response"];
+ };
+ };
+ /** @description Invalid page_token. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The caller holds no access grant on the session. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_create_session_checkpoint: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ };
+ cookie?: never;
+ };
+ /** @description Optional; an empty or omitted body creates an unlabeled checkpoint. */
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["create_checkpoint_request"];
+ };
+ };
+ responses: {
+ /** @description Checkpoint captured. The returned checkpoint is terminal (status READY). */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["create_checkpoint_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The team is blocked by the prepayment gate. */
+ 402: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The caller holds no access grant on the session. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description Session busy (an active turn is in flight), session not running, or team checkpoint storage quota exceeded. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Checkpoints are not supported for this agent/substrate. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_get_session_checkpoint: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ /**
+ * @description The checkpoint id.
+ * @example cp_9f2c1a4b
+ */
+ checkpoint_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["get_checkpoint_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The caller holds no access grant on the session. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_delete_session_checkpoint: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ /**
+ * @description The checkpoint id.
+ * @example cp_9f2c1a4b
+ */
+ checkpoint_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Checkpoint deleted. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["delete_checkpoint_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The caller holds no access grant on the session. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_get_checkpoint_image_messages: {
+ parameters: {
+ query?: {
+ /**
+ * @description Notice type. Omit it to return every type. The only documented value is `vulnerability`.
+ * @example vulnerability
+ */
+ type?: "vulnerability";
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ /**
+ * @description The checkpoint id.
+ * @example cp_example
+ */
+ checkpoint_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Notices for this checkpoint. `messages` is empty when the image has none. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["get_image_message_resource_response"];
+ };
+ };
+ /** @description Unknown `type`. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Image messages are not available on this deployment. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_revert_session_checkpoint: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ /**
+ * @description The checkpoint id.
+ * @example cp_9f2c1a4b
+ */
+ checkpoint_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The session after in-place rollback: same session_id, sandbox_id swapped to the restored VM. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["rollback_to_checkpoint_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The team is blocked by the prepayment gate. */
+ 402: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The caller holds no access grant on the session. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description Checkpoint is not READY, the session has a persistent workspace, or the session cannot be rolled back in its current state. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Rollback is not supported for this agent/substrate. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_create_session_fork: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ };
+ cookie?: never;
+ };
+ /** @description Optional; an empty or omitted body forks a single child from an implicit checkpoint of "now". */
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["fork_session_request"];
+ };
+ };
+ responses: {
+ /** @description The created child sessions (each a full Session, PROVISIONING -> READY). */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["fork_session_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The team is blocked by the prepayment gate. */
+ 402: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The caller holds no access grant on the session. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description Team is at the active-session quota, the checkpoint is not READY, the source session is itself a fork, or the source session has a persistent workspace. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Forking is not supported for this agent/substrate. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_post_session_hitl: {
+ parameters: {
+ query?: never;
+ header?: {
+ /**
+ * @description Optional hardware device id forwarded by doctl. Recorded on the resulting HITL decision.
+ * @example device-uuid-example
+ */
+ "X-Device-UUID"?: string;
+ };
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ /**
+ * @description The HITL request identifier.
+ * @example hitl_example
+ */
+ request_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["resolve_hitl_request"];
+ };
+ };
+ responses: {
+ /** @description Decision recorded; no response body. */
+ 204: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Malformed JSON or missing outcome. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The team is blocked by the prepayment gate. */
+ 402: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The caller holds no access grant on the session. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_cancel_session_turn: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["cancel_session_turn_request"];
+ };
+ };
+ responses: {
+ /** @description The cancel was delivered. See `outcome` for what the agent did with it. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["cancel_session_turn_response"];
+ };
+ };
+ /** @description The body is not valid JSON, or the agent rejected the cancel as malformed. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The caller holds no access grant on the session, or this team is not enabled for turn cancel. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description Nothing could be cancelled in the session's current state: it is paused, still provisioning, being destroyed, has no sandbox, or the agent has no active run for it. This is the ordinary answer for "nothing to cancel", not a fault. A turn that was running and has already finished returns 200 with `outcome` `no_turn` instead. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description The agent is not accepting requests yet. Retry once the session is ready. */
+ 503: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_get_session_image_messages: {
+ parameters: {
+ query?: {
+ /**
+ * @description Notice type. Omit it to return every type. The only documented value is `vulnerability`.
+ * @example vulnerability
+ */
+ type?: "vulnerability";
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Notices for this session. `messages` is empty when the image has none. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["get_image_message_resource_response"];
+ };
+ };
+ /** @description Unknown `type`. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Image messages are not available on this deployment. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_create_session_input: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["send_input_request"];
+ };
+ };
+ responses: {
+ /** @description Input accepted and attributed to a run. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["send_input_response"];
+ };
+ };
+ /** @description Malformed JSON or empty text. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The team is blocked by the prepayment gate. */
+ 402: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The caller holds no access grant on the session. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description Session is not in a state that accepts input (not READY/DETACHED, or has no sandbox). */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_post_session_pause: {
+ parameters: {
+ query?: never;
+ header?: {
+ /**
+ * @description Optional hardware device id forwarded by doctl. Recorded for audit.
+ * @example device-uuid-example
+ */
+ "X-Device-UUID"?: string;
+ };
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Session paused. */
+ 204: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The team is blocked by the prepayment gate. */
+ 402: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The caller holds no access grant on the session. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description Session is not in a pauseable state (must be READY or DETACHED). */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Pause is not supported for this session's substrate (docker/dewdrop). */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_post_session_resume: {
+ parameters: {
+ query?: never;
+ header?: {
+ /**
+ * @description Optional hardware device id forwarded by doctl. Recorded for audit.
+ * @example device-uuid-example
+ */
+ "X-Device-UUID"?: string;
+ };
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Session resumed. */
+ 204: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The team is blocked by the prepayment gate. */
+ 402: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The caller holds no access grant on the session. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description Session is not PAUSED. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Resume is not supported for this session's substrate (docker/dewdrop). */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_post_session_sandbox_exec: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ };
+ cookie?: never;
+ };
+ /** @description Command to run inside the sandbox. */
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["exec_in_sandbox_request"];
+ };
+ };
+ responses: {
+ /** @description Command finished (check exit_code in the body). */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["exec_in_sandbox_response"];
+ };
+ };
+ /** @description Invalid argv, env, or request body, or keep_stdin_open without an event stream. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The team is blocked by the prepayment gate. */
+ 402: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The caller holds no access grant on the session. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description Session is not in a state that can run exec, or interactive stdin is not available for this session. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_post_session_sandbox_exec_stdin: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ /**
+ * @description The exec id from the started event.
+ * @example 01932a6e-7b4c-7d2e-8f10-1a2b3c4d5e6f
+ */
+ exec_id: string;
+ };
+ cookie?: never;
+ };
+ /** @description Stdin bytes to append, or eof. */
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["write_exec_stdin_request"];
+ };
+ };
+ responses: {
+ /** @description The write was accepted. offset is the new count of stdin bytes accepted. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["write_exec_stdin_response"];
+ };
+ };
+ /** @description Malformed JSON, missing offset, bad base64, neither data nor eof, or more than 1 MiB. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The team is blocked by the prepayment gate. */
+ 402: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The caller holds no access grant on the session. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Session not found, or the exec is unknown or already finished. */
+ 404: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Stdin is already closed, the offset skips ahead, the session cannot be operated on, or interactive stdin is not available for this session. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_get_session_workspace_download: {
+ parameters: {
+ query: {
+ /**
+ * @description Source path inside the sandbox workspace. Relative paths resolve under the workspace root; paths that escape the workspace are rejected. Required.
+ * @example example
+ */
+ path: string;
+ /**
+ * @description If true, the guest returns a tar stream of `path` (e.g. for a directory). Defaults to false (single file).
+ * @example true
+ */
+ as_archive?: boolean;
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Streaming workspace payload (octet-stream) followed by a fixed 73-byte integrity footer (`DOWSSHA1` + 64-char sha256 hex + newline). The digest is also delivered best-effort in the X-Content-Sha256 trailer. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/octet-stream": string;
+ };
+ };
+ /** @description Missing path, invalid query parameter, or invalid path. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description Path resolves outside the workspace, or the caller holds no access grant on the session. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description Session has no sandbox, or the sandbox is not ready. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Workspace file transfer is not supported by the active sandbox driver. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Upstream sandbox transfer failed. */
+ 502: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Workspace transfer capacity exhausted; retry later. */
+ 503: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_create_session_workspace_transfer: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": {
+ /**
+ * @description Transfer direction.
+ * @example upload
+ * @enum {string}
+ */
+ direction: "upload" | "download";
+ /**
+ * @description Workspace-relative path. Destination for upload, source for download. Paths that escape the workspace root are rejected.
+ * @example example
+ */
+ path: string;
+ /**
+ * @description Upload only. When true, the payload is a tar the guest extracts at `path`.
+ * @example true
+ */
+ is_archive?: boolean;
+ /**
+ * @description Download only. When true, `path` is exported as a tar stream.
+ * @example true
+ */
+ as_archive?: boolean;
+ /**
+ * Format: int64
+ * @description Optional total payload size, as a JSON number. Validated against the maximum staged object size (50 GiB); a larger value returns 413.
+ * @example 4
+ */
+ size_bytes?: number;
+ /**
+ * @description Optional lowercase hex SHA-256 of the full payload. If set on an upload, it must match on commit.
+ * @example example
+ */
+ sha256?: string;
+ };
+ };
+ };
+ responses: {
+ /** @description Upload transfer created; proceed to request part upload URLs. */
+ 201: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["workspace_transfer_created"];
+ };
+ };
+ /** @description Download transfer accepted; poll the transfer until completed. */
+ 202: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["workspace_transfer_created"];
+ };
+ };
+ /** @description Missing/invalid direction or path, or invalid JSON. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The team is blocked by the prepayment gate. */
+ 402: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Path resolves outside the workspace, or the caller holds no access grant on the session. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description Session has no sandbox, or the sandbox is not ready. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Declared size exceeds the maximum staged object size. */
+ 413: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Staged transfer (or this direction) is not supported by the active sandbox driver. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Upstream sandbox transfer coordination failed. */
+ 502: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_get_session_workspace_transfer: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ /**
+ * @description The workspace transfer identifier.
+ * @example tr_example
+ */
+ transfer_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Current transfer status. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["workspace_transfer_status"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The caller holds no access grant on the session. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Staged transfer is not supported by the active sandbox driver. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_cancel_session_workspace_transfer: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ /**
+ * @description The workspace transfer identifier.
+ * @example tr_example
+ */
+ transfer_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": {
+ /**
+ * @description Optional caller-visible audit/debug context.
+ * @example example
+ */
+ reason?: string;
+ };
+ };
+ };
+ responses: {
+ /** @description Cancel processed. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["workspace_transfer_cancelled"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The team is blocked by the prepayment gate. */
+ 402: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Cancel is not supported by the active sandbox driver. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_commit_session_workspace_transfer: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ /**
+ * @description The workspace transfer identifier.
+ * @example tr_example
+ */
+ transfer_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": {
+ /**
+ * @description Optional lowercase hex SHA-256. Must match the value supplied at create when both are set.
+ * @example example
+ */
+ sha256?: string;
+ };
+ };
+ };
+ responses: {
+ /** @description Upload committed; import in progress. */
+ 202: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["workspace_upload_committed"];
+ };
+ };
+ /** @description Missing transfer_id, sha256 mismatch, or invalid JSON. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The team is blocked by the prepayment gate. */
+ 402: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description Transfer is not in a committable state. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Staged upload is not supported by the active sandbox driver. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_create_session_workspace_part_upload_urls: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ /**
+ * @description The workspace transfer identifier.
+ * @example tr_example
+ */
+ transfer_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": {
+ /** @description 1-based part indices to presign (single or batched). */
+ part_numbers: number[];
+ };
+ };
+ };
+ responses: {
+ /** @description Presigned PUT URLs for the requested parts. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["workspace_part_upload_urls"];
+ };
+ };
+ /** @description Missing transfer_id, empty part_numbers, or a part number < 1, or invalid JSON. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The team is blocked by the prepayment gate. */
+ 402: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description Transfer is not in a state that accepts part uploads. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Staged upload is not supported by the active sandbox driver. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_create_session_workspace_upload: {
+ parameters: {
+ query: {
+ /**
+ * @description Destination path inside the sandbox workspace. Relative paths resolve under the workspace root; paths that escape the workspace are rejected. Required.
+ * @example example
+ */
+ path: string;
+ /**
+ * @description If true, the body is a tar stream that the guest extracts under `path`. Defaults to false (single file).
+ * @example true
+ */
+ is_archive?: boolean;
+ };
+ header?: {
+ /**
+ * @description Optional hex SHA-256 of the full payload. The guest verifies it after writing; a mismatch returns 400.
+ * @example example
+ */
+ "X-Content-Sha256"?: string;
+ };
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ };
+ cookie?: never;
+ };
+ /** @description Raw file bytes (or tar stream when is_archive=true). Capped at 500 MiB. */
+ requestBody: {
+ content: {
+ "application/octet-stream": string;
+ };
+ };
+ responses: {
+ /** @description Upload committed. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["workspace_upload_response"];
+ };
+ };
+ /** @description Missing path, invalid query parameter, invalid path, or SHA-256 mismatch. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The team is blocked by the prepayment gate. */
+ 402: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Path resolves outside the workspace, or the caller holds no access grant on the session. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description Session has no sandbox, or the sandbox is not ready. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Payload exceeds the maximum allowed size. */
+ 413: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Workspace file transfer is not supported by the active sandbox driver. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Upstream sandbox transfer failed. */
+ 502: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Workspace transfer capacity exhausted; retry later. */
+ 503: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_get_session_events: {
+ parameters: {
+ query?: {
+ /**
+ * @description Write the selected history and then close the stream, rather than going live. Does not advance the device's delivery cursor, so it never supersedes a live attach from the same device.
+ * @example false
+ */
+ replay_only?: boolean;
+ /**
+ * @description Event-id pagination cursor for the `replay_only` lane only; return events after this one. There is no last-N floor, so a cursor already at the head yields nothing. Ignored on a live attach.
+ * @example
+ */
+ replay_from?: string;
+ /**
+ * @description Query-param equivalent of `Last-Event-ID`, because a browser EventSource cannot set request headers. Takes precedence over the header when both are present. Live-attach lane only.
+ * @example
+ */
+ cursor?: string;
+ /**
+ * @description Query-param equivalent of `X-Device-UUID`. Identifies one client install so its delivery cursor and live slot are its own; a second attach from the same device supersedes the first.
+ * @example
+ */
+ device_id?: string;
+ };
+ header?: {
+ /**
+ * @description The last event this client rendered (not merely received). Its presence marks the request a reconnect, so OHP serves strictly what follows it with no last-N floor. Persist it only after rendering.
+ * @example 01K9YQ0R2M4A7X
+ */
+ "Last-Event-ID"?: string;
+ /**
+ * @description A stable per-install device id. See `device_id`.
+ * @example d1e2f3a4-b5c6-7890-abcd-ef1234567890
+ */
+ "X-Device-UUID"?: string;
+ };
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /**
+ * @description An SSE stream. Each frame is `event: ` plus a `data:` line holding a JSON event envelope
+ * (see `stream_event`). The stream opens with a `stream.state` control frame, then events
+ * oldest-first, then either a `stream.state: live` frame (live attach) or end-of-stream
+ * (`replay_only=true`).
+ */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ /**
+ * @description Always no-cache.
+ * @example no-cache
+ */
+ "Cache-Control"?: string;
+ [name: string]: unknown;
+ };
+ content: {
+ "text/event-stream": components["schemas"]["stream_event"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description Unknown session, or a session belonging to another team. The two are deliberately indistinguishable so a caller cannot enumerate other tenants' session ids. */
+ 404: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Attach admission limit reached. Retry after the Retry-After hint. */
+ 429: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ /**
+ * @description Seconds to wait before retrying.
+ * @example 2
+ */
+ "Retry-After"?: number;
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Internal error. */
+ 500: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description OHP cannot currently establish the caller's authorization or the session's location. Transient; retry after the Retry-After hint. */
+ 503: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ /**
+ * @description Seconds to wait before retrying.
+ * @example 2
+ */
+ "Retry-After"?: number;
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_get_session_port_forward: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ /**
+ * @description The guest TCP port to connect to. Must be between 1024 and 65535.
+ * @example 8000
+ */
+ port: number;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Switching Protocols. The WebSocket handshake succeeded and the connection is now a binary tunnel to the guest port. */
+ 101: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description The request is not a valid WebSocket upgrade (missing Upgrade/Connection headers). Returned by the handshake layer as plain text. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "text/plain": string;
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The team is blocked by the prepayment gate. */
+ 402: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The port is outside 1024-65535, or the caller holds no access grant on the session. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description The session has no sandbox. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Could not reach the guest port (nothing listening, or the guest dial failed). */
+ 502: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_get_session_ingress: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["get_ingress_url_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The caller holds no access grant on the session. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description Session is not running. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description This session is unavailable; contact support. */
+ 423: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Public ingress is not supported for this agent kind or sandbox substrate. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_list_templates: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page size. Defaults to 50 when omitted or non-positive.
+ * @example 50
+ */
+ page_size?: number;
+ /**
+ * @description Optional pagination cursor (opaque). Empty starts from the beginning.
+ * @example
+ */
+ page_token?: string;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["list_templates_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_create_template: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description Template create body. */
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["create_template_request"];
+ };
+ };
+ responses: {
+ /** @description Template created; build kicked. */
+ 201: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["create_template_response"];
+ };
+ };
+ /** @description Invalid request. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The team is blocked by the prepayment gate. */
+ 402: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_get_template: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The template UUID.
+ * @example 11111111-2222-3333-4444-555555555555
+ */
+ template_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["get_template_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_update_template: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The template UUID.
+ * @example 11111111-2222-3333-4444-555555555555
+ */
+ template_id: string;
+ };
+ cookie?: never;
+ };
+ /** @description Template update body. */
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["update_template_request"];
+ };
+ };
+ responses: {
+ /** @description Template updated; build kicked. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["create_template_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The team is blocked by the prepayment gate. */
+ 402: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_delete_template: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The template UUID.
+ * @example 11111111-2222-3333-4444-555555555555
+ */
+ template_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Template deleted. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["delete_template_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_list_template_builds: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page size. Defaults to 50 when omitted or non-positive.
+ * @example 50
+ */
+ page_size?: number;
+ /**
+ * @description Optional pagination cursor (opaque). Empty starts from the beginning.
+ * @example
+ */
+ page_token?: string;
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The template UUID.
+ * @example 11111111-2222-3333-4444-555555555555
+ */
+ template_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["list_template_builds_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_get_template_build: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The template UUID.
+ * @example 11111111-2222-3333-4444-555555555555
+ */
+ template_id: string;
+ /**
+ * @description The build UUID.
+ * @example 22222222-3333-4444-5555-666666666666
+ */
+ build_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["get_template_build_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_list_triggers: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page size. Defaults to 50 when omitted or non-positive; server-clamped.
+ * @example 50
+ */
+ page_size?: number;
+ /**
+ * @description Opaque keyset cursor returned by the previous page. Empty starts from the beginning.
+ * @example
+ */
+ page_token?: string;
+ /**
+ * @description Optional filter by trigger kind.
+ * @example webhook
+ */
+ kind?: components["schemas"]["trigger_kind"];
+ /**
+ * @description Optional filter by trigger status.
+ * @example active
+ */
+ status?: components["schemas"]["trigger_status"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["list_triggers_response"];
+ };
+ };
+ /** @description Invalid page_token or filter value. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_create_trigger: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description The trigger to create. */
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["create_trigger_request"];
+ };
+ };
+ responses: {
+ /** @description Trigger created. `webhook_secret` present for webhook triggers only, shown once. */
+ 201: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["create_trigger_response"];
+ };
+ };
+ /** @description Validation failed (bad manifest/cron/timezone, kind/block/mode mismatch, provider on cron, payload placeholder in a cron prompt, invalid email, a `session_template` that names `workspace_id`, a `bound_session_id` whose session has a workspace, etc.). */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The caller is not permitted to create the backing agent config for this trigger. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description A non-deleted trigger with this name already exists for the team. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The team's trigger limit has been reached. */
+ 422: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description The backing agent config service returned an unexpected error. */
+ 502: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description An upstream dependency needed to validate the trigger is temporarily unavailable; retry. */
+ 503: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_get_trigger_by_session: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The session UUID.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ session_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The newest trigger bound to this session, or the trigger of its newest execution. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["get_trigger_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_list_reusable_sessions: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page size. Defaults to 50 when omitted or non-positive; server-clamped.
+ * @example 50
+ */
+ page_size?: number;
+ /**
+ * @description Opaque keyset cursor returned by the previous page. Empty starts from the beginning.
+ * @example
+ */
+ page_token?: string;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["list_reusable_sessions_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_get_trigger: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The trigger UUID.
+ * @example b1a0c6de-1f2e-4a3b-9c8d-0e1f2a3b4c5d
+ */
+ trigger_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["get_trigger_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_delete_trigger: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The trigger UUID.
+ * @example b1a0c6de-1f2e-4a3b-9c8d-0e1f2a3b4c5d
+ */
+ trigger_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Trigger deleted; no response body. */
+ 204: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_update_trigger: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The trigger UUID.
+ * @example b1a0c6de-1f2e-4a3b-9c8d-0e1f2a3b4c5d
+ */
+ trigger_id: string;
+ };
+ cookie?: never;
+ };
+ /** @description The fields to change. */
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["update_trigger_request"];
+ };
+ };
+ responses: {
+ /** @description The updated trigger. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["get_trigger_response"];
+ };
+ };
+ /** @description Validation failed, including a `session_template` that names `workspace_id` and a `bound_session_id` whose session has a workspace. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The caller is not permitted to create the backing agent config for this trigger. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description Duplicate name, or an attempt to change an immutable field (kind, provider). */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The team's trigger limit has been reached. */
+ 422: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description The backing agent config service returned an unexpected error. */
+ 502: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description An upstream dependency needed to validate the trigger is temporarily unavailable; retry. */
+ 503: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_list_trigger_executions: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page size. Defaults to 50 when omitted or non-positive; server-clamped.
+ * @example 50
+ */
+ page_size?: number;
+ /**
+ * @description Opaque keyset cursor returned by the previous page. Empty starts from the beginning.
+ * @example
+ */
+ page_token?: string;
+ /**
+ * @description Optional filter by execution status.
+ * @example succeeded
+ */
+ status?: components["schemas"]["trigger_execution_status"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The trigger UUID.
+ * @example b1a0c6de-1f2e-4a3b-9c8d-0e1f2a3b4c5d
+ */
+ trigger_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["list_trigger_executions_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_get_trigger_execution: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The trigger UUID.
+ * @example b1a0c6de-1f2e-4a3b-9c8d-0e1f2a3b4c5d
+ */
+ trigger_id: string;
+ /**
+ * @description The execution UUID.
+ * @example 7c1f9e2a-3b4c-5d6e-7f80-91a2b3c4d5e6
+ */
+ execution_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["get_trigger_execution_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_cancel_trigger_execution: {
+ parameters: {
+ query?: {
+ /**
+ * @description Cancel even if the execution has not started a run yet (the worker's own dispatch may still be in flight). Without this, that case returns 409; reclaim clears it automatically within 15m regardless.
+ * @example false
+ */
+ force?: boolean;
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The trigger UUID.
+ * @example b1a0c6de-1f2e-4a3b-9c8d-0e1f2a3b4c5d
+ */
+ trigger_id: string;
+ /**
+ * @description The execution UUID.
+ * @example 7c1f9e2a-3b4c-5d6e-7f80-91a2b3c4d5e6
+ */
+ execution_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["get_trigger_execution_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ /** @description Execution has not started a run yet (the worker's dispatch is still in flight); retry shortly, or pass force=true. Also returned in reuse mode when the agent cannot interrupt its turn. The run is still in progress and the execution stays running. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Reuse mode. The agent did not confirm the cancel (timeout, or the agent could not be reached). The run may still be in progress and the execution stays running. Retry. */
+ 503: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_post_trigger_rotate_secret: {
+ parameters: {
+ query?: {
+ /**
+ * @description How long the outgoing secret keeps verifying deliveries. Omit for the default (5 minutes). 0 retires the old secret immediately (compromised-secret path). Positive values set a custom window up to the server max (default 1 hour); above the max is 400. Send at most once with an explicit non-negative integer - bare keys, empty values, non-integers, negatives, and duplicates are 400.
+ * @example 300
+ */
+ grace_period_seconds?: number;
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The trigger UUID.
+ * @example b1a0c6de-1f2e-4a3b-9c8d-0e1f2a3b4c5d
+ */
+ trigger_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The new secret, shown once. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["rotate_secret_response"];
+ };
+ };
+ /** @description Invalid grace_period_seconds. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ /** @description The trigger is not a webhook trigger. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_post_trigger_webhook: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The trigger UUID.
+ * @example b1a0c6de-1f2e-4a3b-9c8d-0e1f2a3b4c5d
+ */
+ trigger_id: string;
+ };
+ cookie?: never;
+ };
+ /**
+ * @description The provider's raw webhook body, forwarded verbatim. The HMAC is computed over these exact bytes.
+ * Content-Type is provider-defined (GitHub sends `application/json`, some providers form-encode) and
+ * passed through; the handler reads the raw bytes regardless of type. Documented as a single
+ * `application/octet-stream` body so client generators can model the raw payload.
+ */
+ requestBody: {
+ content: {
+ "application/octet-stream": string;
+ };
+ };
+ responses: {
+ /** @description Accepted and queued (also returned for a deduped retry, with the same execution_id). A paused trigger returns 202 with an empty body and queues nothing. */
+ 202: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["webhook_accepted_response"];
+ };
+ };
+ /** @description The request body is too large or unreadable. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Signature/token verification failed. */
+ 401: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_list_webhook_providers: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["list_webhook_providers_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_list_workspaces: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page size. The server applies a default when omitted and clamps large values.
+ * @example 50
+ */
+ page_size?: number;
+ /**
+ * @description Opaque cursor returned by the previous page. Empty starts from the beginning.
+ * @example
+ */
+ page_token?: string;
+ /**
+ * @description Only list workspaces in this state.
+ * @example AVAILABLE
+ */
+ state?: components["schemas"]["workspace_state"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["list_workspaces_response"];
+ };
+ };
+ /** @description Invalid page_token or state. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description Persistent workspaces are not enabled for this team. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Persistent workspaces are not available yet. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Workspace state is temporarily unavailable. Retry. */
+ 503: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_create_workspace: {
+ parameters: {
+ query?: never;
+ header?: {
+ /**
+ * @description Optional key that makes retries safe. Within 24 hours, the same key and body return the workspace the first request created, and the same key with a different body returns `422`.
+ * @example 7f9c2ba4-e88f-4c2a-9d1e-0b6a1f3c5d21
+ */
+ "Idempotency-Key"?: string;
+ };
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["create_workspace_request"];
+ };
+ };
+ responses: {
+ /** @description Replay of an earlier create with the same Idempotency-Key and body; returns that workspace. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["create_workspace_response"];
+ };
+ };
+ /** @description Workspace created. */
+ 201: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["create_workspace_response"];
+ };
+ };
+ /** @description Invalid body, such as a missing or out-of-range size_limit_gib, a name longer than 255 characters, or an unknown field. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The request has no user identity, the team's account has been cleaned up, or persistent workspaces are not enabled for this team. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The team's workspace count or total size limit is reached, or a create with this Idempotency-Key is still in progress or created a workspace that is being deleted. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The Idempotency-Key was already used with a different body. */
+ 422: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Persistent workspaces are not available yet. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description The workspace could not be confirmed. Retry with the same Idempotency-Key. */
+ 503: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_get_workspace: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The workspace ID. Workspace names are not accepted.
+ * @example 019a2f4e-8c1d-7b3a-9e5f-2d6c8a1b4e70
+ */
+ workspace_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["get_workspace_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description Persistent workspaces are not enabled for this team. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Persistent workspaces are not available yet. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Workspace state is temporarily unavailable. Retry. */
+ 503: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ harness_delete_workspace: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The workspace ID. Workspace names are not accepted.
+ * @example 019a2f4e-8c1d-7b3a-9e5f-2d6c8a1b4e70
+ */
+ workspace_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Workspace deleted; no response body. */
+ 204: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description The request has no user identity, or persistent workspaces are not enabled for this team. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 404: components["responses"]["not_found"];
+ /** @description The workspace is attached to a session, is still being saved, or cannot be deleted right now. Remove the session that holds it, or retry. */
+ 409: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description Persistent workspaces are not available yet. */
+ 501: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ /** @description Workspace state is temporarily unavailable. Retry. */
+ 503: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Whether the project_id of listed apps should be fetched and included.
+ * @example true
+ */
+ with_projects?: components["parameters"]["with_projects"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_apps"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_create: {
+ parameters: {
+ query?: never;
+ header?: {
+ /**
+ * @description The content-type that should be used by the response. By default, the response will be `application/json`. `application/yaml` is also supported.
+ * @example application/json
+ */
+ Accept?: components["parameters"]["accept"];
+ /**
+ * @description The content-type used for the request. By default, the requests are assumed to use `application/json`. `application/yaml` is also supported.
+ * @example application/json
+ */
+ "Content-Type"?: components["parameters"]["content-type"];
+ };
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "spec": {
+ * "name": "web-app",
+ * "region": "nyc",
+ * "disable_edge_cache": true,
+ * "disable_email_obfuscation": false,
+ * "enhanced_threat_control_enabled": true,
+ * "services": [
+ * {
+ * "name": "api",
+ * "github": {
+ * "branch": "main",
+ * "deploy_on_push": true,
+ * "repo": "digitalocean/sample-golang"
+ * },
+ * "run_command": "bin/api",
+ * "environment_slug": "node-js",
+ * "instance_count": 2,
+ * "instance_size_slug": "apps-s-1vcpu-0.5gb",
+ * "routes": [
+ * {
+ * "path": "/api"
+ * }
+ * ]
+ * }
+ * ],
+ * "egress": {
+ * "type": "DEDICATED_IP"
+ * },
+ * "vpc": {
+ * "id": "c22d8f48-4bc4-49f5-8ca0-58e7164427ac"
+ * }
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["apps_create_app_request"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["new_app"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_get: {
+ parameters: {
+ query?: {
+ /**
+ * @description The name of the app to retrieve.
+ * @example myApp
+ */
+ name?: components["parameters"]["app_name"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The ID of the app
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ id: components["parameters"]["id_app"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["apps_get"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_update: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The ID of the app
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ id: components["parameters"]["id_app"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["apps_update_app_request"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["update_app"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The ID of the app
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ id: components["parameters"]["id_app"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["delete_app"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_restart: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apps_restart_request"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["new_app_deployment"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_get_logs_active_deployment: {
+ parameters: {
+ query: {
+ /**
+ * @description Whether the logs should follow live updates.
+ * @example true
+ */
+ follow?: components["parameters"]["live_updates"];
+ /**
+ * @description The type of logs to retrieve
+ * - BUILD: Build-time logs
+ * - DEPLOY: Deploy-time logs
+ * - RUN: Live run-time logs
+ * - RUN_RESTARTED: Logs of crashed/restarted instances during runtime
+ * - AUTOSCALE_EVENT: Logs of an autoscaling event (requires event_id)
+ * @example BUILD
+ */
+ type: components["parameters"]["log_type"];
+ /**
+ * @description An optional time duration to wait if the underlying component instance is not immediately available. Default: `3m`.
+ * @example 3m
+ */
+ pod_connection_timeout?: components["parameters"]["time_wait"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ /**
+ * @description An optional component name. If set, logs will be limited to this component only.
+ * @example component
+ */
+ component_name: components["parameters"]["component"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_logs"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_get_exec_active_deployment: {
+ parameters: {
+ query?: {
+ /**
+ * @description The name of the actively running ephemeral compute instance
+ * @example go-app-d768568df-zz77d
+ */
+ instance_name?: components["parameters"]["instance_name"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ /**
+ * @description An optional component name. If set, logs will be limited to this component only.
+ * @example component
+ */
+ component_name: components["parameters"]["component"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["get_exec"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_get_instances: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["apps_instances"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_list_deployments: {
+ parameters: {
+ query?: {
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Optional. Filter deployments by deployment_type
+ * - MANUAL: manual deployment
+ * - DEPLOY_ON_PUSH: deployment triggered by a push to the app's repository
+ * - MAINTENANCE: deployment for maintenance purposes
+ * - MANUAL_ROLLBACK: manual revert to a previous deployment
+ * - AUTO_ROLLBACK: automatic revert to a previous deployment
+ * - UPDATE_DATABASE_TRUSTED_SOURCES: update database trusted sources
+ * - AUTOSCALED: deployment that has been autoscaled
+ * @example [
+ * "MANUAL",
+ * "AUTOSCALED"
+ * ]
+ */
+ deployment_types?: ("MANUAL" | "DEPLOY_ON_PUSH" | "MAINTENANCE" | "MANUAL_ROLLBACK" | "AUTO_ROLLBACK" | "UPDATE_DATABASE_TRUSTED_SOURCES" | "AUTOSCALED")[];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["existing_deployments"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_create_deployment: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["apps_create_deployment_request"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["new_app_deployment"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_get_deployment: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ /**
+ * @description The deployment ID
+ * @example 3aa4d20e-5527-4c00-b496-601fbd22520a
+ */
+ deployment_id: components["parameters"]["deployment_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_deployment"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_cancel_deployment: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ /**
+ * @description The deployment ID
+ * @example 3aa4d20e-5527-4c00-b496-601fbd22520a
+ */
+ deployment_id: components["parameters"]["deployment_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["cancel_deployment"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_get_logs: {
+ parameters: {
+ query: {
+ /**
+ * @description Whether the logs should follow live updates.
+ * @example true
+ */
+ follow?: components["parameters"]["live_updates"];
+ /**
+ * @description The type of logs to retrieve
+ * - BUILD: Build-time logs
+ * - DEPLOY: Deploy-time logs
+ * - RUN: Live run-time logs
+ * - RUN_RESTARTED: Logs of crashed/restarted instances during runtime
+ * - AUTOSCALE_EVENT: Logs of an autoscaling event (requires event_id)
+ * @example BUILD
+ */
+ type: components["parameters"]["log_type"];
+ /**
+ * @description An optional time duration to wait if the underlying component instance is not immediately available. Default: `3m`.
+ * @example 3m
+ */
+ pod_connection_timeout?: components["parameters"]["time_wait"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ /**
+ * @description The deployment ID
+ * @example 3aa4d20e-5527-4c00-b496-601fbd22520a
+ */
+ deployment_id: components["parameters"]["deployment_id"];
+ /**
+ * @description An optional component name. If set, logs will be limited to this component only.
+ * @example component
+ */
+ component_name: components["parameters"]["component"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_logs"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_get_logs_aggregate: {
+ parameters: {
+ query: {
+ /**
+ * @description Whether the logs should follow live updates.
+ * @example true
+ */
+ follow?: components["parameters"]["live_updates"];
+ /**
+ * @description The type of logs to retrieve
+ * - BUILD: Build-time logs
+ * - DEPLOY: Deploy-time logs
+ * - RUN: Live run-time logs
+ * - RUN_RESTARTED: Logs of crashed/restarted instances during runtime
+ * - AUTOSCALE_EVENT: Logs of an autoscaling event (requires event_id)
+ * @example BUILD
+ */
+ type: components["parameters"]["log_type"];
+ /**
+ * @description An optional time duration to wait if the underlying component instance is not immediately available. Default: `3m`.
+ * @example 3m
+ */
+ pod_connection_timeout?: components["parameters"]["time_wait"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ /**
+ * @description The deployment ID
+ * @example 3aa4d20e-5527-4c00-b496-601fbd22520a
+ */
+ deployment_id: components["parameters"]["deployment_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_logs"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_get_exec: {
+ parameters: {
+ query?: {
+ /**
+ * @description The name of the actively running ephemeral compute instance
+ * @example go-app-d768568df-zz77d
+ */
+ instance_name?: components["parameters"]["instance_name"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ /**
+ * @description The deployment ID
+ * @example 3aa4d20e-5527-4c00-b496-601fbd22520a
+ */
+ deployment_id: components["parameters"]["deployment_id"];
+ /**
+ * @description An optional component name. If set, logs will be limited to this component only.
+ * @example component
+ */
+ component_name: components["parameters"]["component"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["get_exec"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_get_logs_active_deployment_aggregate: {
+ parameters: {
+ query: {
+ /**
+ * @description Whether the logs should follow live updates.
+ * @example true
+ */
+ follow?: components["parameters"]["live_updates"];
+ /**
+ * @description The type of logs to retrieve
+ * - BUILD: Build-time logs
+ * - DEPLOY: Deploy-time logs
+ * - RUN: Live run-time logs
+ * - RUN_RESTARTED: Logs of crashed/restarted instances during runtime
+ * - AUTOSCALE_EVENT: Logs of an autoscaling event (requires event_id)
+ * @example BUILD
+ */
+ type: components["parameters"]["log_type"];
+ /**
+ * @description An optional time duration to wait if the underlying component instance is not immediately available. Default: `3m`.
+ * @example 3m
+ */
+ pod_connection_timeout?: components["parameters"]["time_wait"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_logs"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_list_job_invocations: {
+ parameters: {
+ query?: {
+ /**
+ * @description The job names to list job invocations for.
+ * @example [
+ * "component1",
+ * "component2"
+ * ]
+ */
+ job_names?: components["parameters"]["job_names"];
+ /**
+ * @description The deployment ID
+ * @example 3aa4d20e-5527-4c00-b496-601fbd22520a
+ */
+ deployment_id?: string;
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_job_invocations"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_get_job_invocation: {
+ parameters: {
+ query?: {
+ /**
+ * @description The job name to list job invocations for.
+ * @example component
+ */
+ job_name?: components["parameters"]["job_name"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ /**
+ * @description The ID of the job invocation to retrieve.
+ * @example 123e4567-e89b-12d3-a456-426
+ */
+ job_invocation_id: components["parameters"]["job_invocation_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["get_job_invocation"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_cancel_job_invocation: {
+ parameters: {
+ query?: {
+ /**
+ * @description The job name to list job invocations for.
+ * @example component
+ */
+ job_name?: components["parameters"]["job_name"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ /**
+ * @description The ID of the job invocation to retrieve.
+ * @example 123e4567-e89b-12d3-a456-426
+ */
+ job_invocation_id: components["parameters"]["job_invocation_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["cancel_job_invocation"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_get_job_invocation_logs: {
+ parameters: {
+ query: {
+ /**
+ * @description The deployment ID
+ * @example 3aa4d20e-5527-4c00-b496-601fbd22520a
+ */
+ deployment_id?: string;
+ /**
+ * @description Whether the logs should follow live updates.
+ * @example true
+ */
+ follow?: components["parameters"]["live_updates"];
+ /**
+ * @description The type of logs to retrieve
+ * @example JOB_INVOCATION
+ */
+ type: "JOB_INVOCATION";
+ /**
+ * @description An optional time duration to wait if the underlying component instance is not immediately available. Default: `3m`.
+ * @example 3m
+ */
+ pod_connection_timeout?: components["parameters"]["time_wait"];
+ /**
+ * @description The number of lines from the end of the logs to retrieve.
+ * @example 100
+ */
+ tail_lines?: components["parameters"]["number_lines"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ /**
+ * @description The job name to list job invocations for.
+ * @example component
+ */
+ job_name: string;
+ /**
+ * @description The ID of the job invocation to retrieve.
+ * @example 123e4567-e89b-12d3-a456-426
+ */
+ job_invocation_id: components["parameters"]["job_invocation_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["apps_get_logs"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_list_events: {
+ parameters: {
+ query?: {
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Filter events by event type.
+ * @example [
+ * "DEPLOYMENT"
+ * ]
+ */
+ event_types?: ("UNKNOWN" | "DEPLOYMENT" | "AUTOSCALING")[];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_events"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_get_event: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ /**
+ * @description The event ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ event_id: components["parameters"]["event_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["get_event"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_cancel_event: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ /**
+ * @description The event ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ event_id: components["parameters"]["event_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["cancel_event"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_get_event_logs: {
+ parameters: {
+ query: {
+ /**
+ * @description Whether the logs should follow live updates.
+ * @example true
+ */
+ follow?: components["parameters"]["live_updates"];
+ /**
+ * @description The type of logs to retrieve
+ * - BUILD: Build-time logs
+ * - DEPLOY: Deploy-time logs
+ * - RUN: Live run-time logs
+ * - RUN_RESTARTED: Logs of crashed/restarted instances during runtime
+ * - AUTOSCALE_EVENT: Logs of an autoscaling event (requires event_id)
+ * @example BUILD
+ */
+ type: components["parameters"]["log_type"];
+ /**
+ * @description An optional time duration to wait if the underlying component instance is not immediately available. Default: `3m`.
+ * @example 3m
+ */
+ pod_connection_timeout?: components["parameters"]["time_wait"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ /**
+ * @description The event ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ event_id: components["parameters"]["event_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_logs"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_list_instanceSizes: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_instance"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_get_instanceSize: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The slug of the instance size
+ * @example apps-s-1vcpu-0.5gb
+ */
+ slug: components["parameters"]["slug_size"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["get_instance"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_list_regions: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_regions"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_validate_appSpec: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "spec": {
+ * "name": "web-app",
+ * "region": "nyc",
+ * "services": [
+ * {
+ * "name": "api",
+ * "github": {
+ * "branch": "main",
+ * "deploy_on_push": true,
+ * "repo": "digitalocean/sample-golang"
+ * },
+ * "run_command": "bin/api",
+ * "environment_slug": "node-js",
+ * "instance_count": 2,
+ * "instance_size_slug": "apps-s-1vcpu-0.5gb",
+ * "routes": [
+ * {
+ * "path": "/api"
+ * }
+ * ]
+ * }
+ * ]
+ * },
+ * "app_id": "b6bdf840-2854-4f87-a36c-5f231c617c84"
+ * }
+ */
+ "application/json": components["schemas"]["app_propose"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["propose_app"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_list_alerts: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_alerts"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_assign_alertDestinations: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ /**
+ * @description The alert ID
+ * @example 5a624ab5-dd58-4b39-b7dd-8b7c36e8a91d
+ */
+ alert_id: components["parameters"]["alert_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["apps_assign_app_alert_destinations_request"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["assign_alert_destinations"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_create_rollback: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["apps_rollback_app_request"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["new_app_deployment"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_validate_rollback: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["apps_rollback_app_request"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["apps_validate_rollback"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_commit_rollback: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_revert_rollback: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["new_app_deployment"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_get_metrics_bandwidth_daily: {
+ parameters: {
+ query?: {
+ /**
+ * @description Optional day to query. Only the date component of the timestamp will be considered. Default: yesterday.
+ * @example 2023-01-17T00:00:00Z
+ */
+ date?: string;
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["get_metrics_bandwidth_usage"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_list_metrics_bandwidth_daily: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "app_ids": [
+ * "4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf",
+ * "c2a93513-8d9b-4223-9d61-5e7272c81cf5"
+ * ],
+ * "date": "2023-01-17T00:00:00Z"
+ * }
+ */
+ "application/json": components["schemas"]["app_metrics_bandwidth_usage_request"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["list_metrics_bandwidth_usage"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ apps_get_health: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The app ID
+ * @example 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf
+ */
+ app_id: components["parameters"]["app_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["apps_health"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ cdn_list_endpoints: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_cdn_endpoints"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ cdn_create_endpoint: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["cdn_endpoint"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["existing_endpoint"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ cdn_get_endpoint: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a CDN endpoint.
+ * @example 19f06b6a-3ace-4315-b086-499a0e521b76
+ */
+ cdn_id: components["parameters"]["cdn_endpoint_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["existing_endpoint"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ cdn_update_endpoints: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a CDN endpoint.
+ * @example 19f06b6a-3ace-4315-b086-499a0e521b76
+ */
+ cdn_id: components["parameters"]["cdn_endpoint_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["update_endpoint"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["existing_endpoint"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ cdn_delete_endpoint: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a CDN endpoint.
+ * @example 19f06b6a-3ace-4315-b086-499a0e521b76
+ */
+ cdn_id: components["parameters"]["cdn_endpoint_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ cdn_purge_cache: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a CDN endpoint.
+ * @example 19f06b6a-3ace-4315-b086-499a0e521b76
+ */
+ cdn_id: components["parameters"]["cdn_endpoint_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["purge_cache"];
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ certificates_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description Name of expected certificate
+ * @example certificate-name
+ */
+ name?: components["parameters"]["certificate_name"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_certificates"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ certificates_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["certificate_request_lets_encrypt"] | components["schemas"]["certificate_request_custom"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["new_certificate"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ certificates_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a certificate.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ certificate_id: components["parameters"]["certificate_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["existing_certificate"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ certificates_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a certificate.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ certificate_id: components["parameters"]["certificate_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ balance_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["balance"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ prepaymentConfig_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["prepayment_config"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ prepaymentStatus_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["prepayment_status"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ billingHistory_list: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["billing_history"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ invoices_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["invoices"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ invoices_get_byUUID: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the invoice
+ * @example 22737513-0ea7-4206-8ceb-98a575af7681
+ */
+ invoice_uuid: components["parameters"]["invoice_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["invoice"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ invoices_get_csvByUUID: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the invoice
+ * @example 22737513-0ea7-4206-8ceb-98a575af7681
+ */
+ invoice_uuid: components["parameters"]["invoice_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["invoice_csv"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ invoices_get_pdfByUUID: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the invoice
+ * @example 22737513-0ea7-4206-8ceb-98a575af7681
+ */
+ invoice_uuid: components["parameters"]["invoice_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["invoice_pdf"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ invoices_get_summaryByUUID: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the invoice
+ * @example 22737513-0ea7-4206-8ceb-98a575af7681
+ */
+ invoice_uuid: components["parameters"]["invoice_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["invoice_summary"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ billingInsights_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description URN of the customer account, can be a team (do:team:uuid) or an organization (do:teamgroup:uuid)
+ * @example do:team:12345678-1234-1234-1234-123456789012
+ */
+ account_urn: components["parameters"]["account_urn"];
+ /**
+ * @description Start date for billing insights in YYYY-MM-DD format
+ * @example 2025-01-01
+ */
+ start_date: components["parameters"]["start_date"];
+ /**
+ * @description End date for billing insights in YYYY-MM-DD format. Must be within 31 days of start_date
+ * @example 2025-01-31
+ */
+ end_date: components["parameters"]["end_date"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["billing_insights"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_list_options: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["options"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_list_clusters: {
+ parameters: {
+ query?: {
+ /**
+ * @description Limits the results to database clusters with a specific tag. Requires `tag:read` scope.
+ * @example production
+ */
+ tag_name?: components["parameters"]["tag_name"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["database_clusters"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_create_cluster: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["database_cluster"] & {
+ backup_restore?: components["schemas"]["database_backup"];
+ };
+ };
+ };
+ responses: {
+ 201: components["responses"]["database_cluster"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_get_cluster: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["database_cluster"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_destroy_cluster: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_get_config: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["database_config"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_patch_config: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "config": {
+ * "sql_mode": "ANSI,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,STRICT_ALL_TABLES",
+ * "sql_require_primary_key": true
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["database_config"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_get_ca: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["ca"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_get_migrationStatus: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["online_migration"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_update_onlineMigration: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "source": {
+ * "host": "source-db.example.com",
+ * "dbname": "defaultdb",
+ * "port": 25060,
+ * "username": "doadmin",
+ * "password": "example_password"
+ * },
+ * "disable_ssl": false,
+ * "ignore_dbs": [
+ * "db0",
+ * "db1"
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["source_database"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["online_migration"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_delete_onlineMigration: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description A unique identifier assigned to the online migration.
+ * @example 77b28fc8-19ff-11eb-8c9c-c68e24557488
+ */
+ migration_id: components["parameters"]["migration_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_update_region: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": {
+ /**
+ * @description A slug identifier for the region to which the database cluster will be migrated.
+ * @example lon1
+ */
+ region: string;
+ };
+ };
+ };
+ responses: {
+ 202: components["responses"]["accepted"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_update_clusterSize: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "size": "db-s-4vcpu-8gb",
+ * "num_nodes": 3,
+ * "storage_size_mib": 163840
+ * }
+ */
+ "application/json": components["schemas"]["database_cluster_resize"];
+ };
+ };
+ responses: {
+ 202: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_list_firewall_rules: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["firewall_rules"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_update_firewall_rules: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "rules": [
+ * {
+ * "type": "ip_addr",
+ * "value": "192.168.1.1"
+ * },
+ * {
+ * "type": "k8s",
+ * "value": "ff2a6c52-5a44-4b63-b99c-0e98e7a63d61"
+ * },
+ * {
+ * "type": "droplet",
+ * "value": "163973392"
+ * },
+ * {
+ * "type": "tag",
+ * "value": "backend",
+ * "description": "a backend tag"
+ * }
+ * ]
+ * }
+ */
+ "application/json": {
+ rules?: components["schemas"]["firewall_rule"][];
+ };
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_get_do_settings: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["do_settings"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_update_do_settings: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "do_settings": {
+ * "service_cnames": [
+ * "db.example.com",
+ * "db-replica.example.com"
+ * ]
+ * }
+ * }
+ */
+ "application/json": {
+ do_settings: components["schemas"]["do_settings"];
+ };
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 422: components["responses"]["unprocessable_entity"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_update_maintenanceWindow: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "day": "tuesday",
+ * "hour": "14:00"
+ * }
+ */
+ "application/json": components["schemas"]["database_maintenance_window"];
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_install_update: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_list_backups: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["database_backups"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_list_replicas: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["database_replicas"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_create_replica: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": WithRequired;
+ };
+ };
+ responses: {
+ 201: components["responses"]["database_replica"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_list_events_logs: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["events_logs"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_get_replica: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description The name of the database replica.
+ * @example read-nyc3-01
+ */
+ replica_name: components["parameters"]["replica_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["database_replica"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_destroy_replica: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description The name of the database replica.
+ * @example read-nyc3-01
+ */
+ replica_name: components["parameters"]["replica_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_promote_replica: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description The name of the database replica.
+ * @example read-nyc3-01
+ */
+ replica_name: components["parameters"]["replica_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_list_users: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["users"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_add_user: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["database_user"] & {
+ /**
+ * @description (To be deprecated: use settings.mongo_user_settings.role instead for access controls to MongoDB databases).
+ * For MongoDB clusters, set to `true` to create a read-only user.
+ * This option is not currently supported for other database engines.
+ * @example true
+ */
+ readonly?: boolean;
+ };
+ };
+ };
+ responses: {
+ 201: components["responses"]["user"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_get_user: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description The name of the database user.
+ * @example app-01
+ */
+ username: components["parameters"]["username"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["user"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_update_user: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description The name of the database user.
+ * @example app-01
+ */
+ username: components["parameters"]["username"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": {
+ settings: components["schemas"]["user_settings_update"];
+ };
+ };
+ };
+ responses: {
+ 201: components["responses"]["user"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 422: components["responses"]["unprocessable_entity"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_delete_user: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description The name of the database user.
+ * @example app-01
+ */
+ username: components["parameters"]["username"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_reset_auth: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description The name of the database user.
+ * @example app-01
+ */
+ username: components["parameters"]["username"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "mysql_settings": {
+ * "auth_plugin": "caching_sha2_password"
+ * }
+ * }
+ */
+ "application/json": {
+ mysql_settings?: components["schemas"]["mysql_settings"];
+ };
+ };
+ };
+ responses: {
+ 200: components["responses"]["user"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_list: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["databases"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_add: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "name": "alpha"
+ * }
+ */
+ "application/json": components["schemas"]["database"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["database"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description The name of the database.
+ * @example alpha
+ */
+ database_name: components["parameters"]["database_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["database"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description The name of the database.
+ * @example alpha
+ */
+ database_name: components["parameters"]["database_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_list_connectionPools: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["connection_pools"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_add_connectionPool: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "name": "backend-pool",
+ * "mode": "transaction",
+ * "size": 10,
+ * "db": "defaultdb",
+ * "user": "doadmin"
+ * }
+ */
+ "application/json": components["schemas"]["connection_pool"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["connection_pool"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_get_connectionPool: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description The name used to identify the connection pool.
+ * @example backend-pool
+ */
+ pool_name: components["parameters"]["pool_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["connection_pool"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_update_connectionPool: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description The name used to identify the connection pool.
+ * @example backend-pool
+ */
+ pool_name: components["parameters"]["pool_name"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "mode": "transaction",
+ * "size": 10,
+ * "db": "defaultdb",
+ * "user": "doadmin"
+ * }
+ */
+ "application/json": components["schemas"]["connection_pool_update"];
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_delete_connectionPool: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description The name used to identify the connection pool.
+ * @example backend-pool
+ */
+ pool_name: components["parameters"]["pool_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_get_evictionPolicy: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["eviction_policy_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_update_evictionPolicy: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "eviction_policy": "allkeys_lru"
+ * }
+ */
+ "application/json": {
+ eviction_policy: components["schemas"]["eviction_policy_model"];
+ };
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_get_sql_mode: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["sql_mode"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_update_sql_mode: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "sql_mode": "ANSI,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE"
+ * }
+ */
+ "application/json": components["schemas"]["sql_mode"];
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_update_major_version: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "version": "14"
+ * }
+ */
+ "application/json": components["schemas"]["version-2"];
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_get_autoscale: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["autoscale"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_update_autoscale: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "storage": {
+ * "enabled": true,
+ * "threshold_percent": 80,
+ * "increment_gib": 10
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["database_autoscale_params"];
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 422: components["responses"]["unprocessable_entity"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_list_kafka_topics: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["kafka_topics"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_create_kafka_topic: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ /**
+ * @example {
+ * "name": "customer-events",
+ * "partitions": 3,
+ * "replication": 2,
+ * "config": {
+ * "retention_bytes": -1,
+ * "retention_ms": 100000
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["kafka_topic_create"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["kafka_topic"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_get_kafka_topic: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description The name used to identify the Kafka topic.
+ * @example customer-events
+ */
+ topic_name: components["parameters"]["kafka_topic_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["kafka_topic"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_update_kafka_topic: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description The name used to identify the Kafka topic.
+ * @example customer-events
+ */
+ topic_name: components["parameters"]["kafka_topic_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ /**
+ * @example {
+ * "partitions": 3,
+ * "replication": 2,
+ * "config": {
+ * "retention_bytes": -1,
+ * "retention_ms": 100000
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["kafka_topic_update"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["kafka_topic"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_delete_kafka_topic: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description The name used to identify the Kafka topic.
+ * @example customer-events
+ */
+ topic_name: components["parameters"]["kafka_topic_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_list_logsink: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["logsinks"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_create_logsink: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["logsink_create"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["logsink"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_get_logsink: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description A unique identifier for a logsink of a database cluster
+ * @example 50484ec3-19d6-4cd3-b56f-3b0381c289a6
+ */
+ logsink_id: components["parameters"]["logsink_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["logsink_data"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_update_logsink: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description A unique identifier for a logsink of a database cluster
+ * @example 50484ec3-19d6-4cd3-b56f-3b0381c289a6
+ */
+ logsink_id: components["parameters"]["logsink_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "config": {
+ * "server": "192.168.0.1",
+ * "port": 514,
+ * "tls": false,
+ * "format": "rfc3164"
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["logsink_update"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_delete_logsink: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description A unique identifier for a logsink of a database cluster
+ * @example 50484ec3-19d6-4cd3-b56f-3b0381c289a6
+ */
+ logsink_id: components["parameters"]["logsink_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_list_kafka_schemas: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["kafka_schemas"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_create_kafka_schema: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "subject_name": "customer-schema",
+ * "schema_type": "AVRO",
+ * "schema": "{\n \"type\": \"record\",\n \"name\": \"Customer\",\n \"fields\": [\n {\"name\": \"id\", \"type\": \"string\"},\n {\"name\": \"name\", \"type\": \"string\"},\n {\"name\": \"email\", \"type\": \"string\"},\n {\"name\": \"created_at\", \"type\": \"long\"}\n ]\n}\n"
+ * }
+ */
+ "application/json": WithRequired;
+ };
+ };
+ responses: {
+ 201: components["responses"]["kafka_schema"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_get_kafka_schema: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description The name of the Kafka schema subject.
+ * @example customer-schema
+ */
+ subject_name: components["parameters"]["kafka_schema_subject_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["kafka_schema_version"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ };
+ };
+ databases_delete_kafka_schema: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description The name of the Kafka schema subject.
+ * @example customer-schema
+ */
+ subject_name: components["parameters"]["kafka_schema_subject_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ };
+ };
+ databases_get_kafka_schema_version: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description The name of the Kafka schema subject.
+ * @example customer-schema
+ */
+ subject_name: components["parameters"]["kafka_schema_subject_name"];
+ /**
+ * @description The version of the Kafka schema subject.
+ * @example 1
+ */
+ version: components["parameters"]["kafka_schema_version"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["kafka_schema_version"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ };
+ };
+ databases_get_kafka_schema_config: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["database_schema_registry_config"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_update_kafka_schema_config: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ /**
+ * @example {
+ * "compatibility_level": "BACKWARD"
+ * }
+ */
+ "application/json": {
+ /**
+ * @description The compatibility level of the schema registry.
+ * @enum {string}
+ */
+ compatibility_level: "NONE" | "BACKWARD" | "BACKWARD_TRANSITIVE" | "FORWARD" | "FORWARD_TRANSITIVE" | "FULL" | "FULL_TRANSITIVE";
+ };
+ };
+ };
+ responses: {
+ 200: components["responses"]["database_schema_registry_config"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_get_kafka_schema_subject_config: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description The name of the Kafka schema subject.
+ * @example customer-schema
+ */
+ subject_name: components["parameters"]["kafka_schema_subject_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["database_schema_registry_subject_config"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_update_kafka_schema_subject_config: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description The name of the Kafka schema subject.
+ * @example customer-schema
+ */
+ subject_name: components["parameters"]["kafka_schema_subject_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ /**
+ * @example {
+ * "compatibility_level": "BACKWARD"
+ * }
+ */
+ "application/json": {
+ /**
+ * @description The compatibility level of the schema registry.
+ * @enum {string}
+ */
+ compatibility_level: "NONE" | "BACKWARD" | "BACKWARD_TRANSITIVE" | "FORWARD" | "FORWARD_TRANSITIVE" | "FULL" | "FULL_TRANSITIVE";
+ };
+ };
+ };
+ responses: {
+ 200: components["responses"]["database_schema_registry_subject_config"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_get_cluster_metrics_credentials: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["database_metrics_auth"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_update_cluster_metrics_credentials: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ /**
+ * @example {
+ * "credentials": {
+ * "basic_auth_username": "new_username",
+ * "basic_auth_password": "new_password"
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["database_metrics_credentials"];
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_list_opeasearch_indexes: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["opensearch_indexes"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ databases_delete_opensearch_index: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a database cluster.
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ database_cluster_uuid: components["parameters"]["database_cluster_uuid"];
+ /**
+ * @description The name of the OpenSearch index.
+ * @example logs-*
+ */
+ index_name: components["parameters"]["opensearch_index_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ dedicatedInferences_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Dedicated Inference instance.
+ * @example 6b5c619c-359c-44ca-87e2-47e98170c01d
+ */
+ dedicated_inference_id: components["parameters"]["dedicated_inference_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["dedicated_inference"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ dedicatedInferences_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Dedicated Inference instance.
+ * @example 6b5c619c-359c-44ca-87e2-47e98170c01d
+ */
+ dedicated_inference_id: components["parameters"]["dedicated_inference_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 202: components["responses"]["accepted"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ dedicatedInferences_patch: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Dedicated Inference instance.
+ * @example 6b5c619c-359c-44ca-87e2-47e98170c01d
+ */
+ dedicated_inference_id: components["parameters"]["dedicated_inference_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["dedicated_inference_update_request"];
+ };
+ };
+ responses: {
+ 202: components["responses"]["dedicated_inference_update_accepted"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ dedicatedInferences_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description Filter by region. Dedicated Inference is only available in nyc2, tor1, and atl1.
+ * @example atl1
+ */
+ region?: components["parameters"]["region"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_dedicated_inferences"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ dedicatedInferences_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["dedicated_inference_create_request"];
+ };
+ };
+ responses: {
+ 202: components["responses"]["dedicated_inference_provisioning"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ dedicatedInferences_list_accelerators: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 20
+ */
+ per_page?: number;
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Filter accelerators by GPU slug.
+ * @example gpu-mi300x1-192gb
+ */
+ slug?: string;
+ };
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Dedicated Inference instance.
+ * @example 6b5c619c-359c-44ca-87e2-47e98170c01d
+ */
+ dedicated_inference_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["accelerators_list"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ dedicatedInferences_get_accelerator: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Dedicated Inference instance.
+ * @example 6b5c619c-359c-44ca-87e2-47e98170c01d
+ */
+ dedicated_inference_id: components["parameters"]["dedicated_inference_id"];
+ /**
+ * @description A unique identifier for a Dedicated Inference accelerator.
+ * @example 5b5c619c-359c-44ca-87e2-47e98170c02f
+ */
+ accelerator_id: components["parameters"]["accelerator_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Single accelerator object. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["dedicated_inference_accelerator"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ dedicatedInferences_get_ca: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Dedicated Inference instance.
+ * @example 6b5c619c-359c-44ca-87e2-47e98170c01d
+ */
+ dedicated_inference_id: components["parameters"]["dedicated_inference_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["ca_certificate"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ dedicatedInferences_list_tokens: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Dedicated Inference instance.
+ * @example 6b5c619c-359c-44ca-87e2-47e98170c01d
+ */
+ dedicated_inference_id: components["parameters"]["dedicated_inference_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["tokens_list"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ dedicatedInferences_create_tokens: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Dedicated Inference instance.
+ * @example 6b5c619c-359c-44ca-87e2-47e98170c01d
+ */
+ dedicated_inference_id: components["parameters"]["dedicated_inference_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["dedicated_inference_token_create_request"];
+ };
+ };
+ responses: {
+ 202: components["responses"]["token_created"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ dedicatedInferences_delete_tokens: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Dedicated Inference instance.
+ * @example 6b5c619c-359c-44ca-87e2-47e98170c01d
+ */
+ dedicated_inference_id: components["parameters"]["dedicated_inference_id"];
+ /**
+ * @description A unique identifier for a Dedicated Inference access token.
+ * @example f11d4795-c1db-4ac3-9aa6-a0ea3c58877e
+ */
+ token_id: components["parameters"]["token_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Token revoked. */
+ 204: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ dedicatedInferences_list_sizes: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Enabled regions and sizes with pricing. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "enabled_regions": [
+ * "nyc2",
+ * "atl1"
+ * ],
+ * "sizes": [
+ * {
+ * "gpu_slug": "gpu-mi300x1-192gb",
+ * "price_per_hour": "2",
+ * "region": "nyc2",
+ * "currency": "USD"
+ * }
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["dedicated_inference_sizes_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ dedicatedInferences_get_gpu_model_config: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description GPU model configs (gpu_slugs, model_slug, model_name, is_gated_model). */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "gpu_model_configs": [
+ * {
+ * "gpu_slugs": [
+ * "gpu-mi300x1-192gb"
+ * ],
+ * "model_slug": "mistral/mistral-7b-instruct-v3",
+ * "model_name": "Mistral-7B-Instruct-v0.3",
+ * "is_gated_model": true
+ * }
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["dedicated_inference_gpu_model_configs_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ domains_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_domains_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ domains_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ /**
+ * @example {
+ * "name": "example.com"
+ * }
+ */
+ "application/json": components["schemas"]["domain"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["create_domain_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ domains_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of the domain itself.
+ * @example example.com
+ */
+ domain_name: components["parameters"]["domain_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["existing_domain"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ domains_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of the domain itself.
+ * @example example.com
+ */
+ domain_name: components["parameters"]["domain_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ domains_list_records: {
+ parameters: {
+ query?: {
+ /**
+ * @description A fully qualified record name. For example, to only include records matching sub.example.com, send a GET request to `/v2/domains/$DOMAIN_NAME/records?name=sub.example.com`.
+ * @example sub.example.com
+ */
+ name?: components["parameters"]["domain_name_query"];
+ /**
+ * @description The type of the DNS record. For example: A, CNAME, TXT, ...
+ * @example A
+ */
+ type?: components["parameters"]["domain_type_query"];
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The name of the domain itself.
+ * @example example.com
+ */
+ domain_name: components["parameters"]["domain_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_domain_records_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ domains_create_record: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of the domain itself.
+ * @example example.com
+ */
+ domain_name: components["parameters"]["domain_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ /**
+ * @example {
+ * "type": "A",
+ * "name": "www",
+ * "data": "162.10.66.0",
+ * "priority": null,
+ * "port": null,
+ * "ttl": 1800,
+ * "weight": null,
+ * "flags": null,
+ * "tag": null
+ * }
+ */
+ "application/json": components["schemas"]["domain_record_a"] | components["schemas"]["domain_record_aaaa"] | components["schemas"]["domain_record_caa"] | components["schemas"]["domain_record_cname"] | components["schemas"]["domain_record_mx"] | components["schemas"]["domain_record_ns"] | components["schemas"]["domain_record_soa"] | components["schemas"]["domain_record_srv"] | components["schemas"]["domain_record_txt"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["created_domain_record"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ domains_get_record: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of the domain itself.
+ * @example example.com
+ */
+ domain_name: components["parameters"]["domain_name"];
+ /**
+ * @description The unique identifier of the domain record.
+ * @example 3352896
+ */
+ domain_record_id: components["parameters"]["domain_record_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["domain_record"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ domains_update_record: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of the domain itself.
+ * @example example.com
+ */
+ domain_name: components["parameters"]["domain_name"];
+ /**
+ * @description The unique identifier of the domain record.
+ * @example 3352896
+ */
+ domain_record_id: components["parameters"]["domain_record_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ /**
+ * @example {
+ * "name": "blog",
+ * "type": "CNAME"
+ * }
+ */
+ "application/json": components["schemas"]["domain_record"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["domain_record"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ domains_delete_record: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of the domain itself.
+ * @example example.com
+ */
+ domain_name: components["parameters"]["domain_name"];
+ /**
+ * @description The unique identifier of the domain record.
+ * @example 3352896
+ */
+ domain_record_id: components["parameters"]["domain_record_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ domains_patch_record: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of the domain itself.
+ * @example example.com
+ */
+ domain_name: components["parameters"]["domain_name"];
+ /**
+ * @description The unique identifier of the domain record.
+ * @example 3352896
+ */
+ domain_record_id: components["parameters"]["domain_record_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ /**
+ * @example {
+ * "name": "blog",
+ * "type": "A"
+ * }
+ */
+ "application/json": components["schemas"]["domain_record"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["domain_record"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ droplets_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description Used to filter Droplets by a specific tag. Can not be combined with `name` or `type`. Requires `tag:read` scope.
+ * @example env:prod
+ */
+ tag_name?: components["parameters"]["droplet_tag_name"];
+ /**
+ * @description Used to filter list response by Droplet name returning only exact matches. It is case-insensitive and can not be combined with `tag_name`.
+ * @example web-01
+ */
+ name?: components["parameters"]["droplet_name"];
+ /**
+ * @description When `type` is set to `gpus`, only GPU Droplets will be returned. By default, only non-GPU Droplets are returned. Can not be combined with `tag_name`.
+ * @example droplets
+ */
+ type?: components["parameters"]["droplet_type"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_droplets"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ droplets_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["droplet_single_create"] | components["schemas"]["droplet_multi_create"];
+ };
+ };
+ responses: {
+ 202: components["responses"]["droplet_create"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ droplets_destroy_byTag: {
+ parameters: {
+ query: {
+ /**
+ * @description Specifies Droplets to be deleted by tag.
+ * @example env:test
+ */
+ tag_name: components["parameters"]["droplet_delete_tag_name"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content_with_content_type"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ droplets_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Droplet instance.
+ * @example 3164444
+ */
+ droplet_id: components["parameters"]["droplet_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["existing_droplet"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ droplets_destroy: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Droplet instance.
+ * @example 3164444
+ */
+ droplet_id: components["parameters"]["droplet_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content_with_content_type"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ droplets_list_backups: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Droplet instance.
+ * @example 3164444
+ */
+ droplet_id: components["parameters"]["droplet_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_droplet_backups"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ droplets_get_backup_policy: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Droplet instance.
+ * @example 3164444
+ */
+ droplet_id: components["parameters"]["droplet_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["droplet_backup_policy"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ droplets_list_backup_policies: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_droplet_backup_policies"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ droplets_list_supported_backup_policies: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["droplets_supported_backup_policies"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ droplets_list_snapshots: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Droplet instance.
+ * @example 3164444
+ */
+ droplet_id: components["parameters"]["droplet_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_droplet_snapshots"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ dropletActions_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Droplet instance.
+ * @example 3164444
+ */
+ droplet_id: components["parameters"]["droplet_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_droplet_actions"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ dropletActions_post: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Droplet instance.
+ * @example 3164444
+ */
+ droplet_id: components["parameters"]["droplet_id"];
+ };
+ cookie?: never;
+ };
+ /**
+ * @description The `type` attribute set in the request body will specify the action that
+ * will be taken on the Droplet. Some actions will require additional
+ * attributes to be set as well.
+ */
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["droplet_action"] | components["schemas"]["droplet_action_enable_backups"] | components["schemas"]["droplet_action_change_backup_policy"] | components["schemas"]["droplet_action_restore"] | components["schemas"]["droplet_action_resize"] | components["schemas"]["droplet_action_rebuild"] | components["schemas"]["droplet_action_rename"] | components["schemas"]["droplet_action_change_kernel"] | components["schemas"]["droplet_action_snapshot"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["droplet_action"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ dropletActions_post_byTag: {
+ parameters: {
+ query?: {
+ /**
+ * @description Used to filter Droplets by a specific tag. Can not be combined with `name` or `type`. Requires `tag:read` scope.
+ * @example env:prod
+ */
+ tag_name?: components["parameters"]["droplet_tag_name"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * @description The `type` attribute set in the request body will specify the action that
+ * will be taken on the Droplet. Some actions will require additional
+ * attributes to be set as well.
+ */
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["droplet_action"] | components["schemas"]["droplet_action_snapshot"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["droplet_actions_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ dropletActions_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Droplet instance.
+ * @example 3164444
+ */
+ droplet_id: components["parameters"]["droplet_id"];
+ /**
+ * @description A unique numeric ID that can be used to identify and reference an action.
+ * @example 36804636
+ */
+ action_id: components["parameters"]["action_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["action"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ droplets_list_kernels: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Droplet instance.
+ * @example 3164444
+ */
+ droplet_id: components["parameters"]["droplet_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_kernels"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ droplets_list_firewalls: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Droplet instance.
+ * @example 3164444
+ */
+ droplet_id: components["parameters"]["droplet_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_firewalls"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ droplets_list_neighbors: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Droplet instance.
+ * @example 3164444
+ */
+ droplet_id: components["parameters"]["droplet_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["neighbor_droplets"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ droplets_list_associatedResources: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Droplet instance.
+ * @example 3164444
+ */
+ droplet_id: components["parameters"]["droplet_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["associated_resources_list"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ droplets_destroy_withAssociatedResourcesSelective: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Droplet instance.
+ * @example 3164444
+ */
+ droplet_id: components["parameters"]["droplet_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["selective_destroy_associated_resource"];
+ };
+ };
+ responses: {
+ 202: components["responses"]["accepted"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ droplets_destroy_withAssociatedResourcesDangerous: {
+ parameters: {
+ query?: never;
+ header: {
+ /**
+ * @description Acknowledge this action will destroy the Droplet and all associated resources and _can not_ be reversed.
+ * @example true
+ */
+ "X-Dangerous": components["parameters"]["x_dangerous"];
+ };
+ path: {
+ /**
+ * @description A unique identifier for a Droplet instance.
+ * @example 3164444
+ */
+ droplet_id: components["parameters"]["droplet_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 202: components["responses"]["accepted"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ droplets_get_DestroyAssociatedResourcesStatus: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Droplet instance.
+ * @example 3164444
+ */
+ droplet_id: components["parameters"]["droplet_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["associated_resources_status"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ droplets_destroy_retryWithAssociatedResources: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a Droplet instance.
+ * @example 3164444
+ */
+ droplet_id: components["parameters"]["droplet_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 202: components["responses"]["accepted"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 409: components["responses"]["conflict"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ autoscalepools_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description The name of the autoscale pool
+ * @example my-autoscale-pool
+ */
+ name?: components["parameters"]["autoscale_pool_name"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_autoscale_pools"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ autoscalepools_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["autoscale_pool_create"];
+ };
+ };
+ responses: {
+ 202: components["responses"]["autoscale_pool_create"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ autoscalepools_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for an autoscale pool.
+ * @example 0d3db13e-a604-4944-9827-7ec2642d32ac
+ */
+ autoscale_pool_id: components["parameters"]["autoscale_pool_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["existing_autoscale_pool"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ autoscalepools_update: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for an autoscale pool.
+ * @example 0d3db13e-a604-4944-9827-7ec2642d32ac
+ */
+ autoscale_pool_id: components["parameters"]["autoscale_pool_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["autoscale_pool_create"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["autoscale_pool_create"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ autoscalepools_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for an autoscale pool.
+ * @example 0d3db13e-a604-4944-9827-7ec2642d32ac
+ */
+ autoscale_pool_id: components["parameters"]["autoscale_pool_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 202: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ autoscalepools_delete_dangerous: {
+ parameters: {
+ query?: never;
+ header: {
+ /**
+ * @description Acknowledge this action will destroy the autoscale pool and its associated resources and _can not_ be reversed.
+ * @example true
+ */
+ "X-Dangerous": components["parameters"]["parameters_x_dangerous"];
+ };
+ path: {
+ /**
+ * @description A unique identifier for an autoscale pool.
+ * @example 0d3db13e-a604-4944-9827-7ec2642d32ac
+ */
+ autoscale_pool_id: components["parameters"]["autoscale_pool_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 202: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ autoscalepools_list_members: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for an autoscale pool.
+ * @example 0d3db13e-a604-4944-9827-7ec2642d32ac
+ */
+ autoscale_pool_id: components["parameters"]["autoscale_pool_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_members"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ autoscalepools_list_history: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for an autoscale pool.
+ * @example 0d3db13e-a604-4944-9827-7ec2642d32ac
+ */
+ autoscale_pool_id: components["parameters"]["autoscale_pool_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["history_events"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ firewalls_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_firewalls_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ firewalls_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ /**
+ * @example {
+ * "name": "firewall",
+ * "inbound_rules": [
+ * {
+ * "protocol": "tcp",
+ * "ports": "80",
+ * "action": "allow",
+ * "sources": {
+ * "load_balancer_uids": [
+ * "4de7ac8b-495b-4884-9a69-1050c6793cd6"
+ * ]
+ * }
+ * },
+ * {
+ * "protocol": "tcp",
+ * "ports": "22",
+ * "action": "allow",
+ * "sources": {
+ * "tags": [
+ * "gateway"
+ * ],
+ * "addresses": [
+ * "18.0.0.0/8"
+ * ]
+ * }
+ * }
+ * ],
+ * "outbound_rules": [
+ * {
+ * "protocol": "tcp",
+ * "ports": "80",
+ * "action": "allow",
+ * "destinations": {
+ * "addresses": [
+ * "0.0.0.0/0",
+ * "::/0"
+ * ]
+ * }
+ * }
+ * ],
+ * "droplet_ids": [
+ * 8043964
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["firewall"] & unknown & (unknown | unknown);
+ };
+ };
+ responses: {
+ 202: components["responses"]["create_firewall_response"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ firewalls_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to identify and reference a firewall.
+ * @example bb4b2611-3d72-467b-8602-280330ecd65c
+ */
+ firewall_id: components["parameters"]["firewall_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["get_firewall_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ firewalls_update: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to identify and reference a firewall.
+ * @example bb4b2611-3d72-467b-8602-280330ecd65c
+ */
+ firewall_id: components["parameters"]["firewall_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ /**
+ * @example {
+ * "name": "frontend-firewall",
+ * "inbound_rules": [
+ * {
+ * "protocol": "tcp",
+ * "ports": "8080",
+ * "action": "allow",
+ * "sources": {
+ * "load_balancer_uids": [
+ * "4de7ac8b-495b-4884-9a69-1050c6793cd6"
+ * ]
+ * }
+ * },
+ * {
+ * "protocol": "tcp",
+ * "ports": "22",
+ * "action": "allow",
+ * "sources": {
+ * "tags": [
+ * "gateway"
+ * ],
+ * "addresses": [
+ * "18.0.0.0/8"
+ * ]
+ * }
+ * }
+ * ],
+ * "outbound_rules": [
+ * {
+ * "protocol": "tcp",
+ * "ports": "8080",
+ * "action": "allow",
+ * "destinations": {
+ * "addresses": [
+ * "0.0.0.0/0",
+ * "::/0"
+ * ]
+ * }
+ * }
+ * ],
+ * "droplet_ids": [
+ * 8043964
+ * ],
+ * "tags": [
+ * "frontend"
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["firewall"] & (unknown | unknown);
+ };
+ };
+ responses: {
+ 200: components["responses"]["put_firewall_response"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ firewalls_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to identify and reference a firewall.
+ * @example bb4b2611-3d72-467b-8602-280330ecd65c
+ */
+ firewall_id: components["parameters"]["firewall_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ firewalls_assign_droplets: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to identify and reference a firewall.
+ * @example bb4b2611-3d72-467b-8602-280330ecd65c
+ */
+ firewall_id: components["parameters"]["firewall_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ /**
+ * @example {
+ * "droplet_ids": [
+ * 49696269
+ * ]
+ * }
+ */
+ "application/json": {
+ /**
+ * @description An array containing the IDs of the Droplets to be assigned to the firewall.
+ * @example [
+ * 49696269
+ * ]
+ */
+ droplet_ids: number[];
+ };
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ firewalls_delete_droplets: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to identify and reference a firewall.
+ * @example bb4b2611-3d72-467b-8602-280330ecd65c
+ */
+ firewall_id: components["parameters"]["firewall_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ /**
+ * @example {
+ * "droplet_ids": [
+ * 49696269
+ * ]
+ * }
+ */
+ "application/json": {
+ /**
+ * @description An array containing the IDs of the Droplets to be removed from the firewall.
+ * @example [
+ * 49696269
+ * ]
+ */
+ droplet_ids: number[];
+ };
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ firewalls_add_tags: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to identify and reference a firewall.
+ * @example bb4b2611-3d72-467b-8602-280330ecd65c
+ */
+ firewall_id: components["parameters"]["firewall_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ /**
+ * @example {
+ * "tags": [
+ * "frontend"
+ * ]
+ * }
+ */
+ "application/json": {
+ tags: components["schemas"]["existing_tags_array"] & unknown;
+ };
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ firewalls_delete_tags: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to identify and reference a firewall.
+ * @example bb4b2611-3d72-467b-8602-280330ecd65c
+ */
+ firewall_id: components["parameters"]["firewall_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ /**
+ * @example {
+ * "tags": [
+ * "frontend"
+ * ]
+ * }
+ */
+ "application/json": {
+ tags: components["schemas"]["existing_tags_array"] & unknown;
+ };
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ firewalls_add_rules: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to identify and reference a firewall.
+ * @example bb4b2611-3d72-467b-8602-280330ecd65c
+ */
+ firewall_id: components["parameters"]["firewall_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ /**
+ * @example {
+ * "inbound_rules": [
+ * {
+ * "protocol": "tcp",
+ * "ports": "3306",
+ * "action": "allow",
+ * "sources": {
+ * "droplet_ids": [
+ * 49696269
+ * ]
+ * }
+ * }
+ * ],
+ * "outbound_rules": [
+ * {
+ * "protocol": "tcp",
+ * "ports": "3306",
+ * "action": "allow",
+ * "destinations": {
+ * "droplet_ids": [
+ * 49696269
+ * ]
+ * }
+ * }
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["firewall_rules"] & (unknown | unknown);
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ firewalls_delete_rules: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to identify and reference a firewall.
+ * @example bb4b2611-3d72-467b-8602-280330ecd65c
+ */
+ firewall_id: components["parameters"]["firewall_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ /**
+ * @example {
+ * "inbound_rules": [
+ * {
+ * "protocol": "tcp",
+ * "ports": "3306",
+ * "action": "allow",
+ * "sources": {
+ * "droplet_ids": [
+ * 49696269
+ * ]
+ * }
+ * }
+ * ],
+ * "outbound_rules": [
+ * {
+ * "protocol": "tcp",
+ * "ports": "3306",
+ * "action": "allow",
+ * "destinations": {
+ * "droplet_ids": [
+ * 49696269
+ * ]
+ * }
+ * }
+ * ]
+ * }
+ */
+ "application/json": components["schemas"]["firewall_rules"] & (unknown | unknown);
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ floatingIPs_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description Field to sort results by. Possible values are `created_at`, `updated_at`,
+ * `ip`, `id`, and `droplet_id`. Defaults to `id`. Any other value is treated
+ * as `id`.
+ *
+ * Sorting by `droplet_id` orders floating IPs by the Droplet they are
+ * assigned to. Unassigned floating IPs (`droplet` is null) sort as the
+ * lowest value, so they are returned first when `sort_direction` is `asc`
+ * and last when it is `desc`.
+ * @example droplet_id
+ */
+ sort?: components["parameters"]["sort"];
+ /**
+ * @description Direction to sort results. Possible values are `asc` and `desc`. Defaults to `asc`.
+ * @example asc
+ */
+ sort_direction?: components["parameters"]["parameters_sort_direction"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["floating_ip_list"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ floatingIPs_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["floating_ip_create"];
+ };
+ };
+ responses: {
+ 202: components["responses"]["floating_ip_created"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ floatingIPs_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A floating IP address.
+ * @example 45.55.96.47
+ */
+ floating_ip: components["parameters"]["floating_ip"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["floating_ip"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ floatingIPs_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A floating IP address.
+ * @example 45.55.96.47
+ */
+ floating_ip: components["parameters"]["floating_ip"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ floatingIPsAction_list: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A floating IP address.
+ * @example 45.55.96.47
+ */
+ floating_ip: components["parameters"]["floating_ip"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["floating_ip_actions"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ floatingIPsAction_post: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A floating IP address.
+ * @example 45.55.96.47
+ */
+ floating_ip: components["parameters"]["floating_ip"];
+ };
+ cookie?: never;
+ };
+ /**
+ * @description The `type` attribute set in the request body will specify the action that
+ * will be taken on the floating IP.
+ */
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["floating_ip_action_unassign"] | components["schemas"]["floating_ip_action_assign"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["floating_ip_action"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ floatingIPsAction_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A floating IP address.
+ * @example 45.55.96.47
+ */
+ floating_ip: components["parameters"]["floating_ip"];
+ /**
+ * @description A unique numeric ID that can be used to identify and reference an action.
+ * @example 36804636
+ */
+ action_id: components["parameters"]["action_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["floating_ip_action"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ functions_list_namespaces: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_namespaces"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ functions_create_namespace: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["create_namespace"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["namespace_created"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["namespace_bad_request"];
+ 422: components["responses"]["namespace_limit_reached"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ functions_get_namespace: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The ID of the namespace to be managed.
+ * @example fn-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+ */
+ namespace_id: components["parameters"]["namespace_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["namespace_created"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["namespace_not_allowed"];
+ 404: components["responses"]["namespace_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ functions_delete_namespace: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The ID of the namespace to be managed.
+ * @example fn-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+ */
+ namespace_id: components["parameters"]["namespace_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["namespace_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ functions_list_triggers: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The ID of the namespace to be managed.
+ * @example fn-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+ */
+ namespace_id: components["parameters"]["namespace_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_triggers"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["namespace_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ functions_create_trigger: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The ID of the namespace to be managed.
+ * @example fn-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+ */
+ namespace_id: components["parameters"]["namespace_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["create_trigger"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["trigger_response"];
+ 400: components["responses"]["trigger_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["namespace_not_found"];
+ 422: components["responses"]["trigger_limit_reached"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ functions_get_trigger: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The ID of the namespace to be managed.
+ * @example fn-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+ */
+ namespace_id: components["parameters"]["namespace_id"];
+ /**
+ * @description The name of the trigger to be managed.
+ * @example my trigger
+ */
+ trigger_name: components["parameters"]["trigger_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["trigger_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["trigger_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ functions_update_trigger: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The ID of the namespace to be managed.
+ * @example fn-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+ */
+ namespace_id: components["parameters"]["namespace_id"];
+ /**
+ * @description The name of the trigger to be managed.
+ * @example my trigger
+ */
+ trigger_name: components["parameters"]["trigger_name"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["update_trigger"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["trigger_response"];
+ 400: components["responses"]["trigger_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["trigger_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ functions_delete_trigger: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The ID of the namespace to be managed.
+ * @example fn-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+ */
+ namespace_id: components["parameters"]["namespace_id"];
+ /**
+ * @description The name of the trigger to be managed.
+ * @example my trigger
+ */
+ trigger_name: components["parameters"]["trigger_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["trigger_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ functionsAccessKey_list: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The ID of the namespace to be managed.
+ * @example fn-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+ */
+ namespace_id: components["parameters"]["namespace_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["access_key_list"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["namespace_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ functionsAccessKey_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The ID of the namespace to be managed.
+ * @example fn-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+ */
+ namespace_id: components["parameters"]["namespace_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["access_key_create_request"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["access_key_create"];
+ 400: components["responses"]["namespace_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["namespace_not_found"];
+ 409: components["responses"]["conflict"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ functionsAccessKey_update: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The ID of the namespace to be managed.
+ * @example fn-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+ */
+ namespace_id: components["parameters"]["namespace_id"];
+ /**
+ * @description The ID of the access key to be managed.
+ * @example dof-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+ */
+ key_id: components["parameters"]["key_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": {
+ /**
+ * @description The new name for the access key.
+ * @example updated-key-name
+ */
+ name: string;
+ };
+ };
+ };
+ responses: {
+ 200: components["responses"]["access_key_update"];
+ 400: components["responses"]["namespace_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["namespace_not_found"];
+ 409: components["responses"]["conflict"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ functionsAccessKey_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The ID of the namespace to be managed.
+ * @example fn-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+ */
+ namespace_id: components["parameters"]["namespace_id"];
+ /**
+ * @description The ID of the access key to be managed.
+ * @example dof-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+ */
+ key_id: components["parameters"]["key_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success. The access key was deleted. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /** @example {} */
+ "application/json": Record;
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["namespace_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ images_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Filters results based on image type which can be either `application` or `distribution`.
+ * @example distribution
+ */
+ type?: components["parameters"]["type"];
+ /**
+ * @description Used to filter only user images.
+ * @example true
+ */
+ private?: components["parameters"]["private"];
+ /**
+ * @description Used to filter images by a specific tag.
+ * @example base-image
+ */
+ tag_name?: components["parameters"]["tag"];
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_images"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ images_create_custom: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["image_new_custom"];
+ };
+ };
+ responses: {
+ 202: components["responses"]["new_custom_image"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ images_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique number (id) or string (slug) used to identify and reference a
+ * specific image.
+ *
+ * **Public** images can be identified by image `id` or `slug`.
+ *
+ * **Private** images *must* be identified by image `id`.
+ */
+ image_id: number | string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["existing_image"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ images_update: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique number that can be used to identify and reference a specific image.
+ * @example 62137902
+ */
+ image_id: components["parameters"]["image_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["image_update"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["updated_image"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ images_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique number that can be used to identify and reference a specific image.
+ * @example 62137902
+ */
+ image_id: components["parameters"]["image_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ images_post_account_transfer_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique number that can be used to identify and reference a specific image.
+ * @example 62137902
+ */
+ image_id: components["parameters"]["image_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["images_post_account_transfer_create"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["images_post_account_transfer_created"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ images_post_account_transfer_accept: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique number that can be used to identify and reference a specific image.
+ * @example 62137902
+ */
+ image_id: components["parameters"]["image_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["images_post_account_transfer_accept"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["no_content"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ images_post_account_transfer_cancel: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique number that can be used to identify and reference a specific image.
+ * @example 62137902
+ */
+ image_id: components["parameters"]["image_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["images_post_account_transfer_cancel"];
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ images_post_account_transfer_decline: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique number that can be used to identify and reference a specific image.
+ * @example 62137902
+ */
+ image_id: components["parameters"]["image_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["images_post_account_transfer_decline"];
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ imageActions_list: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique number that can be used to identify and reference a specific image.
+ * @example 62137902
+ */
+ image_id: components["parameters"]["image_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["get_image_actions_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ imageActions_post: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique number that can be used to identify and reference a specific image.
+ * @example 62137902
+ */
+ image_id: components["parameters"]["image_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["image_action_base"] | components["schemas"]["image_action_transfer"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["post_image_action_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ imageActions_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique number that can be used to identify and reference a specific image.
+ * @example 62137902
+ */
+ image_id: components["parameters"]["image_id"];
+ /**
+ * @description A unique numeric ID that can be used to identify and reference an action.
+ * @example 36804636
+ */
+ action_id: components["parameters"]["action_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["get_image_action_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_list_alertInstances: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description Optional filter. When set, only alert instances with this status are
+ * returned.
+ * @example active
+ */
+ status?: components["parameters"]["alert_instance_status"];
+ /**
+ * @description Optional filter. When set, only alert instances fired by the alert rule
+ * with this ID are returned.
+ * @example 8f3a2b1c-4d5e-6f7a-8b9c-0d1e2f3a4b5c
+ */
+ rule_id?: components["parameters"]["rule_id"];
+ /**
+ * @description Optional filter. When set, only resources associated with this resource URN
+ * are returned.
+ * @example do:droplet:12345
+ */
+ resource_urn?: components["parameters"]["resource_urn"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_alert_instances_response"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_get_alertInstance: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for an alert instance.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ id: components["parameters"]["alert_instance_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["alert_instance_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_list_alertRules: {
+ parameters: {
+ query?: {
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Optional filter. When set, only resources associated with this resource URN
+ * are returned.
+ * @example do:droplet:12345
+ */
+ resource_urn?: components["parameters"]["resource_urn"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_alert_rules_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_create_alertRule: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "spec": {
+ * "name": "High CPU",
+ * "query": {
+ * "metric": "do.droplets.cpu_utilization",
+ * "resource_urns": [
+ * "do:droplet:12345"
+ * ],
+ * "tags": [
+ * "env:prod"
+ * ]
+ * },
+ * "condition": {
+ * "window": "EVALUATION_WINDOW_5M"
+ * },
+ * "thresholds": {
+ * "warning": 80,
+ * "critical": 95,
+ * "operator": "THRESHOLD_OPERATOR_GREATER_THAN"
+ * },
+ * "notification_channels": [
+ * {
+ * "notification_channel_id": "550e8400-e29b-41d4-a716-446655440000",
+ * "notify_on": [
+ * "SEVERITY_CRITICAL"
+ * ]
+ * }
+ * ],
+ * "re_alert_duration": "RE_ALERT_DURATION_4H"
+ * }
+ * }
+ */
+ "application/json": components["schemas"]["alert_rule_create_request"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["alert_rule_response"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 422: components["responses"]["unprocessable_entity"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_get_alertRule: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for an alert rule.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ id: components["parameters"]["alert_rule_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["alert_rule_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_update_alertRule: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for an alert rule.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ id: components["parameters"]["alert_rule_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "spec": {
+ * "name": "High CPU (renamed)",
+ * "query": {
+ * "metric": "do.droplets.cpu_utilization",
+ * "resource_urns": [
+ * "do:droplet:12345",
+ * "do:droplet:67890"
+ * ]
+ * },
+ * "condition": {
+ * "window": "EVALUATION_WINDOW_15M"
+ * },
+ * "thresholds": {
+ * "critical": 90,
+ * "operator": "THRESHOLD_OPERATOR_GREATER_THAN_OR_EQUAL"
+ * },
+ * "notification_channels": [
+ * {
+ * "notification_channel_id": "550e8400-e29b-41d4-a716-446655440000"
+ * }
+ * ]
+ * },
+ * "status": "ALERT_RULE_STATUS_PAUSED"
+ * }
+ */
+ "application/json": components["schemas"]["alert_rule_request"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["alert_rule_response"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 422: components["responses"]["unprocessable_entity"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_delete_alertRule: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for an alert rule.
+ * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890
+ */
+ id: components["parameters"]["alert_rule_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_list_dashboards: {
+ parameters: {
+ query?: {
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ "pagination.page"?: components["parameters"]["dashboards_page"];
+ /**
+ * @description Number of items returned per page. Values above `200` are rejected with `400`.
+ * @example 20
+ */
+ "pagination.per_page"?: components["parameters"]["dashboards_per_page"];
+ /**
+ * @description Field to sort by. Matched case-insensitively. When omitted, results are ordered by `created_at` descending. Any other value is rejected with `400`.
+ * @example updated_at
+ */
+ "pagination.sort"?: components["parameters"]["dashboards_sort"];
+ /**
+ * @description Sort direction. Only applied when `pagination.sort` is set, in which case it defaults to `asc`. When `pagination.sort` is omitted, results are ordered by `created_at` descending regardless of this parameter.
+ * @example desc
+ */
+ "pagination.sort_direction"?: components["parameters"]["dashboards_sort_direction"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_dashboards_response"];
+ 400: components["responses"]["dashboard_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["dashboard_too_many_requests"];
+ 500: components["responses"]["dashboard_server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_create_dashboard: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "spec": "{\"kind\":\"Dashboard\",\"apiVersion\":\"perses.dev/v1alpha1\",\"spec\":{\"display\":{\"name\":\"Droplet CPU\",\"description\":\"CPU utilization across production Droplets.\"},\"duration\":\"1h\",\"variables\":[],\"layouts\":[{\"kind\":\"Grid\",\"spec\":{\"items\":[{\"x\":0,\"y\":0,\"width\":12,\"height\":6,\"content\":{\"$ref\":\"#/spec/panels/cpu\"}}]}}],\"panels\":{\"cpu\":{\"kind\":\"Panel\",\"spec\":{\"display\":{\"name\":\"CPU utilization\"},\"plugin\":{\"kind\":\"TimeSeriesChart\",\"spec\":{}},\"queries\":[{\"kind\":\"TimeSeriesQuery\",\"spec\":{\"plugin\":{\"kind\":\"MetricsTimeSeriesQuery\",\"spec\":{\"metricName\":\"do.droplets.cpu_utilization\",\"kind\":\"gauge\",\"filters\":[],\"groupBy\":[]}}}}]}}}}}"
+ * }
+ */
+ "application/json": components["schemas"]["dashboard_request"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["dashboard_response"];
+ 400: components["responses"]["dashboard_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 409: components["responses"]["dashboard_conflict"];
+ 429: components["responses"]["dashboard_too_many_requests"];
+ 500: components["responses"]["dashboard_server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_get_dashboardSchema: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["dashboard_schema_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["dashboard_too_many_requests"];
+ 500: components["responses"]["dashboard_server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_get_dashboard: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier of the dashboard. Unknown, deleted, or malformed identifiers return `404`.
+ * @example 7c9e6679-7425-40de-944b-e07fc1f90ae7
+ */
+ uuid: components["parameters"]["dashboard_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["dashboard_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["dashboard_not_found"];
+ 429: components["responses"]["dashboard_too_many_requests"];
+ 500: components["responses"]["dashboard_server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_update_dashboard: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier of the dashboard. Unknown, deleted, or malformed identifiers return `404`.
+ * @example 7c9e6679-7425-40de-944b-e07fc1f90ae7
+ */
+ uuid: components["parameters"]["dashboard_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "spec": "{\"kind\":\"Dashboard\",\"apiVersion\":\"perses.dev/v1alpha1\",\"spec\":{\"display\":{\"name\":\"Droplet CPU (production)\",\"description\":\"CPU utilization across production Droplets.\"},\"duration\":\"6h\",\"variables\":[],\"layouts\":[{\"kind\":\"Grid\",\"spec\":{\"items\":[{\"x\":0,\"y\":0,\"width\":12,\"height\":6,\"content\":{\"$ref\":\"#/spec/panels/cpu\"}}]}}],\"panels\":{\"cpu\":{\"kind\":\"Panel\",\"spec\":{\"display\":{\"name\":\"CPU utilization\"},\"plugin\":{\"kind\":\"TimeSeriesChart\",\"spec\":{}},\"queries\":[{\"kind\":\"TimeSeriesQuery\",\"spec\":{\"plugin\":{\"kind\":\"MetricsTimeSeriesQuery\",\"spec\":{\"metricName\":\"do.droplets.cpu_utilization\",\"kind\":\"gauge\",\"filters\":[],\"groupBy\":[]}}}}]}}}}}"
+ * }
+ */
+ "application/json": components["schemas"]["dashboard_request"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["dashboard_response"];
+ 400: components["responses"]["dashboard_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["dashboard_not_found"];
+ 409: components["responses"]["dashboard_conflict"];
+ 429: components["responses"]["dashboard_too_many_requests"];
+ 500: components["responses"]["dashboard_server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_delete_dashboard: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier of the dashboard. Unknown, deleted, or malformed identifiers return `404`.
+ * @example 7c9e6679-7425-40de-944b-e07fc1f90ae7
+ */
+ uuid: components["parameters"]["dashboard_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["dashboard_deleted_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["dashboard_not_found"];
+ 429: components["responses"]["dashboard_too_many_requests"];
+ 500: components["responses"]["dashboard_server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_list_notificationChannels: {
+ parameters: {
+ query?: {
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_notification_channels_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_create_notificationChannel: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["notification_channel_request"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["notification_channel_response"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_get_notificationChannel: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a notification channel.
+ * @example 550e8400-e29b-41d4-a716-446655440000
+ */
+ id: components["parameters"]["notification_channel_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["notification_channel_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_update_notificationChannel: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a notification channel.
+ * @example 550e8400-e29b-41d4-a716-446655440000
+ */
+ id: components["parameters"]["notification_channel_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["notification_channel_request"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["notification_channel_response"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_delete_notificationChannel: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a notification channel.
+ * @example 550e8400-e29b-41d4-a716-446655440000
+ */
+ id: components["parameters"]["notification_channel_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 409: components["responses"]["conflict"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_get_promQuery: {
+ parameters: {
+ query: {
+ /**
+ * @description A PromQL expression. This may be a metric selector (for example `do.droplets.cpu_time`) or a fuller expression (for example `rate(do.droplets.cpu_time[5m])`).
+ * @example do.droplets.cpu_time
+ */
+ query: components["parameters"]["query"];
+ /**
+ * @description Evaluation timestamp for an instant query. Accepts a RFC3339 string or a UNIX timestamp. Defaults to now when omitted.
+ * @example 1620683817
+ */
+ time?: components["parameters"]["time"];
+ /**
+ * @description Optional evaluation timeout as a Prometheus duration string.
+ * @example 30s
+ */
+ timeout?: components["parameters"]["timeout"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The datacenter region slug for the query.
+ * @example nyc3
+ */
+ region: components["parameters"]["parameters_region"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["prom_query"];
+ 400: components["responses"]["prom_error"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 422: components["responses"]["prom_error"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["prom_error"];
+ 503: components["responses"]["prom_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_post_promQuery: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The datacenter region slug for the query.
+ * @example nyc3
+ */
+ region: components["parameters"]["parameters_region"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/x-www-form-urlencoded": {
+ /**
+ * @description A PromQL expression to evaluate.
+ * @example do.droplets.cpu_time
+ */
+ query: string;
+ /**
+ * @description Evaluation timestamp. RFC3339 or UNIX timestamp.
+ * @example 1620683817
+ */
+ time?: string;
+ /**
+ * @description Optional evaluation timeout duration.
+ * @example 30s
+ */
+ timeout?: string;
+ };
+ };
+ };
+ responses: {
+ 200: components["responses"]["prom_query"];
+ 400: components["responses"]["prom_error"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 422: components["responses"]["prom_error"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["prom_error"];
+ 503: components["responses"]["prom_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_get_promQueryRange: {
+ parameters: {
+ query: {
+ /**
+ * @description A PromQL expression. This may be a metric selector (for example `do.droplets.cpu_time`) or a fuller expression (for example `rate(do.droplets.cpu_time[5m])`).
+ * @example do.droplets.cpu_time
+ */
+ query: components["parameters"]["query"];
+ /**
+ * @description Start timestamp (inclusive). Accepts a RFC3339 string or a UNIX timestamp.
+ * @example 1620683817
+ */
+ start: components["parameters"]["start"];
+ /**
+ * @description End timestamp (inclusive). Accepts a RFC3339 string or a UNIX timestamp.
+ * @example 1620705417
+ */
+ end: components["parameters"]["end"];
+ /**
+ * @description Query resolution step width as a Prometheus duration string (for example `15s`, `1m`, `1h`).
+ * @example 15s
+ */
+ step: components["parameters"]["step"];
+ /**
+ * @description Optional evaluation timeout as a Prometheus duration string.
+ * @example 30s
+ */
+ timeout?: components["parameters"]["timeout"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The datacenter region slug for the query.
+ * @example nyc3
+ */
+ region: components["parameters"]["parameters_region"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["prom_query_range"];
+ 400: components["responses"]["prom_error"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 422: components["responses"]["prom_error"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["prom_error"];
+ 503: components["responses"]["prom_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_post_promQueryRange: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The datacenter region slug for the query.
+ * @example nyc3
+ */
+ region: components["parameters"]["parameters_region"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/x-www-form-urlencoded": {
+ /**
+ * @description A PromQL expression to evaluate.
+ * @example do.droplets.cpu_time
+ */
+ query: string;
+ /**
+ * @description Start timestamp. RFC3339 or UNIX timestamp.
+ * @example 1620683817
+ */
+ start: string;
+ /**
+ * @description End timestamp. RFC3339 or UNIX timestamp.
+ * @example 1620705417
+ */
+ end: string;
+ /**
+ * @description Query resolution step width.
+ * @example 15s
+ */
+ step: string;
+ /**
+ * @description Optional evaluation timeout duration.
+ * @example 30s
+ */
+ timeout?: string;
+ };
+ };
+ };
+ responses: {
+ 200: components["responses"]["prom_query_range"];
+ 400: components["responses"]["prom_error"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 422: components["responses"]["prom_error"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["prom_error"];
+ 503: components["responses"]["prom_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_get_promLabels: {
+ parameters: {
+ query?: {
+ /**
+ * @description Optional start timestamp (inclusive). Accepts a RFC3339 string or a UNIX timestamp.
+ * @example 1620683817
+ */
+ start?: components["parameters"]["start_optional"];
+ /**
+ * @description Optional end timestamp (inclusive). Accepts a RFC3339 string or a UNIX timestamp.
+ * @example 1620705417
+ */
+ end?: components["parameters"]["end_optional"];
+ /**
+ * @description One or more series selectors. Repeat the parameter for multiple matchers.
+ * @example [
+ * "{__name__=~\".+\"}"
+ * ]
+ */
+ "match[]"?: components["parameters"]["match"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The datacenter region slug for the query.
+ * @example nyc3
+ */
+ region: components["parameters"]["parameters_region"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["prom_labels"];
+ 400: components["responses"]["prom_error"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 422: components["responses"]["prom_error"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["prom_error"];
+ 503: components["responses"]["prom_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_post_promLabels: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The datacenter region slug for the query.
+ * @example nyc3
+ */
+ region: components["parameters"]["parameters_region"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/x-www-form-urlencoded": {
+ /**
+ * @description Optional start timestamp.
+ * @example 1620683817
+ */
+ start?: string;
+ /**
+ * @description Optional end timestamp.
+ * @example 1620705417
+ */
+ end?: string;
+ /** @description Optional series selectors. */
+ "match[]"?: string[];
+ };
+ };
+ };
+ responses: {
+ 200: components["responses"]["prom_labels"];
+ 400: components["responses"]["prom_error"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 422: components["responses"]["prom_error"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["prom_error"];
+ 503: components["responses"]["prom_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_get_promLabelValues: {
+ parameters: {
+ query?: {
+ /**
+ * @description Optional start timestamp (inclusive). Accepts a RFC3339 string or a UNIX timestamp.
+ * @example 1620683817
+ */
+ start?: components["parameters"]["start_optional"];
+ /**
+ * @description Optional end timestamp (inclusive). Accepts a RFC3339 string or a UNIX timestamp.
+ * @example 1620705417
+ */
+ end?: components["parameters"]["end_optional"];
+ /**
+ * @description One or more series selectors. Repeat the parameter for multiple matchers.
+ * @example [
+ * "{__name__=~\".+\"}"
+ * ]
+ */
+ "match[]"?: components["parameters"]["match"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The datacenter region slug for the query.
+ * @example nyc3
+ */
+ region: components["parameters"]["parameters_region"];
+ /**
+ * @description The label name whose values should be listed.
+ * @example __name__
+ */
+ name: components["parameters"]["label_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["prom_label_values"];
+ 400: components["responses"]["prom_error"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 422: components["responses"]["prom_error"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["prom_error"];
+ 503: components["responses"]["prom_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_get_promSeries: {
+ parameters: {
+ query: {
+ /**
+ * @description One or more series selectors. At least one matcher is required. Repeat the parameter for multiple matchers.
+ * @example [
+ * "{__name__=\"do.droplets.cpu_time\"}"
+ * ]
+ */
+ "match[]": components["parameters"]["match_required"];
+ /**
+ * @description Optional start timestamp (inclusive). Accepts a RFC3339 string or a UNIX timestamp.
+ * @example 1620683817
+ */
+ start?: components["parameters"]["start_optional"];
+ /**
+ * @description Optional end timestamp (inclusive). Accepts a RFC3339 string or a UNIX timestamp.
+ * @example 1620705417
+ */
+ end?: components["parameters"]["end_optional"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The datacenter region slug for the query.
+ * @example nyc3
+ */
+ region: components["parameters"]["parameters_region"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["prom_series"];
+ 400: components["responses"]["prom_error"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 422: components["responses"]["prom_error"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["prom_error"];
+ 503: components["responses"]["prom_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_post_promSeries: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The datacenter region slug for the query.
+ * @example nyc3
+ */
+ region: components["parameters"]["parameters_region"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/x-www-form-urlencoded": {
+ /** @description One or more series selectors. */
+ "match[]": string[];
+ /**
+ * @description Optional start timestamp.
+ * @example 1620683817
+ */
+ start?: string;
+ /**
+ * @description Optional end timestamp.
+ * @example 1620705417
+ */
+ end?: string;
+ };
+ };
+ };
+ responses: {
+ 200: components["responses"]["prom_series"];
+ 400: components["responses"]["prom_error"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 422: components["responses"]["prom_error"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["prom_error"];
+ 503: components["responses"]["prom_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_post_logsSearch: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The datacenter region slug for the query.
+ * @example nyc3
+ */
+ region: components["parameters"]["parameters_region"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["logs_search_request"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["logs_search"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_post_tracesSearch: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The datacenter region slug for the query.
+ * @example nyc3
+ */
+ region: components["parameters"]["parameters_region"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["traces_search_request"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["traces_search"];
+ 400: components["responses"]["traces_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["traces_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ 502: components["responses"]["traces_bad_gateway"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_get_trace: {
+ parameters: {
+ query?: {
+ /**
+ * @description Start of the trace lookup window. Accepts a relative time (`now`, a bare duration such as `24h` to look back from now, or `now-2h`) or an absolute time (RFC3339, or a Unix epoch integer in seconds, milliseconds, microseconds, or nanoseconds). Defaults to 7 days before now.
+ * @example 24h
+ */
+ from?: components["parameters"]["trace_from"];
+ /**
+ * @description End of the trace lookup window, in the same formats as `from`. Defaults to now.
+ * @example now
+ */
+ to?: components["parameters"]["trace_to"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The datacenter region slug for the query.
+ * @example nyc3
+ */
+ region: components["parameters"]["parameters_region"];
+ /**
+ * @description The OpenTelemetry trace ID to retrieve, as 32 lowercase hexadecimal characters. IDs are matched exactly; an ID with no spans in the lookup window returns `404`. Malformed or uppercase IDs are not rejected with `400`; they also return `404`.
+ * @example 7b0b4e56abab38362b24e5498eb9ec64
+ */
+ trace_id: components["parameters"]["trace_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["trace"];
+ 400: components["responses"]["traces_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["traces_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ 502: components["responses"]["traces_bad_gateway"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_post_spansSearch: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The datacenter region slug for the query.
+ * @example nyc3
+ */
+ region: components["parameters"]["parameters_region"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["spans_search_request"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["spans_search"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_list_resources: {
+ parameters: {
+ query?: {
+ /**
+ * @description Optional filter. When set, only resources of these product types are returned. Repeat the parameter for multiple product types.
+ * @example [
+ * "droplet"
+ * ]
+ */
+ "filter.product_types"?: components["parameters"]["resources_product_types"];
+ /**
+ * @description Optional filter. When set, only resources in these regions are returned. Repeat the parameter for multiple regions.
+ * @example [
+ * "nyc3"
+ * ]
+ */
+ "filter.regions"?: components["parameters"]["resources_regions"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ "pagination.page"?: components["parameters"]["resources_page"];
+ /**
+ * @description Number of items returned per page.
+ * @example 20
+ */
+ "pagination.per_page"?: components["parameters"]["resources_per_page"];
+ /**
+ * @description Field to sort by. Defaults to `resource_urn`.
+ * @example effective_at
+ */
+ "pagination.sort"?: components["parameters"]["resources_sort"];
+ /**
+ * @description Sort direction. Defaults to `asc`.
+ * @example desc
+ */
+ "pagination.sort_direction"?: components["parameters"]["resources_sort_direction"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_resources"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_get_resource: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The uniform resource name (URN) of the resource, for example `do:droplet:12345`.
+ * @example do:droplet:12345
+ */
+ resource_urn: components["parameters"]["resource_urn_path"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["resource"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ insights_update_resourceSignals: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The uniform resource name (URN) of the resource, for example `do:droplet:12345`.
+ * @example do:droplet:12345
+ */
+ resource_urn: components["parameters"]["resource_urn_path"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "region": "nyc3",
+ * "metrics": true,
+ * "logs": true
+ * }
+ */
+ "application/json": components["schemas"]["resource_signals_update_request"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["resource"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ signals_list_consents: {
+ parameters: {
+ query?: {
+ /**
+ * @description Filter consent records by source. `agent` returns per-environment records (Harness Runtime); `inference` returns the team-level record for Serverless Inference chat completions. When omitted, records for all sources are returned.
+ * @example inference
+ */
+ source?: components["parameters"]["source"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_consents_response"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ signals_update_team_consent: {
+ parameters: {
+ query: {
+ /**
+ * @description The consent source to update. Only team-level sources are accepted on this endpoint; currently `inference` (Serverless Inference chat completions). Per-environment consent (`agent`) is managed with `PUT /v1/consent/{environment_id}` instead.
+ * @example inference
+ */
+ source: components["parameters"]["source_required"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "enabled": true
+ * }
+ */
+ "application/json": {
+ /** @description Whether to enable signals collection for this source. */
+ enabled: boolean;
+ };
+ };
+ };
+ responses: {
+ 200: components["responses"]["update_team_consent_response"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ signals_get_consent: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for an environment. For Harness Runtime, this is the Environment Config ID. Formerly named agent_id.
+ * @example 019fb3d2-8a56-72cc-8bf9-9d21510b2a99
+ */
+ environment_id: components["parameters"]["environment_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["agent_consent_response"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ signals_update_consent: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for an environment. For Harness Runtime, this is the Environment Config ID. Formerly named agent_id.
+ * @example 019fb3d2-8a56-72cc-8bf9-9d21510b2a99
+ */
+ environment_id: components["parameters"]["environment_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "enabled": true
+ * }
+ */
+ "application/json": {
+ /** @description Whether to enable signals collection for this environment. */
+ enabled: boolean;
+ };
+ };
+ };
+ responses: {
+ 200: components["responses"]["update_consent_response"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ signals_list_agent_sessions: {
+ parameters: {
+ query?: {
+ /**
+ * @description Maximum number of items to return per page.
+ * @example 20
+ */
+ limit?: components["parameters"]["limit"];
+ /**
+ * @description An opaque cursor string returned from a previous page. Pass this value to retrieve the next page of results.
+ * @example eyJ0ZWFtX2lkIjozOTQ0OTk0Nn0=
+ */
+ after?: components["parameters"]["after"];
+ /**
+ * @description Filter results to those occurring at or after this timestamp (RFC 3339).
+ * @example 2026-09-01T00:00:00Z
+ */
+ start_time?: components["parameters"]["start_time"];
+ /**
+ * @description Filter results to those occurring at or before this timestamp (RFC 3339).
+ * @example 2026-10-01T00:00:00Z
+ */
+ end_time?: components["parameters"]["end_time"];
+ /**
+ * @description Filter results by signal type. Use the export options endpoint to list available signal types.
+ * @example DisengagementEscalation
+ */
+ signal_type?: components["parameters"]["signal_type"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for an environment. For Harness Runtime, this is the Environment Config ID. Formerly named agent_id.
+ * @example 019fb3d2-8a56-72cc-8bf9-9d21510b2a99
+ */
+ environment_id: components["parameters"]["environment_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_sessions_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ signals_list_session_dialogues: {
+ parameters: {
+ query?: {
+ /**
+ * @description Maximum number of items to return per page.
+ * @example 20
+ */
+ limit?: components["parameters"]["limit"];
+ /**
+ * @description An opaque cursor string returned from a previous page. Pass this value to retrieve the next page of results.
+ * @example eyJ0ZWFtX2lkIjozOTQ0OTk0Nn0=
+ */
+ after?: components["parameters"]["after"];
+ /**
+ * @description Filter results to those occurring at or after this timestamp (RFC 3339).
+ * @example 2026-09-01T00:00:00Z
+ */
+ start_time?: components["parameters"]["start_time"];
+ /**
+ * @description Filter results to those occurring at or before this timestamp (RFC 3339).
+ * @example 2026-10-01T00:00:00Z
+ */
+ end_time?: components["parameters"]["end_time"];
+ /**
+ * @description Filter results by signal type. Use the export options endpoint to list available signal types.
+ * @example DisengagementEscalation
+ */
+ signal_type?: components["parameters"]["signal_type"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a signals session.
+ * @example 01a0f3d5-d5f1-798a-9352-2cd8f8b81e78
+ */
+ session_id: components["parameters"]["parameters_session_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_dialogues_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ signals_list_exports: {
+ parameters: {
+ query?: {
+ /**
+ * @description Optional filter by environment ID.
+ * @example 019fb3d2-8a56-72cc-8bf9-9d21510b2a99
+ */
+ environment_id?: components["parameters"]["environment_id_query"];
+ /**
+ * @deprecated
+ * @description Deprecated alias for environment_id. Accepted for backward compatibility; must equal environment_id when both are set. Both set and different returns 400.
+ * @example 019fb3d2-8a56-72cc-8bf9-9d21510b2a99
+ */
+ agent_id?: components["parameters"]["agent_id"];
+ /**
+ * @description Maximum number of items to return per page.
+ * @example 20
+ */
+ limit?: components["parameters"]["limit"];
+ /**
+ * @description An opaque cursor string returned from a previous page. Pass this value to retrieve the next page of results.
+ * @example eyJ0ZWFtX2lkIjozOTQ0OTk0Nn0=
+ */
+ after?: components["parameters"]["after"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_exports_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ signals_create_export: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["create_export_request"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["export_job_response"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 422: components["responses"]["unprocessable_entity"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ signals_get_export_options: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["export_options_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ signals_get_export: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for an export job.
+ * @example 9f13c09c-c877-436b-9863-dcc39c9dd737
+ */
+ export_id: components["parameters"]["export_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["export_job_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ signals_get_export_download: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for an export job.
+ * @example 9f13c09c-c877-436b-9863-dcc39c9dd737
+ */
+ export_id: components["parameters"]["export_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["export_download_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ signals_list_deletions: {
+ parameters: {
+ query?: {
+ /**
+ * @description Maximum number of items to return per page.
+ * @example 20
+ */
+ limit?: components["parameters"]["limit"];
+ /**
+ * @description An opaque cursor string returned from a previous page. Pass this value to retrieve the next page of results.
+ * @example eyJ0ZWFtX2lkIjozOTQ0OTk0Nn0=
+ */
+ after?: components["parameters"]["after"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_deletions_response"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ signals_create_deletion: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["create_deletion_request"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["deletion_job_response"];
+ 202: components["responses"]["deletion_job_accepted_response"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ signals_get_deletion: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a data deletion job.
+ * @example 01J9ZX0N5Q7M2K3R4S5T6V7W8X
+ */
+ deletion_id: components["parameters"]["deletion_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["deletion_job_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_list_clusters: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_clusters"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_create_cluster: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["cluster"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["cluster_create"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_get_cluster: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ cluster_id: components["parameters"]["kubernetes_cluster_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["existing_cluster"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_update_cluster: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ cluster_id: components["parameters"]["kubernetes_cluster_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["cluster_update"];
+ };
+ };
+ responses: {
+ 202: components["responses"]["updated_cluster"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_delete_cluster: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ cluster_id: components["parameters"]["kubernetes_cluster_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_list_associatedResources: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ cluster_id: components["parameters"]["kubernetes_cluster_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["associated_kubernetes_resources_list"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_destroy_associatedResourcesSelective: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ cluster_id: components["parameters"]["kubernetes_cluster_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["destroy_associated_kubernetes_resources"];
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_destroy_associatedResourcesDangerous: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ cluster_id: components["parameters"]["kubernetes_cluster_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_get_kubeconfig: {
+ parameters: {
+ query?: {
+ /**
+ * @description The duration in seconds that the returned Kubernetes credentials will be valid. If not set or 0, the credentials will have a 7 day expiry.
+ * @example 300
+ */
+ expiry_seconds?: components["parameters"]["kubernetes_expiry_seconds"];
+ /**
+ * @description The type of credentials to return in the kubeconfig. When omitted, the
+ * default credential type for the cluster is used: `sso` for clusters with SSO enabled, `token` for clusters without SSO enabled.
+ * @example sso
+ */
+ type?: components["parameters"]["kubernetes_credentials_type"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ cluster_id: components["parameters"]["kubernetes_cluster_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["kubeconfig"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_get_credentials: {
+ parameters: {
+ query?: {
+ /**
+ * @description The duration in seconds that the returned Kubernetes credentials will be valid. If not set or 0, the credentials will have a 7 day expiry.
+ * @example 300
+ */
+ expiry_seconds?: components["parameters"]["kubernetes_expiry_seconds"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ cluster_id: components["parameters"]["kubernetes_cluster_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["credentials"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_get_availableUpgrades: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ cluster_id: components["parameters"]["kubernetes_cluster_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["available_upgrades"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_upgrade_cluster: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ cluster_id: components["parameters"]["kubernetes_cluster_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": {
+ /**
+ * @description The slug identifier for the version of Kubernetes that the cluster will be upgraded to.
+ * @example 1.16.13-do.0
+ */
+ version?: string;
+ };
+ };
+ };
+ responses: {
+ 202: components["responses"]["accepted"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_list_nodePools: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ cluster_id: components["parameters"]["kubernetes_cluster_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_node_pools"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_add_nodePool: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ cluster_id: components["parameters"]["kubernetes_cluster_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "size": "s-1vcpu-2gb",
+ * "count": 3,
+ * "name": "new-pool",
+ * "tags": [
+ * "frontend"
+ * ],
+ * "auto_scale": true,
+ * "min_nodes": 3,
+ * "max_nodes": 6
+ * }
+ */
+ "application/json": components["schemas"]["kubernetes_node_pool"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["node_pool_create"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_get_nodePool: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ cluster_id: components["parameters"]["kubernetes_cluster_id"];
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes node pool.
+ * @example cdda885e-7663-40c8-bc74-3a036c66545d
+ */
+ node_pool_id: components["parameters"]["kubernetes_node_pool_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["existing_node_pool"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_update_nodePool: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ cluster_id: components["parameters"]["kubernetes_cluster_id"];
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes node pool.
+ * @example cdda885e-7663-40c8-bc74-3a036c66545d
+ */
+ node_pool_id: components["parameters"]["kubernetes_node_pool_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["kubernetes_node_pool_update"];
+ };
+ };
+ responses: {
+ 202: components["responses"]["node_pool_update"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_delete_nodePool: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ cluster_id: components["parameters"]["kubernetes_cluster_id"];
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes node pool.
+ * @example cdda885e-7663-40c8-bc74-3a036c66545d
+ */
+ node_pool_id: components["parameters"]["kubernetes_node_pool_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_delete_node: {
+ parameters: {
+ query?: {
+ /**
+ * @description Specifies whether or not to drain workloads from a node before it is deleted. Setting it to `1` causes node draining to be skipped. Omitting the query parameter or setting its value to `0` carries out draining prior to deletion.
+ * @example 1
+ */
+ skip_drain?: components["parameters"]["kubernetes_node_skip_drain"];
+ /**
+ * @description Specifies whether or not to replace a node after it has been deleted. Setting it to `1` causes the node to be replaced by a new one after deletion. Omitting the query parameter or setting its value to `0` deletes without replacement.
+ * @example 1
+ */
+ replace?: components["parameters"]["kubernetes_node_replace"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ cluster_id: components["parameters"]["kubernetes_cluster_id"];
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes node pool.
+ * @example cdda885e-7663-40c8-bc74-3a036c66545d
+ */
+ node_pool_id: components["parameters"]["kubernetes_node_pool_id"];
+ /**
+ * @description A unique ID that can be used to reference a node in a Kubernetes node pool.
+ * @example 478247f8-b1bb-4f7a-8db9-2a5f8d4b8f8f
+ */
+ node_id: components["parameters"]["kubernetes_node_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 202: components["responses"]["accepted"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_recycle_node_pool: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ cluster_id: components["parameters"]["kubernetes_cluster_id"];
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes node pool.
+ * @example cdda885e-7663-40c8-bc74-3a036c66545d
+ */
+ node_pool_id: components["parameters"]["kubernetes_node_pool_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": {
+ /**
+ * @example [
+ * "d8db5e1a-6103-43b5-a7b3-8a948210a9fc"
+ * ]
+ */
+ nodes?: string[];
+ };
+ };
+ };
+ responses: {
+ 202: components["responses"]["accepted"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_get_clusterUser: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ cluster_id: components["parameters"]["kubernetes_cluster_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["cluster_user"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_list_options: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_options"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_get_clusterLintResults: {
+ parameters: {
+ query?: {
+ /**
+ * @description Specifies the clusterlint run whose results will be retrieved.
+ * @example 50c2f44c-011d-493e-aee5-361a4a0d1844
+ */
+ run_id?: components["parameters"]["clusterlint_run_id"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ cluster_id: components["parameters"]["kubernetes_cluster_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["clusterlint_results"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_run_clusterLint: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ cluster_id: components["parameters"]["kubernetes_cluster_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["clusterlint_request"];
+ };
+ };
+ responses: {
+ 202: components["responses"]["clusterlint_run"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_add_registry: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["cluster_registry"];
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_remove_registry: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["cluster_registry"];
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_add_registries: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["cluster_registries"];
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_remove_registries: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["cluster_registries"];
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ kubernetes_get_status_messages: {
+ parameters: {
+ query?: {
+ /**
+ * @description A timestamp used to return status messages emitted since the specified time. The timestamp should be in ISO8601 format.
+ * @example 2018-11-15T16:00:11Z
+ */
+ since?: components["parameters"]["kubernetes_status_messages_since"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description A unique ID that can be used to reference a Kubernetes cluster.
+ * @example bd5f5959-5e1e-4205-a714-a914373942af
+ */
+ cluster_id: components["parameters"]["kubernetes_cluster_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["status_messages"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ loadBalancers_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_load_balancers"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ loadBalancers_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["load_balancer_create"];
+ };
+ };
+ responses: {
+ 202: components["responses"]["load_balancer_create"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ loadBalancers_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["load_balancer_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["existing_load_balancer"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ loadBalancers_update: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["load_balancer_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["load_balancer_update"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["updated_load_balancer"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ loadBalancers_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["load_balancer_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ loadBalancers_delete_cache: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["load_balancer_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ loadBalancers_add_droplets: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["load_balancer_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["load_balancer_droplet_ids"] & Record;
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ loadBalancers_remove_droplets: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["load_balancer_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["load_balancer_droplet_ids"] & Record;
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ loadBalancers_add_forwardingRules: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["load_balancer_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": {
+ forwarding_rules: components["schemas"]["forwarding_rule"][];
+ };
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ loadBalancers_remove_forwardingRules: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["load_balancer_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": {
+ forwarding_rules: components["schemas"]["forwarding_rule"][];
+ };
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ microvms_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description Number of items returned per page.
+ * @example 25
+ */
+ per_page?: components["parameters"]["microvm_per_page"];
+ /**
+ * @description Only return MicroVMs in this region.
+ * @example mkc1
+ */
+ region?: components["parameters"]["microvm_region"];
+ /**
+ * @description Only return MicroVMs whose name contains this substring (case-insensitive).
+ * @example example-microvm
+ */
+ name?: components["parameters"]["parameters_name"];
+ /**
+ * @description Only return MicroVMs with this tag. A tag that matches no MicroVMs returns an empty list.
+ * @example example
+ */
+ tag_name?: components["parameters"]["parameters_tag_name"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_microvms"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ microvms_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["microvm_create"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["microvm_created"];
+ 400: components["responses"]["errors_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["errors_forbidden"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ microvms_get_options: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["microvm_options"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ microvmCheckpoints_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description Number of items returned per page.
+ * @example 25
+ */
+ per_page?: components["parameters"]["microvm_per_page"];
+ /**
+ * @description Only return checkpoints taken from this MicroVM.
+ * @example 01a0ef1a-d873-793d-ae6a-5dd6239be62a
+ */
+ microvm_id?: components["parameters"]["microvm_id_filter"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_checkpoints"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ microvmCheckpoints_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the checkpoint.
+ * @example 01a0ed98-0a74-75dd-a625-e4856adbc298
+ */
+ checkpoint_id: components["parameters"]["checkpoint_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["checkpoint"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["errors_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ microvmCheckpoints_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the checkpoint.
+ * @example 01a0ed98-0a74-75dd-a625-e4856adbc298
+ */
+ checkpoint_id: components["parameters"]["checkpoint_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 400: components["responses"]["errors_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["errors_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ microvms_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the MicroVM.
+ * @example 01a0ef1a-d873-793d-ae6a-5dd6239be62a
+ */
+ microvm_id: components["parameters"]["microvm_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["microvm"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["errors_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ microvms_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the MicroVM.
+ * @example 01a0ef1a-d873-793d-ae6a-5dd6239be62a
+ */
+ microvm_id: components["parameters"]["microvm_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["errors_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ microvms_update: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the MicroVM.
+ * @example 01a0ef1a-d873-793d-ae6a-5dd6239be62a
+ */
+ microvm_id: components["parameters"]["microvm_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["microvm_update"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["microvm"];
+ 400: components["responses"]["errors_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["errors_not_found"];
+ 409: components["responses"]["errors_conflict"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ microvmURLs_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the MicroVM.
+ * @example 01a0ef1a-d873-793d-ae6a-5dd6239be62a
+ */
+ microvm_id: components["parameters"]["microvm_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["microvm_url_create"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["microvm_url"];
+ 400: components["responses"]["errors_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["errors_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ microvmURLs_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the MicroVM.
+ * @example 01a0ef1a-d873-793d-ae6a-5dd6239be62a
+ */
+ microvm_id: components["parameters"]["microvm_id"];
+ /**
+ * @description The unique ID of the URL, from the MicroVM's `urls` list.
+ * @example 3f6c1a2b-9d4e-5f70-8a1b-2c3d4e5f6a7b
+ */
+ url_id: components["parameters"]["url_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 400: components["responses"]["errors_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["errors_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ microvmAccessTokens_list: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the MicroVM.
+ * @example 01a0ef1a-d873-793d-ae6a-5dd6239be62a
+ */
+ microvm_id: components["parameters"]["microvm_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_access_tokens"];
+ 400: components["responses"]["errors_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["errors_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ microvmAccessTokens_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the MicroVM.
+ * @example 01a0ef1a-d873-793d-ae6a-5dd6239be62a
+ */
+ microvm_id: components["parameters"]["microvm_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["microvm_access_token_create"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["access_token_created"];
+ 400: components["responses"]["errors_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["errors_not_found"];
+ 409: components["responses"]["errors_conflict"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ microvmAccessTokens_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the MicroVM.
+ * @example 01a0ef1a-d873-793d-ae6a-5dd6239be62a
+ */
+ microvm_id: components["parameters"]["microvm_id"];
+ /**
+ * @description The unique ID of the access token, from the list.
+ * @example 4f6a1c2e-9d3b-4e7a-8f10-2b5c7d9e1a33
+ */
+ token_id: components["parameters"]["parameters_token_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["errors_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ microvms_post_pause: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the MicroVM.
+ * @example 01a0ef1a-d873-793d-ae6a-5dd6239be62a
+ */
+ microvm_id: components["parameters"]["microvm_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["microvm_lifecycle"];
+ 400: components["responses"]["errors_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["errors_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ microvms_post_resume: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the MicroVM.
+ * @example 01a0ef1a-d873-793d-ae6a-5dd6239be62a
+ */
+ microvm_id: components["parameters"]["microvm_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["microvm_lifecycle"];
+ 400: components["responses"]["errors_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["errors_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ microvms_run_command: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the MicroVM.
+ * @example 01a0ef1a-d873-793d-ae6a-5dd6239be62a
+ */
+ microvm_id: components["parameters"]["microvm_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["exec_request"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["exec"];
+ 400: components["responses"]["errors_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["errors_forbidden"];
+ 404: components["responses"]["errors_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ 502: components["responses"]["bad_gateway"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ microvms_get_console: {
+ parameters: {
+ query?: {
+ /**
+ * @description The initial number of terminal rows.
+ * @example 24
+ */
+ rows?: components["parameters"]["console_rows"];
+ /**
+ * @description The initial number of terminal columns.
+ * @example 80
+ */
+ cols?: components["parameters"]["console_cols"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the MicroVM.
+ * @example 01a0ef1a-d873-793d-ae6a-5dd6239be62a
+ */
+ microvm_id: components["parameters"]["microvm_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 101: components["responses"]["console_upgrade"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["errors_forbidden"];
+ 404: components["responses"]["errors_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ microvms_get_port_forward: {
+ parameters: {
+ query: {
+ /**
+ * @description The TCP port to connect to inside the MicroVM. Port 50051 is reserved and cannot be forwarded.
+ * @example 8080
+ */
+ port: components["parameters"]["port_forward_port"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the MicroVM.
+ * @example 01a0ef1a-d873-793d-ae6a-5dd6239be62a
+ */
+ microvm_id: components["parameters"]["microvm_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 101: components["responses"]["port_forward_upgrade"];
+ 400: components["responses"]["errors_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["errors_forbidden"];
+ 404: components["responses"]["errors_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ microvms_get_file: {
+ parameters: {
+ query: {
+ /**
+ * @description The absolute path of the file inside the workload container.
+ * @example /app/config.json
+ */
+ path: components["parameters"]["file_path"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the MicroVM.
+ * @example 01a0ef1a-d873-793d-ae6a-5dd6239be62a
+ */
+ microvm_id: components["parameters"]["microvm_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["file_content"];
+ 400: components["responses"]["errors_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["errors_forbidden"];
+ 404: components["responses"]["errors_not_found"];
+ 409: components["responses"]["file_conflict"];
+ 413: components["responses"]["errors_payload_too_large"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ 502: components["responses"]["bad_gateway"];
+ 504: components["responses"]["file_timeout"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ microvms_upload_file: {
+ parameters: {
+ query: {
+ /**
+ * @description The absolute path of the file inside the workload container.
+ * @example /app/config.json
+ */
+ path: components["parameters"]["file_path"];
+ /**
+ * @description The octal permission bits for the file, from `0001` to `0777`. Defaults to `0644`. Setuid, setgid, sticky bits, and `0000` are rejected.
+ * @example 0600
+ */
+ mode?: components["parameters"]["file_mode"];
+ /**
+ * @description The owner user ID. Set it together with `gid`. Defaults to the workload container's user.
+ * @example 1000
+ */
+ uid?: components["parameters"]["file_uid"];
+ /**
+ * @description The owner group ID. Set it together with `uid`. Defaults to the workload container's group.
+ * @example 1000
+ */
+ gid?: components["parameters"]["file_gid"];
+ /**
+ * @description The lowercase hex SHA-256 of the request body. When set, the API verifies the content before it replaces the target. A mismatch returns 422 and leaves the existing file unchanged.
+ * @example e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
+ */
+ sha256?: components["parameters"]["file_sha256"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the MicroVM.
+ * @example 01a0ef1a-d873-793d-ae6a-5dd6239be62a
+ */
+ microvm_id: components["parameters"]["microvm_id"];
+ };
+ cookie?: never;
+ };
+ /** @description The raw file content. */
+ requestBody: {
+ content: {
+ "application/octet-stream": string;
+ };
+ };
+ responses: {
+ 200: components["responses"]["file_info"];
+ 400: components["responses"]["errors_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["errors_forbidden"];
+ 404: components["responses"]["errors_not_found"];
+ 409: components["responses"]["file_conflict"];
+ 411: components["responses"]["length_required"];
+ 413: components["responses"]["errors_payload_too_large"];
+ 422: components["responses"]["checksum_mismatch"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ 502: components["responses"]["bad_gateway"];
+ 504: components["responses"]["file_timeout"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ microvmCheckpoints_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the MicroVM.
+ * @example 01a0ef1a-d873-793d-ae6a-5dd6239be62a
+ */
+ microvm_id: components["parameters"]["microvm_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": {
+ /**
+ * @description A name for the checkpoint. If you omit it, a name such as `checkpoint-20260929-143559` is generated.
+ * @example example-checkpoint
+ */
+ name?: string;
+ };
+ };
+ };
+ responses: {
+ 201: components["responses"]["checkpoint"];
+ 400: components["responses"]["errors_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["errors_not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_list_alertPolicy: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_alert_policy_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_create_alertPolicy: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * @description The `type` field dictates what type of entity that the alert policy applies to and hence what type of entity is passed in the `entities` array. If both the `tags` array and `entities` array are empty the alert policy applies to all entities of the relevant type that are owned by the user account. Otherwise the following table shows the valid entity types for each type of alert policy:
+ *
+ * Type | Description | Valid Entity Type
+ * -----|-------------|--------------------
+ * `v1/insights/droplet/memory_utilization_percent` | alert on the percent of memory utilization | Droplet ID
+ * `v1/insights/droplet/disk_read` | alert on the rate of disk read I/O in MBps | Droplet ID
+ * `v1/insights/droplet/load_5` | alert on the 5 minute load average | Droplet ID
+ * `v1/insights/droplet/load_15` | alert on the 15 minute load average | Droplet ID
+ * `v1/insights/droplet/disk_utilization_percent` | alert on the percent of disk utilization | Droplet ID
+ * `v1/insights/droplet/cpu` | alert on the percent of CPU utilization | Droplet ID
+ * `v1/insights/droplet/disk_write` | alert on the rate of disk write I/O in MBps | Droplet ID
+ * `v1/insights/droplet/public_outbound_bandwidth` | alert on the rate of public outbound bandwidth in Mbps | Droplet ID
+ * `v1/insights/droplet/public_inbound_bandwidth` | alert on the rate of public inbound bandwidth in Mbps | Droplet ID
+ * `v1/insights/droplet/private_outbound_bandwidth` | alert on the rate of private outbound bandwidth in Mbps | Droplet ID
+ * `v1/insights/droplet/private_inbound_bandwidth` | alert on the rate of private inbound bandwidth in Mbps | Droplet ID
+ * `v1/insights/droplet/load_1` | alert on the 1 minute load average | Droplet ID
+ * `v1/insights/lbaas/avg_cpu_utilization_percent`|alert on the percent of CPU utilization|load balancer ID
+ * `v1/insights/lbaas/connection_utilization_percent`|alert on the percent of connection utilization|load balancer ID
+ * `v1/insights/lbaas/droplet_health`|alert on Droplet health status changes|load balancer ID
+ * `v1/insights/lbaas/tls_connections_per_second_utilization_percent`|alert on the percent of TLS connections per second utilization (requires at least one HTTPS forwarding rule)|load balancer ID
+ * `v1/insights/lbaas/increase_in_http_error_rate_percentage_5xx`|alert on the percent increase of 5xx level http errors over 5m|load balancer ID
+ * `v1/insights/lbaas/increase_in_http_error_rate_percentage_4xx`|alert on the percent increase of 4xx level http errors over 5m|load balancer ID
+ * `v1/insights/lbaas/increase_in_http_error_rate_count_5xx`|alert on the count of 5xx level http errors over 5m|load balancer ID
+ * `v1/insights/lbaas/increase_in_http_error_rate_count_4xx`|alert on the count of 4xx level http errors over 5m|load balancer ID
+ * `v1/insights/lbaas/high_http_request_response_time`|alert on high average http response time|load balancer ID
+ * `v1/insights/lbaas/high_http_request_response_time_50p`|alert on high 50th percentile http response time|load balancer ID
+ * `v1/insights/lbaas/high_http_request_response_time_95p`|alert on high 95th percentile http response time|load balancer ID
+ * `v1/insights/lbaas/high_http_request_response_time_99p`|alert on high 99th percentile http response time|load balancer ID
+ * `v1/dbaas/alerts/load_15_alerts` | alert on 15 minute load average across the database cluster | database cluster UUID
+ * `v1/dbaas/alerts/memory_utilization_alerts` | alert on the percent memory utilization average across the database cluster | database cluster UUID
+ * `v1/dbaas/alerts/disk_utilization_alerts` | alert on the percent disk utilization average across the database cluster | database cluster UUID
+ * `v1/dbaas/alerts/cpu_alerts` | alert on the percent CPU usage average across the database cluster | database cluster UUID
+ * `v1/droplet/autoscale_alerts/current_instances` | alert on current pool size | autoscale pool ID
+ * `v1/droplet/autoscale_alerts/target_instances` | alert on target pool size | autoscale pool ID
+ * `v1/droplet/autoscale_alerts/current_cpu_utilization` | alert on current average CPU utilization | autoscale pool ID
+ * `v1/droplet/autoscale_alerts/target_cpu_utilization` | alert on target average CPU utilization | autoscale pool ID
+ * `v1/droplet/autoscale_alerts/current_memory_utilization` | alert on current average memory utilization | autoscale pool ID
+ * `v1/droplet/autoscale_alerts/target_memory_utilization` | alert on target average memory utilization | autoscale pool ID
+ * `v1/droplet/autoscale_alerts/scale_up` | alert on scale up event | autoscale pool ID
+ * `v1/droplet/autoscale_alerts/scale_down` | alert on scale down event | autoscale pool ID
+ */
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["alert_policy_request"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["alert_policy_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_alertPolicy: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for an alert policy.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ alert_uuid: components["parameters"]["alert_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["alert_policy_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_update_alertPolicy: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for an alert policy.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ alert_uuid: components["parameters"]["alert_uuid"];
+ };
+ cookie?: never;
+ };
+ /**
+ * @description The `type` field dictates what type of entity that the alert policy applies to and hence what type of entity is passed in the `entities` array. If both the `tags` array and `entities` array are empty the alert policy applies to all entities of the relevant type that are owned by the user account. Otherwise the following table shows the valid entity types for each type of alert policy:
+ *
+ * Type | Description | Valid Entity Type
+ * -----|-------------|--------------------
+ * `v1/insights/droplet/memory_utilization_percent` | alert on the percent of memory utilization | Droplet ID
+ * `v1/insights/droplet/disk_read` | alert on the rate of disk read I/O in MBps | Droplet ID
+ * `v1/insights/droplet/load_5` | alert on the 5 minute load average | Droplet ID
+ * `v1/insights/droplet/load_15` | alert on the 15 minute load average | Droplet ID
+ * `v1/insights/droplet/disk_utilization_percent` | alert on the percent of disk utilization | Droplet ID
+ * `v1/insights/droplet/cpu` | alert on the percent of CPU utilization | Droplet ID
+ * `v1/insights/droplet/disk_write` | alert on the rate of disk write I/O in MBps | Droplet ID
+ * `v1/insights/droplet/public_outbound_bandwidth` | alert on the rate of public outbound bandwidth in Mbps | Droplet ID
+ * `v1/insights/droplet/public_inbound_bandwidth` | alert on the rate of public inbound bandwidth in Mbps | Droplet ID
+ * `v1/insights/droplet/private_outbound_bandwidth` | alert on the rate of private outbound bandwidth in Mbps | Droplet ID
+ * `v1/insights/droplet/private_inbound_bandwidth` | alert on the rate of private inbound bandwidth in Mbps | Droplet ID
+ * `v1/insights/droplet/load_1` | alert on the 1 minute load average | Droplet ID
+ * `v1/insights/lbaas/avg_cpu_utilization_percent`|alert on the percent of CPU utilization|load balancer ID
+ * `v1/insights/lbaas/connection_utilization_percent`|alert on the percent of connection utilization|load balancer ID
+ * `v1/insights/lbaas/droplet_health`|alert on Droplet health status changes|load balancer ID
+ * `v1/insights/lbaas/tls_connections_per_second_utilization_percent`|alert on the percent of TLS connections per second utilization (requires at least one HTTPS forwarding rule)|load balancer ID
+ * `v1/insights/lbaas/increase_in_http_error_rate_percentage_5xx`|alert on the percent increase of 5xx level http errors over 5m|load balancer ID
+ * `v1/insights/lbaas/increase_in_http_error_rate_percentage_4xx`|alert on the percent increase of 4xx level http errors over 5m|load balancer ID
+ * `v1/insights/lbaas/increase_in_http_error_rate_count_5xx`|alert on the count of 5xx level http errors over 5m|load balancer ID
+ * `v1/insights/lbaas/increase_in_http_error_rate_count_4xx`|alert on the count of 4xx level http errors over 5m|load balancer ID
+ * `v1/insights/lbaas/high_http_request_response_time`|alert on high average http response time|load balancer ID
+ * `v1/insights/lbaas/high_http_request_response_time_50p`|alert on high 50th percentile http response time|load balancer ID
+ * `v1/insights/lbaas/high_http_request_response_time_95p`|alert on high 95th percentile http response time|load balancer ID
+ * `v1/insights/lbaas/high_http_request_response_time_99p`|alert on high 99th percentile http response time|load balancer ID
+ * `v1/dbaas/alerts/load_15_alerts` | alert on 15 minute load average across the database cluster | database cluster UUID
+ * `v1/dbaas/alerts/memory_utilization_alerts` | alert on the percent memory utilization average across the database cluster | database cluster UUID
+ * `v1/dbaas/alerts/disk_utilization_alerts` | alert on the percent disk utilization average across the database cluster | database cluster UUID
+ * `v1/dbaas/alerts/cpu_alerts` | alert on the percent CPU usage average across the database cluster | database cluster UUID
+ * `v1/droplet/autoscale_alerts/current_instances` | alert on current pool size | autoscale pool ID
+ * `v1/droplet/autoscale_alerts/target_instances` | alert on target pool size | autoscale pool ID
+ * `v1/droplet/autoscale_alerts/current_cpu_utilization` | alert on current average CPU utilization | autoscale pool ID
+ * `v1/droplet/autoscale_alerts/target_cpu_utilization` | alert on target average CPU utilization | autoscale pool ID
+ * `v1/droplet/autoscale_alerts/current_memory_utilization` | alert on current average memory utilization | autoscale pool ID
+ * `v1/droplet/autoscale_alerts/target_memory_utilization` | alert on target average memory utilization | autoscale pool ID
+ * `v1/droplet/autoscale_alerts/scale_up` | alert on scale up event | autoscale pool ID
+ * `v1/droplet/autoscale_alerts/scale_down` | alert on scale down event | autoscale pool ID
+ */
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["alert_policy_request"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["alert_policy_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_delete_alertPolicy: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for an alert policy.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ alert_uuid: components["parameters"]["alert_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_dropletBandwidthMetrics: {
+ parameters: {
+ query: {
+ /**
+ * @description The droplet ID.
+ * @example 17209102
+ */
+ host_id: components["parameters"]["parameters_droplet_id"];
+ /**
+ * @description The network interface.
+ * @example private
+ */
+ interface: components["parameters"]["network_interface"];
+ /**
+ * @description The traffic direction.
+ * @example inbound
+ */
+ direction: components["parameters"]["network_direction"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["droplet_bandwidth_metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_DropletCpuMetrics: {
+ parameters: {
+ query: {
+ /**
+ * @description The droplet ID.
+ * @example 17209102
+ */
+ host_id: components["parameters"]["parameters_droplet_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["droplet_cpu_metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_dropletFilesystemFreeMetrics: {
+ parameters: {
+ query: {
+ /**
+ * @description The droplet ID.
+ * @example 17209102
+ */
+ host_id: components["parameters"]["parameters_droplet_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["droplet_filesystem_metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_dropletFilesystemSizeMetrics: {
+ parameters: {
+ query: {
+ /**
+ * @description The droplet ID.
+ * @example 17209102
+ */
+ host_id: components["parameters"]["parameters_droplet_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["droplet_filesystem_metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_dropletLoad1Metrics: {
+ parameters: {
+ query: {
+ /**
+ * @description The droplet ID.
+ * @example 17209102
+ */
+ host_id: components["parameters"]["parameters_droplet_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_dropletLoad5Metrics: {
+ parameters: {
+ query: {
+ /**
+ * @description The droplet ID.
+ * @example 17209102
+ */
+ host_id: components["parameters"]["parameters_droplet_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_dropletLoad15Metrics: {
+ parameters: {
+ query: {
+ /**
+ * @description The droplet ID.
+ * @example 17209102
+ */
+ host_id: components["parameters"]["parameters_droplet_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_dropletMemoryCachedMetrics: {
+ parameters: {
+ query: {
+ /**
+ * @description The droplet ID.
+ * @example 17209102
+ */
+ host_id: components["parameters"]["parameters_droplet_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_dropletMemoryFreeMetrics: {
+ parameters: {
+ query: {
+ /**
+ * @description The droplet ID.
+ * @example 17209102
+ */
+ host_id: components["parameters"]["parameters_droplet_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_dropletMemoryTotalMetrics: {
+ parameters: {
+ query: {
+ /**
+ * @description The droplet ID.
+ * @example 17209102
+ */
+ host_id: components["parameters"]["parameters_droplet_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_dropletMemoryAvailableMetrics: {
+ parameters: {
+ query: {
+ /**
+ * @description The droplet ID.
+ * @example 17209102
+ */
+ host_id: components["parameters"]["parameters_droplet_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_appMemoryPercentageMetrics: {
+ parameters: {
+ query: {
+ /**
+ * @description The app UUID.
+ * @example 2db3c021-15ad-4088-bfe8-99dc972b9cf6
+ */
+ app_id: components["parameters"]["parameters_app_id"];
+ /**
+ * @description The app component name.
+ * @example sample-application
+ */
+ app_component?: components["parameters"]["app_component"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["app_metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_appCPUPercentageMetrics: {
+ parameters: {
+ query: {
+ /**
+ * @description The app UUID.
+ * @example 2db3c021-15ad-4088-bfe8-99dc972b9cf6
+ */
+ app_id: components["parameters"]["parameters_app_id"];
+ /**
+ * @description The app component name.
+ * @example sample-application
+ */
+ app_component?: components["parameters"]["app_component"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["app_metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ "monitoring_get_appRestartCountMetrics.yml": {
+ parameters: {
+ query: {
+ /**
+ * @description The app UUID.
+ * @example 2db3c021-15ad-4088-bfe8-99dc972b9cf6
+ */
+ app_id: components["parameters"]["parameters_app_id"];
+ /**
+ * @description The app component name.
+ * @example sample-application
+ */
+ app_component?: components["parameters"]["app_component"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["app_metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_frontend_connections_current: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_frontend_connections_limit: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_frontend_cpu_utilization: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_frontend_firewall_dropped_bytes: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_frontend_firewall_dropped_packets: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_frontend_http_responses: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_frontend_http_requests_per_second: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_frontend_network_throughput_http: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_frontend_network_throughput_udp: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_frontend_network_throughput_tcp: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_frontend_nlb_tcp_network_throughput: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_frontend_nlb_udp_network_throughput: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_frontend_tls_connections_current: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_frontend_tls_connections_limit: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_frontend_tls_connections_exceeding_rate_limit: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_droplets_http_session_duration_avg: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_droplets_http_session_duration_50p: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_droplets_http_session_duration_95p: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_droplets_http_response_time_avg: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_droplets_http_response_time_50p: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_droplets_http_response_time_95p: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_droplets_http_response_time_99p: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_droplets_queue_size: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_droplets_http_responses: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_droplets_connections: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_droplets_health_checks: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_lb_droplets_downtime: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for a load balancer.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ lb_id: components["parameters"]["parameters_load_balancer_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_droplet_autoscale_current_instances: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for an autoscale pool.
+ * @example 0d3db13e-a604-4944-9827-7ec2642d32ac
+ */
+ autoscale_pool_id: components["parameters"]["parameters_autoscale_pool_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_droplet_autoscale_target_instances: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for an autoscale pool.
+ * @example 0d3db13e-a604-4944-9827-7ec2642d32ac
+ */
+ autoscale_pool_id: components["parameters"]["parameters_autoscale_pool_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ "monitoring_get_droplet_autoscale_current_cpu_utilization.yml": {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for an autoscale pool.
+ * @example 0d3db13e-a604-4944-9827-7ec2642d32ac
+ */
+ autoscale_pool_id: components["parameters"]["parameters_autoscale_pool_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_droplet_autoscale_target_cpu_utilization: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for an autoscale pool.
+ * @example 0d3db13e-a604-4944-9827-7ec2642d32ac
+ */
+ autoscale_pool_id: components["parameters"]["parameters_autoscale_pool_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_droplet_autoscale_current_memory_utilization: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for an autoscale pool.
+ * @example 0d3db13e-a604-4944-9827-7ec2642d32ac
+ */
+ autoscale_pool_id: components["parameters"]["parameters_autoscale_pool_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_droplet_autoscale_target_memory_utilization: {
+ parameters: {
+ query: {
+ /**
+ * @description A unique identifier for an autoscale pool.
+ * @example 0d3db13e-a604-4944-9827-7ec2642d32ac
+ */
+ autoscale_pool_id: components["parameters"]["parameters_autoscale_pool_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_database_mysql_cpu_usage: {
+ parameters: {
+ query: {
+ /**
+ * @description The DBaaS cluster UUID (database ID).
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ db_id: components["parameters"]["db_id"];
+ /**
+ * @description Aggregation over the time range (avg, max, or min).
+ * @example avg
+ */
+ aggregate: components["parameters"]["aggregate_avg_max_min"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_database_mysql_load: {
+ parameters: {
+ query: {
+ /**
+ * @description The DBaaS cluster UUID (database ID).
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ db_id: components["parameters"]["db_id"];
+ /**
+ * @description Load window: **load1** (1-minute), **load5** (5-minute), **load15** (15-minute). The value is either average or max over that window, depending on the **aggregate** parameter (avg or max).
+ * @example load1
+ */
+ metric: components["parameters"]["metric_load"];
+ /**
+ * @description Aggregation over the time range (avg or max).
+ * @example avg
+ */
+ aggregate: components["parameters"]["aggregate_avg_max"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_database_mysql_memory_usage: {
+ parameters: {
+ query: {
+ /**
+ * @description The DBaaS cluster UUID (database ID).
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ db_id: components["parameters"]["db_id"];
+ /**
+ * @description Aggregation over the time range (avg, max, or min).
+ * @example avg
+ */
+ aggregate: components["parameters"]["aggregate_avg_max_min"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_database_mysql_disk_usage: {
+ parameters: {
+ query: {
+ /**
+ * @description The DBaaS cluster UUID (database ID).
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ db_id: components["parameters"]["db_id"];
+ /**
+ * @description Aggregation over the time range (avg, max, or min).
+ * @example avg
+ */
+ aggregate: components["parameters"]["aggregate_avg_max_min"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_database_mysql_threads_connected: {
+ parameters: {
+ query: {
+ /**
+ * @description The DBaaS cluster UUID (database ID).
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ db_id: components["parameters"]["db_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_database_mysql_threads_created_rate: {
+ parameters: {
+ query: {
+ /**
+ * @description The DBaaS cluster UUID (database ID).
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ db_id: components["parameters"]["db_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_database_mysql_threads_active: {
+ parameters: {
+ query: {
+ /**
+ * @description The DBaaS cluster UUID (database ID).
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ db_id: components["parameters"]["db_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_database_mysql_index_vs_sequential_reads: {
+ parameters: {
+ query: {
+ /**
+ * @description The DBaaS cluster UUID (database ID).
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ db_id: components["parameters"]["db_id"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_database_mysql_op_rates: {
+ parameters: {
+ query: {
+ /**
+ * @description The DBaaS cluster UUID (database ID).
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ db_id: components["parameters"]["db_id"];
+ /**
+ * @description Operation type (select, insert, update, or delete).
+ * @example select
+ */
+ metric: components["parameters"]["metric_op_rates"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_database_mysql_schema_throughput: {
+ parameters: {
+ query: {
+ /**
+ * @description The DBaaS cluster UUID (database ID).
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ db_id: components["parameters"]["db_id"];
+ /**
+ * @description The schema (database) name.
+ * @example defaultdb
+ */
+ schema: components["parameters"]["schema"];
+ /**
+ * @description Table I/O operation (insert, fetch, update, or delete).
+ * @example insert
+ */
+ metric: components["parameters"]["metric_schema_io"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_database_mysql_schema_latency: {
+ parameters: {
+ query: {
+ /**
+ * @description The DBaaS cluster UUID (database ID).
+ * @example 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
+ */
+ db_id: components["parameters"]["db_id"];
+ /**
+ * @description The schema (database) name.
+ * @example defaultdb
+ */
+ schema: components["parameters"]["schema"];
+ /**
+ * @description Table I/O operation (insert, fetch, update, or delete).
+ * @example insert
+ */
+ metric: components["parameters"]["metric_schema_io"];
+ /**
+ * @description UNIX timestamp to start metric window.
+ * @example 1620683817
+ */
+ start: components["parameters"]["metric_timestamp_start"];
+ /**
+ * @description UNIX timestamp to end metric window.
+ * @example 1620705417
+ */
+ end: components["parameters"]["metric_timestamp_end"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["metric_response"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_list_destinations: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["monitoring_list_destinations"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_create_destination: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["destination_request"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["destination"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_destination: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a destination.
+ * @example 1a64809f-1708-48ee-a742-dec8d481b8d1
+ */
+ destination_uuid: components["parameters"]["destination_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["destination"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_update_destination: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a destination.
+ * @example 1a64809f-1708-48ee-a742-dec8d481b8d1
+ */
+ destination_uuid: components["parameters"]["destination_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["destination_request"];
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_delete_destination: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a destination.
+ * @example 1a64809f-1708-48ee-a742-dec8d481b8d1
+ */
+ destination_uuid: components["parameters"]["destination_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_list_sinks: {
+ parameters: {
+ query?: {
+ /**
+ * @description A unique URN for a resource.
+ * @example do:kubernetes:5ba4518b-b9e2-4978-aa92-2d4c727e8824
+ */
+ resource_id?: components["parameters"]["resource_id"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_sinks"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_create_sink: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": {
+ /**
+ * @description A unique identifier for an already-existing destination.
+ * @example 9df2b7e9-3fb2-4577-b60a-e9c0d53f9a99
+ */
+ destination_uuid?: string;
+ /** @description List of resources identified by their URNs. */
+ resources?: components["schemas"]["sink_resource"][];
+ };
+ };
+ };
+ responses: {
+ 202: components["responses"]["accepted"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_get_sink: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a sink.
+ * @example 78b172b6-52c3-4a4b-96d5-78d3f1a0b18c
+ */
+ sink_uuid: components["parameters"]["sink_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["sinks"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ monitoring_delete_sink: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a sink.
+ * @example 78b172b6-52c3-4a4b-96d5-78d3f1a0b18c
+ */
+ sink_uuid: components["parameters"]["sink_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ nfs_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description The DigitalOcean region slug (e.g., nyc2, atl1) where the NFS share resides.
+ * @example atl1
+ */
+ region?: components["parameters"]["parameters_region-2"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["nfs_list"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ nfs_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["nfs_request"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["nfs_create"];
+ 400: components["responses"]["bad_request-2"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ nfs_get: {
+ parameters: {
+ query?: {
+ /**
+ * @description The DigitalOcean region slug (e.g., nyc2, atl1) where the NFS share resides.
+ * @example atl1
+ */
+ region?: components["parameters"]["parameters_region-2"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the NFS share
+ * @example 0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d
+ */
+ nfs_id: components["parameters"]["nfs_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["nfs_get"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ nfs_delete: {
+ parameters: {
+ query?: {
+ /**
+ * @description The DigitalOcean region slug (e.g., nyc2, atl1) where the NFS share resides.
+ * @example atl1
+ */
+ region?: components["parameters"]["parameters_region-2"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the NFS share
+ * @example 0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d
+ */
+ nfs_id: components["parameters"]["nfs_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ nfs_create_action: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the NFS share
+ * @example 0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d
+ */
+ nfs_id: components["parameters"]["nfs_id"];
+ };
+ cookie?: never;
+ };
+ /**
+ * @description The `type` attribute set in the request body will specify the action that
+ * will be taken on the NFS share. Some actions will require additional
+ * attributes to be set as well.
+ */
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["nfs_action_resize"] | components["schemas"]["nfs_action_snapshot"] | components["schemas"]["nfs_action_attach"] | components["schemas"]["nfs_action_detach"] | components["schemas"]["nfs_action_reassign"] | components["schemas"]["nfs_action_switch_performance_tier"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["nfs_actions"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ nfs_list_snapshot: {
+ parameters: {
+ query?: {
+ /**
+ * @description The DigitalOcean region slug (e.g., nyc2, atl1) where the NFS share resides.
+ * @example atl1
+ */
+ region?: components["parameters"]["parameters_region-2"];
+ /**
+ * @description The unique ID of an NFS share. If provided, only snapshots of this specific share will be returned.
+ * @example 0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d
+ */
+ share_id?: components["parameters"]["share_id"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["nfs_snapshot_list"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ nfs_get_snapshot: {
+ parameters: {
+ query?: {
+ /**
+ * @description The DigitalOcean region slug (e.g., nyc2, atl1) where the NFS share resides.
+ * @example atl1
+ */
+ region?: components["parameters"]["parameters_region-2"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the NFS snapshot
+ * @example 0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d
+ */
+ nfs_snapshot_id: components["parameters"]["nfs_snapshot_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["nfs_snapshot_get"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ nfs_delete_snapshot: {
+ parameters: {
+ query?: {
+ /**
+ * @description The DigitalOcean region slug (e.g., nyc2, atl1) where the NFS share resides.
+ * @example atl1
+ */
+ region?: components["parameters"]["parameters_region-2"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The unique ID of the NFS snapshot
+ * @example 0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d
+ */
+ nfs_snapshot_id: components["parameters"]["nfs_snapshot_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ nfs_list_access_points: {
+ parameters: {
+ query?: {
+ /**
+ * @description Filter access points by status.
+ * @example ACCESS_POINT_ACTIVE
+ */
+ status?: "ACCESS_POINT_CREATING" | "ACCESS_POINT_ACTIVE" | "ACCESS_POINT_FAILED" | "ACCESS_POINT_DELETED";
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier of the NFS share.
+ * @example baf4827c-6fa9-456f-9dbd-9ddfcacd0720
+ */
+ share_id: components["parameters"]["share_id_path"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["access_point_list"];
+ 400: components["responses"]["access_point_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ nfs_create_access_point: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier of the NFS share.
+ * @example baf4827c-6fa9-456f-9dbd-9ddfcacd0720
+ */
+ share_id: components["parameters"]["share_id_path"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["access_point_request"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["access_point_create"];
+ 400: components["responses"]["access_point_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 409: components["responses"]["access_point_conflict"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ nfs_get_access_point: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier of the NFS access point.
+ * @example becd9f04-8afa-4ccd-b03e-9676447df603
+ */
+ access_point_id: components["parameters"]["access_point_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["access_point_get"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ nfs_delete_access_point: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier of the NFS access point.
+ * @example becd9f04-8afa-4ccd-b03e-9676447df603
+ */
+ access_point_id: components["parameters"]["access_point_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["access_point_delete"];
+ 400: components["responses"]["access_point_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ organizations_create_team: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["create_team_request"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["create_team"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 412: components["responses"]["precondition_failed-2"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ organizations_list_teams: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["list_teams"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 412: components["responses"]["precondition_failed-2"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ partnerAttachments_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_partner_attachments"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ partnerAttachments_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["partner_attachment_writable"];
+ };
+ };
+ responses: {
+ 202: components["responses"]["single_partner_attachment"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 422: components["responses"]["unprocessable_entity"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ partnerAttachments_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a partner attachment.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ pa_id: components["parameters"]["pa_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["single_partner_attachment"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ partnerAttachments_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a partner attachment.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ pa_id: components["parameters"]["pa_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 202: components["responses"]["single_partner_attachment_deleting"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ partnerAttachments_patch: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a partner attachment.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ pa_id: components["parameters"]["pa_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["partner_attachment_updatable"];
+ };
+ };
+ responses: {
+ 202: components["responses"]["single_partner_attachment"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ partnerAttachments_get_bgp_auth_key: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a partner attachment.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ pa_id: components["parameters"]["pa_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["single_partner_attachment_bgp_auth_key"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ partnerAttachments_list_remote_routes: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a partner attachment.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ pa_id: components["parameters"]["pa_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_partner_attachment_remote_routes"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ partnerAttachments_get_service_key: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a partner attachment.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ pa_id: components["parameters"]["pa_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["single_partner_attachment_service_key"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ partnerAttachments_create_service_key: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a partner attachment.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ pa_id: components["parameters"]["pa_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 202: components["responses"]["empty_json_object"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ projects_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["projects_list"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ projects_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": WithRequired;
+ };
+ };
+ responses: {
+ 201: components["responses"]["existing_project"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ projects_get_default: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["default_project"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ projects_update_default: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["project"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["existing_project"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ projects_patch_default: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "name": "my-web-api"
+ * }
+ */
+ "application/json": components["schemas"]["project"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["existing_project"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ projects_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a project.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ project_id: components["parameters"]["project_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["existing_project"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ projects_update: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a project.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ project_id: components["parameters"]["project_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["project"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["existing_project"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ projects_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a project.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ project_id: components["parameters"]["project_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 412: components["responses"]["precondition_failed-3"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ projects_patch: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a project.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ project_id: components["parameters"]["project_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "name": "my-web-api"
+ * }
+ */
+ "application/json": components["schemas"]["project"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["existing_project"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ projects_list_resources: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a project.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ project_id: components["parameters"]["project_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["resources_list"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ projects_assign_resources: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a project.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ project_id: components["parameters"]["project_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["project_assignment"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["assigned_resources_list"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ projects_list_resources_default: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["resources_list"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ projects_assign_resources_default: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["project_assignment"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["assigned_resources_list"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ regions_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_regions"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registries_list: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_registries_info"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registries_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["multiregistry_create"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["multiregistry_info"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registries_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["multiregistry_info"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registries_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registries_get_dockerCredentials: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["docker_credentials"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registries_get_subscription: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["subscription_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registries_update_subscription: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": {
+ /**
+ * @description The slug of the subscription tier to sign up for.
+ * @example basic
+ * @enum {string}
+ */
+ tier_slug?: "starter" | "basic" | "professional";
+ };
+ };
+ };
+ responses: {
+ 200: components["responses"]["subscription_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registries_get_options: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["registry_options_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registries_get_garbageCollection: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["garbage_collection"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registries_run_garbageCollection: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 201: components["responses"]["garbage_collection"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registries_list_garbageCollections: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["garbage_collections"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registries_update_garbageCollection: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ /**
+ * @description The UUID of a garbage collection run.
+ * @example eff0feee-49c7-4e8f-ba5c-a320c109c8a8
+ */
+ garbage_collection_uuid: components["parameters"]["garbage_collection_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["update_registry"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["garbage_collection"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registries_list_repositoriesV2: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return. Ignored when 'page_token' is provided.
+ * @example 1
+ */
+ page?: components["parameters"]["token_pagination_page"];
+ /**
+ * @description Token to retrieve of the next or previous set of results more quickly than using 'page'.
+ * @example eyJUb2tlbiI6IkNnZGpiMjlz
+ */
+ page_token?: components["parameters"]["token_pagination_page_token"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_repositories_v2"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registries_delete_repository: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ /**
+ * @description The name of a container registry repository. If the name contains `/` characters, they must be URL-encoded, e.g. `%2F`.
+ * @example repo-1
+ */
+ repository_name: components["parameters"]["registry_repository_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registries_list_repositoryTags: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ /**
+ * @description The name of a container registry repository. If the name contains `/` characters, they must be URL-encoded, e.g. `%2F`.
+ * @example repo-1
+ */
+ repository_name: components["parameters"]["registry_repository_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["repository_tags"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registries_delete_repositoryTag: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ /**
+ * @description The name of a container registry repository. If the name contains `/` characters, they must be URL-encoded, e.g. `%2F`.
+ * @example repo-1
+ */
+ repository_name: components["parameters"]["registry_repository_name"];
+ /**
+ * @description The name of a container registry repository tag.
+ * @example 06a447a
+ */
+ repository_tag: components["parameters"]["registry_repository_tag"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registries_list_repositoryManifests: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ /**
+ * @description The name of a container registry repository. If the name contains `/` characters, they must be URL-encoded, e.g. `%2F`.
+ * @example repo-1
+ */
+ repository_name: components["parameters"]["registry_repository_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["repository_manifests"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registries_delete_repositoryManifest: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ /**
+ * @description The name of a container registry repository. If the name contains `/` characters, they must be URL-encoded, e.g. `%2F`.
+ * @example repo-1
+ */
+ repository_name: components["parameters"]["registry_repository_name"];
+ /**
+ * @description The manifest digest of a container registry repository tag.
+ * @example sha256:cb8a924afdf0229ef7515d9e5b3024e23b3eb03ddbba287f4a19c6ac90b8d221
+ */
+ manifest_digest: components["parameters"]["registry_manifest_digest"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registries_validate_name: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["validate_registry"];
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 409: components["responses"]["conflict"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registry_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["registry_info"];
+ 401: components["responses"]["unauthorized"];
+ 412: components["responses"]["registries_precondition_fail"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registry_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["registry_create"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["registry_info"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registry_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 412: components["responses"]["registries_precondition_fail"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registry_get_subscription: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["subscription_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registry_update_subscription: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": {
+ /**
+ * @description The slug of the subscription tier to sign up for.
+ * @example basic
+ * @enum {string}
+ */
+ tier_slug?: "starter" | "basic" | "professional";
+ };
+ };
+ };
+ responses: {
+ 200: components["responses"]["subscription_response"];
+ 401: components["responses"]["unauthorized"];
+ 412: components["responses"]["registries_over_limit"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registry_get_dockerCredentials: {
+ parameters: {
+ query?: {
+ /**
+ * @description The duration in seconds that the returned registry credentials will be valid. If not set or 0, the credentials will not expire.
+ * @example 3600
+ */
+ expiry_seconds?: components["parameters"]["registry_expiry_seconds"];
+ /**
+ * @description By default, the registry credentials allow for read-only access. Set this query parameter to `true` to obtain read-write credentials.
+ * @example true
+ */
+ read_write?: components["parameters"]["registry_read_write"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["docker_credentials"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registry_validate_name: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["validate_registry"];
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 409: components["responses"]["conflict"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registry_list_repositories: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_repositories"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registry_list_repositoriesV2: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return. Ignored when 'page_token' is provided.
+ * @example 1
+ */
+ page?: components["parameters"]["token_pagination_page"];
+ /**
+ * @description Token to retrieve of the next or previous set of results more quickly than using 'page'.
+ * @example eyJUb2tlbiI6IkNnZGpiMjlz
+ */
+ page_token?: components["parameters"]["token_pagination_page_token"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_repositories_v2"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registry_list_repositoryTags: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ /**
+ * @description The name of a container registry repository. If the name contains `/` characters, they must be URL-encoded, e.g. `%2F`.
+ * @example repo-1
+ */
+ repository_name: components["parameters"]["registry_repository_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["repository_tags"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registry_delete_repositoryTag: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ /**
+ * @description The name of a container registry repository. If the name contains `/` characters, they must be URL-encoded, e.g. `%2F`.
+ * @example repo-1
+ */
+ repository_name: components["parameters"]["registry_repository_name"];
+ /**
+ * @description The name of a container registry repository tag.
+ * @example 06a447a
+ */
+ repository_tag: components["parameters"]["registry_repository_tag"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registry_list_repositoryManifests: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ /**
+ * @description The name of a container registry repository. If the name contains `/` characters, they must be URL-encoded, e.g. `%2F`.
+ * @example repo-1
+ */
+ repository_name: components["parameters"]["registry_repository_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["repository_manifests"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registry_delete_repositoryManifest: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ /**
+ * @description The name of a container registry repository. If the name contains `/` characters, they must be URL-encoded, e.g. `%2F`.
+ * @example repo-1
+ */
+ repository_name: components["parameters"]["registry_repository_name"];
+ /**
+ * @description The manifest digest of a container registry repository tag.
+ * @example sha256:cb8a924afdf0229ef7515d9e5b3024e23b3eb03ddbba287f4a19c6ac90b8d221
+ */
+ manifest_digest: components["parameters"]["registry_manifest_digest"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registry_get_garbageCollection: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["garbage_collection"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registry_run_garbageCollection: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["registry_run_gc"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["garbage_collection"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registry_list_garbageCollections: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["garbage_collections"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registry_update_garbageCollection: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of a container registry.
+ * @example example
+ */
+ registry_name: components["parameters"]["registry_name"];
+ /**
+ * @description The UUID of a garbage collection run.
+ * @example eff0feee-49c7-4e8f-ba5c-a320c109c8a8
+ */
+ garbage_collection_uuid: components["parameters"]["garbage_collection_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["update_registry"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["garbage_collection"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ registry_get_options: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["registry_options_response"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ droplets_list_neighborsIds: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["droplet_neighbors_ids"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ reservedIPs_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description Field to sort results by. Possible values are `created_at`, `updated_at`,
+ * `ip`, `id`, and `droplet_id`. Defaults to `id`. Any other value is treated
+ * as `id`.
+ *
+ * Sorting by `droplet_id` orders reserved IPs by the Droplet they are
+ * assigned to. Unassigned reserved IPs (`droplet` is null) sort as the
+ * lowest value, so they are returned first when `sort_direction` is `asc`
+ * and last when it is `desc`.
+ * @example droplet_id
+ */
+ sort?: components["parameters"]["parameters_sort"];
+ /**
+ * @description Direction to sort results. Possible values are `asc` and `desc`. Defaults to `asc`.
+ * @example asc
+ */
+ sort_direction?: components["parameters"]["parameters_sort_direction"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["reserved_ip_list"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ reservedIPs_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["reserved_ip_create"];
+ };
+ };
+ responses: {
+ 202: components["responses"]["reserved_ip_created"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ reservedIPs_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A reserved IP address.
+ * @example 45.55.96.47
+ */
+ reserved_ip: components["parameters"]["reserved_ip"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["reserved_ip"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ reservedIPs_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A reserved IP address.
+ * @example 45.55.96.47
+ */
+ reserved_ip: components["parameters"]["reserved_ip"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ reservedIPsActions_list: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A reserved IP address.
+ * @example 45.55.96.47
+ */
+ reserved_ip: components["parameters"]["reserved_ip"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["reserved_ip_actions"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ reservedIPsActions_post: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A reserved IP address.
+ * @example 45.55.96.47
+ */
+ reserved_ip: components["parameters"]["reserved_ip"];
+ };
+ cookie?: never;
+ };
+ /**
+ * @description The `type` attribute set in the request body will specify the action that
+ * will be taken on the reserved IP.
+ */
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["reserved_ip_action_unassign"] | components["schemas"]["reserved_ip_action_assign"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["reserved_ip_action"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ reservedIPsActions_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A reserved IP address.
+ * @example 45.55.96.47
+ */
+ reserved_ip: components["parameters"]["reserved_ip"];
+ /**
+ * @description A unique numeric ID that can be used to identify and reference an action.
+ * @example 36804636
+ */
+ action_id: components["parameters"]["action_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["reserved_ip_action"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ reservedIPv6_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["reserved_ipv6_list"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ reservedIPv6_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["reserved_ipv6_create"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["reserved_ipv6_create"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ reservedIPv6_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A reserved IPv6 address.
+ * @example 2409:40d0:f7:1017:74b4:3a96:105e:4c6e
+ */
+ reserved_ipv6: components["parameters"]["reserved_ipv6"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["reserved_ipv6"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ reservedIPv6_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A reserved IPv6 address.
+ * @example 2409:40d0:f7:1017:74b4:3a96:105e:4c6e
+ */
+ reserved_ipv6: components["parameters"]["reserved_ipv6"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 422: components["responses"]["unprocessable_entity"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ reservedIPv6Actions_post: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A reserved IPv6 address.
+ * @example 2409:40d0:f7:1017:74b4:3a96:105e:4c6e
+ */
+ reserved_ipv6: components["parameters"]["reserved_ipv6"];
+ };
+ cookie?: never;
+ };
+ /**
+ * @description The `type` attribute set in the request body will specify the action that
+ * will be taken on the reserved IPv6.
+ */
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["reserved_ipv6_action_unassign"] | components["schemas"]["reserved_ipv6_action_assign"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["reserved_ipv6_action"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ byoipPrefixes_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["byoip_prefix_list"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ byoipPrefixes_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["byoip_prefix_create"];
+ };
+ };
+ responses: {
+ 202: components["responses"]["byoip_prefix_create"];
+ 401: components["responses"]["unauthorized"];
+ 422: components["responses"]["unprocessable_entity"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ byoipPrefixes_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier for the BYOIP Prefix.
+ * @example f47ac10b-58cc-4372-a567-0e02b2c3d479
+ */
+ byoip_prefix_uuid: components["parameters"]["byoip_prefix"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["byoip_prefix_get"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 422: components["responses"]["unprocessable_entity"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ byoipPrefixes_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier for the BYOIP Prefix.
+ * @example f47ac10b-58cc-4372-a567-0e02b2c3d479
+ */
+ byoip_prefix_uuid: components["parameters"]["byoip_prefix"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 202: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 422: components["responses"]["unprocessable_entity"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ byoipPrefixes_patch: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a BYOIP prefix.
+ * @example f47ac10b-58cc-4372-a567-0e02b2c3d479
+ */
+ byoip_prefix_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["byoip_prefix_update"];
+ };
+ };
+ responses: {
+ 202: components["responses"]["byoip_prefix_update"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 422: components["responses"]["unprocessable_entity"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ byoipPrefixes_list_resources: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier for the BYOIP Prefix.
+ * @example f47ac10b-58cc-4372-a567-0e02b2c3d479
+ */
+ byoip_prefix_uuid: components["parameters"]["byoip_prefix"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["byoip_prefix_list_resources"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ security_list_scans: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["scans"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ security_create_scan: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 201: components["responses"]["scan"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ security_get_scan: {
+ parameters: {
+ query?: {
+ /**
+ * @description The finding severity level to include.
+ * @example CRITICAL
+ */
+ severity?: components["parameters"]["severity"];
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description The finding type to include.
+ * @example CSPM
+ */
+ type?: string;
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The scan UUID.
+ * @example 497dcba3-ecbf-4587-a2dd-5eb0665e6880
+ */
+ scan_id: components["parameters"]["scan_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["scan"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ security_get_latest_scan: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description The finding severity level to include.
+ * @example CRITICAL
+ */
+ severity?: components["parameters"]["severity"];
+ /**
+ * @description The finding type to include.
+ * @example CSPM
+ */
+ type?: string;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["scan"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ security_create_scan_rule: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": {
+ /**
+ * @description The URN of a resource to exclude from future scans.
+ * @example do:droplet:fe3a2fd7-903d-46e6-ada3-3e4f285fb89d
+ */
+ resource?: string;
+ };
+ };
+ };
+ responses: {
+ 201: components["responses"]["no_content"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ security_list_scan_finding_affected_resources: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The scan UUID.
+ * @example 497dcba3-ecbf-4587-a2dd-5eb0665e6880
+ */
+ scan_id: components["parameters"]["scan_id"];
+ /**
+ * @description The finding UUID.
+ * @example 50e14f43-dd4e-412f-864d-78943ea28d91
+ */
+ finding_uuid: components["parameters"]["finding_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["affected_resources"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ security_list_settings: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["settings"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ security_update_settings_plan: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": {
+ /**
+ * @description Scan coverage for each available plan tier.
+ * @example {
+ * "basic": {
+ * "resources": [
+ * "do:droplet:fe3a2fd7-903d-46e6-ada3-3e4f285fb89d"
+ * ],
+ * "tags": [
+ * "production"
+ * ]
+ * }
+ * }
+ */
+ tier_coverage?: {
+ [key: string]: {
+ /**
+ * @description The URNs of resources to scan for the tier.
+ * @default []
+ * @example [
+ * "do:droplet:fe3a2fd7-903d-46e6-ada3-3e4f285fb89d"
+ * ]
+ */
+ resources?: string[];
+ /**
+ * @description Resource tags to scan for the tier.
+ * @default []
+ * @example [
+ * "production"
+ * ]
+ */
+ tags?: string[];
+ };
+ };
+ };
+ };
+ };
+ responses: {
+ 200: components["responses"]["tier_coverage"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ security_create_suppression: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": {
+ /** @description The rule UUID to suppress for the listed resources. */
+ rule_uuid?: string;
+ /**
+ * @description The URNs of resources to suppress for the rule.
+ * @example [
+ * "do:droplet:fe3a2fd7-903d-46e6-ada3-3e4f285fb89d"
+ * ]
+ */
+ resources?: string[];
+ };
+ };
+ };
+ responses: {
+ 201: components["responses"]["suppressed_resources"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ security_delete_suppression: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The suppression UUID to remove.
+ * @example 5b3b2b2d-5c9c-4a61-9e2f-4d8f80f30a12
+ */
+ suppression_uuid: components["parameters"]["suppression_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ security_list_secrets: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description Whether to include secrets that are pending deletion.
+ * @example false
+ */
+ include_deleted?: components["parameters"]["include_deleted"];
+ /**
+ * @description Only return secrets whose names start with this value.
+ * @example app
+ */
+ name?: components["parameters"]["secret_name_prefix"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["secrets"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ security_create_secret: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": {
+ /**
+ * @description The name of the secret to create.
+ * @example my-database-password
+ */
+ name: string;
+ /**
+ * @description The region where the secret will be stored.
+ * @example nyc3
+ */
+ region: string;
+ /**
+ * @description Key-value pairs to store in the secret.
+ * @example {
+ * "password": "s3cr3t"
+ * }
+ */
+ values: {
+ [key: string]: string;
+ };
+ };
+ };
+ };
+ responses: {
+ 200: components["responses"]["create_secret"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 409: components["responses"]["conflict"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ security_get_secret: {
+ parameters: {
+ query: {
+ /**
+ * @description The region where the secret is stored.
+ * @example nyc3
+ */
+ region: components["parameters"]["secret_region"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The name of the secret.
+ * @example my-database-password
+ */
+ secret: components["parameters"]["secret"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["secret"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ security_update_secret: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of the secret.
+ * @example my-database-password
+ */
+ secret: components["parameters"]["secret"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": {
+ /**
+ * @description The region where the secret is stored.
+ * @example nyc3
+ */
+ region: string;
+ /**
+ * Format: int32
+ * @description The current version of the secret to update.
+ * @example 1
+ */
+ version: number;
+ /**
+ * @description Updated key-value pairs for the secret.
+ * @example {
+ * "password": "n3w-s3cr3t"
+ * }
+ */
+ values: {
+ [key: string]: string;
+ };
+ };
+ };
+ };
+ responses: {
+ 200: components["responses"]["create_secret"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 409: components["responses"]["conflict"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ security_delete_secret: {
+ parameters: {
+ query: {
+ /**
+ * @description The region where the secret is stored.
+ * @example nyc3
+ */
+ region: components["parameters"]["secret_region"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The name of the secret.
+ * @example my-database-password
+ */
+ secret: components["parameters"]["secret"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 409: components["responses"]["conflict"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ security_list_secret_versions: {
+ parameters: {
+ query: {
+ /**
+ * @description The region where the secret is stored.
+ * @example nyc3
+ */
+ region: components["parameters"]["secret_region"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The name of the secret.
+ * @example my-database-password
+ */
+ secret: components["parameters"]["secret"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["secret_versions"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ security_post_restore_secret: {
+ parameters: {
+ query: {
+ /**
+ * @description The region where the secret is stored.
+ * @example nyc3
+ */
+ region: components["parameters"]["secret_region"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The name of the secret.
+ * @example my-database-password
+ */
+ secret: components["parameters"]["secret"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["secret_list_item"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 409: components["responses"]["conflict"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ sizes_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description Filter sizes with an inclusive minimum CPU count
+ * @example 4
+ */
+ cpu_minimum?: components["parameters"]["cpu_minimum"];
+ /**
+ * @description Filter sizes with an inclusive maximum CPU count
+ * @example 4
+ */
+ cpu_maximum?: components["parameters"]["cpu_maximum"];
+ /**
+ * @description Filter sizes with an inclusive minimum GPU count
+ * @example 1
+ */
+ gpu_minimum?: components["parameters"]["gpu_minimum"];
+ /**
+ * @description Filter sizes with an inclusive maximum GPU count. Zero is allowed to filter to sizes without GPUs.
+ * @example 8
+ */
+ gpu_maximum?: components["parameters"]["gpu_maximum"];
+ /**
+ * @description Filter sizes to those with a given GPU fabric setting
+ * @example true
+ */
+ gpu_fabric?: components["parameters"]["gpu_fabric"];
+ /**
+ * @description Filter sizes with an inclusive minimum memory amount (in megabytes)
+ * @example 1024
+ */
+ memory_minimum?: components["parameters"]["memory_minimum"];
+ /**
+ * @description Filter sizes with an inclusive maximum memory amount (in megabytes)
+ * @example 1024
+ */
+ memory_maximum?: components["parameters"]["memory_maximum"];
+ /**
+ * @description Filter sizes with an inclusive minimum hourly price (in USD)
+ * @example 0.50
+ */
+ price_hourly_minimum?: components["parameters"]["price_hourly_minimum"];
+ /**
+ * @description Filter sizes with an inclusive maximum hourly price (in USD)
+ * @example 1.00
+ */
+ price_hourly_maximum?: components["parameters"]["price_hourly_maximum"];
+ /**
+ * @description Filter sizes with an inclusive minimum monthly price (in USD)
+ * @example 5.00
+ */
+ price_monthly_minimum?: components["parameters"]["price_monthly_minimum"];
+ /**
+ * @description Filter sizes with an inclusive maximum monthly price (in USD)
+ * @example 10.00
+ */
+ price_monthly_maximum?: components["parameters"]["price_monthly_maximum"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_sizes"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ snapshots_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description Used to filter snapshots by a resource type.
+ * @example droplet
+ */
+ resource_type?: components["parameters"]["snapshot_resource_type"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["snapshots"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ snapshots_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Either the ID of an existing snapshot. This will be an integer for a Droplet snapshot or a string for a volume snapshot.
+ * @example 6372321
+ */
+ snapshot_id: components["parameters"]["snapshot_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["snapshots_existing"];
+ 400: components["responses"]["not_a_snapshot"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ snapshots_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Either the ID of an existing snapshot. This will be an integer for a Droplet snapshot or a string for a volume snapshot.
+ * @example 6372321
+ */
+ snapshot_id: components["parameters"]["snapshot_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 400: components["responses"]["not_a_snapshot"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ snapshots_delete_region: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Either the ID of an existing snapshot. This will be an integer for a Droplet snapshot or a string for a volume snapshot.
+ * @example 6372321
+ */
+ snapshot_id: components["parameters"]["snapshot_id"];
+ /**
+ * @description The slug of the region from which to delete the snapshot's copy.
+ * @example fra1
+ */
+ region: components["parameters"]["parameters_region-3"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 400: components["responses"]["invalid_region"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 422: components["responses"]["cannot_delete_original_region"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ spacesKey_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description The field to sort by.
+ * @example created_at
+ */
+ sort?: components["parameters"]["parameters_sort-2"];
+ /**
+ * @description The direction to sort by. Possible values are `asc` or `desc`.
+ * @example desc
+ */
+ sort_direction?: components["parameters"]["parameters_sort_direction-2"];
+ /**
+ * @description The access key's name.
+ * @example my-access-key
+ */
+ name?: components["parameters"]["parameters_name-2"];
+ /**
+ * @description The bucket's name.
+ * @example my-bucket
+ */
+ bucket?: components["parameters"]["bucket"];
+ /**
+ * @description The permission of the access key. Possible values are `read`, `readwrite`, `fullaccess`, or an empty string.
+ * @example read
+ */
+ permission?: components["parameters"]["permission"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["key_list"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ spacesKey_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["key"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["key_create"];
+ 400: components["responses"]["bad_request-3"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ spacesKey_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The access key's ID.
+ * @example DOACCESSKEYEXAMPLE
+ */
+ access_key: components["parameters"]["access_key_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["key_get"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ spacesKey_update: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The access key's ID.
+ * @example DOACCESSKEYEXAMPLE
+ */
+ access_key: components["parameters"]["access_key_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["key"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["key_update"];
+ 400: components["responses"]["bad_request-3"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ spacesKey_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The access key's ID.
+ * @example DOACCESSKEYEXAMPLE
+ */
+ access_key: components["parameters"]["access_key_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ spacesKey_patch: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The access key's ID.
+ * @example DOACCESSKEYEXAMPLE
+ */
+ access_key: components["parameters"]["access_key_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["key"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["key_update"];
+ 400: components["responses"]["bad_request-3"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ tags_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["tags_all"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ tags_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["tags"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["tags_new"];
+ 400: components["responses"]["tags_bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ tags_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of the tag. Tags may contain letters, numbers, colons, dashes, and underscores. There is a limit of 255 characters per tag.
+ * @example awesome
+ */
+ tag_id: components["parameters"]["tag_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["tags_existing"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ tags_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of the tag. Tags may contain letters, numbers, colons, dashes, and underscores. There is a limit of 255 characters per tag.
+ * @example awesome
+ */
+ tag_id: components["parameters"]["tag_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ tags_assign_resources: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of the tag. Tags may contain letters, numbers, colons, dashes, and underscores. There is a limit of 255 characters per tag.
+ * @example awesome
+ */
+ tag_id: components["parameters"]["tag_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["tags_resource"];
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ tags_unassign_resources: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The name of the tag. Tags may contain letters, numbers, colons, dashes, and underscores. There is a limit of 255 characters per tag.
+ * @example awesome
+ */
+ tag_id: components["parameters"]["tag_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["tags_resource"];
+ };
+ };
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vectorDatabases_list: {
+ parameters: {
+ query?: {
+ /** @example 1 */
+ page?: number;
+ /** @example 1 */
+ per_page?: number;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["vectordbListVectorDBsResponse"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vectorDatabases_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["vectordbCreateVectorDBRequest"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 201: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["vectordbCreateVectorDBResponse"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vectorDatabases_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description ID of the vector database.
+ * @example "example string"
+ */
+ id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["vectordbGetVectorDBResponse"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vectorDatabases_update: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description ID of the vector database.
+ * @example "example string"
+ */
+ id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["vectordbUpdateVectorDBRequest"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["vectordbUpdateVectorDBResponse"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vectorDatabases_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description ID of the vector database.
+ * @example "example string"
+ */
+ id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 204: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vectorDatabases_list_backups: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Required. ID of the vector database.
+ * @example "example string"
+ */
+ id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["vectordbListBackupsResponse"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vectorDatabases_get_restore_status: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Required. ID of the vector database.
+ * @example "example string"
+ */
+ id: string;
+ /**
+ * @description Required. ID of the backup being restored.
+ * @example "example string"
+ */
+ backup_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["vectordbGetRestoreStatusResponse"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vectorDatabases_post_restore_backup: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Required. ID of the vector database.
+ * @example "example string"
+ */
+ id: string;
+ /**
+ * @description Required. ID of the backup to restore from.
+ * @example "example string"
+ */
+ backup_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["vectordbRestoreBackupRequest"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["vectordbRestoreBackupResponse"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vectorDatabases_get_credentials: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description ID of the vector database.
+ * @example "example string"
+ */
+ id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["vectordbGetVectorDBAdminCredentialsResponse"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vectorDatabases_post_resize: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Required. ID of the vector database to resize.
+ * @example "example string"
+ */
+ id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["vectordbResizeVectorDBRequest"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["vectordbResizeVectorDBResponse"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vectorDatabases_update_tags: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Required. ID of the vector database to update tags for.
+ * @example "example string"
+ */
+ id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["vectordbUpdateVectorDBTagsRequest"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["vectordbUpdateVectorDBTagsResponse"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ volumes_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description The block storage volume's name.
+ * @example example
+ */
+ name?: components["parameters"]["volume_name"];
+ /**
+ * @description The slug identifier for the region where the resource is available.
+ * @example nyc3
+ */
+ region?: components["parameters"]["parameters_region-4"];
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["volumes"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ volumes_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["volumes_ext4"] | components["schemas"]["volumes_xfs"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["volume"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ volumes_delete_byName: {
+ parameters: {
+ query?: {
+ /**
+ * @description The block storage volume's name.
+ * @example example
+ */
+ name?: components["parameters"]["volume_name"];
+ /**
+ * @description The slug identifier for the region where the resource is available.
+ * @example nyc3
+ */
+ region?: components["parameters"]["parameters_region-4"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ volumeActions_post: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["volume_action_post_attach"] | components["schemas"]["volume_action_post_detach"];
+ };
+ };
+ responses: {
+ 202: components["responses"]["volumeAction"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ volumeSnapshots_get_byId: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier for the snapshot.
+ * @example fbe805e8-866b-11e6-96bf-000f53315a41
+ */
+ snapshot_id: components["parameters"]["volume_snapshot_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["volumeSnapshot"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ volumeSnapshots_delete_byId: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier for the snapshot.
+ * @example fbe805e8-866b-11e6-96bf-000f53315a41
+ */
+ snapshot_id: components["parameters"]["volume_snapshot_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ volumes_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The ID of the block storage volume.
+ * @example 7724db7c-e098-11e5-b522-000f53304e51
+ */
+ volume_id: components["parameters"]["volume_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["volume"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ volumes_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The ID of the block storage volume.
+ * @example 7724db7c-e098-11e5-b522-000f53304e51
+ */
+ volume_id: components["parameters"]["volume_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ volumeActions_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The ID of the block storage volume.
+ * @example 7724db7c-e098-11e5-b522-000f53304e51
+ */
+ volume_id: components["parameters"]["volume_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["volumeActions"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ volumeActions_post_byId: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The ID of the block storage volume.
+ * @example 7724db7c-e098-11e5-b522-000f53304e51
+ */
+ volume_id: components["parameters"]["volume_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["volume_action_post_attach"] | components["schemas"]["volume_action_post_detach"] | components["schemas"]["volume_action_post_resize"];
+ };
+ };
+ responses: {
+ 202: components["responses"]["volumeAction"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ volumeActions_get: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The ID of the block storage volume.
+ * @example 7724db7c-e098-11e5-b522-000f53304e51
+ */
+ volume_id: components["parameters"]["volume_id"];
+ /**
+ * @description A unique numeric ID that can be used to identify and reference an action.
+ * @example 36804636
+ */
+ action_id: components["parameters"]["action_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["volumeAction"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ volumeSnapshots_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The ID of the block storage volume.
+ * @example 7724db7c-e098-11e5-b522-000f53304e51
+ */
+ volume_id: components["parameters"]["volume_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["volumeSnapshots"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ volumeSnapshots_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The ID of the block storage volume.
+ * @example 7724db7c-e098-11e5-b522-000f53304e51
+ */
+ volume_id: components["parameters"]["volume_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ /**
+ * @example {
+ * "name": "big-data-snapshot1475261774"
+ * }
+ */
+ "application/json": {
+ /**
+ * @description A human-readable name for the volume snapshot.
+ * @example big-data-snapshot1475261774
+ */
+ name: string;
+ tags?: components["schemas"]["tags_array"];
+ };
+ };
+ };
+ responses: {
+ 201: components["responses"]["volumeSnapshot"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcs_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_vpcs"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcs_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": WithRequired & WithRequired;
+ };
+ };
+ responses: {
+ 201: components["responses"]["existing_vpc"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcs_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a VPC.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ vpc_id: components["parameters"]["vpc_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["existing_vpc"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcs_update: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a VPC.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ vpc_id: components["parameters"]["vpc_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": WithRequired & components["schemas"]["vpc_default"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["existing_vpc"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcs_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a VPC.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ vpc_id: components["parameters"]["vpc_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcs_patch: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a VPC.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ vpc_id: components["parameters"]["vpc_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["vpc_updatable"] & components["schemas"]["vpc_default"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["existing_vpc"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcs_list_members: {
+ parameters: {
+ query?: {
+ /**
+ * @description Used to filter VPC members by a resource type.
+ * @example droplet
+ */
+ resource_type?: components["parameters"]["vpc_resource_type"];
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a VPC.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ vpc_id: components["parameters"]["vpc_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["vpc_members"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcs_list_peerings: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a VPC.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ vpc_id: components["parameters"]["vpc_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["vpc_peerings"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcs_create_peerings: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a VPC.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ vpc_id: components["parameters"]["vpc_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": {
+ /**
+ * @description The name of the VPC peering. Must be unique and may only contain alphanumeric characters, dashes, and periods.
+ * @example nyc1-blr1-peering
+ */
+ name: string;
+ /**
+ * Format: uuid
+ * @description The ID of the VPC to peer with.
+ * @example c140286f-e6ce-4131-8b7b-df4590ce8d6a
+ */
+ vpc_id: string;
+ };
+ };
+ };
+ responses: {
+ 202: components["responses"]["vpc_peering"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcs_patch_peerings: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a VPC.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ vpc_id: components["parameters"]["vpc_id"];
+ /**
+ * @description A unique identifier for a VPC peering.
+ * @example 5a4981aa-9653-4bd1-bef5-d6bff52042e4
+ */
+ vpc_peering_id: components["parameters"]["vpc_peering_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": WithRequired;
+ };
+ };
+ responses: {
+ 200: components["responses"]["vpc_peering"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcRoutes_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier of the VPC.
+ * @example 997615ce-132d-4bae-9270-9ee21b395e5d
+ */
+ vpc_uuid: components["parameters"]["vpc_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_vpc_routes"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcSubnets_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier of the VPC to which the subnet belongs.
+ * @example 997615ce-132d-4bae-9270-9ee21b395e5d
+ */
+ vpc_uuid: components["parameters"]["parameters_vpc_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_vpc_subnets"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcSubnets_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier of the VPC to which the subnet belongs.
+ * @example 997615ce-132d-4bae-9270-9ee21b395e5d
+ */
+ vpc_uuid: components["parameters"]["parameters_vpc_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["vpc_subnet_create"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["single_vpc_subnet"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcSubnets_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier of the VPC to which the subnet belongs.
+ * @example 997615ce-132d-4bae-9270-9ee21b395e5d
+ */
+ vpc_uuid: components["parameters"]["parameters_vpc_uuid"];
+ /**
+ * @description The unique identifier of a VPC subnet.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ subnet_uuid: components["parameters"]["subnet_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["single_vpc_subnet"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcSubnets_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier of the VPC to which the subnet belongs.
+ * @example 997615ce-132d-4bae-9270-9ee21b395e5d
+ */
+ vpc_uuid: components["parameters"]["parameters_vpc_uuid"];
+ /**
+ * @description The unique identifier of a VPC subnet.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ subnet_uuid: components["parameters"]["subnet_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcSubnets_update: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier of the VPC to which the subnet belongs.
+ * @example 997615ce-132d-4bae-9270-9ee21b395e5d
+ */
+ vpc_uuid: components["parameters"]["parameters_vpc_uuid"];
+ /**
+ * @description The unique identifier of a VPC subnet.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ subnet_uuid: components["parameters"]["subnet_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["vpc_subnet_update"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["single_vpc_subnet"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcSubnets_list_members: {
+ parameters: {
+ query?: {
+ /**
+ * @description Used to filter VPC subnet members by resource type.
+ * @example droplet
+ */
+ resource_type?: components["parameters"]["resource_type"];
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier of the VPC to which the subnet belongs.
+ * @example 997615ce-132d-4bae-9270-9ee21b395e5d
+ */
+ vpc_uuid: components["parameters"]["parameters_vpc_uuid"];
+ /**
+ * @description The unique identifier of a VPC subnet.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ subnet_uuid: components["parameters"]["subnet_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["vpc_subnet_members"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcSubnetRoutes_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier of the VPC.
+ * @example 997615ce-132d-4bae-9270-9ee21b395e5d
+ */
+ vpc_uuid: components["parameters"]["vpc_uuid"];
+ /**
+ * @description The unique identifier of the VPC subnet.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ subnet_uuid: components["parameters"]["parameters_subnet_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_vpc_subnet_routes"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcSubnetRoutes_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier of the VPC.
+ * @example 997615ce-132d-4bae-9270-9ee21b395e5d
+ */
+ vpc_uuid: components["parameters"]["vpc_uuid"];
+ /**
+ * @description The unique identifier of the VPC subnet.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ subnet_uuid: components["parameters"]["parameters_subnet_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["route_create"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["single_route"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 422: components["responses"]["unprocessable_entity"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcSubnetRoutes_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier of the VPC.
+ * @example 997615ce-132d-4bae-9270-9ee21b395e5d
+ */
+ vpc_uuid: components["parameters"]["vpc_uuid"];
+ /**
+ * @description The unique identifier of the VPC subnet.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ subnet_uuid: components["parameters"]["parameters_subnet_uuid"];
+ /**
+ * @description The unique identifier of the route.
+ * @example f0e1d2c3-b4a5-6789-0fed-cba987654321
+ */
+ route_uuid: components["parameters"]["route_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcSubnetRoutes_update: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier of the VPC.
+ * @example 997615ce-132d-4bae-9270-9ee21b395e5d
+ */
+ vpc_uuid: components["parameters"]["vpc_uuid"];
+ /**
+ * @description The unique identifier of the VPC subnet.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ subnet_uuid: components["parameters"]["parameters_subnet_uuid"];
+ /**
+ * @description The unique identifier of the route.
+ * @example f0e1d2c3-b4a5-6789-0fed-cba987654321
+ */
+ route_uuid: components["parameters"]["route_uuid"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["route_update"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["single_route"];
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 422: components["responses"]["unprocessable_entity"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcPeerings_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description The slug identifier for the region where the resource is available.
+ * @example nyc3
+ */
+ region?: components["parameters"]["parameters_region-4"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_vpc_peerings"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcPeerings_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": WithRequired & WithRequired;
+ };
+ };
+ responses: {
+ 202: components["responses"]["provisioning_vpc_peering"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcPeerings_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a VPC peering.
+ * @example 5a4981aa-9653-4bd1-bef5-d6bff52042e4
+ */
+ vpc_peering_id: components["parameters"]["vpc_peering_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["active_vpc_peering"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcPeerings_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a VPC peering.
+ * @example 5a4981aa-9653-4bd1-bef5-d6bff52042e4
+ */
+ vpc_peering_id: components["parameters"]["vpc_peering_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 202: components["responses"]["deleting_vpc_peering"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcPeerings_patch: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a VPC peering.
+ * @example 5a4981aa-9653-4bd1-bef5-d6bff52042e4
+ */
+ vpc_peering_id: components["parameters"]["vpc_peering_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": WithRequired;
+ };
+ };
+ responses: {
+ 200: components["responses"]["active_vpc_peering"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcnatgateways_list: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ /**
+ * @description The current state of the VPC NAT gateway.
+ * @example active
+ */
+ state?: components["parameters"]["vpc_nat_gateway_state"];
+ /**
+ * @description The region where the VPC NAT gateway is located.
+ * @example tor1
+ */
+ region?: components["parameters"]["vpc_nat_gateway_region"];
+ /**
+ * @description The type of the VPC NAT gateway.
+ * @example public
+ */
+ type?: components["parameters"]["vpc_nat_gateway_type"];
+ /**
+ * @description The name of the VPC NAT gateway.
+ * @example my-vpc-nat-gateway
+ */
+ name?: components["parameters"]["vpc_nat_gateway_name"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["vpc_nat_gateways"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcnatgateways_create: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["vpc_nat_gateway_create"];
+ };
+ };
+ responses: {
+ 202: components["responses"]["vpc_nat_gateway_create"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcnatgateways_get: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier of the VPC NAT gateway.
+ * @example 70e1b58d-cdec-4e95-b3ee-2d4d95feff51
+ */
+ id: components["parameters"]["vpc_nat_gateway_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["vpc_nat_gateway"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcnatgateways_update: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier of the VPC NAT gateway.
+ * @example 70e1b58d-cdec-4e95-b3ee-2d4d95feff51
+ */
+ id: components["parameters"]["vpc_nat_gateway_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["vpc_nat_gateway_update"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["vpc_nat_gateway_update"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ vpcnatgateways_delete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The unique identifier of the VPC NAT gateway.
+ * @example 70e1b58d-cdec-4e95-b3ee-2d4d95feff51
+ */
+ id: components["parameters"]["vpc_nat_gateway_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 202: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ uptime_list_checks: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_checks"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ uptime_create_check: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": WithRequired;
+ };
+ };
+ responses: {
+ 201: components["responses"]["existing_check"];
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ uptime_get_check: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a check.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ check_id: components["parameters"]["check_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["existing_check"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ uptime_update_check: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a check.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ check_id: components["parameters"]["check_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["check_updatable"];
+ };
+ };
+ responses: {
+ 200: components["responses"]["existing_check"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ uptime_delete_check: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a check.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ check_id: components["parameters"]["check_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ uptime_get_checkState: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a check.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ check_id: components["parameters"]["check_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["existing_check_state"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ uptime_list_alerts: {
+ parameters: {
+ query?: {
+ /**
+ * @description Number of items returned per page
+ * @example 2
+ */
+ per_page?: components["parameters"]["parameters_per_page"];
+ /**
+ * @description Which 'page' of paginated results to return.
+ * @example 1
+ */
+ page?: components["parameters"]["page"];
+ };
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a check.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ check_id: components["parameters"]["check_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["all_alerts"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ uptime_create_alert: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a check.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ check_id: components["parameters"]["check_id"];
+ };
+ cookie?: never;
+ };
+ /**
+ * @description The ''type'' field dictates the type of alert, and hence what type of value to pass into the threshold property.
+ * Type | Description | Threshold Value
+ * -----|-------------|--------------------
+ * `latency` | alerts on the response latency | milliseconds
+ * `down` | alerts on a target registering as down in any region | N/A (Not required)
+ * `down_global` | alerts on a target registering as down globally | N/A (Not required)
+ * `ssl_expiry` | alerts on a SSL certificate expiring within $threshold days | days
+ */
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["alert"];
+ };
+ };
+ responses: {
+ 201: components["responses"]["existing_alert"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ uptime_get_alert: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a check.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ check_id: components["parameters"]["check_id"];
+ /**
+ * @description A unique identifier for an alert.
+ * @example 17f0f0ae-b7e5-4ef6-86e3-aa569db58284
+ */
+ alert_id: components["parameters"]["parameters_alert_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 200: components["responses"]["existing_alert"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ uptime_update_alert: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a check.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ check_id: components["parameters"]["check_id"];
+ /**
+ * @description A unique identifier for an alert.
+ * @example 17f0f0ae-b7e5-4ef6-86e3-aa569db58284
+ */
+ alert_id: components["parameters"]["parameters_alert_id"];
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": WithRequired;
+ };
+ };
+ responses: {
+ 200: components["responses"]["existing_alert"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ uptime_delete_alert: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for a check.
+ * @example 4de7ac8b-495b-4884-9a69-1050c6793cd6
+ */
+ check_id: components["parameters"]["check_id"];
+ /**
+ * @description A unique identifier for an alert.
+ * @example 17f0f0ae-b7e5-4ef6-86e3-aa569db58284
+ */
+ alert_id: components["parameters"]["parameters_alert_id"];
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ 204: components["responses"]["no_content"];
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_agents: {
+ parameters: {
+ query?: {
+ /**
+ * @description Only list agents that are deployed.
+ * @example true
+ */
+ only_deployed?: boolean;
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListAgentsOutputPublic"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_agent: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCreateAgentInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCreateAgentOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_agent_api_keys: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ };
+ header?: never;
+ path: {
+ /**
+ * @description Agent id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ agent_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListAgentAPIKeysOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_agent_api_key: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Agent id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ agent_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCreateAgentAPIKeyInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCreateAgentAPIKeyOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_update_agent_api_key: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Agent id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ agent_uuid: string;
+ /**
+ * @description API key ID
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ api_key_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiUpdateAgentAPIKeyInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiUpdateAgentAPIKeyOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_delete_agent_api_key: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for your agent.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ agent_uuid: string;
+ /**
+ * @description API key for an agent.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ api_key_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiDeleteAgentAPIKeyOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_regenerate_agent_api_key: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Agent id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ agent_uuid: string;
+ /**
+ * @description API key ID
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ api_key_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiRegenerateAgentAPIKeyOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_attach_agent_function: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Agent id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ agent_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiLinkAgentFunctionInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiLinkAgentFunctionOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_update_agent_function: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Agent id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ agent_uuid: string;
+ /**
+ * @description Function id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ function_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiUpdateAgentFunctionInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiUpdateAgentFunctionOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_detach_agent_function: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The id of the agent the function route belongs to.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ agent_uuid: string;
+ /**
+ * @description The function route to be destroyed. This does not destroy the function itself.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ function_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiUnlinkAgentFunctionOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_attach_agent_guardrails: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The UUID of the agent.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ agent_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiLinkAgentGuardrailsInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiLinkAgentGuardrailOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_detach_agent_guardrail: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The UUID of the agent.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ agent_uuid: string;
+ /**
+ * @description The UUID of the guardrail to detach.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ guardrail_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiUnlinkAgentGuardrailOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_attach_knowledge_bases: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for an agent.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ agent_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiLinkKnowledgeBaseOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_attach_knowledge_base: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for an agent.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ agent_uuid: string;
+ /**
+ * @description A unique identifier for a knowledge base.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ knowledge_base_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiLinkKnowledgeBaseOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_detach_knowledge_base: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Agent id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ agent_uuid: string;
+ /**
+ * @description Knowledge base id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ knowledge_base_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiUnlinkKnowledgeBaseOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_update_attached_agent: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for the parent agent.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ parent_agent_uuid: string;
+ /**
+ * @description Routed agent id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ child_agent_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiUpdateLinkedAgentInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiUpdateLinkedAgentOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_attach_agent: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for the parent agent.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ parent_agent_uuid: string;
+ /**
+ * @description Routed agent id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ child_agent_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiLinkAgentInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiLinkAgentOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_detach_agent: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Pagent agent id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ parent_agent_uuid: string;
+ /**
+ * @description Routed agent id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ child_agent_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiUnlinkAgentOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_agent: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Unique agent id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetAgentOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_update_agent: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Unique agent id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiUpdateAgentInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiUpdateAgentOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_delete_agent: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Unique agent id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiDeleteAgentOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_agent_children: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Agent id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetChildrenOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_update_agent_deployment_visibility: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Unique id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiUpdateAgentDeploymentVisibilityInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiUpdateAgentDeploymentVisbilityOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_agent_usage: {
+ parameters: {
+ query?: {
+ /**
+ * @description Return all usage data from this date.
+ * @example "example string"
+ */
+ start?: string;
+ /**
+ * @description Return all usage data up to this date, if omitted, will return up to the current date.
+ * @example "example string"
+ */
+ stop?: string;
+ };
+ header?: never;
+ path: {
+ /**
+ * @description Agent id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetAgentUsageOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_agent_versions: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ };
+ header?: never;
+ path: {
+ /**
+ * @description Agent uuid
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListAgentVersionsOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_rollback_to_agent_version: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Agent unique identifier
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiRollbackToAgentVersionInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiRollbackToAgentVersionOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_anthropic_api_keys: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListAnthropicAPIKeysOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_anthropic_api_key: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCreateAnthropicAPIKeyInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCreateAnthropicAPIKeyOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_anthropic_api_key: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description API key ID
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ api_key_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetAnthropicAPIKeyOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_update_anthropic_api_key: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description API key ID
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ api_key_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiUpdateAnthropicAPIKeyInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiUpdateAnthropicAPIKeyOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_delete_anthropic_api_key: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description API key ID
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ api_key_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiDeleteAnthropicAPIKeyOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_agents_by_anthropic_key: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ };
+ header?: never;
+ path: {
+ /**
+ * @description Unique ID of Anthropic key
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListAgentsByAnthropicKeyOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_custom_models: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page number for pagination.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Number of items per page.
+ * @example 1
+ */
+ per_page?: number;
+ /**
+ * @description Filter by model status.
+ * @example STATUS_UNSPECIFIED
+ */
+ status?: "STATUS_UNSPECIFIED" | "STATUS_IMPORTING" | "STATUS_READY" | "STATUS_FAILED" | "STATUS_DELETED";
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListCustomModelsOutputPublic"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_import_custom_model: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiImportCustomModelInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiImportCustomModelOutputPublic"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_custom_model: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the custom model to retrieve
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetCustomModelOutputPublic"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_delete_custom_model: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the custom model to delete
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiDeleteCustomModelOutputPublic"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_update_custom_model_metadata: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the custom model to update
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiUpdateCustomModelMetadataInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiUpdateCustomModelMetadataOutputPublic"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_evaluation_datasets: {
+ parameters: {
+ query?: {
+ /**
+ * @description Filter by evaluation dataset type.
+ * @example EVALUATION_DATASET_TYPE_UNKNOWN
+ */
+ dataset_type?: "EVALUATION_DATASET_TYPE_UNKNOWN" | "EVALUATION_DATASET_TYPE_MODEL";
+ /**
+ * @description Filter by evaluation dataset paradigm (row/content shape).
+ * @example EVALUATION_DATASET_PARADIGM_SINGLE_TURN
+ */
+ dataset_paradigm?: components["schemas"]["apiEvaluationDatasetParadigm"];
+ /**
+ * @description Filter by whether the dataset includes ground-truth values.
+ * @example true
+ */
+ has_ground_truth?: boolean;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListEvaluationDatasetsOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_evaluation_dataset: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCreateEvaluationDatasetInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCreateEvaluationDatasetOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_evaluation_dataset_file_upload_presigned_urls: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCreateDataSourceFileUploadPresignedUrlsInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCreateDataSourceFileUploadPresignedUrlsOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_delete_evaluation_dataset: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the evaluation dataset to delete.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ dataset_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiDeleteEvaluationDatasetOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_evaluation_dataset_download_url: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the evaluation dataset.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ dataset_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetEvaluationDatasetDownloadURLOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_evaluation_metrics: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListEvaluationMetricsOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_custom_evaluation_metric: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCreateCustomEvaluationMetricInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCreateCustomEvaluationMetricOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_update_custom_evaluation_metric: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the custom metric to update.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ metric_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiUpdateCustomEvaluationMetricInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiUpdateCustomEvaluationMetricOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_delete_custom_evaluation_metric: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the custom metric to delete.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ metric_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiDeleteCustomEvaluationMetricOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_run_evaluation_test_case: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiRunEvaluationTestCaseInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiRunEvaluationTestCaseOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_evaluation_run: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Evaluation run UUID.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ evaluation_run_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetEvaluationRunOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_evaluation_run_results: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ };
+ header?: never;
+ path: {
+ /**
+ * @description Evaluation run UUID.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ evaluation_run_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetEvaluationRunResultsOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_evaluation_run_prompt_results: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Evaluation run UUID.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ evaluation_run_uuid: string;
+ /**
+ * @description Prompt ID to get results for.
+ * @example 1
+ */
+ prompt_id: number;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetEvaluationRunPromptResultsOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_evaluation_test_cases: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListEvaluationTestCasesOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_evaluation_test_case: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCreateEvaluationTestCaseInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCreateEvaluationTestCaseOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_evaluation_runs_by_test_case: {
+ parameters: {
+ query?: {
+ /**
+ * @description Version of the test case.
+ * @example 1
+ */
+ evaluation_test_case_version?: number;
+ };
+ header?: never;
+ path: {
+ /**
+ * @description Evaluation run UUID.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ evaluation_test_case_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListEvaluationRunsByTestCaseOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_evaluation_test_case: {
+ parameters: {
+ query?: {
+ /**
+ * @description Version of the test case.
+ * @example 1
+ */
+ evaluation_test_case_version?: number;
+ };
+ header?: never;
+ path: {
+ /**
+ * @description The test case uuid to retrieve.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ test_case_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetEvaluationTestCaseOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_update_evaluation_test_case: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Test-case UUID to update
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ test_case_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiUpdateEvaluationTestCaseInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiUpdateEvaluationTestCaseOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_indexing_jobs: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListKnowledgeBaseIndexingJobsOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_indexing_job: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiStartKnowledgeBaseIndexingJobInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiStartKnowledgeBaseIndexingJobOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_indexing_job_data_sources: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Uuid of the indexing job
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ indexing_job_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListIndexingJobDataSourcesOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_indexing_job_details_signed_url: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The uuid of the indexing job
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ indexing_job_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetIndexingJobDetailsSignedURLOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_indexing_job: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Indexing job id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetKnowledgeBaseIndexingJobOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_cancel_indexing_job: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description A unique identifier for an indexing job.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCancelKnowledgeBaseIndexingJobInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCancelKnowledgeBaseIndexingJobOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_knowledge_bases: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListKnowledgeBasesOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_knowledge_base: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCreateKnowledgeBaseInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCreateKnowledgeBaseOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_data_source_file_upload_presigned_urls: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCreateDataSourceFileUploadPresignedUrlsInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCreateDataSourceFileUploadPresignedUrlsOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_knowledge_base_data_sources: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ };
+ header?: never;
+ path: {
+ /**
+ * @description Knowledge base id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ knowledge_base_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListKnowledgeBaseDataSourcesOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_knowledge_base_data_source: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Knowledge base id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ knowledge_base_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCreateKnowledgeBaseDataSourceInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCreateKnowledgeBaseDataSourceOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_update_knowledge_base_data_source: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Knowledge Base ID (Path Parameter)
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ knowledge_base_uuid: string;
+ /**
+ * @description Data Source ID (Path Parameter)
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ data_source_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiUpdateKnowledgeBaseDataSourceInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiUpdateKnowledgeBaseDataSourceOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_delete_knowledge_base_data_source: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Knowledge base id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ knowledge_base_uuid: string;
+ /**
+ * @description Data source id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ data_source_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiDeleteKnowledgeBaseDataSourceOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_indexing_jobs_by_knowledge_base: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Knowledge base uuid in string
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ knowledge_base_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListKnowledgeBaseIndexingJobsOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_knowledge_base: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Knowledge base id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetKnowledgeBaseOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_update_knowledge_base: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Knowledge base id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiUpdateKnowledgeBaseInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiUpdateKnowledgeBaseOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_delete_knowledge_base: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Knowledge base id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiDeleteKnowledgeBaseOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_model_eval_dataset_upload_presigned_urls: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCreateModelEvalDatasetUploadPresignedUrlsInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCreateDataSourceFileUploadPresignedUrlsOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_model_evaluation_metrics: {
+ parameters: {
+ query?: {
+ /**
+ * @description When set, only return metrics compatible with this turn type.
+ * @example EVALUATION_METRIC_TURN_TYPE_MULTI_TURN
+ */
+ turn_type?: components["schemas"]["apiEvaluationMetricTurnType"];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListModelEvaluationMetricsOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_model_evaluation_presets: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListModelEvaluationPresetsOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_model_evaluation_preset: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the evaluation preset.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ eval_preset_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetModelEvaluationPresetOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_delete_model_evaluation_preset: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the evaluation preset to delete.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ eval_preset_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiDeleteModelEvaluationPresetOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_model_evaluation_runs: {
+ parameters: {
+ query?: {
+ /**
+ * @description UUID of the evaluation preset to filter by.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ eval_preset_uuid?: string;
+ /**
+ * @description Filter by evaluation run status.
+ * @example MODEL_EVALUATION_RUN_STATUS_UNSPECIFIED
+ */
+ status?: "MODEL_EVALUATION_RUN_STATUS_UNSPECIFIED" | "MODEL_EVALUATION_RUN_QUEUED" | "MODEL_EVALUATION_RUN_RUNNING_DATASET" | "MODEL_EVALUATION_RUN_EVALUATING_RESULTS" | "MODEL_EVALUATION_RUN_CANCELLING" | "MODEL_EVALUATION_RUN_CANCELLED" | "MODEL_EVALUATION_RUN_SUCCESSFUL" | "MODEL_EVALUATION_RUN_PARTIALLY_SUCCESSFUL" | "MODEL_EVALUATION_RUN_FAILED";
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ /**
+ * @description Filter by one or more statuses. Empty means no status filter.
+ * @example [
+ * "MODEL_EVALUATION_RUN_STATUS_UNSPECIFIED"
+ * ]
+ */
+ statuses?: ("MODEL_EVALUATION_RUN_STATUS_UNSPECIFIED" | "MODEL_EVALUATION_RUN_QUEUED" | "MODEL_EVALUATION_RUN_RUNNING_DATASET" | "MODEL_EVALUATION_RUN_EVALUATING_RESULTS" | "MODEL_EVALUATION_RUN_CANCELLING" | "MODEL_EVALUATION_RUN_CANCELLED" | "MODEL_EVALUATION_RUN_SUCCESSFUL" | "MODEL_EVALUATION_RUN_PARTIALLY_SUCCESSFUL" | "MODEL_EVALUATION_RUN_FAILED")[];
+ /**
+ * @description Filter by one or more candidate model source types
+ * (serverless, dedicated, router). Empty means no candidate-type filter.
+ * @example [
+ * "CANDIDATE_MODEL_SOURCE_SERVERLESS"
+ * ]
+ */
+ candidate_types?: ("CANDIDATE_MODEL_SOURCE_SERVERLESS" | "CANDIDATE_MODEL_SOURCE_DEDICATED" | "CANDIDATE_MODEL_SOURCE_ROUTER")[];
+ /**
+ * @description Free-text search across the eval run name, candidate model name and
+ * dataset name (case-insensitive substring match). Empty means no search.
+ * @example example string
+ */
+ search?: string;
+ /**
+ * @description Field to sort by. Defaults to creation date when unspecified.
+ * @example MODEL_EVALUATION_RUN_SORT_FIELD_UNSPECIFIED
+ */
+ sort_by?: "MODEL_EVALUATION_RUN_SORT_FIELD_UNSPECIFIED" | "MODEL_EVALUATION_RUN_SORT_FIELD_CREATED_AT" | "MODEL_EVALUATION_RUN_SORT_FIELD_STATUS";
+ /**
+ * @description Sort direction. Defaults to descending when unspecified.
+ * @example SORT_DIRECTION_UNSPECIFIED
+ */
+ sort_direction?: "SORT_DIRECTION_UNSPECIFIED" | "SORT_DIRECTION_ASC" | "SORT_DIRECTION_DESC";
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListModelEvaluationRunsOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_model_evaluation_run: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCreateModelEvaluationRunInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCreateModelEvaluationRunOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_model_evaluation_run: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page number for per-prompt results (defaults to 1).
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Number of per-prompt results per page (defaults to 50).
+ * @example 1
+ */
+ per_page?: number;
+ };
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the evaluation run.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ eval_run_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetModelEvaluationRunOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_delete_model_evaluation_run: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the model evaluation run to delete. The run must be in a terminal
+ * status (`successful`, `partially_successful`, `failed`, or `cancelled`).
+ * For runs still in progress, either wait for the run to finish or cancel
+ * it, then retry the delete.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ eval_run_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiDeleteModelEvaluationRunOutputPublic"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_update_model_evaluation_run: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the model evaluation run to update. Returned by `CreateModelEvaluationRun`
+ * and listed via `ListModelEvaluationRuns`.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ eval_run_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiUpdateModelEvaluationRunInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiUpdateModelEvaluationRunOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_cancel_model_evaluation_run: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the model evaluation run to cancel. Returned by `CreateModelEvaluationRun`
+ * and listed via `ListModelEvaluationRuns`. The run must be in a non-terminal status
+ * (queued, running_dataset, or evaluating_results); already-terminal runs return an
+ * error.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ eval_run_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCancelModelEvaluationRunInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCancelModelEvaluationRunOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_model_evaluation_run_results_download_url: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the evaluation run.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ eval_run_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetModelEvaluationRunResultsDownloadURLOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_models: {
+ parameters: {
+ query?: {
+ /**
+ * @description Include only models defined for the listed usecases.
+ *
+ * - MODEL_USECASE_UNKNOWN: The use case of the model is unknown
+ * - MODEL_USECASE_AGENT: The model maybe used in an agent
+ * - MODEL_USECASE_FINETUNED: The model maybe used for fine tuning
+ * - MODEL_USECASE_KNOWLEDGEBASE: The model maybe used for knowledge bases (embedding models)
+ * - MODEL_USECASE_GUARDRAIL: The model maybe used for guardrails
+ * - MODEL_USECASE_REASONING: The model usecase for reasoning
+ * - MODEL_USECASE_SERVERLESS: The model usecase for serverless inference
+ * @example [
+ * "MODEL_USECASE_UNKNOWN"
+ * ]
+ */
+ usecases?: ("MODEL_USECASE_UNKNOWN" | "MODEL_USECASE_AGENT" | "MODEL_USECASE_FINETUNED" | "MODEL_USECASE_KNOWLEDGEBASE" | "MODEL_USECASE_GUARDRAIL" | "MODEL_USECASE_REASONING" | "MODEL_USECASE_SERVERLESS")[];
+ /**
+ * @description Only include models that are publicly available.
+ * @example true
+ */
+ public_only?: boolean;
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListModelsOutputPublic"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_model_api_keys: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListModelAPIKeysOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_model_api_key: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCreateModelAPIKeyInputPublic"];
+ };
+ };
+ responses: {
+ 401: components["responses"]["unauthorized"];
+ /** @description The endpoint has been retired. */
+ 410: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "gone",
+ * "message": "resource retired: Creating model API keys through this endpoint is retired. Go to manage page in the control panel to create a model access key."
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_update_model_api_key: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description API key ID
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ api_key_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiUpdateModelAPIKeyInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiUpdateModelAPIKeyOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_delete_model_api_key: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description API key for an agent.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ api_key_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiDeleteModelAPIKeyOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_regenerate_model_api_key: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description API key ID
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ api_key_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiRegenerateModelAPIKeyOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_model_catalog: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page number for pagination.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Deprecated. Use `per_page` instead.
+ * @example 1
+ */
+ limit?: number;
+ /**
+ * @description Partial, case-insensitive match on the model's display name.
+ * @example llama
+ */
+ search?: string;
+ /**
+ * @description Filter by model type. Multiple values use OR semantics.
+ * Accepted values: `chat`, `embedding`, `image`, `reasoning`, `coding`, `audio`, `reranking`.
+ * @example [
+ * "chat"
+ * ]
+ */
+ model_type?: string[];
+ /**
+ * @description Filter by model creator/developer. Multiple values use OR semantics.
+ * Values are data-driven; use `available_providers` from the response to discover valid options.
+ * @example [
+ * "Meta"
+ * ]
+ */
+ provider?: string[];
+ /**
+ * @description Filter by deployment availability. Multiple values use OR semantics.
+ * Accepted values: `serverless`, `dedicated`.
+ * @example [
+ * "serverless"
+ * ]
+ */
+ availability?: string[];
+ /**
+ * @description Filter by badge. Multiple values use OR semantics.
+ * Accepted values: `featured`, `new`, `preview`.
+ * @example [
+ * "featured"
+ * ]
+ */
+ badges?: string[];
+ /**
+ * @description Field to sort results by. Default is `MODEL_CATALOG_SORT_BY_CREATED_AT`.
+ *
+ * - MODEL_CATALOG_SORT_BY_CREATED_AT: Default: sort by creation date.
+ * - MODEL_CATALOG_SORT_BY_NAME: Sort by the model's display name (case-insensitive).
+ * - MODEL_CATALOG_SORT_BY_PRICE: Sort by input token price.
+ * @example MODEL_CATALOG_SORT_BY_NAME
+ */
+ sort_by?: "MODEL_CATALOG_SORT_BY_CREATED_AT" | "MODEL_CATALOG_SORT_BY_NAME" | "MODEL_CATALOG_SORT_BY_PRICE";
+ /**
+ * @description Number of items per page. Replaces the deprecated `limit` field.
+ * @example 1
+ */
+ per_page?: number;
+ /**
+ * @description Sort direction. Defaults to descending when unspecified.
+ * @example SORT_DIRECTION_ASC
+ */
+ sort_direction?: "SORT_DIRECTION_UNSPECIFIED" | "SORT_DIRECTION_ASC" | "SORT_DIRECTION_DESC";
+ /**
+ * @description Filter by pre-defined use case. When unspecified, no use-case filter is applied.
+ * Accepted values: `MODEL_CATALOG_USE_CASE_CODING`, `MODEL_CATALOG_USE_CASE_AGENTS`,
+ * `MODEL_CATALOG_USE_CASE_AUDIO`, `MODEL_CATALOG_USE_CASE_IMAGE`,
+ * `MODEL_CATALOG_USE_CASE_EMBEDDING`, `MODEL_CATALOG_USE_CASE_VIDEO`.
+ *
+ * - MODEL_CATALOG_USE_CASE_UNSPECIFIED: No use-case filter applied; return all models.
+ * - MODEL_CATALOG_USE_CASE_CODING: Coding-optimized models: model_type = coding, or usecases include coding,
+ * agentic_coding, or code_generation.
+ * - MODEL_CATALOG_USE_CASE_AGENTS: Agent-building models: usecases include tool_calling, agentic,
+ * agent_platform, agentic_workflows, or agentic_coding.
+ * - MODEL_CATALOG_USE_CASE_AUDIO: Audio models: model_type is audio, or usecases include audio,
+ * text_to_speech, or voice_cloning, or output modalities include audio.
+ * - MODEL_CATALOG_USE_CASE_IMAGE: Image models: model_type is image, or usecases include image_generation,
+ * text_to_image, or ideogram, or output modalities include image.
+ * - MODEL_CATALOG_USE_CASE_VIDEO: Video models: usecases include video_generation or text_to_video, or
+ * output modalities include video.
+ * - MODEL_CATALOG_USE_CASE_EMBEDDING: Embedding and reranking models: model_type is embedding or reranking, or
+ * usecases include vectorization or reranking.
+ * @example MODEL_CATALOG_USE_CASE_CODING
+ */
+ use_case?: "MODEL_CATALOG_USE_CASE_UNSPECIFIED" | "MODEL_CATALOG_USE_CASE_CODING" | "MODEL_CATALOG_USE_CASE_AGENTS" | "MODEL_CATALOG_USE_CASE_AUDIO" | "MODEL_CATALOG_USE_CASE_IMAGE" | "MODEL_CATALOG_USE_CASE_VIDEO" | "MODEL_CATALOG_USE_CASE_EMBEDDING";
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListModelCatalogOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_model_catalog_card: {
+ parameters: {
+ query?: {
+ /**
+ * @description Model identifier used for API calls (e.g., "llama3.1-70b-instruct"). Alternative to UUID lookup.
+ * @example "example string"
+ */
+ model_id?: string;
+ };
+ header?: never;
+ path: {
+ /** @example "example string" */
+ id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetModelCatalogCardOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_model_catalog_v2: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page number for pagination.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Number of items per page.
+ * @example 1
+ */
+ per_page?: number;
+ /**
+ * @description Optional partial, case-insensitive match on the display name or model ID.
+ * Omit this when filtering only by modality, serving, or product.
+ * @example llama
+ */
+ search?: string;
+ /**
+ * @description Filter by where the model is served. Multiple values use OR semantics.
+ *
+ * - MODEL_SERVING_SERVERLESS: Serverless inference.
+ * - MODEL_SERVING_DEDICATED: Dedicated inference.
+ * @example [
+ * "MODEL_SERVING_SERVERLESS"
+ * ]
+ */
+ serving?: ("MODEL_SERVING_UNSPECIFIED" | "MODEL_SERVING_SERVERLESS" | "MODEL_SERVING_DEDICATED")[];
+ /**
+ * @description Filter by badge. Multiple values use OR semantics.
+ *
+ * - MODEL_CATALOG_BADGE_FEATURED: Featured in the catalog.
+ * - MODEL_CATALOG_BADGE_NEW: Newly added.
+ * - MODEL_CATALOG_BADGE_PREVIEW: Preview.
+ * - MODEL_CATALOG_BADGE_DEPRECATING: Scheduled for deprecation.
+ * - MODEL_CATALOG_BADGE_INFERENCE_ROUTER: Inference Router preset.
+ * @example [
+ * "MODEL_CATALOG_BADGE_FEATURED"
+ * ]
+ */
+ badges?: ("MODEL_CATALOG_BADGE_UNSPECIFIED" | "MODEL_CATALOG_BADGE_FEATURED" | "MODEL_CATALOG_BADGE_NEW" | "MODEL_CATALOG_BADGE_PREVIEW" | "MODEL_CATALOG_BADGE_DEPRECATING" | "MODEL_CATALOG_BADGE_INFERENCE_ROUTER")[];
+ /**
+ * @description Require every listed modality as a model input. Multiple values use AND semantics.
+ *
+ * - MODEL_MODALITY_TEXT: plain text
+ * - MODEL_MODALITY_IMAGE: still images
+ * - MODEL_MODALITY_AUDIO: audio
+ * - MODEL_MODALITY_VIDEO: video
+ * - MODEL_MODALITY_EMBEDDING: embedding vectors
+ * - MODEL_MODALITY_RANKING: document ranking scores produced by reranking models
+ * - MODEL_MODALITY_DECISIONS: structured decisions produced by classification models
+ * @example [
+ * "MODEL_MODALITY_TEXT"
+ * ]
+ */
+ input_modality?: ("MODEL_MODALITY_UNSPECIFIED" | "MODEL_MODALITY_TEXT" | "MODEL_MODALITY_IMAGE" | "MODEL_MODALITY_AUDIO" | "MODEL_MODALITY_VIDEO" | "MODEL_MODALITY_EMBEDDING" | "MODEL_MODALITY_RANKING" | "MODEL_MODALITY_DECISIONS")[];
+ /**
+ * @description Require every listed modality as a model output. Multiple values use AND semantics.
+ *
+ * - MODEL_MODALITY_TEXT: plain text
+ * - MODEL_MODALITY_IMAGE: still images
+ * - MODEL_MODALITY_AUDIO: audio
+ * - MODEL_MODALITY_VIDEO: video
+ * - MODEL_MODALITY_EMBEDDING: embedding vectors
+ * - MODEL_MODALITY_RANKING: document ranking scores produced by reranking models
+ * - MODEL_MODALITY_DECISIONS: structured decisions produced by classification models
+ * @example [
+ * "MODEL_MODALITY_TEXT"
+ * ]
+ */
+ output_modality?: ("MODEL_MODALITY_UNSPECIFIED" | "MODEL_MODALITY_TEXT" | "MODEL_MODALITY_IMAGE" | "MODEL_MODALITY_AUDIO" | "MODEL_MODALITY_VIDEO" | "MODEL_MODALITY_EMBEDDING" | "MODEL_MODALITY_RANKING" | "MODEL_MODALITY_DECISIONS")[];
+ /**
+ * @description Filter by product enrollment.
+ *
+ * - MODEL_CATALOG_PRODUCT_EVALUATIONS_JUDGE: Model can judge evaluations.
+ * - MODEL_CATALOG_PRODUCT_HARNESS_RUNTIME: Model is enrolled for the harness runtime.
+ * - MODEL_CATALOG_PRODUCT_EVALUATION_CANDIDATE: Model can be an evaluation or simulation candidate. It serves a text endpoint and accepts and returns text.
+ * @example [
+ * "MODEL_CATALOG_PRODUCT_EVALUATION_CANDIDATE"
+ * ]
+ */
+ product?: ("MODEL_CATALOG_PRODUCT_UNSPECIFIED" | "MODEL_CATALOG_PRODUCT_EVALUATIONS_JUDGE" | "MODEL_CATALOG_PRODUCT_HARNESS_RUNTIME" | "MODEL_CATALOG_PRODUCT_EVALUATION_CANDIDATE")[];
+ /**
+ * @description Require every listed capability. Multiple values use AND semantics.
+ * `coding` matches a coding specialisation, not only models whose type is coding.
+ * @example [
+ * "tool_calling"
+ * ]
+ */
+ capabilities?: string[];
+ /**
+ * @description Include foundation models, Inference Router presets, or both. Omit to return both.
+ *
+ * - MODEL_CATALOG_ITEM_TYPE_MODEL: A foundation or inference model.
+ * - MODEL_CATALOG_ITEM_TYPE_INFERENCE_ROUTER: An Inference Router preset.
+ * @example [
+ * "MODEL_CATALOG_ITEM_TYPE_MODEL"
+ * ]
+ */
+ item_type?: ("MODEL_CATALOG_ITEM_TYPE_UNSPECIFIED" | "MODEL_CATALOG_ITEM_TYPE_MODEL" | "MODEL_CATALOG_ITEM_TYPE_INFERENCE_ROUTER")[];
+ /**
+ * @description Field to sort results by. Default is `MODEL_CATALOG_SORT_BY_CREATED_AT`.
+ *
+ * - MODEL_CATALOG_SORT_BY_CREATED_AT: Sort by creation date.
+ * - MODEL_CATALOG_SORT_BY_NAME: Sort by display name, case-insensitive.
+ * - MODEL_CATALOG_SORT_BY_PRICE: Sort by input token price.
+ * - MODEL_CATALOG_SORT_BY_E2E_LATENCY_P50: Sort by canary end-to-end latency p50, in seconds. Lower is better. Rows without performance data sort after rows with data.
+ * - MODEL_CATALOG_SORT_BY_THROUGHPUT_P50: Sort by canary throughput p50, in tokens per second. Higher is better. Rows without performance data sort after rows with data.
+ * - MODEL_CATALOG_SORT_BY_TTFT_P50: Sort by canary time to first token p50, in seconds. Lower is better. Rows without performance data sort after rows with data.
+ * @example MODEL_CATALOG_SORT_BY_NAME
+ */
+ sort_by?: "MODEL_CATALOG_SORT_BY_CREATED_AT" | "MODEL_CATALOG_SORT_BY_NAME" | "MODEL_CATALOG_SORT_BY_PRICE" | "MODEL_CATALOG_SORT_BY_E2E_LATENCY_P50" | "MODEL_CATALOG_SORT_BY_THROUGHPUT_P50" | "MODEL_CATALOG_SORT_BY_TTFT_P50";
+ /**
+ * @description Sort direction. Defaults to descending when unspecified.
+ * @example SORT_DIRECTION_ASC
+ */
+ sort_direction?: "SORT_DIRECTION_UNSPECIFIED" | "SORT_DIRECTION_ASC" | "SORT_DIRECTION_DESC";
+ /**
+ * @description Filter by model creator or developer, such as Meta or Google. Multiple values use OR semantics
+ * and match case-insensitively. Use `available_creators` in the response to discover valid options.
+ * @example [
+ * "Meta"
+ * ]
+ */
+ creator?: string[];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListModelCatalogV2Output"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_model_catalog_card_v2: {
+ parameters: {
+ query?: {
+ /**
+ * @description Inference model ID, such as `llama3.1-70b-instruct`. Alternative to the catalog ID in the path.
+ * @example llama3.1-70b-instruct
+ */
+ model_id?: string;
+ };
+ header?: never;
+ path: {
+ /**
+ * @description Catalog ID of the model. Use `model_id` instead to look up by the inference model ID.
+ * @example 18bc9b8f-73c5-11f0-b074-4e013e2ddde4
+ */
+ id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetModelCatalogCardV2Output"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_model_routers: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListModelRoutersOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_model_router: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCreateModelRouterInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCreateModelRouterOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_model_router_presets: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListModelRouterPresetsOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_model_router_task_presets: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListModelRouterTaskPresetsOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_model_router: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Model router id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetModelRouterOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_update_model_router: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Model router id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiUpdateModelRouterInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiUpdateModelRouterOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_delete_model_router: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Model router id
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiDeleteModelRouterOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_oauth2_dropbox_tokens: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiDropboxOauth2GetTokensInput"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiDropboxOauth2GetTokensOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_oauth2_url: {
+ parameters: {
+ query?: {
+ /**
+ * @description Type "google" / "dropbox".
+ * @example "example string"
+ */
+ type?: string;
+ /**
+ * @description The redirect url.
+ * @example "example string"
+ */
+ redirect_url?: string;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGenerateOauth2URLOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_openai_api_keys: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListOpenAIAPIKeysOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_openai_api_key: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCreateOpenAIAPIKeyInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCreateOpenAIAPIKeyOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_openai_api_key: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description API key ID
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ api_key_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetOpenAIAPIKeyOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_update_openai_api_key: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description API key ID
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ api_key_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiUpdateOpenAIAPIKeyInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiUpdateOpenAIAPIKeyOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_delete_openai_api_key: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description API key ID
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ api_key_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiDeleteOpenAIAPIKeyOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_agents_by_openai_key: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ };
+ header?: never;
+ path: {
+ /**
+ * @description Unique ID of OpenAI key
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListAgentsByOpenAIKeyOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_datacenter_regions: {
+ parameters: {
+ query?: {
+ /**
+ * @description Include datacenters that serve inference.
+ * @example true
+ */
+ serves_inference?: boolean;
+ /**
+ * @description Include datacenters that are capable of running batch jobs.
+ * @example true
+ */
+ serves_batch?: boolean;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListRegionsOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_scenario_library: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ /**
+ * @description Filter by category (exact match). Empty means no category filter.
+ * @example example string
+ */
+ category?: string;
+ /**
+ * @description Free-text search across name, description, and goal_description
+ * (case-insensitive substring match). Empty means no search.
+ * @example example string
+ */
+ search?: string;
+ /**
+ * @description Field to sort by. Defaults to name when unspecified.
+ *
+ * - SCENARIO_LIBRARY_SORT_FIELD_NAME: Sort by customer-facing name (case-insensitive). Default.
+ * - SCENARIO_LIBRARY_SORT_FIELD_CREATED_AT: Sort by creation date.
+ * @example SCENARIO_LIBRARY_SORT_FIELD_UNSPECIFIED
+ */
+ sort_by?: "SCENARIO_LIBRARY_SORT_FIELD_UNSPECIFIED" | "SCENARIO_LIBRARY_SORT_FIELD_NAME" | "SCENARIO_LIBRARY_SORT_FIELD_CREATED_AT";
+ /**
+ * @description Sort direction. Defaults to ascending when unspecified.
+ * @example SORT_DIRECTION_UNSPECIFIED
+ */
+ sort_direction?: "SORT_DIRECTION_UNSPECIFIED" | "SORT_DIRECTION_ASC" | "SORT_DIRECTION_DESC";
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListScenarioLibraryOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_scenario_set_from_library: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the library entry to copy.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ library_scenario_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCreateScenarioSetFromLibraryInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCreateScenarioSetFromLibraryOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_scenario_library_scenarios: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ /**
+ * @description Free-text search across name, description, and user_persona
+ * (case-insensitive substring match). Empty means no search.
+ * @example example string
+ */
+ search?: string;
+ /**
+ * @description Field to sort by. Defaults to original file order when unspecified.
+ *
+ * - SCENARIO_SORT_FIELD_FILE_ORDER: Preserve original file order. Default.
+ * - SCENARIO_SORT_FIELD_NAME: Sort by scenario name (case-insensitive). Empty names sort last.
+ * - SCENARIO_SORT_FIELD_DESCRIPTION: Sort by scenario description (case-insensitive).
+ * @example SCENARIO_SORT_FIELD_UNSPECIFIED
+ */
+ sort_by?: "SCENARIO_SORT_FIELD_UNSPECIFIED" | "SCENARIO_SORT_FIELD_FILE_ORDER" | "SCENARIO_SORT_FIELD_NAME" | "SCENARIO_SORT_FIELD_DESCRIPTION";
+ /**
+ * @description Sort direction. Defaults to ascending when unspecified.
+ * @example SORT_DIRECTION_UNSPECIFIED
+ */
+ sort_direction?: "SORT_DIRECTION_UNSPECIFIED" | "SORT_DIRECTION_ASC" | "SORT_DIRECTION_DESC";
+ };
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the library entry to read.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ library_scenario_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListScenariosOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_scenario_sets: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ /**
+ * @description Filter by one or more statuses. Empty means no status filter.
+ *
+ * - SCENARIO_SET_STATUS_GENERATING: Generation is in progress. The scenarios are not ready yet.
+ * - SCENARIO_SET_STATUS_READY: The scenario set is ready to use.
+ * - SCENARIO_SET_STATUS_FAILED: Generation failed. The scenario set has no readable scenarios.
+ * - SCENARIO_SET_STATUS_CANCELLED: Generation was cancelled before completion.
+ * @example [
+ * "SCENARIO_SET_STATUS_READY"
+ * ]
+ */
+ statuses?: ("SCENARIO_SET_STATUS_UNSPECIFIED" | "SCENARIO_SET_STATUS_GENERATING" | "SCENARIO_SET_STATUS_READY" | "SCENARIO_SET_STATUS_FAILED" | "SCENARIO_SET_STATUS_CANCELLED")[];
+ /**
+ * @description Filter by one or more source kinds. Empty means no source-kind filter.
+ *
+ * - SCENARIO_SET_SOURCE_KIND_USER_UPLOAD: Created from uploaded or inline scenarios.
+ * - SCENARIO_SET_SOURCE_KIND_GOAL_GENERATED: Produced by goal-driven generation.
+ * - SCENARIO_SET_SOURCE_KIND_LIBRARY: Copied from a platform-curated library entry.
+ * - SCENARIO_SET_SOURCE_KIND_SIGNAL_GENERATED: Produced from a completed Signals export.
+ * @example [
+ * "SCENARIO_SET_SOURCE_KIND_USER_UPLOAD"
+ * ]
+ */
+ source_kinds?: ("SCENARIO_SET_SOURCE_KIND_UNSPECIFIED" | "SCENARIO_SET_SOURCE_KIND_USER_UPLOAD" | "SCENARIO_SET_SOURCE_KIND_GOAL_GENERATED" | "SCENARIO_SET_SOURCE_KIND_LIBRARY" | "SCENARIO_SET_SOURCE_KIND_SIGNAL_GENERATED")[];
+ /**
+ * @description Free-text search across name and description
+ * (case-insensitive substring match). Empty means no search.
+ * @example example string
+ */
+ search?: string;
+ /**
+ * @description Field to sort by. Defaults to creation date when unspecified.
+ *
+ * - SCENARIO_SET_SORT_FIELD_CREATED_AT: Sort by creation date. Default.
+ * - SCENARIO_SET_SORT_FIELD_NAME: Sort by customer-supplied name (case-insensitive).
+ * - SCENARIO_SET_SORT_FIELD_STATUS: Sort by status using lifecycle order (generating → ready → terminal).
+ * - SCENARIO_SET_SORT_FIELD_SCENARIO_COUNT: Sort by scenario_count.
+ * - SCENARIO_SET_SORT_FIELD_UPDATED_AT: Sort by last update date.
+ * @example SCENARIO_SET_SORT_FIELD_UNSPECIFIED
+ */
+ sort_by?: "SCENARIO_SET_SORT_FIELD_UNSPECIFIED" | "SCENARIO_SET_SORT_FIELD_CREATED_AT" | "SCENARIO_SET_SORT_FIELD_NAME" | "SCENARIO_SET_SORT_FIELD_STATUS" | "SCENARIO_SET_SORT_FIELD_SCENARIO_COUNT" | "SCENARIO_SET_SORT_FIELD_UPDATED_AT";
+ /**
+ * @description Sort direction. Defaults to descending when unspecified.
+ * @example SORT_DIRECTION_UNSPECIFIED
+ */
+ sort_direction?: "SORT_DIRECTION_UNSPECIFIED" | "SORT_DIRECTION_ASC" | "SORT_DIRECTION_DESC";
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListScenarioSetsOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_scenario_set: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCreateScenarioSetInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCreateScenarioSetOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_scenario_set_upload_presigned_urls: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCreateScenarioSetUploadPresignedUrlsInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCreateDataSourceFileUploadPresignedUrlsOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_generated_scenario_set: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiGenerateScenarioSetInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGenerateScenarioSetOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_scenario_set: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the scenario set.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ scenario_set_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetScenarioSetOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_update_scenario_set: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the scenario set to update. Returned by `CreateScenarioSet`
+ * and listed via `ListScenarioSets`.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ scenario_set_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiUpdateScenarioSetInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiUpdateScenarioSetOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_delete_scenario_set: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the scenario set to delete. Returned by `CreateScenarioSet`
+ * and listed via `ListScenarioSets`. A set still referenced by a
+ * simulation run cannot be deleted.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ scenario_set_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiDeleteScenarioSetOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_scenario_set_download_url: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the scenario set.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ scenario_set_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetScenarioSetDownloadURLOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_duplicate_scenario_set: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the scenario set to duplicate.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ scenario_set_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiDuplicateScenarioSetInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiDuplicateScenarioSetOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_scenarios: {
+ parameters: {
+ query?: {
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ /**
+ * @description Free-text search across name, description, and user_persona
+ * (case-insensitive substring match). Empty means no search.
+ * @example example string
+ */
+ search?: string;
+ /**
+ * @description Field to sort by. Defaults to original file order when unspecified.
+ *
+ * - SCENARIO_SORT_FIELD_FILE_ORDER: Preserve original file order. Default.
+ * - SCENARIO_SORT_FIELD_NAME: Sort by scenario name (case-insensitive). Empty names sort last.
+ * - SCENARIO_SORT_FIELD_DESCRIPTION: Sort by scenario description (case-insensitive).
+ * @example SCENARIO_SORT_FIELD_UNSPECIFIED
+ */
+ sort_by?: "SCENARIO_SORT_FIELD_UNSPECIFIED" | "SCENARIO_SORT_FIELD_FILE_ORDER" | "SCENARIO_SORT_FIELD_NAME" | "SCENARIO_SORT_FIELD_DESCRIPTION";
+ /**
+ * @description Sort direction. Defaults to ascending when unspecified.
+ * @example SORT_DIRECTION_UNSPECIFIED
+ */
+ sort_direction?: "SORT_DIRECTION_UNSPECIFIED" | "SORT_DIRECTION_ASC" | "SORT_DIRECTION_DESC";
+ };
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the scenario set to read.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ scenario_set_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListScenariosOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_scheduled_indexing: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCreateScheduledIndexingInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCreateScheduledIndexingOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_scheduled_indexing: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the scheduled indexing entry
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ knowledge_base_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetScheduledIndexingOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_delete_scheduled_indexing: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the scheduled indexing
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiDeleteScheduledIndexingOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_simulation_runs: {
+ parameters: {
+ query?: {
+ /**
+ * @description Optional filter by scenario set.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ scenario_set_uuid?: string;
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ /**
+ * @description Filter by one or more statuses. Empty means no status filter.
+ *
+ * - SIMULATION_RUN_STATUS_PENDING: Accepted and queued, not yet executing.
+ * - SIMULATION_RUN_STATUS_RUNNING: Episodes are executing.
+ * - SIMULATION_RUN_STATUS_SUCCEEDED: All episodes finished successfully.
+ * - SIMULATION_RUN_STATUS_FAILED: The run failed, for example because of a timeout or workflow error.
+ * - SIMULATION_RUN_STATUS_CANCELLED: The run was cancelled.
+ * - SIMULATION_RUN_STATUS_EVALUATING: Episodes finished and an attached evaluation is running. Only reachable
+ * when the create request included evaluation_config. When the evaluation
+ * reaches a terminal status, its outcome is reflected in the simulation run
+ * status.
+ * - SIMULATION_RUN_STATUS_PARTIALLY_SUCCESSFUL: The simulation or its attached evaluation completed with a mixture of
+ * successful and failed results.
+ * @example [
+ * "SIMULATION_RUN_STATUS_RUNNING"
+ * ]
+ */
+ statuses?: ("SIMULATION_RUN_STATUS_UNSPECIFIED" | "SIMULATION_RUN_STATUS_PENDING" | "SIMULATION_RUN_STATUS_RUNNING" | "SIMULATION_RUN_STATUS_SUCCEEDED" | "SIMULATION_RUN_STATUS_FAILED" | "SIMULATION_RUN_STATUS_CANCELLED" | "SIMULATION_RUN_STATUS_EVALUATING" | "SIMULATION_RUN_STATUS_PARTIALLY_SUCCESSFUL")[];
+ /**
+ * @description Free-text search across the run name and scenario set name
+ * (case-insensitive substring match). Empty means no search.
+ * @example example string
+ */
+ search?: string;
+ /**
+ * @description Field to sort by. Defaults to creation date when unspecified.
+ *
+ * - SIMULATION_RUN_SORT_FIELD_CREATED_AT: Sort by creation date. Default.
+ * - SIMULATION_RUN_SORT_FIELD_NAME: Sort by customer-supplied run name (case-insensitive).
+ * - SIMULATION_RUN_SORT_FIELD_STATUS: Sort by status using lifecycle order (pending → running → terminal).
+ * - SIMULATION_RUN_SORT_FIELD_UPDATED_AT: Sort by last update date.
+ * @example SIMULATION_RUN_SORT_FIELD_UNSPECIFIED
+ */
+ sort_by?: "SIMULATION_RUN_SORT_FIELD_UNSPECIFIED" | "SIMULATION_RUN_SORT_FIELD_CREATED_AT" | "SIMULATION_RUN_SORT_FIELD_NAME" | "SIMULATION_RUN_SORT_FIELD_STATUS" | "SIMULATION_RUN_SORT_FIELD_UPDATED_AT";
+ /**
+ * @description Sort direction. Defaults to descending when unspecified.
+ * @example SORT_DIRECTION_UNSPECIFIED
+ */
+ sort_direction?: "SORT_DIRECTION_UNSPECIFIED" | "SORT_DIRECTION_ASC" | "SORT_DIRECTION_DESC";
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListSimulationRunsOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_simulation_run: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCreateSimulationRunInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCreateSimulationRunOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_simulation_run: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the simulation run.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ run_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetSimulationRunOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_update_simulation_run: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the simulation run to update. Returned by `CreateSimulationRun`
+ * and listed via `ListSimulationRuns`.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ run_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiUpdateSimulationRunInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiUpdateSimulationRunOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_delete_simulation_run: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the simulation run to delete. The run must be in a terminal
+ * status. For runs still in progress, cancel the run first, then retry
+ * the delete.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ run_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiDeleteSimulationRunOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_patch_cancel_simulation_run: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the simulation run to cancel. Returned by `CreateSimulationRun`
+ * and listed via `ListSimulationRuns`. The run must be in a non-terminal
+ * status; already-terminal runs return an error.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ run_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCancelSimulationRunInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCancelSimulationRunOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_simulation_episodes: {
+ parameters: {
+ query?: {
+ /**
+ * @description Optional filter by scenario.
+ * @example 123e4567-e89b-12d3-a456-426614174000
+ */
+ scenario_uuid?: string;
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ /**
+ * @description Filter by one or more statuses. Empty means no status filter.
+ *
+ * - SIMULATION_EPISODE_STATUS_RUNNING: The episode is executing and a trajectory is available to retrieve.
+ * - SIMULATION_EPISODE_STATUS_FINISHED: The episode reached a stop condition and produced a verdict.
+ * - SIMULATION_EPISODE_STATUS_FAILED: The episode failed because of a cancel, timeout, or error.
+ * - SIMULATION_EPISODE_STATUS_PREPARING: The episode is allocated but its trajectory is not available yet.
+ * @example [
+ * "SIMULATION_EPISODE_STATUS_FINISHED"
+ * ]
+ */
+ statuses?: ("SIMULATION_EPISODE_STATUS_UNSPECIFIED" | "SIMULATION_EPISODE_STATUS_RUNNING" | "SIMULATION_EPISODE_STATUS_FINISHED" | "SIMULATION_EPISODE_STATUS_FAILED" | "SIMULATION_EPISODE_STATUS_PREPARING")[];
+ /**
+ * @description Filter by one or more verdicts. Empty means no verdict filter.
+ *
+ * - SIMULATION_EPISODE_VERDICT_SUCCESS: The candidate agent satisfied the scenario's stopping criteria.
+ * - SIMULATION_EPISODE_VERDICT_FAILURE: The candidate agent did not satisfy the stopping criteria.
+ * - SIMULATION_EPISODE_VERDICT_INCONCLUSIVE: No conclusive verdict (e.g. max_turns reached without the judge finishing).
+ * @example [
+ * "SIMULATION_EPISODE_VERDICT_SUCCESS"
+ * ]
+ */
+ verdicts?: ("SIMULATION_EPISODE_VERDICT_UNSPECIFIED" | "SIMULATION_EPISODE_VERDICT_SUCCESS" | "SIMULATION_EPISODE_VERDICT_FAILURE" | "SIMULATION_EPISODE_VERDICT_INCONCLUSIVE")[];
+ /**
+ * @description Free-text search across scenario_uuid and session_id
+ * (case-insensitive substring match). Empty means no search.
+ * @example example string
+ */
+ search?: string;
+ /**
+ * @description Field to sort by. Defaults to scenario ordering when unspecified.
+ *
+ * - SIMULATION_EPISODE_SORT_FIELD_SCENARIO: Sort by scenario_uuid then episode_index. Default.
+ * - SIMULATION_EPISODE_SORT_FIELD_CREATED_AT: Sort by creation date.
+ * - SIMULATION_EPISODE_SORT_FIELD_STATUS: Sort by episode status using lifecycle order.
+ * - SIMULATION_EPISODE_SORT_FIELD_VERDICT: Sort by verdict (nulls last).
+ * @example SIMULATION_EPISODE_SORT_FIELD_UNSPECIFIED
+ */
+ sort_by?: "SIMULATION_EPISODE_SORT_FIELD_UNSPECIFIED" | "SIMULATION_EPISODE_SORT_FIELD_SCENARIO" | "SIMULATION_EPISODE_SORT_FIELD_CREATED_AT" | "SIMULATION_EPISODE_SORT_FIELD_STATUS" | "SIMULATION_EPISODE_SORT_FIELD_VERDICT";
+ /**
+ * @description Sort direction. Defaults to ascending when unspecified.
+ * @example SORT_DIRECTION_UNSPECIFIED
+ */
+ sort_direction?: "SORT_DIRECTION_UNSPECIFIED" | "SORT_DIRECTION_ASC" | "SORT_DIRECTION_DESC";
+ };
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the run whose episodes to list.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ run_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListSimulationEpisodesOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_simulation_episode: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the run the episode belongs to.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ run_uuid: string;
+ /**
+ * @description UUID of the episode.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ episode_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetSimulationEpisodeOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_simulation_episode_trajectory: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the run the episode belongs to.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ run_uuid: string;
+ /**
+ * @description UUID of the episode.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ episode_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetSimulationEpisodeTrajectoryOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_simulation_episode_trajectory_url: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description UUID of the run the episode belongs to.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ run_uuid: string;
+ /**
+ * @description UUID of the episode.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ episode_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetSimulationEpisodeTrajectoryURLOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_workspaces: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListWorkspacesOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_create_workspace: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiCreateWorkspaceInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiCreateWorkspaceOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_get_workspace: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Workspace UUID.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ workspace_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiGetWorkspaceOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_update_workspace: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Workspace UUID.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ workspace_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiUpdateWorkspaceInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiUpdateWorkspaceOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_delete_workspace: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Workspace UUID.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ workspace_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiDeleteWorkspaceOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_agents_by_workspace: {
+ parameters: {
+ query?: {
+ /**
+ * @description Only list agents that are deployed.
+ * @example true
+ */
+ only_deployed?: boolean;
+ /**
+ * @description Page number.
+ * @example 1
+ */
+ page?: number;
+ /**
+ * @description Items per page.
+ * @example 1
+ */
+ per_page?: number;
+ };
+ header?: never;
+ path: {
+ /**
+ * @description Workspace UUID.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ workspace_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListAgentsByWorkspaceOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_update_agents_workspace: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Workspace uuid to move agents to
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ workspace_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: {
+ content: {
+ "application/json": components["schemas"]["apiMoveAgentsToWorkspaceInputPublic"];
+ };
+ };
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiMoveAgentsToWorkspaceOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ genai_list_evaluation_test_cases_by_workspace: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description Workspace UUID.
+ * @example "123e4567-e89b-12d3-a456-426614174000"
+ */
+ workspace_uuid: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A successful response. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["apiListEvaluationTestCasesByWorkspaceOutput"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ inference_create_chat_completion: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["chat_completion_request"];
+ };
+ };
+ responses: {
+ /** @description Successful chat completion. When stream is true, response is sent as Server-Sent Events (text/event-stream); otherwise a single JSON object (application/json) is returned. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["chat_completion_response"];
+ "text/event-stream": components["schemas"]["chat_completion_chunk"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ inference_create_messages: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["messages_create_request"];
+ };
+ };
+ responses: {
+ /** @description Successful generation. When `stream` is true, the body is `text/event-stream` with server-sent event (SSE) payloads; otherwise `application/json` with `CreateMessageResponse`. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["messages_create_response"];
+ "text/event-stream": components["schemas"]["messages_stream_event"];
+ };
+ };
+ /** @description Invalid request body, validation error, or policy rejection. */
+ 400: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["messages_create_error_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ inference_create_embedding: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["embeddings_request"];
+ };
+ };
+ responses: {
+ /** @description Embeddings and usage for the given `input` or `inputs`, in order. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["embeddings_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ agentInference_create_chat_completion: {
+ parameters: {
+ query: {
+ /**
+ * @description Must be set to true for agent-based completion behavior.
+ * @example true
+ */
+ agent: boolean;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["chat_completion_request"];
+ };
+ };
+ responses: {
+ /** @description Successful chat completion. When stream is true, response is sent as Server-Sent Events (text/event-stream); otherwise a single JSON object (application/json) is returned. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["chat_completion_response"];
+ "text/event-stream": components["schemas"]["chat_completion_chunk"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ inference_create_image: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["create_image_request"];
+ };
+ };
+ responses: {
+ /** @description Successful image generation. When stream is true, response is sent as Server-Sent Events (text/event-stream); otherwise a single JSON object (application/json) is returned. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["images_response"];
+ "text/event-stream": components["schemas"]["image_gen_partial_image_event"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ inference_list_models: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description A list of available models. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["list_models_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ inference_create_systemone: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["systemone_request"];
+ };
+ };
+ responses: {
+ /** @description Successful System One evaluation. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["systemone_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 422: components["responses"]["unprocessable_entity"];
+ /** @description The upstream provider (TypeSafe) failed to process the request. This can indicate the provider is unavailable, an upstream authentication or quota issue, or a provider-side server error. */
+ 424: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "failed_dependency",
+ * "message": "the upstream model provider failed to process the request"
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ /** @description The upstream provider response could not be read or decoded. */
+ 502: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "bad_gateway",
+ * "message": "failed to read or decode the upstream provider response"
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ inference_create_response: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["create_response_request"];
+ };
+ };
+ responses: {
+ /** @description Successful response. When stream is true, response is sent as Server-Sent Events (text/event-stream); otherwise a single JSON object (application/json) is returned. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["create_response_response"];
+ "text/event-stream": components["schemas"]["create_response_stream_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ inference_create_async_invoke: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["async_invoke_request"];
+ };
+ };
+ responses: {
+ /** @description The async invocation completed synchronously. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["async_invoke_response"];
+ };
+ };
+ /** @description The async invocation request was accepted. */
+ 202: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["async_invoke_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ inference_create_speech: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["create_speech_request"];
+ };
+ };
+ responses: {
+ /** @description Successful speech generation. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["speech_response"];
+ "audio/mpeg": string;
+ "audio/wav": string;
+ "audio/mp3": string;
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ inference_create_video: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["create_video_request"];
+ };
+ };
+ responses: {
+ /** @description Video generation job accepted. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["video_generation"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ inference_get_video: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The video generation job identifier.
+ * @example video_bGl0ZWxsbTpjdXN0b21fbGxtX3Byb3ZpZGVyOm9wZW5haTttb2RlbF9pZDo7dmlkZW9faWQ6ZGExYjFmYzMtYTM3NC00MmM0LTgxMWMtOWE5NmE3ZWY0OTIz
+ */
+ video_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The video generation job. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["video_generation"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ inference_get_video_content: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The video generation job identifier.
+ * @example video_bGl0ZWxsbTpjdXN0b21fbGxtX3Byb3ZpZGVyOm9wZW5haTttb2RlbF9pZDo7dmlkZW9faWQ6ZGExYjFmYzMtYTM3NC00MmM0LTgxMWMtOWE5NmE3ZWY0OTIz
+ */
+ video_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Binary MP4 content. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "video/mp4": string;
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ inference_create_batch_file: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["batch_file_create_request"];
+ };
+ };
+ responses: {
+ /** @description File intent created. */
+ 201: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["batch_file_create_response"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 422: components["responses"]["unprocessable_entity"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ inference_upload_batch_file: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description Raw JSONL bytes — one request per line. */
+ requestBody: {
+ content: {
+ "application/octet-stream": string;
+ };
+ };
+ responses: {
+ /** @description Upload accepted by object storage. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ 401: components["responses"]["unauthorized"];
+ /** @description Signature mismatch or URL expired. Create a new file intent with `POST /v1/batches/files` and upload again. */
+ 403: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ inference_list_batches: {
+ parameters: {
+ query?: {
+ /**
+ * @description Cursor for pagination. Pass the `last_id` value from the previous response to fetch the next page. Omit for the first page.
+ * @example 7b2e9c1a-6f4d-4d9b-a0f1-5c4b7e2f8a12
+ */
+ after?: string;
+ /**
+ * @description Maximum number of batches to return per page.
+ * @example 20
+ */
+ limit?: number;
+ /**
+ * @description Optional filter restricting results to batches in the given lifecycle state.
+ * @example in_progress
+ */
+ status?: "validating" | "in_progress" | "finalizing" | "completed" | "failed" | "expired" | "cancelling" | "cancelled";
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Page of batch jobs. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["batch_list_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ inference_create_batch: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["batch_create_request"];
+ };
+ };
+ responses: {
+ /** @description Batch job accepted. Poll `GET /v1/batches/{batch_id}` for status. */
+ 201: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["batch"];
+ };
+ };
+ 400: components["responses"]["bad_request"];
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 409: components["responses"]["conflict"];
+ 422: components["responses"]["unprocessable_entity"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ inference_get_batch: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The batch job identifier.
+ * @example 0e9d1d35-3d1e-4d66-9a2f-8c7e0f6b3e21
+ */
+ batch_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description The batch job. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["batch"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ inference_get_batch_results: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The batch job identifier.
+ * @example 0e9d1d35-3d1e-4d66-9a2f-8c7e0f6b3e21
+ */
+ batch_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Presigned download URLs. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["batch_results_response"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ /** @description Results are not yet available. Poll batch status and retry. */
+ 412: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ /**
+ * @example {
+ * "id": "precondition_failed",
+ * "message": "Batch results are not yet available. Retry once the job has completed."
+ * }
+ */
+ "application/json": components["schemas"]["error"];
+ };
+ };
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+ inference_cancel_batch: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /**
+ * @description The batch job identifier.
+ * @example 0e9d1d35-3d1e-4d66-9a2f-8c7e0f6b3e21
+ */
+ batch_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Cancellation accepted. Returns the updated batch job. */
+ 200: {
+ headers: {
+ "ratelimit-limit": components["headers"]["ratelimit-limit"];
+ "ratelimit-remaining": components["headers"]["ratelimit-remaining"];
+ "ratelimit-reset": components["headers"]["ratelimit-reset"];
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["batch"];
+ };
+ };
+ 401: components["responses"]["unauthorized"];
+ 403: components["responses"]["forbidden"];
+ 404: components["responses"]["not_found"];
+ 409: components["responses"]["conflict"];
+ 429: components["responses"]["too_many_requests"];
+ 500: components["responses"]["server_error"];
+ default: components["responses"]["unexpected_error"];
+ };
+ };
+}
+type WithRequired = T & {
+ [P in K]-?: T[P];
+};
diff --git a/packages/server/src/utils/digitalocean.ts b/packages/server/src/utils/digitalocean.ts
index e670f96ca..fc9c7b393 100644
--- a/packages/server/src/utils/digitalocean.ts
+++ b/packages/server/src/utils/digitalocean.ts
@@ -1,4 +1,6 @@
-const DIGITALOCEAN_BASE = "https://api.digitalocean.com/v2";
+import createClient from "openapi-fetch";
+import type { components, paths } from "./digitalocean-api";
+
const DROPLET_IMAGE = "ubuntu-24-04-x64";
export interface DokployPlan {
@@ -9,9 +11,12 @@ export interface DokployPlan {
cpus: number;
memoryGb: number;
storageGb: number;
+ transferTb: number;
}
// Sized by RAM since builds are the main consumer. Region availability differs per size family; "-intel" covers the widest set (incl. fra1).
+export const EXTRA_BANDWIDTH_CENTS_PER_GB = 3;
+
export const DOKPLOY_PLANS: DokployPlan[] = [
{
id: "hobby",
@@ -21,6 +26,7 @@ export const DOKPLOY_PLANS: DokployPlan[] = [
cpus: 1,
memoryGb: 2,
storageGb: 50,
+ transferTb: 2,
},
{
id: "starter",
@@ -30,6 +36,7 @@ export const DOKPLOY_PLANS: DokployPlan[] = [
cpus: 2,
memoryGb: 4,
storageGb: 80,
+ transferTb: 4,
},
{
id: "pro",
@@ -39,6 +46,7 @@ export const DOKPLOY_PLANS: DokployPlan[] = [
cpus: 4,
memoryGb: 8,
storageGb: 160,
+ transferTb: 5,
},
{
id: "business",
@@ -48,54 +56,39 @@ export const DOKPLOY_PLANS: DokployPlan[] = [
cpus: 8,
memoryGb: 16,
storageGb: 320,
+ transferTb: 6,
},
];
-function getHeaders() {
- const token = process.env.DIGITALOCEAN_TOKEN;
- if (!token) throw new Error("DIGITALOCEAN_TOKEN is not set");
- return {
- Authorization: `Bearer ${token}`,
- "Content-Type": "application/json",
- Accept: "application/json",
- };
-}
+const digitalOcean = createClient({
+ baseUrl: "https://api.digitalocean.com",
+ fetch: (request) => fetch(request),
+});
-async function digitalOceanFetch(
- path: string,
- options: RequestInit = {},
-): Promise {
- const res = await fetch(`${DIGITALOCEAN_BASE}${path}`, {
- ...options,
- headers: { ...getHeaders(), ...(options.headers ?? {}) },
- }).catch((err: unknown) => {
- throw new Error(
+digitalOcean.use({
+ onRequest({ request }) {
+ const token = process.env.DIGITALOCEAN_TOKEN;
+ if (!token) throw new Error("DIGITALOCEAN_TOKEN is not set");
+ request.headers.set("Authorization", `Bearer ${token}`);
+ return request;
+ },
+ onError: ({ error }) =>
+ new Error(
"Couldn't reach DigitalOcean, check the network connection and try again",
- { cause: err },
+ { cause: error },
+ ),
+ async onResponse({ request, response }) {
+ if (response.ok) return;
+ const data = await response.json().catch(() => null);
+ const { pathname } = new URL(request.url);
+ throw Object.assign(
+ new Error(
+ `DigitalOcean ${request.method} ${pathname} failed (${response.status}): ${data?.message ?? response.statusText}`,
+ ),
+ { response: { status: response.status, data } },
);
- });
-
- if (!res.ok) {
- let body: unknown;
- try {
- body = await res.json();
- } catch {
- body = await res.text();
- }
- const detail =
- typeof body === "object" && body && "message" in body
- ? String(body.message)
- : JSON.stringify(body);
- const err = new Error(
- `DigitalOcean ${options.method ?? "GET"} ${path.split("?")[0]} failed (${res.status}): ${detail}`,
- ) as Error & { response: { status: number; data: unknown } };
- err.response = { status: res.status, data: body };
- throw err;
- }
-
- if (res.status === 204) return undefined as T;
- return res.json() as Promise;
-}
+ },
+});
export type DigitalOceanRegionContinent =
| "Europe"
@@ -134,16 +127,11 @@ export function getRegionInfo(slug: string) {
}
export async function getDigitalOceanRegions(): Promise {
- const data = await digitalOceanFetch<{
- regions: {
- slug: string;
- name: string;
- available: boolean;
- sizes: string[];
- }[];
- }>("/regions?per_page=200");
+ const { data } = await digitalOcean.GET("/v2/regions", {
+ params: { query: { per_page: 200 } },
+ });
- return data.regions
+ return data!.regions
.filter((r) => r.available && r.slug in REGIONS)
.map((r) => ({
id: r.slug,
@@ -162,75 +150,63 @@ export async function getDigitalOceanRegions(): Promise {
);
}
-export interface DigitalOceanDroplet {
- id: number;
- name: string;
- status: "new" | "active" | "off" | "archive";
- created_at: string;
- region: { slug: string; name: string };
- image: { distribution: string; name: string };
- size_slug: string;
- vpc_uuid: string;
- networks: {
- v4: Array<{ ip_address: string; type: "public" | "private" }>;
- };
-}
+export type DigitalOceanDroplet = components["schemas"]["droplet"];
export async function createDigitalOceanSshKey(params: {
name: string;
publicKey: string;
}): Promise {
- const data = await digitalOceanFetch<{ ssh_key: { id: number } }>(
- "/account/keys",
- {
- method: "POST",
- body: JSON.stringify({ name: params.name, public_key: params.publicKey }),
- },
- );
- return data.ssh_key.id;
+ const { data } = await digitalOcean.POST("/v2/account/keys", {
+ body: { name: params.name, public_key: params.publicKey },
+ });
+ return data!.ssh_key!.id!;
}
export async function deleteDigitalOceanSshKey(id: number): Promise {
- await digitalOceanFetch(`/account/keys/${id}`, { method: "DELETE" });
+ await digitalOcean.DELETE("/v2/account/keys/{ssh_key_identifier}", {
+ params: { path: { ssh_key_identifier: id } },
+ });
}
export async function createDigitalOceanVpc(params: {
name: string;
region: string;
}): Promise {
- const data = await digitalOceanFetch<{ vpc: { id: string } }>("/vpcs", {
- method: "POST",
- body: JSON.stringify({
+ const { data } = await digitalOcean.POST("/v2/vpcs", {
+ body: {
name: params.name,
region: params.region,
description: "Dokploy cloud servers",
- }),
+ },
});
- return data.vpc.id;
+ return data!.vpc!.id!;
}
// DO makes the first VPC created in a region its default, and a default VPC can never be deleted.
export async function ensureDigitalOceanDefaultVpc(region: string) {
+ const perPage = 200;
for (let page = 1; ; page++) {
- const data = await digitalOceanFetch<{
- vpcs: { region: string; default: boolean }[];
- links?: { pages?: { next?: string } };
- }>(`/vpcs?per_page=200&page=${page}`);
- if (data.vpcs.some((v) => v.region === region && v.default)) return;
- if (!data.links?.pages?.next) break;
+ const { data } = await digitalOcean.GET("/v2/vpcs", {
+ params: { query: { per_page: perPage, page } },
+ });
+ const vpcs = data?.vpcs ?? [];
+ if (vpcs.some((v) => v.region === region && v.default)) return;
+ if (vpcs.length < perPage) break;
}
await createDigitalOceanVpc({ name: `default-${region}`, region });
}
export async function getDigitalOceanVpcRange(id: string): Promise {
- const data = await digitalOceanFetch<{ vpc: { ip_range: string } }>(
- `/vpcs/${id}`,
- );
- return data.vpc.ip_range;
+ const { data } = await digitalOcean.GET("/v2/vpcs/{vpc_id}", {
+ params: { path: { vpc_id: id } },
+ });
+ return data!.vpc!.ip_range!;
}
export async function deleteDigitalOceanVpc(id: string): Promise {
- await digitalOceanFetch(`/vpcs/${id}`, { method: "DELETE" });
+ await digitalOcean.DELETE("/v2/vpcs/{vpc_id}", {
+ params: { path: { vpc_id: id } },
+ });
}
export async function createDigitalOceanDroplet(params: {
@@ -242,59 +218,88 @@ export async function createDigitalOceanDroplet(params: {
organizationId: string;
cloudServerId: string;
}): Promise {
- const data = await digitalOceanFetch<{ droplet: DigitalOceanDroplet }>(
- "/droplets",
- {
- method: "POST",
- body: JSON.stringify({
- name: params.name,
- region: params.region,
- size: params.size,
- image: DROPLET_IMAGE,
- vpc_uuid: params.vpcId,
- ssh_keys: [params.sshKeyId],
- monitoring: true,
- tags: [
- "dokploy-managed",
- `org:${params.organizationId}`,
- getCloudServerTag(params.cloudServerId),
- ],
- }),
+ const { data } = await digitalOcean.POST("/v2/droplets", {
+ body: {
+ name: params.name,
+ region: params.region,
+ size: params.size,
+ image: DROPLET_IMAGE,
+ vpc_uuid: params.vpcId,
+ ssh_keys: [params.sshKeyId],
+ monitoring: true,
+ tags: [
+ "dokploy-managed",
+ `org:${params.organizationId}`,
+ getCloudServerTag(params.cloudServerId),
+ ],
},
- );
- await assignDropletToProject(data.droplet.id);
- return data.droplet;
+ });
+ const { droplet } = data as { droplet: DigitalOceanDroplet };
+ await assignDropletToProject(droplet.id);
+ return droplet;
}
-async function assignDropletToProject(dropletId: number | string) {
+async function assignDropletToProject(dropletId: number) {
const projectId = process.env.DIGITALOCEAN_PROJECT_ID;
if (!projectId) return;
- await digitalOceanFetch(`/projects/${projectId}/resources`, {
- method: "POST",
- body: JSON.stringify({ resources: [`do:droplet:${dropletId}`] }),
- }).catch((err) =>
- console.error("[cloud-server] failed to assign droplet to project:", err),
- );
+ await digitalOcean
+ .POST("/v2/projects/{project_id}/resources", {
+ params: { path: { project_id: projectId } },
+ body: { resources: [`do:droplet:${dropletId}`] },
+ })
+ .catch((err) =>
+ console.error("[cloud-server] failed to assign droplet to project:", err),
+ );
}
export async function getDigitalOceanDroplet(
id: string,
): Promise {
- const data = await digitalOceanFetch<{ droplet: DigitalOceanDroplet }>(
- `/droplets/${id}`,
- );
- return data.droplet;
+ const { data } = await digitalOcean.GET("/v2/droplets/{droplet_id}", {
+ params: { path: { droplet_id: Number(id) } },
+ });
+ return data!.droplet!;
}
export async function getDigitalOceanDropletCount(): Promise {
- const data = await digitalOceanFetch<{ meta: { total: number } }>(
- "/droplets?per_page=1",
- );
- return data.meta.total;
+ const { data } = await digitalOcean.GET("/v2/droplets", {
+ params: { query: { per_page: 1 } },
+ });
+ return data!.meta.total!;
}
export async function deleteDigitalOceanDroplet(id: string): Promise {
- await digitalOceanFetch(`/droplets/${id}`, { method: "DELETE" });
+ await digitalOcean.DELETE("/v2/droplets/{droplet_id}", {
+ params: { path: { droplet_id: Number(id) } },
+ });
+}
+
+export async function getDigitalOceanDropletOutboundBytes(
+ dropletId: string,
+ start: Date,
+ end: Date,
+) {
+ const { data } = await digitalOcean.GET(
+ "/v2/monitoring/metrics/droplet/bandwidth",
+ {
+ params: {
+ query: {
+ host_id: dropletId,
+ interface: "public",
+ direction: "outbound",
+ start: String(Math.floor(start.getTime() / 1000)),
+ end: String(Math.floor(end.getTime() / 1000)),
+ },
+ },
+ },
+ );
+ const samples = data!.data.result[0]?.values ?? [];
+ let megabits = 0;
+ for (let i = 1; i < samples.length; i++) {
+ const seconds = Number(samples[i]![0]) - Number(samples[i - 1]![0]);
+ megabits += Number(samples[i]![1]) * seconds;
+ }
+ return Math.round((megabits * 1_000_000) / 8);
}
export function getCloudServerTag(cloudServerId: string) {
@@ -304,21 +309,21 @@ export function getCloudServerTag(cloudServerId: string) {
export async function deleteDigitalOceanDropletsByTag(
tag: string,
): Promise {
- await digitalOceanFetch(`/droplets?tag_name=${encodeURIComponent(tag)}`, {
- method: "DELETE",
+ await digitalOcean.DELETE("/v2/droplets", {
+ params: { query: { tag_name: tag } },
});
}
export function getPrivateIPv4(
droplet: DigitalOceanDroplet,
): string | undefined {
- return droplet.networks.v4.find((ip) => ip.type === "private")?.ip_address;
+ return droplet.networks.v4?.find((ip) => ip.type === "private")?.ip_address;
}
export function getPublicIPv4(
droplet: DigitalOceanDroplet,
): string | undefined {
- return droplet.networks.v4.find((ip) => ip.type === "public")?.ip_address;
+ return droplet.networks.v4?.find((ip) => ip.type === "public")?.ip_address;
}
export type DropletPowerAction =
@@ -327,60 +332,58 @@ export type DropletPowerAction =
| "power_on"
| "power_off";
-export interface DigitalOceanAction {
- id: number;
- status: "in-progress" | "completed" | "errored";
- type: string;
-}
+const toAction = (action: components["schemas"]["action"]) => ({
+ ...action,
+ id: action.id!,
+});
-export async function runDigitalOceanDropletAction(
+const postDropletAction = async (
+ dropletId: string,
+ body: { type: DropletPowerAction | "resize"; size?: string; disk?: boolean },
+) => {
+ const { data } = await digitalOcean.POST(
+ "/v2/droplets/{droplet_id}/actions",
+ {
+ params: { path: { droplet_id: Number(dropletId) } },
+ // The generated type loses the action types the spec maps through a discriminator (reboot, resize...).
+ body: body as never,
+ },
+ );
+ return toAction(data!.action!);
+};
+
+export const runDigitalOceanDropletAction = (
dropletId: string,
type: DropletPowerAction,
-): Promise {
- const data = await digitalOceanFetch<{ action: DigitalOceanAction }>(
- `/droplets/${dropletId}/actions`,
- { method: "POST", body: JSON.stringify({ type }) },
- );
- return data.action;
-}
+) => postDropletAction(dropletId, { type });
export async function getDigitalOceanDropletAction(
dropletId: string,
actionId: number,
-): Promise {
- const data = await digitalOceanFetch<{ action: DigitalOceanAction }>(
- `/droplets/${dropletId}/actions/${actionId}`,
+) {
+ const { data } = await digitalOcean.GET(
+ "/v2/droplets/{droplet_id}/actions/{action_id}",
+ {
+ params: {
+ path: { droplet_id: Number(dropletId), action_id: actionId },
+ },
+ },
);
- return data.action;
+ return toAction(data!.action!);
}
// disk: true also grows the disk to match the plan; DO can't shrink it back, so plans can only go up.
-export async function resizeDigitalOceanDroplet(
- dropletId: string,
- size: string,
-): Promise {
- const data = await digitalOceanFetch<{ action: DigitalOceanAction }>(
- `/droplets/${dropletId}/actions`,
- {
- method: "POST",
- body: JSON.stringify({ type: "resize", size, disk: true }),
- },
- );
- return data.action;
-}
+export const resizeDigitalOceanDroplet = (dropletId: string, size: string) =>
+ postDropletAction(dropletId, { type: "resize", size, disk: true });
-type FirewallProtocol = "tcp" | "udp" | "icmp";
-
-export interface DigitalOceanInboundRule {
- protocol: FirewallProtocol;
- ports?: string;
- sources: { addresses?: string[] };
-}
+export type DigitalOceanInboundRule = NonNullable<
+ components["schemas"]["firewall_rules"]["inbound_rules"]
+>[number];
const ALLOW_ALL_OUTBOUND = (["tcp", "udp", "icmp"] as const).map(
(protocol) => ({
protocol,
- ...(protocol === "icmp" ? {} : { ports: "all" }),
+ ports: protocol === "icmp" ? "0" : "all",
destinations: { addresses: ["0.0.0.0/0", "::/0"] },
}),
);
@@ -389,20 +392,16 @@ const firewallBody = (params: {
name: string;
tag: string;
inboundRules: DigitalOceanInboundRule[];
-}) =>
- JSON.stringify({
- name: params.name,
- tags: [params.tag],
- inbound_rules: params.inboundRules,
- outbound_rules: ALLOW_ALL_OUTBOUND,
- });
+}) => ({
+ name: params.name,
+ tags: [params.tag],
+ inbound_rules: params.inboundRules,
+ outbound_rules: ALLOW_ALL_OUTBOUND,
+});
// DO only creates a tag implicitly when a droplet uses it; firewalls reject tags that don't exist yet.
async function ensureDigitalOceanTag(name: string) {
- await digitalOceanFetch("/tags", {
- method: "POST",
- body: JSON.stringify({ name }),
- });
+ await digitalOcean.POST("/v2/tags", { body: { name } });
}
export async function createDigitalOceanFirewall(params: {
@@ -411,23 +410,17 @@ export async function createDigitalOceanFirewall(params: {
inboundRules: DigitalOceanInboundRule[];
}): Promise {
await ensureDigitalOceanTag(params.tag);
- const data = await digitalOceanFetch<{ firewall: { id: string } }>(
- "/firewalls",
- { method: "POST", body: firewallBody(params) },
- );
- return data.firewall.id;
+ const { data } = await digitalOcean.POST("/v2/firewalls", {
+ body: firewallBody(params),
+ });
+ return data!.firewall!.id!;
}
export async function getDigitalOceanFirewall(id: string) {
- const data = await digitalOceanFetch<{
- firewall: {
- id: string;
- name: string;
- status: "waiting" | "succeeded" | "failed";
- inbound_rules: DigitalOceanInboundRule[];
- };
- }>(`/firewalls/${id}`);
- return data.firewall;
+ const { data } = await digitalOcean.GET("/v2/firewalls/{firewall_id}", {
+ params: { path: { firewall_id: id } },
+ });
+ return data!.firewall!;
}
// DO replaces the whole firewall on PUT, so name, tags and outbound rules have to be sent again.
@@ -439,12 +432,14 @@ export async function updateDigitalOceanFirewall(
inboundRules: DigitalOceanInboundRule[];
},
) {
- await digitalOceanFetch(`/firewalls/${id}`, {
- method: "PUT",
+ await digitalOcean.PUT("/v2/firewalls/{firewall_id}", {
+ params: { path: { firewall_id: id } },
body: firewallBody(params),
});
}
export async function deleteDigitalOceanFirewall(id: string): Promise {
- await digitalOceanFetch(`/firewalls/${id}`, { method: "DELETE" });
+ await digitalOcean.DELETE("/v2/firewalls/{firewall_id}", {
+ params: { path: { firewall_id: id } },
+ });
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 0a4a5d805..71e654001 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -761,6 +761,9 @@ importers:
octokit:
specifier: 3.1.2
version: 3.1.2
+ openapi-fetch:
+ specifier: 0.17.0
+ version: 0.17.0
pino:
specifier: 9.4.0
version: 9.4.0
@@ -1371,24 +1374,28 @@ packages:
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [linux]
+ libc: [musl]
'@biomejs/cli-linux-arm64@2.5.7':
resolution: {integrity: sha512-rR2QE0yF2GYSuYuKIa7pKvODGJqnOH+2eDREAM8wV+mWKSkMQKdAp4zXEZfTaxY8PMoNONnpgSWcBCyLDPDOKg==}
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [linux]
+ libc: [glibc]
'@biomejs/cli-linux-x64-musl@2.5.7':
resolution: {integrity: sha512-rE5VZi+qtmPgQH+l7jVxYoZ18b/TiHEhulhMpjmCZH1PltSbjRcxNWywC3HZ9tYottG7ORkeTtoscBilKSBm0g==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [linux]
+ libc: [musl]
'@biomejs/cli-linux-x64@2.5.7':
resolution: {integrity: sha512-FQgqJhscrqJUFptGaRSUJWlXAExwWcDwLuK49dvKfkQ1bB5SEEyFssnsxQY83Xm6jR0EbbX3+8+D5bfvYqUG2Q==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [linux]
+ libc: [glibc]
'@biomejs/cli-win32-arm64@2.5.7':
resolution: {integrity: sha512-Oq4x0CCwP4jirrcTywXs5kOGZ4v5vuEP+gWrbtjApOA2CL9F3F9GlIdQIci8AKSCa/zURanMRpX/4wQ7Am6hHg==}
@@ -1755,89 +1762,105 @@ packages:
resolution: {integrity: sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==}
cpu: [arm64]
os: [linux]
+ libc: [glibc]
'@img/sharp-libvips-linux-arm@1.3.4':
resolution: {integrity: sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==}
cpu: [arm]
os: [linux]
+ libc: [glibc]
'@img/sharp-libvips-linux-ppc64@1.3.4':
resolution: {integrity: sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==}
cpu: [ppc64]
os: [linux]
+ libc: [glibc]
'@img/sharp-libvips-linux-riscv64@1.3.4':
resolution: {integrity: sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==}
cpu: [riscv64]
os: [linux]
+ libc: [glibc]
'@img/sharp-libvips-linux-s390x@1.3.4':
resolution: {integrity: sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==}
cpu: [s390x]
os: [linux]
+ libc: [glibc]
'@img/sharp-libvips-linux-x64@1.3.4':
resolution: {integrity: sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==}
cpu: [x64]
os: [linux]
+ libc: [glibc]
'@img/sharp-libvips-linuxmusl-arm64@1.3.4':
resolution: {integrity: sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==}
cpu: [arm64]
os: [linux]
+ libc: [musl]
'@img/sharp-libvips-linuxmusl-x64@1.3.4':
resolution: {integrity: sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==}
cpu: [x64]
os: [linux]
+ libc: [musl]
'@img/sharp-linux-arm64@0.35.5':
resolution: {integrity: sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==}
engines: {node: '>=20.9.0'}
cpu: [arm64]
os: [linux]
+ libc: [glibc]
'@img/sharp-linux-arm@0.35.5':
resolution: {integrity: sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==}
engines: {node: '>=20.9.0'}
cpu: [arm]
os: [linux]
+ libc: [glibc]
'@img/sharp-linux-ppc64@0.35.5':
resolution: {integrity: sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==}
engines: {node: '>=20.9.0'}
cpu: [ppc64]
os: [linux]
+ libc: [glibc]
'@img/sharp-linux-riscv64@0.35.5':
resolution: {integrity: sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==}
engines: {node: '>=20.9.0'}
cpu: [riscv64]
os: [linux]
+ libc: [glibc]
'@img/sharp-linux-s390x@0.35.5':
resolution: {integrity: sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==}
engines: {node: '>=20.9.0'}
cpu: [s390x]
os: [linux]
+ libc: [glibc]
'@img/sharp-linux-x64@0.35.5':
resolution: {integrity: sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==}
engines: {node: '>=20.9.0'}
cpu: [x64]
os: [linux]
+ libc: [glibc]
'@img/sharp-linuxmusl-arm64@0.35.5':
resolution: {integrity: sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==}
engines: {node: '>=20.9.0'}
cpu: [arm64]
os: [linux]
+ libc: [musl]
'@img/sharp-linuxmusl-x64@0.35.5':
resolution: {integrity: sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==}
engines: {node: '>=20.9.0'}
cpu: [x64]
os: [linux]
+ libc: [musl]
'@img/sharp-wasm32@0.35.5':
resolution: {integrity: sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==}
@@ -2109,6 +2132,7 @@ packages:
engines: {node: ^22.20 || ^24.12 || >=25}
cpu: [x64]
os: [linux]
+ libc: [glibc]
'@next/env@16.4.6':
resolution: {integrity: sha512-SunBjJ6t+oBtecS3dTjdVuMhUogP5wD/vrGL5EVuQYM1iS4O5ilL51HkiJ3sPjMzRHiCChvr4dbaSJbR7F3lxA==}
@@ -2130,24 +2154,28 @@ packages:
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
+ libc: [glibc]
'@next/swc-linux-arm64-musl@16.4.6':
resolution: {integrity: sha512-7/qPhTxDp2ScluOJOhLuhWmlA17o1yZ0SIgpISBCpBxXgtnK4+KGywBpFkfLPiU1rnSM1faFGzYkH6i7JdTrqA==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
+ libc: [musl]
'@next/swc-linux-x64-gnu@16.4.6':
resolution: {integrity: sha512-oOpbNa8XOW1qCGd9VvzC4fbkkRxEls7/WI6tz+YHC0xRA7KpV1U7DrAnCPjzVyOk/karzWEepCOcTIDmwK8FwQ==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
+ libc: [glibc]
'@next/swc-linux-x64-musl@16.4.6':
resolution: {integrity: sha512-aM8CZ+OR2EwXaAYw7KGkW2GDmNDsLBIRe1MMRZCJPTdw/xhTD0IMUVO4sf3KqrzuRouGzwwLZn34+gFeVXiUQA==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
+ libc: [musl]
'@next/swc-win32-arm64-msvc@16.4.6':
resolution: {integrity: sha512-U0p7/tEtqvHX2crhd841CDwKtp5CFkKXVjOhmfccR3Pvp64sj8KBwRqsvltqLOwVBbj0NtkxwXSDpEHYGbxeXQ==}
@@ -4004,71 +4032,85 @@ packages:
resolution: {integrity: sha512-W1vUprf09RWaVWnsFP1vlUkEWJzTZlpObOEAYZXt9Fq0UVAOYEkeGr7wBX7McKqqIQskXdBnpiOMgwPujordgA==}
cpu: [arm]
os: [linux]
+ libc: [glibc]
'@rollup/rollup-linux-arm-musleabihf@4.65.0':
resolution: {integrity: sha512-s8QTcZWgrl9haFzEGIqyE5BWyo89pFDGLMBFZ752WYxk8DJwNU/O1X6pZgPw829d9/sm6CCHyrMP3aurt76p1Q==}
cpu: [arm]
os: [linux]
+ libc: [musl]
'@rollup/rollup-linux-arm64-gnu@4.65.0':
resolution: {integrity: sha512-ke1f6dLRzkqveyjjF2fkEwQYZvxHtNNwjegY8nJrwcO0Bdqr8CzFO/pKE0Bns13cx0qz2Ba2Y0Hs3dSwMdnHxA==}
cpu: [arm64]
os: [linux]
+ libc: [glibc]
'@rollup/rollup-linux-arm64-musl@4.65.0':
resolution: {integrity: sha512-926SMeUcy4y18Rz/w2aJiUKOnyAnm6czg72bXkQEaeemsll+Wr0hnsjb2BGRpHvWgwAMYy5ACJCotbvfLCfj0A==}
cpu: [arm64]
os: [linux]
+ libc: [musl]
'@rollup/rollup-linux-loong64-gnu@4.65.0':
resolution: {integrity: sha512-6T7JNRP1hc4hqF2dUsEoVLOt9K8tmODoCLldtQRYnrddGGQY8Gqe2pM/qMMUo7EMowpP7oa2N95k0/8sYK/ipw==}
cpu: [loong64]
os: [linux]
+ libc: [glibc]
'@rollup/rollup-linux-loong64-musl@4.65.0':
resolution: {integrity: sha512-SImGFl1Je5kpyAgOCPONVT7h6ASV8mAUwGRjY7eZvVjPg//PfHOXgI+P241RF/+HqsA4PP3qD527ysWFKNQyhQ==}
cpu: [loong64]
os: [linux]
+ libc: [musl]
'@rollup/rollup-linux-ppc64-gnu@4.65.0':
resolution: {integrity: sha512-XeDTbmPF1Yu5asfXGPrMkWoxTDhgryQbmw5Q1+R582O51VNCk23J6f2pDrsAp5YkneBVBwtExx6ZGOb9D2aQ6A==}
cpu: [ppc64]
os: [linux]
+ libc: [glibc]
'@rollup/rollup-linux-ppc64-musl@4.65.0':
resolution: {integrity: sha512-VS55JUI/1nsljmV/jfqNkLZXFw8uMO8nNlfoHmSevNf6fO3neuhyDvx9dv3c/Ytt8r/431SL8Qax1dpYvOMZTg==}
cpu: [ppc64]
os: [linux]
+ libc: [musl]
'@rollup/rollup-linux-riscv64-gnu@4.65.0':
resolution: {integrity: sha512-Vblw84TbX7RS4la1Y4+yQ7aore/oSyaNtFbppuBr5Vs/4LfBeXKq9dIfoExw6zOvRERqd2rRAjnZRaMhH/0x5w==}
cpu: [riscv64]
os: [linux]
+ libc: [glibc]
'@rollup/rollup-linux-riscv64-musl@4.65.0':
resolution: {integrity: sha512-7+gHjtONvKgwR9InTKFaLq53f6YzBJkgeMRBENdWTsQr+spahGqQm8HF5aXpq8i4JaRrOqYyv6Zn1WltDTxaZQ==}
cpu: [riscv64]
os: [linux]
+ libc: [musl]
'@rollup/rollup-linux-s390x-gnu@4.65.0':
resolution: {integrity: sha512-KvNDC0J6s4vVHhtJ6KrDXU0Er0au/hmRIBq/+1maCV8TseGupeKizq0bWcrbp2HE1T8xoknvN0Q/KZ/YF0qX3w==}
cpu: [s390x]
os: [linux]
+ libc: [glibc]
'@rollup/rollup-linux-x64-gnu@4.6.1':
resolution: {integrity: sha512-DNGZvZDO5YF7jN5fX8ZqmGLjZEXIJRdJEdTFMhiyXqyXubBa0WVLDWSNlQ5JR2PNgDbEV1VQowhVRUh+74D+RA==}
cpu: [x64]
os: [linux]
+ libc: [glibc]
'@rollup/rollup-linux-x64-gnu@4.65.0':
resolution: {integrity: sha512-GExdD15WPvu/x/drELjVam7vX8EsPgvTMOa/iJL/p/4m/oOqzbb7JXZg8fXR4hlXtg/sF2zyTZ3bR0AEtEMlhQ==}
cpu: [x64]
os: [linux]
+ libc: [glibc]
'@rollup/rollup-linux-x64-musl@4.65.0':
resolution: {integrity: sha512-8sT9PemIZfIMED4Vd4KGoOXVDj5CMSWNcGdbheRUx9TYS03yOWdT2Q0lXPyEyNBB9YTilwewIQKNIBk6Nxi0Kg==}
cpu: [x64]
os: [linux]
+ libc: [musl]
'@rollup/rollup-openbsd-x64@4.65.0':
resolution: {integrity: sha512-pO6Ehi0jo5yE0R6PltKhJhv9mlIiyzBJk5N5NUF2OF6xtVKI+1bdXxj/rb0jGXy3hck1ELVT0QPY3tzkAm360w==}
@@ -4361,24 +4403,28 @@ packages:
engines: {node: '>= 20'}
cpu: [arm64]
os: [linux]
+ libc: [glibc]
'@tailwindcss/oxide-linux-arm64-musl@4.3.1':
resolution: {integrity: sha512-Bwv9KwOvE0VKa86xPFif9b9c3Y1NxOV1P0gLti/IYaWEsQYZXDlxfGEtA8mdDZ7SG3wyNXAWYT5SIn3giL57oA==}
engines: {node: '>= 20'}
cpu: [arm64]
os: [linux]
+ libc: [musl]
'@tailwindcss/oxide-linux-x64-gnu@4.3.1':
resolution: {integrity: sha512-Ymi8O8T15HYQdOUWUtTI6ldN0neHP85FC+Qz32xTcZ7iJXtem/x8ITev0o1e9e5rkqj4lONZfTRLvkmin1+tKg==}
engines: {node: '>= 20'}
cpu: [x64]
os: [linux]
+ libc: [glibc]
'@tailwindcss/oxide-linux-x64-musl@4.3.1':
resolution: {integrity: sha512-M+P/91qJ6uILLw4k2G93GMDRAXj61SMvFQYt39AqvUqYgExXpLL5aepfns7sj4HiAQeolirQF9E0lzRvdf4zPQ==}
engines: {node: '>= 20'}
cpu: [x64]
os: [linux]
+ libc: [musl]
'@tailwindcss/oxide-wasm32-wasi@4.3.1':
resolution: {integrity: sha512-zsM8uOeqvVGHsAXsJxsT28ttosFahLJKCLOTUBqRAtKnVgGSRitds9T432QiT8b77Yga7JIBkulIRRlJPtYhRA==}
@@ -6883,24 +6929,28 @@ packages:
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [linux]
+ libc: [glibc]
lightningcss-linux-arm64-musl@1.32.0:
resolution: {integrity: sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==}
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [linux]
+ libc: [musl]
lightningcss-linux-x64-gnu@1.32.0:
resolution: {integrity: sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [linux]
+ libc: [glibc]
lightningcss-linux-x64-musl@1.32.0:
resolution: {integrity: sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [linux]
+ libc: [musl]
lightningcss-win32-arm64-msvc@1.32.0:
resolution: {integrity: sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==}
@@ -7514,6 +7564,9 @@ packages:
resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==}
engines: {node: '>=12'}
+ openapi-fetch@0.17.0:
+ resolution: {integrity: sha512-PsbZR1wAPcG91eEthKhN+Zn92FMHxv+/faECIwjXdxfTODGSGegYv0sc1Olz+HYPvKOuoXfp+0pA2XVt2cI0Ig==}
+
openapi-path-templating@2.2.1:
resolution: {integrity: sha512-eN14VrDvl/YyGxxrkGOHkVkWEoPyhyeydOUrbvjoz8K5eIGgELASwN1eqFOJ2CTQMGCy2EntOK1KdtJ8ZMekcg==}
engines: {node: '>=12.20.0'}
@@ -7522,6 +7575,9 @@ packages:
resolution: {integrity: sha512-DPlCms3KKEbjVQb0spV6Awfn6UWNheuG/+folQPzh/wUaKwuqvj8zt5gagD7qoyxtE03cIiKPgLFS3Q8Bz00uQ==}
engines: {node: '>=12.20.0'}
+ openapi-typescript-helpers@0.1.0:
+ resolution: {integrity: sha512-OKTGPthhivLw/fHz6c3OPtg72vi86qaMlqbJuVJ23qOvQ+53uw1n7HdmkJFibloF7QEjDrDkzJiOJuockM/ljw==}
+
openapi3-ts@4.4.0:
resolution: {integrity: sha512-9asTNB9IkKEzWMcHmVZE7Ts3kC9G7AFHfs8i7caD8HbI76gEjdkId4z/AkP83xdZsH7PLAnnbl47qZkXuxpArw==}
@@ -16872,6 +16928,10 @@ snapshots:
is-docker: 2.2.1
is-wsl: 2.2.0
+ openapi-fetch@0.17.0:
+ dependencies:
+ openapi-typescript-helpers: 0.1.0
+
openapi-path-templating@2.2.1:
dependencies:
apg-lite: 1.0.5
@@ -16880,6 +16940,8 @@ snapshots:
dependencies:
apg-lite: 1.0.5
+ openapi-typescript-helpers@0.1.0: {}
+
openapi3-ts@4.4.0:
dependencies:
yaml: 2.8.3