profoundai 0.2.1

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 (406) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/LICENSE +201 -0
  3. package/README.md +356 -0
  4. package/api-promise.d.mts +2 -0
  5. package/api-promise.d.mts.map +1 -0
  6. package/api-promise.d.ts +2 -0
  7. package/api-promise.d.ts.map +1 -0
  8. package/api-promise.js +6 -0
  9. package/api-promise.js.map +1 -0
  10. package/api-promise.mjs +2 -0
  11. package/api-promise.mjs.map +1 -0
  12. package/client.d.mts +190 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +190 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +470 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +466 -0
  19. package/client.mjs.map +1 -0
  20. package/core/api-promise.d.mts +46 -0
  21. package/core/api-promise.d.mts.map +1 -0
  22. package/core/api-promise.d.ts +46 -0
  23. package/core/api-promise.d.ts.map +1 -0
  24. package/core/api-promise.js +74 -0
  25. package/core/api-promise.js.map +1 -0
  26. package/core/api-promise.mjs +70 -0
  27. package/core/api-promise.mjs.map +1 -0
  28. package/core/error.d.mts +46 -0
  29. package/core/error.d.mts.map +1 -0
  30. package/core/error.d.ts +46 -0
  31. package/core/error.d.ts.map +1 -0
  32. package/core/error.js +113 -0
  33. package/core/error.js.map +1 -0
  34. package/core/error.mjs +97 -0
  35. package/core/error.mjs.map +1 -0
  36. package/core/resource.d.mts +6 -0
  37. package/core/resource.d.mts.map +1 -0
  38. package/core/resource.d.ts +6 -0
  39. package/core/resource.d.ts.map +1 -0
  40. package/core/resource.js +11 -0
  41. package/core/resource.js.map +1 -0
  42. package/core/resource.mjs +7 -0
  43. package/core/resource.mjs.map +1 -0
  44. package/core/uploads.d.mts +3 -0
  45. package/core/uploads.d.mts.map +1 -0
  46. package/core/uploads.d.ts +3 -0
  47. package/core/uploads.d.ts.map +1 -0
  48. package/core/uploads.js +6 -0
  49. package/core/uploads.js.map +1 -0
  50. package/core/uploads.mjs +2 -0
  51. package/core/uploads.mjs.map +1 -0
  52. package/error.d.mts +2 -0
  53. package/error.d.mts.map +1 -0
  54. package/error.d.ts +2 -0
  55. package/error.d.ts.map +1 -0
  56. package/error.js +6 -0
  57. package/error.js.map +1 -0
  58. package/error.mjs +2 -0
  59. package/error.mjs.map +1 -0
  60. package/index.d.mts +6 -0
  61. package/index.d.mts.map +1 -0
  62. package/index.d.ts +6 -0
  63. package/index.d.ts.map +1 -0
  64. package/index.js +30 -0
  65. package/index.js.map +1 -0
  66. package/index.mjs +7 -0
  67. package/index.mjs.map +1 -0
  68. package/internal/builtin-types.d.mts +73 -0
  69. package/internal/builtin-types.d.mts.map +1 -0
  70. package/internal/builtin-types.d.ts +73 -0
  71. package/internal/builtin-types.d.ts.map +1 -0
  72. package/internal/builtin-types.js +4 -0
  73. package/internal/builtin-types.js.map +1 -0
  74. package/internal/builtin-types.mjs +3 -0
  75. package/internal/builtin-types.mjs.map +1 -0
  76. package/internal/detect-platform.d.mts +15 -0
  77. package/internal/detect-platform.d.mts.map +1 -0
  78. package/internal/detect-platform.d.ts +15 -0
  79. package/internal/detect-platform.d.ts.map +1 -0
  80. package/internal/detect-platform.js +162 -0
  81. package/internal/detect-platform.js.map +1 -0
  82. package/internal/detect-platform.mjs +157 -0
  83. package/internal/detect-platform.mjs.map +1 -0
  84. package/internal/errors.d.mts +3 -0
  85. package/internal/errors.d.mts.map +1 -0
  86. package/internal/errors.d.ts +3 -0
  87. package/internal/errors.d.ts.map +1 -0
  88. package/internal/errors.js +41 -0
  89. package/internal/errors.js.map +1 -0
  90. package/internal/errors.mjs +36 -0
  91. package/internal/errors.mjs.map +1 -0
  92. package/internal/headers.d.mts +20 -0
  93. package/internal/headers.d.mts.map +1 -0
  94. package/internal/headers.d.ts +20 -0
  95. package/internal/headers.d.ts.map +1 -0
  96. package/internal/headers.js +79 -0
  97. package/internal/headers.js.map +1 -0
  98. package/internal/headers.mjs +74 -0
  99. package/internal/headers.mjs.map +1 -0
  100. package/internal/parse.d.mts +12 -0
  101. package/internal/parse.d.mts.map +1 -0
  102. package/internal/parse.d.ts +12 -0
  103. package/internal/parse.d.ts.map +1 -0
  104. package/internal/parse.js +35 -0
  105. package/internal/parse.js.map +1 -0
  106. package/internal/parse.mjs +32 -0
  107. package/internal/parse.mjs.map +1 -0
  108. package/internal/request-options.d.mts +75 -0
  109. package/internal/request-options.d.mts.map +1 -0
  110. package/internal/request-options.d.ts +75 -0
  111. package/internal/request-options.d.ts.map +1 -0
  112. package/internal/request-options.js +14 -0
  113. package/internal/request-options.js.map +1 -0
  114. package/internal/request-options.mjs +10 -0
  115. package/internal/request-options.mjs.map +1 -0
  116. package/internal/shim-types.d.mts +17 -0
  117. package/internal/shim-types.d.mts.map +1 -0
  118. package/internal/shim-types.d.ts +17 -0
  119. package/internal/shim-types.d.ts.map +1 -0
  120. package/internal/shim-types.js +4 -0
  121. package/internal/shim-types.js.map +1 -0
  122. package/internal/shim-types.mjs +3 -0
  123. package/internal/shim-types.mjs.map +1 -0
  124. package/internal/shims.d.mts +20 -0
  125. package/internal/shims.d.mts.map +1 -0
  126. package/internal/shims.d.ts +20 -0
  127. package/internal/shims.d.ts.map +1 -0
  128. package/internal/shims.js +92 -0
  129. package/internal/shims.js.map +1 -0
  130. package/internal/shims.mjs +85 -0
  131. package/internal/shims.mjs.map +1 -0
  132. package/internal/to-file.d.mts +45 -0
  133. package/internal/to-file.d.mts.map +1 -0
  134. package/internal/to-file.d.ts +45 -0
  135. package/internal/to-file.d.ts.map +1 -0
  136. package/internal/to-file.js +91 -0
  137. package/internal/to-file.js.map +1 -0
  138. package/internal/to-file.mjs +88 -0
  139. package/internal/to-file.mjs.map +1 -0
  140. package/internal/tslib.js +81 -0
  141. package/internal/tslib.mjs +17 -0
  142. package/internal/types.d.mts +69 -0
  143. package/internal/types.d.mts.map +1 -0
  144. package/internal/types.d.ts +69 -0
  145. package/internal/types.d.ts.map +1 -0
  146. package/internal/types.js +4 -0
  147. package/internal/types.js.map +1 -0
  148. package/internal/types.mjs +3 -0
  149. package/internal/types.mjs.map +1 -0
  150. package/internal/uploads.d.mts +42 -0
  151. package/internal/uploads.d.mts.map +1 -0
  152. package/internal/uploads.d.ts +42 -0
  153. package/internal/uploads.d.ts.map +1 -0
  154. package/internal/uploads.js +141 -0
  155. package/internal/uploads.js.map +1 -0
  156. package/internal/uploads.mjs +131 -0
  157. package/internal/uploads.mjs.map +1 -0
  158. package/internal/utils/base64.d.mts +3 -0
  159. package/internal/utils/base64.d.mts.map +1 -0
  160. package/internal/utils/base64.d.ts +3 -0
  161. package/internal/utils/base64.d.ts.map +1 -0
  162. package/internal/utils/base64.js +38 -0
  163. package/internal/utils/base64.js.map +1 -0
  164. package/internal/utils/base64.mjs +33 -0
  165. package/internal/utils/base64.mjs.map +1 -0
  166. package/internal/utils/bytes.d.mts +4 -0
  167. package/internal/utils/bytes.d.mts.map +1 -0
  168. package/internal/utils/bytes.d.ts +4 -0
  169. package/internal/utils/bytes.d.ts.map +1 -0
  170. package/internal/utils/bytes.js +31 -0
  171. package/internal/utils/bytes.js.map +1 -0
  172. package/internal/utils/bytes.mjs +26 -0
  173. package/internal/utils/bytes.mjs.map +1 -0
  174. package/internal/utils/env.d.mts +9 -0
  175. package/internal/utils/env.d.mts.map +1 -0
  176. package/internal/utils/env.d.ts +9 -0
  177. package/internal/utils/env.d.ts.map +1 -0
  178. package/internal/utils/env.js +22 -0
  179. package/internal/utils/env.js.map +1 -0
  180. package/internal/utils/env.mjs +18 -0
  181. package/internal/utils/env.mjs.map +1 -0
  182. package/internal/utils/log.d.mts +37 -0
  183. package/internal/utils/log.d.mts.map +1 -0
  184. package/internal/utils/log.d.ts +37 -0
  185. package/internal/utils/log.d.ts.map +1 -0
  186. package/internal/utils/log.js +86 -0
  187. package/internal/utils/log.js.map +1 -0
  188. package/internal/utils/log.mjs +80 -0
  189. package/internal/utils/log.mjs.map +1 -0
  190. package/internal/utils/path.d.mts +15 -0
  191. package/internal/utils/path.d.mts.map +1 -0
  192. package/internal/utils/path.d.ts +15 -0
  193. package/internal/utils/path.d.ts.map +1 -0
  194. package/internal/utils/path.js +79 -0
  195. package/internal/utils/path.js.map +1 -0
  196. package/internal/utils/path.mjs +74 -0
  197. package/internal/utils/path.mjs.map +1 -0
  198. package/internal/utils/sleep.d.mts +2 -0
  199. package/internal/utils/sleep.d.mts.map +1 -0
  200. package/internal/utils/sleep.d.ts +2 -0
  201. package/internal/utils/sleep.d.ts.map +1 -0
  202. package/internal/utils/sleep.js +7 -0
  203. package/internal/utils/sleep.js.map +1 -0
  204. package/internal/utils/sleep.mjs +3 -0
  205. package/internal/utils/sleep.mjs.map +1 -0
  206. package/internal/utils/uuid.d.mts +5 -0
  207. package/internal/utils/uuid.d.mts.map +1 -0
  208. package/internal/utils/uuid.d.ts +5 -0
  209. package/internal/utils/uuid.d.ts.map +1 -0
  210. package/internal/utils/uuid.js +19 -0
  211. package/internal/utils/uuid.js.map +1 -0
  212. package/internal/utils/uuid.mjs +15 -0
  213. package/internal/utils/uuid.mjs.map +1 -0
  214. package/internal/utils/values.d.mts +18 -0
  215. package/internal/utils/values.d.mts.map +1 -0
  216. package/internal/utils/values.d.ts +18 -0
  217. package/internal/utils/values.d.ts.map +1 -0
  218. package/internal/utils/values.js +112 -0
  219. package/internal/utils/values.js.map +1 -0
  220. package/internal/utils/values.mjs +94 -0
  221. package/internal/utils/values.mjs.map +1 -0
  222. package/internal/utils.d.mts +7 -0
  223. package/internal/utils.d.mts.map +1 -0
  224. package/internal/utils.d.ts +7 -0
  225. package/internal/utils.d.ts.map +1 -0
  226. package/internal/utils.js +11 -0
  227. package/internal/utils.js.map +1 -0
  228. package/internal/utils.mjs +8 -0
  229. package/internal/utils.mjs.map +1 -0
  230. package/package.json +138 -0
  231. package/resource.d.mts +2 -0
  232. package/resource.d.mts.map +1 -0
  233. package/resource.d.ts +2 -0
  234. package/resource.d.ts.map +1 -0
  235. package/resource.js +6 -0
  236. package/resource.js.map +1 -0
  237. package/resource.mjs +2 -0
  238. package/resource.mjs.map +1 -0
  239. package/resources/index.d.mts +6 -0
  240. package/resources/index.d.mts.map +1 -0
  241. package/resources/index.d.ts +6 -0
  242. package/resources/index.d.ts.map +1 -0
  243. package/resources/index.js +15 -0
  244. package/resources/index.js.map +1 -0
  245. package/resources/index.mjs +7 -0
  246. package/resources/index.mjs.map +1 -0
  247. package/resources/logs/index.d.mts +3 -0
  248. package/resources/logs/index.d.mts.map +1 -0
  249. package/resources/logs/index.d.ts +3 -0
  250. package/resources/logs/index.d.ts.map +1 -0
  251. package/resources/logs/index.js +9 -0
  252. package/resources/logs/index.js.map +1 -0
  253. package/resources/logs/index.mjs +4 -0
  254. package/resources/logs/index.mjs.map +1 -0
  255. package/resources/logs/logs.d.mts +10 -0
  256. package/resources/logs/logs.d.mts.map +1 -0
  257. package/resources/logs/logs.d.ts +10 -0
  258. package/resources/logs/logs.d.ts.map +1 -0
  259. package/resources/logs/logs.js +17 -0
  260. package/resources/logs/logs.js.map +1 -0
  261. package/resources/logs/logs.mjs +12 -0
  262. package/resources/logs/logs.mjs.map +1 -0
  263. package/resources/logs/raw.d.mts +192 -0
  264. package/resources/logs/raw.d.mts.map +1 -0
  265. package/resources/logs/raw.d.ts +192 -0
  266. package/resources/logs/raw.d.ts.map +1 -0
  267. package/resources/logs/raw.js +21 -0
  268. package/resources/logs/raw.js.map +1 -0
  269. package/resources/logs/raw.mjs +17 -0
  270. package/resources/logs/raw.mjs.map +1 -0
  271. package/resources/logs.d.mts +2 -0
  272. package/resources/logs.d.mts.map +1 -0
  273. package/resources/logs.d.ts +2 -0
  274. package/resources/logs.d.ts.map +1 -0
  275. package/resources/logs.js +6 -0
  276. package/resources/logs.js.map +1 -0
  277. package/resources/logs.mjs +3 -0
  278. package/resources/logs.mjs.map +1 -0
  279. package/resources/organizations/categories.d.mts +48 -0
  280. package/resources/organizations/categories.d.mts.map +1 -0
  281. package/resources/organizations/categories.d.ts +48 -0
  282. package/resources/organizations/categories.d.ts.map +1 -0
  283. package/resources/organizations/categories.js +34 -0
  284. package/resources/organizations/categories.js.map +1 -0
  285. package/resources/organizations/categories.mjs +30 -0
  286. package/resources/organizations/categories.mjs.map +1 -0
  287. package/resources/organizations/index.d.mts +3 -0
  288. package/resources/organizations/index.d.mts.map +1 -0
  289. package/resources/organizations/index.d.ts +3 -0
  290. package/resources/organizations/index.d.ts.map +1 -0
  291. package/resources/organizations/index.js +9 -0
  292. package/resources/organizations/index.js.map +1 -0
  293. package/resources/organizations/index.mjs +4 -0
  294. package/resources/organizations/index.mjs.map +1 -0
  295. package/resources/organizations/organizations.d.mts +35 -0
  296. package/resources/organizations/organizations.d.mts.map +1 -0
  297. package/resources/organizations/organizations.d.ts +35 -0
  298. package/resources/organizations/organizations.d.ts.map +1 -0
  299. package/resources/organizations/organizations.js +35 -0
  300. package/resources/organizations/organizations.js.map +1 -0
  301. package/resources/organizations/organizations.mjs +30 -0
  302. package/resources/organizations/organizations.mjs.map +1 -0
  303. package/resources/organizations.d.mts +2 -0
  304. package/resources/organizations.d.mts.map +1 -0
  305. package/resources/organizations.d.ts +2 -0
  306. package/resources/organizations.d.ts.map +1 -0
  307. package/resources/organizations.js +6 -0
  308. package/resources/organizations.js.map +1 -0
  309. package/resources/organizations.mjs +3 -0
  310. package/resources/organizations.mjs.map +1 -0
  311. package/resources/prompts.d.mts +82 -0
  312. package/resources/prompts.d.mts.map +1 -0
  313. package/resources/prompts.d.ts +82 -0
  314. package/resources/prompts.d.ts.map +1 -0
  315. package/resources/prompts.js +15 -0
  316. package/resources/prompts.js.map +1 -0
  317. package/resources/prompts.mjs +11 -0
  318. package/resources/prompts.mjs.map +1 -0
  319. package/resources/reports.d.mts +256 -0
  320. package/resources/reports.d.mts.map +1 -0
  321. package/resources/reports.d.ts +256 -0
  322. package/resources/reports.d.ts.map +1 -0
  323. package/resources/reports.js +57 -0
  324. package/resources/reports.js.map +1 -0
  325. package/resources/reports.mjs +53 -0
  326. package/resources/reports.mjs.map +1 -0
  327. package/resources/shared.d.mts +14 -0
  328. package/resources/shared.d.mts.map +1 -0
  329. package/resources/shared.d.ts +14 -0
  330. package/resources/shared.d.ts.map +1 -0
  331. package/resources/shared.js +4 -0
  332. package/resources/shared.js.map +1 -0
  333. package/resources/shared.mjs +3 -0
  334. package/resources/shared.mjs.map +1 -0
  335. package/resources.d.mts +2 -0
  336. package/resources.d.mts.map +1 -0
  337. package/resources.d.ts +2 -0
  338. package/resources.d.ts.map +1 -0
  339. package/resources.js +5 -0
  340. package/resources.js.map +1 -0
  341. package/resources.mjs +2 -0
  342. package/resources.mjs.map +1 -0
  343. package/src/api-promise.ts +2 -0
  344. package/src/client.ts +775 -0
  345. package/src/core/README.md +3 -0
  346. package/src/core/api-promise.ts +92 -0
  347. package/src/core/error.ts +130 -0
  348. package/src/core/resource.ts +11 -0
  349. package/src/core/uploads.ts +2 -0
  350. package/src/error.ts +2 -0
  351. package/src/index.ts +22 -0
  352. package/src/internal/README.md +3 -0
  353. package/src/internal/builtin-types.ts +93 -0
  354. package/src/internal/detect-platform.ts +196 -0
  355. package/src/internal/errors.ts +33 -0
  356. package/src/internal/headers.ts +97 -0
  357. package/src/internal/parse.ts +50 -0
  358. package/src/internal/request-options.ts +91 -0
  359. package/src/internal/shim-types.ts +26 -0
  360. package/src/internal/shims.ts +107 -0
  361. package/src/internal/to-file.ts +154 -0
  362. package/src/internal/types.ts +95 -0
  363. package/src/internal/uploads.ts +187 -0
  364. package/src/internal/utils/base64.ts +40 -0
  365. package/src/internal/utils/bytes.ts +32 -0
  366. package/src/internal/utils/env.ts +18 -0
  367. package/src/internal/utils/log.ts +127 -0
  368. package/src/internal/utils/path.ts +88 -0
  369. package/src/internal/utils/sleep.ts +3 -0
  370. package/src/internal/utils/uuid.ts +17 -0
  371. package/src/internal/utils/values.ts +105 -0
  372. package/src/internal/utils.ts +8 -0
  373. package/src/lib/.keep +4 -0
  374. package/src/resource.ts +2 -0
  375. package/src/resources/index.ts +21 -0
  376. package/src/resources/logs/index.ts +10 -0
  377. package/src/resources/logs/logs.ts +21 -0
  378. package/src/resources/logs/raw.ts +301 -0
  379. package/src/resources/logs.ts +3 -0
  380. package/src/resources/organizations/categories.ts +83 -0
  381. package/src/resources/organizations/index.ts +16 -0
  382. package/src/resources/organizations/organizations.ts +74 -0
  383. package/src/resources/organizations.ts +3 -0
  384. package/src/resources/prompts.ts +136 -0
  385. package/src/resources/reports.ts +338 -0
  386. package/src/resources/shared.ts +16 -0
  387. package/src/resources.ts +1 -0
  388. package/src/tsconfig.json +11 -0
  389. package/src/uploads.ts +2 -0
  390. package/src/version.ts +1 -0
  391. package/uploads.d.mts +2 -0
  392. package/uploads.d.mts.map +1 -0
  393. package/uploads.d.ts +2 -0
  394. package/uploads.d.ts.map +1 -0
  395. package/uploads.js +6 -0
  396. package/uploads.js.map +1 -0
  397. package/uploads.mjs +2 -0
  398. package/uploads.mjs.map +1 -0
  399. package/version.d.mts +2 -0
  400. package/version.d.mts.map +1 -0
  401. package/version.d.ts +2 -0
  402. package/version.d.ts.map +1 -0
  403. package/version.js +5 -0
  404. package/version.js.map +1 -0
  405. package/version.mjs +2 -0
  406. package/version.mjs.map +1 -0
