@elmohq/sdk 0.1.1 → 0.1.3
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/calls/index.d.mts +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{request-options-B9S9d24M.d.mts → request-options--nBUndY9.d.mts} +8 -8
- package/dist/{request-options-B9S9d24M.d.mts.map → request-options--nBUndY9.d.mts.map} +1 -1
- package/dist/tools-B1lVtYAr.mjs.map +1 -1
- package/dist/{tools-7Hs5J2xb.d.mts → tools-Bfx2x86E.d.mts} +215 -40
- package/dist/tools-Bfx2x86E.d.mts.map +1 -0
- package/dist/types/index.d.mts +2 -2
- package/package.json +1 -1
- package/src/client.ts +4 -1
- package/src/resources/analytics.ts +4 -0
- package/src/resources/brands.ts +4 -0
- package/src/resources/prompts.ts +4 -0
- package/src/resources/runs.ts +4 -0
- package/src/types/analytics.ts +86 -28
- package/src/types/index.ts +5 -0
- package/src/types/runs.ts +71 -5
- package/src/types/shared/model-filter.ts +7 -5
- package/src/types/shared/position.ts +51 -0
- package/src/types/snapshots.ts +3 -0
- package/dist/tools-7Hs5J2xb.d.mts.map +0 -1
|
@@ -27,14 +27,16 @@ type RateLimitError = Error;
|
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region src/types/shared/model-filter.d.ts
|
|
29
29
|
/**
|
|
30
|
-
* Inclusive lower bound of the window, an ISO 8601 timestamp such as `2026-01-01T00:00:00Z`.
|
|
31
|
-
*
|
|
32
|
-
*
|
|
30
|
+
* Inclusive lower bound of the window, an ISO 8601 timestamp such as `2026-01-01T00:00:00Z`.
|
|
31
|
+
* Aligned down to the quarter hour, the grain analytics are aggregated at; where a response repeats
|
|
32
|
+
* the window, it repeats the aligned one. A bare `YYYY-MM-DD` is rejected: that is
|
|
33
|
+
* `/prompts/{promptId}/snapshot`'s spelling and means a local calendar day there.
|
|
33
34
|
*/
|
|
34
35
|
type WindowStart = Date;
|
|
35
36
|
/**
|
|
36
|
-
* Exclusive upper bound of the window, an ISO 8601 timestamp
|
|
37
|
-
* exactly `end` is outside it.
|
|
37
|
+
* Exclusive upper bound of the window, an ISO 8601 timestamp, also aligned down to the quarter
|
|
38
|
+
* hour. The window is half-open: a run at exactly `end` is outside it. `start` and `end` inside one
|
|
39
|
+
* quarter-hour bucket leave an empty window and are rejected.
|
|
38
40
|
*/
|
|
39
41
|
type WindowEnd = Date;
|
|
40
42
|
/** Restrict to one model, e.g. `chatgpt`. See `models.list()`. */
|
|
@@ -44,6 +46,58 @@ type ModelFilter = string;
|
|
|
44
46
|
/** Resource not found */
|
|
45
47
|
type NotFoundError = Error;
|
|
46
48
|
//#endregion
|
|
49
|
+
//#region src/types/shared/position.d.ts
|
|
50
|
+
/**
|
|
51
|
+
* **Experimental — the shape may still change.**
|
|
52
|
+
*
|
|
53
|
+
* The company's position among the tracked companies the answers name, 1 being named first.
|
|
54
|
+
* Companies that aren't tracked aren't ranked. Counted over every answer in the window, unlike
|
|
55
|
+
* `visibility.current` and the share-of-voice `mentions` and `share`, which count each prompt's
|
|
56
|
+
* latest result.
|
|
57
|
+
*/
|
|
58
|
+
type Position = {
|
|
59
|
+
/**
|
|
60
|
+
* Average position to one decimal; null when no answer ranks it.
|
|
61
|
+
*
|
|
62
|
+
* @minimum 1
|
|
63
|
+
*/
|
|
64
|
+
average: number | null;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* **Experimental — the shape may still change.**
|
|
68
|
+
*
|
|
69
|
+
* Answers that mention the company, by the mention judge's sentiment toward it. An answer that only
|
|
70
|
+
* links to the company counts in none. All zero for history the judge hasn't re-judged yet. Counted
|
|
71
|
+
* over every answer in the window, unlike `visibility.current` and the share-of-voice `mentions`
|
|
72
|
+
* and `share`, which count each prompt's latest result.
|
|
73
|
+
*/
|
|
74
|
+
type SentimentSummary = {
|
|
75
|
+
/** @minimum 0 */
|
|
76
|
+
mixed: number;
|
|
77
|
+
/** @minimum 0 */
|
|
78
|
+
negative: number;
|
|
79
|
+
/**
|
|
80
|
+
* Negative answers as a fraction of those with a sentiment (the four counts). Ratio 0–1; null
|
|
81
|
+
* when there are none.
|
|
82
|
+
*
|
|
83
|
+
* @minimum 0
|
|
84
|
+
* @maximum 1
|
|
85
|
+
*/
|
|
86
|
+
negativeShare: number | null;
|
|
87
|
+
/** @minimum 0 */
|
|
88
|
+
neutral: number;
|
|
89
|
+
/** @minimum 0 */
|
|
90
|
+
positive: number;
|
|
91
|
+
/**
|
|
92
|
+
* Positive answers as a fraction of those with a sentiment (the four counts). Ratio 0–1; null
|
|
93
|
+
* when there are none.
|
|
94
|
+
*
|
|
95
|
+
* @minimum 0
|
|
96
|
+
* @maximum 1
|
|
97
|
+
*/
|
|
98
|
+
positiveShare: number | null;
|
|
99
|
+
};
|
|
100
|
+
//#endregion
|
|
47
101
|
//#region src/types/shared/validation-error.d.ts
|
|
48
102
|
/** Invalid request data */
|
|
49
103
|
type ValidationError = Error;
|
|
@@ -75,8 +129,10 @@ type ShareOfVoiceEntry = {
|
|
|
75
129
|
mentions: number;
|
|
76
130
|
/** Brand or competitor name. */
|
|
77
131
|
name: string;
|
|
132
|
+
position: Position;
|
|
78
133
|
/** Distinct prompts this entity appeared in. */
|
|
79
134
|
prompts: number;
|
|
135
|
+
sentiment: SentimentSummary;
|
|
80
136
|
/**
|
|
81
137
|
* This entity's share of all brand and competitor mentions. Ratio 0–1; multiply by 100 for a
|
|
82
138
|
* percentage.
|
|
@@ -206,7 +262,9 @@ type PromptPerformance = {
|
|
|
206
262
|
competitorMentionRate: number;
|
|
207
263
|
firstEvaluatedAt: Date | null;
|
|
208
264
|
lastRunAt: Date | null;
|
|
265
|
+
position: Position;
|
|
209
266
|
promptId: string;
|
|
267
|
+
sentiment: SentimentSummary;
|
|
210
268
|
tags: Array<string>;
|
|
211
269
|
totalRuns: number;
|
|
212
270
|
value: string;
|
|
@@ -222,7 +280,9 @@ type ModelVisibility = {
|
|
|
222
280
|
citations: number;
|
|
223
281
|
label: string;
|
|
224
282
|
model: string;
|
|
283
|
+
position: Position;
|
|
225
284
|
runs: number;
|
|
285
|
+
sentiment: SentimentSummary;
|
|
226
286
|
/**
|
|
227
287
|
* Share of this model's runs that mentioned the brand. Ratio 0–1; multiply by 100 for a
|
|
228
288
|
* percentage.
|
|
@@ -234,16 +294,17 @@ type ModelVisibility = {
|
|
|
234
294
|
};
|
|
235
295
|
/**
|
|
236
296
|
* Every non-paginated figure for a brand over one window. There is no parameter for selecting a
|
|
237
|
-
* subset: the
|
|
238
|
-
*
|
|
239
|
-
* about.
|
|
297
|
+
* subset: the computations behind this cover the same prompts and run concurrently, so a subset
|
|
298
|
+
* would save a caller a fraction of one request and cost everyone a parameter to reason about.
|
|
240
299
|
*/
|
|
241
300
|
type BrandAnalytics = {
|
|
242
301
|
brandId: string;
|
|
243
302
|
brandName: string;
|
|
244
303
|
/** Per-model visibility and run counts. Only models that produced a run in the window appear. */
|
|
245
304
|
models: Array<ModelVisibility>;
|
|
305
|
+
position: BrandPosition;
|
|
246
306
|
range: DateRange;
|
|
307
|
+
sentiment: BrandSentiment;
|
|
247
308
|
/** The brand against its tracked competitors. */
|
|
248
309
|
shareOfVoice: {
|
|
249
310
|
/**
|
|
@@ -279,6 +340,44 @@ type BrandAnalytics = {
|
|
|
279
340
|
series: Array<VisibilityPoint>;
|
|
280
341
|
};
|
|
281
342
|
};
|
|
343
|
+
/**
|
|
344
|
+
* **Experimental — the shape may still change.**
|
|
345
|
+
*
|
|
346
|
+
* The brand's sentiment over the window, with the counts for each day so a client can chart or
|
|
347
|
+
* smooth them.
|
|
348
|
+
*/
|
|
349
|
+
type BrandSentiment = SentimentSummary & {
|
|
350
|
+
series: Array<{
|
|
351
|
+
date: string;
|
|
352
|
+
/** @minimum 0 */
|
|
353
|
+
mixed: number;
|
|
354
|
+
/** @minimum 0 */
|
|
355
|
+
negative: number;
|
|
356
|
+
/** @minimum 0 */
|
|
357
|
+
neutral: number;
|
|
358
|
+
/** @minimum 0 */
|
|
359
|
+
positive: number;
|
|
360
|
+
}>;
|
|
361
|
+
};
|
|
362
|
+
/**
|
|
363
|
+
* **Experimental — the shape may still change.**
|
|
364
|
+
*
|
|
365
|
+
* The brand's position among the tracked companies the answers name, 1 being named first, averaged
|
|
366
|
+
* over the window and per day.
|
|
367
|
+
*/
|
|
368
|
+
type BrandPosition = {
|
|
369
|
+
/**
|
|
370
|
+
* Average position over the window, to one decimal; null when no answer ranks it.
|
|
371
|
+
*
|
|
372
|
+
* @minimum 1
|
|
373
|
+
*/
|
|
374
|
+
average: number | null;
|
|
375
|
+
series: Array<{
|
|
376
|
+
/** @minimum 1 */
|
|
377
|
+
average: number | null;
|
|
378
|
+
date: string;
|
|
379
|
+
}>;
|
|
380
|
+
};
|
|
282
381
|
/** Comma-separated prompt tags. Only prompts carrying at least one of them are counted. */
|
|
283
382
|
type TagsFilter = string;
|
|
284
383
|
type GetBrandAnalyticsErrors = {
|
|
@@ -388,14 +487,16 @@ type GetBrandQueryFanoutResponses = {
|
|
|
388
487
|
};
|
|
389
488
|
type GetBrandAnalyticsParams = {
|
|
390
489
|
/**
|
|
391
|
-
* Inclusive lower bound of the window, an ISO 8601 timestamp such as `2026-01-01T00:00:00Z`.
|
|
392
|
-
*
|
|
393
|
-
*
|
|
490
|
+
* Inclusive lower bound of the window, an ISO 8601 timestamp such as `2026-01-01T00:00:00Z`.
|
|
491
|
+
* Aligned down to the quarter hour, the grain analytics are aggregated at; where a response
|
|
492
|
+
* repeats the window, it repeats the aligned one. A bare `YYYY-MM-DD` is rejected: that is
|
|
493
|
+
* `/prompts/{promptId}/snapshot`'s spelling and means a local calendar day there.
|
|
394
494
|
*/
|
|
395
495
|
start: WindowStart;
|
|
396
496
|
/**
|
|
397
|
-
* Exclusive upper bound of the window, an ISO 8601 timestamp
|
|
398
|
-
* exactly `end` is outside it.
|
|
497
|
+
* Exclusive upper bound of the window, an ISO 8601 timestamp, also aligned down to the quarter
|
|
498
|
+
* hour. The window is half-open: a run at exactly `end` is outside it. `start` and `end` inside
|
|
499
|
+
* one quarter-hour bucket leave an empty window and are rejected.
|
|
399
500
|
*/
|
|
400
501
|
end: WindowEnd;
|
|
401
502
|
/** Restrict to one model, e.g. `chatgpt`. See `models.list()`. */
|
|
@@ -405,14 +506,16 @@ type GetBrandAnalyticsParams = {
|
|
|
405
506
|
};
|
|
406
507
|
type ListBrandCitationDomainsParams = {
|
|
407
508
|
/**
|
|
408
|
-
* Inclusive lower bound of the window, an ISO 8601 timestamp such as `2026-01-01T00:00:00Z`.
|
|
409
|
-
*
|
|
410
|
-
*
|
|
509
|
+
* Inclusive lower bound of the window, an ISO 8601 timestamp such as `2026-01-01T00:00:00Z`.
|
|
510
|
+
* Aligned down to the quarter hour, the grain analytics are aggregated at; where a response
|
|
511
|
+
* repeats the window, it repeats the aligned one. A bare `YYYY-MM-DD` is rejected: that is
|
|
512
|
+
* `/prompts/{promptId}/snapshot`'s spelling and means a local calendar day there.
|
|
411
513
|
*/
|
|
412
514
|
start: WindowStart;
|
|
413
515
|
/**
|
|
414
|
-
* Exclusive upper bound of the window, an ISO 8601 timestamp
|
|
415
|
-
* exactly `end` is outside it.
|
|
516
|
+
* Exclusive upper bound of the window, an ISO 8601 timestamp, also aligned down to the quarter
|
|
517
|
+
* hour. The window is half-open: a run at exactly `end` is outside it. `start` and `end` inside
|
|
518
|
+
* one quarter-hour bucket leave an empty window and are rejected.
|
|
416
519
|
*/
|
|
417
520
|
end: WindowEnd;
|
|
418
521
|
/** Restrict to one model, e.g. `chatgpt`. See `models.list()`. */
|
|
@@ -422,14 +525,16 @@ type ListBrandCitationDomainsParams = {
|
|
|
422
525
|
};
|
|
423
526
|
type ListBrandCitationURLsParams = {
|
|
424
527
|
/**
|
|
425
|
-
* Inclusive lower bound of the window, an ISO 8601 timestamp such as `2026-01-01T00:00:00Z`.
|
|
426
|
-
*
|
|
427
|
-
*
|
|
528
|
+
* Inclusive lower bound of the window, an ISO 8601 timestamp such as `2026-01-01T00:00:00Z`.
|
|
529
|
+
* Aligned down to the quarter hour, the grain analytics are aggregated at; where a response
|
|
530
|
+
* repeats the window, it repeats the aligned one. A bare `YYYY-MM-DD` is rejected: that is
|
|
531
|
+
* `/prompts/{promptId}/snapshot`'s spelling and means a local calendar day there.
|
|
428
532
|
*/
|
|
429
533
|
start: WindowStart;
|
|
430
534
|
/**
|
|
431
|
-
* Exclusive upper bound of the window, an ISO 8601 timestamp
|
|
432
|
-
* exactly `end` is outside it.
|
|
535
|
+
* Exclusive upper bound of the window, an ISO 8601 timestamp, also aligned down to the quarter
|
|
536
|
+
* hour. The window is half-open: a run at exactly `end` is outside it. `start` and `end` inside
|
|
537
|
+
* one quarter-hour bucket leave an empty window and are rejected.
|
|
433
538
|
*/
|
|
434
539
|
end: WindowEnd;
|
|
435
540
|
/** Restrict to one model, e.g. `chatgpt`. See `models.list()`. */
|
|
@@ -439,14 +544,16 @@ type ListBrandCitationURLsParams = {
|
|
|
439
544
|
};
|
|
440
545
|
type ListBrandPromptPerformanceParams = {
|
|
441
546
|
/**
|
|
442
|
-
* Inclusive lower bound of the window, an ISO 8601 timestamp such as `2026-01-01T00:00:00Z`.
|
|
443
|
-
*
|
|
444
|
-
*
|
|
547
|
+
* Inclusive lower bound of the window, an ISO 8601 timestamp such as `2026-01-01T00:00:00Z`.
|
|
548
|
+
* Aligned down to the quarter hour, the grain analytics are aggregated at; where a response
|
|
549
|
+
* repeats the window, it repeats the aligned one. A bare `YYYY-MM-DD` is rejected: that is
|
|
550
|
+
* `/prompts/{promptId}/snapshot`'s spelling and means a local calendar day there.
|
|
445
551
|
*/
|
|
446
552
|
start: WindowStart;
|
|
447
553
|
/**
|
|
448
|
-
* Exclusive upper bound of the window, an ISO 8601 timestamp
|
|
449
|
-
* exactly `end` is outside it.
|
|
554
|
+
* Exclusive upper bound of the window, an ISO 8601 timestamp, also aligned down to the quarter
|
|
555
|
+
* hour. The window is half-open: a run at exactly `end` is outside it. `start` and `end` inside
|
|
556
|
+
* one quarter-hour bucket leave an empty window and are rejected.
|
|
450
557
|
*/
|
|
451
558
|
end: WindowEnd;
|
|
452
559
|
/** Restrict to one model, e.g. `chatgpt`. See `models.list()`. */
|
|
@@ -456,14 +563,16 @@ type ListBrandPromptPerformanceParams = {
|
|
|
456
563
|
};
|
|
457
564
|
type GetBrandQueryFanoutParams = {
|
|
458
565
|
/**
|
|
459
|
-
* Inclusive lower bound of the window, an ISO 8601 timestamp such as `2026-01-01T00:00:00Z`.
|
|
460
|
-
*
|
|
461
|
-
*
|
|
566
|
+
* Inclusive lower bound of the window, an ISO 8601 timestamp such as `2026-01-01T00:00:00Z`.
|
|
567
|
+
* Aligned down to the quarter hour, the grain analytics are aggregated at; where a response
|
|
568
|
+
* repeats the window, it repeats the aligned one. A bare `YYYY-MM-DD` is rejected: that is
|
|
569
|
+
* `/prompts/{promptId}/snapshot`'s spelling and means a local calendar day there.
|
|
462
570
|
*/
|
|
463
571
|
start: WindowStart;
|
|
464
572
|
/**
|
|
465
|
-
* Exclusive upper bound of the window, an ISO 8601 timestamp
|
|
466
|
-
* exactly `end` is outside it.
|
|
573
|
+
* Exclusive upper bound of the window, an ISO 8601 timestamp, also aligned down to the quarter
|
|
574
|
+
* hour. The window is half-open: a run at exactly `end` is outside it. `start` and `end` inside
|
|
575
|
+
* one quarter-hour bucket leave an empty window and are rejected.
|
|
467
576
|
*/
|
|
468
577
|
end: WindowEnd;
|
|
469
578
|
/** Restrict to one model, e.g. `chatgpt`. See `models.list()`. */
|
|
@@ -1217,6 +1326,7 @@ type ListOrganizationsParams = {
|
|
|
1217
1326
|
//#region src/types/runs.d.ts
|
|
1218
1327
|
/** A single model answer, without its text. Fetch `prompts.runs.get()` for the answer itself. */
|
|
1219
1328
|
type RunSummary = {
|
|
1329
|
+
assessments: RunAssessments;
|
|
1220
1330
|
brandId: string;
|
|
1221
1331
|
brandMentioned: boolean;
|
|
1222
1332
|
citationCount: number;
|
|
@@ -1253,6 +1363,67 @@ type RunList = {
|
|
|
1253
1363
|
data: Array<RunSummary>;
|
|
1254
1364
|
pagination: Pagination;
|
|
1255
1365
|
};
|
|
1366
|
+
/**
|
|
1367
|
+
* **Experimental — the shape may still change.**
|
|
1368
|
+
*
|
|
1369
|
+
* The mention judge's assessment of one brand or competitor named in an answer.
|
|
1370
|
+
*/
|
|
1371
|
+
type MentionAssessment = {
|
|
1372
|
+
/**
|
|
1373
|
+
* How many times the answer mentions it. Null when the answer isn't counted as mentioning it.
|
|
1374
|
+
*
|
|
1375
|
+
* @minimum 1
|
|
1376
|
+
*/
|
|
1377
|
+
mentionCount: number | null;
|
|
1378
|
+
/**
|
|
1379
|
+
* Whether the answer counts as mentioning this company. A name the judge can't call either way
|
|
1380
|
+
* counts.
|
|
1381
|
+
*/
|
|
1382
|
+
mentioned: boolean;
|
|
1383
|
+
/**
|
|
1384
|
+
* 1 for the tracked company the answer names first, 2 for the next, and so on. Null when the
|
|
1385
|
+
* answer isn't counted as mentioning it.
|
|
1386
|
+
*
|
|
1387
|
+
* @minimum 1
|
|
1388
|
+
*/
|
|
1389
|
+
position: number | null;
|
|
1390
|
+
/**
|
|
1391
|
+
* Calibrated probability that the answer mentions this company.
|
|
1392
|
+
*
|
|
1393
|
+
* @minimum 0
|
|
1394
|
+
* @maximum 1
|
|
1395
|
+
*/
|
|
1396
|
+
probability: number;
|
|
1397
|
+
/**
|
|
1398
|
+
* When it isn't counted as a mention, the likeliest other reading: `other_meaning` (the name used
|
|
1399
|
+
* as an ordinary word), `other_company` (a different company with the same name) or `no_info`
|
|
1400
|
+
* (the answer says it knows nothing about it). Informational; not a stable enum.
|
|
1401
|
+
*/
|
|
1402
|
+
reason: string | null;
|
|
1403
|
+
/**
|
|
1404
|
+
* The likeliest sentiment toward this company in the passages about it. Null when the answer
|
|
1405
|
+
* isn't about it, or when it only links to the company.
|
|
1406
|
+
*/
|
|
1407
|
+
sentiment: 'positive' | 'neutral' | 'negative' | 'mixed' | null;
|
|
1408
|
+
/** Probability of each sentiment, keyed by label. */
|
|
1409
|
+
sentimentProbabilities: {
|
|
1410
|
+
[key: string]: number;
|
|
1411
|
+
} | null;
|
|
1412
|
+
};
|
|
1413
|
+
/**
|
|
1414
|
+
* **Experimental — the shape may still change.**
|
|
1415
|
+
*
|
|
1416
|
+
* The mention judge's assessments for one answer. Null when the run's mentions were matched by
|
|
1417
|
+
* name, before the judge, until a replay judges it.
|
|
1418
|
+
*/
|
|
1419
|
+
type RunAssessments = {
|
|
1420
|
+
/** Null when the answer never names the brand. */
|
|
1421
|
+
brand: MentionAssessment | null;
|
|
1422
|
+
/** Keyed by competitor name; only competitors the answer names. */
|
|
1423
|
+
competitors: {
|
|
1424
|
+
[key: string]: MentionAssessment;
|
|
1425
|
+
};
|
|
1426
|
+
} | null;
|
|
1256
1427
|
type ListPromptRunsErrors = {
|
|
1257
1428
|
/** Invalid request data */
|
|
1258
1429
|
400: ValidationError;
|
|
@@ -1297,14 +1468,16 @@ type GetRunResponses = {
|
|
|
1297
1468
|
};
|
|
1298
1469
|
type ListPromptRunsParams = {
|
|
1299
1470
|
/**
|
|
1300
|
-
* Inclusive lower bound of the window, an ISO 8601 timestamp such as `2026-01-01T00:00:00Z`.
|
|
1301
|
-
*
|
|
1302
|
-
*
|
|
1471
|
+
* Inclusive lower bound of the window, an ISO 8601 timestamp such as `2026-01-01T00:00:00Z`.
|
|
1472
|
+
* Aligned down to the quarter hour, the grain analytics are aggregated at; where a response
|
|
1473
|
+
* repeats the window, it repeats the aligned one. A bare `YYYY-MM-DD` is rejected: that is
|
|
1474
|
+
* `/prompts/{promptId}/snapshot`'s spelling and means a local calendar day there.
|
|
1303
1475
|
*/
|
|
1304
1476
|
start: WindowStart;
|
|
1305
1477
|
/**
|
|
1306
|
-
* Exclusive upper bound of the window, an ISO 8601 timestamp
|
|
1307
|
-
* exactly `end` is outside it.
|
|
1478
|
+
* Exclusive upper bound of the window, an ISO 8601 timestamp, also aligned down to the quarter
|
|
1479
|
+
* hour. The window is half-open: a run at exactly `end` is outside it. `start` and `end` inside
|
|
1480
|
+
* one quarter-hour bucket leave an empty window and are rejected.
|
|
1308
1481
|
*/
|
|
1309
1482
|
end: WindowEnd;
|
|
1310
1483
|
/** Restrict to one model, e.g. `chatgpt`. See `models.list()`. */
|
|
@@ -1373,10 +1546,12 @@ type PromptSnapshot = {
|
|
|
1373
1546
|
/** End of the queried date range (YYYY-MM-DD) */
|
|
1374
1547
|
endDate: string;
|
|
1375
1548
|
mentions: MentionsSummary;
|
|
1549
|
+
position: Position;
|
|
1376
1550
|
/** Unique identifier for the prompt */
|
|
1377
1551
|
promptId: string;
|
|
1378
1552
|
/** The prompt text */
|
|
1379
1553
|
promptValue: string;
|
|
1554
|
+
sentiment: SentimentSummary;
|
|
1380
1555
|
/** Start of the queried date range (YYYY-MM-DD) */
|
|
1381
1556
|
startDate: string;
|
|
1382
1557
|
};
|
|
@@ -1941,5 +2116,5 @@ type AnalyzeBrandParams = {
|
|
|
1941
2116
|
maxPrompts?: number;
|
|
1942
2117
|
};
|
|
1943
2118
|
//#endregion
|
|
1944
|
-
export {
|
|
1945
|
-
//# sourceMappingURL=tools-
|
|
2119
|
+
export { BillingPlan as $, Tag as $t, ListPromptsResponses as A, ListBrandPromptPerformanceErrors as An, UpdateCompetitorErrors as At, MentionEntry as B, ValidationError as Bn, ListBrandsErrors as Bt, DeletePromptResponse as C, GetBrandQueryFanoutResponses as Cn, DeleteCompetitorErrors as Ct, ListPromptsErrors as D, ListBrandCitationURLsErrors as Dn, ListCompetitorsErrors as Dt, GetPromptResponses as E, ListBrandCitationDomainsResponses as En, GetCompetitorResponses as Et, CitedURLEntry as F, PromptPerformanceList as Fn, CreateBrandErrors as Ft, ListPromptRunsParams as G, WindowEnd as Gn, UpdateBrandResponses as Gt, GetRunErrors as H, SentimentSummary as Hn, ListBrandsResponses as Ht, GetPromptSnapshotErrors as I, ShareOfVoiceEntry as In, CreateBrandParams as It, Run as J, ForbiddenError as Jn, Limit as Jt, ListPromptRunsResponses as K, WindowStart as Kn, Pagination as Kt, GetPromptSnapshotParams as L, ShareOfVoicePoint as Ln, CreateBrandResponses as Lt, UpdatePromptErrors as M, ListBrandPromptPerformanceResponses as Mn, UpdateCompetitorResponses as Mt, UpdatePromptParams as N, ModelVisibility as Nn, Brand as Nt, ListPromptsParams as O, ListBrandCitationURLsParams as On, ListCompetitorsParams as Ot, UpdatePromptResponses as P, PromptPerformance as Pn, BrandsList as Pt, RunSummary as Q, ListBrandTagsResponses as Qt, GetPromptSnapshotResponses as R, TagsFilter as Rn, GetBrandErrors as Rt, DeletePromptErrors as S, GetBrandQueryFanoutParams as Sn, CreateCompetitorResponses as St, GetPromptErrors as T, ListBrandCitationDomainsParams as Tn, GetCompetitorErrors as Tt, GetRunResponses as U, NotFoundError as Un, UpdateBrandErrors as Ut, MentionsSummary as V, Position as Vn, ListBrandsParams as Vt, ListPromptRunsErrors as W, ModelFilter as Wn, UpdateBrandParams as Wt, RunCitation as X, RateLimitError as Xn, PaymentRequiredError as Xt, RunAssessments as Y, InternalServerError as Yn, ConflictError as Yt, RunList as Z, UnauthorizedError as Zn, ListBrandTagsErrors as Zt, ReportPromptSnapshot as _, FanoutQuery as _n, GetMeResponses as _t, CreateReportErrors as a, Opportunity as an, ListOrganizationsParams as at, CreatePromptParams as b, GetBrandAnalyticsResponses as bn, CreateCompetitorErrors as bt, CreateReportResponses as c, BrandAnalytics as cn, OrganizationBilling as ct, GetReportResponse as d, BrandSentiment as dn, ListModelsErrors as dt, TagList as en, GetOrganizationBillingErrors as et, GetReportResponses as f, CitationDomain as fn, ListModelsResponses as ft, ListReportsResponses as g, DateRange as gn, GetMeErrors as gt, ListReportsResponse as h, CitationURLList as hn, APIKeyIdentity as ht, OnboardingSuggestion as i, GetBrandOpportunitiesResponses as in, ListOrganizationsErrors as it, Prompt as j, ListBrandPromptPerformanceParams as jn, UpdateCompetitorParams as jt, ListPromptsResponse as k, ListBrandCitationURLsResponses as kn, ListCompetitorsResponses as kt, GetReportErrors as l, BrandPosition as ln, OrganizationList as lt, ListReportsParams as m, CitationURL as mn, ModelList as mt, AnalyzeBrandParams as n, CitedPage as nn, GetOrganizationErrors as nt, CreateReportParams as o, OpportunityPrompt as on, ListOrganizationsResponses as ot, ListReportsErrors as p, CitationDomainList as pn, Model as pt, MentionAssessment as q, Error as qn, Page as qt, AnalyzeBrandResponses as r, GetBrandOpportunitiesErrors as rn, GetOrganizationResponses as rt, CreateReportResponse as s, BrandIdPath as sn, Organization as st, AnalyzeBrandErrors as t, BrandOpportunities as tn, GetOrganizationBillingResponses as tt, GetReportParams as u, BrandQueryFanout as un, PlanLimits as ut, ReportSummary as v, GetBrandAnalyticsErrors as vn, Competitor as vt, DeletePromptResponses as w, ListBrandCitationDomainsErrors as wn, DeleteCompetitorResponses as wt, CreatePromptResponses as x, GetBrandQueryFanoutErrors as xn, CreateCompetitorParams as xt, CreatePromptErrors as y, GetBrandAnalyticsParams as yn, CompetitorsList as yt, PromptSnapshot as z, VisibilityPoint as zn, GetBrandResponses as zt };
|
|
2120
|
+
//# sourceMappingURL=tools-Bfx2x86E.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools-Bfx2x86E.d.mts","names":[],"sources":["../src/types/shared/error.ts","../src/types/shared/model-filter.ts","../src/types/shared/not-found-error.ts","../src/types/shared/position.ts","../src/types/shared/validation-error.ts","../src/types/analytics.ts","../src/types/shared/brand-id-path.ts","../src/types/opportunities.ts","../src/types/tags.ts","../src/types/shared/conflict-error.ts","../src/types/shared/limit.ts","../src/types/shared/page.ts","../src/types/shared/pagination.ts","../src/types/brands.ts","../src/types/competitors.ts","../src/types/identity.ts","../src/types/models.ts","../src/types/organizations.ts","../src/types/runs.ts","../src/types/shared/mention-entry.ts","../src/types/snapshots.ts","../src/types/prompts.ts","../src/types/reports.ts","../src/types/tools.ts"],"mappings":";KAAY;;;;;;;;;EASV;;EAEA;;EAEA;;;KAIU,oBAAoB;KAEpB,sBA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PU;EACV,mBAAmB;EACnB,SAAS;EACT;EACA,aAAa;IACX,SAAS;IACT,SAAS;IACT;;EAEF,kBAAkB;IAChB;IACA,MAAM;;;EAGR;;KAGU;;EAEV,KAAK;;EAEL,KAAK;;EAEL,KAAK;;;;;EAKL,KAAK;;EAEL,KAAK;;EAEL,KAAK;;EAEL,KAAK;;KAGK;;EAEV,KAAK;;KAGK;;;;;;;EAOV;;EAEA;;;;;;;;EAQA;;;;;;;;EAQA"}
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export type { APIKeyIdentity, AnalyzeBrandErrors, AnalyzeBrandParams, AnalyzeBrandResponses, BillingPlan, Brand, BrandAnalytics, BrandIdPath, BrandOpportunities, BrandQueryFanout, BrandsList, CitationDomain, CitationDomainList, CitationURL, CitationURLList, CitedPage, CitedURLEntry, Competitor, CompetitorsList, ConflictError, CreateBrandErrors, CreateBrandParams, CreateBrandResponses, CreateCompetitorErrors, CreateCompetitorParams, CreateCompetitorResponses, CreatePromptErrors, CreatePromptParams, CreatePromptResponses, CreateReportErrors, CreateReportParams, CreateReportResponse, CreateReportResponses, DateRange, DeleteCompetitorErrors, DeleteCompetitorResponses, DeletePromptErrors, DeletePromptResponse, DeletePromptResponses, Error, FanoutQuery, ForbiddenError, GetBrandAnalyticsErrors, GetBrandAnalyticsParams, GetBrandAnalyticsResponses, GetBrandErrors, GetBrandOpportunitiesErrors, GetBrandOpportunitiesResponses, GetBrandQueryFanoutErrors, GetBrandQueryFanoutParams, GetBrandQueryFanoutResponses, GetBrandResponses, GetCompetitorErrors, GetCompetitorResponses, GetMeErrors, GetMeResponses, GetOrganizationBillingErrors, GetOrganizationBillingResponses, GetOrganizationErrors, GetOrganizationResponses, GetPromptErrors, GetPromptResponses, GetPromptSnapshotErrors, GetPromptSnapshotParams, GetPromptSnapshotResponses, GetReportErrors, GetReportParams, GetReportResponse, GetReportResponses, GetRunErrors, GetRunResponses, InternalServerError, Limit, ListBrandCitationDomainsErrors, ListBrandCitationDomainsParams, ListBrandCitationDomainsResponses, ListBrandCitationURLsErrors, ListBrandCitationURLsParams, ListBrandCitationURLsResponses, ListBrandPromptPerformanceErrors, ListBrandPromptPerformanceParams, ListBrandPromptPerformanceResponses, ListBrandTagsErrors, ListBrandTagsResponses, ListBrandsErrors, ListBrandsParams, ListBrandsResponses, ListCompetitorsErrors, ListCompetitorsParams, ListCompetitorsResponses, ListModelsErrors, ListModelsResponses, ListOrganizationsErrors, ListOrganizationsParams, ListOrganizationsResponses, ListPromptRunsErrors, ListPromptRunsParams, ListPromptRunsResponses, ListPromptsErrors, ListPromptsParams, ListPromptsResponse, ListPromptsResponses, ListReportsErrors, ListReportsParams, ListReportsResponse, ListReportsResponses, MentionEntry, MentionsSummary, Model, ModelFilter, ModelList, ModelVisibility, NotFoundError, OnboardingSuggestion, Opportunity, OpportunityPrompt, Organization, OrganizationBilling, OrganizationList, Page, Pagination, PaymentRequiredError, PlanLimits, Prompt, PromptPerformance, PromptPerformanceList, PromptSnapshot, RateLimitError, ReportPromptSnapshot, ReportSummary, Run, RunCitation, RunList, RunSummary, ShareOfVoiceEntry, ShareOfVoicePoint, Tag, TagList, TagsFilter, UnauthorizedError, UpdateBrandErrors, UpdateBrandParams, UpdateBrandResponses, UpdateCompetitorErrors, UpdateCompetitorParams, UpdateCompetitorResponses, UpdatePromptErrors, UpdatePromptParams, UpdatePromptResponses, ValidationError, VisibilityPoint, WindowEnd, WindowStart };
|
|
1
|
+
import { $ as BillingPlan, $t as Tag, A as ListPromptsResponses, An as ListBrandPromptPerformanceErrors, At as UpdateCompetitorErrors, B as MentionEntry, Bn as ValidationError, Bt as ListBrandsErrors, C as DeletePromptResponse, Cn as GetBrandQueryFanoutResponses, Ct as DeleteCompetitorErrors, D as ListPromptsErrors, Dn as ListBrandCitationURLsErrors, Dt as ListCompetitorsErrors, E as GetPromptResponses, En as ListBrandCitationDomainsResponses, Et as GetCompetitorResponses, F as CitedURLEntry, Fn as PromptPerformanceList, Ft as CreateBrandErrors, G as ListPromptRunsParams, Gn as WindowEnd, Gt as UpdateBrandResponses, H as GetRunErrors, Hn as SentimentSummary, Ht as ListBrandsResponses, I as GetPromptSnapshotErrors, In as ShareOfVoiceEntry, It as CreateBrandParams, J as Run, Jn as ForbiddenError, Jt as Limit, K as ListPromptRunsResponses, Kn as WindowStart, Kt as Pagination, L as GetPromptSnapshotParams, Ln as ShareOfVoicePoint, Lt as CreateBrandResponses, M as UpdatePromptErrors, Mn as ListBrandPromptPerformanceResponses, Mt as UpdateCompetitorResponses, N as UpdatePromptParams, Nn as ModelVisibility, Nt as Brand, O as ListPromptsParams, On as ListBrandCitationURLsParams, Ot as ListCompetitorsParams, P as UpdatePromptResponses, Pn as PromptPerformance, Pt as BrandsList, Q as RunSummary, Qt as ListBrandTagsResponses, R as GetPromptSnapshotResponses, Rn as TagsFilter, Rt as GetBrandErrors, S as DeletePromptErrors, Sn as GetBrandQueryFanoutParams, St as CreateCompetitorResponses, T as GetPromptErrors, Tn as ListBrandCitationDomainsParams, Tt as GetCompetitorErrors, U as GetRunResponses, Un as NotFoundError, Ut as UpdateBrandErrors, V as MentionsSummary, Vn as Position, Vt as ListBrandsParams, W as ListPromptRunsErrors, Wn as ModelFilter, Wt as UpdateBrandParams, X as RunCitation, Xn as RateLimitError, Xt as PaymentRequiredError, Y as RunAssessments, Yn as InternalServerError, Yt as ConflictError, Z as RunList, Zn as UnauthorizedError, Zt as ListBrandTagsErrors, _ as ReportPromptSnapshot, _n as FanoutQuery, _t as GetMeResponses, a as CreateReportErrors, an as Opportunity, at as ListOrganizationsParams, b as CreatePromptParams, bn as GetBrandAnalyticsResponses, bt as CreateCompetitorErrors, c as CreateReportResponses, cn as BrandAnalytics, ct as OrganizationBilling, d as GetReportResponse, dn as BrandSentiment, dt as ListModelsErrors, en as TagList, et as GetOrganizationBillingErrors, f as GetReportResponses, fn as CitationDomain, ft as ListModelsResponses, g as ListReportsResponses, gn as DateRange, gt as GetMeErrors, h as ListReportsResponse, hn as CitationURLList, ht as APIKeyIdentity, i as OnboardingSuggestion, in as GetBrandOpportunitiesResponses, it as ListOrganizationsErrors, j as Prompt, jn as ListBrandPromptPerformanceParams, jt as UpdateCompetitorParams, k as ListPromptsResponse, kn as ListBrandCitationURLsResponses, kt as ListCompetitorsResponses, l as GetReportErrors, ln as BrandPosition, lt as OrganizationList, m as ListReportsParams, mn as CitationURL, mt as ModelList, n as AnalyzeBrandParams, nn as CitedPage, nt as GetOrganizationErrors, o as CreateReportParams, on as OpportunityPrompt, ot as ListOrganizationsResponses, p as ListReportsErrors, pn as CitationDomainList, pt as Model, q as MentionAssessment, qn as Error, qt as Page, r as AnalyzeBrandResponses, rn as GetBrandOpportunitiesErrors, rt as GetOrganizationResponses, s as CreateReportResponse, sn as BrandIdPath, st as Organization, t as AnalyzeBrandErrors, tn as BrandOpportunities, tt as GetOrganizationBillingResponses, u as GetReportParams, un as BrandQueryFanout, ut as PlanLimits, v as ReportSummary, vn as GetBrandAnalyticsErrors, vt as Competitor, w as DeletePromptResponses, wn as ListBrandCitationDomainsErrors, wt as DeleteCompetitorResponses, x as CreatePromptResponses, xn as GetBrandQueryFanoutErrors, xt as CreateCompetitorParams, y as CreatePromptErrors, yn as GetBrandAnalyticsParams, yt as CompetitorsList, z as PromptSnapshot, zn as VisibilityPoint, zt as GetBrandResponses } from "../tools-Bfx2x86E.mjs";
|
|
2
|
+
export type { APIKeyIdentity, AnalyzeBrandErrors, AnalyzeBrandParams, AnalyzeBrandResponses, BillingPlan, Brand, BrandAnalytics, BrandIdPath, BrandOpportunities, BrandPosition, BrandQueryFanout, BrandSentiment, BrandsList, CitationDomain, CitationDomainList, CitationURL, CitationURLList, CitedPage, CitedURLEntry, Competitor, CompetitorsList, ConflictError, CreateBrandErrors, CreateBrandParams, CreateBrandResponses, CreateCompetitorErrors, CreateCompetitorParams, CreateCompetitorResponses, CreatePromptErrors, CreatePromptParams, CreatePromptResponses, CreateReportErrors, CreateReportParams, CreateReportResponse, CreateReportResponses, DateRange, DeleteCompetitorErrors, DeleteCompetitorResponses, DeletePromptErrors, DeletePromptResponse, DeletePromptResponses, Error, FanoutQuery, ForbiddenError, GetBrandAnalyticsErrors, GetBrandAnalyticsParams, GetBrandAnalyticsResponses, GetBrandErrors, GetBrandOpportunitiesErrors, GetBrandOpportunitiesResponses, GetBrandQueryFanoutErrors, GetBrandQueryFanoutParams, GetBrandQueryFanoutResponses, GetBrandResponses, GetCompetitorErrors, GetCompetitorResponses, GetMeErrors, GetMeResponses, GetOrganizationBillingErrors, GetOrganizationBillingResponses, GetOrganizationErrors, GetOrganizationResponses, GetPromptErrors, GetPromptResponses, GetPromptSnapshotErrors, GetPromptSnapshotParams, GetPromptSnapshotResponses, GetReportErrors, GetReportParams, GetReportResponse, GetReportResponses, GetRunErrors, GetRunResponses, InternalServerError, Limit, ListBrandCitationDomainsErrors, ListBrandCitationDomainsParams, ListBrandCitationDomainsResponses, ListBrandCitationURLsErrors, ListBrandCitationURLsParams, ListBrandCitationURLsResponses, ListBrandPromptPerformanceErrors, ListBrandPromptPerformanceParams, ListBrandPromptPerformanceResponses, ListBrandTagsErrors, ListBrandTagsResponses, ListBrandsErrors, ListBrandsParams, ListBrandsResponses, ListCompetitorsErrors, ListCompetitorsParams, ListCompetitorsResponses, ListModelsErrors, ListModelsResponses, ListOrganizationsErrors, ListOrganizationsParams, ListOrganizationsResponses, ListPromptRunsErrors, ListPromptRunsParams, ListPromptRunsResponses, ListPromptsErrors, ListPromptsParams, ListPromptsResponse, ListPromptsResponses, ListReportsErrors, ListReportsParams, ListReportsResponse, ListReportsResponses, MentionAssessment, MentionEntry, MentionsSummary, Model, ModelFilter, ModelList, ModelVisibility, NotFoundError, OnboardingSuggestion, Opportunity, OpportunityPrompt, Organization, OrganizationBilling, OrganizationList, Page, Pagination, PaymentRequiredError, PlanLimits, Position, Prompt, PromptPerformance, PromptPerformanceList, PromptSnapshot, RateLimitError, ReportPromptSnapshot, ReportSummary, Run, RunAssessments, RunCitation, RunList, RunSummary, SentimentSummary, ShareOfVoiceEntry, ShareOfVoicePoint, Tag, TagList, TagsFilter, UnauthorizedError, UpdateBrandErrors, UpdateBrandParams, UpdateBrandResponses, UpdateCompetitorErrors, UpdateCompetitorParams, UpdateCompetitorResponses, UpdatePromptErrors, UpdatePromptParams, UpdatePromptResponses, ValidationError, VisibilityPoint, WindowEnd, WindowStart };
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -173,6 +173,7 @@ import type { ModelFilter, WindowEnd, WindowStart } from './types/shared/model-f
|
|
|
173
173
|
import type { NotFoundError as NotFoundErrorResponse } from './types/shared/not-found-error';
|
|
174
174
|
import type { Page as PageParameter } from './types/shared/page';
|
|
175
175
|
import type { Pagination } from './types/shared/pagination';
|
|
176
|
+
import type { Position, SentimentSummary } from './types/shared/position';
|
|
176
177
|
import type { ValidationError } from './types/shared/validation-error';
|
|
177
178
|
import type {
|
|
178
179
|
AnalyzeBrandErrors,
|
|
@@ -182,7 +183,7 @@ import type {
|
|
|
182
183
|
} from './types/tools';
|
|
183
184
|
|
|
184
185
|
/** The version of this package. */
|
|
185
|
-
export const VERSION = '0.1.
|
|
186
|
+
export const VERSION = '0.1.3';
|
|
186
187
|
|
|
187
188
|
/** The address calls are sent to: a URL with its scheme. */
|
|
188
189
|
export type BaseURL = `${string}://${string}/api/v1` | (string & {});
|
|
@@ -609,6 +610,7 @@ export declare namespace Elmo {
|
|
|
609
610
|
PageResult,
|
|
610
611
|
Pagination,
|
|
611
612
|
PaymentRequiredErrorResponse,
|
|
613
|
+
Position,
|
|
612
614
|
PreparedRequest,
|
|
613
615
|
Prompt,
|
|
614
616
|
Prompts,
|
|
@@ -623,6 +625,7 @@ export declare namespace Elmo {
|
|
|
623
625
|
RetryAfterHeader,
|
|
624
626
|
RetryOptions,
|
|
625
627
|
RetryRules,
|
|
628
|
+
SentimentSummary,
|
|
626
629
|
TagsFilter,
|
|
627
630
|
TimeoutPolicy,
|
|
628
631
|
TimeoutValue,
|
|
@@ -8,7 +8,9 @@ import type { Mutable } from '../internal/feature/validate';
|
|
|
8
8
|
import { decoded, reviving } from '../internal/feature/validate';
|
|
9
9
|
import type {
|
|
10
10
|
BrandAnalytics,
|
|
11
|
+
BrandPosition,
|
|
11
12
|
BrandQueryFanout,
|
|
13
|
+
BrandSentiment,
|
|
12
14
|
CitationDomain,
|
|
13
15
|
CitationDomainList,
|
|
14
16
|
CitationURL,
|
|
@@ -296,6 +298,8 @@ export class QueryFanout extends ElmoResource {
|
|
|
296
298
|
export declare namespace Analytics {
|
|
297
299
|
export type {
|
|
298
300
|
BrandAnalytics,
|
|
301
|
+
BrandPosition,
|
|
302
|
+
BrandSentiment,
|
|
299
303
|
GetBrandAnalyticsErrors,
|
|
300
304
|
GetBrandAnalyticsParams,
|
|
301
305
|
GetBrandAnalyticsResponses,
|
package/src/resources/brands.ts
CHANGED
|
@@ -13,7 +13,9 @@ import type { Mutable } from '../internal/feature/validate';
|
|
|
13
13
|
import { decoded, reviving } from '../internal/feature/validate';
|
|
14
14
|
import type {
|
|
15
15
|
BrandAnalytics,
|
|
16
|
+
BrandPosition,
|
|
16
17
|
BrandQueryFanout,
|
|
18
|
+
BrandSentiment,
|
|
17
19
|
DateRange,
|
|
18
20
|
FanoutQuery,
|
|
19
21
|
GetBrandAnalyticsErrors,
|
|
@@ -239,7 +241,9 @@ export declare namespace Brands {
|
|
|
239
241
|
BrandAnalytics,
|
|
240
242
|
BrandIdPath,
|
|
241
243
|
BrandOpportunities,
|
|
244
|
+
BrandPosition,
|
|
242
245
|
BrandQueryFanout,
|
|
246
|
+
BrandSentiment,
|
|
243
247
|
BrandsList,
|
|
244
248
|
Citations,
|
|
245
249
|
CitedPage,
|
package/src/resources/prompts.ts
CHANGED
|
@@ -34,7 +34,9 @@ import type {
|
|
|
34
34
|
ListPromptRunsErrors,
|
|
35
35
|
ListPromptRunsParams,
|
|
36
36
|
ListPromptRunsResponses,
|
|
37
|
+
MentionAssessment,
|
|
37
38
|
Run,
|
|
39
|
+
RunAssessments,
|
|
38
40
|
RunCitation,
|
|
39
41
|
RunList,
|
|
40
42
|
RunSummary,
|
|
@@ -278,9 +280,11 @@ export declare namespace Prompts {
|
|
|
278
280
|
ListPromptsParams,
|
|
279
281
|
ListPromptsResponse,
|
|
280
282
|
ListPromptsResponses,
|
|
283
|
+
MentionAssessment,
|
|
281
284
|
Prompt,
|
|
282
285
|
PromptSnapshot,
|
|
283
286
|
Run,
|
|
287
|
+
RunAssessments,
|
|
284
288
|
RunCitation,
|
|
285
289
|
RunList,
|
|
286
290
|
Runs,
|
package/src/resources/runs.ts
CHANGED
|
@@ -13,7 +13,9 @@ import type {
|
|
|
13
13
|
ListPromptRunsErrors,
|
|
14
14
|
ListPromptRunsParams,
|
|
15
15
|
ListPromptRunsResponses,
|
|
16
|
+
MentionAssessment,
|
|
16
17
|
Run,
|
|
18
|
+
RunAssessments,
|
|
17
19
|
RunCitation,
|
|
18
20
|
RunList,
|
|
19
21
|
RunSummary,
|
|
@@ -116,7 +118,9 @@ export declare namespace Runs {
|
|
|
116
118
|
ListPromptRunsErrors,
|
|
117
119
|
ListPromptRunsParams,
|
|
118
120
|
ListPromptRunsResponses,
|
|
121
|
+
MentionAssessment,
|
|
119
122
|
Run,
|
|
123
|
+
RunAssessments,
|
|
120
124
|
RunCitation,
|
|
121
125
|
RunList,
|
|
122
126
|
RunSummary,
|