@sanity/blueprints 0.34.1 → 0.36.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/README.md +1 -2
- package/dist/definers/agents.d.ts +3 -1
- package/dist/definers/agents.js +4 -2
- package/dist/definers/agents.js.map +1 -1
- package/dist/definers/applications.d.ts +30 -18
- package/dist/definers/applications.js +36 -24
- package/dist/definers/applications.js.map +1 -1
- package/dist/definers/blueprints.d.ts +1 -0
- package/dist/definers/blueprints.js +5 -27
- package/dist/definers/blueprints.js.map +1 -1
- package/dist/definers/context.d.ts +6 -2
- package/dist/definers/context.js +8 -4
- package/dist/definers/context.js.map +1 -1
- package/dist/definers/cors.d.ts +11 -1
- package/dist/definers/cors.js +11 -13
- package/dist/definers/cors.js.map +1 -1
- package/dist/definers/datasets.d.ts +30 -3
- package/dist/definers/datasets.js +32 -16
- package/dist/definers/datasets.js.map +1 -1
- package/dist/definers/functions/document.d.ts +29 -0
- package/dist/definers/functions/document.js +1 -1
- package/dist/definers/functions/document.js.map +1 -1
- package/dist/definers/functions/durable.d.ts +4 -3
- package/dist/definers/functions/durable.js +5 -4
- package/dist/definers/functions/durable.js.map +1 -1
- package/dist/definers/functions/index.js +1 -1
- package/dist/definers/functions/index.js.map +1 -1
- package/dist/definers/functions/media-library.d.ts +30 -0
- package/dist/definers/functions/media-library.js +19 -21
- package/dist/definers/functions/media-library.js.map +1 -1
- package/dist/definers/functions/pubsub.d.ts +2 -3
- package/dist/definers/functions/pubsub.js +3 -4
- package/dist/definers/functions/pubsub.js.map +1 -1
- package/dist/definers/functions/queue.d.ts +26 -6
- package/dist/definers/functions/queue.js +31 -10
- package/dist/definers/functions/queue.js.map +1 -1
- package/dist/definers/functions/scheduled.d.ts +7 -6
- package/dist/definers/functions/scheduled.js +8 -7
- package/dist/definers/functions/scheduled.js.map +1 -1
- package/dist/definers/functions/sync-tag-invalidate.d.ts +5 -2
- package/dist/definers/functions/sync-tag-invalidate.js +6 -3
- package/dist/definers/functions/sync-tag-invalidate.js.map +1 -1
- package/dist/definers/installation-config.d.ts +4 -2
- package/dist/definers/installation-config.js +5 -3
- package/dist/definers/installation-config.js.map +1 -1
- package/dist/definers/permissions.d.ts +8 -2
- package/dist/definers/permissions.js +12 -5
- package/dist/definers/permissions.js.map +1 -1
- package/dist/definers/projects.d.ts +3 -4
- package/dist/definers/projects.js +4 -5
- package/dist/definers/projects.js.map +1 -1
- package/dist/definers/resources.d.ts +1 -0
- package/dist/definers/resources.js +1 -11
- package/dist/definers/resources.js.map +1 -1
- package/dist/definers/robotTokens.d.ts +22 -4
- package/dist/definers/robotTokens.js +53 -20
- package/dist/definers/robotTokens.js.map +1 -1
- package/dist/definers/roles.d.ts +49 -9
- package/dist/definers/roles.js +54 -55
- package/dist/definers/roles.js.map +1 -1
- package/dist/definers/studios.d.ts +5 -3
- package/dist/definers/studios.js +6 -4
- package/dist/definers/studios.js.map +1 -1
- package/dist/definers/webhooks.d.ts +19 -1
- package/dist/definers/webhooks.js +18 -22
- package/dist/definers/webhooks.js.map +1 -1
- package/dist/index.d.ts +18 -18
- package/dist/index.js +19 -20
- package/dist/index.js.map +1 -1
- package/dist/resolve/index.d.ts +2 -3
- package/dist/resolve/index.js +2 -3
- package/dist/resolve/index.js.map +1 -1
- package/dist/types/agents.d.ts +7 -3
- package/dist/types/applications.d.ts +68 -50
- package/dist/types/applications.js +9 -6
- package/dist/types/applications.js.map +1 -1
- package/dist/types/context.d.ts +17 -7
- package/dist/types/cors.d.ts +0 -2
- package/dist/types/datasets.d.ts +0 -6
- package/dist/types/functions/index.d.ts +96 -21
- package/dist/types/functions/index.js +2 -1
- package/dist/types/functions/index.js.map +1 -1
- package/dist/types/installation-config.d.ts +14 -11
- package/dist/types/permissions.d.ts +8 -4
- package/dist/types/projects.d.ts +5 -4
- package/dist/types/robotTokens.d.ts +14 -4
- package/dist/types/roles.d.ts +10 -9
- package/dist/types/studios.d.ts +29 -14
- package/dist/types/studios.js +3 -2
- package/dist/types/studios.js.map +1 -1
- package/dist/types/webhooks.d.ts +0 -3
- package/dist/utils/debounce.d.ts +0 -11
- package/dist/utils/debounce.js +0 -22
- package/dist/utils/debounce.js.map +1 -1
- package/dist/utils/parse-duration.d.ts +13 -0
- package/dist/utils/parse-duration.js +24 -0
- package/dist/utils/parse-duration.js.map +1 -1
- package/dist/utils/throttle.d.ts +9 -0
- package/dist/utils/throttle.js +22 -0
- package/dist/utils/throttle.js.map +1 -0
- package/dist/utils/validation.d.ts +14 -11
- package/dist/utils/validation.js +25 -17
- package/dist/utils/validation.js.map +1 -1
- package/dist/validation/applications.js +7 -2
- package/dist/validation/applications.js.map +1 -1
- package/dist/validation/blueprints.js +120 -4
- package/dist/validation/blueprints.js.map +1 -1
- package/dist/validation/functions.d.ts +19 -0
- package/dist/validation/functions.js +169 -36
- package/dist/validation/functions.js.map +1 -1
- package/dist/validation/projects.js +3 -0
- package/dist/validation/projects.js.map +1 -1
- package/dist/validation/resources.js +1 -1
- package/dist/validation/resources.js.map +1 -1
- package/dist/validation/studios.js +4 -0
- package/dist/validation/studios.js.map +1 -1
- package/package.json +1 -1
- package/src/definers/agents.ts +4 -2
- package/src/definers/applications.ts +36 -24
- package/src/definers/blueprints.ts +4 -27
- package/src/definers/context.ts +8 -4
- package/src/definers/cors.ts +11 -13
- package/src/definers/datasets.ts +40 -16
- package/src/definers/functions/document.ts +17 -25
- package/src/definers/functions/durable.ts +5 -4
- package/src/definers/functions/index.ts +1 -1
- package/src/definers/functions/media-library.ts +19 -21
- package/src/definers/functions/pubsub.ts +3 -4
- package/src/definers/functions/queue.ts +31 -10
- package/src/definers/functions/scheduled.ts +8 -7
- package/src/definers/functions/sync-tag-invalidate.ts +6 -3
- package/src/definers/installation-config.ts +5 -3
- package/src/definers/permissions.ts +14 -6
- package/src/definers/projects.ts +4 -5
- package/src/definers/resources.ts +1 -11
- package/src/definers/robotTokens.ts +55 -20
- package/src/definers/roles.ts +60 -58
- package/src/definers/studios.ts +6 -4
- package/src/definers/webhooks.ts +18 -23
- package/src/index.ts +20 -21
- package/src/resolve/index.ts +2 -4
- package/src/types/agents.ts +7 -3
- package/src/types/applications.ts +68 -50
- package/src/types/context.ts +17 -7
- package/src/types/cors.ts +0 -2
- package/src/types/datasets.ts +0 -6
- package/src/types/functions/index.ts +100 -21
- package/src/types/installation-config.ts +14 -11
- package/src/types/permissions.ts +8 -4
- package/src/types/projects.ts +6 -4
- package/src/types/robotTokens.ts +15 -4
- package/src/types/roles.ts +10 -9
- package/src/types/studios.ts +33 -14
- package/src/types/webhooks.ts +0 -3
- package/src/utils/debounce.ts +0 -25
- package/src/utils/parse-duration.ts +27 -0
- package/src/utils/throttle.ts +25 -0
- package/src/utils/validation.ts +24 -17
- package/src/validation/applications.ts +6 -2
- package/src/validation/blueprints.ts +132 -5
- package/src/validation/functions.ts +183 -37
- package/src/validation/projects.ts +4 -0
- package/src/validation/resources.ts +1 -1
- package/src/validation/studios.ts +3 -0
package/dist/types/agents.d.ts
CHANGED
|
@@ -2,9 +2,11 @@ import type { BlueprintProjectResourceLifecycle, BlueprintResource } from '../in
|
|
|
2
2
|
/**
|
|
3
3
|
* The model value carried on a {@link BlueprintAgentResource}.
|
|
4
4
|
*
|
|
5
|
+
* This feature is subject to breaking changes.
|
|
6
|
+
*
|
|
5
7
|
* @remarks
|
|
6
8
|
* `provider`, `id`, and `baseURL` are non-secret and ride on the resource literally; `apiKey` is passed by reference and resolved at blueprint-eval time.
|
|
7
|
-
* @alpha
|
|
9
|
+
* @alpha
|
|
8
10
|
* @hidden
|
|
9
11
|
* @category Resource Types
|
|
10
12
|
*/
|
|
@@ -20,7 +22,9 @@ export interface BlueprintAgentModel {
|
|
|
20
22
|
}
|
|
21
23
|
/**
|
|
22
24
|
* Represents an Agent resource.
|
|
23
|
-
*
|
|
25
|
+
*
|
|
26
|
+
* This feature is subject to breaking changes.
|
|
27
|
+
* @alpha
|
|
24
28
|
* @hidden
|
|
25
29
|
* @category Resource Types
|
|
26
30
|
*/
|
|
@@ -39,7 +43,7 @@ export interface BlueprintAgentResource extends BlueprintResource<BlueprintProje
|
|
|
39
43
|
}
|
|
40
44
|
/**
|
|
41
45
|
* Configuration for an Agent resource.
|
|
42
|
-
* @alpha
|
|
46
|
+
* @alpha
|
|
43
47
|
* @hidden
|
|
44
48
|
* @category Resource Types
|
|
45
49
|
* @interface
|
|
@@ -2,55 +2,62 @@ import type { ApplicationVisibility, BlueprintResource } from '../index.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* The set of valid tile footprint families.
|
|
4
4
|
*
|
|
5
|
+
* This feature is subject to breaking changes.
|
|
6
|
+
*
|
|
5
7
|
* Modelled on widget families rather than a linear scale: `banner` is
|
|
6
8
|
* full-width and shallow, which a `small` → `large` magnitude can't express.
|
|
7
|
-
* @beta
|
|
9
|
+
* @beta
|
|
8
10
|
* @category Resource Types
|
|
9
|
-
* @hidden
|
|
10
11
|
*/
|
|
11
12
|
export declare const APPLICATION_TILE_SIZES: readonly ['small', 'large', 'banner'];
|
|
12
13
|
/**
|
|
13
14
|
* The footprint family a tile view occupies on the dashboard.
|
|
14
|
-
*
|
|
15
|
+
*
|
|
16
|
+
* This feature is subject to breaking changes.
|
|
17
|
+
* @beta
|
|
15
18
|
* @category Resource Types
|
|
16
|
-
* @hidden
|
|
17
19
|
*/
|
|
18
20
|
export type ApplicationTileSize = (typeof APPLICATION_TILE_SIZES)[number];
|
|
19
21
|
/**
|
|
20
22
|
* The set of surfaces a view can target within the Dashboard/Workbench.
|
|
21
|
-
*
|
|
23
|
+
*
|
|
24
|
+
* This feature is subject to breaking changes.
|
|
25
|
+
* @beta
|
|
22
26
|
* @category Resource Types
|
|
23
|
-
* @hidden
|
|
24
27
|
*/
|
|
25
28
|
export declare const APPLICATION_VIEW_SURFACES: readonly ['window', 'panel', 'asset-source', 'tile'];
|
|
26
29
|
/**
|
|
27
30
|
* The surface a view targets. Used as the discriminator on view configs; the
|
|
28
31
|
* definers transform it to the emitted view `type` the backend expects.
|
|
29
|
-
*
|
|
32
|
+
*
|
|
33
|
+
* This feature is subject to breaking changes.
|
|
34
|
+
* @beta
|
|
30
35
|
* @category Resource Types
|
|
31
|
-
* @hidden
|
|
32
36
|
*/
|
|
33
37
|
export type ApplicationViewSurface = (typeof APPLICATION_VIEW_SURFACES)[number];
|
|
34
38
|
/**
|
|
35
39
|
* The set of dock groups a window or panel view can be placed into.
|
|
36
|
-
*
|
|
40
|
+
*
|
|
41
|
+
* This feature is subject to breaking changes.
|
|
42
|
+
* @beta
|
|
37
43
|
* @category Resource Types
|
|
38
|
-
* @hidden
|
|
39
44
|
*/
|
|
40
45
|
export declare const APPLICATION_DOCK_GROUPS: readonly ['system', 'applications'];
|
|
41
46
|
/**
|
|
42
47
|
* The dock group a window or panel view is placed into.
|
|
43
|
-
*
|
|
48
|
+
*
|
|
49
|
+
* This feature is subject to breaking changes.
|
|
50
|
+
* @beta
|
|
44
51
|
* @category Resource Types
|
|
45
|
-
* @hidden
|
|
46
52
|
*/
|
|
47
53
|
export type ApplicationDockGroup = (typeof APPLICATION_DOCK_GROUPS)[number];
|
|
48
54
|
/**
|
|
49
55
|
* Dock placement for a window view.
|
|
50
|
-
*
|
|
56
|
+
*
|
|
57
|
+
* This feature is subject to breaking changes.
|
|
58
|
+
* @beta
|
|
51
59
|
* @category Resource Types
|
|
52
60
|
* @expand
|
|
53
|
-
* @hidden
|
|
54
61
|
*/
|
|
55
62
|
export interface BlueprintApplicationDock {
|
|
56
63
|
/**
|
|
@@ -68,9 +75,10 @@ export interface BlueprintApplicationDock {
|
|
|
68
75
|
}
|
|
69
76
|
/**
|
|
70
77
|
* Fields shared by every view and web worker an application exposes.
|
|
71
|
-
*
|
|
78
|
+
*
|
|
79
|
+
* This feature is subject to breaking changes.
|
|
80
|
+
* @beta
|
|
72
81
|
* @category Resource Types
|
|
73
|
-
* @hidden
|
|
74
82
|
*/
|
|
75
83
|
export interface BlueprintApplicationChildBase {
|
|
76
84
|
/** Unique within the application. Must match `^[a-zA-Z0-9_-]+$`. */
|
|
@@ -82,9 +90,10 @@ export interface BlueprintApplicationChildBase {
|
|
|
82
90
|
}
|
|
83
91
|
/**
|
|
84
92
|
* A window view — the navigable, full-page view of an application.
|
|
85
|
-
*
|
|
93
|
+
*
|
|
94
|
+
* This feature is subject to breaking changes.
|
|
95
|
+
* @beta
|
|
86
96
|
* @category Resource Types
|
|
87
|
-
* @hidden
|
|
88
97
|
*/
|
|
89
98
|
export interface BlueprintWindowView extends BlueprintApplicationChildBase {
|
|
90
99
|
type: 'app';
|
|
@@ -97,9 +106,10 @@ export interface BlueprintWindowView extends BlueprintApplicationChildBase {
|
|
|
97
106
|
}
|
|
98
107
|
/**
|
|
99
108
|
* A panel view — renders in the dock.
|
|
100
|
-
*
|
|
109
|
+
*
|
|
110
|
+
* This feature is subject to breaking changes.
|
|
111
|
+
* @beta
|
|
101
112
|
* @category Resource Types
|
|
102
|
-
* @hidden
|
|
103
113
|
*/
|
|
104
114
|
export interface BlueprintPanelView extends BlueprintApplicationChildBase {
|
|
105
115
|
type: 'panel';
|
|
@@ -112,18 +122,20 @@ export interface BlueprintPanelView extends BlueprintApplicationChildBase {
|
|
|
112
122
|
}
|
|
113
123
|
/**
|
|
114
124
|
* An asset source view — contributes an asset source.
|
|
115
|
-
*
|
|
125
|
+
*
|
|
126
|
+
* This feature is subject to breaking changes.
|
|
127
|
+
* @beta
|
|
116
128
|
* @category Resource Types
|
|
117
|
-
* @hidden
|
|
118
129
|
*/
|
|
119
130
|
export interface BlueprintAssetSourceView extends BlueprintApplicationChildBase {
|
|
120
131
|
type: 'asset_source';
|
|
121
132
|
}
|
|
122
133
|
/**
|
|
123
134
|
* A tile view — docks on the dashboard with a footprint `size`.
|
|
124
|
-
*
|
|
135
|
+
*
|
|
136
|
+
* This feature is subject to breaking changes.
|
|
137
|
+
* @beta
|
|
125
138
|
* @category Resource Types
|
|
126
|
-
* @hidden
|
|
127
139
|
*/
|
|
128
140
|
export interface BlueprintTileView extends BlueprintApplicationChildBase {
|
|
129
141
|
type: 'tile';
|
|
@@ -138,33 +150,37 @@ export interface BlueprintTileView extends BlueprintApplicationChildBase {
|
|
|
138
150
|
}
|
|
139
151
|
/**
|
|
140
152
|
* A background web worker an application runs.
|
|
141
|
-
*
|
|
153
|
+
*
|
|
154
|
+
* This feature is subject to breaking changes.
|
|
155
|
+
* @beta
|
|
142
156
|
* @category Resource Types
|
|
143
|
-
* @hidden
|
|
144
157
|
*/
|
|
145
158
|
export interface BlueprintWebWorker extends BlueprintApplicationChildBase {
|
|
146
159
|
type: 'worker';
|
|
147
160
|
}
|
|
148
161
|
/**
|
|
149
162
|
* A union of all view declarations an application can expose.
|
|
150
|
-
*
|
|
163
|
+
*
|
|
164
|
+
* This feature is subject to breaking changes.
|
|
165
|
+
* @beta
|
|
151
166
|
* @category Resource Types
|
|
152
167
|
* @expand
|
|
153
|
-
* @hidden
|
|
154
168
|
*/
|
|
155
169
|
export type BlueprintApplicationView = BlueprintWindowView | BlueprintPanelView | BlueprintAssetSourceView | BlueprintTileView;
|
|
156
170
|
/**
|
|
157
171
|
* A union of everything an application declares — its views and web workers.
|
|
158
|
-
*
|
|
172
|
+
*
|
|
173
|
+
* This feature is subject to breaking changes.
|
|
174
|
+
* @beta
|
|
159
175
|
* @category Resource Types
|
|
160
|
-
* @hidden
|
|
161
176
|
*/
|
|
162
177
|
export type BlueprintApplicationChild = BlueprintApplicationView | BlueprintWebWorker;
|
|
163
178
|
/**
|
|
164
179
|
* Represents an Application resource.
|
|
165
|
-
*
|
|
180
|
+
*
|
|
181
|
+
* This feature is subject to breaking changes.
|
|
182
|
+
* @beta
|
|
166
183
|
* @category Resource Types
|
|
167
|
-
* @hidden
|
|
168
184
|
*/
|
|
169
185
|
export interface BlueprintApplicationResource extends BlueprintResource {
|
|
170
186
|
type: 'sanity.application';
|
|
@@ -174,11 +190,14 @@ export interface BlueprintApplicationResource extends BlueprintResource {
|
|
|
174
190
|
title: string;
|
|
175
191
|
/**
|
|
176
192
|
* The application root directory, relative to the blueprint file. Contains the
|
|
177
|
-
* application's `package.json`; every view and web worker `src`
|
|
178
|
-
* relative to it.
|
|
193
|
+
* application's `package.json`; `icon` and every view and web worker `src` are
|
|
194
|
+
* resolved relative to it.
|
|
179
195
|
*/
|
|
180
196
|
root: string;
|
|
181
|
-
/**
|
|
197
|
+
/**
|
|
198
|
+
* Path to the icon image, relative to `root`. Uploaded on every deploy; omitting it removes the icon.
|
|
199
|
+
* PNG, JPEG, BMP, GIF, TIFF, SVG, WebP, HEIF or AVIF, up to 5 MB.
|
|
200
|
+
*/
|
|
182
201
|
icon?: string;
|
|
183
202
|
/** Dashboard visibility. */
|
|
184
203
|
visibility?: ApplicationVisibility;
|
|
@@ -194,7 +213,13 @@ export interface BlueprintApplicationResource extends BlueprintResource {
|
|
|
194
213
|
/** Module federation manifest */
|
|
195
214
|
mfManifest?: Record<string, unknown>;
|
|
196
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
* Base shape shared by all view configs.
|
|
218
|
+
* @beta
|
|
219
|
+
* @category Resource Types
|
|
220
|
+
*/
|
|
197
221
|
export interface BlueprintViewConfigBase {
|
|
222
|
+
/** Set by the view definers. */
|
|
198
223
|
type: 'view';
|
|
199
224
|
}
|
|
200
225
|
/**
|
|
@@ -203,10 +228,9 @@ export interface BlueprintViewConfigBase {
|
|
|
203
228
|
* @remarks
|
|
204
229
|
* Discriminated by `surface`. The definer transforms `surface: 'window'` to the
|
|
205
230
|
* emitted view `type: 'app'`.
|
|
206
|
-
* @beta
|
|
231
|
+
* @beta
|
|
207
232
|
* @category Resource Types
|
|
208
233
|
* @interface
|
|
209
|
-
* @hidden
|
|
210
234
|
*/
|
|
211
235
|
export type BlueprintWindowViewConfig = Omit<BlueprintWindowView, 'type'> & BlueprintViewConfigBase & {
|
|
212
236
|
/** The surface the view targets. */
|
|
@@ -218,10 +242,9 @@ export type BlueprintWindowViewConfig = Omit<BlueprintWindowView, 'type'> & Blue
|
|
|
218
242
|
* @remarks
|
|
219
243
|
* Discriminated by `surface`. The definer transforms `surface: 'panel'` to the
|
|
220
244
|
* emitted view `type: 'panel'`.
|
|
221
|
-
* @beta
|
|
245
|
+
* @beta
|
|
222
246
|
* @category Resource Types
|
|
223
247
|
* @interface
|
|
224
|
-
* @hidden
|
|
225
248
|
*/
|
|
226
249
|
export type BlueprintPanelViewConfig = Omit<BlueprintPanelView, 'type'> & BlueprintViewConfigBase & {
|
|
227
250
|
/** The surface the view targets. */
|
|
@@ -233,10 +256,9 @@ export type BlueprintPanelViewConfig = Omit<BlueprintPanelView, 'type'> & Bluepr
|
|
|
233
256
|
* @remarks
|
|
234
257
|
* Discriminated by `surface`. The definer transforms `surface: 'asset-source'`
|
|
235
258
|
* to the emitted view `type: 'asset_source'`.
|
|
236
|
-
* @beta
|
|
259
|
+
* @beta
|
|
237
260
|
* @category Resource Types
|
|
238
261
|
* @interface
|
|
239
|
-
* @hidden
|
|
240
262
|
*/
|
|
241
263
|
export type BlueprintAssetSourceViewConfig = Omit<BlueprintAssetSourceView, 'type'> & BlueprintViewConfigBase & {
|
|
242
264
|
/** The surface the view targets. */
|
|
@@ -248,10 +270,9 @@ export type BlueprintAssetSourceViewConfig = Omit<BlueprintAssetSourceView, 'typ
|
|
|
248
270
|
* @remarks
|
|
249
271
|
* Discriminated by `surface`. The definer transforms `surface: 'tile'` to the
|
|
250
272
|
* emitted view `type: 'tile'`.
|
|
251
|
-
* @beta
|
|
273
|
+
* @beta
|
|
252
274
|
* @category Resource Types
|
|
253
275
|
* @interface
|
|
254
|
-
* @hidden
|
|
255
276
|
*/
|
|
256
277
|
export type BlueprintTileViewConfig = Omit<BlueprintTileView, 'type'> & BlueprintViewConfigBase & {
|
|
257
278
|
/** The surface the view targets. */
|
|
@@ -259,28 +280,25 @@ export type BlueprintTileViewConfig = Omit<BlueprintTileView, 'type'> & Blueprin
|
|
|
259
280
|
};
|
|
260
281
|
/**
|
|
261
282
|
* Configuration for a web worker.
|
|
262
|
-
* @beta
|
|
283
|
+
* @beta
|
|
263
284
|
* @category Resource Types
|
|
264
285
|
* @interface
|
|
265
|
-
* @hidden
|
|
266
286
|
*/
|
|
267
287
|
export type BlueprintWebWorkerConfig = Omit<BlueprintWebWorker, 'type'>;
|
|
268
288
|
/**
|
|
269
289
|
* A union of all view configs an application can declare, discriminated by `surface`.
|
|
270
|
-
* @beta
|
|
290
|
+
* @beta
|
|
271
291
|
* @category Resource Types
|
|
272
292
|
* @expand
|
|
273
|
-
* @hidden
|
|
274
293
|
*/
|
|
275
294
|
export type BlueprintApplicationViewConfig = BlueprintWindowViewConfig | BlueprintPanelViewConfig | BlueprintAssetSourceViewConfig | BlueprintTileViewConfig;
|
|
276
295
|
/**
|
|
277
296
|
* Configuration for an Application resource.
|
|
278
|
-
* @beta
|
|
297
|
+
* @beta
|
|
279
298
|
* @category Resource Types
|
|
280
299
|
* @interface
|
|
281
|
-
* @hidden
|
|
282
300
|
*/
|
|
283
|
-
export type BlueprintApplicationConfig = Omit<BlueprintApplicationResource, 'type' | 'slug' | 'views'> & {
|
|
301
|
+
export type BlueprintApplicationConfig = Omit<BlueprintApplicationResource, 'type' | 'slug' | 'views' | 'mfManifest'> & {
|
|
284
302
|
/**
|
|
285
303
|
* The slug to be used in the application hostname. Must match `^[a-z0-9]([a-z0-9-]*[a-z0-9])?$`.
|
|
286
304
|
*
|
|
@@ -1,25 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The set of valid tile footprint families.
|
|
3
3
|
*
|
|
4
|
+
* This feature is subject to breaking changes.
|
|
5
|
+
*
|
|
4
6
|
* Modelled on widget families rather than a linear scale: `banner` is
|
|
5
7
|
* full-width and shallow, which a `small` → `large` magnitude can't express.
|
|
6
|
-
* @beta
|
|
8
|
+
* @beta
|
|
7
9
|
* @category Resource Types
|
|
8
|
-
* @hidden
|
|
9
10
|
*/
|
|
10
11
|
export const APPLICATION_TILE_SIZES = ['small', 'large', 'banner'];
|
|
11
12
|
/**
|
|
12
13
|
* The set of surfaces a view can target within the Dashboard/Workbench.
|
|
13
|
-
*
|
|
14
|
+
*
|
|
15
|
+
* This feature is subject to breaking changes.
|
|
16
|
+
* @beta
|
|
14
17
|
* @category Resource Types
|
|
15
|
-
* @hidden
|
|
16
18
|
*/
|
|
17
19
|
export const APPLICATION_VIEW_SURFACES = ['window', 'panel', 'asset-source', 'tile'];
|
|
18
20
|
/**
|
|
19
21
|
* The set of dock groups a window or panel view can be placed into.
|
|
20
|
-
*
|
|
22
|
+
*
|
|
23
|
+
* This feature is subject to breaking changes.
|
|
24
|
+
* @beta
|
|
21
25
|
* @category Resource Types
|
|
22
|
-
* @hidden
|
|
23
26
|
*/
|
|
24
27
|
export const APPLICATION_DOCK_GROUPS = ['system', 'applications'];
|
|
25
28
|
//# sourceMappingURL=applications.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applications.js","sourceRoot":"","sources":["../../src/types/applications.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"applications.js","sourceRoot":"","sources":["../../src/types/applications.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAU,CAAA;AAW3E;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,CAAU,CAAA;AAY7F;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,QAAQ,EAAE,cAAc,CAAU,CAAA"}
|
package/dist/types/context.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { BlueprintResource } from '../index.js';
|
|
2
2
|
/**
|
|
3
3
|
* A knowledge base that a Context MCP endpoint serves.
|
|
4
|
-
*
|
|
4
|
+
*
|
|
5
|
+
* This feature is subject to breaking changes.
|
|
6
|
+
* @beta
|
|
5
7
|
* @category Resource Types
|
|
6
8
|
*/
|
|
7
9
|
export interface ContextKnowledgeBaseSource {
|
|
@@ -11,7 +13,9 @@ export interface ContextKnowledgeBaseSource {
|
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
13
15
|
* A Sanity dataset that a Context MCP endpoint serves.
|
|
14
|
-
*
|
|
16
|
+
*
|
|
17
|
+
* This feature is subject to breaking changes.
|
|
18
|
+
* @beta
|
|
15
19
|
* @category Resource Types
|
|
16
20
|
*/
|
|
17
21
|
export interface ContextDatasetSource {
|
|
@@ -30,13 +34,17 @@ export interface ContextDatasetSource {
|
|
|
30
34
|
}
|
|
31
35
|
/**
|
|
32
36
|
* Content that a Context MCP endpoint serves.
|
|
33
|
-
*
|
|
37
|
+
*
|
|
38
|
+
* This feature is subject to breaking changes.
|
|
39
|
+
* @beta
|
|
34
40
|
* @category Resource Types
|
|
35
41
|
*/
|
|
36
42
|
export type ContextMcpEndpointSource = ContextKnowledgeBaseSource | ContextDatasetSource;
|
|
37
43
|
/**
|
|
38
44
|
* A Context knowledge base resource.
|
|
39
|
-
*
|
|
45
|
+
*
|
|
46
|
+
* This feature is subject to breaking changes.
|
|
47
|
+
* @beta
|
|
40
48
|
* @category Resource Types
|
|
41
49
|
*/
|
|
42
50
|
export interface BlueprintContextKnowledgeBaseResource extends BlueprintResource {
|
|
@@ -53,14 +61,16 @@ export interface BlueprintContextKnowledgeBaseResource extends BlueprintResource
|
|
|
53
61
|
}
|
|
54
62
|
/**
|
|
55
63
|
* Configuration for a Context knowledge base.
|
|
56
|
-
* @beta
|
|
64
|
+
* @beta
|
|
57
65
|
* @category Resource Types
|
|
58
66
|
* @interface
|
|
59
67
|
*/
|
|
60
68
|
export type BlueprintContextKnowledgeBaseConfig = Omit<BlueprintContextKnowledgeBaseResource, 'type'>;
|
|
61
69
|
/**
|
|
62
70
|
* A Context MCP endpoint resource.
|
|
63
|
-
*
|
|
71
|
+
*
|
|
72
|
+
* This feature is subject to breaking changes.
|
|
73
|
+
* @beta
|
|
64
74
|
* @category Resource Types
|
|
65
75
|
*/
|
|
66
76
|
export interface BlueprintContextMcpEndpointResource extends BlueprintResource {
|
|
@@ -82,7 +92,7 @@ export interface BlueprintContextMcpEndpointResource extends BlueprintResource {
|
|
|
82
92
|
}
|
|
83
93
|
/**
|
|
84
94
|
* Configuration for a Context MCP endpoint.
|
|
85
|
-
* @beta
|
|
95
|
+
* @beta
|
|
86
96
|
* @category Resource Types
|
|
87
97
|
* @interface
|
|
88
98
|
*/
|
package/dist/types/cors.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import type { BlueprintProjectResourceLifecycle, BlueprintResource } from '../in
|
|
|
2
2
|
/**
|
|
3
3
|
* Represents a CORS Origin resource.
|
|
4
4
|
* @see https://www.sanity.io/docs/content-lake/cors
|
|
5
|
-
* @beta This feature is subject to breaking changes.
|
|
6
5
|
* @category Resource Types
|
|
7
6
|
*/
|
|
8
7
|
export interface BlueprintCorsOriginResource extends BlueprintResource<BlueprintProjectResourceLifecycle> {
|
|
@@ -30,7 +29,6 @@ export interface BlueprintCorsOriginResource extends BlueprintResource<Blueprint
|
|
|
30
29
|
/**
|
|
31
30
|
* Configuration for a CORS Origin resource.
|
|
32
31
|
* @see https://www.sanity.io/docs/content-lake/cors
|
|
33
|
-
* @beta This feature is subject to breaking changes.
|
|
34
32
|
* @category Resource Types
|
|
35
33
|
* @interface
|
|
36
34
|
*/
|
package/dist/types/datasets.d.ts
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import type { BlueprintProjectResourceLifecycle, BlueprintResource } from '../index.js';
|
|
2
2
|
/**
|
|
3
3
|
* The ACL mode for a dataset.
|
|
4
|
-
* @alpha
|
|
5
|
-
* @hidden
|
|
6
4
|
* @category Resource Types
|
|
7
5
|
*/
|
|
8
6
|
export type AclMode = 'public' | 'private' | 'custom';
|
|
9
7
|
/**
|
|
10
8
|
* Represents a Dataset resource.
|
|
11
9
|
* @see https://www.sanity.io/docs/content-lake/datasets
|
|
12
|
-
* @alpha This feature is subject to breaking changes.
|
|
13
|
-
* @hidden
|
|
14
10
|
* @category Resource Types
|
|
15
11
|
*/
|
|
16
12
|
export interface BlueprintDatasetResource extends BlueprintResource<BlueprintProjectResourceLifecycle> {
|
|
@@ -33,8 +29,6 @@ export interface BlueprintDatasetResource extends BlueprintResource<BlueprintPro
|
|
|
33
29
|
/**
|
|
34
30
|
* Configuration for a Dataset resource.
|
|
35
31
|
* @see https://www.sanity.io/docs/content-lake/datasets
|
|
36
|
-
* @alpha This feature is subject to breaking changes.
|
|
37
|
-
* @hidden
|
|
38
32
|
* @category Resource Types
|
|
39
33
|
* @interface
|
|
40
34
|
*/
|