@spyglasshq/sdk 0.1.1 → 0.1.3

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.
Files changed (188) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +257 -6
  3. package/dist/cjs/Client.js +574 -9
  4. package/dist/cjs/api/{resources/search/client/requests/GetMediaRequest.d.ts → client/requests/SearchMediaRequest.d.ts} +13 -13
  5. package/dist/cjs/api/{resources/search/client/requests/GetMediaRequest.js → client/requests/SearchMediaRequest.js} +14 -14
  6. package/dist/cjs/api/client/requests/index.d.ts +5 -0
  7. package/dist/cjs/api/{resources/search/client → client}/requests/index.js +3 -3
  8. package/dist/cjs/api/index.d.ts +1 -0
  9. package/dist/cjs/api/index.js +1 -0
  10. package/dist/cjs/api/resources/account/client/Client.d.ts +131 -11
  11. package/dist/cjs/api/resources/account/client/Client.js +353 -14
  12. package/dist/cjs/api/resources/account/client/index.d.ts +1 -1
  13. package/dist/cjs/api/resources/account/client/index.js +15 -0
  14. package/dist/cjs/api/resources/{indexing/client/requests/IndexBrandRequest.d.ts → account/client/requests/IndexAccountRequest.d.ts} +1 -1
  15. package/dist/{esm/api/resources/indexing/client/requests/IndexBrandStatusRequest.d.mts → cjs/api/resources/account/client/requests/IndexStatusAccountRequest.d.ts} +1 -1
  16. package/dist/cjs/api/resources/{search/client/requests/GetBrandMediaInsightsRequest.d.ts → account/client/requests/InsightsAccountRequest.d.ts} +2 -2
  17. package/dist/cjs/api/resources/{search/client/requests/GetBrandLandingPagesRequest.d.ts → account/client/requests/LandingPagesAccountRequest.d.ts} +2 -2
  18. package/dist/cjs/api/resources/account/client/requests/index.d.ts +5 -0
  19. package/dist/{esm/api/resources/indexing/types/IndexBrandResponse.d.mts → cjs/api/resources/account/types/IndexAccountResponse.d.ts} +3 -3
  20. package/dist/cjs/api/resources/account/types/IndexAccountResponse.js +11 -0
  21. package/dist/cjs/api/resources/{indexing/types/IndexBrandStatusResponse.d.ts → account/types/IndexStatusAccountResponse.d.ts} +3 -3
  22. package/dist/cjs/api/resources/account/types/IndexStatusAccountResponse.js +11 -0
  23. package/dist/cjs/api/resources/account/types/InsightsAccountRequestType.d.ts +7 -0
  24. package/dist/cjs/api/resources/{search/types/GetBrandMediaInsightsRequestType.js → account/types/InsightsAccountRequestType.js} +2 -2
  25. package/dist/cjs/api/resources/{search/types/GetBrandMediaInsightsResponse.d.ts → account/types/InsightsAccountResponse.d.ts} +1 -1
  26. package/dist/cjs/api/resources/account/types/LandingPagesAccountRequestShowInactive.d.ts +5 -0
  27. package/dist/cjs/api/resources/{search/types/GetBrandLandingPagesRequestShowInactive.js → account/types/LandingPagesAccountRequestShowInactive.js} +2 -2
  28. package/dist/cjs/api/resources/{search/types/GetBrandLandingPagesResponse.d.ts → account/types/LandingPagesAccountResponse.d.ts} +3 -3
  29. package/dist/cjs/api/resources/account/types/index.d.ts +7 -1
  30. package/dist/cjs/api/resources/account/types/index.js +7 -1
  31. package/dist/cjs/api/resources/index.d.ts +1 -6
  32. package/dist/cjs/api/resources/index.js +5 -10
  33. package/dist/{esm/api/resources/search/types/GetMediaResponse.d.mts → cjs/api/types/SearchMediaResponse.d.ts} +3 -3
  34. package/dist/cjs/api/{resources/search/types/GetMediaResponse.js → types/SearchMediaResponse.js} +5 -5
  35. package/dist/cjs/api/types/index.d.ts +6 -0
  36. package/dist/cjs/api/types/index.js +6 -0
  37. package/dist/cjs/version.d.ts +1 -1
  38. package/dist/cjs/version.js +1 -1
  39. package/dist/esm/BaseClient.mjs +2 -2
  40. package/dist/esm/Client.d.mts +257 -6
  41. package/dist/esm/Client.mjs +574 -9
  42. package/dist/esm/api/{resources/search/client/requests/GetMediaRequest.d.mts → client/requests/SearchMediaRequest.d.mts} +13 -13
  43. package/dist/esm/api/{resources/search/client/requests/GetMediaRequest.mjs → client/requests/SearchMediaRequest.mjs} +13 -13
  44. package/dist/esm/api/client/requests/index.d.mts +5 -0
  45. package/dist/esm/api/{resources/search/client → client}/requests/index.mjs +1 -1
  46. package/dist/esm/api/index.d.mts +1 -0
  47. package/dist/esm/api/index.mjs +1 -0
  48. package/dist/esm/api/resources/account/client/Client.d.mts +131 -11
  49. package/dist/esm/api/resources/account/client/Client.mjs +353 -14
  50. package/dist/esm/api/resources/account/client/index.d.mts +1 -1
  51. package/dist/esm/api/resources/account/client/index.mjs +1 -1
  52. package/dist/esm/api/resources/{indexing/client/requests/IndexBrandRequest.d.mts → account/client/requests/IndexAccountRequest.d.mts} +1 -1
  53. package/dist/{cjs/api/resources/indexing/client/requests/IndexBrandStatusRequest.d.ts → esm/api/resources/account/client/requests/IndexStatusAccountRequest.d.mts} +1 -1
  54. package/dist/esm/api/resources/{search/client/requests/GetBrandMediaInsightsRequest.d.mts → account/client/requests/InsightsAccountRequest.d.mts} +2 -2
  55. package/dist/esm/api/resources/{search/client/requests/GetBrandLandingPagesRequest.d.mts → account/client/requests/LandingPagesAccountRequest.d.mts} +2 -2
  56. package/dist/esm/api/resources/account/client/requests/index.d.mts +5 -0
  57. package/dist/{cjs/api/resources/indexing/types/IndexBrandResponse.d.ts → esm/api/resources/account/types/IndexAccountResponse.d.mts} +3 -3
  58. package/dist/esm/api/resources/account/types/IndexAccountResponse.mjs +8 -0
  59. package/dist/esm/api/resources/{indexing/types/IndexBrandStatusResponse.d.mts → account/types/IndexStatusAccountResponse.d.mts} +3 -3
  60. package/dist/esm/api/resources/account/types/IndexStatusAccountResponse.mjs +8 -0
  61. package/dist/esm/api/resources/account/types/InsightsAccountRequestType.d.mts +7 -0
  62. package/dist/esm/api/resources/{search/types/GetBrandMediaInsightsRequestType.mjs → account/types/InsightsAccountRequestType.mjs} +1 -1
  63. package/dist/esm/api/resources/{search/types/GetBrandMediaInsightsResponse.d.mts → account/types/InsightsAccountResponse.d.mts} +1 -1
  64. package/dist/esm/api/resources/account/types/LandingPagesAccountRequestShowInactive.d.mts +5 -0
  65. package/dist/esm/api/resources/{search/types/GetBrandLandingPagesRequestShowInactive.mjs → account/types/LandingPagesAccountRequestShowInactive.mjs} +1 -1
  66. package/dist/esm/api/resources/{search/types/GetBrandLandingPagesResponse.d.mts → account/types/LandingPagesAccountResponse.d.mts} +3 -3
  67. package/dist/esm/api/resources/account/types/index.d.mts +7 -1
  68. package/dist/esm/api/resources/account/types/index.mjs +7 -1
  69. package/dist/esm/api/resources/index.d.mts +1 -6
  70. package/dist/esm/api/resources/index.mjs +1 -6
  71. package/dist/{cjs/api/resources/search/types/GetMediaResponse.d.ts → esm/api/types/SearchMediaResponse.d.mts} +3 -3
  72. package/dist/esm/api/{resources/search/types/GetMediaResponse.mjs → types/SearchMediaResponse.mjs} +4 -4
  73. package/dist/esm/api/types/index.d.mts +6 -0
  74. package/dist/esm/api/types/index.mjs +6 -0
  75. package/dist/esm/version.d.mts +1 -1
  76. package/dist/esm/version.mjs +1 -1
  77. package/package.json +1 -23
  78. package/reference.md +117 -115
  79. package/dist/cjs/api/resources/indexing/client/Client.d.ts +0 -74
  80. package/dist/cjs/api/resources/indexing/client/Client.js +0 -219
  81. package/dist/cjs/api/resources/indexing/client/requests/index.d.ts +0 -2
  82. package/dist/cjs/api/resources/indexing/exports.d.ts +0 -2
  83. package/dist/cjs/api/resources/indexing/exports.js +0 -21
  84. package/dist/cjs/api/resources/indexing/index.d.ts +0 -2
  85. package/dist/cjs/api/resources/indexing/index.js +0 -18
  86. package/dist/cjs/api/resources/indexing/types/IndexBrandResponse.js +0 -11
  87. package/dist/cjs/api/resources/indexing/types/IndexBrandStatusResponse.js +0 -11
  88. package/dist/cjs/api/resources/indexing/types/index.d.ts +0 -2
  89. package/dist/cjs/api/resources/indexing/types/index.js +0 -18
  90. package/dist/cjs/api/resources/search/client/Client.d.ts +0 -333
  91. package/dist/cjs/api/resources/search/client/Client.js +0 -819
  92. package/dist/cjs/api/resources/search/client/index.d.ts +0 -1
  93. package/dist/cjs/api/resources/search/client/index.js +0 -17
  94. package/dist/cjs/api/resources/search/client/requests/index.d.ts +0 -8
  95. package/dist/cjs/api/resources/search/exports.d.ts +0 -2
  96. package/dist/cjs/api/resources/search/exports.js +0 -21
  97. package/dist/cjs/api/resources/search/index.d.ts +0 -2
  98. package/dist/cjs/api/resources/search/index.js +0 -18
  99. package/dist/cjs/api/resources/search/types/GetBrandLandingPagesRequestShowInactive.d.ts +0 -5
  100. package/dist/cjs/api/resources/search/types/GetBrandMediaInsightsRequestType.d.ts +0 -7
  101. package/dist/cjs/api/resources/search/types/index.d.ts +0 -10
  102. package/dist/cjs/api/resources/search/types/index.js +0 -26
  103. package/dist/esm/api/resources/indexing/client/Client.d.mts +0 -74
  104. package/dist/esm/api/resources/indexing/client/Client.mjs +0 -182
  105. package/dist/esm/api/resources/indexing/client/requests/index.d.mts +0 -2
  106. package/dist/esm/api/resources/indexing/exports.d.mts +0 -2
  107. package/dist/esm/api/resources/indexing/exports.mjs +0 -3
  108. package/dist/esm/api/resources/indexing/index.d.mts +0 -2
  109. package/dist/esm/api/resources/indexing/index.mjs +0 -2
  110. package/dist/esm/api/resources/indexing/types/IndexBrandResponse.mjs +0 -8
  111. package/dist/esm/api/resources/indexing/types/IndexBrandStatusResponse.mjs +0 -8
  112. package/dist/esm/api/resources/indexing/types/index.d.mts +0 -2
  113. package/dist/esm/api/resources/indexing/types/index.mjs +0 -2
  114. package/dist/esm/api/resources/search/client/Client.d.mts +0 -333
  115. package/dist/esm/api/resources/search/client/Client.mjs +0 -782
  116. package/dist/esm/api/resources/search/client/index.d.mts +0 -1
  117. package/dist/esm/api/resources/search/client/index.mjs +0 -1
  118. package/dist/esm/api/resources/search/client/requests/index.d.mts +0 -8
  119. package/dist/esm/api/resources/search/exports.d.mts +0 -2
  120. package/dist/esm/api/resources/search/exports.mjs +0 -3
  121. package/dist/esm/api/resources/search/index.d.mts +0 -2
  122. package/dist/esm/api/resources/search/index.mjs +0 -2
  123. package/dist/esm/api/resources/search/types/GetBrandLandingPagesRequestShowInactive.d.mts +0 -5
  124. package/dist/esm/api/resources/search/types/GetBrandMediaInsightsRequestType.d.mts +0 -7
  125. package/dist/esm/api/resources/search/types/index.d.mts +0 -10
  126. package/dist/esm/api/resources/search/types/index.mjs +0 -10
  127. /package/dist/cjs/api/{resources/indexing/client → client}/index.d.ts +0 -0
  128. /package/dist/cjs/api/{resources/indexing/client → client}/index.js +0 -0
  129. /package/dist/cjs/api/{resources/search/client → client}/requests/GetCommentsRequest.d.ts +0 -0
  130. /package/dist/cjs/api/{resources/search/client → client}/requests/GetCommentsRequest.js +0 -0
  131. /package/dist/cjs/api/{resources/search/client → client}/requests/SearchBrandsRequest.d.ts +0 -0
  132. /package/dist/cjs/api/{resources/search/client → client}/requests/SearchBrandsRequest.js +0 -0
  133. /package/dist/cjs/api/{resources/search/client → client}/requests/SearchCreatorsRequest.d.ts +0 -0
  134. /package/dist/cjs/api/{resources/search/client → client}/requests/SearchCreatorsRequest.js +0 -0
  135. /package/dist/cjs/api/{resources/search/client → client}/requests/SearchTaxonomiesRequest.d.ts +0 -0
  136. /package/dist/cjs/api/{resources/search/client → client}/requests/SearchTaxonomiesRequest.js +0 -0
  137. /package/dist/cjs/api/resources/{search → account}/client/requests/GetAccountRequest.d.ts +0 -0
  138. /package/dist/cjs/api/resources/{search → account}/client/requests/GetAccountRequest.js +0 -0
  139. /package/dist/cjs/api/resources/account/{types/GetCreditUsageResponse.js → client/requests/IndexAccountRequest.js} +0 -0
  140. /package/dist/cjs/api/resources/{indexing/client/requests/IndexBrandRequest.js → account/client/requests/IndexStatusAccountRequest.js} +0 -0
  141. /package/dist/cjs/api/resources/{indexing/client/requests/IndexBrandStatusRequest.js → account/client/requests/InsightsAccountRequest.js} +0 -0
  142. /package/dist/cjs/api/resources/{search/client/requests/GetBrandLandingPagesRequest.js → account/client/requests/LandingPagesAccountRequest.js} +0 -0
  143. /package/dist/cjs/api/resources/{indexing → account}/client/requests/index.js +0 -0
  144. /package/dist/cjs/api/resources/{search → account}/types/GetAccountResponse.d.ts +0 -0
  145. /package/dist/cjs/api/resources/{search → account}/types/GetAccountResponse.js +0 -0
  146. /package/dist/cjs/api/resources/{search/client/requests/GetBrandMediaInsightsRequest.js → account/types/InsightsAccountResponse.js} +0 -0
  147. /package/dist/cjs/api/resources/{search/types/GetBrandLandingPagesResponse.js → account/types/LandingPagesAccountResponse.js} +0 -0
  148. /package/dist/cjs/api/{resources/search/types → types}/GetCommentsResponse.d.ts +0 -0
  149. /package/dist/cjs/api/{resources/search/types → types}/GetCommentsResponse.js +0 -0
  150. /package/dist/cjs/api/{resources/account/types → types}/GetCreditUsageResponse.d.ts +0 -0
  151. /package/dist/cjs/api/{resources/search/types/GetBrandMediaInsightsResponse.js → types/GetCreditUsageResponse.js} +0 -0
  152. /package/dist/cjs/api/{resources/search/types → types}/SearchBrandsResponse.d.ts +0 -0
  153. /package/dist/cjs/api/{resources/search/types → types}/SearchBrandsResponse.js +0 -0
  154. /package/dist/cjs/api/{resources/search/types → types}/SearchCreatorsResponse.d.ts +0 -0
  155. /package/dist/cjs/api/{resources/search/types → types}/SearchCreatorsResponse.js +0 -0
  156. /package/dist/cjs/api/{resources/search/types → types}/SearchTaxonomiesResponse.d.ts +0 -0
  157. /package/dist/cjs/api/{resources/search/types → types}/SearchTaxonomiesResponse.js +0 -0
  158. /package/dist/esm/api/{resources/indexing/client → client}/index.d.mts +0 -0
  159. /package/dist/esm/api/{resources/indexing/client → client}/index.mjs +0 -0
  160. /package/dist/esm/api/{resources/search/client → client}/requests/GetCommentsRequest.d.mts +0 -0
  161. /package/dist/esm/api/{resources/search/client → client}/requests/GetCommentsRequest.mjs +0 -0
  162. /package/dist/esm/api/{resources/search/client → client}/requests/SearchBrandsRequest.d.mts +0 -0
  163. /package/dist/esm/api/{resources/search/client → client}/requests/SearchBrandsRequest.mjs +0 -0
  164. /package/dist/esm/api/{resources/search/client → client}/requests/SearchCreatorsRequest.d.mts +0 -0
  165. /package/dist/esm/api/{resources/search/client → client}/requests/SearchCreatorsRequest.mjs +0 -0
  166. /package/dist/esm/api/{resources/search/client → client}/requests/SearchTaxonomiesRequest.d.mts +0 -0
  167. /package/dist/esm/api/{resources/search/client → client}/requests/SearchTaxonomiesRequest.mjs +0 -0
  168. /package/dist/esm/api/resources/{search → account}/client/requests/GetAccountRequest.d.mts +0 -0
  169. /package/dist/esm/api/resources/{search → account}/client/requests/GetAccountRequest.mjs +0 -0
  170. /package/dist/esm/api/resources/account/{types/GetCreditUsageResponse.mjs → client/requests/IndexAccountRequest.mjs} +0 -0
  171. /package/dist/esm/api/resources/{indexing/client/requests/IndexBrandRequest.mjs → account/client/requests/IndexStatusAccountRequest.mjs} +0 -0
  172. /package/dist/esm/api/resources/{indexing/client/requests/IndexBrandStatusRequest.mjs → account/client/requests/InsightsAccountRequest.mjs} +0 -0
  173. /package/dist/esm/api/resources/{search/client/requests/GetBrandLandingPagesRequest.mjs → account/client/requests/LandingPagesAccountRequest.mjs} +0 -0
  174. /package/dist/esm/api/resources/{indexing → account}/client/requests/index.mjs +0 -0
  175. /package/dist/esm/api/resources/{search → account}/types/GetAccountResponse.d.mts +0 -0
  176. /package/dist/esm/api/resources/{search → account}/types/GetAccountResponse.mjs +0 -0
  177. /package/dist/esm/api/resources/{search/client/requests/GetBrandMediaInsightsRequest.mjs → account/types/InsightsAccountResponse.mjs} +0 -0
  178. /package/dist/esm/api/resources/{search/types/GetBrandLandingPagesResponse.mjs → account/types/LandingPagesAccountResponse.mjs} +0 -0
  179. /package/dist/esm/api/{resources/search/types → types}/GetCommentsResponse.d.mts +0 -0
  180. /package/dist/esm/api/{resources/search/types → types}/GetCommentsResponse.mjs +0 -0
  181. /package/dist/esm/api/{resources/account/types → types}/GetCreditUsageResponse.d.mts +0 -0
  182. /package/dist/esm/api/{resources/search/types/GetBrandMediaInsightsResponse.mjs → types/GetCreditUsageResponse.mjs} +0 -0
  183. /package/dist/esm/api/{resources/search/types → types}/SearchBrandsResponse.d.mts +0 -0
  184. /package/dist/esm/api/{resources/search/types → types}/SearchBrandsResponse.mjs +0 -0
  185. /package/dist/esm/api/{resources/search/types → types}/SearchCreatorsResponse.d.mts +0 -0
  186. /package/dist/esm/api/{resources/search/types → types}/SearchCreatorsResponse.mjs +0 -0
  187. /package/dist/esm/api/{resources/search/types → types}/SearchTaxonomiesResponse.d.mts +0 -0
  188. /package/dist/esm/api/{resources/search/types → types}/SearchTaxonomiesResponse.mjs +0 -0
