@sanity/workbench 0.1.0-alpha.7 → 0.1.0-alpha.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/core.d.ts CHANGED
@@ -1,12 +1,8 @@
1
1
  import type { ApplicationResource } from "@sanity/message-protocol";
2
2
  import type { CanvasResource } from "@sanity/message-protocol";
3
- import type { CoreApplication } from "@sanity/message-protocol";
4
3
  import type { MediaResource } from "@sanity/message-protocol";
5
4
  import type { Resource } from "@sanity/message-protocol";
6
- import type { StudioApplication as StudioApplication_2 } from "@sanity/message-protocol";
7
5
  import type { StudioResource } from "@sanity/message-protocol";
8
- import type { UserApplication as UserApplication_2 } from "@sanity/message-protocol";
9
- import type { WorkspaceManifest } from "@sanity/message-protocol";
10
6
  import { z } from "zod";
11
7
 
12
8
  /**
@@ -44,6 +40,25 @@ export declare type AbstractApplicationType =
44
40
  | "media-library"
45
41
  | "workspace";
46
42
 
43
+ /**
44
+ * @public
45
+ */
46
+ export declare const ActiveDeployment: z.ZodObject<
47
+ {
48
+ id: z.ZodString;
49
+ version: z.ZodString;
50
+ isActiveDeployment: z.ZodBoolean;
51
+ userApplicationId: z.ZodString;
52
+ isAutoUpdating: z.ZodBoolean;
53
+ size: z.ZodNumber;
54
+ deployedAt: z.ZodString;
55
+ deployedBy: z.ZodString;
56
+ createdAt: z.ZodString;
57
+ updatedAt: z.ZodString;
58
+ },
59
+ z.core.$strip
60
+ >;
61
+
47
62
  declare type Application =
48
63
  | CoreAppApplication
49
64
  | StudioApplication
@@ -196,7 +211,7 @@ declare type Canvas = z.output<typeof Canvas_2>;
196
211
  * @public
197
212
  */
