@neon/sdk 0.0.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +178 -0
- package/README.md +349 -0
- package/dist/_virtual/_rolldown/runtime.js +14 -0
- package/dist/client/client/client.gen.d.ts +7 -0
- package/dist/client/client/client.gen.d.ts.map +1 -0
- package/dist/client/client/client.gen.js +176 -0
- package/dist/client/client/client.gen.js.map +1 -0
- package/dist/client/client/index.d.ts +10 -0
- package/dist/client/client/index.js +6 -0
- package/dist/client/client/types.gen.d.ts +124 -0
- package/dist/client/client/types.gen.d.ts.map +1 -0
- package/dist/client/client/types.gen.js +1 -0
- package/dist/client/client/utils.gen.d.ts +42 -0
- package/dist/client/client/utils.gen.d.ts.map +1 -0
- package/dist/client/client/utils.gen.js +179 -0
- package/dist/client/client/utils.gen.js.map +1 -0
- package/dist/client/client.gen.d.ts +18 -0
- package/dist/client/client.gen.d.ts.map +1 -0
- package/dist/client/client.gen.js +8 -0
- package/dist/client/client.gen.js.map +1 -0
- package/dist/client/core/auth.gen.d.ts +29 -0
- package/dist/client/core/auth.gen.d.ts.map +1 -0
- package/dist/client/core/auth.gen.js +12 -0
- package/dist/client/core/auth.gen.js.map +1 -0
- package/dist/client/core/bodySerializer.gen.d.ts +29 -0
- package/dist/client/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/client/core/bodySerializer.gen.js +33 -0
- package/dist/client/core/bodySerializer.gen.js.map +1 -0
- package/dist/client/core/params.gen.d.ts +46 -0
- package/dist/client/core/params.gen.d.ts.map +1 -0
- package/dist/client/core/params.gen.js +65 -0
- package/dist/client/core/params.gen.js.map +1 -0
- package/dist/client/core/pathSerializer.gen.d.ts +52 -0
- package/dist/client/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/client/core/pathSerializer.gen.js +82 -0
- package/dist/client/core/pathSerializer.gen.js.map +1 -0
- package/dist/client/core/queryKeySerializer.gen.d.ts +22 -0
- package/dist/client/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/client/core/queryKeySerializer.gen.js +64 -0
- package/dist/client/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/client/core/serverSentEvents.gen.d.ts +88 -0
- package/dist/client/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/client/core/serverSentEvents.gen.js +95 -0
- package/dist/client/core/serverSentEvents.gen.js.map +1 -0
- package/dist/client/core/types.gen.d.ts +80 -0
- package/dist/client/core/types.gen.d.ts.map +1 -0
- package/dist/client/core/types.gen.js +1 -0
- package/dist/client/core/utils.gen.d.ts +33 -0
- package/dist/client/core/utils.gen.d.ts.map +1 -0
- package/dist/client/core/utils.gen.js +78 -0
- package/dist/client/core/utils.gen.js.map +1 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.js +2 -0
- package/dist/client/sdk.gen.d.ts +1362 -0
- package/dist/client/sdk.gen.d.ts.map +1 -0
- package/dist/client/sdk.gen.js +4315 -0
- package/dist/client/sdk.gen.js.map +1 -0
- package/dist/client/types.gen.d.ts +9938 -0
- package/dist/client/types.gen.d.ts.map +1 -0
- package/dist/client/types.gen.js +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +4 -0
- package/dist/neon/client.d.ts +52 -0
- package/dist/neon/client.d.ts.map +1 -0
- package/dist/neon/client.js +40 -0
- package/dist/neon/client.js.map +1 -0
- package/dist/neon/client.test-d.d.ts +1 -0
- package/dist/neon/client.test-d.js +76 -0
- package/dist/neon/client.test-d.js.map +1 -0
- package/dist/neon/config.d.ts +40 -0
- package/dist/neon/config.d.ts.map +1 -0
- package/dist/neon/config.js +23 -0
- package/dist/neon/config.js.map +1 -0
- package/dist/neon/connection.d.ts +22 -0
- package/dist/neon/connection.d.ts.map +1 -0
- package/dist/neon/connection.js +33 -0
- package/dist/neon/connection.js.map +1 -0
- package/dist/neon/context.d.ts +50 -0
- package/dist/neon/context.d.ts.map +1 -0
- package/dist/neon/context.js +59 -0
- package/dist/neon/context.js.map +1 -0
- package/dist/neon/coverage.d.ts +26 -0
- package/dist/neon/coverage.d.ts.map +1 -0
- package/dist/neon/coverage.js +229 -0
- package/dist/neon/coverage.js.map +1 -0
- package/dist/neon/errors.d.ts +78 -0
- package/dist/neon/errors.d.ts.map +1 -0
- package/dist/neon/errors.js +116 -0
- package/dist/neon/errors.js.map +1 -0
- package/dist/neon/paginate.d.ts +34 -0
- package/dist/neon/paginate.d.ts.map +1 -0
- package/dist/neon/paginate.js +51 -0
- package/dist/neon/paginate.js.map +1 -0
- package/dist/neon/resources/account.d.ts +45 -0
- package/dist/neon/resources/account.d.ts.map +1 -0
- package/dist/neon/resources/account.js +65 -0
- package/dist/neon/resources/account.js.map +1 -0
- package/dist/neon/resources/branches.d.ts +84 -0
- package/dist/neon/resources/branches.d.ts.map +1 -0
- package/dist/neon/resources/branches.js +132 -0
- package/dist/neon/resources/branches.js.map +1 -0
- package/dist/neon/resources/consumption.d.ts +22 -0
- package/dist/neon/resources/consumption.d.ts.map +1 -0
- package/dist/neon/resources/consumption.js +59 -0
- package/dist/neon/resources/consumption.js.map +1 -0
- package/dist/neon/resources/dataapi.d.ts +25 -0
- package/dist/neon/resources/dataapi.d.ts.map +1 -0
- package/dist/neon/resources/dataapi.js +59 -0
- package/dist/neon/resources/dataapi.js.map +1 -0
- package/dist/neon/resources/databases.d.ts +30 -0
- package/dist/neon/resources/databases.d.ts.map +1 -0
- package/dist/neon/resources/databases.js +68 -0
- package/dist/neon/resources/databases.js.map +1 -0
- package/dist/neon/resources/endpoints.d.ts +39 -0
- package/dist/neon/resources/endpoints.d.ts.map +1 -0
- package/dist/neon/resources/endpoints.js +89 -0
- package/dist/neon/resources/endpoints.js.map +1 -0
- package/dist/neon/resources/operations.d.ts +27 -0
- package/dist/neon/resources/operations.d.ts.map +1 -0
- package/dist/neon/resources/operations.js +50 -0
- package/dist/neon/resources/operations.js.map +1 -0
- package/dist/neon/resources/postgres.d.ts +45 -0
- package/dist/neon/resources/postgres.d.ts.map +1 -0
- package/dist/neon/resources/postgres.js +104 -0
- package/dist/neon/resources/postgres.js.map +1 -0
- package/dist/neon/resources/projects.d.ts +84 -0
- package/dist/neon/resources/projects.d.ts.map +1 -0
- package/dist/neon/resources/projects.js +111 -0
- package/dist/neon/resources/projects.js.map +1 -0
- package/dist/neon/resources/roles.d.ts +40 -0
- package/dist/neon/resources/roles.d.ts.map +1 -0
- package/dist/neon/resources/roles.js +78 -0
- package/dist/neon/resources/roles.js.map +1 -0
- package/dist/neon/resources/snapshots.d.ts +86 -0
- package/dist/neon/resources/snapshots.d.ts.map +1 -0
- package/dist/neon/resources/snapshots.js +125 -0
- package/dist/neon/resources/snapshots.js.map +1 -0
- package/dist/neon/result.d.ts +32 -0
- package/dist/neon/result.d.ts.map +1 -0
- package/dist/neon/result.js +26 -0
- package/dist/neon/result.js.map +1 -0
- package/dist/neon/retry.d.ts +17 -0
- package/dist/neon/retry.d.ts.map +1 -0
- package/dist/neon/retry.js +42 -0
- package/dist/neon/retry.js.map +1 -0
- package/dist/neon/wait.d.ts +27 -0
- package/dist/neon/wait.d.ts.map +1 -0
- package/dist/neon/wait.js +70 -0
- package/dist/neon/wait.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@3.0.9/node_modules/@vitest/pretty-format/dist/index.js +879 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@3.0.9/node_modules/@vitest/pretty-format/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.0.9/node_modules/@vitest/runner/dist/chunk-tasks.js +30 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.0.9/node_modules/@vitest/runner/dist/chunk-tasks.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.0.9/node_modules/@vitest/runner/dist/index.js +578 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.0.9/node_modules/@vitest/runner/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +92 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/helpers.js +43 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/helpers.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/index.js +450 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/source-map.js +168 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/source-map.js.map +1 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/branding.js +10 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/branding.js.map +1 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/index.js +109 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/messages.js +10 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/messages.js.map +1 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/overloads.js +10 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/overloads.js.map +1 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/utils.js +10 -0
- package/dist/node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/utils.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js +11 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js +16 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js +11 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js +15 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js +13 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js +34 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js +12 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js +122 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js +39 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js +99 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js +25 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js +14 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js +21 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js +6 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js +12 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js +18 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js +24 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js +9 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js.map +1 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js +30 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js.map +1 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +82 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js.map +1 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js +7 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js.map +1 -0
- package/dist/node_modules/.pnpm/vitest@3.0.9_@types_debug@4.1.13_@types_node@20.19.17_jiti@2.7.0_jsdom@26.1.0_lightning_fb7ae83398b95c49208c9194029bba02/node_modules/vitest/dist/index.js +8 -0
- package/dist/node_modules/.pnpm/vitest@3.0.9_@types_debug@4.1.13_@types_node@20.19.17_jiti@2.7.0_jsdom@26.1.0_lightning_fb7ae83398b95c49208c9194029bba02/node_modules/vitest/dist/index.js.map +1 -0
- package/dist/raw.d.ts +13 -0
- package/dist/raw.d.ts.map +1 -0
- package/dist/raw.js +159 -0
- package/dist/raw.js.map +1 -0
- package/package.json +58 -16
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
//#region src/client/core/serverSentEvents.gen.ts
|
|
2
|
+
function createSseClient({ onRequest, onSseError, onSseEvent, responseTransformer, responseValidator, sseDefaultRetryDelay, sseMaxRetryAttempts, sseMaxRetryDelay, sseSleepFn, url, ...options }) {
|
|
3
|
+
let lastEventId;
|
|
4
|
+
const sleep = sseSleepFn ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
|
|
5
|
+
const createStream = async function* () {
|
|
6
|
+
let retryDelay = sseDefaultRetryDelay ?? 3e3;
|
|
7
|
+
let attempt = 0;
|
|
8
|
+
const signal = options.signal ?? new AbortController().signal;
|
|
9
|
+
while (true) {
|
|
10
|
+
if (signal.aborted) break;
|
|
11
|
+
attempt++;
|
|
12
|
+
const headers = options.headers instanceof Headers ? options.headers : new Headers(options.headers);
|
|
13
|
+
if (lastEventId !== void 0) headers.set("Last-Event-ID", lastEventId);
|
|
14
|
+
try {
|
|
15
|
+
const requestInit = {
|
|
16
|
+
redirect: "follow",
|
|
17
|
+
...options,
|
|
18
|
+
body: options.serializedBody,
|
|
19
|
+
headers,
|
|
20
|
+
signal
|
|
21
|
+
};
|
|
22
|
+
let request = new Request(url, requestInit);
|
|
23
|
+
if (onRequest) request = await onRequest(url, requestInit);
|
|
24
|
+
const response = await (options.fetch ?? globalThis.fetch)(request);
|
|
25
|
+
if (!response.ok) throw new Error(`SSE failed: ${response.status} ${response.statusText}`);
|
|
26
|
+
if (!response.body) throw new Error("No body in SSE response");
|
|
27
|
+
const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();
|
|
28
|
+
let buffer = "";
|
|
29
|
+
const abortHandler = () => {
|
|
30
|
+
try {
|
|
31
|
+
reader.cancel();
|
|
32
|
+
} catch {}
|
|
33
|
+
};
|
|
34
|
+
signal.addEventListener("abort", abortHandler);
|
|
35
|
+
try {
|
|
36
|
+
while (true) {
|
|
37
|
+
const { done, value } = await reader.read();
|
|
38
|
+
if (done) break;
|
|
39
|
+
buffer += value;
|
|
40
|
+
buffer = buffer.replace(/\r\n?/g, "\n");
|
|
41
|
+
const chunks = buffer.split("\n\n");
|
|
42
|
+
buffer = chunks.pop() ?? "";
|
|
43
|
+
for (const chunk of chunks) {
|
|
44
|
+
const lines = chunk.split("\n");
|
|
45
|
+
const dataLines = [];
|
|
46
|
+
let eventName;
|
|
47
|
+
for (const line of lines) if (line.startsWith("data:")) dataLines.push(line.replace(/^data:\s*/, ""));
|
|
48
|
+
else if (line.startsWith("event:")) eventName = line.replace(/^event:\s*/, "");
|
|
49
|
+
else if (line.startsWith("id:")) lastEventId = line.replace(/^id:\s*/, "");
|
|
50
|
+
else if (line.startsWith("retry:")) {
|
|
51
|
+
const parsed = Number.parseInt(line.replace(/^retry:\s*/, ""), 10);
|
|
52
|
+
if (!Number.isNaN(parsed)) retryDelay = parsed;
|
|
53
|
+
}
|
|
54
|
+
let data;
|
|
55
|
+
let parsedJson = false;
|
|
56
|
+
if (dataLines.length) {
|
|
57
|
+
const rawData = dataLines.join("\n");
|
|
58
|
+
try {
|
|
59
|
+
data = JSON.parse(rawData);
|
|
60
|
+
parsedJson = true;
|
|
61
|
+
} catch {
|
|
62
|
+
data = rawData;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (parsedJson) {
|
|
66
|
+
if (responseValidator) await responseValidator(data);
|
|
67
|
+
if (responseTransformer) data = await responseTransformer(data);
|
|
68
|
+
}
|
|
69
|
+
onSseEvent?.({
|
|
70
|
+
data,
|
|
71
|
+
event: eventName,
|
|
72
|
+
id: lastEventId,
|
|
73
|
+
retry: retryDelay
|
|
74
|
+
});
|
|
75
|
+
if (dataLines.length) yield data;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
} finally {
|
|
79
|
+
signal.removeEventListener("abort", abortHandler);
|
|
80
|
+
reader.releaseLock();
|
|
81
|
+
}
|
|
82
|
+
break;
|
|
83
|
+
} catch (error) {
|
|
84
|
+
onSseError?.(error);
|
|
85
|
+
if (sseMaxRetryAttempts !== void 0 && attempt >= sseMaxRetryAttempts) break;
|
|
86
|
+
await sleep(Math.min(retryDelay * 2 ** (attempt - 1), sseMaxRetryDelay ?? 3e4));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
return { stream: createStream() };
|
|
91
|
+
}
|
|
92
|
+
//#endregion
|
|
93
|
+
export { createSseClient };
|
|
94
|
+
|
|
95
|
+
//# sourceMappingURL=serverSentEvents.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serverSentEvents.gen.js","names":[],"sources":["../../../src/client/core/serverSentEvents.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Config } from './types.gen.js';\n\nexport type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> &\n Pick<Config, 'method' | 'responseTransformer' | 'responseValidator'> & {\n /**\n * Fetch API implementation. You can use this option to provide a custom\n * fetch instance.\n *\n * @default globalThis.fetch\n */\n fetch?: typeof fetch;\n /**\n * Implementing clients can call request interceptors inside this hook.\n */\n onRequest?: (url: string, init: RequestInit) => Promise<Request>;\n /**\n * Callback invoked when a network or parsing error occurs during streaming.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @param error The error that occurred.\n */\n onSseError?: (error: unknown) => void;\n /**\n * Callback invoked when an event is streamed from the server.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @param event Event streamed from the server.\n * @returns Nothing (void).\n */\n onSseEvent?: (event: StreamEvent<TData>) => void;\n serializedBody?: RequestInit['body'];\n /**\n * Default retry delay in milliseconds.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @default 3000\n */\n sseDefaultRetryDelay?: number;\n /**\n * Maximum number of retry attempts before giving up.\n */\n sseMaxRetryAttempts?: number;\n /**\n * Maximum retry delay in milliseconds.\n *\n * Applies only when exponential backoff is used.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @default 30000\n */\n sseMaxRetryDelay?: number;\n /**\n * Optional sleep function for retry backoff.\n *\n * Defaults to using `setTimeout`.\n */\n sseSleepFn?: (ms: number) => Promise<void>;\n url: string;\n };\n\nexport interface StreamEvent<TData = unknown> {\n data: TData;\n event?: string;\n id?: string;\n retry?: number;\n}\n\nexport type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {\n stream: AsyncGenerator<\n TData extends Record<string, unknown> ? TData[keyof TData] : TData,\n TReturn,\n TNext\n >;\n};\n\nexport function createSseClient<TData = unknown>({\n onRequest,\n onSseError,\n onSseEvent,\n responseTransformer,\n responseValidator,\n sseDefaultRetryDelay,\n sseMaxRetryAttempts,\n sseMaxRetryDelay,\n sseSleepFn,\n url,\n ...options\n}: ServerSentEventsOptions): ServerSentEventsResult<TData> {\n let lastEventId: string | undefined;\n\n const sleep = sseSleepFn ?? ((ms: number) => new Promise((resolve) => setTimeout(resolve, ms)));\n\n const createStream = async function* () {\n let retryDelay: number = sseDefaultRetryDelay ?? 3000;\n let attempt = 0;\n const signal = options.signal ?? new AbortController().signal;\n\n while (true) {\n if (signal.aborted) break;\n\n attempt++;\n\n const headers =\n options.headers instanceof Headers\n ? options.headers\n : new Headers(options.headers as Record<string, string> | undefined);\n\n if (lastEventId !== undefined) {\n headers.set('Last-Event-ID', lastEventId);\n }\n\n try {\n const requestInit: RequestInit = {\n redirect: 'follow',\n ...options,\n body: options.serializedBody,\n headers,\n signal,\n };\n let request = new Request(url, requestInit);\n if (onRequest) {\n request = await onRequest(url, requestInit);\n }\n // fetch must be assigned here, otherwise it would throw the error:\n // TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation\n const _fetch = options.fetch ?? globalThis.fetch;\n const response = await _fetch(request);\n\n if (!response.ok) throw new Error(`SSE failed: ${response.status} ${response.statusText}`);\n\n if (!response.body) throw new Error('No body in SSE response');\n\n const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();\n\n let buffer = '';\n\n const abortHandler = () => {\n try {\n reader.cancel();\n } catch {\n // noop\n }\n };\n\n signal.addEventListener('abort', abortHandler);\n\n try {\n while (true) {\n const { done, value } = await reader.read();\n if (done) break;\n buffer += value;\n buffer = buffer.replace(/\\r\\n?/g, '\\n'); // normalize line endings\n\n const chunks = buffer.split('\\n\\n');\n buffer = chunks.pop() ?? '';\n\n for (const chunk of chunks) {\n const lines = chunk.split('\\n');\n const dataLines: Array<string> = [];\n let eventName: string | undefined;\n\n for (const line of lines) {\n if (line.startsWith('data:')) {\n dataLines.push(line.replace(/^data:\\s*/, ''));\n } else if (line.startsWith('event:')) {\n eventName = line.replace(/^event:\\s*/, '');\n } else if (line.startsWith('id:')) {\n lastEventId = line.replace(/^id:\\s*/, '');\n } else if (line.startsWith('retry:')) {\n const parsed = Number.parseInt(line.replace(/^retry:\\s*/, ''), 10);\n if (!Number.isNaN(parsed)) {\n retryDelay = parsed;\n }\n }\n }\n\n let data: unknown;\n let parsedJson = false;\n\n if (dataLines.length) {\n const rawData = dataLines.join('\\n');\n try {\n data = JSON.parse(rawData);\n parsedJson = true;\n } catch {\n data = rawData;\n }\n }\n\n if (parsedJson) {\n if (responseValidator) {\n await responseValidator(data);\n }\n\n if (responseTransformer) {\n data = await responseTransformer(data);\n }\n }\n\n onSseEvent?.({\n data,\n event: eventName,\n id: lastEventId,\n retry: retryDelay,\n });\n\n if (dataLines.length) {\n yield data as any;\n }\n }\n }\n } finally {\n signal.removeEventListener('abort', abortHandler);\n reader.releaseLock();\n }\n\n break; // exit loop on normal completion\n } catch (error) {\n // connection failed or aborted; retry after delay\n onSseError?.(error);\n\n if (sseMaxRetryAttempts !== undefined && attempt >= sseMaxRetryAttempts) {\n break; // stop after firing error\n }\n\n // exponential backoff: double retry each attempt, cap at 30s\n const backoff = Math.min(retryDelay * 2 ** (attempt - 1), sseMaxRetryDelay ?? 30000);\n await sleep(backoff);\n }\n }\n };\n\n const stream = createStream();\n\n return { stream };\n}\n"],"mappings":";AAiFA,SAAgB,gBAAiC,EAC/C,WACA,YACA,YACA,qBACA,mBACA,sBACA,qBACA,kBACA,YACA,KACA,GAAG,WACsD;CACzD,IAAI;CAEJ,MAAM,QAAQ,gBAAgB,OAAe,IAAI,SAAS,YAAY,WAAW,SAAS,EAAE,CAAC;CAE7F,MAAM,eAAe,mBAAmB;EACtC,IAAI,aAAqB,wBAAwB;EACjD,IAAI,UAAU;EACd,MAAM,SAAS,QAAQ,UAAU,IAAI,gBAAgB,CAAC,CAAC;EAEvD,OAAO,MAAM;GACX,IAAI,OAAO,SAAS;GAEpB;GAEA,MAAM,UACJ,QAAQ,mBAAmB,UACvB,QAAQ,UACR,IAAI,QAAQ,QAAQ,OAA6C;GAEvE,IAAI,gBAAgB,KAAA,GAClB,QAAQ,IAAI,iBAAiB,WAAW;GAG1C,IAAI;IACF,MAAM,cAA2B;KAC/B,UAAU;KACV,GAAG;KACH,MAAM,QAAQ;KACd;KACA;IACF;IACA,IAAI,UAAU,IAAI,QAAQ,KAAK,WAAW;IAC1C,IAAI,WACF,UAAU,MAAM,UAAU,KAAK,WAAW;IAK5C,MAAM,WAAW,OADF,QAAQ,SAAS,WAAW,MAAA,CACb,OAAO;IAErC,IAAI,CAAC,SAAS,IAAI,MAAM,IAAI,MAAM,eAAe,SAAS,OAAO,GAAG,SAAS,YAAY;IAEzF,IAAI,CAAC,SAAS,MAAM,MAAM,IAAI,MAAM,yBAAyB;IAE7D,MAAM,SAAS,SAAS,KAAK,YAAY,IAAI,kBAAkB,CAAC,CAAC,CAAC,UAAU;IAE5E,IAAI,SAAS;IAEb,MAAM,qBAAqB;KACzB,IAAI;MACF,OAAO,OAAO;KAChB,QAAQ,CAER;IACF;IAEA,OAAO,iBAAiB,SAAS,YAAY;IAE7C,IAAI;KACF,OAAO,MAAM;MACX,MAAM,EAAE,MAAM,UAAU,MAAM,OAAO,KAAK;MAC1C,IAAI,MAAM;MACV,UAAU;MACV,SAAS,OAAO,QAAQ,UAAU,IAAI;MAEtC,MAAM,SAAS,OAAO,MAAM,MAAM;MAClC,SAAS,OAAO,IAAI,KAAK;MAEzB,KAAK,MAAM,SAAS,QAAQ;OAC1B,MAAM,QAAQ,MAAM,MAAM,IAAI;OAC9B,MAAM,YAA2B,CAAC;OAClC,IAAI;OAEJ,KAAK,MAAM,QAAQ,OACjB,IAAI,KAAK,WAAW,OAAO,GACzB,UAAU,KAAK,KAAK,QAAQ,aAAa,EAAE,CAAC;YACvC,IAAI,KAAK,WAAW,QAAQ,GACjC,YAAY,KAAK,QAAQ,cAAc,EAAE;YACpC,IAAI,KAAK,WAAW,KAAK,GAC9B,cAAc,KAAK,QAAQ,WAAW,EAAE;YACnC,IAAI,KAAK,WAAW,QAAQ,GAAG;QACpC,MAAM,SAAS,OAAO,SAAS,KAAK,QAAQ,cAAc,EAAE,GAAG,EAAE;QACjE,IAAI,CAAC,OAAO,MAAM,MAAM,GACtB,aAAa;OAEjB;OAGF,IAAI;OACJ,IAAI,aAAa;OAEjB,IAAI,UAAU,QAAQ;QACpB,MAAM,UAAU,UAAU,KAAK,IAAI;QACnC,IAAI;SACF,OAAO,KAAK,MAAM,OAAO;SACzB,aAAa;QACf,QAAQ;SACN,OAAO;QACT;OACF;OAEA,IAAI,YAAY;QACd,IAAI,mBACF,MAAM,kBAAkB,IAAI;QAG9B,IAAI,qBACF,OAAO,MAAM,oBAAoB,IAAI;OAEzC;OAEA,aAAa;QACX;QACA,OAAO;QACP,IAAI;QACJ,OAAO;OACT,CAAC;OAED,IAAI,UAAU,QACZ,MAAM;MAEV;KACF;IACF,UAAU;KACR,OAAO,oBAAoB,SAAS,YAAY;KAChD,OAAO,YAAY;IACrB;IAEA;GACF,SAAS,OAAO;IAEd,aAAa,KAAK;IAElB,IAAI,wBAAwB,KAAA,KAAa,WAAW,qBAClD;IAKF,MAAM,MADU,KAAK,IAAI,aAAa,MAAM,UAAU,IAAI,oBAAoB,GAC5D,CAAC;GACrB;EACF;CACF;CAIA,OAAO,EAAE,QAFM,aAED,EAAE;AAClB"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { Auth, AuthToken } from "./auth.gen.js";
|
|
2
|
+
import { BodySerializer, QuerySerializer, QuerySerializerOptions } from "./bodySerializer.gen.js";
|
|
3
|
+
|
|
4
|
+
//#region src/client/core/types.gen.d.ts
|
|
5
|
+
type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
|
|
6
|
+
type Client<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
7
|
+
/**
|
|
8
|
+
* Returns the final request URL.
|
|
9
|
+
*/
|
|
10
|
+
buildUrl: BuildUrlFn;
|
|
11
|
+
getConfig: () => Config;
|
|
12
|
+
request: RequestFn;
|
|
13
|
+
setConfig: (config: Config) => Config;
|
|
14
|
+
} & { [K in HttpMethod]: MethodFn } & ([SseFn] extends [never] ? {
|
|
15
|
+
sse?: never;
|
|
16
|
+
} : {
|
|
17
|
+
sse: { [K in HttpMethod]: SseFn };
|
|
18
|
+
});
|
|
19
|
+
interface Config {
|
|
20
|
+
/**
|
|
21
|
+
* Auth token or a function returning auth token. The resolved value will be
|
|
22
|
+
* added to the request payload as defined by its `security` array.
|
|
23
|
+
*/
|
|
24
|
+
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
25
|
+
/**
|
|
26
|
+
* A function for serializing request body parameter. By default,
|
|
27
|
+
* {@link JSON.stringify()} will be used.
|
|
28
|
+
*/
|
|
29
|
+
bodySerializer?: BodySerializer | null;
|
|
30
|
+
/**
|
|
31
|
+
* An object containing any HTTP headers that you want to pre-populate your
|
|
32
|
+
* `Headers` object with.
|
|
33
|
+
*
|
|
34
|
+
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
35
|
+
*/
|
|
36
|
+
headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
|
|
37
|
+
/**
|
|
38
|
+
* The request method.
|
|
39
|
+
*
|
|
40
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
41
|
+
*/
|
|
42
|
+
method?: Uppercase<HttpMethod>;
|
|
43
|
+
/**
|
|
44
|
+
* A function for serializing request query parameters. By default, arrays
|
|
45
|
+
* will be exploded in form style, objects will be exploded in deepObject
|
|
46
|
+
* style, and reserved characters are percent-encoded.
|
|
47
|
+
*
|
|
48
|
+
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
49
|
+
* API function is used.
|
|
50
|
+
*
|
|
51
|
+
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
52
|
+
*/
|
|
53
|
+
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
54
|
+
/**
|
|
55
|
+
* A function validating request data. This is useful if you want to ensure
|
|
56
|
+
* the request conforms to the desired shape, so it can be safely sent to
|
|
57
|
+
* the server.
|
|
58
|
+
*/
|
|
59
|
+
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
60
|
+
/**
|
|
61
|
+
* A function transforming response data before it's returned. This is useful
|
|
62
|
+
* for post-processing data, e.g., converting ISO strings into Date objects.
|
|
63
|
+
*/
|
|
64
|
+
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
65
|
+
/**
|
|
66
|
+
* A function validating response data. This is useful if you want to ensure
|
|
67
|
+
* the response conforms to the desired shape, so it can be safely passed to
|
|
68
|
+
* the transformers and returned to the user.
|
|
69
|
+
*/
|
|
70
|
+
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Arbitrary metadata passed through the `meta` request option.
|
|
74
|
+
*/
|
|
75
|
+
interface ClientMeta {}
|
|
76
|
+
type IsExactlyNeverOrNeverUndefined<T> = [T] extends [never] ? true : [T] extends [never | undefined] ? [undefined] extends [T] ? false : true : false;
|
|
77
|
+
type OmitNever<T extends Record<string, unknown>> = { [K in keyof T as IsExactlyNeverOrNeverUndefined<T[K]> extends true ? never : K]: T[K] };
|
|
78
|
+
//#endregion
|
|
79
|
+
export { Client, ClientMeta, Config, HttpMethod, OmitNever };
|
|
80
|
+
//# sourceMappingURL=types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.gen.d.ts","names":[],"sources":["../../../src/client/core/types.gen.ts"],"mappings":";;;;KAKY,UAAA;KAWA;EAXA;AAWZ;;UAUY,EAAA,UAAA;WACO,EAAA,GAAA,GAAA,MAAA;SACR,EAAA,SAAA;WACW,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,GAAW,MAAX;YAEd,UAAA,GAAa,QAAb,OACF,KADe,CAAA,SAAA,CAAA,KAAA,CAAA,GAAA;KACf,CAAA,EAAA,KAAA;;KAAuE,EAAA,QAAb,UAAkB,GAAL,KAAK,EAEjE;CAAM,CAAA;AAKN,UALA,MAAA,CAKA;;;;;MAKE,CAAA,EAAA,CAAA,CAAA,IAAA,EALF,IAKE,EAAA,GALO,OAKP,CALe,SAKf,CAAA,GAL4B,SAK5B,CAAA,GALyC,SAKzC;;;;;gBA6BC,CAAA,EA7BD,cA6BC,GAAA,IAAA;;;;;AAiB4B;AAOhD;EAEK,OAAA,CAAA,EA/CC,WA+CD,CAAA,SAAA,CAAA,GA9CC,MA8C6B,CAAA,MAAA,EAAA,MAAA,GAAA,MAAA,GAAA,OAAA,GAAA,CAAA,MAAA,GAAA,MAAA,GAAA,OAAA,CAAA,EAAA,GAAA,IAAA,GAAA,SAAA,GAAA,OAAA,CAAA;EAAA;;;;AAGP;EAKhB,MAAA,CAAA,EA7CD,SA6CU,CA7CA,UA6CA,CAAA;EAAA;;;;;;;;;AACiE;oBAnClE,kBAAkB;;;;;;wCAME;;;;;2CAKG;;;;;;yCAMF;;;;;UAOxB,UAAA;KAEZ,qCAAqC,6BAErC,sDACsB;KAKf,oBAAoB,yCAClB,KAAK,+BAA+B,EAAE,2BAA2B,IAAI,EAAE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { BodySerializer, QuerySerializer } from "./bodySerializer.gen.js";
|
|
2
|
+
|
|
3
|
+
//#region src/client/core/utils.gen.d.ts
|
|
4
|
+
interface PathSerializer {
|
|
5
|
+
path: Record<string, unknown>;
|
|
6
|
+
url: string;
|
|
7
|
+
}
|
|
8
|
+
declare const PATH_PARAM_RE: RegExp;
|
|
9
|
+
declare const defaultPathSerializer: ({
|
|
10
|
+
path,
|
|
11
|
+
url: _url
|
|
12
|
+
}: PathSerializer) => string;
|
|
13
|
+
declare const getUrl: ({
|
|
14
|
+
baseUrl,
|
|
15
|
+
path,
|
|
16
|
+
query,
|
|
17
|
+
querySerializer,
|
|
18
|
+
url: _url
|
|
19
|
+
}: {
|
|
20
|
+
baseUrl?: string;
|
|
21
|
+
path?: Record<string, unknown>;
|
|
22
|
+
query?: Record<string, unknown>;
|
|
23
|
+
querySerializer: QuerySerializer;
|
|
24
|
+
url: string;
|
|
25
|
+
}) => string;
|
|
26
|
+
declare function getValidRequestBody(options: {
|
|
27
|
+
body?: unknown;
|
|
28
|
+
bodySerializer?: BodySerializer | null;
|
|
29
|
+
serializedBody?: unknown;
|
|
30
|
+
}): unknown;
|
|
31
|
+
//#endregion
|
|
32
|
+
export { PATH_PARAM_RE, PathSerializer, defaultPathSerializer, getUrl, getValidRequestBody };
|
|
33
|
+
//# sourceMappingURL=utils.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.gen.d.ts","names":[],"sources":["../../../src/client/core/utils.gen.ts"],"mappings":";;;UAUiB,cAAA;QACT;EADS,GAAA,EAAA,MAAA;AAKjB;AAEa,cAFA,aAmEZ,EAnE2B,MAmE3B;AAAA,cAjEY,qBAiEZ,EAAA,CAAA;EAAA,IAAA;EAAA,GAAA,EAjEqC;AAiErC,CAAA,EAjE0D,cAiE1D,EAAA,GAAA,MAAA;AAjEqC,cAmEzB,MAnEyB,EAAA,CAAA;EAAA,OAAA;EAAA,IAAA;EAAA,KAAA;EAAA,eAAA;EAAA,GAAA,EAmEf;CAnEe,EAAA;SAAA,CAAA,EAAA,MAAA;MAAqB,CAAA,EA2ElD,MA3EkD,CAAA,MAAA,EAAA,OAAA,CAAA;EAAc,KAAA,CAAA,EA4E/D,MA5E+D,CAAA,MAAA,EAAA,OAAA,CAAA;EAmE5D,eA0BZ,EAhBkB,eAgBlB;EAAA,GAAA,EAAA,MAAA;YA1BsB;AAAA,iBA4BP,mBAAA,CA5BO,OAAA,EAAA;MAAA,CAAA,EAAA,OAAA;gBAAA,CAAA,EA8BJ,cA9BI,GAAA,IAAA;gBAAA,CAAA,EAAA,OAAA;WAQd"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { serializeArrayParam, serializeObjectParam, serializePrimitiveParam } from "./pathSerializer.gen.js";
|
|
2
|
+
//#region src/client/core/utils.gen.ts
|
|
3
|
+
const PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
4
|
+
const defaultPathSerializer = ({ path, url: _url }) => {
|
|
5
|
+
let url = _url;
|
|
6
|
+
const matches = _url.match(PATH_PARAM_RE);
|
|
7
|
+
if (matches) for (const match of matches) {
|
|
8
|
+
let explode = false;
|
|
9
|
+
let name = match.substring(1, match.length - 1);
|
|
10
|
+
let style = "simple";
|
|
11
|
+
if (name.endsWith("*")) {
|
|
12
|
+
explode = true;
|
|
13
|
+
name = name.substring(0, name.length - 1);
|
|
14
|
+
}
|
|
15
|
+
if (name.startsWith(".")) {
|
|
16
|
+
name = name.substring(1);
|
|
17
|
+
style = "label";
|
|
18
|
+
} else if (name.startsWith(";")) {
|
|
19
|
+
name = name.substring(1);
|
|
20
|
+
style = "matrix";
|
|
21
|
+
}
|
|
22
|
+
const value = path[name];
|
|
23
|
+
if (value === void 0 || value === null) continue;
|
|
24
|
+
if (Array.isArray(value)) {
|
|
25
|
+
url = url.replace(match, serializeArrayParam({
|
|
26
|
+
explode,
|
|
27
|
+
name,
|
|
28
|
+
style,
|
|
29
|
+
value
|
|
30
|
+
}));
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
33
|
+
if (typeof value === "object") {
|
|
34
|
+
url = url.replace(match, serializeObjectParam({
|
|
35
|
+
explode,
|
|
36
|
+
name,
|
|
37
|
+
style,
|
|
38
|
+
value,
|
|
39
|
+
valueOnly: true
|
|
40
|
+
}));
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
if (style === "matrix") {
|
|
44
|
+
url = url.replace(match, `;${serializePrimitiveParam({
|
|
45
|
+
name,
|
|
46
|
+
value
|
|
47
|
+
})}`);
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
const replaceValue = encodeURIComponent(style === "label" ? `.${value}` : value);
|
|
51
|
+
url = url.replace(match, replaceValue);
|
|
52
|
+
}
|
|
53
|
+
return url;
|
|
54
|
+
};
|
|
55
|
+
const getUrl = ({ baseUrl, path, query, querySerializer, url: _url }) => {
|
|
56
|
+
const pathUrl = _url.startsWith("/") ? _url : `/${_url}`;
|
|
57
|
+
let url = (baseUrl ?? "") + pathUrl;
|
|
58
|
+
if (path) url = defaultPathSerializer({
|
|
59
|
+
path,
|
|
60
|
+
url
|
|
61
|
+
});
|
|
62
|
+
let search = query ? querySerializer(query) : "";
|
|
63
|
+
if (search.startsWith("?")) search = search.substring(1);
|
|
64
|
+
if (search) url += `?${search}`;
|
|
65
|
+
return url;
|
|
66
|
+
};
|
|
67
|
+
function getValidRequestBody(options) {
|
|
68
|
+
const hasBody = options.body !== void 0;
|
|
69
|
+
if (hasBody && options.bodySerializer) {
|
|
70
|
+
if ("serializedBody" in options) return options.serializedBody !== void 0 && options.serializedBody !== "" ? options.serializedBody : null;
|
|
71
|
+
return options.body !== "" ? options.body : null;
|
|
72
|
+
}
|
|
73
|
+
if (hasBody) return options.body;
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
export { PATH_PARAM_RE, defaultPathSerializer, getUrl, getValidRequestBody };
|
|
77
|
+
|
|
78
|
+
//# sourceMappingURL=utils.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.gen.js","names":[],"sources":["../../../src/client/core/utils.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { BodySerializer, QuerySerializer } from './bodySerializer.gen.js';\nimport {\n type ArraySeparatorStyle,\n serializeArrayParam,\n serializeObjectParam,\n serializePrimitiveParam,\n} from './pathSerializer.gen.js';\n\nexport interface PathSerializer {\n path: Record<string, unknown>;\n url: string;\n}\n\nexport const PATH_PARAM_RE: RegExp = /\\{[^{}]+\\}/g;\n\nexport const defaultPathSerializer = ({ path, url: _url }: PathSerializer): string => {\n let url = _url;\n const matches = _url.match(PATH_PARAM_RE);\n if (matches) {\n for (const match of matches) {\n let explode = false;\n let name = match.substring(1, match.length - 1);\n let style: ArraySeparatorStyle = 'simple';\n\n if (name.endsWith('*')) {\n explode = true;\n name = name.substring(0, name.length - 1);\n }\n\n if (name.startsWith('.')) {\n name = name.substring(1);\n style = 'label';\n } else if (name.startsWith(';')) {\n name = name.substring(1);\n style = 'matrix';\n }\n\n const value = path[name];\n\n if (value === undefined || value === null) {\n continue;\n }\n\n if (Array.isArray(value)) {\n url = url.replace(match, serializeArrayParam({ explode, name, style, value }));\n continue;\n }\n\n if (typeof value === 'object') {\n url = url.replace(\n match,\n serializeObjectParam({\n explode,\n name,\n style,\n value: value as Record<string, unknown>,\n valueOnly: true,\n }),\n );\n continue;\n }\n\n if (style === 'matrix') {\n url = url.replace(\n match,\n `;${serializePrimitiveParam({\n name,\n value: value as string,\n })}`,\n );\n continue;\n }\n\n const replaceValue = encodeURIComponent(\n style === 'label' ? `.${value as string}` : (value as string),\n );\n url = url.replace(match, replaceValue);\n }\n }\n return url;\n};\n\nexport const getUrl = ({\n baseUrl,\n path,\n query,\n querySerializer,\n url: _url,\n}: {\n baseUrl?: string;\n path?: Record<string, unknown>;\n query?: Record<string, unknown>;\n querySerializer: QuerySerializer;\n url: string;\n}): string => {\n const pathUrl = _url.startsWith('/') ? _url : `/${_url}`;\n let url = (baseUrl ?? '') + pathUrl;\n if (path) {\n url = defaultPathSerializer({ path, url });\n }\n let search = query ? querySerializer(query) : '';\n if (search.startsWith('?')) {\n search = search.substring(1);\n }\n if (search) {\n url += `?${search}`;\n }\n return url;\n};\n\nexport function getValidRequestBody(options: {\n body?: unknown;\n bodySerializer?: BodySerializer | null;\n serializedBody?: unknown;\n}): unknown {\n const hasBody = options.body !== undefined;\n const isSerializedBody = hasBody && options.bodySerializer;\n\n if (isSerializedBody) {\n if ('serializedBody' in options) {\n const hasSerializedBody =\n options.serializedBody !== undefined && options.serializedBody !== '';\n\n return hasSerializedBody ? options.serializedBody : null;\n }\n\n // not all clients implement a serializedBody property (i.e., client-axios)\n return options.body !== '' ? options.body : null;\n }\n\n // plain/text body\n if (hasBody) {\n return options.body;\n }\n\n // no body was provided\n return undefined;\n}\n"],"mappings":";;AAeA,MAAa,gBAAwB;AAErC,MAAa,yBAAyB,EAAE,MAAM,KAAK,WAAmC;CACpF,IAAI,MAAM;CACV,MAAM,UAAU,KAAK,MAAM,aAAa;CACxC,IAAI,SACF,KAAK,MAAM,SAAS,SAAS;EAC3B,IAAI,UAAU;EACd,IAAI,OAAO,MAAM,UAAU,GAAG,MAAM,SAAS,CAAC;EAC9C,IAAI,QAA6B;EAEjC,IAAI,KAAK,SAAS,GAAG,GAAG;GACtB,UAAU;GACV,OAAO,KAAK,UAAU,GAAG,KAAK,SAAS,CAAC;EAC1C;EAEA,IAAI,KAAK,WAAW,GAAG,GAAG;GACxB,OAAO,KAAK,UAAU,CAAC;GACvB,QAAQ;EACV,OAAO,IAAI,KAAK,WAAW,GAAG,GAAG;GAC/B,OAAO,KAAK,UAAU,CAAC;GACvB,QAAQ;EACV;EAEA,MAAM,QAAQ,KAAK;EAEnB,IAAI,UAAU,KAAA,KAAa,UAAU,MACnC;EAGF,IAAI,MAAM,QAAQ,KAAK,GAAG;GACxB,MAAM,IAAI,QAAQ,OAAO,oBAAoB;IAAE;IAAS;IAAM;IAAO;GAAM,CAAC,CAAC;GAC7E;EACF;EAEA,IAAI,OAAO,UAAU,UAAU;GAC7B,MAAM,IAAI,QACR,OACA,qBAAqB;IACnB;IACA;IACA;IACO;IACP,WAAW;GACb,CAAC,CACH;GACA;EACF;EAEA,IAAI,UAAU,UAAU;GACtB,MAAM,IAAI,QACR,OACA,IAAI,wBAAwB;IAC1B;IACO;GACT,CAAC,GACH;GACA;EACF;EAEA,MAAM,eAAe,mBACnB,UAAU,UAAU,IAAI,UAAqB,KAC/C;EACA,MAAM,IAAI,QAAQ,OAAO,YAAY;CACvC;CAEF,OAAO;AACT;AAEA,MAAa,UAAU,EACrB,SACA,MACA,OACA,iBACA,KAAK,WAOO;CACZ,MAAM,UAAU,KAAK,WAAW,GAAG,IAAI,OAAO,IAAI;CAClD,IAAI,OAAO,WAAW,MAAM;CAC5B,IAAI,MACF,MAAM,sBAAsB;EAAE;EAAM;CAAI,CAAC;CAE3C,IAAI,SAAS,QAAQ,gBAAgB,KAAK,IAAI;CAC9C,IAAI,OAAO,WAAW,GAAG,GACvB,SAAS,OAAO,UAAU,CAAC;CAE7B,IAAI,QACF,OAAO,IAAI;CAEb,OAAO;AACT;AAEA,SAAgB,oBAAoB,SAIxB;CACV,MAAM,UAAU,QAAQ,SAAS,KAAA;CAGjC,IAFyB,WAAW,QAAQ,gBAEtB;EACpB,IAAI,oBAAoB,SAItB,OAFE,QAAQ,mBAAmB,KAAA,KAAa,QAAQ,mBAAmB,KAE1C,QAAQ,iBAAiB;EAItD,OAAO,QAAQ,SAAS,KAAK,QAAQ,OAAO;CAC9C;CAGA,IAAI,SACF,OAAO,QAAQ;AAKnB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { AcceptProjectTransferRequestData, AcceptProjectTransferRequestError, AcceptProjectTransferRequestErrors, AcceptProjectTransferRequestResponse, AcceptProjectTransferRequestResponses, AcceptProjectTransferRequestSatisfiesPlanError, ActiveRegionsResponse, AddBranchNeonAuthOauthProviderData, AddBranchNeonAuthOauthProviderError, AddBranchNeonAuthOauthProviderErrors, AddBranchNeonAuthOauthProviderResponse, AddBranchNeonAuthOauthProviderResponses, AddBranchNeonAuthTrustedDomainData, AddBranchNeonAuthTrustedDomainError, AddBranchNeonAuthTrustedDomainErrors, AddBranchNeonAuthTrustedDomainResponses, AddNeonAuthDomainToRedirectUriWhitelistData, AddNeonAuthDomainToRedirectUriWhitelistError, AddNeonAuthDomainToRedirectUriWhitelistErrors, AddNeonAuthDomainToRedirectUriWhitelistResponses, AddNeonAuthOauthProviderData, AddNeonAuthOauthProviderError, AddNeonAuthOauthProviderErrors, AddNeonAuthOauthProviderResponse, AddNeonAuthOauthProviderResponses, AddProjectJwksData, AddProjectJwksError, AddProjectJwksErrors, AddProjectJwksRequest, AddProjectJwksResponse, AddProjectJwksResponses, AdvisorCategory, AdvisorIssue, AllowedIps, AnnotationCreateValueRequest, AnnotationData, AnnotationObjectData, AnnotationResponse, AnnotationValueData, AnnotationsMapResponse, AnonymizationRunMetadata, AnonymizedBranchStatusResponse, ApiKeyCreateRequest, ApiKeyCreateResponse, ApiKeyCreatorData, ApiKeyRevokeResponse, ApiKeysListResponseItem, ApplicationType, AssignOrganizationVpcEndpointData, AssignOrganizationVpcEndpointError, AssignOrganizationVpcEndpointErrors, AssignOrganizationVpcEndpointResponses, AssignProjectVpcEndpointData, AssignProjectVpcEndpointError, AssignProjectVpcEndpointErrors, AssignProjectVpcEndpointResponses, AuthDetailsResponse, AvailablePreloadLibraries, AvailablePreloadLibrary, BackupSchedule, BackupScheduleItem, BillingAccount, BillingAccountState, BillingPaymentMethod, BillingSubscriptionType, Branch, BranchAnonymizedCreateRequest, BranchConsumption, BranchConsumptionResponse, BranchCreateRequest, BranchCreateRequestEndpointOptions, BranchOperations, BranchRecoverResponse, BranchRecoveryInfo, BranchResponse, BranchRestoreRequest, BranchRestoreStatus, BranchRestrictedAction, BranchSchemaCompareResponse, BranchSchemaJson, BranchSchemaResponse, BranchState, BranchUpdateRequest, BranchesCountResponse, BranchesResponse, ClientOptions, ComputeUnit, ConnectionDetails, ConnectionParameters, ConnectionUriResponse, ConnectionUrisOptionalResponse, ConnectionUrisResponse, ConsumptionHistoryGranularity, ConsumptionHistoryPerBranchV2, ConsumptionHistoryPerBranchV2Response, ConsumptionHistoryPerPeriod, ConsumptionHistoryPerPeriodV2, ConsumptionHistoryPerProject, ConsumptionHistoryPerProjectResponse, ConsumptionHistoryPerProjectV2, ConsumptionHistoryPerProjectV2Response, ConsumptionHistoryPerTimeframe, ConsumptionHistoryPerTimeframeV2, ConsumptionHistoryQueryMetrics, ConsumptionMetricValue, ConvertUserToOrgRequest, CountProjectBranchesData, CountProjectBranchesError, CountProjectBranchesErrors, CountProjectBranchesResponse, CountProjectBranchesResponses, CreateApiKeyData, CreateApiKeyError, CreateApiKeyErrors, CreateApiKeyResponse, CreateApiKeyResponses, CreateBranchNeonAuthNewUserData, CreateBranchNeonAuthNewUserError, CreateBranchNeonAuthNewUserErrors, CreateBranchNeonAuthNewUserRequest, CreateBranchNeonAuthNewUserResponse, CreateBranchNeonAuthNewUserResponses, CreateNeonAuthData, CreateNeonAuthError, CreateNeonAuthErrors, CreateNeonAuthIntegrationData, CreateNeonAuthIntegrationError, CreateNeonAuthIntegrationErrors, CreateNeonAuthIntegrationResponse, CreateNeonAuthIntegrationResponses, CreateNeonAuthNewUserData, CreateNeonAuthNewUserError, CreateNeonAuthNewUserErrors, CreateNeonAuthNewUserResponse, CreateNeonAuthNewUserResponses, CreateNeonAuthProviderSdkKeysData, CreateNeonAuthProviderSdkKeysError, CreateNeonAuthProviderSdkKeysErrors, CreateNeonAuthProviderSdkKeysResponse, CreateNeonAuthProviderSdkKeysResponses, CreateNeonAuthResponse, CreateNeonAuthResponses, CreateOrgApiKeyData, CreateOrgApiKeyError, CreateOrgApiKeyErrors, CreateOrgApiKeyResponse, CreateOrgApiKeyResponses, CreateOrganizationInvitationsData, CreateOrganizationInvitationsError, CreateOrganizationInvitationsErrors, CreateOrganizationInvitationsResponse, CreateOrganizationInvitationsResponses, CreateProjectBranchAnonymizedData, CreateProjectBranchAnonymizedError, CreateProjectBranchAnonymizedErrors, CreateProjectBranchAnonymizedResponse, CreateProjectBranchAnonymizedResponses, CreateProjectBranchData, CreateProjectBranchDataApiData, CreateProjectBranchDataApiError, CreateProjectBranchDataApiErrors, CreateProjectBranchDataApiResponse, CreateProjectBranchDataApiResponses, CreateProjectBranchDatabaseData, CreateProjectBranchDatabaseError, CreateProjectBranchDatabaseErrors, CreateProjectBranchDatabaseResponse, CreateProjectBranchDatabaseResponses, CreateProjectBranchError, CreateProjectBranchErrors, CreateProjectBranchResponse, CreateProjectBranchResponses, CreateProjectBranchRoleData, CreateProjectBranchRoleError, CreateProjectBranchRoleErrors, CreateProjectBranchRoleResponse, CreateProjectBranchRoleResponses, CreateProjectData, CreateProjectEndpointData, CreateProjectEndpointError, CreateProjectEndpointErrors, CreateProjectEndpointResponse, CreateProjectEndpointResponses, CreateProjectError, CreateProjectErrors, CreateProjectResponse, CreateProjectResponses, CreateProjectTransferRequestData, CreateProjectTransferRequestError, CreateProjectTransferRequestErrors, CreateProjectTransferRequestResponse, CreateProjectTransferRequestResponses, CreateSnapshotData, CreateSnapshotError, CreateSnapshotErrors, CreateSnapshotResponse, CreateSnapshotResponses, CurrentUserAuthAccount, CurrentUserInfoAuthResponse, CurrentUserInfoResponse, CursorPagination, CursorPaginationResponse, CursorParam, DataApiCreateRequest, DataApiCreateResponse, DataApiReponse, DataApiSettings, DataApiUpdateRequest, Database, DatabaseCreateRequest, DatabaseOperations, DatabaseResponse, DatabaseUpdateRequest, DatabasesResponse, DefaultEndpointSettings, DeleteBranchNeonAuthOauthProviderData, DeleteBranchNeonAuthOauthProviderError, DeleteBranchNeonAuthOauthProviderErrors, DeleteBranchNeonAuthOauthProviderResponses, DeleteBranchNeonAuthTrustedDomainData, DeleteBranchNeonAuthTrustedDomainError, DeleteBranchNeonAuthTrustedDomainErrors, DeleteBranchNeonAuthTrustedDomainResponses, DeleteBranchNeonAuthUserData, DeleteBranchNeonAuthUserError, DeleteBranchNeonAuthUserErrors, DeleteBranchNeonAuthUserResponse, DeleteBranchNeonAuthUserResponses, DeleteNeonAuthDomainFromRedirectUriWhitelistData, DeleteNeonAuthDomainFromRedirectUriWhitelistError, DeleteNeonAuthDomainFromRedirectUriWhitelistErrors, DeleteNeonAuthDomainFromRedirectUriWhitelistResponses, DeleteNeonAuthIntegrationData, DeleteNeonAuthIntegrationError, DeleteNeonAuthIntegrationErrors, DeleteNeonAuthIntegrationResponses, DeleteNeonAuthOauthProviderData, DeleteNeonAuthOauthProviderError, DeleteNeonAuthOauthProviderErrors, DeleteNeonAuthOauthProviderResponses, DeleteNeonAuthUserData, DeleteNeonAuthUserError, DeleteNeonAuthUserErrors, DeleteNeonAuthUserResponse, DeleteNeonAuthUserResponses, DeleteOrganizationSpendingLimitData, DeleteOrganizationSpendingLimitError, DeleteOrganizationSpendingLimitErrors, DeleteOrganizationSpendingLimitResponse, DeleteOrganizationSpendingLimitResponses, DeleteOrganizationVpcEndpointData, DeleteOrganizationVpcEndpointError, DeleteOrganizationVpcEndpointErrors, DeleteOrganizationVpcEndpointResponses, DeleteProjectBranchData, DeleteProjectBranchDataApiData, DeleteProjectBranchDataApiError, DeleteProjectBranchDataApiErrors, DeleteProjectBranchDataApiResponse, DeleteProjectBranchDataApiResponses, DeleteProjectBranchDatabaseData, DeleteProjectBranchDatabaseError, DeleteProjectBranchDatabaseErrors, DeleteProjectBranchDatabaseResponse, DeleteProjectBranchDatabaseResponses, DeleteProjectBranchError, DeleteProjectBranchErrors, DeleteProjectBranchResponse, DeleteProjectBranchResponses, DeleteProjectBranchRoleData, DeleteProjectBranchRoleError, DeleteProjectBranchRoleErrors, DeleteProjectBranchRoleResponse, DeleteProjectBranchRoleResponses, DeleteProjectData, DeleteProjectEndpointData, DeleteProjectEndpointError, DeleteProjectEndpointErrors, DeleteProjectEndpointResponse, DeleteProjectEndpointResponses, DeleteProjectError, DeleteProjectErrors, DeleteProjectJwksData, DeleteProjectJwksError, DeleteProjectJwksErrors, DeleteProjectJwksResponse, DeleteProjectJwksResponses, DeleteProjectResponse, DeleteProjectResponses, DeleteProjectVpcEndpointData, DeleteProjectVpcEndpointError, DeleteProjectVpcEndpointErrors, DeleteProjectVpcEndpointResponses, DeleteSnapshotData, DeleteSnapshotError, DeleteSnapshotErrors, DeleteSnapshotResponse, DeleteSnapshotResponses, DisableNeonAuthData, DisableNeonAuthError, DisableNeonAuthErrors, DisableNeonAuthResponses, Duration, EmptyResponse, EnableNeonAuthIntegrationRequest, EnableOrganizationFeatureRequest, Endpoint, EndpointCreateRequest, EndpointOperations, EndpointPasswordlessSessionAuthRequest, EndpointPoolerMode, EndpointResponse, EndpointSettingsData, EndpointState, EndpointType, EndpointUpdateRequest, EndpointsOptionalResponse, EndpointsResponse, ErrorCode, ExplainData, FeatureFlags, Features, FinalizeRestoreBranchData, FinalizeRestoreBranchError, FinalizeRestoreBranchErrors, FinalizeRestoreBranchResponse, FinalizeRestoreBranchResponses, GeneralError, GetActiveRegionsData, GetActiveRegionsError, GetActiveRegionsErrors, GetActiveRegionsResponse, GetActiveRegionsResponses, GetAnonymizedBranchStatusData, GetAnonymizedBranchStatusError, GetAnonymizedBranchStatusErrors, GetAnonymizedBranchStatusResponse, GetAnonymizedBranchStatusResponses, GetAuthDetailsData, GetAuthDetailsError, GetAuthDetailsErrors, GetAuthDetailsResponse, GetAuthDetailsResponses, GetAvailablePreloadLibrariesData, GetAvailablePreloadLibrariesError, GetAvailablePreloadLibrariesErrors, GetAvailablePreloadLibrariesResponse, GetAvailablePreloadLibrariesResponses, GetConnectionUriData, GetConnectionUriError, GetConnectionUriErrors, GetConnectionUriResponse, GetConnectionUriResponses, GetConsumptionHistoryPerBranchV2Data, GetConsumptionHistoryPerBranchV2Error, GetConsumptionHistoryPerBranchV2Errors, GetConsumptionHistoryPerBranchV2Response, GetConsumptionHistoryPerBranchV2Responses, GetConsumptionHistoryPerProjectData, GetConsumptionHistoryPerProjectError, GetConsumptionHistoryPerProjectErrors, GetConsumptionHistoryPerProjectResponse, GetConsumptionHistoryPerProjectResponses, GetConsumptionHistoryPerProjectV2Data, GetConsumptionHistoryPerProjectV2Error, GetConsumptionHistoryPerProjectV2Errors, GetConsumptionHistoryPerProjectV2Response, GetConsumptionHistoryPerProjectV2Responses, GetCurrentUserInfoData, GetCurrentUserInfoError, GetCurrentUserInfoErrors, GetCurrentUserInfoResponse, GetCurrentUserInfoResponses, GetCurrentUserOrganizationsData, GetCurrentUserOrganizationsError, GetCurrentUserOrganizationsErrors, GetCurrentUserOrganizationsResponse, GetCurrentUserOrganizationsResponses, GetMaskingRulesData, GetMaskingRulesError, GetMaskingRulesErrors, GetMaskingRulesResponse, GetMaskingRulesResponses, GetNeonAuthAllowLocalhostData, GetNeonAuthAllowLocalhostError, GetNeonAuthAllowLocalhostErrors, GetNeonAuthAllowLocalhostResponse, GetNeonAuthAllowLocalhostResponses, GetNeonAuthData, GetNeonAuthEmailAndPasswordConfigData, GetNeonAuthEmailAndPasswordConfigError, GetNeonAuthEmailAndPasswordConfigErrors, GetNeonAuthEmailAndPasswordConfigResponse, GetNeonAuthEmailAndPasswordConfigResponses, GetNeonAuthEmailProviderData, GetNeonAuthEmailProviderError, GetNeonAuthEmailProviderErrors, GetNeonAuthEmailProviderResponse, GetNeonAuthEmailProviderResponses, GetNeonAuthEmailServerData, GetNeonAuthEmailServerError, GetNeonAuthEmailServerErrors, GetNeonAuthEmailServerResponse, GetNeonAuthEmailServerResponses, GetNeonAuthError, GetNeonAuthErrors, GetNeonAuthPhoneNumberPluginData, GetNeonAuthPhoneNumberPluginError, GetNeonAuthPhoneNumberPluginErrors, GetNeonAuthPhoneNumberPluginResponse, GetNeonAuthPhoneNumberPluginResponses, GetNeonAuthPluginConfigsData, GetNeonAuthPluginConfigsError, GetNeonAuthPluginConfigsErrors, GetNeonAuthPluginConfigsResponse, GetNeonAuthPluginConfigsResponses, GetNeonAuthResponse, GetNeonAuthResponses, GetNeonAuthWebhookConfigData, GetNeonAuthWebhookConfigError, GetNeonAuthWebhookConfigErrors, GetNeonAuthWebhookConfigResponse, GetNeonAuthWebhookConfigResponses, GetOrganizationData, GetOrganizationError, GetOrganizationErrors, GetOrganizationInvitationsData, GetOrganizationInvitationsError, GetOrganizationInvitationsErrors, GetOrganizationInvitationsResponse, GetOrganizationInvitationsResponses, GetOrganizationMemberData, GetOrganizationMemberError, GetOrganizationMemberErrors, GetOrganizationMemberResponse, GetOrganizationMemberResponses, GetOrganizationMembersData, GetOrganizationMembersError, GetOrganizationMembersErrors, GetOrganizationMembersResponse, GetOrganizationMembersResponses, GetOrganizationResponse, GetOrganizationResponses, GetOrganizationSpendingLimitData, GetOrganizationSpendingLimitError, GetOrganizationSpendingLimitErrors, GetOrganizationSpendingLimitResponse, GetOrganizationSpendingLimitResponses, GetOrganizationVpcEndpointDetailsData, GetOrganizationVpcEndpointDetailsError, GetOrganizationVpcEndpointDetailsErrors, GetOrganizationVpcEndpointDetailsResponse, GetOrganizationVpcEndpointDetailsResponses, GetProjectAdvisorSecurityIssuesData, GetProjectAdvisorSecurityIssuesError, GetProjectAdvisorSecurityIssuesErrors, GetProjectAdvisorSecurityIssuesResponse, GetProjectAdvisorSecurityIssuesResponses, GetProjectBranchData, GetProjectBranchDataApiData, GetProjectBranchDataApiError, GetProjectBranchDataApiErrors, GetProjectBranchDataApiResponse, GetProjectBranchDataApiResponses, GetProjectBranchDatabaseData, GetProjectBranchDatabaseError, GetProjectBranchDatabaseErrors, GetProjectBranchDatabaseResponse, GetProjectBranchDatabaseResponses, GetProjectBranchError, GetProjectBranchErrors, GetProjectBranchResponse, GetProjectBranchResponses, GetProjectBranchRoleData, GetProjectBranchRoleError, GetProjectBranchRoleErrors, GetProjectBranchRolePasswordData, GetProjectBranchRolePasswordError, GetProjectBranchRolePasswordErrors, GetProjectBranchRolePasswordResponse, GetProjectBranchRolePasswordResponses, GetProjectBranchRoleResponse, GetProjectBranchRoleResponses, GetProjectBranchSchemaComparisonData, GetProjectBranchSchemaComparisonError, GetProjectBranchSchemaComparisonErrors, GetProjectBranchSchemaComparisonResponse, GetProjectBranchSchemaComparisonResponses, GetProjectBranchSchemaData, GetProjectBranchSchemaError, GetProjectBranchSchemaErrors, GetProjectBranchSchemaResponse, GetProjectBranchSchemaResponses, GetProjectData, GetProjectEndpointData, GetProjectEndpointError, GetProjectEndpointErrors, GetProjectEndpointResponse, GetProjectEndpointResponses, GetProjectError, GetProjectErrors, GetProjectJwksData, GetProjectJwksError, GetProjectJwksErrors, GetProjectJwksResponse, GetProjectJwksResponses, GetProjectOperationData, GetProjectOperationError, GetProjectOperationErrors, GetProjectOperationResponse, GetProjectOperationResponses, GetProjectResponse, GetProjectResponses, GetSnapshotScheduleData, GetSnapshotScheduleError, GetSnapshotScheduleErrors, GetSnapshotScheduleResponse, GetSnapshotScheduleResponses, GrantPermissionToProjectData, GrantPermissionToProjectError, GrantPermissionToProjectErrors, GrantPermissionToProjectRequest, GrantPermissionToProjectResponse, GrantPermissionToProjectResponses, HealthCheck, IdentityProviderId, Invitation, InvitationCreateRequest, Jwks, JwksCreationOperation, JwksResponse, LimitParam, Limits, LimitsUnsatisfiedResponse, LinkedAuthAccount, ListApiKeysData, ListApiKeysError, ListApiKeysErrors, ListApiKeysResponse, ListApiKeysResponses, ListBranchNeonAuthOauthProvidersData, ListBranchNeonAuthOauthProvidersError, ListBranchNeonAuthOauthProvidersErrors, ListBranchNeonAuthOauthProvidersResponse, ListBranchNeonAuthOauthProvidersResponses, ListBranchNeonAuthTrustedDomainsData, ListBranchNeonAuthTrustedDomainsError, ListBranchNeonAuthTrustedDomainsErrors, ListBranchNeonAuthTrustedDomainsResponse, ListBranchNeonAuthTrustedDomainsResponses, ListNeonAuthIntegrationsData, ListNeonAuthIntegrationsError, ListNeonAuthIntegrationsErrors, ListNeonAuthIntegrationsResponse, ListNeonAuthIntegrationsResponse2, ListNeonAuthIntegrationsResponses, ListNeonAuthOauthProvidersData, ListNeonAuthOauthProvidersError, ListNeonAuthOauthProvidersErrors, ListNeonAuthOauthProvidersResponse, ListNeonAuthOauthProvidersResponse2, ListNeonAuthOauthProvidersResponses, ListNeonAuthRedirectUriWhitelistDomainsData, ListNeonAuthRedirectUriWhitelistDomainsError, ListNeonAuthRedirectUriWhitelistDomainsErrors, ListNeonAuthRedirectUriWhitelistDomainsResponse, ListNeonAuthRedirectUriWhitelistDomainsResponses, ListOrgApiKeysData, ListOrgApiKeysError, ListOrgApiKeysErrors, ListOrgApiKeysResponse, ListOrgApiKeysResponses, ListOrganizationVpcEndpointsAllRegionsData, ListOrganizationVpcEndpointsAllRegionsError, ListOrganizationVpcEndpointsAllRegionsErrors, ListOrganizationVpcEndpointsAllRegionsResponse, ListOrganizationVpcEndpointsAllRegionsResponses, ListOrganizationVpcEndpointsData, ListOrganizationVpcEndpointsError, ListOrganizationVpcEndpointsErrors, ListOrganizationVpcEndpointsResponse, ListOrganizationVpcEndpointsResponses, ListProjectBranchDatabasesData, ListProjectBranchDatabasesError, ListProjectBranchDatabasesErrors, ListProjectBranchDatabasesResponse, ListProjectBranchDatabasesResponses, ListProjectBranchEndpointsData, ListProjectBranchEndpointsError, ListProjectBranchEndpointsErrors, ListProjectBranchEndpointsResponse, ListProjectBranchEndpointsResponses, ListProjectBranchRolesData, ListProjectBranchRolesError, ListProjectBranchRolesErrors, ListProjectBranchRolesResponse, ListProjectBranchRolesResponses, ListProjectBranchesData, ListProjectBranchesError, ListProjectBranchesErrors, ListProjectBranchesResponse, ListProjectBranchesResponses, ListProjectEndpointsData, ListProjectEndpointsError, ListProjectEndpointsErrors, ListProjectEndpointsResponse, ListProjectEndpointsResponses, ListProjectOperationsData, ListProjectOperationsError, ListProjectOperationsErrors, ListProjectOperationsResponse, ListProjectOperationsResponses, ListProjectPermissionsData, ListProjectPermissionsError, ListProjectPermissionsErrors, ListProjectPermissionsResponse, ListProjectPermissionsResponses, ListProjectVpcEndpointsData, ListProjectVpcEndpointsError, ListProjectVpcEndpointsErrors, ListProjectVpcEndpointsResponse, ListProjectVpcEndpointsResponses, ListProjectsData, ListProjectsError, ListProjectsErrors, ListProjectsResponse, ListProjectsResponses, ListSharedProjectsData, ListSharedProjectsError, ListSharedProjectsErrors, ListSharedProjectsResponse, ListSharedProjectsResponses, ListSnapshotsData, ListSnapshotsError, ListSnapshotsErrors, ListSnapshotsResponse, ListSnapshotsResponses, MaintenanceWindow, MaskingRule, MaskingRulesResponse, MaskingRulesUpdateRequest, Member, MemberRole, MemberUserInfo, MemberWithUser, NeonAuthAddDomainToRedirectUriWhitelistRequest, NeonAuthAddOAuthProviderRequest, NeonAuthAllowLocalhostResponse, NeonAuthConfigResponse, NeonAuthConfigUpdate, NeonAuthCreateAuthProviderSdkKeysRequest, NeonAuthCreateIntegrationRequest, NeonAuthCreateIntegrationResponse, NeonAuthCreateNewUserRequest, NeonAuthCreateNewUserResponse, NeonAuthDeleteDomainFromRedirectUriWhitelistItem, NeonAuthDeleteDomainFromRedirectUriWhitelistRequest, NeonAuthEmailAndPasswordConfig, NeonAuthEmailAndPasswordConfigUpdate, NeonAuthEmailServerConfig, NeonAuthEmailVerificationMethod, NeonAuthIntegration, NeonAuthMagicLinkConfig, NeonAuthMagicLinkConfigUpdate, NeonAuthOauthProvider, NeonAuthOauthProviderId, NeonAuthOauthProviderType, NeonAuthOrganizationConfig, NeonAuthOrganizationConfigUpdate, NeonAuthPhoneNumberConfig, NeonAuthPhoneNumberConfigUpdate, NeonAuthPluginConfigs, NeonAuthProviderProjectOwnedBy, NeonAuthProviderProjectTransferStatus, NeonAuthRedirectUriWhitelistDomain, NeonAuthRedirectUriWhitelistResponse, NeonAuthSupportedAuthProvider, NeonAuthTransferAuthProviderProjectRequest, NeonAuthTransferAuthProviderProjectResponse, NeonAuthUpdateOAuthProviderRequest, NeonAuthWebhookConfig, Operation, OperationAction, OperationResponse, OperationStatus, OperationsResponse, OrgApiKeyCreateRequest, OrgApiKeyCreateResponse, OrgApiKeyRevokeResponse, OrgApiKeysListResponseItem, OrgDeletionConditionName, Organization, OrganizationCreateRequest, OrganizationGuest, OrganizationGuestsResponse, OrganizationInvitationsResponse, OrganizationInviteCreateRequest, OrganizationInviteUpdateRequest, OrganizationInvitesCreateRequest, OrganizationMemberUpdateRequest, OrganizationMembersResponse, OrganizationMembership, OrganizationMembershipsResponse, OrganizationsResponse, OrganizationsUpdateRequest, Pagination, PaginationResponse, PaymentSource, PaymentSourceBankCard, PgSettingsData, PgVersion, PgbouncerSettingsData, PlanDetails, PlanVersion, PreloadLibraries, Project, ProjectAuditLogLevel, ProjectCreateRequest, ProjectJwksResponse, ProjectLimits, ProjectListItem, ProjectOwnerData, ProjectPermission, ProjectPermissionLevel, ProjectPermissions, ProjectQuota, ProjectRecoverResponse, ProjectResponse, ProjectSettingsData, ProjectTransferRequestResponse, ProjectUpdateRequest, ProjectsApplicationsMapResponse, ProjectsBranchesCountResponse, ProjectsCountResponse, ProjectsIntegrationsMapResponse, ProjectsResponse, ProjectsWithIntegrationResponse, Provisioner, RecoverProjectData, RecoverProjectError, RecoverProjectErrors, RecoverProjectResponse, RecoverProjectResponses, RegionResponse, RemoveOrganizationMemberData, RemoveOrganizationMemberError, RemoveOrganizationMemberErrors, RemoveOrganizationMemberResponse, RemoveOrganizationMemberResponses, ResetProjectBranchRolePasswordData, ResetProjectBranchRolePasswordError, ResetProjectBranchRolePasswordErrors, ResetProjectBranchRolePasswordResponse, ResetProjectBranchRolePasswordResponses, RestartProjectEndpointData, RestartProjectEndpointError, RestartProjectEndpointErrors, RestartProjectEndpointResponse, RestartProjectEndpointResponses, RestoreProjectBranchData, RestoreProjectBranchError, RestoreProjectBranchErrors, RestoreProjectBranchResponse, RestoreProjectBranchResponses, RestoreSnapshotData, RestoreSnapshotError, RestoreSnapshotErrors, RestoreSnapshotResponse, RestoreSnapshotResponses, RevokeApiKeyData, RevokeApiKeyError, RevokeApiKeyErrors, RevokeApiKeyResponse, RevokeApiKeyResponses, RevokeOrgApiKeyData, RevokeOrgApiKeyError, RevokeOrgApiKeyErrors, RevokeOrgApiKeyResponse, RevokeOrgApiKeyResponses, RevokePermissionFromProjectData, RevokePermissionFromProjectError, RevokePermissionFromProjectErrors, RevokePermissionFromProjectResponse, RevokePermissionFromProjectResponses, Role, RoleCreateRequest, RoleOperations, RolePasswordResponse, RoleResponse, RolesResponse, SendNeonAuthTestEmailData, SendNeonAuthTestEmailError, SendNeonAuthTestEmailErrors, SendNeonAuthTestEmailRequest, SendNeonAuthTestEmailResponse, SendNeonAuthTestEmailResponse2, SendNeonAuthTestEmailResponses, SetDefaultProjectBranchData, SetDefaultProjectBranchError, SetDefaultProjectBranchErrors, SetDefaultProjectBranchResponse, SetDefaultProjectBranchResponses, SetOrganizationSpendingLimitData, SetOrganizationSpendingLimitError, SetOrganizationSpendingLimitErrors, SetOrganizationSpendingLimitResponse, SetOrganizationSpendingLimitResponses, SetSnapshotScheduleData, SetSnapshotScheduleError, SetSnapshotScheduleErrors, SetSnapshotScheduleResponse, SetSnapshotScheduleResponses, SharedEmailServer, Snapshot, SnapshotUpdateRequest, SortOrderParam, SpendingLimitResponse, SpendingLimitUpdateRequest, StandardEmailServer, StartAnonymizationData, StartAnonymizationError, StartAnonymizationErrors, StartAnonymizationResponse, StartAnonymizationResponses, StartProjectEndpointData, StartProjectEndpointError, StartProjectEndpointErrors, StartProjectEndpointResponse, StartProjectEndpointResponses, StatementData, StatementResult, SupportTicket, SupportTicketSeverity, SuspendProjectEndpointData, SuspendProjectEndpointError, SuspendProjectEndpointErrors, SuspendProjectEndpointResponse, SuspendProjectEndpointResponses, SuspendTimeoutSeconds, SystemStatusSummaryResponse, TelemetryAuthentication, TelemetryConfig, TelemetryConnection, TelemetryResource, TimeoutParam, TransferNeonAuthProviderProjectData, TransferNeonAuthProviderProjectError, TransferNeonAuthProviderProjectErrors, TransferNeonAuthProviderProjectResponse, TransferNeonAuthProviderProjectResponses, TransferProjectsFromOrgToOrgData, TransferProjectsFromOrgToOrgError, TransferProjectsFromOrgToOrgErrors, TransferProjectsFromOrgToOrgResponse, TransferProjectsFromOrgToOrgResponses, TransferProjectsFromUserToOrgData, TransferProjectsFromUserToOrgError, TransferProjectsFromUserToOrgErrors, TransferProjectsFromUserToOrgResponse, TransferProjectsFromUserToOrgResponses, TransferProjectsToOrganizationRequest, UpdateBranchNeonAuthOauthProviderData, UpdateBranchNeonAuthOauthProviderError, UpdateBranchNeonAuthOauthProviderErrors, UpdateBranchNeonAuthOauthProviderResponse, UpdateBranchNeonAuthOauthProviderResponses, UpdateMaskingRulesData, UpdateMaskingRulesError, UpdateMaskingRulesErrors, UpdateMaskingRulesResponse, UpdateMaskingRulesResponses, UpdateNeonAuthAllowLocalhostData, UpdateNeonAuthAllowLocalhostError, UpdateNeonAuthAllowLocalhostErrors, UpdateNeonAuthAllowLocalhostRequest, UpdateNeonAuthAllowLocalhostResponse, UpdateNeonAuthAllowLocalhostResponses, UpdateNeonAuthConfigData, UpdateNeonAuthConfigError, UpdateNeonAuthConfigErrors, UpdateNeonAuthConfigResponse, UpdateNeonAuthConfigResponses, UpdateNeonAuthEmailAndPasswordConfigData, UpdateNeonAuthEmailAndPasswordConfigError, UpdateNeonAuthEmailAndPasswordConfigErrors, UpdateNeonAuthEmailAndPasswordConfigResponse, UpdateNeonAuthEmailAndPasswordConfigResponses, UpdateNeonAuthEmailProviderData, UpdateNeonAuthEmailProviderError, UpdateNeonAuthEmailProviderErrors, UpdateNeonAuthEmailProviderResponse, UpdateNeonAuthEmailProviderResponses, UpdateNeonAuthEmailServerData, UpdateNeonAuthEmailServerError, UpdateNeonAuthEmailServerErrors, UpdateNeonAuthEmailServerResponse, UpdateNeonAuthEmailServerResponses, UpdateNeonAuthMagicLinkPluginData, UpdateNeonAuthMagicLinkPluginError, UpdateNeonAuthMagicLinkPluginErrors, UpdateNeonAuthMagicLinkPluginResponse, UpdateNeonAuthMagicLinkPluginResponses, UpdateNeonAuthOauthProviderData, UpdateNeonAuthOauthProviderError, UpdateNeonAuthOauthProviderErrors, UpdateNeonAuthOauthProviderResponse, UpdateNeonAuthOauthProviderResponses, UpdateNeonAuthOrganizationPluginData, UpdateNeonAuthOrganizationPluginError, UpdateNeonAuthOrganizationPluginErrors, UpdateNeonAuthOrganizationPluginResponse, UpdateNeonAuthOrganizationPluginResponses, UpdateNeonAuthPhoneNumberPluginData, UpdateNeonAuthPhoneNumberPluginError, UpdateNeonAuthPhoneNumberPluginErrors, UpdateNeonAuthPhoneNumberPluginResponse, UpdateNeonAuthPhoneNumberPluginResponses, UpdateNeonAuthUserRoleData, UpdateNeonAuthUserRoleError, UpdateNeonAuthUserRoleErrors, UpdateNeonAuthUserRoleRequest, UpdateNeonAuthUserRoleResponse, UpdateNeonAuthUserRoleResponse2, UpdateNeonAuthUserRoleResponses, UpdateNeonAuthWebhookConfigData, UpdateNeonAuthWebhookConfigError, UpdateNeonAuthWebhookConfigErrors, UpdateNeonAuthWebhookConfigResponse, UpdateNeonAuthWebhookConfigResponses, UpdateOrganizationMemberData, UpdateOrganizationMemberError, UpdateOrganizationMemberErrors, UpdateOrganizationMemberResponse, UpdateOrganizationMemberResponses, UpdateProjectBranchData, UpdateProjectBranchDataApiData, UpdateProjectBranchDataApiError, UpdateProjectBranchDataApiErrors, UpdateProjectBranchDataApiResponse, UpdateProjectBranchDataApiResponses, UpdateProjectBranchDatabaseData, UpdateProjectBranchDatabaseError, UpdateProjectBranchDatabaseErrors, UpdateProjectBranchDatabaseResponse, UpdateProjectBranchDatabaseResponses, UpdateProjectBranchError, UpdateProjectBranchErrors, UpdateProjectBranchResponse, UpdateProjectBranchResponses, UpdateProjectData, UpdateProjectEndpointData, UpdateProjectEndpointError, UpdateProjectEndpointErrors, UpdateProjectEndpointResponse, UpdateProjectEndpointResponses, UpdateProjectError, UpdateProjectErrors, UpdateProjectResponse, UpdateProjectResponses, UpdateSnapshotData, UpdateSnapshotError, UpdateSnapshotErrors, UpdateSnapshotResponse, UpdateSnapshotResponses, UpdateUserInfoRequest, UserDeletionConditionName, VerifyUserPasswordRequest, VpcEndpoint, VpcEndpointAssignment, VpcEndpointDetails, VpcEndpointWithRegion, VpcEndpointsResponse, VpcEndpointsWithRegionResponse } from "./types.gen.js";
|
|
2
|
+
import { Options, acceptProjectTransferRequest, addBranchNeonAuthOauthProvider, addBranchNeonAuthTrustedDomain, addNeonAuthDomainToRedirectUriWhitelist, addNeonAuthOauthProvider, addProjectJwks, assignOrganizationVpcEndpoint, assignProjectVpcEndpoint, countProjectBranches, createApiKey, createBranchNeonAuthNewUser, createNeonAuth, createNeonAuthIntegration, createNeonAuthNewUser, createNeonAuthProviderSdkKeys, createOrgApiKey, createOrganizationInvitations, createProject, createProjectBranch, createProjectBranchAnonymized, createProjectBranchDataApi, createProjectBranchDatabase, createProjectBranchRole, createProjectEndpoint, createProjectTransferRequest, createSnapshot, deleteBranchNeonAuthOauthProvider, deleteBranchNeonAuthTrustedDomain, deleteBranchNeonAuthUser, deleteNeonAuthDomainFromRedirectUriWhitelist, deleteNeonAuthIntegration, deleteNeonAuthOauthProvider, deleteNeonAuthUser, deleteOrganizationSpendingLimit, deleteOrganizationVpcEndpoint, deleteProject, deleteProjectBranch, deleteProjectBranchDataApi, deleteProjectBranchDatabase, deleteProjectBranchRole, deleteProjectEndpoint, deleteProjectJwks, deleteProjectVpcEndpoint, deleteSnapshot, disableNeonAuth, finalizeRestoreBranch, getActiveRegions, getAnonymizedBranchStatus, getAuthDetails, getAvailablePreloadLibraries, getConnectionUri, getConsumptionHistoryPerBranchV2, getConsumptionHistoryPerProject, getConsumptionHistoryPerProjectV2, getCurrentUserInfo, getCurrentUserOrganizations, getMaskingRules, getNeonAuth, getNeonAuthAllowLocalhost, getNeonAuthEmailAndPasswordConfig, getNeonAuthEmailProvider, getNeonAuthEmailServer, getNeonAuthPhoneNumberPlugin, getNeonAuthPluginConfigs, getNeonAuthWebhookConfig, getOrganization, getOrganizationInvitations, getOrganizationMember, getOrganizationMembers, getOrganizationSpendingLimit, getOrganizationVpcEndpointDetails, getProject, getProjectAdvisorSecurityIssues, getProjectBranch, getProjectBranchDataApi, getProjectBranchDatabase, getProjectBranchRole, getProjectBranchRolePassword, getProjectBranchSchema, getProjectBranchSchemaComparison, getProjectEndpoint, getProjectJwks, getProjectOperation, getSnapshotSchedule, grantPermissionToProject, listApiKeys, listBranchNeonAuthOauthProviders, listBranchNeonAuthTrustedDomains, listNeonAuthIntegrations, listNeonAuthOauthProviders, listNeonAuthRedirectUriWhitelistDomains, listOrgApiKeys, listOrganizationVpcEndpoints, listOrganizationVpcEndpointsAllRegions, listProjectBranchDatabases, listProjectBranchEndpoints, listProjectBranchRoles, listProjectBranches, listProjectEndpoints, listProjectOperations, listProjectPermissions, listProjectVpcEndpoints, listProjects, listSharedProjects, listSnapshots, recoverProject, removeOrganizationMember, resetProjectBranchRolePassword, restartProjectEndpoint, restoreProjectBranch, restoreSnapshot, revokeApiKey, revokeOrgApiKey, revokePermissionFromProject, sendNeonAuthTestEmail, setDefaultProjectBranch, setOrganizationSpendingLimit, setSnapshotSchedule, startAnonymization, startProjectEndpoint, suspendProjectEndpoint, transferNeonAuthProviderProject, transferProjectsFromOrgToOrg, transferProjectsFromUserToOrg, updateBranchNeonAuthOauthProvider, updateMaskingRules, updateNeonAuthAllowLocalhost, updateNeonAuthConfig, updateNeonAuthEmailAndPasswordConfig, updateNeonAuthEmailProvider, updateNeonAuthEmailServer, updateNeonAuthMagicLinkPlugin, updateNeonAuthOauthProvider, updateNeonAuthOrganizationPlugin, updateNeonAuthPhoneNumberPlugin, updateNeonAuthUserRole, updateNeonAuthWebhookConfig, updateOrganizationMember, updateProject, updateProjectBranch, updateProjectBranchDataApi, updateProjectBranchDatabase, updateProjectEndpoint, updateSnapshot } from "./sdk.gen.js";
|
|
3
|
+
export { type AcceptProjectTransferRequestData, type AcceptProjectTransferRequestError, type AcceptProjectTransferRequestErrors, type AcceptProjectTransferRequestResponse, type AcceptProjectTransferRequestResponses, type AcceptProjectTransferRequestSatisfiesPlanError, type ActiveRegionsResponse, type AddBranchNeonAuthOauthProviderData, type AddBranchNeonAuthOauthProviderError, type AddBranchNeonAuthOauthProviderErrors, type AddBranchNeonAuthOauthProviderResponse, type AddBranchNeonAuthOauthProviderResponses, type AddBranchNeonAuthTrustedDomainData, type AddBranchNeonAuthTrustedDomainError, type AddBranchNeonAuthTrustedDomainErrors, type AddBranchNeonAuthTrustedDomainResponses, type AddNeonAuthDomainToRedirectUriWhitelistData, type AddNeonAuthDomainToRedirectUriWhitelistError, type AddNeonAuthDomainToRedirectUriWhitelistErrors, type AddNeonAuthDomainToRedirectUriWhitelistResponses, type AddNeonAuthOauthProviderData, type AddNeonAuthOauthProviderError, type AddNeonAuthOauthProviderErrors, type AddNeonAuthOauthProviderResponse, type AddNeonAuthOauthProviderResponses, type AddProjectJwksData, type AddProjectJwksError, type AddProjectJwksErrors, type AddProjectJwksRequest, type AddProjectJwksResponse, type AddProjectJwksResponses, type AdvisorCategory, type AdvisorIssue, type AllowedIps, type AnnotationCreateValueRequest, type AnnotationData, type AnnotationObjectData, type AnnotationResponse, type AnnotationValueData, type AnnotationsMapResponse, type AnonymizationRunMetadata, type AnonymizedBranchStatusResponse, type ApiKeyCreateRequest, type ApiKeyCreateResponse, type ApiKeyCreatorData, type ApiKeyRevokeResponse, type ApiKeysListResponseItem, type ApplicationType, type AssignOrganizationVpcEndpointData, type AssignOrganizationVpcEndpointError, type AssignOrganizationVpcEndpointErrors, type AssignOrganizationVpcEndpointResponses, type AssignProjectVpcEndpointData, type AssignProjectVpcEndpointError, type AssignProjectVpcEndpointErrors, type AssignProjectVpcEndpointResponses, type AuthDetailsResponse, type AvailablePreloadLibraries, type AvailablePreloadLibrary, type BackupSchedule, type BackupScheduleItem, type BillingAccount, type BillingAccountState, type BillingPaymentMethod, type BillingSubscriptionType, type Branch, type BranchAnonymizedCreateRequest, type BranchConsumption, type BranchConsumptionResponse, type BranchCreateRequest, type BranchCreateRequestEndpointOptions, type BranchOperations, type BranchRecoverResponse, type BranchRecoveryInfo, type BranchResponse, type BranchRestoreRequest, type BranchRestoreStatus, type BranchRestrictedAction, type BranchSchemaCompareResponse, type BranchSchemaJson, type BranchSchemaResponse, type BranchState, type BranchUpdateRequest, type BranchesCountResponse, type BranchesResponse, type ClientOptions, type ComputeUnit, type ConnectionDetails, type ConnectionParameters, type ConnectionUriResponse, type ConnectionUrisOptionalResponse, type ConnectionUrisResponse, type ConsumptionHistoryGranularity, type ConsumptionHistoryPerBranchV2, type ConsumptionHistoryPerBranchV2Response, type ConsumptionHistoryPerPeriod, type ConsumptionHistoryPerPeriodV2, type ConsumptionHistoryPerProject, type ConsumptionHistoryPerProjectResponse, type ConsumptionHistoryPerProjectV2, type ConsumptionHistoryPerProjectV2Response, type ConsumptionHistoryPerTimeframe, type ConsumptionHistoryPerTimeframeV2, type ConsumptionHistoryQueryMetrics, type ConsumptionMetricValue, type ConvertUserToOrgRequest, type CountProjectBranchesData, type CountProjectBranchesError, type CountProjectBranchesErrors, type CountProjectBranchesResponse, type CountProjectBranchesResponses, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyErrors, type CreateApiKeyResponse, type CreateApiKeyResponses, type CreateBranchNeonAuthNewUserData, type CreateBranchNeonAuthNewUserError, type CreateBranchNeonAuthNewUserErrors, type CreateBranchNeonAuthNewUserRequest, type CreateBranchNeonAuthNewUserResponse, type CreateBranchNeonAuthNewUserResponses, type CreateNeonAuthData, type CreateNeonAuthError, type CreateNeonAuthErrors, type CreateNeonAuthIntegrationData, type CreateNeonAuthIntegrationError, type CreateNeonAuthIntegrationErrors, type CreateNeonAuthIntegrationResponse, type CreateNeonAuthIntegrationResponses, type CreateNeonAuthNewUserData, type CreateNeonAuthNewUserError, type CreateNeonAuthNewUserErrors, type CreateNeonAuthNewUserResponse, type CreateNeonAuthNewUserResponses, type CreateNeonAuthProviderSdkKeysData, type CreateNeonAuthProviderSdkKeysError, type CreateNeonAuthProviderSdkKeysErrors, type CreateNeonAuthProviderSdkKeysResponse, type CreateNeonAuthProviderSdkKeysResponses, type CreateNeonAuthResponse, type CreateNeonAuthResponses, type CreateOrgApiKeyData, type CreateOrgApiKeyError, type CreateOrgApiKeyErrors, type CreateOrgApiKeyResponse, type CreateOrgApiKeyResponses, type CreateOrganizationInvitationsData, type CreateOrganizationInvitationsError, type CreateOrganizationInvitationsErrors, type CreateOrganizationInvitationsResponse, type CreateOrganizationInvitationsResponses, type CreateProjectBranchAnonymizedData, type CreateProjectBranchAnonymizedError, type CreateProjectBranchAnonymizedErrors, type CreateProjectBranchAnonymizedResponse, type CreateProjectBranchAnonymizedResponses, type CreateProjectBranchData, type CreateProjectBranchDataApiData, type CreateProjectBranchDataApiError, type CreateProjectBranchDataApiErrors, type CreateProjectBranchDataApiResponse, type CreateProjectBranchDataApiResponses, type CreateProjectBranchDatabaseData, type CreateProjectBranchDatabaseError, type CreateProjectBranchDatabaseErrors, type CreateProjectBranchDatabaseResponse, type CreateProjectBranchDatabaseResponses, type CreateProjectBranchError, type CreateProjectBranchErrors, type CreateProjectBranchResponse, type CreateProjectBranchResponses, type CreateProjectBranchRoleData, type CreateProjectBranchRoleError, type CreateProjectBranchRoleErrors, type CreateProjectBranchRoleResponse, type CreateProjectBranchRoleResponses, type CreateProjectData, type CreateProjectEndpointData, type CreateProjectEndpointError, type CreateProjectEndpointErrors, type CreateProjectEndpointResponse, type CreateProjectEndpointResponses, type CreateProjectError, type CreateProjectErrors, type CreateProjectResponse, type CreateProjectResponses, type CreateProjectTransferRequestData, type CreateProjectTransferRequestError, type CreateProjectTransferRequestErrors, type CreateProjectTransferRequestResponse, type CreateProjectTransferRequestResponses, type CreateSnapshotData, type CreateSnapshotError, type CreateSnapshotErrors, type CreateSnapshotResponse, type CreateSnapshotResponses, type CurrentUserAuthAccount, type CurrentUserInfoAuthResponse, type CurrentUserInfoResponse, type CursorPagination, type CursorPaginationResponse, type CursorParam, type DataApiCreateRequest, type DataApiCreateResponse, type DataApiReponse, type DataApiSettings, type DataApiUpdateRequest, type Database, type DatabaseCreateRequest, type DatabaseOperations, type DatabaseResponse, type DatabaseUpdateRequest, type DatabasesResponse, type DefaultEndpointSettings, type DeleteBranchNeonAuthOauthProviderData, type DeleteBranchNeonAuthOauthProviderError, type DeleteBranchNeonAuthOauthProviderErrors, type DeleteBranchNeonAuthOauthProviderResponses, type DeleteBranchNeonAuthTrustedDomainData, type DeleteBranchNeonAuthTrustedDomainError, type DeleteBranchNeonAuthTrustedDomainErrors, type DeleteBranchNeonAuthTrustedDomainResponses, type DeleteBranchNeonAuthUserData, type DeleteBranchNeonAuthUserError, type DeleteBranchNeonAuthUserErrors, type DeleteBranchNeonAuthUserResponse, type DeleteBranchNeonAuthUserResponses, type DeleteNeonAuthDomainFromRedirectUriWhitelistData, type DeleteNeonAuthDomainFromRedirectUriWhitelistError, type DeleteNeonAuthDomainFromRedirectUriWhitelistErrors, type DeleteNeonAuthDomainFromRedirectUriWhitelistResponses, type DeleteNeonAuthIntegrationData, type DeleteNeonAuthIntegrationError, type DeleteNeonAuthIntegrationErrors, type DeleteNeonAuthIntegrationResponses, type DeleteNeonAuthOauthProviderData, type DeleteNeonAuthOauthProviderError, type DeleteNeonAuthOauthProviderErrors, type DeleteNeonAuthOauthProviderResponses, type DeleteNeonAuthUserData, type DeleteNeonAuthUserError, type DeleteNeonAuthUserErrors, type DeleteNeonAuthUserResponse, type DeleteNeonAuthUserResponses, type DeleteOrganizationSpendingLimitData, type DeleteOrganizationSpendingLimitError, type DeleteOrganizationSpendingLimitErrors, type DeleteOrganizationSpendingLimitResponse, type DeleteOrganizationSpendingLimitResponses, type DeleteOrganizationVpcEndpointData, type DeleteOrganizationVpcEndpointError, type DeleteOrganizationVpcEndpointErrors, type DeleteOrganizationVpcEndpointResponses, type DeleteProjectBranchData, type DeleteProjectBranchDataApiData, type DeleteProjectBranchDataApiError, type DeleteProjectBranchDataApiErrors, type DeleteProjectBranchDataApiResponse, type DeleteProjectBranchDataApiResponses, type DeleteProjectBranchDatabaseData, type DeleteProjectBranchDatabaseError, type DeleteProjectBranchDatabaseErrors, type DeleteProjectBranchDatabaseResponse, type DeleteProjectBranchDatabaseResponses, type DeleteProjectBranchError, type DeleteProjectBranchErrors, type DeleteProjectBranchResponse, type DeleteProjectBranchResponses, type DeleteProjectBranchRoleData, type DeleteProjectBranchRoleError, type DeleteProjectBranchRoleErrors, type DeleteProjectBranchRoleResponse, type DeleteProjectBranchRoleResponses, type DeleteProjectData, type DeleteProjectEndpointData, type DeleteProjectEndpointError, type DeleteProjectEndpointErrors, type DeleteProjectEndpointResponse, type DeleteProjectEndpointResponses, type DeleteProjectError, type DeleteProjectErrors, type DeleteProjectJwksData, type DeleteProjectJwksError, type DeleteProjectJwksErrors, type DeleteProjectJwksResponse, type DeleteProjectJwksResponses, type DeleteProjectResponse, type DeleteProjectResponses, type DeleteProjectVpcEndpointData, type DeleteProjectVpcEndpointError, type DeleteProjectVpcEndpointErrors, type DeleteProjectVpcEndpointResponses, type DeleteSnapshotData, type DeleteSnapshotError, type DeleteSnapshotErrors, type DeleteSnapshotResponse, type DeleteSnapshotResponses, type DisableNeonAuthData, type DisableNeonAuthError, type DisableNeonAuthErrors, type DisableNeonAuthResponses, type Duration, type EmptyResponse, type EnableNeonAuthIntegrationRequest, type EnableOrganizationFeatureRequest, type Endpoint, type EndpointCreateRequest, type EndpointOperations, type EndpointPasswordlessSessionAuthRequest, type EndpointPoolerMode, type EndpointResponse, type EndpointSettingsData, type EndpointState, type EndpointType, type EndpointUpdateRequest, type EndpointsOptionalResponse, type EndpointsResponse, type ErrorCode, type ExplainData, type FeatureFlags, type Features, type FinalizeRestoreBranchData, type FinalizeRestoreBranchError, type FinalizeRestoreBranchErrors, type FinalizeRestoreBranchResponse, type FinalizeRestoreBranchResponses, type GeneralError, type GetActiveRegionsData, type GetActiveRegionsError, type GetActiveRegionsErrors, type GetActiveRegionsResponse, type GetActiveRegionsResponses, type GetAnonymizedBranchStatusData, type GetAnonymizedBranchStatusError, type GetAnonymizedBranchStatusErrors, type GetAnonymizedBranchStatusResponse, type GetAnonymizedBranchStatusResponses, type GetAuthDetailsData, type GetAuthDetailsError, type GetAuthDetailsErrors, type GetAuthDetailsResponse, type GetAuthDetailsResponses, type GetAvailablePreloadLibrariesData, type GetAvailablePreloadLibrariesError, type GetAvailablePreloadLibrariesErrors, type GetAvailablePreloadLibrariesResponse, type GetAvailablePreloadLibrariesResponses, type GetConnectionUriData, type GetConnectionUriError, type GetConnectionUriErrors, type GetConnectionUriResponse, type GetConnectionUriResponses, type GetConsumptionHistoryPerBranchV2Data, type GetConsumptionHistoryPerBranchV2Error, type GetConsumptionHistoryPerBranchV2Errors, type GetConsumptionHistoryPerBranchV2Response, type GetConsumptionHistoryPerBranchV2Responses, type GetConsumptionHistoryPerProjectData, type GetConsumptionHistoryPerProjectError, type GetConsumptionHistoryPerProjectErrors, type GetConsumptionHistoryPerProjectResponse, type GetConsumptionHistoryPerProjectResponses, type GetConsumptionHistoryPerProjectV2Data, type GetConsumptionHistoryPerProjectV2Error, type GetConsumptionHistoryPerProjectV2Errors, type GetConsumptionHistoryPerProjectV2Response, type GetConsumptionHistoryPerProjectV2Responses, type GetCurrentUserInfoData, type GetCurrentUserInfoError, type GetCurrentUserInfoErrors, type GetCurrentUserInfoResponse, type GetCurrentUserInfoResponses, type GetCurrentUserOrganizationsData, type GetCurrentUserOrganizationsError, type GetCurrentUserOrganizationsErrors, type GetCurrentUserOrganizationsResponse, type GetCurrentUserOrganizationsResponses, type GetMaskingRulesData, type GetMaskingRulesError, type GetMaskingRulesErrors, type GetMaskingRulesResponse, type GetMaskingRulesResponses, type GetNeonAuthAllowLocalhostData, type GetNeonAuthAllowLocalhostError, type GetNeonAuthAllowLocalhostErrors, type GetNeonAuthAllowLocalhostResponse, type GetNeonAuthAllowLocalhostResponses, type GetNeonAuthData, type GetNeonAuthEmailAndPasswordConfigData, type GetNeonAuthEmailAndPasswordConfigError, type GetNeonAuthEmailAndPasswordConfigErrors, type GetNeonAuthEmailAndPasswordConfigResponse, type GetNeonAuthEmailAndPasswordConfigResponses, type GetNeonAuthEmailProviderData, type GetNeonAuthEmailProviderError, type GetNeonAuthEmailProviderErrors, type GetNeonAuthEmailProviderResponse, type GetNeonAuthEmailProviderResponses, type GetNeonAuthEmailServerData, type GetNeonAuthEmailServerError, type GetNeonAuthEmailServerErrors, type GetNeonAuthEmailServerResponse, type GetNeonAuthEmailServerResponses, type GetNeonAuthError, type GetNeonAuthErrors, type GetNeonAuthPhoneNumberPluginData, type GetNeonAuthPhoneNumberPluginError, type GetNeonAuthPhoneNumberPluginErrors, type GetNeonAuthPhoneNumberPluginResponse, type GetNeonAuthPhoneNumberPluginResponses, type GetNeonAuthPluginConfigsData, type GetNeonAuthPluginConfigsError, type GetNeonAuthPluginConfigsErrors, type GetNeonAuthPluginConfigsResponse, type GetNeonAuthPluginConfigsResponses, type GetNeonAuthResponse, type GetNeonAuthResponses, type GetNeonAuthWebhookConfigData, type GetNeonAuthWebhookConfigError, type GetNeonAuthWebhookConfigErrors, type GetNeonAuthWebhookConfigResponse, type GetNeonAuthWebhookConfigResponses, type GetOrganizationData, type GetOrganizationError, type GetOrganizationErrors, type GetOrganizationInvitationsData, type GetOrganizationInvitationsError, type GetOrganizationInvitationsErrors, type GetOrganizationInvitationsResponse, type GetOrganizationInvitationsResponses, type GetOrganizationMemberData, type GetOrganizationMemberError, type GetOrganizationMemberErrors, type GetOrganizationMemberResponse, type GetOrganizationMemberResponses, type GetOrganizationMembersData, type GetOrganizationMembersError, type GetOrganizationMembersErrors, type GetOrganizationMembersResponse, type GetOrganizationMembersResponses, type GetOrganizationResponse, type GetOrganizationResponses, type GetOrganizationSpendingLimitData, type GetOrganizationSpendingLimitError, type GetOrganizationSpendingLimitErrors, type GetOrganizationSpendingLimitResponse, type GetOrganizationSpendingLimitResponses, type GetOrganizationVpcEndpointDetailsData, type GetOrganizationVpcEndpointDetailsError, type GetOrganizationVpcEndpointDetailsErrors, type GetOrganizationVpcEndpointDetailsResponse, type GetOrganizationVpcEndpointDetailsResponses, type GetProjectAdvisorSecurityIssuesData, type GetProjectAdvisorSecurityIssuesError, type GetProjectAdvisorSecurityIssuesErrors, type GetProjectAdvisorSecurityIssuesResponse, type GetProjectAdvisorSecurityIssuesResponses, type GetProjectBranchData, type GetProjectBranchDataApiData, type GetProjectBranchDataApiError, type GetProjectBranchDataApiErrors, type GetProjectBranchDataApiResponse, type GetProjectBranchDataApiResponses, type GetProjectBranchDatabaseData, type GetProjectBranchDatabaseError, type GetProjectBranchDatabaseErrors, type GetProjectBranchDatabaseResponse, type GetProjectBranchDatabaseResponses, type GetProjectBranchError, type GetProjectBranchErrors, type GetProjectBranchResponse, type GetProjectBranchResponses, type GetProjectBranchRoleData, type GetProjectBranchRoleError, type GetProjectBranchRoleErrors, type GetProjectBranchRolePasswordData, type GetProjectBranchRolePasswordError, type GetProjectBranchRolePasswordErrors, type GetProjectBranchRolePasswordResponse, type GetProjectBranchRolePasswordResponses, type GetProjectBranchRoleResponse, type GetProjectBranchRoleResponses, type GetProjectBranchSchemaComparisonData, type GetProjectBranchSchemaComparisonError, type GetProjectBranchSchemaComparisonErrors, type GetProjectBranchSchemaComparisonResponse, type GetProjectBranchSchemaComparisonResponses, type GetProjectBranchSchemaData, type GetProjectBranchSchemaError, type GetProjectBranchSchemaErrors, type GetProjectBranchSchemaResponse, type GetProjectBranchSchemaResponses, type GetProjectData, type GetProjectEndpointData, type GetProjectEndpointError, type GetProjectEndpointErrors, type GetProjectEndpointResponse, type GetProjectEndpointResponses, type GetProjectError, type GetProjectErrors, type GetProjectJwksData, type GetProjectJwksError, type GetProjectJwksErrors, type GetProjectJwksResponse, type GetProjectJwksResponses, type GetProjectOperationData, type GetProjectOperationError, type GetProjectOperationErrors, type GetProjectOperationResponse, type GetProjectOperationResponses, type GetProjectResponse, type GetProjectResponses, type GetSnapshotScheduleData, type GetSnapshotScheduleError, type GetSnapshotScheduleErrors, type GetSnapshotScheduleResponse, type GetSnapshotScheduleResponses, type GrantPermissionToProjectData, type GrantPermissionToProjectError, type GrantPermissionToProjectErrors, type GrantPermissionToProjectRequest, type GrantPermissionToProjectResponse, type GrantPermissionToProjectResponses, type HealthCheck, type IdentityProviderId, type Invitation, type InvitationCreateRequest, type Jwks, type JwksCreationOperation, type JwksResponse, type LimitParam, type Limits, type LimitsUnsatisfiedResponse, type LinkedAuthAccount, type ListApiKeysData, type ListApiKeysError, type ListApiKeysErrors, type ListApiKeysResponse, type ListApiKeysResponses, type ListBranchNeonAuthOauthProvidersData, type ListBranchNeonAuthOauthProvidersError, type ListBranchNeonAuthOauthProvidersErrors, type ListBranchNeonAuthOauthProvidersResponse, type ListBranchNeonAuthOauthProvidersResponses, type ListBranchNeonAuthTrustedDomainsData, type ListBranchNeonAuthTrustedDomainsError, type ListBranchNeonAuthTrustedDomainsErrors, type ListBranchNeonAuthTrustedDomainsResponse, type ListBranchNeonAuthTrustedDomainsResponses, type ListNeonAuthIntegrationsData, type ListNeonAuthIntegrationsError, type ListNeonAuthIntegrationsErrors, type ListNeonAuthIntegrationsResponse, type ListNeonAuthIntegrationsResponse2, type ListNeonAuthIntegrationsResponses, type ListNeonAuthOauthProvidersData, type ListNeonAuthOauthProvidersError, type ListNeonAuthOauthProvidersErrors, type ListNeonAuthOauthProvidersResponse, type ListNeonAuthOauthProvidersResponse2, type ListNeonAuthOauthProvidersResponses, type ListNeonAuthRedirectUriWhitelistDomainsData, type ListNeonAuthRedirectUriWhitelistDomainsError, type ListNeonAuthRedirectUriWhitelistDomainsErrors, type ListNeonAuthRedirectUriWhitelistDomainsResponse, type ListNeonAuthRedirectUriWhitelistDomainsResponses, type ListOrgApiKeysData, type ListOrgApiKeysError, type ListOrgApiKeysErrors, type ListOrgApiKeysResponse, type ListOrgApiKeysResponses, type ListOrganizationVpcEndpointsAllRegionsData, type ListOrganizationVpcEndpointsAllRegionsError, type ListOrganizationVpcEndpointsAllRegionsErrors, type ListOrganizationVpcEndpointsAllRegionsResponse, type ListOrganizationVpcEndpointsAllRegionsResponses, type ListOrganizationVpcEndpointsData, type ListOrganizationVpcEndpointsError, type ListOrganizationVpcEndpointsErrors, type ListOrganizationVpcEndpointsResponse, type ListOrganizationVpcEndpointsResponses, type ListProjectBranchDatabasesData, type ListProjectBranchDatabasesError, type ListProjectBranchDatabasesErrors, type ListProjectBranchDatabasesResponse, type ListProjectBranchDatabasesResponses, type ListProjectBranchEndpointsData, type ListProjectBranchEndpointsError, type ListProjectBranchEndpointsErrors, type ListProjectBranchEndpointsResponse, type ListProjectBranchEndpointsResponses, type ListProjectBranchRolesData, type ListProjectBranchRolesError, type ListProjectBranchRolesErrors, type ListProjectBranchRolesResponse, type ListProjectBranchRolesResponses, type ListProjectBranchesData, type ListProjectBranchesError, type ListProjectBranchesErrors, type ListProjectBranchesResponse, type ListProjectBranchesResponses, type ListProjectEndpointsData, type ListProjectEndpointsError, type ListProjectEndpointsErrors, type ListProjectEndpointsResponse, type ListProjectEndpointsResponses, type ListProjectOperationsData, type ListProjectOperationsError, type ListProjectOperationsErrors, type ListProjectOperationsResponse, type ListProjectOperationsResponses, type ListProjectPermissionsData, type ListProjectPermissionsError, type ListProjectPermissionsErrors, type ListProjectPermissionsResponse, type ListProjectPermissionsResponses, type ListProjectVpcEndpointsData, type ListProjectVpcEndpointsError, type ListProjectVpcEndpointsErrors, type ListProjectVpcEndpointsResponse, type ListProjectVpcEndpointsResponses, type ListProjectsData, type ListProjectsError, type ListProjectsErrors, type ListProjectsResponse, type ListProjectsResponses, type ListSharedProjectsData, type ListSharedProjectsError, type ListSharedProjectsErrors, type ListSharedProjectsResponse, type ListSharedProjectsResponses, type ListSnapshotsData, type ListSnapshotsError, type ListSnapshotsErrors, type ListSnapshotsResponse, type ListSnapshotsResponses, type MaintenanceWindow, type MaskingRule, type MaskingRulesResponse, type MaskingRulesUpdateRequest, type Member, type MemberRole, type MemberUserInfo, type MemberWithUser, type NeonAuthAddDomainToRedirectUriWhitelistRequest, type NeonAuthAddOAuthProviderRequest, type NeonAuthAllowLocalhostResponse, type NeonAuthConfigResponse, type NeonAuthConfigUpdate, type NeonAuthCreateAuthProviderSdkKeysRequest, type NeonAuthCreateIntegrationRequest, type NeonAuthCreateIntegrationResponse, type NeonAuthCreateNewUserRequest, type NeonAuthCreateNewUserResponse, type NeonAuthDeleteDomainFromRedirectUriWhitelistItem, type NeonAuthDeleteDomainFromRedirectUriWhitelistRequest, type NeonAuthEmailAndPasswordConfig, type NeonAuthEmailAndPasswordConfigUpdate, type NeonAuthEmailServerConfig, type NeonAuthEmailVerificationMethod, type NeonAuthIntegration, type NeonAuthMagicLinkConfig, type NeonAuthMagicLinkConfigUpdate, type NeonAuthOauthProvider, type NeonAuthOauthProviderId, type NeonAuthOauthProviderType, type NeonAuthOrganizationConfig, type NeonAuthOrganizationConfigUpdate, type NeonAuthPhoneNumberConfig, type NeonAuthPhoneNumberConfigUpdate, type NeonAuthPluginConfigs, type NeonAuthProviderProjectOwnedBy, type NeonAuthProviderProjectTransferStatus, type NeonAuthRedirectUriWhitelistDomain, type NeonAuthRedirectUriWhitelistResponse, type NeonAuthSupportedAuthProvider, type NeonAuthTransferAuthProviderProjectRequest, type NeonAuthTransferAuthProviderProjectResponse, type NeonAuthUpdateOAuthProviderRequest, type NeonAuthWebhookConfig, type Operation, type OperationAction, type OperationResponse, type OperationStatus, type OperationsResponse, type Options, type OrgApiKeyCreateRequest, type OrgApiKeyCreateResponse, type OrgApiKeyRevokeResponse, type OrgApiKeysListResponseItem, type OrgDeletionConditionName, type Organization, type OrganizationCreateRequest, type OrganizationGuest, type OrganizationGuestsResponse, type OrganizationInvitationsResponse, type OrganizationInviteCreateRequest, type OrganizationInviteUpdateRequest, type OrganizationInvitesCreateRequest, type OrganizationMemberUpdateRequest, type OrganizationMembersResponse, type OrganizationMembership, type OrganizationMembershipsResponse, type OrganizationsResponse, type OrganizationsUpdateRequest, type Pagination, type PaginationResponse, type PaymentSource, type PaymentSourceBankCard, type PgSettingsData, type PgVersion, type PgbouncerSettingsData, type PlanDetails, type PlanVersion, type PreloadLibraries, type Project, type ProjectAuditLogLevel, type ProjectCreateRequest, type ProjectJwksResponse, type ProjectLimits, type ProjectListItem, type ProjectOwnerData, type ProjectPermission, type ProjectPermissionLevel, type ProjectPermissions, type ProjectQuota, type ProjectRecoverResponse, type ProjectResponse, type ProjectSettingsData, type ProjectTransferRequestResponse, type ProjectUpdateRequest, type ProjectsApplicationsMapResponse, type ProjectsBranchesCountResponse, type ProjectsCountResponse, type ProjectsIntegrationsMapResponse, type ProjectsResponse, type ProjectsWithIntegrationResponse, type Provisioner, type RecoverProjectData, type RecoverProjectError, type RecoverProjectErrors, type RecoverProjectResponse, type RecoverProjectResponses, type RegionResponse, type RemoveOrganizationMemberData, type RemoveOrganizationMemberError, type RemoveOrganizationMemberErrors, type RemoveOrganizationMemberResponse, type RemoveOrganizationMemberResponses, type ResetProjectBranchRolePasswordData, type ResetProjectBranchRolePasswordError, type ResetProjectBranchRolePasswordErrors, type ResetProjectBranchRolePasswordResponse, type ResetProjectBranchRolePasswordResponses, type RestartProjectEndpointData, type RestartProjectEndpointError, type RestartProjectEndpointErrors, type RestartProjectEndpointResponse, type RestartProjectEndpointResponses, type RestoreProjectBranchData, type RestoreProjectBranchError, type RestoreProjectBranchErrors, type RestoreProjectBranchResponse, type RestoreProjectBranchResponses, type RestoreSnapshotData, type RestoreSnapshotError, type RestoreSnapshotErrors, type RestoreSnapshotResponse, type RestoreSnapshotResponses, type RevokeApiKeyData, type RevokeApiKeyError, type RevokeApiKeyErrors, type RevokeApiKeyResponse, type RevokeApiKeyResponses, type RevokeOrgApiKeyData, type RevokeOrgApiKeyError, type RevokeOrgApiKeyErrors, type RevokeOrgApiKeyResponse, type RevokeOrgApiKeyResponses, type RevokePermissionFromProjectData, type RevokePermissionFromProjectError, type RevokePermissionFromProjectErrors, type RevokePermissionFromProjectResponse, type RevokePermissionFromProjectResponses, type Role, type RoleCreateRequest, type RoleOperations, type RolePasswordResponse, type RoleResponse, type RolesResponse, type SendNeonAuthTestEmailData, type SendNeonAuthTestEmailError, type SendNeonAuthTestEmailErrors, type SendNeonAuthTestEmailRequest, type SendNeonAuthTestEmailResponse, type SendNeonAuthTestEmailResponse2, type SendNeonAuthTestEmailResponses, type SetDefaultProjectBranchData, type SetDefaultProjectBranchError, type SetDefaultProjectBranchErrors, type SetDefaultProjectBranchResponse, type SetDefaultProjectBranchResponses, type SetOrganizationSpendingLimitData, type SetOrganizationSpendingLimitError, type SetOrganizationSpendingLimitErrors, type SetOrganizationSpendingLimitResponse, type SetOrganizationSpendingLimitResponses, type SetSnapshotScheduleData, type SetSnapshotScheduleError, type SetSnapshotScheduleErrors, type SetSnapshotScheduleResponse, type SetSnapshotScheduleResponses, type SharedEmailServer, type Snapshot, type SnapshotUpdateRequest, type SortOrderParam, type SpendingLimitResponse, type SpendingLimitUpdateRequest, type StandardEmailServer, type StartAnonymizationData, type StartAnonymizationError, type StartAnonymizationErrors, type StartAnonymizationResponse, type StartAnonymizationResponses, type StartProjectEndpointData, type StartProjectEndpointError, type StartProjectEndpointErrors, type StartProjectEndpointResponse, type StartProjectEndpointResponses, type StatementData, type StatementResult, type SupportTicket, type SupportTicketSeverity, type SuspendProjectEndpointData, type SuspendProjectEndpointError, type SuspendProjectEndpointErrors, type SuspendProjectEndpointResponse, type SuspendProjectEndpointResponses, type SuspendTimeoutSeconds, type SystemStatusSummaryResponse, type TelemetryAuthentication, type TelemetryConfig, type TelemetryConnection, type TelemetryResource, type TimeoutParam, type TransferNeonAuthProviderProjectData, type TransferNeonAuthProviderProjectError, type TransferNeonAuthProviderProjectErrors, type TransferNeonAuthProviderProjectResponse, type TransferNeonAuthProviderProjectResponses, type TransferProjectsFromOrgToOrgData, type TransferProjectsFromOrgToOrgError, type TransferProjectsFromOrgToOrgErrors, type TransferProjectsFromOrgToOrgResponse, type TransferProjectsFromOrgToOrgResponses, type TransferProjectsFromUserToOrgData, type TransferProjectsFromUserToOrgError, type TransferProjectsFromUserToOrgErrors, type TransferProjectsFromUserToOrgResponse, type TransferProjectsFromUserToOrgResponses, type TransferProjectsToOrganizationRequest, type UpdateBranchNeonAuthOauthProviderData, type UpdateBranchNeonAuthOauthProviderError, type UpdateBranchNeonAuthOauthProviderErrors, type UpdateBranchNeonAuthOauthProviderResponse, type UpdateBranchNeonAuthOauthProviderResponses, type UpdateMaskingRulesData, type UpdateMaskingRulesError, type UpdateMaskingRulesErrors, type UpdateMaskingRulesResponse, type UpdateMaskingRulesResponses, type UpdateNeonAuthAllowLocalhostData, type UpdateNeonAuthAllowLocalhostError, type UpdateNeonAuthAllowLocalhostErrors, type UpdateNeonAuthAllowLocalhostRequest, type UpdateNeonAuthAllowLocalhostResponse, type UpdateNeonAuthAllowLocalhostResponses, type UpdateNeonAuthConfigData, type UpdateNeonAuthConfigError, type UpdateNeonAuthConfigErrors, type UpdateNeonAuthConfigResponse, type UpdateNeonAuthConfigResponses, type UpdateNeonAuthEmailAndPasswordConfigData, type UpdateNeonAuthEmailAndPasswordConfigError, type UpdateNeonAuthEmailAndPasswordConfigErrors, type UpdateNeonAuthEmailAndPasswordConfigResponse, type UpdateNeonAuthEmailAndPasswordConfigResponses, type UpdateNeonAuthEmailProviderData, type UpdateNeonAuthEmailProviderError, type UpdateNeonAuthEmailProviderErrors, type UpdateNeonAuthEmailProviderResponse, type UpdateNeonAuthEmailProviderResponses, type UpdateNeonAuthEmailServerData, type UpdateNeonAuthEmailServerError, type UpdateNeonAuthEmailServerErrors, type UpdateNeonAuthEmailServerResponse, type UpdateNeonAuthEmailServerResponses, type UpdateNeonAuthMagicLinkPluginData, type UpdateNeonAuthMagicLinkPluginError, type UpdateNeonAuthMagicLinkPluginErrors, type UpdateNeonAuthMagicLinkPluginResponse, type UpdateNeonAuthMagicLinkPluginResponses, type UpdateNeonAuthOauthProviderData, type UpdateNeonAuthOauthProviderError, type UpdateNeonAuthOauthProviderErrors, type UpdateNeonAuthOauthProviderResponse, type UpdateNeonAuthOauthProviderResponses, type UpdateNeonAuthOrganizationPluginData, type UpdateNeonAuthOrganizationPluginError, type UpdateNeonAuthOrganizationPluginErrors, type UpdateNeonAuthOrganizationPluginResponse, type UpdateNeonAuthOrganizationPluginResponses, type UpdateNeonAuthPhoneNumberPluginData, type UpdateNeonAuthPhoneNumberPluginError, type UpdateNeonAuthPhoneNumberPluginErrors, type UpdateNeonAuthPhoneNumberPluginResponse, type UpdateNeonAuthPhoneNumberPluginResponses, type UpdateNeonAuthUserRoleData, type UpdateNeonAuthUserRoleError, type UpdateNeonAuthUserRoleErrors, type UpdateNeonAuthUserRoleRequest, type UpdateNeonAuthUserRoleResponse, type UpdateNeonAuthUserRoleResponse2, type UpdateNeonAuthUserRoleResponses, type UpdateNeonAuthWebhookConfigData, type UpdateNeonAuthWebhookConfigError, type UpdateNeonAuthWebhookConfigErrors, type UpdateNeonAuthWebhookConfigResponse, type UpdateNeonAuthWebhookConfigResponses, type UpdateOrganizationMemberData, type UpdateOrganizationMemberError, type UpdateOrganizationMemberErrors, type UpdateOrganizationMemberResponse, type UpdateOrganizationMemberResponses, type UpdateProjectBranchData, type UpdateProjectBranchDataApiData, type UpdateProjectBranchDataApiError, type UpdateProjectBranchDataApiErrors, type UpdateProjectBranchDataApiResponse, type UpdateProjectBranchDataApiResponses, type UpdateProjectBranchDatabaseData, type UpdateProjectBranchDatabaseError, type UpdateProjectBranchDatabaseErrors, type UpdateProjectBranchDatabaseResponse, type UpdateProjectBranchDatabaseResponses, type UpdateProjectBranchError, type UpdateProjectBranchErrors, type UpdateProjectBranchResponse, type UpdateProjectBranchResponses, type UpdateProjectData, type UpdateProjectEndpointData, type UpdateProjectEndpointError, type UpdateProjectEndpointErrors, type UpdateProjectEndpointResponse, type UpdateProjectEndpointResponses, type UpdateProjectError, type UpdateProjectErrors, type UpdateProjectResponse, type UpdateProjectResponses, type UpdateSnapshotData, type UpdateSnapshotError, type UpdateSnapshotErrors, type UpdateSnapshotResponse, type UpdateSnapshotResponses, type UpdateUserInfoRequest, type UserDeletionConditionName, type VerifyUserPasswordRequest, type VpcEndpoint, type VpcEndpointAssignment, type VpcEndpointDetails, type VpcEndpointWithRegion, type VpcEndpointsResponse, type VpcEndpointsWithRegionResponse, acceptProjectTransferRequest, addBranchNeonAuthOauthProvider, addBranchNeonAuthTrustedDomain, addNeonAuthDomainToRedirectUriWhitelist, addNeonAuthOauthProvider, addProjectJwks, assignOrganizationVpcEndpoint, assignProjectVpcEndpoint, countProjectBranches, createApiKey, createBranchNeonAuthNewUser, createNeonAuth, createNeonAuthIntegration, createNeonAuthNewUser, createNeonAuthProviderSdkKeys, createOrgApiKey, createOrganizationInvitations, createProject, createProjectBranch, createProjectBranchAnonymized, createProjectBranchDataApi, createProjectBranchDatabase, createProjectBranchRole, createProjectEndpoint, createProjectTransferRequest, createSnapshot, deleteBranchNeonAuthOauthProvider, deleteBranchNeonAuthTrustedDomain, deleteBranchNeonAuthUser, deleteNeonAuthDomainFromRedirectUriWhitelist, deleteNeonAuthIntegration, deleteNeonAuthOauthProvider, deleteNeonAuthUser, deleteOrganizationSpendingLimit, deleteOrganizationVpcEndpoint, deleteProject, deleteProjectBranch, deleteProjectBranchDataApi, deleteProjectBranchDatabase, deleteProjectBranchRole, deleteProjectEndpoint, deleteProjectJwks, deleteProjectVpcEndpoint, deleteSnapshot, disableNeonAuth, finalizeRestoreBranch, getActiveRegions, getAnonymizedBranchStatus, getAuthDetails, getAvailablePreloadLibraries, getConnectionUri, getConsumptionHistoryPerBranchV2, getConsumptionHistoryPerProject, getConsumptionHistoryPerProjectV2, getCurrentUserInfo, getCurrentUserOrganizations, getMaskingRules, getNeonAuth, getNeonAuthAllowLocalhost, getNeonAuthEmailAndPasswordConfig, getNeonAuthEmailProvider, getNeonAuthEmailServer, getNeonAuthPhoneNumberPlugin, getNeonAuthPluginConfigs, getNeonAuthWebhookConfig, getOrganization, getOrganizationInvitations, getOrganizationMember, getOrganizationMembers, getOrganizationSpendingLimit, getOrganizationVpcEndpointDetails, getProject, getProjectAdvisorSecurityIssues, getProjectBranch, getProjectBranchDataApi, getProjectBranchDatabase, getProjectBranchRole, getProjectBranchRolePassword, getProjectBranchSchema, getProjectBranchSchemaComparison, getProjectEndpoint, getProjectJwks, getProjectOperation, getSnapshotSchedule, grantPermissionToProject, listApiKeys, listBranchNeonAuthOauthProviders, listBranchNeonAuthTrustedDomains, listNeonAuthIntegrations, listNeonAuthOauthProviders, listNeonAuthRedirectUriWhitelistDomains, listOrgApiKeys, listOrganizationVpcEndpoints, listOrganizationVpcEndpointsAllRegions, listProjectBranchDatabases, listProjectBranchEndpoints, listProjectBranchRoles, listProjectBranches, listProjectEndpoints, listProjectOperations, listProjectPermissions, listProjectVpcEndpoints, listProjects, listSharedProjects, listSnapshots, recoverProject, removeOrganizationMember, resetProjectBranchRolePassword, restartProjectEndpoint, restoreProjectBranch, restoreSnapshot, revokeApiKey, revokeOrgApiKey, revokePermissionFromProject, sendNeonAuthTestEmail, setDefaultProjectBranch, setOrganizationSpendingLimit, setSnapshotSchedule, startAnonymization, startProjectEndpoint, suspendProjectEndpoint, transferNeonAuthProviderProject, transferProjectsFromOrgToOrg, transferProjectsFromUserToOrg, updateBranchNeonAuthOauthProvider, updateMaskingRules, updateNeonAuthAllowLocalhost, updateNeonAuthConfig, updateNeonAuthEmailAndPasswordConfig, updateNeonAuthEmailProvider, updateNeonAuthEmailServer, updateNeonAuthMagicLinkPlugin, updateNeonAuthOauthProvider, updateNeonAuthOrganizationPlugin, updateNeonAuthPhoneNumberPlugin, updateNeonAuthUserRole, updateNeonAuthWebhookConfig, updateOrganizationMember, updateProject, updateProjectBranch, updateProjectBranchDataApi, updateProjectBranchDatabase, updateProjectEndpoint, updateSnapshot };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { acceptProjectTransferRequest, addBranchNeonAuthOauthProvider, addBranchNeonAuthTrustedDomain, addNeonAuthDomainToRedirectUriWhitelist, addNeonAuthOauthProvider, addProjectJwks, assignOrganizationVpcEndpoint, assignProjectVpcEndpoint, countProjectBranches, createApiKey, createBranchNeonAuthNewUser, createNeonAuth, createNeonAuthIntegration, createNeonAuthNewUser, createNeonAuthProviderSdkKeys, createOrgApiKey, createOrganizationInvitations, createProject, createProjectBranch, createProjectBranchAnonymized, createProjectBranchDataApi, createProjectBranchDatabase, createProjectBranchRole, createProjectEndpoint, createProjectTransferRequest, createSnapshot, deleteBranchNeonAuthOauthProvider, deleteBranchNeonAuthTrustedDomain, deleteBranchNeonAuthUser, deleteNeonAuthDomainFromRedirectUriWhitelist, deleteNeonAuthIntegration, deleteNeonAuthOauthProvider, deleteNeonAuthUser, deleteOrganizationSpendingLimit, deleteOrganizationVpcEndpoint, deleteProject, deleteProjectBranch, deleteProjectBranchDataApi, deleteProjectBranchDatabase, deleteProjectBranchRole, deleteProjectEndpoint, deleteProjectJwks, deleteProjectVpcEndpoint, deleteSnapshot, disableNeonAuth, finalizeRestoreBranch, getActiveRegions, getAnonymizedBranchStatus, getAuthDetails, getAvailablePreloadLibraries, getConnectionUri, getConsumptionHistoryPerBranchV2, getConsumptionHistoryPerProject, getConsumptionHistoryPerProjectV2, getCurrentUserInfo, getCurrentUserOrganizations, getMaskingRules, getNeonAuth, getNeonAuthAllowLocalhost, getNeonAuthEmailAndPasswordConfig, getNeonAuthEmailProvider, getNeonAuthEmailServer, getNeonAuthPhoneNumberPlugin, getNeonAuthPluginConfigs, getNeonAuthWebhookConfig, getOrganization, getOrganizationInvitations, getOrganizationMember, getOrganizationMembers, getOrganizationSpendingLimit, getOrganizationVpcEndpointDetails, getProject, getProjectAdvisorSecurityIssues, getProjectBranch, getProjectBranchDataApi, getProjectBranchDatabase, getProjectBranchRole, getProjectBranchRolePassword, getProjectBranchSchema, getProjectBranchSchemaComparison, getProjectEndpoint, getProjectJwks, getProjectOperation, getSnapshotSchedule, grantPermissionToProject, listApiKeys, listBranchNeonAuthOauthProviders, listBranchNeonAuthTrustedDomains, listNeonAuthIntegrations, listNeonAuthOauthProviders, listNeonAuthRedirectUriWhitelistDomains, listOrgApiKeys, listOrganizationVpcEndpoints, listOrganizationVpcEndpointsAllRegions, listProjectBranchDatabases, listProjectBranchEndpoints, listProjectBranchRoles, listProjectBranches, listProjectEndpoints, listProjectOperations, listProjectPermissions, listProjectVpcEndpoints, listProjects, listSharedProjects, listSnapshots, recoverProject, removeOrganizationMember, resetProjectBranchRolePassword, restartProjectEndpoint, restoreProjectBranch, restoreSnapshot, revokeApiKey, revokeOrgApiKey, revokePermissionFromProject, sendNeonAuthTestEmail, setDefaultProjectBranch, setOrganizationSpendingLimit, setSnapshotSchedule, startAnonymization, startProjectEndpoint, suspendProjectEndpoint, transferNeonAuthProviderProject, transferProjectsFromOrgToOrg, transferProjectsFromUserToOrg, updateBranchNeonAuthOauthProvider, updateMaskingRules, updateNeonAuthAllowLocalhost, updateNeonAuthConfig, updateNeonAuthEmailAndPasswordConfig, updateNeonAuthEmailProvider, updateNeonAuthEmailServer, updateNeonAuthMagicLinkPlugin, updateNeonAuthOauthProvider, updateNeonAuthOrganizationPlugin, updateNeonAuthPhoneNumberPlugin, updateNeonAuthUserRole, updateNeonAuthWebhookConfig, updateOrganizationMember, updateProject, updateProjectBranch, updateProjectBranchDataApi, updateProjectBranchDatabase, updateProjectEndpoint, updateSnapshot } from "./sdk.gen.js";
|
|
2
|
+
export { acceptProjectTransferRequest, addBranchNeonAuthOauthProvider, addBranchNeonAuthTrustedDomain, addNeonAuthDomainToRedirectUriWhitelist, addNeonAuthOauthProvider, addProjectJwks, assignOrganizationVpcEndpoint, assignProjectVpcEndpoint, countProjectBranches, createApiKey, createBranchNeonAuthNewUser, createNeonAuth, createNeonAuthIntegration, createNeonAuthNewUser, createNeonAuthProviderSdkKeys, createOrgApiKey, createOrganizationInvitations, createProject, createProjectBranch, createProjectBranchAnonymized, createProjectBranchDataApi, createProjectBranchDatabase, createProjectBranchRole, createProjectEndpoint, createProjectTransferRequest, createSnapshot, deleteBranchNeonAuthOauthProvider, deleteBranchNeonAuthTrustedDomain, deleteBranchNeonAuthUser, deleteNeonAuthDomainFromRedirectUriWhitelist, deleteNeonAuthIntegration, deleteNeonAuthOauthProvider, deleteNeonAuthUser, deleteOrganizationSpendingLimit, deleteOrganizationVpcEndpoint, deleteProject, deleteProjectBranch, deleteProjectBranchDataApi, deleteProjectBranchDatabase, deleteProjectBranchRole, deleteProjectEndpoint, deleteProjectJwks, deleteProjectVpcEndpoint, deleteSnapshot, disableNeonAuth, finalizeRestoreBranch, getActiveRegions, getAnonymizedBranchStatus, getAuthDetails, getAvailablePreloadLibraries, getConnectionUri, getConsumptionHistoryPerBranchV2, getConsumptionHistoryPerProject, getConsumptionHistoryPerProjectV2, getCurrentUserInfo, getCurrentUserOrganizations, getMaskingRules, getNeonAuth, getNeonAuthAllowLocalhost, getNeonAuthEmailAndPasswordConfig, getNeonAuthEmailProvider, getNeonAuthEmailServer, getNeonAuthPhoneNumberPlugin, getNeonAuthPluginConfigs, getNeonAuthWebhookConfig, getOrganization, getOrganizationInvitations, getOrganizationMember, getOrganizationMembers, getOrganizationSpendingLimit, getOrganizationVpcEndpointDetails, getProject, getProjectAdvisorSecurityIssues, getProjectBranch, getProjectBranchDataApi, getProjectBranchDatabase, getProjectBranchRole, getProjectBranchRolePassword, getProjectBranchSchema, getProjectBranchSchemaComparison, getProjectEndpoint, getProjectJwks, getProjectOperation, getSnapshotSchedule, grantPermissionToProject, listApiKeys, listBranchNeonAuthOauthProviders, listBranchNeonAuthTrustedDomains, listNeonAuthIntegrations, listNeonAuthOauthProviders, listNeonAuthRedirectUriWhitelistDomains, listOrgApiKeys, listOrganizationVpcEndpoints, listOrganizationVpcEndpointsAllRegions, listProjectBranchDatabases, listProjectBranchEndpoints, listProjectBranchRoles, listProjectBranches, listProjectEndpoints, listProjectOperations, listProjectPermissions, listProjectVpcEndpoints, listProjects, listSharedProjects, listSnapshots, recoverProject, removeOrganizationMember, resetProjectBranchRolePassword, restartProjectEndpoint, restoreProjectBranch, restoreSnapshot, revokeApiKey, revokeOrgApiKey, revokePermissionFromProject, sendNeonAuthTestEmail, setDefaultProjectBranch, setOrganizationSpendingLimit, setSnapshotSchedule, startAnonymization, startProjectEndpoint, suspendProjectEndpoint, transferNeonAuthProviderProject, transferProjectsFromOrgToOrg, transferProjectsFromUserToOrg, updateBranchNeonAuthOauthProvider, updateMaskingRules, updateNeonAuthAllowLocalhost, updateNeonAuthConfig, updateNeonAuthEmailAndPasswordConfig, updateNeonAuthEmailProvider, updateNeonAuthEmailServer, updateNeonAuthMagicLinkPlugin, updateNeonAuthOauthProvider, updateNeonAuthOrganizationPlugin, updateNeonAuthPhoneNumberPlugin, updateNeonAuthUserRole, updateNeonAuthWebhookConfig, updateOrganizationMember, updateProject, updateProjectBranch, updateProjectBranchDataApi, updateProjectBranchDatabase, updateProjectEndpoint, updateSnapshot };
|