@@ -1,6 +1,6 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export var GetMediaResponse;
3
- (function (GetMediaResponse) {
2
+ export var SearchMediaResponse;
3
+ (function (SearchMediaResponse) {
4
4
  let Media;
5
5
  (function (Media) {
6
6
  let Item;
@@ -50,5 +50,5 @@ export var GetMediaResponse;
50
50
  };
51
51
  })(UgcCharacter = Item.UgcCharacter || (Item.UgcCharacter = {}));
52
52
  })(Item = Media.Item || (Media.Item = {}));
53
- })(Media = GetMediaResponse.Media || (GetMediaResponse.Media = {}));
54
- })(GetMediaResponse || (GetMediaResponse = {}));
53
+ })(Media = SearchMediaResponse.Media || (SearchMediaResponse.Media = {}));
54
+ })(SearchMediaResponse || (SearchMediaResponse = {}));
@@ -1 +1,7 @@
1
1
  export * from "./Error_.mjs";
2
+ export * from "./GetCommentsResponse.mjs";
3
+ export * from "./GetCreditUsageResponse.mjs";
4
+ export * from "./SearchBrandsResponse.mjs";
5
+ export * from "./SearchCreatorsResponse.mjs";
6
+ export * from "./SearchMediaResponse.mjs";
7
+ export * from "./SearchTaxonomiesResponse.mjs";
@@ -1 +1,7 @@
1
1
  export * from "./Error_.mjs";
