@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.d.mts +296 -2589
- package/dist/index.d.ts +296 -2589
- package/dist/index.esm.js +208 -143
- package/dist/index.js +211 -146
- package/dist/index.mjs +208 -143
- package/package.json +10 -9
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
|
|
32
|
-
__export(
|
|
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(
|
|
59
|
+
module.exports = __toCommonJS(index_exports);
|
|
60
60
|
|
|
61
61
|
// ../../lib/ai-sdk/src/InvocationContexts.ts
|
|
62
|
-
var z = __toESM(require("zod
|
|
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
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
122
|
-
edit:
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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:
|
|
130
|
-
id:
|
|
131
|
-
name:
|
|
132
|
-
type:
|
|
133
|
-
guidance:
|
|
134
|
-
typeConfig:
|
|
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:
|
|
137
|
-
|
|
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:
|
|
140
|
-
newValue:
|
|
141
|
-
"The new value of the property. When the action is
|
|
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:
|
|
144
|
-
summary:
|
|
145
|
-
|
|
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
|
-
|
|
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
|
-
|
|
219
|
+
toolClass: "edit"
|
|
155
220
|
};
|
|
156
221
|
|
|
157
222
|
// src/afterAIEdit.ts
|
|
158
|
-
var
|
|
159
|
-
var afterAIEditResultSchema =
|
|
160
|
-
newValue:
|
|
161
|
-
success:
|
|
162
|
-
summary:
|
|
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 =
|
|
229
|
+
var afterAIEditContextSchema = z5.strictObject({
|
|
165
230
|
editRequest: createPropertyEdit.inputSchema,
|
|
166
231
|
invocationContext: invocationContextsSchema,
|
|
167
|
-
userId:
|
|
168
|
-
currentLocale:
|
|
169
|
-
projectId:
|
|
170
|
-
newValue:
|
|
171
|
-
result:
|
|
172
|
-
success:
|
|
173
|
-
summary:
|
|
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
|
|
238
|
-
var createAIDataResourceEditContextSchema =
|
|
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:
|
|
309
|
+
mergedDataType: z6.custom(),
|
|
245
310
|
/** Which data source variant is currently active (undefined = published data) */
|
|
246
|
-
dataSourceVariant:
|
|
311
|
+
dataSourceVariant: z6.custom().optional(),
|
|
247
312
|
/** The edit request details */
|
|
248
|
-
editRequest:
|
|
313
|
+
editRequest: z6.object({
|
|
249
314
|
/** The edit instruction from the AI agent */
|
|
250
|
-
edit:
|
|
315
|
+
edit: z6.string(),
|
|
251
316
|
/** Current value of the data resource's variables (if any) */
|
|
252
|
-
currentValue:
|
|
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:
|
|
322
|
+
userId: z6.string(),
|
|
258
323
|
/** Project ID */
|
|
259
|
-
projectId:
|
|
324
|
+
projectId: z6.string()
|
|
260
325
|
});
|
|
261
|
-
var createAIDataResourceEditResultSchema =
|
|
262
|
-
outputJsonSchema:
|
|
263
|
-
instructions:
|
|
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
|
|
270
|
-
var createAIEditContextSchema =
|
|
334
|
+
var z7 = __toESM(require("zod"));
|
|
335
|
+
var createAIEditContextSchema = z7.strictObject({
|
|
271
336
|
editRequest: createPropertyEdit.inputSchema,
|
|
272
337
|
invocationContext: invocationContextsSchema,
|
|
273
|
-
userId:
|
|
274
|
-
currentLocale:
|
|
275
|
-
projectId:
|
|
338
|
+
userId: z7.string(),
|
|
339
|
+
currentLocale: z7.string().optional(),
|
|
340
|
+
projectId: z7.string()
|
|
276
341
|
});
|
|
277
|
-
var createAIEditResultSchema =
|
|
278
|
-
outputJsonSchema:
|
|
279
|
-
instructions:
|
|
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
|
|
388
|
+
var z9 = __toESM(require("zod"));
|
|
324
389
|
|
|
325
390
|
// src/shared.ts
|
|
326
391
|
var import_tsafe = require("tsafe");
|
|
327
|
-
var
|
|
328
|
-
var parameterDefinitionSchema =
|
|
329
|
-
key:
|
|
330
|
-
value:
|
|
331
|
-
omitIfEmpty:
|
|
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 =
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
message:
|
|
337
|
-
subType:
|
|
338
|
-
issueReference:
|
|
339
|
-
deepLink:
|
|
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 =
|
|
343
|
-
displayName:
|
|
344
|
-
type:
|
|
345
|
-
default:
|
|
346
|
-
helpText:
|
|
347
|
-
order:
|
|
348
|
-
source:
|
|
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 =
|
|
351
|
-
preRequest:
|
|
352
|
-
request:
|
|
353
|
-
createAIDataResourceEdit:
|
|
354
|
-
afterAIDataResourceEdit:
|
|
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 =
|
|
357
|
-
|
|
358
|
-
headers:
|
|
359
|
-
parameters:
|
|
360
|
-
variables:
|
|
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
|
-
|
|
428
|
+
z8.object({ url: z8.string() })
|
|
363
429
|
);
|
|
364
|
-
var mergedDataTypeSchema =
|
|
365
|
-
id:
|
|
366
|
-
displayName:
|
|
367
|
-
archetype:
|
|
368
|
-
allowedOnComponents:
|
|
369
|
-
badgeIconUrl:
|
|
370
|
-
connectorType:
|
|
371
|
-
url:
|
|
372
|
-
headers:
|
|
373
|
-
parameters:
|
|
374
|
-
body:
|
|
375
|
-
method:
|
|
376
|
-
variables:
|
|
377
|
-
custom:
|
|
378
|
-
customPublic:
|
|
379
|
-
ttl:
|
|
380
|
-
purgeKey:
|
|
381
|
-
localeMapping:
|
|
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:
|
|
384
|
-
variants:
|
|
449
|
+
uiBadgeText: z8.string().max(12).optional(),
|
|
450
|
+
variants: z8.object({
|
|
385
451
|
unpublished: dataSourceVariantSchema.optional()
|
|
386
452
|
}).optional(),
|
|
387
|
-
enableUnpublishedMode:
|
|
453
|
+
enableUnpublishedMode: z8.boolean().optional()
|
|
388
454
|
});
|
|
389
455
|
(0, import_tsafe.assert)();
|
|
390
|
-
var dataResourceSchema =
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
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 =
|
|
410
|
-
errors:
|
|
411
|
-
warnings:
|
|
412
|
-
infos:
|
|
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 =
|
|
416
|
-
dataResources:
|
|
480
|
+
var preRequestEdgehancerResultSchema = z9.strictObject({
|
|
481
|
+
dataResources: z9.array(preRequestEdgehancerDataResourceResultSchema)
|
|
417
482
|
});
|
|
418
483
|
|
|
419
484
|
// src/request.ts
|
|
420
|
-
var
|
|
421
|
-
var requestEdgehancerDataResourceResolutionResultSchema =
|
|
422
|
-
errors:
|
|
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:
|
|
426
|
-
infos:
|
|
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:
|
|
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 =
|
|
435
|
-
results:
|
|
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 = {
|