@perplexity-ai/perplexity_ai 0.2.1 → 0.4.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 (74) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +4 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +4 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +0 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +0 -3
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/async/chat/chat.d.mts +2 -2
  12. package/resources/async/chat/chat.d.mts.map +1 -1
  13. package/resources/async/chat/chat.d.ts +2 -2
  14. package/resources/async/chat/chat.d.ts.map +1 -1
  15. package/resources/async/chat/completions.d.mts +160 -134
  16. package/resources/async/chat/completions.d.mts.map +1 -1
  17. package/resources/async/chat/completions.d.ts +160 -134
  18. package/resources/async/chat/completions.d.ts.map +1 -1
  19. package/resources/async/chat/completions.js +25 -7
  20. package/resources/async/chat/completions.js.map +1 -1
  21. package/resources/async/chat/completions.mjs +25 -7
  22. package/resources/async/chat/completions.mjs.map +1 -1
  23. package/resources/async/chat/index.d.mts +1 -1
  24. package/resources/async/chat/index.d.mts.map +1 -1
  25. package/resources/async/chat/index.d.ts +1 -1
  26. package/resources/async/chat/index.d.ts.map +1 -1
  27. package/resources/chat/completions.d.mts +115 -83
  28. package/resources/chat/completions.d.mts.map +1 -1
  29. package/resources/chat/completions.d.ts +115 -83
  30. package/resources/chat/completions.d.ts.map +1 -1
  31. package/resources/chat/completions.js +1 -2
  32. package/resources/chat/completions.js.map +1 -1
  33. package/resources/chat/completions.mjs +1 -2
  34. package/resources/chat/completions.mjs.map +1 -1
  35. package/resources/index.d.mts +0 -1
  36. package/resources/index.d.mts.map +1 -1
  37. package/resources/index.d.ts +0 -1
  38. package/resources/index.d.ts.map +1 -1
  39. package/resources/index.js +1 -3
  40. package/resources/index.js.map +1 -1
  41. package/resources/index.mjs +0 -1
  42. package/resources/index.mjs.map +1 -1
  43. package/resources/search.d.mts +1 -70
  44. package/resources/search.d.mts.map +1 -1
  45. package/resources/search.d.ts +1 -70
  46. package/resources/search.d.ts.map +1 -1
  47. package/resources/search.js +1 -1
  48. package/resources/search.mjs +1 -1
  49. package/resources/shared.d.mts +310 -25
  50. package/resources/shared.d.mts.map +1 -1
  51. package/resources/shared.d.ts +310 -25
  52. package/resources/shared.d.ts.map +1 -1
  53. package/src/client.ts +4 -12
  54. package/src/resources/async/chat/chat.ts +2 -2
  55. package/src/resources/async/chat/completions.ts +263 -142
  56. package/src/resources/async/chat/index.ts +1 -1
  57. package/src/resources/chat/completions.ts +181 -85
  58. package/src/resources/index.ts +0 -1
  59. package/src/resources/search.ts +1 -70
  60. package/src/resources/shared.ts +434 -25
  61. package/src/version.ts +1 -1
  62. package/version.d.mts +1 -1
  63. package/version.d.ts +1 -1
  64. package/version.js +1 -1
  65. package/version.mjs +1 -1
  66. package/resources/content.d.mts +0 -55
  67. package/resources/content.d.mts.map +0 -1
  68. package/resources/content.d.ts +0 -55
  69. package/resources/content.d.ts.map +0 -1
  70. package/resources/content.js +0 -15
  71. package/resources/content.js.map +0 -1
  72. package/resources/content.mjs +0 -11
  73. package/resources/content.mjs.map +0 -1
  74. package/src/resources/content.ts +0 -70
