@airweave/sdk 0.0.82 → 0.0.83

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 (46) hide show
  1. package/Client.d.ts +0 -3
  2. package/Client.js +0 -5
  3. package/api/resources/connections/client/Client.js +12 -12
  4. package/api/resources/destinations/client/Client.js +2 -2
  5. package/api/resources/embeddingModels/client/Client.js +2 -2
  6. package/api/resources/entities/client/Client.js +8 -8
  7. package/api/resources/index.d.ts +0 -1
  8. package/api/resources/index.js +1 -2
  9. package/api/resources/search/client/Client.js +1 -1
  10. package/api/resources/sources/client/Client.js +2 -2
  11. package/api/resources/sync/client/Client.js +11 -11
  12. package/api/resources/transformers/client/Client.js +3 -3
  13. package/api/resources/users/client/Client.js +1 -1
  14. package/api/resources/whiteLabels/client/Client.js +8 -8
  15. package/dist/Client.d.ts +0 -3
  16. package/dist/Client.js +0 -5
  17. package/dist/api/resources/connections/client/Client.js +12 -12
  18. package/dist/api/resources/destinations/client/Client.js +2 -2
  19. package/dist/api/resources/embeddingModels/client/Client.js +2 -2
  20. package/dist/api/resources/entities/client/Client.js +8 -8
  21. package/dist/api/resources/index.d.ts +0 -1
  22. package/dist/api/resources/index.js +1 -2
  23. package/dist/api/resources/search/client/Client.js +1 -1
  24. package/dist/api/resources/sources/client/Client.js +2 -2
  25. package/dist/api/resources/sync/client/Client.js +11 -11
  26. package/dist/api/resources/transformers/client/Client.js +3 -3
  27. package/dist/api/resources/users/client/Client.js +1 -1
  28. package/dist/api/resources/whiteLabels/client/Client.js +8 -8
  29. package/dist/version.d.ts +1 -1
  30. package/dist/version.js +1 -1
  31. package/package.json +1 -1
  32. package/reference.md +0 -80
  33. package/version.d.ts +1 -1
  34. package/version.js +1 -1
  35. package/api/resources/cursorDevelopment/client/Client.d.ts +0 -56
  36. package/api/resources/cursorDevelopment/client/Client.js +0 -143
  37. package/api/resources/cursorDevelopment/client/index.d.ts +0 -1
  38. package/api/resources/cursorDevelopment/client/index.js +0 -2
  39. package/api/resources/cursorDevelopment/index.d.ts +0 -1
  40. package/api/resources/cursorDevelopment/index.js +0 -17
  41. package/dist/api/resources/cursorDevelopment/client/Client.d.ts +0 -56
  42. package/dist/api/resources/cursorDevelopment/client/Client.js +0 -143
  43. package/dist/api/resources/cursorDevelopment/client/index.d.ts +0 -1
  44. package/dist/api/resources/cursorDevelopment/client/index.js +0 -2
  45. package/dist/api/resources/cursorDevelopment/index.d.ts +0 -1
  46. package/dist/api/resources/cursorDevelopment/index.js +0 -17
package/dist/version.js CHANGED
@@ -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.82";
4
+ exports.SDK_VERSION = "0.0.83";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airweave/sdk",
3
- "version": "0.0.82",
3
+ "version": "0.0.83",
4
4
  "private": false,
