@sanity/blueprints 0.34.0 → 0.35.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.
Files changed (149) hide show
  1. package/dist/definers/agents.d.ts +3 -1
  2. package/dist/definers/agents.js +3 -1
  3. package/dist/definers/agents.js.map +1 -1
  4. package/dist/definers/applications.d.ts +30 -18
  5. package/dist/definers/applications.js +30 -18
  6. package/dist/definers/applications.js.map +1 -1
  7. package/dist/definers/blueprints.d.ts +1 -0
  8. package/dist/definers/blueprints.js +1 -25
  9. package/dist/definers/blueprints.js.map +1 -1
  10. package/dist/definers/context.d.ts +6 -2
  11. package/dist/definers/context.js +6 -2
  12. package/dist/definers/context.js.map +1 -1
  13. package/dist/definers/cors.d.ts +11 -1
  14. package/dist/definers/cors.js +10 -12
  15. package/dist/definers/cors.js.map +1 -1
  16. package/dist/definers/datasets.d.ts +12 -2
  17. package/dist/definers/datasets.js +11 -14
  18. package/dist/definers/datasets.js.map +1 -1
  19. package/dist/definers/functions/document.d.ts +30 -0
  20. package/dist/definers/functions/document.js.map +1 -1
  21. package/dist/definers/functions/durable.d.ts +4 -3
  22. package/dist/definers/functions/durable.js +4 -3
  23. package/dist/definers/functions/durable.js.map +1 -1
  24. package/dist/definers/functions/media-library.d.ts +31 -0
  25. package/dist/definers/functions/media-library.js +18 -19
  26. package/dist/definers/functions/media-library.js.map +1 -1
  27. package/dist/definers/functions/pubsub.d.ts +2 -3
  28. package/dist/definers/functions/pubsub.js +2 -3
  29. package/dist/definers/functions/pubsub.js.map +1 -1
  30. package/dist/definers/functions/queue.d.ts +15 -4
  31. package/dist/definers/functions/queue.js +19 -6
  32. package/dist/definers/functions/queue.js.map +1 -1
  33. package/dist/definers/functions/scheduled.d.ts +7 -6
  34. package/dist/definers/functions/scheduled.js +7 -6
  35. package/dist/definers/functions/scheduled.js.map +1 -1
  36. package/dist/definers/functions/sync-tag-invalidate.d.ts +5 -2
  37. package/dist/definers/functions/sync-tag-invalidate.js +5 -2
  38. package/dist/definers/functions/sync-tag-invalidate.js.map +1 -1
  39. package/dist/definers/installation-config.d.ts +4 -2
  40. package/dist/definers/installation-config.js +4 -2
  41. package/dist/definers/installation-config.js.map +1 -1
  42. package/dist/definers/permissions.d.ts +8 -2
  43. package/dist/definers/permissions.js +8 -2
  44. package/dist/definers/permissions.js.map +1 -1
  45. package/dist/definers/projects.d.ts +3 -4
  46. package/dist/definers/projects.js +3 -4
  47. package/dist/definers/projects.js.map +1 -1
  48. package/dist/definers/resources.d.ts +1 -0
  49. package/dist/definers/resources.js +1 -11
  50. package/dist/definers/resources.js.map +1 -1
  51. package/dist/definers/robotTokens.d.ts +22 -3
  52. package/dist/definers/robotTokens.js +17 -18
  53. package/dist/definers/robotTokens.js.map +1 -1
  54. package/dist/definers/roles.d.ts +53 -5
  55. package/dist/definers/roles.js +38 -40
  56. package/dist/definers/roles.js.map +1 -1
  57. package/dist/definers/studios.d.ts +5 -3
  58. package/dist/definers/studios.js +5 -3
  59. package/dist/definers/studios.js.map +1 -1
  60. package/dist/definers/webhooks.d.ts +19 -1
  61. package/dist/definers/webhooks.js +15 -17
  62. package/dist/definers/webhooks.js.map +1 -1
  63. package/dist/index.d.ts +18 -18
  64. package/dist/index.js +19 -20
  65. package/dist/index.js.map +1 -1
  66. package/dist/resolve/index.d.ts +2 -3
  67. package/dist/resolve/index.js +2 -3
  68. package/dist/resolve/index.js.map +1 -1
  69. package/dist/types/agents.d.ts +7 -3
  70. package/dist/types/applications.d.ts +67 -49
  71. package/dist/types/applications.js +9 -6
  72. package/dist/types/applications.js.map +1 -1
  73. package/dist/types/context.d.ts +17 -7
  74. package/dist/types/cors.d.ts +0 -2
  75. package/dist/types/datasets.d.ts +0 -6
  76. package/dist/types/functions/index.d.ts +64 -14
  77. package/dist/types/functions/index.js +2 -1
  78. package/dist/types/functions/index.js.map +1 -1
  79. package/dist/types/installation-config.d.ts +13 -10
  80. package/dist/types/permissions.d.ts +8 -4
  81. package/dist/types/projects.d.ts +5 -4
  82. package/dist/types/robotTokens.d.ts +0 -3
  83. package/dist/types/roles.d.ts +0 -4
  84. package/dist/types/studios.d.ts +28 -15
  85. package/dist/types/studios.js +3 -2
  86. package/dist/types/studios.js.map +1 -1
  87. package/dist/types/webhooks.d.ts +0 -3
  88. package/dist/utils/debounce.d.ts +0 -11
  89. package/dist/utils/debounce.js +0 -22
  90. package/dist/utils/debounce.js.map +1 -1
  91. package/dist/utils/parse-duration.d.ts +13 -0
  92. package/dist/utils/parse-duration.js +24 -0
  93. package/dist/utils/parse-duration.js.map +1 -1
  94. package/dist/utils/throttle.d.ts +9 -0
  95. package/dist/utils/throttle.js +22 -0
  96. package/dist/utils/throttle.js.map +1 -0
  97. package/dist/validation/applications.js +7 -2
  98. package/dist/validation/applications.js.map +1 -1
  99. package/dist/validation/functions.d.ts +10 -0
  100. package/dist/validation/functions.js +112 -12
  101. package/dist/validation/functions.js.map +1 -1
  102. package/dist/validation/projects.js +3 -0
  103. package/dist/validation/projects.js.map +1 -1
  104. package/dist/validation/studios.js +4 -5
  105. package/dist/validation/studios.js.map +1 -1
  106. package/package.json +1 -1
  107. package/src/definers/agents.ts +3 -1
  108. package/src/definers/applications.ts +30 -18
  109. package/src/definers/blueprints.ts +1 -25
  110. package/src/definers/context.ts +6 -2
  111. package/src/definers/cors.ts +10 -12
  112. package/src/definers/datasets.ts +11 -14
  113. package/src/definers/functions/document.ts +17 -24
  114. package/src/definers/functions/durable.ts +4 -3
  115. package/src/definers/functions/media-library.ts +18 -19
  116. package/src/definers/functions/pubsub.ts +2 -3
  117. package/src/definers/functions/queue.ts +19 -6
  118. package/src/definers/functions/scheduled.ts +7 -6
  119. package/src/definers/functions/sync-tag-invalidate.ts +5 -2
  120. package/src/definers/installation-config.ts +4 -2
  121. package/src/definers/permissions.ts +8 -2
  122. package/src/definers/projects.ts +3 -4
  123. package/src/definers/resources.ts +1 -11
  124. package/src/definers/robotTokens.ts +17 -18
  125. package/src/definers/roles.ts +38 -40
  126. package/src/definers/studios.ts +5 -3
  127. package/src/definers/webhooks.ts +15 -17
  128. package/src/index.ts +20 -21
  129. package/src/resolve/index.ts +2 -4
  130. package/src/types/agents.ts +7 -3
  131. package/src/types/applications.ts +67 -49
  132. package/src/types/context.ts +17 -7
  133. package/src/types/cors.ts +0 -2
  134. package/src/types/datasets.ts +0 -6
  135. package/src/types/functions/index.ts +67 -14
  136. package/src/types/installation-config.ts +13 -10
  137. package/src/types/permissions.ts +8 -4
  138. package/src/types/projects.ts +6 -4
  139. package/src/types/robotTokens.ts +0 -3
  140. package/src/types/roles.ts +0 -4
  141. package/src/types/studios.ts +28 -16
  142. package/src/types/webhooks.ts +0 -3
  143. package/src/utils/debounce.ts +0 -25
  144. package/src/utils/parse-duration.ts +27 -0
  145. package/src/utils/throttle.ts +25 -0
  146. package/src/validation/applications.ts +6 -2
  147. package/src/validation/functions.ts +123 -12
  148. package/src/validation/projects.ts +4 -0
  149. package/src/validation/studios.ts +3 -6
