profoundai 0.35.0 → 0.36.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 +33 -0
- package/client.d.mts +13 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +13 -2
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/logs/raw.d.mts +1 -17
- package/resources/logs/raw.d.mts.map +1 -1
- package/resources/logs/raw.d.ts +1 -17
- package/resources/logs/raw.d.ts.map +1 -1
- package/resources/prompt-volumes.d.mts +112 -0
- package/resources/prompt-volumes.d.mts.map +1 -0
- package/resources/prompt-volumes.d.ts +112 -0
- package/resources/prompt-volumes.d.ts.map +1 -0
- package/resources/prompt-volumes.js +21 -0
- package/resources/prompt-volumes.js.map +1 -0
- package/resources/prompt-volumes.mjs +17 -0
- package/resources/prompt-volumes.mjs.map +1 -0
- package/resources/prompts.d.mts +1 -46
- package/resources/prompts.d.mts.map +1 -1
- package/resources/prompts.d.ts +1 -46
- package/resources/prompts.d.ts.map +1 -1
- package/resources/reports.d.mts +229 -147
- package/resources/reports.d.mts.map +1 -1
- package/resources/reports.d.ts +229 -147
- package/resources/reports.d.ts.map +1 -1
- package/resources/reports.js +68 -0
- package/resources/reports.js.map +1 -1
- package/resources/reports.mjs +68 -0
- package/resources/reports.mjs.map +1 -1
- package/resources/shared.d.mts +76 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +76 -0
- package/resources/shared.d.ts.map +1 -1
- package/src/client.ts +33 -0
- package/src/resources/index.ts +11 -0
- package/src/resources/logs/raw.ts +2 -136
- package/src/resources/prompt-volumes.ts +203 -0
- package/src/resources/prompts.ts +6 -78
- package/src/resources/reports.ts +322 -299
- package/src/resources/shared.ts +221 -0
- 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
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as Shared from './shared';
|
|
5
|
+
import { APIPromise } from '../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
|
|
8
|
+
export class PromptVolumes extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get Volume
|
|
11
|
+
*/
|
|
12
|
+
createVolume(body: PromptVolumeCreateVolumeParams, options?: RequestOptions): APIPromise<unknown> {
|
|
13
|
+
return this._client.post('/v1/prompt-volumes/volume', { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Get Citation Prompts
|
|
18
|
+
*/
|
|
19
|
+
listCitationPrompts(
|
|
20
|
+
query: PromptVolumeListCitationPromptsParams,
|
|
21
|
+
options?: RequestOptions,
|
|
22
|
+
): APIPromise<unknown> {
|
|
23
|
+
return this._client.get('/v1/prompt-volumes/citation-prompts', { query, ...options });
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type PromptVolumeCreateVolumeResponse = unknown;
|
|
28
|
+
|
|
29
|
+
export type PromptVolumeListCitationPromptsResponse = unknown;
|
|
30
|
+
|
|
31
|
+
export interface PromptVolumeCreateVolumeParams {
|
|
32
|
+
/**
|
|
33
|
+
* End date for the query. Accepts formats: YYYY-MM-DD, YYYY-MM-DD HH:MM, or full
|
|
34
|
+
* ISO timestamp.
|
|
35
|
+
*/
|
|
36
|
+
end_date: string;
|
|
37
|
+
|
|
38
|
+
metrics: Array<'volume' | 'change'>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Start date for the query. Accepts formats: YYYY-MM-DD, YYYY-MM-DD HH:MM, or full
|
|
42
|
+
* ISO timestamp.
|
|
43
|
+
*/
|
|
44
|
+
start_date: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Date interval for the report. (only used with date dimension)
|
|
48
|
+
*/
|
|
49
|
+
date_interval?: 'hour' | 'day' | 'week' | 'month' | 'year' | 'relative_week';
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Dimensions to group the report by.
|
|
53
|
+
*/
|
|
54
|
+
dimensions?: Array<'keyword' | 'date' | 'platform' | 'country_code' | 'matching_type' | 'frequency'>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Filters to apply to the query
|
|
58
|
+
*/
|
|
59
|
+
filters?: Array<
|
|
60
|
+
| PromptVolumeCreateVolumeParams.CountryCodeFilter
|
|
61
|
+
| PromptVolumeCreateVolumeParams.FrequencyFilter
|
|
62
|
+
| PromptVolumeCreateVolumeParams.KeywordFilter
|
|
63
|
+
| PromptVolumeCreateVolumeParams.MatchingTypeFilter
|
|
64
|
+
| PromptVolumeCreateVolumeParams.PlatformFilter
|
|
65
|
+
>;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Custom ordering of the report results.
|
|
69
|
+
*
|
|
70
|
+
* The order is a record of key-value pairs where:
|
|
71
|
+
*
|
|
72
|
+
* - key is the field to order by, which can be a metric or dimension
|
|
73
|
+
* - value is the direction of the order, either 'asc' for ascending or 'desc' for
|
|
74
|
+
* descending.
|
|
75
|
+
*
|
|
76
|
+
* When not specified, the default order is the first metric in the query
|
|
77
|
+
* descending.
|
|
78
|
+
*/
|
|
79
|
+
order_by?: { [key: string]: 'asc' | 'desc' };
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Pagination settings for the report results.
|
|
83
|
+
*/
|
|
84
|
+
pagination?: Shared.Pagination;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export namespace PromptVolumeCreateVolumeParams {
|
|
88
|
+
/**
|
|
89
|
+
* Filter by country code
|
|
90
|
+
*/
|
|
91
|
+
export interface CountryCodeFilter {
|
|
92
|
+
field: 'country_code';
|
|
93
|
+
|
|
94
|
+
operator:
|
|
95
|
+
| 'is'
|
|
96
|
+
| 'not_is'
|
|
97
|
+
| 'in'
|
|
98
|
+
| 'not_in'
|
|
99
|
+
| 'contains'
|
|
100
|
+
| 'not_contains'
|
|
101
|
+
| 'matches'
|
|
102
|
+
| 'contains_case_insensitive'
|
|
103
|
+
| 'not_contains_case_insensitive';
|
|
104
|
+
|
|
105
|
+
value: string | Array<string>;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Filter by frequency
|
|
110
|
+
*/
|
|
111
|
+
export interface FrequencyFilter {
|
|
112
|
+
field: 'frequency';
|
|
113
|
+
|
|
114
|
+
operator:
|
|
115
|
+
| 'is'
|
|
116
|
+
| 'not_is'
|
|
117
|
+
| 'in'
|
|
118
|
+
| 'not_in'
|
|
119
|
+
| 'contains'
|
|
120
|
+
| 'not_contains'
|
|
121
|
+
| 'matches'
|
|
122
|
+
| 'contains_case_insensitive'
|
|
123
|
+
| 'not_contains_case_insensitive';
|
|
124
|
+
|
|
125
|
+
value: string | Array<string>;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Filter by keyword
|
|
130
|
+
*/
|
|
131
|
+
export interface KeywordFilter {
|
|
132
|
+
field: 'keyword';
|
|
133
|
+
|
|
134
|
+
operator:
|
|
135
|
+
| 'is'
|
|
136
|
+
| 'not_is'
|
|
137
|
+
| 'in'
|
|
138
|
+
| 'not_in'
|
|
139
|
+
| 'contains'
|
|
140
|
+
| 'not_contains'
|
|
141
|
+
| 'matches'
|
|
142
|
+
| 'contains_case_insensitive'
|
|
143
|
+
| 'not_contains_case_insensitive';
|
|
144
|
+
|
|
145
|
+
value: string | Array<string>;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Filter by matching type
|
|
150
|
+
*/
|
|
151
|
+
export interface MatchingTypeFilter {
|
|
152
|
+
field: 'matching_type';
|
|
153
|
+
|
|
154
|
+
operator:
|
|
155
|
+
| 'is'
|
|
156
|
+
| 'not_is'
|
|
157
|
+
| 'in'
|
|
158
|
+
| 'not_in'
|
|
159
|
+
| 'contains'
|
|
160
|
+
| 'not_contains'
|
|
161
|
+
| 'matches'
|
|
162
|
+
| 'contains_case_insensitive'
|
|
163
|
+
| 'not_contains_case_insensitive';
|
|
164
|
+
|
|
165
|
+
value: string | Array<string>;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Filter by platform
|
|
170
|
+
*/
|
|
171
|
+
export interface PlatformFilter {
|
|
172
|
+
field: 'platform';
|
|
173
|
+
|
|
174
|
+
operator:
|
|
175
|
+
| 'is'
|
|
176
|
+
| 'not_is'
|
|
177
|
+
| 'in'
|
|
178
|
+
| 'not_in'
|
|
179
|
+
| 'contains'
|
|
180
|
+
| 'not_contains'
|
|
181
|
+
| 'matches'
|
|
182
|
+
| 'contains_case_insensitive'
|
|
183
|
+
| 'not_contains_case_insensitive';
|
|
184
|
+
|
|
185
|
+
value: string | Array<string>;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export interface PromptVolumeListCitationPromptsParams {
|
|
190
|
+
/**
|
|
191
|
+
* Domain to look up (e.g. ramp.com)
|
|
192
|
+
*/
|
|
193
|
+
input_domain: string;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export declare namespace PromptVolumes {
|
|
197
|
+
export {
|
|
198
|
+
type PromptVolumeCreateVolumeResponse as PromptVolumeCreateVolumeResponse,
|
|
199
|
+
type PromptVolumeListCitationPromptsResponse as PromptVolumeListCitationPromptsResponse,
|
|
200
|
+
type PromptVolumeCreateVolumeParams as PromptVolumeCreateVolumeParams,
|
|
201
|
+
type PromptVolumeListCitationPromptsParams as PromptVolumeListCitationPromptsParams,
|
|
202
|
+
};
|
|
203
|
+
}
|
package/src/resources/prompts.ts
CHANGED
|
@@ -93,13 +93,13 @@ export interface PromptAnswersParams {
|
|
|
93
93
|
* List of filters to apply to the answers report.
|
|
94
94
|
*/
|
|
95
95
|
filters?: Array<
|
|
96
|
-
|
|
|
97
|
-
|
|
|
98
|
-
|
|
|
99
|
-
|
|
|
96
|
+
| Shared.RegionIDFilter
|
|
97
|
+
| Shared.ModelIDFilter
|
|
98
|
+
| Shared.TagIDFilter
|
|
99
|
+
| Shared.PromptTypeFilter
|
|
100
100
|
| Shared.PromptFilter
|
|
101
|
-
|
|
|
102
|
-
|
|
|
101
|
+
| Shared.PersonaIDFilter
|
|
102
|
+
| Shared.TopicIDFilter
|
|
103
103
|
| PromptAnswersParams.AssetIDFilter
|
|
104
104
|
| Shared.AssetNameFilter
|
|
105
105
|
>;
|
|
@@ -113,78 +113,6 @@ export interface PromptAnswersParams {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
export namespace PromptAnswersParams {
|
|
116
|
-
export interface ProfoundAnswerEngineInsightsFiltersRegionIDFilter {
|
|
117
|
-
/**
|
|
118
|
-
* - `region` - Deprecated
|
|
119
|
-
*/
|
|
120
|
-
field: 'region_id' | 'region';
|
|
121
|
-
|
|
122
|
-
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
123
|
-
|
|
124
|
-
value: string | Array<string>;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export interface ProfoundAnswerEngineInsightsFiltersModelIDFilter {
|
|
128
|
-
/**
|
|
129
|
-
* - `model` - Deprecated
|
|
130
|
-
*/
|
|
131
|
-
field: 'model_id' | 'model';
|
|
132
|
-
|
|
133
|
-
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
134
|
-
|
|
135
|
-
value: string | Array<string>;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export interface ProfoundAnswerEngineInsightsFiltersTagIDFilter {
|
|
139
|
-
/**
|
|
140
|
-
* - `tag` - Deprecated
|
|
141
|
-
*/
|
|
142
|
-
field: 'tag_id' | 'tag';
|
|
143
|
-
|
|
144
|
-
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
145
|
-
|
|
146
|
-
value: string | Array<string>;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Filter by prompt type (visibility or sentiment)
|
|
151
|
-
*/
|
|
152
|
-
export interface ProfoundAnswerEngineInsightsFiltersPromptTypeFilter {
|
|
153
|
-
field: 'prompt_type';
|
|
154
|
-
|
|
155
|
-
operator:
|
|
156
|
-
| 'is'
|
|
157
|
-
| 'not_is'
|
|
158
|
-
| 'in'
|
|
159
|
-
| 'not_in'
|
|
160
|
-
| 'contains'
|
|
161
|
-
| 'not_contains'
|
|
162
|
-
| 'matches'
|
|
163
|
-
| 'contains_case_insensitive'
|
|
164
|
-
| 'not_contains_case_insensitive';
|
|
165
|
-
|
|
166
|
-
value: 'visibility' | 'sentiment' | Array<'visibility' | 'sentiment'>;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export interface ProfoundAnswerEngineInsightsFiltersPersonaIDFilter {
|
|
170
|
-
field: 'persona_id';
|
|
171
|
-
|
|
172
|
-
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
173
|
-
|
|
174
|
-
value: string | Array<string>;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
export interface ProfoundAnswerEngineInsightsFiltersTopicIDFilter {
|
|
178
|
-
/**
|
|
179
|
-
* - `topic` - Deprecated
|
|
180
|
-
*/
|
|
181
|
-
field: 'topic_id' | 'topic';
|
|
182
|
-
|
|
183
|
-
operator: 'is' | 'not_is' | 'in' | 'not_in';
|
|
184
|
-
|
|
185
|
-
value: string | Array<string>;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
116
|
export interface AssetIDFilter {
|
|
189
117
|
field: 'asset_id';
|
|
190
118
|
|