@nimble-way/nimble-js 0.20.0 → 1.0.0

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 (252) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +10 -10
  3. package/client.d.mts +10 -39
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +10 -39
  6. package/client.d.ts.map +1 -1
  7. package/client.js +8 -43
  8. package/client.js.map +1 -1
  9. package/client.mjs +8 -43
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/{task-agent/task-agent.d.mts → agents/agents.d.mts} +51 -213
  13. package/resources/agents/agents.d.mts.map +1 -0
  14. package/resources/{task-agent/task-agent.d.ts → agents/agents.d.ts} +51 -213
  15. package/resources/agents/agents.d.ts.map +1 -0
  16. package/resources/agents/agents.js +67 -0
  17. package/resources/agents/agents.js.map +1 -0
  18. package/resources/agents/agents.mjs +62 -0
  19. package/resources/agents/agents.mjs.map +1 -0
  20. package/resources/agents/index.d.mts +4 -0
  21. package/resources/agents/index.d.mts.map +1 -0
  22. package/resources/agents/index.d.ts +4 -0
  23. package/resources/agents/index.d.ts.map +1 -0
  24. package/resources/{task-agent → agents}/index.js +3 -3
  25. package/resources/agents/index.js.map +1 -0
  26. package/resources/{task-agent → agents}/index.mjs +1 -1
  27. package/resources/agents/index.mjs.map +1 -0
  28. package/resources/{task-agent → agents}/runs.d.mts +192 -43
  29. package/resources/agents/runs.d.mts.map +1 -0
  30. package/resources/{task-agent → agents}/runs.d.ts +192 -43
  31. package/resources/agents/runs.d.ts.map +1 -0
  32. package/resources/agents/runs.js +63 -0
  33. package/resources/agents/runs.js.map +1 -0
  34. package/resources/agents/runs.mjs +59 -0
  35. package/resources/agents/runs.mjs.map +1 -0
  36. package/resources/{task-agent → agents}/templates.d.mts +3 -6
  37. package/resources/agents/templates.d.mts.map +1 -0
  38. package/resources/{task-agent → agents}/templates.d.ts +3 -6
  39. package/resources/agents/templates.d.ts.map +1 -0
  40. package/resources/{task-agent → agents}/templates.js +5 -8
  41. package/resources/agents/templates.js.map +1 -0
  42. package/resources/agents/templates.mjs +19 -0
  43. package/resources/agents/templates.mjs.map +1 -0
  44. package/resources/agents.d.mts +2 -0
  45. package/resources/agents.d.mts.map +1 -0
  46. package/resources/agents.d.ts +2 -0
  47. package/resources/agents.d.ts.map +1 -0
  48. package/resources/{task-agent.js → agents.js} +2 -2
  49. package/resources/agents.js.map +1 -0
  50. package/resources/{task-agent.mjs → agents.mjs} +2 -2
  51. package/resources/agents.mjs.map +1 -0
  52. package/resources/batches.js +3 -3
  53. package/resources/batches.mjs +3 -3
  54. package/resources/crawl.js +4 -4
  55. package/resources/crawl.mjs +4 -4
  56. package/resources/domain-knowledge.js +1 -1
  57. package/resources/domain-knowledge.mjs +1 -1
  58. package/resources/extract/extract.d.mts +1243 -0
  59. package/resources/extract/extract.d.mts.map +1 -0
  60. package/resources/extract/extract.d.ts +1243 -0
  61. package/resources/extract/extract.d.ts.map +1 -0
  62. package/resources/extract/extract.js +52 -0
  63. package/resources/extract/extract.js.map +1 -0
  64. package/resources/extract/extract.mjs +47 -0
  65. package/resources/extract/extract.mjs.map +1 -0
  66. package/resources/extract/index.d.mts +3 -0
  67. package/resources/extract/index.d.mts.map +1 -0
  68. package/resources/extract/index.d.ts +3 -0
  69. package/resources/extract/index.d.ts.map +1 -0
  70. package/resources/extract/index.js +9 -0
  71. package/resources/extract/index.js.map +1 -0
  72. package/resources/extract/index.mjs +4 -0
  73. package/resources/extract/index.mjs.map +1 -0
  74. package/resources/extract/templates/generations.d.mts +364 -0
  75. package/resources/extract/templates/generations.d.mts.map +1 -0
  76. package/resources/extract/templates/generations.d.ts +364 -0
  77. package/resources/extract/templates/generations.d.ts.map +1 -0
  78. package/resources/extract/templates/generations.js +39 -0
  79. package/resources/extract/templates/generations.js.map +1 -0
  80. package/resources/extract/templates/generations.mjs +35 -0
  81. package/resources/extract/templates/generations.mjs.map +1 -0
  82. package/resources/extract/templates/index.d.mts +4 -0
  83. package/resources/extract/templates/index.d.mts.map +1 -0
  84. package/resources/extract/templates/index.d.ts +4 -0
  85. package/resources/extract/templates/index.d.ts.map +1 -0
  86. package/resources/extract/templates/index.js +11 -0
  87. package/resources/extract/templates/index.js.map +1 -0
  88. package/resources/extract/templates/index.mjs +5 -0
  89. package/resources/extract/templates/index.mjs.map +1 -0
  90. package/resources/extract/templates/templates.d.mts +870 -0
  91. package/resources/extract/templates/templates.d.mts.map +1 -0
  92. package/resources/extract/templates/templates.d.ts +870 -0
  93. package/resources/extract/templates/templates.d.ts.map +1 -0
  94. package/resources/extract/templates/templates.js +120 -0
  95. package/resources/extract/templates/templates.js.map +1 -0
  96. package/resources/extract/templates/templates.mjs +115 -0
  97. package/resources/extract/templates/templates.mjs.map +1 -0
  98. package/resources/extract/templates/versions.d.mts +226 -0
  99. package/resources/extract/templates/versions.d.mts.map +1 -0
  100. package/resources/extract/templates/versions.d.ts +226 -0
  101. package/resources/extract/templates/versions.d.ts.map +1 -0
  102. package/resources/extract/templates/versions.js +42 -0
  103. package/resources/extract/templates/versions.js.map +1 -0
  104. package/resources/extract/templates/versions.mjs +38 -0
  105. package/resources/extract/templates/versions.mjs.map +1 -0
  106. package/resources/extract/templates.d.mts +2 -0
  107. package/resources/extract/templates.d.mts.map +1 -0
  108. package/resources/extract/templates.d.ts +2 -0
  109. package/resources/extract/templates.d.ts.map +1 -0
  110. package/resources/extract/templates.js +6 -0
  111. package/resources/extract/templates.js.map +1 -0
  112. package/resources/extract/templates.mjs +3 -0
  113. package/resources/extract/templates.mjs.map +1 -0
  114. package/resources/extract.d.mts +2 -0
  115. package/resources/extract.d.mts.map +1 -0
  116. package/resources/extract.d.ts +2 -0
  117. package/resources/extract.d.ts.map +1 -0
  118. package/resources/extract.js +6 -0
  119. package/resources/extract.js.map +1 -0
  120. package/resources/extract.mjs +3 -0
  121. package/resources/extract.mjs.map +1 -0
  122. package/resources/fast-serp.js +1 -1
  123. package/resources/fast-serp.mjs +1 -1
  124. package/resources/index.d.mts +4 -4
  125. package/resources/index.d.mts.map +1 -1
  126. package/resources/index.d.ts +4 -4
  127. package/resources/index.d.ts.map +1 -1
  128. package/resources/index.js +5 -5
  129. package/resources/index.js.map +1 -1
  130. package/resources/index.mjs +2 -2
  131. package/resources/index.mjs.map +1 -1
  132. package/resources/jobs/index.d.mts +2 -2
  133. package/resources/jobs/index.d.mts.map +1 -1
  134. package/resources/jobs/index.d.ts +2 -2
  135. package/resources/jobs/index.d.ts.map +1 -1
  136. package/resources/jobs/index.js.map +1 -1
  137. package/resources/jobs/index.mjs.map +1 -1
  138. package/resources/jobs/jobs.d.mts +35 -103
  139. package/resources/jobs/jobs.d.mts.map +1 -1
  140. package/resources/jobs/jobs.d.ts +35 -103
  141. package/resources/jobs/jobs.d.ts.map +1 -1
  142. package/resources/jobs/jobs.js +10 -28
  143. package/resources/jobs/jobs.js.map +1 -1
  144. package/resources/jobs/jobs.mjs +11 -29
  145. package/resources/jobs/jobs.mjs.map +1 -1
  146. package/resources/jobs/runs/artifacts.d.mts +4 -12
  147. package/resources/jobs/runs/artifacts.d.mts.map +1 -1
  148. package/resources/jobs/runs/artifacts.d.ts +4 -12
  149. package/resources/jobs/runs/artifacts.d.ts.map +1 -1
  150. package/resources/jobs/runs/artifacts.js +8 -16
  151. package/resources/jobs/runs/artifacts.js.map +1 -1
  152. package/resources/jobs/runs/artifacts.mjs +8 -16
  153. package/resources/jobs/runs/artifacts.mjs.map +1 -1
  154. package/resources/jobs/runs/index.d.mts +1 -1
  155. package/resources/jobs/runs/index.d.mts.map +1 -1
  156. package/resources/jobs/runs/index.d.ts +1 -1
  157. package/resources/jobs/runs/index.d.ts.map +1 -1
  158. package/resources/jobs/runs/index.js.map +1 -1
  159. package/resources/jobs/runs/index.mjs.map +1 -1
  160. package/resources/jobs/runs/runs.d.mts +60 -28
  161. package/resources/jobs/runs/runs.d.mts.map +1 -1
  162. package/resources/jobs/runs/runs.d.ts +60 -28
  163. package/resources/jobs/runs/runs.d.ts.map +1 -1
  164. package/resources/jobs/runs/runs.js +12 -12
  165. package/resources/jobs/runs/runs.js.map +1 -1
  166. package/resources/jobs/runs/runs.mjs +12 -12
  167. package/resources/jobs/runs/runs.mjs.map +1 -1
  168. package/resources/media.js +2 -2
  169. package/resources/media.mjs +2 -2
  170. package/resources/serp.js +3 -3
  171. package/resources/serp.mjs +3 -3
  172. package/resources/tasks.js +3 -3
  173. package/resources/tasks.mjs +3 -3
  174. package/resources/top-level.d.mts +1 -1202
  175. package/resources/top-level.d.mts.map +1 -1
  176. package/resources/top-level.d.ts +1 -1202
  177. package/resources/top-level.d.ts.map +1 -1
  178. package/src/client.ts +41 -123
  179. package/src/resources/{task-agent/task-agent.ts → agents/agents.ts} +71 -258
  180. package/src/resources/{task-agent → agents}/index.ts +14 -14
  181. package/src/resources/{task-agent → agents}/runs.ts +228 -54
  182. package/src/resources/{task-agent → agents}/templates.ts +5 -8
  183. package/src/resources/{task-agent.ts → agents.ts} +1 -1
  184. package/src/resources/batches.ts +3 -3
  185. package/src/resources/crawl.ts +4 -4
  186. package/src/resources/domain-knowledge.ts +1 -1
  187. package/src/resources/extract/extract.ts +5182 -0
  188. package/src/resources/extract/index.ts +25 -0
  189. package/src/resources/extract/templates/generations.ts +435 -0
  190. package/src/resources/extract/templates/index.ts +29 -0
  191. package/src/resources/extract/templates/templates.ts +1176 -0
  192. package/src/resources/extract/templates/versions.ts +284 -0
  193. package/src/resources/extract/templates.ts +3 -0
  194. package/src/resources/extract.ts +3 -0
  195. package/src/resources/fast-serp.ts +1 -1
  196. package/src/resources/index.ts +16 -36
  197. package/src/resources/jobs/index.ts +1 -1
  198. package/src/resources/jobs/jobs.ts +50 -125
  199. package/src/resources/jobs/runs/artifacts.ts +8 -16
  200. package/src/resources/jobs/runs/index.ts +1 -0
  201. package/src/resources/jobs/runs/runs.ts +75 -31
  202. package/src/resources/media.ts +2 -2
  203. package/src/resources/serp.ts +3 -3
  204. package/src/resources/tasks.ts +3 -3
  205. package/src/resources/top-level.ts +72 -5171
  206. package/src/version.ts +1 -1
  207. package/version.d.mts +1 -1
  208. package/version.d.mts.map +1 -1
  209. package/version.d.ts +1 -1
  210. package/version.d.ts.map +1 -1
  211. package/version.js +1 -1
  212. package/version.js.map +1 -1
  213. package/version.mjs +1 -1
  214. package/version.mjs.map +1 -1
  215. package/resources/agent.d.mts +0 -641
  216. package/resources/agent.d.mts.map +0 -1
  217. package/resources/agent.d.ts +0 -641
  218. package/resources/agent.d.ts.map +0 -1
  219. package/resources/agent.js +0 -84
  220. package/resources/agent.js.map +0 -1
  221. package/resources/agent.mjs +0 -80
  222. package/resources/agent.mjs.map +0 -1
  223. package/resources/task-agent/index.d.mts +0 -4
  224. package/resources/task-agent/index.d.mts.map +0 -1
  225. package/resources/task-agent/index.d.ts +0 -4
  226. package/resources/task-agent/index.d.ts.map +0 -1
  227. package/resources/task-agent/index.js.map +0 -1
  228. package/resources/task-agent/index.mjs.map +0 -1
  229. package/resources/task-agent/runs.d.mts.map +0 -1
  230. package/resources/task-agent/runs.d.ts.map +0 -1
  231. package/resources/task-agent/runs.js +0 -63
  232. package/resources/task-agent/runs.js.map +0 -1
  233. package/resources/task-agent/runs.mjs +0 -59
  234. package/resources/task-agent/runs.mjs.map +0 -1
  235. package/resources/task-agent/task-agent.d.mts.map +0 -1
  236. package/resources/task-agent/task-agent.d.ts.map +0 -1
  237. package/resources/task-agent/task-agent.js +0 -80
  238. package/resources/task-agent/task-agent.js.map +0 -1
  239. package/resources/task-agent/task-agent.mjs +0 -75
  240. package/resources/task-agent/task-agent.mjs.map +0 -1
  241. package/resources/task-agent/templates.d.mts.map +0 -1
  242. package/resources/task-agent/templates.d.ts.map +0 -1
  243. package/resources/task-agent/templates.js.map +0 -1
  244. package/resources/task-agent/templates.mjs +0 -22
  245. package/resources/task-agent/templates.mjs.map +0 -1
  246. package/resources/task-agent.d.mts +0 -2
  247. package/resources/task-agent.d.mts.map +0 -1
  248. package/resources/task-agent.d.ts +0 -2
  249. package/resources/task-agent.d.ts.map +0 -1
  250. package/resources/task-agent.js.map +0 -1
  251. package/resources/task-agent.mjs.map +0 -1
  252. package/src/resources/agent.ts +0 -935
