@camox/api-contract 0.61.0 → 0.63.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/dist/locales.d.ts +2 -0
- package/dist/locales.js +7 -1
- package/dist/router.d.ts +3414 -272
- package/dist/threads.d.ts +50 -0
- package/dist/threads.js +50 -1
- package/package.json +1 -1
- package/src/locales.ts +7 -0
- package/src/threads.ts +63 -0
package/dist/router.d.ts
CHANGED
|
@@ -7,14 +7,14 @@ import "drizzle-orm";
|
|
|
7
7
|
import "drizzle-orm/sqlite-core";
|
|
8
8
|
import "@camox/api-contract/patrol";
|
|
9
9
|
import { DurableObject, WorkerEntrypoint, WorkflowEntrypoint, WorkflowEvent, WorkflowStep } from "cloudflare:workers";
|
|
10
|
-
import { ThreadSender } from "@camox/api-contract/threads";
|
|
10
|
+
import { ConnectedAgentClient, ThreadSender, ThreadView } from "@camox/api-contract/threads";
|
|
11
11
|
import { PiHarness, PiHarnessOptions } from "agents/harness/pi";
|
|
12
12
|
import { CapabilityStartContext, Lifecycle } from "agents/lifecycle";
|
|
13
13
|
import { WebSockets } from "agents/websockets";
|
|
14
14
|
import { FileErrorCode } from "@earendil-works/pi-durable/env";
|
|
15
15
|
import "camox/_internal/sdkBundleName";
|
|
16
16
|
import "@camox/ai-tools";
|
|
17
|
-
import "@earendil-works/pi-durable";
|
|
17
|
+
import { AgentEvent } from "@earendil-works/pi-durable";
|
|
18
18
|
import { CIWorkflow, CiContext, CiParams, CloudflareArtifacts } from "@cloudflare/ci";
|
|
19
19
|
import { CiBindings } from "@cloudflare/ci/worker";
|
|
20
20
|
import { ProjectRoomMessage } from "@camox/api-contract/query-keys";
|
|
@@ -1724,6 +1724,23 @@ declare function createDb(d1: D1Database): import("drizzle-orm/d1").DrizzleD1Dat
|
|
|
1724
1724
|
identity: undefined;
|
|
1725
1725
|
generated: undefined;
|
|
1726
1726
|
}, {}, {}>;
|
|
1727
|
+
experimentalFeatures: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1728
|
+
name: "experimental_features";
|
|
1729
|
+
tableName: "projects";
|
|
1730
|
+
dataType: "boolean";
|
|
1731
|
+
columnType: "SQLiteBoolean";
|
|
1732
|
+
data: boolean;
|
|
1733
|
+
driverParam: number;
|
|
1734
|
+
notNull: true;
|
|
1735
|
+
hasDefault: true;
|
|
1736
|
+
isPrimaryKey: false;
|
|
1737
|
+
isAutoincrement: false;
|
|
1738
|
+
hasRuntimeDefault: false;
|
|
1739
|
+
enumValues: undefined;
|
|
1740
|
+
baseColumn: never;
|
|
1741
|
+
identity: undefined;
|
|
1742
|
+
generated: undefined;
|
|
1743
|
+
}, {}, {}>;
|
|
1727
1744
|
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1728
1745
|
name: "created_at";
|
|
1729
1746
|
tableName: "projects";
|
|
@@ -6376,21 +6393,68 @@ declare const threadIdentitySchema: z.ZodObject<{
|
|
|
6376
6393
|
}, z.core.$strip>;
|
|
6377
6394
|
type ThreadIdentity = z.infer<typeof threadIdentitySchema>;
|
|
6378
6395
|
//#endregion
|
|
6396
|
+
//#region ../../apps/api/src/domains/threads/turn-end.d.ts
|
|
6397
|
+
/**
|
|
6398
|
+
* How a turn ended, as a caller waiting on it from outside the studio learns: the agent's final
|
|
6399
|
+
* message, a failure, or an editor stopping it. A page the turn changed, if any, by its id and
|
|
6400
|
+
* the Locale it was changed in, for a link that opens it.
|
|
6401
|
+
*/
|
|
6402
|
+
type TurnEnd = ({
|
|
6403
|
+
turn: "answered";
|
|
6404
|
+
message: string;
|
|
6405
|
+
} | {
|
|
6406
|
+
turn: "failed";
|
|
6407
|
+
} | {
|
|
6408
|
+
turn: "stopped";
|
|
6409
|
+
stoppedBy: ThreadSender;
|
|
6410
|
+
}) & {
|
|
6411
|
+
page?: TurnPage;
|
|
6412
|
+
};
|
|
6413
|
+
/** The page a turn changed last, as its writes touched it. */
|
|
6414
|
+
type TurnPage = {
|
|
6415
|
+
pageId: string;
|
|
6416
|
+
locale?: string;
|
|
6417
|
+
};
|
|
6418
|
+
/**
|
|
6419
|
+
* Where waiting on a turn got: it ended; it's still going when the wait gave up; or the thread
|
|
6420
|
+
* ended with its draft, published or deleted.
|
|
6421
|
+
*/
|
|
6422
|
+
type TurnOutcome = TurnEnd | {
|
|
6423
|
+
turn: "working";
|
|
6424
|
+
} | {
|
|
6425
|
+
turn: "threadEnded";
|
|
6426
|
+
};
|
|
6427
|
+
//#endregion
|
|
6379
6428
|
//#region ../../apps/api/src/durable-objects/thread.d.ts
|
|
6429
|
+
/**
|
|
6430
|
+
* Who sent a message a draft's thread opens with, and their kind, which sets how the transcript
|
|
6431
|
+
* records it, how studios show it and how the model reads it: an editor, or a member's Connected
|
|
6432
|
+
* Agent, in its client (ADR 0030).
|
|
6433
|
+
*/
|
|
6434
|
+
type OpeningSender = {
|
|
6435
|
+
kind: "editor";
|
|
6436
|
+
editor: ThreadSender;
|
|
6437
|
+
} | {
|
|
6438
|
+
kind: "connectedAgent";
|
|
6439
|
+
member: ThreadSender;
|
|
6440
|
+
client: ConnectedAgentClient;
|
|
6441
|
+
};
|
|
6442
|
+
/** A message a draft's thread opens with: its text, the operation id it was sent with, and who sent it. */
|
|
6443
|
+
type OpeningMessage = {
|
|
6444
|
+
operationId: string;
|
|
6445
|
+
text: string;
|
|
6446
|
+
from: OpeningSender;
|
|
6447
|
+
};
|
|
6380
6448
|
/**
|
|
6381
6449
|
* How the API opens a draft's thread with no studio connected (`Thread.open`): what it belongs
|
|
6382
|
-
* to, the API's public origin, the Brief from Camox, and the messages
|
|
6383
|
-
* first,
|
|
6450
|
+
* to, the API's public origin, the Brief from Camox if any, and the opening messages, oldest
|
|
6451
|
+
* first, the last starting the agent's run.
|
|
6384
6452
|
*/
|
|
6385
6453
|
type ThreadOpening = {
|
|
6386
6454
|
identity: ThreadIdentity;
|
|
6387
6455
|
apiOrigin: string;
|
|
6388
|
-
brief
|
|
6389
|
-
|
|
6390
|
-
messages: {
|
|
6391
|
-
operationId: string;
|
|
6392
|
-
text: string;
|
|
6393
|
-
}[];
|
|
6456
|
+
brief?: string;
|
|
6457
|
+
messages: OpeningMessage[];
|
|
6394
6458
|
};
|
|
6395
6459
|
/**
|
|
6396
6460
|
* Cloudflare's `PiHarness`, leaving Pi closed when the object starts until `started` holds: Pi
|
|
@@ -6472,14 +6536,25 @@ declare class Thread extends DurableObject<Bindings> {
|
|
|
6472
6536
|
*/
|
|
6473
6537
|
showDrafts(): Promise<void>;
|
|
6474
6538
|
/**
|
|
6475
|
-
* Opens the thread from the API, with no studio connected
|
|
6476
|
-
*
|
|
6477
|
-
*
|
|
6478
|
-
*
|
|
6479
|
-
*
|
|
6480
|
-
*
|
|
6539
|
+
* Opens the thread from the API, with no studio connected: records what it belongs to and the
|
|
6540
|
+
* API's origin, adds the Brief if any, which the model reads and studios show as from Camox
|
|
6541
|
+
* (ADR 0025), then the opening messages, each recorded as its sender's kind has it, and starts
|
|
6542
|
+
* the agent's run, which acts as the last message's sender. Every message but the last goes in
|
|
6543
|
+
* before the run, the last starting it, so the model reads them all on its first call.
|
|
6544
|
+
* Repeating it changes nothing.
|
|
6545
|
+
*/
|
|
6546
|
+
open({ identity, apiOrigin, brief, messages }: ThreadOpening): Promise<void>;
|
|
6547
|
+
/**
|
|
6548
|
+
* Sends a message into the thread from the API, with no studio connected, as an editor's
|
|
6549
|
+
* message from the studio is sent: it starts the agent's run, or steers the one going, and the
|
|
6550
|
+
* run acts as its sender. It's recorded as its sender's kind has it, as opening messages are.
|
|
6551
|
+
* Repeating it changes nothing.
|
|
6481
6552
|
*/
|
|
6482
|
-
|
|
6553
|
+
send({ identity, apiOrigin, message }: {
|
|
6554
|
+
identity: ThreadIdentity;
|
|
6555
|
+
apiOrigin: string;
|
|
6556
|
+
message: OpeningMessage;
|
|
6557
|
+
}): Promise<void>;
|
|
6483
6558
|
/**
|
|
6484
6559
|
* Adds Camox's `note` that the draft `draftId`, which this Live thread started, ended, at the
|
|
6485
6560
|
* end of the conversation: right away when the thread is idle, or else at the next break of
|
|
@@ -6491,6 +6566,18 @@ declare class Thread extends DurableObject<Bindings> {
|
|
|
6491
6566
|
draftId: string;
|
|
6492
6567
|
note: string;
|
|
6493
6568
|
}): Promise<void>;
|
|
6569
|
+
/**
|
|
6570
|
+
* The thread as studios show it now: its messages, and whether a run is going. Empty for a
|
|
6571
|
+
* thread nobody messaged yet, without opening Pi, which would store, or one that ended.
|
|
6572
|
+
*/
|
|
6573
|
+
view(): Promise<ThreadView>;
|
|
6574
|
+
/**
|
|
6575
|
+
* Waits for the turn the message sent with `operationId` started or joined to end, for up to
|
|
6576
|
+
* `waitMs`: how it ended, with the page it changed last, if any. Still working once the wait
|
|
6577
|
+
* gives up, the turn carrying on; or the thread ended with its draft. Watching the thread's own
|
|
6578
|
+
* events, as studios do, it sees the turn end as they do.
|
|
6579
|
+
*/
|
|
6580
|
+
turnOf(operationId: string, waitMs: number): Promise<TurnOutcome>;
|
|
6494
6581
|
/**
|
|
6495
6582
|
* Ends the thread with its draft, wiping everything it stored, since Pi can't delete a
|
|
6496
6583
|
* conversation yet: the run going stops, and studios still open on it see an empty thread
|
|
@@ -6861,6 +6948,17 @@ type Bindings = {
|
|
|
6861
6948
|
* (`DISPATCH_ARCHIVE_LIMIT` in domains/revisions/build.ts when unset). Set only by tests.
|
|
6862
6949
|
*/
|
|
6863
6950
|
DISPATCH_ARCHIVE_LIMIT_BYTES?: string;
|
|
6951
|
+
/**
|
|
6952
|
+
* How long, in milliseconds, a Connected Agent's call waits for the agent's turn to end
|
|
6953
|
+
* (`TURN_WAIT_MS` in domains/connected-agents/turn.ts when unset). Set only by tests.
|
|
6954
|
+
*/
|
|
6955
|
+
CONNECTED_AGENT_TURN_WAIT_MS?: string;
|
|
6956
|
+
/**
|
|
6957
|
+
* How often, in milliseconds, a Connected Agent's open subscription checks whether its member's
|
|
6958
|
+
* projects changed (`PROJECTS_POLL_MS` in domains/connected-agents/changes.ts when unset). Set
|
|
6959
|
+
* only by tests.
|
|
6960
|
+
*/
|
|
6961
|
+
CONNECTED_AGENT_PROJECTS_POLL_MS?: string;
|
|
6864
6962
|
OPEN_ROUTER_API_KEY: string;
|
|
6865
6963
|
/** Camox's Google Fonts Developer API key, which the daily fonts snapshot is taken with. */
|
|
6866
6964
|
GOOGLE_FONTS_API_KEY: string;
|
|
@@ -7130,159 +7228,2958 @@ declare function createAuth(db: Database, env: Bindings, baseURL: string, waitUn
|
|
|
7130
7228
|
}[];
|
|
7131
7229
|
};
|
|
7132
7230
|
options: import("better-auth/plugins").BearerOptions | undefined;
|
|
7133
|
-
}
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
|
|
7231
|
+
}, ...({
|
|
7232
|
+
id: "jwt";
|
|
7233
|
+
version: string;
|
|
7234
|
+
options: NoInfer<import("better-auth/plugins").JwtOptions>;
|
|
7235
|
+
init(ctx: import("better-auth").AuthContext): {
|
|
7236
|
+
context: {
|
|
7237
|
+
sessionConfig: {
|
|
7238
|
+
cookieCacheSigner: import("better-auth").CookieCacheSigner;
|
|
7239
|
+
updateAge: number;
|
|
7240
|
+
expiresIn: number;
|
|
7241
|
+
freshAge: number;
|
|
7242
|
+
cookieRefreshCache: false | {
|
|
7243
|
+
enabled: true;
|
|
7244
|
+
updateAge: number;
|
|
7245
|
+
};
|
|
7246
|
+
};
|
|
7146
7247
|
};
|
|
7248
|
+
} | undefined;
|
|
7249
|
+
endpoints: {
|
|
7250
|
+
getJwks: import("better-auth").StrictEndpoint<string, {
|
|
7251
|
+
method: "GET";
|
|
7252
|
+
metadata: {
|
|
7253
|
+
openapi: {
|
|
7254
|
+
operationId: string;
|
|
7255
|
+
description: string;
|
|
7256
|
+
responses: {
|
|
7257
|
+
"200": {
|
|
7258
|
+
description: string;
|
|
7259
|
+
content: {
|
|
7260
|
+
"application/json": {
|
|
7261
|
+
schema: {
|
|
7262
|
+
type: "object";
|
|
7263
|
+
properties: {
|
|
7264
|
+
keys: {
|
|
7265
|
+
type: string;
|
|
7266
|
+
description: string;
|
|
7267
|
+
items: {
|
|
7268
|
+
type: string;
|
|
7269
|
+
properties: {
|
|
7270
|
+
kid: {
|
|
7271
|
+
type: string;
|
|
7272
|
+
description: string;
|
|
7273
|
+
};
|
|
7274
|
+
kty: {
|
|
7275
|
+
type: string;
|
|
7276
|
+
description: string;
|
|
7277
|
+
};
|
|
7278
|
+
alg: {
|
|
7279
|
+
type: string;
|
|
7280
|
+
description: string;
|
|
7281
|
+
};
|
|
7282
|
+
use: {
|
|
7283
|
+
type: string;
|
|
7284
|
+
description: string;
|
|
7285
|
+
enum: string[];
|
|
7286
|
+
nullable: boolean;
|
|
7287
|
+
};
|
|
7288
|
+
n: {
|
|
7289
|
+
type: string;
|
|
7290
|
+
description: string;
|
|
7291
|
+
nullable: boolean;
|
|
7292
|
+
};
|
|
7293
|
+
e: {
|
|
7294
|
+
type: string;
|
|
7295
|
+
description: string;
|
|
7296
|
+
nullable: boolean;
|
|
7297
|
+
};
|
|
7298
|
+
crv: {
|
|
7299
|
+
type: string;
|
|
7300
|
+
description: string;
|
|
7301
|
+
nullable: boolean;
|
|
7302
|
+
};
|
|
7303
|
+
x: {
|
|
7304
|
+
type: string;
|
|
7305
|
+
description: string;
|
|
7306
|
+
nullable: boolean;
|
|
7307
|
+
};
|
|
7308
|
+
y: {
|
|
7309
|
+
type: string;
|
|
7310
|
+
description: string;
|
|
7311
|
+
nullable: boolean;
|
|
7312
|
+
};
|
|
7313
|
+
};
|
|
7314
|
+
required: string[];
|
|
7315
|
+
};
|
|
7316
|
+
};
|
|
7317
|
+
};
|
|
7318
|
+
required: string[];
|
|
7319
|
+
};
|
|
7320
|
+
};
|
|
7321
|
+
};
|
|
7322
|
+
};
|
|
7323
|
+
};
|
|
7324
|
+
};
|
|
7325
|
+
};
|
|
7326
|
+
}, import("better-auth").JSONWebKeySet>;
|
|
7327
|
+
getToken: import("better-auth").StrictEndpoint<"/token", {
|
|
7328
|
+
method: "GET";
|
|
7329
|
+
requireHeaders: true;
|
|
7330
|
+
use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
7331
|
+
session: {
|
|
7332
|
+
session: Record<string, any> & {
|
|
7333
|
+
id: string;
|
|
7334
|
+
createdAt: Date;
|
|
7335
|
+
updatedAt: Date;
|
|
7336
|
+
userId: string;
|
|
7337
|
+
expiresAt: Date;
|
|
7338
|
+
token: string;
|
|
7339
|
+
ipAddress?: string | null | undefined;
|
|
7340
|
+
userAgent?: string | null | undefined;
|
|
7341
|
+
};
|
|
7342
|
+
user: Record<string, any> & {
|
|
7343
|
+
id: string;
|
|
7344
|
+
createdAt: Date;
|
|
7345
|
+
updatedAt: Date;
|
|
7346
|
+
email: string;
|
|
7347
|
+
emailVerified: boolean;
|
|
7348
|
+
name: string;
|
|
7349
|
+
image?: string | null | undefined;
|
|
7350
|
+
};
|
|
7351
|
+
};
|
|
7352
|
+
}>>[];
|
|
7353
|
+
metadata: {
|
|
7354
|
+
openapi: {
|
|
7355
|
+
operationId: string;
|
|
7356
|
+
description: string;
|
|
7357
|
+
responses: {
|
|
7358
|
+
200: {
|
|
7359
|
+
description: string;
|
|
7360
|
+
content: {
|
|
7361
|
+
"application/json": {
|
|
7362
|
+
schema: {
|
|
7363
|
+
type: "object";
|
|
7364
|
+
properties: {
|
|
7365
|
+
token: {
|
|
7366
|
+
type: string;
|
|
7367
|
+
};
|
|
7368
|
+
};
|
|
7369
|
+
};
|
|
7370
|
+
};
|
|
7371
|
+
};
|
|
7372
|
+
};
|
|
7373
|
+
};
|
|
7374
|
+
};
|
|
7375
|
+
};
|
|
7376
|
+
}, {
|
|
7377
|
+
token: string;
|
|
7378
|
+
}>;
|
|
7379
|
+
signJWT: import("better-auth").StrictEndpoint<string, {
|
|
7380
|
+
method: "POST";
|
|
7381
|
+
metadata: {
|
|
7382
|
+
$Infer: {
|
|
7383
|
+
body: {
|
|
7384
|
+
payload: import("better-auth").JWTPayload;
|
|
7385
|
+
overrideOptions?: import("better-auth/plugins").JwtOptions | undefined;
|
|
7386
|
+
};
|
|
7387
|
+
};
|
|
7388
|
+
};
|
|
7389
|
+
body: import("zod").ZodObject<{
|
|
7390
|
+
payload: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
7391
|
+
overrideOptions: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
7392
|
+
}, import("zod/v4/core").$strip>;
|
|
7393
|
+
}, {
|
|
7394
|
+
token: string;
|
|
7395
|
+
}>;
|
|
7396
|
+
verifyJWT: import("better-auth").StrictEndpoint<string, {
|
|
7397
|
+
method: "POST";
|
|
7398
|
+
metadata: {
|
|
7399
|
+
$Infer: {
|
|
7400
|
+
body: {
|
|
7401
|
+
token: string;
|
|
7402
|
+
issuer?: string;
|
|
7403
|
+
};
|
|
7404
|
+
response: {
|
|
7405
|
+
payload: {
|
|
7406
|
+
sub: string;
|
|
7407
|
+
aud: string;
|
|
7408
|
+
[key: string]: any;
|
|
7409
|
+
} | null;
|
|
7410
|
+
};
|
|
7411
|
+
};
|
|
7412
|
+
};
|
|
7413
|
+
body: import("zod").ZodObject<{
|
|
7414
|
+
token: import("zod").ZodString;
|
|
7415
|
+
issuer: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7416
|
+
}, import("zod/v4/core").$strip>;
|
|
7417
|
+
}, {
|
|
7418
|
+
payload: (import("better-auth").JWTPayload & Required<Pick<import("better-auth").JWTPayload, "sub" | "aud">>) | null;
|
|
7419
|
+
}>;
|
|
7147
7420
|
};
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
};
|
|
7165
|
-
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
};
|
|
7222
|
-
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
}
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
}
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
|
|
7281
|
-
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7421
|
+
hooks: {
|
|
7422
|
+
after: {
|
|
7423
|
+
matcher(context: import("better-auth").HookEndpointContext): boolean;
|
|
7424
|
+
handler: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>>;
|
|
7425
|
+
}[];
|
|
7426
|
+
};
|
|
7427
|
+
schema: {
|
|
7428
|
+
jwks: {
|
|
7429
|
+
fields: {
|
|
7430
|
+
publicKey: {
|
|
7431
|
+
type: "string";
|
|
7432
|
+
required: true;
|
|
7433
|
+
};
|
|
7434
|
+
privateKey: {
|
|
7435
|
+
type: "string";
|
|
7436
|
+
required: true;
|
|
7437
|
+
};
|
|
7438
|
+
createdAt: {
|
|
7439
|
+
type: "date";
|
|
7440
|
+
required: true;
|
|
7441
|
+
};
|
|
7442
|
+
expiresAt: {
|
|
7443
|
+
type: "date";
|
|
7444
|
+
required: false;
|
|
7445
|
+
};
|
|
7446
|
+
alg: {
|
|
7447
|
+
type: "string";
|
|
7448
|
+
required: false;
|
|
7449
|
+
};
|
|
7450
|
+
crv: {
|
|
7451
|
+
type: "string";
|
|
7452
|
+
required: false;
|
|
7453
|
+
};
|
|
7454
|
+
};
|
|
7455
|
+
};
|
|
7456
|
+
};
|
|
7457
|
+
} | {
|
|
7458
|
+
id: "oauth-provider";
|
|
7459
|
+
version: string;
|
|
7460
|
+
options: NoInfer<import("@better-auth/oauth-provider").OAuthOptions<import("@better-auth/oauth-provider").Scope[]>>;
|
|
7461
|
+
onRequest: (request: Request, ctx: import("better-auth").AuthContext) => Promise<{
|
|
7462
|
+
response: Response;
|
|
7463
|
+
} | {
|
|
7464
|
+
request: Request;
|
|
7465
|
+
} | void>;
|
|
7466
|
+
init: (ctx: import("better-auth").AuthContext) => Promise<{
|
|
7467
|
+
options: {
|
|
7468
|
+
databaseHooks: {
|
|
7469
|
+
session: {
|
|
7470
|
+
delete: {
|
|
7471
|
+
before(session: {
|
|
7472
|
+
id: string;
|
|
7473
|
+
createdAt: Date;
|
|
7474
|
+
updatedAt: Date;
|
|
7475
|
+
userId: string;
|
|
7476
|
+
expiresAt: Date;
|
|
7477
|
+
token: string;
|
|
7478
|
+
ipAddress?: string | null | undefined;
|
|
7479
|
+
userAgent?: string | null | undefined;
|
|
7480
|
+
} & Record<string, unknown>, hookCtx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
7481
|
+
after(session: {
|
|
7482
|
+
id: string;
|
|
7483
|
+
createdAt: Date;
|
|
7484
|
+
updatedAt: Date;
|
|
7485
|
+
userId: string;
|
|
7486
|
+
expiresAt: Date;
|
|
7487
|
+
token: string;
|
|
7488
|
+
ipAddress?: string | null | undefined;
|
|
7489
|
+
userAgent?: string | null | undefined;
|
|
7490
|
+
} & Record<string, unknown>, hookCtx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
7491
|
+
};
|
|
7492
|
+
};
|
|
7493
|
+
};
|
|
7494
|
+
};
|
|
7495
|
+
}>;
|
|
7496
|
+
hooks: {
|
|
7497
|
+
before: {
|
|
7498
|
+
matcher(ctx: import("better-auth").HookEndpointContext): any;
|
|
7499
|
+
handler: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>>;
|
|
7500
|
+
}[];
|
|
7501
|
+
after: {
|
|
7502
|
+
matcher(ctx: import("better-auth").HookEndpointContext): boolean;
|
|
7503
|
+
handler: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
7504
|
+
redirect: true;
|
|
7505
|
+
url: string;
|
|
7506
|
+
} | undefined>>;
|
|
7507
|
+
}[];
|
|
7508
|
+
};
|
|
7509
|
+
endpoints: {
|
|
7510
|
+
getOAuthServerConfig: import("better-auth").StrictEndpoint<"/.well-known/oauth-authorization-server", {
|
|
7511
|
+
method: "GET";
|
|
7512
|
+
metadata: {
|
|
7513
|
+
SERVER_ONLY: true;
|
|
7514
|
+
};
|
|
7515
|
+
}, import("@better-auth/oauth-provider").AuthServerMetadata>;
|
|
7516
|
+
getOpenIdConfig: import("better-auth").StrictEndpoint<"/.well-known/openid-configuration", {
|
|
7517
|
+
method: "GET";
|
|
7518
|
+
metadata: {
|
|
7519
|
+
SERVER_ONLY: true;
|
|
7520
|
+
};
|
|
7521
|
+
}, {
|
|
7522
|
+
jwks_uri?: string | undefined;
|
|
7523
|
+
userinfo_endpoint: string;
|
|
7524
|
+
acr_values_supported?: string[] | undefined;
|
|
7525
|
+
subject_types_supported: ("public" | "pairwise")[];
|
|
7526
|
+
claims_supported: string[];
|
|
7527
|
+
claims_parameter_supported?: boolean | undefined;
|
|
7528
|
+
end_session_endpoint: string;
|
|
7529
|
+
request_parameter_supported?: boolean | undefined;
|
|
7530
|
+
request_uri_parameter_supported?: boolean | undefined;
|
|
7531
|
+
prompt_values_supported: import("@better-auth/oauth-provider").Prompt[];
|
|
7532
|
+
issuer: string;
|
|
7533
|
+
authorization_endpoint: string;
|
|
7534
|
+
token_endpoint: string;
|
|
7535
|
+
registration_endpoint?: string | undefined;
|
|
7536
|
+
scopes_supported?: string[] | undefined;
|
|
7537
|
+
response_types_supported: "code"[];
|
|
7538
|
+
response_modes_supported: "query"[];
|
|
7539
|
+
grant_types_supported: import("@better-auth/oauth-provider").GrantType[];
|
|
7540
|
+
token_endpoint_auth_methods_supported?: import("@better-auth/oauth-provider").TokenEndpointAuthMethod[] | undefined;
|
|
7541
|
+
token_endpoint_auth_signing_alg_values_supported?: import("better-auth").PrivateKeyJwtSigningAlgorithm[] | undefined;
|
|
7542
|
+
service_documentation?: string | undefined;
|
|
7543
|
+
ui_locales_supported?: string[] | undefined;
|
|
7544
|
+
op_policy_uri?: string | undefined;
|
|
7545
|
+
op_tos_uri?: string | undefined;
|
|
7546
|
+
revocation_endpoint?: string | undefined;
|
|
7547
|
+
revocation_endpoint_auth_methods_supported?: import("@better-auth/oauth-provider").TokenEndpointAuthMethod[] | undefined;
|
|
7548
|
+
revocation_endpoint_auth_signing_alg_values_supported?: import("better-auth").PrivateKeyJwtSigningAlgorithm[] | undefined;
|
|
7549
|
+
introspection_endpoint?: string | undefined;
|
|
7550
|
+
introspection_endpoint_auth_methods_supported?: import("@better-auth/oauth-provider").TokenEndpointAuthMethod[] | undefined;
|
|
7551
|
+
introspection_endpoint_auth_signing_alg_values_supported?: import("better-auth").PrivateKeyJwtSigningAlgorithm[] | undefined;
|
|
7552
|
+
code_challenge_methods_supported: "S256"[];
|
|
7553
|
+
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
7554
|
+
client_id_metadata_document_supported?: boolean | undefined;
|
|
7555
|
+
backchannel_logout_supported?: boolean | undefined;
|
|
7556
|
+
backchannel_logout_session_supported?: boolean | undefined;
|
|
7557
|
+
dpop_signing_alg_values_supported?: import("better-auth/plugins").JWSAlgorithms[] | undefined;
|
|
7558
|
+
id_token_signing_alg_values_supported: import("better-auth/plugins").JWSAlgorithms[] | ["HS256"];
|
|
7559
|
+
}>;
|
|
7560
|
+
oauth2Authorize: import("better-auth").StrictEndpoint<"/oauth2/authorize", {
|
|
7561
|
+
method: ("GET" | "POST")[];
|
|
7562
|
+
body: import("zod").ZodObject<{}, import("zod/v4/core").$loose>;
|
|
7563
|
+
redirectOnError: import("@better-auth/oauth-provider").OAuthRedirectOnError<import("better-auth").GenericEndpointContext, {
|
|
7564
|
+
redirect: true;
|
|
7565
|
+
url: string;
|
|
7566
|
+
}>;
|
|
7567
|
+
metadata: {
|
|
7568
|
+
allowedMediaTypes: string[];
|
|
7569
|
+
openapi: {
|
|
7570
|
+
description: string;
|
|
7571
|
+
parameters: ({
|
|
7572
|
+
name: string;
|
|
7573
|
+
in: "query";
|
|
7574
|
+
required: false;
|
|
7575
|
+
schema: {
|
|
7576
|
+
type: "string";
|
|
7577
|
+
format?: undefined;
|
|
7578
|
+
minimum?: undefined;
|
|
7579
|
+
items?: undefined;
|
|
7580
|
+
};
|
|
7581
|
+
description: string;
|
|
7582
|
+
} | {
|
|
7583
|
+
name: string;
|
|
7584
|
+
in: "query";
|
|
7585
|
+
required: true;
|
|
7586
|
+
schema: {
|
|
7587
|
+
type: "string";
|
|
7588
|
+
format?: undefined;
|
|
7589
|
+
minimum?: undefined;
|
|
7590
|
+
items?: undefined;
|
|
7591
|
+
};
|
|
7592
|
+
description: string;
|
|
7593
|
+
} | {
|
|
7594
|
+
name: string;
|
|
7595
|
+
in: "query";
|
|
7596
|
+
required: false;
|
|
7597
|
+
schema: {
|
|
7598
|
+
type: "string";
|
|
7599
|
+
format: string;
|
|
7600
|
+
minimum?: undefined;
|
|
7601
|
+
items?: undefined;
|
|
7602
|
+
};
|
|
7603
|
+
description: string;
|
|
7604
|
+
} | {
|
|
7605
|
+
name: string;
|
|
7606
|
+
in: "query";
|
|
7607
|
+
required: false;
|
|
7608
|
+
schema: {
|
|
7609
|
+
type: "integer";
|
|
7610
|
+
minimum: number;
|
|
7611
|
+
format?: undefined;
|
|
7612
|
+
items?: undefined;
|
|
7613
|
+
};
|
|
7614
|
+
description: string;
|
|
7615
|
+
} | {
|
|
7616
|
+
name: string;
|
|
7617
|
+
in: "query";
|
|
7618
|
+
required: false;
|
|
7619
|
+
schema: {
|
|
7620
|
+
type: "array";
|
|
7621
|
+
items: {
|
|
7622
|
+
type: "string";
|
|
7623
|
+
};
|
|
7624
|
+
format?: undefined;
|
|
7625
|
+
minimum?: undefined;
|
|
7626
|
+
};
|
|
7627
|
+
description: string;
|
|
7628
|
+
})[];
|
|
7629
|
+
responses: {
|
|
7630
|
+
"302": {
|
|
7631
|
+
description: string;
|
|
7632
|
+
headers: {
|
|
7633
|
+
Location: {
|
|
7634
|
+
description: string;
|
|
7635
|
+
schema: {
|
|
7636
|
+
type: string;
|
|
7637
|
+
format: string;
|
|
7638
|
+
};
|
|
7639
|
+
};
|
|
7640
|
+
};
|
|
7641
|
+
};
|
|
7642
|
+
"400": {
|
|
7643
|
+
description: string;
|
|
7644
|
+
content: {
|
|
7645
|
+
"application/json": {
|
|
7646
|
+
schema: {
|
|
7647
|
+
type: "object";
|
|
7648
|
+
properties: {
|
|
7649
|
+
error: {
|
|
7650
|
+
type: string;
|
|
7651
|
+
};
|
|
7652
|
+
error_description: {
|
|
7653
|
+
type: string;
|
|
7654
|
+
};
|
|
7655
|
+
state: {
|
|
7656
|
+
type: string;
|
|
7657
|
+
};
|
|
7658
|
+
};
|
|
7659
|
+
required: string[];
|
|
7660
|
+
};
|
|
7661
|
+
};
|
|
7662
|
+
};
|
|
7663
|
+
};
|
|
7664
|
+
};
|
|
7665
|
+
};
|
|
7666
|
+
};
|
|
7667
|
+
}, {
|
|
7668
|
+
redirect: true;
|
|
7669
|
+
url: string;
|
|
7670
|
+
}>;
|
|
7671
|
+
oauth2Consent: import("better-auth").StrictEndpoint<"/oauth2/consent", {
|
|
7672
|
+
method: "POST";
|
|
7673
|
+
body: import("zod").ZodObject<{
|
|
7674
|
+
accept: import("zod").ZodBoolean;
|
|
7675
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7676
|
+
claims: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>]>>;
|
|
7677
|
+
oauth_query: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7678
|
+
}, import("zod/v4/core").$strip>;
|
|
7679
|
+
use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
7680
|
+
session: {
|
|
7681
|
+
session: Record<string, any> & {
|
|
7682
|
+
id: string;
|
|
7683
|
+
createdAt: Date;
|
|
7684
|
+
updatedAt: Date;
|
|
7685
|
+
userId: string;
|
|
7686
|
+
expiresAt: Date;
|
|
7687
|
+
token: string;
|
|
7688
|
+
ipAddress?: string | null | undefined;
|
|
7689
|
+
userAgent?: string | null | undefined;
|
|
7690
|
+
};
|
|
7691
|
+
user: Record<string, any> & {
|
|
7692
|
+
id: string;
|
|
7693
|
+
createdAt: Date;
|
|
7694
|
+
updatedAt: Date;
|
|
7695
|
+
email: string;
|
|
7696
|
+
emailVerified: boolean;
|
|
7697
|
+
name: string;
|
|
7698
|
+
image?: string | null | undefined;
|
|
7699
|
+
};
|
|
7700
|
+
};
|
|
7701
|
+
}>>[];
|
|
7702
|
+
metadata: {
|
|
7703
|
+
openapi: {
|
|
7704
|
+
description: string;
|
|
7705
|
+
responses: {
|
|
7706
|
+
"200": {
|
|
7707
|
+
description: string;
|
|
7708
|
+
content: {
|
|
7709
|
+
"application/json": {
|
|
7710
|
+
schema: {
|
|
7711
|
+
type: "object";
|
|
7712
|
+
properties: {
|
|
7713
|
+
redirect: {
|
|
7714
|
+
type: string;
|
|
7715
|
+
description: string;
|
|
7716
|
+
enum: boolean[];
|
|
7717
|
+
};
|
|
7718
|
+
url: {
|
|
7719
|
+
type: string;
|
|
7720
|
+
format: string;
|
|
7721
|
+
description: string;
|
|
7722
|
+
};
|
|
7723
|
+
};
|
|
7724
|
+
required: string[];
|
|
7725
|
+
};
|
|
7726
|
+
};
|
|
7727
|
+
};
|
|
7728
|
+
};
|
|
7729
|
+
};
|
|
7730
|
+
};
|
|
7731
|
+
};
|
|
7732
|
+
}, {
|
|
7733
|
+
redirect: true;
|
|
7734
|
+
url: string;
|
|
7735
|
+
} | {
|
|
7736
|
+
redirect: boolean;
|
|
7737
|
+
url: string;
|
|
7738
|
+
}>;
|
|
7739
|
+
oauth2Continue: import("better-auth").StrictEndpoint<"/oauth2/continue", {
|
|
7740
|
+
method: "POST";
|
|
7741
|
+
body: import("zod").ZodObject<{
|
|
7742
|
+
selected: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7743
|
+
created: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7744
|
+
postLogin: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7745
|
+
oauth_query: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7746
|
+
}, import("zod/v4/core").$strip>;
|
|
7747
|
+
use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
7748
|
+
session: {
|
|
7749
|
+
session: Record<string, any> & {
|
|
7750
|
+
id: string;
|
|
7751
|
+
createdAt: Date;
|
|
7752
|
+
updatedAt: Date;
|
|
7753
|
+
userId: string;
|
|
7754
|
+
expiresAt: Date;
|
|
7755
|
+
token: string;
|
|
7756
|
+
ipAddress?: string | null | undefined;
|
|
7757
|
+
userAgent?: string | null | undefined;
|
|
7758
|
+
};
|
|
7759
|
+
user: Record<string, any> & {
|
|
7760
|
+
id: string;
|
|
7761
|
+
createdAt: Date;
|
|
7762
|
+
updatedAt: Date;
|
|
7763
|
+
email: string;
|
|
7764
|
+
emailVerified: boolean;
|
|
7765
|
+
name: string;
|
|
7766
|
+
image?: string | null | undefined;
|
|
7767
|
+
};
|
|
7768
|
+
};
|
|
7769
|
+
}>>[];
|
|
7770
|
+
metadata: {
|
|
7771
|
+
openapi: {
|
|
7772
|
+
description: string;
|
|
7773
|
+
responses: {
|
|
7774
|
+
"200": {
|
|
7775
|
+
description: string;
|
|
7776
|
+
content: {
|
|
7777
|
+
"application/json": {
|
|
7778
|
+
schema: {
|
|
7779
|
+
type: "object";
|
|
7780
|
+
properties: {
|
|
7781
|
+
redirect: {
|
|
7782
|
+
type: string;
|
|
7783
|
+
description: string;
|
|
7784
|
+
enum: boolean[];
|
|
7785
|
+
};
|
|
7786
|
+
url: {
|
|
7787
|
+
type: string;
|
|
7788
|
+
format: string;
|
|
7789
|
+
description: string;
|
|
7790
|
+
};
|
|
7791
|
+
};
|
|
7792
|
+
required: string[];
|
|
7793
|
+
};
|
|
7794
|
+
};
|
|
7795
|
+
};
|
|
7796
|
+
};
|
|
7797
|
+
};
|
|
7798
|
+
};
|
|
7799
|
+
};
|
|
7800
|
+
}, {
|
|
7801
|
+
redirect: true;
|
|
7802
|
+
url: string;
|
|
7803
|
+
}>;
|
|
7804
|
+
oauth2Token: import("better-auth").StrictEndpoint<"/oauth2/token", {
|
|
7805
|
+
method: "POST";
|
|
7806
|
+
cloneRequest: true;
|
|
7807
|
+
body: import("zod").ZodObject<{
|
|
7808
|
+
grant_type: import("zod").ZodString;
|
|
7809
|
+
client_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7810
|
+
client_secret: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7811
|
+
client_assertion: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7812
|
+
client_assertion_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7813
|
+
code: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7814
|
+
code_verifier: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7815
|
+
redirect_uri: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
7816
|
+
refresh_token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7817
|
+
resource: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
|
|
7818
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7819
|
+
}, import("zod/v4/core").$loose>;
|
|
7820
|
+
errorCodesByField: {
|
|
7821
|
+
grant_type: {
|
|
7822
|
+
missing: "invalid_request";
|
|
7823
|
+
invalid: "unsupported_grant_type";
|
|
7824
|
+
};
|
|
7825
|
+
resource: {
|
|
7826
|
+
invalid: "invalid_target";
|
|
7827
|
+
};
|
|
7828
|
+
};
|
|
7829
|
+
metadata: {
|
|
7830
|
+
noStore: boolean;
|
|
7831
|
+
allowedMediaTypes: string[];
|
|
7832
|
+
openapi: {
|
|
7833
|
+
description: string;
|
|
7834
|
+
parameters: {
|
|
7835
|
+
name: string;
|
|
7836
|
+
in: "header";
|
|
7837
|
+
required: false;
|
|
7838
|
+
schema: {
|
|
7839
|
+
type: "string";
|
|
7840
|
+
};
|
|
7841
|
+
description: string;
|
|
7842
|
+
}[];
|
|
7843
|
+
requestBody: {
|
|
7844
|
+
required: boolean;
|
|
7845
|
+
content: {
|
|
7846
|
+
"application/json": {
|
|
7847
|
+
schema: {
|
|
7848
|
+
type: "object";
|
|
7849
|
+
properties: {
|
|
7850
|
+
grant_type: {
|
|
7851
|
+
type: string;
|
|
7852
|
+
description: string;
|
|
7853
|
+
};
|
|
7854
|
+
client_id: {
|
|
7855
|
+
type: string;
|
|
7856
|
+
description: string;
|
|
7857
|
+
};
|
|
7858
|
+
client_secret: {
|
|
7859
|
+
type: string;
|
|
7860
|
+
description: string;
|
|
7861
|
+
};
|
|
7862
|
+
code: {
|
|
7863
|
+
type: string;
|
|
7864
|
+
description: string;
|
|
7865
|
+
};
|
|
7866
|
+
code_verifier: {
|
|
7867
|
+
type: string;
|
|
7868
|
+
description: string;
|
|
7869
|
+
};
|
|
7870
|
+
redirect_uri: {
|
|
7871
|
+
type: string;
|
|
7872
|
+
format: string;
|
|
7873
|
+
description: string;
|
|
7874
|
+
};
|
|
7875
|
+
refresh_token: {
|
|
7876
|
+
type: string;
|
|
7877
|
+
description: string;
|
|
7878
|
+
};
|
|
7879
|
+
resource: {
|
|
7880
|
+
oneOf: ({
|
|
7881
|
+
type: string;
|
|
7882
|
+
description: string;
|
|
7883
|
+
items?: undefined;
|
|
7884
|
+
} | {
|
|
7885
|
+
type: string;
|
|
7886
|
+
items: {
|
|
7887
|
+
type: string;
|
|
7888
|
+
};
|
|
7889
|
+
description: string;
|
|
7890
|
+
})[];
|
|
7891
|
+
description: string;
|
|
7892
|
+
};
|
|
7893
|
+
scope: {
|
|
7894
|
+
type: string;
|
|
7895
|
+
description: string;
|
|
7896
|
+
};
|
|
7897
|
+
};
|
|
7898
|
+
required: string[];
|
|
7899
|
+
};
|
|
7900
|
+
};
|
|
7901
|
+
};
|
|
7902
|
+
};
|
|
7903
|
+
responses: {
|
|
7904
|
+
"200": {
|
|
7905
|
+
description: string;
|
|
7906
|
+
content: {
|
|
7907
|
+
"application/json": {
|
|
7908
|
+
schema: {
|
|
7909
|
+
type: "object";
|
|
7910
|
+
properties: {
|
|
7911
|
+
access_token: {
|
|
7912
|
+
type: string;
|
|
7913
|
+
description: string;
|
|
7914
|
+
};
|
|
7915
|
+
token_type: {
|
|
7916
|
+
type: string;
|
|
7917
|
+
description: string;
|
|
7918
|
+
enum: string[];
|
|
7919
|
+
};
|
|
7920
|
+
expires_in: {
|
|
7921
|
+
type: string;
|
|
7922
|
+
description: string;
|
|
7923
|
+
};
|
|
7924
|
+
refresh_token: {
|
|
7925
|
+
type: string;
|
|
7926
|
+
description: string;
|
|
7927
|
+
};
|
|
7928
|
+
scope: {
|
|
7929
|
+
type: string;
|
|
7930
|
+
description: string;
|
|
7931
|
+
};
|
|
7932
|
+
id_token: {
|
|
7933
|
+
type: string;
|
|
7934
|
+
description: string;
|
|
7935
|
+
};
|
|
7936
|
+
};
|
|
7937
|
+
required: string[];
|
|
7938
|
+
};
|
|
7939
|
+
};
|
|
7940
|
+
};
|
|
7941
|
+
};
|
|
7942
|
+
"400": {
|
|
7943
|
+
description: string;
|
|
7944
|
+
content: {
|
|
7945
|
+
"application/json": {
|
|
7946
|
+
schema: {
|
|
7947
|
+
type: "object";
|
|
7948
|
+
properties: {
|
|
7949
|
+
error: {
|
|
7950
|
+
type: string;
|
|
7951
|
+
};
|
|
7952
|
+
error_description: {
|
|
7953
|
+
type: string;
|
|
7954
|
+
};
|
|
7955
|
+
error_uri: {
|
|
7956
|
+
type: string;
|
|
7957
|
+
};
|
|
7958
|
+
};
|
|
7959
|
+
required: string[];
|
|
7960
|
+
};
|
|
7961
|
+
};
|
|
7962
|
+
};
|
|
7963
|
+
};
|
|
7964
|
+
};
|
|
7965
|
+
};
|
|
7966
|
+
};
|
|
7967
|
+
}, {
|
|
7968
|
+
expires_in: number;
|
|
7969
|
+
access_token: string;
|
|
7970
|
+
expires_at: number;
|
|
7971
|
+
token_type: import("@better-auth/oauth-provider").TokenType;
|
|
7972
|
+
refresh_token: string | undefined;
|
|
7973
|
+
scope: string;
|
|
7974
|
+
id_token: string | undefined;
|
|
7975
|
+
}>;
|
|
7976
|
+
oauth2Introspect: import("better-auth").StrictEndpoint<"/oauth2/introspect", {
|
|
7977
|
+
method: "POST";
|
|
7978
|
+
cloneRequest: true;
|
|
7979
|
+
body: import("zod").ZodObject<{
|
|
7980
|
+
client_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7981
|
+
client_secret: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7982
|
+
client_assertion: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7983
|
+
client_assertion_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7984
|
+
token: import("zod").ZodString;
|
|
7985
|
+
token_type_hint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7986
|
+
}, import("zod/v4/core").$strip>;
|
|
7987
|
+
metadata: {
|
|
7988
|
+
noStore: boolean;
|
|
7989
|
+
allowedMediaTypes: string[];
|
|
7990
|
+
openapi: {
|
|
7991
|
+
description: string;
|
|
7992
|
+
requestBody: {
|
|
7993
|
+
required: boolean;
|
|
7994
|
+
content: {
|
|
7995
|
+
"application/json": {
|
|
7996
|
+
schema: {
|
|
7997
|
+
type: "object";
|
|
7998
|
+
properties: {
|
|
7999
|
+
client_id: {
|
|
8000
|
+
type: string;
|
|
8001
|
+
description: string;
|
|
8002
|
+
};
|
|
8003
|
+
client_secret: {
|
|
8004
|
+
type: string;
|
|
8005
|
+
description: string;
|
|
8006
|
+
};
|
|
8007
|
+
token: {
|
|
8008
|
+
type: string;
|
|
8009
|
+
description: string;
|
|
8010
|
+
};
|
|
8011
|
+
token_type_hint: {
|
|
8012
|
+
type: string;
|
|
8013
|
+
description: string;
|
|
8014
|
+
};
|
|
8015
|
+
};
|
|
8016
|
+
required: string[];
|
|
8017
|
+
};
|
|
8018
|
+
};
|
|
8019
|
+
};
|
|
8020
|
+
};
|
|
8021
|
+
responses: {
|
|
8022
|
+
"200": {
|
|
8023
|
+
description: string;
|
|
8024
|
+
content: {
|
|
8025
|
+
"application/json": {
|
|
8026
|
+
schema: {
|
|
8027
|
+
type: "object";
|
|
8028
|
+
properties: {
|
|
8029
|
+
active: {
|
|
8030
|
+
type: string;
|
|
8031
|
+
description: string;
|
|
8032
|
+
};
|
|
8033
|
+
scope: {
|
|
8034
|
+
type: string;
|
|
8035
|
+
description: string;
|
|
8036
|
+
};
|
|
8037
|
+
client_id: {
|
|
8038
|
+
type: string;
|
|
8039
|
+
description: string;
|
|
8040
|
+
};
|
|
8041
|
+
username: {
|
|
8042
|
+
type: string;
|
|
8043
|
+
description: string;
|
|
8044
|
+
};
|
|
8045
|
+
token_type: {
|
|
8046
|
+
type: string;
|
|
8047
|
+
description: string;
|
|
8048
|
+
};
|
|
8049
|
+
exp: {
|
|
8050
|
+
type: string;
|
|
8051
|
+
description: string;
|
|
8052
|
+
};
|
|
8053
|
+
iat: {
|
|
8054
|
+
type: string;
|
|
8055
|
+
description: string;
|
|
8056
|
+
};
|
|
8057
|
+
nbf: {
|
|
8058
|
+
type: string;
|
|
8059
|
+
description: string;
|
|
8060
|
+
};
|
|
8061
|
+
sub: {
|
|
8062
|
+
type: string;
|
|
8063
|
+
description: string;
|
|
8064
|
+
};
|
|
8065
|
+
aud: {
|
|
8066
|
+
type: string;
|
|
8067
|
+
description: string;
|
|
8068
|
+
};
|
|
8069
|
+
iss: {
|
|
8070
|
+
type: string;
|
|
8071
|
+
description: string;
|
|
8072
|
+
};
|
|
8073
|
+
jti: {
|
|
8074
|
+
type: string;
|
|
8075
|
+
description: string;
|
|
8076
|
+
};
|
|
8077
|
+
};
|
|
8078
|
+
required: string[];
|
|
8079
|
+
};
|
|
8080
|
+
};
|
|
8081
|
+
};
|
|
8082
|
+
};
|
|
8083
|
+
"400": {
|
|
8084
|
+
description: string;
|
|
8085
|
+
content: {
|
|
8086
|
+
"application/json": {
|
|
8087
|
+
schema: {
|
|
8088
|
+
type: "object";
|
|
8089
|
+
properties: {
|
|
8090
|
+
error: {
|
|
8091
|
+
type: string;
|
|
8092
|
+
};
|
|
8093
|
+
error_description: {
|
|
8094
|
+
type: string;
|
|
8095
|
+
};
|
|
8096
|
+
error_uri: {
|
|
8097
|
+
type: string;
|
|
8098
|
+
};
|
|
8099
|
+
};
|
|
8100
|
+
required: string[];
|
|
8101
|
+
};
|
|
8102
|
+
};
|
|
8103
|
+
};
|
|
8104
|
+
};
|
|
8105
|
+
};
|
|
8106
|
+
};
|
|
8107
|
+
};
|
|
8108
|
+
}, import("better-auth").JWTPayload>;
|
|
8109
|
+
oauth2Revoke: import("better-auth").StrictEndpoint<"/oauth2/revoke", {
|
|
8110
|
+
method: "POST";
|
|
8111
|
+
cloneRequest: true;
|
|
8112
|
+
body: import("zod").ZodObject<{
|
|
8113
|
+
client_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8114
|
+
client_secret: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8115
|
+
client_assertion: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8116
|
+
client_assertion_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8117
|
+
token: import("zod").ZodString;
|
|
8118
|
+
token_type_hint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8119
|
+
}, import("zod/v4/core").$strip>;
|
|
8120
|
+
metadata: {
|
|
8121
|
+
allowedMediaTypes: string[];
|
|
8122
|
+
openapi: {
|
|
8123
|
+
description: string;
|
|
8124
|
+
requestBody: {
|
|
8125
|
+
required: boolean;
|
|
8126
|
+
content: {
|
|
8127
|
+
"application/json": {
|
|
8128
|
+
schema: {
|
|
8129
|
+
type: "object";
|
|
8130
|
+
properties: {
|
|
8131
|
+
client_id: {
|
|
8132
|
+
type: string;
|
|
8133
|
+
description: string;
|
|
8134
|
+
};
|
|
8135
|
+
client_secret: {
|
|
8136
|
+
type: string;
|
|
8137
|
+
description: string;
|
|
8138
|
+
};
|
|
8139
|
+
token: {
|
|
8140
|
+
type: string;
|
|
8141
|
+
description: string;
|
|
8142
|
+
};
|
|
8143
|
+
token_type_hint: {
|
|
8144
|
+
type: string;
|
|
8145
|
+
description: string;
|
|
8146
|
+
};
|
|
8147
|
+
};
|
|
8148
|
+
required: string[];
|
|
8149
|
+
};
|
|
8150
|
+
};
|
|
8151
|
+
};
|
|
8152
|
+
};
|
|
8153
|
+
responses: {
|
|
8154
|
+
"200": {
|
|
8155
|
+
description: string;
|
|
8156
|
+
content: {
|
|
8157
|
+
"application/json": {
|
|
8158
|
+
schema: {
|
|
8159
|
+
type: "object";
|
|
8160
|
+
description: string;
|
|
8161
|
+
};
|
|
8162
|
+
};
|
|
8163
|
+
};
|
|
8164
|
+
};
|
|
8165
|
+
"400": {
|
|
8166
|
+
description: string;
|
|
8167
|
+
content: {
|
|
8168
|
+
"application/json": {
|
|
8169
|
+
schema: {
|
|
8170
|
+
type: "object";
|
|
8171
|
+
properties: {
|
|
8172
|
+
error: {
|
|
8173
|
+
type: string;
|
|
8174
|
+
};
|
|
8175
|
+
error_description: {
|
|
8176
|
+
type: string;
|
|
8177
|
+
};
|
|
8178
|
+
error_uri: {
|
|
8179
|
+
type: string;
|
|
8180
|
+
};
|
|
8181
|
+
};
|
|
8182
|
+
required: string[];
|
|
8183
|
+
};
|
|
8184
|
+
};
|
|
8185
|
+
};
|
|
8186
|
+
};
|
|
8187
|
+
};
|
|
8188
|
+
};
|
|
8189
|
+
};
|
|
8190
|
+
}, null | undefined>;
|
|
8191
|
+
oauth2UserInfo: import("better-auth").StrictEndpoint<"/oauth2/userinfo", {
|
|
8192
|
+
method: ("GET" | "POST")[];
|
|
8193
|
+
body: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
8194
|
+
access_token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8195
|
+
}, import("zod/v4/core").$loose>>;
|
|
8196
|
+
metadata: {
|
|
8197
|
+
noStore: boolean;
|
|
8198
|
+
allowedMediaTypes: string[];
|
|
8199
|
+
openapi: {
|
|
8200
|
+
description: string;
|
|
8201
|
+
security: ({
|
|
8202
|
+
bearerAuth: never[];
|
|
8203
|
+
OAuth2?: undefined;
|
|
8204
|
+
} | {
|
|
8205
|
+
OAuth2: string[];
|
|
8206
|
+
bearerAuth?: undefined;
|
|
8207
|
+
})[];
|
|
8208
|
+
parameters: {
|
|
8209
|
+
name: string;
|
|
8210
|
+
in: "header";
|
|
8211
|
+
required: false;
|
|
8212
|
+
schema: {
|
|
8213
|
+
type: "string";
|
|
8214
|
+
};
|
|
8215
|
+
description: string;
|
|
8216
|
+
}[];
|
|
8217
|
+
responses: {
|
|
8218
|
+
"200": {
|
|
8219
|
+
description: string;
|
|
8220
|
+
content: {
|
|
8221
|
+
"application/json": {
|
|
8222
|
+
schema: {
|
|
8223
|
+
type: "object";
|
|
8224
|
+
properties: {
|
|
8225
|
+
sub: {
|
|
8226
|
+
type: string;
|
|
8227
|
+
description: string;
|
|
8228
|
+
};
|
|
8229
|
+
email: {
|
|
8230
|
+
type: string;
|
|
8231
|
+
format: string;
|
|
8232
|
+
nullable: boolean;
|
|
8233
|
+
description: string;
|
|
8234
|
+
};
|
|
8235
|
+
name: {
|
|
8236
|
+
type: string;
|
|
8237
|
+
nullable: boolean;
|
|
8238
|
+
description: string;
|
|
8239
|
+
};
|
|
8240
|
+
picture: {
|
|
8241
|
+
type: string;
|
|
8242
|
+
format: string;
|
|
8243
|
+
nullable: boolean;
|
|
8244
|
+
description: string;
|
|
8245
|
+
};
|
|
8246
|
+
given_name: {
|
|
8247
|
+
type: string;
|
|
8248
|
+
nullable: boolean;
|
|
8249
|
+
description: string;
|
|
8250
|
+
};
|
|
8251
|
+
family_name: {
|
|
8252
|
+
type: string;
|
|
8253
|
+
nullable: boolean;
|
|
8254
|
+
description: string;
|
|
8255
|
+
};
|
|
8256
|
+
email_verified: {
|
|
8257
|
+
type: string;
|
|
8258
|
+
nullable: boolean;
|
|
8259
|
+
description: string;
|
|
8260
|
+
};
|
|
8261
|
+
};
|
|
8262
|
+
required: string[];
|
|
8263
|
+
};
|
|
8264
|
+
};
|
|
8265
|
+
};
|
|
8266
|
+
};
|
|
8267
|
+
"401": {
|
|
8268
|
+
description: string;
|
|
8269
|
+
content: {
|
|
8270
|
+
"application/json": {
|
|
8271
|
+
schema: {
|
|
8272
|
+
type: "object";
|
|
8273
|
+
properties: {
|
|
8274
|
+
error: {
|
|
8275
|
+
type: string;
|
|
8276
|
+
};
|
|
8277
|
+
error_description: {
|
|
8278
|
+
type: string;
|
|
8279
|
+
};
|
|
8280
|
+
};
|
|
8281
|
+
required: string[];
|
|
8282
|
+
};
|
|
8283
|
+
};
|
|
8284
|
+
};
|
|
8285
|
+
};
|
|
8286
|
+
"403": {
|
|
8287
|
+
description: string;
|
|
8288
|
+
content: {
|
|
8289
|
+
"application/json": {
|
|
8290
|
+
schema: {
|
|
8291
|
+
type: "object";
|
|
8292
|
+
properties: {
|
|
8293
|
+
error: {
|
|
8294
|
+
type: string;
|
|
8295
|
+
};
|
|
8296
|
+
error_description: {
|
|
8297
|
+
type: string;
|
|
8298
|
+
};
|
|
8299
|
+
};
|
|
8300
|
+
required: string[];
|
|
8301
|
+
};
|
|
8302
|
+
};
|
|
8303
|
+
};
|
|
8304
|
+
};
|
|
8305
|
+
};
|
|
8306
|
+
};
|
|
8307
|
+
};
|
|
8308
|
+
}, {
|
|
8309
|
+
sub: unknown;
|
|
8310
|
+
}>;
|
|
8311
|
+
oauth2EndSession: import("better-auth").StrictEndpoint<"/oauth2/end-session", {
|
|
8312
|
+
method: ("GET" | "POST")[];
|
|
8313
|
+
body: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
8314
|
+
id_token_hint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8315
|
+
client_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8316
|
+
post_logout_redirect_uri: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
8317
|
+
state: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8318
|
+
}, import("zod/v4/core").$strip>>;
|
|
8319
|
+
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
8320
|
+
id_token_hint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8321
|
+
client_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8322
|
+
post_logout_redirect_uri: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
8323
|
+
state: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8324
|
+
}, import("zod/v4/core").$strip>>;
|
|
8325
|
+
metadata: {
|
|
8326
|
+
noStore: boolean;
|
|
8327
|
+
allowedMediaTypes: string[];
|
|
8328
|
+
$Infer: {
|
|
8329
|
+
body: {
|
|
8330
|
+
id_token_hint?: string;
|
|
8331
|
+
client_id?: string;
|
|
8332
|
+
post_logout_redirect_uri?: string;
|
|
8333
|
+
state?: string;
|
|
8334
|
+
} | {
|
|
8335
|
+
query: {
|
|
8336
|
+
id_token_hint?: string;
|
|
8337
|
+
client_id?: string;
|
|
8338
|
+
post_logout_redirect_uri?: string;
|
|
8339
|
+
state?: string;
|
|
8340
|
+
};
|
|
8341
|
+
};
|
|
8342
|
+
query: {
|
|
8343
|
+
id_token_hint?: string;
|
|
8344
|
+
client_id?: string;
|
|
8345
|
+
post_logout_redirect_uri?: string;
|
|
8346
|
+
state?: string;
|
|
8347
|
+
};
|
|
8348
|
+
};
|
|
8349
|
+
openapi: {
|
|
8350
|
+
description: string;
|
|
8351
|
+
responses: {
|
|
8352
|
+
"200": {
|
|
8353
|
+
description: string;
|
|
8354
|
+
content: {
|
|
8355
|
+
"application/json": {
|
|
8356
|
+
schema: {
|
|
8357
|
+
type: "object";
|
|
8358
|
+
properties: {
|
|
8359
|
+
redirect_uri: {
|
|
8360
|
+
type: string;
|
|
8361
|
+
format: string;
|
|
8362
|
+
description: string;
|
|
8363
|
+
};
|
|
8364
|
+
message: {
|
|
8365
|
+
type: string;
|
|
8366
|
+
description: string;
|
|
8367
|
+
};
|
|
8368
|
+
};
|
|
8369
|
+
};
|
|
8370
|
+
};
|
|
8371
|
+
"text/html": {
|
|
8372
|
+
schema: {
|
|
8373
|
+
type: "string";
|
|
8374
|
+
};
|
|
8375
|
+
};
|
|
8376
|
+
};
|
|
8377
|
+
};
|
|
8378
|
+
};
|
|
8379
|
+
};
|
|
8380
|
+
};
|
|
8381
|
+
}, Response | {
|
|
8382
|
+
redirect: true;
|
|
8383
|
+
url: string;
|
|
8384
|
+
} | null>;
|
|
8385
|
+
oauth2EndSessionConfirmation: import("better-auth").StrictEndpoint<"/oauth2/end-session/confirm", {
|
|
8386
|
+
method: "POST";
|
|
8387
|
+
body: import("zod").ZodObject<{
|
|
8388
|
+
action: import("zod").ZodLiteral<"confirm">;
|
|
8389
|
+
}, import("zod/v4/core").$strip>;
|
|
8390
|
+
metadata: {
|
|
8391
|
+
noStore: boolean;
|
|
8392
|
+
allowedMediaTypes: string[];
|
|
8393
|
+
scope: "http";
|
|
8394
|
+
};
|
|
8395
|
+
}, Response | {
|
|
8396
|
+
redirect: true;
|
|
8397
|
+
url: string;
|
|
8398
|
+
} | null>;
|
|
8399
|
+
registerOAuthClient: import("better-auth").StrictEndpoint<"/oauth2/register", {
|
|
8400
|
+
method: "POST";
|
|
8401
|
+
body: import("zod").ZodObject<{
|
|
8402
|
+
redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
|
|
8403
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8404
|
+
client_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8405
|
+
client_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8406
|
+
logo_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8407
|
+
contacts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
8408
|
+
tos_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8409
|
+
policy_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8410
|
+
software_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8411
|
+
software_version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8412
|
+
software_statement: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8413
|
+
post_logout_redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
|
|
8414
|
+
backchannel_logout_uri: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
8415
|
+
backchannel_logout_session_required: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
8416
|
+
token_endpoint_auth_method: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8417
|
+
jwks: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
8418
|
+
keys: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
8419
|
+
}, import("zod/v4/core").$strip>>;
|
|
8420
|
+
jwks_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8421
|
+
grant_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
8422
|
+
response_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
8423
|
+
code: "code";
|
|
8424
|
+
}>>>;
|
|
8425
|
+
application_type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
8426
|
+
web: "web";
|
|
8427
|
+
native: "native";
|
|
8428
|
+
}>>;
|
|
8429
|
+
subject_type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
8430
|
+
public: "public";
|
|
8431
|
+
pairwise: "pairwise";
|
|
8432
|
+
}>>;
|
|
8433
|
+
dpop_bound_access_tokens: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
8434
|
+
resources: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
8435
|
+
skip_consent: import("zod").ZodOptional<import("zod").ZodNever>;
|
|
8436
|
+
}, import("zod/v4/core").$strip>;
|
|
8437
|
+
errorCodesByField: {
|
|
8438
|
+
redirect_uris: "invalid_redirect_uri";
|
|
8439
|
+
post_logout_redirect_uris: "invalid_redirect_uri";
|
|
8440
|
+
software_statement: "invalid_software_statement";
|
|
8441
|
+
resources: "invalid_target";
|
|
8442
|
+
};
|
|
8443
|
+
defaultError: "invalid_client_metadata";
|
|
8444
|
+
metadata: {
|
|
8445
|
+
noStore: boolean;
|
|
8446
|
+
openapi: {
|
|
8447
|
+
description: string;
|
|
8448
|
+
responses: {
|
|
8449
|
+
"201": {
|
|
8450
|
+
description: string;
|
|
8451
|
+
content: {
|
|
8452
|
+
"application/json": {
|
|
8453
|
+
schema: {
|
|
8454
|
+
type: "object";
|
|
8455
|
+
properties: {
|
|
8456
|
+
client_id: {
|
|
8457
|
+
type: string;
|
|
8458
|
+
description: string;
|
|
8459
|
+
};
|
|
8460
|
+
client_secret: {
|
|
8461
|
+
type: string;
|
|
8462
|
+
description: string;
|
|
8463
|
+
};
|
|
8464
|
+
client_secret_expires_at: {
|
|
8465
|
+
type: string;
|
|
8466
|
+
description: string;
|
|
8467
|
+
};
|
|
8468
|
+
scope: {
|
|
8469
|
+
type: string;
|
|
8470
|
+
description: string;
|
|
8471
|
+
};
|
|
8472
|
+
user_id: {
|
|
8473
|
+
type: string;
|
|
8474
|
+
description: string;
|
|
8475
|
+
};
|
|
8476
|
+
client_id_issued_at: {
|
|
8477
|
+
type: string;
|
|
8478
|
+
description: string;
|
|
8479
|
+
};
|
|
8480
|
+
client_name: {
|
|
8481
|
+
type: string;
|
|
8482
|
+
description: string;
|
|
8483
|
+
};
|
|
8484
|
+
client_uri: {
|
|
8485
|
+
type: string;
|
|
8486
|
+
description: string;
|
|
8487
|
+
};
|
|
8488
|
+
logo_uri: {
|
|
8489
|
+
type: string;
|
|
8490
|
+
description: string;
|
|
8491
|
+
};
|
|
8492
|
+
contacts: {
|
|
8493
|
+
type: string;
|
|
8494
|
+
items: {
|
|
8495
|
+
type: string;
|
|
8496
|
+
};
|
|
8497
|
+
description: string;
|
|
8498
|
+
};
|
|
8499
|
+
tos_uri: {
|
|
8500
|
+
type: string;
|
|
8501
|
+
description: string;
|
|
8502
|
+
};
|
|
8503
|
+
policy_uri: {
|
|
8504
|
+
type: string;
|
|
8505
|
+
description: string;
|
|
8506
|
+
};
|
|
8507
|
+
software_id: {
|
|
8508
|
+
type: string;
|
|
8509
|
+
description: string;
|
|
8510
|
+
};
|
|
8511
|
+
software_version: {
|
|
8512
|
+
type: string;
|
|
8513
|
+
description: string;
|
|
8514
|
+
};
|
|
8515
|
+
software_statement: {
|
|
8516
|
+
type: string;
|
|
8517
|
+
description: string;
|
|
8518
|
+
};
|
|
8519
|
+
redirect_uris: {
|
|
8520
|
+
type: string;
|
|
8521
|
+
items: {
|
|
8522
|
+
type: string;
|
|
8523
|
+
format: string;
|
|
8524
|
+
};
|
|
8525
|
+
description: string;
|
|
8526
|
+
};
|
|
8527
|
+
post_logout_redirect_uris: {
|
|
8528
|
+
type: string;
|
|
8529
|
+
items: {
|
|
8530
|
+
type: string;
|
|
8531
|
+
format: string;
|
|
8532
|
+
};
|
|
8533
|
+
description: string;
|
|
8534
|
+
};
|
|
8535
|
+
backchannel_logout_uri: {
|
|
8536
|
+
type: string;
|
|
8537
|
+
format: string;
|
|
8538
|
+
description: string;
|
|
8539
|
+
};
|
|
8540
|
+
backchannel_logout_session_required: {
|
|
8541
|
+
type: string;
|
|
8542
|
+
description: string;
|
|
8543
|
+
};
|
|
8544
|
+
token_endpoint_auth_method: {
|
|
8545
|
+
type: string;
|
|
8546
|
+
description: string;
|
|
8547
|
+
};
|
|
8548
|
+
grant_types: {
|
|
8549
|
+
type: string;
|
|
8550
|
+
items: {
|
|
8551
|
+
type: string;
|
|
8552
|
+
};
|
|
8553
|
+
description: string;
|
|
8554
|
+
};
|
|
8555
|
+
response_types: {
|
|
8556
|
+
type: string;
|
|
8557
|
+
items: {
|
|
8558
|
+
type: string;
|
|
8559
|
+
enum: string[];
|
|
8560
|
+
};
|
|
8561
|
+
description: string;
|
|
8562
|
+
};
|
|
8563
|
+
application_type: {
|
|
8564
|
+
type: string;
|
|
8565
|
+
description: string;
|
|
8566
|
+
enum: string[];
|
|
8567
|
+
};
|
|
8568
|
+
resources: {
|
|
8569
|
+
type: string;
|
|
8570
|
+
items: {
|
|
8571
|
+
type: string;
|
|
8572
|
+
format: string;
|
|
8573
|
+
};
|
|
8574
|
+
description: string;
|
|
8575
|
+
};
|
|
8576
|
+
disabled: {
|
|
8577
|
+
type: string;
|
|
8578
|
+
description: string;
|
|
8579
|
+
};
|
|
8580
|
+
};
|
|
8581
|
+
required: string[];
|
|
8582
|
+
};
|
|
8583
|
+
};
|
|
8584
|
+
};
|
|
8585
|
+
};
|
|
8586
|
+
};
|
|
8587
|
+
};
|
|
8588
|
+
};
|
|
8589
|
+
}, import("@better-auth/oauth-provider").OAuthClientRegistrationResponse>;
|
|
8590
|
+
adminCreateOAuthClient: import("better-auth").StrictEndpoint<"/admin/oauth2/create-client", {
|
|
8591
|
+
method: "POST";
|
|
8592
|
+
body: import("zod").ZodObject<{
|
|
8593
|
+
redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
|
|
8594
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8595
|
+
client_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8596
|
+
client_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8597
|
+
logo_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8598
|
+
contacts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
8599
|
+
tos_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8600
|
+
policy_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8601
|
+
software_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8602
|
+
software_version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8603
|
+
software_statement: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8604
|
+
post_logout_redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
|
|
8605
|
+
backchannel_logout_uri: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
8606
|
+
backchannel_logout_session_required: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
8607
|
+
token_endpoint_auth_method: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8608
|
+
application_type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
8609
|
+
web: "web";
|
|
8610
|
+
native: "native";
|
|
8611
|
+
}>>;
|
|
8612
|
+
jwks: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
8613
|
+
keys: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
8614
|
+
}, import("zod/v4/core").$strip>>;
|
|
8615
|
+
jwks_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8616
|
+
grant_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
8617
|
+
client_credentials_scopes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
8618
|
+
resources: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
8619
|
+
response_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
8620
|
+
code: "code";
|
|
8621
|
+
}>>>;
|
|
8622
|
+
client_secret_expires_at: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>>;
|
|
8623
|
+
skip_consent: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
8624
|
+
enable_end_session: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
8625
|
+
require_pkce: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
8626
|
+
dpop_bound_access_tokens: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
8627
|
+
subject_type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
8628
|
+
public: "public";
|
|
8629
|
+
pairwise: "pairwise";
|
|
8630
|
+
}>>;
|
|
8631
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
8632
|
+
}, import("zod/v4/core").$strip>;
|
|
8633
|
+
metadata: {
|
|
8634
|
+
noStore: boolean;
|
|
8635
|
+
SERVER_ONLY: true;
|
|
8636
|
+
openapi: {
|
|
8637
|
+
description: string;
|
|
8638
|
+
responses: {
|
|
8639
|
+
"201": {
|
|
8640
|
+
description: string;
|
|
8641
|
+
content: {
|
|
8642
|
+
"application/json": {
|
|
8643
|
+
schema: {
|
|
8644
|
+
type: "object";
|
|
8645
|
+
properties: {
|
|
8646
|
+
client_id: {
|
|
8647
|
+
type: string;
|
|
8648
|
+
description: string;
|
|
8649
|
+
};
|
|
8650
|
+
client_secret: {
|
|
8651
|
+
type: string;
|
|
8652
|
+
description: string;
|
|
8653
|
+
};
|
|
8654
|
+
client_secret_expires_at: {
|
|
8655
|
+
type: string;
|
|
8656
|
+
description: string;
|
|
8657
|
+
};
|
|
8658
|
+
scope: {
|
|
8659
|
+
type: string;
|
|
8660
|
+
description: string;
|
|
8661
|
+
};
|
|
8662
|
+
client_credentials_scopes: {
|
|
8663
|
+
type: string;
|
|
8664
|
+
items: {
|
|
8665
|
+
type: string;
|
|
8666
|
+
};
|
|
8667
|
+
description: string;
|
|
8668
|
+
};
|
|
8669
|
+
user_id: {
|
|
8670
|
+
type: string;
|
|
8671
|
+
description: string;
|
|
8672
|
+
};
|
|
8673
|
+
client_id_issued_at: {
|
|
8674
|
+
type: string;
|
|
8675
|
+
description: string;
|
|
8676
|
+
};
|
|
8677
|
+
client_name: {
|
|
8678
|
+
type: string;
|
|
8679
|
+
description: string;
|
|
8680
|
+
};
|
|
8681
|
+
client_uri: {
|
|
8682
|
+
type: string;
|
|
8683
|
+
description: string;
|
|
8684
|
+
};
|
|
8685
|
+
logo_uri: {
|
|
8686
|
+
type: string;
|
|
8687
|
+
description: string;
|
|
8688
|
+
};
|
|
8689
|
+
contacts: {
|
|
8690
|
+
type: string;
|
|
8691
|
+
items: {
|
|
8692
|
+
type: string;
|
|
8693
|
+
};
|
|
8694
|
+
description: string;
|
|
8695
|
+
};
|
|
8696
|
+
tos_uri: {
|
|
8697
|
+
type: string;
|
|
8698
|
+
description: string;
|
|
8699
|
+
};
|
|
8700
|
+
policy_uri: {
|
|
8701
|
+
type: string;
|
|
8702
|
+
description: string;
|
|
8703
|
+
};
|
|
8704
|
+
software_id: {
|
|
8705
|
+
type: string;
|
|
8706
|
+
description: string;
|
|
8707
|
+
};
|
|
8708
|
+
software_version: {
|
|
8709
|
+
type: string;
|
|
8710
|
+
description: string;
|
|
8711
|
+
};
|
|
8712
|
+
software_statement: {
|
|
8713
|
+
type: string;
|
|
8714
|
+
description: string;
|
|
8715
|
+
};
|
|
8716
|
+
redirect_uris: {
|
|
8717
|
+
type: string;
|
|
8718
|
+
items: {
|
|
8719
|
+
type: string;
|
|
8720
|
+
format: string;
|
|
8721
|
+
};
|
|
8722
|
+
description: string;
|
|
8723
|
+
};
|
|
8724
|
+
token_endpoint_auth_method: {
|
|
8725
|
+
type: string;
|
|
8726
|
+
description: string;
|
|
8727
|
+
};
|
|
8728
|
+
grant_types: {
|
|
8729
|
+
type: string;
|
|
8730
|
+
items: {
|
|
8731
|
+
type: string;
|
|
8732
|
+
};
|
|
8733
|
+
description: string;
|
|
8734
|
+
};
|
|
8735
|
+
response_types: {
|
|
8736
|
+
type: string;
|
|
8737
|
+
items: {
|
|
8738
|
+
type: string;
|
|
8739
|
+
enum: string[];
|
|
8740
|
+
};
|
|
8741
|
+
description: string;
|
|
8742
|
+
};
|
|
8743
|
+
application_type: {
|
|
8744
|
+
type: string;
|
|
8745
|
+
description: string;
|
|
8746
|
+
enum: string[];
|
|
8747
|
+
};
|
|
8748
|
+
resources: {
|
|
8749
|
+
type: string;
|
|
8750
|
+
items: {
|
|
8751
|
+
type: string;
|
|
8752
|
+
format: string;
|
|
8753
|
+
};
|
|
8754
|
+
description: string;
|
|
8755
|
+
};
|
|
8756
|
+
disabled: {
|
|
8757
|
+
type: string;
|
|
8758
|
+
description: string;
|
|
8759
|
+
};
|
|
8760
|
+
require_pkce: {
|
|
8761
|
+
type: string;
|
|
8762
|
+
description: string;
|
|
8763
|
+
default: boolean;
|
|
8764
|
+
};
|
|
8765
|
+
metadata: {
|
|
8766
|
+
type: string;
|
|
8767
|
+
additionalProperties: boolean;
|
|
8768
|
+
nullable: boolean;
|
|
8769
|
+
description: string;
|
|
8770
|
+
};
|
|
8771
|
+
};
|
|
8772
|
+
required: string[];
|
|
8773
|
+
};
|
|
8774
|
+
};
|
|
8775
|
+
};
|
|
8776
|
+
};
|
|
8777
|
+
};
|
|
8778
|
+
};
|
|
8779
|
+
};
|
|
8780
|
+
}, import("@better-auth/oauth-provider").OAuthClientAdministrativeResponse>;
|
|
8781
|
+
createOAuthClient: import("better-auth").StrictEndpoint<"/oauth2/create-client", {
|
|
8782
|
+
method: "POST";
|
|
8783
|
+
use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
8784
|
+
session: {
|
|
8785
|
+
session: Record<string, any> & {
|
|
8786
|
+
id: string;
|
|
8787
|
+
createdAt: Date;
|
|
8788
|
+
updatedAt: Date;
|
|
8789
|
+
userId: string;
|
|
8790
|
+
expiresAt: Date;
|
|
8791
|
+
token: string;
|
|
8792
|
+
ipAddress?: string | null | undefined;
|
|
8793
|
+
userAgent?: string | null | undefined;
|
|
8794
|
+
};
|
|
8795
|
+
user: Record<string, any> & {
|
|
8796
|
+
id: string;
|
|
8797
|
+
createdAt: Date;
|
|
8798
|
+
updatedAt: Date;
|
|
8799
|
+
email: string;
|
|
8800
|
+
emailVerified: boolean;
|
|
8801
|
+
name: string;
|
|
8802
|
+
image?: string | null | undefined;
|
|
8803
|
+
};
|
|
8804
|
+
};
|
|
8805
|
+
}>>[];
|
|
8806
|
+
body: import("zod").ZodObject<{
|
|
8807
|
+
redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
|
|
8808
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8809
|
+
client_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8810
|
+
client_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8811
|
+
logo_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8812
|
+
contacts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
8813
|
+
tos_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8814
|
+
policy_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8815
|
+
software_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8816
|
+
software_version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8817
|
+
software_statement: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8818
|
+
post_logout_redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
|
|
8819
|
+
backchannel_logout_uri: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
8820
|
+
backchannel_logout_session_required: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
8821
|
+
token_endpoint_auth_method: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8822
|
+
application_type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
8823
|
+
web: "web";
|
|
8824
|
+
native: "native";
|
|
8825
|
+
}>>;
|
|
8826
|
+
jwks: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
8827
|
+
keys: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
8828
|
+
}, import("zod/v4/core").$strip>>;
|
|
8829
|
+
jwks_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8830
|
+
grant_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
8831
|
+
response_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
8832
|
+
code: "code";
|
|
8833
|
+
}>>>;
|
|
8834
|
+
dpop_bound_access_tokens: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
8835
|
+
}, import("zod/v4/core").$strip>;
|
|
8836
|
+
metadata: {
|
|
8837
|
+
noStore: boolean;
|
|
8838
|
+
openapi: {
|
|
8839
|
+
description: string;
|
|
8840
|
+
responses: {
|
|
8841
|
+
"201": {
|
|
8842
|
+
description: string;
|
|
8843
|
+
content: {
|
|
8844
|
+
"application/json": {
|
|
8845
|
+
schema: {
|
|
8846
|
+
type: "object";
|
|
8847
|
+
properties: {
|
|
8848
|
+
client_id: {
|
|
8849
|
+
type: string;
|
|
8850
|
+
description: string;
|
|
8851
|
+
};
|
|
8852
|
+
client_secret: {
|
|
8853
|
+
type: string;
|
|
8854
|
+
description: string;
|
|
8855
|
+
};
|
|
8856
|
+
client_secret_expires_at: {
|
|
8857
|
+
type: string;
|
|
8858
|
+
description: string;
|
|
8859
|
+
};
|
|
8860
|
+
scope: {
|
|
8861
|
+
type: string;
|
|
8862
|
+
description: string;
|
|
8863
|
+
};
|
|
8864
|
+
user_id: {
|
|
8865
|
+
type: string;
|
|
8866
|
+
description: string;
|
|
8867
|
+
};
|
|
8868
|
+
client_id_issued_at: {
|
|
8869
|
+
type: string;
|
|
8870
|
+
description: string;
|
|
8871
|
+
};
|
|
8872
|
+
client_name: {
|
|
8873
|
+
type: string;
|
|
8874
|
+
description: string;
|
|
8875
|
+
};
|
|
8876
|
+
client_uri: {
|
|
8877
|
+
type: string;
|
|
8878
|
+
description: string;
|
|
8879
|
+
};
|
|
8880
|
+
logo_uri: {
|
|
8881
|
+
type: string;
|
|
8882
|
+
description: string;
|
|
8883
|
+
};
|
|
8884
|
+
contacts: {
|
|
8885
|
+
type: string;
|
|
8886
|
+
items: {
|
|
8887
|
+
type: string;
|
|
8888
|
+
};
|
|
8889
|
+
description: string;
|
|
8890
|
+
};
|
|
8891
|
+
tos_uri: {
|
|
8892
|
+
type: string;
|
|
8893
|
+
description: string;
|
|
8894
|
+
};
|
|
8895
|
+
policy_uri: {
|
|
8896
|
+
type: string;
|
|
8897
|
+
description: string;
|
|
8898
|
+
};
|
|
8899
|
+
software_id: {
|
|
8900
|
+
type: string;
|
|
8901
|
+
description: string;
|
|
8902
|
+
};
|
|
8903
|
+
software_version: {
|
|
8904
|
+
type: string;
|
|
8905
|
+
description: string;
|
|
8906
|
+
};
|
|
8907
|
+
software_statement: {
|
|
8908
|
+
type: string;
|
|
8909
|
+
description: string;
|
|
8910
|
+
};
|
|
8911
|
+
redirect_uris: {
|
|
8912
|
+
type: string;
|
|
8913
|
+
items: {
|
|
8914
|
+
type: string;
|
|
8915
|
+
format: string;
|
|
8916
|
+
};
|
|
8917
|
+
description: string;
|
|
8918
|
+
};
|
|
8919
|
+
token_endpoint_auth_method: {
|
|
8920
|
+
type: string;
|
|
8921
|
+
description: string;
|
|
8922
|
+
};
|
|
8923
|
+
grant_types: {
|
|
8924
|
+
type: string;
|
|
8925
|
+
items: {
|
|
8926
|
+
type: string;
|
|
8927
|
+
};
|
|
8928
|
+
description: string;
|
|
8929
|
+
};
|
|
8930
|
+
response_types: {
|
|
8931
|
+
type: string;
|
|
8932
|
+
items: {
|
|
8933
|
+
type: string;
|
|
8934
|
+
enum: string[];
|
|
8935
|
+
};
|
|
8936
|
+
description: string;
|
|
8937
|
+
};
|
|
8938
|
+
application_type: {
|
|
8939
|
+
type: string;
|
|
8940
|
+
description: string;
|
|
8941
|
+
enum: string[];
|
|
8942
|
+
};
|
|
8943
|
+
resources: {
|
|
8944
|
+
type: string;
|
|
8945
|
+
items: {
|
|
8946
|
+
type: string;
|
|
8947
|
+
format: string;
|
|
8948
|
+
};
|
|
8949
|
+
description: string;
|
|
8950
|
+
};
|
|
8951
|
+
disabled: {
|
|
8952
|
+
type: string;
|
|
8953
|
+
description: string;
|
|
8954
|
+
};
|
|
8955
|
+
metadata: {
|
|
8956
|
+
type: string;
|
|
8957
|
+
additionalProperties: boolean;
|
|
8958
|
+
nullable: boolean;
|
|
8959
|
+
description: string;
|
|
8960
|
+
};
|
|
8961
|
+
};
|
|
8962
|
+
required: string[];
|
|
8963
|
+
};
|
|
8964
|
+
};
|
|
8965
|
+
};
|
|
8966
|
+
};
|
|
8967
|
+
};
|
|
8968
|
+
};
|
|
8969
|
+
};
|
|
8970
|
+
}, import("@better-auth/oauth-provider").OAuthClientRegistrationResponse>;
|
|
8971
|
+
getOAuthClient: import("better-auth").StrictEndpoint<"/oauth2/get-client", {
|
|
8972
|
+
method: "GET";
|
|
8973
|
+
use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
8974
|
+
session: {
|
|
8975
|
+
session: Record<string, any> & {
|
|
8976
|
+
id: string;
|
|
8977
|
+
createdAt: Date;
|
|
8978
|
+
updatedAt: Date;
|
|
8979
|
+
userId: string;
|
|
8980
|
+
expiresAt: Date;
|
|
8981
|
+
token: string;
|
|
8982
|
+
ipAddress?: string | null | undefined;
|
|
8983
|
+
userAgent?: string | null | undefined;
|
|
8984
|
+
};
|
|
8985
|
+
user: Record<string, any> & {
|
|
8986
|
+
id: string;
|
|
8987
|
+
createdAt: Date;
|
|
8988
|
+
updatedAt: Date;
|
|
8989
|
+
email: string;
|
|
8990
|
+
emailVerified: boolean;
|
|
8991
|
+
name: string;
|
|
8992
|
+
image?: string | null | undefined;
|
|
8993
|
+
};
|
|
8994
|
+
};
|
|
8995
|
+
}>>[];
|
|
8996
|
+
query: import("zod").ZodObject<{
|
|
8997
|
+
client_id: import("zod").ZodString;
|
|
8998
|
+
}, import("zod/v4/core").$strip>;
|
|
8999
|
+
metadata: {
|
|
9000
|
+
openapi: {
|
|
9001
|
+
description: string;
|
|
9002
|
+
};
|
|
9003
|
+
};
|
|
9004
|
+
}, import("@better-auth/oauth-provider").OAuthClient>;
|
|
9005
|
+
getOAuthClientPublic: import("better-auth").StrictEndpoint<"/oauth2/public-client", {
|
|
9006
|
+
method: "GET";
|
|
9007
|
+
use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
9008
|
+
session: {
|
|
9009
|
+
session: Record<string, any> & {
|
|
9010
|
+
id: string;
|
|
9011
|
+
createdAt: Date;
|
|
9012
|
+
updatedAt: Date;
|
|
9013
|
+
userId: string;
|
|
9014
|
+
expiresAt: Date;
|
|
9015
|
+
token: string;
|
|
9016
|
+
ipAddress?: string | null | undefined;
|
|
9017
|
+
userAgent?: string | null | undefined;
|
|
9018
|
+
};
|
|
9019
|
+
user: Record<string, any> & {
|
|
9020
|
+
id: string;
|
|
9021
|
+
createdAt: Date;
|
|
9022
|
+
updatedAt: Date;
|
|
9023
|
+
email: string;
|
|
9024
|
+
emailVerified: boolean;
|
|
9025
|
+
name: string;
|
|
9026
|
+
image?: string | null | undefined;
|
|
9027
|
+
};
|
|
9028
|
+
};
|
|
9029
|
+
}>>[];
|
|
9030
|
+
query: import("zod").ZodObject<{
|
|
9031
|
+
client_id: import("zod").ZodString;
|
|
9032
|
+
}, import("zod/v4/core").$strip>;
|
|
9033
|
+
metadata: {
|
|
9034
|
+
openapi: {
|
|
9035
|
+
description: string;
|
|
9036
|
+
};
|
|
9037
|
+
};
|
|
9038
|
+
}, import("@better-auth/oauth-provider").OAuthClient>;
|
|
9039
|
+
getOAuthClientPublicPrelogin: import("better-auth").StrictEndpoint<"/oauth2/public-client-prelogin", {
|
|
9040
|
+
method: "POST";
|
|
9041
|
+
use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>>[];
|
|
9042
|
+
body: import("zod").ZodObject<{
|
|
9043
|
+
client_id: import("zod").ZodString;
|
|
9044
|
+
oauth_query: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9045
|
+
}, import("zod/v4/core").$strip>;
|
|
9046
|
+
metadata: {
|
|
9047
|
+
openapi: {
|
|
9048
|
+
description: string;
|
|
9049
|
+
};
|
|
9050
|
+
};
|
|
9051
|
+
}, import("@better-auth/oauth-provider").OAuthClient>;
|
|
9052
|
+
getOAuthClients: import("better-auth").StrictEndpoint<"/oauth2/get-clients", {
|
|
9053
|
+
method: "GET";
|
|
9054
|
+
use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
9055
|
+
session: {
|
|
9056
|
+
session: Record<string, any> & {
|
|
9057
|
+
id: string;
|
|
9058
|
+
createdAt: Date;
|
|
9059
|
+
updatedAt: Date;
|
|
9060
|
+
userId: string;
|
|
9061
|
+
expiresAt: Date;
|
|
9062
|
+
token: string;
|
|
9063
|
+
ipAddress?: string | null | undefined;
|
|
9064
|
+
userAgent?: string | null | undefined;
|
|
9065
|
+
};
|
|
9066
|
+
user: Record<string, any> & {
|
|
9067
|
+
id: string;
|
|
9068
|
+
createdAt: Date;
|
|
9069
|
+
updatedAt: Date;
|
|
9070
|
+
email: string;
|
|
9071
|
+
emailVerified: boolean;
|
|
9072
|
+
name: string;
|
|
9073
|
+
image?: string | null | undefined;
|
|
9074
|
+
};
|
|
9075
|
+
};
|
|
9076
|
+
}>>[];
|
|
9077
|
+
metadata: {
|
|
9078
|
+
openapi: {
|
|
9079
|
+
description: string;
|
|
9080
|
+
};
|
|
9081
|
+
};
|
|
9082
|
+
}, import("@better-auth/oauth-provider").OAuthClient[] | null>;
|
|
9083
|
+
adminUpdateOAuthClient: import("better-auth").StrictEndpoint<"/admin/oauth2/update-client", {
|
|
9084
|
+
method: "PATCH";
|
|
9085
|
+
body: import("zod").ZodObject<{
|
|
9086
|
+
client_id: import("zod").ZodString;
|
|
9087
|
+
update: import("zod").ZodObject<{
|
|
9088
|
+
redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
|
|
9089
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9090
|
+
client_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9091
|
+
client_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9092
|
+
logo_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9093
|
+
contacts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
9094
|
+
tos_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9095
|
+
policy_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9096
|
+
software_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9097
|
+
software_version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9098
|
+
software_statement: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9099
|
+
post_logout_redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
|
|
9100
|
+
backchannel_logout_uri: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
9101
|
+
backchannel_logout_session_required: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
9102
|
+
application_type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
9103
|
+
web: "web";
|
|
9104
|
+
native: "native";
|
|
9105
|
+
}>>;
|
|
9106
|
+
grant_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
9107
|
+
client_credentials_scopes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
9108
|
+
response_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
9109
|
+
code: "code";
|
|
9110
|
+
}>>>;
|
|
9111
|
+
client_secret_expires_at: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
9112
|
+
skip_consent: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
9113
|
+
enable_end_session: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
9114
|
+
disabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
9115
|
+
dpop_bound_access_tokens: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
9116
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
9117
|
+
}, import("zod/v4/core").$strip>;
|
|
9118
|
+
}, import("zod/v4/core").$strip>;
|
|
9119
|
+
metadata: {
|
|
9120
|
+
SERVER_ONLY: true;
|
|
9121
|
+
openapi: {
|
|
9122
|
+
description: string;
|
|
9123
|
+
};
|
|
9124
|
+
};
|
|
9125
|
+
}, import("@better-auth/oauth-provider").OAuthClientAdministrativeResponse>;
|
|
9126
|
+
updateOAuthClient: import("better-auth").StrictEndpoint<"/oauth2/update-client", {
|
|
9127
|
+
method: "POST";
|
|
9128
|
+
use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
9129
|
+
session: {
|
|
9130
|
+
session: Record<string, any> & {
|
|
9131
|
+
id: string;
|
|
9132
|
+
createdAt: Date;
|
|
9133
|
+
updatedAt: Date;
|
|
9134
|
+
userId: string;
|
|
9135
|
+
expiresAt: Date;
|
|
9136
|
+
token: string;
|
|
9137
|
+
ipAddress?: string | null | undefined;
|
|
9138
|
+
userAgent?: string | null | undefined;
|
|
9139
|
+
};
|
|
9140
|
+
user: Record<string, any> & {
|
|
9141
|
+
id: string;
|
|
9142
|
+
createdAt: Date;
|
|
9143
|
+
updatedAt: Date;
|
|
9144
|
+
email: string;
|
|
9145
|
+
emailVerified: boolean;
|
|
9146
|
+
name: string;
|
|
9147
|
+
image?: string | null | undefined;
|
|
9148
|
+
};
|
|
9149
|
+
};
|
|
9150
|
+
}>>[];
|
|
9151
|
+
body: import("zod").ZodObject<{
|
|
9152
|
+
client_id: import("zod").ZodString;
|
|
9153
|
+
update: import("zod").ZodObject<{
|
|
9154
|
+
redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
|
|
9155
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9156
|
+
client_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9157
|
+
client_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9158
|
+
logo_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9159
|
+
contacts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
9160
|
+
tos_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9161
|
+
policy_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9162
|
+
software_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9163
|
+
software_version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9164
|
+
software_statement: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9165
|
+
post_logout_redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
|
|
9166
|
+
backchannel_logout_uri: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
9167
|
+
backchannel_logout_session_required: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
9168
|
+
application_type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
9169
|
+
web: "web";
|
|
9170
|
+
native: "native";
|
|
9171
|
+
}>>;
|
|
9172
|
+
grant_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
9173
|
+
response_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
9174
|
+
code: "code";
|
|
9175
|
+
}>>>;
|
|
9176
|
+
}, import("zod/v4/core").$strip>;
|
|
9177
|
+
}, import("zod/v4/core").$strip>;
|
|
9178
|
+
metadata: {
|
|
9179
|
+
openapi: {
|
|
9180
|
+
description: string;
|
|
9181
|
+
};
|
|
9182
|
+
};
|
|
9183
|
+
}, import("@better-auth/oauth-provider").OAuthClientRegistrationResponse>;
|
|
9184
|
+
rotateClientSecret: import("better-auth").StrictEndpoint<"/oauth2/client/rotate-secret", {
|
|
9185
|
+
method: "POST";
|
|
9186
|
+
use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
9187
|
+
session: {
|
|
9188
|
+
session: Record<string, any> & {
|
|
9189
|
+
id: string;
|
|
9190
|
+
createdAt: Date;
|
|
9191
|
+
updatedAt: Date;
|
|
9192
|
+
userId: string;
|
|
9193
|
+
expiresAt: Date;
|
|
9194
|
+
token: string;
|
|
9195
|
+
ipAddress?: string | null | undefined;
|
|
9196
|
+
userAgent?: string | null | undefined;
|
|
9197
|
+
};
|
|
9198
|
+
user: Record<string, any> & {
|
|
9199
|
+
id: string;
|
|
9200
|
+
createdAt: Date;
|
|
9201
|
+
updatedAt: Date;
|
|
9202
|
+
email: string;
|
|
9203
|
+
emailVerified: boolean;
|
|
9204
|
+
name: string;
|
|
9205
|
+
image?: string | null | undefined;
|
|
9206
|
+
};
|
|
9207
|
+
};
|
|
9208
|
+
}>>[];
|
|
9209
|
+
body: import("zod").ZodObject<{
|
|
9210
|
+
client_id: import("zod").ZodString;
|
|
9211
|
+
}, import("zod/v4/core").$strip>;
|
|
9212
|
+
metadata: {
|
|
9213
|
+
noStore: boolean;
|
|
9214
|
+
openapi: {
|
|
9215
|
+
description: string;
|
|
9216
|
+
};
|
|
9217
|
+
};
|
|
9218
|
+
}, import("@better-auth/oauth-provider").OAuthClient>;
|
|
9219
|
+
rotateClientKeys: import("better-auth").StrictEndpoint<"/oauth2/client/rotate-keys", {
|
|
9220
|
+
method: "POST";
|
|
9221
|
+
body: import("zod").ZodObject<{
|
|
9222
|
+
client_assertion: import("zod").ZodString;
|
|
9223
|
+
client_assertion_type: import("zod").ZodString;
|
|
9224
|
+
jwks: import("zod").ZodObject<{
|
|
9225
|
+
keys: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
9226
|
+
}, import("zod/v4/core").$strip>;
|
|
9227
|
+
}, import("zod/v4/core").$strip>;
|
|
9228
|
+
errorCodesByField: {
|
|
9229
|
+
client_assertion: "invalid_client";
|
|
9230
|
+
client_assertion_type: "invalid_client";
|
|
9231
|
+
jwks: "invalid_client_metadata";
|
|
9232
|
+
};
|
|
9233
|
+
metadata: {
|
|
9234
|
+
noStore: boolean;
|
|
9235
|
+
openapi: {
|
|
9236
|
+
description: string;
|
|
9237
|
+
};
|
|
9238
|
+
};
|
|
9239
|
+
}, {
|
|
9240
|
+
client_id: string;
|
|
9241
|
+
jwks: {
|
|
9242
|
+
keys: Record<string, unknown>[];
|
|
9243
|
+
};
|
|
9244
|
+
}>;
|
|
9245
|
+
deleteOAuthClient: import("better-auth").StrictEndpoint<"/oauth2/delete-client", {
|
|
9246
|
+
method: "POST";
|
|
9247
|
+
use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
9248
|
+
session: {
|
|
9249
|
+
session: Record<string, any> & {
|
|
9250
|
+
id: string;
|
|
9251
|
+
createdAt: Date;
|
|
9252
|
+
updatedAt: Date;
|
|
9253
|
+
userId: string;
|
|
9254
|
+
expiresAt: Date;
|
|
9255
|
+
token: string;
|
|
9256
|
+
ipAddress?: string | null | undefined;
|
|
9257
|
+
userAgent?: string | null | undefined;
|
|
9258
|
+
};
|
|
9259
|
+
user: Record<string, any> & {
|
|
9260
|
+
id: string;
|
|
9261
|
+
createdAt: Date;
|
|
9262
|
+
updatedAt: Date;
|
|
9263
|
+
email: string;
|
|
9264
|
+
emailVerified: boolean;
|
|
9265
|
+
name: string;
|
|
9266
|
+
image?: string | null | undefined;
|
|
9267
|
+
};
|
|
9268
|
+
};
|
|
9269
|
+
}>>[];
|
|
9270
|
+
body: import("zod").ZodObject<{
|
|
9271
|
+
client_id: import("zod").ZodString;
|
|
9272
|
+
}, import("zod/v4/core").$strip>;
|
|
9273
|
+
metadata: {
|
|
9274
|
+
openapi: {
|
|
9275
|
+
description: string;
|
|
9276
|
+
};
|
|
9277
|
+
};
|
|
9278
|
+
}, void>;
|
|
9279
|
+
getOAuthConsent: import("better-auth").StrictEndpoint<"/oauth2/get-consent", {
|
|
9280
|
+
method: "GET";
|
|
9281
|
+
query: import("zod").ZodObject<{
|
|
9282
|
+
id: import("zod").ZodString;
|
|
9283
|
+
}, import("zod/v4/core").$strip>;
|
|
9284
|
+
use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
9285
|
+
session: {
|
|
9286
|
+
session: Record<string, any> & {
|
|
9287
|
+
id: string;
|
|
9288
|
+
createdAt: Date;
|
|
9289
|
+
updatedAt: Date;
|
|
9290
|
+
userId: string;
|
|
9291
|
+
expiresAt: Date;
|
|
9292
|
+
token: string;
|
|
9293
|
+
ipAddress?: string | null | undefined;
|
|
9294
|
+
userAgent?: string | null | undefined;
|
|
9295
|
+
};
|
|
9296
|
+
user: Record<string, any> & {
|
|
9297
|
+
id: string;
|
|
9298
|
+
createdAt: Date;
|
|
9299
|
+
updatedAt: Date;
|
|
9300
|
+
email: string;
|
|
9301
|
+
emailVerified: boolean;
|
|
9302
|
+
name: string;
|
|
9303
|
+
image?: string | null | undefined;
|
|
9304
|
+
};
|
|
9305
|
+
};
|
|
9306
|
+
}>>[];
|
|
9307
|
+
metadata: {
|
|
9308
|
+
openapi: {
|
|
9309
|
+
description: string;
|
|
9310
|
+
};
|
|
9311
|
+
};
|
|
9312
|
+
}, import("@better-auth/oauth-provider").OAuthConsent<import("@better-auth/oauth-provider").Scope[]>>;
|
|
9313
|
+
getOAuthConsents: import("better-auth").StrictEndpoint<"/oauth2/get-consents", {
|
|
9314
|
+
method: "GET";
|
|
9315
|
+
use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
9316
|
+
session: {
|
|
9317
|
+
session: Record<string, any> & {
|
|
9318
|
+
id: string;
|
|
9319
|
+
createdAt: Date;
|
|
9320
|
+
updatedAt: Date;
|
|
9321
|
+
userId: string;
|
|
9322
|
+
expiresAt: Date;
|
|
9323
|
+
token: string;
|
|
9324
|
+
ipAddress?: string | null | undefined;
|
|
9325
|
+
userAgent?: string | null | undefined;
|
|
9326
|
+
};
|
|
9327
|
+
user: Record<string, any> & {
|
|
9328
|
+
id: string;
|
|
9329
|
+
createdAt: Date;
|
|
9330
|
+
updatedAt: Date;
|
|
9331
|
+
email: string;
|
|
9332
|
+
emailVerified: boolean;
|
|
9333
|
+
name: string;
|
|
9334
|
+
image?: string | null | undefined;
|
|
9335
|
+
};
|
|
9336
|
+
};
|
|
9337
|
+
}>>[];
|
|
9338
|
+
metadata: {
|
|
9339
|
+
openapi: {
|
|
9340
|
+
description: string;
|
|
9341
|
+
};
|
|
9342
|
+
};
|
|
9343
|
+
}, import("@better-auth/oauth-provider").OAuthConsent<import("@better-auth/oauth-provider").Scope[]>[]>;
|
|
9344
|
+
updateOAuthConsent: import("better-auth").StrictEndpoint<"/oauth2/update-consent", {
|
|
9345
|
+
method: "POST";
|
|
9346
|
+
use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
9347
|
+
session: {
|
|
9348
|
+
session: Record<string, any> & {
|
|
9349
|
+
id: string;
|
|
9350
|
+
createdAt: Date;
|
|
9351
|
+
updatedAt: Date;
|
|
9352
|
+
userId: string;
|
|
9353
|
+
expiresAt: Date;
|
|
9354
|
+
token: string;
|
|
9355
|
+
ipAddress?: string | null | undefined;
|
|
9356
|
+
userAgent?: string | null | undefined;
|
|
9357
|
+
};
|
|
9358
|
+
user: Record<string, any> & {
|
|
9359
|
+
id: string;
|
|
9360
|
+
createdAt: Date;
|
|
9361
|
+
updatedAt: Date;
|
|
9362
|
+
email: string;
|
|
9363
|
+
emailVerified: boolean;
|
|
9364
|
+
name: string;
|
|
9365
|
+
image?: string | null | undefined;
|
|
9366
|
+
};
|
|
9367
|
+
};
|
|
9368
|
+
}>>[];
|
|
9369
|
+
body: import("zod").ZodObject<{
|
|
9370
|
+
id: import("zod").ZodString;
|
|
9371
|
+
update: import("zod").ZodObject<{
|
|
9372
|
+
scopes: import("zod").ZodArray<import("zod").ZodString>;
|
|
9373
|
+
}, import("zod/v4/core").$strip>;
|
|
9374
|
+
}, import("zod/v4/core").$strip>;
|
|
9375
|
+
metadata: {
|
|
9376
|
+
openapi: {
|
|
9377
|
+
description: string;
|
|
9378
|
+
};
|
|
9379
|
+
};
|
|
9380
|
+
}, import("@better-auth/oauth-provider").OAuthConsent<import("@better-auth/oauth-provider").Scope[]> | null>;
|
|
9381
|
+
deleteOAuthConsent: import("better-auth").StrictEndpoint<"/oauth2/delete-consent", {
|
|
9382
|
+
method: "POST";
|
|
9383
|
+
use: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
9384
|
+
session: {
|
|
9385
|
+
session: Record<string, any> & {
|
|
9386
|
+
id: string;
|
|
9387
|
+
createdAt: Date;
|
|
9388
|
+
updatedAt: Date;
|
|
9389
|
+
userId: string;
|
|
9390
|
+
expiresAt: Date;
|
|
9391
|
+
token: string;
|
|
9392
|
+
ipAddress?: string | null | undefined;
|
|
9393
|
+
userAgent?: string | null | undefined;
|
|
9394
|
+
};
|
|
9395
|
+
user: Record<string, any> & {
|
|
9396
|
+
id: string;
|
|
9397
|
+
createdAt: Date;
|
|
9398
|
+
updatedAt: Date;
|
|
9399
|
+
email: string;
|
|
9400
|
+
emailVerified: boolean;
|
|
9401
|
+
name: string;
|
|
9402
|
+
image?: string | null | undefined;
|
|
9403
|
+
};
|
|
9404
|
+
};
|
|
9405
|
+
}>>[];
|
|
9406
|
+
body: import("zod").ZodObject<{
|
|
9407
|
+
id: import("zod").ZodString;
|
|
9408
|
+
}, import("zod/v4/core").$strip>;
|
|
9409
|
+
metadata: {
|
|
9410
|
+
openapi: {
|
|
9411
|
+
description: string;
|
|
9412
|
+
};
|
|
9413
|
+
};
|
|
9414
|
+
}, void>;
|
|
9415
|
+
adminCreateOAuthResource: import("better-auth").StrictEndpoint<"/admin/oauth2/resources", {
|
|
9416
|
+
method: "POST";
|
|
9417
|
+
body: import("zod").ZodObject<{
|
|
9418
|
+
identifier: import("zod").ZodNonOptional<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
9419
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9420
|
+
accessTokenTtl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
9421
|
+
refreshTokenTtl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
9422
|
+
signingAlgorithm: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
9423
|
+
RS256: "RS256";
|
|
9424
|
+
PS256: "PS256";
|
|
9425
|
+
ES256: "ES256";
|
|
9426
|
+
ES512: "ES512";
|
|
9427
|
+
EdDSA: "EdDSA";
|
|
9428
|
+
}>>>;
|
|
9429
|
+
signingKeyId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
9430
|
+
allowedScopes: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
9431
|
+
customClaims: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
9432
|
+
dpopBoundAccessTokensRequired: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
9433
|
+
disabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
9434
|
+
metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
9435
|
+
}, import("zod/v4/core").$strip>;
|
|
9436
|
+
metadata: {
|
|
9437
|
+
SERVER_ONLY: true;
|
|
9438
|
+
};
|
|
9439
|
+
}, import("@better-auth/oauth-provider").OAuthResource>;
|
|
9440
|
+
adminListOAuthResources: import("better-auth").StrictEndpoint<"/admin/oauth2/resources", {
|
|
9441
|
+
method: "GET";
|
|
9442
|
+
metadata: {
|
|
9443
|
+
SERVER_ONLY: true;
|
|
9444
|
+
};
|
|
9445
|
+
}, import("@better-auth/oauth-provider").OAuthResource[]>;
|
|
9446
|
+
adminGetOAuthResource: import("better-auth").StrictEndpoint<"/admin/oauth2/resources/:identifier", {
|
|
9447
|
+
method: "GET";
|
|
9448
|
+
metadata: {
|
|
9449
|
+
SERVER_ONLY: true;
|
|
9450
|
+
};
|
|
9451
|
+
}, import("@better-auth/oauth-provider").OAuthResource>;
|
|
9452
|
+
adminUpdateOAuthResource: import("better-auth").StrictEndpoint<"/admin/oauth2/resources/:identifier", {
|
|
9453
|
+
method: "PATCH";
|
|
9454
|
+
body: import("zod").ZodObject<{
|
|
9455
|
+
identifier: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9456
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
9457
|
+
accessTokenTtl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
9458
|
+
refreshTokenTtl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
9459
|
+
signingAlgorithm: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
9460
|
+
RS256: "RS256";
|
|
9461
|
+
PS256: "PS256";
|
|
9462
|
+
ES256: "ES256";
|
|
9463
|
+
ES512: "ES512";
|
|
9464
|
+
EdDSA: "EdDSA";
|
|
9465
|
+
}>>>;
|
|
9466
|
+
signingKeyId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
9467
|
+
allowedScopes: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
9468
|
+
customClaims: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
9469
|
+
dpopBoundAccessTokensRequired: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
9470
|
+
disabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
9471
|
+
metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
9472
|
+
}, import("zod/v4/core").$strip>;
|
|
9473
|
+
metadata: {
|
|
9474
|
+
SERVER_ONLY: true;
|
|
9475
|
+
};
|
|
9476
|
+
}, import("@better-auth/oauth-provider").OAuthResource>;
|
|
9477
|
+
adminDeleteOAuthResource: import("better-auth").StrictEndpoint<"/admin/oauth2/resources/:identifier", {
|
|
9478
|
+
method: "DELETE";
|
|
9479
|
+
metadata: {
|
|
9480
|
+
SERVER_ONLY: true;
|
|
9481
|
+
};
|
|
9482
|
+
}, {
|
|
9483
|
+
deleted: boolean;
|
|
9484
|
+
}>;
|
|
9485
|
+
adminLinkClientResource: import("better-auth").StrictEndpoint<"/admin/oauth2/resources/:identifier/clients/:client_id", {
|
|
9486
|
+
method: "POST";
|
|
9487
|
+
metadata: {
|
|
9488
|
+
SERVER_ONLY: true;
|
|
9489
|
+
};
|
|
9490
|
+
}, {
|
|
9491
|
+
linked: boolean;
|
|
9492
|
+
}>;
|
|
9493
|
+
adminUnlinkClientResource: import("better-auth").StrictEndpoint<"/admin/oauth2/resources/:identifier/clients/:client_id", {
|
|
9494
|
+
method: "DELETE";
|
|
9495
|
+
metadata: {
|
|
9496
|
+
SERVER_ONLY: true;
|
|
9497
|
+
};
|
|
9498
|
+
}, {
|
|
9499
|
+
unlinked: boolean;
|
|
9500
|
+
}>;
|
|
9501
|
+
};
|
|
9502
|
+
schema: {
|
|
9503
|
+
oauthClient: {
|
|
9504
|
+
modelName: string;
|
|
9505
|
+
fields: {
|
|
9506
|
+
clientId: {
|
|
9507
|
+
type: "string";
|
|
9508
|
+
unique: true;
|
|
9509
|
+
required: true;
|
|
9510
|
+
};
|
|
9511
|
+
clientSecret: {
|
|
9512
|
+
type: "string";
|
|
9513
|
+
required: false;
|
|
9514
|
+
};
|
|
9515
|
+
clientDiscoveryId: {
|
|
9516
|
+
type: "string";
|
|
9517
|
+
required: false;
|
|
9518
|
+
};
|
|
9519
|
+
disabled: {
|
|
9520
|
+
type: "boolean";
|
|
9521
|
+
defaultValue: false;
|
|
9522
|
+
required: false;
|
|
9523
|
+
};
|
|
9524
|
+
skipConsent: {
|
|
9525
|
+
type: "boolean";
|
|
9526
|
+
required: false;
|
|
9527
|
+
};
|
|
9528
|
+
enableEndSession: {
|
|
9529
|
+
type: "boolean";
|
|
9530
|
+
required: false;
|
|
9531
|
+
};
|
|
9532
|
+
subjectType: {
|
|
9533
|
+
type: "string";
|
|
9534
|
+
required: false;
|
|
9535
|
+
};
|
|
9536
|
+
scopes: {
|
|
9537
|
+
type: "string[]";
|
|
9538
|
+
required: false;
|
|
9539
|
+
};
|
|
9540
|
+
clientCredentialsScopes: {
|
|
9541
|
+
type: "string[]";
|
|
9542
|
+
required: false;
|
|
9543
|
+
defaultValue: never[];
|
|
9544
|
+
};
|
|
9545
|
+
userId: {
|
|
9546
|
+
type: "string";
|
|
9547
|
+
required: false;
|
|
9548
|
+
references: {
|
|
9549
|
+
model: string;
|
|
9550
|
+
field: string;
|
|
9551
|
+
};
|
|
9552
|
+
index: true;
|
|
9553
|
+
};
|
|
9554
|
+
createdAt: {
|
|
9555
|
+
type: "date";
|
|
9556
|
+
required: false;
|
|
9557
|
+
};
|
|
9558
|
+
updatedAt: {
|
|
9559
|
+
type: "date";
|
|
9560
|
+
required: false;
|
|
9561
|
+
};
|
|
9562
|
+
name: {
|
|
9563
|
+
type: "string";
|
|
9564
|
+
required: false;
|
|
9565
|
+
};
|
|
9566
|
+
uri: {
|
|
9567
|
+
type: "string";
|
|
9568
|
+
required: false;
|
|
9569
|
+
};
|
|
9570
|
+
icon: {
|
|
9571
|
+
type: "string";
|
|
9572
|
+
required: false;
|
|
9573
|
+
};
|
|
9574
|
+
contacts: {
|
|
9575
|
+
type: "string[]";
|
|
9576
|
+
required: false;
|
|
9577
|
+
};
|
|
9578
|
+
tos: {
|
|
9579
|
+
type: "string";
|
|
9580
|
+
required: false;
|
|
9581
|
+
};
|
|
9582
|
+
policy: {
|
|
9583
|
+
type: "string";
|
|
9584
|
+
required: false;
|
|
9585
|
+
};
|
|
9586
|
+
softwareId: {
|
|
9587
|
+
type: "string";
|
|
9588
|
+
required: false;
|
|
9589
|
+
};
|
|
9590
|
+
softwareVersion: {
|
|
9591
|
+
type: "string";
|
|
9592
|
+
required: false;
|
|
9593
|
+
};
|
|
9594
|
+
softwareStatement: {
|
|
9595
|
+
type: "string";
|
|
9596
|
+
required: false;
|
|
9597
|
+
};
|
|
9598
|
+
redirectUris: {
|
|
9599
|
+
type: "string[]";
|
|
9600
|
+
required: true;
|
|
9601
|
+
};
|
|
9602
|
+
postLogoutRedirectUris: {
|
|
9603
|
+
type: "string[]";
|
|
9604
|
+
required: false;
|
|
9605
|
+
};
|
|
9606
|
+
backchannelLogoutUri: {
|
|
9607
|
+
type: "string";
|
|
9608
|
+
required: false;
|
|
9609
|
+
};
|
|
9610
|
+
backchannelLogoutSessionRequired: {
|
|
9611
|
+
type: "boolean";
|
|
9612
|
+
required: false;
|
|
9613
|
+
};
|
|
9614
|
+
tokenEndpointAuthMethod: {
|
|
9615
|
+
type: "string";
|
|
9616
|
+
required: false;
|
|
9617
|
+
};
|
|
9618
|
+
applicationType: {
|
|
9619
|
+
type: "string";
|
|
9620
|
+
required: false;
|
|
9621
|
+
};
|
|
9622
|
+
jwks: {
|
|
9623
|
+
type: "string";
|
|
9624
|
+
required: false;
|
|
9625
|
+
};
|
|
9626
|
+
jwksUri: {
|
|
9627
|
+
type: "string";
|
|
9628
|
+
required: false;
|
|
9629
|
+
};
|
|
9630
|
+
grantTypes: {
|
|
9631
|
+
type: "string[]";
|
|
9632
|
+
required: false;
|
|
9633
|
+
};
|
|
9634
|
+
responseTypes: {
|
|
9635
|
+
type: "string[]";
|
|
9636
|
+
required: false;
|
|
9637
|
+
};
|
|
9638
|
+
requirePKCE: {
|
|
9639
|
+
type: "boolean";
|
|
9640
|
+
required: false;
|
|
9641
|
+
};
|
|
9642
|
+
dpopBoundAccessTokens: {
|
|
9643
|
+
type: "boolean";
|
|
9644
|
+
required: false;
|
|
9645
|
+
defaultValue: false;
|
|
9646
|
+
};
|
|
9647
|
+
referenceId: {
|
|
9648
|
+
type: "string";
|
|
9649
|
+
required: false;
|
|
9650
|
+
};
|
|
9651
|
+
metadata: {
|
|
9652
|
+
type: "json";
|
|
9653
|
+
required: false;
|
|
9654
|
+
};
|
|
9655
|
+
};
|
|
9656
|
+
};
|
|
9657
|
+
oauthResource: {
|
|
9658
|
+
modelName: string;
|
|
9659
|
+
fields: {
|
|
9660
|
+
identifier: {
|
|
9661
|
+
type: "string";
|
|
9662
|
+
required: true;
|
|
9663
|
+
unique: true;
|
|
9664
|
+
};
|
|
9665
|
+
name: {
|
|
9666
|
+
type: "string";
|
|
9667
|
+
required: true;
|
|
9668
|
+
};
|
|
9669
|
+
accessTokenTtl: {
|
|
9670
|
+
type: "number";
|
|
9671
|
+
required: false;
|
|
9672
|
+
};
|
|
9673
|
+
refreshTokenTtl: {
|
|
9674
|
+
type: "number";
|
|
9675
|
+
required: false;
|
|
9676
|
+
};
|
|
9677
|
+
signingAlgorithm: {
|
|
9678
|
+
type: "string";
|
|
9679
|
+
required: false;
|
|
9680
|
+
};
|
|
9681
|
+
signingKeyId: {
|
|
9682
|
+
type: "string";
|
|
9683
|
+
required: false;
|
|
9684
|
+
};
|
|
9685
|
+
allowedScopes: {
|
|
9686
|
+
type: "string[]";
|
|
9687
|
+
required: false;
|
|
9688
|
+
};
|
|
9689
|
+
customClaims: {
|
|
9690
|
+
type: "json";
|
|
9691
|
+
required: false;
|
|
9692
|
+
};
|
|
9693
|
+
dpopBoundAccessTokensRequired: {
|
|
9694
|
+
type: "boolean";
|
|
9695
|
+
required: false;
|
|
9696
|
+
defaultValue: false;
|
|
9697
|
+
};
|
|
9698
|
+
disabled: {
|
|
9699
|
+
type: "boolean";
|
|
9700
|
+
required: false;
|
|
9701
|
+
defaultValue: false;
|
|
9702
|
+
};
|
|
9703
|
+
createdAt: {
|
|
9704
|
+
type: "date";
|
|
9705
|
+
required: false;
|
|
9706
|
+
};
|
|
9707
|
+
updatedAt: {
|
|
9708
|
+
type: "date";
|
|
9709
|
+
required: false;
|
|
9710
|
+
};
|
|
9711
|
+
policyVersion: {
|
|
9712
|
+
type: "number";
|
|
9713
|
+
required: false;
|
|
9714
|
+
defaultValue: number;
|
|
9715
|
+
};
|
|
9716
|
+
metadata: {
|
|
9717
|
+
type: "json";
|
|
9718
|
+
required: false;
|
|
9719
|
+
};
|
|
9720
|
+
};
|
|
9721
|
+
};
|
|
9722
|
+
oauthClientResource: {
|
|
9723
|
+
modelName: string;
|
|
9724
|
+
fields: {
|
|
9725
|
+
clientId: {
|
|
9726
|
+
type: "string";
|
|
9727
|
+
required: true;
|
|
9728
|
+
references: {
|
|
9729
|
+
model: string;
|
|
9730
|
+
field: string;
|
|
9731
|
+
onDelete: "cascade";
|
|
9732
|
+
};
|
|
9733
|
+
index: true;
|
|
9734
|
+
};
|
|
9735
|
+
resourceId: {
|
|
9736
|
+
type: "string";
|
|
9737
|
+
required: true;
|
|
9738
|
+
references: {
|
|
9739
|
+
model: string;
|
|
9740
|
+
field: string;
|
|
9741
|
+
onDelete: "cascade";
|
|
9742
|
+
};
|
|
9743
|
+
index: true;
|
|
9744
|
+
};
|
|
9745
|
+
metadata: {
|
|
9746
|
+
type: "json";
|
|
9747
|
+
required: false;
|
|
9748
|
+
};
|
|
9749
|
+
createdAt: {
|
|
9750
|
+
type: "date";
|
|
9751
|
+
required: false;
|
|
9752
|
+
};
|
|
9753
|
+
};
|
|
9754
|
+
indexes: {
|
|
9755
|
+
fields: [string, string];
|
|
9756
|
+
unique: true;
|
|
9757
|
+
}[];
|
|
9758
|
+
};
|
|
9759
|
+
oauthRefreshToken: {
|
|
9760
|
+
fields: {
|
|
9761
|
+
token: {
|
|
9762
|
+
type: "string";
|
|
9763
|
+
required: true;
|
|
9764
|
+
unique: true;
|
|
9765
|
+
};
|
|
9766
|
+
clientId: {
|
|
9767
|
+
type: "string";
|
|
9768
|
+
required: true;
|
|
9769
|
+
references: {
|
|
9770
|
+
model: string;
|
|
9771
|
+
field: string;
|
|
9772
|
+
};
|
|
9773
|
+
index: true;
|
|
9774
|
+
};
|
|
9775
|
+
sessionId: {
|
|
9776
|
+
type: "string";
|
|
9777
|
+
required: false;
|
|
9778
|
+
references: {
|
|
9779
|
+
model: string;
|
|
9780
|
+
field: string;
|
|
9781
|
+
onDelete: "set null";
|
|
9782
|
+
};
|
|
9783
|
+
index: true;
|
|
9784
|
+
};
|
|
9785
|
+
userId: {
|
|
9786
|
+
type: "string";
|
|
9787
|
+
required: true;
|
|
9788
|
+
references: {
|
|
9789
|
+
model: string;
|
|
9790
|
+
field: string;
|
|
9791
|
+
};
|
|
9792
|
+
index: true;
|
|
9793
|
+
};
|
|
9794
|
+
referenceId: {
|
|
9795
|
+
type: "string";
|
|
9796
|
+
required: false;
|
|
9797
|
+
};
|
|
9798
|
+
authorizationCodeId: {
|
|
9799
|
+
type: "string";
|
|
9800
|
+
required: false;
|
|
9801
|
+
index: true;
|
|
9802
|
+
};
|
|
9803
|
+
resources: {
|
|
9804
|
+
type: "string[]";
|
|
9805
|
+
required: false;
|
|
9806
|
+
};
|
|
9807
|
+
requestedUserInfoClaims: {
|
|
9808
|
+
type: "string[]";
|
|
9809
|
+
required: false;
|
|
9810
|
+
};
|
|
9811
|
+
expiresAt: {
|
|
9812
|
+
type: "date";
|
|
9813
|
+
};
|
|
9814
|
+
createdAt: {
|
|
9815
|
+
type: "date";
|
|
9816
|
+
};
|
|
9817
|
+
revoked: {
|
|
9818
|
+
type: "date";
|
|
9819
|
+
required: false;
|
|
9820
|
+
};
|
|
9821
|
+
rotatedAt: {
|
|
9822
|
+
type: "date";
|
|
9823
|
+
required: false;
|
|
9824
|
+
};
|
|
9825
|
+
rotationReplayResponse: {
|
|
9826
|
+
type: "string";
|
|
9827
|
+
required: false;
|
|
9828
|
+
};
|
|
9829
|
+
rotationReplayExpiresAt: {
|
|
9830
|
+
type: "date";
|
|
9831
|
+
required: false;
|
|
9832
|
+
};
|
|
9833
|
+
authTime: {
|
|
9834
|
+
type: "date";
|
|
9835
|
+
required: false;
|
|
9836
|
+
};
|
|
9837
|
+
confirmation: {
|
|
9838
|
+
type: "json";
|
|
9839
|
+
required: false;
|
|
9840
|
+
};
|
|
9841
|
+
scopes: {
|
|
9842
|
+
type: "string[]";
|
|
9843
|
+
required: true;
|
|
9844
|
+
};
|
|
9845
|
+
};
|
|
9846
|
+
};
|
|
9847
|
+
oauthAccessToken: {
|
|
9848
|
+
modelName: string;
|
|
9849
|
+
fields: {
|
|
9850
|
+
token: {
|
|
9851
|
+
type: "string";
|
|
9852
|
+
unique: true;
|
|
9853
|
+
};
|
|
9854
|
+
clientId: {
|
|
9855
|
+
type: "string";
|
|
9856
|
+
required: true;
|
|
9857
|
+
references: {
|
|
9858
|
+
model: string;
|
|
9859
|
+
field: string;
|
|
9860
|
+
};
|
|
9861
|
+
index: true;
|
|
9862
|
+
};
|
|
9863
|
+
sessionId: {
|
|
9864
|
+
type: "string";
|
|
9865
|
+
required: false;
|
|
9866
|
+
references: {
|
|
9867
|
+
model: string;
|
|
9868
|
+
field: string;
|
|
9869
|
+
onDelete: "set null";
|
|
9870
|
+
};
|
|
9871
|
+
index: true;
|
|
9872
|
+
};
|
|
9873
|
+
userId: {
|
|
9874
|
+
type: "string";
|
|
9875
|
+
required: false;
|
|
9876
|
+
references: {
|
|
9877
|
+
model: string;
|
|
9878
|
+
field: string;
|
|
9879
|
+
};
|
|
9880
|
+
index: true;
|
|
9881
|
+
};
|
|
9882
|
+
referenceId: {
|
|
9883
|
+
type: "string";
|
|
9884
|
+
required: false;
|
|
9885
|
+
};
|
|
9886
|
+
authorizationCodeId: {
|
|
9887
|
+
type: "string";
|
|
9888
|
+
required: false;
|
|
9889
|
+
index: true;
|
|
9890
|
+
};
|
|
9891
|
+
resources: {
|
|
9892
|
+
type: "string[]";
|
|
9893
|
+
required: false;
|
|
9894
|
+
};
|
|
9895
|
+
requestedUserInfoClaims: {
|
|
9896
|
+
type: "string[]";
|
|
9897
|
+
required: false;
|
|
9898
|
+
};
|
|
9899
|
+
refreshId: {
|
|
9900
|
+
type: "string";
|
|
9901
|
+
required: false;
|
|
9902
|
+
references: {
|
|
9903
|
+
model: string;
|
|
9904
|
+
field: string;
|
|
9905
|
+
};
|
|
9906
|
+
index: true;
|
|
9907
|
+
};
|
|
9908
|
+
expiresAt: {
|
|
9909
|
+
type: "date";
|
|
9910
|
+
};
|
|
9911
|
+
createdAt: {
|
|
9912
|
+
type: "date";
|
|
9913
|
+
};
|
|
9914
|
+
revoked: {
|
|
9915
|
+
type: "date";
|
|
9916
|
+
required: false;
|
|
9917
|
+
};
|
|
9918
|
+
confirmation: {
|
|
9919
|
+
type: "json";
|
|
9920
|
+
required: false;
|
|
9921
|
+
};
|
|
9922
|
+
scopes: {
|
|
9923
|
+
type: "string[]";
|
|
9924
|
+
required: true;
|
|
9925
|
+
};
|
|
9926
|
+
};
|
|
9927
|
+
};
|
|
9928
|
+
oauthConsent: {
|
|
9929
|
+
modelName: string;
|
|
9930
|
+
fields: {
|
|
9931
|
+
clientId: {
|
|
9932
|
+
type: "string";
|
|
9933
|
+
required: true;
|
|
9934
|
+
references: {
|
|
9935
|
+
model: string;
|
|
9936
|
+
field: string;
|
|
9937
|
+
};
|
|
9938
|
+
index: true;
|
|
9939
|
+
};
|
|
9940
|
+
userId: {
|
|
9941
|
+
type: "string";
|
|
9942
|
+
required: false;
|
|
9943
|
+
references: {
|
|
9944
|
+
model: string;
|
|
9945
|
+
field: string;
|
|
9946
|
+
};
|
|
9947
|
+
index: true;
|
|
9948
|
+
};
|
|
9949
|
+
referenceId: {
|
|
9950
|
+
type: "string";
|
|
9951
|
+
required: false;
|
|
9952
|
+
};
|
|
9953
|
+
resources: {
|
|
9954
|
+
type: "string[]";
|
|
9955
|
+
required: false;
|
|
9956
|
+
};
|
|
9957
|
+
requestedUserInfoClaims: {
|
|
9958
|
+
type: "string[]";
|
|
9959
|
+
required: false;
|
|
9960
|
+
};
|
|
9961
|
+
scopes: {
|
|
9962
|
+
type: "string[]";
|
|
9963
|
+
required: true;
|
|
9964
|
+
};
|
|
9965
|
+
createdAt: {
|
|
9966
|
+
type: "date";
|
|
9967
|
+
};
|
|
9968
|
+
updatedAt: {
|
|
9969
|
+
type: "date";
|
|
9970
|
+
};
|
|
9971
|
+
};
|
|
9972
|
+
};
|
|
9973
|
+
oauthClientAssertion: {
|
|
9974
|
+
modelName: string;
|
|
9975
|
+
fields: {
|
|
9976
|
+
expiresAt: {
|
|
9977
|
+
type: "date";
|
|
9978
|
+
required: true;
|
|
9979
|
+
};
|
|
9980
|
+
};
|
|
9981
|
+
};
|
|
9982
|
+
};
|
|
9983
|
+
rateLimit: ({
|
|
9984
|
+
pathMatcher: (path: string) => path is "/oauth2/token";
|
|
9985
|
+
window: number;
|
|
9986
|
+
max: number;
|
|
9987
|
+
} | {
|
|
9988
|
+
pathMatcher: (path: string) => path is "/oauth2/authorize";
|
|
9989
|
+
window: number;
|
|
9990
|
+
max: number;
|
|
9991
|
+
} | {
|
|
9992
|
+
pathMatcher: (path: string) => path is "/oauth2/introspect";
|
|
9993
|
+
window: number;
|
|
9994
|
+
max: number;
|
|
9995
|
+
} | {
|
|
9996
|
+
pathMatcher: (path: string) => path is "/oauth2/revoke";
|
|
9997
|
+
window: number;
|
|
9998
|
+
max: number;
|
|
9999
|
+
} | {
|
|
10000
|
+
pathMatcher: (path: string) => path is "/oauth2/register";
|
|
10001
|
+
window: number;
|
|
10002
|
+
max: number;
|
|
10003
|
+
} | {
|
|
10004
|
+
pathMatcher: (path: string) => path is "/oauth2/client/rotate-keys";
|
|
10005
|
+
window: number;
|
|
10006
|
+
max: number;
|
|
10007
|
+
} | {
|
|
10008
|
+
pathMatcher: (path: string) => path is "/oauth2/userinfo";
|
|
10009
|
+
window: number;
|
|
10010
|
+
max: number;
|
|
10011
|
+
})[];
|
|
10012
|
+
} | {
|
|
10013
|
+
id: "cimd";
|
|
10014
|
+
version: string;
|
|
10015
|
+
init(ctx: import("better-auth").AuthContext): void;
|
|
10016
|
+
} | {
|
|
10017
|
+
id: "connected-agent-scopes";
|
|
10018
|
+
hooks: {
|
|
10019
|
+
before: {
|
|
10020
|
+
matcher: (ctx: import("better-auth").HookEndpointContext) => boolean;
|
|
10021
|
+
handler: import("better-auth").Middleware<import("better-auth").MiddlewareOptions, (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
10022
|
+
context: {
|
|
10023
|
+
query: {
|
|
10024
|
+
scope: string;
|
|
10025
|
+
};
|
|
10026
|
+
};
|
|
10027
|
+
} | undefined>>;
|
|
10028
|
+
}[];
|
|
10029
|
+
};
|
|
10030
|
+
})[]];
|
|
10031
|
+
databaseHooks: {
|
|
10032
|
+
user: {
|
|
10033
|
+
create: {
|
|
10034
|
+
after: (user: {
|
|
10035
|
+
id: string;
|
|
10036
|
+
createdAt: Date;
|
|
10037
|
+
updatedAt: Date;
|
|
10038
|
+
email: string;
|
|
10039
|
+
emailVerified: boolean;
|
|
10040
|
+
name: string;
|
|
10041
|
+
image?: string | null | undefined;
|
|
10042
|
+
} & Record<string, unknown>) => Promise<void>;
|
|
10043
|
+
};
|
|
10044
|
+
};
|
|
10045
|
+
};
|
|
10046
|
+
}>;
|
|
10047
|
+
type Auth = ReturnType<typeof createAuth>;
|
|
10048
|
+
//#endregion
|
|
10049
|
+
//#region ../../apps/api/src/orpc.d.ts
|
|
10050
|
+
type BaseContext = {
|
|
10051
|
+
db: Database;
|
|
10052
|
+
user: Auth["$Infer"]["Session"]["user"] | null;
|
|
10053
|
+
session: Auth["$Infer"]["Session"]["session"] | null;
|
|
10054
|
+
env: Bindings;
|
|
10055
|
+
headers: Headers;
|
|
10056
|
+
client: string;
|
|
10057
|
+
telemetryDisabled: boolean;
|
|
10058
|
+
waitUntil: (promise: Promise<unknown>) => void;
|
|
10059
|
+
/** The API's public origin, which stored files' URLs start with. */
|
|
10060
|
+
apiOrigin?: string;
|
|
10061
|
+
};
|
|
10062
|
+
//#endregion
|
|
10063
|
+
//#region ../../apps/api/src/domains/projects/analytics.d.ts
|
|
10064
|
+
/**
|
|
10065
|
+
* A project's analytics providers: a Project Setting, the same for Live and every draft. Each
|
|
10066
|
+
* provider is null when it isn't set up.
|
|
10067
|
+
*/
|
|
10068
|
+
interface AnalyticsProviders {
|
|
10069
|
+
ga4: {
|
|
10070
|
+
measurementId: string;
|
|
10071
|
+
} | null;
|
|
10072
|
+
posthog: {
|
|
10073
|
+
projectApiKey: string;
|
|
10074
|
+
region: PosthogRegion;
|
|
10075
|
+
} | null;
|
|
10076
|
+
}
|
|
10077
|
+
//#endregion
|
|
10078
|
+
//#region ../../apps/api/src/domains/files/generated-metadata.d.ts
|
|
10079
|
+
type FileRow = typeof files.$inferSelect;
|
|
10080
|
+
type FileMetadata = {
|
|
10081
|
+
alt: string;
|
|
10082
|
+
filename: string;
|
|
10083
|
+
};
|
|
10084
|
+
/**
|
|
10085
|
+
* A file as readers see it: its metadata in effect in the scope's locale, and whether that
|
|
10086
|
+
* locale's metadata is generated.
|
|
10087
|
+
*/
|
|
10088
|
+
type FileView<F extends FileRow = FileRow> = Omit<F, "alt" | "filename"> & FileMetadata & {
|
|
10089
|
+
aiMetadata: boolean;
|
|
10090
|
+
};
|
|
10091
|
+
//#endregion
|
|
10092
|
+
//#region ../../apps/api/src/domains/content/references.d.ts
|
|
10093
|
+
type ResolvedReference = RecordText & {
|
|
10094
|
+
id: string;
|
|
10095
|
+
collectionId: string;
|
|
10096
|
+
content: Record<string, unknown>;
|
|
10097
|
+
contentSchema: unknown;
|
|
10098
|
+
/** The records this record references, one hop further; absent beyond the second hop. */
|
|
10099
|
+
references?: ResolvedReferences;
|
|
10100
|
+
};
|
|
10101
|
+
/** Content's resolved references: a record (or null) per reference, records in order per list. */
|
|
10102
|
+
type ResolvedReferences = Record<string, ResolvedReference | ResolvedReference[] | null>;
|
|
10103
|
+
//#endregion
|
|
10104
|
+
//#region ../../apps/api/src/domains/pages/generated-seo.d.ts
|
|
10105
|
+
type PageRow = typeof pages.$inferSelect;
|
|
10106
|
+
/** A page as readers see it: the SEO in effect, and whether it's generated. */
|
|
10107
|
+
type PageView<P extends PageRow = PageRow> = P & {
|
|
10108
|
+
aiSeo: boolean;
|
|
10109
|
+
};
|
|
10110
|
+
//#endregion
|
|
10111
|
+
//#region ../../apps/api/src/domains/_shared/fields.d.ts
|
|
10112
|
+
type FieldBase = {
|
|
10113
|
+
name: string;
|
|
10114
|
+
/** The title editors see, or the field's name. */
|
|
10115
|
+
title: string;
|
|
10116
|
+
/** The field's stored JSON Schema, for validation and the options this type doesn't name. */
|
|
10117
|
+
schema: Record<string, unknown>;
|
|
10118
|
+
};
|
|
10119
|
+
/** How a query-backed reference list orders its records, and how many it takes. */
|
|
10120
|
+
type ReferenceQuery = {
|
|
10121
|
+
orderBy?: {
|
|
10122
|
+
key: string;
|
|
10123
|
+
direction: "asc" | "desc";
|
|
10124
|
+
};
|
|
10125
|
+
limit: number;
|
|
10126
|
+
};
|
|
10127
|
+
type Field = FieldBase & ({
|
|
10128
|
+
kind: "String" | "Artifact" | "Embed" | "Icon" | "Link" | "Boolean";
|
|
10129
|
+
} | {
|
|
10130
|
+
kind: "Enum";
|
|
10131
|
+
options: string[];
|
|
10132
|
+
} | {
|
|
10133
|
+
kind: "Image" | "File";
|
|
10134
|
+
required: boolean;
|
|
10135
|
+
accept: string[] | undefined;
|
|
10136
|
+
} | {
|
|
10137
|
+
kind: "ImageList" | "FileList";
|
|
10138
|
+
accept: string[] | undefined;
|
|
10139
|
+
} | {
|
|
10140
|
+
kind: "Repeater";
|
|
10141
|
+
/** The content schema of the repeater's items. */
|
|
10142
|
+
itemContentSchema: unknown;
|
|
10143
|
+
/** The settings schema of the repeater's items, if they have settings. */
|
|
10144
|
+
itemSettingsSchema: unknown;
|
|
10145
|
+
/** How many items a new block starts with. */
|
|
10146
|
+
defaultItems: number;
|
|
10147
|
+
} | {
|
|
10148
|
+
kind: "Reference";
|
|
10149
|
+
collectionId: string;
|
|
10150
|
+
required: boolean;
|
|
10151
|
+
/** The content schema of the referenced collection's records. */
|
|
10152
|
+
recordSchema: unknown;
|
|
10153
|
+
} | {
|
|
10154
|
+
kind: "ReferenceList";
|
|
10155
|
+
collectionId: string;
|
|
10156
|
+
/** A query-backed list resolves its records in code and stores nothing. */
|
|
10157
|
+
queryBacked: boolean;
|
|
10158
|
+
/** A query-backed list's query, its limit capped; undefined for a manual list. */
|
|
10159
|
+
query: ReferenceQuery | undefined;
|
|
10160
|
+
maxItems: number | undefined;
|
|
10161
|
+
recordSchema: unknown;
|
|
10162
|
+
} | {
|
|
10163
|
+
kind: "Unknown";
|
|
10164
|
+
});
|
|
10165
|
+
//#endregion
|
|
10166
|
+
//#region ../../apps/api/src/domains/_shared/conform-content.d.ts
|
|
10167
|
+
/** Content conformed to its definition: an object holding the definition's fields only. */
|
|
10168
|
+
type Conformed<T extends {
|
|
10169
|
+
content: unknown;
|
|
10170
|
+
}> = Omit<T, "content"> & {
|
|
10171
|
+
content: Record<string, unknown>;
|
|
10172
|
+
};
|
|
10173
|
+
//#endregion
|
|
10174
|
+
//#region ../../apps/api/src/domains/content/blocks.d.ts
|
|
10175
|
+
type BlockRow = typeof blocks.$inferSelect;
|
|
10176
|
+
/**
|
|
10177
|
+
* A block as readers see it: its shared content if it's a synced placement, its summary, and its
|
|
10178
|
+
* title, which names it until it has a summary.
|
|
10179
|
+
*/
|
|
10180
|
+
type ShownBlock = Conformed<BlockRow> & {
|
|
10181
|
+
summary: string;
|
|
10182
|
+
title: string;
|
|
7286
10183
|
/** The hash of each artifact source in its content, by field (`artifactHashesOf`). */
|
|
7287
10184
|
artifactHashes: Record<string, string>;
|
|
7288
10185
|
};
|
|
@@ -7561,10 +10458,10 @@ declare const router: {
|
|
|
7561
10458
|
activeOrganizationId?: string | null | undefined;
|
|
7562
10459
|
studio?: boolean | null | undefined;
|
|
7563
10460
|
};
|
|
10461
|
+
client: string;
|
|
7564
10462
|
db: Database;
|
|
7565
10463
|
headers: Headers;
|
|
7566
10464
|
env: Bindings;
|
|
7567
|
-
client: string;
|
|
7568
10465
|
telemetryDisabled: boolean;
|
|
7569
10466
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
7570
10467
|
apiOrigin?: string | undefined;
|
|
@@ -7594,6 +10491,7 @@ declare const router: {
|
|
|
7594
10491
|
publishPushRequestedAt: number | null;
|
|
7595
10492
|
liveScript: string | null;
|
|
7596
10493
|
codeOutsideCamox: boolean;
|
|
10494
|
+
experimentalFeatures: boolean;
|
|
7597
10495
|
createdAt: number;
|
|
7598
10496
|
updatedAt: number;
|
|
7599
10497
|
}[], {
|
|
@@ -7617,6 +10515,7 @@ declare const router: {
|
|
|
7617
10515
|
publishPushRequestedAt: number | null;
|
|
7618
10516
|
liveScript: string | null;
|
|
7619
10517
|
codeOutsideCamox: boolean;
|
|
10518
|
+
experimentalFeatures: boolean;
|
|
7620
10519
|
createdAt: number;
|
|
7621
10520
|
updatedAt: number;
|
|
7622
10521
|
}[]>, Record<never, never>, Record<never, never>>;
|
|
@@ -7654,10 +10553,10 @@ declare const router: {
|
|
|
7654
10553
|
activeOrganizationId?: string | null | undefined;
|
|
7655
10554
|
studio?: boolean | null | undefined;
|
|
7656
10555
|
};
|
|
10556
|
+
client: string;
|
|
7657
10557
|
db: Database;
|
|
7658
10558
|
headers: Headers;
|
|
7659
10559
|
env: Bindings;
|
|
7660
|
-
client: string;
|
|
7661
10560
|
telemetryDisabled: boolean;
|
|
7662
10561
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
7663
10562
|
apiOrigin?: string | undefined;
|
|
@@ -7686,6 +10585,7 @@ declare const router: {
|
|
|
7686
10585
|
publishPushRequestedAt: number | null;
|
|
7687
10586
|
liveScript: string | null;
|
|
7688
10587
|
codeOutsideCamox: boolean;
|
|
10588
|
+
experimentalFeatures: boolean;
|
|
7689
10589
|
createdAt: number;
|
|
7690
10590
|
updatedAt: number;
|
|
7691
10591
|
}, {
|
|
@@ -7708,6 +10608,7 @@ declare const router: {
|
|
|
7708
10608
|
publishPushRequestedAt: number | null;
|
|
7709
10609
|
liveScript: string | null;
|
|
7710
10610
|
codeOutsideCamox: boolean;
|
|
10611
|
+
experimentalFeatures: boolean;
|
|
7711
10612
|
createdAt: number;
|
|
7712
10613
|
updatedAt: number;
|
|
7713
10614
|
}>, Record<never, never>, Record<never, never>>;
|
|
@@ -7745,10 +10646,10 @@ declare const router: {
|
|
|
7745
10646
|
activeOrganizationId?: string | null | undefined;
|
|
7746
10647
|
studio?: boolean | null | undefined;
|
|
7747
10648
|
};
|
|
10649
|
+
client: string;
|
|
7748
10650
|
db: Database;
|
|
7749
10651
|
headers: Headers;
|
|
7750
10652
|
env: Bindings;
|
|
7751
|
-
client: string;
|
|
7752
10653
|
telemetryDisabled: boolean;
|
|
7753
10654
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
7754
10655
|
apiOrigin?: string | undefined;
|
|
@@ -7780,6 +10681,7 @@ declare const router: {
|
|
|
7780
10681
|
publishPushRequestedAt: number | null;
|
|
7781
10682
|
liveScript: string | null;
|
|
7782
10683
|
codeOutsideCamox: boolean;
|
|
10684
|
+
experimentalFeatures: boolean;
|
|
7783
10685
|
updatedAt: number;
|
|
7784
10686
|
}, {
|
|
7785
10687
|
organizationSlug: string | null;
|
|
@@ -7804,6 +10706,7 @@ declare const router: {
|
|
|
7804
10706
|
publishPushRequestedAt: number | null;
|
|
7805
10707
|
liveScript: string | null;
|
|
7806
10708
|
codeOutsideCamox: boolean;
|
|
10709
|
+
experimentalFeatures: boolean;
|
|
7807
10710
|
updatedAt: number;
|
|
7808
10711
|
}>, Record<never, never>, Record<never, never>>;
|
|
7809
10712
|
getByUuid: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
@@ -7840,10 +10743,10 @@ declare const router: {
|
|
|
7840
10743
|
activeOrganizationId?: string | null | undefined;
|
|
7841
10744
|
studio?: boolean | null | undefined;
|
|
7842
10745
|
};
|
|
10746
|
+
client: string;
|
|
7843
10747
|
db: Database;
|
|
7844
10748
|
headers: Headers;
|
|
7845
10749
|
env: Bindings;
|
|
7846
|
-
client: string;
|
|
7847
10750
|
telemetryDisabled: boolean;
|
|
7848
10751
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
7849
10752
|
apiOrigin?: string | undefined;
|
|
@@ -7875,6 +10778,7 @@ declare const router: {
|
|
|
7875
10778
|
publishPushRequestedAt: number | null;
|
|
7876
10779
|
liveScript: string | null;
|
|
7877
10780
|
codeOutsideCamox: boolean;
|
|
10781
|
+
experimentalFeatures: boolean;
|
|
7878
10782
|
updatedAt: number;
|
|
7879
10783
|
}, {
|
|
7880
10784
|
organizationSlug: string | null;
|
|
@@ -7899,6 +10803,7 @@ declare const router: {
|
|
|
7899
10803
|
publishPushRequestedAt: number | null;
|
|
7900
10804
|
liveScript: string | null;
|
|
7901
10805
|
codeOutsideCamox: boolean;
|
|
10806
|
+
experimentalFeatures: boolean;
|
|
7902
10807
|
updatedAt: number;
|
|
7903
10808
|
}>, Record<never, never>, Record<never, never>>;
|
|
7904
10809
|
getSummary: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
@@ -7952,10 +10857,10 @@ declare const router: {
|
|
|
7952
10857
|
activeOrganizationId?: string | null | undefined;
|
|
7953
10858
|
studio?: boolean | null | undefined;
|
|
7954
10859
|
};
|
|
10860
|
+
client: string;
|
|
7955
10861
|
db: Database;
|
|
7956
10862
|
headers: Headers;
|
|
7957
10863
|
env: Bindings;
|
|
7958
|
-
client: string;
|
|
7959
10864
|
telemetryDisabled: boolean;
|
|
7960
10865
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
7961
10866
|
apiOrigin?: string | undefined;
|
|
@@ -7987,6 +10892,7 @@ declare const router: {
|
|
|
7987
10892
|
publishPushRequestedAt: number | null;
|
|
7988
10893
|
liveScript: string | null;
|
|
7989
10894
|
codeOutsideCamox: boolean;
|
|
10895
|
+
experimentalFeatures: boolean;
|
|
7990
10896
|
updatedAt: number;
|
|
7991
10897
|
}, {
|
|
7992
10898
|
organizationSlug: string | null;
|
|
@@ -8011,6 +10917,7 @@ declare const router: {
|
|
|
8011
10917
|
publishPushRequestedAt: number | null;
|
|
8012
10918
|
liveScript: string | null;
|
|
8013
10919
|
codeOutsideCamox: boolean;
|
|
10920
|
+
experimentalFeatures: boolean;
|
|
8014
10921
|
updatedAt: number;
|
|
8015
10922
|
}>, Record<never, never>, Record<never, never>>;
|
|
8016
10923
|
checkSlugAvailability: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
@@ -8047,10 +10954,10 @@ declare const router: {
|
|
|
8047
10954
|
activeOrganizationId?: string | null | undefined;
|
|
8048
10955
|
studio?: boolean | null | undefined;
|
|
8049
10956
|
};
|
|
10957
|
+
client: string;
|
|
8050
10958
|
db: Database;
|
|
8051
10959
|
headers: Headers;
|
|
8052
10960
|
env: Bindings;
|
|
8053
|
-
client: string;
|
|
8054
10961
|
telemetryDisabled: boolean;
|
|
8055
10962
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
8056
10963
|
apiOrigin?: string | undefined;
|
|
@@ -8106,10 +11013,10 @@ declare const router: {
|
|
|
8106
11013
|
activeOrganizationId?: string | null | undefined;
|
|
8107
11014
|
studio?: boolean | null | undefined;
|
|
8108
11015
|
};
|
|
11016
|
+
client: string;
|
|
8109
11017
|
db: Database;
|
|
8110
11018
|
headers: Headers;
|
|
8111
11019
|
env: Bindings;
|
|
8112
|
-
client: string;
|
|
8113
11020
|
telemetryDisabled: boolean;
|
|
8114
11021
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
8115
11022
|
apiOrigin?: string | undefined;
|
|
@@ -8141,6 +11048,7 @@ declare const router: {
|
|
|
8141
11048
|
publishPushRequestedAt: number | null;
|
|
8142
11049
|
liveScript: string | null;
|
|
8143
11050
|
codeOutsideCamox: boolean;
|
|
11051
|
+
experimentalFeatures: boolean;
|
|
8144
11052
|
updatedAt: number;
|
|
8145
11053
|
}, {
|
|
8146
11054
|
name: string;
|
|
@@ -8163,6 +11071,7 @@ declare const router: {
|
|
|
8163
11071
|
publishPushRequestedAt: number | null;
|
|
8164
11072
|
liveScript: string | null;
|
|
8165
11073
|
codeOutsideCamox: boolean;
|
|
11074
|
+
experimentalFeatures: boolean;
|
|
8166
11075
|
updatedAt: number;
|
|
8167
11076
|
}>, Record<never, never>, Record<never, never>>;
|
|
8168
11077
|
update: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
@@ -8199,10 +11108,10 @@ declare const router: {
|
|
|
8199
11108
|
activeOrganizationId?: string | null | undefined;
|
|
8200
11109
|
studio?: boolean | null | undefined;
|
|
8201
11110
|
};
|
|
11111
|
+
client: string;
|
|
8202
11112
|
db: Database;
|
|
8203
11113
|
headers: Headers;
|
|
8204
11114
|
env: Bindings;
|
|
8205
|
-
client: string;
|
|
8206
11115
|
telemetryDisabled: boolean;
|
|
8207
11116
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
8208
11117
|
apiOrigin?: string | undefined;
|
|
@@ -8233,6 +11142,7 @@ declare const router: {
|
|
|
8233
11142
|
publishPushRequestedAt: number | null;
|
|
8234
11143
|
liveScript: string | null;
|
|
8235
11144
|
codeOutsideCamox: boolean;
|
|
11145
|
+
experimentalFeatures: boolean;
|
|
8236
11146
|
updatedAt: number;
|
|
8237
11147
|
}, {
|
|
8238
11148
|
name: string;
|
|
@@ -8255,6 +11165,7 @@ declare const router: {
|
|
|
8255
11165
|
publishPushRequestedAt: number | null;
|
|
8256
11166
|
liveScript: string | null;
|
|
8257
11167
|
codeOutsideCamox: boolean;
|
|
11168
|
+
experimentalFeatures: boolean;
|
|
8258
11169
|
updatedAt: number;
|
|
8259
11170
|
}>, Record<never, never>, Record<never, never>>;
|
|
8260
11171
|
updateAnalytics: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
@@ -8291,10 +11202,10 @@ declare const router: {
|
|
|
8291
11202
|
activeOrganizationId?: string | null | undefined;
|
|
8292
11203
|
studio?: boolean | null | undefined;
|
|
8293
11204
|
};
|
|
11205
|
+
client: string;
|
|
8294
11206
|
db: Database;
|
|
8295
11207
|
headers: Headers;
|
|
8296
11208
|
env: Bindings;
|
|
8297
|
-
client: string;
|
|
8298
11209
|
telemetryDisabled: boolean;
|
|
8299
11210
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
8300
11211
|
apiOrigin?: string | undefined;
|
|
@@ -8354,10 +11265,10 @@ declare const router: {
|
|
|
8354
11265
|
activeOrganizationId?: string | null | undefined;
|
|
8355
11266
|
studio?: boolean | null | undefined;
|
|
8356
11267
|
};
|
|
11268
|
+
client: string;
|
|
8357
11269
|
db: Database;
|
|
8358
11270
|
headers: Headers;
|
|
8359
11271
|
env: Bindings;
|
|
8360
|
-
client: string;
|
|
8361
11272
|
telemetryDisabled: boolean;
|
|
8362
11273
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
8363
11274
|
apiOrigin?: string | undefined;
|
|
@@ -8374,7 +11285,7 @@ declare const router: {
|
|
|
8374
11285
|
socialProfiles: string[];
|
|
8375
11286
|
updatedAt: number;
|
|
8376
11287
|
}>, Record<never, never>, Record<never, never>>;
|
|
8377
|
-
|
|
11288
|
+
updateExperimentalFeatures: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
8378
11289
|
draft: DraftRequest | null;
|
|
8379
11290
|
locale: string | undefined;
|
|
8380
11291
|
publishingDraft: string | undefined;
|
|
@@ -8408,10 +11319,64 @@ declare const router: {
|
|
|
8408
11319
|
activeOrganizationId?: string | null | undefined;
|
|
8409
11320
|
studio?: boolean | null | undefined;
|
|
8410
11321
|
};
|
|
11322
|
+
client: string;
|
|
8411
11323
|
db: Database;
|
|
8412
11324
|
headers: Headers;
|
|
8413
11325
|
env: Bindings;
|
|
11326
|
+
telemetryDisabled: boolean;
|
|
11327
|
+
waitUntil: (promise: Promise<unknown>) => void;
|
|
11328
|
+
apiOrigin?: string | undefined;
|
|
11329
|
+
draft: DraftRequest | null;
|
|
11330
|
+
locale: string | undefined;
|
|
11331
|
+
publishingDraft: string | undefined;
|
|
11332
|
+
}>, import("zod").ZodObject<{
|
|
11333
|
+
id: import("zod").ZodNumber;
|
|
11334
|
+
experimentalFeatures: import("zod").ZodBoolean;
|
|
11335
|
+
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
|
|
11336
|
+
experimentalFeatures: boolean;
|
|
11337
|
+
updatedAt: number;
|
|
11338
|
+
}, {
|
|
11339
|
+
experimentalFeatures: boolean;
|
|
11340
|
+
updatedAt: number;
|
|
11341
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
11342
|
+
createCodeReadToken: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
11343
|
+
draft: DraftRequest | null;
|
|
11344
|
+
locale: string | undefined;
|
|
11345
|
+
publishingDraft: string | undefined;
|
|
11346
|
+
}>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
11347
|
+
draft: DraftRequest | null;
|
|
11348
|
+
locale: string | undefined;
|
|
11349
|
+
publishingDraft: string | undefined;
|
|
11350
|
+
}>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
11351
|
+
draft: DraftRequest | null;
|
|
11352
|
+
locale: string | undefined;
|
|
11353
|
+
publishingDraft: string | undefined;
|
|
11354
|
+
}>, {
|
|
11355
|
+
user: {
|
|
11356
|
+
id: string;
|
|
11357
|
+
createdAt: Date;
|
|
11358
|
+
updatedAt: Date;
|
|
11359
|
+
email: string;
|
|
11360
|
+
emailVerified: boolean;
|
|
11361
|
+
name: string;
|
|
11362
|
+
image?: string | null | undefined;
|
|
11363
|
+
};
|
|
11364
|
+
session: {
|
|
11365
|
+
id: string;
|
|
11366
|
+
createdAt: Date;
|
|
11367
|
+
updatedAt: Date;
|
|
11368
|
+
userId: string;
|
|
11369
|
+
expiresAt: Date;
|
|
11370
|
+
token: string;
|
|
11371
|
+
ipAddress?: string | null | undefined;
|
|
11372
|
+
userAgent?: string | null | undefined;
|
|
11373
|
+
activeOrganizationId?: string | null | undefined;
|
|
11374
|
+
studio?: boolean | null | undefined;
|
|
11375
|
+
};
|
|
8414
11376
|
client: string;
|
|
11377
|
+
db: Database;
|
|
11378
|
+
headers: Headers;
|
|
11379
|
+
env: Bindings;
|
|
8415
11380
|
telemetryDisabled: boolean;
|
|
8416
11381
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
8417
11382
|
apiOrigin?: string | undefined;
|
|
@@ -8465,10 +11430,10 @@ declare const router: {
|
|
|
8465
11430
|
activeOrganizationId?: string | null | undefined;
|
|
8466
11431
|
studio?: boolean | null | undefined;
|
|
8467
11432
|
};
|
|
11433
|
+
client: string;
|
|
8468
11434
|
db: Database;
|
|
8469
11435
|
headers: Headers;
|
|
8470
11436
|
env: Bindings;
|
|
8471
|
-
client: string;
|
|
8472
11437
|
telemetryDisabled: boolean;
|
|
8473
11438
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
8474
11439
|
apiOrigin?: string | undefined;
|
|
@@ -8498,6 +11463,7 @@ declare const router: {
|
|
|
8498
11463
|
publishPushRequestedAt: number | null;
|
|
8499
11464
|
liveScript: string | null;
|
|
8500
11465
|
codeOutsideCamox: boolean;
|
|
11466
|
+
experimentalFeatures: boolean;
|
|
8501
11467
|
updatedAt: number;
|
|
8502
11468
|
} | undefined, {
|
|
8503
11469
|
name: string;
|
|
@@ -8520,6 +11486,7 @@ declare const router: {
|
|
|
8520
11486
|
publishPushRequestedAt: number | null;
|
|
8521
11487
|
liveScript: string | null;
|
|
8522
11488
|
codeOutsideCamox: boolean;
|
|
11489
|
+
experimentalFeatures: boolean;
|
|
8523
11490
|
updatedAt: number;
|
|
8524
11491
|
} | undefined>, Record<never, never>, Record<never, never>>;
|
|
8525
11492
|
};
|
|
@@ -8575,6 +11542,7 @@ declare const router: {
|
|
|
8575
11542
|
afterBlockIds: string[];
|
|
8576
11543
|
} | null;
|
|
8577
11544
|
blocks: (Omit<{
|
|
11545
|
+
type: string;
|
|
8578
11546
|
draftId: string | null;
|
|
8579
11547
|
id: string;
|
|
8580
11548
|
deleted: boolean;
|
|
@@ -8582,7 +11550,6 @@ declare const router: {
|
|
|
8582
11550
|
locale: string;
|
|
8583
11551
|
pageId: string | null;
|
|
8584
11552
|
layoutId: string | null;
|
|
8585
|
-
type: string;
|
|
8586
11553
|
content: unknown;
|
|
8587
11554
|
createdAt: number;
|
|
8588
11555
|
updatedAt: number;
|
|
@@ -8682,6 +11649,7 @@ declare const router: {
|
|
|
8682
11649
|
afterBlockIds: string[];
|
|
8683
11650
|
} | null;
|
|
8684
11651
|
blocks: (Omit<{
|
|
11652
|
+
type: string;
|
|
8685
11653
|
draftId: string | null;
|
|
8686
11654
|
id: string;
|
|
8687
11655
|
deleted: boolean;
|
|
@@ -8689,7 +11657,6 @@ declare const router: {
|
|
|
8689
11657
|
locale: string;
|
|
8690
11658
|
pageId: string | null;
|
|
8691
11659
|
layoutId: string | null;
|
|
8692
|
-
type: string;
|
|
8693
11660
|
content: unknown;
|
|
8694
11661
|
createdAt: number;
|
|
8695
11662
|
updatedAt: number;
|
|
@@ -9168,10 +12135,10 @@ declare const router: {
|
|
|
9168
12135
|
activeOrganizationId?: string | null | undefined;
|
|
9169
12136
|
studio?: boolean | null | undefined;
|
|
9170
12137
|
};
|
|
12138
|
+
client: string;
|
|
9171
12139
|
db: Database;
|
|
9172
12140
|
headers: Headers;
|
|
9173
12141
|
env: Bindings;
|
|
9174
|
-
client: string;
|
|
9175
12142
|
telemetryDisabled: boolean;
|
|
9176
12143
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
9177
12144
|
apiOrigin?: string | undefined;
|
|
@@ -9204,10 +12171,10 @@ declare const router: {
|
|
|
9204
12171
|
activeOrganizationId?: string | null | undefined;
|
|
9205
12172
|
studio?: boolean | null | undefined;
|
|
9206
12173
|
};
|
|
12174
|
+
client: string;
|
|
9207
12175
|
db: Database;
|
|
9208
12176
|
headers: Headers;
|
|
9209
12177
|
env: Bindings;
|
|
9210
|
-
client: string;
|
|
9211
12178
|
telemetryDisabled: boolean;
|
|
9212
12179
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
9213
12180
|
apiOrigin?: string | undefined;
|
|
@@ -9314,10 +12281,10 @@ declare const router: {
|
|
|
9314
12281
|
activeOrganizationId?: string | null | undefined;
|
|
9315
12282
|
studio?: boolean | null | undefined;
|
|
9316
12283
|
};
|
|
12284
|
+
client: string;
|
|
9317
12285
|
db: Database;
|
|
9318
12286
|
headers: Headers;
|
|
9319
12287
|
env: Bindings;
|
|
9320
|
-
client: string;
|
|
9321
12288
|
telemetryDisabled: boolean;
|
|
9322
12289
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
9323
12290
|
apiOrigin?: string | undefined;
|
|
@@ -9350,10 +12317,10 @@ declare const router: {
|
|
|
9350
12317
|
activeOrganizationId?: string | null | undefined;
|
|
9351
12318
|
studio?: boolean | null | undefined;
|
|
9352
12319
|
};
|
|
12320
|
+
client: string;
|
|
9353
12321
|
db: Database;
|
|
9354
12322
|
headers: Headers;
|
|
9355
12323
|
env: Bindings;
|
|
9356
|
-
client: string;
|
|
9357
12324
|
telemetryDisabled: boolean;
|
|
9358
12325
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
9359
12326
|
apiOrigin?: string | undefined;
|
|
@@ -9452,10 +12419,10 @@ declare const router: {
|
|
|
9452
12419
|
activeOrganizationId?: string | null | undefined;
|
|
9453
12420
|
studio?: boolean | null | undefined;
|
|
9454
12421
|
};
|
|
12422
|
+
client: string;
|
|
9455
12423
|
db: Database;
|
|
9456
12424
|
headers: Headers;
|
|
9457
12425
|
env: Bindings;
|
|
9458
|
-
client: string;
|
|
9459
12426
|
telemetryDisabled: boolean;
|
|
9460
12427
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
9461
12428
|
apiOrigin?: string | undefined;
|
|
@@ -9488,10 +12455,10 @@ declare const router: {
|
|
|
9488
12455
|
activeOrganizationId?: string | null | undefined;
|
|
9489
12456
|
studio?: boolean | null | undefined;
|
|
9490
12457
|
};
|
|
12458
|
+
client: string;
|
|
9491
12459
|
db: Database;
|
|
9492
12460
|
headers: Headers;
|
|
9493
12461
|
env: Bindings;
|
|
9494
|
-
client: string;
|
|
9495
12462
|
telemetryDisabled: boolean;
|
|
9496
12463
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
9497
12464
|
apiOrigin?: string | undefined;
|
|
@@ -9587,10 +12554,10 @@ declare const router: {
|
|
|
9587
12554
|
activeOrganizationId?: string | null | undefined;
|
|
9588
12555
|
studio?: boolean | null | undefined;
|
|
9589
12556
|
};
|
|
12557
|
+
client: string;
|
|
9590
12558
|
db: Database;
|
|
9591
12559
|
headers: Headers;
|
|
9592
12560
|
env: Bindings;
|
|
9593
|
-
client: string;
|
|
9594
12561
|
telemetryDisabled: boolean;
|
|
9595
12562
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
9596
12563
|
apiOrigin?: string | undefined;
|
|
@@ -9623,10 +12590,10 @@ declare const router: {
|
|
|
9623
12590
|
activeOrganizationId?: string | null | undefined;
|
|
9624
12591
|
studio?: boolean | null | undefined;
|
|
9625
12592
|
};
|
|
12593
|
+
client: string;
|
|
9626
12594
|
db: Database;
|
|
9627
12595
|
headers: Headers;
|
|
9628
12596
|
env: Bindings;
|
|
9629
|
-
client: string;
|
|
9630
12597
|
telemetryDisabled: boolean;
|
|
9631
12598
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
9632
12599
|
apiOrigin?: string | undefined;
|
|
@@ -9725,10 +12692,10 @@ declare const router: {
|
|
|
9725
12692
|
activeOrganizationId?: string | null | undefined;
|
|
9726
12693
|
studio?: boolean | null | undefined;
|
|
9727
12694
|
};
|
|
12695
|
+
client: string;
|
|
9728
12696
|
db: Database;
|
|
9729
12697
|
headers: Headers;
|
|
9730
12698
|
env: Bindings;
|
|
9731
|
-
client: string;
|
|
9732
12699
|
telemetryDisabled: boolean;
|
|
9733
12700
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
9734
12701
|
apiOrigin?: string | undefined;
|
|
@@ -9761,10 +12728,10 @@ declare const router: {
|
|
|
9761
12728
|
activeOrganizationId?: string | null | undefined;
|
|
9762
12729
|
studio?: boolean | null | undefined;
|
|
9763
12730
|
};
|
|
12731
|
+
client: string;
|
|
9764
12732
|
db: Database;
|
|
9765
12733
|
headers: Headers;
|
|
9766
12734
|
env: Bindings;
|
|
9767
|
-
client: string;
|
|
9768
12735
|
telemetryDisabled: boolean;
|
|
9769
12736
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
9770
12737
|
apiOrigin?: string | undefined;
|
|
@@ -9859,10 +12826,10 @@ declare const router: {
|
|
|
9859
12826
|
activeOrganizationId?: string | null | undefined;
|
|
9860
12827
|
studio?: boolean | null | undefined;
|
|
9861
12828
|
};
|
|
12829
|
+
client: string;
|
|
9862
12830
|
db: Database;
|
|
9863
12831
|
headers: Headers;
|
|
9864
12832
|
env: Bindings;
|
|
9865
|
-
client: string;
|
|
9866
12833
|
telemetryDisabled: boolean;
|
|
9867
12834
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
9868
12835
|
apiOrigin?: string | undefined;
|
|
@@ -9932,6 +12899,7 @@ declare const router: {
|
|
|
9932
12899
|
id: import("zod").ZodUUID;
|
|
9933
12900
|
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
|
|
9934
12901
|
block: Omit<{
|
|
12902
|
+
type: string;
|
|
9935
12903
|
draftId: string | null;
|
|
9936
12904
|
id: string;
|
|
9937
12905
|
deleted: boolean;
|
|
@@ -9939,7 +12907,6 @@ declare const router: {
|
|
|
9939
12907
|
locale: string;
|
|
9940
12908
|
pageId: string | null;
|
|
9941
12909
|
layoutId: string | null;
|
|
9942
|
-
type: string;
|
|
9943
12910
|
content: unknown;
|
|
9944
12911
|
createdAt: number;
|
|
9945
12912
|
updatedAt: number;
|
|
@@ -9995,6 +12962,7 @@ declare const router: {
|
|
|
9995
12962
|
files: FileView[];
|
|
9996
12963
|
}, {
|
|
9997
12964
|
block: Omit<{
|
|
12965
|
+
type: string;
|
|
9998
12966
|
draftId: string | null;
|
|
9999
12967
|
id: string;
|
|
10000
12968
|
deleted: boolean;
|
|
@@ -10002,7 +12970,6 @@ declare const router: {
|
|
|
10002
12970
|
locale: string;
|
|
10003
12971
|
pageId: string | null;
|
|
10004
12972
|
layoutId: string | null;
|
|
10005
|
-
type: string;
|
|
10006
12973
|
content: unknown;
|
|
10007
12974
|
createdAt: number;
|
|
10008
12975
|
updatedAt: number;
|
|
@@ -10132,6 +13099,7 @@ declare const router: {
|
|
|
10132
13099
|
type: import("zod").ZodString;
|
|
10133
13100
|
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
|
|
10134
13101
|
block: Omit<{
|
|
13102
|
+
type: string;
|
|
10135
13103
|
draftId: string | null;
|
|
10136
13104
|
id: string;
|
|
10137
13105
|
deleted: boolean;
|
|
@@ -10139,7 +13107,6 @@ declare const router: {
|
|
|
10139
13107
|
locale: string;
|
|
10140
13108
|
pageId: string | null;
|
|
10141
13109
|
layoutId: string | null;
|
|
10142
|
-
type: string;
|
|
10143
13110
|
content: unknown;
|
|
10144
13111
|
createdAt: number;
|
|
10145
13112
|
updatedAt: number;
|
|
@@ -10195,6 +13162,7 @@ declare const router: {
|
|
|
10195
13162
|
files: FileView[];
|
|
10196
13163
|
} | null, {
|
|
10197
13164
|
block: Omit<{
|
|
13165
|
+
type: string;
|
|
10198
13166
|
draftId: string | null;
|
|
10199
13167
|
id: string;
|
|
10200
13168
|
deleted: boolean;
|
|
@@ -10202,7 +13170,6 @@ declare const router: {
|
|
|
10202
13170
|
locale: string;
|
|
10203
13171
|
pageId: string | null;
|
|
10204
13172
|
layoutId: string | null;
|
|
10205
|
-
type: string;
|
|
10206
13173
|
content: unknown;
|
|
10207
13174
|
createdAt: number;
|
|
10208
13175
|
updatedAt: number;
|
|
@@ -10293,10 +13260,10 @@ declare const router: {
|
|
|
10293
13260
|
activeOrganizationId?: string | null | undefined;
|
|
10294
13261
|
studio?: boolean | null | undefined;
|
|
10295
13262
|
};
|
|
13263
|
+
client: string;
|
|
10296
13264
|
db: Database;
|
|
10297
13265
|
headers: Headers;
|
|
10298
13266
|
env: Bindings;
|
|
10299
|
-
client: string;
|
|
10300
13267
|
telemetryDisabled: boolean;
|
|
10301
13268
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
10302
13269
|
apiOrigin?: string | undefined;
|
|
@@ -10329,10 +13296,10 @@ declare const router: {
|
|
|
10329
13296
|
activeOrganizationId?: string | null | undefined;
|
|
10330
13297
|
studio?: boolean | null | undefined;
|
|
10331
13298
|
};
|
|
13299
|
+
client: string;
|
|
10332
13300
|
db: Database;
|
|
10333
13301
|
headers: Headers;
|
|
10334
13302
|
env: Bindings;
|
|
10335
|
-
client: string;
|
|
10336
13303
|
telemetryDisabled: boolean;
|
|
10337
13304
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
10338
13305
|
apiOrigin?: string | undefined;
|
|
@@ -10356,6 +13323,7 @@ declare const router: {
|
|
|
10356
13323
|
position: import("zod").ZodString;
|
|
10357
13324
|
}, import("zod/v4/core").$strip>>>;
|
|
10358
13325
|
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<Omit<{
|
|
13326
|
+
type: string;
|
|
10359
13327
|
draftId: string | null;
|
|
10360
13328
|
id: string;
|
|
10361
13329
|
deleted: boolean;
|
|
@@ -10363,7 +13331,6 @@ declare const router: {
|
|
|
10363
13331
|
locale: string;
|
|
10364
13332
|
pageId: string | null;
|
|
10365
13333
|
layoutId: string | null;
|
|
10366
|
-
type: string;
|
|
10367
13334
|
content: unknown;
|
|
10368
13335
|
createdAt: number;
|
|
10369
13336
|
updatedAt: number;
|
|
@@ -10385,6 +13352,7 @@ declare const router: {
|
|
|
10385
13352
|
} & {
|
|
10386
13353
|
warnings?: string[];
|
|
10387
13354
|
}, Omit<{
|
|
13355
|
+
type: string;
|
|
10388
13356
|
draftId: string | null;
|
|
10389
13357
|
id: string;
|
|
10390
13358
|
deleted: boolean;
|
|
@@ -10392,7 +13360,6 @@ declare const router: {
|
|
|
10392
13360
|
locale: string;
|
|
10393
13361
|
pageId: string | null;
|
|
10394
13362
|
layoutId: string | null;
|
|
10395
|
-
type: string;
|
|
10396
13363
|
content: unknown;
|
|
10397
13364
|
createdAt: number;
|
|
10398
13365
|
updatedAt: number;
|
|
@@ -10450,10 +13417,10 @@ declare const router: {
|
|
|
10450
13417
|
activeOrganizationId?: string | null | undefined;
|
|
10451
13418
|
studio?: boolean | null | undefined;
|
|
10452
13419
|
};
|
|
13420
|
+
client: string;
|
|
10453
13421
|
db: Database;
|
|
10454
13422
|
headers: Headers;
|
|
10455
13423
|
env: Bindings;
|
|
10456
|
-
client: string;
|
|
10457
13424
|
telemetryDisabled: boolean;
|
|
10458
13425
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
10459
13426
|
apiOrigin?: string | undefined;
|
|
@@ -10486,10 +13453,10 @@ declare const router: {
|
|
|
10486
13453
|
activeOrganizationId?: string | null | undefined;
|
|
10487
13454
|
studio?: boolean | null | undefined;
|
|
10488
13455
|
};
|
|
13456
|
+
client: string;
|
|
10489
13457
|
db: Database;
|
|
10490
13458
|
headers: Headers;
|
|
10491
13459
|
env: Bindings;
|
|
10492
|
-
client: string;
|
|
10493
13460
|
telemetryDisabled: boolean;
|
|
10494
13461
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
10495
13462
|
apiOrigin?: string | undefined;
|
|
@@ -10536,10 +13503,10 @@ declare const router: {
|
|
|
10536
13503
|
activeOrganizationId?: string | null | undefined;
|
|
10537
13504
|
studio?: boolean | null | undefined;
|
|
10538
13505
|
};
|
|
13506
|
+
client: string;
|
|
10539
13507
|
db: Database;
|
|
10540
13508
|
headers: Headers;
|
|
10541
13509
|
env: Bindings;
|
|
10542
|
-
client: string;
|
|
10543
13510
|
telemetryDisabled: boolean;
|
|
10544
13511
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
10545
13512
|
apiOrigin?: string | undefined;
|
|
@@ -10572,10 +13539,10 @@ declare const router: {
|
|
|
10572
13539
|
activeOrganizationId?: string | null | undefined;
|
|
10573
13540
|
studio?: boolean | null | undefined;
|
|
10574
13541
|
};
|
|
13542
|
+
client: string;
|
|
10575
13543
|
db: Database;
|
|
10576
13544
|
headers: Headers;
|
|
10577
13545
|
env: Bindings;
|
|
10578
|
-
client: string;
|
|
10579
13546
|
telemetryDisabled: boolean;
|
|
10580
13547
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
10581
13548
|
apiOrigin?: string | undefined;
|
|
@@ -10622,10 +13589,10 @@ declare const router: {
|
|
|
10622
13589
|
activeOrganizationId?: string | null | undefined;
|
|
10623
13590
|
studio?: boolean | null | undefined;
|
|
10624
13591
|
};
|
|
13592
|
+
client: string;
|
|
10625
13593
|
db: Database;
|
|
10626
13594
|
headers: Headers;
|
|
10627
13595
|
env: Bindings;
|
|
10628
|
-
client: string;
|
|
10629
13596
|
telemetryDisabled: boolean;
|
|
10630
13597
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
10631
13598
|
apiOrigin?: string | undefined;
|
|
@@ -10658,10 +13625,10 @@ declare const router: {
|
|
|
10658
13625
|
activeOrganizationId?: string | null | undefined;
|
|
10659
13626
|
studio?: boolean | null | undefined;
|
|
10660
13627
|
};
|
|
13628
|
+
client: string;
|
|
10661
13629
|
db: Database;
|
|
10662
13630
|
headers: Headers;
|
|
10663
13631
|
env: Bindings;
|
|
10664
|
-
client: string;
|
|
10665
13632
|
telemetryDisabled: boolean;
|
|
10666
13633
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
10667
13634
|
apiOrigin?: string | undefined;
|
|
@@ -10709,10 +13676,10 @@ declare const router: {
|
|
|
10709
13676
|
activeOrganizationId?: string | null | undefined;
|
|
10710
13677
|
studio?: boolean | null | undefined;
|
|
10711
13678
|
};
|
|
13679
|
+
client: string;
|
|
10712
13680
|
db: Database;
|
|
10713
13681
|
headers: Headers;
|
|
10714
13682
|
env: Bindings;
|
|
10715
|
-
client: string;
|
|
10716
13683
|
telemetryDisabled: boolean;
|
|
10717
13684
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
10718
13685
|
apiOrigin?: string | undefined;
|
|
@@ -10745,10 +13712,10 @@ declare const router: {
|
|
|
10745
13712
|
activeOrganizationId?: string | null | undefined;
|
|
10746
13713
|
studio?: boolean | null | undefined;
|
|
10747
13714
|
};
|
|
13715
|
+
client: string;
|
|
10748
13716
|
db: Database;
|
|
10749
13717
|
headers: Headers;
|
|
10750
13718
|
env: Bindings;
|
|
10751
|
-
client: string;
|
|
10752
13719
|
telemetryDisabled: boolean;
|
|
10753
13720
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
10754
13721
|
apiOrigin?: string | undefined;
|
|
@@ -10794,10 +13761,10 @@ declare const router: {
|
|
|
10794
13761
|
activeOrganizationId?: string | null | undefined;
|
|
10795
13762
|
studio?: boolean | null | undefined;
|
|
10796
13763
|
};
|
|
13764
|
+
client: string;
|
|
10797
13765
|
db: Database;
|
|
10798
13766
|
headers: Headers;
|
|
10799
13767
|
env: Bindings;
|
|
10800
|
-
client: string;
|
|
10801
13768
|
telemetryDisabled: boolean;
|
|
10802
13769
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
10803
13770
|
apiOrigin?: string | undefined;
|
|
@@ -10830,10 +13797,10 @@ declare const router: {
|
|
|
10830
13797
|
activeOrganizationId?: string | null | undefined;
|
|
10831
13798
|
studio?: boolean | null | undefined;
|
|
10832
13799
|
};
|
|
13800
|
+
client: string;
|
|
10833
13801
|
db: Database;
|
|
10834
13802
|
headers: Headers;
|
|
10835
13803
|
env: Bindings;
|
|
10836
|
-
client: string;
|
|
10837
13804
|
telemetryDisabled: boolean;
|
|
10838
13805
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
10839
13806
|
apiOrigin?: string | undefined;
|
|
@@ -10877,10 +13844,10 @@ declare const router: {
|
|
|
10877
13844
|
activeOrganizationId?: string | null | undefined;
|
|
10878
13845
|
studio?: boolean | null | undefined;
|
|
10879
13846
|
};
|
|
13847
|
+
client: string;
|
|
10880
13848
|
db: Database;
|
|
10881
13849
|
headers: Headers;
|
|
10882
13850
|
env: Bindings;
|
|
10883
|
-
client: string;
|
|
10884
13851
|
telemetryDisabled: boolean;
|
|
10885
13852
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
10886
13853
|
apiOrigin?: string | undefined;
|
|
@@ -10926,10 +13893,10 @@ declare const router: {
|
|
|
10926
13893
|
activeOrganizationId?: string | null | undefined;
|
|
10927
13894
|
studio?: boolean | null | undefined;
|
|
10928
13895
|
};
|
|
13896
|
+
client: string;
|
|
10929
13897
|
db: Database;
|
|
10930
13898
|
headers: Headers;
|
|
10931
13899
|
env: Bindings;
|
|
10932
|
-
client: string;
|
|
10933
13900
|
telemetryDisabled: boolean;
|
|
10934
13901
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
10935
13902
|
apiOrigin?: string | undefined;
|
|
@@ -10962,10 +13929,10 @@ declare const router: {
|
|
|
10962
13929
|
activeOrganizationId?: string | null | undefined;
|
|
10963
13930
|
studio?: boolean | null | undefined;
|
|
10964
13931
|
};
|
|
13932
|
+
client: string;
|
|
10965
13933
|
db: Database;
|
|
10966
13934
|
headers: Headers;
|
|
10967
13935
|
env: Bindings;
|
|
10968
|
-
client: string;
|
|
10969
13936
|
telemetryDisabled: boolean;
|
|
10970
13937
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
10971
13938
|
apiOrigin?: string | undefined;
|
|
@@ -11000,6 +13967,7 @@ declare const router: {
|
|
|
11000
13967
|
afterBlockIds: string[];
|
|
11001
13968
|
};
|
|
11002
13969
|
blocks: (Omit<{
|
|
13970
|
+
type: string;
|
|
11003
13971
|
draftId: string | null;
|
|
11004
13972
|
id: string;
|
|
11005
13973
|
deleted: boolean;
|
|
@@ -11007,7 +13975,6 @@ declare const router: {
|
|
|
11007
13975
|
locale: string;
|
|
11008
13976
|
pageId: string | null;
|
|
11009
13977
|
layoutId: string | null;
|
|
11010
|
-
type: string;
|
|
11011
13978
|
content: unknown;
|
|
11012
13979
|
createdAt: number;
|
|
11013
13980
|
updatedAt: number;
|
|
@@ -11079,6 +14046,7 @@ declare const router: {
|
|
|
11079
14046
|
afterBlockIds: string[];
|
|
11080
14047
|
};
|
|
11081
14048
|
blocks: (Omit<{
|
|
14049
|
+
type: string;
|
|
11082
14050
|
draftId: string | null;
|
|
11083
14051
|
id: string;
|
|
11084
14052
|
deleted: boolean;
|
|
@@ -11086,7 +14054,6 @@ declare const router: {
|
|
|
11086
14054
|
locale: string;
|
|
11087
14055
|
pageId: string | null;
|
|
11088
14056
|
layoutId: string | null;
|
|
11089
|
-
type: string;
|
|
11090
14057
|
content: unknown;
|
|
11091
14058
|
createdAt: number;
|
|
11092
14059
|
updatedAt: number;
|
|
@@ -11223,10 +14190,10 @@ declare const router: {
|
|
|
11223
14190
|
activeOrganizationId?: string | null | undefined;
|
|
11224
14191
|
studio?: boolean | null | undefined;
|
|
11225
14192
|
};
|
|
14193
|
+
client: string;
|
|
11226
14194
|
db: Database;
|
|
11227
14195
|
headers: Headers;
|
|
11228
14196
|
env: Bindings;
|
|
11229
|
-
client: string;
|
|
11230
14197
|
telemetryDisabled: boolean;
|
|
11231
14198
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
11232
14199
|
apiOrigin?: string | undefined;
|
|
@@ -11259,10 +14226,10 @@ declare const router: {
|
|
|
11259
14226
|
activeOrganizationId?: string | null | undefined;
|
|
11260
14227
|
studio?: boolean | null | undefined;
|
|
11261
14228
|
};
|
|
14229
|
+
client: string;
|
|
11262
14230
|
db: Database;
|
|
11263
14231
|
headers: Headers;
|
|
11264
14232
|
env: Bindings;
|
|
11265
|
-
client: string;
|
|
11266
14233
|
telemetryDisabled: boolean;
|
|
11267
14234
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
11268
14235
|
apiOrigin?: string | undefined;
|
|
@@ -11309,10 +14276,10 @@ declare const router: {
|
|
|
11309
14276
|
activeOrganizationId?: string | null | undefined;
|
|
11310
14277
|
studio?: boolean | null | undefined;
|
|
11311
14278
|
};
|
|
14279
|
+
client: string;
|
|
11312
14280
|
db: Database;
|
|
11313
14281
|
headers: Headers;
|
|
11314
14282
|
env: Bindings;
|
|
11315
|
-
client: string;
|
|
11316
14283
|
telemetryDisabled: boolean;
|
|
11317
14284
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
11318
14285
|
apiOrigin?: string | undefined;
|
|
@@ -11345,10 +14312,10 @@ declare const router: {
|
|
|
11345
14312
|
activeOrganizationId?: string | null | undefined;
|
|
11346
14313
|
studio?: boolean | null | undefined;
|
|
11347
14314
|
};
|
|
14315
|
+
client: string;
|
|
11348
14316
|
db: Database;
|
|
11349
14317
|
headers: Headers;
|
|
11350
14318
|
env: Bindings;
|
|
11351
|
-
client: string;
|
|
11352
14319
|
telemetryDisabled: boolean;
|
|
11353
14320
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
11354
14321
|
apiOrigin?: string | undefined;
|
|
@@ -11393,10 +14360,10 @@ declare const router: {
|
|
|
11393
14360
|
activeOrganizationId?: string | null | undefined;
|
|
11394
14361
|
studio?: boolean | null | undefined;
|
|
11395
14362
|
};
|
|
14363
|
+
client: string;
|
|
11396
14364
|
db: Database;
|
|
11397
14365
|
headers: Headers;
|
|
11398
14366
|
env: Bindings;
|
|
11399
|
-
client: string;
|
|
11400
14367
|
telemetryDisabled: boolean;
|
|
11401
14368
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
11402
14369
|
apiOrigin?: string | undefined;
|
|
@@ -11441,10 +14408,10 @@ declare const router: {
|
|
|
11441
14408
|
activeOrganizationId?: string | null | undefined;
|
|
11442
14409
|
studio?: boolean | null | undefined;
|
|
11443
14410
|
};
|
|
14411
|
+
client: string;
|
|
11444
14412
|
db: Database;
|
|
11445
14413
|
headers: Headers;
|
|
11446
14414
|
env: Bindings;
|
|
11447
|
-
client: string;
|
|
11448
14415
|
telemetryDisabled: boolean;
|
|
11449
14416
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
11450
14417
|
apiOrigin?: string | undefined;
|
|
@@ -11496,10 +14463,10 @@ declare const router: {
|
|
|
11496
14463
|
activeOrganizationId?: string | null | undefined;
|
|
11497
14464
|
studio?: boolean | null | undefined;
|
|
11498
14465
|
};
|
|
14466
|
+
client: string;
|
|
11499
14467
|
db: Database;
|
|
11500
14468
|
headers: Headers;
|
|
11501
14469
|
env: Bindings;
|
|
11502
|
-
client: string;
|
|
11503
14470
|
telemetryDisabled: boolean;
|
|
11504
14471
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
11505
14472
|
apiOrigin?: string | undefined;
|
|
@@ -11532,10 +14499,10 @@ declare const router: {
|
|
|
11532
14499
|
activeOrganizationId?: string | null | undefined;
|
|
11533
14500
|
studio?: boolean | null | undefined;
|
|
11534
14501
|
};
|
|
14502
|
+
client: string;
|
|
11535
14503
|
db: Database;
|
|
11536
14504
|
headers: Headers;
|
|
11537
14505
|
env: Bindings;
|
|
11538
|
-
client: string;
|
|
11539
14506
|
telemetryDisabled: boolean;
|
|
11540
14507
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
11541
14508
|
apiOrigin?: string | undefined;
|
|
@@ -11715,10 +14682,10 @@ declare const router: {
|
|
|
11715
14682
|
activeOrganizationId?: string | null | undefined;
|
|
11716
14683
|
studio?: boolean | null | undefined;
|
|
11717
14684
|
};
|
|
14685
|
+
client: string;
|
|
11718
14686
|
db: Database;
|
|
11719
14687
|
headers: Headers;
|
|
11720
14688
|
env: Bindings;
|
|
11721
|
-
client: string;
|
|
11722
14689
|
telemetryDisabled: boolean;
|
|
11723
14690
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
11724
14691
|
apiOrigin?: string | undefined;
|
|
@@ -11751,10 +14718,10 @@ declare const router: {
|
|
|
11751
14718
|
activeOrganizationId?: string | null | undefined;
|
|
11752
14719
|
studio?: boolean | null | undefined;
|
|
11753
14720
|
};
|
|
14721
|
+
client: string;
|
|
11754
14722
|
db: Database;
|
|
11755
14723
|
headers: Headers;
|
|
11756
14724
|
env: Bindings;
|
|
11757
|
-
client: string;
|
|
11758
14725
|
telemetryDisabled: boolean;
|
|
11759
14726
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
11760
14727
|
apiOrigin?: string | undefined;
|
|
@@ -11849,10 +14816,10 @@ declare const router: {
|
|
|
11849
14816
|
activeOrganizationId?: string | null | undefined;
|
|
11850
14817
|
studio?: boolean | null | undefined;
|
|
11851
14818
|
};
|
|
14819
|
+
client: string;
|
|
11852
14820
|
db: Database;
|
|
11853
14821
|
headers: Headers;
|
|
11854
14822
|
env: Bindings;
|
|
11855
|
-
client: string;
|
|
11856
14823
|
telemetryDisabled: boolean;
|
|
11857
14824
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
11858
14825
|
apiOrigin?: string | undefined;
|
|
@@ -11885,10 +14852,10 @@ declare const router: {
|
|
|
11885
14852
|
activeOrganizationId?: string | null | undefined;
|
|
11886
14853
|
studio?: boolean | null | undefined;
|
|
11887
14854
|
};
|
|
14855
|
+
client: string;
|
|
11888
14856
|
db: Database;
|
|
11889
14857
|
headers: Headers;
|
|
11890
14858
|
env: Bindings;
|
|
11891
|
-
client: string;
|
|
11892
14859
|
telemetryDisabled: boolean;
|
|
11893
14860
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
11894
14861
|
apiOrigin?: string | undefined;
|
|
@@ -11983,10 +14950,10 @@ declare const router: {
|
|
|
11983
14950
|
activeOrganizationId?: string | null | undefined;
|
|
11984
14951
|
studio?: boolean | null | undefined;
|
|
11985
14952
|
};
|
|
14953
|
+
client: string;
|
|
11986
14954
|
db: Database;
|
|
11987
14955
|
headers: Headers;
|
|
11988
14956
|
env: Bindings;
|
|
11989
|
-
client: string;
|
|
11990
14957
|
telemetryDisabled: boolean;
|
|
11991
14958
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
11992
14959
|
apiOrigin?: string | undefined;
|
|
@@ -12019,10 +14986,10 @@ declare const router: {
|
|
|
12019
14986
|
activeOrganizationId?: string | null | undefined;
|
|
12020
14987
|
studio?: boolean | null | undefined;
|
|
12021
14988
|
};
|
|
14989
|
+
client: string;
|
|
12022
14990
|
db: Database;
|
|
12023
14991
|
headers: Headers;
|
|
12024
14992
|
env: Bindings;
|
|
12025
|
-
client: string;
|
|
12026
14993
|
telemetryDisabled: boolean;
|
|
12027
14994
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
12028
14995
|
apiOrigin?: string | undefined;
|
|
@@ -12116,10 +15083,10 @@ declare const router: {
|
|
|
12116
15083
|
activeOrganizationId?: string | null | undefined;
|
|
12117
15084
|
studio?: boolean | null | undefined;
|
|
12118
15085
|
};
|
|
15086
|
+
client: string;
|
|
12119
15087
|
db: Database;
|
|
12120
15088
|
headers: Headers;
|
|
12121
15089
|
env: Bindings;
|
|
12122
|
-
client: string;
|
|
12123
15090
|
telemetryDisabled: boolean;
|
|
12124
15091
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
12125
15092
|
apiOrigin?: string | undefined;
|
|
@@ -12152,10 +15119,10 @@ declare const router: {
|
|
|
12152
15119
|
activeOrganizationId?: string | null | undefined;
|
|
12153
15120
|
studio?: boolean | null | undefined;
|
|
12154
15121
|
};
|
|
15122
|
+
client: string;
|
|
12155
15123
|
db: Database;
|
|
12156
15124
|
headers: Headers;
|
|
12157
15125
|
env: Bindings;
|
|
12158
|
-
client: string;
|
|
12159
15126
|
telemetryDisabled: boolean;
|
|
12160
15127
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
12161
15128
|
apiOrigin?: string | undefined;
|
|
@@ -12201,10 +15168,10 @@ declare const router: {
|
|
|
12201
15168
|
activeOrganizationId?: string | null | undefined;
|
|
12202
15169
|
studio?: boolean | null | undefined;
|
|
12203
15170
|
};
|
|
15171
|
+
client: string;
|
|
12204
15172
|
db: Database;
|
|
12205
15173
|
headers: Headers;
|
|
12206
15174
|
env: Bindings;
|
|
12207
|
-
client: string;
|
|
12208
15175
|
telemetryDisabled: boolean;
|
|
12209
15176
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
12210
15177
|
apiOrigin?: string | undefined;
|
|
@@ -12237,10 +15204,10 @@ declare const router: {
|
|
|
12237
15204
|
activeOrganizationId?: string | null | undefined;
|
|
12238
15205
|
studio?: boolean | null | undefined;
|
|
12239
15206
|
};
|
|
15207
|
+
client: string;
|
|
12240
15208
|
db: Database;
|
|
12241
15209
|
headers: Headers;
|
|
12242
15210
|
env: Bindings;
|
|
12243
|
-
client: string;
|
|
12244
15211
|
telemetryDisabled: boolean;
|
|
12245
15212
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
12246
15213
|
apiOrigin?: string | undefined;
|
|
@@ -12333,10 +15300,10 @@ declare const router: {
|
|
|
12333
15300
|
activeOrganizationId?: string | null | undefined;
|
|
12334
15301
|
studio?: boolean | null | undefined;
|
|
12335
15302
|
};
|
|
15303
|
+
client: string;
|
|
12336
15304
|
db: Database;
|
|
12337
15305
|
headers: Headers;
|
|
12338
15306
|
env: Bindings;
|
|
12339
|
-
client: string;
|
|
12340
15307
|
telemetryDisabled: boolean;
|
|
12341
15308
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
12342
15309
|
apiOrigin?: string | undefined;
|
|
@@ -12499,10 +15466,10 @@ declare const router: {
|
|
|
12499
15466
|
activeOrganizationId?: string | null | undefined;
|
|
12500
15467
|
studio?: boolean | null | undefined;
|
|
12501
15468
|
};
|
|
15469
|
+
client: string;
|
|
12502
15470
|
db: Database;
|
|
12503
15471
|
headers: Headers;
|
|
12504
15472
|
env: Bindings;
|
|
12505
|
-
client: string;
|
|
12506
15473
|
telemetryDisabled: boolean;
|
|
12507
15474
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
12508
15475
|
apiOrigin?: string | undefined;
|
|
@@ -12535,10 +15502,10 @@ declare const router: {
|
|
|
12535
15502
|
activeOrganizationId?: string | null | undefined;
|
|
12536
15503
|
studio?: boolean | null | undefined;
|
|
12537
15504
|
};
|
|
15505
|
+
client: string;
|
|
12538
15506
|
db: Database;
|
|
12539
15507
|
headers: Headers;
|
|
12540
15508
|
env: Bindings;
|
|
12541
|
-
client: string;
|
|
12542
15509
|
telemetryDisabled: boolean;
|
|
12543
15510
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
12544
15511
|
apiOrigin?: string | undefined;
|
|
@@ -12644,10 +15611,10 @@ declare const router: {
|
|
|
12644
15611
|
activeOrganizationId?: string | null | undefined;
|
|
12645
15612
|
studio?: boolean | null | undefined;
|
|
12646
15613
|
};
|
|
15614
|
+
client: string;
|
|
12647
15615
|
db: Database;
|
|
12648
15616
|
headers: Headers;
|
|
12649
15617
|
env: Bindings;
|
|
12650
|
-
client: string;
|
|
12651
15618
|
telemetryDisabled: boolean;
|
|
12652
15619
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
12653
15620
|
apiOrigin?: string | undefined;
|
|
@@ -12680,10 +15647,10 @@ declare const router: {
|
|
|
12680
15647
|
activeOrganizationId?: string | null | undefined;
|
|
12681
15648
|
studio?: boolean | null | undefined;
|
|
12682
15649
|
};
|
|
15650
|
+
client: string;
|
|
12683
15651
|
db: Database;
|
|
12684
15652
|
headers: Headers;
|
|
12685
15653
|
env: Bindings;
|
|
12686
|
-
client: string;
|
|
12687
15654
|
telemetryDisabled: boolean;
|
|
12688
15655
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
12689
15656
|
apiOrigin?: string | undefined;
|
|
@@ -12776,10 +15743,10 @@ declare const router: {
|
|
|
12776
15743
|
activeOrganizationId?: string | null | undefined;
|
|
12777
15744
|
studio?: boolean | null | undefined;
|
|
12778
15745
|
};
|
|
15746
|
+
client: string;
|
|
12779
15747
|
db: Database;
|
|
12780
15748
|
headers: Headers;
|
|
12781
15749
|
env: Bindings;
|
|
12782
|
-
client: string;
|
|
12783
15750
|
telemetryDisabled: boolean;
|
|
12784
15751
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
12785
15752
|
apiOrigin?: string | undefined;
|
|
@@ -12812,10 +15779,10 @@ declare const router: {
|
|
|
12812
15779
|
activeOrganizationId?: string | null | undefined;
|
|
12813
15780
|
studio?: boolean | null | undefined;
|
|
12814
15781
|
};
|
|
15782
|
+
client: string;
|
|
12815
15783
|
db: Database;
|
|
12816
15784
|
headers: Headers;
|
|
12817
15785
|
env: Bindings;
|
|
12818
|
-
client: string;
|
|
12819
15786
|
telemetryDisabled: boolean;
|
|
12820
15787
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
12821
15788
|
apiOrigin?: string | undefined;
|
|
@@ -12908,10 +15875,10 @@ declare const router: {
|
|
|
12908
15875
|
activeOrganizationId?: string | null | undefined;
|
|
12909
15876
|
studio?: boolean | null | undefined;
|
|
12910
15877
|
};
|
|
15878
|
+
client: string;
|
|
12911
15879
|
db: Database;
|
|
12912
15880
|
headers: Headers;
|
|
12913
15881
|
env: Bindings;
|
|
12914
|
-
client: string;
|
|
12915
15882
|
telemetryDisabled: boolean;
|
|
12916
15883
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
12917
15884
|
apiOrigin?: string | undefined;
|
|
@@ -12944,10 +15911,10 @@ declare const router: {
|
|
|
12944
15911
|
activeOrganizationId?: string | null | undefined;
|
|
12945
15912
|
studio?: boolean | null | undefined;
|
|
12946
15913
|
};
|
|
15914
|
+
client: string;
|
|
12947
15915
|
db: Database;
|
|
12948
15916
|
headers: Headers;
|
|
12949
15917
|
env: Bindings;
|
|
12950
|
-
client: string;
|
|
12951
15918
|
telemetryDisabled: boolean;
|
|
12952
15919
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
12953
15920
|
apiOrigin?: string | undefined;
|
|
@@ -13041,10 +16008,10 @@ declare const router: {
|
|
|
13041
16008
|
activeOrganizationId?: string | null | undefined;
|
|
13042
16009
|
studio?: boolean | null | undefined;
|
|
13043
16010
|
};
|
|
16011
|
+
client: string;
|
|
13044
16012
|
db: Database;
|
|
13045
16013
|
headers: Headers;
|
|
13046
16014
|
env: Bindings;
|
|
13047
|
-
client: string;
|
|
13048
16015
|
telemetryDisabled: boolean;
|
|
13049
16016
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
13050
16017
|
apiOrigin?: string | undefined;
|
|
@@ -13077,10 +16044,10 @@ declare const router: {
|
|
|
13077
16044
|
activeOrganizationId?: string | null | undefined;
|
|
13078
16045
|
studio?: boolean | null | undefined;
|
|
13079
16046
|
};
|
|
16047
|
+
client: string;
|
|
13080
16048
|
db: Database;
|
|
13081
16049
|
headers: Headers;
|
|
13082
16050
|
env: Bindings;
|
|
13083
|
-
client: string;
|
|
13084
16051
|
telemetryDisabled: boolean;
|
|
13085
16052
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
13086
16053
|
apiOrigin?: string | undefined;
|
|
@@ -13170,10 +16137,10 @@ declare const router: {
|
|
|
13170
16137
|
activeOrganizationId?: string | null | undefined;
|
|
13171
16138
|
studio?: boolean | null | undefined;
|
|
13172
16139
|
};
|
|
16140
|
+
client: string;
|
|
13173
16141
|
db: Database;
|
|
13174
16142
|
headers: Headers;
|
|
13175
16143
|
env: Bindings;
|
|
13176
|
-
client: string;
|
|
13177
16144
|
telemetryDisabled: boolean;
|
|
13178
16145
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
13179
16146
|
apiOrigin?: string | undefined;
|
|
@@ -13265,10 +16232,10 @@ declare const router: {
|
|
|
13265
16232
|
activeOrganizationId?: string | null | undefined;
|
|
13266
16233
|
studio?: boolean | null | undefined;
|
|
13267
16234
|
};
|
|
16235
|
+
client: string;
|
|
13268
16236
|
db: Database;
|
|
13269
16237
|
headers: Headers;
|
|
13270
16238
|
env: Bindings;
|
|
13271
|
-
client: string;
|
|
13272
16239
|
telemetryDisabled: boolean;
|
|
13273
16240
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
13274
16241
|
apiOrigin?: string | undefined;
|
|
@@ -13301,10 +16268,10 @@ declare const router: {
|
|
|
13301
16268
|
activeOrganizationId?: string | null | undefined;
|
|
13302
16269
|
studio?: boolean | null | undefined;
|
|
13303
16270
|
};
|
|
16271
|
+
client: string;
|
|
13304
16272
|
db: Database;
|
|
13305
16273
|
headers: Headers;
|
|
13306
16274
|
env: Bindings;
|
|
13307
|
-
client: string;
|
|
13308
16275
|
telemetryDisabled: boolean;
|
|
13309
16276
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
13310
16277
|
apiOrigin?: string | undefined;
|
|
@@ -13437,10 +16404,10 @@ declare const router: {
|
|
|
13437
16404
|
activeOrganizationId?: string | null | undefined;
|
|
13438
16405
|
studio?: boolean | null | undefined;
|
|
13439
16406
|
};
|
|
16407
|
+
client: string;
|
|
13440
16408
|
db: Database;
|
|
13441
16409
|
headers: Headers;
|
|
13442
16410
|
env: Bindings;
|
|
13443
|
-
client: string;
|
|
13444
16411
|
telemetryDisabled: boolean;
|
|
13445
16412
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
13446
16413
|
apiOrigin?: string | undefined;
|
|
@@ -13496,10 +16463,10 @@ declare const router: {
|
|
|
13496
16463
|
activeOrganizationId?: string | null | undefined;
|
|
13497
16464
|
studio?: boolean | null | undefined;
|
|
13498
16465
|
};
|
|
16466
|
+
client: string;
|
|
13499
16467
|
db: Database;
|
|
13500
16468
|
headers: Headers;
|
|
13501
16469
|
env: Bindings;
|
|
13502
|
-
client: string;
|
|
13503
16470
|
telemetryDisabled: boolean;
|
|
13504
16471
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
13505
16472
|
apiOrigin?: string | undefined;
|
|
@@ -13558,10 +16525,10 @@ declare const router: {
|
|
|
13558
16525
|
activeOrganizationId?: string | null | undefined;
|
|
13559
16526
|
studio?: boolean | null | undefined;
|
|
13560
16527
|
};
|
|
16528
|
+
client: string;
|
|
13561
16529
|
db: Database;
|
|
13562
16530
|
headers: Headers;
|
|
13563
16531
|
env: Bindings;
|
|
13564
|
-
client: string;
|
|
13565
16532
|
telemetryDisabled: boolean;
|
|
13566
16533
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
13567
16534
|
apiOrigin?: string | undefined;
|
|
@@ -13616,10 +16583,10 @@ declare const router: {
|
|
|
13616
16583
|
activeOrganizationId?: string | null | undefined;
|
|
13617
16584
|
studio?: boolean | null | undefined;
|
|
13618
16585
|
};
|
|
16586
|
+
client: string;
|
|
13619
16587
|
db: Database;
|
|
13620
16588
|
headers: Headers;
|
|
13621
16589
|
env: Bindings;
|
|
13622
|
-
client: string;
|
|
13623
16590
|
telemetryDisabled: boolean;
|
|
13624
16591
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
13625
16592
|
apiOrigin?: string | undefined;
|
|
@@ -13681,10 +16648,10 @@ declare const router: {
|
|
|
13681
16648
|
activeOrganizationId?: string | null | undefined;
|
|
13682
16649
|
studio?: boolean | null | undefined;
|
|
13683
16650
|
};
|
|
16651
|
+
client: string;
|
|
13684
16652
|
db: Database;
|
|
13685
16653
|
headers: Headers;
|
|
13686
16654
|
env: Bindings;
|
|
13687
|
-
client: string;
|
|
13688
16655
|
telemetryDisabled: boolean;
|
|
13689
16656
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
13690
16657
|
apiOrigin?: string | undefined;
|
|
@@ -13801,10 +16768,10 @@ declare const router: {
|
|
|
13801
16768
|
activeOrganizationId?: string | null | undefined;
|
|
13802
16769
|
studio?: boolean | null | undefined;
|
|
13803
16770
|
};
|
|
16771
|
+
client: string;
|
|
13804
16772
|
db: Database;
|
|
13805
16773
|
headers: Headers;
|
|
13806
16774
|
env: Bindings;
|
|
13807
|
-
client: string;
|
|
13808
16775
|
telemetryDisabled: boolean;
|
|
13809
16776
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
13810
16777
|
apiOrigin?: string | undefined;
|
|
@@ -13837,10 +16804,10 @@ declare const router: {
|
|
|
13837
16804
|
activeOrganizationId?: string | null | undefined;
|
|
13838
16805
|
studio?: boolean | null | undefined;
|
|
13839
16806
|
};
|
|
16807
|
+
client: string;
|
|
13840
16808
|
db: Database;
|
|
13841
16809
|
headers: Headers;
|
|
13842
16810
|
env: Bindings;
|
|
13843
|
-
client: string;
|
|
13844
16811
|
telemetryDisabled: boolean;
|
|
13845
16812
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
13846
16813
|
apiOrigin?: string | undefined;
|
|
@@ -13905,10 +16872,10 @@ declare const router: {
|
|
|
13905
16872
|
activeOrganizationId?: string | null | undefined;
|
|
13906
16873
|
studio?: boolean | null | undefined;
|
|
13907
16874
|
};
|
|
16875
|
+
client: string;
|
|
13908
16876
|
db: Database;
|
|
13909
16877
|
headers: Headers;
|
|
13910
16878
|
env: Bindings;
|
|
13911
|
-
client: string;
|
|
13912
16879
|
telemetryDisabled: boolean;
|
|
13913
16880
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
13914
16881
|
apiOrigin?: string | undefined;
|
|
@@ -13941,10 +16908,10 @@ declare const router: {
|
|
|
13941
16908
|
activeOrganizationId?: string | null | undefined;
|
|
13942
16909
|
studio?: boolean | null | undefined;
|
|
13943
16910
|
};
|
|
16911
|
+
client: string;
|
|
13944
16912
|
db: Database;
|
|
13945
16913
|
headers: Headers;
|
|
13946
16914
|
env: Bindings;
|
|
13947
|
-
client: string;
|
|
13948
16915
|
telemetryDisabled: boolean;
|
|
13949
16916
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
13950
16917
|
apiOrigin?: string | undefined;
|
|
@@ -14009,10 +16976,10 @@ declare const router: {
|
|
|
14009
16976
|
activeOrganizationId?: string | null | undefined;
|
|
14010
16977
|
studio?: boolean | null | undefined;
|
|
14011
16978
|
};
|
|
16979
|
+
client: string;
|
|
14012
16980
|
db: Database;
|
|
14013
16981
|
headers: Headers;
|
|
14014
16982
|
env: Bindings;
|
|
14015
|
-
client: string;
|
|
14016
16983
|
telemetryDisabled: boolean;
|
|
14017
16984
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
14018
16985
|
apiOrigin?: string | undefined;
|
|
@@ -14045,10 +17012,10 @@ declare const router: {
|
|
|
14045
17012
|
activeOrganizationId?: string | null | undefined;
|
|
14046
17013
|
studio?: boolean | null | undefined;
|
|
14047
17014
|
};
|
|
17015
|
+
client: string;
|
|
14048
17016
|
db: Database;
|
|
14049
17017
|
headers: Headers;
|
|
14050
17018
|
env: Bindings;
|
|
14051
|
-
client: string;
|
|
14052
17019
|
telemetryDisabled: boolean;
|
|
14053
17020
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
14054
17021
|
apiOrigin?: string | undefined;
|
|
@@ -14354,10 +17321,10 @@ declare const router: {
|
|
|
14354
17321
|
activeOrganizationId?: string | null | undefined;
|
|
14355
17322
|
studio?: boolean | null | undefined;
|
|
14356
17323
|
};
|
|
17324
|
+
client: string;
|
|
14357
17325
|
db: Database;
|
|
14358
17326
|
headers: Headers;
|
|
14359
17327
|
env: Bindings;
|
|
14360
|
-
client: string;
|
|
14361
17328
|
telemetryDisabled: boolean;
|
|
14362
17329
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
14363
17330
|
apiOrigin?: string | undefined;
|
|
@@ -14415,10 +17382,10 @@ declare const router: {
|
|
|
14415
17382
|
activeOrganizationId?: string | null | undefined;
|
|
14416
17383
|
studio?: boolean | null | undefined;
|
|
14417
17384
|
};
|
|
17385
|
+
client: string;
|
|
14418
17386
|
db: Database;
|
|
14419
17387
|
headers: Headers;
|
|
14420
17388
|
env: Bindings;
|
|
14421
|
-
client: string;
|
|
14422
17389
|
telemetryDisabled: boolean;
|
|
14423
17390
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
14424
17391
|
apiOrigin?: string | undefined;
|
|
@@ -14463,10 +17430,10 @@ declare const router: {
|
|
|
14463
17430
|
activeOrganizationId?: string | null | undefined;
|
|
14464
17431
|
studio?: boolean | null | undefined;
|
|
14465
17432
|
};
|
|
17433
|
+
client: string;
|
|
14466
17434
|
db: Database;
|
|
14467
17435
|
headers: Headers;
|
|
14468
17436
|
env: Bindings;
|
|
14469
|
-
client: string;
|
|
14470
17437
|
telemetryDisabled: boolean;
|
|
14471
17438
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
14472
17439
|
apiOrigin?: string | undefined;
|
|
@@ -14510,10 +17477,10 @@ declare const router: {
|
|
|
14510
17477
|
activeOrganizationId?: string | null | undefined;
|
|
14511
17478
|
studio?: boolean | null | undefined;
|
|
14512
17479
|
};
|
|
17480
|
+
client: string;
|
|
14513
17481
|
db: Database;
|
|
14514
17482
|
headers: Headers;
|
|
14515
17483
|
env: Bindings;
|
|
14516
|
-
client: string;
|
|
14517
17484
|
telemetryDisabled: boolean;
|
|
14518
17485
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
14519
17486
|
apiOrigin?: string | undefined;
|
|
@@ -14558,10 +17525,10 @@ declare const router: {
|
|
|
14558
17525
|
activeOrganizationId?: string | null | undefined;
|
|
14559
17526
|
studio?: boolean | null | undefined;
|
|
14560
17527
|
};
|
|
17528
|
+
client: string;
|
|
14561
17529
|
db: Database;
|
|
14562
17530
|
headers: Headers;
|
|
14563
17531
|
env: Bindings;
|
|
14564
|
-
client: string;
|
|
14565
17532
|
telemetryDisabled: boolean;
|
|
14566
17533
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
14567
17534
|
apiOrigin?: string | undefined;
|
|
@@ -14649,10 +17616,10 @@ declare const router: {
|
|
|
14649
17616
|
activeOrganizationId?: string | null | undefined;
|
|
14650
17617
|
studio?: boolean | null | undefined;
|
|
14651
17618
|
};
|
|
17619
|
+
client: string;
|
|
14652
17620
|
db: Database;
|
|
14653
17621
|
headers: Headers;
|
|
14654
17622
|
env: Bindings;
|
|
14655
|
-
client: string;
|
|
14656
17623
|
telemetryDisabled: boolean;
|
|
14657
17624
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
14658
17625
|
apiOrigin?: string | undefined;
|
|
@@ -14696,10 +17663,10 @@ declare const router: {
|
|
|
14696
17663
|
activeOrganizationId?: string | null | undefined;
|
|
14697
17664
|
studio?: boolean | null | undefined;
|
|
14698
17665
|
};
|
|
17666
|
+
client: string;
|
|
14699
17667
|
db: Database;
|
|
14700
17668
|
headers: Headers;
|
|
14701
17669
|
env: Bindings;
|
|
14702
|
-
client: string;
|
|
14703
17670
|
telemetryDisabled: boolean;
|
|
14704
17671
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
14705
17672
|
apiOrigin?: string | undefined;
|
|
@@ -14746,10 +17713,10 @@ declare const router: {
|
|
|
14746
17713
|
activeOrganizationId?: string | null | undefined;
|
|
14747
17714
|
studio?: boolean | null | undefined;
|
|
14748
17715
|
};
|
|
17716
|
+
client: string;
|
|
14749
17717
|
db: Database;
|
|
14750
17718
|
headers: Headers;
|
|
14751
17719
|
env: Bindings;
|
|
14752
|
-
client: string;
|
|
14753
17720
|
telemetryDisabled: boolean;
|
|
14754
17721
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
14755
17722
|
apiOrigin?: string | undefined;
|
|
@@ -14797,10 +17764,10 @@ declare const router: {
|
|
|
14797
17764
|
activeOrganizationId?: string | null | undefined;
|
|
14798
17765
|
studio?: boolean | null | undefined;
|
|
14799
17766
|
};
|
|
17767
|
+
client: string;
|
|
14800
17768
|
db: Database;
|
|
14801
17769
|
headers: Headers;
|
|
14802
17770
|
env: Bindings;
|
|
14803
|
-
client: string;
|
|
14804
17771
|
telemetryDisabled: boolean;
|
|
14805
17772
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
14806
17773
|
apiOrigin?: string | undefined;
|
|
@@ -14857,10 +17824,10 @@ declare const router: {
|
|
|
14857
17824
|
activeOrganizationId?: string | null | undefined;
|
|
14858
17825
|
studio?: boolean | null | undefined;
|
|
14859
17826
|
};
|
|
17827
|
+
client: string;
|
|
14860
17828
|
db: Database;
|
|
14861
17829
|
headers: Headers;
|
|
14862
17830
|
env: Bindings;
|
|
14863
|
-
client: string;
|
|
14864
17831
|
telemetryDisabled: boolean;
|
|
14865
17832
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
14866
17833
|
apiOrigin?: string | undefined;
|
|
@@ -14906,10 +17873,10 @@ declare const router: {
|
|
|
14906
17873
|
activeOrganizationId?: string | null | undefined;
|
|
14907
17874
|
studio?: boolean | null | undefined;
|
|
14908
17875
|
};
|
|
17876
|
+
client: string;
|
|
14909
17877
|
db: Database;
|
|
14910
17878
|
headers: Headers;
|
|
14911
17879
|
env: Bindings;
|
|
14912
|
-
client: string;
|
|
14913
17880
|
telemetryDisabled: boolean;
|
|
14914
17881
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
14915
17882
|
apiOrigin?: string | undefined;
|
|
@@ -14955,10 +17922,10 @@ declare const router: {
|
|
|
14955
17922
|
activeOrganizationId?: string | null | undefined;
|
|
14956
17923
|
studio?: boolean | null | undefined;
|
|
14957
17924
|
};
|
|
17925
|
+
client: string;
|
|
14958
17926
|
db: Database;
|
|
14959
17927
|
headers: Headers;
|
|
14960
17928
|
env: Bindings;
|
|
14961
|
-
client: string;
|
|
14962
17929
|
telemetryDisabled: boolean;
|
|
14963
17930
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
14964
17931
|
apiOrigin?: string | undefined;
|
|
@@ -15008,10 +17975,10 @@ declare const router: {
|
|
|
15008
17975
|
activeOrganizationId?: string | null | undefined;
|
|
15009
17976
|
studio?: boolean | null | undefined;
|
|
15010
17977
|
};
|
|
17978
|
+
client: string;
|
|
15011
17979
|
db: Database;
|
|
15012
17980
|
headers: Headers;
|
|
15013
17981
|
env: Bindings;
|
|
15014
|
-
client: string;
|
|
15015
17982
|
telemetryDisabled: boolean;
|
|
15016
17983
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
15017
17984
|
apiOrigin?: string | undefined;
|
|
@@ -15043,6 +18010,181 @@ declare const router: {
|
|
|
15043
18010
|
step?: undefined;
|
|
15044
18011
|
}, void, unknown>>, Record<never, never>, Record<never, never>>;
|
|
15045
18012
|
};
|
|
18013
|
+
connectedAgents: {
|
|
18014
|
+
consent: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
18015
|
+
draft: DraftRequest | null;
|
|
18016
|
+
locale: string | undefined;
|
|
18017
|
+
publishingDraft: string | undefined;
|
|
18018
|
+
}>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
18019
|
+
draft: DraftRequest | null;
|
|
18020
|
+
locale: string | undefined;
|
|
18021
|
+
publishingDraft: string | undefined;
|
|
18022
|
+
}>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
18023
|
+
draft: DraftRequest | null;
|
|
18024
|
+
locale: string | undefined;
|
|
18025
|
+
publishingDraft: string | undefined;
|
|
18026
|
+
}>, {
|
|
18027
|
+
user: {
|
|
18028
|
+
id: string;
|
|
18029
|
+
createdAt: Date;
|
|
18030
|
+
updatedAt: Date;
|
|
18031
|
+
email: string;
|
|
18032
|
+
emailVerified: boolean;
|
|
18033
|
+
name: string;
|
|
18034
|
+
image?: string | null | undefined;
|
|
18035
|
+
};
|
|
18036
|
+
session: {
|
|
18037
|
+
id: string;
|
|
18038
|
+
createdAt: Date;
|
|
18039
|
+
updatedAt: Date;
|
|
18040
|
+
userId: string;
|
|
18041
|
+
expiresAt: Date;
|
|
18042
|
+
token: string;
|
|
18043
|
+
ipAddress?: string | null | undefined;
|
|
18044
|
+
userAgent?: string | null | undefined;
|
|
18045
|
+
activeOrganizationId?: string | null | undefined;
|
|
18046
|
+
studio?: boolean | null | undefined;
|
|
18047
|
+
};
|
|
18048
|
+
client: string;
|
|
18049
|
+
db: Database;
|
|
18050
|
+
headers: Headers;
|
|
18051
|
+
env: Bindings;
|
|
18052
|
+
telemetryDisabled: boolean;
|
|
18053
|
+
waitUntil: (promise: Promise<unknown>) => void;
|
|
18054
|
+
apiOrigin?: string | undefined;
|
|
18055
|
+
draft: DraftRequest | null;
|
|
18056
|
+
locale: string | undefined;
|
|
18057
|
+
publishingDraft: string | undefined;
|
|
18058
|
+
}>, import("zod").ZodObject<{
|
|
18059
|
+
oauthQuery: import("zod").ZodString;
|
|
18060
|
+
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
|
|
18061
|
+
client: {
|
|
18062
|
+
name: string;
|
|
18063
|
+
verified: boolean;
|
|
18064
|
+
};
|
|
18065
|
+
scopes: {
|
|
18066
|
+
scope: "website:read" | "drafts:write";
|
|
18067
|
+
description: string;
|
|
18068
|
+
}[];
|
|
18069
|
+
}, {
|
|
18070
|
+
client: {
|
|
18071
|
+
name: string;
|
|
18072
|
+
verified: boolean;
|
|
18073
|
+
};
|
|
18074
|
+
scopes: {
|
|
18075
|
+
scope: "website:read" | "drafts:write";
|
|
18076
|
+
description: string;
|
|
18077
|
+
}[];
|
|
18078
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
18079
|
+
list: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
18080
|
+
draft: DraftRequest | null;
|
|
18081
|
+
locale: string | undefined;
|
|
18082
|
+
publishingDraft: string | undefined;
|
|
18083
|
+
}>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
18084
|
+
draft: DraftRequest | null;
|
|
18085
|
+
locale: string | undefined;
|
|
18086
|
+
publishingDraft: string | undefined;
|
|
18087
|
+
}>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
18088
|
+
draft: DraftRequest | null;
|
|
18089
|
+
locale: string | undefined;
|
|
18090
|
+
publishingDraft: string | undefined;
|
|
18091
|
+
}>, {
|
|
18092
|
+
user: {
|
|
18093
|
+
id: string;
|
|
18094
|
+
createdAt: Date;
|
|
18095
|
+
updatedAt: Date;
|
|
18096
|
+
email: string;
|
|
18097
|
+
emailVerified: boolean;
|
|
18098
|
+
name: string;
|
|
18099
|
+
image?: string | null | undefined;
|
|
18100
|
+
};
|
|
18101
|
+
session: {
|
|
18102
|
+
id: string;
|
|
18103
|
+
createdAt: Date;
|
|
18104
|
+
updatedAt: Date;
|
|
18105
|
+
userId: string;
|
|
18106
|
+
expiresAt: Date;
|
|
18107
|
+
token: string;
|
|
18108
|
+
ipAddress?: string | null | undefined;
|
|
18109
|
+
userAgent?: string | null | undefined;
|
|
18110
|
+
activeOrganizationId?: string | null | undefined;
|
|
18111
|
+
studio?: boolean | null | undefined;
|
|
18112
|
+
};
|
|
18113
|
+
client: string;
|
|
18114
|
+
db: Database;
|
|
18115
|
+
headers: Headers;
|
|
18116
|
+
env: Bindings;
|
|
18117
|
+
telemetryDisabled: boolean;
|
|
18118
|
+
waitUntil: (promise: Promise<unknown>) => void;
|
|
18119
|
+
apiOrigin?: string | undefined;
|
|
18120
|
+
draft: DraftRequest | null;
|
|
18121
|
+
locale: string | undefined;
|
|
18122
|
+
publishingDraft: string | undefined;
|
|
18123
|
+
}>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
|
|
18124
|
+
id: string;
|
|
18125
|
+
client: {
|
|
18126
|
+
name: string;
|
|
18127
|
+
verified: boolean;
|
|
18128
|
+
};
|
|
18129
|
+
connectedAt: Date;
|
|
18130
|
+
lastUsedAt: Date | null;
|
|
18131
|
+
}[], {
|
|
18132
|
+
id: string;
|
|
18133
|
+
client: {
|
|
18134
|
+
name: string;
|
|
18135
|
+
verified: boolean;
|
|
18136
|
+
};
|
|
18137
|
+
connectedAt: Date;
|
|
18138
|
+
lastUsedAt: Date | null;
|
|
18139
|
+
}[]>, Record<never, never>, Record<never, never>>;
|
|
18140
|
+
disconnect: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
18141
|
+
draft: DraftRequest | null;
|
|
18142
|
+
locale: string | undefined;
|
|
18143
|
+
publishingDraft: string | undefined;
|
|
18144
|
+
}>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
18145
|
+
draft: DraftRequest | null;
|
|
18146
|
+
locale: string | undefined;
|
|
18147
|
+
publishingDraft: string | undefined;
|
|
18148
|
+
}>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
18149
|
+
draft: DraftRequest | null;
|
|
18150
|
+
locale: string | undefined;
|
|
18151
|
+
publishingDraft: string | undefined;
|
|
18152
|
+
}>, {
|
|
18153
|
+
user: {
|
|
18154
|
+
id: string;
|
|
18155
|
+
createdAt: Date;
|
|
18156
|
+
updatedAt: Date;
|
|
18157
|
+
email: string;
|
|
18158
|
+
emailVerified: boolean;
|
|
18159
|
+
name: string;
|
|
18160
|
+
image?: string | null | undefined;
|
|
18161
|
+
};
|
|
18162
|
+
session: {
|
|
18163
|
+
id: string;
|
|
18164
|
+
createdAt: Date;
|
|
18165
|
+
updatedAt: Date;
|
|
18166
|
+
userId: string;
|
|
18167
|
+
expiresAt: Date;
|
|
18168
|
+
token: string;
|
|
18169
|
+
ipAddress?: string | null | undefined;
|
|
18170
|
+
userAgent?: string | null | undefined;
|
|
18171
|
+
activeOrganizationId?: string | null | undefined;
|
|
18172
|
+
studio?: boolean | null | undefined;
|
|
18173
|
+
};
|
|
18174
|
+
client: string;
|
|
18175
|
+
db: Database;
|
|
18176
|
+
headers: Headers;
|
|
18177
|
+
env: Bindings;
|
|
18178
|
+
telemetryDisabled: boolean;
|
|
18179
|
+
waitUntil: (promise: Promise<unknown>) => void;
|
|
18180
|
+
apiOrigin?: string | undefined;
|
|
18181
|
+
draft: DraftRequest | null;
|
|
18182
|
+
locale: string | undefined;
|
|
18183
|
+
publishingDraft: string | undefined;
|
|
18184
|
+
}>, import("zod").ZodObject<{
|
|
18185
|
+
id: import("zod").ZodString;
|
|
18186
|
+
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<undefined, undefined>, Record<never, never>, Record<never, never>>;
|
|
18187
|
+
};
|
|
15046
18188
|
};
|
|
15047
18189
|
type Router = typeof router;
|
|
15048
18190
|
//#endregion
|