2
+ export * from "./GetCommentsResponse.mjs";
3
+ export * from "./GetCreditUsageResponse.mjs";
4
+ export * from "./SearchBrandsResponse.mjs";
5
+ export * from "./SearchCreatorsResponse.mjs";
6
+ export * from "./SearchMediaResponse.mjs";
7
+ export * from "./SearchTaxonomiesResponse.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.1";
1
+ export declare const SDK_VERSION = "0.1.3";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.1.1";
1
+ export const SDK_VERSION = "0.1.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spyglasshq/sdk",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,17 +22,6 @@
22
22
  },
23
23
  "default": "./dist/cjs/index.js"
24
24
  },
25
- "./search": {
26
- "import": {
27
- "types": "./dist/esm/api/resources/search/exports.d.mts",
28
- "default": "./dist/esm/api/resources/search/exports.mjs"
29
- },
30
- "require": {
31
- "types": "./dist/cjs/api/resources/search/exports.d.ts",
32
- "default": "./dist/cjs/api/resources/search/exports.js"
33
- },
34
- "default": "./dist/cjs/api/resources/search/exports.js"
35
- },
36
25
  "./account": {
37
26
  "import": {
38
27
  "types": "./dist/esm/api/resources/account/exports.d.mts",
@@ -44,17 +33,6 @@
44
33
  },
45
34
  "default": "./dist/cjs/api/resources/account/exports.js"
46
35
  },
