@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
@@ -2,6 +2,7 @@ import { type BlueprintDocumentFunctionConfig, type BlueprintDocumentFunctionRes
2
2
  /**
3
3
  * Defines a function that is triggered by document events in Sanity datasets.
4
4
  *
5
+ * @example
5
6
  * ```ts
6
7
  * defineDocumentFunction({
7
8
  * name: 'my-document-function',
@@ -12,6 +13,35 @@ import { type BlueprintDocumentFunctionConfig, type BlueprintDocumentFunctionRes
12
13
  * },
13
14
  * })
14
15
  * ```
16
+ *
17
+ * @example With robot token reference
18
+ * ```ts
19
+ * defineRobotToken({
20
+ * name: 'fn-robot',
21
+ * memberships: [{
22
+ * resourceType: 'project',
23
+ * resourceId: 'my-project-id',
24
+ * roleNames: ['editor'],
25
+ * }],
26
+ * })
27
+ *
28
+ * defineDocumentFunction({
29
+ * name: 'sync-to-external',
30
+ * src: 'functions/sync',
31
+ * memory: 3,
32
+ * timeout: 300,
33
+ * robotToken: '$.resources.fn-robot',
34
+ * event: {
35
+ * on: ['create', 'update'],
36
+ * filter: "_type == 'product'",
37
+ * projection: "{_id, title, slug}",
38
+ * includeDrafts: false,
39
+ * },
40
+ * env: {
41
+ * EXTERNAL_API_URL: 'https://api.example.com',
42
+ * },
43
+ * })
44
+ * ```
15
45
  * @param functionConfig The configuration for the document function
16
46
  * @public
17
47
  * @category Definers
@@ -1 +1 @@
1
- {"version":3,"file":"document.js","sourceRoot":"","sources":["../../../src/definers/functions/document.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,wBAAwB,GACzB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAC,aAAa,EAAC,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAC,eAAe,EAAC,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAA;AAGzC,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAA2B,CAAC,oBAAoB,EAAE,UAAU,EAAE,GAAG,eAAe,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA;AAmE9H,MAAM,UAAU,sBAAsB,CACpC,cAAiG;IAEjG,IAAI,EAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,UAAU,EAAC,GAAG,cAAc,CAAA;IAE1G,qCAAqC;IACrC,IAAI,KAAK,EAAE,CAAC;QACV,2IAA2I;QAC3I,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,IAAI,UAAU,CAAC,CAAA;QACxF,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC7B,MAAM,IAAI,KAAK,CACb,0KAA0K,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC5N,CAAA;QACH,CAAC;QAED,KAAK,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AM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,GAAG,CAAC,GAA+B,CAAC,CAAC,CAC/C,CAAA;IAEpD,OAAO;QACL,EAAE,EAAE,UAAU,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC;QAChC,GAAG,UAAU;KACd,CAAA;AACH,CAAC"}
@@ -2,8 +2,9 @@ import { type BlueprintDurableConfig, type BlueprintDurableFunctionResource } fr
2
2
  /**
3
3
  * Defines a durable function resource.
4
4
  *
5
- * @remarks
5
+ * Deploying Durable Functions via Blueprints is experimental.
6
6
  *
7
+ * @example
7
8
  * ```ts
8
9
  * defineDurableFunction({
9
10
  * name: 'daily-cleanup',
@@ -12,9 +13,9 @@ import { type BlueprintDurableConfig, type BlueprintDurableFunctionResource } fr
12
13
  * ```
13
14
  *
14
15
  * @param functionConfig The configuration for the function
15
- * @category Definers
16
- * @beta Deploying Durable Functions via Blueprints is experimental.
17
16
  * @public
17
+ * @beta
18
+ * @category Definers
18
19
  * @expandType BlueprintDurableConfig
19
20
  * @returns The validated durable function resource
20
21
  */
@@ -5,8 +5,9 @@ import { defineFunction } from './index.js';
5
5
  /**
6
6
  * Defines a durable function resource.
7
7
  *
8
- * @remarks
8
+ * Deploying Durable Functions via Blueprints is experimental.
9
9
  *
10
+ * @example
10
11
  * ```ts
11
12
  * defineDurableFunction({
12
13
  * name: 'daily-cleanup',
@@ -15,9 +16,9 @@ import { defineFunction } from './index.js';
15
16
  * ```
16
17
  *
17
18
  * @param functionConfig The configuration for the function
18
- * @category Definers
19
- * @beta Deploying Durable Functions via Blueprints is experimental.
20
19
  * @public
20
+ * @beta
21
+ * @category Definers
21
22
  * @expandType BlueprintDurableConfig
22
23
  * @returns The validated durable function resource
23
24
  */
@@ -1 +1 @@
1
- {"version":3,"file":"durable.js","sourceRoot":"","sources":["../../../src/definers/functions/durable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqE,uBAAuB,EAAC,MAAM,gBAAgB,C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IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,cAAc,EAAC,GAAG,cAAc,CAAA;IACzD,MAAM,gBAAgB,GAAqC;QACzD,GAAG,cAAc,CAAC,EAAC,GAAG,cAAc,EAAE,GAAG,EAAE,GAAG,IAAI,aAAa,IAAI,EAAE,EAAC,EAAE,EAAC,cAAc,EAAE,IAAI,EAAC,CAAC;QAC/F,IAAI,EAAE,yBAAyB;QAC/B,GAAG,CAAC,KAAK,KAAK,SAAS,IAAI,EAAC,KAAK,EAAC,CAAC;QACnC,GAAG,CAAC,cAAc,KAAK,SAAS,IAAI,EAAC,cAAc,EAAE,aAAa,CAAC,cAAc,EAAE,GAAG,CAAC,EAAC,CAAC;QACzF,iEAAiE;QACjE,mDAAmD;QACnD,6EAA6E;KAC9E,CAAA;IAED,aAAa,CAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAC,CAAA;IAC9D,OAAO,gBAAgB,CAAA;AACzB,CAAC"}
@@ -2,6 +2,7 @@ import { type BlueprintMediaLibraryAssetFunctionConfig, type BlueprintMediaLibra
2
2
  /**
3
3
  * Defines a function that is triggered by media library events.
4
4
  *
5
+ * @example
5
6
  * ```ts
6
7
  * defineMediaLibraryAssetFunction({
7
8
  * name: 'my-media-library-function',
@@ -14,6 +15,36 @@ import { type BlueprintMediaLibraryAssetFunctionConfig, type BlueprintMediaLibra
14
15
  * },
15
16
  * })
16
17
  * ```
18
+ *
19
+ * @example With robot token reference
20
+ * ```ts
21
+ * defineRobotToken({
22
+ * name: 'media-robot',
23
+ * memberships: [{
24
+ * resourceType: 'project',
25
+ * resourceId: 'my-project-id',
26
+ * roleNames: ['editor'],
27
+ * }],
28
+ * })
29
+ *
30
+ * defineMediaLibraryAssetFunction({
31
+ * name: 'process-uploads',
32
+ * src: 'functions/process-uploads-v2',
33
+ * robotToken: '$.resources.media-robot',
34
+ * event: {
35
+ * on: ['create', 'update'],
36
+ * resource: {
37
+ * type: 'media-library',
38
+ * id: 'my-media-library-id',
39
+ * },
40
+ * filter: "type == 'image'",
41
+ * projection: "{_id}",
42
+ * },
43
+ * env: {
44
+ * CDN_BUCKET: 'my-cdn-bucket',
45
+ * },
46
+ * })
47
+ * ```
17
48
  * @param functionConfig The configuration for the media library asset function
18
49
  * @public
19
50
  * @category Definers
@@ -3,15 +3,30 @@ import { runValidation } from '../../utils/validation.js';
3
3
  import { BASE_EVENT_KEYS } from './base-event.js';
4
4
  import { defineFunction } from './index.js';
5
5
  const MEDIA_LIBRARY_EVENT_KEYS = new Set(['resource', ...BASE_EVENT_KEYS.values()]);
6
- /*
7
- * FUTURE example (move below @example when ready)
6
+ /**
7
+ * Defines a function that is triggered by media library events.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * defineMediaLibraryAssetFunction({
12
+ * name: 'my-media-library-function',
13
+ * event: {
14
+ * on: ['create'],
15
+ * resource: {
16
+ * type: 'media-library',
17
+ * id: 'my-media-library-id',
18
+ * },
19
+ * },
20
+ * })
21
+ * ```
22
+ *
8
23
  * @example With robot token reference
9
24
  * ```ts
10
25
  * defineRobotToken({
11
26
  * name: 'media-robot',
12
27
  * memberships: [{
13
28
  * resourceType: 'project',
14
- * resourceId: projectId,
29
+ * resourceId: 'my-project-id',
15
30
  * roleNames: ['editor'],
16
31
  * }],
17
32
  * })
@@ -34,22 +49,6 @@ const MEDIA_LIBRARY_EVENT_KEYS = new Set(['resource', ...BASE_EVENT_KEYS.values(
34
49
  * },
35
50
  * })
36
51
  * ```
37
- */
38
- /**
39
- * Defines a function that is triggered by media library events.
40
- *
41
- * ```ts
42
- * defineMediaLibraryAssetFunction({
43
- * name: 'my-media-library-function',
44
- * event: {
45
- * on: ['create'],
46
- * resource: {
47
- * type: 'media-library',
48
- * id: 'my-media-library-id',
49
- * },
50
- * },
51
- * })
52
- * ```
53
52
  * @param functionConfig The configuration for the media library asset function
54
53
  * @public
55
54
  * @category Definers
@@ -1 +1 @@
1
- {"version":3,"file":"media-library.js","sourceRoot":"","sources":["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,CAAA;AAClB,CAAC"}
@@ -1,9 +1,8 @@
1
1
  import { type BlueprintPubSubFunctionConfig, type BlueprintPubSubFunctionResource } from '../../index.js';
2
2
  /**
3
- * Defines a function that provide pubsub behaviour.
3
+ * Defines a function that provides pubsub behaviour.
4
4
  *
5
- * @remarks
6
- * A barebones pubsub function
5
+ * @example
7
6
  * ```ts
8
7
  * definePubSubFunction({
9
8
  * name: 'send-email',
@@ -2,10 +2,9 @@ import { validatePubSubFunction } from '../../index.js';
2
2
  import { runValidation } from '../../utils/validation.js';
3
3
  import { defineFunction } from './index.js';
4
4
  /**
5
- * Defines a function that provide pubsub behaviour.
5
+ * Defines a function that provides pubsub behaviour.
6
6
  *
7
- * @remarks
8
- * A barebones pubsub function
7
+ * @example
9
8
  * ```ts
10
9
  * definePubSubFunction({
11
10
  * name: 'send-email',
@@ -1 +1 @@
1
- {"version":3,"file":"pubsub.js","sourceRoot":"","sources":["../../../src/definers/functions/pubsub.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2E,sBAAsB,EAAC,MAAM,gBAAgB,CAAA;AAC/H,OAAO,EAAC,aAAa,EAAC,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAA;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,oBAAoB,CAAC,cAA6C;IAChF,MAAM,gBAAgB,GAAoC;QACxD,GAAG,cAAc,CAAC,cAAc,EAAE,EAAC,cAAc,EAAE,IAAI,EAAC,CAAC;QACzD,IAAI,EAAE,wBAAwB;KAC/B,CAAA;IAED,aAAa,CAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC,CAAA;IAE7D,OAAO,gBAAgB,CAAA;AACzB,CAAC"}
1
+ {"version":3,"file":"pubsub.js","sourceRoot":"","sources":["../../../src/definers/functions/pubsub.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2E,sBAAsB,EAAC,MAAM,gBAAgB,CAAA;AAC/H,OAAO,EAAC,aAAa,EAAC,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAA;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,oBAAoB,CAAC,cAA6C;IAChF,MAAM,gBAAgB,GAAoC;QACxD,GAAG,cAAc,CAAC,cAAc,EAAE,EAAC,cAAc,EAAE,IAAI,EAAC,CAAC;QACzD,IAAI,EAAE,wBAAwB;KAC/B,CAAA;IAED,aAAa,CAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC,CAAA;IAE7D,OAAO,gBAAgB,CAAA;AACzB,CAAC"}
@@ -2,25 +2,36 @@ import { type BlueprintQueueFunctionConfig, type BlueprintQueueFunctionResource
2
2
  /**
3
3
  * Defines a function that provide queueing behaviour.
4
4
  *
5
+ * Deploying Queue Functions via Blueprints is experimental. This feature is not available publicly yet.
6
+ *
5
7
  * @remarks
6
- * Using the reasonable defaults of concurrency: 1, fifo: true, and dlq: true
8
+ * Using the reasonable defaults of concurrency: 1 and fifo: true.
9
+ * Without `maxAttempts`, a failing message is redelivered until the queue's retention period expires.
7
10
  * ```ts
8
11
  * defineQueueFunction({
9
12
  * name: 'send-email',
10
13
  * })
11
14
  * ```
12
15
  *
13
- * Specifying a concurrency of 5
16
+ * Specifying a concurrency of 5, and giving up on a message after 3 attempts
14
17
  * ```ts
15
18
  * defineQueueFunction({
16
19
  * name: 'bustin-caches',
17
20
  * concurrency: 5,
18
21
  * fifo: true,
19
- * dlq: true,
22
+ * maxAttempts: 3,
23
+ * })
24
+ * ```
25
+ *
26
+ * Starting at most 100 messages per minute, paced per tenant, with bursts of up to 10
27
+ * ```ts
28
+ * defineQueueFunction({
29
+ * name: 'call-rate-limited-api',
30
+ * throttle: {limit: 100, period: '1 minute', burst: 10, key: 'event.data.tenantId'},
20
31
  * })
21
32
  * ```
22
33
  * @public
23
- * @alpha Deploying Queue Functions via Blueprints is experimental. This feature is not available publicly yet.
34
+ * @alpha
24
35
  * @hidden
25
36
  * @category Definers
26
37
  * @expandType BlueprintQueueFunctionConfig
@@ -1,29 +1,41 @@
1
1
  import { validateQueueFunction } from '../../index.js';
2
2
  import { createDebounceObject } from '../../utils/debounce.js';
3
+ import { createThrottleObject } from '../../utils/throttle.js';
3
4
  import { runValidation } from '../../utils/validation.js';
4
5
  import { defineFunction } from './index.js';
5
6
  /**
6
7
  * Defines a function that provide queueing behaviour.
7
8
  *
9
+ * Deploying Queue Functions via Blueprints is experimental. This feature is not available publicly yet.
10
+ *
8
11
  * @remarks
9
- * Using the reasonable defaults of concurrency: 1, fifo: true, and dlq: true
12
+ * Using the reasonable defaults of concurrency: 1 and fifo: true.
13
+ * Without `maxAttempts`, a failing message is redelivered until the queue's retention period expires.
10
14
  * ```ts
11
15
  * defineQueueFunction({
12
16
  * name: 'send-email',
13
17
  * })
14
18
  * ```
15
19
  *
16
- * Specifying a concurrency of 5
20
+ * Specifying a concurrency of 5, and giving up on a message after 3 attempts
17
21
  * ```ts
18
22
  * defineQueueFunction({
19
23
  * name: 'bustin-caches',
20
24
  * concurrency: 5,
21
25
  * fifo: true,
22
- * dlq: true,
26
+ * maxAttempts: 3,
27
+ * })
28
+ * ```
29
+ *
30
+ * Starting at most 100 messages per minute, paced per tenant, with bursts of up to 10
31
+ * ```ts
32
+ * defineQueueFunction({
33
+ * name: 'call-rate-limited-api',
34
+ * throttle: {limit: 100, period: '1 minute', burst: 10, key: 'event.data.tenantId'},
23
35
  * })
24
36
  * ```
25
37
  * @public
26
- * @alpha Deploying Queue Functions via Blueprints is experimental. This feature is not available publicly yet.
38
+ * @alpha
27
39
  * @hidden
28
40
  * @category Definers
29
41
  * @expandType BlueprintQueueFunctionConfig
@@ -31,15 +43,16 @@ import { defineFunction } from './index.js';
31
43
  * @returns The validated queue function resource
32
44
  */
33
45
  export function defineQueueFunction(functionConfig) {
34
- const { concurrency = 1, fifo = true, dlq = true, debounce, event } = functionConfig;
46
+ const { concurrency = 1, fifo = true, debounce, event, maxAttempts, throttle } = functionConfig;
35
47
  const functionResource = {
36
48
  ...defineFunction(functionConfig, { skipValidation: true }),
37
49
  type: 'sanity.function.queue',
38
50
  ...(concurrency !== undefined && { concurrency }),
39
51
  ...(debounce !== undefined && { debounce: createDebounceObject(debounce) }),
40
- ...(dlq !== undefined && { dlq }),
41
52
  ...(event !== undefined && { event }),
42
53
  ...(fifo !== undefined && { fifo }),
54
+ ...(maxAttempts !== undefined && { maxAttempts }),
55
+ ...(throttle !== undefined && { throttle: createThrottleObject(throttle) }),
43
56
  };
44
57
  runValidation(() => validateQueueFunction(functionResource));
45
58
  return functionResource;
@@ -1 +1 @@
1
- {"version":3,"file":"queue.js","sourceRoot":"","sources":["../../../src/definers/functions/queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyE,qBAAqB,EAAC,MAAM,gBAAgB,CAAA;AAC5H,OAAO,EAAC,oBAAoB,EAAC,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAC,aAAa,EAAC,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAA;AACzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,UAAU,mBAAmB,CAAC,cAA4C;IAC9E,MAAM,EAAC,WAAW,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,EAAE,GAAG,GAAG,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAC,GAAG,cAAc,CAAA;IAElF,MAAM,gBAAgB,GAAmC;QACvD,GAAG,cAAc,CAAC,cAAc,EAAE,EAAC,cAAc,EAAE,IAAI,EAAC,CAAC;QACzD,IAAI,EAAE,uBAAuB;QAC7B,GAAG,CAAC,WAAW,KAAK,SAAS,IAAI,EAAC,WAAW,EAAC,CAAC;QAC/C,GAAG,CAAC,QAAQ,KAAK,SAAS,IAAI,EAAC,QAAQ,EAAE,oBAAoB,CAAC,QAAQ,CAAC,EAAC,CAAC;QACzE,GAAG,CAAC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,EAAC,CAAC;QACnC,GAAG,CAAC,IAAI,KAAK,SAAS,IAAI,EAAC,IAAI,EAAC,CAAC;QACjC,GAAG,CAAC,WAAW,KAAK,SAAS,IAAI,EAAC,WAAW,EAAC,CAAC;QAC/C,GAAG,CAAC,QAAQ,KAAK,SAAS,IAAI,EAAC,QAAQ,EAAE,oBAAoB,CAAC,QAAQ,CAAC,EAAC,CAAC;KAC1E,CAAA;IAED,aAAa,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,CAAC,CAAA;IAE5D,OAAO,gBAAgB,CAAA;AACzB,CAAC"}
@@ -4,7 +4,11 @@ import { type BlueprintScheduledFunctionConfig, type BlueprintScheduledFunctionR
4
4
  * Supports cron expressions or natural language schedules.
5
5
  *
6
6
  * @remarks
7
- * Using a cron expression:
7
+ * The `event.expression` field accepts standard cron expressions or natural language:
8
+ * `'every 15 minutes'`, `'weekdays at 8am'`, `'fridays in the evening'`,
9
+ * `'mon, wed, fri at 9am'`, `'first of the month at noon'`
10
+ *
11
+ * @example
8
12
  * ```ts
9
13
  * defineScheduledFunction({
10
14
  * name: 'daily-cleanup',
@@ -12,7 +16,7 @@ import { type BlueprintScheduledFunctionConfig, type BlueprintScheduledFunctionR
12
16
  * })
13
17
  * ```
14
18
  *
15
- * Using explicit cron fields:
19
+ * @example Explicit cron fields
16
20
  * ```ts
17
21
  * defineScheduledFunction({
18
22
  * name: 'daily-cleanup',
@@ -20,10 +24,7 @@ import { type BlueprintScheduledFunctionConfig, type BlueprintScheduledFunctionR
20
24
  * })
21
25
  * ```
22
26
  *
23
- * The `event.expression` field accepts standard cron expressions or natural language:
24
- * `'every 15 minutes'`, `'weekdays at 8am'`, `'fridays in the evening'`,
25
- * `'mon, wed, fri at 9am'`, `'first of the month at noon'`
26
- *
27
+ * @example Natural language schedule
27
28
  * ```ts
28
29
  * defineScheduledFunction({
29
30
  * name: 'daily-cleanup',
@@ -8,7 +8,11 @@ const SCHEDULED_EVENT_KEYS = new Set(['minute', 'hour', 'dayOfWeek', 'month', 'd
8
8
  * Supports cron expressions or natural language schedules.
9
9
  *
10
10
  * @remarks
11
- * Using a cron expression:
11
+ * The `event.expression` field accepts standard cron expressions or natural language:
12
+ * `'every 15 minutes'`, `'weekdays at 8am'`, `'fridays in the evening'`,
13
+ * `'mon, wed, fri at 9am'`, `'first of the month at noon'`
14
+ *
15
+ * @example
12
16
  * ```ts
13
17
  * defineScheduledFunction({
14
18
  * name: 'daily-cleanup',
@@ -16,7 +20,7 @@ const SCHEDULED_EVENT_KEYS = new Set(['minute', 'hour', 'dayOfWeek', 'month', 'd
16
20
  * })
17
21
  * ```
18
22
  *
19
- * Using explicit cron fields:
23
+ * @example Explicit cron fields
20
24
  * ```ts
21
25
  * defineScheduledFunction({
22
26
  * name: 'daily-cleanup',
@@ -24,10 +28,7 @@ const SCHEDULED_EVENT_KEYS = new Set(['minute', 'hour', 'dayOfWeek', 'month', 'd
24
28
  * })
25
29
  * ```
26
30
  *
27
- * The `event.expression` field accepts standard cron expressions or natural language:
28
- * `'every 15 minutes'`, `'weekdays at 8am'`, `'fridays in the evening'`,
29
- * `'mon, wed, fri at 9am'`, `'first of the month at noon'`
30
- *
31
+ * @example Natural language schedule
31
32
  * ```ts
32
33
  * defineScheduledFunction({
33
34
  * name: 'daily-cleanup',
@@ -1 +1 @@
1
- {"version":3,"file":"scheduled.js","sourceRoot":"","sources":["../../../src/definers/functions/scheduled.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,yBAAyB,GAC1B,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAC,wBAAwB,EAAC,MAAM,gCAAgC,CAAA;AACvE,OAAO,EAAC,aAAa,EAAC,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAA;AAKzC,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAA4B,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,YAAY,EAAE,YA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M,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAC,CAAA;AACrD,CAAC"}
@@ -3,14 +3,17 @@ import { type BlueprintSyncTagInvalidateFunctionConfig, type BlueprintSyncTagInv
3
3
  * Defines a function that is triggered on a sync tag invalidate event.
4
4
  *
5
5
  * @remarks
6
- * Using implicit event scoping to all datasets in the function project:
6
+ * By default, the event covers all datasets in the function project.
7
+ * Set `event.resource` to scope the event to one dataset.
8
+ *
9
+ * @example
7
10
  * ```ts
8
11
  * defineSyncTagInvalidateFunction({
9
12
  * name: 'bustin-caches',
10
13
  * })
11
14
  * ```
12
15
  *
13
- * Using explicit event scoping to a particular dataset in the function project:
16
+ * @example Scoped to one dataset
14
17
  * ```ts
15
18
  * defineSyncTagInvalidateFunction({
16
19
  * name: 'bustin-caches',
@@ -5,14 +5,17 @@ import { defineFunction } from './index.js';
5
5
  * Defines a function that is triggered on a sync tag invalidate event.
6
6
  *
7
7
  * @remarks
8
- * Using implicit event scoping to all datasets in the function project:
8
+ * By default, the event covers all datasets in the function project.
9
+ * Set `event.resource` to scope the event to one dataset.
10
+ *
11
+ * @example
9
12
  * ```ts
10
13
  * defineSyncTagInvalidateFunction({
11
14
  * name: 'bustin-caches',
12
15
  * })
13
16
  * ```
14
17
  *
15
- * Using explicit event scoping to a particular dataset in the function project:
18
+ * @example Scoped to one dataset
16
19
  * ```ts
17
20
  * defineSyncTagInvalidateFunction({
18
21
  * name: 'bustin-caches',
@@ -1 +1 @@
1
- {"version":3,"file":"sync-tag-invalidate.js","sourceRoot":"","sources":["../../../src/definers/functions/sync-tag-invalidate.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iCAAiC,GAClC,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAC,aAAa,EAAC,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAA;AACzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,UAAU,+BAA+B,CAC7C,cAAwD;IAExD,MAAM,EAAC,KAAK,EAAC,GAAG,cAAc,CAAA;IAE9B,MAAM,gBAAgB,GAA+C;QACnE,GAAG,cAAc,CAAC,cAAc,EAAE,EAAC,cAAc,EAAE,IAAI,EAAC,CAAC;QACzD,IAAI,EAAE,qCAAqC;QAC3C,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAC,KAAK,EAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KACpC,CAAA;IAED,aAAa,CAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,CAAC,CAAA;IAExE,OAAO,gBAAgB,CAAA;AACzB,CAAC"}
1
+ {"version":3,"file":"sync-tag-invalidate.js","sourceRoot":"","sources":["../../../src/definers/functions/sync-tag-invalidate.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iCAAiC,GAClC,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAC,aAAa,EAAC,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAA;AACzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,UAAU,+BAA+B,CAC7C,cAAwD;IAExD,MAAM,EAAC,KAAK,EAAC,GAAG,cAAc,CAAA;IAE9B,MAAM,gBAAgB,GAA+C;QACnE,GAAG,cAAc,CAAC,cAAc,EAAE,EAAC,cAAc,EAAE,IAAI,EAAC,CAAC;QACzD,IAAI,EAAE,qCAAqC;QAC3C,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAC,KAAK,EAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KACpC,CAAA;IAED,aAAa,CAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,CAAC,CAAA;IAExE,OAAO,gBAAgB,CAAA;AACzB,CAAC"}
@@ -2,12 +2,15 @@ import { type BlueprintMediaLibraryConfigConfig, type BlueprintMediaLibraryConfi
2
2
  /**
3
3
  * Defines a singleton Media Library configuration.
4
4
  *
5
+ * Configuring the Media Library via Blueprints is experimental. This may be subject to breaking changes.
6
+ *
5
7
  * @remarks
6
8
  * The Media Library is a Sanity-owned singleton, so this resource carries no
7
9
  * application identity of its own — only the config `root` and its `fields`.
8
10
  * The provider resolves the organization's media library installation id at
9
11
  * deploy time.
10
12
  *
13
+ * @example
11
14
  * ```ts
12
15
  * defineMediaLibraryConfig({
13
16
  * name: 'media-library',
@@ -17,10 +20,9 @@ import { type BlueprintMediaLibraryConfigConfig, type BlueprintMediaLibraryConfi
17
20
  * ```
18
21
  * @param config The Media Library configuration
19
22
  * @public
20
- * @beta Configuring the Media Library via Blueprints is experimental. This may be subject to breaking changes.
23
+ * @beta
21
24
  * @category Definers
22
25
  * @expandType BlueprintMediaLibraryConfigConfig
23
26
  * @returns The Media Library configuration resource
24
- * @hidden
25
27
  */
26
28
  export declare function defineMediaLibraryConfig(config: BlueprintMediaLibraryConfigConfig): BlueprintMediaLibraryConfigResource;
@@ -3,12 +3,15 @@ import { runValidation } from '../utils/validation.js';
3
3
  /**
4
4
  * Defines a singleton Media Library configuration.
5
5
  *
6
+ * Configuring the Media Library via Blueprints is experimental. This may be subject to breaking changes.
7
+ *
6
8
  * @remarks
7
9
  * The Media Library is a Sanity-owned singleton, so this resource carries no
8
10
  * application identity of its own — only the config `root` and its `fields`.
9
11
  * The provider resolves the organization's media library installation id at
10
12
  * deploy time.
11
13
  *
14
+ * @example
12
15
  * ```ts
13
16
  * defineMediaLibraryConfig({
14
17
  * name: 'media-library',
@@ -18,11 +21,10 @@ import { runValidation } from '../utils/validation.js';
18
21
  * ```
19
22
  * @param config The Media Library configuration
20
23
  * @public
21
- * @beta Configuring the Media Library via Blueprints is experimental. This may be subject to breaking changes.
24
+ * @beta
22
25
  * @category Definers
23
26
  * @expandType BlueprintMediaLibraryConfigConfig
24
27
  * @returns The Media Library configuration resource
25
- * @hidden
26
28
  */
27
29
  export function defineMediaLibraryConfig(config) {
28
30
  const resource = {
@@ -1 +1 @@
1
- {"version":3,"file":"installation-config.js","sourceRoot":"","sources":["../../src/definers/installation-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmF,0BAA0B,EAAC,MAAM,aAAa,CAAA;AACxI,OAAO,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,wBAAwB,CAAC,MAAyC;IAChF,MAAM,QAAQ,GAAG;QACf,GAAG,MAAM;QACT,IAAI,EAAE,4BAA4B;QAClC,OAAO,EAAE,eAAe;KACqB,CAAA;IAE/C,aAAa,CAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC,QAAQ,CAAC,CAAC,CAAA;IAEzD,OAAO,QAAQ,CAAA;AACjB,CAAC"}
1
+ {"version":3,"file":"installation-config.js","sourceRoot":"","sources":["../../src/definers/installation-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmF,0BAA0B,EAAC,MAAM,aAAa,CAAA;AACxI,OAAO,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,UAAU,wBAAwB,CAAC,MAAyC;IAChF,MAAM,QAAQ,GAAG;QACf,GAAG,MAAM;QACT,IAAI,EAAE,4BAA4B;QAClC,OAAO,EAAE,eAAe;KACqB,CAAA;IAE/C,aAAa,CAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC,QAAQ,CAAC,CAAC,CAAA;IAEzD,OAAO,QAAQ,CAAA;AACjB,CAAC"}
@@ -2,6 +2,9 @@ import { type BlueprintContentResourceConfig, type BlueprintPermissionConfig, ty
2
2
  /**
3
3
  * Defines a custom permission that roles can grant, in the shape of the Access API.
4
4
  *
5
+ * Deploying Permissions via Blueprints is experimental. This feature is stabilizing but may still be subject to breaking changes.
6
+ *
7
+ * @example
5
8
  * ```ts
6
9
  * definePermission({
7
10
  * name: 'articles-only',
@@ -34,7 +37,7 @@ import { type BlueprintContentResourceConfig, type BlueprintPermissionConfig, ty
34
37
  * ```
35
38
  * @param parameters The configuration of the permission
36
39
  * @public
37
- * @beta Deploying Permissions via Blueprints is experimental. This feature is stabilizing but may still be subject to breaking changes.
40
+ * @beta
38
41
  * @category Definers
39
42
  * @expandType BlueprintPermissionConfig
40
43
  * @returns The permission resource
@@ -43,6 +46,9 @@ export declare function definePermission(parameters: BlueprintPermissionConfig):
43
46
  /**
44
47
  * Defines a content resource as the Manage UI makes it: a custom permission of type `sanity.document.filter.mode`.
45
48
  *
49
+ * Deploying Permissions via Blueprints is experimental. This feature is stabilizing but may still be subject to breaking changes.
50
+ *
51
+ * @example
46
52
  * ```ts
47
53
  * defineContentResource({
48
54
  * name: 'movies',
@@ -63,7 +69,7 @@ export declare function definePermission(parameters: BlueprintPermissionConfig):
63
69
  * ```
64
70
  * @param parameters The configuration of the content resource
65
71
  * @public
66
- * @beta Deploying Permissions via Blueprints is experimental. This feature is stabilizing but may still be subject to breaking changes.
72
+ * @beta
67
73
  * @category Definers
68
74
  * @expandType BlueprintContentResourceConfig
69
75
  * @returns The permission resource
@@ -3,6 +3,9 @@ import { runValidation } from '../utils/validation.js';
3
3
  /**
4
4
  * Defines a custom permission that roles can grant, in the shape of the Access API.
5
5
  *
6
+ * Deploying Permissions via Blueprints is experimental. This feature is stabilizing but may still be subject to breaking changes.
7
+ *
8
+ * @example
6
9
  * ```ts
7
10
  * definePermission({
8
11
  * name: 'articles-only',
@@ -35,7 +38,7 @@ import { runValidation } from '../utils/validation.js';
35
38
  * ```
36
39
  * @param parameters The configuration of the permission
37
40
  * @public
38
- * @beta Deploying Permissions via Blueprints is experimental. This feature is stabilizing but may still be subject to breaking changes.
41
+ * @beta
39
42
  * @category Definers
40
43
  * @expandType BlueprintPermissionConfig
41
44
  * @returns The permission resource
@@ -51,6 +54,9 @@ export function definePermission(parameters) {
51
54
  /**
52
55
  * Defines a content resource as the Manage UI makes it: a custom permission of type `sanity.document.filter.mode`.
53
56
  *
57
+ * Deploying Permissions via Blueprints is experimental. This feature is stabilizing but may still be subject to breaking changes.
58
+ *
59
+ * @example
54
60
  * ```ts
55
61
  * defineContentResource({
56
62
  * name: 'movies',
@@ -71,7 +77,7 @@ export function definePermission(parameters) {
71
77
  * ```
72
78
  * @param parameters The configuration of the content resource
73
79
  * @public
74
- * @beta Deploying Permissions via Blueprints is experimental. This feature is stabilizing but may still be subject to breaking changes.
80
+ * @beta
75
81
  * @category Definers
76
82
  * @expandType BlueprintContentResourceConfig
77
83
  * @returns The permission resource
@@ -1 +1 @@
1
- {"version":3,"file":"permissions.js","sourceRoot":"","sources":["../../src/definers/permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,UAAU,gBAAgB,CAAC,UAAqC;IACpE,MAAM,kBAAkB,GAAgC;QACtD,GAAG,UAAU;QACb,IAAI,EAAE,0BAA0B;KACjC,CAAA;IAED,aAAa,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,CAAC,CAAA;IAE3D,OAAO,kBAAkB,CAAA;AAC3B,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,UAAU,qBAAqB,CAAC,UAA0C;IAC9E,MAAM,EAAC,aAAa,EAAE,MAAM,EAAE,GAAG,UAAU,EAAC,GAAG,UAAU,CAAA;IAEzD,aAAa,CAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC,CAAA;IAExD,OAAO,gBAAgB,CAAC;QACtB,GAAG,UAAU;QACb,cAAc,EAAE,6BAA6B;QAC7C,MAAM,EAAE,EAAC,MAAM,EAAE,qBAAqB,CAAC,aAAa,EAAE,MAAM,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