@spyglasshq/sdk 0.1.1 → 0.1.2

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.
@@ -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.1",
47
- "User-Agent": "@spyglasshq/sdk/0.1.1",
46
+ "X-Fern-SDK-Version": "0.1.2",
47
+ "User-Agent": "@spyglasshq/sdk/0.1.2",
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);
@@ -14,7 +14,10 @@ export declare class SearchClient {
14
14
  protected readonly _options: NormalizedClientOptionsWithAuth<SearchClient.Options>;
15
15
  constructor(options: SearchClient.Options);
16
16
  /**
17
- * Find brands (advertisers) only.
17
+ * Find brands.
18
+ * Search semantically with `query`, or look them up by name, id, or
19
+ * social handle. Either way, you can also narrow the results with
20
+ * filters such as product taxonomy, location, and follower count.
18
21
  *
19
22
  * Send one search field. Each field is its own mode:
20
23
  *
@@ -71,9 +74,10 @@ export declare class SearchClient {
71
74
  brands(request?: spyglass.SearchBrandsRequest, requestOptions?: SearchClient.RequestOptions): core.HttpResponsePromise<spyglass.SearchBrandsResponse>;
72
75
  private __brands;
73
76
  /**
74
- * Find creators only.
75
- *
76
- * They also accept profile filters: `gender`, `ageRange`, `ethnicity`, `location` and `language`.
77
+ * Find creators.
78
+ * Search semantically with `query`, or look them up by name, id, or
79
+ * social handle. Either way, you can also narrow the results with
80
+ * filters such as audience profile, location, and follower count.
77
81
  *
78
82
  * Send one search field. Each field is its own mode:
79
83
  *
@@ -60,7 +60,10 @@ class SearchClient {
60
60
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
61
61
  }
62
62
  /**
63
- * Find brands (advertisers) only.
63
+ * Find brands.
64
+ * Search semantically with `query`, or look them up by name, id, or
65
+ * social handle. Either way, you can also narrow the results with
66
+ * filters such as product taxonomy, location, and follower count.
64
67
  *
65
68
  * Send one search field. Each field is its own mode:
66
69
  *
@@ -169,9 +172,10 @@ class SearchClient {
169
172
  });
170
173
  }
171
174
  /**
172
- * Find creators only.
173
- *
174
- * They also accept profile filters: `gender`, `ageRange`, `ethnicity`, `location` and `language`.
175
+ * Find creators.
176
+ * Search semantically with `query`, or look them up by name, id, or
177
+ * social handle. Either way, you can also narrow the results with
178
+ * filters such as audience profile, location, and follower count.
175
179
  *
176
180
  * Send one search field. Each field is its own mode:
177
181
  *
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.1";
1
+ export declare const SDK_VERSION = "0.1.2";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.1";
4
+ exports.SDK_VERSION = "0.1.2";
@@ -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.1",
10
- "User-Agent": "@spyglasshq/sdk/0.1.1",
9
+ "X-Fern-SDK-Version": "0.1.2",
10
+ "User-Agent": "@spyglasshq/sdk/0.1.2",
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);
@@ -14,7 +14,10 @@ export declare class SearchClient {
14
14
  protected readonly _options: NormalizedClientOptionsWithAuth<SearchClient.Options>;
15
15
  constructor(options: SearchClient.Options);
16
16
  /**
17
- * Find brands (advertisers) only.
17
+ * Find brands.
18
+ * Search semantically with `query`, or look them up by name, id, or
19
+ * social handle. Either way, you can also narrow the results with
20
+ * filters such as product taxonomy, location, and follower count.
18
21
  *
19
22
  * Send one search field. Each field is its own mode:
20
23
  *
@@ -71,9 +74,10 @@ export declare class SearchClient {
71
74
  brands(request?: spyglass.SearchBrandsRequest, requestOptions?: SearchClient.RequestOptions): core.HttpResponsePromise<spyglass.SearchBrandsResponse>;
72
75
  private __brands;
73
76
  /**
74
- * Find creators only.
75
- *
76
- * They also accept profile filters: `gender`, `ageRange`, `ethnicity`, `location` and `language`.
77
+ * Find creators.
78
+ * Search semantically with `query`, or look them up by name, id, or
79
+ * social handle. Either way, you can also narrow the results with
80
+ * filters such as audience profile, location, and follower count.
77
81
  *
78
82
  * Send one search field. Each field is its own mode:
79
83
  *
@@ -24,7 +24,10 @@ export class SearchClient {
24
24
  this._options = normalizeClientOptionsWithAuth(options);
25
25
  }
26
26
  /**
27
- * Find brands (advertisers) only.
27
+ * Find brands.
28
+ * Search semantically with `query`, or look them up by name, id, or
29
+ * social handle. Either way, you can also narrow the results with
30
+ * filters such as product taxonomy, location, and follower count.
28
31
  *
29
32
  * Send one search field. Each field is its own mode:
30
33
  *
@@ -133,9 +136,10 @@ export class SearchClient {
133
136
  });
134
137
  }
135
138
  /**
136
- * Find creators only.
137
- *
138
- * They also accept profile filters: `gender`, `ageRange`, `ethnicity`, `location` and `language`.
139
+ * Find creators.
140
+ * Search semantically with `query`, or look them up by name, id, or
141
+ * social handle. Either way, you can also narrow the results with
142
+ * filters such as audience profile, location, and follower count.
139
143
  *
140
144
  * Send one search field. Each field is its own mode:
141
145
  *
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.1";
1
+ export declare const SDK_VERSION = "0.1.2";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.1.1";
1
+ export const SDK_VERSION = "0.1.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spyglasshq/sdk",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -12,7 +12,10 @@
12
12
  <dl>
13
13
  <dd>
14
14
 
15
- Find brands (advertisers) only.
15
+ Find brands.
16
+ Search semantically with `query`, or look them up by name, id, or
17
+ social handle. Either way, you can also narrow the results with
18
+ filters such as product taxonomy, location, and follower count.
16
19
 
17
20
  Send one search field. Each field is its own mode:
18
21
 
@@ -110,9 +113,10 @@ await client.search.brands({
110
113
  <dl>
111
114
  <dd>
112
115
 
113
- Find creators only.
114
-
115
- They also accept profile filters: `gender`, `ageRange`, `ethnicity`, `location` and `language`.
116
+ Find creators.
117
+ Search semantically with `query`, or look them up by name, id, or
118
+ social handle. Either way, you can also narrow the results with
119
+ filters such as audience profile, location, and follower count.
116
120
 
117
121
  Send one search field. Each field is its own mode:
118
122