pulse-ts-sdk 0.0.52 → 0.0.53

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.
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "pulse-ts-sdk",
46
- "X-Fern-SDK-Version": "0.0.52",
47
- "User-Agent": "pulse-ts-sdk/0.0.52",
46
+ "X-Fern-SDK-Version": "0.0.53",
47
+ "User-Agent": "pulse-ts-sdk/0.0.53",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -2,6 +2,10 @@
2
2
  * Input schema for multipart/form-data requests (file upload or fileUrl).
3
3
  */
4
4
  export interface ExtractMultipartInput {
5
+ /** Document to upload directly. Required unless fileUrl is provided. */
6
+ file?: string;
7
+ /** Public or pre-signed URL that Pulse will download and extract. Required unless file is provided. */
8
+ fileUrl?: string;
5
9
  /** Recommended method for schema-guided extraction. Contains the schema and optional prompt in a single object. */
6
10
  structuredOutput?: ExtractMultipartInput.StructuredOutput;
7
11
  /** (Deprecated) JSON schema describing structured data to extract. Use structuredOutput instead. Accepts either a JSON object or a stringified JSON representation. */
@@ -1,10 +1,9 @@
1
1
  /**
2
2
  * Document source definition for multipart/form-data requests. Provide exactly one of `file` (direct upload) or `fileUrl` (remote URL).
3
3
  */
4
- export type MultipartSource = {
5
- file: string;
6
- fileUrl?: unknown | undefined;
7
- } | {
8
- fileUrl: string;
9
- file?: unknown | undefined;
10
- };
4
+ export interface MultipartSource {
5
+ /** Document to upload directly. Required unless fileUrl is provided. */
6
+ file?: string;
7
+ /** Public or pre-signed URL that Pulse will download and extract. Required unless file is provided. */
8
+ fileUrl?: string;
9
+ }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.52";
1
+ export declare const SDK_VERSION = "0.0.53";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.52";
4
+ exports.SDK_VERSION = "0.0.53";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "pulse-ts-sdk",
9
- "X-Fern-SDK-Version": "0.0.52",
10
- "User-Agent": "pulse-ts-sdk/0.0.52",
9
+ "X-Fern-SDK-Version": "0.0.53",
10
+ "User-Agent": "pulse-ts-sdk/0.0.53",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -2,6 +2,10 @@
2
2
  * Input schema for multipart/form-data requests (file upload or fileUrl).
3
3
  */
4
4
  export interface ExtractMultipartInput {
5
+ /** Document to upload directly. Required unless fileUrl is provided. */
6
+ file?: string;
7
+ /** Public or pre-signed URL that Pulse will download and extract. Required unless file is provided. */
8
+ fileUrl?: string;
5
9
  /** Recommended method for schema-guided extraction. Contains the schema and optional prompt in a single object. */
6
10
  structuredOutput?: ExtractMultipartInput.StructuredOutput;
7
11
  /** (Deprecated) JSON schema describing structured data to extract. Use structuredOutput instead. Accepts either a JSON object or a stringified JSON representation. */
@@ -1,10 +1,9 @@
1
1
  /**
2
2
  * Document source definition for multipart/form-data requests. Provide exactly one of `file` (direct upload) or `fileUrl` (remote URL).
3
3
  */
4
- export type MultipartSource = {
5
- file: string;
6
- fileUrl?: unknown | undefined;
7
- } | {
8
- fileUrl: string;
9
- file?: unknown | undefined;
10
- };
4
+ export interface MultipartSource {
5
+ /** Document to upload directly. Required unless fileUrl is provided. */
6
+ file?: string;
7
+ /** Public or pre-signed URL that Pulse will download and extract. Required unless file is provided. */
8
+ fileUrl?: string;
9
+ }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.52";
1
+ export declare const SDK_VERSION = "0.0.53";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.0.52";
1
+ export const SDK_VERSION = "0.0.53";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pulse-ts-sdk",
3
- "version": "0.0.52",
3
+ "version": "0.0.53",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",