@@ -0,0 +1,226 @@
1
+ import { APIResource } from "../../../core/resource.js";
2
+ import { APIPromise } from "../../../core/api-promise.js";
3
+ import { RequestOptions } from "../../../internal/request-options.js";
4
+ export declare class Versions extends APIResource {
5
+ /**
6
+ * List Extract Template Versions Public V2
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const versions =
11
+ * await client.extract.templates.versions.list(
12
+ * 'extract_template_name',
13
+ * );
14
+ * ```
15
+ */
16
+ list(extractTemplateName: string, query?: VersionListParams | null | undefined, options?: RequestOptions): APIPromise<VersionListResponse>;
17
+ /**
18
+ * Get Extract Template Version Public V2
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const version = await client.extract.templates.versions.get(
23
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
24
+ * { extract_template_name: 'extract_template_name' },
25
+ * );
26
+ * ```
27
+ */
28
+ get(versionID: string, params: VersionGetParams, options?: RequestOptions): APIPromise<VersionGetResponse>;
29
+ }
30
+ export interface VersionListResponse {
31
+ /**
32
+ * Items returned in this page.
33
+ */
34
+ items: Array<VersionListResponse.Item>;
35
+ /**
36
+ * Maximum number of items returned.
37
+ */
38
+ limit: number;
39
+ /**
40
+ * Number of items skipped before this page.
41
+ */
42
+ offset: number;
43
+ /**
44
+ * Total number of items matching the query.
45
+ */
46
+ total: number;
47
+ }
48
+ export declare namespace VersionListResponse {
49
+ interface Item {
50
+ /**
51
+ * Unique extract template version identifier.
52
+ */
53
+ id: string;
54
+ /**
55
+ * When the version was created.
56
+ */
57
+ created_at: string;
58
+ /**
59
+ * JSON schema describing accepted input parameters.
60
+ */
61
+ input_schema: {
62
+ [key: string]: unknown;
63
+ };
64
+ /**
65
+ * Metadata associated with this version.
66
+ */
67
+ metadata: Item.Metadata;
68
+ /**
69
+ * Extract template name this version belongs to.
70
+ */
71
+ name: string;
72
+ /**
73
+ * JSON schema describing extracted output.
74
+ */
75
+ output_schema: {
76
+ [key: string]: unknown;
77
+ };
78
+ /**
79
+ * Monotonic version number for the extract template.
80
+ */
81
+ version_number: number;
82
+ /**
83
+ * Sample input and output pairs for the version.
84
+ */
85
+ samples?: Array<Item.Sample> | null;
86
+ }
87
+ namespace Item {
88
+ /**
89
+ * Metadata associated with this version.
90
+ */
91
+ interface Metadata {
92
+ /**
93
+ * Data source associated with the version.
94
+ */
95
+ data_source?: string | null;
96
+ /**
97
+ * Version description shown to users.
98
+ */
99
+ description?: string | null;
100
+ /**
101
+ * Human-friendly version display name.
102
+ */
103
+ display_name?: string | null;
104
+ /**
105
+ * Domain associated with the version.
106
+ */
107
+ domain?: string | null;
108
+ /**
109
+ * Entity type produced by the version.
110
+ */
111
+ entity_type?: string | null;
112
+ /**
113
+ * Tags associated with the version.
114
+ */
115
+ tags?: Array<string>;
116
+ /**
117
+ * Business vertical associated with the version.
118
+ */
119
+ vertical?: string | null;
120
+ }
121
+ interface Sample {
122
+ /**
123
+ * Sample input parameters for the version.
124
+ */
125
+ input?: unknown;
126
+ /**
127
+ * Sample output produced by the version.
128
+ */
129
+ output?: unknown;
130
+ }
131
+ }
132
+ }
133
+ export interface VersionGetResponse {
134
+ /**
135
+ * Unique extract template version identifier.
136
+ */
137
+ id: string;
138
+ /**
139
+ * When the version was created.
140
+ */
141
+ created_at: string;
142
+ /**
143
+ * JSON schema describing accepted input parameters.
144
+ */
145
+ input_schema: {
146
+ [key: string]: unknown;
147
+ };
148
+ /**
149
+ * Metadata associated with this version.
150
+ */
151
+ metadata: VersionGetResponse.Metadata;
152
+ /**
153
+ * Extract template name this version belongs to.
154
+ */
155
+ name: string;
156
+ /**
157
+ * JSON schema describing extracted output.
158
+ */
159
+ output_schema: {
160
+ [key: string]: unknown;
161
+ };
162
+ /**
163
+ * Monotonic version number for the extract template.
164
+ */
165
+ version_number: number;
166
+ /**
167
+ * Sample input and output pairs for the version.
168
+ */
169
+ samples?: Array<VersionGetResponse.Sample> | null;
170
+ }
171
+ export declare namespace VersionGetResponse {
172
+ /**
173
+ * Metadata associated with this version.
174
+ */
175
+ interface Metadata {
176
+ /**
177
+ * Data source associated with the version.
178
+ */
179
+ data_source?: string | null;
180
+ /**
181
+ * Version description shown to users.
182
+ */
183
+ description?: string | null;
184
+ /**
185
+ * Human-friendly version display name.
186
+ */
187
+ display_name?: string | null;
188
+ /**
189
+ * Domain associated with the version.
190
+ */
191
+ domain?: string | null;
192
+ /**
193
+ * Entity type produced by the version.
194
+ */
195
+ entity_type?: string | null;
196
+ /**
197
+ * Tags associated with the version.
198
+ */
199
+ tags?: Array<string>;
200
+ /**
201
+ * Business vertical associated with the version.
202
+ */
203
+ vertical?: string | null;
204
+ }
205
+ interface Sample {
206
+ /**
207
+ * Sample input parameters for the version.
208
+ */
209
+ input?: unknown;
210
+ /**
211
+ * Sample output produced by the version.
212
+ */
213
+ output?: unknown;
214
+ }
215
+ }
216
+ export interface VersionListParams {
217
+ limit?: number;
218
+ offset?: number;
219
+ }
220
+ export interface VersionGetParams {
221
+ extract_template_name: string;
222
+ }
223
+ export declare namespace Versions {
224
+ export { type VersionListResponse as VersionListResponse, type VersionGetResponse as VersionGetResponse, type VersionListParams as VersionListParams, type VersionGetParams as VersionGetParams, };
225
+ }
226
+ //# sourceMappingURL=versions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../src/resources/extract/templates/versions.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,42 @@
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.Versions = void 0;
5
+ const resource_1 = require("../../../core/resource.js");
6
+ const path_1 = require("../../../internal/utils/path.js");
7
+ class Versions extends resource_1.APIResource {
8
+ /**
9
+ * List Extract Template Versions Public V2
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const versions =
14
+ * await client.extract.templates.versions.list(
15
+ * 'extract_template_name',
16
+ * );
17
+ * ```
18
+ */
19
+ list(extractTemplateName, query = {}, options) {
20
+ return this._client.get((0, path_1.path) `/v2/extract/templates/${extractTemplateName}/versions`, {
21
+ query,
22
+ ...options,
23
+ });
24
+ }
25
+ /**
26
+ * Get Extract Template Version Public V2
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const version = await client.extract.templates.versions.get(
31
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
32
+ * { extract_template_name: 'extract_template_name' },
33
+ * );
34
+ * ```
35
+ */
36
+ get(versionID, params, options) {
37
+ const { extract_template_name } = params;
38
+ return this._client.get((0, path_1.path) `/v2/extract/templates/${extract_template_name}/versions/${versionID}`, options);
39
+ }
40
+ }
41
+ exports.Versions = Versions;
42
+ //# sourceMappingURL=versions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../src/resources/extract/templates/versions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;OAUG;IACH,IAAI,CACF,mBAA2B,EAC3B,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yBAAyB,mBAAmB,WAAW,EAAE;YACnF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CAAC,SAAiB,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAAC;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAA,WAAI,EAAA,yBAAyB,qBAAqB,aAAa,SAAS,EAAE,EAC1E,OAAO,CACR,CAAC;IACJ,CAAC;CACF;AAzCD,4BAyCC"}
@@ -0,0 +1,38 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../core/resource.mjs";
3
+ import { path } from "../../../internal/utils/path.mjs";
4
+ export class Versions extends APIResource {
5
+ /**
6
+ * List Extract Template Versions Public V2
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const versions =
11
+ * await client.extract.templates.versions.list(
12
+ * 'extract_template_name',
13
+ * );
14
+ * ```
15
+ */
16
+ list(extractTemplateName, query = {}, options) {
17
+ return this._client.get(path `/v2/extract/templates/${extractTemplateName}/versions`, {
18
+ query,
19
+ ...options,
20
+ });
21
+ }
22
+ /**
23
+ * Get Extract Template Version Public V2
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const version = await client.extract.templates.versions.get(
28
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
29
+ * { extract_template_name: 'extract_template_name' },
30
+ * );
31
+ * ```
32
+ */
33
+ get(versionID, params, options) {
34
+ const { extract_template_name } = params;
35
+ return this._client.get(path `/v2/extract/templates/${extract_template_name}/versions/${versionID}`, options);
36
+ }
37
+ }
38
+ //# sourceMappingURL=versions.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versions.mjs","sourceRoot":"","sources":["../../../src/resources/extract/templates/versions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,IAAI,CACF,mBAA2B,EAC3B,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yBAAyB,mBAAmB,WAAW,EAAE;YACnF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CAAC,SAAiB,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAAC;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAI,CAAA,yBAAyB,qBAAqB,aAAa,SAAS,EAAE,EAC1E,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from "./templates/index.mjs";
2
+ //# sourceMappingURL=templates.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templates.d.mts","sourceRoot":"","sources":["../../src/resources/extract/templates.ts"],"names":[],"mappings":"AAEA,sCAAkC"}
@@ -0,0 +1,2 @@
1
+ export * from "./templates/index.js";
2
+ //# sourceMappingURL=templates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/resources/extract/templates.ts"],"names":[],"mappings":"AAEA,qCAAkC"}
@@ -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("./templates/index.js"), exports);
6
+ //# sourceMappingURL=templates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templates.js","sourceRoot":"","sources":["../../src/resources/extract/templates.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,+DAAkC"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./templates/index.mjs";
3
+ //# sourceMappingURL=templates.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templates.mjs","sourceRoot":"","sources":["../../src/resources/extract/templates.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,sCAAkC"}
@@ -0,0 +1,2 @@
1
+ export * from "./extract/index.mjs";
2
+ //# sourceMappingURL=extract.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extract.d.mts","sourceRoot":"","sources":["../src/resources/extract.ts"],"names":[],"mappings":"AAEA,oCAAgC"}
@@ -0,0 +1,2 @@
1
+ export * from "./extract/index.js";
2
+ //# sourceMappingURL=extract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extract.d.ts","sourceRoot":"","sources":["../src/resources/extract.ts"],"names":[],"mappings":"AAEA,mCAAgC"}
@@ -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("./extract/index.js"), exports);
6
+ //# sourceMappingURL=extract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extract.js","sourceRoot":"","sources":["../src/resources/extract.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6DAAgC"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./extract/index.mjs";
3
+ //# sourceMappingURL=extract.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extract.mjs","sourceRoot":"","sources":["../src/resources/extract.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,oCAAgC"}
@@ -15,7 +15,7 @@ class FastSerp extends resource_1.APIResource {
15
15
  * ```
16
16
  */
17
17
  run(body, options) {
18
- return this._client.post('/v1/fast-serp', { body, ...options });
18
+ return this._client.post('/v2/fast-serp', { body, ...options });
19
19
  }
20
20
  }
21
21
  exports.FastSerp = FastSerp;
@@ -12,7 +12,7 @@ export class FastSerp extends APIResource {
12
12
  * ```
13
13
  */
14
14
  run(body, options) {
15
- return this._client.post('/v1/fast-serp', { body, ...options });
15
+ return this._client.post('/v2/fast-serp', { body, ...options });
16
16
  }
17
17
  }