198
213
  export declare class CanvasApplication extends AbstractApplication<"canvas"> {
199
- private readonly canvas;
214
+ readonly canvas: Canvas;
200
215
  constructor(canvas: Canvas);
201
216
  get id(): CanvasId;
202
217
  get href(): string;
@@ -222,6 +237,34 @@ declare const CanvasId_2: z.core.$ZodBranded<z.ZodString, "CanvasId", "out">;
222
237
  */
223
238
  declare type CanvasId = z.output<typeof CanvasId_2>;
224
239
 
240
+ /**
241
+ * @public
242
+ */
243
+ export declare const ClientManifest: z.ZodObject<
244
+ {
245
+ version: z.ZodNumber;
246
+ createdAt: z.ZodString;
247
+ studioVersion: z.ZodOptional<z.ZodString>;
248
+ workspaces: z.ZodArray<
249
+ z.ZodObject<
250
+ {
251
+ name: z.ZodString;
252
+ title: z.ZodString;
253
+ subtitle: z.ZodOptional<z.ZodString>;
254
+ basePath: z.ZodString;
255
+ projectId: z.core.$ZodBranded<z.ZodString, "ProjectId", "out">;
256
+ dataset: z.ZodOptional<z.ZodString>;
257
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
258
+ schema: z.ZodString;
259
+ tools: z.ZodOptional<z.ZodString>;
260
+ },
261
+ z.core.$strip
262
+ >
263
+ >;
264
+ },
265
+ z.core.$strip
266
+ >;
267
+
225
268
  declare type CompatibilityStatus =
226
269
  (typeof StudioApplication.CompatibilityStatuses)[keyof typeof StudioApplication.CompatibilityStatuses];
227
270
 
@@ -241,20 +284,140 @@ export declare interface Config {
241
284
  * @internal
242
285
  */
243
286
  export declare class CoreAppApplication extends UserApplication<
244
- CoreApplication,
287
+ CoreAppUserApplication,
245
288
  "coreApp",
246
289
  ApplicationResource
247
290
  > {
248
- readonly activeDeployment: CoreApplication["activeDeployment"];
249
- constructor(application: CoreApplication);
291
+ readonly activeDeployment: CoreAppUserApplication["activeDeployment"];
292
+ constructor(application: CoreAppUserApplication);
250
293
  get href(): string;
251
294
  get title(): string;
252
295
  get subtitle(): undefined;
253
296
  get updatedAt(): string;
254
- get<TKey extends keyof CoreApplication>(attr: TKey): CoreApplication[TKey];
297
+ get<TKey extends keyof CoreAppUserApplication>(
298
+ attr: TKey,
299
+ ): CoreAppUserApplication[TKey];
255
300
  toProtocolResource(): ApplicationResource;
256
301
  }
257
302
 
303
+ /**
304
+ * @public
305
+ */
306
+ export declare type CoreAppUserApplication = z.output<
307
+ typeof CoreAppUserApplication_2
308
+ >;
309
+
310
+ /**
311
+ * Core application schema — validates and brands API
312
+ * responses from the `/user-applications?appType=coreApp`
313
+ * endpoint. Uses a discriminated union on `urlType`.
314
+ * @public
315
+ */
316
+ declare const CoreAppUserApplication_2: z.ZodDiscriminatedUnion<
317
+ [
318
+ z.ZodObject<
319
+ {
320
+ id: z.core.$ZodBranded<z.ZodString, "UserApplicationId", "out">;
321
+ appHost: z.ZodString;
322
+ createdAt: z.ZodString;
323
+ updatedAt: z.ZodString;
324
+ dashboardStatus: z.ZodEnum<{
325
+ default: "default";
326
+ disabled: "disabled";
327
+ }>;
328
+ title: z.ZodString;
329
+ organizationId: z.core.$ZodBranded<
330
+ z.ZodString,
331
+ "OrganizationId",
332
+ "out"
333
+ >;
334
+ type: z.ZodLiteral<"coreApp">;
335
+ manifest: z.ZodOptional<
336
+ z.ZodNullable<
337
+ z.ZodObject<
338
+ {
339
+ version: z.ZodString;
340
+ icon: z.ZodOptional<z.ZodString>;
341
+ title: z.ZodOptional<z.ZodString>;
342
+ },
343
+ z.core.$strip
344
+ >
345
+ >
346
+ >;
347
+ urlType: z.ZodLiteral<"internal">;
348
+ activeDeployment: z.ZodObject<
349
+ {
350
+ id: z.ZodString;
351
+ version: z.ZodString;
352
+ isActiveDeployment: z.ZodBoolean;
353
+ userApplicationId: z.ZodString;
354
+ isAutoUpdating: z.ZodBoolean;
355
+ size: z.ZodNumber;
356
+ deployedAt: z.ZodString;
357
+ deployedBy: z.ZodString;
358
+ createdAt: z.ZodString;
359
+ updatedAt: z.ZodString;
360
+ manifest: z.ZodOptional<
361
+ z.ZodNullable<
362
+ z.ZodObject<
363
+ {
364
+ version: z.ZodString;
365
+ icon: z.ZodOptional<z.ZodString>;
366
+ title: z.ZodOptional<z.ZodString>;
367
+ },
368
+ z.core.$strip
369
+ >
370
+ >
371
+ >;
372
+ },
373
+ z.core.$strip
374
+ >;
375
+ },
376
+ z.core.$strip
377
+ >,
378
+ z.ZodObject<
379
+ {
380
+ id: z.core.$ZodBranded<z.ZodString, "UserApplicationId", "out">;
381
+ appHost: z.ZodString;
382
+ createdAt: z.ZodString;
383
+ updatedAt: z.ZodString;
384
+ dashboardStatus: z.ZodEnum<{
385
+ default: "default";
386
+ disabled: "disabled";
387
+ }>;
388
+ title: z.ZodString;
389
+ organizationId: z.core.$ZodBranded<
390
+ z.ZodString,
391
+ "OrganizationId",
392
+ "out"
393
+ >;
394
+ type: z.ZodLiteral<"coreApp">;
395
+ manifest: z.ZodOptional<
396
+ z.ZodNullable<
397
+ z.ZodObject<
398
+ {
399
+ version: z.ZodString;
400
+ icon: z.ZodOptional<z.ZodString>;
401
+ title: z.ZodOptional<z.ZodString>;
402
+ },
403
+ z.core.$strip
404
+ >
405
+ >
406
+ >;
407
+ urlType: z.ZodLiteral<"external">;
408
+ activeDeployment: z.ZodNull;
409
+ },
410
+ z.core.$strip
411
+ >,
412
+ ],
413
+ "urlType"
414
+ >;
415
+
416
+ /**
417
+ * @public
418
+ */
419
+ declare type CoreAppUserApplication = z.output<typeof CoreAppUserApplication_2>;
420
+
258
421
  /**
259
422
  * @public
260
423
  */
@@ -279,6 +442,7 @@ export declare class LocalApplication extends AbstractApplication<
279
442
  get id(): string;
280
443
  get title(): string;
281
444
  get href(): string;
445
+ get url(): URL;
282
446
  toProtocolResource(): never;
283
447
  }
284
448
 
@@ -308,6 +472,15 @@ export declare interface Logger {
308
472
  debug: (message: string, context?: LogContext) => void;
309
473
  }
310
474
 
475
+ /**
476
+ * Shared workbench logger instance. Use this from both the workbench host
477
+ * and its remotes so lifecycle and diagnostic logs appear under a single
478
+ * namespace.
479
+ *
480
+ * @public
481
+ */
482
+ export declare const logger: Logger;
483
+
311
484
  declare interface LoggerOptions {
312
485
  namespace?: LogNamespace;
313
486
  context?: LogContext;
@@ -367,7 +540,7 @@ declare type MediaLibrary = z.output<typeof MediaLibrary_2>;
367
540
  * @public
368
541
  */
369
542
  export declare class MediaLibraryApplication extends AbstractApplication<"media-library"> {
370
- private readonly library;
543
+ readonly library: MediaLibrary;
371
544
  constructor(library: MediaLibrary);
372
545
  get id(): string;
373
546
  get href(): string;
@@ -509,6 +682,15 @@ declare type OrganizationMember = z.output<typeof OrganizationMember_2>;
509
682
  */
510
683
  export declare function parseCanvas(data: unknown): Canvas;
511
684
 
685
+ /**
686
+ * Validates and parses a raw API response into a branded
687
+ * CoreAppUserApplicationData.
688
+ * @public
689
+ */
690
+ export declare function parseCoreApplication(
691
+ data: unknown,
692
+ ): CoreAppUserApplication;
693
+
512
694
  /**
513
695
  * Validates and parses a raw API response into a branded
514
696
  * MediaLibrary.
@@ -550,6 +732,15 @@ export declare function parseProject<
550
732
  },
551
733
  ): Project<IncludeMembers, IncludeFeatures>;
552
734
 
735
+ /**
736
+ * Validates and parses a raw API response into a branded
737
+ * StudioUserApplication.
738
+ * @public
739
+ */
740
+ export declare function parseStudioUserApplication(
741
+ data: unknown,
742
+ ): StudioUserApplication;
743
+
553
744
  /**
554
745
  * Project schema — validates and brands API responses
555
746
  * from the `/projects/:id` endpoint.
@@ -675,7 +866,7 @@ export declare type ResolvedConfig = Omit<Config, "organizationId"> & {
675
866
  * @internal
676
867
  */
677
868
  export declare class StudioApplication extends UserApplication<
678
- StudioApplication_2,
869
+ StudioUserApplication,
679
870
  "studio",
680
871
  never
681
872
  > {
@@ -685,6 +876,13 @@ export declare class StudioApplication extends UserApplication<
685
876
  */
686
877
  readonly workspaces: readonly StudioWorkspace[];
687
878
  readonly project: Project<false, false>;
879
+ /**
880
+ * The projects actually referenced by this studio — the application's own
881
+ * project plus any project used by a workspace. Preserved so the instance
882
+ * can be re-constructed (e.g. by dock wrappers) without having to thread
883
+ * the full organization project list through again.
884
+ */
885
+ readonly projects: Project<false, false>[];
688
886
  /**
689
887
  * @param application - The studio application to create a list of workspaces for
690
888
  * @param projects - The projects available in the organization. It's not enough to just pass
@@ -692,15 +890,15 @@ export declare class StudioApplication extends UserApplication<
692
890
  * The workspaces may have different projects completely.
693
891
  */
694
892
  constructor(
695
- application: StudioApplication_2,
893
+ application: StudioUserApplication,
696
894
  projects: Project<false, false>[],
697
895
  );
698
896
  get href(): string;
699
897
  get title(): string;
700
898
  get subtitle(): string;
701
- get<TKey extends keyof StudioApplication_2>(
899
+ get<TKey extends keyof StudioUserApplication>(
702
900
  attr: TKey,
703
- ): StudioApplication_2[TKey];
901
+ ): StudioUserApplication[TKey];
704
902
  get hasManifest(): boolean;
705
903
  get hasSchema(): boolean;
706
904
  private resolveVersion;
@@ -800,6 +998,326 @@ declare type StudioIssues = Array<{
800
998
  version?: string;
801
999
  }>;
802
1000
 
1001
+ /**
1002
+ * Studio user application schema — validates and brands API
1003
+ * responses from the `/user-applications?appType=studio`
1004
+ * endpoint. Uses a discriminated union on `urlType`.
1005
+ * @public
1006
+ */
1007
+ export declare const StudioUserApplication: z.ZodDiscriminatedUnion<
1008
+ [
1009
+ z.ZodObject<
1010
+ {
1011
+ id: z.core.$ZodBranded<z.ZodString, "UserApplicationId", "out">;
1012
+ appHost: z.ZodString;
1013
+ createdAt: z.ZodString;
1014
+ updatedAt: z.ZodString;
1015
+ dashboardStatus: z.ZodEnum<{
1016
+ default: "default";
1017
+ disabled: "disabled";
1018
+ }>;
1019
+ title: z.ZodNullable<z.ZodString>;
1020
+ projectId: z.core.$ZodBranded<z.ZodString, "ProjectId", "out">;
1021
+ type: z.ZodLiteral<"studio">;
1022
+ manifest: z.ZodNullable<
1023
+ z.ZodObject<
1024
+ {
1025
+ version: z.ZodNumber;
1026
+ createdAt: z.ZodString;
1027
+ studioVersion: z.ZodOptional<z.ZodString>;
1028
+ workspaces: z.ZodArray<
1029
+ z.ZodObject<
1030
+ {
1031
+ name: z.ZodString;
1032
+ title: z.ZodString;
1033
+ subtitle: z.ZodOptional<z.ZodString>;
1034
+ basePath: z.ZodString;
1035
+ projectId: z.core.$ZodBranded<
1036
+ z.ZodString,
1037
+ "ProjectId",
1038
+ "out"
1039
+ >;
1040
+ dataset: z.ZodOptional<z.ZodString>;
1041
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1042
+ schema: z.ZodString;
1043
+ tools: z.ZodOptional<z.ZodString>;
1044
+ },
1045
+ z.core.$strip
1046
+ >
1047
+ >;
1048
+ },
1049
+ z.core.$strip
1050
+ >
1051
+ >;
1052
+ manifestData: z.ZodNullable<
1053
+ z.ZodObject<
1054
+ {
1055
+ value: z.ZodObject<
1056
+ {
1057
+ version: z.ZodNumber;
1058
+ createdAt: z.ZodString;
1059
+ studioVersion: z.ZodOptional<z.ZodString>;
1060
+ workspaces: z.ZodArray<
1061
+ z.ZodObject<
1062
+ {
1063
+ name: z.ZodString;
1064
+ title: z.ZodString;
1065
+ subtitle: z.ZodOptional<z.ZodString>;
1066
+ basePath: z.ZodString;
1067
+ projectId: z.core.$ZodBranded<
1068
+ z.ZodString,
1069
+ "ProjectId",
1070
+ "out"
1071
+ >;
1072
+ dataset: z.ZodOptional<z.ZodString>;
1073
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1074
+ schema: z.ZodString;
1075
+ tools: z.ZodOptional<z.ZodString>;
1076
+ },
1077
+ z.core.$strip
1078
+ >
1079
+ >;
1080
+ },
1081
+ z.core.$strip
1082
+ >;
1083
+ },
1084
+ z.core.$strip
1085
+ >
1086
+ >;
1087
+ autoUpdatingVersion: z.ZodNullable<z.ZodString>;
1088
+ config: z.ZodObject<
1089
+ {
1090
+ "live-manifest": z.ZodOptional<
1091
+ z.ZodObject<
1092
+ {
1093
+ createdAt: z.ZodString;
1094
+ updatedAt: z.ZodString;
1095
+ updatedBy: z.ZodString;
1096
+ value: z.ZodObject<
1097
+ {
1098
+ buildId: z.ZodOptional<z.ZodString>;
1099
+ bundleVersion: z.ZodOptional<z.ZodString>;
1100
+ version: z.ZodOptional<z.ZodString>;
1101
+ workspaces: z.ZodOptional<
1102
+ z.ZodArray<
1103
+ z.ZodObject<
1104
+ {
1105
+ name: z.ZodString;
1106
+ title: z.ZodString;
1107
+ subtitle: z.ZodOptional<z.ZodString>;
1108
+ basePath: z.ZodString;
1109
+ projectId: z.core.$ZodBranded<
1110
+ z.ZodString,
1111
+ "ProjectId",
1112
+ "out"
1113
+ >;
1114
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1115
+ dataset: z.ZodString;
1116
+ schemaDescriptorId: z.ZodString;
1117
+ },
1118
+ z.core.$strip
1119
+ >
1120
+ >
1121
+ >;
1122
+ },
1123
+ z.core.$strip
1124
+ >;
1125
+ },
1126
+ z.core.$strip
1127
+ >
1128
+ >;
1129
+ },
1130
+ z.core.$strip
1131
+ >;
1132
+ urlType: z.ZodLiteral<"internal">;
1133
+ activeDeployment: z.ZodObject<
1134
+ {
1135
+ id: z.ZodString;
1136
+ version: z.ZodString;
1137
+ isActiveDeployment: z.ZodBoolean;
1138
+ userApplicationId: z.ZodString;
1139
+ isAutoUpdating: z.ZodBoolean;
1140
+ size: z.ZodNumber;
1141
+ deployedAt: z.ZodString;
1142
+ deployedBy: z.ZodString;
1143
+ createdAt: z.ZodString;
1144
+ updatedAt: z.ZodString;
1145
+ manifest: z.ZodNullable<
1146
+ z.ZodObject<
1147
+ {
1148
+ buildId: z.ZodOptional<z.ZodString>;
1149
+ bundleVersion: z.ZodOptional<z.ZodString>;
1150
+ version: z.ZodOptional<z.ZodString>;
1151
+ workspaces: z.ZodOptional<
1152
+ z.ZodArray<
1153
+ z.ZodObject<
1154
+ {
1155
+ name: z.ZodString;
1156
+ title: z.ZodString;
1157
+ subtitle: z.ZodOptional<z.ZodString>;
1158
+ basePath: z.ZodString;
1159
+ projectId: z.core.$ZodBranded<
1160
+ z.ZodString,
1161
+ "ProjectId",
1162
+ "out"
1163
+ >;
1164
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1165
+ dataset: z.ZodString;
1166
+ schemaDescriptorId: z.ZodString;
1167
+ },
1168
+ z.core.$strip
1169
+ >
1170
+ >
1171
+ >;
1172
+ },
1173
+ z.core.$strip
1174
+ >
1175
+ >;
1176
+ },
1177
+ z.core.$strip
1178
+ >;
1179
+ },
1180
+ z.core.$strip
1181
+ >,
1182
+ z.ZodObject<
1183
+ {
1184
+ id: z.core.$ZodBranded<z.ZodString, "UserApplicationId", "out">;
1185
+ appHost: z.ZodString;
1186
+ createdAt: z.ZodString;
1187
+ updatedAt: z.ZodString;
1188
+ dashboardStatus: z.ZodEnum<{
1189
+ default: "default";
1190
+ disabled: "disabled";
1191
+ }>;
1192
+ title: z.ZodNullable<z.ZodString>;
1193
+ projectId: z.core.$ZodBranded<z.ZodString, "ProjectId", "out">;
1194
+ type: z.ZodLiteral<"studio">;
1195
+ manifest: z.ZodNullable<
1196
+ z.ZodObject<
1197
+ {
1198
+ version: z.ZodNumber;
1199
+ createdAt: z.ZodString;
1200
+ studioVersion: z.ZodOptional<z.ZodString>;
1201
+ workspaces: z.ZodArray<
1202
+ z.ZodObject<
1203
+ {
1204
+ name: z.ZodString;
1205
+ title: z.ZodString;
1206
+ subtitle: z.ZodOptional<z.ZodString>;
1207
+ basePath: z.ZodString;
1208
+ projectId: z.core.$ZodBranded<
1209
+ z.ZodString,
1210
+ "ProjectId",
1211
+ "out"
1212
+ >;
1213
+ dataset: z.ZodOptional<z.ZodString>;
1214
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1215
+ schema: z.ZodString;
1216
+ tools: z.ZodOptional<z.ZodString>;
1217
+ },
1218
+ z.core.$strip
1219
+ >
1220
+ >;
1221
+ },
1222
+ z.core.$strip
1223
+ >
1224
+ >;
1225
+ manifestData: z.ZodNullable<
1226
+ z.ZodObject<
1227
+ {
1228
+ value: z.ZodObject<
1229
+ {
1230
+ version: z.ZodNumber;
1231
+ createdAt: z.ZodString;
1232
+ studioVersion: z.ZodOptional<z.ZodString>;
1233
+ workspaces: z.ZodArray<
1234
+ z.ZodObject<
1235
+ {
1236
+ name: z.ZodString;
1237
+ title: z.ZodString;
1238
+ subtitle: z.ZodOptional<z.ZodString>;
1239
+ basePath: z.ZodString;
1240
+ projectId: z.core.$ZodBranded<
1241
+ z.ZodString,
1242
+ "ProjectId",
1243
+ "out"
1244
+ >;
1245
+ dataset: z.ZodOptional<z.ZodString>;
1246
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1247
+ schema: z.ZodString;
1248
+ tools: z.ZodOptional<z.ZodString>;
1249
+ },
1250
+ z.core.$strip
1251
+ >
1252
+ >;
1253
+ },
1254
+ z.core.$strip
1255
+ >;
1256
+ },
1257
+ z.core.$strip
1258
+ >
1259
+ >;
1260
+ autoUpdatingVersion: z.ZodNullable<z.ZodString>;
1261
+ config: z.ZodObject<
1262
+ {
1263
+ "live-manifest": z.ZodOptional<
1264
+ z.ZodObject<
1265
+ {
1266
+ createdAt: z.ZodString;
1267
+ updatedAt: z.ZodString;
1268
+ updatedBy: z.ZodString;
1269
+ value: z.ZodObject<
1270
+ {
1271
+ buildId: z.ZodOptional<z.ZodString>;
1272
+ bundleVersion: z.ZodOptional<z.ZodString>;
1273
+ version: z.ZodOptional<z.ZodString>;
1274
+ workspaces: z.ZodOptional<
1275
+ z.ZodArray<
1276
+ z.ZodObject<
1277
+ {
1278
+ name: z.ZodString;
1279
+ title: z.ZodString;
1280
+ subtitle: z.ZodOptional<z.ZodString>;
1281
+ basePath: z.ZodString;
1282
+ projectId: z.core.$ZodBranded<
1283
+ z.ZodString,
1284
+ "ProjectId",
1285
+ "out"
1286
+ >;
1287
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1288
+ dataset: z.ZodString;
1289
+ schemaDescriptorId: z.ZodString;
1290
+ },
1291
+ z.core.$strip
1292
+ >
1293
+ >
1294
+ >;
1295
+ },
1296
+ z.core.$strip
1297
+ >;
1298
+ },
1299
+ z.core.$strip
1300
+ >
1301
+ >;
1302
+ },
1303
+ z.core.$strip
1304
+ >;
1305
+ urlType: z.ZodLiteral<"external">;
1306
+ activeDeployment: z.ZodNull;
1307
+ },
1308
+ z.core.$strip
1309
+ >,
1310
+ ],
1311
+ "urlType"
1312
+ >;
1313
+
1314
+ /**
1315
+ * @public
1316
+ */
1317
+ export declare type StudioUserApplication = z.output<
1318
+ typeof StudioUserApplication
1319
+ >;
1320
+
803
1321
  /**
804
1322
  * @internal
805
1323
  */
@@ -829,7 +1347,7 @@ export declare class StudioWorkspace extends AbstractApplication<
829
1347
  get id(): string;
830
1348
  get href(): string;
831
1349
  get title(): string;
832
- get subtitle(): string | null | undefined;
1350
+ get subtitle(): string | undefined;
833
1351
  get<TKey extends Exclude<keyof Workspace, "id" | "icon" | "title">>(
834
1352
  attr: TKey,
835
1353
  ): Workspace[TKey];
@@ -856,7 +1374,7 @@ export declare class StudioWorkspace extends AbstractApplication<
856
1374
  * @internal
857
1375
  */
858
1376
  export declare abstract class UserApplication<
859
- TUserApplication extends UserApplication_2,
1377
+ TUserApplication extends UserApplicationBase,
860
1378
  TType extends Extract<AbstractApplicationType, "coreApp" | "studio">,
861
1379
  TProtocolResource extends Resource = Extract<
862
1380
  Resource,
@@ -878,6 +1396,32 @@ export declare abstract class UserApplication<
878
1396
  get url(): URL;
879
1397
  }
880
1398
 
1399
+ /**
1400
+ * @public
1401
+ */
1402
+ export declare const UserApplicationBase: z.ZodObject<
1403
+ {
1404
+ id: z.core.$ZodBranded<z.ZodString, "UserApplicationId", "out">;
1405
+ appHost: z.ZodString;
1406
+ urlType: z.ZodEnum<{
1407
+ internal: "internal";
1408
+ external: "external";
1409
+ }>;
1410
+ createdAt: z.ZodString;
1411
+ updatedAt: z.ZodString;
1412
+ dashboardStatus: z.ZodEnum<{
1413
+ default: "default";
1414
+ disabled: "disabled";
1415
+ }>;
1416
+ },
1417
+ z.core.$strip
1418
+ >;
1419
+
1420
+ /**
1421
+ * @public
1422
+ */
1423
+ export declare type UserApplicationBase = z.output<typeof UserApplicationBase>;
1424
+
881
1425
  /**
882
1426
  * User application ID schema, branded for type safety.
883
1427
  * @public
@@ -894,13 +1438,27 @@ export declare const UserApplicationId: z.core.$ZodBranded<
894
1438
  */
895
1439
  export declare type UserApplicationId = z.output<typeof UserApplicationId>;
896
1440
 
897
- declare type Workspace = Omit<
898
- WorkspaceManifest,
899
- "dataset" | "schema" | "projectId"
900
- > & {
901
- projectId: ProjectId;
902
- dataset?: string;
903
- schema?: string;
904
- };
1441
+ /**
1442
+ * @public
1443
+ */
1444
+ export declare type Workspace = z.output<typeof Workspace_2>;
1445
+
1446
+ declare const Workspace_2: z.ZodObject<
1447
+ {
1448
+ name: z.ZodString;
1449
+ title: z.ZodString;
1450
+ subtitle: z.ZodOptional<z.ZodString>;
1451
+ basePath: z.ZodString;
1452
+ projectId: z.core.$ZodBranded<z.ZodString, "ProjectId", "out">;
1453
+ dataset: z.ZodOptional<z.ZodString>;
1454
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1455
+ },
1456
+ z.core.$strip
1457
+ >;
1458
+
1459
+ /**
1460
+ * @public
1461
+ */
1462
+ declare type Workspace = z.output<typeof Workspace_2>;
905
1463
 
906
1464
  export {};