@camox/api-contract 0.75.0 → 0.76.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 +17 -0
- package/dist/drafts.js +6 -1
- package/dist/query-keys.d.ts +12 -2
- package/dist/query-keys.js +18 -0
- package/dist/router.d.ts +821 -20
- package/dist/threads.d.ts +24 -7
- package/dist/threads.js +30 -9
- package/package.json +1 -1
- package/src/drafts.ts +16 -0
- package/src/query-keys.ts +17 -2
- package/src/threads.ts +41 -12
package/dist/router.d.ts
CHANGED
|
@@ -462,6 +462,22 @@ declare class DraftCode extends DurableObject<Bindings> {
|
|
|
462
462
|
repo: string;
|
|
463
463
|
commit: string;
|
|
464
464
|
}): Promise<string>;
|
|
465
|
+
/**
|
|
466
|
+
* Makes the branch and working copy of a draft reverting a Publication, unless they were made
|
|
467
|
+
* already: forked from `commit`, the Publication's commit on `main`, with one commit on top,
|
|
468
|
+
* `message`, putting back the tree `main` had before it. Merging the current `main` then
|
|
469
|
+
* applies that undo to Live's latest code, as a merge of `main` into any draft (`mergeMain`):
|
|
470
|
+
* code a later publish changed since clashes as merges do. Returns whether `main` moved since
|
|
471
|
+
* `commit`, which a merge then brings in, or null, making nothing, when `commit` is `main`'s
|
|
472
|
+
* first: there's no code before it to put back.
|
|
473
|
+
*/
|
|
474
|
+
startReverting({ repo, commit, message }: {
|
|
475
|
+
repo: string;
|
|
476
|
+
commit: string;
|
|
477
|
+
message: string;
|
|
478
|
+
}): Promise<{
|
|
479
|
+
mainMoved: boolean;
|
|
480
|
+
} | null>;
|
|
465
481
|
/** Runs one operation of the agent's environment on the working copy, and saves what it changed. */
|
|
466
482
|
call(call: EnvCall): Promise<EnvAnswer>;
|
|
467
483
|
/**
|
|
@@ -790,6 +806,25 @@ declare const pages: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
790
806
|
}, {}, {
|
|
791
807
|
length: number | undefined;
|
|
792
808
|
}>;
|
|
809
|
+
publicationId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
810
|
+
name: "publication_id";
|
|
811
|
+
tableName: "pages";
|
|
812
|
+
dataType: "string";
|
|
813
|
+
columnType: "SQLiteText";
|
|
814
|
+
data: string;
|
|
815
|
+
driverParam: string;
|
|
816
|
+
notNull: false;
|
|
817
|
+
hasDefault: false;
|
|
818
|
+
isPrimaryKey: false;
|
|
819
|
+
isAutoincrement: false;
|
|
820
|
+
hasRuntimeDefault: false;
|
|
821
|
+
enumValues: [string, ...string[]];
|
|
822
|
+
baseColumn: never;
|
|
823
|
+
identity: undefined;
|
|
824
|
+
generated: undefined;
|
|
825
|
+
}, {}, {
|
|
826
|
+
length: number | undefined;
|
|
827
|
+
}>;
|
|
793
828
|
locale: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
794
829
|
name: "locale";
|
|
795
830
|
tableName: "pages";
|
|
@@ -1244,6 +1279,25 @@ declare const blocks: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
1244
1279
|
}, {}, {
|
|
1245
1280
|
length: number | undefined;
|
|
1246
1281
|
}>;
|
|
1282
|
+
publicationId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1283
|
+
name: "publication_id";
|
|
1284
|
+
tableName: "blocks";
|
|
1285
|
+
dataType: "string";
|
|
1286
|
+
columnType: "SQLiteText";
|
|
1287
|
+
data: string;
|
|
1288
|
+
driverParam: string;
|
|
1289
|
+
notNull: false;
|
|
1290
|
+
hasDefault: false;
|
|
1291
|
+
isPrimaryKey: false;
|
|
1292
|
+
isAutoincrement: false;
|
|
1293
|
+
hasRuntimeDefault: false;
|
|
1294
|
+
enumValues: [string, ...string[]];
|
|
1295
|
+
baseColumn: never;
|
|
1296
|
+
identity: undefined;
|
|
1297
|
+
generated: undefined;
|
|
1298
|
+
}, {}, {
|
|
1299
|
+
length: number | undefined;
|
|
1300
|
+
}>;
|
|
1247
1301
|
locale: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1248
1302
|
name: "locale";
|
|
1249
1303
|
tableName: "blocks";
|
|
@@ -1621,6 +1675,25 @@ declare const files: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
1621
1675
|
}, {}, {
|
|
1622
1676
|
length: number | undefined;
|
|
1623
1677
|
}>;
|
|
1678
|
+
publicationId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1679
|
+
name: "publication_id";
|
|
1680
|
+
tableName: "files";
|
|
1681
|
+
dataType: "string";
|
|
1682
|
+
columnType: "SQLiteText";
|
|
1683
|
+
data: string;
|
|
1684
|
+
driverParam: string;
|
|
1685
|
+
notNull: false;
|
|
1686
|
+
hasDefault: false;
|
|
1687
|
+
isPrimaryKey: false;
|
|
1688
|
+
isAutoincrement: false;
|
|
1689
|
+
hasRuntimeDefault: false;
|
|
1690
|
+
enumValues: [string, ...string[]];
|
|
1691
|
+
baseColumn: never;
|
|
1692
|
+
identity: undefined;
|
|
1693
|
+
generated: undefined;
|
|
1694
|
+
}, {}, {
|
|
1695
|
+
length: number | undefined;
|
|
1696
|
+
}>;
|
|
1624
1697
|
projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
1625
1698
|
name: "project_id";
|
|
1626
1699
|
tableName: "files";
|
|
@@ -1877,6 +1950,14 @@ declare const files: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
1877
1950
|
dialect: 'sqlite';
|
|
1878
1951
|
}>;
|
|
1879
1952
|
//#endregion
|
|
1953
|
+
//#region ../../apps/api/src/domains/drafts/schema.d.ts
|
|
1954
|
+
/**
|
|
1955
|
+
* What Camox opens a draft for (`purpose`): to catch Live's translations up. A `publication` row
|
|
1956
|
+
* isn't a draft at all but a scope of a Publication's content (`../publications/schema.ts`),
|
|
1957
|
+
* which nothing lists, opens or publishes.
|
|
1958
|
+
*/
|
|
1959
|
+
type CamoxDraftPurpose = "catchUp" | "publication";
|
|
1960
|
+
//#endregion
|
|
1880
1961
|
//#region ../../apps/api/src/domains/generated-values/schema.d.ts
|
|
1881
1962
|
/** What a generated value describes, named like the draft overlay's entities. */
|
|
1882
1963
|
type GeneratedEntity = "block" | "sharedContent" | "repeatableItem" | "page" | "file";
|
|
@@ -2412,7 +2493,7 @@ declare const schema: {
|
|
|
2412
2493
|
tableName: "drafts";
|
|
2413
2494
|
dataType: "string";
|
|
2414
2495
|
columnType: "SQLiteText";
|
|
2415
|
-
data:
|
|
2496
|
+
data: CamoxDraftPurpose;
|
|
2416
2497
|
driverParam: string;
|
|
2417
2498
|
notNull: false;
|
|
2418
2499
|
hasDefault: false;
|
|
@@ -2425,7 +2506,7 @@ declare const schema: {
|
|
|
2425
2506
|
generated: undefined;
|
|
2426
2507
|
}, {}, {
|
|
2427
2508
|
length: undefined;
|
|
2428
|
-
$type:
|
|
2509
|
+
$type: CamoxDraftPurpose;
|
|
2429
2510
|
}>;
|
|
2430
2511
|
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2431
2512
|
name: "created_at";
|
|
@@ -2756,6 +2837,59 @@ declare const schema: {
|
|
|
2756
2837
|
length: number | undefined;
|
|
2757
2838
|
$type: "blocked" | "codeDoesNotBuild" | "codeDoesNotMerge" | "conflictsChanged" | "failed" | "liveCodeMoved" | "revisionChanged";
|
|
2758
2839
|
}>;
|
|
2840
|
+
archivedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2841
|
+
name: "archived_at";
|
|
2842
|
+
tableName: "drafts";
|
|
2843
|
+
dataType: "number";
|
|
2844
|
+
columnType: "SQLiteInteger";
|
|
2845
|
+
data: number;
|
|
2846
|
+
driverParam: number;
|
|
2847
|
+
notNull: false;
|
|
2848
|
+
hasDefault: false;
|
|
2849
|
+
isPrimaryKey: false;
|
|
2850
|
+
isAutoincrement: false;
|
|
2851
|
+
hasRuntimeDefault: false;
|
|
2852
|
+
enumValues: undefined;
|
|
2853
|
+
baseColumn: never;
|
|
2854
|
+
identity: undefined;
|
|
2855
|
+
generated: undefined;
|
|
2856
|
+
}, {}, {}>;
|
|
2857
|
+
archivedBy: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2858
|
+
name: "archived_by";
|
|
2859
|
+
tableName: "drafts";
|
|
2860
|
+
dataType: "string";
|
|
2861
|
+
columnType: "SQLiteText";
|
|
2862
|
+
data: string;
|
|
2863
|
+
driverParam: string;
|
|
2864
|
+
notNull: false;
|
|
2865
|
+
hasDefault: false;
|
|
2866
|
+
isPrimaryKey: false;
|
|
2867
|
+
isAutoincrement: false;
|
|
2868
|
+
hasRuntimeDefault: false;
|
|
2869
|
+
enumValues: [string, ...string[]];
|
|
2870
|
+
baseColumn: never;
|
|
2871
|
+
identity: undefined;
|
|
2872
|
+
generated: undefined;
|
|
2873
|
+
}, {}, {
|
|
2874
|
+
length: number | undefined;
|
|
2875
|
+
}>;
|
|
2876
|
+
lastActivityAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2877
|
+
name: "last_activity_at";
|
|
2878
|
+
tableName: "drafts";
|
|
2879
|
+
dataType: "number";
|
|
2880
|
+
columnType: "SQLiteInteger";
|
|
2881
|
+
data: number;
|
|
2882
|
+
driverParam: number;
|
|
2883
|
+
notNull: false;
|
|
2884
|
+
hasDefault: false;
|
|
2885
|
+
isPrimaryKey: false;
|
|
2886
|
+
isAutoincrement: false;
|
|
2887
|
+
hasRuntimeDefault: false;
|
|
2888
|
+
enumValues: undefined;
|
|
2889
|
+
baseColumn: never;
|
|
2890
|
+
identity: undefined;
|
|
2891
|
+
generated: undefined;
|
|
2892
|
+
}, {}, {}>;
|
|
2759
2893
|
};
|
|
2760
2894
|
dialect: 'sqlite';
|
|
2761
2895
|
}>;
|
|
@@ -2922,6 +3056,25 @@ declare const schema: {
|
|
|
2922
3056
|
}, {}, {
|
|
2923
3057
|
length: number | undefined;
|
|
2924
3058
|
}>;
|
|
3059
|
+
publicationId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3060
|
+
name: "publication_id";
|
|
3061
|
+
tableName: "pages";
|
|
3062
|
+
dataType: "string";
|
|
3063
|
+
columnType: "SQLiteText";
|
|
3064
|
+
data: string;
|
|
3065
|
+
driverParam: string;
|
|
3066
|
+
notNull: false;
|
|
3067
|
+
hasDefault: false;
|
|
3068
|
+
isPrimaryKey: false;
|
|
3069
|
+
isAutoincrement: false;
|
|
3070
|
+
hasRuntimeDefault: false;
|
|
3071
|
+
enumValues: [string, ...string[]];
|
|
3072
|
+
baseColumn: never;
|
|
3073
|
+
identity: undefined;
|
|
3074
|
+
generated: undefined;
|
|
3075
|
+
}, {}, {
|
|
3076
|
+
length: number | undefined;
|
|
3077
|
+
}>;
|
|
2925
3078
|
locale: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2926
3079
|
name: "locale";
|
|
2927
3080
|
tableName: "pages";
|
|
@@ -3590,6 +3743,25 @@ declare const schema: {
|
|
|
3590
3743
|
}, {}, {
|
|
3591
3744
|
length: number | undefined;
|
|
3592
3745
|
}>;
|
|
3746
|
+
publicationId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3747
|
+
name: "publication_id";
|
|
3748
|
+
tableName: "blocks";
|
|
3749
|
+
dataType: "string";
|
|
3750
|
+
columnType: "SQLiteText";
|
|
3751
|
+
data: string;
|
|
3752
|
+
driverParam: string;
|
|
3753
|
+
notNull: false;
|
|
3754
|
+
hasDefault: false;
|
|
3755
|
+
isPrimaryKey: false;
|
|
3756
|
+
isAutoincrement: false;
|
|
3757
|
+
hasRuntimeDefault: false;
|
|
3758
|
+
enumValues: [string, ...string[]];
|
|
3759
|
+
baseColumn: never;
|
|
3760
|
+
identity: undefined;
|
|
3761
|
+
generated: undefined;
|
|
3762
|
+
}, {}, {
|
|
3763
|
+
length: number | undefined;
|
|
3764
|
+
}>;
|
|
3593
3765
|
locale: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3594
3766
|
name: "locale";
|
|
3595
3767
|
tableName: "blocks";
|
|
@@ -3956,6 +4128,25 @@ declare const schema: {
|
|
|
3956
4128
|
}, {}, {
|
|
3957
4129
|
length: number | undefined;
|
|
3958
4130
|
}>;
|
|
4131
|
+
publicationId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
4132
|
+
name: "publication_id";
|
|
4133
|
+
tableName: "repeatable_items";
|
|
4134
|
+
dataType: "string";
|
|
4135
|
+
columnType: "SQLiteText";
|
|
4136
|
+
data: string;
|
|
4137
|
+
driverParam: string;
|
|
4138
|
+
notNull: false;
|
|
4139
|
+
hasDefault: false;
|
|
4140
|
+
isPrimaryKey: false;
|
|
4141
|
+
isAutoincrement: false;
|
|
4142
|
+
hasRuntimeDefault: false;
|
|
4143
|
+
enumValues: [string, ...string[]];
|
|
4144
|
+
baseColumn: never;
|
|
4145
|
+
identity: undefined;
|
|
4146
|
+
generated: undefined;
|
|
4147
|
+
}, {}, {
|
|
4148
|
+
length: number | undefined;
|
|
4149
|
+
}>;
|
|
3959
4150
|
locale: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
3960
4151
|
name: "locale";
|
|
3961
4152
|
tableName: "repeatable_items";
|
|
@@ -4321,6 +4512,25 @@ declare const schema: {
|
|
|
4321
4512
|
}, {}, {
|
|
4322
4513
|
length: number | undefined;
|
|
4323
4514
|
}>;
|
|
4515
|
+
publicationId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
4516
|
+
name: "publication_id";
|
|
4517
|
+
tableName: "files";
|
|
4518
|
+
dataType: "string";
|
|
4519
|
+
columnType: "SQLiteText";
|
|
4520
|
+
data: string;
|
|
4521
|
+
driverParam: string;
|
|
4522
|
+
notNull: false;
|
|
4523
|
+
hasDefault: false;
|
|
4524
|
+
isPrimaryKey: false;
|
|
4525
|
+
isAutoincrement: false;
|
|
4526
|
+
hasRuntimeDefault: false;
|
|
4527
|
+
enumValues: [string, ...string[]];
|
|
4528
|
+
baseColumn: never;
|
|
4529
|
+
identity: undefined;
|
|
4530
|
+
generated: undefined;
|
|
4531
|
+
}, {}, {
|
|
4532
|
+
length: number | undefined;
|
|
4533
|
+
}>;
|
|
4324
4534
|
projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
4325
4535
|
name: "project_id";
|
|
4326
4536
|
tableName: "files";
|
|
@@ -5396,6 +5606,25 @@ declare const schema: {
|
|
|
5396
5606
|
}, {}, {
|
|
5397
5607
|
length: number | undefined;
|
|
5398
5608
|
}>;
|
|
5609
|
+
publicationId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
5610
|
+
name: "publication_id";
|
|
5611
|
+
tableName: "collection_records";
|
|
5612
|
+
dataType: "string";
|
|
5613
|
+
columnType: "SQLiteText";
|
|
5614
|
+
data: string;
|
|
5615
|
+
driverParam: string;
|
|
5616
|
+
notNull: false;
|
|
5617
|
+
hasDefault: false;
|
|
5618
|
+
isPrimaryKey: false;
|
|
5619
|
+
isAutoincrement: false;
|
|
5620
|
+
hasRuntimeDefault: false;
|
|
5621
|
+
enumValues: [string, ...string[]];
|
|
5622
|
+
baseColumn: never;
|
|
5623
|
+
identity: undefined;
|
|
5624
|
+
generated: undefined;
|
|
5625
|
+
}, {}, {
|
|
5626
|
+
length: number | undefined;
|
|
5627
|
+
}>;
|
|
5399
5628
|
locale: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
5400
5629
|
name: "locale";
|
|
5401
5630
|
tableName: "collection_records";
|
|
@@ -9819,6 +10048,18 @@ declare class Thread extends DurableObject<Bindings> {
|
|
|
9819
10048
|
* the next message (`#onYield`). Nothing of it shows in the thread.
|
|
9820
10049
|
*/
|
|
9821
10050
|
mergeMain(): Promise<MergeEnd | "afterTheTurn" | "noCode">;
|
|
10051
|
+
/**
|
|
10052
|
+
* Lands the undo of a Publication's code on the thread's draft, which reverts it (ADR 0045),
|
|
10053
|
+
* starting the thread: the draft's branch, made by `DraftCode.startReverting`, holds the undo
|
|
10054
|
+
* on top of the Publication's commit. When `main` moved since, its merge applies the undo to
|
|
10055
|
+
* Live's latest code, a clash starting Camox's reconcile turn, as any merge of `main` does
|
|
10056
|
+
* (ADR 0020). Otherwise the undo is built as the draft's revision. Either goes on in the
|
|
10057
|
+
* background: the draft shows it's building, or not holding Live's code, until it lands.
|
|
10058
|
+
*/
|
|
10059
|
+
revertCode({ identity, mainMoved }: {
|
|
10060
|
+
identity: ThreadIdentity;
|
|
10061
|
+
mainMoved: boolean;
|
|
10062
|
+
}): Promise<void>;
|
|
9822
10063
|
/**
|
|
9823
10064
|
* Builds the code of the thread's draft, as the end of a turn would on its last try, when
|
|
9824
10065
|
* Camox's infrastructure failed the last build: changes that don't build are committed as a
|
|
@@ -9829,7 +10070,8 @@ declare class Thread extends DurableObject<Bindings> {
|
|
|
9829
10070
|
retryBuild(): Promise<"built" | "failed" | "busy" | "noCode">;
|
|
9830
10071
|
/**
|
|
9831
10072
|
* Lifecycle's alarm, which wakes Pi's runs, unless the thread ended: an alarm already on its
|
|
9832
|
-
* way when it did would look for the jobs its storage no longer has.
|
|
10073
|
+
* way when it did would look for the jobs its storage no longer has. A published draft's
|
|
10074
|
+
* thread runs nothing either.
|
|
9833
10075
|
*/
|
|
9834
10076
|
alarm(): Promise<void>;
|
|
9835
10077
|
/** Gives sockets that outlived the last isolate a new watch and a fresh snapshot. */
|
|
@@ -9897,6 +10139,28 @@ declare class Thread extends DurableObject<Bindings> {
|
|
|
9897
10139
|
* it next.
|
|
9898
10140
|
*/
|
|
9899
10141
|
end(): Promise<void>;
|
|
10142
|
+
/**
|
|
10143
|
+
* Keeps the thread read-only as its draft is published, for the Publication it now belongs to
|
|
10144
|
+
* (ADR 0045): the run going stops, the Code Agent's and Artifact Agents' memory goes with the
|
|
10145
|
+
* draft's code, and the thread takes no more messages. Studios still open on it keep showing
|
|
10146
|
+
* it as their sockets close: the draft is gone, so they don't reconnect. A socket reaching it
|
|
10147
|
+
* after sees it as it is, read-only, its messages refused. Studios read it from then on through
|
|
10148
|
+
* its Publication (`publications.get`) rather than a socket: a published thread never changes,
|
|
10149
|
+
* so there's nothing to keep a socket open for. Repeating it changes nothing.
|
|
10150
|
+
*/
|
|
10151
|
+
keepPublished(): Promise<void>;
|
|
10152
|
+
/**
|
|
10153
|
+
* Whether the agent is mid-turn: Camox never archives a draft then (ADR 0046). A thread
|
|
10154
|
+
* nobody messaged has no turn, and opening Pi to check would store.
|
|
10155
|
+
*/
|
|
10156
|
+
busy(): Promise<boolean>;
|
|
10157
|
+
/**
|
|
10158
|
+
* Sets the thread aside with its draft, which was archived (ADR 0046): the run going stops, as
|
|
10159
|
+
* `archivedBy` stopping it, and studios still open on it are disconnected without
|
|
10160
|
+
* reconnecting. Everything it stored stays, so it continues where it stopped once the draft
|
|
10161
|
+
* is restored.
|
|
10162
|
+
*/
|
|
10163
|
+
archive(archivedBy: ThreadSender): Promise<void>;
|
|
9900
10164
|
}
|
|
9901
10165
|
//#endregion
|
|
9902
10166
|
//#region ../../apps/api/src/domains/code/main-copy.d.ts
|
|
@@ -9966,12 +10230,15 @@ type ProjectDeletionParams = {
|
|
|
9966
10230
|
name: string;
|
|
9967
10231
|
/** Its drafts' IDs, which name their working copies and sandboxes: their rows are gone. */
|
|
9968
10232
|
drafts?: string[];
|
|
10233
|
+
/** The IDs of its threads: its drafts', open or archived, its Publications' and on Live. */
|
|
10234
|
+
threads?: string[];
|
|
9969
10235
|
};
|
|
9970
10236
|
/**
|
|
9971
10237
|
* A deleted project's cleanup. Deleting the project removed its rows and its host, so its site is
|
|
9972
|
-
* already offline: this deletes what's left on Cloudflare, its Worker, its copies of its code
|
|
9973
|
-
* its repo, named after its Project ID and its drafts' IDs. Workflows
|
|
9974
|
-
* is gone. Nothing is kept for
|
|
10238
|
+
* already offline: this deletes what's left on Cloudflare, its Worker, its copies of its code, its
|
|
10239
|
+
* threads and its repo, named after its Project ID and its drafts' and threads' IDs. Workflows
|
|
10240
|
+
* retry a failed step, and each step is done once what it deletes is gone. Nothing is kept for
|
|
10241
|
+
* recovery.
|
|
9975
10242
|
*
|
|
9976
10243
|
* A step that gives up doesn't stop the next one from cleaning up what it can. Once they've all
|
|
9977
10244
|
* run, a cleanup with a failed step emails one alert to Camox's alerts address and fails.
|
|
@@ -9983,6 +10250,8 @@ declare class ProjectDeletionWorkflow extends WorkflowEntrypoint<Bindings, Proje
|
|
|
9983
10250
|
* underway: a retried fork would otherwise make its repo again once this deleted it.
|
|
9984
10251
|
*/
|
|
9985
10252
|
private stopSetup;
|
|
10253
|
+
/** Wipes the project's threads: each keeps only the record that it ended. */
|
|
10254
|
+
private deleteThreads;
|
|
9986
10255
|
/**
|
|
9987
10256
|
* Deletes the project's copies of its code: its copy of `main`, its drafts' working copies and
|
|
9988
10257
|
* revision sandboxes and its builds in R2.
|
|
@@ -10573,6 +10842,8 @@ type DraftSummary = {
|
|
|
10573
10842
|
changeCount: number;
|
|
10574
10843
|
/** The tags of the locales the draft has pending translations into (ADR 0015). */
|
|
10575
10844
|
translatingLocales: string[];
|
|
10845
|
+
/** Whether it's Camox's Catch-up Draft, which can't be archived (ADR 0017). */
|
|
10846
|
+
catchUp: boolean;
|
|
10576
10847
|
};
|
|
10577
10848
|
//#endregion
|
|
10578
10849
|
//#region ../../apps/api/src/domains/revisions/preview.d.ts
|
|
@@ -10712,6 +10983,61 @@ type PublishResult = {
|
|
|
10712
10983
|
publishing: true;
|
|
10713
10984
|
};
|
|
10714
10985
|
//#endregion
|
|
10986
|
+
//#region ../../apps/api/src/domains/drafts/archive.d.ts
|
|
10987
|
+
/** An archived draft, as the archived list shows it. */
|
|
10988
|
+
type ArchivedDraftSummary = {
|
|
10989
|
+
id: string;
|
|
10990
|
+
name: string | null;
|
|
10991
|
+
overviewHeadline: string | null;
|
|
10992
|
+
createdBy: Person;
|
|
10993
|
+
createdAt: number;
|
|
10994
|
+
/** When someone last worked in the draft, or when it was created if nobody did since. */
|
|
10995
|
+
lastActivityAt: number;
|
|
10996
|
+
archivedBy: Person;
|
|
10997
|
+
archivedAt: number;
|
|
10998
|
+
/** When Camox deletes it unless someone restores it first. */
|
|
10999
|
+
deletesAt: number;
|
|
11000
|
+
};
|
|
11001
|
+
//#endregion
|
|
11002
|
+
//#region ../../apps/api/src/domains/publications/service.d.ts
|
|
11003
|
+
/** A Publication's entity: a content row as stored, without the overlay's bookkeeping. */
|
|
11004
|
+
type PublicationEntity = {
|
|
11005
|
+
entity: EntityKind;
|
|
11006
|
+
id: string;
|
|
11007
|
+
/** A localized entity's locale, or null. */
|
|
11008
|
+
locale: string | null;
|
|
11009
|
+
row: Record<string, unknown>;
|
|
11010
|
+
};
|
|
11011
|
+
/** One of the draft's changes a Publication keeps. */
|
|
11012
|
+
type PublicationChange = PublicationEntity & {
|
|
11013
|
+
change: "created" | "changed" | "deleted";
|
|
11014
|
+
};
|
|
11015
|
+
type PublicationSummary = {
|
|
11016
|
+
id: string;
|
|
11017
|
+
name: string | null;
|
|
11018
|
+
overviewHeadline: string | null;
|
|
11019
|
+
publishedBy: Person;
|
|
11020
|
+
publishedAt: number;
|
|
11021
|
+
/** Who cleared the Publication's thread and when, or null while it's kept. */
|
|
11022
|
+
threadCleared: {
|
|
11023
|
+
by: Person;
|
|
11024
|
+
at: number;
|
|
11025
|
+
} | null;
|
|
11026
|
+
};
|
|
11027
|
+
type PublicationRead = PublicationSummary & {
|
|
11028
|
+
overview: {
|
|
11029
|
+
headline: string;
|
|
11030
|
+
bullets: string[];
|
|
11031
|
+
} | null;
|
|
11032
|
+
/** The squashed commit the publish put on `main`, or null when it changed no code. */
|
|
11033
|
+
commit: string | null;
|
|
11034
|
+
/** The draft's thread, read-only. */
|
|
11035
|
+
thread: ThreadView;
|
|
11036
|
+
changes: PublicationChange[];
|
|
11037
|
+
/** The Live content the publish overwrote or deleted, in every locale. */
|
|
11038
|
+
replaced: PublicationEntity[];
|
|
11039
|
+
};
|
|
11040
|
+
//#endregion
|
|
10715
11041
|
//#region ../../apps/api/src/domains/code-pushes/service.d.ts
|
|
10716
11042
|
/** Where a push stands, as it streams to the CLI while the push goes. */
|
|
10717
11043
|
type PushStep =
|
|
@@ -11891,6 +12217,7 @@ declare const router: {
|
|
|
11891
12217
|
parentPageId: string | null;
|
|
11892
12218
|
pathSegment: string;
|
|
11893
12219
|
projectId: number;
|
|
12220
|
+
publicationId: string | null;
|
|
11894
12221
|
publishedAt: number | null;
|
|
11895
12222
|
publishedBy: string | null;
|
|
11896
12223
|
rowId: number;
|
|
@@ -11925,6 +12252,7 @@ declare const router: {
|
|
|
11925
12252
|
pageId: string | null;
|
|
11926
12253
|
position: string;
|
|
11927
12254
|
projectId: number;
|
|
12255
|
+
publicationId: string | null;
|
|
11928
12256
|
publishedAt: number | null;
|
|
11929
12257
|
publishedBy: string | null;
|
|
11930
12258
|
rowId: number;
|
|
@@ -11956,6 +12284,7 @@ declare const router: {
|
|
|
11956
12284
|
parentItemId: string | null;
|
|
11957
12285
|
position: string;
|
|
11958
12286
|
projectId: number | null;
|
|
12287
|
+
publicationId: string | null;
|
|
11959
12288
|
publishedAt: number | null;
|
|
11960
12289
|
publishedBy: string | null;
|
|
11961
12290
|
rowId: number;
|
|
@@ -11999,6 +12328,7 @@ declare const router: {
|
|
|
11999
12328
|
parentPageId: string | null;
|
|
12000
12329
|
pathSegment: string;
|
|
12001
12330
|
projectId: number;
|
|
12331
|
+
publicationId: string | null;
|
|
12002
12332
|
publishedAt: number | null;
|
|
12003
12333
|
publishedBy: string | null;
|
|
12004
12334
|
rowId: number;
|
|
@@ -12033,6 +12363,7 @@ declare const router: {
|
|
|
12033
12363
|
pageId: string | null;
|
|
12034
12364
|
position: string;
|
|
12035
12365
|
projectId: number;
|
|
12366
|
+
publicationId: string | null;
|
|
12036
12367
|
publishedAt: number | null;
|
|
12037
12368
|
publishedBy: string | null;
|
|
12038
12369
|
rowId: number;
|
|
@@ -12064,6 +12395,7 @@ declare const router: {
|
|
|
12064
12395
|
parentItemId: string | null;
|
|
12065
12396
|
position: string;
|
|
12066
12397
|
projectId: number | null;
|
|
12398
|
+
publicationId: string | null;
|
|
12067
12399
|
publishedAt: number | null;
|
|
12068
12400
|
publishedBy: string | null;
|
|
12069
12401
|
rowId: number;
|
|
@@ -12117,6 +12449,7 @@ declare const router: {
|
|
|
12117
12449
|
parentPageId: string | null;
|
|
12118
12450
|
pathSegment: string;
|
|
12119
12451
|
projectId: number;
|
|
12452
|
+
publicationId: string | null;
|
|
12120
12453
|
publishedBy: string | null;
|
|
12121
12454
|
rowId: number;
|
|
12122
12455
|
updatedAt: number;
|
|
@@ -12161,6 +12494,7 @@ declare const router: {
|
|
|
12161
12494
|
parentPageId: string | null;
|
|
12162
12495
|
pathSegment: string;
|
|
12163
12496
|
projectId: number;
|
|
12497
|
+
publicationId: string | null;
|
|
12164
12498
|
publishedBy: string | null;
|
|
12165
12499
|
rowId: number;
|
|
12166
12500
|
updatedAt: number;
|
|
@@ -12221,6 +12555,7 @@ declare const router: {
|
|
|
12221
12555
|
parentPageId: string | null;
|
|
12222
12556
|
pathSegment: string;
|
|
12223
12557
|
projectId: number;
|
|
12558
|
+
publicationId: string | null;
|
|
12224
12559
|
publishedBy: string | null;
|
|
12225
12560
|
rowId: number;
|
|
12226
12561
|
updatedAt: number;
|
|
@@ -12262,6 +12597,7 @@ declare const router: {
|
|
|
12262
12597
|
parentPageId: string | null;
|
|
12263
12598
|
pathSegment: string;
|
|
12264
12599
|
projectId: number;
|
|
12600
|
+
publicationId: string | null;
|
|
12265
12601
|
publishedBy: string | null;
|
|
12266
12602
|
rowId: number;
|
|
12267
12603
|
updatedAt: number;
|
|
@@ -12304,6 +12640,7 @@ declare const router: {
|
|
|
12304
12640
|
parentPageId: string | null;
|
|
12305
12641
|
pathSegment: string;
|
|
12306
12642
|
projectId: number;
|
|
12643
|
+
publicationId: string | null;
|
|
12307
12644
|
publishedAt: number | null;
|
|
12308
12645
|
publishedBy: string | null;
|
|
12309
12646
|
rowId: number;
|
|
@@ -12333,6 +12670,7 @@ declare const router: {
|
|
|
12333
12670
|
parentPageId: string | null;
|
|
12334
12671
|
pathSegment: string;
|
|
12335
12672
|
projectId: number;
|
|
12673
|
+
publicationId: string | null;
|
|
12336
12674
|
publishedAt: number | null;
|
|
12337
12675
|
publishedBy: string | null;
|
|
12338
12676
|
rowId: number;
|
|
@@ -12372,6 +12710,7 @@ declare const router: {
|
|
|
12372
12710
|
parentPageId: string | null;
|
|
12373
12711
|
pathSegment: string;
|
|
12374
12712
|
projectId: number;
|
|
12713
|
+
publicationId: string | null;
|
|
12375
12714
|
publishedAt: number | null;
|
|
12376
12715
|
publishedBy: string | null;
|
|
12377
12716
|
rowId: number;
|
|
@@ -12404,6 +12743,7 @@ declare const router: {
|
|
|
12404
12743
|
parentPageId: string | null;
|
|
12405
12744
|
pathSegment: string;
|
|
12406
12745
|
projectId: number;
|
|
12746
|
+
publicationId: string | null;
|
|
12407
12747
|
publishedAt: number | null;
|
|
12408
12748
|
publishedBy: string | null;
|
|
12409
12749
|
rowId: number;
|
|
@@ -12444,6 +12784,7 @@ declare const router: {
|
|
|
12444
12784
|
parentPageId: string | null;
|
|
12445
12785
|
pathSegment: string;
|
|
12446
12786
|
projectId: number;
|
|
12787
|
+
publicationId: string | null;
|
|
12447
12788
|
publishedAt: number | null;
|
|
12448
12789
|
publishedBy: string | null;
|
|
12449
12790
|
rowId: number;
|
|
@@ -12472,6 +12813,7 @@ declare const router: {
|
|
|
12472
12813
|
parentPageId: string | null;
|
|
12473
12814
|
pathSegment: string;
|
|
12474
12815
|
projectId: number;
|
|
12816
|
+
publicationId: string | null;
|
|
12475
12817
|
publishedAt: number | null;
|
|
12476
12818
|
publishedBy: string | null;
|
|
12477
12819
|
rowId: number;
|
|
@@ -12596,6 +12938,7 @@ declare const router: {
|
|
|
12596
12938
|
parentPageId: string | null;
|
|
12597
12939
|
pathSegment: string;
|
|
12598
12940
|
projectId: number;
|
|
12941
|
+
publicationId: string | null;
|
|
12599
12942
|
publishedAt: number | null;
|
|
12600
12943
|
publishedBy: string | null;
|
|
12601
12944
|
rowId: number;
|
|
@@ -12624,6 +12967,7 @@ declare const router: {
|
|
|
12624
12967
|
parentPageId: string | null;
|
|
12625
12968
|
pathSegment: string;
|
|
12626
12969
|
projectId: number;
|
|
12970
|
+
publicationId: string | null;
|
|
12627
12971
|
publishedAt: number | null;
|
|
12628
12972
|
publishedBy: string | null;
|
|
12629
12973
|
rowId: number;
|
|
@@ -12747,6 +13091,7 @@ declare const router: {
|
|
|
12747
13091
|
parentPageId: string | null;
|
|
12748
13092
|
pathSegment: string;
|
|
12749
13093
|
projectId: number;
|
|
13094
|
+
publicationId: string | null;
|
|
12750
13095
|
publishedAt: number | null;
|
|
12751
13096
|
publishedBy: string | null;
|
|
12752
13097
|
rowId: number;
|
|
@@ -12772,6 +13117,7 @@ declare const router: {
|
|
|
12772
13117
|
parentPageId: string | null;
|
|
12773
13118
|
pathSegment: string;
|
|
12774
13119
|
projectId: number;
|
|
13120
|
+
publicationId: string | null;
|
|
12775
13121
|
publishedAt: number | null;
|
|
12776
13122
|
publishedBy: string | null;
|
|
12777
13123
|
rowId: number;
|
|
@@ -12890,6 +13236,7 @@ declare const router: {
|
|
|
12890
13236
|
parentPageId: string | null;
|
|
12891
13237
|
pathSegment: string;
|
|
12892
13238
|
projectId: number;
|
|
13239
|
+
publicationId: string | null;
|
|
12893
13240
|
publishedAt: number | null;
|
|
12894
13241
|
publishedBy: string | null;
|
|
12895
13242
|
rowId: number;
|
|
@@ -12915,6 +13262,7 @@ declare const router: {
|
|
|
12915
13262
|
parentPageId: string | null;
|
|
12916
13263
|
pathSegment: string;
|
|
12917
13264
|
projectId: number;
|
|
13265
|
+
publicationId: string | null;
|
|
12918
13266
|
publishedAt: number | null;
|
|
12919
13267
|
publishedBy: string | null;
|
|
12920
13268
|
rowId: number;
|
|
@@ -13036,6 +13384,7 @@ declare const router: {
|
|
|
13036
13384
|
parentPageId: string | null;
|
|
13037
13385
|
pathSegment: string;
|
|
13038
13386
|
projectId: number;
|
|
13387
|
+
publicationId: string | null;
|
|
13039
13388
|
publishedAt: number | null;
|
|
13040
13389
|
publishedBy: string | null;
|
|
13041
13390
|
rowId: number;
|
|
@@ -13061,6 +13410,7 @@ declare const router: {
|
|
|
13061
13410
|
parentPageId: string | null;
|
|
13062
13411
|
pathSegment: string;
|
|
13063
13412
|
projectId: number;
|
|
13413
|
+
publicationId: string | null;
|
|
13064
13414
|
publishedAt: number | null;
|
|
13065
13415
|
publishedBy: string | null;
|
|
13066
13416
|
rowId: number;
|
|
@@ -13180,6 +13530,7 @@ declare const router: {
|
|
|
13180
13530
|
parentPageId: string | null;
|
|
13181
13531
|
pathSegment: string;
|
|
13182
13532
|
projectId: number;
|
|
13533
|
+
publicationId: string | null;
|
|
13183
13534
|
publishedAt: number | null;
|
|
13184
13535
|
publishedBy: string | null;
|
|
13185
13536
|
rowId: number;
|
|
@@ -13205,6 +13556,7 @@ declare const router: {
|
|
|
13205
13556
|
parentPageId: string | null;
|
|
13206
13557
|
pathSegment: string;
|
|
13207
13558
|
projectId: number;
|
|
13559
|
+
publicationId: string | null;
|
|
13208
13560
|
publishedAt: number | null;
|
|
13209
13561
|
publishedBy: string | null;
|
|
13210
13562
|
rowId: number;
|
|
@@ -13282,6 +13634,7 @@ declare const router: {
|
|
|
13282
13634
|
parentPageId: string | null;
|
|
13283
13635
|
pathSegment: string;
|
|
13284
13636
|
projectId: number;
|
|
13637
|
+
publicationId: string | null;
|
|
13285
13638
|
publishedAt: number | null;
|
|
13286
13639
|
publishedBy: string | null;
|
|
13287
13640
|
rowId: number;
|
|
@@ -13307,6 +13660,7 @@ declare const router: {
|
|
|
13307
13660
|
parentPageId: string | null;
|
|
13308
13661
|
pathSegment: string;
|
|
13309
13662
|
projectId: number;
|
|
13663
|
+
publicationId: string | null;
|
|
13310
13664
|
publishedAt: number | null;
|
|
13311
13665
|
publishedBy: string | null;
|
|
13312
13666
|
rowId: number;
|
|
@@ -13336,6 +13690,7 @@ declare const router: {
|
|
|
13336
13690
|
pageId: string | null;
|
|
13337
13691
|
position: string;
|
|
13338
13692
|
projectId: number;
|
|
13693
|
+
publicationId: string | null;
|
|
13339
13694
|
publishedAt: number | null;
|
|
13340
13695
|
publishedBy: string | null;
|
|
13341
13696
|
rowId: number;
|
|
@@ -13367,6 +13722,7 @@ declare const router: {
|
|
|
13367
13722
|
parentItemId: string | null;
|
|
13368
13723
|
position: string;
|
|
13369
13724
|
projectId: number | null;
|
|
13725
|
+
publicationId: string | null;
|
|
13370
13726
|
publishedAt: number | null;
|
|
13371
13727
|
publishedBy: string | null;
|
|
13372
13728
|
rowId: number;
|
|
@@ -13399,6 +13755,7 @@ declare const router: {
|
|
|
13399
13755
|
pageId: string | null;
|
|
13400
13756
|
position: string;
|
|
13401
13757
|
projectId: number;
|
|
13758
|
+
publicationId: string | null;
|
|
13402
13759
|
publishedAt: number | null;
|
|
13403
13760
|
publishedBy: string | null;
|
|
13404
13761
|
rowId: number;
|
|
@@ -13430,6 +13787,7 @@ declare const router: {
|
|
|
13430
13787
|
parentItemId: string | null;
|
|
13431
13788
|
position: string;
|
|
13432
13789
|
projectId: number | null;
|
|
13790
|
+
publicationId: string | null;
|
|
13433
13791
|
publishedAt: number | null;
|
|
13434
13792
|
publishedBy: string | null;
|
|
13435
13793
|
rowId: number;
|
|
@@ -13541,6 +13899,7 @@ declare const router: {
|
|
|
13541
13899
|
pageId: string | null;
|
|
13542
13900
|
position: string;
|
|
13543
13901
|
projectId: number;
|
|
13902
|
+
publicationId: string | null;
|
|
13544
13903
|
publishedAt: number | null;
|
|
13545
13904
|
publishedBy: string | null;
|
|
13546
13905
|
rowId: number;
|
|
@@ -13572,6 +13931,7 @@ declare const router: {
|
|
|
13572
13931
|
parentItemId: string | null;
|
|
13573
13932
|
position: string;
|
|
13574
13933
|
projectId: number | null;
|
|
13934
|
+
publicationId: string | null;
|
|
13575
13935
|
publishedAt: number | null;
|
|
13576
13936
|
publishedBy: string | null;
|
|
13577
13937
|
rowId: number;
|
|
@@ -13604,6 +13964,7 @@ declare const router: {
|
|
|
13604
13964
|
pageId: string | null;
|
|
13605
13965
|
position: string;
|
|
13606
13966
|
projectId: number;
|
|
13967
|
+
publicationId: string | null;
|
|
13607
13968
|
publishedAt: number | null;
|
|
13608
13969
|
publishedBy: string | null;
|
|
13609
13970
|
rowId: number;
|
|
@@ -13635,6 +13996,7 @@ declare const router: {
|
|
|
13635
13996
|
parentItemId: string | null;
|
|
13636
13997
|
position: string;
|
|
13637
13998
|
projectId: number | null;
|
|
13999
|
+
publicationId: string | null;
|
|
13638
14000
|
publishedAt: number | null;
|
|
13639
14001
|
publishedBy: string | null;
|
|
13640
14002
|
rowId: number;
|
|
@@ -13678,6 +14040,7 @@ declare const router: {
|
|
|
13678
14040
|
pageId: string | null;
|
|
13679
14041
|
position: string;
|
|
13680
14042
|
projectId: number;
|
|
14043
|
+
publicationId: string | null;
|
|
13681
14044
|
publishedAt: number | null;
|
|
13682
14045
|
publishedBy: string | null;
|
|
13683
14046
|
rowId: number;
|
|
@@ -13709,6 +14072,7 @@ declare const router: {
|
|
|
13709
14072
|
parentItemId: string | null;
|
|
13710
14073
|
position: string;
|
|
13711
14074
|
projectId: number | null;
|
|
14075
|
+
publicationId: string | null;
|
|
13712
14076
|
publishedAt: number | null;
|
|
13713
14077
|
publishedBy: string | null;
|
|
13714
14078
|
rowId: number;
|
|
@@ -13741,6 +14105,7 @@ declare const router: {
|
|
|
13741
14105
|
pageId: string | null;
|
|
13742
14106
|
position: string;
|
|
13743
14107
|
projectId: number;
|
|
14108
|
+
publicationId: string | null;
|
|
13744
14109
|
publishedAt: number | null;
|
|
13745
14110
|
publishedBy: string | null;
|
|
13746
14111
|
rowId: number;
|
|
@@ -13772,6 +14137,7 @@ declare const router: {
|
|
|
13772
14137
|
parentItemId: string | null;
|
|
13773
14138
|
position: string;
|
|
13774
14139
|
projectId: number | null;
|
|
14140
|
+
publicationId: string | null;
|
|
13775
14141
|
publishedAt: number | null;
|
|
13776
14142
|
publishedBy: string | null;
|
|
13777
14143
|
rowId: number;
|
|
@@ -13910,6 +14276,7 @@ declare const router: {
|
|
|
13910
14276
|
pageId: string | null;
|
|
13911
14277
|
position: string;
|
|
13912
14278
|
projectId: number;
|
|
14279
|
+
publicationId: string | null;
|
|
13913
14280
|
publishedAt: number | null;
|
|
13914
14281
|
publishedBy: string | null;
|
|
13915
14282
|
rowId: number;
|
|
@@ -13939,6 +14306,7 @@ declare const router: {
|
|
|
13939
14306
|
pageId: string | null;
|
|
13940
14307
|
position: string;
|
|
13941
14308
|
projectId: number;
|
|
14309
|
+
publicationId: string | null;
|
|
13942
14310
|
publishedAt: number | null;
|
|
13943
14311
|
publishedBy: string | null;
|
|
13944
14312
|
rowId: number;
|
|
@@ -14609,6 +14977,7 @@ declare const router: {
|
|
|
14609
14977
|
pageId: string | null;
|
|
14610
14978
|
position: string;
|
|
14611
14979
|
projectId: number;
|
|
14980
|
+
publicationId: string | null;
|
|
14612
14981
|
publishedAt: number | null;
|
|
14613
14982
|
publishedBy: string | null;
|
|
14614
14983
|
rowId: number;
|
|
@@ -14640,6 +15009,7 @@ declare const router: {
|
|
|
14640
15009
|
parentItemId: string | null;
|
|
14641
15010
|
position: string;
|
|
14642
15011
|
projectId: number | null;
|
|
15012
|
+
publicationId: string | null;
|
|
14643
15013
|
publishedAt: number | null;
|
|
14644
15014
|
publishedBy: string | null;
|
|
14645
15015
|
rowId: number;
|
|
@@ -14689,6 +15059,7 @@ declare const router: {
|
|
|
14689
15059
|
pageId: string | null;
|
|
14690
15060
|
position: string;
|
|
14691
15061
|
projectId: number;
|
|
15062
|
+
publicationId: string | null;
|
|
14692
15063
|
publishedAt: number | null;
|
|
14693
15064
|
publishedBy: string | null;
|
|
14694
15065
|
rowId: number;
|
|
@@ -14720,6 +15091,7 @@ declare const router: {
|
|
|
14720
15091
|
parentItemId: string | null;
|
|
14721
15092
|
position: string;
|
|
14722
15093
|
projectId: number | null;
|
|
15094
|
+
publicationId: string | null;
|
|
14723
15095
|
publishedAt: number | null;
|
|
14724
15096
|
publishedBy: string | null;
|
|
14725
15097
|
rowId: number;
|
|
@@ -14782,6 +15154,7 @@ declare const router: {
|
|
|
14782
15154
|
pageId: string | null;
|
|
14783
15155
|
position: string;
|
|
14784
15156
|
projectId: number;
|
|
15157
|
+
publicationId: string | null;
|
|
14785
15158
|
publishedAt: number | null;
|
|
14786
15159
|
publishedBy: string | null;
|
|
14787
15160
|
rowId: number;
|
|
@@ -14813,6 +15186,7 @@ declare const router: {
|
|
|
14813
15186
|
parentItemId: string | null;
|
|
14814
15187
|
position: string;
|
|
14815
15188
|
projectId: number | null;
|
|
15189
|
+
publicationId: string | null;
|
|
14816
15190
|
publishedAt: number | null;
|
|
14817
15191
|
publishedBy: string | null;
|
|
14818
15192
|
rowId: number;
|
|
@@ -14862,6 +15236,7 @@ declare const router: {
|
|
|
14862
15236
|
pageId: string | null;
|
|
14863
15237
|
position: string;
|
|
14864
15238
|
projectId: number;
|
|
15239
|
+
publicationId: string | null;
|
|
14865
15240
|
publishedAt: number | null;
|
|
14866
15241
|
publishedBy: string | null;
|
|
14867
15242
|
rowId: number;
|
|
@@ -14893,6 +15268,7 @@ declare const router: {
|
|
|
14893
15268
|
parentItemId: string | null;
|
|
14894
15269
|
position: string;
|
|
14895
15270
|
projectId: number | null;
|
|
15271
|
+
publicationId: string | null;
|
|
14896
15272
|
publishedAt: number | null;
|
|
14897
15273
|
publishedBy: string | null;
|
|
14898
15274
|
rowId: number;
|
|
@@ -15388,6 +15764,7 @@ declare const router: {
|
|
|
15388
15764
|
optimizedSize: number | null;
|
|
15389
15765
|
path: string;
|
|
15390
15766
|
projectId: number;
|
|
15767
|
+
publicationId: string | null;
|
|
15391
15768
|
publishedAt: number | null;
|
|
15392
15769
|
publishedBy: string | null;
|
|
15393
15770
|
rowId: number;
|
|
@@ -15412,6 +15789,7 @@ declare const router: {
|
|
|
15412
15789
|
optimizedSize: number | null;
|
|
15413
15790
|
path: string;
|
|
15414
15791
|
projectId: number;
|
|
15792
|
+
publicationId: string | null;
|
|
15415
15793
|
publishedAt: number | null;
|
|
15416
15794
|
publishedBy: string | null;
|
|
15417
15795
|
rowId: number;
|
|
@@ -15444,6 +15822,7 @@ declare const router: {
|
|
|
15444
15822
|
optimizedSize: number | null;
|
|
15445
15823
|
path: string;
|
|
15446
15824
|
projectId: number;
|
|
15825
|
+
publicationId: string | null;
|
|
15447
15826
|
publishedAt: number | null;
|
|
15448
15827
|
publishedBy: string | null;
|
|
15449
15828
|
rowId: number;
|
|
@@ -15468,6 +15847,7 @@ declare const router: {
|
|
|
15468
15847
|
optimizedSize: number | null;
|
|
15469
15848
|
path: string;
|
|
15470
15849
|
projectId: number;
|
|
15850
|
+
publicationId: string | null;
|
|
15471
15851
|
publishedAt: number | null;
|
|
15472
15852
|
publishedBy: string | null;
|
|
15473
15853
|
rowId: number;
|
|
@@ -15598,6 +15978,7 @@ declare const router: {
|
|
|
15598
15978
|
optimizedSize: number | null;
|
|
15599
15979
|
path: string;
|
|
15600
15980
|
projectId: number;
|
|
15981
|
+
publicationId: string | null;
|
|
15601
15982
|
publishedAt: number | null;
|
|
15602
15983
|
publishedBy: string | null;
|
|
15603
15984
|
rowId: number;
|
|
@@ -15622,6 +16003,7 @@ declare const router: {
|
|
|
15622
16003
|
optimizedSize: number | null;
|
|
15623
16004
|
path: string;
|
|
15624
16005
|
projectId: number;
|
|
16006
|
+
publicationId: string | null;
|
|
15625
16007
|
publishedAt: number | null;
|
|
15626
16008
|
publishedBy: string | null;
|
|
15627
16009
|
rowId: number;
|
|
@@ -15740,6 +16122,7 @@ declare const router: {
|
|
|
15740
16122
|
optimizedSize: number | null;
|
|
15741
16123
|
path: string;
|
|
15742
16124
|
projectId: number;
|
|
16125
|
+
publicationId: string | null;
|
|
15743
16126
|
publishedAt: number | null;
|
|
15744
16127
|
publishedBy: string | null;
|
|
15745
16128
|
rowId: number;
|
|
@@ -15764,6 +16147,7 @@ declare const router: {
|
|
|
15764
16147
|
optimizedSize: number | null;
|
|
15765
16148
|
path: string;
|
|
15766
16149
|
projectId: number;
|
|
16150
|
+
publicationId: string | null;
|
|
15767
16151
|
publishedAt: number | null;
|
|
15768
16152
|
publishedBy: string | null;
|
|
15769
16153
|
rowId: number;
|
|
@@ -15881,6 +16265,7 @@ declare const router: {
|
|
|
15881
16265
|
optimizedSize: number | null;
|
|
15882
16266
|
path: string;
|
|
15883
16267
|
projectId: number;
|
|
16268
|
+
publicationId: string | null;
|
|
15884
16269
|
publishedAt: number | null;
|
|
15885
16270
|
publishedBy: string | null;
|
|
15886
16271
|
rowId: number;
|
|
@@ -15905,6 +16290,7 @@ declare const router: {
|
|
|
15905
16290
|
optimizedSize: number | null;
|
|
15906
16291
|
path: string;
|
|
15907
16292
|
projectId: number;
|
|
16293
|
+
publicationId: string | null;
|
|
15908
16294
|
publishedAt: number | null;
|
|
15909
16295
|
publishedBy: string | null;
|
|
15910
16296
|
rowId: number;
|
|
@@ -16116,6 +16502,7 @@ declare const router: {
|
|
|
16116
16502
|
optimizedSize: number | null;
|
|
16117
16503
|
path: string;
|
|
16118
16504
|
projectId: number;
|
|
16505
|
+
publicationId: string | null;
|
|
16119
16506
|
publishedAt: number | null;
|
|
16120
16507
|
publishedBy: string | null;
|
|
16121
16508
|
rowId: number;
|
|
@@ -16140,6 +16527,7 @@ declare const router: {
|
|
|
16140
16527
|
optimizedSize: number | null;
|
|
16141
16528
|
path: string;
|
|
16142
16529
|
projectId: number;
|
|
16530
|
+
publicationId: string | null;
|
|
16143
16531
|
publishedAt: number | null;
|
|
16144
16532
|
publishedBy: string | null;
|
|
16145
16533
|
rowId: number;
|
|
@@ -16216,6 +16604,7 @@ declare const router: {
|
|
|
16216
16604
|
optimizedSize: number | null;
|
|
16217
16605
|
path: string;
|
|
16218
16606
|
projectId: number;
|
|
16607
|
+
publicationId: string | null;
|
|
16219
16608
|
publishedAt: number | null;
|
|
16220
16609
|
publishedBy: string | null;
|
|
16221
16610
|
rowId: number;
|
|
@@ -16240,6 +16629,7 @@ declare const router: {
|
|
|
16240
16629
|
optimizedSize: number | null;
|
|
16241
16630
|
path: string;
|
|
16242
16631
|
projectId: number;
|
|
16632
|
+
publicationId: string | null;
|
|
16243
16633
|
publishedAt: number | null;
|
|
16244
16634
|
publishedBy: string | null;
|
|
16245
16635
|
rowId: number;
|
|
@@ -16279,6 +16669,7 @@ declare const router: {
|
|
|
16279
16669
|
parentItemId: string | null;
|
|
16280
16670
|
position: string;
|
|
16281
16671
|
projectId: number | null;
|
|
16672
|
+
publicationId: string | null;
|
|
16282
16673
|
publishedAt: number | null;
|
|
16283
16674
|
publishedBy: string | null;
|
|
16284
16675
|
rowId: number;
|
|
@@ -16309,6 +16700,7 @@ declare const router: {
|
|
|
16309
16700
|
parentItemId: string | null;
|
|
16310
16701
|
position: string;
|
|
16311
16702
|
projectId: number | null;
|
|
16703
|
+
publicationId: string | null;
|
|
16312
16704
|
publishedAt: number | null;
|
|
16313
16705
|
publishedBy: string | null;
|
|
16314
16706
|
rowId: number;
|
|
@@ -16442,6 +16834,7 @@ declare const router: {
|
|
|
16442
16834
|
parentItemId: string | null;
|
|
16443
16835
|
position: string;
|
|
16444
16836
|
projectId: number | null;
|
|
16837
|
+
publicationId: string | null;
|
|
16445
16838
|
publishedAt: number | null;
|
|
16446
16839
|
publishedBy: string | null;
|
|
16447
16840
|
rowId: number;
|
|
@@ -16465,6 +16858,7 @@ declare const router: {
|
|
|
16465
16858
|
parentItemId: string | null;
|
|
16466
16859
|
position: string;
|
|
16467
16860
|
projectId: number | null;
|
|
16861
|
+
publicationId: string | null;
|
|
16468
16862
|
publishedAt: number | null;
|
|
16469
16863
|
publishedBy: string | null;
|
|
16470
16864
|
rowId: number;
|
|
@@ -16582,6 +16976,7 @@ declare const router: {
|
|
|
16582
16976
|
parentItemId: string | null;
|
|
16583
16977
|
position: string;
|
|
16584
16978
|
projectId: number | null;
|
|
16979
|
+
publicationId: string | null;
|
|
16585
16980
|
publishedAt: number | null;
|
|
16586
16981
|
publishedBy: string | null;
|
|
16587
16982
|
rowId: number;
|
|
@@ -16605,6 +17000,7 @@ declare const router: {
|
|
|
16605
17000
|
parentItemId: string | null;
|
|
16606
17001
|
position: string;
|
|
16607
17002
|
projectId: number | null;
|
|
17003
|
+
publicationId: string | null;
|
|
16608
17004
|
publishedAt: number | null;
|
|
16609
17005
|
publishedBy: string | null;
|
|
16610
17006
|
rowId: number;
|
|
@@ -16722,6 +17118,7 @@ declare const router: {
|
|
|
16722
17118
|
parentItemId: string | null;
|
|
16723
17119
|
position: string;
|
|
16724
17120
|
projectId: number | null;
|
|
17121
|
+
publicationId: string | null;
|
|
16725
17122
|
publishedAt: number | null;
|
|
16726
17123
|
publishedBy: string | null;
|
|
16727
17124
|
rowId: number;
|
|
@@ -16745,6 +17142,7 @@ declare const router: {
|
|
|
16745
17142
|
parentItemId: string | null;
|
|
16746
17143
|
position: string;
|
|
16747
17144
|
projectId: number | null;
|
|
17145
|
+
publicationId: string | null;
|
|
16748
17146
|
publishedAt: number | null;
|
|
16749
17147
|
publishedBy: string | null;
|
|
16750
17148
|
rowId: number;
|
|
@@ -16863,6 +17261,7 @@ declare const router: {
|
|
|
16863
17261
|
parentItemId: string | null;
|
|
16864
17262
|
position: string;
|
|
16865
17263
|
projectId: number | null;
|
|
17264
|
+
publicationId: string | null;
|
|
16866
17265
|
publishedAt: number | null;
|
|
16867
17266
|
publishedBy: string | null;
|
|
16868
17267
|
rowId: number;
|
|
@@ -16886,6 +17285,7 @@ declare const router: {
|
|
|
16886
17285
|
parentItemId: string | null;
|
|
16887
17286
|
position: string;
|
|
16888
17287
|
projectId: number | null;
|
|
17288
|
+
publicationId: string | null;
|
|
16889
17289
|
publishedAt: number | null;
|
|
16890
17290
|
publishedBy: string | null;
|
|
16891
17291
|
rowId: number;
|
|
@@ -17002,6 +17402,7 @@ declare const router: {
|
|
|
17002
17402
|
parentItemId: string | null;
|
|
17003
17403
|
position: string;
|
|
17004
17404
|
projectId: number | null;
|
|
17405
|
+
publicationId: string | null;
|
|
17005
17406
|
publishedAt: number | null;
|
|
17006
17407
|
publishedBy: string | null;
|
|
17007
17408
|
rowId: number;
|
|
@@ -17025,6 +17426,7 @@ declare const router: {
|
|
|
17025
17426
|
parentItemId: string | null;
|
|
17026
17427
|
position: string;
|
|
17027
17428
|
projectId: number | null;
|
|
17429
|
+
publicationId: string | null;
|
|
17028
17430
|
publishedAt: number | null;
|
|
17029
17431
|
publishedBy: string | null;
|
|
17030
17432
|
rowId: number;
|
|
@@ -17100,6 +17502,7 @@ declare const router: {
|
|
|
17100
17502
|
parentItemId: string | null;
|
|
17101
17503
|
position: string;
|
|
17102
17504
|
projectId: number | null;
|
|
17505
|
+
publicationId: string | null;
|
|
17103
17506
|
publishedAt: number | null;
|
|
17104
17507
|
publishedBy: string | null;
|
|
17105
17508
|
rowId: number;
|
|
@@ -17123,6 +17526,7 @@ declare const router: {
|
|
|
17123
17526
|
parentItemId: string | null;
|
|
17124
17527
|
position: string;
|
|
17125
17528
|
projectId: number | null;
|
|
17529
|
+
publicationId: string | null;
|
|
17126
17530
|
publishedAt: number | null;
|
|
17127
17531
|
publishedBy: string | null;
|
|
17128
17532
|
rowId: number;
|
|
@@ -17239,6 +17643,7 @@ declare const router: {
|
|
|
17239
17643
|
parentItemId: string | null;
|
|
17240
17644
|
position: string;
|
|
17241
17645
|
projectId: number | null;
|
|
17646
|
+
publicationId: string | null;
|
|
17242
17647
|
publishedAt: number | null;
|
|
17243
17648
|
publishedBy: string | null;
|
|
17244
17649
|
rowId: number;
|
|
@@ -17262,6 +17667,7 @@ declare const router: {
|
|
|
17262
17667
|
parentItemId: string | null;
|
|
17263
17668
|
position: string;
|
|
17264
17669
|
projectId: number | null;
|
|
17670
|
+
publicationId: string | null;
|
|
17265
17671
|
publishedAt: number | null;
|
|
17266
17672
|
publishedBy: string | null;
|
|
17267
17673
|
rowId: number;
|
|
@@ -18630,7 +19036,7 @@ declare const router: {
|
|
|
18630
19036
|
token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
18631
19037
|
revision: import("zod").ZodOptional<import("zod").ZodString>;
|
|
18632
19038
|
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<PublishResult, PublishResult>, Record<never, never>, Record<never, never>>;
|
|
18633
|
-
|
|
19039
|
+
archive: 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>>, {
|
|
18634
19040
|
draft: DraftRequest | null;
|
|
18635
19041
|
locale: string | undefined;
|
|
18636
19042
|
publishingDraft: string | undefined;
|
|
@@ -18682,11 +19088,416 @@ declare const router: {
|
|
|
18682
19088
|
}>, import("zod").ZodObject<{
|
|
18683
19089
|
projectId: import("zod").ZodNumber;
|
|
18684
19090
|
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
|
|
18685
|
-
|
|
19091
|
+
archived: import("@camox/api-contract/drafts").ArchivedDraft;
|
|
18686
19092
|
}, {
|
|
18687
|
-
|
|
19093
|
+
archived: import("@camox/api-contract/drafts").ArchivedDraft;
|
|
18688
19094
|
}>, Record<never, never>, Record<never, never>>;
|
|
18689
|
-
|
|
19095
|
+
restore: 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>>, {
|
|
19096
|
+
draft: DraftRequest | null;
|
|
19097
|
+
locale: string | undefined;
|
|
19098
|
+
publishingDraft: string | undefined;
|
|
19099
|
+
look: LookGrant | undefined;
|
|
19100
|
+
}>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
19101
|
+
draft: DraftRequest | null;
|
|
19102
|
+
locale: string | undefined;
|
|
19103
|
+
publishingDraft: string | undefined;
|
|
19104
|
+
look: LookGrant | undefined;
|
|
19105
|
+
}>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
19106
|
+
draft: DraftRequest | null;
|
|
19107
|
+
locale: string | undefined;
|
|
19108
|
+
publishingDraft: string | undefined;
|
|
19109
|
+
look: LookGrant | undefined;
|
|
19110
|
+
}>, {
|
|
19111
|
+
db: Database;
|
|
19112
|
+
env: Bindings;
|
|
19113
|
+
headers: Headers;
|
|
19114
|
+
client: string;
|
|
19115
|
+
telemetryDisabled: boolean;
|
|
19116
|
+
waitUntil: (promise: Promise<unknown>) => void;
|
|
19117
|
+
apiOrigin?: string;
|
|
19118
|
+
draft: DraftRequest | null;
|
|
19119
|
+
locale: string | undefined;
|
|
19120
|
+
publishingDraft: string | undefined;
|
|
19121
|
+
look: LookGrant | undefined;
|
|
19122
|
+
user: {
|
|
19123
|
+
id: string;
|
|
19124
|
+
createdAt: Date;
|
|
19125
|
+
updatedAt: Date;
|
|
19126
|
+
email: string;
|
|
19127
|
+
emailVerified: boolean;
|
|
19128
|
+
name: string;
|
|
19129
|
+
image?: string | null | undefined;
|
|
19130
|
+
};
|
|
19131
|
+
session: {
|
|
19132
|
+
id: string;
|
|
19133
|
+
createdAt: Date;
|
|
19134
|
+
updatedAt: Date;
|
|
19135
|
+
userId: string;
|
|
19136
|
+
expiresAt: Date;
|
|
19137
|
+
token: string;
|
|
19138
|
+
ipAddress?: string | null | undefined;
|
|
19139
|
+
userAgent?: string | null | undefined;
|
|
19140
|
+
activeOrganizationId?: string | null | undefined;
|
|
19141
|
+
local?: boolean | null | undefined;
|
|
19142
|
+
studio?: boolean | null | undefined;
|
|
19143
|
+
};
|
|
19144
|
+
}>, import("zod").ZodObject<{
|
|
19145
|
+
projectId: import("zod").ZodNumber;
|
|
19146
|
+
draftId: import("zod").ZodString;
|
|
19147
|
+
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
|
|
19148
|
+
draftId: string;
|
|
19149
|
+
}, {
|
|
19150
|
+
draftId: string;
|
|
19151
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
19152
|
+
listArchived: 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>>, {
|
|
19153
|
+
draft: DraftRequest | null;
|
|
19154
|
+
locale: string | undefined;
|
|
19155
|
+
publishingDraft: string | undefined;
|
|
19156
|
+
look: LookGrant | undefined;
|
|
19157
|
+
}>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
19158
|
+
draft: DraftRequest | null;
|
|
19159
|
+
locale: string | undefined;
|
|
19160
|
+
publishingDraft: string | undefined;
|
|
19161
|
+
look: LookGrant | undefined;
|
|
19162
|
+
}>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
19163
|
+
draft: DraftRequest | null;
|
|
19164
|
+
locale: string | undefined;
|
|
19165
|
+
publishingDraft: string | undefined;
|
|
19166
|
+
look: LookGrant | undefined;
|
|
19167
|
+
}>, {
|
|
19168
|
+
db: Database;
|
|
19169
|
+
env: Bindings;
|
|
19170
|
+
headers: Headers;
|
|
19171
|
+
client: string;
|
|
19172
|
+
telemetryDisabled: boolean;
|
|
19173
|
+
waitUntil: (promise: Promise<unknown>) => void;
|
|
19174
|
+
apiOrigin?: string;
|
|
19175
|
+
draft: DraftRequest | null;
|
|
19176
|
+
locale: string | undefined;
|
|
19177
|
+
publishingDraft: string | undefined;
|
|
19178
|
+
look: LookGrant | undefined;
|
|
19179
|
+
user: {
|
|
19180
|
+
id: string;
|
|
19181
|
+
createdAt: Date;
|
|
19182
|
+
updatedAt: Date;
|
|
19183
|
+
email: string;
|
|
19184
|
+
emailVerified: boolean;
|
|
19185
|
+
name: string;
|
|
19186
|
+
image?: string | null | undefined;
|
|
19187
|
+
};
|
|
19188
|
+
session: {
|
|
19189
|
+
id: string;
|
|
19190
|
+
createdAt: Date;
|
|
19191
|
+
updatedAt: Date;
|
|
19192
|
+
userId: string;
|
|
19193
|
+
expiresAt: Date;
|
|
19194
|
+
token: string;
|
|
19195
|
+
ipAddress?: string | null | undefined;
|
|
19196
|
+
userAgent?: string | null | undefined;
|
|
19197
|
+
activeOrganizationId?: string | null | undefined;
|
|
19198
|
+
local?: boolean | null | undefined;
|
|
19199
|
+
studio?: boolean | null | undefined;
|
|
19200
|
+
};
|
|
19201
|
+
}>, import("zod").ZodObject<{
|
|
19202
|
+
projectId: import("zod").ZodNumber;
|
|
19203
|
+
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
|
|
19204
|
+
drafts: ArchivedDraftSummary[];
|
|
19205
|
+
}, {
|
|
19206
|
+
drafts: ArchivedDraftSummary[];
|
|
19207
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
19208
|
+
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>>, {
|
|
19209
|
+
draft: DraftRequest | null;
|
|
19210
|
+
locale: string | undefined;
|
|
19211
|
+
publishingDraft: string | undefined;
|
|
19212
|
+
look: LookGrant | undefined;
|
|
19213
|
+
}>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
19214
|
+
draft: DraftRequest | null;
|
|
19215
|
+
locale: string | undefined;
|
|
19216
|
+
publishingDraft: string | undefined;
|
|
19217
|
+
look: LookGrant | undefined;
|
|
19218
|
+
}>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
19219
|
+
draft: DraftRequest | null;
|
|
19220
|
+
locale: string | undefined;
|
|
19221
|
+
publishingDraft: string | undefined;
|
|
19222
|
+
look: LookGrant | undefined;
|
|
19223
|
+
}>, {
|
|
19224
|
+
db: Database;
|
|
19225
|
+
env: Bindings;
|
|
19226
|
+
headers: Headers;
|
|
19227
|
+
client: string;
|
|
19228
|
+
telemetryDisabled: boolean;
|
|
19229
|
+
waitUntil: (promise: Promise<unknown>) => void;
|
|
19230
|
+
apiOrigin?: string;
|
|
19231
|
+
draft: DraftRequest | null;
|
|
19232
|
+
locale: string | undefined;
|
|
19233
|
+
publishingDraft: string | undefined;
|
|
19234
|
+
look: LookGrant | undefined;
|
|
19235
|
+
user: {
|
|
19236
|
+
id: string;
|
|
19237
|
+
createdAt: Date;
|
|
19238
|
+
updatedAt: Date;
|
|
19239
|
+
email: string;
|
|
19240
|
+
emailVerified: boolean;
|
|
19241
|
+
name: string;
|
|
19242
|
+
image?: string | null | undefined;
|
|
19243
|
+
};
|
|
19244
|
+
session: {
|
|
19245
|
+
id: string;
|
|
19246
|
+
createdAt: Date;
|
|
19247
|
+
updatedAt: Date;
|
|
19248
|
+
userId: string;
|
|
19249
|
+
expiresAt: Date;
|
|
19250
|
+
token: string;
|
|
19251
|
+
ipAddress?: string | null | undefined;
|
|
19252
|
+
userAgent?: string | null | undefined;
|
|
19253
|
+
activeOrganizationId?: string | null | undefined;
|
|
19254
|
+
local?: boolean | null | undefined;
|
|
19255
|
+
studio?: boolean | null | undefined;
|
|
19256
|
+
};
|
|
19257
|
+
}>, import("zod").ZodObject<{
|
|
19258
|
+
projectId: import("zod").ZodNumber;
|
|
19259
|
+
draftId: import("zod").ZodString;
|
|
19260
|
+
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
|
|
19261
|
+
ended: import("@camox/api-contract/drafts").EndedDraft | null;
|
|
19262
|
+
}, {
|
|
19263
|
+
ended: import("@camox/api-contract/drafts").EndedDraft | null;
|
|
19264
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
19265
|
+
revertToLive: 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>>, {
|
|
19266
|
+
draft: DraftRequest | null;
|
|
19267
|
+
locale: string | undefined;
|
|
19268
|
+
publishingDraft: string | undefined;
|
|
19269
|
+
look: LookGrant | undefined;
|
|
19270
|
+
}>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
19271
|
+
draft: DraftRequest | null;
|
|
19272
|
+
locale: string | undefined;
|
|
19273
|
+
publishingDraft: string | undefined;
|
|
19274
|
+
look: LookGrant | undefined;
|
|
19275
|
+
}>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
19276
|
+
draft: DraftRequest | null;
|
|
19277
|
+
locale: string | undefined;
|
|
19278
|
+
publishingDraft: string | undefined;
|
|
19279
|
+
look: LookGrant | undefined;
|
|
19280
|
+
}>, {
|
|
19281
|
+
db: Database;
|
|
19282
|
+
env: Bindings;
|
|
19283
|
+
headers: Headers;
|
|
19284
|
+
client: string;
|
|
19285
|
+
telemetryDisabled: boolean;
|
|
19286
|
+
waitUntil: (promise: Promise<unknown>) => void;
|
|
19287
|
+
apiOrigin?: string;
|
|
19288
|
+
draft: DraftRequest | null;
|
|
19289
|
+
locale: string | undefined;
|
|
19290
|
+
publishingDraft: string | undefined;
|
|
19291
|
+
look: LookGrant | undefined;
|
|
19292
|
+
user: {
|
|
19293
|
+
id: string;
|
|
19294
|
+
createdAt: Date;
|
|
19295
|
+
updatedAt: Date;
|
|
19296
|
+
email: string;
|
|
19297
|
+
emailVerified: boolean;
|
|
19298
|
+
name: string;
|
|
19299
|
+
image?: string | null | undefined;
|
|
19300
|
+
};
|
|
19301
|
+
session: {
|
|
19302
|
+
id: string;
|
|
19303
|
+
createdAt: Date;
|
|
19304
|
+
updatedAt: Date;
|
|
19305
|
+
userId: string;
|
|
19306
|
+
expiresAt: Date;
|
|
19307
|
+
token: string;
|
|
19308
|
+
ipAddress?: string | null | undefined;
|
|
19309
|
+
userAgent?: string | null | undefined;
|
|
19310
|
+
activeOrganizationId?: string | null | undefined;
|
|
19311
|
+
local?: boolean | null | undefined;
|
|
19312
|
+
studio?: boolean | null | undefined;
|
|
19313
|
+
};
|
|
19314
|
+
}>, import("zod").ZodObject<{
|
|
19315
|
+
projectId: import("zod").ZodNumber;
|
|
19316
|
+
entity: import("zod").ZodEnum<{
|
|
19317
|
+
block: "block";
|
|
19318
|
+
exclusion: "exclusion";
|
|
19319
|
+
file: "file";
|
|
19320
|
+
locale: "locale";
|
|
19321
|
+
page: "page";
|
|
19322
|
+
record: "record";
|
|
19323
|
+
repeatableItem: "repeatableItem";
|
|
19324
|
+
sharedContent: "sharedContent";
|
|
19325
|
+
}>;
|
|
19326
|
+
id: import("zod").ZodString;
|
|
19327
|
+
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{}, {}>, Record<never, never>, Record<never, never>>;
|
|
19328
|
+
};
|
|
19329
|
+
publications: {
|
|
19330
|
+
list: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
19331
|
+
draft: DraftRequest | null;
|
|
19332
|
+
locale: string | undefined;
|
|
19333
|
+
publishingDraft: string | undefined;
|
|
19334
|
+
look: LookGrant | undefined;
|
|
19335
|
+
}>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
19336
|
+
draft: DraftRequest | null;
|
|
19337
|
+
locale: string | undefined;
|
|
19338
|
+
publishingDraft: string | undefined;
|
|
19339
|
+
look: LookGrant | undefined;
|
|
19340
|
+
}>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
19341
|
+
draft: DraftRequest | null;
|
|
19342
|
+
locale: string | undefined;
|
|
19343
|
+
publishingDraft: string | undefined;
|
|
19344
|
+
look: LookGrant | undefined;
|
|
19345
|
+
}>, {
|
|
19346
|
+
db: Database;
|
|
19347
|
+
env: Bindings;
|
|
19348
|
+
headers: Headers;
|
|
19349
|
+
client: string;
|
|
19350
|
+
telemetryDisabled: boolean;
|
|
19351
|
+
waitUntil: (promise: Promise<unknown>) => void;
|
|
19352
|
+
apiOrigin?: string;
|
|
19353
|
+
draft: DraftRequest | null;
|
|
19354
|
+
locale: string | undefined;
|
|
19355
|
+
publishingDraft: string | undefined;
|
|
19356
|
+
look: LookGrant | undefined;
|
|
19357
|
+
user: {
|
|
19358
|
+
id: string;
|
|
19359
|
+
createdAt: Date;
|
|
19360
|
+
updatedAt: Date;
|
|
19361
|
+
email: string;
|
|
19362
|
+
emailVerified: boolean;
|
|
19363
|
+
name: string;
|
|
19364
|
+
image?: string | null | undefined;
|
|
19365
|
+
};
|
|
19366
|
+
session: {
|
|
19367
|
+
id: string;
|
|
19368
|
+
createdAt: Date;
|
|
19369
|
+
updatedAt: Date;
|
|
19370
|
+
userId: string;
|
|
19371
|
+
expiresAt: Date;
|
|
19372
|
+
token: string;
|
|
19373
|
+
ipAddress?: string | null | undefined;
|
|
19374
|
+
userAgent?: string | null | undefined;
|
|
19375
|
+
activeOrganizationId?: string | null | undefined;
|
|
19376
|
+
local?: boolean | null | undefined;
|
|
19377
|
+
studio?: boolean | null | undefined;
|
|
19378
|
+
};
|
|
19379
|
+
}>, import("zod").ZodObject<{
|
|
19380
|
+
projectId: import("zod").ZodNumber;
|
|
19381
|
+
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
|
|
19382
|
+
publications: PublicationSummary[];
|
|
19383
|
+
}, {
|
|
19384
|
+
publications: PublicationSummary[];
|
|
19385
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
19386
|
+
get: 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>>, {
|
|
19387
|
+
draft: DraftRequest | null;
|
|
19388
|
+
locale: string | undefined;
|
|
19389
|
+
publishingDraft: string | undefined;
|
|
19390
|
+
look: LookGrant | undefined;
|
|
19391
|
+
}>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
19392
|
+
draft: DraftRequest | null;
|
|
19393
|
+
locale: string | undefined;
|
|
19394
|
+
publishingDraft: string | undefined;
|
|
19395
|
+
look: LookGrant | undefined;
|
|
19396
|
+
}>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
19397
|
+
draft: DraftRequest | null;
|
|
19398
|
+
locale: string | undefined;
|
|
19399
|
+
publishingDraft: string | undefined;
|
|
19400
|
+
look: LookGrant | undefined;
|
|
19401
|
+
}>, {
|
|
19402
|
+
db: Database;
|
|
19403
|
+
env: Bindings;
|
|
19404
|
+
headers: Headers;
|
|
19405
|
+
client: string;
|
|
19406
|
+
telemetryDisabled: boolean;
|
|
19407
|
+
waitUntil: (promise: Promise<unknown>) => void;
|
|
19408
|
+
apiOrigin?: string;
|
|
19409
|
+
draft: DraftRequest | null;
|
|
19410
|
+
locale: string | undefined;
|
|
19411
|
+
publishingDraft: string | undefined;
|
|
19412
|
+
look: LookGrant | undefined;
|
|
19413
|
+
user: {
|
|
19414
|
+
id: string;
|
|
19415
|
+
createdAt: Date;
|
|
19416
|
+
updatedAt: Date;
|
|
19417
|
+
email: string;
|
|
19418
|
+
emailVerified: boolean;
|
|
19419
|
+
name: string;
|
|
19420
|
+
image?: string | null | undefined;
|
|
19421
|
+
};
|
|
19422
|
+
session: {
|
|
19423
|
+
id: string;
|
|
19424
|
+
createdAt: Date;
|
|
19425
|
+
updatedAt: Date;
|
|
19426
|
+
userId: string;
|
|
19427
|
+
expiresAt: Date;
|
|
19428
|
+
token: string;
|
|
19429
|
+
ipAddress?: string | null | undefined;
|
|
19430
|
+
userAgent?: string | null | undefined;
|
|
19431
|
+
activeOrganizationId?: string | null | undefined;
|
|
19432
|
+
local?: boolean | null | undefined;
|
|
19433
|
+
studio?: boolean | null | undefined;
|
|
19434
|
+
};
|
|
19435
|
+
}>, import("zod").ZodObject<{
|
|
19436
|
+
projectId: import("zod").ZodNumber;
|
|
19437
|
+
id: import("zod").ZodString;
|
|
19438
|
+
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
|
|
19439
|
+
publication: PublicationRead;
|
|
19440
|
+
}, {
|
|
19441
|
+
publication: PublicationRead;
|
|
19442
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
19443
|
+
revert: 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>>, {
|
|
19444
|
+
draft: DraftRequest | null;
|
|
19445
|
+
locale: string | undefined;
|
|
19446
|
+
publishingDraft: string | undefined;
|
|
19447
|
+
look: LookGrant | undefined;
|
|
19448
|
+
}>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
19449
|
+
draft: DraftRequest | null;
|
|
19450
|
+
locale: string | undefined;
|
|
19451
|
+
publishingDraft: string | undefined;
|
|
19452
|
+
look: LookGrant | undefined;
|
|
19453
|
+
}>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
19454
|
+
draft: DraftRequest | null;
|
|
19455
|
+
locale: string | undefined;
|
|
19456
|
+
publishingDraft: string | undefined;
|
|
19457
|
+
look: LookGrant | undefined;
|
|
19458
|
+
}>, {
|
|
19459
|
+
db: Database;
|
|
19460
|
+
env: Bindings;
|
|
19461
|
+
headers: Headers;
|
|
19462
|
+
client: string;
|
|
19463
|
+
telemetryDisabled: boolean;
|
|
19464
|
+
waitUntil: (promise: Promise<unknown>) => void;
|
|
19465
|
+
apiOrigin?: string;
|
|
19466
|
+
draft: DraftRequest | null;
|
|
19467
|
+
locale: string | undefined;
|
|
19468
|
+
publishingDraft: string | undefined;
|
|
19469
|
+
look: LookGrant | undefined;
|
|
19470
|
+
user: {
|
|
19471
|
+
id: string;
|
|
19472
|
+
createdAt: Date;
|
|
19473
|
+
updatedAt: Date;
|
|
19474
|
+
email: string;
|
|
19475
|
+
emailVerified: boolean;
|
|
19476
|
+
name: string;
|
|
19477
|
+
image?: string | null | undefined;
|
|
19478
|
+
};
|
|
19479
|
+
session: {
|
|
19480
|
+
id: string;
|
|
19481
|
+
createdAt: Date;
|
|
19482
|
+
updatedAt: Date;
|
|
19483
|
+
userId: string;
|
|
19484
|
+
expiresAt: Date;
|
|
19485
|
+
token: string;
|
|
19486
|
+
ipAddress?: string | null | undefined;
|
|
19487
|
+
userAgent?: string | null | undefined;
|
|
19488
|
+
activeOrganizationId?: string | null | undefined;
|
|
19489
|
+
local?: boolean | null | undefined;
|
|
19490
|
+
studio?: boolean | null | undefined;
|
|
19491
|
+
};
|
|
19492
|
+
}>, import("zod").ZodObject<{
|
|
19493
|
+
projectId: import("zod").ZodNumber;
|
|
19494
|
+
id: import("zod").ZodString;
|
|
19495
|
+
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{
|
|
19496
|
+
draftId: string;
|
|
19497
|
+
}, {
|
|
19498
|
+
draftId: string;
|
|
19499
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
19500
|
+
clearThread: 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>>, {
|
|
18690
19501
|
draft: DraftRequest | null;
|
|
18691
19502
|
locale: string | undefined;
|
|
18692
19503
|
publishingDraft: string | undefined;
|
|
@@ -18737,16 +19548,6 @@ declare const router: {
|
|
|
18737
19548
|
};
|
|
18738
19549
|
}>, import("zod").ZodObject<{
|
|
18739
19550
|
projectId: import("zod").ZodNumber;
|
|
18740
|
-
entity: import("zod").ZodEnum<{
|
|
18741
|
-
block: "block";
|
|
18742
|
-
exclusion: "exclusion";
|
|
18743
|
-
file: "file";
|
|
18744
|
-
locale: "locale";
|
|
18745
|
-
page: "page";
|
|
18746
|
-
record: "record";
|
|
18747
|
-
repeatableItem: "repeatableItem";
|
|
18748
|
-
sharedContent: "sharedContent";
|
|
18749
|
-
}>;
|
|
18750
19551
|
id: import("zod").ZodString;
|
|
18751
19552
|
}, import("zod/v4/core").$strip>, import("@orpc/server").Schema<{}, {}>, Record<never, never>, Record<never, never>>;
|
|
18752
19553
|
};
|