package/dist/index.d.ts CHANGED
@@ -1,10 +1,26 @@
1
1
  /**
2
+ * @packageDocumentation
3
+ *
2
4
  * @categoryDescription Definers
3
5
  * These functions are used to define resources in a Blueprint.
4
- */
5
- /**
6
+ *
7
+ * @categoryDescription Application Children
8
+ * These functions define the views and web workers of an application. Pass them to `defineApplication`.
9
+ *
6
10
  * @categoryDescription Referencers
7
11
  * These functions are used to reference resources in another Blueprint.
12
+ *
13
+ * @categoryDescription Resource Types
14
+ * These types are used to define the shape of resources in a Blueprint.
15
+ *
16
+ * @categoryDescription Functions Types
17
+ * Resource types for functions in a Blueprint.
18
+ *
19
+ * @categoryDescription Validation
20
+ * These functions are used to validate resources in a Blueprint.
21
+ *
22
+ * @categoryDescription Blueprint Internals
23
+ * Shared types that Blueprints and resources are built on. Definers and resource types use them, so most code does not need to import them.
8
24
  */
9
25
  export * from './definers/agents.js';
10
26
  export * from './definers/applications.js';
@@ -29,14 +45,6 @@ export * from './definers/robotTokens.js';
29
45
  export * from './definers/roles.js';