18
18
  //# sourceMappingURL=fast-serp.mjs.map
@@ -1,13 +1,13 @@
1
1
  export * from "./shared.mjs";
2
- export { Agent, type AgentListResponse, type AgentGenerateResponse, type AgentGetResponse, type AgentGetGenerationResponse, type AgentRunResponse, type AgentRunAsyncResponse, type AgentRunBatchResponse, type AgentListParams, type AgentGenerateParams, type AgentRunParams, type AgentRunAsyncParams, type AgentRunBatchParams, } from "./agent.mjs";
2
+ export { Agents, type AgentCreateResponse, type AgentUpdateResponse, type AgentListResponse, type AgentGetResponse, type AgentCreateParams, type AgentUpdateParams, type AgentListParams, } from "./agents/agents.mjs";
3
3
  export { Batches, type BatchGetResponse, type BatchProgressResponse } from "./batches.mjs";
4
4
  export { Crawl, type CrawlListResponse, type CrawlRunResponse, type CrawlStatusResponse, type CrawlTerminateResponse, type CrawlListParams, type CrawlRunParams, } from "./crawl.mjs";
5
5
  export { DomainKnowledge, type DomainKnowledgeGetDriverResponse, type DomainKnowledgeGetDriverParams, } from "./domain-knowledge.mjs";
