profoundai 0.7.1 → 0.9.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.
- package/CHANGELOG.md +16 -0
- package/package.json +1 -1
- package/resources/logs/raw.d.mts +170 -22
- package/resources/logs/raw.d.mts.map +1 -1
- package/resources/logs/raw.d.ts +170 -22
- package/resources/logs/raw.d.ts.map +1 -1
- package/resources/prompts.d.mts +41 -7
- package/resources/prompts.d.mts.map +1 -1
- package/resources/prompts.d.ts +41 -7
- package/resources/prompts.d.ts.map +1 -1
- package/resources/reports.d.mts +175 -29
- package/resources/reports.d.mts.map +1 -1
- package/resources/reports.d.ts +175 -29
- package/resources/reports.d.ts.map +1 -1
- package/src/resources/logs/raw.ts +389 -36
- package/src/resources/prompts.ts +71 -10
- package/src/resources/reports.ts +325 -32
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/prompts.d.ts
CHANGED
|
@@ -43,7 +43,10 @@ export interface PromptAnswersParams {
|
|
|
43
43
|
category_id: string;
|
|
44
44
|
end_date: string;
|
|
45
45
|
start_date: string;
|
|
46
|
-
|
|
46
|
+
/**
|
|
47
|
+
* List of filters to apply to the answers report.
|
|
48
|
+
*/
|
|
49
|
+
filters?: Array<PromptAnswersParams.RegionIDFilter | PromptAnswersParams.ModelIDFilter | PromptAnswersParams.TagIDFilter | PromptAnswersParams.PromptTypeFilter | PromptAnswersParams.PromptFilter>;
|
|
47
50
|
include?: PromptAnswersParams.Include;
|
|
48
51
|
/**
|
|
49
52
|
* Pagination parameters for the results. Default is 10,000 rows with no offset.
|
|
@@ -51,14 +54,45 @@ export interface PromptAnswersParams {
|
|
|
51
54
|
pagination?: Shared.Pagination;
|
|
52
55
|
}
|
|
53
56
|
export declare namespace PromptAnswersParams {
|
|
54
|
-
interface
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
interface RegionIDFilter {
|
|
58
|
+
/**
|
|
59
|
+
* - `region` - Deprecated
|
|
60
|
+
*/
|
|
61
|
+
field: 'region_id' | 'region';
|
|
62
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
63
|
+
value: string | Array<string>;
|
|
64
|
+
}
|
|
65
|
+
interface ModelIDFilter {
|
|
66
|
+
/**
|
|
67
|
+
* - `model` - Deprecated
|
|
68
|
+
*/
|
|
69
|
+
field: 'model_id' | 'model';
|
|
70
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
71
|
+
value: string | Array<string>;
|
|
72
|
+
}
|
|
73
|
+
interface TagIDFilter {
|
|
57
74
|
/**
|
|
58
|
-
*
|
|
59
|
-
* operator.
|
|
75
|
+
* - `tag` - Deprecated
|
|
60
76
|
*/
|
|
61
|
-
|
|
77
|
+
field: 'tag_id' | 'tag';
|
|
78
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
79
|
+
value: string | Array<string>;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Filter by prompt type (visibility or sentiment)
|
|
83
|
+
*/
|
|
84
|
+
interface PromptTypeFilter {
|
|
85
|
+
field: 'prompt_type';
|
|
86
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'matches' | 'contains_case_insensitive' | 'not_contains_case_insensitive';
|
|
87
|
+
value: 'visibility' | 'sentiment' | Array<'visibility' | 'sentiment'>;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Filter by prompt text
|
|
91
|
+
*/
|
|
92
|
+
interface PromptFilter {
|
|
93
|
+
field: 'prompt';
|
|
94
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'matches' | 'contains_case_insensitive' | 'not_contains_case_insensitive';
|
|
95
|
+
value: string | Array<string>;
|
|
62
96
|
}
|
|
63
97
|
interface Include {
|
|
64
98
|
asset?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts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AM,CAAC,EAAE,OAAO,CAAC;QAEjB,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB,MAAM,CAAC,EAAE,OAAO,CAAC;QAEjB,cAAc,CAAC,EAAE,OAAO,CAAC;QAEzB,IAAI,CAAC,EAAE,OAAO,CAAC;QAEf,MAAM,CAAC,EAAE,OAAO,CAAC;QAEjB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/reports.d.mts
CHANGED
|
@@ -101,10 +101,9 @@ export interface ReportCitationsParams {
|
|
|
101
101
|
*/
|
|
102
102
|
dimensions?: Array<'hostname' | 'path' | 'date' | 'region' | 'topic' | 'model' | 'tag' | 'prompt' | 'url' | 'root_domain'>;
|
|
103
103
|
/**
|
|
104
|
-
* List of filters to apply to the report.
|
|
105
|
-
* value.
|
|
104
|
+
* List of filters to apply to the citations report.
|
|
106
105
|
*/
|
|
107
|
-
filters?: Array<ReportCitationsParams.
|
|
106
|
+
filters?: Array<ReportCitationsParams.HostnameFilter | ReportCitationsParams.AppModelsAnswerEngineInsightsFiltersPathFilter | ReportCitationsParams.RegionIDFilter | ReportCitationsParams.TopicIDFilter | ReportCitationsParams.ModelIDFilter | ReportCitationsParams.TagIDFilter | ReportCitationsParams.URLFilter | ReportCitationsParams.RootDomainFilter | ReportCitationsParams.PromptTypeFilter>;
|
|
108
107
|
/**
|
|
109
108
|
* Custom ordering of the report results.
|
|
110
109
|
*
|
|
@@ -126,14 +125,77 @@ export interface ReportCitationsParams {
|
|
|
126
125
|
pagination?: Shared.Pagination;
|
|
127
126
|
}
|
|
128
127
|
export declare namespace ReportCitationsParams {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
128
|
+
/**
|
|
129
|
+
* Filter by hostname
|
|
130
|
+
*/
|
|
131
|
+
interface HostnameFilter {
|
|
132
|
+
field: 'hostname';
|
|
133
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'matches' | 'contains_case_insensitive' | 'not_contains_case_insensitive';
|
|
134
|
+
value: string | Array<string>;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Filter by URL path
|
|
138
|
+
*/
|
|
139
|
+
interface AppModelsAnswerEngineInsightsFiltersPathFilter {
|
|
140
|
+
field: 'path';
|
|
141
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'matches' | 'contains_case_insensitive' | 'not_contains_case_insensitive';
|
|
142
|
+
value: string | Array<string>;
|
|
143
|
+
}
|
|
144
|
+
interface RegionIDFilter {
|
|
145
|
+
/**
|
|
146
|
+
* - `region` - Deprecated
|
|
147
|
+
*/
|
|
148
|
+
field: 'region_id' | 'region';
|
|
149
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
150
|
+
value: string | Array<string>;
|
|
151
|
+
}
|
|
152
|
+
interface TopicIDFilter {
|
|
153
|
+
/**
|
|
154
|
+
* - `topic` - Deprecated
|
|
155
|
+
*/
|
|
156
|
+
field: 'topic_id' | 'topic';
|
|
157
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
158
|
+
value: string | Array<string>;
|
|
159
|
+
}
|
|
160
|
+
interface ModelIDFilter {
|
|
161
|
+
/**
|
|
162
|
+
* - `model` - Deprecated
|
|
163
|
+
*/
|
|
164
|
+
field: 'model_id' | 'model';
|
|
165
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
166
|
+
value: string | Array<string>;
|
|
167
|
+
}
|
|
168
|
+
interface TagIDFilter {
|
|
132
169
|
/**
|
|
133
|
-
*
|
|
134
|
-
* operator.
|
|
170
|
+
* - `tag` - Deprecated
|
|
135
171
|
*/
|
|
136
|
-
|
|
172
|
+
field: 'tag_id' | 'tag';
|
|
173
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
174
|
+
value: string | Array<string>;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Filter by URL
|
|
178
|
+
*/
|
|
179
|
+
interface URLFilter {
|
|
180
|
+
field: 'url';
|
|
181
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'matches' | 'contains_case_insensitive' | 'not_contains_case_insensitive';
|
|
182
|
+
value: string | Array<string>;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Filter by root domain
|
|
186
|
+
*/
|
|
187
|
+
interface RootDomainFilter {
|
|
188
|
+
field: 'root_domain';
|
|
189
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'matches' | 'contains_case_insensitive' | 'not_contains_case_insensitive';
|
|
190
|
+
value: string | Array<string>;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Filter by prompt type (visibility or sentiment)
|
|
194
|
+
*/
|
|
195
|
+
interface PromptTypeFilter {
|
|
196
|
+
field: 'prompt_type';
|
|
197
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'matches' | 'contains_case_insensitive' | 'not_contains_case_insensitive';
|
|
198
|
+
value: 'visibility' | 'sentiment' | Array<'visibility' | 'sentiment'>;
|
|
137
199
|
}
|
|
138
200
|
}
|
|
139
201
|
export interface ReportSentimentParams {
|
|
@@ -143,7 +205,7 @@ export interface ReportSentimentParams {
|
|
|
143
205
|
* ISO timestamp.
|
|
144
206
|
*/
|
|
145
207
|
end_date: string;
|
|
146
|
-
metrics: Array<'positive' | 'negative'>;
|
|
208
|
+
metrics: Array<'positive' | 'negative' | 'ocurrences'>;
|
|
147
209
|
/**
|
|
148
210
|
* Start date for the report. Accepts formats: YYYY-MM-DD, YYYY-MM-DD HH:MM, or
|
|
149
211
|
* full ISO timestamp.
|
|
@@ -156,12 +218,11 @@ export interface ReportSentimentParams {
|
|
|
156
218
|
/**
|
|
157
219
|
* Dimensions to group the report by.
|
|
158
220
|
*/
|
|
159
|
-
dimensions?: Array<'theme' | 'date' | 'region' | 'topic' | 'model' | 'asset_name' | 'tag' | 'prompt'>;
|
|
221
|
+
dimensions?: Array<'theme' | 'date' | 'region' | 'topic' | 'model' | 'asset_name' | 'tag' | 'prompt' | 'sentiment_type'>;
|
|
160
222
|
/**
|
|
161
|
-
* List of filters to apply to the report.
|
|
162
|
-
* value.
|
|
223
|
+
* List of filters to apply to the sentiment report.
|
|
163
224
|
*/
|
|
164
|
-
filters?: Array<ReportSentimentParams.
|
|
225
|
+
filters?: Array<ReportSentimentParams.AssetNameFilter | ReportSentimentParams.ThemeFilter | ReportSentimentParams.RegionIDFilter | ReportSentimentParams.TopicIDFilter | ReportSentimentParams.ModelIDFilter | ReportSentimentParams.TagIDFilter | ReportSentimentParams.PromptFilter>;
|
|
165
226
|
/**
|
|
166
227
|
* Custom ordering of the report results.
|
|
167
228
|
*
|
|
@@ -183,14 +244,61 @@ export interface ReportSentimentParams {
|
|
|
183
244
|
pagination?: Shared.Pagination;
|
|
184
245
|
}
|
|
185
246
|
export declare namespace ReportSentimentParams {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
247
|
+
/**
|
|
248
|
+
* Filter by asset name
|
|
249
|
+
*/
|
|
250
|
+
interface AssetNameFilter {
|
|
251
|
+
field: 'asset_name';
|
|
252
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'matches' | 'contains_case_insensitive' | 'not_contains_case_insensitive';
|
|
253
|
+
value: string | Array<string>;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Filter by theme
|
|
257
|
+
*/
|
|
258
|
+
interface ThemeFilter {
|
|
259
|
+
field: 'theme';
|
|
260
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'matches' | 'contains_case_insensitive' | 'not_contains_case_insensitive';
|
|
261
|
+
value: string | Array<string>;
|
|
262
|
+
}
|
|
263
|
+
interface RegionIDFilter {
|
|
264
|
+
/**
|
|
265
|
+
* - `region` - Deprecated
|
|
266
|
+
*/
|
|
267
|
+
field: 'region_id' | 'region';
|
|
268
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
269
|
+
value: string | Array<string>;
|
|
270
|
+
}
|
|
271
|
+
interface TopicIDFilter {
|
|
272
|
+
/**
|
|
273
|
+
* - `topic` - Deprecated
|
|
274
|
+
*/
|
|
275
|
+
field: 'topic_id' | 'topic';
|
|
276
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
277
|
+
value: string | Array<string>;
|
|
278
|
+
}
|
|
279
|
+
interface ModelIDFilter {
|
|
189
280
|
/**
|
|
190
|
-
*
|
|
191
|
-
* operator.
|
|
281
|
+
* - `model` - Deprecated
|
|
192
282
|
*/
|
|
193
|
-
|
|
283
|
+
field: 'model_id' | 'model';
|
|
284
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
285
|
+
value: string | Array<string>;
|
|
286
|
+
}
|
|
287
|
+
interface TagIDFilter {
|
|
288
|
+
/**
|
|
289
|
+
* - `tag` - Deprecated
|
|
290
|
+
*/
|
|
291
|
+
field: 'tag_id' | 'tag';
|
|
292
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
293
|
+
value: string | Array<string>;
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Filter by prompt text
|
|
297
|
+
*/
|
|
298
|
+
interface PromptFilter {
|
|
299
|
+
field: 'prompt';
|
|
300
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'matches' | 'contains_case_insensitive' | 'not_contains_case_insensitive';
|
|
301
|
+
value: string | Array<string>;
|
|
194
302
|
}
|
|
195
303
|
}
|
|
196
304
|
export interface ReportVisibilityParams {
|
|
@@ -215,10 +323,9 @@ export interface ReportVisibilityParams {
|
|
|
215
323
|
*/
|
|
216
324
|
dimensions?: Array<'date' | 'region' | 'topic' | 'model' | 'asset_name' | 'prompt' | 'tag'>;
|
|
217
325
|
/**
|
|
218
|
-
* List of filters to apply to the report.
|
|
219
|
-
* value.
|
|
326
|
+
* List of filters to apply to the visibility report.
|
|
220
327
|
*/
|
|
221
|
-
filters?: Array<ReportVisibilityParams.
|
|
328
|
+
filters?: Array<ReportVisibilityParams.RegionIDFilter | ReportVisibilityParams.ModelIDFilter | ReportVisibilityParams.TopicIDFilter | ReportVisibilityParams.AssetNameFilter | ReportVisibilityParams.TagIDFilter | ReportVisibilityParams.PromptFilter>;
|
|
222
329
|
/**
|
|
223
330
|
* Custom ordering of the report results.
|
|
224
331
|
*
|
|
@@ -240,14 +347,53 @@ export interface ReportVisibilityParams {
|
|
|
240
347
|
pagination?: Shared.Pagination;
|
|
241
348
|
}
|
|
242
349
|
export declare namespace ReportVisibilityParams {
|
|
243
|
-
interface
|
|
244
|
-
|
|
245
|
-
|
|
350
|
+
interface RegionIDFilter {
|
|
351
|
+
/**
|
|
352
|
+
* - `region` - Deprecated
|
|
353
|
+
*/
|
|
354
|
+
field: 'region_id' | 'region';
|
|
355
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
356
|
+
value: string | Array<string>;
|
|
357
|
+
}
|
|
358
|
+
interface ModelIDFilter {
|
|
359
|
+
/**
|
|
360
|
+
* - `model` - Deprecated
|
|
361
|
+
*/
|
|
362
|
+
field: 'model_id' | 'model';
|
|
363
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
364
|
+
value: string | Array<string>;
|
|
365
|
+
}
|
|
366
|
+
interface TopicIDFilter {
|
|
367
|
+
/**
|
|
368
|
+
* - `topic` - Deprecated
|
|
369
|
+
*/
|
|
370
|
+
field: 'topic_id' | 'topic';
|
|
371
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
372
|
+
value: string | Array<string>;
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Filter by asset name
|
|
376
|
+
*/
|
|
377
|
+
interface AssetNameFilter {
|
|
378
|
+
field: 'asset_name';
|
|
379
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'matches' | 'contains_case_insensitive' | 'not_contains_case_insensitive';
|
|
380
|
+
value: string | Array<string>;
|
|
381
|
+
}
|
|
382
|
+
interface TagIDFilter {
|
|
246
383
|
/**
|
|
247
|
-
*
|
|
248
|
-
* operator.
|
|
384
|
+
* - `tag` - Deprecated
|
|
249
385
|
*/
|
|
250
|
-
|
|
386
|
+
field: 'tag_id' | 'tag';
|
|
387
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
388
|
+
value: string | Array<string>;
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Filter by prompt text
|
|
392
|
+
*/
|
|
393
|
+
interface PromptFilter {
|
|
394
|
+
field: 'prompt';
|
|
395
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'matches' | 'contains_case_insensitive' | 'not_contains_case_insensitive';
|
|
396
|
+
value: string | Array<string>;
|
|
251
397
|
}
|
|
252
398
|
}
|
|
253
399
|
export declare namespace Reports {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reports.d.mts","sourceRoot":"","sources":["../src/resources/reports.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIrG;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAI5F;;;;;;;;;;;;OAYG;IACH,UAAU,CAAC,IAAI,EAAE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,GAAG,KAAK,CAAC;QAExB,QAAQ,EAAE,IAAI,GAAG,QAAQ,GAAG,IAAI,GAAG,QAAQ,CAAC;QAE5C,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;KAC/B;IAED;;OAEG;IACH,UAAiB,YAAY;QAC3B,KAAK,EAAE,QAAQ,CAAC;QAEhB,QAAQ,EACJ,IAAI,GACJ,QAAQ,GACR,IAAI,GACJ,QAAQ,GACR,UAAU,GACV,cAAc,GACd,SAAS,GACT,2BAA2B,GAC3B,+BAA+B,CAAC;QAEpC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;KAC/B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
package/resources/reports.d.ts
CHANGED
|
@@ -101,10 +101,9 @@ export interface ReportCitationsParams {
|
|
|
101
101
|
*/
|
|
102
102
|
dimensions?: Array<'hostname' | 'path' | 'date' | 'region' | 'topic' | 'model' | 'tag' | 'prompt' | 'url' | 'root_domain'>;
|
|
103
103
|
/**
|
|
104
|
-
* List of filters to apply to the report.
|
|
105
|
-
* value.
|
|
104
|
+
* List of filters to apply to the citations report.
|
|
106
105
|
*/
|
|
107
|
-
filters?: Array<ReportCitationsParams.
|
|
106
|
+
filters?: Array<ReportCitationsParams.HostnameFilter | ReportCitationsParams.AppModelsAnswerEngineInsightsFiltersPathFilter | ReportCitationsParams.RegionIDFilter | ReportCitationsParams.TopicIDFilter | ReportCitationsParams.ModelIDFilter | ReportCitationsParams.TagIDFilter | ReportCitationsParams.URLFilter | ReportCitationsParams.RootDomainFilter | ReportCitationsParams.PromptTypeFilter>;
|
|
108
107
|
/**
|
|
109
108
|
* Custom ordering of the report results.
|
|
110
109
|
*
|
|
@@ -126,14 +125,77 @@ export interface ReportCitationsParams {
|
|
|
126
125
|
pagination?: Shared.Pagination;
|
|
127
126
|
}
|
|
128
127
|
export declare namespace ReportCitationsParams {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
128
|
+
/**
|
|
129
|
+
* Filter by hostname
|
|
130
|
+
*/
|
|
131
|
+
interface HostnameFilter {
|
|
132
|
+
field: 'hostname';
|
|
133
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'matches' | 'contains_case_insensitive' | 'not_contains_case_insensitive';
|
|
134
|
+
value: string | Array<string>;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Filter by URL path
|
|
138
|
+
*/
|
|
139
|
+
interface AppModelsAnswerEngineInsightsFiltersPathFilter {
|
|
140
|
+
field: 'path';
|
|
141
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'matches' | 'contains_case_insensitive' | 'not_contains_case_insensitive';
|
|
142
|
+
value: string | Array<string>;
|
|
143
|
+
}
|
|
144
|
+
interface RegionIDFilter {
|
|
145
|
+
/**
|
|
146
|
+
* - `region` - Deprecated
|
|
147
|
+
*/
|
|
148
|
+
field: 'region_id' | 'region';
|
|
149
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
150
|
+
value: string | Array<string>;
|
|
151
|
+
}
|
|
152
|
+
interface TopicIDFilter {
|
|
153
|
+
/**
|
|
154
|
+
* - `topic` - Deprecated
|
|
155
|
+
*/
|
|
156
|
+
field: 'topic_id' | 'topic';
|
|
157
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
158
|
+
value: string | Array<string>;
|
|
159
|
+
}
|
|
160
|
+
interface ModelIDFilter {
|
|
161
|
+
/**
|
|
162
|
+
* - `model` - Deprecated
|
|
163
|
+
*/
|
|
164
|
+
field: 'model_id' | 'model';
|
|
165
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
166
|
+
value: string | Array<string>;
|
|
167
|
+
}
|
|
168
|
+
interface TagIDFilter {
|
|
132
169
|
/**
|
|
133
|
-
*
|
|
134
|
-
* operator.
|
|
170
|
+
* - `tag` - Deprecated
|
|
135
171
|
*/
|
|
136
|
-
|
|
172
|
+
field: 'tag_id' | 'tag';
|
|
173
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
174
|
+
value: string | Array<string>;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Filter by URL
|
|
178
|
+
*/
|
|
179
|
+
interface URLFilter {
|
|
180
|
+
field: 'url';
|
|
181
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'matches' | 'contains_case_insensitive' | 'not_contains_case_insensitive';
|
|
182
|
+
value: string | Array<string>;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Filter by root domain
|
|
186
|
+
*/
|
|
187
|
+
interface RootDomainFilter {
|
|
188
|
+
field: 'root_domain';
|
|
189
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'matches' | 'contains_case_insensitive' | 'not_contains_case_insensitive';
|
|
190
|
+
value: string | Array<string>;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Filter by prompt type (visibility or sentiment)
|
|
194
|
+
*/
|
|
195
|
+
interface PromptTypeFilter {
|
|
196
|
+
field: 'prompt_type';
|
|
197
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'matches' | 'contains_case_insensitive' | 'not_contains_case_insensitive';
|
|
198
|
+
value: 'visibility' | 'sentiment' | Array<'visibility' | 'sentiment'>;
|
|
137
199
|
}
|
|
138
200
|
}
|
|
139
201
|
export interface ReportSentimentParams {
|
|
@@ -143,7 +205,7 @@ export interface ReportSentimentParams {
|
|
|
143
205
|
* ISO timestamp.
|
|
144
206
|
*/
|
|
145
207
|
end_date: string;
|
|
146
|
-
metrics: Array<'positive' | 'negative'>;
|
|
208
|
+
metrics: Array<'positive' | 'negative' | 'ocurrences'>;
|
|
147
209
|
/**
|
|
148
210
|
* Start date for the report. Accepts formats: YYYY-MM-DD, YYYY-MM-DD HH:MM, or
|
|
149
211
|
* full ISO timestamp.
|
|
@@ -156,12 +218,11 @@ export interface ReportSentimentParams {
|
|
|
156
218
|
/**
|
|
157
219
|
* Dimensions to group the report by.
|
|
158
220
|
*/
|
|
159
|
-
dimensions?: Array<'theme' | 'date' | 'region' | 'topic' | 'model' | 'asset_name' | 'tag' | 'prompt'>;
|
|
221
|
+
dimensions?: Array<'theme' | 'date' | 'region' | 'topic' | 'model' | 'asset_name' | 'tag' | 'prompt' | 'sentiment_type'>;
|
|
160
222
|
/**
|
|
161
|
-
* List of filters to apply to the report.
|
|
162
|
-
* value.
|
|
223
|
+
* List of filters to apply to the sentiment report.
|
|
163
224
|
*/
|
|
164
|
-
filters?: Array<ReportSentimentParams.
|
|
225
|
+
filters?: Array<ReportSentimentParams.AssetNameFilter | ReportSentimentParams.ThemeFilter | ReportSentimentParams.RegionIDFilter | ReportSentimentParams.TopicIDFilter | ReportSentimentParams.ModelIDFilter | ReportSentimentParams.TagIDFilter | ReportSentimentParams.PromptFilter>;
|
|
165
226
|
/**
|
|
166
227
|
* Custom ordering of the report results.
|
|
167
228
|
*
|
|
@@ -183,14 +244,61 @@ export interface ReportSentimentParams {
|
|
|
183
244
|
pagination?: Shared.Pagination;
|
|
184
245
|
}
|
|
185
246
|
export declare namespace ReportSentimentParams {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
247
|
+
/**
|
|
248
|
+
* Filter by asset name
|
|
249
|
+
*/
|
|
250
|
+
interface AssetNameFilter {
|
|
251
|
+
field: 'asset_name';
|
|
252
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'matches' | 'contains_case_insensitive' | 'not_contains_case_insensitive';
|
|
253
|
+
value: string | Array<string>;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Filter by theme
|
|
257
|
+
*/
|
|
258
|
+
interface ThemeFilter {
|
|
259
|
+
field: 'theme';
|
|
260
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'matches' | 'contains_case_insensitive' | 'not_contains_case_insensitive';
|
|
261
|
+
value: string | Array<string>;
|
|
262
|
+
}
|
|
263
|
+
interface RegionIDFilter {
|
|
264
|
+
/**
|
|
265
|
+
* - `region` - Deprecated
|
|
266
|
+
*/
|
|
267
|
+
field: 'region_id' | 'region';
|
|
268
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
269
|
+
value: string | Array<string>;
|
|
270
|
+
}
|
|
271
|
+
interface TopicIDFilter {
|
|
272
|
+
/**
|
|
273
|
+
* - `topic` - Deprecated
|
|
274
|
+
*/
|
|
275
|
+
field: 'topic_id' | 'topic';
|
|
276
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
277
|
+
value: string | Array<string>;
|
|
278
|
+
}
|
|
279
|
+
interface ModelIDFilter {
|
|
189
280
|
/**
|
|
190
|
-
*
|
|
191
|
-
* operator.
|
|
281
|
+
* - `model` - Deprecated
|
|
192
282
|
*/
|
|
193
|
-
|
|
283
|
+
field: 'model_id' | 'model';
|
|
284
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
285
|
+
value: string | Array<string>;
|
|
286
|
+
}
|
|
287
|
+
interface TagIDFilter {
|
|
288
|
+
/**
|
|
289
|
+
* - `tag` - Deprecated
|
|
290
|
+
*/
|
|
291
|
+
field: 'tag_id' | 'tag';
|
|
292
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
293
|
+
value: string | Array<string>;
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Filter by prompt text
|
|
297
|
+
*/
|
|
298
|
+
interface PromptFilter {
|
|
299
|
+
field: 'prompt';
|
|
300
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'matches' | 'contains_case_insensitive' | 'not_contains_case_insensitive';
|
|
301
|
+
value: string | Array<string>;
|
|
194
302
|
}
|
|
195
303
|
}
|
|
196
304
|
export interface ReportVisibilityParams {
|
|
@@ -215,10 +323,9 @@ export interface ReportVisibilityParams {
|
|
|
215
323
|
*/
|
|
216
324
|
dimensions?: Array<'date' | 'region' | 'topic' | 'model' | 'asset_name' | 'prompt' | 'tag'>;
|
|
217
325
|
/**
|
|
218
|
-
* List of filters to apply to the report.
|
|
219
|
-
* value.
|
|
326
|
+
* List of filters to apply to the visibility report.
|
|
220
327
|
*/
|
|
221
|
-
filters?: Array<ReportVisibilityParams.
|
|
328
|
+
filters?: Array<ReportVisibilityParams.RegionIDFilter | ReportVisibilityParams.ModelIDFilter | ReportVisibilityParams.TopicIDFilter | ReportVisibilityParams.AssetNameFilter | ReportVisibilityParams.TagIDFilter | ReportVisibilityParams.PromptFilter>;
|
|
222
329
|
/**
|
|
223
330
|
* Custom ordering of the report results.
|
|
224
331
|
*
|
|
@@ -240,14 +347,53 @@ export interface ReportVisibilityParams {
|
|
|
240
347
|
pagination?: Shared.Pagination;
|
|
241
348
|
}
|
|
242
349
|
export declare namespace ReportVisibilityParams {
|
|
243
|
-
interface
|
|
244
|
-
|
|
245
|
-
|
|
350
|
+
interface RegionIDFilter {
|
|
351
|
+
/**
|
|
352
|
+
* - `region` - Deprecated
|
|
353
|
+
*/
|
|
354
|
+
field: 'region_id' | 'region';
|
|
355
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
356
|
+
value: string | Array<string>;
|
|
357
|
+
}
|
|
358
|
+
interface ModelIDFilter {
|
|
359
|
+
/**
|
|
360
|
+
* - `model` - Deprecated
|
|
361
|
+
*/
|
|
362
|
+
field: 'model_id' | 'model';
|
|
363
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
364
|
+
value: string | Array<string>;
|
|
365
|
+
}
|
|
366
|
+
interface TopicIDFilter {
|
|
367
|
+
/**
|
|
368
|
+
* - `topic` - Deprecated
|
|
369
|
+
*/
|
|
370
|
+
field: 'topic_id' | 'topic';
|
|
371
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
372
|
+
value: string | Array<string>;
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Filter by asset name
|
|
376
|
+
*/
|
|
377
|
+
interface AssetNameFilter {
|
|
378
|
+
field: 'asset_name';
|
|
379
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'matches' | 'contains_case_insensitive' | 'not_contains_case_insensitive';
|
|
380
|
+
value: string | Array<string>;
|
|
381
|
+
}
|
|
382
|
+
interface TagIDFilter {
|
|
246
383
|
/**
|
|
247
|
-
*
|
|
248
|
-
* operator.
|
|
384
|
+
* - `tag` - Deprecated
|
|
249
385
|
*/
|
|
250
|
-
|
|
386
|
+
field: 'tag_id' | 'tag';
|
|
387
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
388
|
+
value: string | Array<string>;
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Filter by prompt text
|
|
392
|
+
*/
|
|
393
|
+
interface PromptFilter {
|
|
394
|
+
field: 'prompt';
|
|
395
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'matches' | 'contains_case_insensitive' | 'not_contains_case_insensitive';
|
|
396
|
+
value: string | Array<string>;
|
|
251
397
|
}
|
|
252
398
|
}
|
|
253
399
|
export declare namespace Reports {
|