@spyglasshq/sdk 0.1.2 → 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 +109 -111
  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 -337
  91. package/dist/cjs/api/resources/search/client/Client.js +0 -823
  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 -337
  115. package/dist/esm/api/resources/search/client/Client.mjs +0 -786
  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.2";
1
+ export declare const SDK_VERSION = "0.1.3";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.1.2";
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.2",
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
 
@@ -62,7 +61,7 @@ row even when nothing matches.
62
61
  <dd>
63
62
 
64
63
  ```typescript
65
- await client.search.brands({
64
+ await client.searchBrands({
66
65
  names: ["Nike"],
67
66
  limit: 3
68
67
  });
@@ -89,7 +88,7 @@ await client.search.brands({
89
88
  <dl>
90
89
  <dd>
91
90
 
92
- **requestOptions:** `SearchClient.RequestOptions`
91
+ **requestOptions:** `Spyglass.RequestOptions`
93
92
 
94
93
  </dd>
95
94
  </dl>
@@ -101,7 +100,7 @@ await client.search.brands({
101
100
  </dl>
102
101
  </details>
103
102
 
104
- <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>
105
104
  <dl>
106
105
  <dd>
107
106
 
@@ -163,7 +162,7 @@ row even when nothing matches.
163
162
  <dd>
164
163
 
165
164
  ```typescript