6
+ export { Extract, type ExtractAsyncResponse, type ExtractBatchResponse, type ExtractRunResponse, type ExtractAsyncParams, type ExtractBatchParams, type ExtractRunParams, } from "./extract/extract.mjs";
6
7
  export { FastSerp, type FastSerpRunResponse, type FastSerpRunParams } from "./fast-serp.mjs";
7
- export { Jobs, type JobCreateResponse, type JobUpdateResponse, type JobListResponse, type JobGetResponse, type JobRunResponse, type JobCreateParams, type JobUpdateParams, type JobListParams, } from "./jobs/jobs.mjs";
8
+ export { Jobs, type JobCreateResponse, type JobUpdateResponse, type JobListResponse, type JobGetResponse, type JobCreateParams, type JobUpdateParams, type JobListParams, } from "./jobs/jobs.mjs";
8
9
  export { Media, type MediaRunResponse, type MediaRunAsyncResponse, type MediaRunParams, type MediaRunAsyncParams, } from "./media.mjs";
9
10
  export { Serp, type SerpRunResponse, type SerpRunAsyncResponse, type SerpRunBatchResponse, type SerpRunParams, type SerpRunAsyncParams, type SerpRunBatchParams, } from "./serp.mjs";
10
- export { TaskAgent, type TaskAgentCreateResponse, type TaskAgentUpdateResponse, type TaskAgentListResponse, type TaskAgentGetResponse, type TaskAgentRunResponse, type TaskAgentCreateParams, type TaskAgentUpdateParams, type TaskAgentListParams, type TaskAgentRunParams, } from "./task-agent/task-agent.mjs";
11
11
  export { Tasks, type TaskListResponse, type TaskGetResponse, type TaskResultsResponse, type TaskListParams, } from "./tasks.mjs";
