@supacloud/js 0.34.1 → 0.36.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/COMPATIBILITY.md +84 -0
- package/LICENSE +202 -661
- package/NOTICE +8 -13
- package/REACTIVE.md +93 -0
- package/README.md +6 -0
- package/dist/api-error.d.mts +6 -0
- package/dist/{artifact-fetch.d.ts → artifact-fetch.d.cts} +1 -1
- package/dist/artifact-fetch.d.mts +6 -0
- package/dist/{artifact-link.d.ts → artifact-link.d.cts} +2 -2
- package/dist/artifact-link.d.mts +8 -0
- package/dist/{artifact-read.d.ts → artifact-read.d.cts} +2 -2
- package/dist/artifact-read.d.mts +13 -0
- package/dist/{artifact-register.d.ts → artifact-register.d.cts} +2 -2
- package/dist/artifact-register.d.mts +14 -0
- package/dist/{artifact-rpc.d.ts → artifact-rpc.d.cts} +1 -1
- package/dist/artifact-rpc.d.mts +2 -0
- package/dist/{artifacts.d.ts → artifacts.d.cts} +4 -4
- package/dist/artifacts.d.mts +53 -0
- package/dist/auth-fetch.d.mts +27 -0
- package/dist/bounded-rpc-fetch.d.mts +2 -0
- package/dist/{command-fetch.d.ts → command-fetch.d.cts} +1 -1
- package/dist/command-fetch.d.mts +6 -0
- package/dist/{commands.d.ts → commands.d.cts} +1 -1
- package/dist/commands.d.mts +44 -0
- package/dist/contracts.cjs +48 -0
- package/dist/contracts.d.mts +1 -0
- package/dist/index.cjs +3732 -0
- package/dist/{index.d.ts → index.d.cts} +20 -20
- package/dist/index.d.mts +360 -0
- package/dist/{oauth-clients.d.ts → oauth-clients.d.cts} +1 -1
- package/dist/oauth-clients.d.mts +95 -0
- package/dist/{oauth-server.d.ts → oauth-server.d.cts} +1 -1
- package/dist/oauth-server.d.mts +104 -0
- package/dist/{queue-rpc.d.ts → queue-rpc.d.cts} +1 -1
- package/dist/queue-rpc.d.mts +54 -0
- package/dist/reactive.cjs +119 -0
- package/dist/reactive.d.cts +26 -0
- package/dist/reactive.d.mts +26 -0
- package/dist/reactive.mjs +79 -0
- package/dist/{service-role-rpc.d.ts → service-role-rpc.d.cts} +1 -1
- package/dist/service-role-rpc.d.mts +2 -0
- package/dist/supabase-types.d.cts +9 -0
- package/dist/supabase-types.d.mts +9 -0
- package/dist/task-events.cjs +352 -0
- package/dist/task-events.d.mts +66 -0
- package/dist/{workflow-advance.d.ts → workflow-advance.d.cts} +2 -2
- package/dist/workflow-advance.d.mts +8 -0
- package/dist/{workflow-attempt.d.ts → workflow-attempt.d.cts} +1 -1
- package/dist/workflow-attempt.d.mts +4 -0
- package/dist/{workflow-cancel.d.ts → workflow-cancel.d.cts} +2 -2
- package/dist/workflow-cancel.d.mts +14 -0
- package/dist/{workflow-claim.d.ts → workflow-claim.d.cts} +2 -2
- package/dist/workflow-claim.d.mts +12 -0
- package/dist/{workflow-complete.d.ts → workflow-complete.d.cts} +2 -2
- package/dist/workflow-complete.d.mts +8 -0
- package/dist/{workflow-events.d.ts → workflow-events.d.cts} +2 -2
- package/dist/workflow-events.d.mts +14 -0
- package/dist/{workflow-fail.d.ts → workflow-fail.d.cts} +2 -2
- package/dist/workflow-fail.d.mts +8 -0
- package/dist/{workflow-fetch.d.ts → workflow-fetch.d.cts} +1 -1
- package/dist/workflow-fetch.d.mts +9 -0
- package/dist/workflow-json.d.mts +2 -0
- package/dist/{workflow-retry.d.ts → workflow-retry.d.cts} +2 -2
- package/dist/workflow-retry.d.mts +8 -0
- package/dist/{workflow-rpc.d.ts → workflow-rpc.d.cts} +1 -1
- package/dist/workflow-rpc.d.mts +6 -0
- package/dist/{workflow-run.d.ts → workflow-run.d.cts} +2 -2
- package/dist/workflow-run.d.mts +8 -0
- package/dist/{workflow-start.d.ts → workflow-start.d.cts} +2 -2
- package/dist/workflow-start.d.mts +8 -0
- package/dist/workflow-timestamp.d.mts +1 -0
- package/dist/{workflows.d.ts → workflows.d.cts} +10 -10
- package/dist/workflows.d.mts +141 -0
- package/package.json +54 -20
- /package/dist/{api-error.d.ts → api-error.d.cts} +0 -0
- /package/dist/{auth-fetch.d.ts → auth-fetch.d.cts} +0 -0
- /package/dist/{bounded-rpc-fetch.d.ts → bounded-rpc-fetch.d.cts} +0 -0
- /package/dist/{contracts.d.ts → contracts.d.cts} +0 -0
- /package/dist/{contracts.js → contracts.mjs} +0 -0
- /package/dist/{index.js → index.mjs} +0 -0
- /package/dist/{task-events.d.ts → task-events.d.cts} +0 -0
- /package/dist/{task-events.js → task-events.mjs} +0 -0
- /package/dist/{workflow-json.d.ts → workflow-json.d.cts} +0 -0
- /package/dist/{workflow-timestamp.d.ts → workflow-timestamp.d.cts} +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import type { SupabaseClient } from "
|
|
2
|
-
import { SupaCloudWorkflowsClient } from "./workflows.
|
|
3
|
-
import { SupaCloudCommandsClient } from "./commands.
|
|
4
|
-
import { SupaCloudArtifactsClient } from "./artifacts.
|
|
5
|
-
import { SupaCloudApiError } from "./api-error.
|
|
6
|
-
import { type FetchTransport } from "./bounded-rpc-fetch.
|
|
7
|
-
import { SupaCloudOAuthClientsClient } from "./oauth-clients.
|
|
8
|
-
import { SupaCloudOAuthServerClient } from "./oauth-server.
|
|
9
|
-
import { type SupaCloudQueueJson, type SupaCloudQueueMessage, type SupaCloudQueueSendResult, type SupaCloudQueueMutationResult } from "./queue-rpc.
|
|
10
|
-
export { SupaCloudApiError } from "./api-error.
|
|
11
|
-
export { SupaCloudQueueError, type SupaCloudQueueJson, type SupaCloudQueueMessage, type SupaCloudQueueSendResult, type SupaCloudQueueMutationResult, } from "./queue-rpc.
|
|
12
|
-
export * from "./oauth-clients.
|
|
13
|
-
export * from "./oauth-server.
|
|
14
|
-
export { createSupaCloudOAuthFetch, type SupaCloudOAuthFetchOptions, } from "./auth-fetch.
|
|
15
|
-
export * from "./workflows.
|
|
16
|
-
export { createSupaCloudWorkflowFetch, type SupaCloudWorkflowFetchOptions } from "./workflow-fetch.
|
|
17
|
-
export { createSupaCloudCommandFetch, type SupaCloudCommandFetchOptions } from "./command-fetch.
|
|
18
|
-
export { createSupaCloudArtifactFetch, type SupaCloudArtifactFetchOptions } from "./artifact-fetch.
|
|
19
|
-
export * from "./commands.
|
|
20
|
-
export * from "./artifacts.
|
|
1
|
+
import type { SupabaseClient } from "./supabase-types.cjs";
|
|
2
|
+
import { SupaCloudWorkflowsClient } from "./workflows.cjs";
|
|
3
|
+
import { SupaCloudCommandsClient } from "./commands.cjs";
|
|
4
|
+
import { SupaCloudArtifactsClient } from "./artifacts.cjs";
|
|
5
|
+
import { SupaCloudApiError } from "./api-error.cjs";
|
|
6
|
+
import { type FetchTransport } from "./bounded-rpc-fetch.cjs";
|
|
7
|
+
import { SupaCloudOAuthClientsClient } from "./oauth-clients.cjs";
|
|
8
|
+
import { SupaCloudOAuthServerClient } from "./oauth-server.cjs";
|
|
9
|
+
import { type SupaCloudQueueJson, type SupaCloudQueueMessage, type SupaCloudQueueSendResult, type SupaCloudQueueMutationResult } from "./queue-rpc.cjs";
|
|
10
|
+
export { SupaCloudApiError } from "./api-error.cjs";
|
|
11
|
+
export { SupaCloudQueueError, type SupaCloudQueueJson, type SupaCloudQueueMessage, type SupaCloudQueueSendResult, type SupaCloudQueueMutationResult, } from "./queue-rpc.cjs";
|
|
12
|
+
export * from "./oauth-clients.cjs";
|
|
13
|
+
export * from "./oauth-server.cjs";
|
|
14
|
+
export { createSupaCloudOAuthFetch, type SupaCloudOAuthFetchOptions, } from "./auth-fetch.cjs";
|
|
15
|
+
export * from "./workflows.cjs";
|
|
16
|
+
export { createSupaCloudWorkflowFetch, type SupaCloudWorkflowFetchOptions } from "./workflow-fetch.cjs";
|
|
17
|
+
export { createSupaCloudCommandFetch, type SupaCloudCommandFetchOptions } from "./command-fetch.cjs";
|
|
18
|
+
export { createSupaCloudArtifactFetch, type SupaCloudArtifactFetchOptions } from "./artifact-fetch.cjs";
|
|
19
|
+
export * from "./commands.cjs";
|
|
20
|
+
export * from "./artifacts.cjs";
|
|
21
21
|
export type SupaCloudTaskStatus = "pending" | "leased" | "running" | "retry_scheduled" | "succeeded" | "failed" | "dead_lettered" | "cancelled" | "queued" | "processing" | "completed";
|
|
22
22
|
export type SupaCloudTaskLogEntry = {
|
|
23
23
|
timestamp: string;
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import type { SupabaseClient } from "./supabase-types.mjs";
|
|
2
|
+
import { SupaCloudWorkflowsClient } from "./workflows.mjs";
|
|
3
|
+
import { SupaCloudCommandsClient } from "./commands.mjs";
|
|
4
|
+
import { SupaCloudArtifactsClient } from "./artifacts.mjs";
|
|
5
|
+
import { SupaCloudApiError } from "./api-error.mjs";
|
|
6
|
+
import { type FetchTransport } from "./bounded-rpc-fetch.mjs";
|
|
7
|
+
import { SupaCloudOAuthClientsClient } from "./oauth-clients.mjs";
|
|
8
|
+
import { SupaCloudOAuthServerClient } from "./oauth-server.mjs";
|
|
9
|
+
import { type SupaCloudQueueJson, type SupaCloudQueueMessage, type SupaCloudQueueSendResult, type SupaCloudQueueMutationResult } from "./queue-rpc.mjs";
|
|
10
|
+
export { SupaCloudApiError } from "./api-error.mjs";
|
|
11
|
+
export { SupaCloudQueueError, type SupaCloudQueueJson, type SupaCloudQueueMessage, type SupaCloudQueueSendResult, type SupaCloudQueueMutationResult, } from "./queue-rpc.mjs";
|
|
12
|
+
export * from "./oauth-clients.mjs";
|
|
13
|
+
export * from "./oauth-server.mjs";
|
|
14
|
+
export { createSupaCloudOAuthFetch, type SupaCloudOAuthFetchOptions, } from "./auth-fetch.mjs";
|
|
15
|
+
export * from "./workflows.mjs";
|
|
16
|
+
export { createSupaCloudWorkflowFetch, type SupaCloudWorkflowFetchOptions } from "./workflow-fetch.mjs";
|
|
17
|
+
export { createSupaCloudCommandFetch, type SupaCloudCommandFetchOptions } from "./command-fetch.mjs";
|
|
18
|
+
export { createSupaCloudArtifactFetch, type SupaCloudArtifactFetchOptions } from "./artifact-fetch.mjs";
|
|
19
|
+
export * from "./commands.mjs";
|
|
20
|
+
export * from "./artifacts.mjs";
|
|
21
|
+
export type SupaCloudTaskStatus = "pending" | "leased" | "running" | "retry_scheduled" | "succeeded" | "failed" | "dead_lettered" | "cancelled" | "queued" | "processing" | "completed";
|
|
22
|
+
export type SupaCloudTaskLogEntry = {
|
|
23
|
+
timestamp: string;
|
|
24
|
+
stream: "stdout" | "stderr";
|
|
25
|
+
level: string;
|
|
26
|
+
message: string;
|
|
27
|
+
};
|
|
28
|
+
export type SupaCloudTaskAttempt = {
|
|
29
|
+
attempt_no: number;
|
|
30
|
+
status: string;
|
|
31
|
+
started_at: string | null;
|
|
32
|
+
completed_at: string | null;
|
|
33
|
+
duration_ms: number | null;
|
|
34
|
+
response_status: number | null;
|
|
35
|
+
error: string | null;
|
|
36
|
+
logs: SupaCloudTaskLogEntry[];
|
|
37
|
+
};
|
|
38
|
+
export type SupaCloudTaskResultDecoder<TResult> = (value: unknown) => TResult;
|
|
39
|
+
/** Alias kept short for consumers that already use decoder terminology. */
|
|
40
|
+
export type SupaCloudTaskDecoder<TResult> = SupaCloudTaskResultDecoder<TResult>;
|
|
41
|
+
export type SupaCloudTaskDetail<TResult = unknown> = {
|
|
42
|
+
id: string;
|
|
43
|
+
project_ref: string;
|
|
44
|
+
status: SupaCloudTaskStatus | string;
|
|
45
|
+
task_type?: string;
|
|
46
|
+
executor?: {
|
|
47
|
+
kind: string;
|
|
48
|
+
version: string;
|
|
49
|
+
definition: string;
|
|
50
|
+
run_id: string;
|
|
51
|
+
native_status: string;
|
|
52
|
+
};
|
|
53
|
+
capabilities?: {
|
|
54
|
+
cancel: boolean;
|
|
55
|
+
retry: boolean;
|
|
56
|
+
};
|
|
57
|
+
blocked_reason?: string | null;
|
|
58
|
+
total_steps?: number;
|
|
59
|
+
finished_steps?: number;
|
|
60
|
+
function_slug?: string | null;
|
|
61
|
+
function_version?: string | null;
|
|
62
|
+
attempt?: number | null;
|
|
63
|
+
max_attempts?: number | null;
|
|
64
|
+
progress?: number | null;
|
|
65
|
+
error?: string | null;
|
|
66
|
+
error_message?: string | null;
|
|
67
|
+
result?: TResult;
|
|
68
|
+
payload?: Record<string, unknown>;
|
|
69
|
+
attempts?: SupaCloudTaskAttempt[];
|
|
70
|
+
latest_logs?: SupaCloudTaskLogEntry[];
|
|
71
|
+
correlation_id?: string | null;
|
|
72
|
+
business_task_id?: string | null;
|
|
73
|
+
metadata?: Record<string, unknown> | null;
|
|
74
|
+
updated_at?: string | null;
|
|
75
|
+
created_at?: string | null;
|
|
76
|
+
[key: string]: unknown;
|
|
77
|
+
};
|
|
78
|
+
export type SupaCloudTaskSnapshot<TResult = unknown> = {
|
|
79
|
+
id: string;
|
|
80
|
+
status: SupaCloudTaskStatus | string;
|
|
81
|
+
progress?: number | null;
|
|
82
|
+
error?: string | null;
|
|
83
|
+
updatedAt?: string | null;
|
|
84
|
+
raw: SupaCloudTaskDetail<TResult>;
|
|
85
|
+
};
|
|
86
|
+
export type SupaCloudTaskListFilters = {
|
|
87
|
+
status?: string | string[];
|
|
88
|
+
taskType?: string | string[];
|
|
89
|
+
functionSlug?: string;
|
|
90
|
+
correlationId?: string;
|
|
91
|
+
businessTaskId?: string;
|
|
92
|
+
dlq?: boolean;
|
|
93
|
+
limit?: number;
|
|
94
|
+
};
|
|
95
|
+
export type SupaCloudTaskSubmitOptions = {
|
|
96
|
+
body?: string | Blob | ArrayBuffer | FormData | File | ReadableStream<Uint8Array> | Record<string, unknown>;
|
|
97
|
+
headers?: Record<string, string>;
|
|
98
|
+
/** @deprecated Configure retry policy on the platform; this compatibility field is ignored. */
|
|
99
|
+
retries?: number;
|
|
100
|
+
/** @deprecated Configure execution timeout on the platform; this compatibility field is ignored. */
|
|
101
|
+
timeoutSec?: number;
|
|
102
|
+
idempotencyKey?: string;
|
|
103
|
+
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
104
|
+
/** Opaque correlation ID — the platform stores it but does not interpret it */
|
|
105
|
+
correlationId?: string;
|
|
106
|
+
/** Business-layer task ID for mapping back to the caller's own task table */
|
|
107
|
+
businessTaskId?: string;
|
|
108
|
+
/** Arbitrary JSON metadata — the platform stores it but does not interpret it */
|
|
109
|
+
metadata?: Record<string, unknown>;
|
|
110
|
+
};
|
|
111
|
+
export type SupaCloudQueueSendOptions = {
|
|
112
|
+
/** Official Supabase Queues visibility delay, in seconds. */
|
|
113
|
+
sleepSeconds?: number;
|
|
114
|
+
/** Official Supabase Queues visibility delay, in seconds. */
|
|
115
|
+
sleep_seconds?: number;
|
|
116
|
+
/** Convenience alias converted to sleep_seconds for compatibility with older SupaCloud callers. */
|
|
117
|
+
delayMs?: number;
|
|
118
|
+
/** @deprecated PGMQ does not store per-message retry budgets. Keep retry policy at the consumer layer. */
|
|
119
|
+
maxAttempts?: number;
|
|
120
|
+
/** @deprecated PGMQ does not provide enqueue idempotency keys. Deduplicate in your payload or application table. */
|
|
121
|
+
idempotencyKey?: string;
|
|
122
|
+
/** @deprecated PGMQ messages are plain JSON payloads. Put trace data inside message if needed. */
|
|
123
|
+
traceId?: string;
|
|
124
|
+
/** @deprecated PGMQ messages are plain JSON payloads. Put correlation data inside message if needed. */
|
|
125
|
+
correlationId?: string;
|
|
126
|
+
/** @deprecated PGMQ messages are plain JSON payloads. Put business IDs inside message if needed. */
|
|
127
|
+
businessTaskId?: string;
|
|
128
|
+
/** @deprecated PGMQ messages are plain JSON payloads. Put metadata inside message if needed. */
|
|
129
|
+
metadata?: Record<string, unknown>;
|
|
130
|
+
};
|
|
131
|
+
export type SupaCloudQueueReceiveOptions = {
|
|
132
|
+
/** Official Supabase Queues visibility timeout, in seconds. */
|
|
133
|
+
sleepSeconds?: number;
|
|
134
|
+
/** Official Supabase Queues visibility timeout, in seconds. */
|
|
135
|
+
sleep_seconds?: number;
|
|
136
|
+
/** Number of messages to read when using read(). receive() always reads one. */
|
|
137
|
+
n?: number;
|
|
138
|
+
/** Alias for n. */
|
|
139
|
+
count?: number;
|
|
140
|
+
/** Convenience alias converted to sleep_seconds for older SupaCloud callers. */
|
|
141
|
+
visibilityTimeoutSec?: number;
|
|
142
|
+
};
|
|
143
|
+
export type SupaCloudQueueReleaseOptions = {
|
|
144
|
+
sleepSeconds?: number;
|
|
145
|
+
sleep_seconds?: number;
|
|
146
|
+
delayMs?: number;
|
|
147
|
+
error?: string;
|
|
148
|
+
};
|
|
149
|
+
export type SupaCloudQueueFailOptions = {
|
|
150
|
+
error?: string;
|
|
151
|
+
deadLetter?: boolean;
|
|
152
|
+
};
|
|
153
|
+
export type SupaCloudQueueListFilters = {
|
|
154
|
+
status?: string | string[];
|
|
155
|
+
archived?: boolean;
|
|
156
|
+
dlq?: boolean;
|
|
157
|
+
limit?: number;
|
|
158
|
+
};
|
|
159
|
+
export type SupaCloudQueueStats = {
|
|
160
|
+
queue_name: string;
|
|
161
|
+
queue_length: number;
|
|
162
|
+
newest_msg_age_sec: number | null;
|
|
163
|
+
oldest_msg_age_sec: number | null;
|
|
164
|
+
total_messages: number;
|
|
165
|
+
scrape_time: string;
|
|
166
|
+
[key: string]: unknown;
|
|
167
|
+
};
|
|
168
|
+
export type SupaCloudQueueInfo = {
|
|
169
|
+
queue_name: string;
|
|
170
|
+
created_at?: string | null;
|
|
171
|
+
is_partitioned?: boolean;
|
|
172
|
+
is_unlogged?: boolean;
|
|
173
|
+
type?: string;
|
|
174
|
+
};
|
|
175
|
+
export type SupaCloudQueueCreateOptions = {
|
|
176
|
+
unlogged?: boolean;
|
|
177
|
+
};
|
|
178
|
+
export type SupaCloudQueueSettings = {
|
|
179
|
+
max_in_flight: number;
|
|
180
|
+
default_visibility_timeout_sec: number;
|
|
181
|
+
max_attempts: number;
|
|
182
|
+
rate_limit_per_minute: number;
|
|
183
|
+
};
|
|
184
|
+
export type SupaCloudQueueSettingsUpdate = Partial<SupaCloudQueueSettings>;
|
|
185
|
+
export type SupaCloudTaskWaitOptions = {
|
|
186
|
+
intervalMs?: number;
|
|
187
|
+
signal?: AbortSignal;
|
|
188
|
+
};
|
|
189
|
+
export type SupaCloudTaskSubscribeState = "connecting" | "realtime" | "polling" | "closed";
|
|
190
|
+
export type SupaCloudTaskSubscription = {
|
|
191
|
+
readonly connectionState: SupaCloudTaskSubscribeState;
|
|
192
|
+
unsubscribe: () => void;
|
|
193
|
+
};
|
|
194
|
+
export type SupaCloudTaskSubscribeOptions<TResult = unknown> = {
|
|
195
|
+
realtime?: {
|
|
196
|
+
schema: string;
|
|
197
|
+
table: string;
|
|
198
|
+
};
|
|
199
|
+
pollingIntervalMs?: number;
|
|
200
|
+
realtimeTimeoutMs?: number;
|
|
201
|
+
reconcileIntervalMs?: number;
|
|
202
|
+
onUpdate: (task: SupaCloudTaskSnapshot<TResult>) => void;
|
|
203
|
+
onStateChange?: (state: SupaCloudTaskSubscribeState, details?: {
|
|
204
|
+
error?: unknown;
|
|
205
|
+
}) => void;
|
|
206
|
+
onError?: (error: unknown) => void;
|
|
207
|
+
stopOnTerminal?: boolean;
|
|
208
|
+
};
|
|
209
|
+
export type SupaCloudTaskReceipt<TResult = unknown> = {
|
|
210
|
+
taskId: string;
|
|
211
|
+
status: string;
|
|
212
|
+
get: () => Promise<SupaCloudTaskDetail<TResult>>;
|
|
213
|
+
wait: (options?: SupaCloudTaskWaitOptions) => Promise<SupaCloudTaskDetail<TResult>>;
|
|
214
|
+
cancel: () => Promise<SupaCloudTaskDetail<TResult>>;
|
|
215
|
+
retry: () => Promise<SupaCloudTaskDetail<TResult>>;
|
|
216
|
+
subscribe: (options: SupaCloudTaskSubscribeOptions<TResult>) => SupaCloudTaskSubscription;
|
|
217
|
+
};
|
|
218
|
+
export type SupaCloudClientOptions<TClient extends SupabaseClient = SupabaseClient> = {
|
|
219
|
+
supabase: TClient;
|
|
220
|
+
managementApiUrl: string;
|
|
221
|
+
projectRef: string;
|
|
222
|
+
getAccessToken?: () => Promise<string | null> | string | null;
|
|
223
|
+
pollingIntervalMs?: number;
|
|
224
|
+
};
|
|
225
|
+
export declare class SupaCloudTaskSubmitError extends Error {
|
|
226
|
+
readonly code = "TASK_SUBMIT_UNCONFIRMED";
|
|
227
|
+
readonly mutationMayHaveApplied = true;
|
|
228
|
+
readonly responseBody: unknown;
|
|
229
|
+
constructor(message: string, responseBody: unknown);
|
|
230
|
+
}
|
|
231
|
+
export interface SupaCloudTaskFetchOptions {
|
|
232
|
+
functionUrls: readonly string[];
|
|
233
|
+
fetch?: FetchTransport;
|
|
234
|
+
}
|
|
235
|
+
export declare function createSupaCloudTaskFetch(options: SupaCloudTaskFetchOptions): FetchTransport;
|
|
236
|
+
type HttpMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
237
|
+
type ResponseDecoder<T> = (value: unknown) => T;
|
|
238
|
+
export declare class SupaCloudTaskResponseError extends SupaCloudApiError {
|
|
239
|
+
readonly mutationMayHaveApplied: boolean;
|
|
240
|
+
constructor(operation: "get" | "cancel" | "retry");
|
|
241
|
+
}
|
|
242
|
+
export type SupaCloudTaskDecodeOperation = "get" | "list" | "wait" | "cancel" | "retry" | "subscribe";
|
|
243
|
+
/**
|
|
244
|
+
* A caller-supplied result decoder failed. The original decoder error and
|
|
245
|
+
* response value are intentionally not retained because either may contain
|
|
246
|
+
* secrets or unbounded application data.
|
|
247
|
+
*/
|
|
248
|
+
export declare class SupaCloudTaskDecoderError extends SupaCloudApiError {
|
|
249
|
+
readonly operation: SupaCloudTaskDecodeOperation;
|
|
250
|
+
readonly code: "TASK_RESULT_INVALID";
|
|
251
|
+
readonly mutationMayHaveApplied: boolean;
|
|
252
|
+
constructor(operation: SupaCloudTaskDecodeOperation);
|
|
253
|
+
}
|
|
254
|
+
/** Compatibility spelling for callers that refer to decoding rather than decoding contracts. */
|
|
255
|
+
export { SupaCloudTaskDecoderError as SupaCloudTaskDecodeError };
|
|
256
|
+
export declare class SupaCloudTaskAuthenticationError extends SupaCloudApiError {
|
|
257
|
+
readonly mutationMayHaveApplied = false;
|
|
258
|
+
constructor(code?: "TASK_AUTH_INVALID" | "TASK_AUTH_TIMEOUT");
|
|
259
|
+
}
|
|
260
|
+
declare class SupaCloudManagementClient<TClient extends SupabaseClient = SupabaseClient> {
|
|
261
|
+
protected readonly options: Required<SupaCloudClientOptions<TClient>>;
|
|
262
|
+
constructor(options: Required<SupaCloudClientOptions<TClient>>);
|
|
263
|
+
protected resolveAccessToken(_signal?: AbortSignal): Promise<string>;
|
|
264
|
+
protected request<T>(path: string, method: HttpMethod, body: unknown, decode: ResponseDecoder<T>, transport?: FetchTransport, signal?: AbortSignal): Promise<T>;
|
|
265
|
+
}
|
|
266
|
+
declare class SupaCloudTasksClient<TClient extends SupabaseClient = SupabaseClient> extends SupaCloudManagementClient<TClient> {
|
|
267
|
+
protected resolveAccessToken(signal?: AbortSignal): Promise<string>;
|
|
268
|
+
protected request<T>(path: string, method: HttpMethod, body: unknown, decode: ResponseDecoder<T>, _transport?: FetchTransport, signal?: AbortSignal): Promise<T>;
|
|
269
|
+
private createReceipt;
|
|
270
|
+
private createTypedReceipt;
|
|
271
|
+
private submitInternal;
|
|
272
|
+
submit(functionName: string, options?: SupaCloudTaskSubmitOptions): Promise<SupaCloudTaskReceipt<unknown>>;
|
|
273
|
+
submitTyped<TResult>(functionName: string, decoder: SupaCloudTaskResultDecoder<TResult>, options?: SupaCloudTaskSubmitOptions): Promise<SupaCloudTaskReceipt<TResult>>;
|
|
274
|
+
submitTyped<TResult>(functionName: string, options: SupaCloudTaskSubmitOptions, decoder: SupaCloudTaskResultDecoder<TResult>): Promise<SupaCloudTaskReceipt<TResult>>;
|
|
275
|
+
private getInternal;
|
|
276
|
+
get(taskId: string, signal?: AbortSignal): Promise<SupaCloudTaskDetail<unknown>>;
|
|
277
|
+
getTyped<TResult>(taskId: string, decoder: SupaCloudTaskResultDecoder<TResult>, signal?: AbortSignal): Promise<SupaCloudTaskDetail<TResult>>;
|
|
278
|
+
getTyped<TResult>(taskId: string, signal: AbortSignal | undefined, decoder: SupaCloudTaskResultDecoder<TResult>): Promise<SupaCloudTaskDetail<TResult>>;
|
|
279
|
+
list(filters?: SupaCloudTaskListFilters): Promise<SupaCloudTaskDetail<unknown>[]>;
|
|
280
|
+
listTyped<TResult>(decoder: SupaCloudTaskResultDecoder<TResult>, filters?: SupaCloudTaskListFilters): Promise<SupaCloudTaskDetail<TResult>[]>;
|
|
281
|
+
listTyped<TResult>(filters: SupaCloudTaskListFilters, decoder: SupaCloudTaskResultDecoder<TResult>): Promise<SupaCloudTaskDetail<TResult>[]>;
|
|
282
|
+
private cancelInternal;
|
|
283
|
+
cancel(taskId: string): Promise<SupaCloudTaskDetail<unknown>>;
|
|
284
|
+
cancelTyped<TResult>(taskId: string, decoder: SupaCloudTaskResultDecoder<TResult>): Promise<SupaCloudTaskDetail<TResult>>;
|
|
285
|
+
private retryInternal;
|
|
286
|
+
retry(taskId: string): Promise<SupaCloudTaskDetail<unknown>>;
|
|
287
|
+
retryTyped<TResult>(taskId: string, decoder: SupaCloudTaskResultDecoder<TResult>): Promise<SupaCloudTaskDetail<TResult>>;
|
|
288
|
+
listDlq(limit?: number): Promise<SupaCloudTaskDetail<unknown>[]>;
|
|
289
|
+
listDlqTyped<TResult>(decoder: SupaCloudTaskResultDecoder<TResult>, limit?: number): Promise<SupaCloudTaskDetail<TResult>[]>;
|
|
290
|
+
private waitInternal;
|
|
291
|
+
wait(taskId: string, options?: SupaCloudTaskWaitOptions): Promise<SupaCloudTaskDetail<unknown>>;
|
|
292
|
+
waitTyped<TResult>(taskId: string, decoder: SupaCloudTaskResultDecoder<TResult>, options?: SupaCloudTaskWaitOptions): Promise<SupaCloudTaskDetail<TResult>>;
|
|
293
|
+
waitTyped<TResult>(taskId: string, options: SupaCloudTaskWaitOptions, decoder: SupaCloudTaskResultDecoder<TResult>): Promise<SupaCloudTaskDetail<TResult>>;
|
|
294
|
+
subscribe(taskId: string, options: SupaCloudTaskSubscribeOptions): SupaCloudTaskSubscription;
|
|
295
|
+
subscribeTyped<TResult>(taskId: string, decoder: SupaCloudTaskResultDecoder<TResult>, options: SupaCloudTaskSubscribeOptions<TResult>): SupaCloudTaskSubscription;
|
|
296
|
+
subscribeTyped<TResult>(taskId: string, options: SupaCloudTaskSubscribeOptions<TResult>, decoder: SupaCloudTaskResultDecoder<TResult>): SupaCloudTaskSubscription;
|
|
297
|
+
private subscribeTypedInternal;
|
|
298
|
+
private subscribeInternal;
|
|
299
|
+
}
|
|
300
|
+
declare class SupaCloudQueueClient<TClient extends SupabaseClient = SupabaseClient> extends SupaCloudManagementClient<TClient> {
|
|
301
|
+
private readonly name;
|
|
302
|
+
constructor(options: Required<SupaCloudClientOptions<TClient>>, name: string);
|
|
303
|
+
private get encodedName();
|
|
304
|
+
private rpc;
|
|
305
|
+
send(payload?: SupaCloudQueueJson, options?: SupaCloudQueueSendOptions): Promise<SupaCloudQueueSendResult>;
|
|
306
|
+
sendBatch(messages: SupaCloudQueueJson[], options?: SupaCloudQueueSendOptions): Promise<SupaCloudQueueSendResult[]>;
|
|
307
|
+
read(options?: SupaCloudQueueReceiveOptions): Promise<SupaCloudQueueMessage[]>;
|
|
308
|
+
receive(options?: SupaCloudQueueReceiveOptions): Promise<SupaCloudQueueMessage | null>;
|
|
309
|
+
pop(): Promise<SupaCloudQueueMessage | null>;
|
|
310
|
+
list(filters?: SupaCloudQueueListFilters): Promise<SupaCloudQueueMessage[]>;
|
|
311
|
+
listFailed(limit?: number): Promise<SupaCloudQueueMessage[]>;
|
|
312
|
+
listArchived(limit?: number): Promise<SupaCloudQueueMessage[]>;
|
|
313
|
+
stats(): Promise<SupaCloudQueueStats>;
|
|
314
|
+
getSettings(): Promise<SupaCloudQueueSettings>;
|
|
315
|
+
updateSettings(settings: SupaCloudQueueSettingsUpdate): Promise<SupaCloudQueueSettings>;
|
|
316
|
+
archive(messageId: string | number): Promise<SupaCloudQueueMutationResult>;
|
|
317
|
+
ack(messageId: string | number): Promise<SupaCloudQueueMutationResult>;
|
|
318
|
+
delete(messageId: string | number): Promise<SupaCloudQueueMutationResult>;
|
|
319
|
+
release(messageId: string | number, options?: SupaCloudQueueReleaseOptions): Promise<SupaCloudQueueMessage>;
|
|
320
|
+
purge(): Promise<{
|
|
321
|
+
queue_name: string;
|
|
322
|
+
purged: number;
|
|
323
|
+
}>;
|
|
324
|
+
/**
|
|
325
|
+
* SupaCloud extension alias: PGMQ has archive/delete but no failed state.
|
|
326
|
+
* This archives the message, matching the management API's compatibility behavior.
|
|
327
|
+
*/
|
|
328
|
+
fail(messageId: string | number, _options?: SupaCloudQueueFailOptions): Promise<SupaCloudQueueMutationResult>;
|
|
329
|
+
/**
|
|
330
|
+
* @deprecated Direct random lookup is not part of Supabase Queues' official API.
|
|
331
|
+
*/
|
|
332
|
+
get(messageId: string): Promise<SupaCloudQueueMessage>;
|
|
333
|
+
/**
|
|
334
|
+
* @deprecated PGMQ archived messages are replayed with SQL/application workflows, not an official Queue API call.
|
|
335
|
+
*/
|
|
336
|
+
retry(messageId: string): Promise<SupaCloudQueueMessage>;
|
|
337
|
+
}
|
|
338
|
+
declare class SupaCloudQueuesClient<TClient extends SupabaseClient = SupabaseClient> extends SupaCloudManagementClient<TClient> {
|
|
339
|
+
list(): Promise<SupaCloudQueueInfo[]>;
|
|
340
|
+
create(queueName: string, options?: SupaCloudQueueCreateOptions): Promise<SupaCloudQueueInfo>;
|
|
341
|
+
drop(queueName: string): Promise<void>;
|
|
342
|
+
}
|
|
343
|
+
export declare function createSupaCloudClient<TClient extends SupabaseClient = SupabaseClient>(options: SupaCloudClientOptions<TClient>): {
|
|
344
|
+
supabase: TClient;
|
|
345
|
+
projectRef: string;
|
|
346
|
+
managementApiUrl: string;
|
|
347
|
+
auth: {
|
|
348
|
+
oauthServer: SupaCloudOAuthServerClient;
|
|
349
|
+
oauthClients: SupaCloudOAuthClientsClient;
|
|
350
|
+
};
|
|
351
|
+
tasks: SupaCloudTasksClient<TClient>;
|
|
352
|
+
workflows: SupaCloudWorkflowsClient<TClient>;
|
|
353
|
+
commands: SupaCloudCommandsClient<TClient>;
|
|
354
|
+
artifacts: SupaCloudArtifactsClient<TClient>;
|
|
355
|
+
queues: SupaCloudQueuesClient<TClient>;
|
|
356
|
+
queue: (name: string) => SupaCloudQueueClient<TClient>;
|
|
357
|
+
functions: {
|
|
358
|
+
invokeBackground: (functionName: string, submitOptions?: SupaCloudTaskSubmitOptions) => Promise<SupaCloudTaskReceipt<unknown>>;
|
|
359
|
+
};
|
|
360
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SupaCloudApiError } from "./api-error.
|
|
1
|
+
import { SupaCloudApiError } from "./api-error.cjs";
|
|
2
2
|
export type SupaCloudOAuthClientType = "public" | "confidential";
|
|
3
3
|
export type SupaCloudOAuthClientAuthMethod = "none" | "client_secret_basic" | "client_secret_post";
|
|
4
4
|
type SecretMethod = Exclude<SupaCloudOAuthClientAuthMethod, "none">;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { SupaCloudApiError } from "./api-error.mjs";
|
|
2
|
+
export type SupaCloudOAuthClientType = "public" | "confidential";
|
|
3
|
+
export type SupaCloudOAuthClientAuthMethod = "none" | "client_secret_basic" | "client_secret_post";
|
|
4
|
+
type SecretMethod = Exclude<SupaCloudOAuthClientAuthMethod, "none">;
|
|
5
|
+
type Grant = "authorization_code" | "refresh_token";
|
|
6
|
+
interface ClientMetadata {
|
|
7
|
+
client_id: string;
|
|
8
|
+
client_name?: string;
|
|
9
|
+
redirect_uris?: string[];
|
|
10
|
+
grant_types?: Grant[];
|
|
11
|
+
response_types?: "code"[];
|
|
12
|
+
client_uri?: string;
|
|
13
|
+
logo_uri?: string;
|
|
14
|
+
registration_type?: "manual" | "dynamic";
|
|
15
|
+
created_at?: string;
|
|
16
|
+
updated_at?: string;
|
|
17
|
+
}
|
|
18
|
+
export type SupaCloudOAuthClient = ClientMetadata & ({
|
|
19
|
+
client_type: "public";
|
|
20
|
+
token_endpoint_auth_method?: "none";
|
|
21
|
+
client_secret?: never;
|
|
22
|
+
} | {
|
|
23
|
+
client_type: "confidential";
|
|
24
|
+
token_endpoint_auth_method?: SecretMethod;
|
|
25
|
+
client_secret?: string;
|
|
26
|
+
});
|
|
27
|
+
export type SupaCloudOAuthClientList = {
|
|
28
|
+
clients: SupaCloudOAuthClient[];
|
|
29
|
+
};
|
|
30
|
+
export type SupaCloudOAuthCreatedClient = SupaCloudOAuthClient & ({
|
|
31
|
+
client_type: "public";
|
|
32
|
+
} | {
|
|
33
|
+
client_type: "confidential";
|
|
34
|
+
client_secret: string;
|
|
35
|
+
});
|
|
36
|
+
export type SupaCloudOAuthSecretClient = SupaCloudOAuthClient & {
|
|
37
|
+
client_type: "confidential";
|
|
38
|
+
client_secret: string;
|
|
39
|
+
};
|
|
40
|
+
export interface SupaCloudOAuthClientUpdate {
|
|
41
|
+
redirect_uris?: string[];
|
|
42
|
+
token_endpoint_auth_method?: SupaCloudOAuthClientAuthMethod;
|
|
43
|
+
grant_types?: Grant[];
|
|
44
|
+
client_name?: string;
|
|
45
|
+
client_uri?: string;
|
|
46
|
+
logo_uri?: string;
|
|
47
|
+
}
|
|
48
|
+
export type SupaCloudOAuthClientCreate = Omit<SupaCloudOAuthClientUpdate, "token_endpoint_auth_method"> & {
|
|
49
|
+
redirect_uris: string[];
|
|
50
|
+
} & ({
|
|
51
|
+
client_type: "public";
|
|
52
|
+
token_endpoint_auth_method?: "none";
|
|
53
|
+
} | {
|
|
54
|
+
client_type: "confidential";
|
|
55
|
+
token_endpoint_auth_method?: SecretMethod;
|
|
56
|
+
} | {
|
|
57
|
+
client_type?: never;
|
|
58
|
+
token_endpoint_auth_method?: SupaCloudOAuthClientAuthMethod;
|
|
59
|
+
});
|
|
60
|
+
export type SupaCloudOAuthRequest = (url: string, options: RequestInit) => Promise<Response>;
|
|
61
|
+
export type SupaCloudOAuthClientsOptions = {
|
|
62
|
+
managementApiUrl: string;
|
|
63
|
+
projectRef: string;
|
|
64
|
+
} & ({
|
|
65
|
+
getAccessToken: () => Promise<string | null> | string | null;
|
|
66
|
+
request?: SupaCloudOAuthRequest;
|
|
67
|
+
sessionRequest?: never;
|
|
68
|
+
} | {
|
|
69
|
+
sessionRequest: SupaCloudOAuthRequest;
|
|
70
|
+
getAccessToken?: never;
|
|
71
|
+
request?: never;
|
|
72
|
+
});
|
|
73
|
+
export interface SupaCloudOAuthRequestOptions {
|
|
74
|
+
signal?: AbortSignal;
|
|
75
|
+
timeoutMs?: number;
|
|
76
|
+
}
|
|
77
|
+
export declare class SupaCloudOAuthClientError extends SupaCloudApiError {
|
|
78
|
+
readonly mutationMayHaveApplied: boolean;
|
|
79
|
+
constructor(code: string, status?: number, mutationMayHaveApplied?: boolean);
|
|
80
|
+
}
|
|
81
|
+
/** Uses Management API credentials or an explicit same-origin session transport. */
|
|
82
|
+
export declare class SupaCloudOAuthClientsClient {
|
|
83
|
+
private readonly base;
|
|
84
|
+
private readonly send;
|
|
85
|
+
private readonly token;
|
|
86
|
+
constructor(options: SupaCloudOAuthClientsOptions);
|
|
87
|
+
private request;
|
|
88
|
+
list(options?: SupaCloudOAuthRequestOptions): Promise<SupaCloudOAuthClientList>;
|
|
89
|
+
get(clientId: string, options?: SupaCloudOAuthRequestOptions): Promise<SupaCloudOAuthClient>;
|
|
90
|
+
create(input: SupaCloudOAuthClientCreate, options?: SupaCloudOAuthRequestOptions): Promise<SupaCloudOAuthCreatedClient>;
|
|
91
|
+
update(clientId: string, input: SupaCloudOAuthClientUpdate, options?: SupaCloudOAuthRequestOptions): Promise<SupaCloudOAuthClient>;
|
|
92
|
+
delete(clientId: string, options?: SupaCloudOAuthRequestOptions): Promise<void>;
|
|
93
|
+
regenerateSecret(clientId: string, options?: SupaCloudOAuthRequestOptions): Promise<SupaCloudOAuthSecretClient>;
|
|
94
|
+
}
|
|
95
|
+
export {};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { SupaCloudApiError } from "./api-error.mjs";
|
|
2
|
+
export type SupaCloudOAuthServerStatus = {
|
|
3
|
+
project_ref: string;
|
|
4
|
+
organization_id: string | null;
|
|
5
|
+
account_isolated: true;
|
|
6
|
+
state_source: "configuration";
|
|
7
|
+
runtime_verified: false;
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
allow_dynamic_registration: boolean;
|
|
10
|
+
issuer: string;
|
|
11
|
+
authorization_path: string;
|
|
12
|
+
discovery_url: string;
|
|
13
|
+
oauth_authorization_server_metadata_url: string;
|
|
14
|
+
jwks_url: string;
|
|
15
|
+
authorization_endpoint: string;
|
|
16
|
+
token_endpoint: string;
|
|
17
|
+
userinfo_endpoint: string;
|
|
18
|
+
registration_endpoint: string;
|
|
19
|
+
warnings: string[];
|
|
20
|
+
} & ({
|
|
21
|
+
signing_alg: "ES256";
|
|
22
|
+
key_id: string;
|
|
23
|
+
oidc_id_token_ready: true;
|
|
24
|
+
migration_status: "oidc_es256_migrated";
|
|
25
|
+
} | {
|
|
26
|
+
signing_alg: "RS256";
|
|
27
|
+
key_id: string;
|
|
28
|
+
oidc_id_token_ready: true;
|
|
29
|
+
migration_status: "oidc_rs256_migrated";
|
|
30
|
+
} | {
|
|
31
|
+
signing_alg: "not_migrated";
|
|
32
|
+
key_id?: never;
|
|
33
|
+
oidc_id_token_ready: false;
|
|
34
|
+
migration_status: "not_migrated";
|
|
35
|
+
});
|
|
36
|
+
export type SupaCloudAuthorizeUrlOptions = {
|
|
37
|
+
clientId: string;
|
|
38
|
+
redirectUri: string;
|
|
39
|
+
scope?: string | string[];
|
|
40
|
+
state?: string;
|
|
41
|
+
codeChallenge?: string;
|
|
42
|
+
codeChallengeMethod?: "S256" | "plain";
|
|
43
|
+
nonce?: string;
|
|
44
|
+
responseType?: "code";
|
|
45
|
+
resource?: string;
|
|
46
|
+
};
|
|
47
|
+
export type SupaCloudOidcDiscovery = {
|
|
48
|
+
issuer: string;
|
|
49
|
+
authorization_endpoint: string;
|
|
50
|
+
token_endpoint: string;
|
|
51
|
+
jwks_uri: string;
|
|
52
|
+
response_types_supported: string[];
|
|
53
|
+
subject_types_supported: string[];
|
|
54
|
+
id_token_signing_alg_values_supported: string[];
|
|
55
|
+
userinfo_endpoint?: string;
|
|
56
|
+
registration_endpoint?: string;
|
|
57
|
+
};
|
|
58
|
+
export type SupaCloudPublicJwk = {
|
|
59
|
+
kty: "EC";
|
|
60
|
+
crv: "P-256";
|
|
61
|
+
x: string;
|
|
62
|
+
y: string;
|
|
63
|
+
alg: "ES256";
|
|
64
|
+
kid: string;
|
|
65
|
+
use: "sig";
|
|
66
|
+
} | {
|
|
67
|
+
kty: "RSA";
|
|
68
|
+
n: string;
|
|
69
|
+
e: string;
|
|
70
|
+
alg: "RS256";
|
|
71
|
+
kid: string;
|
|
72
|
+
use: "sig";
|
|
73
|
+
};
|
|
74
|
+
export type SupaCloudJwks = {
|
|
75
|
+
keys: SupaCloudPublicJwk[];
|
|
76
|
+
};
|
|
77
|
+
type Options = {
|
|
78
|
+
managementApiUrl: string;
|
|
79
|
+
projectRef: string;
|
|
80
|
+
getAccessToken: () => Promise<string | null> | string | null;
|
|
81
|
+
};
|
|
82
|
+
type MigrationOptions = {
|
|
83
|
+
allowDynamicRegistration?: boolean;
|
|
84
|
+
authorizationPath?: string;
|
|
85
|
+
};
|
|
86
|
+
export declare class SupaCloudOAuthServerError extends SupaCloudApiError {
|
|
87
|
+
readonly code: string;
|
|
88
|
+
readonly mutationMayHaveApplied: boolean;
|
|
89
|
+
constructor(message: string, code: string, mutationMayHaveApplied?: boolean, status?: number);
|
|
90
|
+
}
|
|
91
|
+
export declare class SupaCloudOAuthServerClient {
|
|
92
|
+
private readonly base;
|
|
93
|
+
private readonly projectRef;
|
|
94
|
+
private readonly getAccessToken;
|
|
95
|
+
constructor(options: Options);
|
|
96
|
+
private status;
|
|
97
|
+
getStatus(): Promise<SupaCloudOAuthServerStatus>;
|
|
98
|
+
migrateToOidc(options?: MigrationOptions): Promise<SupaCloudOAuthServerStatus>;
|
|
99
|
+
private publicDocument;
|
|
100
|
+
getDiscovery(): Promise<SupaCloudOidcDiscovery>;
|
|
101
|
+
getJwks(): Promise<SupaCloudJwks>;
|
|
102
|
+
buildAuthorizeUrl(options: SupaCloudAuthorizeUrlOptions): Promise<string>;
|
|
103
|
+
}
|
|
104
|
+
export {};
|