@spyglasshq/sdk 0.1.4 → 0.1.6
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/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +2 -2
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/client/requests/SearchMediaRequest.d.ts +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +2 -2
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/client/requests/SearchMediaRequest.d.mts +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +2 -2
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@spyglasshq/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "0.1.
|
|
47
|
-
"User-Agent": "@spyglasshq/sdk/0.1.
|
|
46
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
47
|
+
"User-Agent": "@spyglasshq/sdk/0.1.6",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -163,8 +163,8 @@ export declare class Spyglass {
|
|
|
163
163
|
searchTaxonomies(request: spyglass.SearchTaxonomiesRequest, requestOptions?: Spyglass.RequestOptions): core.HttpResponsePromise<spyglass.SearchTaxonomiesResponse>;
|
|
164
164
|
private __searchTaxonomies;
|
|
165
165
|
/**
|
|
166
|
-
* Return creatives. Pass `
|
|
167
|
-
* or omit it to search the whole corpus. Without `
|
|
166
|
+
* Return creatives. Pass `accountId` to scope to one brand or creator,
|
|
167
|
+
* or omit it to search the whole corpus. Without `accountId`,
|
|
168
168
|
* `query` is required.
|
|
169
169
|
*
|
|
170
170
|
* Limited to 120 requests per minute per user.
|
package/dist/cjs/Client.js
CHANGED
|
@@ -371,8 +371,8 @@ class Spyglass {
|
|
|
371
371
|
});
|
|
372
372
|
}
|
|
373
373
|
/**
|
|
374
|
-
* Return creatives. Pass `
|
|
375
|
-
* or omit it to search the whole corpus. Without `
|
|
374
|
+
* Return creatives. Pass `accountId` to scope to one brand or creator,
|
|
375
|
+
* or omit it to search the whole corpus. Without `accountId`,
|
|
376
376
|
* `query` is required.
|
|
377
377
|
*
|
|
378
378
|
* Limited to 120 requests per minute per user.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export interface SearchMediaRequest {
|
|
9
9
|
/** Brand id given as a platform string or uuid */
|
|
10
|
-
|
|
10
|
+
accountId?: SearchMediaRequest.AccountId;
|
|
11
11
|
query?: string;
|
|
12
12
|
channel?: SearchMediaRequest.Channel.Item[];
|
|
13
13
|
format?: SearchMediaRequest.Format.Item[];
|
|
@@ -38,7 +38,7 @@ export declare namespace SearchMediaRequest {
|
|
|
38
38
|
/**
|
|
39
39
|
* Brand id given as a platform string or uuid
|
|
40
40
|
*/
|
|
41
|
-
type
|
|
41
|
+
type AccountId = string | number;
|
|
42
42
|
type Channel = Channel.Item[];
|
|
43
43
|
namespace Channel {
|
|
44
44
|
const Item: {
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.6";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@spyglasshq/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "0.1.
|
|
10
|
-
"User-Agent": "@spyglasshq/sdk/0.1.
|
|
9
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
10
|
+
"User-Agent": "@spyglasshq/sdk/0.1.6",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -163,8 +163,8 @@ export declare class Spyglass {
|
|
|
163
163
|
searchTaxonomies(request: spyglass.SearchTaxonomiesRequest, requestOptions?: Spyglass.RequestOptions): core.HttpResponsePromise<spyglass.SearchTaxonomiesResponse>;
|
|
164
164
|
private __searchTaxonomies;
|
|
165
165
|
/**
|
|
166
|
-
* Return creatives. Pass `
|
|
167
|
-
* or omit it to search the whole corpus. Without `
|
|
166
|
+
* Return creatives. Pass `accountId` to scope to one brand or creator,
|
|
167
|
+
* or omit it to search the whole corpus. Without `accountId`,
|
|
168
168
|
* `query` is required.
|
|
169
169
|
*
|
|
170
170
|
* Limited to 120 requests per minute per user.
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -335,8 +335,8 @@ export class Spyglass {
|
|
|
335
335
|
});
|
|
336
336
|
}
|
|
337
337
|
/**
|
|
338
|
-
* Return creatives. Pass `
|
|
339
|
-
* or omit it to search the whole corpus. Without `
|
|
338
|
+
* Return creatives. Pass `accountId` to scope to one brand or creator,
|
|
339
|
+
* or omit it to search the whole corpus. Without `accountId`,
|
|
340
340
|
* `query` is required.
|
|
341
341
|
*
|
|
342
342
|
* Limited to 120 requests per minute per user.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export interface SearchMediaRequest {
|
|
9
9
|
/** Brand id given as a platform string or uuid */
|
|
10
|
-
|
|
10
|
+
accountId?: SearchMediaRequest.AccountId;
|
|
11
11
|
query?: string;
|
|
12
12
|
channel?: SearchMediaRequest.Channel.Item[];
|
|
13
13
|
format?: SearchMediaRequest.Format.Item[];
|
|
@@ -38,7 +38,7 @@ export declare namespace SearchMediaRequest {
|
|
|
38
38
|
/**
|
|
39
39
|
* Brand id given as a platform string or uuid
|
|
40
40
|
*/
|
|
41
|
-
type
|
|
41
|
+
type AccountId = string | number;
|
|
42
42
|
type Channel = Channel.Item[];
|
|
43
43
|
namespace Channel {
|
|
44
44
|
const Item: {
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.6";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.1.
|
|
1
|
+
export const SDK_VERSION = "0.1.6";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -284,8 +284,8 @@ await client.searchTaxonomies({
|
|
|
284
284
|
<dl>
|
|
285
285
|
<dd>
|
|
286
286
|
|
|
287
|
-
Return creatives. Pass `
|
|
288
|
-
or omit it to search the whole corpus. Without `
|
|
287
|
+
Return creatives. Pass `accountId` to scope to one brand or creator,
|
|
288
|
+
or omit it to search the whole corpus. Without `accountId`,
|
|
289
289
|
`query` is required.
|
|
290
290
|
|
|
291
291
|
Limited to 120 requests per minute per user.
|