12
- export { type ExtractResponse, type ExtractAsyncResponse, type ExtractBatchResponse, type MapResponse, type SearchResponse, type ExtractParams, type ExtractAsyncParams, type ExtractBatchParams, type MapParams, type SearchParams, } from "./top-level.mjs";
12
+ export { type MapResponse, type SearchResponse, type MapParams, type SearchParams } from "./top-level.mjs";
13
13
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,6BAAyB;AACzB,OAAO,EACL,KAAK,EACL,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,oBAAgB;AACjB,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,sBAAkB;AACvF,OAAO,EACL,KAAK,EACL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,cAAc,GACpB,oBAAgB;AACjB,OAAO,EACL,eAAe,EACf,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,GACpC,+BAA2B;AAC5B,OAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,wBAAoB;AACzF,OAAO,EACL,IAAI,EACJ,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB,wBAAoB;AACrB,OAAO,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,mBAAmB,GACzB,oBAAgB;AACjB,OAAO,EACL,IAAI,EACJ,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,mBAAe;AAChB,OAAO,EACL,SAAS,EACT,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,GACxB,oCAAgC;AACjC,OAAO,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,cAAc,GACpB,oBAAgB;AACjB,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,YAAY,GAClB,wBAAoB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,6BAAyB;AACzB,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,4BAAwB;AACzB,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,sBAAkB;AACvF,OAAO,EACL,KAAK,EACL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,cAAc,GACpB,oBAAgB;AACjB,OAAO,EACL,eAAe,EACf,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,GACpC,+BAA2B;AAC5B,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB,8BAA0B;AAC3B,OAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,wBAAoB;AACzF,OAAO,EACL,IAAI,EACJ,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB,wBAAoB;AACrB,OAAO,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,mBAAmB,GACzB,oBAAgB;AACjB,OAAO,EACL,IAAI,EACJ,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,mBAAe;AAChB,OAAO,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,cAAc,GACpB,oBAAgB;AACjB,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,KAAK,YAAY,EAAE,wBAAoB"}
@@ -1,13 +1,13 @@
1
1
  export * from "./shared.js";