@@ -0,0 +1,192 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as ReportsAPI from "../reports.mjs";
3
+ import * as Shared from "../shared.mjs";
4
+ import { APIPromise } from "../../core/api-promise.mjs";
5
+ import { RequestOptions } from "../../internal/request-options.mjs";
6
+ export declare class Raw extends APIResource {
7
+ /**
8
+ * Get identified bot logs with filters
9
+ */
10
+ bots(body: RawBotsParams, options?: RequestOptions): APIPromise<RawBotsResponse>;
11
+ /**
12
+ * Get all logs with filters
13
+ */
14
+ logs(body: RawLogsParams, options?: RequestOptions): APIPromise<RawLogsResponse>;
15
+ }
16
+ /**
17
+ * Base response model for reports.
18
+ */
19
+ export type RawBotsResponse = Array<RawBotsResponse.LogVisitBotList> | ReportsAPI.ReportResponse;
20
+ export declare namespace RawBotsResponse {
21
+ /**
22
+ * DB Model for a bot visit.
23
+ */
24
+ interface LogVisitBotList {
25
+ bot_name: string;
26
+ bot_provider: string;
27
+ bot_types: Array<'ai_assistant' | 'ai_training' | 'index'>;
28
+ host: string;
29
+ ip: string;
30
+ method: string;
31
+ org_id: string;
32
+ path: string;
33
+ status_code: number;
34
+ timestamp: string;
35
+ user_agent: string;
36
+ bytes_sent?: number;
37
+ duration_ms?: number;
38
+ query_params?: {
39
+ [key: string]: string;
40
+ };
41
+ referer?: string;
42
+ }
43
+ }
44
+ /**
45
+ * Base response model for reports.
46
+ */
47
+ export type RawLogsResponse = Array<RawLogsResponse.LogVisitList> | ReportsAPI.ReportResponse;
48
+ export declare namespace RawLogsResponse {
49
+ /**
50
+ * DB Model for a log visit.
51
+ */
52
+ interface LogVisitList {
53
+ host: string;
54
+ ip: string;
55
+ method: string;
56
+ org_id: string;
57
+ path: string;
58
+ status_code: number;
59
+ timestamp: string;
60
+ user_agent: string;
61
+ bytes_sent?: number;
62
+ duration_ms?: number;
63
+ query_params?: {
64
+ [key: string]: string;
65
+ };
66
+ referer?: string;
67
+ }
68
+ }
69
+ export interface RawBotsParams {
70
+ /**
71
+ * Domain to query logs for.
72
+ */
73
+ domain: string;
74
+ metrics: Array<'count'>;
75
+ /**
76
+ * Start date for logs. Accepts: YYYY-MM-DD, YYYY-MM-DD HH:MM, YYYY-MM-DD HH:MM:SS,
77
+ * or full ISO timestamp.
78
+ */
79
+ start_date: string;
80
+ /**
81
+ * Date interval for the report. (only used with date dimension)
82
+ */
83
+ date_interval?: 'day' | 'week' | 'month' | 'year';
84
+ /**
85
+ * Dimensions to group the report by.
86
+ */
87
+ dimensions?: Array<'method' | 'path' | 'status_code' | 'ip' | 'user_agent' | 'referer' | 'query_params' | 'bot_name' | 'bot_provider' | 'bot_types'>;
88
+ /**
89
+ * End date for logs. Accepts same formats as start_date. Defaults to now if
90
+ * omitted.
91
+ */
92
+ end_date?: string;
93
+ /**
94
+ * List of filters to apply to the report. Each filter has an operator, field, and
95
+ * value.
96
+ */
97
+ filters?: Array<RawBotsParams.Filter>;
98
+ /**
99
+ * Custom ordering of the report results.
100
+ *
101
+ * The order is a record of key-value pairs where:
102
+ *
103
+ * - key is the field to order by, which can be a metric or dimension
104
+ * - value is the direction of the order, either 'asc' for ascending or 'desc' for
105
+ * descending.
106
+ *
107
+ * When not specified, the default order is the first metric in the query
108
+ * descending.
109
+ */
110
+ order_by?: {
111
+ [key: string]: 'asc' | 'desc';
112
+ };
113
+ /**
114
+ * Pagination settings for the report results.
115
+ */
116
+ pagination?: Shared.Pagination;
117
+ }
118
+ export declare namespace RawBotsParams {
119
+ interface Filter {
120
+ field: 'method' | 'path' | 'status_code' | 'ip' | 'user_agent' | 'referer' | 'query_params' | 'bot_name' | 'bot_provider' | 'bot_types';
121
+ operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'contains_case_insensitive' | 'not_contains_case_insensitive' | 'matches';
122
+ /**
123
+ * Value for the filter. Can be a single value or a list of depending on the
124
+ * operator.
125
+ */
126
+ value: string | Array<string> | number | Array<number>;
127
+ }
128
+ }
129
+ export interface RawLogsParams {
130
+ /**
131
+ * Domain to query logs for.
132
+ */
133
+ domain: string;
134
+ metrics: Array<'count'>;
135
+ /**
136
+ * Start date for logs. Accepts: YYYY-MM-DD, YYYY-MM-DD HH:MM, YYYY-MM-DD HH:MM:SS,
137
+ * or full ISO timestamp.
138
+ */
139
+ start_date: string;
140
+ /**
141
+ * Date interval for the report. (only used with date dimension)
142
+ */
143
+ date_interval?: 'day' | 'week' | 'month' | 'year';
144
+ /**
145
+ * Dimensions to group the report by.
146
+ */
147
+ dimensions?: Array<'timestamp' | 'method' | 'host' | 'path' | 'status_code' | 'ip' | 'user_agent' | 'referer' | 'bytes_sent' | 'duration_ms' | 'query_params'>;
148
+ /**
149
+ * End date for logs. Accepts same formats as start_date. Defaults to now if
150
+ * omitted.
151
+ */
152
+ end_date?: string;
153
+ /**
154
+ * List of filters to apply to the report. Each filter has an operator, field, and
155
+ * value.
156
+ */
157
+ filters?: Array<RawLogsParams.Filter>;
158
+ /**
159
+ * Custom ordering of the report results.
160
+ *
161
+ * The order is a record of key-value pairs where:
162
+ *
163
+ * - key is the field to order by, which can be a metric or dimension
164
+ * - value is the direction of the order, either 'asc' for ascending or 'desc' for
165
+ * descending.
166
+ *
167
+ * When not specified, the default order is the first metric in the query
168
+ * descending.
169
+ */
170
+ order_by?: {
171
+ [key: string]: 'asc' | 'desc';
172
+ };
173
+ /**
174
+ * Pagination settings for the report results.
175
+ */
176
+ pagination?: Shared.Pagination;
177
+ }
178
+ export declare namespace RawLogsParams {
179
+ interface Filter {
180
+ field: 'method' | 'path' | 'status_code' | 'ip' | 'user_agent' | 'referer' | 'query_params';
181
+ operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'contains_case_insensitive' | 'not_contains_case_insensitive' | 'matches';
182
+ /**
183
+ * Value for the filter. Can be a single value or a list of depending on the
184
+ * operator.
185
+ */
186
+ value: string | Array<string> | number | Array<number>;
187
+ }
188
+ }
189
+ export declare namespace Raw {
190
+ export { type RawBotsResponse as RawBotsResponse, type RawLogsResponse as RawLogsResponse, type RawBotsParams as RawBotsParams, type RawLogsParams as RawLogsParams, };
191
+ }
192
+ //# sourceMappingURL=raw.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raw.d.mts","sourceRoot":"","sources":["../../src/resources/logs/raw.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,GAAI,SAAQ,WAAW;IAClC;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAIhF;;OAEG;IACH,IAAI,CAAC,IAAI,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CAAC,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;KACxD;CACF;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
@@ -0,0 +1,192 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as ReportsAPI from "../reports.js";
3
+ import * as Shared from "../shared.js";
4
+ import { APIPromise } from "../../core/api-promise.js";
5
+ import { RequestOptions } from "../../internal/request-options.js";
6
+ export declare class Raw extends APIResource {
7
+ /**
8
+ * Get identified bot logs with filters
9
+ */
10
+ bots(body: RawBotsParams, options?: RequestOptions): APIPromise<RawBotsResponse>;
11
+ /**
12
+ * Get all logs with filters
13
+ */
14
+ logs(body: RawLogsParams, options?: RequestOptions): APIPromise<RawLogsResponse>;
15
+ }
16
+ /**
17
+ * Base response model for reports.
18
+ */
19
+ export type RawBotsResponse = Array<RawBotsResponse.LogVisitBotList> | ReportsAPI.ReportResponse;
20
+ export declare namespace RawBotsResponse {
21
+ /**
22
+ * DB Model for a bot visit.
23
+ */
24
+ interface LogVisitBotList {
25
+ bot_name: string;
26
+ bot_provider: string;
27
+ bot_types: Array<'ai_assistant' | 'ai_training' | 'index'>;
28
+ host: string;
29
+ ip: string;
30
+ method: string;
31
+ org_id: string;
32
+ path: string;
33
+ status_code: number;
34
+ timestamp: string;
35
+ user_agent: string;
36
+ bytes_sent?: number;
37
+ duration_ms?: number;
38
+ query_params?: {
39
+ [key: string]: string;
40
+ };
41
+ referer?: string;
42
+ }
43
+ }
44
+ /**
45
+ * Base response model for reports.
46
+ */
47
+ export type RawLogsResponse = Array<RawLogsResponse.LogVisitList> | ReportsAPI.ReportResponse;
48
+ export declare namespace RawLogsResponse {
49
+ /**
50
+ * DB Model for a log visit.
51
+ */
52
+ interface LogVisitList {
53
+ host: string;
54
+ ip: string;
55
+ method: string;
56
+ org_id: string;
57
+ path: string;
58
+ status_code: number;
59
+ timestamp: string;
60
+ user_agent: string;
61
+ bytes_sent?: number;
62
+ duration_ms?: number;
63
+ query_params?: {
64
+ [key: string]: string;
65
+ };
66
+ referer?: string;
67
+ }
68
+ }
69
+ export interface RawBotsParams {
70
+ /**
71
+ * Domain to query logs for.
72
+ */
73
+ domain: string;
74
+ metrics: Array<'count'>;
75
+ /**
76
+ * Start date for logs. Accepts: YYYY-MM-DD, YYYY-MM-DD HH:MM, YYYY-MM-DD HH:MM:SS,
77
+ * or full ISO timestamp.
78
+ */
79
+ start_date: string;
80
+ /**
81
+ * Date interval for the report. (only used with date dimension)
82
+ */
83
+ date_interval?: 'day' | 'week' | 'month' | 'year';
84
+ /**
85
+ * Dimensions to group the report by.
86
+ */
87
+ dimensions?: Array<'method' | 'path' | 'status_code' | 'ip' | 'user_agent' | 'referer' | 'query_params' | 'bot_name' | 'bot_provider' | 'bot_types'>;
88
+ /**
89
+ * End date for logs. Accepts same formats as start_date. Defaults to now if
90
+ * omitted.
91
+ */
92
+ end_date?: string;
93
+ /**
94
+ * List of filters to apply to the report. Each filter has an operator, field, and
95
+ * value.
96
+ */
97
+ filters?: Array<RawBotsParams.Filter>;
98
+ /**
99
+ * Custom ordering of the report results.
100
+ *
101
+ * The order is a record of key-value pairs where:
102
+ *
103
+ * - key is the field to order by, which can be a metric or dimension
104
+ * - value is the direction of the order, either 'asc' for ascending or 'desc' for
105
+ * descending.
106
+ *
107
+ * When not specified, the default order is the first metric in the query
108
+ * descending.
109
+ */
110
+ order_by?: {
111
+ [key: string]: 'asc' | 'desc';
112
+ };
113
+ /**
114
+ * Pagination settings for the report results.
115
+ */
116
+ pagination?: Shared.Pagination;
117
+ }
118
+ export declare namespace RawBotsParams {
119
+ interface Filter {
120
+ field: 'method' | 'path' | 'status_code' | 'ip' | 'user_agent' | 'referer' | 'query_params' | 'bot_name' | 'bot_provider' | 'bot_types';
121
+ operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'contains_case_insensitive' | 'not_contains_case_insensitive' | 'matches';
122
+ /**
123
+ * Value for the filter. Can be a single value or a list of depending on the
124
+ * operator.
125
+ */
126
+ value: string | Array<string> | number | Array<number>;
127
+ }
128
+ }
129
+ export interface RawLogsParams {
130
+ /**
131
+ * Domain to query logs for.
132
+ */
133
+ domain: string;
134
+ metrics: Array<'count'>;
135
+ /**
136
+ * Start date for logs. Accepts: YYYY-MM-DD, YYYY-MM-DD HH:MM, YYYY-MM-DD HH:MM:SS,
137
+ * or full ISO timestamp.
138
+ */
139
+ start_date: string;
140
+ /**
141
+ * Date interval for the report. (only used with date dimension)
142
+ */
143
+ date_interval?: 'day' | 'week' | 'month' | 'year';
144
+ /**
145
+ * Dimensions to group the report by.
146
+ */
147
+ dimensions?: Array<'timestamp' | 'method' | 'host' | 'path' | 'status_code' | 'ip' | 'user_agent' | 'referer' | 'bytes_sent' | 'duration_ms' | 'query_params'>;
148
+ /**
149
+ * End date for logs. Accepts same formats as start_date. Defaults to now if
150
+ * omitted.
151
+ */
152
+ end_date?: string;
153
+ /**
154
+ * List of filters to apply to the report. Each filter has an operator, field, and
155
+ * value.
156
+ */
157
+ filters?: Array<RawLogsParams.Filter>;
158
+ /**
159
+ * Custom ordering of the report results.
160
+ *
161
+ * The order is a record of key-value pairs where:
162
+ *
163
+ * - key is the field to order by, which can be a metric or dimension
164
+ * - value is the direction of the order, either 'asc' for ascending or 'desc' for
165
+ * descending.
166
+ *
167
+ * When not specified, the default order is the first metric in the query
168
+ * descending.
169
+ */
170
+ order_by?: {
171
+ [key: string]: 'asc' | 'desc';
172
+ };
173
+ /**
174
+ * Pagination settings for the report results.
175
+ */
176
+ pagination?: Shared.Pagination;
177
+ }
178
+ export declare namespace RawLogsParams {
179
+ interface Filter {
180
+ field: 'method' | 'path' | 'status_code' | 'ip' | 'user_agent' | 'referer' | 'query_params';
181
+ operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'contains_case_insensitive' | 'not_contains_case_insensitive' | 'matches';
182
+ /**
183
+ * Value for the filter. Can be a single value or a list of depending on the
184
+ * operator.
185
+ */
186
+ value: string | Array<string> | number | Array<number>;
187
+ }
188
+ }
189
+ export declare namespace Raw {
190
+ export { type RawBotsResponse as RawBotsResponse, type RawLogsResponse as RawLogsResponse, type RawBotsParams as RawBotsParams, type RawLogsParams as RawLogsParams, };
191
+ }
192
+ //# sourceMappingURL=raw.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raw.d.ts","sourceRoot":"","sources":["../../src/resources/logs/raw.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,GAAI,SAAQ,WAAW;IAClC;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAIhF;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAGjF;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC,eAAe,CAAC,GAAG,UAAU,CAAC,cAAc,CAAC;AAEjG,yBAAiB,eAAe,CAAC;IAC/B;;OAEG;IACH,UAAiB,eAAe;QAC9B,QAAQ,EAAE,MAAM,CAAC;QAEjB,YAAY,EAAE,MAAM,CAAC;QAErB,SAAS,EAAE,KAAK,CAAC,cAAc,GAAG,aAAa,GAAG,OAAO,CAAC,CAAC;QAE3D,IAAI,EAAE,MAAM,CAAC;QAEb,EAAE,EAAE,MAAM,CAAC;QAEX,MAAM,EAAE,MAAM,CAAC;QAEf,MAAM,EAAE,MAAM,CAAC;QAEf,IAAI,EAAE,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,GACT,YAAY,GACZ,aAAa,GACb,cAAc,CACjB,CAAC;IAEF;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAEtC;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,CAAA;KAAE,CAAC;IAE7C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;CAChC;AAED,yBAAiB,aAAa,CAAC;IAC7B,UAAiB,MAAM;QACrB,KAAK,EAAE,QAAQ,GAAG,MAAM,GAAG,aAAa,GAAG,IAAI,GAAG,YAAY,GAAG,SAAS,GAAG,cAAc,CAAC;QAE5F,QAAQ,EACJ,IAAI,GACJ,QAAQ,GACR,IAAI,GACJ,QAAQ,GACR,UAAU,GACV,cAAc,GACd,2BAA2B,GAC3B,+BAA+B,GAC/B,SAAS,CAAC;QAEd;;;WAGG;QACH,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;KACxD;CACF;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Raw = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ class Raw extends resource_1.APIResource {
7
+ /**
8
+ * Get identified bot logs with filters
9
+ */
10
+ bots(body, options) {
11
+ return this._client.post('/v1/logs/raw/bots', { body, ...options });
12
+ }
13
+ /**
14
+ * Get all logs with filters
15
+ */
16
+ logs(body, options) {
17
+ return this._client.post('/v1/logs/raw', { body, ...options });
18
+ }
19
+ }
20
+ exports.Raw = Raw;
21
+ //# sourceMappingURL=raw.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raw.js","sourceRoot":"","sources":["../../src/resources/logs/raw.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAMlD,MAAa,GAAI,SAAQ,sBAAW;IAClC;;OAEG;IACH,IAAI,CAAC,IAAmB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,IAAmB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;CACF;AAdD,kBAcC"}
@@ -0,0 +1,17 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ export class Raw extends APIResource {
4
+ /**
5
+ * Get identified bot logs with filters
6
+ */
7
+ bots(body, options) {
8
+ return this._client.post('/v1/logs/raw/bots', { body, ...options });
9
+ }
10
+ /**
11
+ * Get all logs with filters
12
+ */
13
+ logs(body, options) {
14
+ return this._client.post('/v1/logs/raw', { body, ...options });
15
+ }
16
+ }
17
+ //# sourceMappingURL=raw.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raw.mjs","sourceRoot":"","sources":["../../src/resources/logs/raw.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAMtB,MAAM,OAAO,GAAI,SAAQ,WAAW;IAClC;;OAEG;IACH,IAAI,CAAC,IAAmB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,IAAmB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from "./logs/index.mjs";
2
+ //# sourceMappingURL=logs.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logs.d.mts","sourceRoot":"","sources":["../src/resources/logs.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./logs/index.js";
2
+ //# sourceMappingURL=logs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../src/resources/logs.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const tslib_1 = require("../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./logs/index.js"), exports);
6
+ //# sourceMappingURL=logs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logs.js","sourceRoot":"","sources":["../src/resources/logs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAA6B"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./logs/index.mjs";
3
+ //# sourceMappingURL=logs.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logs.mjs","sourceRoot":"","sources":["../src/resources/logs.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -0,0 +1,48 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as CategoriesAPI from "./categories.mjs";
3
+ import { APIPromise } from "../../core/api-promise.mjs";
4
+ import { RequestOptions } from "../../internal/request-options.mjs";
5
+ export declare class Categories extends APIResource {
6
+ /**
7
+ * Get the organization categories.
8
+ */
9
+ list(options?: RequestOptions): APIPromise<CategoryListResponse>;
10
+ /**
11
+ * Get Category Prompts
12
+ */
13
+ prompts(categoryID: string, options?: RequestOptions): APIPromise<CategoryPromptsResponse>;
14
+ /**
15
+ * Get the organization tags for a specific category.
16
+ */
17
+ tags(categoryID: string, options?: RequestOptions): APIPromise<CategoryTagsResponse>;
18
+ /**
19
+ * Get the organization categories.
20
+ */
21
+ topics(categoryID: string, options?: RequestOptions): APIPromise<CategoryTopicsResponse>;
22
+ }
23
+ export interface OrgItem {
24
+ id: string;
25
+ name: string;
26
+ }
27
+ export type CategoryListResponse = Array<OrgItem>;
28
+ export interface CategoryPromptsResponse {
29
+ data: Array<CategoryPromptsResponse.Data>;
30
+ }
31
+ export declare namespace CategoryPromptsResponse {
32
+ interface Data {
33
+ id: string;
34
+ created_at: string;
35
+ platforms: Array<CategoriesAPI.OrgItem>;
36
+ prompt: string;
37
+ prompt_type: string;
38
+ regions: Array<CategoriesAPI.OrgItem>;
39
+ topic: CategoriesAPI.OrgItem;
40
+ tags?: Array<CategoriesAPI.OrgItem>;
41
+ }
42
+ }
43
+ export type CategoryTagsResponse = Array<OrgItem>;
44
+ export type CategoryTopicsResponse = Array<OrgItem>;
45
+ export declare namespace Categories {
46
+ export { type OrgItem as OrgItem, type CategoryListResponse as CategoryListResponse, type CategoryPromptsResponse as CategoryPromptsResponse, type CategoryTagsResponse as CategoryTagsResponse, type CategoryTopicsResponse as CategoryTopicsResponse, };
47
+ }
48
+ //# sourceMappingURL=categories.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"categories.d.mts","sourceRoot":"","sources":["../../src/resources/organizations/categories.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;O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,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;AAEpD,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -0,0 +1,48 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as CategoriesAPI from "./categories.js";
3
+ import { APIPromise } from "../../core/api-promise.js";
4
+ import { RequestOptions } from "../../internal/request-options.js";
5
+ export declare class Categories extends APIResource {
6
+ /**
7
+ * Get the organization categories.
8
+ */
9
+ list(options?: RequestOptions): APIPromise<CategoryListResponse>;
10
+ /**
11
+ * Get Category Prompts
12
+ */
13
+ prompts(categoryID: string, options?: RequestOptions): APIPromise<CategoryPromptsResponse>;
14
+ /**
15
+ * Get the organization tags for a specific category.
16
+ */
17
+ tags(categoryID: string, options?: RequestOptions): APIPromise<CategoryTagsResponse>;
18
+ /**
19
+ * Get the organization categories.
20
+ */
21
+ topics(categoryID: string, options?: RequestOptions): APIPromise<CategoryTopicsResponse>;
22
+ }
23
+ export interface OrgItem {
24
+ id: string;
25
+ name: string;
26
+ }
27
+ export type CategoryListResponse = Array<OrgItem>;
28
+ export interface CategoryPromptsResponse {
29
+ data: Array<CategoryPromptsResponse.Data>;
30
+ }
31
+ export declare namespace CategoryPromptsResponse {
32
+ interface Data {
33
+ id: string;
34
+ created_at: string;
35
+ platforms: Array<CategoriesAPI.OrgItem>;
36
+ prompt: string;
37
+ prompt_type: string;
38
+ regions: Array<CategoriesAPI.OrgItem>;
39
+ topic: CategoriesAPI.OrgItem;
40
+ tags?: Array<CategoriesAPI.OrgItem>;
41
+ }
42
+ }
43
+ export type CategoryTagsResponse = Array<OrgItem>;
44
+ export type CategoryTopicsResponse = Array<OrgItem>;
45
+ export declare namespace Categories {
46
+ export { type OrgItem as OrgItem, type CategoryListResponse as CategoryListResponse, type CategoryPromptsResponse as CategoryPromptsResponse, type CategoryTagsResponse as CategoryTagsResponse, type CategoryTopicsResponse as CategoryTopicsResponse, };
47
+ }
48
+ //# sourceMappingURL=categories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"categories.d.ts","sourceRoot":"","sources":["../../src/resources/organizations/categories.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIhE;;OAEG;IACH,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAI1F;;OAEG;IACH,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIpF;;OAEG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAGzF;AAED,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;AAElD,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,KAAK,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;CAC3C;AAED,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,IAAI;QACnB,EAAE,EAAE,MAAM,CAAC;QAEX,UAAU,EAAE,MAAM,CAAC;QAEnB,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAExC,MAAM,EAAE,MAAM,CAAC;QAEf,WAAW,EAAE,MAAM,CAAC;QAEpB,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAEtC,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC;QAE7B,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;KACrC;CACF;AAED,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;AAElD,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;AAEpD,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Categories = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const path_1 = require("../../internal/utils/path.js");
7
+ class Categories extends resource_1.APIResource {
8
+ /**
9
+ * Get the organization categories.
10
+ */
11
+ list(options) {
12
+ return this._client.get('/v1/org/categories', options);
13
+ }
14
+ /**
15
+ * Get Category Prompts
16
+ */
17
+ prompts(categoryID, options) {
18
+ return this._client.get((0, path_1.path) `/v1/org/categories/${categoryID}/prompts`, options);
19
+ }
20
+ /**
21
+ * Get the organization tags for a specific category.
22
+ */
23
+ tags(categoryID, options) {
24
+ return this._client.get((0, path_1.path) `/v1/org/categories/${categoryID}/tags`, options);
25
+ }
26
+ /**
27
+ * Get the organization categories.
28
+ */
29
+ topics(categoryID, options) {
30
+ return this._client.get((0, path_1.path) `/v1/org/categories/${categoryID}/topics`, options);
31
+ }
32
+ }
33
+ exports.Categories = Categories;
34
+ //# sourceMappingURL=categories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"categories.js","sourceRoot":"","sources":["../../src/resources/organizations/categories.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,UAAW,SAAQ,sBAAW;IACzC;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,UAAkB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,sBAAsB,UAAU,UAAU,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,UAAkB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,sBAAsB,UAAU,OAAO,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,UAAkB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,sBAAsB,UAAU,SAAS,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;CACF;AA5BD,gCA4BC"}