30
46
  export * from './definers/studios.js';
31
47
  export * from './definers/webhooks.js';
32
- /**
33
- * @categoryDescription Resource Types
34
- * These types are used to define the shape of resources in a Blueprint.
35
- */
36
- /**
37
- * @categoryDescription Functions Types
38
- * Resource types for functions in a Blueprint.
39
- */
40
48
  export * from './types/agents.js';
41
49
  export * from './types/applications.js';
42
50
  export * from './types/blueprints.js';
@@ -54,10 +62,6 @@ export * from './types/robotTokens.js';
54
62
  export * from './types/roles.js';
55
63
  export * from './types/studios.js';
56
64
  export * from './types/webhooks.js';
57
- /**
58
- * @categoryDescription Validation
59
- * These functions are used to validate resources in a Blueprint.
60
- */
61
65
  export * from './validation/agents.js';
62
66
  export * from './validation/applications.js';
63
67
  export * from './validation/blueprints.js';
@@ -74,7 +78,3 @@ export * from './validation/robotTokens.js';
74
78
  export * from './validation/roles.js';
75
79
  export * from './validation/studios.js';
76
80
  export * from './validation/webhooks.js';
77
- /**
78
- * @categoryDescription Blueprint Internals
79
- * Miscellaneous Blueprint types that make up the public API but are not exported directly.
80
- */
package/dist/index.js CHANGED
@@ -1,12 +1,28 @@
1
- // DEFINERS - helper functions to create resources
2
1
  /**
2
+ * @packageDocumentation
3
+ *
3
4
  * @categoryDescription Definers
4
5
  * These functions are used to define resources in a Blueprint.
5
- */
6
- /**
6
+ *
7
+ * @categoryDescription Application Children
8
+ * These functions define the views and web workers of an application. Pass them to `defineApplication`.
9
+ *
7
10
  * @categoryDescription Referencers
8
11
  * These functions are used to reference resources in another Blueprint.
12
+ *
13
+ * @categoryDescription Resource Types
14
+ * These types are used to define the shape of resources in a Blueprint.
15
+ *
16
+ * @categoryDescription Functions Types
17
+ * Resource types for functions in a Blueprint.
18
+ *
19
+ * @categoryDescription Validation
20
+ * These functions are used to validate resources in a Blueprint.
21
+ *
22
+ * @categoryDescription Blueprint Internals
23
+ * Shared types that Blueprints and resources are built on. Definers and resource types use them, so most code does not need to import them.
9
24
  */
