@elmohq/sdk 0.0.0-claim → 0.1.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/LICENSE.md +21 -0
- package/README.md +325 -2
- package/dist/calls/index.d.mts +288 -0
- package/dist/calls/index.d.mts.map +1 -0
- package/dist/calls/index.mjs +390 -0
- package/dist/calls/index.mjs.map +1 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +1029 -0
- package/dist/index.mjs.map +1 -0
- package/dist/request-options-DWYI_Ldj.d.mts +1550 -0
- package/dist/request-options-DWYI_Ldj.d.mts.map +1 -0
- package/dist/tools-7Hs5J2xb.d.mts +1945 -0
- package/dist/tools-7Hs5J2xb.d.mts.map +1 -0
- package/dist/tools-SwP0sK8H.mjs +2458 -0
- package/dist/tools-SwP0sK8H.mjs.map +1 -0
- package/dist/types/index.d.mts +2 -0
- package/dist/types/index.mjs +1 -0
- package/package.json +59 -2
- package/src/calls/brands-analytics-get.ts +33 -0
- package/src/calls/brands-citations-domains-list.ts +36 -0
- package/src/calls/brands-citations-urls-list.ts +32 -0
- package/src/calls/brands-create.ts +19 -0
- package/src/calls/brands-get.ts +19 -0
- package/src/calls/brands-list.ts +18 -0
- package/src/calls/brands-opportunities-get.ts +42 -0
- package/src/calls/brands-prompt-performance-list.ts +39 -0
- package/src/calls/brands-query-fanout-get.ts +30 -0
- package/src/calls/brands-tags-list.ts +28 -0
- package/src/calls/brands-update.ts +20 -0
- package/src/calls/competitors-create.ts +23 -0
- package/src/calls/competitors-delete.ts +19 -0
- package/src/calls/competitors-get.ts +19 -0
- package/src/calls/competitors-list.ts +23 -0
- package/src/calls/competitors-update.ts +24 -0
- package/src/calls/index.ts +33 -0
- package/src/calls/me-get.ts +18 -0
- package/src/calls/models-list.ts +20 -0
- package/src/calls/organizations-billing-get.ts +37 -0
- package/src/calls/organizations-get.ts +24 -0
- package/src/calls/organizations-list.ts +27 -0
- package/src/calls/prompts-create.ts +27 -0
- package/src/calls/prompts-delete.ts +28 -0
- package/src/calls/prompts-get.ts +23 -0
- package/src/calls/prompts-list.ts +28 -0
- package/src/calls/prompts-runs-get.ts +27 -0
- package/src/calls/prompts-runs-list.ts +30 -0
- package/src/calls/prompts-snapshot-get.ts +28 -0
- package/src/calls/prompts-update.ts +29 -0
- package/src/calls/reports-create.ts +31 -0
- package/src/calls/reports-get.ts +27 -0
- package/src/calls/reports-list.ts +28 -0
- package/src/calls/tools-analyze.ts +26 -0
- package/src/client.ts +662 -0
- package/src/index.ts +21 -0
- package/src/internal/binding/rest/binding.ts +127 -0
- package/src/internal/binding/rest/errors.ts +107 -0
- package/src/internal/binding/rest/path.ts +9 -0
- package/src/internal/binding/rest/url.ts +97 -0
- package/src/internal/codec/json.ts +66 -0
- package/src/internal/codec/registry.ts +55 -0
- package/src/internal/core/backoff.ts +170 -0
- package/src/internal/core/body.ts +54 -0
- package/src/internal/core/browser.ts +11 -0
- package/src/internal/core/call-promise.ts +145 -0
- package/src/internal/core/callable.ts +11 -0
- package/src/internal/core/client.ts +89 -0
- package/src/internal/core/config.ts +84 -0
- package/src/internal/core/credentials.ts +40 -0
- package/src/internal/core/dispatch.ts +227 -0
- package/src/internal/core/env.ts +68 -0
- package/src/internal/core/errors.ts +431 -0
- package/src/internal/core/features.ts +60 -0
- package/src/internal/core/lazy-promise.ts +39 -0
- package/src/internal/core/metadata.ts +79 -0
- package/src/internal/core/params.ts +98 -0
- package/src/internal/core/protocol.ts +17 -0
- package/src/internal/core/read-reply.ts +7 -0
- package/src/internal/core/text.ts +7 -0
- package/src/internal/core/types.ts +556 -0
- package/src/internal/feature/auth.ts +201 -0
- package/src/internal/feature/interceptors.ts +36 -0
- package/src/internal/feature/logger.ts +222 -0
- package/src/internal/feature/retry.ts +165 -0
- package/src/internal/feature/rules.ts +54 -0
- package/src/internal/feature/timeout.ts +146 -0
- package/src/internal/feature/validate.ts +74 -0
- package/src/internal/page/page.ts +402 -0
- package/src/internal/transport/fetch.ts +82 -0
- package/src/resources/analytics.ts +363 -0
- package/src/resources/brands.ts +285 -0
- package/src/resources/competitors.ts +212 -0
- package/src/resources/identity.ts +48 -0
- package/src/resources/models.ts +32 -0
- package/src/resources/opportunities.ts +79 -0
- package/src/resources/organizations.ts +181 -0
- package/src/resources/prompts.ts +292 -0
- package/src/resources/reports.ts +211 -0
- package/src/resources/runs.ts +123 -0
- package/src/resources/shared/auth.ts +13 -0
- package/src/resources/shared/request-options.ts +26 -0
- package/src/resources/shared/resource.ts +23 -0
- package/src/resources/shared/rule.ts +25 -0
- package/src/resources/snapshots.ts +54 -0
- package/src/resources/tags.ts +46 -0
- package/src/resources/tools.ts +68 -0
- package/src/types/analytics.ts +497 -0
- package/src/types/brands.ts +228 -0
- package/src/types/competitors.ts +196 -0
- package/src/types/identity.ts +55 -0
- package/src/types/index.ts +163 -0
- package/src/types/models.ts +40 -0
- package/src/types/opportunities.ts +84 -0
- package/src/types/organizations.ts +157 -0
- package/src/types/prompts.ts +231 -0
- package/src/types/reports.ts +266 -0
- package/src/types/runs.ts +131 -0
- package/src/types/shared/brand-id-path.ts +2 -0
- package/src/types/shared/conflict-error.ts +7 -0
- package/src/types/shared/error.ts +29 -0
- package/src/types/shared/limit.ts +8 -0
- package/src/types/shared/mention-entry.ts +21 -0
- package/src/types/shared/model-filter.ts +15 -0
- package/src/types/shared/not-found-error.ts +4 -0
- package/src/types/shared/page.ts +7 -0
- package/src/types/shared/pagination.ts +7 -0
- package/src/types/shared/validation-error.ts +4 -0
- package/src/types/snapshots.ts +88 -0
- package/src/types/tags.ts +47 -0
- package/src/types/tools.ts +78 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Blue Whale Software, LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,326 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Elmo TypeScript SDK
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@elmohq/sdk) [](LICENSE.md)
|
|
4
|
+
|
|
5
|
+
Read and manage the brands, prompts, competitors, and AI-visibility analytics of this deployment.
|
|
6
|
+
|
|
7
|
+
This package calls the Elmo API from TypeScript and JavaScript. It includes types for every request and reply.
|
|
8
|
+
|
|
9
|
+
[Issues](https://github.com/elmohq/elmo-sdk-typescript/issues)
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
The SDK is published on [npm](https://www.npmjs.com/package/@elmohq/sdk). Install it with the package manager you use.
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
npm install @elmohq/sdk
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
<details>
|
|
20
|
+
<summary>Other package managers</summary>
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
pnpm add @elmohq/sdk
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
yarn add @elmohq/sdk
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
bun add @elmohq/sdk
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
deno add npm:@elmohq/sdk
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
nub add @elmohq/sdk
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
```sh
|
|
43
|
+
vlt install @elmohq/sdk
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
aube add @elmohq/sdk
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
</details>
|
|
51
|
+
|
|
52
|
+
## Usage
|
|
53
|
+
|
|
54
|
+
Set `ELMO_API_KEY` in your environment, then call the API:
|
|
55
|
+
|
|
56
|
+
```ts
|
|
57
|
+
import { Elmo } from '@elmohq/sdk';
|
|
58
|
+
|
|
59
|
+
const elmo = new Elmo();
|
|
60
|
+
const data = await elmo.brands.list();
|
|
61
|
+
|
|
62
|
+
console.log(data);
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Requirements
|
|
66
|
+
|
|
67
|
+
- Node.js 20.19 or later
|
|
68
|
+
- TypeScript 5.5 or later, for its types, and 5.8 or later to `require()` it from CommonJS
|
|
69
|
+
|
|
70
|
+
## Pagination
|
|
71
|
+
|
|
72
|
+
Iterate a paginated call to read every item. Each page is fetched when the loop reaches it.
|
|
73
|
+
|
|
74
|
+
```ts
|
|
75
|
+
import { Elmo } from '@elmohq/sdk';
|
|
76
|
+
|
|
77
|
+
const elmo = new Elmo();
|
|
78
|
+
for await (const item of elmo.brands.list()) {
|
|
79
|
+
console.log(item);
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Errors
|
|
84
|
+
|
|
85
|
+
When the API answers with an error status, the call throws `APIError`, or a subclass named for the status. `requestId` holds the id to quote when you report a failure. Every error the SDK throws extends `ElmoError`.
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
import { APIError, Elmo } from '@elmohq/sdk';
|
|
89
|
+
|
|
90
|
+
const elmo = new Elmo();
|
|
91
|
+
try {
|
|
92
|
+
await elmo.brands.list();
|
|
93
|
+
} catch (error) {
|
|
94
|
+
if (error instanceof APIError) {
|
|
95
|
+
console.log(error.status, error.requestId, error.body);
|
|
96
|
+
} else {
|
|
97
|
+
throw error;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
To handle a failure without `try`, call `.result()`. It resolves with `ok: false` and a typed `error`. Checking `result.status` narrows `error.body` to the body the API description declares for that status.
|
|
103
|
+
|
|
104
|
+
```ts
|
|
105
|
+
import { Elmo } from '@elmohq/sdk';
|
|
106
|
+
|
|
107
|
+
const elmo = new Elmo();
|
|
108
|
+
const result = await elmo.brands.list().result();
|
|
109
|
+
if (!result.ok) {
|
|
110
|
+
if (result.status === 401) {
|
|
111
|
+
console.log(result.error.body);
|
|
112
|
+
} else {
|
|
113
|
+
console.log(result.error);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Catch one status by its class:
|
|
119
|
+
|
|
120
|
+
| Status | Error |
|
|
121
|
+
| ---------------------- | -------------------------- |
|
|
122
|
+
| 400 | `BadRequestError` |
|
|
123
|
+
| 401 | `AuthenticationError` |
|
|
124
|
+
| 402 | `PaymentRequiredError` |
|
|
125
|
+
| 403 | `PermissionDeniedError` |
|
|
126
|
+
| 404 | `NotFoundError` |
|
|
127
|
+
| 409 | `ConflictError` |
|
|
128
|
+
| 422 | `UnprocessableEntityError` |
|
|
129
|
+
| 429 | `RateLimitError` |
|
|
130
|
+
| 500 and above | `InternalServerError` |
|
|
131
|
+
| Any other error status | `APIError` |
|
|
132
|
+
|
|
133
|
+
A call that got no reply has no status. It throws `TransportError`, or `TimeoutError` where an attempt ran out of time. Neither is an `APIError`.
|
|
134
|
+
|
|
135
|
+
A call made with no credential throws `MissingCredentialError` before anything is sent. A reply the SDK cannot read throws `DecodeError`. A call you cancel through `signal` throws `AbortError`.
|
|
136
|
+
|
|
137
|
+
By the time a call throws `RateLimitError`, the client has sent it again up to 2 times. `retryAfterMs` on `RateLimitError` holds how long the API asked to wait, in milliseconds, where it said.
|
|
138
|
+
|
|
139
|
+
To report a failure, [open an issue](https://github.com/elmohq/elmo-sdk-typescript/issues) and quote `requestId`.
|
|
140
|
+
|
|
141
|
+
## Configuration
|
|
142
|
+
|
|
143
|
+
### Authentication
|
|
144
|
+
|
|
145
|
+
The client reads `ELMO_API_KEY` from the environment. To pass the value yourself, set `apiKey`:
|
|
146
|
+
|
|
147
|
+
```ts
|
|
148
|
+
import { Elmo } from '@elmohq/sdk';
|
|
149
|
+
|
|
150
|
+
const elmo = new Elmo({ apiKey: '…' });
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
`apiKey` also takes a function that returns the value, such as one that reads it from a secret store. The client calls it for each request.
|
|
154
|
+
|
|
155
|
+
### Browser usage
|
|
156
|
+
|
|
157
|
+
This client refuses to build in a browser, where every visitor to the page can read the credential it sends. Build it on a server instead. Pass `dangerouslyAllowBrowser: true` only where the credential is meant to be public, or a proxy adds it.
|
|
158
|
+
|
|
159
|
+
```ts
|
|
160
|
+
import { Elmo } from '@elmohq/sdk';
|
|
161
|
+
|
|
162
|
+
const elmo = new Elmo({ dangerouslyAllowBrowser: true });
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Base URL
|
|
166
|
+
|
|
167
|
+
Calls go to `/api/v1`. To send them elsewhere, such as a proxy or a gateway, set `baseURL`, or the `ELMO_BASE_URL` environment variable:
|
|
168
|
+
|
|
169
|
+
```ts
|
|
170
|
+
import { Elmo } from '@elmohq/sdk';
|
|
171
|
+
|
|
172
|
+
const elmo = new Elmo({ baseURL: 'https://gateway.example.com' });
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### Per-call options
|
|
176
|
+
|
|
177
|
+
One call can run under settings of its own. `withOptions` returns a client that differs only in what you pass, and takes every option the client does. Headers merge per name, and every other option replaces the client's:
|
|
178
|
+
|
|
179
|
+
```ts
|
|
180
|
+
import { Elmo } from '@elmohq/sdk';
|
|
181
|
+
|
|
182
|
+
const elmo = new Elmo();
|
|
183
|
+
await elmo.withOptions({ timeout: 5000, maxRetries: 0 }).brands.list();
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
A call also takes the same settings as its last argument.
|
|
187
|
+
|
|
188
|
+
### Retries
|
|
189
|
+
|
|
190
|
+
A failed call is sent again up to 2 times, after a lost connection, a 408, 425 or 429 status, or most 5xx statuses. A `POST` or `PATCH` call may already have changed something, so it is sent again only after a request that never reached the API or a 408, 425 or 429 status.
|
|
191
|
+
|
|
192
|
+
Each wait is longer than the last on average, or as long as `Retry-After` asks.
|
|
193
|
+
|
|
194
|
+
To change that count, set `maxRetries` on the client or on one call. For every other rule, such as which failures are retried and how long each wait is, set `retry`, which takes a `RetryOptions`:
|
|
195
|
+
|
|
196
|
+
```ts
|
|
197
|
+
import { Elmo } from '@elmohq/sdk';
|
|
198
|
+
|
|
199
|
+
const elmo = new Elmo({ maxRetries: 5 });
|
|
200
|
+
await elmo.withOptions({ maxRetries: 0 }).brands.list();
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
To wait longer between attempts, set the first wait and the longest one:
|
|
204
|
+
|
|
205
|
+
```ts
|
|
206
|
+
import { Elmo } from '@elmohq/sdk';
|
|
207
|
+
|
|
208
|
+
const elmo = new Elmo({ retry: { delay: 1000, maxDelay: 10000 } });
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### Timeouts
|
|
212
|
+
|
|
213
|
+
Each attempt may run for 60 seconds. One that runs longer throws `TimeoutError`. To change the limit, set `timeout` in milliseconds on the client or on one call. `false` removes it:
|
|
214
|
+
|
|
215
|
+
```ts
|
|
216
|
+
import { Elmo } from '@elmohq/sdk';
|
|
217
|
+
|
|
218
|
+
const elmo = new Elmo({ timeout: 20_000 });
|
|
219
|
+
await elmo.withOptions({ timeout: 5000 }).brands.list();
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### Logging
|
|
223
|
+
|
|
224
|
+
Logging is off by default. To see what the SDK sends and receives, set `logLevel` or the `ELMO_LOG` environment variable. `'info'` logs each call and its reply, and `'debug'` adds headers, with credentials redacted. Bodies are never logged. Logs go to `console` unless you pass a `logger`.
|
|
225
|
+
|
|
226
|
+
```ts
|
|
227
|
+
import { Elmo } from '@elmohq/sdk';
|
|
228
|
+
|
|
229
|
+
const elmo = new Elmo({ logLevel: 'info' });
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
### Custom fetch
|
|
233
|
+
|
|
234
|
+
To send requests through a proxy, with other TLS options or over HTTP/2, pass a `fetch` of your own. It is called with the URL as a string and a `RequestInit`, and returns a `Response`, so it can wrap the global one or call a library's. To add `RequestInit` fields to every request instead, such as `credentials`, pass `fetchOptions`.
|
|
235
|
+
|
|
236
|
+
```ts
|
|
237
|
+
import { Elmo } from '@elmohq/sdk';
|
|
238
|
+
|
|
239
|
+
const elmo = new Elmo({
|
|
240
|
+
fetch: async (input, init) => {
|
|
241
|
+
const started = performance.now();
|
|
242
|
+
const response = await fetch(input, init);
|
|
243
|
+
console.log(input, response.status, performance.now() - started);
|
|
244
|
+
return response;
|
|
245
|
+
},
|
|
246
|
+
});
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### Default headers
|
|
250
|
+
|
|
251
|
+
To send a header with every call, set `defaultHeaders` on the client. A call's own `headers` are merged with them by name, and `null` drops one:
|
|
252
|
+
|
|
253
|
+
```ts
|
|
254
|
+
import { Elmo } from '@elmohq/sdk';
|
|
255
|
+
|
|
256
|
+
const elmo = new Elmo({ defaultHeaders: { 'x-team': 'billing' } });
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
### Interceptors
|
|
260
|
+
|
|
261
|
+
To run code of your own around every call, set `interceptors` on the client. A `request` hook runs on each request last before it is sent, with the credential already on it. A `response` hook returns the result the caller reads, and an `error` hook returns the error the caller gets, so a hook that only observes returns what it was given. Hooks run in the order you list them.
|
|
262
|
+
|
|
263
|
+
```ts
|
|
264
|
+
import { Elmo } from '@elmohq/sdk';
|
|
265
|
+
|
|
266
|
+
const elmo = new Elmo({
|
|
267
|
+
interceptors: {
|
|
268
|
+
request: [
|
|
269
|
+
(request) => {
|
|
270
|
+
request.meta['x-request-source'] = 'worker';
|
|
271
|
+
},
|
|
272
|
+
],
|
|
273
|
+
},
|
|
274
|
+
});
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
### Raw response
|
|
278
|
+
|
|
279
|
+
To read the HTTP response as well, call `.withResponse()` on a call. What comes back holds:
|
|
280
|
+
|
|
281
|
+
- `data`: what the call resolves with on its own
|
|
282
|
+
- `response`: the `Response` that carried it, for a header or a field the SDK does not model
|
|
283
|
+
- `requestId`: the id to quote when you report a problem
|
|
284
|
+
|
|
285
|
+
```ts
|
|
286
|
+
import { Elmo } from '@elmohq/sdk';
|
|
287
|
+
|
|
288
|
+
const elmo = new Elmo();
|
|
289
|
+
const reply = await elmo.me.get().withResponse();
|
|
290
|
+
console.log(reply.response.status, reply.response.headers.get('content-type'));
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
`.asResponse()` resolves with the `Response` alone, with its body unread.
|
|
294
|
+
|
|
295
|
+
### Environment variables
|
|
296
|
+
|
|
297
|
+
The client reads each variable when its option is not set:
|
|
298
|
+
|
|
299
|
+
| Variable | Option | Default |
|
|
300
|
+
| --------------- | ---------- | ----------- |
|
|
301
|
+
| `ELMO_API_KEY` | `apiKey` | |
|
|
302
|
+
| `ELMO_BASE_URL` | `baseURL` | `'/api/v1'` |
|
|
303
|
+
| `ELMO_LOG` | `logLevel` | `'off'` |
|
|
304
|
+
|
|
305
|
+
### Forward compatibility
|
|
306
|
+
|
|
307
|
+
The API can add a field or a value after this version of the SDK is released. This version keeps working when that happens, and you can use the new part of the API before a release declares it.
|
|
308
|
+
|
|
309
|
+
- A reply is handed back as the API sent it. A field, an enum value or a member of a union that this version does not declare is there to read, though the types do not name it.
|
|
310
|
+
- To send a field this version does not declare, write it in the inputs beside the fields it does. TypeScript refuses a key it does not know in an object literal, so spread it in from an object of its own.
|
|
311
|
+
|
|
312
|
+
### Bundle size
|
|
313
|
+
|
|
314
|
+
Where bundle size matters, such as in a browser app, call a function from `@elmohq/sdk/calls` instead. A bundle keeps only the calls you import.
|
|
315
|
+
|
|
316
|
+
```ts
|
|
317
|
+
import { createElmoClient } from '@elmohq/sdk';
|
|
318
|
+
import { brandsList } from '@elmohq/sdk/calls';
|
|
319
|
+
|
|
320
|
+
const client = createElmoClient();
|
|
321
|
+
await brandsList(client);
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
## License
|
|
325
|
+
|
|
326
|
+
MIT. See [LICENSE.md](LICENSE.md).
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { a as PagePromise, g as Client, h as RestCallPromise, t as RequestOptions } from "../request-options-DWYI_Ldj.mjs";
|
|
2
|
+
import { $ as GetOrganizationBillingResponses, At as UpdateCompetitorResponses, Cn as ListBrandCitationURLsErrors, Ct as GetCompetitorErrors, D as ListPromptsErrors, Dn as ListBrandPromptPerformanceParams, E as GetPromptResponses, En as ListBrandPromptPerformanceErrors, Et as ListCompetitorsParams, Ft as CreateBrandResponses, G as ListPromptRunsParams, H as GetRunErrors, Ht as UpdateBrandParams, I as GetPromptSnapshotErrors, It as GetBrandErrors, L as GetPromptSnapshotParams, Lt as GetBrandResponses, M as UpdatePromptErrors, Mt as BrandsList, N as UpdatePromptParams, Nt as CreateBrandErrors, O as ListPromptsParams, On as ListBrandPromptPerformanceResponses, Ot as UpdateCompetitorErrors, P as UpdatePromptResponses, Pt as CreateBrandParams, Q as GetOrganizationBillingErrors, R as GetPromptSnapshotResponses, Rt as ListBrandsErrors, S as DeletePromptErrors, Sn as ListBrandCitationDomainsResponses, St as DeleteCompetitorResponses, T as GetPromptErrors, Tn as ListBrandCitationURLsResponses, Tt as ListCompetitorsErrors, U as GetRunResponses, Ut as UpdateBrandResponses, Vt as UpdateBrandErrors, W as ListPromptRunsErrors, X as RunSummary, Xt as ListBrandTagsResponses, Y as RunList, Yt as ListBrandTagsErrors, _n as GetBrandQueryFanoutErrors, _t as CompetitorsList, a as CreateReportErrors, an as BrandIdPath, at as Organization, b as CreatePromptParams, bn as ListBrandCitationDomainsErrors, bt as CreateCompetitorResponses, c as CreateReportResponses, et as GetOrganizationErrors, f as GetReportResponses, gn as GetBrandAnalyticsResponses, gt as Competitor, h as ListReportsResponse, hn as GetBrandAnalyticsParams, ht as GetMeResponses, j as Prompt, jt as Brand, k as ListPromptsResponse, kt as UpdateCompetitorParams, l as GetReportErrors, lt as ListModelsErrors, m as ListReportsParams, mn as GetBrandAnalyticsErrors, mt as GetMeErrors, n as AnalyzeBrandParams, nn as GetBrandOpportunitiesResponses, nt as ListOrganizationsErrors, o as CreateReportParams, p as ListReportsErrors, r as AnalyzeBrandResponses, rt as ListOrganizationsParams, st as OrganizationList, t as AnalyzeBrandErrors, tn as GetBrandOpportunitiesErrors, tt as GetOrganizationResponses, u as GetReportParams, ut as ListModelsResponses, v as ReportSummary, vn as GetBrandQueryFanoutParams, vt as CreateCompetitorErrors, w as DeletePromptResponses, wn as ListBrandCitationURLsParams, wt as GetCompetitorResponses, x as CreatePromptResponses, xn as ListBrandCitationDomainsParams, xt as DeleteCompetitorErrors, y as CreatePromptErrors, yn as GetBrandQueryFanoutResponses, yt as CreateCompetitorParams, zt as ListBrandsParams } from "../tools-7Hs5J2xb.mjs";
|
|
3
|
+
//#region src/calls/brands-analytics-get.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Get a brand's analytics
|
|
6
|
+
*
|
|
7
|
+
* Visibility, share of voice, the per-model breakdown and the citation totals for one window, in
|
|
8
|
+
* one request.
|
|
9
|
+
*
|
|
10
|
+
* The long lists — cited domains and URLs, sub-queries, per-prompt results — are endpoints of their
|
|
11
|
+
* own. Everything else is always included.
|
|
12
|
+
*/
|
|
13
|
+
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
|
+
/**
|
|
17
|
+
* List cited domains
|
|
18
|
+
*
|
|
19
|
+
* Domains the engines cited when answering this brand's prompts, categorized and compared against
|
|
20
|
+
* the equal-length window immediately before this one.
|
|
21
|
+
*/
|
|
22
|
+
declare function brandsCitationsDomainsList(client: Client, brandId: BrandIdPath, params: ListBrandCitationDomainsParams, options?: RequestOptions): RestCallPromise<ListBrandCitationDomainsResponses, ListBrandCitationDomainsErrors>;
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/calls/brands-citations-urls-list.d.ts
|
|
25
|
+
/**
|
|
26
|
+
* List cited URLs
|
|
27
|
+
*
|
|
28
|
+
* Individual pages the engines cited, with their category and page type.
|
|
29
|
+
*/
|
|
30
|
+
declare function brandsCitationsURLsList(client: Client, brandId: BrandIdPath, params: ListBrandCitationURLsParams, options?: RequestOptions): RestCallPromise<ListBrandCitationURLsResponses, ListBrandCitationURLsErrors>;
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/calls/brands-create.d.ts
|
|
33
|
+
/** Create a brand */
|
|
34
|
+
declare function brandsCreate(client: Client, params: CreateBrandParams, options?: RequestOptions): RestCallPromise<CreateBrandResponses, CreateBrandErrors>;
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/calls/brands-get.d.ts
|
|
37
|
+
/** Get a brand */
|
|
38
|
+
declare function brandsGet(client: Client, brandId: string, options?: RequestOptions): RestCallPromise<GetBrandResponses, GetBrandErrors>;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/calls/brands-list.d.ts
|
|
41
|
+
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
|
+
/**
|
|
45
|
+
* Get the latest opportunities report
|
|
46
|
+
*
|
|
47
|
+
* **Experimental — the response shape may still change.**
|
|
48
|
+
*
|
|
49
|
+
* The brand's Opportunities report: a prioritized set of ways to get cited more often, with the
|
|
50
|
+
* tracked prompts and cited pages behind each one. The same analysis the dashboard shows, from the
|
|
51
|
+
* same code.
|
|
52
|
+
*
|
|
53
|
+
* Generation is inline and synchronous. A stored report is served while it is fresh and regenerated
|
|
54
|
+
* when it is not, so there is nothing to poll for and no way to be handed a stale one — but a
|
|
55
|
+
* request that triggers a generation waits for it. The freshness window bounds the cost: however
|
|
56
|
+
* many callers ask, one generation per brand per window. There is deliberately no `POST`, which
|
|
57
|
+
* would spend provider budget with nothing metering it per call.
|
|
58
|
+
*
|
|
59
|
+
* @experimental
|
|
60
|
+
*/
|
|
61
|
+
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
|
+
/**
|
|
65
|
+
* List prompt performance
|
|
66
|
+
*
|
|
67
|
+
* Per-prompt mention rates over the window. The analytics counterpart to `GET /prompts?brandId=`,
|
|
68
|
+
* which returns prompt configuration rather than results.
|
|
69
|
+
*
|
|
70
|
+
* A prompt the brand stopped tracking is not sampled, so it has no results over the window and does
|
|
71
|
+
* not appear here.
|
|
72
|
+
*/
|
|
73
|
+
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
|
+
/**
|
|
77
|
+
* Get query fan-out
|
|
78
|
+
*
|
|
79
|
+
* The searches engines ran while answering this brand's prompts. Engines that don't expose their
|
|
80
|
+
* searches still contribute runs, so `coverageRate` is the honest denominator.
|
|
81
|
+
*/
|
|
82
|
+
declare function brandsQueryFanoutGet(client: Client, brandId: BrandIdPath, params: GetBrandQueryFanoutParams, options?: RequestOptions): RestCallPromise<GetBrandQueryFanoutResponses, GetBrandQueryFanoutErrors>;
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/calls/brands-tags-list.d.ts
|
|
85
|
+
/**
|
|
86
|
+
* List a brand's tags
|
|
87
|
+
*
|
|
88
|
+
* Every tag in use on the brand's prompts, with how many carry each — enough to build the same
|
|
89
|
+
* filter the dashboard shows without paging the whole prompt list to derive it.
|
|
90
|
+
*
|
|
91
|
+
* Tags are not a resource of their own: a tag exists exactly as long as some prompt carries it.
|
|
92
|
+
* `branded` and `unbranded` are computed by Elmo and always listed.
|
|
93
|
+
*/
|
|
94
|
+
declare function brandsTagsList(client: Client, brandId: BrandIdPath, options?: RequestOptions): RestCallPromise<ListBrandTagsResponses, ListBrandTagsErrors>;
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region src/calls/brands-update.d.ts
|
|
97
|
+
/** Update a brand */
|
|
98
|
+
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
|
+
/** Add a competitor */
|
|
102
|
+
declare function competitorsCreate(client: Client, params: CreateCompetitorParams, options?: RequestOptions): RestCallPromise<CreateCompetitorResponses, CreateCompetitorErrors>;
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/calls/competitors-delete.d.ts
|
|
105
|
+
/** Delete a competitor */
|
|
106
|
+
declare function competitorsDelete(client: Client, competitorId: string, options?: RequestOptions): RestCallPromise<DeleteCompetitorResponses, DeleteCompetitorErrors>;
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region src/calls/competitors-get.d.ts
|
|
109
|
+
/** Get a competitor */
|
|
110
|
+
declare function competitorsGet(client: Client, competitorId: string, options?: RequestOptions): RestCallPromise<GetCompetitorResponses, GetCompetitorErrors>;
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region src/calls/competitors-list.d.ts
|
|
113
|
+
declare function competitorsList(client: Client, params?: ListCompetitorsParams, options?: RequestOptions): PagePromise<Competitor, CompetitorsList, ListCompetitorsErrors>;
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/calls/competitors-update.d.ts
|
|
116
|
+
/** Update a competitor */
|
|
117
|
+
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
|
+
/**
|
|
121
|
+
* Describe the calling key
|
|
122
|
+
*
|
|
123
|
+
* What this key is, which organization and brands it reaches, and which scopes it holds. Requires
|
|
124
|
+
* no scope, so it is always safe to call first when wiring up an integration.
|
|
125
|
+
*/
|
|
126
|
+
declare function meGet(client: Client, options?: RequestOptions): RestCallPromise<GetMeResponses, GetMeErrors>;
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region src/calls/models-list.d.ts
|
|
129
|
+
/**
|
|
130
|
+
* List trackable models
|
|
131
|
+
*
|
|
132
|
+
* The answer engines this deployment can track, so a client can build a model filter without
|
|
133
|
+
* hardcoding ids that differ between deployments.
|
|
134
|
+
*
|
|
135
|
+
* Requires no scope.
|
|
136
|
+
*/
|
|
137
|
+
declare function modelsList(client: Client, options?: RequestOptions): RestCallPromise<ListModelsResponses, ListModelsErrors>;
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region src/calls/organizations-billing-get.d.ts
|
|
140
|
+
/**
|
|
141
|
+
* Get billing state
|
|
142
|
+
*
|
|
143
|
+
* The organization's plan, its limits, and how much of each limit is already spent — enough for an
|
|
144
|
+
* integration to know a write will be rejected before attempting it.
|
|
145
|
+
*
|
|
146
|
+
* This endpoint is read-only by construction. No API key of any kind can change a subscription, an
|
|
147
|
+
* add-on quantity, or a payment method; there is no billing write endpoint and no billing write
|
|
148
|
+
* scope. Stripe identifiers, invoices, and payment methods are never returned.
|
|
149
|
+
*
|
|
150
|
+
* Deployments without billing answer `200` with `billingEnabled: false`, a null plan, and null
|
|
151
|
+
* limits, so callers need no special case.
|
|
152
|
+
*/
|
|
153
|
+
declare function organizationsBillingGet(client: Client, organizationId: string, options?: RequestOptions): RestCallPromise<GetOrganizationBillingResponses, GetOrganizationBillingErrors>;
|
|
154
|
+
//#endregion
|
|
155
|
+
//#region src/calls/organizations-get.d.ts
|
|
156
|
+
/**
|
|
157
|
+
* Get an organization
|
|
158
|
+
*
|
|
159
|
+
* No scope required. An organization outside the key's reach answers `404`, identically to one that
|
|
160
|
+
* does not exist.
|
|
161
|
+
*/
|
|
162
|
+
declare function organizationsGet(client: Client, organizationId: string, options?: RequestOptions): RestCallPromise<GetOrganizationResponses, GetOrganizationErrors>;
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region src/calls/organizations-list.d.ts
|
|
165
|
+
/**
|
|
166
|
+
* One entry for an organization key — the one it acts inside. Every organization for an instance
|
|
167
|
+
* admin key. No scope required: a key can only ever see the organization it is already bound to.
|
|
168
|
+
*/
|
|
169
|
+
declare function organizationsList(client: Client, params?: ListOrganizationsParams, options?: RequestOptions): PagePromise<Organization, OrganizationList, ListOrganizationsErrors>;
|
|
170
|
+
//#endregion
|
|
171
|
+
//#region src/calls/prompts-create.d.ts
|
|
172
|
+
/**
|
|
173
|
+
* Create a new prompt
|
|
174
|
+
*
|
|
175
|
+
* Create a new prompt for a brand. This will automatically schedule the prompt for execution.
|
|
176
|
+
*/
|
|
177
|
+
declare function promptsCreate(client: Client, params: CreatePromptParams, options?: RequestOptions): RestCallPromise<CreatePromptResponses, CreatePromptErrors>;
|
|
178
|
+
//#endregion
|
|
179
|
+
//#region src/calls/prompts-delete.d.ts
|
|
180
|
+
/**
|
|
181
|
+
* Delete a prompt
|
|
182
|
+
*
|
|
183
|
+
* Permanently delete a prompt and cancel all related scheduled jobs. This will also cascade delete
|
|
184
|
+
* all associated prompt runs.
|
|
185
|
+
*
|
|
186
|
+
* Requires an instance admin key; organization keys receive `403`. The dashboard has no delete
|
|
187
|
+
* either — stop tracking a prompt with `promptsUpdate()` and `enabled: false`, which keeps its
|
|
188
|
+
* history and frees the plan slot.
|
|
189
|
+
*/
|
|
190
|
+
declare function promptsDelete(client: Client, promptId: string, options?: RequestOptions): RestCallPromise<DeletePromptResponses, DeletePromptErrors>;
|
|
191
|
+
//#endregion
|
|
192
|
+
//#region src/calls/prompts-get.d.ts
|
|
193
|
+
/**
|
|
194
|
+
* Get a prompt
|
|
195
|
+
*
|
|
196
|
+
* Retrieve a specific prompt by ID
|
|
197
|
+
*/
|
|
198
|
+
declare function promptsGet(client: Client, promptId: string, options?: RequestOptions): RestCallPromise<GetPromptResponses, GetPromptErrors>;
|
|
199
|
+
//#endregion
|
|
200
|
+
//#region src/calls/prompts-list.d.ts
|
|
201
|
+
/**
|
|
202
|
+
* List all prompts
|
|
203
|
+
*
|
|
204
|
+
* Retrieve a paginated list of all prompts across all brands
|
|
205
|
+
*/
|
|
206
|
+
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
|
+
/**
|
|
210
|
+
* Get a run
|
|
211
|
+
*
|
|
212
|
+
* One model answer, with its text normalized out of the provider’s response and its citations in
|
|
213
|
+
* the order the engine listed them. A run belonging to some other prompt answers `404`. The
|
|
214
|
+
* provider’s raw payload is deliberately not exposed — its shape belongs to the provider, not to
|
|
215
|
+
* this API.
|
|
216
|
+
*/
|
|
217
|
+
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
|
+
/**
|
|
221
|
+
* List runs for a prompt
|
|
222
|
+
*
|
|
223
|
+
* Individual model answers behind the aggregates, newest first, without their text — the list stays
|
|
224
|
+
* small enough to page through. Fetch `promptsRunsGet()` for the answer itself.
|
|
225
|
+
*/
|
|
226
|
+
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
|
+
/**
|
|
230
|
+
* Get an aggregated snapshot of mention and citation analytics for a specific prompt over a date
|
|
231
|
+
* range. Use this to identify competitive gaps, track brand visibility trends, and discover top
|
|
232
|
+
* cited URLs.
|
|
233
|
+
*/
|
|
234
|
+
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
|
+
/**
|
|
238
|
+
* Update a prompt
|
|
239
|
+
*
|
|
240
|
+
* Update a prompt's properties. Only provided fields will be updated. Toggling `enabled` schedules
|
|
241
|
+
* or unschedules the recurring run job.
|
|
242
|
+
*/
|
|
243
|
+
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
|
+
/**
|
|
247
|
+
* Create a report
|
|
248
|
+
*
|
|
249
|
+
* Create a new AI Share of Voice report and queue it for generation. The report will evaluate the
|
|
250
|
+
* brand across multiple AI engines (ChatGPT, Claude, Google AI) using generated and optional custom
|
|
251
|
+
* prompts.
|
|
252
|
+
*
|
|
253
|
+
* Requires an instance admin key; organization keys receive `403`.
|
|
254
|
+
*/
|
|
255
|
+
declare function reportsCreate(client: Client, params: CreateReportParams, options?: RequestOptions): RestCallPromise<CreateReportResponses, CreateReportErrors>;
|
|
256
|
+
//#endregion
|
|
257
|
+
//#region src/calls/reports-get.d.ts
|
|
258
|
+
/**
|
|
259
|
+
* Get report status and data
|
|
260
|
+
*
|
|
261
|
+
* Poll a report's status. When completed, returns per-prompt snapshot data with raw mention counts.
|
|
262
|
+
* Consumers are responsible for computing SoV and other derived metrics from the raw data.
|
|
263
|
+
*
|
|
264
|
+
* Requires an instance admin key; organization keys receive `403`.
|
|
265
|
+
*/
|
|
266
|
+
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
|
+
/**
|
|
270
|
+
* Retrieve a paginated list of all reports, ordered by creation date (newest first).
|
|
271
|
+
*
|
|
272
|
+
* Requires an instance admin key; organization keys receive `403`.
|
|
273
|
+
*/
|
|
274
|
+
declare function reportsList(client: Client, params?: ListReportsParams, options?: RequestOptions): PagePromise<ReportSummary, ListReportsResponse, ListReportsErrors>;
|
|
275
|
+
//#endregion
|
|
276
|
+
//#region src/calls/tools-analyze.d.ts
|
|
277
|
+
/**
|
|
278
|
+
* Analyze a website
|
|
279
|
+
*
|
|
280
|
+
* Run brand analysis without persisting anything. Returns suggested additional domains, aliases,
|
|
281
|
+
* competitors, and prompts.
|
|
282
|
+
*
|
|
283
|
+
* Requires an instance admin key; organization keys receive `403`.
|
|
284
|
+
*/
|
|
285
|
+
declare function toolsAnalyze(client: Client, params: AnalyzeBrandParams, options?: RequestOptions): RestCallPromise<AnalyzeBrandResponses, AnalyzeBrandErrors>;
|
|
286
|
+
//#endregion
|
|
287
|
+
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
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +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":"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"}
|