2
- export { Agent, type AgentListResponse, type AgentGenerateResponse, type AgentGetResponse, type AgentGetGenerationResponse, type AgentRunResponse, type AgentRunAsyncResponse, type AgentRunBatchResponse, type AgentListParams, type AgentGenerateParams, type AgentRunParams, type AgentRunAsyncParams, type AgentRunBatchParams, } from "./agent.js";
2
+ export { Agents, type AgentCreateResponse, type AgentUpdateResponse, type AgentListResponse, type AgentGetResponse, type AgentCreateParams, type AgentUpdateParams, type AgentListParams, } from "./agents/agents.js";
3
3
  export { Batches, type BatchGetResponse, type BatchProgressResponse } from "./batches.js";
4
4
  export { Crawl, type CrawlListResponse, type CrawlRunResponse, type CrawlStatusResponse, type CrawlTerminateResponse, type CrawlListParams, type CrawlRunParams, } from "./crawl.js";
5
5
  export { DomainKnowledge, type DomainKnowledgeGetDriverResponse, type DomainKnowledgeGetDriverParams, } from "./domain-knowledge.js";
6
+ export { Extract, type ExtractAsyncResponse, type ExtractBatchResponse, type ExtractRunResponse, type ExtractAsyncParams, type ExtractBatchParams, type ExtractRunParams, } from "./extract/extract.js";
6
7
  export { FastSerp, type FastSerpRunResponse, type FastSerpRunParams } from "./fast-serp.js";
7
- export { Jobs, type JobCreateResponse, type JobUpdateResponse, type JobListResponse, type JobGetResponse, type JobRunResponse, type JobCreateParams, type JobUpdateParams, type JobListParams, } from "./jobs/jobs.js";
8
+ export { Jobs, type JobCreateResponse, type JobUpdateResponse, type JobListResponse, type JobGetResponse, type JobCreateParams, type JobUpdateParams, type JobListParams, } from "./jobs/jobs.js";
8
9
  export { Media, type MediaRunResponse, type MediaRunAsyncResponse, type MediaRunParams, type MediaRunAsyncParams, } from "./media.js";
9
10
  export { Serp, type SerpRunResponse, type SerpRunAsyncResponse, type SerpRunBatchResponse, type SerpRunParams, type SerpRunAsyncParams, type SerpRunBatchParams, } from "./serp.js";
10
- export { TaskAgent, type TaskAgentCreateResponse, type TaskAgentUpdateResponse, type TaskAgentListResponse, type TaskAgentGetResponse, type TaskAgentRunResponse, type TaskAgentCreateParams, type TaskAgentUpdateParams, type TaskAgentListParams, type TaskAgentRunParams, } from "./task-agent/task-agent.js";
11
11
  export { Tasks, type TaskListResponse, type TaskGetResponse, type TaskResultsResponse, type TaskListParams, } from "./tasks.js";