5
5
  "repository": "https://github.com/airweave-ai/typescript-sdk",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -3651,83 +3651,3 @@ await client.transformers.updateTransformer("transformer_id", {
3651
3651
  </dd>
3652
3652
  </dl>
3653
3653
  </details>
3654
-
3655
- ## CursorDevelopment
3656
-
3657
- <details><summary><code>client.cursorDevelopment.<a href="/src/api/resources/cursorDevelopment/client/Client.ts">testSync</a>(shortName) -> AirweaveSDK.SyncJob</code></summary>
3658
- <dl>
3659
- <dd>
3660
-
3661
- #### 📝 Description
3662
-
3663
- <dl>
3664
- <dd>
3665
-
3666
- <dl>
3667
- <dd>
3668
-
3669
- Run a sync for a specific source by short_name.
3670
-
3671
- This endpoint is used for testing source integrations during development.
3672
- It finds the first available source connection for the given short_name and
3673
- runs a sync on it.
3674
-
3675
- ## Args:
3676
-
3677
- db: The database session
3678
- short_name: The short name of the source to sync
3679
- background_tasks: The background tasks
3680
- user: The admin user
3681
-
3682
- ## Returns:
3683
-
3684
- schemas.SyncJob: The created sync job
3685
-
3686
- </dd>
3687
- </dl>
3688
- </dd>
3689
- </dl>
3690
-
3691
- #### 🔌 Usage
3692
-
3693
- <dl>
3694
- <dd>
3695
-
3696
- <dl>
3697
- <dd>
3698
-
3699
- ```typescript
3700
- await client.cursorDevelopment.testSync("short_name");
3701
- ```
3702
-
3703
- </dd>
3704
- </dl>
3705
- </dd>
3706
- </dl>
3707
-
3708
- #### ⚙️ Parameters
3709
-
3710
- <dl>
3711
- <dd>
3712
-
3713
- <dl>
3714
- <dd>
3715
-
3716
- **shortName:** `string`
3717
-
3718
- </dd>
3719
- </dl>
3720
-
3721
- <dl>
3722
- <dd>
3723
-
3724
- **requestOptions:** `CursorDevelopment.RequestOptions`
3725
-
3726
- </dd>
3727
- </dl>
3728
- </dd>
3729
- </dl>
3730
-
3731
- </dd>
3732
- </dl>
3733
- </details>
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.82";
1
+ export declare const SDK_VERSION = "0.0.83";
package/version.js CHANGED
@@ -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.82";
4
+ exports.SDK_VERSION = "0.0.83";
@@ -1,56 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as environments from "../../../../environments";
5
- import * as core from "../../../../core";
6
- import * as AirweaveSDK from "../../../index";
7
- export declare namespace CursorDevelopment {
8
- interface Options {
9
- environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
10
- /** Override the x-api-key header */
11
- apiKey?: core.Supplier<string | undefined>;
12
- }
13
- interface RequestOptions {
14
- /** The maximum time to wait for a response in seconds. */
15
- timeoutInSeconds?: number;
16
- /** The number of times to retry the request. Defaults to 2. */
17
- maxRetries?: number;
18
- /** A hook to abort the request. */
19
- abortSignal?: AbortSignal;
20
- /** Override the x-api-key header */
21
- apiKey?: string | undefined;
22
- /** Additional headers to include in the request. */
23
- headers?: Record<string, string>;
24
- }
25
- }
26
- export declare class CursorDevelopment {
27
- protected readonly _options: CursorDevelopment.Options;
28
- constructor(_options?: CursorDevelopment.Options);
29
- /**
30
- * Run a sync for a specific source by short_name.
31
- *
32
- * This endpoint is used for testing source integrations during development.
33
- * It finds the first available source connection for the given short_name and
34
- * runs a sync on it.
35
- *
36
- * Args:
37
- * -----
38
- * db: The database session
39
- * short_name: The short name of the source to sync
40
- * background_tasks: The background tasks
41
- * user: The admin user
42
- *
43
- * Returns:
44
- * --------
45
- * schemas.SyncJob: The created sync job
46
- *
47
- * @param {string} shortName
48
- * @param {CursorDevelopment.RequestOptions} requestOptions - Request-specific configuration.
49
- *
50
- * @throws {@link AirweaveSDK.UnprocessableEntityError}
51
- *
52
- * @example
53
- * await client.cursorDevelopment.testSync("short_name")
54
- */
55
- testSync(shortName: string, requestOptions?: CursorDevelopment.RequestOptions): Promise<AirweaveSDK.SyncJob>;
56
- }
@@ -1,143 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
- return new (P || (P = Promise))(function (resolve, reject) {
41
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
- step((generator = generator.apply(thisArg, _arguments || [])).next());
45
- });
46
- };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
- Object.defineProperty(exports, "__esModule", { value: true });
51
- exports.CursorDevelopment = void 0;
52
- const environments = __importStar(require("../../../../environments"));
53
- const core = __importStar(require("../../../../core"));
54
- const AirweaveSDK = __importStar(require("../../../index"));
55
- const url_join_1 = __importDefault(require("url-join"));
56
- const serializers = __importStar(require("../../../../serialization/index"));
57
- const errors = __importStar(require("../../../../errors/index"));
58
- class CursorDevelopment {
59
- constructor(_options = {}) {
60
- this._options = _options;
61
- }
62
- /**
63
- * Run a sync for a specific source by short_name.
64
- *
65
- * This endpoint is used for testing source integrations during development.
66
- * It finds the first available source connection for the given short_name and
67
- * runs a sync on it.
68
- *
69
- * Args:
70
- * -----
71
- * db: The database session
72
- * short_name: The short name of the source to sync
73
- * background_tasks: The background tasks
74
- * user: The admin user
75
- *
76
- * Returns:
77
- * --------
78
- * schemas.SyncJob: The created sync job
79
- *
80
- * @param {string} shortName
81
- * @param {CursorDevelopment.RequestOptions} requestOptions - Request-specific configuration.
82
- *
83
- * @throws {@link AirweaveSDK.UnprocessableEntityError}
84
- *
85
- * @example
86
- * await client.cursorDevelopment.testSync("short_name")
87
- */
88
- testSync(shortName, requestOptions) {
89
- return __awaiter(this, void 0, void 0, function* () {
90
- var _a;
91
- const _response = yield core.fetcher({
92
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `cursor-dev/test-sync/${encodeURIComponent(shortName)}`),
93
- method: "POST",
94
- headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
95
- ? yield core.Supplier.get(this._options.apiKey)
96
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.82", "User-Agent": "@airweave/sdk/0.0.82", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
97
- contentType: "application/json",
98
- requestType: "json",
99
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
100
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
101
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
102
- });
103
- if (_response.ok) {
104
- return serializers.SyncJob.parseOrThrow(_response.body, {
105
- unrecognizedObjectKeys: "passthrough",
106
- allowUnrecognizedUnionMembers: true,
107
- allowUnrecognizedEnumValues: true,
108
- breadcrumbsPrefix: ["response"],
109
- });
110
- }
111
- if (_response.error.reason === "status-code") {
112
- switch (_response.error.statusCode) {
113
- case 422:
114
- throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
115
- unrecognizedObjectKeys: "passthrough",
116
- allowUnrecognizedUnionMembers: true,
117
- allowUnrecognizedEnumValues: true,
118
- breadcrumbsPrefix: ["response"],
119
- }));
120
- default:
121
- throw new errors.AirweaveSDKError({
122
- statusCode: _response.error.statusCode,
123
- body: _response.error.body,
124
- });
125
- }
126
- }
127
- switch (_response.error.reason) {
128
- case "non-json":
129
- throw new errors.AirweaveSDKError({
130
- statusCode: _response.error.statusCode,
131
- body: _response.error.rawBody,
132
- });
133
- case "timeout":
134
- throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling POST /cursor-dev/test-sync/{short_name}.");
135
- case "unknown":
136
- throw new errors.AirweaveSDKError({
137
- message: _response.error.errorMessage,
138
- });
139
- }
140
- });
141
- }
142
- }
143
- exports.CursorDevelopment = CursorDevelopment;
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export * from "./client";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./client"), exports);
@@ -1,56 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as environments from "../../../../environments";
5
- import * as core from "../../../../core";
6
- import * as AirweaveSDK from "../../../index";
7
- export declare namespace CursorDevelopment {
8
- interface Options {
9
- environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
10
- /** Override the x-api-key header */
11
- apiKey?: core.Supplier<string | undefined>;
12
- }
13
- interface RequestOptions {
14
- /** The maximum time to wait for a response in seconds. */
15
- timeoutInSeconds?: number;
16
- /** The number of times to retry the request. Defaults to 2. */
17
- maxRetries?: number;
18
- /** A hook to abort the request. */
19
- abortSignal?: AbortSignal;
20
- /** Override the x-api-key header */
21
- apiKey?: string | undefined;
22
- /** Additional headers to include in the request. */
23
- headers?: Record<string, string>;
24
- }
25
- }
26
- export declare class CursorDevelopment {
27
- protected readonly _options: CursorDevelopment.Options;
28
- constructor(_options?: CursorDevelopment.Options);
29
- /**
30
- * Run a sync for a specific source by short_name.
31
- *
32
- * This endpoint is used for testing source integrations during development.
33
- * It finds the first available source connection for the given short_name and
34
- * runs a sync on it.
35
- *
36
- * Args:
37
- * -----
38
- * db: The database session
39
- * short_name: The short name of the source to sync
40
- * background_tasks: The background tasks
41
- * user: The admin user
42
- *
43
- * Returns:
44
- * --------
45
- * schemas.SyncJob: The created sync job
46
- *
47
- * @param {string} shortName
48
- * @param {CursorDevelopment.RequestOptions} requestOptions - Request-specific configuration.
49
- *
50
- * @throws {@link AirweaveSDK.UnprocessableEntityError}
51
- *
52
- * @example
53
- * await client.cursorDevelopment.testSync("short_name")
54
- */
55
- testSync(shortName: string, requestOptions?: CursorDevelopment.RequestOptions): Promise<AirweaveSDK.SyncJob>;
56
- }
@@ -1,143 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
- return new (P || (P = Promise))(function (resolve, reject) {
41
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
- step((generator = generator.apply(thisArg, _arguments || [])).next());
45
- });
46
- };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
- Object.defineProperty(exports, "__esModule", { value: true });
51
- exports.CursorDevelopment = void 0;
52
- const environments = __importStar(require("../../../../environments"));
53
- const core = __importStar(require("../../../../core"));
54
- const AirweaveSDK = __importStar(require("../../../index"));
55
- const url_join_1 = __importDefault(require("url-join"));
56
- const serializers = __importStar(require("../../../../serialization/index"));
57
- const errors = __importStar(require("../../../../errors/index"));
58
- class CursorDevelopment {
59
- constructor(_options = {}) {
60
- this._options = _options;
61
- }
62
- /**
63
- * Run a sync for a specific source by short_name.
64
- *
65
- * This endpoint is used for testing source integrations during development.
66
- * It finds the first available source connection for the given short_name and
67
- * runs a sync on it.
68
- *
69
- * Args:
70
- * -----
71
- * db: The database session
72
- * short_name: The short name of the source to sync
73
- * background_tasks: The background tasks
74
- * user: The admin user
75
- *
76
- * Returns:
77
- * --------
78
- * schemas.SyncJob: The created sync job
79
- *
80
- * @param {string} shortName
81
- * @param {CursorDevelopment.RequestOptions} requestOptions - Request-specific configuration.
82
- *
83
- * @throws {@link AirweaveSDK.UnprocessableEntityError}
84
- *
85
- * @example
86
- * await client.cursorDevelopment.testSync("short_name")
87
- */
88
- testSync(shortName, requestOptions) {
89
- return __awaiter(this, void 0, void 0, function* () {
90
- var _a;
91
- const _response = yield core.fetcher({
92
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `cursor-dev/test-sync/${encodeURIComponent(shortName)}`),
93
- method: "POST",
94
- headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
95
- ? yield core.Supplier.get(this._options.apiKey)
96
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.82", "User-Agent": "@airweave/sdk/0.0.82", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
97
- contentType: "application/json",
98
- requestType: "json",
99
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
100
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
101
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
102
- });
103
- if (_response.ok) {
104
- return serializers.SyncJob.parseOrThrow(_response.body, {
105
- unrecognizedObjectKeys: "passthrough",
106
- allowUnrecognizedUnionMembers: true,
107
- allowUnrecognizedEnumValues: true,
108
- breadcrumbsPrefix: ["response"],
109
- });
110
- }
111
- if (_response.error.reason === "status-code") {
112
- switch (_response.error.statusCode) {
113
- case 422:
114
- throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
115
- unrecognizedObjectKeys: "passthrough",
116
- allowUnrecognizedUnionMembers: true,
117
- allowUnrecognizedEnumValues: true,
118
- breadcrumbsPrefix: ["response"],
119
- }));
120
- default:
121
- throw new errors.AirweaveSDKError({
122
- statusCode: _response.error.statusCode,
123
- body: _response.error.body,
124
- });
125
- }
126
- }
127
- switch (_response.error.reason) {
128
- case "non-json":
129
- throw new errors.AirweaveSDKError({
130
- statusCode: _response.error.statusCode,
131
- body: _response.error.rawBody,
132
- });
133
- case "timeout":
134
- throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling POST /cursor-dev/test-sync/{short_name}.");
135
- case "unknown":
136
- throw new errors.AirweaveSDKError({
137
- message: _response.error.errorMessage,
138
- });
139
- }
140
- });
141
- }
142
- }
143
- exports.CursorDevelopment = CursorDevelopment;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export * from "./client";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./client"), exports);