47
- "./indexing": {
48
- "import": {
49
- "types": "./dist/esm/api/resources/indexing/exports.d.mts",
50
- "default": "./dist/esm/api/resources/indexing/exports.mjs"
51
- },
52
- "require": {
53
- "types": "./dist/cjs/api/resources/indexing/exports.d.ts",
54
- "default": "./dist/cjs/api/resources/indexing/exports.js"
55
- },
56
- "default": "./dist/cjs/api/resources/indexing/exports.js"
57
- },
58
36
  "./package.json": "./package.json"
59
37
  },
60
38
  "files": [
package/reference.md CHANGED
@@ -1,6 +1,5 @@
1
1
  # Reference
2
- ## Search
3
- <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">brands</a>({ ...params }) -> spyglass.SearchBrandsResponse</code></summary>
2
+ <details><summary><code>client.<a href="/src/Client.ts">searchBrands</a>({ ...params }) -> spyglass.SearchBrandsResponse</code></summary>
4
3
  <dl>
5
4
  <dd>
6
5
 
@@ -12,7 +11,10 @@
12
11
  <dl>
13
12
  <dd>
14
13
 
15
- Find brands (advertisers) only.
14
+ Find brands.
15
+ Search semantically with `query`, or look them up by name, id, or
16
+ social handle. Either way, you can also narrow the results with
17
+ filters such as product taxonomy, location, and follower count.
16
18
 
17
19
  Send one search field. Each field is its own mode:
18
20
 
@@ -59,7 +61,7 @@ row even when nothing matches.
59
61
  <dd>
60
62
 
61
63
  ```typescript
62
- await client.search.brands({
64
+ await client.searchBrands({
63
65
  names: ["Nike"],
64
66
  limit: 3
65
67
  });
@@ -86,7 +88,7 @@ await client.search.brands({
86
88
  <dl>
87
89
  <dd>
88
90
 
89
- **requestOptions:** `SearchClient.RequestOptions`
91
+ **requestOptions:** `Spyglass.RequestOptions`
90
92
 
91
93
  </dd>
92
94
  </dl>
@@ -98,7 +100,7 @@ await client.search.brands({
98
100
  </dl>
99
101
  </details>
100
102
 
101
- <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">creators</a>({ ...params }) -> spyglass.SearchCreatorsResponse</code></summary>
103
+ <details><summary><code>client.<a href="/src/Client.ts">searchCreators</a>({ ...params }) -> spyglass.SearchCreatorsResponse</code></summary>
102
104
  <dl>
103
105
  <dd>
104
106
 
@@ -110,9 +112,10 @@ await client.search.brands({
110
112
  <dl>
111
113
  <dd>
112
114
 
113
- Find creators only.
114
-
115
- They also accept profile filters: `gender`, `ageRange`, `ethnicity`, `location` and `language`.
115
+ Find creators.
116
+ Search semantically with `query`, or look them up by name, id, or
117
+ social handle. Either way, you can also narrow the results with
118
+ filters such as audience profile, location, and follower count.
116
119
 
117
120
  Send one search field. Each field is its own mode:
118
121
 
@@ -159,7 +162,7 @@ row even when nothing matches.
159
162
  <dd>
160
163
 
161
164
  ```typescript
162
- await client.search.creators({
165
+ await client.searchCreators({
163
166
  igUsername: "charlidamelio",
164
167
  limit: 3,
165
168
  gender: "female"
@@ -187,7 +190,7 @@ await client.search.creators({
187
190
  <dl>
188
191
  <dd>
189
192
 
190
- **requestOptions:** `SearchClient.RequestOptions`
193
+ **requestOptions:** `Spyglass.RequestOptions`
191
194
 
192
195
  </dd>
193
196
  </dl>
@@ -199,7 +202,7 @@ await client.search.creators({
199
202
  </dl>
200
203
  </details>
201
204
 
202
- <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">getAccount</a>({ ...params }) -> spyglass.GetAccountResponse</code></summary>
205
+ <details><summary><code>client.<a href="/src/Client.ts">searchTaxonomies</a>({ ...params }) -> spyglass.SearchTaxonomiesResponse</code></summary>
203
206
  <dl>
204
207
  <dd>
205
208
 
@@ -211,13 +214,12 @@ await client.search.creators({
211
214
  <dl>
212
215
  <dd>
213
216
 
214
- Fetch a single brand or creator by id. The `type` field tells you
215
- which one you got: `BRAND` or `CREATOR`, and the creator-only fields
216
- (`gender`, `ageRange`, ...) are present only on `CREATOR`.
217
+ Find taxonomy paths you can pass to POST /media as `taxonomy`.
218
+ `query` is a product or category phrase. Each path is a string
219
+ such as `Apparel > Footwear > Sneakers`.
217
220
 
218
221
  Limited to 120 requests per minute per user.
219
- Costs 2,000 microdollars ($0.0020) per account returned, charged against your plan's monthly credits.
220
- An id that matches nothing returns 404 and is free.
222
+ This call is free and does not use credits.
221
223
  </dd>
222
224
  </dl>
223
225
  </dd>
@@ -232,8 +234,8 @@ An id that matches nothing returns 404 and is free.
232
234
  <dd>
233
235
 
234
236
  ```typescript
235
- await client.search.getAccount({
236
- id: "id"
237
+ await client.searchTaxonomies({
238
+ query: "running shoes"
237
239
  });
238
240
 
239
241
  ```
@@ -250,7 +252,7 @@ await client.search.getAccount({
250
252
  <dl>
251
253
  <dd>
252
254
 
253
- **request:** `spyglass.GetAccountRequest`
255
+ **request:** `spyglass.SearchTaxonomiesRequest`
254
256
 
255
257
  </dd>
256
258
  </dl>
@@ -258,7 +260,7 @@ await client.search.getAccount({
258
260
  <dl>
259
261
  <dd>
260
262
 
261
- **requestOptions:** `SearchClient.RequestOptions`
263
+ **requestOptions:** `Spyglass.RequestOptions`
262
264
 
263
265
  </dd>
264
266
  </dl>
@@ -270,7 +272,7 @@ await client.search.getAccount({
270
272
  </dl>
271
273
  </details>
272
274
 
273
- <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">taxonomies</a>({ ...params }) -> spyglass.SearchTaxonomiesResponse</code></summary>
275
+ <details><summary><code>client.<a href="/src/Client.ts">searchMedia</a>({ ...params }) -> spyglass.SearchMediaResponse</code></summary>
274
276
  <dl>
275
277
  <dd>
276
278
 
@@ -282,12 +284,14 @@ await client.search.getAccount({
282
284
  <dl>
283
285
  <dd>
284
286
 
285
- Find taxonomy paths you can pass to POST /media as `taxonomy`.
286
- `query` is a product or category phrase. Each path is a string
287
- such as `Apparel > Footwear > Sneakers`.
287
+ Return creatives. Pass `brandId` to scope to one brand or creator,
288
+ or omit it to search the whole corpus. Without `brandId`,
289
+ `query` is required.
288
290
 
289
291
  Limited to 120 requests per minute per user.
290
- This call is free and does not use credits.
292
+ Costs 1,000 microdollars ($0.0010) per creative returned, charged against your plan's monthly credits. The count field is what you were charged for.
293
+ The call bills a minimum of one row even when nothing matches. In that
294
+ case `count` is 0 but you are charged for one row.
291
295
  </dd>
292
296
  </dl>
293
297
  </dd>
@@ -302,8 +306,9 @@ This call is free and does not use credits.
302
306
  <dd>
303
307
 
304
308
  ```typescript
305
- await client.search.taxonomies({
306
- query: "running shoes"
309
+ await client.searchMedia({
310
+ query: "comfort-focused video ads",
311
+ limit: 20
307
312
  });
308
313
 
309
314
  ```
@@ -320,7 +325,7 @@ await client.search.taxonomies({
320
325
  <dl>
321
326
  <dd>
322
327
 
323
- **request:** `spyglass.SearchTaxonomiesRequest`
328
+ **request:** `spyglass.SearchMediaRequest`
324
329
 
325
330
  </dd>
326
331
  </dl>
@@ -328,7 +333,7 @@ await client.search.taxonomies({
328
333
  <dl>
329
334
  <dd>
330
335
 
331
- **requestOptions:** `SearchClient.RequestOptions`
336
+ **requestOptions:** `Spyglass.RequestOptions`
332
337
 
333
338
  </dd>
334
339
  </dl>
@@ -340,7 +345,7 @@ await client.search.taxonomies({
340
345
  </dl>
341
346
  </details>
342
347
 
343
- <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">getMedia</a>({ ...params }) -> spyglass.GetMediaResponse</code></summary>
348
+ <details><summary><code>client.<a href="/src/Client.ts">getCreditUsage</a>() -> spyglass.GetCreditUsageResponse</code></summary>
344
349
  <dl>
345
350
  <dd>
346
351
 
@@ -352,14 +357,13 @@ await client.search.taxonomies({
352
357
  <dl>
353
358
  <dd>
354
359
 
355
- Return creatives. Pass `brandId` to scope to one brand or creator,
356
- or omit it to search the whole corpus. Without `brandId`,
357
- `query` is required.
360
+ Credits left on the API key's team, the credits included in the
361
+ plan, and the current billing period. Granted credits count toward
362
+ `remainingCredits` and not `planCredits`.
358
363
 
359
364
  Limited to 120 requests per minute per user.
360
- Costs 1,000 microdollars ($0.0010) per creative returned, charged against your plan's monthly credits. The count field is what you were charged for.
361
- The call bills a minimum of one row even when nothing matches. In that
362
- case `count` is 0 but you are charged for one row.
365
+ This call is free and does not use credits. It still responds when
366
+ the team is out of credits.
363
367
  </dd>
364
368
  </dl>
365
369
  </dd>
@@ -374,10 +378,7 @@ case `count` is 0 but you are charged for one row.
374
378
  <dd>
375
379
 
376
380
  ```typescript
377
- await client.search.getMedia({
378
- query: "comfort-focused video ads",
379
- limit: 20
380
- });
381
+ await client.getCreditUsage();
381
382
 
382
383
  ```
383
384
  </dd>
@@ -393,15 +394,7 @@ await client.search.getMedia({
393
394
  <dl>
394
395
  <dd>
395
396
 
396
- **request:** `spyglass.GetMediaRequest`
397
-
398
- </dd>
399
- </dl>
400
-
401
- <dl>
402
- <dd>
403
-
404
- **requestOptions:** `SearchClient.RequestOptions`
397
+ **requestOptions:** `Spyglass.RequestOptions`
405
398
 
406
399
  </dd>
407
400
  </dl>
@@ -413,7 +406,7 @@ await client.search.getMedia({
413
406
  </dl>
414
407
  </details>
415
408
 
416
- <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">getBrandMediaInsights</a>({ ...params }) -> spyglass.GetBrandMediaInsightsResponse</code></summary>
409
+ <details><summary><code>client.<a href="/src/Client.ts">getComments</a>({ ...params }) -> spyglass.GetCommentsResponse</code></summary>
417
410
  <dl>
418
411
  <dd>
419
412
 
@@ -425,15 +418,29 @@ await client.search.getMedia({
425
418
  <dl>
426
419
  <dd>
427
420
 
428
- Return clustered creative themes for an account. `MEDIA_MIX` returns a
429
- breakdown by media type; the other types return weekly buckets plus
430
- ranked totals, highest first.
421
+ Return public comments for specific Instagram or TikTok posts.
422
+ Pass post URLs or the platform id. At least one of `instagramIds` or
423
+ `tiktokIds` is required (max 20 each). `limit` is comment pages
424
+ per post (default 1, max 20).
431
425
 
432
- `maxDaysBack` filters both the weekly bucket series and ranked
433
- `totals` to creatives that started within the requested window.
426
+ Instagram accepts a shortcode or a post URL:
434
427
 
435
- Limited to 120 requests per minute per user.
436
- Costs 1,000 microdollars ($0.0010) per cluster returned, charged against your plan's monthly credits. The count field is what you were charged for.
428
+ - `C2xY9abcD1e`
429
+ - `https://www.instagram.com/p/C2xY9abcD1e/`
430
+ - `https://www.instagram.com/reel/C2xY9abcD1e/`
431
+
432
+ TikTok accepts a video id or a post URL:
433
+
434
+ - `7234567890123456789`
435
+ - `https://www.tiktok.com/@nike/video/7234567890123456789`
436
+
437
+ Recent posts may be scraped live; older posts with stored comments
438
+ are served from cache.
439
+
440
+ Limited to 20 requests per minute per user.
441
+ Costs 10,000 microdollars ($0.0100) per successful page of comments returned, charged against your plan's monthly credits.
442
+ Each comment page fetched live (`limit`, default 1) is one billed
443
+ unit. Cached posts do not scrape and are not billed.
437
444
  </dd>
438
445
  </dl>
439
446
  </dd>
@@ -448,9 +455,10 @@ Costs 1,000 microdollars ($0.0010) per cluster returned, charged against your pl
448
455
  <dd>
449
456
 
450
457
  ```typescript
451
- await client.search.getBrandMediaInsights({
452
- id: "id",
453
- type: "HOOK"
458
+ await client.getComments({
459
+ instagramIds: ["https://www.instagram.com/p/C2xY9abcD1e/"],
460
+ tiktokIds: ["https://www.tiktok.com/@nike/video/7234567890123456789"],
461
+ limit: 1
454
462
  });
455
463
 
456
464
  ```
@@ -467,7 +475,7 @@ await client.search.getBrandMediaInsights({
467
475
  <dl>
468
476
  <dd>
469
477
 
470
- **request:** `spyglass.GetBrandMediaInsightsRequest`
478
+ **request:** `spyglass.GetCommentsRequest`
471
479
 
472
480
  </dd>
473
481
  </dl>
@@ -475,7 +483,7 @@ await client.search.getBrandMediaInsights({
475
483
  <dl>
476
484
  <dd>
477
485
 
478
- **requestOptions:** `SearchClient.RequestOptions`
486
+ **requestOptions:** `Spyglass.RequestOptions`
479
487
 
480
488
  </dd>
481
489
  </dl>
@@ -487,7 +495,8 @@ await client.search.getBrandMediaInsights({
487
495
  </dl>
488
496
  </details>
489
497
 
490
- <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">getBrandLandingPages</a>({ ...params }) -> spyglass.GetBrandLandingPagesResponse</code></summary>
498
+ ## Account
499
+ <details><summary><code>client.account.<a href="/src/api/resources/account/client/Client.ts">get</a>({ ...params }) -> spyglass.GetAccountResponse</code></summary>
491
500
  <dl>
492
501
  <dd>
493
502
 
@@ -499,11 +508,13 @@ await client.search.getBrandMediaInsights({
499
508
  <dl>
500
509
  <dd>
501
510
 
502
- Return the landing-page URLs a brand sends ad traffic to, ranked by
503
- how often they appear across its ads.
511
+ Fetch a single brand or creator by id. The `type` field tells you
512
+ which one you got: `BRAND` or `CREATOR`, and the creator-only fields
513
+ (`gender`, `ageRange`, ...) are present only on `CREATOR`.
504
514
 
505
515
  Limited to 120 requests per minute per user.
506
- Costs 5,000 microdollars ($0.0050) per landing page returned, charged against your plan's monthly credits. The count field is what you were charged for.
516
+ Costs 2,000 microdollars ($0.0020) per account returned, charged against your plan's monthly credits.
517
+ An id that matches nothing returns 404 and is free.
507
518
  </dd>
508
519
  </dl>
509
520
  </dd>
@@ -518,7 +529,7 @@ Costs 5,000 microdollars ($0.0050) per landing page returned, charged against yo
518
529
  <dd>
519
530
 
520
531
  ```typescript
521
- await client.search.getBrandLandingPages({
532
+ await client.account.get({
522
533
  id: "id"
523
534
  });
524
535
 
@@ -536,7 +547,7 @@ await client.search.getBrandLandingPages({
536
547
  <dl>
537
548
  <dd>
538
549
 
539
- **request:** `spyglass.GetBrandLandingPagesRequest`
550
+ **request:** `spyglass.GetAccountRequest`
540
551
 
541
552
  </dd>
542
553
  </dl>
@@ -544,7 +555,7 @@ await client.search.getBrandLandingPages({
544
555
  <dl>
545
556
  <dd>
546
557
 
547
- **requestOptions:** `SearchClient.RequestOptions`
558
+ **requestOptions:** `AccountClient.RequestOptions`
548
559
 
549
560
  </dd>
550
561
  </dl>
@@ -556,7 +567,7 @@ await client.search.getBrandLandingPages({
556
567
  </dl>
557
568
  </details>
558
569
 
559
- <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">getComments</a>({ ...params }) -> spyglass.GetCommentsResponse</code></summary>
570
+ <details><summary><code>client.account.<a href="/src/api/resources/account/client/Client.ts">insights</a>({ ...params }) -> spyglass.InsightsAccountResponse</code></summary>
560
571
  <dl>
561
572
  <dd>
562
573
 
@@ -568,29 +579,15 @@ await client.search.getBrandLandingPages({
568
579
  <dl>
569
580
  <dd>
570
581
 
571
- Return public comments for specific Instagram or TikTok posts.
572
- Pass post URLs or the platform id. At least one of `instagramIds` or
573
- `tiktokIds` is required (max 20 each). `limit` is comment pages
574
- per post (default 1, max 20).
575
-
576
- Instagram accepts a shortcode or a post URL:
577
-
578
- - `C2xY9abcD1e`
579
- - `https://www.instagram.com/p/C2xY9abcD1e/`
580
- - `https://www.instagram.com/reel/C2xY9abcD1e/`
581
-
582
- TikTok accepts a video id or a post URL:
583
-
584
- - `7234567890123456789`
585
- - `https://www.tiktok.com/@nike/video/7234567890123456789`
582
+ Return clustered creative themes for an account. `MEDIA_MIX` returns a
583
+ breakdown by media type; the other types return weekly buckets plus
584
+ ranked totals, highest first.
586
585
 
587
- Recent posts may be scraped live; older posts with stored comments
588
- are served from cache.
586
+ `maxDaysBack` filters both the weekly bucket series and ranked
587
+ `totals` to creatives that started within the requested window.
589
588
 
590
- Limited to 20 requests per minute per user.
591
- Costs 10,000 microdollars ($0.0100) per successful page of comments returned, charged against your plan's monthly credits.
592
- Each comment page fetched live (`limit`, default 1) is one billed
593
- unit. Cached posts do not scrape and are not billed.
589
+ Limited to 120 requests per minute per user.
590
+ Costs 1,000 microdollars ($0.0010) per cluster returned, charged against your plan's monthly credits. The count field is what you were charged for.
594
591
  </dd>
595
592
  </dl>
596
593
  </dd>
@@ -605,10 +602,9 @@ unit. Cached posts do not scrape and are not billed.
605
602
  <dd>
606
603
 
607
604
  ```typescript
608
- await client.search.getComments({
609
- instagramIds: ["https://www.instagram.com/p/C2xY9abcD1e/"],
610
- tiktokIds: ["https://www.tiktok.com/@nike/video/7234567890123456789"],
611
- limit: 1
605
+ await client.account.insights({
606
+ id: "id",
607
+ type: "HOOK"
612
608
  });
613
609
 
614
610
  ```
@@ -625,7 +621,7 @@ await client.search.getComments({
625
621
  <dl>
626
622
  <dd>
627
623
 
628
- **request:** `spyglass.GetCommentsRequest`
624
+ **request:** `spyglass.InsightsAccountRequest`
629
625
 
630
626
  </dd>
631
627
  </dl>
@@ -633,7 +629,7 @@ await client.search.getComments({
633
629
  <dl>
634
630
  <dd>
635
631
 
636
- **requestOptions:** `SearchClient.RequestOptions`
632
+ **requestOptions:** `AccountClient.RequestOptions`
637
633
 
638
634
  </dd>
639
635
  </dl>
@@ -645,8 +641,7 @@ await client.search.getComments({
645
641
  </dl>
646
642
  </details>
647
643
 
648
- ## Account
649
- <details><summary><code>client.account.<a href="/src/api/resources/account/client/Client.ts">getCreditUsage</a>() -> spyglass.GetCreditUsageResponse</code></summary>
644
+ <details><summary><code>client.account.<a href="/src/api/resources/account/client/Client.ts">landingPages</a>({ ...params }) -> spyglass.LandingPagesAccountResponse</code></summary>
650
645
  <dl>
651
646
  <dd>
652
647
 
@@ -658,13 +653,11 @@ await client.search.getComments({
658
653
  <dl>
659
654
  <dd>
660
655
 
661
- Credits left on the API key's team, the credits included in the
662
- plan, and the current billing period. Granted credits count toward
663
- `remainingCredits` and not `planCredits`.
656
+ Return the landing-page URLs an account sends ad traffic to, ranked by
657
+ how often they appear across its ads.
664
658
 
665
659
  Limited to 120 requests per minute per user.
666
- This call is free and does not use credits. It still responds when
667
- the team is out of credits.
660
+ Costs 5,000 microdollars ($0.0050) per landing page returned, charged against your plan's monthly credits. The count field is what you were charged for.
668
661
  </dd>
669
662
  </dl>
670
663
  </dd>
@@ -679,7 +672,9 @@ the team is out of credits.
679
672
  <dd>
680
673
 
681
674
  ```typescript
682
- await client.account.getCreditUsage();
675
+ await client.account.landingPages({
676
+ id: "id"
677
+ });
683
678
 
684
679
  ```
685
680
  </dd>
@@ -695,6 +690,14 @@ await client.account.getCreditUsage();
695
690
  <dl>
696
691
  <dd>
697
692
 
693
+ **request:** `spyglass.LandingPagesAccountRequest`
694
+
695
+ </dd>
696
+ </dl>
697
+
698
+ <dl>
699
+ <dd>
700
+
698
701
  **requestOptions:** `AccountClient.RequestOptions`
699
702
 
700
703
  </dd>
@@ -707,8 +710,7 @@ await client.account.getCreditUsage();
707
710
  </dl>
708
711
  </details>
709
712
 
710
- ## Indexing
711
- <details><summary><code>client.indexing.<a href="/src/api/resources/indexing/client/Client.ts">indexBrand</a>({ ...params }) -> spyglass.IndexBrandResponse</code></summary>
713
+ <details><summary><code>client.account.<a href="/src/api/resources/account/client/Client.ts">index</a>({ ...params }) -> spyglass.IndexAccountResponse</code></summary>
712
714
  <dl>
713
715
  <dd>
714
716
 
@@ -744,7 +746,7 @@ This call is free.
744
746
  <dd>
745
747
 
746
748
  ```typescript
747
- await client.indexing.indexBrand({
749
+ await client.account.index({
748
750
  websiteUrl: "https://www.nike.com"
749
751
  });
750
752
 
@@ -762,7 +764,7 @@ await client.indexing.indexBrand({
762
764
  <dl>
763
765
  <dd>
764
766
 
765
- **request:** `spyglass.IndexBrandRequest`
767
+ **request:** `spyglass.IndexAccountRequest`
766
768
 
767
769
  </dd>
768
770
  </dl>
@@ -770,7 +772,7 @@ await client.indexing.indexBrand({
770
772
  <dl>
771
773
  <dd>
772
774
 
773
- **requestOptions:** `IndexingClient.RequestOptions`
775
+ **requestOptions:** `AccountClient.RequestOptions`
774
776
 
775
777
  </dd>
776
778
  </dl>
@@ -782,7 +784,7 @@ await client.indexing.indexBrand({
782
784
  </dl>
783
785
  </details>
784
786
 
785
- <details><summary><code>client.indexing.<a href="/src/api/resources/indexing/client/Client.ts">indexBrandStatus</a>({ ...params }) -> spyglass.IndexBrandStatusResponse</code></summary>
787
+ <details><summary><code>client.account.<a href="/src/api/resources/account/client/Client.ts">indexStatus</a>({ ...params }) -> spyglass.IndexStatusAccountResponse</code></summary>
786
788
  <dl>
787
789
  <dd>
788
790
 
@@ -812,7 +814,7 @@ This call is free.
812
814
  <dd>
813
815
 
814
816
  ```typescript
815
- await client.indexing.indexBrandStatus({
817
+ await client.account.indexStatus({
816
818
  id: "id"
817
819
  });
818
820
 
@@ -830,7 +832,7 @@ await client.indexing.indexBrandStatus({
830
832
  <dl>
831
833
  <dd>
832
834
 
833
- **request:** `spyglass.IndexBrandStatusRequest`
835
+ **request:** `spyglass.IndexStatusAccountRequest`
834
836
 
835
837
  </dd>
836
838
  </dl>
@@ -838,7 +840,7 @@ await client.indexing.indexBrandStatus({
838
840
  <dl>
839
841
  <dd>
840
842
 
841
- **requestOptions:** `IndexingClient.RequestOptions`
843
+ **requestOptions:** `AccountClient.RequestOptions`
842
844
 
843
845
  </dd>
844
846
  </dl>