12
- export { type ExtractResponse, type ExtractAsyncResponse, type ExtractBatchResponse, type MapResponse, type SearchResponse, type ExtractParams, type ExtractAsyncParams, type ExtractBatchParams, type MapParams, type SearchParams, } from "./top-level.js";
12
+ export { type MapResponse, type SearchResponse, type MapParams, type SearchParams } from "./top-level.js";
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,4BAAyB;AACzB,OAAO,EACL,KAAK,EACL,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,mBAAgB;AACjB,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,qBAAkB;AACvF,OAAO,EACL,KAAK,EACL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,cAAc,GACpB,mBAAgB;AACjB,OAAO,EACL,eAAe,EACf,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,GACpC,8BAA2B;AAC5B,OAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,uBAAoB;AACzF,OAAO,EACL,IAAI,EACJ,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB,uBAAoB;AACrB,OAAO,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,mBAAmB,GACzB,mBAAgB;AACjB,OAAO,EACL,IAAI,EACJ,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,kBAAe;AAChB,OAAO,EACL,SAAS,EACT,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,GACxB,mCAAgC;AACjC,OAAO,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,cAAc,GACpB,mBAAgB;AACjB,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,YAAY,GAClB,uBAAoB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,4BAAyB;AACzB,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,2BAAwB;AACzB,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,qBAAkB;AACvF,OAAO,EACL,KAAK,EACL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,cAAc,GACpB,mBAAgB;AACjB,OAAO,EACL,eAAe,EACf,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,GACpC,8BAA2B;AAC5B,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB,6BAA0B;AAC3B,OAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,uBAAoB;AACzF,OAAO,EACL,IAAI,EACJ,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB,uBAAoB;AACrB,OAAO,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,mBAAmB,GACzB,mBAAgB;AACjB,OAAO,EACL,IAAI,EACJ,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,kBAAe;AAChB,OAAO,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,cAAc,GACpB,mBAAgB;AACjB,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,KAAK,YAAY,EAAE,uBAAoB"}
@@ -1,17 +1,19 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Tasks = exports.TaskAgent = exports.Serp = exports.Media = exports.Jobs = exports.FastSerp = exports.DomainKnowledge = exports.Crawl = exports.Batches = exports.Agent = void 0;
4
+ exports.Tasks = exports.Serp = exports.Media = exports.Jobs = exports.FastSerp = exports.Extract = exports.DomainKnowledge = exports.Crawl = exports.Batches = exports.Agents = void 0;
5
5
  const tslib_1 = require("../internal/tslib.js");
6
6
  tslib_1.__exportStar(require("./shared.js"), exports);
7
- var agent_1 = require("./agent.js");
8
- Object.defineProperty(exports, "Agent", { enumerable: true, get: function () { return agent_1.Agent; } });
7
+ var agents_1 = require("./agents/agents.js");
8
+ Object.defineProperty(exports, "Agents", { enumerable: true, get: function () { return agents_1.Agents; } });
9
9
  var batches_1 = require("./batches.js");
10
10
  Object.defineProperty(exports, "Batches", { enumerable: true, get: function () { return batches_1.Batches; } });
11
11
  var crawl_1 = require("./crawl.js");
12
12
  Object.defineProperty(exports, "Crawl", { enumerable: true, get: function () { return crawl_1.Crawl; } });
13
13
  var domain_knowledge_1 = require("./domain-knowledge.js");
14
14
  Object.defineProperty(exports, "DomainKnowledge", { enumerable: true, get: function () { return domain_knowledge_1.DomainKnowledge; } });
15
+ var extract_1 = require("./extract/extract.js");
16
+ Object.defineProperty(exports, "Extract", { enumerable: true, get: function () { return extract_1.Extract; } });
15
17
  var fast_serp_1 = require("./fast-serp.js");
16
18
  Object.defineProperty(exports, "FastSerp", { enumerable: true, get: function () { return fast_serp_1.FastSerp; } });
17
19
  var jobs_1 = require("./jobs/jobs.js");
@@ -20,8 +22,6 @@ var media_1 = require("./media.js");
20
22
  Object.defineProperty(exports, "Media", { enumerable: true, get: function () { return media_1.Media; } });
21
23
  var serp_1 = require("./serp.js");
22
24
  Object.defineProperty(exports, "Serp", { enumerable: true, get: function () { return serp_1.Serp; } });
23
- var task_agent_1 = require("./task-agent/task-agent.js");
24
- Object.defineProperty(exports, "TaskAgent", { enumerable: true, get: function () { return task_agent_1.TaskAgent; } });
25
25
  var tasks_1 = require("./tasks.js");
26
26
  Object.defineProperty(exports, "Tasks", { enumerable: true, get: function () { return tasks_1.Tasks; } });
27
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,oCAciB;AAbf,8FAAA,KAAK,OAAA;AAcP,wCAAuF;AAA9E,kGAAA,OAAO,OAAA;AAChB,oCAQiB;AAPf,8FAAA,KAAK,OAAA;AAQP,0DAI4B;AAH1B,mHAAA,eAAe,OAAA;AAIjB,4CAAyF;AAAhF,qGAAA,QAAQ,OAAA;AACjB,uCAUqB;AATnB,4FAAA,IAAI,OAAA;AAUN,oCAMiB;AALf,8FAAA,KAAK,OAAA;AAMP,kCAQgB;AAPd,4FAAA,IAAI,OAAA;AAQN,yDAWiC;AAV/B,uGAAA,SAAS,OAAA;AAWX,oCAMiB;AALf,8FAAA,KAAK,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,6CASyB;AARvB,gGAAA,MAAM,OAAA;AASR,wCAAuF;AAA9E,kGAAA,OAAO,OAAA;AAChB,oCAQiB;AAPf,8FAAA,KAAK,OAAA;AAQP,0DAI4B;AAH1B,mHAAA,eAAe,OAAA;AAIjB,gDAQ2B;AAPzB,kGAAA,OAAO,OAAA;AAQT,4CAAyF;AAAhF,qGAAA,QAAQ,OAAA;AACjB,uCASqB;AARnB,4FAAA,IAAI,OAAA;AASN,oCAMiB;AALf,8FAAA,KAAK,OAAA;AAMP,kCAQgB;AAPd,4FAAA,IAAI,OAAA;AAQN,oCAMiB;AALf,8FAAA,KAAK,OAAA"}
@@ -1,13 +1,13 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  export * from "./shared.mjs";
3
- export { Agent, } from "./agent.mjs";
3
+ export { Agents, } from "./agents/agents.mjs";
4
4
  export { Batches } from "./batches.mjs";
