@elmohq/sdk 0.1.3 → 0.2.1
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 +5 -71
- package/dist/calls/index.d.mts.map +1 -1
- package/dist/calls/index.mjs +37 -70
- package/dist/calls/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +15 -28
- package/dist/index.mjs.map +1 -1
- package/dist/{request-options--nBUndY9.d.mts → request-options-BrcRfwq0.d.mts} +9 -77
- package/dist/request-options-BrcRfwq0.d.mts.map +1 -0
- package/dist/{tools-B1lVtYAr.mjs → tools-B2xqLDiH.mjs} +319 -333
- package/dist/tools-B2xqLDiH.mjs.map +1 -0
- package/dist/{tools-Bfx2x86E.d.mts → tools-CQvzoA67.d.mts} +120 -78
- package/dist/tools-CQvzoA67.d.mts.map +1 -0
- package/dist/types/index.d.mts +2 -2
- package/package.json +1 -1
- package/src/calls/brands-citations-domains-list.ts +5 -4
- package/src/calls/brands-citations-urls-list.ts +5 -4
- package/src/calls/brands-query-fanout-get.ts +5 -4
- package/src/client.ts +3 -2
- package/src/resources/analytics.ts +36 -12
- package/src/resources/brands.ts +4 -0
- package/src/types/analytics.ts +105 -3
- package/src/types/index.ts +2 -0
- package/src/types/shared/position.ts +3 -11
- package/dist/request-options--nBUndY9.d.mts.map +0 -1
- package/dist/tools-B1lVtYAr.mjs.map +0 -1
- package/dist/tools-Bfx2x86E.d.mts.map +0 -1
package/dist/calls/index.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { a as PagePromise, g as Client, h as RestCallPromise, t as RequestOptions } from "../request-options
|
|
2
|
-
import { An as ListBrandPromptPerformanceErrors, At as UpdateCompetitorErrors, Bt as ListBrandsErrors,
|
|
3
|
-
//#region src/calls/brands-analytics-get.d.ts
|
|
1
|
+
import { a as PagePromise, g as Client, h as RestCallPromise, t as RequestOptions } from "../request-options-BrcRfwq0.mjs";
|
|
2
|
+
import { An as ListBrandPromptPerformanceErrors, At as UpdateCompetitorErrors, Bt as ListBrandsErrors, Ct as DeleteCompetitorErrors, D as ListPromptsErrors, Dn as ListBrandCitationURLsErrors, Dt as ListCompetitorsErrors, E as GetPromptResponses, Et as GetCompetitorResponses, Ft as CreateBrandErrors, G as ListPromptRunsParams, Gt as UpdateBrandResponses, H as GetRunErrors, I as GetPromptSnapshotErrors, It as CreateBrandParams, L as GetPromptSnapshotParams, Lt as CreateBrandResponses, M as UpdatePromptErrors, Mn as ListBrandPromptPerformanceResponses, Mt as UpdateCompetitorResponses, N as UpdatePromptParams, Nt as Brand, O as ListPromptsParams, On as ListBrandCitationURLsParams, Ot as ListCompetitorsParams, P as UpdatePromptResponses, Pt as BrandsList, Q as RunSummary, R as GetPromptSnapshotResponses, Rt as GetBrandErrors, S as DeletePromptErrors, Sn as GetBrandQueryFanoutParams, St as CreateCompetitorResponses, T as GetPromptErrors, Tn as ListBrandCitationDomainsParams, Tt as GetCompetitorErrors, U as GetRunResponses, Ut as UpdateBrandErrors, Vt as ListBrandsParams, W as ListPromptRunsErrors, Wt as UpdateBrandParams, Xt as ListBrandTagsResponses, Yt as ListBrandTagsErrors, Z as RunList, _n as FanoutQuery, _t as GetMeResponses, a as CreateReportErrors, an as BrandIdPath, at as ListOrganizationsParams, b as CreatePromptParams, bn as GetBrandAnalyticsResponses, bt as CreateCompetitorErrors, c as CreateReportResponses, dt as ListModelsErrors, et as GetOrganizationBillingErrors, f as GetReportResponses, fn as CitationDomain, ft as ListModelsResponses, gt as GetMeErrors, h as ListReportsResponse, hn as CitationURLList, it as ListOrganizationsErrors, j as Prompt, jn as ListBrandPromptPerformanceParams, jt as UpdateCompetitorParams, k as ListPromptsResponse, l as GetReportErrors, ln as BrandQueryFanout, lt as OrganizationList, m as ListReportsParams, mn as CitationURL, n as AnalyzeBrandParams, nn as GetBrandOpportunitiesResponses, nt as GetOrganizationErrors, o as CreateReportParams, p as ListReportsErrors, pn as CitationDomainList, r as AnalyzeBrandResponses, rt as GetOrganizationResponses, st as Organization, t as AnalyzeBrandErrors, tn as GetBrandOpportunitiesErrors, tt as GetOrganizationBillingResponses, u as GetReportParams, 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, zt as GetBrandResponses } from "../tools-CQvzoA67.mjs";
|
|
4
3
|
/**
|
|
5
4
|
* Get a brand's analytics
|
|
6
5
|
*
|
|
@@ -11,36 +10,24 @@ import { An as ListBrandPromptPerformanceErrors, At as UpdateCompetitorErrors, B
|
|
|
11
10
|
* own. Everything else is always included.
|
|
12
11
|
*/
|
|
13
12
|
declare function brandsAnalyticsGet(client: Client, brandId: BrandIdPath, params: GetBrandAnalyticsParams, options?: RequestOptions): RestCallPromise<GetBrandAnalyticsResponses, GetBrandAnalyticsErrors>;
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region src/calls/brands-citations-domains-list.d.ts
|
|
16
13
|
/**
|
|
17
14
|
* List cited domains
|
|
18
15
|
*
|
|
19
16
|
* Domains the engines cited when answering this brand's prompts, categorized and compared against
|
|
20
17
|
* the equal-length window immediately before this one.
|
|
21
18
|
*/
|
|
22
|
-
declare function brandsCitationsDomainsList(client: Client, brandId: BrandIdPath, params: ListBrandCitationDomainsParams, options?: RequestOptions):
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region src/calls/brands-citations-urls-list.d.ts
|
|
19
|
+
declare function brandsCitationsDomainsList(client: Client, brandId: BrandIdPath, params: ListBrandCitationDomainsParams, options?: RequestOptions): PagePromise<CitationDomain, CitationDomainList, ListBrandCitationDomainsErrors>;
|
|
25
20
|
/**
|
|
26
21
|
* List cited URLs
|
|
27
22
|
*
|
|
28
23
|
* Individual pages the engines cited, with their category and page type.
|
|
29
24
|
*/
|
|
30
|
-
declare function brandsCitationsURLsList(client: Client, brandId: BrandIdPath, params: ListBrandCitationURLsParams, options?: RequestOptions):
|
|
31
|
-
//#endregion
|
|
32
|
-
//#region src/calls/brands-create.d.ts
|
|
25
|
+
declare function brandsCitationsURLsList(client: Client, brandId: BrandIdPath, params: ListBrandCitationURLsParams, options?: RequestOptions): PagePromise<CitationURL, CitationURLList, ListBrandCitationURLsErrors>;
|
|
33
26
|
/** Create a brand */
|
|
34
27
|
declare function brandsCreate(client: Client, params: CreateBrandParams, options?: RequestOptions): RestCallPromise<CreateBrandResponses, CreateBrandErrors>;
|
|
35
|
-
//#endregion
|
|
36
|
-
//#region src/calls/brands-get.d.ts
|
|
37
28
|
/** Get a brand */
|
|
38
29
|
declare function brandsGet(client: Client, brandId: string, options?: RequestOptions): RestCallPromise<GetBrandResponses, GetBrandErrors>;
|
|
39
|
-
//#endregion
|
|
40
|
-
//#region src/calls/brands-list.d.ts
|
|
41
30
|
declare function brandsList(client: Client, params?: ListBrandsParams, options?: RequestOptions): PagePromise<Brand, BrandsList, ListBrandsErrors>;
|
|
42
|
-
//#endregion
|
|
43
|
-
//#region src/calls/brands-opportunities-get.d.ts
|
|
44
31
|
/**
|
|
45
32
|
* Get the latest opportunities report
|
|
46
33
|
*
|
|
@@ -59,8 +46,6 @@ declare function brandsList(client: Client, params?: ListBrandsParams, options?:
|
|
|
59
46
|
* @experimental
|
|
60
47
|
*/
|
|
61
48
|
declare function brandsOpportunitiesGet(client: Client, brandId: BrandIdPath, options?: RequestOptions): RestCallPromise<GetBrandOpportunitiesResponses, GetBrandOpportunitiesErrors>;
|
|
62
|
-
//#endregion
|
|
63
|
-
//#region src/calls/brands-prompt-performance-list.d.ts
|
|
64
49
|
/**
|
|
65
50
|
* List prompt performance
|
|
66
51
|
*
|
|
@@ -71,17 +56,13 @@ declare function brandsOpportunitiesGet(client: Client, brandId: BrandIdPath, op
|
|
|
71
56
|
* not appear here.
|
|
72
57
|
*/
|
|
73
58
|
declare function brandsPromptPerformanceList(client: Client, brandId: BrandIdPath, params: ListBrandPromptPerformanceParams, options?: RequestOptions): RestCallPromise<ListBrandPromptPerformanceResponses, ListBrandPromptPerformanceErrors>;
|
|
74
|
-
//#endregion
|
|
75
|
-
//#region src/calls/brands-query-fanout-get.d.ts
|
|
76
59
|
/**
|
|
77
60
|
* Get query fan-out
|
|
78
61
|
*
|
|
79
62
|
* The searches engines ran while answering this brand's prompts. Engines that don't expose their
|
|
80
63
|
* searches still contribute runs, so `coverageRate` is the honest denominator.
|
|
81
64
|
*/
|
|
82
|
-
declare function brandsQueryFanoutGet(client: Client, brandId: BrandIdPath, params: GetBrandQueryFanoutParams, options?: RequestOptions):
|
|
83
|
-
//#endregion
|
|
84
|
-
//#region src/calls/brands-tags-list.d.ts
|
|
65
|
+
declare function brandsQueryFanoutGet(client: Client, brandId: BrandIdPath, params: GetBrandQueryFanoutParams, options?: RequestOptions): PagePromise<FanoutQuery, BrandQueryFanout, GetBrandQueryFanoutErrors>;
|
|
85
66
|
/**
|
|
86
67
|
* List a brand's tags
|
|
87
68
|
*
|
|
@@ -92,31 +73,17 @@ declare function brandsQueryFanoutGet(client: Client, brandId: BrandIdPath, para
|
|
|
92
73
|
* `branded` and `unbranded` are computed by Elmo and always listed.
|
|
93
74
|
*/
|
|
94
75
|
declare function brandsTagsList(client: Client, brandId: BrandIdPath, options?: RequestOptions): RestCallPromise<ListBrandTagsResponses, ListBrandTagsErrors>;
|
|
95
|
-
//#endregion
|
|
96
|
-
//#region src/calls/brands-update.d.ts
|
|
97
76
|
/** Update a brand */
|
|
98
77
|
declare function brandsUpdate(client: Client, brandId: string, params: UpdateBrandParams, options?: RequestOptions): RestCallPromise<UpdateBrandResponses, UpdateBrandErrors>;
|
|
99
|
-
//#endregion
|
|
100
|
-
//#region src/calls/competitors-create.d.ts
|
|
101
78
|
/** Add a competitor */
|
|
102
79
|
declare function competitorsCreate(client: Client, params: CreateCompetitorParams, options?: RequestOptions): RestCallPromise<CreateCompetitorResponses, CreateCompetitorErrors>;
|
|
103
|
-
//#endregion
|
|
104
|
-
//#region src/calls/competitors-delete.d.ts
|
|
105
80
|
/** Delete a competitor */
|
|
106
81
|
declare function competitorsDelete(client: Client, competitorId: string, options?: RequestOptions): RestCallPromise<DeleteCompetitorResponses, DeleteCompetitorErrors>;
|
|
107
|
-
//#endregion
|
|
108
|
-
//#region src/calls/competitors-get.d.ts
|
|
109
82
|
/** Get a competitor */
|
|
110
83
|
declare function competitorsGet(client: Client, competitorId: string, options?: RequestOptions): RestCallPromise<GetCompetitorResponses, GetCompetitorErrors>;
|
|
111
|
-
//#endregion
|
|
112
|
-
//#region src/calls/competitors-list.d.ts
|
|
113
84
|
declare function competitorsList(client: Client, params?: ListCompetitorsParams, options?: RequestOptions): PagePromise<Competitor, CompetitorsList, ListCompetitorsErrors>;
|
|
114
|
-
//#endregion
|
|
115
|
-
//#region src/calls/competitors-update.d.ts
|
|
116
85
|
/** Update a competitor */
|
|
117
86
|
declare function competitorsUpdate(client: Client, competitorId: string, params: UpdateCompetitorParams, options?: RequestOptions): RestCallPromise<UpdateCompetitorResponses, UpdateCompetitorErrors>;
|
|
118
|
-
//#endregion
|
|
119
|
-
//#region src/calls/me-get.d.ts
|
|
120
87
|
/**
|
|
121
88
|
* Describe the calling key
|
|
122
89
|
*
|
|
@@ -124,8 +91,6 @@ declare function competitorsUpdate(client: Client, competitorId: string, params:
|
|
|
124
91
|
* no scope, so it is always safe to call first when wiring up an integration.
|
|
125
92
|
*/
|
|
126
93
|
declare function meGet(client: Client, options?: RequestOptions): RestCallPromise<GetMeResponses, GetMeErrors>;
|
|
127
|
-
//#endregion
|
|
128
|
-
//#region src/calls/models-list.d.ts
|
|
129
94
|
/**
|
|
130
95
|
* List trackable models
|
|
131
96
|
*
|
|
@@ -135,8 +100,6 @@ declare function meGet(client: Client, options?: RequestOptions): RestCallPromis
|
|
|
135
100
|
* Requires no scope.
|
|
136
101
|
*/
|
|
137
102
|
declare function modelsList(client: Client, options?: RequestOptions): RestCallPromise<ListModelsResponses, ListModelsErrors>;
|
|
138
|
-
//#endregion
|
|
139
|
-
//#region src/calls/organizations-billing-get.d.ts
|
|
140
103
|
/**
|
|
141
104
|
* Get billing state
|
|
142
105
|
*
|
|
@@ -151,8 +114,6 @@ declare function modelsList(client: Client, options?: RequestOptions): RestCallP
|
|
|
151
114
|
* limits, so callers need no special case.
|
|
152
115
|
*/
|
|
153
116
|
declare function organizationsBillingGet(client: Client, organizationId: string, options?: RequestOptions): RestCallPromise<GetOrganizationBillingResponses, GetOrganizationBillingErrors>;
|
|
154
|
-
//#endregion
|
|
155
|
-
//#region src/calls/organizations-get.d.ts
|
|
156
117
|
/**
|
|
157
118
|
* Get an organization
|
|
158
119
|
*
|
|
@@ -160,23 +121,17 @@ declare function organizationsBillingGet(client: Client, organizationId: string,
|
|
|
160
121
|
* does not exist.
|
|
161
122
|
*/
|
|
162
123
|
declare function organizationsGet(client: Client, organizationId: string, options?: RequestOptions): RestCallPromise<GetOrganizationResponses, GetOrganizationErrors>;
|
|
163
|
-
//#endregion
|
|
164
|
-
//#region src/calls/organizations-list.d.ts
|
|
165
124
|
/**
|
|
166
125
|
* One entry for an organization key — the one it acts inside. Every organization for an instance
|
|
167
126
|
* admin key. No scope required: a key can only ever see the organization it is already bound to.
|
|
168
127
|
*/
|
|
169
128
|
declare function organizationsList(client: Client, params?: ListOrganizationsParams, options?: RequestOptions): PagePromise<Organization, OrganizationList, ListOrganizationsErrors>;
|
|
170
|
-
//#endregion
|
|
171
|
-
//#region src/calls/prompts-create.d.ts
|
|
172
129
|
/**
|
|
173
130
|
* Create a new prompt
|
|
174
131
|
*
|
|
175
132
|
* Create a new prompt for a brand. This will automatically schedule the prompt for execution.
|
|
176
133
|
*/
|
|
177
134
|
declare function promptsCreate(client: Client, params: CreatePromptParams, options?: RequestOptions): RestCallPromise<CreatePromptResponses, CreatePromptErrors>;
|
|
178
|
-
//#endregion
|
|
179
|
-
//#region src/calls/prompts-delete.d.ts
|
|
180
135
|
/**
|
|
181
136
|
* Delete a prompt
|
|
182
137
|
*
|
|
@@ -188,24 +143,18 @@ declare function promptsCreate(client: Client, params: CreatePromptParams, optio
|
|
|
188
143
|
* history and frees the plan slot.
|
|
189
144
|
*/
|
|
190
145
|
declare function promptsDelete(client: Client, promptId: string, options?: RequestOptions): RestCallPromise<DeletePromptResponses, DeletePromptErrors>;
|
|
191
|
-
//#endregion
|
|
192
|
-
//#region src/calls/prompts-get.d.ts
|
|
193
146
|
/**
|
|
194
147
|
* Get a prompt
|
|
195
148
|
*
|
|
196
149
|
* Retrieve a specific prompt by ID
|
|
197
150
|
*/
|
|
198
151
|
declare function promptsGet(client: Client, promptId: string, options?: RequestOptions): RestCallPromise<GetPromptResponses, GetPromptErrors>;
|
|
199
|
-
//#endregion
|
|
200
|
-
//#region src/calls/prompts-list.d.ts
|
|
201
152
|
/**
|
|
202
153
|
* List all prompts
|
|
203
154
|
*
|
|
204
155
|
* Retrieve a paginated list of all prompts across all brands
|
|
205
156
|
*/
|
|
206
157
|
declare function promptsList(client: Client, params?: ListPromptsParams, options?: RequestOptions): PagePromise<Prompt, ListPromptsResponse, ListPromptsErrors>;
|
|
207
|
-
//#endregion
|
|
208
|
-
//#region src/calls/prompts-runs-get.d.ts
|
|
209
158
|
/**
|
|
210
159
|
* Get a run
|
|
211
160
|
*
|
|
@@ -215,8 +164,6 @@ declare function promptsList(client: Client, params?: ListPromptsParams, options
|
|
|
215
164
|
* this API.
|
|
216
165
|
*/
|
|
217
166
|
declare function promptsRunsGet(client: Client, promptId: string, runId: string, options?: RequestOptions): RestCallPromise<GetRunResponses, GetRunErrors>;
|
|
218
|
-
//#endregion
|
|
219
|
-
//#region src/calls/prompts-runs-list.d.ts
|
|
220
167
|
/**
|
|
221
168
|
* List runs for a prompt
|
|
222
169
|
*
|
|
@@ -224,16 +171,12 @@ declare function promptsRunsGet(client: Client, promptId: string, runId: string,
|
|
|
224
171
|
* small enough to page through. Fetch `promptsRunsGet()` for the answer itself.
|
|
225
172
|
*/
|
|
226
173
|
declare function promptsRunsList(client: Client, promptId: string, params: ListPromptRunsParams, options?: RequestOptions): PagePromise<RunSummary, RunList, ListPromptRunsErrors>;
|
|
227
|
-
//#endregion
|
|
228
|
-
//#region src/calls/prompts-snapshot-get.d.ts
|
|
229
174
|
/**
|
|
230
175
|
* Get an aggregated snapshot of mention and citation analytics for a specific prompt over a date
|
|
231
176
|
* range. Use this to identify competitive gaps, track brand visibility trends, and discover top
|
|
232
177
|
* cited URLs.
|
|
233
178
|
*/
|
|
234
179
|
declare function promptsSnapshotGet(client: Client, promptId: string, params: GetPromptSnapshotParams, options?: RequestOptions): RestCallPromise<GetPromptSnapshotResponses, GetPromptSnapshotErrors>;
|
|
235
|
-
//#endregion
|
|
236
|
-
//#region src/calls/prompts-update.d.ts
|
|
237
180
|
/**
|
|
238
181
|
* Update a prompt
|
|
239
182
|
*
|
|
@@ -241,8 +184,6 @@ declare function promptsSnapshotGet(client: Client, promptId: string, params: Ge
|
|
|
241
184
|
* or unschedules the recurring run job.
|
|
242
185
|
*/
|
|
243
186
|
declare function promptsUpdate(client: Client, promptId: string, params: UpdatePromptParams, options?: RequestOptions): RestCallPromise<UpdatePromptResponses, UpdatePromptErrors>;
|
|
244
|
-
//#endregion
|
|
245
|
-
//#region src/calls/reports-create.d.ts
|
|
246
187
|
/**
|
|
247
188
|
* Create a report
|
|
248
189
|
*
|
|
@@ -253,8 +194,6 @@ declare function promptsUpdate(client: Client, promptId: string, params: UpdateP
|
|
|
253
194
|
* Requires an instance admin key; organization keys receive `403`.
|
|
254
195
|
*/
|
|
255
196
|
declare function reportsCreate(client: Client, params: CreateReportParams, options?: RequestOptions): RestCallPromise<CreateReportResponses, CreateReportErrors>;
|
|
256
|
-
//#endregion
|
|
257
|
-
//#region src/calls/reports-get.d.ts
|
|
258
197
|
/**
|
|
259
198
|
* Get report status and data
|
|
260
199
|
*
|
|
@@ -264,16 +203,12 @@ declare function reportsCreate(client: Client, params: CreateReportParams, optio
|
|
|
264
203
|
* Requires an instance admin key; organization keys receive `403`.
|
|
265
204
|
*/
|
|
266
205
|
declare function reportsGet(client: Client, reportId: string, params?: GetReportParams, options?: RequestOptions): RestCallPromise<GetReportResponses, GetReportErrors>;
|
|
267
|
-
//#endregion
|
|
268
|
-
//#region src/calls/reports-list.d.ts
|
|
269
206
|
/**
|
|
270
207
|
* Retrieve a paginated list of all reports, ordered by creation date (newest first).
|
|
271
208
|
*
|
|
272
209
|
* Requires an instance admin key; organization keys receive `403`.
|
|
273
210
|
*/
|
|
274
211
|
declare function reportsList(client: Client, params?: ListReportsParams, options?: RequestOptions): PagePromise<ReportSummary, ListReportsResponse, ListReportsErrors>;
|
|
275
|
-
//#endregion
|
|
276
|
-
//#region src/calls/tools-analyze.d.ts
|
|
277
212
|
/**
|
|
278
213
|
* Analyze a website
|
|
279
214
|
*
|
|
@@ -283,6 +218,5 @@ declare function reportsList(client: Client, params?: ListReportsParams, options
|
|
|
283
218
|
* Requires an instance admin key; organization keys receive `403`.
|
|
284
219
|
*/
|
|
285
220
|
declare function toolsAnalyze(client: Client, params: AnalyzeBrandParams, options?: RequestOptions): RestCallPromise<AnalyzeBrandResponses, AnalyzeBrandErrors>;
|
|
286
|
-
//#endregion
|
|
287
221
|
export { brandsAnalyticsGet, brandsCitationsDomainsList, brandsCitationsURLsList, brandsCreate, brandsGet, brandsList, brandsOpportunitiesGet, brandsPromptPerformanceList, brandsQueryFanoutGet, brandsTagsList, brandsUpdate, competitorsCreate, competitorsDelete, competitorsGet, competitorsList, competitorsUpdate, meGet, modelsList, organizationsBillingGet, organizationsGet, organizationsList, promptsCreate, promptsDelete, promptsGet, promptsList, promptsRunsGet, promptsRunsList, promptsSnapshotGet, promptsUpdate, reportsCreate, reportsGet, reportsList, toolsAnalyze };
|
|
288
222
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/calls/brands-analytics-get.ts","../../src/calls/brands-citations-domains-list.ts","../../src/calls/brands-citations-urls-list.ts","../../src/calls/brands-create.ts","../../src/calls/brands-get.ts","../../src/calls/brands-list.ts","../../src/calls/brands-opportunities-get.ts","../../src/calls/brands-prompt-performance-list.ts","../../src/calls/brands-query-fanout-get.ts","../../src/calls/brands-tags-list.ts","../../src/calls/brands-update.ts","../../src/calls/competitors-create.ts","../../src/calls/competitors-delete.ts","../../src/calls/competitors-get.ts","../../src/calls/competitors-list.ts","../../src/calls/competitors-update.ts","../../src/calls/me-get.ts","../../src/calls/models-list.ts","../../src/calls/organizations-billing-get.ts","../../src/calls/organizations-get.ts","../../src/calls/organizations-list.ts","../../src/calls/prompts-create.ts","../../src/calls/prompts-delete.ts","../../src/calls/prompts-get.ts","../../src/calls/prompts-list.ts","../../src/calls/prompts-runs-get.ts","../../src/calls/prompts-runs-list.ts","../../src/calls/prompts-snapshot-get.ts","../../src/calls/prompts-update.ts","../../src/calls/reports-create.ts","../../src/calls/reports-get.ts","../../src/calls/reports-list.ts","../../src/calls/tools-analyze.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/calls/brands-analytics-get.ts","../../src/calls/brands-citations-domains-list.ts","../../src/calls/brands-citations-urls-list.ts","../../src/calls/brands-create.ts","../../src/calls/brands-get.ts","../../src/calls/brands-list.ts","../../src/calls/brands-opportunities-get.ts","../../src/calls/brands-prompt-performance-list.ts","../../src/calls/brands-query-fanout-get.ts","../../src/calls/brands-tags-list.ts","../../src/calls/brands-update.ts","../../src/calls/competitors-create.ts","../../src/calls/competitors-delete.ts","../../src/calls/competitors-get.ts","../../src/calls/competitors-list.ts","../../src/calls/competitors-update.ts","../../src/calls/me-get.ts","../../src/calls/models-list.ts","../../src/calls/organizations-billing-get.ts","../../src/calls/organizations-get.ts","../../src/calls/organizations-list.ts","../../src/calls/prompts-create.ts","../../src/calls/prompts-delete.ts","../../src/calls/prompts-get.ts","../../src/calls/prompts-list.ts","../../src/calls/prompts-runs-get.ts","../../src/calls/prompts-runs-list.ts","../../src/calls/prompts-snapshot-get.ts","../../src/calls/prompts-update.ts","../../src/calls/reports-create.ts","../../src/calls/reports-get.ts","../../src/calls/reports-list.ts","../../src/calls/tools-analyze.ts"],"mappings":";;;;;;;;;;;iBAqBgB,mBACd,QAAQ,QACR,SAAS,aACT,QAAQ,yBACR,UAAU,iBACT,gBAAgB,4BAA4B;;;;;;;iBCJ/B,2BACd,QAAQ,QACR,SAAS,aACT,QAAQ,gCACR,UAAU,iBACT,YAAY,gBAAgB,oBAAoB;;;;;;iBCNnC,wBACd,QAAQ,QACR,SAAS,aACT,QAAQ,6BACR,UAAU,iBACT,YAAY,aAAa,iBAAiB;;iBClB7B,aACd,QAAQ,QACR,QAAQ,mBACR,UAAU,iBACT,gBAAgB,sBAAsB;;iBCJzB,UACd,QAAQ,QACR,iBACA,UAAU,iBACT,gBAAgB,mBAAmB;iBCLtB,WACd,QAAQ,QACR,SAAS,kBACT,UAAU,iBACT,YAAY,OAAO,YAAY;;;;;;;;;;;;;;;;;;iBCoBlB,uBACd,QAAQ,QACR,SAAS,aACT,UAAU,iBACT,gBAAgB,gCAAgC;;;;;;;;;;iBCXnC,4BACd,QAAQ,QACR,SAAS,aACT,QAAQ,kCACR,UAAU,iBACT,gBAAgB,qCAAqC;;;;;;;iBCVxC,qBACd,QAAQ,QACR,SAAS,aACT,QAAQ,2BACR,UAAU,iBACT,YAAY,aAAa,kBAAkB;;;;;;;;;;iBCP9B,eACd,QAAQ,QACR,SAAS,aACT,UAAU,iBACT,gBAAgB,wBAAwB;;iBCb3B,aACd,QAAQ,QACR,iBACA,QAAQ,mBACR,UAAU,iBACT,gBAAgB,sBAAsB;;iBCDzB,kBACd,QAAQ,QACR,QAAQ,wBACR,UAAU,iBACT,gBAAgB,2BAA2B;;iBCR9B,kBACd,QAAQ,QACR,sBACA,UAAU,iBACT,gBAAgB,2BAA2B;;iBCJ9B,eACd,QAAQ,QACR,sBACA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WACd,QAAQ,QACR,kBACA,SAAS,iBACT,UAAU,iBACT,gBAAgB,oBAAoB;;;;;;iBCHvB,YACd,QAAQ,QACR,SAAS,mBACT,UAAU,iBACT,YAAY,eAAe,qBAAqB;;;;;;;;;iBCNnC,aACd,QAAQ,QACR,QAAQ,oBACR,UAAU,iBACT,gBAAgB,uBAAuB"}
|
package/dist/calls/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
|
|
1
|
+
import { $ as getBrandAnalyticsDescriptor, A as listModelsDescriptor, B as updateCompetitorDescriptor, D as getOrganizationFields, E as getOrganizationDescriptor, F as deleteCompetitorDescriptor, G as getBrandFields, I as deleteCompetitorFields, J as updateBrandFields, K as listBrandsDescriptor, L as getCompetitorDescriptor, M as getMeDescriptor, O as listOrganizationsDescriptor, P as createCompetitorDescriptor, Q as getBrandOpportunitiesFields, R as getCompetitorFields, S as listPromptRunsFields, T as getOrganizationBillingFields, U as createBrandDescriptor, V as updateCompetitorFields, W as getBrandDescriptor, X as listBrandTagsFields, Y as listBrandTagsDescriptor, Z as getBrandOpportunitiesDescriptor, _ as getPromptSnapshotDescriptor, a as getReportDescriptor, at as listBrandCitationURLsDescriptor, b as getRunFields, ct as listBrandPromptPerformanceFields, d as deletePromptFields, dt as placeParams, et as getBrandAnalyticsFields, f as getPromptDescriptor, ft as pages, g as updatePromptFields, h as updatePromptDescriptor, i as createReportDescriptor, it as listBrandCitationDomainsFields, l as createPromptDescriptor, lt as groupParams, m as listPromptsDescriptor, n as analyzeBrandDescriptor, nt as getBrandQueryFanoutFields, o as getReportFields, ot as listBrandCitationUrlsFields, p as getPromptFields, pt as callPromise, q as updateBrandDescriptor, rt as listBrandCitationDomainsDescriptor, s as listReportsDescriptor, st as listBrandPromptPerformanceDescriptor, tt as getBrandQueryFanoutDescriptor, u as deletePromptDescriptor, ut as mergeParams, v as getPromptSnapshotFields, w as getOrganizationBillingDescriptor, x as listPromptRunsDescriptor, y as getRunDescriptor, z as listCompetitorsDescriptor } from "../tools-B2xqLDiH.mjs";
|
|
2
|
+
// src/calls/brands-analytics-get.ts
|
|
3
3
|
/**
|
|
4
4
|
* Get a brand's analytics
|
|
5
5
|
*
|
|
@@ -15,8 +15,7 @@ function brandsAnalyticsGet(client, brandId, params, options) {
|
|
|
15
15
|
brandId
|
|
16
16
|
}, getBrandAnalyticsFields, "query"), options));
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
//#region src/calls/brands-citations-domains-list.ts
|
|
18
|
+
// src/calls/brands-citations-domains-list.ts
|
|
20
19
|
/**
|
|
21
20
|
* List cited domains
|
|
22
21
|
*
|
|
@@ -24,43 +23,38 @@ function brandsAnalyticsGet(client, brandId, params, options) {
|
|
|
24
23
|
* the equal-length window immediately before this one.
|
|
25
24
|
*/
|
|
26
25
|
function brandsCitationsDomainsList(client, brandId, params, options) {
|
|
27
|
-
return
|
|
26
|
+
return pages(options?.client ?? client, listBrandCitationDomainsDescriptor, mergeParams(placeParams({
|
|
28
27
|
...params,
|
|
29
28
|
brandId
|
|
30
29
|
}, listBrandCitationDomainsFields, "query"), options));
|
|
31
30
|
}
|
|
32
|
-
|
|
33
|
-
//#region src/calls/brands-citations-urls-list.ts
|
|
31
|
+
// src/calls/brands-citations-urls-list.ts
|
|
34
32
|
/**
|
|
35
33
|
* List cited URLs
|
|
36
34
|
*
|
|
37
35
|
* Individual pages the engines cited, with their category and page type.
|
|
38
36
|
*/
|
|
39
37
|
function brandsCitationsURLsList(client, brandId, params, options) {
|
|
40
|
-
return
|
|
38
|
+
return pages(options?.client ?? client, listBrandCitationURLsDescriptor, mergeParams(placeParams({
|
|
41
39
|
...params,
|
|
42
40
|
brandId
|
|
43
41
|
}, listBrandCitationUrlsFields, "query"), options));
|
|
44
42
|
}
|
|
45
|
-
|
|
46
|
-
//#region src/calls/brands-create.ts
|
|
43
|
+
// src/calls/brands-create.ts
|
|
47
44
|
/** Create a brand */
|
|
48
45
|
function brandsCreate(client, params, options) {
|
|
49
46
|
return callPromise(options?.client ?? client, createBrandDescriptor, mergeParams(groupParams(params, "body"), options));
|
|
50
47
|
}
|
|
51
|
-
|
|
52
|
-
//#region src/calls/brands-get.ts
|
|
48
|
+
// src/calls/brands-get.ts
|
|
53
49
|
/** Get a brand */
|
|
54
50
|
function brandsGet(client, brandId, options) {
|
|
55
51
|
return callPromise(options?.client ?? client, getBrandDescriptor, mergeParams(placeParams({ brandId }, getBrandFields, "query"), options));
|
|
56
52
|
}
|
|
57
|
-
|
|
58
|
-
//#region src/calls/brands-list.ts
|
|
53
|
+
// src/calls/brands-list.ts
|
|
59
54
|
function brandsList(client, params, options) {
|
|
60
55
|
return pages(options?.client ?? client, listBrandsDescriptor, mergeParams(groupParams(params, "query"), options));
|
|
61
56
|
}
|
|
62
|
-
|
|
63
|
-
//#region src/calls/brands-opportunities-get.ts
|
|
57
|
+
// src/calls/brands-opportunities-get.ts
|
|
64
58
|
/**
|
|
65
59
|
* Get the latest opportunities report
|
|
66
60
|
*
|
|
@@ -81,8 +75,7 @@ function brandsList(client, params, options) {
|
|
|
81
75
|
function brandsOpportunitiesGet(client, brandId, options) {
|
|
82
76
|
return callPromise(options?.client ?? client, getBrandOpportunitiesDescriptor, mergeParams(placeParams({ brandId }, getBrandOpportunitiesFields, "query"), options));
|
|
83
77
|
}
|
|
84
|
-
|
|
85
|
-
//#region src/calls/brands-prompt-performance-list.ts
|
|
78
|
+
// src/calls/brands-prompt-performance-list.ts
|
|
86
79
|
/**
|
|
87
80
|
* List prompt performance
|
|
88
81
|
*
|
|
@@ -98,8 +91,7 @@ function brandsPromptPerformanceList(client, brandId, params, options) {
|
|
|
98
91
|
brandId
|
|
99
92
|
}, listBrandPromptPerformanceFields, "query"), options));
|
|
100
93
|
}
|
|
101
|
-
|
|
102
|
-
//#region src/calls/brands-query-fanout-get.ts
|
|
94
|
+
// src/calls/brands-query-fanout-get.ts
|
|
103
95
|
/**
|
|
104
96
|
* Get query fan-out
|
|
105
97
|
*
|
|
@@ -107,13 +99,12 @@ function brandsPromptPerformanceList(client, brandId, params, options) {
|
|
|
107
99
|
* searches still contribute runs, so `coverageRate` is the honest denominator.
|
|
108
100
|
*/
|
|
109
101
|
function brandsQueryFanoutGet(client, brandId, params, options) {
|
|
110
|
-
return
|
|
102
|
+
return pages(options?.client ?? client, getBrandQueryFanoutDescriptor, mergeParams(placeParams({
|
|
111
103
|
...params,
|
|
112
104
|
brandId
|
|
113
105
|
}, getBrandQueryFanoutFields, "query"), options));
|
|
114
106
|
}
|
|
115
|
-
|
|
116
|
-
//#region src/calls/brands-tags-list.ts
|
|
107
|
+
// src/calls/brands-tags-list.ts
|
|
117
108
|
/**
|
|
118
109
|
* List a brand's tags
|
|
119
110
|
*
|
|
@@ -126,8 +117,7 @@ function brandsQueryFanoutGet(client, brandId, params, options) {
|
|
|
126
117
|
function brandsTagsList(client, brandId, options) {
|
|
127
118
|
return callPromise(options?.client ?? client, listBrandTagsDescriptor, mergeParams(placeParams({ brandId }, listBrandTagsFields, "query"), options));
|
|
128
119
|
}
|
|
129
|
-
|
|
130
|
-
//#region src/calls/brands-update.ts
|
|
120
|
+
// src/calls/brands-update.ts
|
|
131
121
|
/** Update a brand */
|
|
132
122
|
function brandsUpdate(client, brandId, params, options) {
|
|
133
123
|
return callPromise(options?.client ?? client, updateBrandDescriptor, mergeParams(placeParams({
|
|
@@ -135,31 +125,26 @@ function brandsUpdate(client, brandId, params, options) {
|
|
|
135
125
|
brandId
|
|
136
126
|
}, updateBrandFields, "body"), options));
|
|
137
127
|
}
|
|
138
|
-
|
|
139
|
-
//#region src/calls/competitors-create.ts
|
|
128
|
+
// src/calls/competitors-create.ts
|
|
140
129
|
/** Add a competitor */
|
|
141
130
|
function competitorsCreate(client, params, options) {
|
|
142
131
|
return callPromise(options?.client ?? client, createCompetitorDescriptor, mergeParams(groupParams(params, "body"), options));
|
|
143
132
|
}
|
|
144
|
-
|
|
145
|
-
//#region src/calls/competitors-delete.ts
|
|
133
|
+
// src/calls/competitors-delete.ts
|
|
146
134
|
/** Delete a competitor */
|
|
147
135
|
function competitorsDelete(client, competitorId, options) {
|
|
148
136
|
return callPromise(options?.client ?? client, deleteCompetitorDescriptor, mergeParams(placeParams({ competitorId }, deleteCompetitorFields, "query"), options));
|
|
149
137
|
}
|
|
150
|
-
|
|
151
|
-
//#region src/calls/competitors-get.ts
|
|
138
|
+
// src/calls/competitors-get.ts
|
|
152
139
|
/** Get a competitor */
|
|
153
140
|
function competitorsGet(client, competitorId, options) {
|
|
154
141
|
return callPromise(options?.client ?? client, getCompetitorDescriptor, mergeParams(placeParams({ competitorId }, getCompetitorFields, "query"), options));
|
|
155
142
|
}
|
|
156
|
-
|
|
157
|
-
//#region src/calls/competitors-list.ts
|
|
143
|
+
// src/calls/competitors-list.ts
|
|
158
144
|
function competitorsList(client, params, options) {
|
|
159
145
|
return pages(options?.client ?? client, listCompetitorsDescriptor, mergeParams(groupParams(params, "query"), options));
|
|
160
146
|
}
|
|
161
|
-
|
|
162
|
-
//#region src/calls/competitors-update.ts
|
|
147
|
+
// src/calls/competitors-update.ts
|
|
163
148
|
/** Update a competitor */
|
|
164
149
|
function competitorsUpdate(client, competitorId, params, options) {
|
|
165
150
|
return callPromise(options?.client ?? client, updateCompetitorDescriptor, mergeParams(placeParams({
|
|
@@ -167,8 +152,7 @@ function competitorsUpdate(client, competitorId, params, options) {
|
|
|
167
152
|
competitorId
|
|
168
153
|
}, updateCompetitorFields, "body"), options));
|
|
169
154
|
}
|
|
170
|
-
|
|
171
|
-
//#region src/calls/me-get.ts
|
|
155
|
+
// src/calls/me-get.ts
|
|
172
156
|
/**
|
|
173
157
|
* Describe the calling key
|
|
174
158
|
*
|
|
@@ -178,8 +162,7 @@ function competitorsUpdate(client, competitorId, params, options) {
|
|
|
178
162
|
function meGet(client, options) {
|
|
179
163
|
return callPromise(options?.client ?? client, getMeDescriptor, options);
|
|
180
164
|
}
|
|
181
|
-
|
|
182
|
-
//#region src/calls/models-list.ts
|
|
165
|
+
// src/calls/models-list.ts
|
|
183
166
|
/**
|
|
184
167
|
* List trackable models
|
|
185
168
|
*
|
|
@@ -191,8 +174,7 @@ function meGet(client, options) {
|
|
|
191
174
|
function modelsList(client, options) {
|
|
192
175
|
return callPromise(options?.client ?? client, listModelsDescriptor, options);
|
|
193
176
|
}
|
|
194
|
-
|
|
195
|
-
//#region src/calls/organizations-billing-get.ts
|
|
177
|
+
// src/calls/organizations-billing-get.ts
|
|
196
178
|
/**
|
|
197
179
|
* Get billing state
|
|
198
180
|
*
|
|
@@ -209,8 +191,7 @@ function modelsList(client, options) {
|
|
|
209
191
|
function organizationsBillingGet(client, organizationId, options) {
|
|
210
192
|
return callPromise(options?.client ?? client, getOrganizationBillingDescriptor, mergeParams(placeParams({ organizationId }, getOrganizationBillingFields, "query"), options));
|
|
211
193
|
}
|
|
212
|
-
|
|
213
|
-
//#region src/calls/organizations-get.ts
|
|
194
|
+
// src/calls/organizations-get.ts
|
|
214
195
|
/**
|
|
215
196
|
* Get an organization
|
|
216
197
|
*
|
|
@@ -220,8 +201,7 @@ function organizationsBillingGet(client, organizationId, options) {
|
|
|
220
201
|
function organizationsGet(client, organizationId, options) {
|
|
221
202
|
return callPromise(options?.client ?? client, getOrganizationDescriptor, mergeParams(placeParams({ organizationId }, getOrganizationFields, "query"), options));
|
|
222
203
|
}
|
|
223
|
-
|
|
224
|
-
//#region src/calls/organizations-list.ts
|
|
204
|
+
// src/calls/organizations-list.ts
|
|
225
205
|
/**
|
|
226
206
|
* One entry for an organization key — the one it acts inside. Every organization for an instance
|
|
227
207
|
* admin key. No scope required: a key can only ever see the organization it is already bound to.
|
|
@@ -229,8 +209,7 @@ function organizationsGet(client, organizationId, options) {
|
|
|
229
209
|
function organizationsList(client, params, options) {
|
|
230
210
|
return pages(options?.client ?? client, listOrganizationsDescriptor, mergeParams(groupParams(params, "query"), options));
|
|
231
211
|
}
|
|
232
|
-
|
|
233
|
-
//#region src/calls/prompts-create.ts
|
|
212
|
+
// src/calls/prompts-create.ts
|
|
234
213
|
/**
|
|
235
214
|
* Create a new prompt
|
|
236
215
|
*
|
|
@@ -239,8 +218,7 @@ function organizationsList(client, params, options) {
|
|
|
239
218
|
function promptsCreate(client, params, options) {
|
|
240
219
|
return callPromise(options?.client ?? client, createPromptDescriptor, mergeParams(groupParams(params, "body"), options));
|
|
241
220
|
}
|
|
242
|
-
|
|
243
|
-
//#region src/calls/prompts-delete.ts
|
|
221
|
+
// src/calls/prompts-delete.ts
|
|
244
222
|
/**
|
|
245
223
|
* Delete a prompt
|
|
246
224
|
*
|
|
@@ -254,8 +232,7 @@ function promptsCreate(client, params, options) {
|
|
|
254
232
|
function promptsDelete(client, promptId, options) {
|
|
255
233
|
return callPromise(options?.client ?? client, deletePromptDescriptor, mergeParams(placeParams({ promptId }, deletePromptFields, "query"), options));
|
|
256
234
|
}
|
|
257
|
-
|
|
258
|
-
//#region src/calls/prompts-get.ts
|
|
235
|
+
// src/calls/prompts-get.ts
|
|
259
236
|
/**
|
|
260
237
|
* Get a prompt
|
|
261
238
|
*
|
|
@@ -264,8 +241,7 @@ function promptsDelete(client, promptId, options) {
|
|
|
264
241
|
function promptsGet(client, promptId, options) {
|
|
265
242
|
return callPromise(options?.client ?? client, getPromptDescriptor, mergeParams(placeParams({ promptId }, getPromptFields, "query"), options));
|
|
266
243
|
}
|
|
267
|
-
|
|
268
|
-
//#region src/calls/prompts-list.ts
|
|
244
|
+
// src/calls/prompts-list.ts
|
|
269
245
|
/**
|
|
270
246
|
* List all prompts
|
|
271
247
|
*
|
|
@@ -274,8 +250,7 @@ function promptsGet(client, promptId, options) {
|
|
|
274
250
|
function promptsList(client, params, options) {
|
|
275
251
|
return pages(options?.client ?? client, listPromptsDescriptor, mergeParams(groupParams(params, "query"), options));
|
|
276
252
|
}
|
|
277
|
-
|
|
278
|
-
//#region src/calls/prompts-runs-get.ts
|
|
253
|
+
// src/calls/prompts-runs-get.ts
|
|
279
254
|
/**
|
|
280
255
|
* Get a run
|
|
281
256
|
*
|
|
@@ -290,8 +265,7 @@ function promptsRunsGet(client, promptId, runId, options) {
|
|
|
290
265
|
runId
|
|
291
266
|
}, getRunFields, "query"), options));
|
|
292
267
|
}
|
|
293
|
-
|
|
294
|
-
//#region src/calls/prompts-runs-list.ts
|
|
268
|
+
// src/calls/prompts-runs-list.ts
|
|
295
269
|
/**
|
|
296
270
|
* List runs for a prompt
|
|
297
271
|
*
|
|
@@ -304,8 +278,7 @@ function promptsRunsList(client, promptId, params, options) {
|
|
|
304
278
|
promptId
|
|
305
279
|
}, listPromptRunsFields, "query"), options));
|
|
306
280
|
}
|
|
307
|
-
|
|
308
|
-
//#region src/calls/prompts-snapshot-get.ts
|
|
281
|
+
// src/calls/prompts-snapshot-get.ts
|
|
309
282
|
/**
|
|
310
283
|
* Get an aggregated snapshot of mention and citation analytics for a specific prompt over a date
|
|
311
284
|
* range. Use this to identify competitive gaps, track brand visibility trends, and discover top
|
|
@@ -317,8 +290,7 @@ function promptsSnapshotGet(client, promptId, params, options) {
|
|
|
317
290
|
promptId
|
|
318
291
|
}, getPromptSnapshotFields, "query"), options));
|
|
319
292
|
}
|
|
320
|
-
|
|
321
|
-
//#region src/calls/prompts-update.ts
|
|
293
|
+
// src/calls/prompts-update.ts
|
|
322
294
|
/**
|
|
323
295
|
* Update a prompt
|
|
324
296
|
*
|
|
@@ -331,8 +303,7 @@ function promptsUpdate(client, promptId, params, options) {
|
|
|
331
303
|
promptId
|
|
332
304
|
}, updatePromptFields, "body"), options));
|
|
333
305
|
}
|
|
334
|
-
|
|
335
|
-
//#region src/calls/reports-create.ts
|
|
306
|
+
// src/calls/reports-create.ts
|
|
336
307
|
/**
|
|
337
308
|
* Create a report
|
|
338
309
|
*
|
|
@@ -345,8 +316,7 @@ function promptsUpdate(client, promptId, params, options) {
|
|
|
345
316
|
function reportsCreate(client, params, options) {
|
|
346
317
|
return callPromise(options?.client ?? client, createReportDescriptor, mergeParams(groupParams(params, "body"), options));
|
|
347
318
|
}
|
|
348
|
-
|
|
349
|
-
//#region src/calls/reports-get.ts
|
|
319
|
+
// src/calls/reports-get.ts
|
|
350
320
|
/**
|
|
351
321
|
* Get report status and data
|
|
352
322
|
*
|
|
@@ -361,8 +331,7 @@ function reportsGet(client, reportId, params, options) {
|
|
|
361
331
|
reportId
|
|
362
332
|
}, getReportFields, "query"), options));
|
|
363
333
|
}
|
|
364
|
-
|
|
365
|
-
//#region src/calls/reports-list.ts
|
|
334
|
+
// src/calls/reports-list.ts
|
|
366
335
|
/**
|
|
367
336
|
* Retrieve a paginated list of all reports, ordered by creation date (newest first).
|
|
368
337
|
*
|
|
@@ -371,8 +340,7 @@ function reportsGet(client, reportId, params, options) {
|
|
|
371
340
|
function reportsList(client, params, options) {
|
|
372
341
|
return pages(options?.client ?? client, listReportsDescriptor, mergeParams(groupParams(params, "query"), options));
|
|
373
342
|
}
|
|
374
|
-
|
|
375
|
-
//#region src/calls/tools-analyze.ts
|
|
343
|
+
// src/calls/tools-analyze.ts
|
|
376
344
|
/**
|
|
377
345
|
* Analyze a website
|
|
378
346
|
*
|
|
@@ -384,7 +352,6 @@ function reportsList(client, params, options) {
|
|
|
384
352
|
function toolsAnalyze(client, params, options) {
|
|
385
353
|
return callPromise(options?.client ?? client, analyzeBrandDescriptor, mergeParams(groupParams(params, "body"), options));
|
|
386
354
|
}
|
|
387
|
-
//#endregion
|
|
388
355
|
export { brandsAnalyticsGet, brandsCitationsDomainsList, brandsCitationsURLsList, brandsCreate, brandsGet, brandsList, brandsOpportunitiesGet, brandsPromptPerformanceList, brandsQueryFanoutGet, brandsTagsList, brandsUpdate, competitorsCreate, competitorsDelete, competitorsGet, competitorsList, competitorsUpdate, meGet, modelsList, organizationsBillingGet, organizationsGet, organizationsList, promptsCreate, promptsDelete, promptsGet, promptsList, promptsRunsGet, promptsRunsList, promptsSnapshotGet, promptsUpdate, reportsCreate, reportsGet, reportsList, toolsAnalyze };
|
|
389
356
|
|
|
390
357
|
//# sourceMappingURL=index.mjs.map
|
package/dist/calls/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/calls/brands-analytics-get.ts","../../src/calls/brands-citations-domains-list.ts","../../src/calls/brands-citations-urls-list.ts","../../src/calls/brands-create.ts","../../src/calls/brands-get.ts","../../src/calls/brands-list.ts","../../src/calls/brands-opportunities-get.ts","../../src/calls/brands-prompt-performance-list.ts","../../src/calls/brands-query-fanout-get.ts","../../src/calls/brands-tags-list.ts","../../src/calls/brands-update.ts","../../src/calls/competitors-create.ts","../../src/calls/competitors-delete.ts","../../src/calls/competitors-get.ts","../../src/calls/competitors-list.ts","../../src/calls/competitors-update.ts","../../src/calls/me-get.ts","../../src/calls/models-list.ts","../../src/calls/organizations-billing-get.ts","../../src/calls/organizations-get.ts","../../src/calls/organizations-list.ts","../../src/calls/prompts-create.ts","../../src/calls/prompts-delete.ts","../../src/calls/prompts-get.ts","../../src/calls/prompts-list.ts","../../src/calls/prompts-runs-get.ts","../../src/calls/prompts-runs-list.ts","../../src/calls/prompts-snapshot-get.ts","../../src/calls/prompts-update.ts","../../src/calls/reports-create.ts","../../src/calls/reports-get.ts","../../src/calls/reports-list.ts","../../src/calls/tools-analyze.ts"],"mappings":";;;;;;;;;;;AAqBA,SAAgB,mBACd,QACA,SACA,QACA,SACsE;CACtE,OAAO,YACL,SAAS,UAAU,QACnB,6BACA,YAAY,YAAY;EAAE,GAAG;EAAQ;CAAQ,GAAG,yBAAyB,OAAO,GAAG,OAAO,CAC5F;AACF
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/calls/brands-analytics-get.ts","../../src/calls/brands-citations-domains-list.ts","../../src/calls/brands-citations-urls-list.ts","../../src/calls/brands-create.ts","../../src/calls/brands-get.ts","../../src/calls/brands-list.ts","../../src/calls/brands-opportunities-get.ts","../../src/calls/brands-prompt-performance-list.ts","../../src/calls/brands-query-fanout-get.ts","../../src/calls/brands-tags-list.ts","../../src/calls/brands-update.ts","../../src/calls/competitors-create.ts","../../src/calls/competitors-delete.ts","../../src/calls/competitors-get.ts","../../src/calls/competitors-list.ts","../../src/calls/competitors-update.ts","../../src/calls/me-get.ts","../../src/calls/models-list.ts","../../src/calls/organizations-billing-get.ts","../../src/calls/organizations-get.ts","../../src/calls/organizations-list.ts","../../src/calls/prompts-create.ts","../../src/calls/prompts-delete.ts","../../src/calls/prompts-get.ts","../../src/calls/prompts-list.ts","../../src/calls/prompts-runs-get.ts","../../src/calls/prompts-runs-list.ts","../../src/calls/prompts-snapshot-get.ts","../../src/calls/prompts-update.ts","../../src/calls/reports-create.ts","../../src/calls/reports-get.ts","../../src/calls/reports-list.ts","../../src/calls/tools-analyze.ts"],"mappings":";;;;;;;;;;;AAqBA,SAAgB,mBACd,QACA,SACA,QACA,SACsE;CACtE,OAAO,YACL,SAAS,UAAU,QACnB,6BACA,YAAY,YAAY;EAAE,GAAG;EAAQ;CAAQ,GAAG,yBAAyB,OAAO,GAAG,OAAO,CAC5F;AACF;;;;;;;;ACVA,SAAgB,2BACd,QACA,SACA,QACA,SACiF;CACjF,OAAO,MACL,SAAS,UAAU,QACnB,oCACA,YACE,YAAY;EAAE,GAAG;EAAQ;CAAQ,GAAG,gCAAgC,OAAO,GAC3E,OACF,CACF;AACF;;;;;;;ACfA,SAAgB,wBACd,QACA,SACA,QACA,SACwE;CACxE,OAAO,MACL,SAAS,UAAU,QACnB,iCACA,YAAY,YAAY;EAAE,GAAG;EAAQ;CAAQ,GAAG,6BAA6B,OAAO,GAAG,OAAO,CAChG;AACF;;;ACxBA,SAAgB,aACd,QACA,QACA,SAC0D;CAC1D,OAAO,YACL,SAAS,UAAU,QACnB,uBACA,YAAY,YAAY,QAAQ,MAAM,GAAG,OAAO,CAClD;AACF;;;ACVA,SAAgB,UACd,QACA,SACA,SACoD;CACpD,OAAO,YACL,SAAS,UAAU,QACnB,oBACA,YAAY,YAAY,EAAE,QAAQ,GAAG,gBAAgB,OAAO,GAAG,OAAO,CACx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,CAClD;AACF;;;;;;;;;;ACfA,SAAgB,WACd,QACA,UACA,QACA,SACsD;CACtD,OAAO,YACL,SAAS,UAAU,QACnB,qBACA,YAAY,YAAY;EAAE,GAAG;EAAQ;CAAS,GAAG,iBAAiB,OAAO,GAAG,OAAO,CACrF;AACF;;;;;;;ACTA,SAAgB,YACd,QACA,QACA,SACoE;CACpE,OAAO,MACL,SAAS,UAAU,QACnB,uBACA,YAAY,YAAY,QAAQ,OAAO,GAAG,OAAO,CACnD;AACF;;;;;;;;;;ACZA,SAAgB,aACd,QACA,QACA,SAC4D;CAC5D,OAAO,YACL,SAAS,UAAU,QACnB,wBACA,YAAY,YAAY,QAAQ,MAAM,GAAG,OAAO,CAClD;AACF"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as TransportError, S as TimeoutError, _ as APIError, b as ElmoError, c as ConflictError, d as PaymentRequiredError, f as PermissionDeniedError, i as createElmoClient, l as InternalServerError, m as UnprocessableEntityError, n as Elmo, o as AuthenticationError, p as RateLimitError, r as VERSION, s as BadRequestError, u as NotFoundError, v as AbortError, x as MissingCredentialError, y as DecodeError } from "./request-options
|
|
1
|
+
import { C as TransportError, S as TimeoutError, _ as APIError, b as ElmoError, c as ConflictError, d as PaymentRequiredError, f as PermissionDeniedError, i as createElmoClient, l as InternalServerError, m as UnprocessableEntityError, n as Elmo, o as AuthenticationError, p as RateLimitError, r as VERSION, s as BadRequestError, u as NotFoundError, v as AbortError, x as MissingCredentialError, y as DecodeError } from "./request-options-BrcRfwq0.mjs";
|
|
2
2
|
export { APIError, AbortError, AuthenticationError, BadRequestError, ConflictError, DecodeError, Elmo, ElmoError, InternalServerError, MissingCredentialError, NotFoundError, PaymentRequiredError, PermissionDeniedError, RateLimitError, TimeoutError, TransportError, UnprocessableEntityError, VERSION, createElmoClient };
|