25
+ // DEFINERS - helper functions to create resources
10
26
  export * from './definers/agents.js';
11
27
  export * from './definers/applications.js';
12
28
  export * from './definers/blueprints.js';
@@ -31,14 +47,6 @@ export * from './definers/roles.js';
31
47
  export * from './definers/studios.js';
32
48
  export * from './definers/webhooks.js';
33
49
  // TYPES - base types for all resources
34
- /**
35
- * @categoryDescription Resource Types
36
- * These types are used to define the shape of resources in a Blueprint.
37
- */
38
- /**
39
- * @categoryDescription Functions Types
40
- * Resource types for functions in a Blueprint.
41
- */
42
50
  export * from './types/agents.js';
43
51
  export * from './types/applications.js';
44
52
  export * from './types/blueprints.js';
@@ -57,10 +65,6 @@ export * from './types/roles.js';
57
65
  export * from './types/studios.js';
58
66
  export * from './types/webhooks.js';
59
67
  // VALIDATION - validation for all resources
60
- /**
61
- * @categoryDescription Validation
62
- * These functions are used to validate resources in a Blueprint.
63
- */
64
68
  export * from './validation/agents.js';
65
69
  export * from './validation/applications.js';
66
70
  export * from './validation/blueprints.js';
@@ -77,9 +81,4 @@ export * from './validation/robotTokens.js';
77
81
  export * from './validation/roles.js';
78
82
  export * from './validation/studios.js';
79
83
  export * from './validation/webhooks.js';
80
- // Public BLUEPRINTS INTERNALS - published bucket of misc Blueprint types
81
- /**
82
- * @categoryDescription Blueprint Internals
83
- * Miscellaneous Blueprint types that make up the public API but are not exported directly.
84
- */
85
84
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD;;;GAGG;AACH;;;GAGG;AACH,cAAc,sBAAsB,CAAA;AACpC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,0BAA0B,CAAA;AACxC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,kCAAkC,CAAA;AAChD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,uCAAuC,CAAA;AACrD,cAAc,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AAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AAEnC,4CAA4C;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,0BAA0B,CAAA;AACxC,cAAc,2BAA2B,CAAA;AACzC,cAAc,qCAAqC,CAAA;AACnD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,0BAA0B,CAAA;AACxC,cAAc,2BAA2B,CAAA;AACzC,cAAc,wBAAwB,CAAA;AACtC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,uBAAuB,CAAA;AACrC,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA"}
@@ -6,11 +6,10 @@
6
6
  * {@link readStack} reads remote stack.
7
7
  *
8
8
  * This entry point imports Node built-ins, so it is separate from `@sanity/blueprints`.
9
- * @module
10
- */
11
- /**
9
+ *
12
10
  * @categoryDescription Resolve
13
11
  * These functions read a blueprint from disk, resolve the Stack it deploys to, and read that Stack from the Blueprints API.
12
+ * @module
14
13
  */
15
14
  export { BLUEPRINT_FILE_NAMES, findBlueprintFile, loadBlueprintFile, readBlueprint, } from './load.js';