5
5
  export { Crawl, } from "./crawl.mjs";
6
6
  export { DomainKnowledge, } from "./domain-knowledge.mjs";
7
+ export { Extract, } from "./extract/extract.mjs";
7
8
  export { FastSerp } from "./fast-serp.mjs";
8
9
  export { Jobs, } from "./jobs/jobs.mjs";
9
10
  export { Media, } from "./media.mjs";
10
11
  export { Serp, } from "./serp.mjs";
11
- export { TaskAgent, } from "./task-agent/task-agent.mjs";
12
12
  export { Tasks, } from "./tasks.mjs";
13
13
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,6BAAyB;AACzB,OAAO,EACL,KAAK,GAaN,oBAAgB;AACjB,OAAO,EAAE,OAAO,EAAqD,sBAAkB;AACvF,OAAO,EACL,KAAK,GAON,oBAAgB;AACjB,OAAO,EACL,eAAe,GAGhB,+BAA2B;AAC5B,OAAO,EAAE,QAAQ,EAAoD,wBAAoB;AACzF,OAAO,EACL,IAAI,GASL,wBAAoB;AACrB,OAAO,EACL,KAAK,GAKN,oBAAgB;AACjB,OAAO,EACL,IAAI,GAOL,mBAAe;AAChB,OAAO,EACL,SAAS,GAUV,oCAAgC;AACjC,OAAO,EACL,KAAK,GAKN,oBAAgB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,6BAAyB;AACzB,OAAO,EACL,MAAM,GAQP,4BAAwB;AACzB,OAAO,EAAE,OAAO,EAAqD,sBAAkB;AACvF,OAAO,EACL,KAAK,GAON,oBAAgB;AACjB,OAAO,EACL,eAAe,GAGhB,+BAA2B;AAC5B,OAAO,EACL,OAAO,GAOR,8BAA0B;AAC3B,OAAO,EAAE,QAAQ,EAAoD,wBAAoB;AACzF,OAAO,EACL,IAAI,GAQL,wBAAoB;AACrB,OAAO,EACL,KAAK,GAKN,oBAAgB;AACjB,OAAO,EACL,IAAI,GAOL,mBAAe;AAChB,OAAO,EACL,KAAK,GAKN,oBAAgB"}
@@ -1,3 +1,3 @@
1
- export { Jobs, type JobCreateResponse, type JobUpdateResponse, type JobListResponse, type JobGetResponse, type JobRunResponse, type JobCreateParams, type JobUpdateParams, type JobListParams, } from "./jobs.mjs";
2
- export { Runs, type RunListResponse, type RunCancelResponse, type RunGetResponse, type RunListParams, } from "./runs/index.mjs";
1
+ export { Jobs, type JobCreateResponse, type JobUpdateResponse, type JobListResponse, type JobGetResponse, type JobCreateParams, type JobUpdateParams, type JobListParams, } from "./jobs.mjs";
2
+ export { Runs, type RunCreateResponse, type RunListResponse, type RunCancelResponse, type RunGetResponse, type RunListParams, } from "./runs/index.mjs";
3
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/jobs/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,IAAI,EACJ,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB,mBAAe;AAChB,OAAO,EACL,IAAI,EACJ,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,aAAa,GACnB,yBAAqB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/jobs/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,IAAI,EACJ,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB,mBAAe;AAChB,OAAO,EACL,IAAI,EACJ,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,aAAa,GACnB,yBAAqB"}
@@ -1,3 +1,3 @@
1
- export { Jobs, type JobCreateResponse, type JobUpdateResponse, type JobListResponse, type JobGetResponse, type JobRunResponse, type JobCreateParams, type JobUpdateParams, type JobListParams, } from "./jobs.js";
2
- export { Runs, type RunListResponse, type RunCancelResponse, type RunGetResponse, type RunListParams, } from "./runs/index.js";
1
+ export { Jobs, type JobCreateResponse, type JobUpdateResponse, type JobListResponse, type JobGetResponse, type JobCreateParams, type JobUpdateParams, type JobListParams, } from "./jobs.js";
2
+ export { Runs, type RunCreateResponse, type RunListResponse, type RunCancelResponse, type RunGetResponse, type RunListParams, } from "./runs/index.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/jobs/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,IAAI,EACJ,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB,kBAAe;AAChB,OAAO,EACL,IAAI,EACJ,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,aAAa,GACnB,wBAAqB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/jobs/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,IAAI,EACJ,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB,kBAAe;AAChB,OAAO,EACL,IAAI,EACJ,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,aAAa,GACnB,wBAAqB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/jobs/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAUgB;AATd,4FAAA,IAAI,OAAA;AAUN,yCAMsB;AALpB,6FAAA,IAAI,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/jobs/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCASgB;AARd,4FAAA,IAAI,OAAA;AASN,yCAOsB;AANpB,6FAAA,IAAI,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/jobs/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,IAAI,GASL,mBAAe;AAChB,OAAO,EACL,IAAI,GAKL,yBAAqB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/jobs/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,IAAI,GAQL,mBAAe;AAChB,OAAO,EACL,IAAI,GAML,yBAAqB"}