@@ -1,61 +1,452 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export interface ChatChoice {
4
- index: number;
3
+ import * as Shared from './shared';
5
4
 
6
- message: ChatMessage;
5
+ export interface APIPublicSearchResult {
6
+ title: string;
7
7
 
8
- finish_reason?: 'stop' | 'length' | null;
8
+ url: string;
9
+
10
+ date?: string | null;
11
+
12
+ last_updated?: string | null;
13
+
14
+ snippet?: string;
15
+ }
16
+
17
+ export interface ChatMessageInput {
18
+ content:
19
+ | string
20
+ | Array<
21
+ | ChatMessageInput.ChatMessageContentTextChunk
22
+ | ChatMessageInput.ChatMessageContentImageChunk
23
+ | ChatMessageInput.ChatMessageContentFileChunk
24
+ | ChatMessageInput.ChatMessageContentPdfChunk
25
+ | ChatMessageInput.ChatMessageContentVideoChunk
26
+ >;
27
+
28
+ /**
29
+ * Chat roles enum
30
+ */
31
+ role: 'system' | 'user' | 'assistant' | 'tool';
32
+
33
+ reasoning_steps?: Array<ChatMessageInput.ReasoningStep> | null;
34
+
35
+ tool_calls?: Array<ChatMessageInput.ToolCall> | null;
9
36
  }
10
37
 
11
- export interface ChatMessage {
38
+ export namespace ChatMessageInput {
39
+ export interface ChatMessageContentTextChunk {
40
+ text: string;
41
+
42
+ type: 'text';
43
+ }
44
+
45
+ export interface ChatMessageContentImageChunk {
46
+ image_url: ChatMessageContentImageChunk.URL | string;
47
+
48
+ type: 'image_url';
49
+ }
50
+
51
+ export namespace ChatMessageContentImageChunk {
52
+ export interface URL {
53
+ url: string;
54
+ }
55
+ }
56
+
57
+ export interface ChatMessageContentFileChunk {
58
+ file_url: ChatMessageContentFileChunk.URL | string;
59
+
60
+ type: 'file_url';
61
+
62
+ file_name?: string | null;
63
+ }
64
+
65
+ export namespace ChatMessageContentFileChunk {
66
+ export interface URL {
67
+ url: string;
68
+ }
69
+ }
70
+
71
+ export interface ChatMessageContentPdfChunk {
72
+ pdf_url: ChatMessageContentPdfChunk.URL | string;
73
+
74
+ type: 'pdf_url';
75
+ }
76
+
77
+ export namespace ChatMessageContentPdfChunk {
78
+ export interface URL {
79
+ url: string;
80
+ }
81
+ }
82
+
83
+ export interface ChatMessageContentVideoChunk {
84
+ type: 'video_url';
85
+
86
+ video_url: ChatMessageContentVideoChunk.VideoURL | string;
87
+ }
88
+
89
+ export namespace ChatMessageContentVideoChunk {
90
+ export interface VideoURL {
91
+ url: string;
92
+
93
+ frame_interval?: string | number;
94
+ }
95
+ }
96
+
12
97
  /**
13
- * The content of the message
98
+ * Reasoning step wrapper class
14
99
  */
15
- content: string | Array<ChatMessage.MultipartContent>;
100
+ export interface ReasoningStep {
101
+ thought: string;
102
+
103
+ type:
104
+ | 'web_search'
105
+ | 'fetch_url_content'
106
+ | 'execute_python'
107
+ | 'agent_progress'
108
+ | 'browser_agent'
109
+ | 'browser_tool_execution'
110
+ | 'file_attachment_search';
111
+
112
+ /**
113
+ * Agent progress class for live-browsing updates
114
+ */
115
+ agent_progress?: ReasoningStep.AgentProgress | null;
116
+
117
+ /**
118
+ * Browser agent step summary class
119
+ */
120
+ browser_agent?: ReasoningStep.BrowserAgent | null;
121
+
122
+ /**
123
+ * Tool input for kicking off browser tool automation
124
+ */
125
+ browser_tool_execution?: ReasoningStep.BrowserToolExecution | null;
126
+
127
+ /**
128
+ * Code generation step details wrapper class
129
+ */
130
+ execute_python?: ReasoningStep.ExecutePython | null;
131
+
132
+ /**
133
+ * Fetch url content step details wrapper class
134
+ */
135
+ fetch_url_content?: ReasoningStep.FetchURLContent | null;
136
+
137
+ /**
138
+ * File attachment search step details wrapper class
139
+ */
140
+ file_attachment_search?: ReasoningStep.FileAttachmentSearch | null;
141
+
142
+ /**
143
+ * Web search step details wrapper class
144
+ */
145
+ web_search?: ReasoningStep.WebSearch | null;
146
+ }
147
+
148
+ export namespace ReasoningStep {
149
+ /**
150
+ * Agent progress class for live-browsing updates
151
+ */
152
+ export interface AgentProgress {
153
+ action: string | null;
154
+
155
+ screenshot: string | null;
156
+
157
+ url: string | null;
158
+ }
159
+
160
+ /**
161
+ * Browser agent step summary class
162
+ */
163
+ export interface BrowserAgent {
164
+ result: string;
165
+
166
+ url: string;
167
+ }
168
+
169
+ /**
170
+ * Tool input for kicking off browser tool automation
171
+ */
172
+ export interface BrowserToolExecution {
173
+ tool: { [key: string]: unknown };
174
+ }
175
+
176
+ /**
177
+ * Code generation step details wrapper class
178
+ */
179
+ export interface ExecutePython {
180
+ code: string;
181
+
182
+ result: string;
183
+ }
184
+
185
+ /**
186
+ * Fetch url content step details wrapper class
187
+ */
188
+ export interface FetchURLContent {
189
+ contents: Array<Shared.APIPublicSearchResult>;
190
+ }
191
+
192
+ /**
193
+ * File attachment search step details wrapper class
194
+ */
195
+ export interface FileAttachmentSearch {
196
+ attachment_urls: Array<string>;
197
+ }
198
+
199
+ /**
200
+ * Web search step details wrapper class
201
+ */
202
+ export interface WebSearch {
203
+ search_keywords: Array<string>;
204
+
205
+ search_results: Array<Shared.APIPublicSearchResult>;
206
+ }
207
+ }
208
+
209
+ export interface ToolCall {
210
+ id?: string | null;
211
+
212
+ function?: ToolCall.Function | null;
213
+
214
+ type?: 'function' | null;
215
+ }
216
+
217
+ export namespace ToolCall {
218
+ export interface Function {
219
+ arguments?: string | null;
220
+
221
+ name?: string | null;
222
+ }
223
+ }
224
+ }
225
+
226
+ export interface ChatMessageOutput {
227
+ content:
228
+ | string
229
+ | Array<
230
+ | ChatMessageOutput.ChatMessageContentTextChunk
231
+ | ChatMessageOutput.ChatMessageContentImageChunk
232
+ | ChatMessageOutput.ChatMessageContentFileChunk
233
+ | ChatMessageOutput.ChatMessageContentPdfChunk
234
+ | ChatMessageOutput.ChatMessageContentVideoChunk
235
+ >;
16
236
 
17
237
  /**
18
- * The role of the message author
238
+ * Chat roles enum
19
239
  */
20
- role: 'system' | 'user' | 'assistant';
240
+ role: 'system' | 'user' | 'assistant' | 'tool';
241
+
242
+ reasoning_steps?: Array<ChatMessageOutput.ReasoningStep> | null;
243
+
244
+ tool_calls?: Array<ChatMessageOutput.ToolCall> | null;
21
245
  }
22
246
 
23
- export namespace ChatMessage {
24
- export interface MultipartContent {
247
+ export namespace ChatMessageOutput {
248
+ export interface ChatMessageContentTextChunk {
249
+ text: string;
250
+
251
+ type: 'text';
252
+ }
253
+
254
+ export interface ChatMessageContentImageChunk {
255
+ image_url: ChatMessageContentImageChunk.URL | string;
256
+
257
+ type: 'image_url';
258
+ }
259
+
260
+ export namespace ChatMessageContentImageChunk {
261
+ export interface URL {
262
+ url: string;
263
+ }
264
+ }
265
+
266
+ export interface ChatMessageContentFileChunk {
267
+ file_url: ChatMessageContentFileChunk.URL | string;
268
+
269
+ type: 'file_url';
270
+
271
+ file_name?: string | null;
272
+ }
273
+
274
+ export namespace ChatMessageContentFileChunk {
275
+ export interface URL {
276
+ url: string;
277
+ }
278
+ }
279
+
280
+ export interface ChatMessageContentPdfChunk {
281
+ pdf_url: ChatMessageContentPdfChunk.URL | string;
282
+
283
+ type: 'pdf_url';
284
+ }
285
+
286
+ export namespace ChatMessageContentPdfChunk {
287
+ export interface URL {
288
+ url: string;
289
+ }
290
+ }
291
+
292
+ export interface ChatMessageContentVideoChunk {
293
+ type: 'video_url';
294
+
295
+ video_url: ChatMessageContentVideoChunk.VideoURL | string;
296
+ }
297
+
298
+ export namespace ChatMessageContentVideoChunk {
299
+ export interface VideoURL {
300
+ url: string;
301
+
302
+ frame_interval?: string | number;
303
+ }
304
+ }
305
+
306
+ /**
307
+ * Reasoning step wrapper class
308
+ */
309
+ export interface ReasoningStep {
310
+ thought: string;
311
+
312
+ type:
313
+ | 'web_search'
314
+ | 'fetch_url_content'
315
+ | 'execute_python'
316
+ | 'agent_progress'
317
+ | 'browser_agent'
318
+ | 'browser_tool_execution'
319
+ | 'file_attachment_search';
320
+
321
+ /**
322
+ * Agent progress class for live-browsing updates
323
+ */
324
+ agent_progress?: ReasoningStep.AgentProgress | null;
325
+
326
+ /**
327
+ * Browser agent step summary class
328
+ */
329
+ browser_agent?: ReasoningStep.BrowserAgent | null;
330
+
25
331
  /**
26
- * The type of content
332
+ * Tool input for kicking off browser tool automation
27
333
  */
28
- type: 'text' | 'image_url';
334
+ browser_tool_execution?: ReasoningStep.BrowserToolExecution | null;
29
335
 
30
- image_url?: MultipartContent.ImageURL | null;
336
+ /**
337
+ * Code generation step details wrapper class
338
+ */
339
+ execute_python?: ReasoningStep.ExecutePython | null;
340
+
341
+ /**
342
+ * Fetch url content step details wrapper class
343
+ */
344
+ fetch_url_content?: ReasoningStep.FetchURLContent | null;
345
+
346
+ /**
347
+ * File attachment search step details wrapper class
348
+ */
349
+ file_attachment_search?: ReasoningStep.FileAttachmentSearch | null;
31
350
 
32
351
  /**
33
- * Text content
352
+ * Web search step details wrapper class
34
353
  */
35
- text?: string | null;
354
+ web_search?: ReasoningStep.WebSearch | null;
36
355
  }
37
356
 
38
- export namespace MultipartContent {
39
- export interface ImageURL {
40
- /**
41
- * URL of the image (base64 or HTTPS)
42
- */
357
+ export namespace ReasoningStep {
358
+ /**
359
+ * Agent progress class for live-browsing updates
360
+ */
361
+ export interface AgentProgress {
362
+ action: string | null;
363
+
364
+ screenshot: string | null;
365
+
366
+ url: string | null;
367
+ }
368
+
369
+ /**
370
+ * Browser agent step summary class
371
+ */
372
+ export interface BrowserAgent {
373
+ result: string;
374
+
43
375
  url: string;
44
376
  }
377
+
378
+ /**
379
+ * Tool input for kicking off browser tool automation
380
+ */
381
+ export interface BrowserToolExecution {
382
+ tool: { [key: string]: unknown };
383
+ }
384
+
385
+ /**
386
+ * Code generation step details wrapper class
387
+ */
388
+ export interface ExecutePython {
389
+ code: string;
390
+
391
+ result: string;
392
+ }
393
+
394
+ /**
395
+ * Fetch url content step details wrapper class
396
+ */
397
+ export interface FetchURLContent {
398
+ contents: Array<Shared.APIPublicSearchResult>;
399
+ }
400
+
401
+ /**
402
+ * File attachment search step details wrapper class
403
+ */
404
+ export interface FileAttachmentSearch {
405
+ attachment_urls: Array<string>;
406
+ }
407
+
408
+ /**
409
+ * Web search step details wrapper class
410
+ */
411
+ export interface WebSearch {
412
+ search_keywords: Array<string>;
413
+
414
+ search_results: Array<Shared.APIPublicSearchResult>;
415
+ }
416
+ }
417
+
418
+ export interface ToolCall {
419
+ id?: string | null;
420
+
421
+ function?: ToolCall.Function | null;
422
+
423
+ type?: 'function' | null;
424
+ }
425
+
426
+ export namespace ToolCall {
427
+ export interface Function {
428
+ arguments?: string | null;
429
+
430
+ name?: string | null;
431
+ }
45
432
  }
46
433
  }
47
434
 
48
- export interface SearchResult {
49
- title: string;
435
+ export interface Choice {
436
+ delta: ChatMessageOutput;
50
437
 
51
- url: string;
438
+ index: number;
52
439
 
53
- date?: string | null;
440
+ message: ChatMessageOutput;
441
+
442
+ finish_reason?: 'stop' | 'length' | null;
54
443
  }
55
444
 
56
445
  export interface UsageInfo {
57
446
  completion_tokens: number;
58
447
 
448
+ cost: UsageInfo.Cost;
449
+
59
450
  prompt_tokens: number;
60
451
 
61
452
  total_tokens: number;
@@ -68,3 +459,21 @@ export interface UsageInfo {
68
459
 
69
460
  search_context_size?: string | null;
70
461
  }
462
+
463
+ export namespace UsageInfo {
464
+ export interface Cost {
465
+ input_tokens_cost: number;
466
+
467
+ output_tokens_cost: number;
468
+
469
+ total_cost: number;
470
+
471
+ citation_tokens_cost?: number | null;
472
+
473
+ reasoning_tokens_cost?: number | null;
474
+
475
+ request_cost?: number | null;
476
+
477
+ search_queries_cost?: number | null;
478
+ }
479
+ }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.2.1'; // x-release-please-version
1
+ export const VERSION = '0.4.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.2.1";
1
+ export declare const VERSION = "0.4.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.2.1";
1
+ export declare const VERSION = "0.4.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.2.1'; // x-release-please-version
4
+ exports.VERSION = '0.4.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.2.1'; // x-release-please-version
1
+ export const VERSION = '0.4.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,55 +0,0 @@
1
- import { APIResource } from "../core/resource.mjs";
2
- import { APIPromise } from "../core/api-promise.mjs";
3
- import { RequestOptions } from "../internal/request-options.mjs";
4
- export declare class Content extends APIResource {
5
- /**
6
- * Retrieve the full content from specified URLs
7
- */
8
- create(body: ContentCreateParams, options?: RequestOptions): APIPromise<ContentCreateResponse>;
9
- }
10
- /**
11
- * Response containing the retrieved content from URLs
12
- */
13
- export interface ContentCreateResponse {
14
- /**
15
- * Unique identifier for this content retrieval request
16
- */
17
- id: string;
18
- /**
19
- * Array of content objects retrieved from the requested URLs
20
- */
21
- results: Array<ContentCreateResponse.Result>;
22
- }
23
- export declare namespace ContentCreateResponse {
24
- /**
25
- * Content retrieved from a specific URL
26
- */
27
- interface Result {
28
- /**
29
- * The full text content of the web page or document
30
- */
31
- content: string;
32
- /**
33
- * The title of the web page or document
34
- */
35
- title: string;
36
- /**
37
- * The URL of the web page or document
38
- */
39
- url: string;
40
- /**
41
- * The publication date of the content (if available)
42
- */
43
- date?: string | null;
44
- }
45
- }
46
- export interface ContentCreateParams {
47
- /**
48
- * List of URLs to retrieve content from
49
- */
50
- urls: Array<string>;
51
- }
52
- export declare namespace Content {
53
- export { type ContentCreateResponse as ContentCreateResponse, type ContentCreateParams as ContentCreateParams, };
54
- }
55
- //# sourceMappingURL=content.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"content.d.mts","sourceRoot":"","sources":["../src/resources/content.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAG/F;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;CAC9C;AAED,yBAAiB,qBAAqB,CAAC;IACrC;;OAEG;IACH,UAAiB,MAAM;QACrB;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACtB;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -1,55 +0,0 @@
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 Content extends APIResource {
5
- /**
6
- * Retrieve the full content from specified URLs
7
- */
8
- create(body: ContentCreateParams, options?: RequestOptions): APIPromise<ContentCreateResponse>;
9
- }
10
- /**
11
- * Response containing the retrieved content from URLs
12
- */
13
- export interface ContentCreateResponse {
14
- /**
15
- * Unique identifier for this content retrieval request
16
- */
17
- id: string;
18
- /**
19
- * Array of content objects retrieved from the requested URLs
20
- */
21
- results: Array<ContentCreateResponse.Result>;
22
- }
23
- export declare namespace ContentCreateResponse {
24
- /**
25
- * Content retrieved from a specific URL
26
- */
27
- interface Result {
28
- /**
29
- * The full text content of the web page or document
30
- */
31
- content: string;
32
- /**
33
- * The title of the web page or document
34
- */
35
- title: string;
36
- /**
37
- * The URL of the web page or document
38
- */
39
- url: string;
40
- /**
41
- * The publication date of the content (if available)
42
- */
43
- date?: string | null;
44
- }
45
- }
46
- export interface ContentCreateParams {
47
- /**
48
- * List of URLs to retrieve content from
49
- */
50
- urls: Array<string>;
51
- }
52
- export declare namespace Content {
53
- export { type ContentCreateResponse as ContentCreateResponse, type ContentCreateParams as ContentCreateParams, };
54
- }
55
- //# sourceMappingURL=content.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../src/resources/content.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAG/F;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;CAC9C;AAED,yBAAiB,qBAAqB,CAAC;IACrC;;OAEG;IACH,UAAiB,MAAM;QACrB;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACtB;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -1,15 +0,0 @@
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.Content = void 0;
5
- const resource_1 = require("../core/resource.js");
6
- class Content extends resource_1.APIResource {
7
- /**
8
- * Retrieve the full content from specified URLs
9
- */
10
- create(body, options) {
11
- return this._client.post('/content', { body, ...options });
12
- }
13
- }
14
- exports.Content = Content;
15
- //# sourceMappingURL=content.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"content.js","sourceRoot":"","sources":["../src/resources/content.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;CACF;AAPD,0BAOC"}
@@ -1,11 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../core/resource.mjs";
3
- export class Content extends APIResource {
4
- /**
5
- * Retrieve the full content from specified URLs
6
- */
7
- create(body, options) {
8
- return this._client.post('/content', { body, ...options });
9
- }
10
- }
11
- //# sourceMappingURL=content.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"content.mjs","sourceRoot":"","sources":["../src/resources/content.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;CACF"}