@airweave/sdk 0.4.13 → 0.4.16

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.
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fairweave-ai%2Ftypescript-sdk)
4
4
  [![npm shield](https://img.shields.io/npm/v/@airweave/sdk)](https://www.npmjs.com/package/@airweave/sdk)
5
5
 
6
- The Airweave TypeScript library provides convenient access to the Airweave API from TypeScript.
6
+ The Airweave TypeScript library provides convenient access to the Airweave APIs from TypeScript.
7
7
 
8
8
  ## Installation
9
9
 
@@ -48,8 +48,8 @@ class AirweaveSDKClient {
48
48
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
49
49
  "X-Fern-Language": "JavaScript",
50
50
  "X-Fern-SDK-Name": "@airweave/sdk",
51
- "X-Fern-SDK-Version": "v0.4.13",
52
- "User-Agent": "@airweave/sdk/v0.4.13",
51
+ "X-Fern-SDK-Version": "v0.4.16",
52
+ "User-Agent": "@airweave/sdk/v0.4.16",
53
53
  "X-Fern-Runtime": core.RUNTIME.type,
54
54
  "X-Fern-Runtime-Version": core.RUNTIME.version,
55
55
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -140,10 +140,10 @@ export declare class WhiteLabels {
140
140
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
141
141
  *
142
142
  * @example
143
- * await client.whiteLabels.getWhiteLabelOauth2AuthUrl("white_label_id")
143
+ * await client.whiteLabels.getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions("white_label_id")
144
144
  */
145
- getWhiteLabelOauth2AuthUrl(whiteLabelId: string, requestOptions?: WhiteLabels.RequestOptions): core.HttpResponsePromise<string>;
146
- private __getWhiteLabelOauth2AuthUrl;
145
+ getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId: string, requestOptions?: WhiteLabels.RequestOptions): core.HttpResponsePromise<string>;
146
+ private __getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions;
147
147
  /**
148
148
  * List all source connections created through a specific white label integration.
149
149
  *
@@ -394,12 +394,12 @@ class WhiteLabels {
394
394
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
395
395
  *
396
396
  * @example
397
- * await client.whiteLabels.getWhiteLabelOauth2AuthUrl("white_label_id")
397
+ * await client.whiteLabels.getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions("white_label_id")
398
398
  */
399
- getWhiteLabelOauth2AuthUrl(whiteLabelId, requestOptions) {
400
- return core.HttpResponsePromise.fromPromise(this.__getWhiteLabelOauth2AuthUrl(whiteLabelId, requestOptions));
399
+ getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId, requestOptions) {
400
+ return core.HttpResponsePromise.fromPromise(this.__getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId, requestOptions));
401
401
  }
402
- __getWhiteLabelOauth2AuthUrl(whiteLabelId, requestOptions) {
402
+ __getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId, requestOptions) {
403
403
  return __awaiter(this, void 0, void 0, function* () {
404
404
  var _a, _b, _c;
405
405
  const _response = yield core.fetcher({
@@ -22,6 +22,8 @@ export interface SourceConnectionJob {
22
22
  modified_at?: string;
23
23
  /** Current execution status of the data refresh:<br/>• **created**: Operation has been created but not yet queued<br/>• **pending**: Operation is queued and waiting to start<br/>• **in_progress**: Currently running and processing data<br/>• **completed**: Finished successfully with all data processed<br/>• **failed**: Encountered errors and could not complete<br/>• **cancelled**: Manually cancelled before completion */
24
24
  status?: AirweaveSDK.SyncJobStatus;
25
+ /** Whether this data refresh was triggered by a schedule (true) or manually (false). */
26
+ scheduled?: boolean;
25
27
  /** Number of new data entities that were added to the collection during this refresh. */
26
28
  entities_inserted?: number;
27
29
  /** Number of existing entities that were modified and updated during this refresh. */
@@ -8,6 +8,7 @@ import * as AirweaveSDK from "../index.js";
8
8
  export interface SyncJob {
9
9
  sync_id: string;
10
10
  status?: AirweaveSDK.SyncJobStatus;
11
+ scheduled?: boolean;
11
12
  entities_inserted?: number;
12
13
  entities_updated?: number;
13
14
  entities_deleted?: number;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v0.4.13";
1
+ export declare const SDK_VERSION = "v0.4.16";
@@ -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 = "v0.4.13";
4
+ exports.SDK_VERSION = "v0.4.16";
@@ -12,8 +12,8 @@ export class AirweaveSDKClient {
12
12
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
13
13
  "X-Fern-Language": "JavaScript",
14
14
  "X-Fern-SDK-Name": "@airweave/sdk",
15
- "X-Fern-SDK-Version": "v0.4.13",
16
- "User-Agent": "@airweave/sdk/v0.4.13",
15
+ "X-Fern-SDK-Version": "v0.4.16",
16
+ "User-Agent": "@airweave/sdk/v0.4.16",
17
17
  "X-Fern-Runtime": core.RUNTIME.type,
18
18
  "X-Fern-Runtime-Version": core.RUNTIME.version,
19
19
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -140,10 +140,10 @@ export declare class WhiteLabels {
140
140
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
141
141
  *
142
142
  * @example
143
- * await client.whiteLabels.getWhiteLabelOauth2AuthUrl("white_label_id")
143
+ * await client.whiteLabels.getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions("white_label_id")
144
144
  */
145
- getWhiteLabelOauth2AuthUrl(whiteLabelId: string, requestOptions?: WhiteLabels.RequestOptions): core.HttpResponsePromise<string>;
146
- private __getWhiteLabelOauth2AuthUrl;
145
+ getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId: string, requestOptions?: WhiteLabels.RequestOptions): core.HttpResponsePromise<string>;
146
+ private __getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions;
147
147
  /**
148
148
  * List all source connections created through a specific white label integration.
149
149
  *
@@ -358,12 +358,12 @@ export class WhiteLabels {
358
358
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
359
359
  *
360
360
  * @example
361
- * await client.whiteLabels.getWhiteLabelOauth2AuthUrl("white_label_id")
361
+ * await client.whiteLabels.getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions("white_label_id")
362
362
  */
363
- getWhiteLabelOauth2AuthUrl(whiteLabelId, requestOptions) {
364
- return core.HttpResponsePromise.fromPromise(this.__getWhiteLabelOauth2AuthUrl(whiteLabelId, requestOptions));
363
+ getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId, requestOptions) {
364
+ return core.HttpResponsePromise.fromPromise(this.__getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId, requestOptions));
365
365
  }
366
- __getWhiteLabelOauth2AuthUrl(whiteLabelId, requestOptions) {
366
+ __getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions(whiteLabelId, requestOptions) {
367
367
  return __awaiter(this, void 0, void 0, function* () {
368
368
  var _a, _b, _c;
369
369
  const _response = yield core.fetcher({
@@ -22,6 +22,8 @@ export interface SourceConnectionJob {
22
22
  modified_at?: string;
23
23
  /** Current execution status of the data refresh:<br/>• **created**: Operation has been created but not yet queued<br/>• **pending**: Operation is queued and waiting to start<br/>• **in_progress**: Currently running and processing data<br/>• **completed**: Finished successfully with all data processed<br/>• **failed**: Encountered errors and could not complete<br/>• **cancelled**: Manually cancelled before completion */
24
24
  status?: AirweaveSDK.SyncJobStatus;
25
+ /** Whether this data refresh was triggered by a schedule (true) or manually (false). */
26
+ scheduled?: boolean;
25
27
  /** Number of new data entities that were added to the collection during this refresh. */
26
28
  entities_inserted?: number;
27
29
  /** Number of existing entities that were modified and updated during this refresh. */
@@ -8,6 +8,7 @@ import * as AirweaveSDK from "../index.mjs";
8
8
  export interface SyncJob {
9
9
  sync_id: string;
10
10
  status?: AirweaveSDK.SyncJobStatus;
11
+ scheduled?: boolean;
11
12
  entities_inserted?: number;
12
13
  entities_updated?: number;
13
14
  entities_deleted?: number;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v0.4.13";
1
+ export declare const SDK_VERSION = "v0.4.16";
@@ -1 +1 @@
1
- export const SDK_VERSION = "v0.4.13";
1
+ export const SDK_VERSION = "v0.4.16";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airweave/sdk",
3
- "version": "v0.4.13",
3
+ "version": "v0.4.16",
4
4
  "private": false,
5
5
  "repository": "github:airweave-ai/typescript-sdk",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -1706,7 +1706,7 @@ await client.whiteLabels.deleteWhiteLabel("white_label_id");
1706
1706
  </dl>
1707
1707
  </details>
1708
1708
 
1709
- <details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">getWhiteLabelOauth2AuthUrl</a>(whiteLabelId) -> string</code></summary>
1709
+ <details><summary><code>client.whiteLabels.<a href="/src/api/resources/whiteLabels/client/Client.ts">getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions</a>(whiteLabelId) -> string</code></summary>
1710
1710
  <dl>
1711
1711
  <dd>
1712
1712
 
@@ -1739,7 +1739,7 @@ branding instead of Airweave.
1739
1739
  <dd>
1740
1740
 
1741
1741
  ```typescript
1742
- await client.whiteLabels.getWhiteLabelOauth2AuthUrl("white_label_id");
1742
+ await client.whiteLabels.getWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlOptions("white_label_id");
1743
1743
  ```
1744
1744
 
1745
1745
  </dd>