@sudobility/screenwriter_types 0.1.7 → 0.1.8
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/admin/index.d.ts +3 -3
- package/dist/ai/index.d.ts +1 -1
- package/dist/api/routes.d.ts +12 -12
- package/dist/assets/index.d.ts +13 -13
- package/dist/collab/index.d.ts +2 -2
- package/dist/credits/index.d.ts +1 -1
- package/dist/index.js +94 -104
- package/dist/index.js.map +1 -1
- package/dist/io/index.d.ts +3 -3
- package/dist/keys/index.d.ts +2 -2
- package/dist/keys.js +1 -1
- package/dist/keys.js.map +1 -1
- package/dist/lifecycle/index.d.ts +5 -5
- package/dist/me/index.d.ts +1 -1
- package/dist/projects/index.d.ts +3 -3
- package/dist/reads/index.d.ts +2 -2
- package/dist/sharing/index.d.ts +19 -19
- package/dist/templates/index.d.ts +9 -9
- package/dist/tenancy/index.d.ts +17 -17
- package/dist/test/index.d.ts +2 -2
- package/dist/test.js +2 -2
- package/dist/test.js.map +1 -1
- package/package.json +1 -1
package/dist/admin/index.d.ts
CHANGED
|
@@ -72,8 +72,8 @@ export interface AdminUserRestoreResponse {
|
|
|
72
72
|
/**
|
|
73
73
|
* `DELETE /admin/users/:uid`: schedules an IMMEDIATE deletion (no grace period) and revokes the user's API keys and
|
|
74
74
|
* share links — the same bounded action `DELETE /me` takes, admin-triggered. **Not** a destructive data purge: no
|
|
75
|
-
* `system.purge` job exists anywhere in this codebase yet to actually delete a user's
|
|
76
|
-
* and `
|
|
75
|
+
* `system.purge` job exists anywhere in this codebase yet to actually delete a user's entities/documents/content,
|
|
76
|
+
* and `entities.created_by` is `ON DELETE RESTRICT`, so a raw row delete cannot work without first reassigning
|
|
77
77
|
* or deleting every workspace the person created — real work for that job, not this route.
|
|
78
78
|
*/
|
|
79
79
|
export interface AdminUserPurgeResponse {
|
|
@@ -85,7 +85,7 @@ export interface AdminDocumentMeta {
|
|
|
85
85
|
title: string;
|
|
86
86
|
kind: string;
|
|
87
87
|
projectId: string;
|
|
88
|
-
|
|
88
|
+
entityId: string;
|
|
89
89
|
ownerEmail: string | null;
|
|
90
90
|
epoch: number;
|
|
91
91
|
schemaVersion: number;
|
package/dist/ai/index.d.ts
CHANGED
|
@@ -522,7 +522,7 @@ export interface AiEstimateResponse {
|
|
|
522
522
|
withinLimit: boolean;
|
|
523
523
|
balance: number;
|
|
524
524
|
}
|
|
525
|
-
/** `GET /me/ai-activity`, `GET /
|
|
525
|
+
/** `GET /me/ai-activity`, `GET /entities/:wid/ai-activity` (the latter adds `userId`). */
|
|
526
526
|
export interface AiActivityItem {
|
|
527
527
|
jobId: string;
|
|
528
528
|
task: AiTask;
|
package/dist/api/routes.d.ts
CHANGED
|
@@ -15,8 +15,8 @@ export declare const API_ROUTES: {
|
|
|
15
15
|
readonly health: RouteSpec;
|
|
16
16
|
readonly meGet: RouteSpec;
|
|
17
17
|
readonly mePatch: RouteSpec;
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
18
|
+
readonly entitiesList: RouteSpec;
|
|
19
|
+
readonly entityGetDetails: RouteSpec;
|
|
20
20
|
readonly projectsList: RouteSpec;
|
|
21
21
|
readonly projectCreate: RouteSpec;
|
|
22
22
|
readonly projectGet: RouteSpec;
|
|
@@ -81,20 +81,20 @@ export declare const API_ROUTES: {
|
|
|
81
81
|
readonly aiSuggestionSetGet: RouteSpec;
|
|
82
82
|
readonly aiSuggestionSetAccept: RouteSpec;
|
|
83
83
|
readonly aiSuggestionSetReject: RouteSpec;
|
|
84
|
-
readonly
|
|
85
|
-
readonly
|
|
86
|
-
readonly
|
|
87
|
-
readonly
|
|
88
|
-
readonly
|
|
89
|
-
readonly
|
|
90
|
-
readonly
|
|
84
|
+
readonly entityCreate: RouteSpec;
|
|
85
|
+
readonly entityUpdate: RouteSpec;
|
|
86
|
+
readonly entityDelete: RouteSpec;
|
|
87
|
+
readonly entityTransfer: RouteSpec;
|
|
88
|
+
readonly entityLeave: RouteSpec;
|
|
89
|
+
readonly managedEntityUsage: RouteSpec;
|
|
90
|
+
readonly entityAudit: RouteSpec;
|
|
91
91
|
readonly membersList: RouteSpec;
|
|
92
92
|
readonly memberUpdate: RouteSpec;
|
|
93
93
|
readonly memberRemove: RouteSpec;
|
|
94
|
-
readonly
|
|
94
|
+
readonly invitationCreateEntity: RouteSpec;
|
|
95
95
|
readonly invitationCreateProject: RouteSpec;
|
|
96
96
|
readonly invitationCreateDocument: RouteSpec;
|
|
97
|
-
readonly
|
|
97
|
+
readonly entityInvitationsList: RouteSpec;
|
|
98
98
|
readonly myInvitations: RouteSpec;
|
|
99
99
|
readonly invitationRenew: RouteSpec;
|
|
100
100
|
readonly invitationCancel: RouteSpec;
|
|
@@ -126,7 +126,7 @@ export declare const API_ROUTES: {
|
|
|
126
126
|
readonly jobOutputs: RouteSpec;
|
|
127
127
|
readonly jobRecipients: RouteSpec;
|
|
128
128
|
readonly jobWebhook: RouteSpec;
|
|
129
|
-
readonly
|
|
129
|
+
readonly documentEntitiesList: RouteSpec;
|
|
130
130
|
readonly entityGet: RouteSpec;
|
|
131
131
|
readonly entityUsage: RouteSpec;
|
|
132
132
|
readonly entityDialogue: RouteSpec;
|
package/dist/assets/index.d.ts
CHANGED
|
@@ -56,11 +56,11 @@ export declare const ASSET_TARGET_KINDS: readonly ["document", "scene", "element
|
|
|
56
56
|
export type AssetTargetKind = (typeof ASSET_TARGET_KINDS)[number];
|
|
57
57
|
export declare const assetTargetKindSchema: z.ZodEnum<{
|
|
58
58
|
scene: "scene";
|
|
59
|
+
entity: "entity";
|
|
59
60
|
document: "document";
|
|
60
61
|
snapshot: "snapshot";
|
|
61
62
|
element: "element";
|
|
62
63
|
shot: "shot";
|
|
63
|
-
entity: "entity";
|
|
64
64
|
beat: "beat";
|
|
65
65
|
title_page: "title_page";
|
|
66
66
|
}>;
|
|
@@ -119,10 +119,10 @@ export declare const assetSourceRefSchema: z.ZodObject<{
|
|
|
119
119
|
snapshotId: z.ZodOptional<z.ZodString>;
|
|
120
120
|
targetKind: z.ZodEnum<{
|
|
121
121
|
scene: "scene";
|
|
122
|
+
entity: "entity";
|
|
122
123
|
document: "document";
|
|
123
124
|
element: "element";
|
|
124
125
|
shot: "shot";
|
|
125
|
-
entity: "entity";
|
|
126
126
|
beat: "beat";
|
|
127
127
|
title_page: "title_page";
|
|
128
128
|
}>;
|
|
@@ -141,10 +141,10 @@ export declare const assetProvenanceInputSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
141
141
|
snapshotId: z.ZodOptional<z.ZodString>;
|
|
142
142
|
targetKind: z.ZodEnum<{
|
|
143
143
|
scene: "scene";
|
|
144
|
+
entity: "entity";
|
|
144
145
|
document: "document";
|
|
145
146
|
element: "element";
|
|
146
147
|
shot: "shot";
|
|
147
|
-
entity: "entity";
|
|
148
148
|
beat: "beat";
|
|
149
149
|
title_page: "title_page";
|
|
150
150
|
}>;
|
|
@@ -175,10 +175,10 @@ export declare const assetProvenanceInputSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
175
175
|
snapshotId: z.ZodOptional<z.ZodString>;
|
|
176
176
|
targetKind: z.ZodEnum<{
|
|
177
177
|
scene: "scene";
|
|
178
|
+
entity: "entity";
|
|
178
179
|
document: "document";
|
|
179
180
|
element: "element";
|
|
180
181
|
shot: "shot";
|
|
181
|
-
entity: "entity";
|
|
182
182
|
beat: "beat";
|
|
183
183
|
title_page: "title_page";
|
|
184
184
|
}>;
|
|
@@ -244,7 +244,7 @@ export interface AssetVersion {
|
|
|
244
244
|
}
|
|
245
245
|
export interface AssetSummary {
|
|
246
246
|
id: string;
|
|
247
|
-
|
|
247
|
+
entityId: string;
|
|
248
248
|
kind: AssetKind;
|
|
249
249
|
title: string;
|
|
250
250
|
description: string;
|
|
@@ -265,11 +265,11 @@ export interface AssetSummary {
|
|
|
265
265
|
}
|
|
266
266
|
export interface AssetLink {
|
|
267
267
|
id: string;
|
|
268
|
-
|
|
268
|
+
entityId: string;
|
|
269
269
|
assetId: string;
|
|
270
270
|
/** Null = follow the asset's current version. */
|
|
271
271
|
pinnedVersionId: string | null;
|
|
272
|
-
/** Null = a workspace-level link (its target is `{kind: 'document', id: <
|
|
272
|
+
/** Null = a workspace-level link (its target is `{kind: 'document', id: <entityId>}`). */
|
|
273
273
|
documentId: string | null;
|
|
274
274
|
targetKind: AssetTargetKind;
|
|
275
275
|
targetId: string;
|
|
@@ -318,10 +318,10 @@ export declare const assetUploadRequestSchema: z.ZodObject<{
|
|
|
318
318
|
snapshotId: z.ZodOptional<z.ZodString>;
|
|
319
319
|
targetKind: z.ZodEnum<{
|
|
320
320
|
scene: "scene";
|
|
321
|
+
entity: "entity";
|
|
321
322
|
document: "document";
|
|
322
323
|
element: "element";
|
|
323
324
|
shot: "shot";
|
|
324
|
-
entity: "entity";
|
|
325
325
|
beat: "beat";
|
|
326
326
|
title_page: "title_page";
|
|
327
327
|
}>;
|
|
@@ -352,10 +352,10 @@ export declare const assetUploadRequestSchema: z.ZodObject<{
|
|
|
352
352
|
snapshotId: z.ZodOptional<z.ZodString>;
|
|
353
353
|
targetKind: z.ZodEnum<{
|
|
354
354
|
scene: "scene";
|
|
355
|
+
entity: "entity";
|
|
355
356
|
document: "document";
|
|
356
357
|
element: "element";
|
|
357
358
|
shot: "shot";
|
|
358
|
-
entity: "entity";
|
|
359
359
|
beat: "beat";
|
|
360
360
|
title_page: "title_page";
|
|
361
361
|
}>;
|
|
@@ -441,7 +441,7 @@ export interface AssetAbortResponse {
|
|
|
441
441
|
export declare const assetListQuerySchema: z.ZodObject<{
|
|
442
442
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
443
443
|
cursor: z.ZodOptional<z.ZodString>;
|
|
444
|
-
|
|
444
|
+
entityId: z.ZodOptional<z.ZodString>;
|
|
445
445
|
documentId: z.ZodOptional<z.ZodString>;
|
|
446
446
|
linkedTo: z.ZodOptional<z.ZodString>;
|
|
447
447
|
role: z.ZodOptional<z.ZodEnum<{
|
|
@@ -537,11 +537,11 @@ export declare const assetLinkCreateSchema: z.ZodObject<{
|
|
|
537
537
|
target: z.ZodObject<{
|
|
538
538
|
kind: z.ZodEnum<{
|
|
539
539
|
scene: "scene";
|
|
540
|
+
entity: "entity";
|
|
540
541
|
document: "document";
|
|
541
542
|
snapshot: "snapshot";
|
|
542
543
|
element: "element";
|
|
543
544
|
shot: "shot";
|
|
544
|
-
entity: "entity";
|
|
545
545
|
beat: "beat";
|
|
546
546
|
title_page: "title_page";
|
|
547
547
|
}>;
|
|
@@ -630,11 +630,11 @@ export type AssetLinkUpdateRequest = z.input<typeof assetLinkUpdateSchema>;
|
|
|
630
630
|
export declare const documentAssetLinksQuerySchema: z.ZodObject<{
|
|
631
631
|
targetKind: z.ZodOptional<z.ZodEnum<{
|
|
632
632
|
scene: "scene";
|
|
633
|
+
entity: "entity";
|
|
633
634
|
document: "document";
|
|
634
635
|
snapshot: "snapshot";
|
|
635
636
|
element: "element";
|
|
636
637
|
shot: "shot";
|
|
637
|
-
entity: "entity";
|
|
638
638
|
beat: "beat";
|
|
639
639
|
title_page: "title_page";
|
|
640
640
|
}>>;
|
|
@@ -689,9 +689,9 @@ export declare const STALENESS_TARGET_KINDS: readonly ["scene", "element", "shot
|
|
|
689
689
|
export declare const documentStalenessQuerySchema: z.ZodObject<{
|
|
690
690
|
targetKind: z.ZodOptional<z.ZodEnum<{
|
|
691
691
|
scene: "scene";
|
|
692
|
+
entity: "entity";
|
|
692
693
|
element: "element";
|
|
693
694
|
shot: "shot";
|
|
694
|
-
entity: "entity";
|
|
695
695
|
}>>;
|
|
696
696
|
}, z.core.$strip>;
|
|
697
697
|
export type DocumentStalenessQuery = z.output<typeof documentStalenessQuerySchema>;
|
package/dist/collab/index.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export interface Notification {
|
|
|
42
42
|
kind: NotificationKind;
|
|
43
43
|
/** Ids and display strings only; never document/script content (spec 05 §8.7). */
|
|
44
44
|
payload: Record<string, unknown>;
|
|
45
|
-
|
|
45
|
+
entityId: string | null;
|
|
46
46
|
documentId: string | null;
|
|
47
47
|
readAt: string | null;
|
|
48
48
|
createdAt: string;
|
|
@@ -134,7 +134,7 @@ export interface ActivityEvent {
|
|
|
134
134
|
targetIds: string[];
|
|
135
135
|
createdAt: string;
|
|
136
136
|
}
|
|
137
|
-
/** `GET /
|
|
137
|
+
/** `GET /entities/:wid/activity` items also carry the document they happened on. */
|
|
138
138
|
export interface WorkspaceActivityEvent extends ActivityEvent {
|
|
139
139
|
documentId: string | null;
|
|
140
140
|
}
|
package/dist/credits/index.d.ts
CHANGED