@camox/api-contract 0.58.1 → 0.59.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/drafts.d.ts +1 -13
- package/dist/drafts.js +1 -11
- package/dist/projects.d.ts +8 -2
- package/dist/projects.js +5 -2
- package/dist/router.d.ts +629 -356
- package/dist/threads.d.ts +46 -3
- package/dist/threads.js +37 -3
- package/package.json +1 -1
- package/src/drafts.ts +3 -18
- package/src/projects.ts +6 -2
- package/src/threads.ts +43 -3
package/dist/router.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import "@orpc/server";
|
|
3
3
|
import "@camox/api-contract/projects";
|
|
4
|
-
import {
|
|
4
|
+
import { EndedDraft, PublishAbortReason } from "@camox/api-contract/drafts";
|
|
5
5
|
import "effect";
|
|
6
6
|
import "drizzle-orm";
|
|
7
7
|
import "drizzle-orm/sqlite-core";
|
|
@@ -11,9 +11,9 @@ import { ThreadSender } 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
|
+
import { FileErrorCode } from "@earendil-works/pi-durable/env";
|
|
14
15
|
import "@camox/ai-tools";
|
|
15
16
|
import "@earendil-works/pi-durable";
|
|
16
|
-
import { FileErrorCode } from "@earendil-works/pi-durable/env";
|
|
17
17
|
import { CiParams, CloudflareArtifacts } from "@cloudflare/ci";
|
|
18
18
|
import "@cloudflare/ci/worker";
|
|
19
19
|
import { PosthogRegion } from "@camox/api-contract/analytics";
|
|
@@ -1306,14 +1306,11 @@ type GeneratedValues = {
|
|
|
1306
1306
|
//#region ../../apps/api/src/domains/drafts/scope.d.ts
|
|
1307
1307
|
/**
|
|
1308
1308
|
* The draft a request names, before it is checked: a draft's id, where `create` asks for a
|
|
1309
|
-
* missing
|
|
1310
|
-
* project the request acts on (ADR 0011).
|
|
1309
|
+
* missing draft to be created with it (ADR 0011).
|
|
1311
1310
|
*/
|
|
1312
1311
|
type DraftRequest = {
|
|
1313
1312
|
id: string;
|
|
1314
1313
|
create: boolean;
|
|
1315
|
-
} | {
|
|
1316
|
-
development: true;
|
|
1317
1314
|
};
|
|
1318
1315
|
//#endregion
|
|
1319
1316
|
//#region ../../apps/api/src/domains/drafts/overlay.d.ts
|
|
@@ -1422,6 +1419,25 @@ declare function createDb(d1: D1Database): import("drizzle-orm/d1").DrizzleD1Dat
|
|
|
1422
1419
|
}, {}, {
|
|
1423
1420
|
length: undefined;
|
|
1424
1421
|
}>;
|
|
1422
|
+
customDomain: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1423
|
+
name: "custom_domain";
|
|
1424
|
+
tableName: "projects";
|
|
1425
|
+
dataType: "string";
|
|
1426
|
+
columnType: "SQLiteText";
|
|
1427
|
+
data: string;
|
|
1428
|
+
driverParam: string;
|
|
1429
|
+
notNull: false;
|
|
1430
|
+
hasDefault: false;
|
|
1431
|
+
isPrimaryKey: false;
|
|
1432
|
+
isAutoincrement: false;
|
|
1433
|
+
hasRuntimeDefault: false;
|
|
1434
|
+
enumValues: [string, ...string[]];
|
|
1435
|
+
baseColumn: never;
|
|
1436
|
+
identity: undefined;
|
|
1437
|
+
generated: undefined;
|
|
1438
|
+
}, {}, {
|
|
1439
|
+
length: number | undefined;
|
|
1440
|
+
}>;
|
|
1425
1441
|
name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1426
1442
|
name: "name";
|
|
1427
1443
|
tableName: "projects";
|
|
@@ -1687,6 +1703,23 @@ declare function createDb(d1: D1Database): import("drizzle-orm/d1").DrizzleD1Dat
|
|
|
1687
1703
|
}, {}, {
|
|
1688
1704
|
length: number | undefined;
|
|
1689
1705
|
}>;
|
|
1706
|
+
codeOutsideCamox: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1707
|
+
name: "code_outside_camox";
|
|
1708
|
+
tableName: "projects";
|
|
1709
|
+
dataType: "boolean";
|
|
1710
|
+
columnType: "SQLiteBoolean";
|
|
1711
|
+
data: boolean;
|
|
1712
|
+
driverParam: number;
|
|
1713
|
+
notNull: true;
|
|
1714
|
+
hasDefault: true;
|
|
1715
|
+
isPrimaryKey: false;
|
|
1716
|
+
isAutoincrement: false;
|
|
1717
|
+
hasRuntimeDefault: false;
|
|
1718
|
+
enumValues: undefined;
|
|
1719
|
+
baseColumn: never;
|
|
1720
|
+
identity: undefined;
|
|
1721
|
+
generated: undefined;
|
|
1722
|
+
}, {}, {}>;
|
|
1690
1723
|
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1691
1724
|
name: "created_at";
|
|
1692
1725
|
tableName: "projects";
|
|
@@ -1764,26 +1797,6 @@ declare function createDb(d1: D1Database): import("drizzle-orm/d1").DrizzleD1Dat
|
|
|
1764
1797
|
identity: undefined;
|
|
1765
1798
|
generated: undefined;
|
|
1766
1799
|
}, {}, {}>;
|
|
1767
|
-
kind: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1768
|
-
name: "kind";
|
|
1769
|
-
tableName: "drafts";
|
|
1770
|
-
dataType: "string";
|
|
1771
|
-
columnType: "SQLiteText";
|
|
1772
|
-
data: import("@camox/api-contract/drafts").DraftKind;
|
|
1773
|
-
driverParam: string;
|
|
1774
|
-
notNull: true;
|
|
1775
|
-
hasDefault: false;
|
|
1776
|
-
isPrimaryKey: false;
|
|
1777
|
-
isAutoincrement: false;
|
|
1778
|
-
hasRuntimeDefault: false;
|
|
1779
|
-
enumValues: [string, ...string[]];
|
|
1780
|
-
baseColumn: never;
|
|
1781
|
-
identity: undefined;
|
|
1782
|
-
generated: undefined;
|
|
1783
|
-
}, {}, {
|
|
1784
|
-
length: undefined;
|
|
1785
|
-
$type: import("@camox/api-contract/drafts").DraftKind;
|
|
1786
|
-
}>;
|
|
1787
1800
|
name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1788
1801
|
name: "name";
|
|
1789
1802
|
tableName: "drafts";
|
|
@@ -6014,189 +6027,6 @@ declare class EdgeCachePurger extends DurableObject<Bindings> {
|
|
|
6014
6027
|
//#region ../../apps/api/src/lib/edge-cache-purges.d.ts
|
|
6015
6028
|
type EdgeCachePurgerNamespace = DurableObjectNamespace<EdgeCachePurger>;
|
|
6016
6029
|
//#endregion
|
|
6017
|
-
//#region ../../apps/api/src/domains/revisions/merge.d.ts
|
|
6018
|
-
/** How a merge of `main` into a draft ended. */
|
|
6019
|
-
type MergeEnd =
|
|
6020
|
-
/** The draft holds the current `main`, or will once its changes are committed. */
|
|
6021
|
-
"upToDate" |
|
|
6022
|
-
/** A merge revision landed, built, and the draft previews it. */
|
|
6023
|
-
"merged" |
|
|
6024
|
-
/** The merge clashed: it's left for Camox's reconcile turn (`DraftCode.clash`), to start. */
|
|
6025
|
-
"clashed" |
|
|
6026
|
-
/** This move of `main` clashed already: Camox's reconcile turn had its one try. */
|
|
6027
|
-
"clashedBefore";
|
|
6028
|
-
//#endregion
|
|
6029
|
-
//#region ../../apps/api/src/domains/agent/service.d.ts
|
|
6030
|
-
type ToolExecutionResponse = {
|
|
6031
|
-
ok: true;
|
|
6032
|
-
result: unknown;
|
|
6033
|
-
} | {
|
|
6034
|
-
ok: false;
|
|
6035
|
-
error: {
|
|
6036
|
-
code: string;
|
|
6037
|
-
message: string;
|
|
6038
|
-
details?: unknown;
|
|
6039
|
-
};
|
|
6040
|
-
};
|
|
6041
|
-
//#endregion
|
|
6042
|
-
//#region ../../apps/api/src/domains/threads/tools.d.ts
|
|
6043
|
-
/**
|
|
6044
|
-
* What a thread belongs to: its project, its draft once it has one, and for a Live thread, the
|
|
6045
|
-
* editor who owns it.
|
|
6046
|
-
*/
|
|
6047
|
-
declare const threadIdentitySchema: z.ZodObject<{
|
|
6048
|
-
projectId: z.ZodNumber;
|
|
6049
|
-
draftId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
6050
|
-
ownerId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
6051
|
-
}, z.core.$strip>;
|
|
6052
|
-
type ThreadIdentity = z.infer<typeof threadIdentitySchema>;
|
|
6053
|
-
//#endregion
|
|
6054
|
-
//#region ../../apps/api/src/durable-objects/thread.d.ts
|
|
6055
|
-
/**
|
|
6056
|
-
* How the API opens a draft's thread with no studio connected (`Thread.open`): what it belongs
|
|
6057
|
-
* to, the API's public origin, the Brief from Camox, and the messages the editor sent, oldest
|
|
6058
|
-
* first, each with the operation id it was sent with.
|
|
6059
|
-
*/
|
|
6060
|
-
type ThreadOpening = {
|
|
6061
|
-
identity: ThreadIdentity;
|
|
6062
|
-
apiOrigin: string;
|
|
6063
|
-
brief: string;
|
|
6064
|
-
editor: ThreadSender;
|
|
6065
|
-
messages: {
|
|
6066
|
-
operationId: string;
|
|
6067
|
-
text: string;
|
|
6068
|
-
}[];
|
|
6069
|
-
};
|
|
6070
|
-
/**
|
|
6071
|
-
* Cloudflare's `PiHarness`, leaving Pi closed when the object starts until `started` holds: Pi
|
|
6072
|
-
* creates its tables as it opens, and a thread nobody messaged has no run to resume.
|
|
6073
|
-
*/
|
|
6074
|
-
declare class UntilStartedPiHarness extends PiHarness {
|
|
6075
|
-
#private;
|
|
6076
|
-
constructor(started: () => Promise<boolean>, options: PiHarnessOptions);
|
|
6077
|
-
onStart(context: CapabilityStartContext): Promise<void>;
|
|
6078
|
-
}
|
|
6079
|
-
/**
|
|
6080
|
-
* One thread with Camox's agent, addressed by the thread's own id. Pi Durable runs the agent
|
|
6081
|
-
* through Cloudflare's `PiHarness`, so a run is saved at every step and carries on with no client
|
|
6082
|
-
* connected (ADR 0018).
|
|
6083
|
-
*
|
|
6084
|
-
* The API authorizes every connection before forwarding it here, naming the sender in
|
|
6085
|
-
* `THREAD_SENDER_HEADER`. Each socket gets a snapshot of Pi's agent events, then a batch per
|
|
6086
|
-
* commit; it sends editors' messages and can ask to resync.
|
|
6087
|
-
*
|
|
6088
|
-
* The thread starts with its first message: until then, connecting stores nothing, so opening a
|
|
6089
|
-
* draft leaves no thread behind.
|
|
6090
|
-
*/
|
|
6091
|
-
declare class Thread extends DurableObject<Bindings> {
|
|
6092
|
-
#private;
|
|
6093
|
-
readonly harness: UntilStartedPiHarness;
|
|
6094
|
-
readonly webSockets: WebSockets;
|
|
6095
|
-
readonly lifecycle: Lifecycle<object, object>;
|
|
6096
|
-
/**
|
|
6097
|
-
* Builds the code of the draft `draftId`, the thread's, in its build queue, as a publish of a
|
|
6098
|
-
* head revision whose build is gone asks: the head's tree finds its revision, built again.
|
|
6099
|
-
*/
|
|
6100
|
-
buildForPublish(draftId: string): Promise<BuildResult | null>;
|
|
6101
|
-
/**
|
|
6102
|
-
* Merges the current `main` into the thread's draft, when it has code, as a push to `main`
|
|
6103
|
-
* asks: right away when the agent is idle, or else right after its turn's last commit, before
|
|
6104
|
-
* the next message (`#onYield`). Nothing of it shows in the thread.
|
|
6105
|
-
*/
|
|
6106
|
-
mergeMain(): Promise<MergeEnd | "afterTheTurn" | "noCode">;
|
|
6107
|
-
/**
|
|
6108
|
-
* Builds the code of the thread's draft, as the end of a turn would on its last try, when
|
|
6109
|
-
* Camox's infrastructure failed the last build: changes that don't build are committed as a
|
|
6110
|
-
* revision that isn't built, which blocks publishing. Nothing of it shows in the thread. A
|
|
6111
|
-
* failure on Camox's side again owes the next retry. `busy` while the agent's turn runs: its
|
|
6112
|
-
* end builds.
|
|
6113
|
-
*/
|
|
6114
|
-
retryBuild(): Promise<"built" | "failed" | "busy" | "noCode">;
|
|
6115
|
-
/**
|
|
6116
|
-
* Lifecycle's alarm, which wakes Pi's runs, unless the thread ended: an alarm already on its
|
|
6117
|
-
* way when it did would look for the jobs its storage no longer has.
|
|
6118
|
-
*/
|
|
6119
|
-
alarm(): Promise<void>;
|
|
6120
|
-
/** Gives sockets that outlived the last isolate a new watch and a fresh snapshot. */
|
|
6121
|
-
onStart(): Promise<void>;
|
|
6122
|
-
/**
|
|
6123
|
-
* Shows every socket on a Live thread where the drafts its cards name stand now, as the API
|
|
6124
|
-
* asks once one of them is renamed or ends (ADR 0025). Nothing of it goes in the transcript.
|
|
6125
|
-
*/
|
|
6126
|
-
showDrafts(): Promise<void>;
|
|
6127
|
-
/**
|
|
6128
|
-
* Opens the thread from the API, with no studio connected, as a Live thread handing a request
|
|
6129
|
-
* off to a draft does (ADR 0025): records what it belongs to and the API's origin, adds the
|
|
6130
|
-
* Brief, which the model reads and studios show as from Camox, then the editor's messages
|
|
6131
|
-
* under their name, and starts the agent's run, which acts as that editor. Every message but
|
|
6132
|
-
* the last goes in before the run, the last starting it, so the model reads them all on its
|
|
6133
|
-
* first call. Repeating it changes nothing.
|
|
6134
|
-
*/
|
|
6135
|
-
open({ identity, apiOrigin, brief, editor, messages }: ThreadOpening): Promise<void>;
|
|
6136
|
-
/**
|
|
6137
|
-
* Adds Camox's `note` that the draft `draftId`, which this Live thread started, ended, at the
|
|
6138
|
-
* end of the conversation: right away when the thread is idle, or else at the next break of
|
|
6139
|
-
* the run going, as Pi places a write the model reads. Only the model reads it, and it asks the
|
|
6140
|
-
* model nothing: nothing earlier, nor the system prompt, changes (ADR 0025). Repeating it adds
|
|
6141
|
-
* nothing.
|
|
6142
|
-
*/
|
|
6143
|
-
noteDraftEnded({ draftId, note }: {
|
|
6144
|
-
draftId: string;
|
|
6145
|
-
note: string;
|
|
6146
|
-
}): Promise<void>;
|
|
6147
|
-
/**
|
|
6148
|
-
* Ends the thread with its draft, wiping everything it stored, since Pi can't delete a
|
|
6149
|
-
* conversation yet: the run going stops, and studios still open on it see an empty thread
|
|
6150
|
-
* before their sockets close. The sandbox's object for the thread stores nothing.
|
|
6151
|
-
*
|
|
6152
|
-
* Its draft no longer names it, and a development draft, which stays open, gets a new thread,
|
|
6153
|
-
* but a socket the API forwarded just before may still reach it. So the thread keeps the
|
|
6154
|
-
* record that it ended, and turns away every socket and message after, as its alarm does
|
|
6155
|
-
* nothing: nothing opens Pi again. The object isn't reset, which would fail whatever reached
|
|
6156
|
-
* it next.
|
|
6157
|
-
*/
|
|
6158
|
-
end(): Promise<void>;
|
|
6159
|
-
}
|
|
6160
|
-
//#endregion
|
|
6161
|
-
//#region ../../apps/api/src/domains/code/main-copy.d.ts
|
|
6162
|
-
/** A file of a project's code: its content, or where a symlink points. */
|
|
6163
|
-
type CodeFile = {
|
|
6164
|
-
path: string;
|
|
6165
|
-
content: Uint8Array;
|
|
6166
|
-
} | {
|
|
6167
|
-
path: string;
|
|
6168
|
-
symlink: string;
|
|
6169
|
-
};
|
|
6170
|
-
//#endregion
|
|
6171
|
-
//#region ../../apps/api/src/durable-objects/project-code.d.ts
|
|
6172
|
-
/** What `snapshot` answers: the files only when the caller doesn't already have that commit. */
|
|
6173
|
-
type MainSnapshot = {
|
|
6174
|
-
commit: string;
|
|
6175
|
-
files?: CodeFile[];
|
|
6176
|
-
};
|
|
6177
|
-
/**
|
|
6178
|
-
* A read-only copy of one project's `main`, addressed by its Project ID, which names its repo.
|
|
6179
|
-
* The agent reads the website's code from it on Live, and in a draft without code. A push to
|
|
6180
|
-
* `main` refreshes it (the release Workflow), and a copy that was never made is made on its first
|
|
6181
|
-
* read. It keeps the files in its SQLite, so an eviction doesn't clone again; Git's own directory
|
|
6182
|
-
* isn't kept.
|
|
6183
|
-
*/
|
|
6184
|
-
declare class ProjectCode extends DurableObject<Bindings> {
|
|
6185
|
-
#private;
|
|
6186
|
-
constructor(ctx: DurableObjectState, env: Bindings);
|
|
6187
|
-
/**
|
|
6188
|
-
* Makes the copy match `main`, unless it already holds `commit`, the commit a push moved `main`
|
|
6189
|
-
* to. Returns the commit it holds. One refresh at a time.
|
|
6190
|
-
*/
|
|
6191
|
-
refresh(commit?: string): Promise<string>;
|
|
6192
|
-
/** Deletes the copy, as its project is deleted. */
|
|
6193
|
-
discard(): Promise<void>;
|
|
6194
|
-
/** The commit of `main` the copy holds, without making it if it never was. */
|
|
6195
|
-
commit(): Promise<string | undefined>;
|
|
6196
|
-
/** The copy, made first if it never was; only its commit when it's `known`. */
|
|
6197
|
-
snapshot(known?: string): Promise<MainSnapshot>;
|
|
6198
|
-
}
|
|
6199
|
-
//#endregion
|
|
6200
6030
|
//#region ../../apps/api/src/domains/code/remote-env.d.ts
|
|
6201
6031
|
/** The operations sent as they are: every argument but the context is plain data. */
|
|
6202
6032
|
declare const SENT: ["absolutePath", "joinPath", "readTextFile", "readTextLines", "readBinaryFile", "writeFile", "appendFile", "truncateFile", "flushFile", "renameFile", "fileInfo", "listDir", "canonicalPath", "exists", "createDir", "remove"];
|
|
@@ -6397,16 +6227,33 @@ declare class DraftCode extends DurableObject<Bindings> {
|
|
|
6397
6227
|
message: string;
|
|
6398
6228
|
}): Promise<PreparedCommit>;
|
|
6399
6229
|
/**
|
|
6400
|
-
*
|
|
6401
|
-
*
|
|
6402
|
-
*
|
|
6230
|
+
* Adds a member's pushed commits to the working copy, without moving the branch: the objects of
|
|
6231
|
+
* `pack`, a bundle's packfile, which may build on the objects of `prerequisites`, commits of
|
|
6232
|
+
* `main` fetched for it when the working copy doesn't hold them. A build then commits the
|
|
6233
|
+
* pushed head (`commit`, with `checkout`).
|
|
6234
|
+
*/
|
|
6235
|
+
receive({ pack, prerequisites }: {
|
|
6236
|
+
pack: Uint8Array;
|
|
6237
|
+
prerequisites: string[];
|
|
6238
|
+
}): Promise<void>;
|
|
6239
|
+
/**
|
|
6240
|
+
* Moves the draft's branch to `commit`, which `prepareCommit` made, or a member pushed on top
|
|
6241
|
+
* of the branch's head, and pushes it. A commit of the tree the branch's head already has, such
|
|
6242
|
+
* as one prepared again after the push of the first, leaves the head as it is. With
|
|
6243
|
+
* `checkout`, for a commit made beside the files, the files take its tree. A member's pushed
|
|
6244
|
+
* head names `mergedMain`, the newest commit of `main` it holds, which the draft's next merge of
|
|
6245
|
+
* `main` merges from. Returns the branch's head and its parents.
|
|
6403
6246
|
*/
|
|
6404
|
-
commit({ commit }: {
|
|
6247
|
+
commit({ commit, checkout, mergedMain }: {
|
|
6405
6248
|
commit: string;
|
|
6249
|
+
checkout?: boolean;
|
|
6250
|
+
mergedMain?: string;
|
|
6406
6251
|
}): Promise<{
|
|
6407
6252
|
commit: string;
|
|
6408
6253
|
parents: string[];
|
|
6409
6254
|
}>;
|
|
6255
|
+
/** Whether `commit` is the branch's head or one of its descendants: it includes the head. */
|
|
6256
|
+
includesHead(commit: string): Promise<boolean>;
|
|
6410
6257
|
/**
|
|
6411
6258
|
* Pushes the draft's code to `main` as one squashed commit, as a publish lands: the tree of
|
|
6412
6259
|
* `commit`, a revision on the branch, with the current tip of `main` as its only parent. A
|
|
@@ -6433,20 +6280,279 @@ declare class DraftCode extends DurableObject<Bindings> {
|
|
|
6433
6280
|
delete(): Promise<void>;
|
|
6434
6281
|
}
|
|
6435
6282
|
//#endregion
|
|
6436
|
-
//#region ../../apps/api/src/domains/
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6283
|
+
//#region ../../apps/api/src/domains/code-pushes/checks.d.ts
|
|
6284
|
+
/** Why a push was refused: each reason is a stable code the CLI and its users can rely on. */
|
|
6285
|
+
type PushRefusalReason =
|
|
6286
|
+
/** What was sent isn't a Git bundle of one branch's commits. */
|
|
6287
|
+
"invalidBundle" |
|
|
6288
|
+
/** The pushed tree changes a platform-owned file, which only Upgrades change. */
|
|
6289
|
+
"platformFile" |
|
|
6290
|
+
/** The pushed tree adds or changes a file under `src/` that isn't TypeScript or CSS. */
|
|
6291
|
+
"notCode" |
|
|
6292
|
+
/** `main` changed a platform-owned file since the branch last merged it. */
|
|
6293
|
+
"mergeMainFirst" |
|
|
6294
|
+
/** The branch starts from a commit that was never on `main`. */
|
|
6295
|
+
"baseNotOnMain" |
|
|
6296
|
+
/** The branch doesn't merge cleanly with the current `main`. */
|
|
6297
|
+
"conflictsWithMain" |
|
|
6298
|
+
/** The pushed head doesn't build. */
|
|
6299
|
+
"doesNotBuild" |
|
|
6300
|
+
/** The pushed head doesn't include the draft's current head. */
|
|
6301
|
+
"pullDraftFirst" |
|
|
6302
|
+
/** The draft the push names was published or deleted. */
|
|
6303
|
+
"draftEnded";
|
|
6304
|
+
type PushRefusal = {
|
|
6305
|
+
reason: PushRefusalReason;
|
|
6306
|
+
message: string;
|
|
6307
|
+
data?: Record<string, unknown>;
|
|
6308
|
+
};
|
|
6309
|
+
/** A push that passed the checks: its head, as a commit to build, and what landing it needs. */
|
|
6310
|
+
type CheckedPush = {
|
|
6311
|
+
/** The pushed head, as a commit to build. */
|
|
6312
|
+
prepared: PreparedCommit;
|
|
6313
|
+
/**
|
|
6314
|
+
* The commits of `main` or of the draft's branch the pushed commits build on: the bundle's
|
|
6315
|
+
* prerequisites.
|
|
6316
|
+
*/
|
|
6317
|
+
prerequisites: string[];
|
|
6318
|
+
/** The newest commit of `main` the pushed head holds, which a draft it opens forks from. */
|
|
6319
|
+
base: string;
|
|
6320
|
+
pack: Uint8Array;
|
|
6321
|
+
/** The subject of each pushed commit, oldest first. */
|
|
6322
|
+
subjects: string[];
|
|
6440
6323
|
};
|
|
6441
6324
|
//#endregion
|
|
6442
|
-
//#region ../../apps/api/src/domains/
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6325
|
+
//#region ../../apps/api/src/domains/code-pushes/land.d.ts
|
|
6326
|
+
/** A push that passed its checks, as the draft it lands on receives it. */
|
|
6327
|
+
type CheckedLanding = CheckedPush & {
|
|
6328
|
+
/** The project's Project ID, which names its repo. */
|
|
6329
|
+
repo: string;
|
|
6330
|
+
};
|
|
6331
|
+
/** Whether the push landed, with its head's build, or why it was refused. */
|
|
6332
|
+
type Landing = {
|
|
6333
|
+
refused: PushRefusal;
|
|
6334
|
+
} | {
|
|
6335
|
+
result: BuildResult;
|
|
6336
|
+
};
|
|
6337
|
+
//#endregion
|
|
6338
|
+
//#region ../../apps/api/src/domains/revisions/merge.d.ts
|
|
6339
|
+
/** How a merge of `main` into a draft ended. */
|
|
6340
|
+
type MergeEnd =
|
|
6341
|
+
/** The draft holds the current `main`, or will once its changes are committed. */
|
|
6342
|
+
"upToDate" |
|
|
6343
|
+
/** A merge revision landed, built, and the draft previews it. */
|
|
6344
|
+
"merged" |
|
|
6345
|
+
/** The merge clashed: it's left for Camox's reconcile turn (`DraftCode.clash`), to start. */
|
|
6346
|
+
"clashed" |
|
|
6347
|
+
/** This move of `main` clashed already: Camox's reconcile turn had its one try. */
|
|
6348
|
+
"clashedBefore";
|
|
6349
|
+
//#endregion
|
|
6350
|
+
//#region ../../apps/api/src/domains/agent/service.d.ts
|
|
6351
|
+
type ToolExecutionResponse = {
|
|
6352
|
+
ok: true;
|
|
6353
|
+
result: unknown;
|
|
6354
|
+
} | {
|
|
6355
|
+
ok: false;
|
|
6356
|
+
error: {
|
|
6357
|
+
code: string;
|
|
6358
|
+
message: string;
|
|
6359
|
+
details?: unknown;
|
|
6360
|
+
};
|
|
6361
|
+
};
|
|
6362
|
+
//#endregion
|
|
6363
|
+
//#region ../../apps/api/src/domains/threads/tools.d.ts
|
|
6364
|
+
/**
|
|
6365
|
+
* What a thread belongs to: its project, its draft once it has one, and for a Live thread, the
|
|
6366
|
+
* editor who owns it.
|
|
6367
|
+
*/
|
|
6368
|
+
declare const threadIdentitySchema: z.ZodObject<{
|
|
6369
|
+
projectId: z.ZodNumber;
|
|
6370
|
+
draftId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
6371
|
+
ownerId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
6372
|
+
}, z.core.$strip>;
|
|
6373
|
+
type ThreadIdentity = z.infer<typeof threadIdentitySchema>;
|
|
6374
|
+
//#endregion
|
|
6375
|
+
//#region ../../apps/api/src/durable-objects/thread.d.ts
|
|
6376
|
+
/**
|
|
6377
|
+
* How the API opens a draft's thread with no studio connected (`Thread.open`): what it belongs
|
|
6378
|
+
* to, the API's public origin, the Brief from Camox, and the messages the editor sent, oldest
|
|
6379
|
+
* first, each with the operation id it was sent with.
|
|
6380
|
+
*/
|
|
6381
|
+
type ThreadOpening = {
|
|
6382
|
+
identity: ThreadIdentity;
|
|
6383
|
+
apiOrigin: string;
|
|
6384
|
+
brief: string;
|
|
6385
|
+
editor: ThreadSender;
|
|
6386
|
+
messages: {
|
|
6387
|
+
operationId: string;
|
|
6388
|
+
text: string;
|
|
6389
|
+
}[];
|
|
6390
|
+
};
|
|
6391
|
+
/**
|
|
6392
|
+
* Cloudflare's `PiHarness`, leaving Pi closed when the object starts until `started` holds: Pi
|
|
6393
|
+
* creates its tables as it opens, and a thread nobody messaged has no run to resume.
|
|
6394
|
+
*/
|
|
6395
|
+
declare class UntilStartedPiHarness extends PiHarness {
|
|
6396
|
+
#private;
|
|
6397
|
+
constructor(started: () => Promise<boolean>, options: PiHarnessOptions);
|
|
6398
|
+
onStart(context: CapabilityStartContext): Promise<void>;
|
|
6399
|
+
}
|
|
6400
|
+
/**
|
|
6401
|
+
* One thread with Camox's agent, addressed by the thread's own id. Pi Durable runs the agent
|
|
6402
|
+
* through Cloudflare's `PiHarness`, so a run is saved at every step and carries on with no client
|
|
6403
|
+
* connected (ADR 0018).
|
|
6404
|
+
*
|
|
6405
|
+
* The API authorizes every connection before forwarding it here, naming the sender in
|
|
6406
|
+
* `THREAD_SENDER_HEADER`. Each socket gets a snapshot of Pi's agent events, then a batch per
|
|
6407
|
+
* commit; it sends editors' messages and can ask to resync.
|
|
6408
|
+
*
|
|
6409
|
+
* The thread starts with its first message: until then, connecting stores nothing, so opening a
|
|
6410
|
+
* draft leaves no thread behind.
|
|
6411
|
+
*/
|
|
6412
|
+
declare class Thread extends DurableObject<Bindings> {
|
|
6413
|
+
#private;
|
|
6414
|
+
readonly harness: UntilStartedPiHarness;
|
|
6415
|
+
readonly webSockets: WebSockets;
|
|
6416
|
+
readonly lifecycle: Lifecycle<object, object>;
|
|
6417
|
+
/**
|
|
6418
|
+
* Builds the code of the draft `draftId`, the thread's, in its build queue, as a publish of a
|
|
6419
|
+
* head revision whose build is gone asks: the head's tree finds its revision, built again.
|
|
6420
|
+
*/
|
|
6421
|
+
buildForPublish(draftId: string): Promise<BuildResult | null>;
|
|
6422
|
+
/**
|
|
6423
|
+
* Lands a member's checked push `push` on the thread's draft, in its build queue, as `pusher`
|
|
6424
|
+
* pushed it (ADR 0026): once the agent's turn going, if any, made its last commit, and before
|
|
6425
|
+
* the next message. Starts the thread, if nobody messaged it yet, so Camox's merges of `main`
|
|
6426
|
+
* reach the draft. `waiting` hears that the push waits for the turn. A push that landed adds
|
|
6427
|
+
* its entry to the thread: the agent reads it, and doesn't answer it.
|
|
6428
|
+
*/
|
|
6429
|
+
landPush(push: CheckedLanding & {
|
|
6430
|
+
identity: ThreadIdentity;
|
|
6431
|
+
pusher: ThreadSender;
|
|
6432
|
+
}, waiting?: () => Promise<void> | void): Promise<Landing>;
|
|
6433
|
+
/**
|
|
6434
|
+
* Adds the entry of a member's push that landed on the thread's draft, starting the thread if
|
|
6435
|
+
* nobody messaged it yet: who pushed, their commits, and how the pushed head built. The model
|
|
6436
|
+
* reads it as context; it starts no turn.
|
|
6437
|
+
*/
|
|
6438
|
+
notePush(push: {
|
|
6439
|
+
identity: ThreadIdentity;
|
|
6440
|
+
pusher: ThreadSender;
|
|
6441
|
+
subjects: string[];
|
|
6442
|
+
result: BuildResult;
|
|
6443
|
+
}): Promise<void>;
|
|
6444
|
+
/**
|
|
6445
|
+
* Merges the current `main` into the thread's draft, when it has code, as a push to `main`
|
|
6446
|
+
* asks: right away when the agent is idle, or else right after its turn's last commit, before
|
|
6447
|
+
* the next message (`#onYield`). Nothing of it shows in the thread.
|
|
6448
|
+
*/
|
|
6449
|
+
mergeMain(): Promise<MergeEnd | "afterTheTurn" | "noCode">;
|
|
6450
|
+
/**
|
|
6451
|
+
* Builds the code of the thread's draft, as the end of a turn would on its last try, when
|
|
6452
|
+
* Camox's infrastructure failed the last build: changes that don't build are committed as a
|
|
6453
|
+
* revision that isn't built, which blocks publishing. Nothing of it shows in the thread. A
|
|
6454
|
+
* failure on Camox's side again owes the next retry. `busy` while the agent's turn runs: its
|
|
6455
|
+
* end builds.
|
|
6456
|
+
*/
|
|
6457
|
+
retryBuild(): Promise<"built" | "failed" | "busy" | "noCode">;
|
|
6458
|
+
/**
|
|
6459
|
+
* Lifecycle's alarm, which wakes Pi's runs, unless the thread ended: an alarm already on its
|
|
6460
|
+
* way when it did would look for the jobs its storage no longer has.
|
|
6461
|
+
*/
|
|
6462
|
+
alarm(): Promise<void>;
|
|
6463
|
+
/** Gives sockets that outlived the last isolate a new watch and a fresh snapshot. */
|
|
6464
|
+
onStart(): Promise<void>;
|
|
6465
|
+
/**
|
|
6466
|
+
* Shows every socket on a Live thread where the drafts its cards name stand now, as the API
|
|
6467
|
+
* asks once one of them is renamed or ends (ADR 0025). Nothing of it goes in the transcript.
|
|
6468
|
+
*/
|
|
6469
|
+
showDrafts(): Promise<void>;
|
|
6470
|
+
/**
|
|
6471
|
+
* Opens the thread from the API, with no studio connected, as a Live thread handing a request
|
|
6472
|
+
* off to a draft does (ADR 0025): records what it belongs to and the API's origin, adds the
|
|
6473
|
+
* Brief, which the model reads and studios show as from Camox, then the editor's messages
|
|
6474
|
+
* under their name, and starts the agent's run, which acts as that editor. Every message but
|
|
6475
|
+
* the last goes in before the run, the last starting it, so the model reads them all on its
|
|
6476
|
+
* first call. Repeating it changes nothing.
|
|
6477
|
+
*/
|
|
6478
|
+
open({ identity, apiOrigin, brief, editor, messages }: ThreadOpening): Promise<void>;
|
|
6479
|
+
/**
|
|
6480
|
+
* Adds Camox's `note` that the draft `draftId`, which this Live thread started, ended, at the
|
|
6481
|
+
* end of the conversation: right away when the thread is idle, or else at the next break of
|
|
6482
|
+
* the run going, as Pi places a write the model reads. Only the model reads it, and it asks the
|
|
6483
|
+
* model nothing: nothing earlier, nor the system prompt, changes (ADR 0025). Repeating it adds
|
|
6484
|
+
* nothing.
|
|
6485
|
+
*/
|
|
6486
|
+
noteDraftEnded({ draftId, note }: {
|
|
6487
|
+
draftId: string;
|
|
6488
|
+
note: string;
|
|
6489
|
+
}): Promise<void>;
|
|
6490
|
+
/**
|
|
6491
|
+
* Ends the thread with its draft, wiping everything it stored, since Pi can't delete a
|
|
6492
|
+
* conversation yet: the run going stops, and studios still open on it see an empty thread
|
|
6493
|
+
* before their sockets close. The sandbox's object for the thread stores nothing.
|
|
6494
|
+
*
|
|
6495
|
+
* Its draft is gone, but a socket the API forwarded just before may still reach it. So the thread keeps the
|
|
6496
|
+
* record that it ended, and turns away every socket and message after, as its alarm does
|
|
6497
|
+
* nothing: nothing opens Pi again. The object isn't reset, which would fail whatever reached
|
|
6498
|
+
* it next.
|
|
6499
|
+
*/
|
|
6500
|
+
end(): Promise<void>;
|
|
6501
|
+
}
|
|
6502
|
+
//#endregion
|
|
6503
|
+
//#region ../../apps/api/src/domains/code/main-copy.d.ts
|
|
6504
|
+
/** A file of a project's code: its content, or where a symlink points. */
|
|
6505
|
+
type CodeFile = {
|
|
6506
|
+
path: string;
|
|
6507
|
+
content: Uint8Array;
|
|
6508
|
+
} | {
|
|
6509
|
+
path: string;
|
|
6510
|
+
symlink: string;
|
|
6511
|
+
};
|
|
6512
|
+
//#endregion
|
|
6513
|
+
//#region ../../apps/api/src/durable-objects/project-code.d.ts
|
|
6514
|
+
/** What `snapshot` answers: the files only when the caller doesn't already have that commit. */
|
|
6515
|
+
type MainSnapshot = {
|
|
6516
|
+
commit: string;
|
|
6517
|
+
files?: CodeFile[];
|
|
6518
|
+
};
|
|
6519
|
+
/**
|
|
6520
|
+
* A read-only copy of one project's `main`, addressed by its Project ID, which names its repo.
|
|
6521
|
+
* The agent reads the website's code from it on Live, and in a draft without code. A push to
|
|
6522
|
+
* `main` refreshes it (the release Workflow), and a copy that was never made is made on its first
|
|
6523
|
+
* read. It keeps the files in its SQLite, so an eviction doesn't clone again; Git's own directory
|
|
6524
|
+
* isn't kept.
|
|
6525
|
+
*/
|
|
6526
|
+
declare class ProjectCode extends DurableObject<Bindings> {
|
|
6527
|
+
#private;
|
|
6528
|
+
constructor(ctx: DurableObjectState, env: Bindings);
|
|
6529
|
+
/**
|
|
6530
|
+
* Makes the copy match `main`, unless it already holds `commit`, the commit a push moved `main`
|
|
6531
|
+
* to. Returns the commit it holds. One refresh at a time.
|
|
6532
|
+
*/
|
|
6533
|
+
refresh(commit?: string): Promise<string>;
|
|
6534
|
+
/** Deletes the copy, as its project is deleted. */
|
|
6535
|
+
discard(): Promise<void>;
|
|
6536
|
+
/** The commit of `main` the copy holds, without making it if it never was. */
|
|
6537
|
+
commit(): Promise<string | undefined>;
|
|
6538
|
+
/** The copy, made first if it never was; only its commit when it's `known`. */
|
|
6539
|
+
snapshot(known?: string): Promise<MainSnapshot>;
|
|
6540
|
+
}
|
|
6541
|
+
//#endregion
|
|
6542
|
+
//#region ../../apps/api/src/domains/project-creation/workflow.d.ts
|
|
6543
|
+
type ProjectCreationParams = {
|
|
6544
|
+
/** The new project's Project ID, which names its repo. */
|
|
6545
|
+
projectId: string;
|
|
6546
|
+
};
|
|
6547
|
+
//#endregion
|
|
6548
|
+
//#region ../../apps/api/src/domains/project-deletion/workflow.d.ts
|
|
6549
|
+
type ProjectDeletionParams = {
|
|
6550
|
+
/** The deleted project's Project ID, which names its Worker and its repo. */
|
|
6551
|
+
projectId: string;
|
|
6552
|
+
/** The deleted project's name, for the alert: its row is gone. */
|
|
6553
|
+
name: string;
|
|
6554
|
+
/** Its drafts' IDs, which name their working copies and sandboxes: their rows are gone. */
|
|
6555
|
+
drafts?: string[];
|
|
6450
6556
|
};
|
|
6451
6557
|
//#endregion
|
|
6452
6558
|
//#region ../../apps/api/src/domains/upgrades/workflow.d.ts
|
|
@@ -6549,7 +6655,10 @@ type Bindings = {
|
|
|
6549
6655
|
/** The sandbox Worker's Durable Object running code mode scripts, one per thread (ADR 0018). */
|
|
6550
6656
|
CODEMODE_SANDBOX: DurableObjectNamespace<import("@earendil-works/pi-codemode/cloudflare").CodemodeSandboxDurableObject>;
|
|
6551
6657
|
FILES_BUCKET: R2Bucket;
|
|
6552
|
-
/**
|
|
6658
|
+
/**
|
|
6659
|
+
* Project Slug or Custom Domain → Project ID: which project each `<slug>.camox.site` host and
|
|
6660
|
+
* Custom Domain serves (apps/dispatch/README.md).
|
|
6661
|
+
*/
|
|
6553
6662
|
PROJECT_SLUGS: KVNamespace;
|
|
6554
6663
|
MEDIA?: MediaBinding;
|
|
6555
6664
|
/** The `projects` Cloudflare Artifacts namespace: every project's repo, and the Template's. */
|
|
@@ -6985,7 +7094,6 @@ type Person = {
|
|
|
6985
7094
|
//#region ../../apps/api/src/domains/drafts/list.d.ts
|
|
6986
7095
|
type DraftSummary = {
|
|
6987
7096
|
id: string;
|
|
6988
|
-
kind: DraftKind;
|
|
6989
7097
|
name: string | null;
|
|
6990
7098
|
createdBy: Person;
|
|
6991
7099
|
createdAt: number;
|
|
@@ -7078,8 +7186,8 @@ type Owner = {
|
|
|
7078
7186
|
name: string;
|
|
7079
7187
|
title: string;
|
|
7080
7188
|
} | null;
|
|
7081
|
-
/** What a preview can mention: an entity drafts hold,
|
|
7082
|
-
type SubjectKind = EntityKind | "
|
|
7189
|
+
/** What a preview can mention: an entity drafts hold, or its code. */
|
|
7190
|
+
type SubjectKind = EntityKind | "code";
|
|
7083
7191
|
/** An entity as people know it. */
|
|
7084
7192
|
type Subject = {
|
|
7085
7193
|
entity: SubjectKind;
|
|
@@ -7135,7 +7243,7 @@ type LostChange = Subject & InLocale & {
|
|
|
7135
7243
|
reason: (typeof LOSS_REASONS)[number];
|
|
7136
7244
|
};
|
|
7137
7245
|
/** What a blocker or warning is about. */
|
|
7138
|
-
declare const PROBLEM_CODES: readonly ["
|
|
7246
|
+
declare const PROBLEM_CODES: readonly ["codeDoesNotBuild", "codeDoesNotTypeCheck", "codeDoesNotMerge", "emptyRequiredFile", "missingFile", "missingFileBytes", "unacceptedFileType", "duplicatePath", "duplicateRecordPageValue", "emptyRequiredReference", "danglingReference", "danglingPageLink", "wrongKindValue", "missingMetaTitle", "metaTitlePending", "localePrefixTaken", "duplicateLocale", "removedInUse"];
|
|
7139
7247
|
/** A blocker, or the same problem already on Live as a warning, naming what to fix. */
|
|
7140
7248
|
type Problem = Subject & InLocale & ProblemPlace & {
|
|
7141
7249
|
code: (typeof PROBLEM_CODES)[number];
|
|
@@ -7164,8 +7272,7 @@ type PublishPreview = {
|
|
|
7164
7272
|
};
|
|
7165
7273
|
/**
|
|
7166
7274
|
* What publishing did: nothing, for an empty draft, which publishing leaves as is; or how the
|
|
7167
|
-
* draft ended, also when an earlier attempt ended it
|
|
7168
|
-
* open, emptied).
|
|
7275
|
+
* draft ended, also when an earlier attempt ended it.
|
|
7169
7276
|
*/
|
|
7170
7277
|
type PublishResult = {
|
|
7171
7278
|
empty: true;
|
|
@@ -7180,6 +7287,16 @@ type PublishResult = {
|
|
|
7180
7287
|
publishing: true;
|
|
7181
7288
|
};
|
|
7182
7289
|
//#endregion
|
|
7290
|
+
//#region ../../apps/api/src/domains/code-pushes/service.d.ts
|
|
7291
|
+
/** Where a push stands, as it streams to the CLI while the push goes. */
|
|
7292
|
+
type PushStep =
|
|
7293
|
+
/** Its commits are checked against `main` and the draft. */
|
|
7294
|
+
"checking" |
|
|
7295
|
+
/** It waits for the agent's turn going in the draft to end. */
|
|
7296
|
+
"waiting" |
|
|
7297
|
+
/** Its head builds. */
|
|
7298
|
+
"building";
|
|
7299
|
+
//#endregion
|
|
7183
7300
|
//#region ../../apps/api/src/router.d.ts
|
|
7184
7301
|
declare const router: {
|
|
7185
7302
|
projects: {
|
|
@@ -7218,8 +7335,8 @@ declare const router: {
|
|
|
7218
7335
|
studio?: boolean | null | undefined;
|
|
7219
7336
|
};
|
|
7220
7337
|
db: Database;
|
|
7221
|
-
headers: Headers;
|
|
7222
7338
|
env: Bindings;
|
|
7339
|
+
headers: Headers;
|
|
7223
7340
|
client: string;
|
|
7224
7341
|
telemetryDisabled: boolean;
|
|
7225
7342
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -7234,6 +7351,7 @@ declare const router: {
|
|
|
7234
7351
|
id: number;
|
|
7235
7352
|
uuid: string;
|
|
7236
7353
|
slug: string;
|
|
7354
|
+
customDomain: string | null;
|
|
7237
7355
|
name: string;
|
|
7238
7356
|
deployToken: string;
|
|
7239
7357
|
status: import("@camox/api-contract/projects").ProjectStatus;
|
|
@@ -7248,6 +7366,7 @@ declare const router: {
|
|
|
7248
7366
|
publishPushInstanceId: string | null;
|
|
7249
7367
|
publishPushRequestedAt: number | null;
|
|
7250
7368
|
liveScript: string | null;
|
|
7369
|
+
codeOutsideCamox: boolean;
|
|
7251
7370
|
createdAt: number;
|
|
7252
7371
|
updatedAt: number;
|
|
7253
7372
|
}[], {
|
|
@@ -7255,6 +7374,7 @@ declare const router: {
|
|
|
7255
7374
|
id: number;
|
|
7256
7375
|
uuid: string;
|
|
7257
7376
|
slug: string;
|
|
7377
|
+
customDomain: string | null;
|
|
7258
7378
|
name: string;
|
|
7259
7379
|
deployToken: string;
|
|
7260
7380
|
status: import("@camox/api-contract/projects").ProjectStatus;
|
|
@@ -7269,6 +7389,7 @@ declare const router: {
|
|
|
7269
7389
|
publishPushInstanceId: string | null;
|
|
7270
7390
|
publishPushRequestedAt: number | null;
|
|
7271
7391
|
liveScript: string | null;
|
|
7392
|
+
codeOutsideCamox: boolean;
|
|
7272
7393
|
createdAt: number;
|
|
7273
7394
|
updatedAt: number;
|
|
7274
7395
|
}[]>, Record<never, never>, Record<never, never>>;
|
|
@@ -7307,8 +7428,8 @@ declare const router: {
|
|
|
7307
7428
|
studio?: boolean | null | undefined;
|
|
7308
7429
|
};
|
|
7309
7430
|
db: Database;
|
|
7310
|
-
headers: Headers;
|
|
7311
7431
|
env: Bindings;
|
|
7432
|
+
headers: Headers;
|
|
7312
7433
|
client: string;
|
|
7313
7434
|
telemetryDisabled: boolean;
|
|
7314
7435
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -7322,6 +7443,7 @@ declare const router: {
|
|
|
7322
7443
|
id: number;
|
|
7323
7444
|
uuid: string;
|
|
7324
7445
|
slug: string;
|
|
7446
|
+
customDomain: string | null;
|
|
7325
7447
|
name: string;
|
|
7326
7448
|
deployToken: string;
|
|
7327
7449
|
status: import("@camox/api-contract/projects").ProjectStatus;
|
|
@@ -7336,12 +7458,14 @@ declare const router: {
|
|
|
7336
7458
|
publishPushInstanceId: string | null;
|
|
7337
7459
|
publishPushRequestedAt: number | null;
|
|
7338
7460
|
liveScript: string | null;
|
|
7461
|
+
codeOutsideCamox: boolean;
|
|
7339
7462
|
createdAt: number;
|
|
7340
7463
|
updatedAt: number;
|
|
7341
7464
|
}, {
|
|
7342
7465
|
id: number;
|
|
7343
7466
|
uuid: string;
|
|
7344
7467
|
slug: string;
|
|
7468
|
+
customDomain: string | null;
|
|
7345
7469
|
name: string;
|
|
7346
7470
|
deployToken: string;
|
|
7347
7471
|
status: import("@camox/api-contract/projects").ProjectStatus;
|
|
@@ -7356,6 +7480,7 @@ declare const router: {
|
|
|
7356
7480
|
publishPushInstanceId: string | null;
|
|
7357
7481
|
publishPushRequestedAt: number | null;
|
|
7358
7482
|
liveScript: string | null;
|
|
7483
|
+
codeOutsideCamox: boolean;
|
|
7359
7484
|
createdAt: number;
|
|
7360
7485
|
updatedAt: number;
|
|
7361
7486
|
}>, Record<never, never>, Record<never, never>>;
|
|
@@ -7394,8 +7519,8 @@ declare const router: {
|
|
|
7394
7519
|
studio?: boolean | null | undefined;
|
|
7395
7520
|
};
|
|
7396
7521
|
db: Database;
|
|
7397
|
-
headers: Headers;
|
|
7398
7522
|
env: Bindings;
|
|
7523
|
+
headers: Headers;
|
|
7399
7524
|
client: string;
|
|
7400
7525
|
telemetryDisabled: boolean;
|
|
7401
7526
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -7413,6 +7538,7 @@ declare const router: {
|
|
|
7413
7538
|
id: number;
|
|
7414
7539
|
uuid: string;
|
|
7415
7540
|
slug: string;
|
|
7541
|
+
customDomain: string | null;
|
|
7416
7542
|
deployToken: string;
|
|
7417
7543
|
setupStep: import("@camox/api-contract/projects").ProjectSetupStep | null;
|
|
7418
7544
|
createdAt: number;
|
|
@@ -7426,6 +7552,7 @@ declare const router: {
|
|
|
7426
7552
|
publishPushInstanceId: string | null;
|
|
7427
7553
|
publishPushRequestedAt: number | null;
|
|
7428
7554
|
liveScript: string | null;
|
|
7555
|
+
codeOutsideCamox: boolean;
|
|
7429
7556
|
updatedAt: number;
|
|
7430
7557
|
}, {
|
|
7431
7558
|
organizationSlug: string | null;
|
|
@@ -7435,6 +7562,7 @@ declare const router: {
|
|
|
7435
7562
|
id: number;
|
|
7436
7563
|
uuid: string;
|
|
7437
7564
|
slug: string;
|
|
7565
|
+
customDomain: string | null;
|
|
7438
7566
|
deployToken: string;
|
|
7439
7567
|
setupStep: import("@camox/api-contract/projects").ProjectSetupStep | null;
|
|
7440
7568
|
createdAt: number;
|
|
@@ -7448,6 +7576,7 @@ declare const router: {
|
|
|
7448
7576
|
publishPushInstanceId: string | null;
|
|
7449
7577
|
publishPushRequestedAt: number | null;
|
|
7450
7578
|
liveScript: string | null;
|
|
7579
|
+
codeOutsideCamox: boolean;
|
|
7451
7580
|
updatedAt: number;
|
|
7452
7581
|
}>, Record<never, never>, Record<never, never>>;
|
|
7453
7582
|
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>>, {
|
|
@@ -7485,8 +7614,8 @@ declare const router: {
|
|
|
7485
7614
|
studio?: boolean | null | undefined;
|
|
7486
7615
|
};
|
|
7487
7616
|
db: Database;
|
|
7488
|
-
headers: Headers;
|
|
7489
7617
|
env: Bindings;
|
|
7618
|
+
headers: Headers;
|
|
7490
7619
|
client: string;
|
|
7491
7620
|
telemetryDisabled: boolean;
|
|
7492
7621
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -7504,6 +7633,7 @@ declare const router: {
|
|
|
7504
7633
|
id: number;
|
|
7505
7634
|
uuid: string;
|
|
7506
7635
|
slug: string;
|
|
7636
|
+
customDomain: string | null;
|
|
7507
7637
|
deployToken: string;
|
|
7508
7638
|
setupStep: import("@camox/api-contract/projects").ProjectSetupStep | null;
|
|
7509
7639
|
createdAt: number;
|
|
@@ -7517,6 +7647,7 @@ declare const router: {
|
|
|
7517
7647
|
publishPushInstanceId: string | null;
|
|
7518
7648
|
publishPushRequestedAt: number | null;
|
|
7519
7649
|
liveScript: string | null;
|
|
7650
|
+
codeOutsideCamox: boolean;
|
|
7520
7651
|
updatedAt: number;
|
|
7521
7652
|
}, {
|
|
7522
7653
|
organizationSlug: string | null;
|
|
@@ -7526,6 +7657,7 @@ declare const router: {
|
|
|
7526
7657
|
id: number;
|
|
7527
7658
|
uuid: string;
|
|
7528
7659
|
slug: string;
|
|
7660
|
+
customDomain: string | null;
|
|
7529
7661
|
deployToken: string;
|
|
7530
7662
|
setupStep: import("@camox/api-contract/projects").ProjectSetupStep | null;
|
|
7531
7663
|
createdAt: number;
|
|
@@ -7539,6 +7671,7 @@ declare const router: {
|
|
|
7539
7671
|
publishPushInstanceId: string | null;
|
|
7540
7672
|
publishPushRequestedAt: number | null;
|
|
7541
7673
|
liveScript: string | null;
|
|
7674
|
+
codeOutsideCamox: boolean;
|
|
7542
7675
|
updatedAt: number;
|
|
7543
7676
|
}>, Record<never, never>, Record<never, never>>;
|
|
7544
7677
|
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>>, {
|
|
@@ -7593,8 +7726,8 @@ declare const router: {
|
|
|
7593
7726
|
studio?: boolean | null | undefined;
|
|
7594
7727
|
};
|
|
7595
7728
|
db: Database;
|
|
7596
|
-
headers: Headers;
|
|
7597
7729
|
env: Bindings;
|
|
7730
|
+
headers: Headers;
|
|
7598
7731
|
client: string;
|
|
7599
7732
|
telemetryDisabled: boolean;
|
|
7600
7733
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -7612,6 +7745,7 @@ declare const router: {
|
|
|
7612
7745
|
id: number;
|
|
7613
7746
|
uuid: string;
|
|
7614
7747
|
slug: string;
|
|
7748
|
+
customDomain: string | null;
|
|
7615
7749
|
deployToken: string;
|
|
7616
7750
|
setupStep: import("@camox/api-contract/projects").ProjectSetupStep | null;
|
|
7617
7751
|
createdAt: number;
|
|
@@ -7625,6 +7759,7 @@ declare const router: {
|
|
|
7625
7759
|
publishPushInstanceId: string | null;
|
|
7626
7760
|
publishPushRequestedAt: number | null;
|
|
7627
7761
|
liveScript: string | null;
|
|
7762
|
+
codeOutsideCamox: boolean;
|
|
7628
7763
|
updatedAt: number;
|
|
7629
7764
|
}, {
|
|
7630
7765
|
organizationSlug: string | null;
|
|
@@ -7634,6 +7769,7 @@ declare const router: {
|
|
|
7634
7769
|
id: number;
|
|
7635
7770
|
uuid: string;
|
|
7636
7771
|
slug: string;
|
|
7772
|
+
customDomain: string | null;
|
|
7637
7773
|
deployToken: string;
|
|
7638
7774
|
setupStep: import("@camox/api-contract/projects").ProjectSetupStep | null;
|
|
7639
7775
|
createdAt: number;
|
|
@@ -7647,6 +7783,7 @@ declare const router: {
|
|
|
7647
7783
|
publishPushInstanceId: string | null;
|
|
7648
7784
|
publishPushRequestedAt: number | null;
|
|
7649
7785
|
liveScript: string | null;
|
|
7786
|
+
codeOutsideCamox: boolean;
|
|
7650
7787
|
updatedAt: number;
|
|
7651
7788
|
}>, Record<never, never>, Record<never, never>>;
|
|
7652
7789
|
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>>, {
|
|
@@ -7684,8 +7821,8 @@ declare const router: {
|
|
|
7684
7821
|
studio?: boolean | null | undefined;
|
|
7685
7822
|
};
|
|
7686
7823
|
db: Database;
|
|
7687
|
-
headers: Headers;
|
|
7688
7824
|
env: Bindings;
|
|
7825
|
+
headers: Headers;
|
|
7689
7826
|
client: string;
|
|
7690
7827
|
telemetryDisabled: boolean;
|
|
7691
7828
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -7743,8 +7880,8 @@ declare const router: {
|
|
|
7743
7880
|
studio?: boolean | null | undefined;
|
|
7744
7881
|
};
|
|
7745
7882
|
db: Database;
|
|
7746
|
-
headers: Headers;
|
|
7747
7883
|
env: Bindings;
|
|
7884
|
+
headers: Headers;
|
|
7748
7885
|
client: string;
|
|
7749
7886
|
telemetryDisabled: boolean;
|
|
7750
7887
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -7762,6 +7899,7 @@ declare const router: {
|
|
|
7762
7899
|
id: number;
|
|
7763
7900
|
uuid: string;
|
|
7764
7901
|
slug: string;
|
|
7902
|
+
customDomain: string | null;
|
|
7765
7903
|
deployToken: string;
|
|
7766
7904
|
setupStep: import("@camox/api-contract/projects").ProjectSetupStep | null;
|
|
7767
7905
|
createdAt: number;
|
|
@@ -7775,6 +7913,7 @@ declare const router: {
|
|
|
7775
7913
|
publishPushInstanceId: string | null;
|
|
7776
7914
|
publishPushRequestedAt: number | null;
|
|
7777
7915
|
liveScript: string | null;
|
|
7916
|
+
codeOutsideCamox: boolean;
|
|
7778
7917
|
updatedAt: number;
|
|
7779
7918
|
}, {
|
|
7780
7919
|
name: string;
|
|
@@ -7782,6 +7921,7 @@ declare const router: {
|
|
|
7782
7921
|
id: number;
|
|
7783
7922
|
uuid: string;
|
|
7784
7923
|
slug: string;
|
|
7924
|
+
customDomain: string | null;
|
|
7785
7925
|
deployToken: string;
|
|
7786
7926
|
setupStep: import("@camox/api-contract/projects").ProjectSetupStep | null;
|
|
7787
7927
|
createdAt: number;
|
|
@@ -7795,6 +7935,7 @@ declare const router: {
|
|
|
7795
7935
|
publishPushInstanceId: string | null;
|
|
7796
7936
|
publishPushRequestedAt: number | null;
|
|
7797
7937
|
liveScript: string | null;
|
|
7938
|
+
codeOutsideCamox: boolean;
|
|
7798
7939
|
updatedAt: number;
|
|
7799
7940
|
}>, Record<never, never>, Record<never, never>>;
|
|
7800
7941
|
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>>, {
|
|
@@ -7832,8 +7973,8 @@ declare const router: {
|
|
|
7832
7973
|
studio?: boolean | null | undefined;
|
|
7833
7974
|
};
|
|
7834
7975
|
db: Database;
|
|
7835
|
-
headers: Headers;
|
|
7836
7976
|
env: Bindings;
|
|
7977
|
+
headers: Headers;
|
|
7837
7978
|
client: string;
|
|
7838
7979
|
telemetryDisabled: boolean;
|
|
7839
7980
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -7850,6 +7991,7 @@ declare const router: {
|
|
|
7850
7991
|
id: number;
|
|
7851
7992
|
uuid: string;
|
|
7852
7993
|
slug: string;
|
|
7994
|
+
customDomain: string | null;
|
|
7853
7995
|
deployToken: string;
|
|
7854
7996
|
setupStep: import("@camox/api-contract/projects").ProjectSetupStep | null;
|
|
7855
7997
|
createdAt: number;
|
|
@@ -7863,6 +8005,7 @@ declare const router: {
|
|
|
7863
8005
|
publishPushInstanceId: string | null;
|
|
7864
8006
|
publishPushRequestedAt: number | null;
|
|
7865
8007
|
liveScript: string | null;
|
|
8008
|
+
codeOutsideCamox: boolean;
|
|
7866
8009
|
updatedAt: number;
|
|
7867
8010
|
}, {
|
|
7868
8011
|
name: string;
|
|
@@ -7870,6 +8013,7 @@ declare const router: {
|
|
|
7870
8013
|
id: number;
|
|
7871
8014
|
uuid: string;
|
|
7872
8015
|
slug: string;
|
|
8016
|
+
customDomain: string | null;
|
|
7873
8017
|
deployToken: string;
|
|
7874
8018
|
setupStep: import("@camox/api-contract/projects").ProjectSetupStep | null;
|
|
7875
8019
|
createdAt: number;
|
|
@@ -7883,6 +8027,7 @@ declare const router: {
|
|
|
7883
8027
|
publishPushInstanceId: string | null;
|
|
7884
8028
|
publishPushRequestedAt: number | null;
|
|
7885
8029
|
liveScript: string | null;
|
|
8030
|
+
codeOutsideCamox: boolean;
|
|
7886
8031
|
updatedAt: number;
|
|
7887
8032
|
}>, Record<never, never>, Record<never, never>>;
|
|
7888
8033
|
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>>, {
|
|
@@ -7920,8 +8065,8 @@ declare const router: {
|
|
|
7920
8065
|
studio?: boolean | null | undefined;
|
|
7921
8066
|
};
|
|
7922
8067
|
db: Database;
|
|
7923
|
-
headers: Headers;
|
|
7924
8068
|
env: Bindings;
|
|
8069
|
+
headers: Headers;
|
|
7925
8070
|
client: string;
|
|
7926
8071
|
telemetryDisabled: boolean;
|
|
7927
8072
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -7983,8 +8128,8 @@ declare const router: {
|
|
|
7983
8128
|
studio?: boolean | null | undefined;
|
|
7984
8129
|
};
|
|
7985
8130
|
db: Database;
|
|
7986
|
-
headers: Headers;
|
|
7987
8131
|
env: Bindings;
|
|
8132
|
+
headers: Headers;
|
|
7988
8133
|
client: string;
|
|
7989
8134
|
telemetryDisabled: boolean;
|
|
7990
8135
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -8002,7 +8147,7 @@ declare const router: {
|
|
|
8002
8147
|
socialProfiles: string[];
|
|
8003
8148
|
updatedAt: number;
|
|
8004
8149
|
}>, Record<never, never>, Record<never, never>>;
|
|
8005
|
-
|
|
8150
|
+
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>>, {
|
|
8006
8151
|
draft: DraftRequest | null;
|
|
8007
8152
|
locale: string | undefined;
|
|
8008
8153
|
publishingDraft: string | undefined;
|
|
@@ -8037,8 +8182,65 @@ declare const router: {
|
|
|
8037
8182
|
studio?: boolean | null | undefined;
|
|
8038
8183
|
};
|
|
8039
8184
|
db: Database;
|
|
8185
|
+
env: Bindings;
|
|
8040
8186
|
headers: Headers;
|
|
8187
|
+
client: string;
|
|
8188
|
+
telemetryDisabled: boolean;
|
|
8189
|
+
waitUntil: (promise: Promise<unknown>) => void;
|
|
8190
|
+
apiOrigin?: string | undefined;
|
|
8191
|
+
draft: DraftRequest | null;
|
|
8192
|
+
locale: string | undefined;
|
|
8193
|
+
publishingDraft: string | undefined;
|
|
8194
|
+
}>, import("zod").ZodObject<{
|
|
8195
|
+
projectUuid: import("zod").ZodUUID;
|
|
8196
|
+
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
|
|
8197
|
+
remote: any;
|
|
8198
|
+
token: any;
|
|
8199
|
+
expiresAt: any;
|
|
8200
|
+
projectSlug: string;
|
|
8201
|
+
}, {
|
|
8202
|
+
remote: any;
|
|
8203
|
+
token: any;
|
|
8204
|
+
expiresAt: any;
|
|
8205
|
+
projectSlug: string;
|
|
8206
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
8207
|
+
delete: 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>>, {
|
|
8208
|
+
draft: DraftRequest | null;
|
|
8209
|
+
locale: string | undefined;
|
|
8210
|
+
publishingDraft: string | undefined;
|
|
8211
|
+
}>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
8212
|
+
draft: DraftRequest | null;
|
|
8213
|
+
locale: string | undefined;
|
|
8214
|
+
publishingDraft: string | undefined;
|
|
8215
|
+
}>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
8216
|
+
draft: DraftRequest | null;
|
|
8217
|
+
locale: string | undefined;
|
|
8218
|
+
publishingDraft: string | undefined;
|
|
8219
|
+
}>, {
|
|
8220
|
+
user: {
|
|
8221
|
+
id: string;
|
|
8222
|
+
createdAt: Date;
|
|
8223
|
+
updatedAt: Date;
|
|
8224
|
+
email: string;
|
|
8225
|
+
emailVerified: boolean;
|
|
8226
|
+
name: string;
|
|
8227
|
+
image?: string | null | undefined;
|
|
8228
|
+
};
|
|
8229
|
+
session: {
|
|
8230
|
+
id: string;
|
|
8231
|
+
createdAt: Date;
|
|
8232
|
+
updatedAt: Date;
|
|
8233
|
+
userId: string;
|
|
8234
|
+
expiresAt: Date;
|
|
8235
|
+
token: string;
|
|
8236
|
+
ipAddress?: string | null | undefined;
|
|
8237
|
+
userAgent?: string | null | undefined;
|
|
8238
|
+
activeOrganizationId?: string | null | undefined;
|
|
8239
|
+
studio?: boolean | null | undefined;
|
|
8240
|
+
};
|
|
8241
|
+
db: Database;
|
|
8041
8242
|
env: Bindings;
|
|
8243
|
+
headers: Headers;
|
|
8042
8244
|
client: string;
|
|
8043
8245
|
telemetryDisabled: boolean;
|
|
8044
8246
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -8054,6 +8256,7 @@ declare const router: {
|
|
|
8054
8256
|
id: number;
|
|
8055
8257
|
uuid: string;
|
|
8056
8258
|
slug: string;
|
|
8259
|
+
customDomain: string | null;
|
|
8057
8260
|
deployToken: string;
|
|
8058
8261
|
setupStep: import("@camox/api-contract/projects").ProjectSetupStep | null;
|
|
8059
8262
|
createdAt: number;
|
|
@@ -8067,6 +8270,7 @@ declare const router: {
|
|
|
8067
8270
|
publishPushInstanceId: string | null;
|
|
8068
8271
|
publishPushRequestedAt: number | null;
|
|
8069
8272
|
liveScript: string | null;
|
|
8273
|
+
codeOutsideCamox: boolean;
|
|
8070
8274
|
updatedAt: number;
|
|
8071
8275
|
} | undefined, {
|
|
8072
8276
|
name: string;
|
|
@@ -8074,6 +8278,7 @@ declare const router: {
|
|
|
8074
8278
|
id: number;
|
|
8075
8279
|
uuid: string;
|
|
8076
8280
|
slug: string;
|
|
8281
|
+
customDomain: string | null;
|
|
8077
8282
|
deployToken: string;
|
|
8078
8283
|
setupStep: import("@camox/api-contract/projects").ProjectSetupStep | null;
|
|
8079
8284
|
createdAt: number;
|
|
@@ -8087,6 +8292,7 @@ declare const router: {
|
|
|
8087
8292
|
publishPushInstanceId: string | null;
|
|
8088
8293
|
publishPushRequestedAt: number | null;
|
|
8089
8294
|
liveScript: string | null;
|
|
8295
|
+
codeOutsideCamox: boolean;
|
|
8090
8296
|
updatedAt: number;
|
|
8091
8297
|
} | undefined>, Record<never, never>, Record<never, never>>;
|
|
8092
8298
|
};
|
|
@@ -8142,7 +8348,6 @@ declare const router: {
|
|
|
8142
8348
|
afterBlockIds: string[];
|
|
8143
8349
|
} | null;
|
|
8144
8350
|
blocks: (Omit<{
|
|
8145
|
-
type: string;
|
|
8146
8351
|
draftId: string | null;
|
|
8147
8352
|
id: string;
|
|
8148
8353
|
deleted: boolean;
|
|
@@ -8150,6 +8355,7 @@ declare const router: {
|
|
|
8150
8355
|
locale: string;
|
|
8151
8356
|
pageId: string | null;
|
|
8152
8357
|
layoutId: string | null;
|
|
8358
|
+
type: string;
|
|
8153
8359
|
content: unknown;
|
|
8154
8360
|
createdAt: number;
|
|
8155
8361
|
updatedAt: number;
|
|
@@ -8249,7 +8455,6 @@ declare const router: {
|
|
|
8249
8455
|
afterBlockIds: string[];
|
|
8250
8456
|
} | null;
|
|
8251
8457
|
blocks: (Omit<{
|
|
8252
|
-
type: string;
|
|
8253
8458
|
draftId: string | null;
|
|
8254
8459
|
id: string;
|
|
8255
8460
|
deleted: boolean;
|
|
@@ -8257,6 +8462,7 @@ declare const router: {
|
|
|
8257
8462
|
locale: string;
|
|
8258
8463
|
pageId: string | null;
|
|
8259
8464
|
layoutId: string | null;
|
|
8465
|
+
type: string;
|
|
8260
8466
|
content: unknown;
|
|
8261
8467
|
createdAt: number;
|
|
8262
8468
|
updatedAt: number;
|
|
@@ -8736,8 +8942,8 @@ declare const router: {
|
|
|
8736
8942
|
studio?: boolean | null | undefined;
|
|
8737
8943
|
};
|
|
8738
8944
|
db: Database;
|
|
8739
|
-
headers: Headers;
|
|
8740
8945
|
env: Bindings;
|
|
8946
|
+
headers: Headers;
|
|
8741
8947
|
client: string;
|
|
8742
8948
|
telemetryDisabled: boolean;
|
|
8743
8949
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -8772,8 +8978,8 @@ declare const router: {
|
|
|
8772
8978
|
studio?: boolean | null | undefined;
|
|
8773
8979
|
};
|
|
8774
8980
|
db: Database;
|
|
8775
|
-
headers: Headers;
|
|
8776
8981
|
env: Bindings;
|
|
8982
|
+
headers: Headers;
|
|
8777
8983
|
client: string;
|
|
8778
8984
|
telemetryDisabled: boolean;
|
|
8779
8985
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -8882,8 +9088,8 @@ declare const router: {
|
|
|
8882
9088
|
studio?: boolean | null | undefined;
|
|
8883
9089
|
};
|
|
8884
9090
|
db: Database;
|
|
8885
|
-
headers: Headers;
|
|
8886
9091
|
env: Bindings;
|
|
9092
|
+
headers: Headers;
|
|
8887
9093
|
client: string;
|
|
8888
9094
|
telemetryDisabled: boolean;
|
|
8889
9095
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -8918,8 +9124,8 @@ declare const router: {
|
|
|
8918
9124
|
studio?: boolean | null | undefined;
|
|
8919
9125
|
};
|
|
8920
9126
|
db: Database;
|
|
8921
|
-
headers: Headers;
|
|
8922
9127
|
env: Bindings;
|
|
9128
|
+
headers: Headers;
|
|
8923
9129
|
client: string;
|
|
8924
9130
|
telemetryDisabled: boolean;
|
|
8925
9131
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -9020,8 +9226,8 @@ declare const router: {
|
|
|
9020
9226
|
studio?: boolean | null | undefined;
|
|
9021
9227
|
};
|
|
9022
9228
|
db: Database;
|
|
9023
|
-
headers: Headers;
|
|
9024
9229
|
env: Bindings;
|
|
9230
|
+
headers: Headers;
|
|
9025
9231
|
client: string;
|
|
9026
9232
|
telemetryDisabled: boolean;
|
|
9027
9233
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -9056,8 +9262,8 @@ declare const router: {
|
|
|
9056
9262
|
studio?: boolean | null | undefined;
|
|
9057
9263
|
};
|
|
9058
9264
|
db: Database;
|
|
9059
|
-
headers: Headers;
|
|
9060
9265
|
env: Bindings;
|
|
9266
|
+
headers: Headers;
|
|
9061
9267
|
client: string;
|
|
9062
9268
|
telemetryDisabled: boolean;
|
|
9063
9269
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -9155,8 +9361,8 @@ declare const router: {
|
|
|
9155
9361
|
studio?: boolean | null | undefined;
|
|
9156
9362
|
};
|
|
9157
9363
|
db: Database;
|
|
9158
|
-
headers: Headers;
|
|
9159
9364
|
env: Bindings;
|
|
9365
|
+
headers: Headers;
|
|
9160
9366
|
client: string;
|
|
9161
9367
|
telemetryDisabled: boolean;
|
|
9162
9368
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -9191,8 +9397,8 @@ declare const router: {
|
|
|
9191
9397
|
studio?: boolean | null | undefined;
|
|
9192
9398
|
};
|
|
9193
9399
|
db: Database;
|
|
9194
|
-
headers: Headers;
|
|
9195
9400
|
env: Bindings;
|
|
9401
|
+
headers: Headers;
|
|
9196
9402
|
client: string;
|
|
9197
9403
|
telemetryDisabled: boolean;
|
|
9198
9404
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -9293,8 +9499,8 @@ declare const router: {
|
|
|
9293
9499
|
studio?: boolean | null | undefined;
|
|
9294
9500
|
};
|
|
9295
9501
|
db: Database;
|
|
9296
|
-
headers: Headers;
|
|
9297
9502
|
env: Bindings;
|
|
9503
|
+
headers: Headers;
|
|
9298
9504
|
client: string;
|
|
9299
9505
|
telemetryDisabled: boolean;
|
|
9300
9506
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -9329,8 +9535,8 @@ declare const router: {
|
|
|
9329
9535
|
studio?: boolean | null | undefined;
|
|
9330
9536
|
};
|
|
9331
9537
|
db: Database;
|
|
9332
|
-
headers: Headers;
|
|
9333
9538
|
env: Bindings;
|
|
9539
|
+
headers: Headers;
|
|
9334
9540
|
client: string;
|
|
9335
9541
|
telemetryDisabled: boolean;
|
|
9336
9542
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -9427,8 +9633,8 @@ declare const router: {
|
|
|
9427
9633
|
studio?: boolean | null | undefined;
|
|
9428
9634
|
};
|
|
9429
9635
|
db: Database;
|
|
9430
|
-
headers: Headers;
|
|
9431
9636
|
env: Bindings;
|
|
9637
|
+
headers: Headers;
|
|
9432
9638
|
client: string;
|
|
9433
9639
|
telemetryDisabled: boolean;
|
|
9434
9640
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -9499,7 +9705,6 @@ declare const router: {
|
|
|
9499
9705
|
id: import("zod").ZodUUID;
|
|
9500
9706
|
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
|
|
9501
9707
|
block: Omit<{
|
|
9502
|
-
type: string;
|
|
9503
9708
|
draftId: string | null;
|
|
9504
9709
|
id: string;
|
|
9505
9710
|
deleted: boolean;
|
|
@@ -9507,6 +9712,7 @@ declare const router: {
|
|
|
9507
9712
|
locale: string;
|
|
9508
9713
|
pageId: string | null;
|
|
9509
9714
|
layoutId: string | null;
|
|
9715
|
+
type: string;
|
|
9510
9716
|
content: unknown;
|
|
9511
9717
|
createdAt: number;
|
|
9512
9718
|
updatedAt: number;
|
|
@@ -9562,7 +9768,6 @@ declare const router: {
|
|
|
9562
9768
|
files: FileView[];
|
|
9563
9769
|
}, {
|
|
9564
9770
|
block: Omit<{
|
|
9565
|
-
type: string;
|
|
9566
9771
|
draftId: string | null;
|
|
9567
9772
|
id: string;
|
|
9568
9773
|
deleted: boolean;
|
|
@@ -9570,6 +9775,7 @@ declare const router: {
|
|
|
9570
9775
|
locale: string;
|
|
9571
9776
|
pageId: string | null;
|
|
9572
9777
|
layoutId: string | null;
|
|
9778
|
+
type: string;
|
|
9573
9779
|
content: unknown;
|
|
9574
9780
|
createdAt: number;
|
|
9575
9781
|
updatedAt: number;
|
|
@@ -9699,7 +9905,6 @@ declare const router: {
|
|
|
9699
9905
|
type: import("zod").ZodString;
|
|
9700
9906
|
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
|
|
9701
9907
|
block: Omit<{
|
|
9702
|
-
type: string;
|
|
9703
9908
|
draftId: string | null;
|
|
9704
9909
|
id: string;
|
|
9705
9910
|
deleted: boolean;
|
|
@@ -9707,6 +9912,7 @@ declare const router: {
|
|
|
9707
9912
|
locale: string;
|
|
9708
9913
|
pageId: string | null;
|
|
9709
9914
|
layoutId: string | null;
|
|
9915
|
+
type: string;
|
|
9710
9916
|
content: unknown;
|
|
9711
9917
|
createdAt: number;
|
|
9712
9918
|
updatedAt: number;
|
|
@@ -9762,7 +9968,6 @@ declare const router: {
|
|
|
9762
9968
|
files: FileView[];
|
|
9763
9969
|
} | null, {
|
|
9764
9970
|
block: Omit<{
|
|
9765
|
-
type: string;
|
|
9766
9971
|
draftId: string | null;
|
|
9767
9972
|
id: string;
|
|
9768
9973
|
deleted: boolean;
|
|
@@ -9770,6 +9975,7 @@ declare const router: {
|
|
|
9770
9975
|
locale: string;
|
|
9771
9976
|
pageId: string | null;
|
|
9772
9977
|
layoutId: string | null;
|
|
9978
|
+
type: string;
|
|
9773
9979
|
content: unknown;
|
|
9774
9980
|
createdAt: number;
|
|
9775
9981
|
updatedAt: number;
|
|
@@ -9861,8 +10067,8 @@ declare const router: {
|
|
|
9861
10067
|
studio?: boolean | null | undefined;
|
|
9862
10068
|
};
|
|
9863
10069
|
db: Database;
|
|
9864
|
-
headers: Headers;
|
|
9865
10070
|
env: Bindings;
|
|
10071
|
+
headers: Headers;
|
|
9866
10072
|
client: string;
|
|
9867
10073
|
telemetryDisabled: boolean;
|
|
9868
10074
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -9897,8 +10103,8 @@ declare const router: {
|
|
|
9897
10103
|
studio?: boolean | null | undefined;
|
|
9898
10104
|
};
|
|
9899
10105
|
db: Database;
|
|
9900
|
-
headers: Headers;
|
|
9901
10106
|
env: Bindings;
|
|
10107
|
+
headers: Headers;
|
|
9902
10108
|
client: string;
|
|
9903
10109
|
telemetryDisabled: boolean;
|
|
9904
10110
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -9923,7 +10129,6 @@ declare const router: {
|
|
|
9923
10129
|
position: import("zod").ZodString;
|
|
9924
10130
|
}, import("zod/v4/core").$strip>>>;
|
|
9925
10131
|
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<Omit<{
|
|
9926
|
-
type: string;
|
|
9927
10132
|
draftId: string | null;
|
|
9928
10133
|
id: string;
|
|
9929
10134
|
deleted: boolean;
|
|
@@ -9931,6 +10136,7 @@ declare const router: {
|
|
|
9931
10136
|
locale: string;
|
|
9932
10137
|
pageId: string | null;
|
|
9933
10138
|
layoutId: string | null;
|
|
10139
|
+
type: string;
|
|
9934
10140
|
content: unknown;
|
|
9935
10141
|
createdAt: number;
|
|
9936
10142
|
updatedAt: number;
|
|
@@ -9952,7 +10158,6 @@ declare const router: {
|
|
|
9952
10158
|
} & {
|
|
9953
10159
|
warnings?: string[];
|
|
9954
10160
|
}, Omit<{
|
|
9955
|
-
type: string;
|
|
9956
10161
|
draftId: string | null;
|
|
9957
10162
|
id: string;
|
|
9958
10163
|
deleted: boolean;
|
|
@@ -9960,6 +10165,7 @@ declare const router: {
|
|
|
9960
10165
|
locale: string;
|
|
9961
10166
|
pageId: string | null;
|
|
9962
10167
|
layoutId: string | null;
|
|
10168
|
+
type: string;
|
|
9963
10169
|
content: unknown;
|
|
9964
10170
|
createdAt: number;
|
|
9965
10171
|
updatedAt: number;
|
|
@@ -10018,8 +10224,8 @@ declare const router: {
|
|
|
10018
10224
|
studio?: boolean | null | undefined;
|
|
10019
10225
|
};
|
|
10020
10226
|
db: Database;
|
|
10021
|
-
headers: Headers;
|
|
10022
10227
|
env: Bindings;
|
|
10228
|
+
headers: Headers;
|
|
10023
10229
|
client: string;
|
|
10024
10230
|
telemetryDisabled: boolean;
|
|
10025
10231
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -10054,8 +10260,8 @@ declare const router: {
|
|
|
10054
10260
|
studio?: boolean | null | undefined;
|
|
10055
10261
|
};
|
|
10056
10262
|
db: Database;
|
|
10057
|
-
headers: Headers;
|
|
10058
10263
|
env: Bindings;
|
|
10264
|
+
headers: Headers;
|
|
10059
10265
|
client: string;
|
|
10060
10266
|
telemetryDisabled: boolean;
|
|
10061
10267
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -10104,8 +10310,8 @@ declare const router: {
|
|
|
10104
10310
|
studio?: boolean | null | undefined;
|
|
10105
10311
|
};
|
|
10106
10312
|
db: Database;
|
|
10107
|
-
headers: Headers;
|
|
10108
10313
|
env: Bindings;
|
|
10314
|
+
headers: Headers;
|
|
10109
10315
|
client: string;
|
|
10110
10316
|
telemetryDisabled: boolean;
|
|
10111
10317
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -10140,8 +10346,8 @@ declare const router: {
|
|
|
10140
10346
|
studio?: boolean | null | undefined;
|
|
10141
10347
|
};
|
|
10142
10348
|
db: Database;
|
|
10143
|
-
headers: Headers;
|
|
10144
10349
|
env: Bindings;
|
|
10350
|
+
headers: Headers;
|
|
10145
10351
|
client: string;
|
|
10146
10352
|
telemetryDisabled: boolean;
|
|
10147
10353
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -10190,8 +10396,8 @@ declare const router: {
|
|
|
10190
10396
|
studio?: boolean | null | undefined;
|
|
10191
10397
|
};
|
|
10192
10398
|
db: Database;
|
|
10193
|
-
headers: Headers;
|
|
10194
10399
|
env: Bindings;
|
|
10400
|
+
headers: Headers;
|
|
10195
10401
|
client: string;
|
|
10196
10402
|
telemetryDisabled: boolean;
|
|
10197
10403
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -10226,8 +10432,8 @@ declare const router: {
|
|
|
10226
10432
|
studio?: boolean | null | undefined;
|
|
10227
10433
|
};
|
|
10228
10434
|
db: Database;
|
|
10229
|
-
headers: Headers;
|
|
10230
10435
|
env: Bindings;
|
|
10436
|
+
headers: Headers;
|
|
10231
10437
|
client: string;
|
|
10232
10438
|
telemetryDisabled: boolean;
|
|
10233
10439
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -10277,8 +10483,8 @@ declare const router: {
|
|
|
10277
10483
|
studio?: boolean | null | undefined;
|
|
10278
10484
|
};
|
|
10279
10485
|
db: Database;
|
|
10280
|
-
headers: Headers;
|
|
10281
10486
|
env: Bindings;
|
|
10487
|
+
headers: Headers;
|
|
10282
10488
|
client: string;
|
|
10283
10489
|
telemetryDisabled: boolean;
|
|
10284
10490
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -10313,8 +10519,8 @@ declare const router: {
|
|
|
10313
10519
|
studio?: boolean | null | undefined;
|
|
10314
10520
|
};
|
|
10315
10521
|
db: Database;
|
|
10316
|
-
headers: Headers;
|
|
10317
10522
|
env: Bindings;
|
|
10523
|
+
headers: Headers;
|
|
10318
10524
|
client: string;
|
|
10319
10525
|
telemetryDisabled: boolean;
|
|
10320
10526
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -10362,8 +10568,8 @@ declare const router: {
|
|
|
10362
10568
|
studio?: boolean | null | undefined;
|
|
10363
10569
|
};
|
|
10364
10570
|
db: Database;
|
|
10365
|
-
headers: Headers;
|
|
10366
10571
|
env: Bindings;
|
|
10572
|
+
headers: Headers;
|
|
10367
10573
|
client: string;
|
|
10368
10574
|
telemetryDisabled: boolean;
|
|
10369
10575
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -10398,8 +10604,8 @@ declare const router: {
|
|
|
10398
10604
|
studio?: boolean | null | undefined;
|
|
10399
10605
|
};
|
|
10400
10606
|
db: Database;
|
|
10401
|
-
headers: Headers;
|
|
10402
10607
|
env: Bindings;
|
|
10608
|
+
headers: Headers;
|
|
10403
10609
|
client: string;
|
|
10404
10610
|
telemetryDisabled: boolean;
|
|
10405
10611
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -10445,8 +10651,8 @@ declare const router: {
|
|
|
10445
10651
|
studio?: boolean | null | undefined;
|
|
10446
10652
|
};
|
|
10447
10653
|
db: Database;
|
|
10448
|
-
headers: Headers;
|
|
10449
10654
|
env: Bindings;
|
|
10655
|
+
headers: Headers;
|
|
10450
10656
|
client: string;
|
|
10451
10657
|
telemetryDisabled: boolean;
|
|
10452
10658
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -10494,8 +10700,8 @@ declare const router: {
|
|
|
10494
10700
|
studio?: boolean | null | undefined;
|
|
10495
10701
|
};
|
|
10496
10702
|
db: Database;
|
|
10497
|
-
headers: Headers;
|
|
10498
10703
|
env: Bindings;
|
|
10704
|
+
headers: Headers;
|
|
10499
10705
|
client: string;
|
|
10500
10706
|
telemetryDisabled: boolean;
|
|
10501
10707
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -10530,8 +10736,8 @@ declare const router: {
|
|
|
10530
10736
|
studio?: boolean | null | undefined;
|
|
10531
10737
|
};
|
|
10532
10738
|
db: Database;
|
|
10533
|
-
headers: Headers;
|
|
10534
10739
|
env: Bindings;
|
|
10740
|
+
headers: Headers;
|
|
10535
10741
|
client: string;
|
|
10536
10742
|
telemetryDisabled: boolean;
|
|
10537
10743
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -10567,7 +10773,6 @@ declare const router: {
|
|
|
10567
10773
|
afterBlockIds: string[];
|
|
10568
10774
|
};
|
|
10569
10775
|
blocks: (Omit<{
|
|
10570
|
-
type: string;
|
|
10571
10776
|
draftId: string | null;
|
|
10572
10777
|
id: string;
|
|
10573
10778
|
deleted: boolean;
|
|
@@ -10575,6 +10780,7 @@ declare const router: {
|
|
|
10575
10780
|
locale: string;
|
|
10576
10781
|
pageId: string | null;
|
|
10577
10782
|
layoutId: string | null;
|
|
10783
|
+
type: string;
|
|
10578
10784
|
content: unknown;
|
|
10579
10785
|
createdAt: number;
|
|
10580
10786
|
updatedAt: number;
|
|
@@ -10646,7 +10852,6 @@ declare const router: {
|
|
|
10646
10852
|
afterBlockIds: string[];
|
|
10647
10853
|
};
|
|
10648
10854
|
blocks: (Omit<{
|
|
10649
|
-
type: string;
|
|
10650
10855
|
draftId: string | null;
|
|
10651
10856
|
id: string;
|
|
10652
10857
|
deleted: boolean;
|
|
@@ -10654,6 +10859,7 @@ declare const router: {
|
|
|
10654
10859
|
locale: string;
|
|
10655
10860
|
pageId: string | null;
|
|
10656
10861
|
layoutId: string | null;
|
|
10862
|
+
type: string;
|
|
10657
10863
|
content: unknown;
|
|
10658
10864
|
createdAt: number;
|
|
10659
10865
|
updatedAt: number;
|
|
@@ -10791,8 +10997,8 @@ declare const router: {
|
|
|
10791
10997
|
studio?: boolean | null | undefined;
|
|
10792
10998
|
};
|
|
10793
10999
|
db: Database;
|
|
10794
|
-
headers: Headers;
|
|
10795
11000
|
env: Bindings;
|
|
11001
|
+
headers: Headers;
|
|
10796
11002
|
client: string;
|
|
10797
11003
|
telemetryDisabled: boolean;
|
|
10798
11004
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -10827,8 +11033,8 @@ declare const router: {
|
|
|
10827
11033
|
studio?: boolean | null | undefined;
|
|
10828
11034
|
};
|
|
10829
11035
|
db: Database;
|
|
10830
|
-
headers: Headers;
|
|
10831
11036
|
env: Bindings;
|
|
11037
|
+
headers: Headers;
|
|
10832
11038
|
client: string;
|
|
10833
11039
|
telemetryDisabled: boolean;
|
|
10834
11040
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -10877,8 +11083,8 @@ declare const router: {
|
|
|
10877
11083
|
studio?: boolean | null | undefined;
|
|
10878
11084
|
};
|
|
10879
11085
|
db: Database;
|
|
10880
|
-
headers: Headers;
|
|
10881
11086
|
env: Bindings;
|
|
11087
|
+
headers: Headers;
|
|
10882
11088
|
client: string;
|
|
10883
11089
|
telemetryDisabled: boolean;
|
|
10884
11090
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -10913,8 +11119,8 @@ declare const router: {
|
|
|
10913
11119
|
studio?: boolean | null | undefined;
|
|
10914
11120
|
};
|
|
10915
11121
|
db: Database;
|
|
10916
|
-
headers: Headers;
|
|
10917
11122
|
env: Bindings;
|
|
11123
|
+
headers: Headers;
|
|
10918
11124
|
client: string;
|
|
10919
11125
|
telemetryDisabled: boolean;
|
|
10920
11126
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -10961,8 +11167,8 @@ declare const router: {
|
|
|
10961
11167
|
studio?: boolean | null | undefined;
|
|
10962
11168
|
};
|
|
10963
11169
|
db: Database;
|
|
10964
|
-
headers: Headers;
|
|
10965
11170
|
env: Bindings;
|
|
11171
|
+
headers: Headers;
|
|
10966
11172
|
client: string;
|
|
10967
11173
|
telemetryDisabled: boolean;
|
|
10968
11174
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -11009,8 +11215,8 @@ declare const router: {
|
|
|
11009
11215
|
studio?: boolean | null | undefined;
|
|
11010
11216
|
};
|
|
11011
11217
|
db: Database;
|
|
11012
|
-
headers: Headers;
|
|
11013
11218
|
env: Bindings;
|
|
11219
|
+
headers: Headers;
|
|
11014
11220
|
client: string;
|
|
11015
11221
|
telemetryDisabled: boolean;
|
|
11016
11222
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -11064,8 +11270,8 @@ declare const router: {
|
|
|
11064
11270
|
studio?: boolean | null | undefined;
|
|
11065
11271
|
};
|
|
11066
11272
|
db: Database;
|
|
11067
|
-
headers: Headers;
|
|
11068
11273
|
env: Bindings;
|
|
11274
|
+
headers: Headers;
|
|
11069
11275
|
client: string;
|
|
11070
11276
|
telemetryDisabled: boolean;
|
|
11071
11277
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -11100,8 +11306,8 @@ declare const router: {
|
|
|
11100
11306
|
studio?: boolean | null | undefined;
|
|
11101
11307
|
};
|
|
11102
11308
|
db: Database;
|
|
11103
|
-
headers: Headers;
|
|
11104
11309
|
env: Bindings;
|
|
11310
|
+
headers: Headers;
|
|
11105
11311
|
client: string;
|
|
11106
11312
|
telemetryDisabled: boolean;
|
|
11107
11313
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -11132,10 +11338,10 @@ declare const router: {
|
|
|
11132
11338
|
}>, import("zod").ZodObject<{
|
|
11133
11339
|
projectId: import("zod").ZodNumber;
|
|
11134
11340
|
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<FileView<{
|
|
11135
|
-
path: string;
|
|
11136
11341
|
draftId: string | null;
|
|
11137
11342
|
id: string;
|
|
11138
11343
|
deleted: boolean;
|
|
11344
|
+
path: string;
|
|
11139
11345
|
createdAt: number;
|
|
11140
11346
|
updatedAt: number;
|
|
11141
11347
|
projectId: number;
|
|
@@ -11156,10 +11362,10 @@ declare const router: {
|
|
|
11156
11362
|
height: number | null;
|
|
11157
11363
|
blobId: string;
|
|
11158
11364
|
}>[], FileView<{
|
|
11159
|
-
path: string;
|
|
11160
11365
|
draftId: string | null;
|
|
11161
11366
|
id: string;
|
|
11162
11367
|
deleted: boolean;
|
|
11368
|
+
path: string;
|
|
11163
11369
|
createdAt: number;
|
|
11164
11370
|
updatedAt: number;
|
|
11165
11371
|
projectId: number;
|
|
@@ -11187,10 +11393,10 @@ declare const router: {
|
|
|
11187
11393
|
}>, import("zod").ZodObject<{
|
|
11188
11394
|
id: import("zod").ZodUUID;
|
|
11189
11395
|
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<FileView<{
|
|
11190
|
-
path: string;
|
|
11191
11396
|
draftId: string | null;
|
|
11192
11397
|
id: string;
|
|
11193
11398
|
deleted: boolean;
|
|
11399
|
+
path: string;
|
|
11194
11400
|
createdAt: number;
|
|
11195
11401
|
updatedAt: number;
|
|
11196
11402
|
projectId: number;
|
|
@@ -11211,10 +11417,10 @@ declare const router: {
|
|
|
11211
11417
|
height: number | null;
|
|
11212
11418
|
blobId: string;
|
|
11213
11419
|
}>, FileView<{
|
|
11214
|
-
path: string;
|
|
11215
11420
|
draftId: string | null;
|
|
11216
11421
|
id: string;
|
|
11217
11422
|
deleted: boolean;
|
|
11423
|
+
path: string;
|
|
11218
11424
|
createdAt: number;
|
|
11219
11425
|
updatedAt: number;
|
|
11220
11426
|
projectId: number;
|
|
@@ -11283,8 +11489,8 @@ declare const router: {
|
|
|
11283
11489
|
studio?: boolean | null | undefined;
|
|
11284
11490
|
};
|
|
11285
11491
|
db: Database;
|
|
11286
|
-
headers: Headers;
|
|
11287
11492
|
env: Bindings;
|
|
11493
|
+
headers: Headers;
|
|
11288
11494
|
client: string;
|
|
11289
11495
|
telemetryDisabled: boolean;
|
|
11290
11496
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -11319,8 +11525,8 @@ declare const router: {
|
|
|
11319
11525
|
studio?: boolean | null | undefined;
|
|
11320
11526
|
};
|
|
11321
11527
|
db: Database;
|
|
11322
|
-
headers: Headers;
|
|
11323
11528
|
env: Bindings;
|
|
11529
|
+
headers: Headers;
|
|
11324
11530
|
client: string;
|
|
11325
11531
|
telemetryDisabled: boolean;
|
|
11326
11532
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -11332,10 +11538,10 @@ declare const router: {
|
|
|
11332
11538
|
id: import("zod").ZodUUID;
|
|
11333
11539
|
alt: import("zod").ZodString;
|
|
11334
11540
|
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<FileView<{
|
|
11335
|
-
path: string;
|
|
11336
11541
|
draftId: string | null;
|
|
11337
11542
|
id: string;
|
|
11338
11543
|
deleted: boolean;
|
|
11544
|
+
path: string;
|
|
11339
11545
|
createdAt: number;
|
|
11340
11546
|
updatedAt: number;
|
|
11341
11547
|
projectId: number;
|
|
@@ -11356,10 +11562,10 @@ declare const router: {
|
|
|
11356
11562
|
height: number | null;
|
|
11357
11563
|
blobId: string;
|
|
11358
11564
|
}>, FileView<{
|
|
11359
|
-
path: string;
|
|
11360
11565
|
draftId: string | null;
|
|
11361
11566
|
id: string;
|
|
11362
11567
|
deleted: boolean;
|
|
11568
|
+
path: string;
|
|
11363
11569
|
createdAt: number;
|
|
11364
11570
|
updatedAt: number;
|
|
11365
11571
|
projectId: number;
|
|
@@ -11417,8 +11623,8 @@ declare const router: {
|
|
|
11417
11623
|
studio?: boolean | null | undefined;
|
|
11418
11624
|
};
|
|
11419
11625
|
db: Database;
|
|
11420
|
-
headers: Headers;
|
|
11421
11626
|
env: Bindings;
|
|
11627
|
+
headers: Headers;
|
|
11422
11628
|
client: string;
|
|
11423
11629
|
telemetryDisabled: boolean;
|
|
11424
11630
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -11453,8 +11659,8 @@ declare const router: {
|
|
|
11453
11659
|
studio?: boolean | null | undefined;
|
|
11454
11660
|
};
|
|
11455
11661
|
db: Database;
|
|
11456
|
-
headers: Headers;
|
|
11457
11662
|
env: Bindings;
|
|
11663
|
+
headers: Headers;
|
|
11458
11664
|
client: string;
|
|
11459
11665
|
telemetryDisabled: boolean;
|
|
11460
11666
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -11466,10 +11672,10 @@ declare const router: {
|
|
|
11466
11672
|
id: import("zod").ZodUUID;
|
|
11467
11673
|
filename: import("zod").ZodString;
|
|
11468
11674
|
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<FileView<{
|
|
11469
|
-
path: string;
|
|
11470
11675
|
draftId: string | null;
|
|
11471
11676
|
id: string;
|
|
11472
11677
|
deleted: boolean;
|
|
11678
|
+
path: string;
|
|
11473
11679
|
createdAt: number;
|
|
11474
11680
|
updatedAt: number;
|
|
11475
11681
|
projectId: number;
|
|
@@ -11490,10 +11696,10 @@ declare const router: {
|
|
|
11490
11696
|
height: number | null;
|
|
11491
11697
|
blobId: string;
|
|
11492
11698
|
}>, FileView<{
|
|
11493
|
-
path: string;
|
|
11494
11699
|
draftId: string | null;
|
|
11495
11700
|
id: string;
|
|
11496
11701
|
deleted: boolean;
|
|
11702
|
+
path: string;
|
|
11497
11703
|
createdAt: number;
|
|
11498
11704
|
updatedAt: number;
|
|
11499
11705
|
projectId: number;
|
|
@@ -11551,8 +11757,8 @@ declare const router: {
|
|
|
11551
11757
|
studio?: boolean | null | undefined;
|
|
11552
11758
|
};
|
|
11553
11759
|
db: Database;
|
|
11554
|
-
headers: Headers;
|
|
11555
11760
|
env: Bindings;
|
|
11761
|
+
headers: Headers;
|
|
11556
11762
|
client: string;
|
|
11557
11763
|
telemetryDisabled: boolean;
|
|
11558
11764
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -11587,8 +11793,8 @@ declare const router: {
|
|
|
11587
11793
|
studio?: boolean | null | undefined;
|
|
11588
11794
|
};
|
|
11589
11795
|
db: Database;
|
|
11590
|
-
headers: Headers;
|
|
11591
11796
|
env: Bindings;
|
|
11797
|
+
headers: Headers;
|
|
11592
11798
|
client: string;
|
|
11593
11799
|
telemetryDisabled: boolean;
|
|
11594
11800
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -11599,10 +11805,10 @@ declare const router: {
|
|
|
11599
11805
|
}>, Record<never, never>>, import("zod").ZodObject<{
|
|
11600
11806
|
id: import("zod").ZodUUID;
|
|
11601
11807
|
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
|
|
11602
|
-
path: string;
|
|
11603
11808
|
draftId: string | null;
|
|
11604
11809
|
id: string;
|
|
11605
11810
|
deleted: boolean;
|
|
11811
|
+
path: string;
|
|
11606
11812
|
createdAt: number;
|
|
11607
11813
|
updatedAt: number;
|
|
11608
11814
|
projectId: number;
|
|
@@ -11623,10 +11829,10 @@ declare const router: {
|
|
|
11623
11829
|
height: number | null;
|
|
11624
11830
|
blobId: string;
|
|
11625
11831
|
}, {
|
|
11626
|
-
path: string;
|
|
11627
11832
|
draftId: string | null;
|
|
11628
11833
|
id: string;
|
|
11629
11834
|
deleted: boolean;
|
|
11835
|
+
path: string;
|
|
11630
11836
|
createdAt: number;
|
|
11631
11837
|
updatedAt: number;
|
|
11632
11838
|
projectId: number;
|
|
@@ -11684,8 +11890,8 @@ declare const router: {
|
|
|
11684
11890
|
studio?: boolean | null | undefined;
|
|
11685
11891
|
};
|
|
11686
11892
|
db: Database;
|
|
11687
|
-
headers: Headers;
|
|
11688
11893
|
env: Bindings;
|
|
11894
|
+
headers: Headers;
|
|
11689
11895
|
client: string;
|
|
11690
11896
|
telemetryDisabled: boolean;
|
|
11691
11897
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -11720,8 +11926,8 @@ declare const router: {
|
|
|
11720
11926
|
studio?: boolean | null | undefined;
|
|
11721
11927
|
};
|
|
11722
11928
|
db: Database;
|
|
11723
|
-
headers: Headers;
|
|
11724
11929
|
env: Bindings;
|
|
11930
|
+
headers: Headers;
|
|
11725
11931
|
client: string;
|
|
11726
11932
|
telemetryDisabled: boolean;
|
|
11727
11933
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -11769,8 +11975,8 @@ declare const router: {
|
|
|
11769
11975
|
studio?: boolean | null | undefined;
|
|
11770
11976
|
};
|
|
11771
11977
|
db: Database;
|
|
11772
|
-
headers: Headers;
|
|
11773
11978
|
env: Bindings;
|
|
11979
|
+
headers: Headers;
|
|
11774
11980
|
client: string;
|
|
11775
11981
|
telemetryDisabled: boolean;
|
|
11776
11982
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -11805,8 +12011,8 @@ declare const router: {
|
|
|
11805
12011
|
studio?: boolean | null | undefined;
|
|
11806
12012
|
};
|
|
11807
12013
|
db: Database;
|
|
11808
|
-
headers: Headers;
|
|
11809
12014
|
env: Bindings;
|
|
12015
|
+
headers: Headers;
|
|
11810
12016
|
client: string;
|
|
11811
12017
|
telemetryDisabled: boolean;
|
|
11812
12018
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -11818,10 +12024,10 @@ declare const router: {
|
|
|
11818
12024
|
id: import("zod").ZodUUID;
|
|
11819
12025
|
enabled: import("zod").ZodBoolean;
|
|
11820
12026
|
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<FileView<{
|
|
11821
|
-
path: string;
|
|
11822
12027
|
draftId: string | null;
|
|
11823
12028
|
id: string;
|
|
11824
12029
|
deleted: boolean;
|
|
12030
|
+
path: string;
|
|
11825
12031
|
createdAt: number;
|
|
11826
12032
|
updatedAt: number;
|
|
11827
12033
|
projectId: number;
|
|
@@ -11842,10 +12048,10 @@ declare const router: {
|
|
|
11842
12048
|
height: number | null;
|
|
11843
12049
|
blobId: string;
|
|
11844
12050
|
}>, FileView<{
|
|
11845
|
-
path: string;
|
|
11846
12051
|
draftId: string | null;
|
|
11847
12052
|
id: string;
|
|
11848
12053
|
deleted: boolean;
|
|
12054
|
+
path: string;
|
|
11849
12055
|
createdAt: number;
|
|
11850
12056
|
updatedAt: number;
|
|
11851
12057
|
projectId: number;
|
|
@@ -11901,8 +12107,8 @@ declare const router: {
|
|
|
11901
12107
|
studio?: boolean | null | undefined;
|
|
11902
12108
|
};
|
|
11903
12109
|
db: Database;
|
|
11904
|
-
headers: Headers;
|
|
11905
12110
|
env: Bindings;
|
|
12111
|
+
headers: Headers;
|
|
11906
12112
|
client: string;
|
|
11907
12113
|
telemetryDisabled: boolean;
|
|
11908
12114
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -11913,10 +12119,10 @@ declare const router: {
|
|
|
11913
12119
|
}>, import("zod").ZodObject<{
|
|
11914
12120
|
id: import("zod").ZodUUID;
|
|
11915
12121
|
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<FileView<{
|
|
11916
|
-
path: string;
|
|
11917
12122
|
draftId: string | null;
|
|
11918
12123
|
id: string;
|
|
11919
12124
|
deleted: boolean;
|
|
12125
|
+
path: string;
|
|
11920
12126
|
createdAt: number;
|
|
11921
12127
|
updatedAt: number;
|
|
11922
12128
|
projectId: number;
|
|
@@ -11937,10 +12143,10 @@ declare const router: {
|
|
|
11937
12143
|
height: number | null;
|
|
11938
12144
|
blobId: string;
|
|
11939
12145
|
}> | undefined, FileView<{
|
|
11940
|
-
path: string;
|
|
11941
12146
|
draftId: string | null;
|
|
11942
12147
|
id: string;
|
|
11943
12148
|
deleted: boolean;
|
|
12149
|
+
path: string;
|
|
11944
12150
|
createdAt: number;
|
|
11945
12151
|
updatedAt: number;
|
|
11946
12152
|
projectId: number;
|
|
@@ -12067,8 +12273,8 @@ declare const router: {
|
|
|
12067
12273
|
studio?: boolean | null | undefined;
|
|
12068
12274
|
};
|
|
12069
12275
|
db: Database;
|
|
12070
|
-
headers: Headers;
|
|
12071
12276
|
env: Bindings;
|
|
12277
|
+
headers: Headers;
|
|
12072
12278
|
client: string;
|
|
12073
12279
|
telemetryDisabled: boolean;
|
|
12074
12280
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -12103,8 +12309,8 @@ declare const router: {
|
|
|
12103
12309
|
studio?: boolean | null | undefined;
|
|
12104
12310
|
};
|
|
12105
12311
|
db: Database;
|
|
12106
|
-
headers: Headers;
|
|
12107
12312
|
env: Bindings;
|
|
12313
|
+
headers: Headers;
|
|
12108
12314
|
client: string;
|
|
12109
12315
|
telemetryDisabled: boolean;
|
|
12110
12316
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -12212,8 +12418,8 @@ declare const router: {
|
|
|
12212
12418
|
studio?: boolean | null | undefined;
|
|
12213
12419
|
};
|
|
12214
12420
|
db: Database;
|
|
12215
|
-
headers: Headers;
|
|
12216
12421
|
env: Bindings;
|
|
12422
|
+
headers: Headers;
|
|
12217
12423
|
client: string;
|
|
12218
12424
|
telemetryDisabled: boolean;
|
|
12219
12425
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -12248,8 +12454,8 @@ declare const router: {
|
|
|
12248
12454
|
studio?: boolean | null | undefined;
|
|
12249
12455
|
};
|
|
12250
12456
|
db: Database;
|
|
12251
|
-
headers: Headers;
|
|
12252
12457
|
env: Bindings;
|
|
12458
|
+
headers: Headers;
|
|
12253
12459
|
client: string;
|
|
12254
12460
|
telemetryDisabled: boolean;
|
|
12255
12461
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -12344,8 +12550,8 @@ declare const router: {
|
|
|
12344
12550
|
studio?: boolean | null | undefined;
|
|
12345
12551
|
};
|
|
12346
12552
|
db: Database;
|
|
12347
|
-
headers: Headers;
|
|
12348
12553
|
env: Bindings;
|
|
12554
|
+
headers: Headers;
|
|
12349
12555
|
client: string;
|
|
12350
12556
|
telemetryDisabled: boolean;
|
|
12351
12557
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -12380,8 +12586,8 @@ declare const router: {
|
|
|
12380
12586
|
studio?: boolean | null | undefined;
|
|
12381
12587
|
};
|
|
12382
12588
|
db: Database;
|
|
12383
|
-
headers: Headers;
|
|
12384
12589
|
env: Bindings;
|
|
12590
|
+
headers: Headers;
|
|
12385
12591
|
client: string;
|
|
12386
12592
|
telemetryDisabled: boolean;
|
|
12387
12593
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -12476,8 +12682,8 @@ declare const router: {
|
|
|
12476
12682
|
studio?: boolean | null | undefined;
|
|
12477
12683
|
};
|
|
12478
12684
|
db: Database;
|
|
12479
|
-
headers: Headers;
|
|
12480
12685
|
env: Bindings;
|
|
12686
|
+
headers: Headers;
|
|
12481
12687
|
client: string;
|
|
12482
12688
|
telemetryDisabled: boolean;
|
|
12483
12689
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -12512,8 +12718,8 @@ declare const router: {
|
|
|
12512
12718
|
studio?: boolean | null | undefined;
|
|
12513
12719
|
};
|
|
12514
12720
|
db: Database;
|
|
12515
|
-
headers: Headers;
|
|
12516
12721
|
env: Bindings;
|
|
12722
|
+
headers: Headers;
|
|
12517
12723
|
client: string;
|
|
12518
12724
|
telemetryDisabled: boolean;
|
|
12519
12725
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -12609,8 +12815,8 @@ declare const router: {
|
|
|
12609
12815
|
studio?: boolean | null | undefined;
|
|
12610
12816
|
};
|
|
12611
12817
|
db: Database;
|
|
12612
|
-
headers: Headers;
|
|
12613
12818
|
env: Bindings;
|
|
12819
|
+
headers: Headers;
|
|
12614
12820
|
client: string;
|
|
12615
12821
|
telemetryDisabled: boolean;
|
|
12616
12822
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -12645,8 +12851,8 @@ declare const router: {
|
|
|
12645
12851
|
studio?: boolean | null | undefined;
|
|
12646
12852
|
};
|
|
12647
12853
|
db: Database;
|
|
12648
|
-
headers: Headers;
|
|
12649
12854
|
env: Bindings;
|
|
12855
|
+
headers: Headers;
|
|
12650
12856
|
client: string;
|
|
12651
12857
|
telemetryDisabled: boolean;
|
|
12652
12858
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -12738,8 +12944,8 @@ declare const router: {
|
|
|
12738
12944
|
studio?: boolean | null | undefined;
|
|
12739
12945
|
};
|
|
12740
12946
|
db: Database;
|
|
12741
|
-
headers: Headers;
|
|
12742
12947
|
env: Bindings;
|
|
12948
|
+
headers: Headers;
|
|
12743
12949
|
client: string;
|
|
12744
12950
|
telemetryDisabled: boolean;
|
|
12745
12951
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -12833,8 +13039,8 @@ declare const router: {
|
|
|
12833
13039
|
studio?: boolean | null | undefined;
|
|
12834
13040
|
};
|
|
12835
13041
|
db: Database;
|
|
12836
|
-
headers: Headers;
|
|
12837
13042
|
env: Bindings;
|
|
13043
|
+
headers: Headers;
|
|
12838
13044
|
client: string;
|
|
12839
13045
|
telemetryDisabled: boolean;
|
|
12840
13046
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -12869,8 +13075,8 @@ declare const router: {
|
|
|
12869
13075
|
studio?: boolean | null | undefined;
|
|
12870
13076
|
};
|
|
12871
13077
|
db: Database;
|
|
12872
|
-
headers: Headers;
|
|
12873
13078
|
env: Bindings;
|
|
13079
|
+
headers: Headers;
|
|
12874
13080
|
client: string;
|
|
12875
13081
|
telemetryDisabled: boolean;
|
|
12876
13082
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -13005,8 +13211,8 @@ declare const router: {
|
|
|
13005
13211
|
studio?: boolean | null | undefined;
|
|
13006
13212
|
};
|
|
13007
13213
|
db: Database;
|
|
13008
|
-
headers: Headers;
|
|
13009
13214
|
env: Bindings;
|
|
13215
|
+
headers: Headers;
|
|
13010
13216
|
client: string;
|
|
13011
13217
|
telemetryDisabled: boolean;
|
|
13012
13218
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -13064,8 +13270,8 @@ declare const router: {
|
|
|
13064
13270
|
studio?: boolean | null | undefined;
|
|
13065
13271
|
};
|
|
13066
13272
|
db: Database;
|
|
13067
|
-
headers: Headers;
|
|
13068
13273
|
env: Bindings;
|
|
13274
|
+
headers: Headers;
|
|
13069
13275
|
client: string;
|
|
13070
13276
|
telemetryDisabled: boolean;
|
|
13071
13277
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -13126,8 +13332,8 @@ declare const router: {
|
|
|
13126
13332
|
studio?: boolean | null | undefined;
|
|
13127
13333
|
};
|
|
13128
13334
|
db: Database;
|
|
13129
|
-
headers: Headers;
|
|
13130
13335
|
env: Bindings;
|
|
13336
|
+
headers: Headers;
|
|
13131
13337
|
client: string;
|
|
13132
13338
|
telemetryDisabled: boolean;
|
|
13133
13339
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -13184,8 +13390,8 @@ declare const router: {
|
|
|
13184
13390
|
studio?: boolean | null | undefined;
|
|
13185
13391
|
};
|
|
13186
13392
|
db: Database;
|
|
13187
|
-
headers: Headers;
|
|
13188
13393
|
env: Bindings;
|
|
13394
|
+
headers: Headers;
|
|
13189
13395
|
client: string;
|
|
13190
13396
|
telemetryDisabled: boolean;
|
|
13191
13397
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -13249,8 +13455,8 @@ declare const router: {
|
|
|
13249
13455
|
studio?: boolean | null | undefined;
|
|
13250
13456
|
};
|
|
13251
13457
|
db: Database;
|
|
13252
|
-
headers: Headers;
|
|
13253
13458
|
env: Bindings;
|
|
13459
|
+
headers: Headers;
|
|
13254
13460
|
client: string;
|
|
13255
13461
|
telemetryDisabled: boolean;
|
|
13256
13462
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -13369,8 +13575,8 @@ declare const router: {
|
|
|
13369
13575
|
studio?: boolean | null | undefined;
|
|
13370
13576
|
};
|
|
13371
13577
|
db: Database;
|
|
13372
|
-
headers: Headers;
|
|
13373
13578
|
env: Bindings;
|
|
13579
|
+
headers: Headers;
|
|
13374
13580
|
client: string;
|
|
13375
13581
|
telemetryDisabled: boolean;
|
|
13376
13582
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -13405,8 +13611,8 @@ declare const router: {
|
|
|
13405
13611
|
studio?: boolean | null | undefined;
|
|
13406
13612
|
};
|
|
13407
13613
|
db: Database;
|
|
13408
|
-
headers: Headers;
|
|
13409
13614
|
env: Bindings;
|
|
13615
|
+
headers: Headers;
|
|
13410
13616
|
client: string;
|
|
13411
13617
|
telemetryDisabled: boolean;
|
|
13412
13618
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -13473,8 +13679,8 @@ declare const router: {
|
|
|
13473
13679
|
studio?: boolean | null | undefined;
|
|
13474
13680
|
};
|
|
13475
13681
|
db: Database;
|
|
13476
|
-
headers: Headers;
|
|
13477
13682
|
env: Bindings;
|
|
13683
|
+
headers: Headers;
|
|
13478
13684
|
client: string;
|
|
13479
13685
|
telemetryDisabled: boolean;
|
|
13480
13686
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -13509,8 +13715,8 @@ declare const router: {
|
|
|
13509
13715
|
studio?: boolean | null | undefined;
|
|
13510
13716
|
};
|
|
13511
13717
|
db: Database;
|
|
13512
|
-
headers: Headers;
|
|
13513
13718
|
env: Bindings;
|
|
13719
|
+
headers: Headers;
|
|
13514
13720
|
client: string;
|
|
13515
13721
|
telemetryDisabled: boolean;
|
|
13516
13722
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -13577,8 +13783,8 @@ declare const router: {
|
|
|
13577
13783
|
studio?: boolean | null | undefined;
|
|
13578
13784
|
};
|
|
13579
13785
|
db: Database;
|
|
13580
|
-
headers: Headers;
|
|
13581
13786
|
env: Bindings;
|
|
13787
|
+
headers: Headers;
|
|
13582
13788
|
client: string;
|
|
13583
13789
|
telemetryDisabled: boolean;
|
|
13584
13790
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -13613,8 +13819,8 @@ declare const router: {
|
|
|
13613
13819
|
studio?: boolean | null | undefined;
|
|
13614
13820
|
};
|
|
13615
13821
|
db: Database;
|
|
13616
|
-
headers: Headers;
|
|
13617
13822
|
env: Bindings;
|
|
13823
|
+
headers: Headers;
|
|
13618
13824
|
client: string;
|
|
13619
13825
|
telemetryDisabled: boolean;
|
|
13620
13826
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -13638,8 +13844,7 @@ declare const router: {
|
|
|
13638
13844
|
locale: string | undefined;
|
|
13639
13845
|
publishingDraft: string | undefined;
|
|
13640
13846
|
}>, import("zod").ZodObject<{
|
|
13641
|
-
deployToken: import("zod").
|
|
13642
|
-
autoCreate: import("zod").ZodBoolean;
|
|
13847
|
+
deployToken: import("zod").ZodString;
|
|
13643
13848
|
definitionSet: import("zod").ZodObject<{
|
|
13644
13849
|
blocks: import("zod").ZodArray<import("zod").ZodObject<{
|
|
13645
13850
|
blockId: import("zod").ZodString;
|
|
@@ -13694,14 +13899,14 @@ declare const router: {
|
|
|
13694
13899
|
properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
13695
13900
|
fieldType: import("zod").ZodEnum<{
|
|
13696
13901
|
String: "String";
|
|
13697
|
-
Embed: "Embed";
|
|
13698
|
-
Link: "Link";
|
|
13699
13902
|
Boolean: "Boolean";
|
|
13700
13903
|
Enum: "Enum";
|
|
13904
|
+
Embed: "Embed";
|
|
13701
13905
|
Image: "Image";
|
|
13702
13906
|
File: "File";
|
|
13703
13907
|
ImageList: "ImageList";
|
|
13704
13908
|
FileList: "FileList";
|
|
13909
|
+
Link: "Link";
|
|
13705
13910
|
Repeater: "Repeater";
|
|
13706
13911
|
Reference: "Reference";
|
|
13707
13912
|
ReferenceList: "ReferenceList";
|
|
@@ -13744,7 +13949,7 @@ declare const router: {
|
|
|
13744
13949
|
contentSchema: {
|
|
13745
13950
|
type: "object";
|
|
13746
13951
|
properties: Record<string, {
|
|
13747
|
-
fieldType: "String" | "
|
|
13952
|
+
fieldType: "String" | "Boolean" | "Enum" | "Embed" | "Image" | "File" | "ImageList" | "FileList" | "Link" | "Repeater" | "Reference" | "ReferenceList";
|
|
13748
13953
|
type?: string | undefined;
|
|
13749
13954
|
anyOf?: unknown;
|
|
13750
13955
|
title?: string | undefined;
|
|
@@ -13781,7 +13986,7 @@ declare const router: {
|
|
|
13781
13986
|
contentSchema: {
|
|
13782
13987
|
type: "object";
|
|
13783
13988
|
properties: Record<string, {
|
|
13784
|
-
fieldType: "String" | "
|
|
13989
|
+
fieldType: "String" | "Boolean" | "Enum" | "Embed" | "Image" | "File" | "ImageList" | "FileList" | "Link" | "Repeater" | "Reference" | "ReferenceList";
|
|
13785
13990
|
type?: string | undefined;
|
|
13786
13991
|
anyOf?: unknown;
|
|
13787
13992
|
title?: string | undefined;
|
|
@@ -13830,7 +14035,6 @@ declare const router: {
|
|
|
13830
14035
|
}, import("zod/v4/core").$strip>;
|
|
13831
14036
|
projectUuid: import("zod").ZodUUID;
|
|
13832
14037
|
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
|
|
13833
|
-
draftCreated: boolean;
|
|
13834
14038
|
blocks: {
|
|
13835
14039
|
count: number;
|
|
13836
14040
|
deletedDefinitionTypes: string[];
|
|
@@ -13859,7 +14063,6 @@ declare const router: {
|
|
|
13859
14063
|
blockCount: number;
|
|
13860
14064
|
} | null;
|
|
13861
14065
|
}, {
|
|
13862
|
-
draftCreated: boolean;
|
|
13863
14066
|
blocks: {
|
|
13864
14067
|
count: number;
|
|
13865
14068
|
deletedDefinitionTypes: string[];
|
|
@@ -13925,8 +14128,8 @@ declare const router: {
|
|
|
13925
14128
|
studio?: boolean | null | undefined;
|
|
13926
14129
|
};
|
|
13927
14130
|
db: Database;
|
|
13928
|
-
headers: Headers;
|
|
13929
14131
|
env: Bindings;
|
|
14132
|
+
headers: Headers;
|
|
13930
14133
|
client: string;
|
|
13931
14134
|
telemetryDisabled: boolean;
|
|
13932
14135
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -13986,8 +14189,8 @@ declare const router: {
|
|
|
13986
14189
|
studio?: boolean | null | undefined;
|
|
13987
14190
|
};
|
|
13988
14191
|
db: Database;
|
|
13989
|
-
headers: Headers;
|
|
13990
14192
|
env: Bindings;
|
|
14193
|
+
headers: Headers;
|
|
13991
14194
|
client: string;
|
|
13992
14195
|
telemetryDisabled: boolean;
|
|
13993
14196
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -14034,8 +14237,8 @@ declare const router: {
|
|
|
14034
14237
|
studio?: boolean | null | undefined;
|
|
14035
14238
|
};
|
|
14036
14239
|
db: Database;
|
|
14037
|
-
headers: Headers;
|
|
14038
14240
|
env: Bindings;
|
|
14241
|
+
headers: Headers;
|
|
14039
14242
|
client: string;
|
|
14040
14243
|
telemetryDisabled: boolean;
|
|
14041
14244
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -14081,8 +14284,8 @@ declare const router: {
|
|
|
14081
14284
|
studio?: boolean | null | undefined;
|
|
14082
14285
|
};
|
|
14083
14286
|
db: Database;
|
|
14084
|
-
headers: Headers;
|
|
14085
14287
|
env: Bindings;
|
|
14288
|
+
headers: Headers;
|
|
14086
14289
|
client: string;
|
|
14087
14290
|
telemetryDisabled: boolean;
|
|
14088
14291
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -14129,8 +14332,8 @@ declare const router: {
|
|
|
14129
14332
|
studio?: boolean | null | undefined;
|
|
14130
14333
|
};
|
|
14131
14334
|
db: Database;
|
|
14132
|
-
headers: Headers;
|
|
14133
14335
|
env: Bindings;
|
|
14336
|
+
headers: Headers;
|
|
14134
14337
|
client: string;
|
|
14135
14338
|
telemetryDisabled: boolean;
|
|
14136
14339
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -14220,8 +14423,8 @@ declare const router: {
|
|
|
14220
14423
|
studio?: boolean | null | undefined;
|
|
14221
14424
|
};
|
|
14222
14425
|
db: Database;
|
|
14223
|
-
headers: Headers;
|
|
14224
14426
|
env: Bindings;
|
|
14427
|
+
headers: Headers;
|
|
14225
14428
|
client: string;
|
|
14226
14429
|
telemetryDisabled: boolean;
|
|
14227
14430
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -14267,8 +14470,8 @@ declare const router: {
|
|
|
14267
14470
|
studio?: boolean | null | undefined;
|
|
14268
14471
|
};
|
|
14269
14472
|
db: Database;
|
|
14270
|
-
headers: Headers;
|
|
14271
14473
|
env: Bindings;
|
|
14474
|
+
headers: Headers;
|
|
14272
14475
|
client: string;
|
|
14273
14476
|
telemetryDisabled: boolean;
|
|
14274
14477
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -14317,8 +14520,8 @@ declare const router: {
|
|
|
14317
14520
|
studio?: boolean | null | undefined;
|
|
14318
14521
|
};
|
|
14319
14522
|
db: Database;
|
|
14320
|
-
headers: Headers;
|
|
14321
14523
|
env: Bindings;
|
|
14524
|
+
headers: Headers;
|
|
14322
14525
|
client: string;
|
|
14323
14526
|
telemetryDisabled: boolean;
|
|
14324
14527
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -14368,8 +14571,8 @@ declare const router: {
|
|
|
14368
14571
|
studio?: boolean | null | undefined;
|
|
14369
14572
|
};
|
|
14370
14573
|
db: Database;
|
|
14371
|
-
headers: Headers;
|
|
14372
14574
|
env: Bindings;
|
|
14575
|
+
headers: Headers;
|
|
14373
14576
|
client: string;
|
|
14374
14577
|
telemetryDisabled: boolean;
|
|
14375
14578
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -14428,8 +14631,8 @@ declare const router: {
|
|
|
14428
14631
|
studio?: boolean | null | undefined;
|
|
14429
14632
|
};
|
|
14430
14633
|
db: Database;
|
|
14431
|
-
headers: Headers;
|
|
14432
14634
|
env: Bindings;
|
|
14635
|
+
headers: Headers;
|
|
14433
14636
|
client: string;
|
|
14434
14637
|
telemetryDisabled: boolean;
|
|
14435
14638
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -14477,8 +14680,8 @@ declare const router: {
|
|
|
14477
14680
|
studio?: boolean | null | undefined;
|
|
14478
14681
|
};
|
|
14479
14682
|
db: Database;
|
|
14480
|
-
headers: Headers;
|
|
14481
14683
|
env: Bindings;
|
|
14684
|
+
headers: Headers;
|
|
14482
14685
|
client: string;
|
|
14483
14686
|
telemetryDisabled: boolean;
|
|
14484
14687
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -14526,8 +14729,8 @@ declare const router: {
|
|
|
14526
14729
|
studio?: boolean | null | undefined;
|
|
14527
14730
|
};
|
|
14528
14731
|
db: Database;
|
|
14529
|
-
headers: Headers;
|
|
14530
14732
|
env: Bindings;
|
|
14733
|
+
headers: Headers;
|
|
14531
14734
|
client: string;
|
|
14532
14735
|
telemetryDisabled: boolean;
|
|
14533
14736
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
@@ -14543,6 +14746,76 @@ declare const router: {
|
|
|
14543
14746
|
patrollers: import("@camox/api-contract/patrol").PatrollerView[];
|
|
14544
14747
|
}>, Record<never, never>, Record<never, never>>;
|
|
14545
14748
|
};
|
|
14749
|
+
code: {
|
|
14750
|
+
push: 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>>, {
|
|
14751
|
+
draft: DraftRequest | null;
|
|
14752
|
+
locale: string | undefined;
|
|
14753
|
+
publishingDraft: string | undefined;
|
|
14754
|
+
}>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
14755
|
+
draft: DraftRequest | null;
|
|
14756
|
+
locale: string | undefined;
|
|
14757
|
+
publishingDraft: string | undefined;
|
|
14758
|
+
}>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
14759
|
+
draft: DraftRequest | null;
|
|
14760
|
+
locale: string | undefined;
|
|
14761
|
+
publishingDraft: string | undefined;
|
|
14762
|
+
}>, {
|
|
14763
|
+
user: {
|
|
14764
|
+
id: string;
|
|
14765
|
+
createdAt: Date;
|
|
14766
|
+
updatedAt: Date;
|
|
14767
|
+
email: string;
|
|
14768
|
+
emailVerified: boolean;
|
|
14769
|
+
name: string;
|
|
14770
|
+
image?: string | null | undefined;
|
|
14771
|
+
};
|
|
14772
|
+
session: {
|
|
14773
|
+
id: string;
|
|
14774
|
+
createdAt: Date;
|
|
14775
|
+
updatedAt: Date;
|
|
14776
|
+
userId: string;
|
|
14777
|
+
expiresAt: Date;
|
|
14778
|
+
token: string;
|
|
14779
|
+
ipAddress?: string | null | undefined;
|
|
14780
|
+
userAgent?: string | null | undefined;
|
|
14781
|
+
activeOrganizationId?: string | null | undefined;
|
|
14782
|
+
studio?: boolean | null | undefined;
|
|
14783
|
+
};
|
|
14784
|
+
db: Database;
|
|
14785
|
+
env: Bindings;
|
|
14786
|
+
headers: Headers;
|
|
14787
|
+
client: string;
|
|
14788
|
+
telemetryDisabled: boolean;
|
|
14789
|
+
waitUntil: (promise: Promise<unknown>) => void;
|
|
14790
|
+
apiOrigin?: string | undefined;
|
|
14791
|
+
draft: DraftRequest | null;
|
|
14792
|
+
locale: string | undefined;
|
|
14793
|
+
publishingDraft: string | undefined;
|
|
14794
|
+
}>, import("zod").ZodObject<{
|
|
14795
|
+
projectUuid: import("zod").ZodUUID;
|
|
14796
|
+
branch: import("zod").ZodString;
|
|
14797
|
+
draftId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14798
|
+
bundle: import("zod").ZodInstanceOf<Blob>;
|
|
14799
|
+
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<AsyncGenerator<{
|
|
14800
|
+
type: "progress";
|
|
14801
|
+
step: PushStep;
|
|
14802
|
+
} | {
|
|
14803
|
+
draftId: string;
|
|
14804
|
+
result: BuildResult;
|
|
14805
|
+
studioUrl: string;
|
|
14806
|
+
type: "pushed";
|
|
14807
|
+
step?: undefined;
|
|
14808
|
+
}, void, unknown>, AsyncGenerator<{
|
|
14809
|
+
type: "progress";
|
|
14810
|
+
step: PushStep;
|
|
14811
|
+
} | {
|
|
14812
|
+
draftId: string;
|
|
14813
|
+
result: BuildResult;
|
|
14814
|
+
studioUrl: string;
|
|
14815
|
+
type: "pushed";
|
|
14816
|
+
step?: undefined;
|
|
14817
|
+
}, void, unknown>>, Record<never, never>, Record<never, never>>;
|
|
14818
|
+
};
|
|
14546
14819
|
};
|
|
14547
14820
|
type Router = typeof router;
|
|
14548
14821
|
//#endregion
|