@uniformdev/mesh-edgehancer-sdk 20.48.1-alpha.28 → 20.48.1-alpha.33.sha-eb3f272086

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -28,8 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
30
  // src/index.ts
31
- var src_exports = {};
32
- __export(src_exports, {
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
33
  COLLECTION_DEFAULT_LIMIT: () => COLLECTION_DEFAULT_LIMIT,
34
34
  COLLECTION_DEFAULT_OFFSET: () => COLLECTION_DEFAULT_OFFSET,
35
35
  COLLECTION_MAX_LIMIT: () => COLLECTION_MAX_LIMIT,
@@ -56,10 +56,19 @@ __export(src_exports, {
56
56
  resolveBatchFetchIds: () => resolveBatchFetchIds,
57
57
  resolvingIssueSchema: () => resolvingIssueSchema
58
58
  });
59
- module.exports = __toCommonJS(src_exports);
59
+ module.exports = __toCommonJS(index_exports);
60
60
 
61
61
  // ../../lib/ai-sdk/src/InvocationContexts.ts
62
- var z = __toESM(require("zod/v3"), 1);
62
+ var z = __toESM(require("zod"), 1);
63
+
64
+ // ../../lib/ai-sdk/src/utils/insightsDateRange.ts
65
+ var INSIGHTS_DATE_RANGES = ["last-7-days", "last-14-days", "last-30-days", "last-3-months"];
66
+
67
+ // ../../lib/ai-sdk/src/InvocationContexts.ts
68
+ var insightsDebugTraceSchema = z.object({
69
+ tools: z.array(z.string()),
70
+ maxChars: z.number().optional()
71
+ });
63
72
  var invocationContextsSchema = z.enum([
64
73
  "composition",
65
74
  "compositionPattern",
@@ -69,14 +78,58 @@ var invocationContextsSchema = z.enum([
69
78
  "general"
70
79
  ]);
71
80
  var invocationContextInfoSchema = z.object({
72
- context: invocationContextsSchema,
73
- id: z.string(),
74
- displayName: z.string().optional(),
75
- icon: z.string().optional()
81
+ /** The invocation context type ('composition', 'entry', 'general', etc.) */
82
+ context: invocationContextsSchema.optional(),
83
+ /** Entity ID being edited */
84
+ entityId: z.string().optional(),
85
+ /** Display name of the entity */
86
+ entityName: z.string().optional(),
87
+ /** Project map path of the entity (e.g., "/", "/about", "/products/shoes"). Only for compositions attached to project map. */
88
+ entityPath: z.string().optional(),
89
+ /** Edition ID if editing a non-default edition */
90
+ editionId: z.string().optional(),
91
+ /** Component node ID selected by the user within the entity's component tree.
92
+ * Only applicable when context is 'composition', 'compositionPattern', or 'componentPattern'. */
93
+ entitySelectedNodeId: z.string().optional(),
94
+ /** Parameter or field ID the user has focused within the selected node.
95
+ * Applicable to all entity types. */
96
+ entitySelectedPropertyId: z.string().optional(),
97
+ /** Current locale */
98
+ locale: z.string().optional(),
99
+ /** Release ID if working within a release context; null means editing base content (not in a release) */
100
+ releaseId: z.string().nullable().optional(),
101
+ /** Display name of the release */
102
+ releaseName: z.string().optional(),
103
+ /** Project display name */
104
+ projectName: z.string().optional(),
105
+ /** User display name */
106
+ userDisplayName: z.string().optional(),
107
+ /** Username (e.g. for creator/author filters in search); prefer identity name from member profile */
108
+ username: z.string().optional(),
109
+ /** Current date (ISO string for reliable parsing). Only updated when >5min apart. */
110
+ currentDate: z.string().optional(),
111
+ /** Current date in user's locale format with timezone */
112
+ currentLocaleDate: z.string().optional(),
113
+ /**
114
+ * The period selected in the insights date filter, if the user has one. Scout answers an
115
+ * analytics question that names no period over this window, so its numbers match the dashboard
116
+ * the user is looking at.
117
+ */
118
+ insightsDateRange: z.enum(INSIGHTS_DATE_RANGES).optional(),
119
+ /**
120
+ * Dev-only request, set from a viewer's own localStorage rather than any product UI: capture full
121
+ * input/output for the named insights analyst tool calls and attach them to `queryInsights`'
122
+ * `trace.calls`, instead of the usual tool-name-only trace. Never surfaced to the user.
123
+ */
124
+ insightsDebugTrace: insightsDebugTraceSchema.optional(),
125
+ /** Agent-readable description of how entity mutations behave in the current context */
126
+ editBehavior: z.string().optional(),
127
+ /** Summary of pending changes applied/discarded since the last turn */
128
+ pendingChangesUpdates: z.string().optional()
76
129
  });
77
130
 
78
131
  // src/afterAIDataResourceEdit.ts
79
- var z2 = __toESM(require("zod/v3"));
132
+ var z2 = __toESM(require("zod"));
80
133
  var afterAIDataResourceEditResultSchema = z2.strictObject({
81
134
  newValue: z2.record(z2.string(), z2.string()),
82
135
  success: z2.boolean(),
@@ -114,63 +167,75 @@ var afterAIDataResourceEditContextSchema = z2.strictObject({
114
167
  });
115
168
 
116
169
  // ../../lib/ai-sdk/src/toolDefinitions/editing/createPropertyEdit.ts
117
- var z3 = __toESM(require("zod/v3"), 1);
170
+ var z4 = __toESM(require("zod"), 1);
171
+
172
+ // ../../lib/ai-sdk/src/utils/normalizeOptionalAIString.ts
173
+ var z3 = __toESM(require("zod"), 1);
174
+ var optionalAIStringSchema = z3.string().optional();
175
+
176
+ // ../../lib/ai-sdk/src/toolDefinitions/editing/createPropertyEdit.ts
118
177
  var createPropertyEdit = {
119
- displayName: "Create Property Edit",
178
+ displayName: "Create property edit",
120
179
  description: "Edits a property on a composition, entry, or pattern with AI. This is a callable tool NOT FOR AGENT USE - agents use applyPropertyEdit to broker client-side application of the edit.",
121
- inputSchema: z3.object({
122
- edit: z3.string().describe("Describe the edit to be made to the property"),
123
- currentValue: z3.unknown().describe("Current value of the property (if any exists)").optional(),
124
- projectGuidance: z3.string().describe("Guidance prompt for the project (if any exists)").optional(),
125
- componentGuidance: z3.string().describe("Guidance prompt for the parent component").optional(),
126
- audienceGuidance: z3.string().describe(
180
+ inputSchema: z4.object({
181
+ edit: z4.string().describe(
182
+ "Describe the edit to generate. Pass an empty string when supplying exactValue instead (they are mutually exclusive)."
183
+ ),
184
+ exactValue: z4.string().describe(
185
+ "The exact content to store, in its natural form, with minimal reformatting. Mutually exclusive with edit."
186
+ ).optional(),
187
+ currentValue: z4.unknown().describe("Current value of the property (if any exists)").optional(),
188
+ projectGuidance: z4.string().describe("Guidance prompt for the project (if any exists)").optional(),
189
+ componentGuidance: z4.string().describe("Guidance prompt for the parent component").optional(),
190
+ audienceGuidance: z4.string().describe(
127
191
  "Guidance prompt for the target audience of a personalized variation. Omit for non-variation edits."
128
192
  ).optional(),
129
- propertyDefinition: z3.object({
130
- id: z3.string(),
131
- name: z3.string(),
132
- type: z3.string(),
133
- guidance: z3.string().describe("Guidance prompt from the property definition (if any exists)").optional(),
134
- typeConfig: z3.unknown().optional().describe("Type-specific configuration for the property")
193
+ propertyDefinition: z4.object({
194
+ id: z4.string(),
195
+ name: z4.string(),
196
+ type: z4.string(),
197
+ guidance: z4.string().describe("Guidance prompt from the property definition (if any exists)").optional(),
198
+ typeConfig: z4.unknown().optional().describe("Type-specific configuration for the property")
135
199
  }),
136
- outputLocale: z3.string().optional().describe("The locale to use when writing the edited value"),
137
- documentContext: z3.string().describe("Content of the surrounding document the property is part of").optional()
200
+ outputLocale: optionalAIStringSchema.describe(
201
+ "The locale to use when writing the edited value. Use an empty string for locale-independent values."
202
+ ),
203
+ documentContext: z4.string().describe("Content of the surrounding document the property is part of").optional()
138
204
  }),
139
- outputSchema: z3.object({
140
- newValue: z3.string().describe(
141
- "The new value of the property. When the action is clear or resetOverride, this should be empty."
205
+ outputSchema: z4.object({
206
+ newValue: z4.string().describe(
207
+ "The new value of the property. When the action is clearValue, resetOverride, or nothing, this should be empty."
142
208
  ),
143
- treatNewValueAsJson: z3.boolean().describe("Whether the newValue is a JSON string"),
144
- summary: z3.string().describe(
145
- "A completion message to the user that summarizes the action taken. This should be 1 sentence, in English."
146
- ).optional(),
147
- action: z3.enum(["setValue", "clearValue", "resetOverride"]).describe(
148
- "setValue = update the value, clearValue = remove the value/set to empty, resetOverride = remove a pattern override and inherit the pattern value. Only use resetOverride if the prompt asks for it. If the prompt is specifically talking about asset parameter title/description overrides, use setValue instead."
209
+ treatNewValueAsJson: z4.boolean().describe("Whether the newValue is a JSON string"),
210
+ summary: z4.string().describe(
211
+ 'A completion message to the user that summarizes the action taken. One sentence, in English. Use e.g. "Done." when no detail is needed.'
149
212
  ),
150
- success: z3.boolean().describe("Whether the edit could be completed successfully")
213
+ action: z4.enum(["setValue", "clearValue", "resetOverride", "nothing"]).describe(
214
+ "setValue = update the value, clearValue = remove the value/set to empty, resetOverride = remove a pattern override and inherit the pattern value, nothing = leave the value unchanged (use when instructed to keep existing value, make no changes, or leave unchanged). Only use resetOverride if the prompt asks for it. If the prompt is specifically talking about asset parameter title/description overrides, use setValue instead."
215
+ ),
216
+ success: z4.boolean().describe("Whether the edit could be completed successfully")
151
217
  }),
152
- runsAt: "server",
153
218
  timeout: 100,
154
- callable: true
219
+ toolClass: "edit"
155
220
  };
156
221
 
157
222
  // src/afterAIEdit.ts
158
- var z4 = __toESM(require("zod/v3"));
159
- var afterAIEditResultSchema = z4.strictObject({
160
- newValue: z4.unknown(),
161
- success: z4.boolean(),
162
- summary: z4.string().optional()
223
+ var z5 = __toESM(require("zod"));
224
+ var afterAIEditResultSchema = z5.strictObject({
225
+ newValue: z5.unknown().optional(),
226
+ success: z5.boolean(),
227
+ summary: z5.string().optional()
163
228
  });
164
- var afterAIEditContextSchema = z4.strictObject({
229
+ var afterAIEditContextSchema = z5.strictObject({
165
230
  editRequest: createPropertyEdit.inputSchema,
166
231
  invocationContext: invocationContextsSchema,
167
- userId: z4.string(),
168
- currentLocale: z4.string().optional(),
169
- projectId: z4.string(),
170
- newValue: z4.unknown(),
171
- result: z4.object({
172
- success: z4.boolean(),
173
- summary: z4.string().optional()
232
+ userId: z5.string(),
233
+ currentLocale: z5.string().optional(),
234
+ projectId: z5.string(),
235
+ newValue: z5.unknown(),
236
+ result: z5.object({
237
+ success: z5.boolean(),
238
+ summary: z5.string().optional()
174
239
  })
175
240
  });
176
241
 
@@ -234,49 +299,49 @@ var COLLECTION_MAX_LIMIT = 50;
234
299
  var COLLECTION_DEFAULT_OFFSET = 0;
235
300
 
236
301
  // src/createAIDataResourceEdit.ts
237
- var z5 = __toESM(require("zod/v3"));
238
- var createAIDataResourceEditContextSchema = z5.strictObject({
302
+ var z6 = __toESM(require("zod"));
303
+ var createAIDataResourceEditContextSchema = z6.strictObject({
239
304
  /**
240
305
  * The the data type of the data resource being edited (merged with its data source)
241
306
  * NOTE: this can contain secrets, API keys, etc. Do not directly expose it to the AI agent!
242
307
  * NOTE: this does not include the current value's variables, if any
243
308
  */
244
- mergedDataType: z5.custom(),
309
+ mergedDataType: z6.custom(),
245
310
  /** Which data source variant is currently active (undefined = published data) */
246
- dataSourceVariant: z5.custom().optional(),
311
+ dataSourceVariant: z6.custom().optional(),
247
312
  /** The edit request details */
248
- editRequest: z5.object({
313
+ editRequest: z6.object({
249
314
  /** The edit instruction from the AI agent */
250
- edit: z5.string(),
315
+ edit: z6.string(),
251
316
  /** Current value of the data resource's variables (if any) */
252
- currentValue: z5.record(z5.string(), z5.string()).optional()
317
+ currentValue: z6.record(z6.string(), z6.string()).optional()
253
318
  }),
254
319
  /** AI invocation context */
255
320
  invocationContext: invocationContextsSchema,
256
321
  /** User ID making the edit */
257
- userId: z5.string(),
322
+ userId: z6.string(),
258
323
  /** Project ID */
259
- projectId: z5.string()
324
+ projectId: z6.string()
260
325
  });
261
- var createAIDataResourceEditResultSchema = z5.strictObject({
262
- outputJsonSchema: z5.record(z5.string(), z5.any()).describe("JSON schema (draft-07) for the edited data resource result"),
263
- instructions: z5.string().describe(
326
+ var createAIDataResourceEditResultSchema = z6.strictObject({
327
+ outputJsonSchema: z6.record(z6.string(), z6.any()).describe("JSON schema (draft-07) for the edited data resource result"),
328
+ instructions: z6.string().describe(
264
329
  "Instructions for the AI editor LLM to follow when editing this data resource (e.g. conventions/rules, allowed values, data format expectations, etc). Describe how to transform or edit the data resource content."
265
330
  )
266
331
  });
267
332
 
268
333
  // src/createAIEdit.ts
269
- var z6 = __toESM(require("zod/v3"));
270
- var createAIEditContextSchema = z6.strictObject({
334
+ var z7 = __toESM(require("zod"));
335
+ var createAIEditContextSchema = z7.strictObject({
271
336
  editRequest: createPropertyEdit.inputSchema,
272
337
  invocationContext: invocationContextsSchema,
273
- userId: z6.string(),
274
- currentLocale: z6.string().optional(),
275
- projectId: z6.string()
338
+ userId: z7.string(),
339
+ currentLocale: z7.string().optional(),
340
+ projectId: z7.string()
276
341
  });
277
- var createAIEditResultSchema = z6.strictObject({
278
- outputJsonSchema: z6.record(z6.string(), z6.any()).describe("JSON schema (draft-07) for the edited content result"),
279
- instructions: z6.string().describe(
342
+ var createAIEditResultSchema = z7.strictObject({
343
+ outputJsonSchema: z7.record(z7.string(), z7.any()).describe("JSON schema (draft-07) for the edited content result"),
344
+ instructions: z7.string().describe(
280
345
  "Instructions for the AI editor LLM to follow (e.g. conventions/rules, allowed values, etc). Just describe your value type, do not give guiding instructions. There is no need to worry about clearing or resetting values, that is automatically handled."
281
346
  )
282
347
  });
@@ -320,80 +385,81 @@ function copyKeyValuePairs(source, target) {
320
385
  }
321
386
 
322
387
  // src/preRequest.ts
323
- var z8 = __toESM(require("zod/v3"));
388
+ var z9 = __toESM(require("zod"));
324
389
 
325
390
  // src/shared.ts
326
391
  var import_tsafe = require("tsafe");
327
- var z7 = __toESM(require("zod/v3"));
328
- var parameterDefinitionSchema = z7.object({
329
- key: z7.string(),
330
- value: z7.string(),
331
- omitIfEmpty: z7.boolean().optional()
392
+ var z8 = __toESM(require("zod"));
393
+ var parameterDefinitionSchema = z8.object({
394
+ key: z8.string(),
395
+ value: z8.string(),
396
+ omitIfEmpty: z8.boolean().optional()
332
397
  });
333
- var resolvingIssueSchema = z7.union([
334
- z7.string(),
335
- z7.object({
336
- message: z7.string(),
337
- subType: z7.enum(["unpublishedData", "configuration"]).optional(),
338
- issueReference: z7.string().optional(),
339
- deepLink: z7.string().optional()
398
+ var resolvingIssueSchema = z8.union([
399
+ z8.string(),
400
+ z8.object({
401
+ message: z8.string(),
402
+ subType: z8.enum(["unpublishedData", "configuration"]).optional(),
403
+ issueReference: z8.string().optional(),
404
+ deepLink: z8.string().optional(),
405
+ statusCode: z8.number().int().optional()
340
406
  })
341
407
  ]);
342
- var variableDefinitionSchema = z7.object({
343
- displayName: z7.string().optional(),
344
- type: z7.string().optional(),
345
- default: z7.string(),
346
- helpText: z7.string().optional(),
347
- order: z7.number().optional(),
348
- source: z7.string().optional()
408
+ var variableDefinitionSchema = z8.object({
409
+ displayName: z8.string().optional(),
410
+ type: z8.string().optional(),
411
+ default: z8.string(),
412
+ helpText: z8.string().optional(),
413
+ order: z8.number().optional(),
414
+ source: z8.string().optional()
349
415
  });
350
- var customEdgehancerDefinitionSchema = z7.object({
351
- preRequest: z7.string().optional(),
352
- request: z7.string().optional(),
353
- createAIDataResourceEdit: z7.string().optional(),
354
- afterAIDataResourceEdit: z7.string().optional()
416
+ var customEdgehancerDefinitionSchema = z8.object({
417
+ preRequest: z8.string().optional(),
418
+ request: z8.string().optional(),
419
+ createAIDataResourceEdit: z8.string().optional(),
420
+ afterAIDataResourceEdit: z8.string().optional()
355
421
  });
356
- var dataSourceVariantSchema = z7.intersection(
357
- z7.object({
358
- headers: z7.array(parameterDefinitionSchema).optional(),
359
- parameters: z7.array(parameterDefinitionSchema).optional(),
360
- variables: z7.record(variableDefinitionSchema).optional()
422
+ var dataSourceVariantSchema = z8.intersection(
423
+ z8.object({
424
+ headers: z8.array(parameterDefinitionSchema).optional(),
425
+ parameters: z8.array(parameterDefinitionSchema).optional(),
426
+ variables: z8.record(z8.string(), variableDefinitionSchema).optional()
361
427
  }),
362
- z7.object({ url: z7.string() })
428
+ z8.object({ url: z8.string() })
363
429
  );
364
- var mergedDataTypeSchema = z7.object({
365
- id: z7.string(),
366
- displayName: z7.string(),
367
- archetype: z7.string().optional(),
368
- allowedOnComponents: z7.array(z7.string()).optional(),
369
- badgeIconUrl: z7.string().optional(),
370
- connectorType: z7.string(),
371
- url: z7.string(),
372
- headers: z7.array(parameterDefinitionSchema).optional(),
373
- parameters: z7.array(parameterDefinitionSchema).optional(),
374
- body: z7.string().optional(),
375
- method: z7.enum(["GET", "POST", "HEAD"]),
376
- variables: z7.record(variableDefinitionSchema).optional(),
377
- custom: z7.record(z7.unknown()).optional(),
378
- customPublic: z7.record(z7.unknown()).optional(),
379
- ttl: z7.number().optional(),
380
- purgeKey: z7.string().optional(),
381
- localeMapping: z7.record(z7.string()).optional(),
430
+ var mergedDataTypeSchema = z8.object({
431
+ id: z8.string(),
432
+ displayName: z8.string(),
433
+ archetype: z8.string().optional(),
434
+ allowedOnComponents: z8.array(z8.string()).optional(),
435
+ badgeIconUrl: z8.string().optional(),
436
+ connectorType: z8.string(),
437
+ url: z8.string(),
438
+ headers: z8.array(parameterDefinitionSchema).optional(),
439
+ parameters: z8.array(parameterDefinitionSchema).optional(),
440
+ body: z8.string().optional(),
441
+ method: z8.enum(["GET", "POST", "HEAD"]),
442
+ variables: z8.record(z8.string(), variableDefinitionSchema).optional(),
443
+ custom: z8.record(z8.string(), z8.unknown()).optional(),
444
+ customPublic: z8.record(z8.string(), z8.unknown()).optional(),
445
+ ttl: z8.number().optional(),
446
+ purgeKey: z8.string().optional(),
447
+ localeMapping: z8.record(z8.string(), z8.string()).optional(),
382
448
  edgehancer: customEdgehancerDefinitionSchema.optional(),
383
- uiBadgeText: z7.string().max(12).optional(),
384
- variants: z7.object({
449
+ uiBadgeText: z8.string().max(12).optional(),
450
+ variants: z8.object({
385
451
  unpublished: dataSourceVariantSchema.optional()
386
452
  }).optional(),
387
- enableUnpublishedMode: z7.boolean().optional()
453
+ enableUnpublishedMode: z8.boolean().optional()
388
454
  });
389
455
  (0, import_tsafe.assert)();
390
- var dataResourceSchema = z7.union([
391
- z7.string(),
392
- z7.object({}).catchall(z7.unknown()),
393
- z7.number(),
394
- z7.boolean(),
395
- z7.array(z7.unknown()),
396
- z7.undefined()
456
+ var dataResourceSchema = z8.union([
457
+ z8.string(),
458
+ z8.object({}).catchall(z8.unknown()),
459
+ z8.number(),
460
+ z8.boolean(),
461
+ z8.array(z8.unknown()),
462
+ z8.undefined()
397
463
  ]);
398
464
 
399
465
  // src/preRequest.ts
@@ -403,36 +469,35 @@ var edgehancerMergedDataTypeSchema = mergedDataTypeSchema.omit({
403
469
  badgeIconUrl: true,
404
470
  displayName: true,
405
471
  id: true,
406
- purgeKey: true,
407
- variables: true
472
+ purgeKey: true
408
473
  });
409
- var preRequestEdgehancerDataResourceResultSchema = z8.strictObject({
410
- errors: z8.array(resolvingIssueSchema).optional(),
411
- warnings: z8.array(resolvingIssueSchema).optional(),
412
- infos: z8.array(resolvingIssueSchema).optional(),
474
+ var preRequestEdgehancerDataResourceResultSchema = z9.strictObject({
475
+ errors: z9.array(resolvingIssueSchema).optional(),
476
+ warnings: z9.array(resolvingIssueSchema).optional(),
477
+ infos: z9.array(resolvingIssueSchema).optional(),
413
478
  dataResource: edgehancerMergedDataTypeSchema
414
479
  });
415
- var preRequestEdgehancerResultSchema = z8.strictObject({
416
- dataResources: z8.array(preRequestEdgehancerDataResourceResultSchema)
480
+ var preRequestEdgehancerResultSchema = z9.strictObject({
481
+ dataResources: z9.array(preRequestEdgehancerDataResourceResultSchema)
417
482
  });
418
483
 
419
484
  // src/request.ts
420
- var z9 = __toESM(require("zod/v3"));
421
- var requestEdgehancerDataResourceResolutionResultSchema = z9.strictObject({
422
- errors: z9.array(resolvingIssueSchema).optional().describe(
485
+ var z10 = __toESM(require("zod"));
486
+ var requestEdgehancerDataResourceResolutionResultSchema = z10.strictObject({
487
+ errors: z10.array(resolvingIssueSchema).optional().describe(
423
488
  "Errors that occurred while running your code to return with the API response, if any. Unhandled exceptions will be captured automatically."
424
489
  ),
425
- warnings: z9.array(resolvingIssueSchema).optional().describe("Warnings that occurred while running your code to return with the API response, if any."),
426
- infos: z9.array(resolvingIssueSchema).optional().describe(
490
+ warnings: z10.array(resolvingIssueSchema).optional().describe("Warnings that occurred while running your code to return with the API response, if any."),
491
+ infos: z10.array(resolvingIssueSchema).optional().describe(
427
492
  "Informational messages that occurred while running your code to return with the API response, if any."
428
493
  ),
429
- surrogateKeys: z9.array(z9.string()).optional().describe(
494
+ surrogateKeys: z10.array(z10.string()).optional().describe(
430
495
  "Extra surrogate keys for the data that was fetched. These act as auxiliary cache keys that can allow granular purging of cached data."
431
496
  ),
432
- result: dataResourceSchema.describe("The result of fetching the data resource")
497
+ result: dataResourceSchema.describe("The result of fetching the data resource").optional()
433
498
  });
434
- var requestEdgehancerResultSchema = z9.strictObject({
435
- results: z9.array(requestEdgehancerDataResourceResolutionResultSchema)
499
+ var requestEdgehancerResultSchema = z10.strictObject({
500
+ results: z10.array(requestEdgehancerDataResourceResolutionResultSchema)
436
501
  });
437
502
  // Annotate the CommonJS export names for ESM import in node:
438
503
  0 && (module.exports = {