166
- await client.search.creators({
165
+ await client.searchCreators({
167
166
  igUsername: "charlidamelio",
168
167
  limit: 3,
169
168
  gender: "female"
@@ -191,7 +190,7 @@ await client.search.creators({
191
190
  <dl>
192
191
  <dd>
193
192
 
194
- **requestOptions:** `SearchClient.RequestOptions`
193
+ **requestOptions:** `Spyglass.RequestOptions`
195
194
 
196
195
  </dd>
197
196
  </dl>
@@ -203,7 +202,7 @@ await client.search.creators({
203
202
  </dl>
204
203
  </details>
205
204
 
206
- <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>
207
206
  <dl>
208
207
  <dd>
209
208
 
@@ -215,13 +214,12 @@ await client.search.creators({
215
214
  <dl>
216
215
  <dd>
217
216
 
218
- Fetch a single brand or creator by id. The `type` field tells you
219
- which one you got: `BRAND` or `CREATOR`, and the creator-only fields
220
- (`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`.
221
220
 
222
221
  Limited to 120 requests per minute per user.
223
- Costs 2,000 microdollars ($0.0020) per account returned, charged against your plan's monthly credits.
224
- An id that matches nothing returns 404 and is free.
222
+ This call is free and does not use credits.
225
223
  </dd>
226
224
  </dl>
227
225
  </dd>
@@ -236,8 +234,8 @@ An id that matches nothing returns 404 and is free.
236
234
  <dd>
237
235
 
238
236
  ```typescript
239
- await client.search.getAccount({
240
- id: "id"
237
+ await client.searchTaxonomies({
238
+ query: "running shoes"
241
239
  });
242
240
 
243
241
  ```
@@ -254,7 +252,7 @@ await client.search.getAccount({
254
252
  <dl>
255
253
  <dd>
256
254
 
257
- **request:** `spyglass.GetAccountRequest`
255
+ **request:** `spyglass.SearchTaxonomiesRequest`
258
256
 
259
257
  </dd>
260
258
  </dl>
@@ -262,7 +260,7 @@ await client.search.getAccount({
262
260
  <dl>
263
261
  <dd>
264
262
 
265
- **requestOptions:** `SearchClient.RequestOptions`
263
+ **requestOptions:** `Spyglass.RequestOptions`
266
264
 
267
265
  </dd>
268
266
  </dl>
@@ -274,7 +272,7 @@ await client.search.getAccount({
274
272
  </dl>
275
273
  </details>
276
274
 
277
- <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>
278
276
  <dl>
279
277
  <dd>
280
278
 
@@ -286,12 +284,14 @@ await client.search.getAccount({
286
284
  <dl>
287
285
  <dd>
288
286
 
289
- Find taxonomy paths you can pass to POST /media as `taxonomy`.
290
- `query` is a product or category phrase. Each path is a string
291
- 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.
292
290
 
293
291
  Limited to 120 requests per minute per user.
294
- 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.
295
295
  </dd>
296
296
  </dl>
297
297
  </dd>
@@ -306,8 +306,9 @@ This call is free and does not use credits.
306
306
  <dd>
307
307
 
308
308
  ```typescript
309
- await client.search.taxonomies({
310
- query: "running shoes"
309
+ await client.searchMedia({
310
+ query: "comfort-focused video ads",
311
+ limit: 20
311
312
  });
312
313
 
313
314
  ```
@@ -324,7 +325,7 @@ await client.search.taxonomies({
324
325
  <dl>
325
326
  <dd>
326
327
 
327
- **request:** `spyglass.SearchTaxonomiesRequest`
328
+ **request:** `spyglass.SearchMediaRequest`
328
329
 
329
330
  </dd>
330
331
  </dl>
@@ -332,7 +333,7 @@ await client.search.taxonomies({
332
333
  <dl>
333
334
  <dd>
334
335
 
335
- **requestOptions:** `SearchClient.RequestOptions`
336
+ **requestOptions:** `Spyglass.RequestOptions`
336
337
 
337
338
  </dd>
338
339
  </dl>
@@ -344,7 +345,7 @@ await client.search.taxonomies({
344
345
  </dl>
345
346
  </details>
346
347
 
347
- <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>
348
349
  <dl>
349
350
  <dd>
350
351
 
@@ -356,14 +357,13 @@ await client.search.taxonomies({
356
357
  <dl>
357
358
  <dd>
358
359
 
359
- Return creatives. Pass `brandId` to scope to one brand or creator,
360
- or omit it to search the whole corpus. Without `brandId`,
361
- `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`.
362
363
 
363
364
  Limited to 120 requests per minute per user.
364
- 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.
365
- The call bills a minimum of one row even when nothing matches. In that
366
- 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.
367
367
  </dd>
368
368
  </dl>
369
369
  </dd>
@@ -378,10 +378,7 @@ case `count` is 0 but you are charged for one row.
378
378
  <dd>
379
379
 
380
380
  ```typescript
381
- await client.search.getMedia({
382
- query: "comfort-focused video ads",
383
- limit: 20
384
- });
381
+ await client.getCreditUsage();
385
382
 
386
383
  ```
387
384
  </dd>
@@ -397,15 +394,7 @@ await client.search.getMedia({
397
394
  <dl>
398
395
  <dd>
399
396
 
400
- **request:** `spyglass.GetMediaRequest`
401
-
402
- </dd>
403
- </dl>
404
-
405
- <dl>
406
- <dd>
407
-
408
- **requestOptions:** `SearchClient.RequestOptions`
397
+ **requestOptions:** `Spyglass.RequestOptions`
409
398
 
410
399
  </dd>
411
400
  </dl>
@@ -417,7 +406,7 @@ await client.search.getMedia({
417
406
  </dl>
418
407
  </details>
419
408
 
420
- <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>
421
410
  <dl>
422
411
  <dd>
423
412
 
@@ -429,15 +418,29 @@ await client.search.getMedia({
429
418
  <dl>
430
419
  <dd>
431
420
 
432
- Return clustered creative themes for an account. `MEDIA_MIX` returns a
433
- breakdown by media type; the other types return weekly buckets plus
434
- 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).
435
425
 
436
- `maxDaysBack` filters both the weekly bucket series and ranked
437
- `totals` to creatives that started within the requested window.
426
+ Instagram accepts a shortcode or a post URL:
438
427
 
439
- Limited to 120 requests per minute per user.
440
- 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.
441
444
  </dd>
442
445
  </dl>
443
446
  </dd>
@@ -452,9 +455,10 @@ Costs 1,000 microdollars ($0.0010) per cluster returned, charged against your pl
452
455
  <dd>
453
456
 
454
457
  ```typescript
455
- await client.search.getBrandMediaInsights({
456
- id: "id",
457
- 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
458
462
  });
459
463
 
460
464
  ```
@@ -471,7 +475,7 @@ await client.search.getBrandMediaInsights({
471
475
  <dl>
472
476
  <dd>
473
477
 
474
- **request:** `spyglass.GetBrandMediaInsightsRequest`
478
+ **request:** `spyglass.GetCommentsRequest`
475
479
 
476
480
  </dd>
477
481
  </dl>
@@ -479,7 +483,7 @@ await client.search.getBrandMediaInsights({
479
483
  <dl>
480
484
  <dd>
481
485
 
482
- **requestOptions:** `SearchClient.RequestOptions`
486
+ **requestOptions:** `Spyglass.RequestOptions`
483
487
 
484
488
  </dd>
485
489
  </dl>
@@ -491,7 +495,8 @@ await client.search.getBrandMediaInsights({
491
495
  </dl>
492
496
  </details>
493
497
 
494
- <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>
495
500
  <dl>
496
501
  <dd>
497
502
 
@@ -503,11 +508,13 @@ await client.search.getBrandMediaInsights({
503
508
  <dl>
504
509
  <dd>
505
510
 
506
- Return the landing-page URLs a brand sends ad traffic to, ranked by
507
- 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`.
508
514
 
509
515
  Limited to 120 requests per minute per user.
510
- 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.
511
518
  </dd>
512
519
  </dl>
513
520
  </dd>
@@ -522,7 +529,7 @@ Costs 5,000 microdollars ($0.0050) per landing page returned, charged against yo
522
529
  <dd>
523
530
 
524
531
  ```typescript
525
- await client.search.getBrandLandingPages({
532
+ await client.account.get({
526
533
  id: "id"
527
534
  });
528
535
 
@@ -540,7 +547,7 @@ await client.search.getBrandLandingPages({
540
547
  <dl>
541
548
  <dd>
542
549
 
543
- **request:** `spyglass.GetBrandLandingPagesRequest`
550
+ **request:** `spyglass.GetAccountRequest`
544
551
 
545
552
  </dd>
546
553
  </dl>
@@ -548,7 +555,7 @@ await client.search.getBrandLandingPages({
548
555
  <dl>
549
556
  <dd>
550
557
 
551
- **requestOptions:** `SearchClient.RequestOptions`
558
+ **requestOptions:** `AccountClient.RequestOptions`
552
559
 
553
560
  </dd>
554
561
  </dl>
@@ -560,7 +567,7 @@ await client.search.getBrandLandingPages({
560
567
  </dl>
561
568
  </details>
562
569
 
563
- <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>
564
571
  <dl>
565
572
  <dd>
566
573
 
@@ -572,29 +579,15 @@ await client.search.getBrandLandingPages({
572
579
  <dl>
573
580
  <dd>
574
581
 
575
- Return public comments for specific Instagram or TikTok posts.
576
- Pass post URLs or the platform id. At least one of `instagramIds` or
577
- `tiktokIds` is required (max 20 each). `limit` is comment pages
578
- per post (default 1, max 20).
579
-
580
- Instagram accepts a shortcode or a post URL:
581
-
582
- - `C2xY9abcD1e`
583
- - `https://www.instagram.com/p/C2xY9abcD1e/`
584
- - `https://www.instagram.com/reel/C2xY9abcD1e/`
585
-
586
- TikTok accepts a video id or a post URL:
587
-
588
- - `7234567890123456789`
589
- - `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.
590
585
 
591
- Recent posts may be scraped live; older posts with stored comments
592
- are served from cache.
586
+ `maxDaysBack` filters both the weekly bucket series and ranked
587
+ `totals` to creatives that started within the requested window.
593
588
 
594
- Limited to 20 requests per minute per user.
595
- Costs 10,000 microdollars ($0.0100) per successful page of comments returned, charged against your plan's monthly credits.
596
- Each comment page fetched live (`limit`, default 1) is one billed
597
- 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.
598
591
  </dd>
599
592
  </dl>
600
593
  </dd>
@@ -609,10 +602,9 @@ unit. Cached posts do not scrape and are not billed.
609
602
  <dd>
610
603
 
611
604
  ```typescript
612
- await client.search.getComments({
613
- instagramIds: ["https://www.instagram.com/p/C2xY9abcD1e/"],
614
- tiktokIds: ["https://www.tiktok.com/@nike/video/7234567890123456789"],
615
- limit: 1
605
+ await client.account.insights({
606
+ id: "id",
607
+ type: "HOOK"
616
608
  });
617
609
 
618
610
  ```
@@ -629,7 +621,7 @@ await client.search.getComments({
629
621
  <dl>
630
622
  <dd>
631
623
 
632
- **request:** `spyglass.GetCommentsRequest`
624
+ **request:** `spyglass.InsightsAccountRequest`
633
625
 
634
626
  </dd>
635
627
  </dl>
@@ -637,7 +629,7 @@ await client.search.getComments({
637
629
  <dl>
638
630
  <dd>
639
631
 
640
- **requestOptions:** `SearchClient.RequestOptions`
632
+ **requestOptions:** `AccountClient.RequestOptions`
641
633
 
642
634
  </dd>
643
635
  </dl>
@@ -649,8 +641,7 @@ await client.search.getComments({
649
641
  </dl>
650
642
  </details>
651
643
 
652
- ## Account
653
- <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>
654
645
  <dl>
655
646
  <dd>
656
647
 
@@ -662,13 +653,11 @@ await client.search.getComments({
662
653
  <dl>
663
654
  <dd>
664
655
 
665
- Credits left on the API key's team, the credits included in the
666
- plan, and the current billing period. Granted credits count toward
667
- `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.
668
658
 
669
659
  Limited to 120 requests per minute per user.
670
- This call is free and does not use credits. It still responds when
671
- 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.
672
661
  </dd>
673
662
  </dl>
674
663
  </dd>
@@ -683,7 +672,9 @@ the team is out of credits.
683
672
  <dd>
684
673
 
685
674
  ```typescript
686
- await client.account.getCreditUsage();
675
+ await client.account.landingPages({
676
+ id: "id"
677
+ });
687
678
 
688
679
  ```
689
680
  </dd>
@@ -699,6 +690,14 @@ await client.account.getCreditUsage();
699
690
  <dl>
700
691
  <dd>
701
692
 
693
+ **request:** `spyglass.LandingPagesAccountRequest`
694
+
695
+ </dd>
696
+ </dl>
697
+
698
+ <dl>
699
+ <dd>
700
+
702
701
  **requestOptions:** `AccountClient.RequestOptions`
703
702
 
704
703
  </dd>
@@ -711,8 +710,7 @@ await client.account.getCreditUsage();
711
710
  </dl>
712
711
  </details>
713
712
 
714
- ## Indexing
715
- <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>
716
714
  <dl>
717
715
  <dd>
718
716
 
@@ -748,7 +746,7 @@ This call is free.
748
746
  <dd>
749
747
 
750
748
  ```typescript
751
- await client.indexing.indexBrand({
749
+ await client.account.index({
752
750
  websiteUrl: "https://www.nike.com"
753
751
  });
754
752
 
@@ -766,7 +764,7 @@ await client.indexing.indexBrand({
766
764
  <dl>
767
765
  <dd>
768
766
 
769
- **request:** `spyglass.IndexBrandRequest`
767
+ **request:** `spyglass.IndexAccountRequest`
770
768
 
771
769
  </dd>
772
770
  </dl>
@@ -774,7 +772,7 @@ await client.indexing.indexBrand({
774
772
  <dl>
775
773
  <dd>
776
774
 
777
- **requestOptions:** `IndexingClient.RequestOptions`
775
+ **requestOptions:** `AccountClient.RequestOptions`
778
776
 
779
777
  </dd>
780
778
  </dl>
@@ -786,7 +784,7 @@ await client.indexing.indexBrand({
786
784
  </dl>
787
785
  </details>
788
786
 
789
- <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>
790
788
  <dl>
791
789
  <dd>
792
790
 
@@ -816,7 +814,7 @@ This call is free.
816
814
  <dd>
817
815
 
818
816
  ```typescript
819
- await client.indexing.indexBrandStatus({
817
+ await client.account.indexStatus({
820
818
  id: "id"
821
819
  });
822
820
 
@@ -834,7 +832,7 @@ await client.indexing.indexBrandStatus({
834
832
  <dl>
835
833
  <dd>
836
834
 
837
- **request:** `spyglass.IndexBrandStatusRequest`
835
+ **request:** `spyglass.IndexStatusAccountRequest`
838
836
 
839
837
  </dd>
840
838
  </dl>
@@ -842,7 +840,7 @@ await client.indexing.indexBrandStatus({
842
840
  <dl>
843
841
  <dd>
844
842
 
845
- **requestOptions:** `IndexingClient.RequestOptions`
843
+ **requestOptions:** `AccountClient.RequestOptions`
846
844
 
847
845
  </dd>
848
846
  </dl>