16
15
  export { DEFAULT_BLUEPRINTS_API_VERSION, readStack, } from './stack.js';
@@ -6,11 +6,10 @@
6
6
  * {@link readStack} reads remote stack.
7
7
  *
8
8
  * This entry point imports Node built-ins, so it is separate from `@sanity/blueprints`.
9
- * @module
10
- */
11
- /**
9
+ *
12
10
  * @categoryDescription Resolve
13
11
  * These functions read a blueprint from disk, resolve the Stack it deploys to, and read that Stack from the Blueprints API.
12
+ * @module
14
13
  */
15
14
  export { BLUEPRINT_FILE_NAMES, findBlueprintFile, loadBlueprintFile, readBlueprint, } from './load.js';
16
15
  export { DEFAULT_BLUEPRINTS_API_VERSION, readStack, } from './stack.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resolve/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH;;;GAGG;AACH,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,GACd,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,8BAA8B,EAC9B,SAAS,GACV,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,GAChB,MAAM,mBAAmB,CAAA;AAC1B,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resolve/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,GACd,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,8BAA8B,EAC9B,SAAS,GACV,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,GAChB,MAAM,mBAAmB,CAAA;AAC1B,cAAc,YAAY,CAAA"}
@@ -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 This feature is subject to breaking changes.
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
- * @alpha This feature is subject to breaking changes.
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 This feature is subject to breaking changes.
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 This feature is subject to breaking changes.
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
- * @beta This feature is subject to breaking changes.
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
- * @beta This feature is subject to breaking changes.
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
- * @beta This feature is subject to breaking changes.
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
- * @beta This feature is subject to breaking changes.
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
- * @beta This feature is subject to breaking changes.
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
- * @beta This feature is subject to breaking changes.
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
- * @beta This feature is subject to breaking changes.
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
- * @beta This feature is subject to breaking changes.
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
- * @beta This feature is subject to breaking changes.
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
- * @beta This feature is subject to breaking changes.
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
- * @beta This feature is subject to breaking changes.
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
- * @beta This feature is subject to breaking changes.
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
- * @beta This feature is subject to breaking changes.
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
- * @beta This feature is subject to breaking changes.
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
- * @beta This feature is subject to breaking changes.
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` is resolved
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
- /** Icon for the application (path to an SVG). */
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 This feature is subject to breaking changes.
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 This feature is subject to breaking changes.
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 This feature is subject to breaking changes.
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 This feature is subject to breaking changes.
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,26 +280,23 @@ export type BlueprintTileViewConfig = Omit<BlueprintTileView, 'type'> & Blueprin
259
280
  };
260
281
  /**
261
282
  * Configuration for a web worker.
262
- * @beta This feature is subject to breaking changes.
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 This feature is subject to breaking changes.
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 This feature is subject to breaking changes.
297
+ * @beta
279
298
  * @category Resource Types
280
299
  * @interface
281
- * @hidden
282
300
  */
283
301
  export type BlueprintApplicationConfig = Omit<BlueprintApplicationResource, 'type' | 'slug' | 'views'> & {
284
302
  /**
@@ -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 This feature is subject to breaking changes.
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
- * @beta This feature is subject to breaking changes.
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
- * @beta This feature is subject to breaking changes.
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;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAU,CAAA;AAU3E;;;;;GAKG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,CAAU,CAAA;AAW7F;;;;;GAKG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,QAAQ,EAAE,cAAc,CAAU,CAAA"}
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"}
@@ -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
- * @beta This feature is subject to breaking changes.
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
- * @beta This feature is subject to breaking changes.
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
- * @beta This feature is subject to breaking changes.
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
- * @beta This feature is subject to breaking changes.
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 This feature is subject to breaking changes.
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
- * @beta This feature is subject to breaking changes.
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 This feature is subject to breaking changes.
95
+ * @beta
86
96
  * @category Resource Types
87
97
  * @interface
88
98
  */
@@ -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
  */
@@ -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
  */