@airweave/sdk 0.0.81 → 0.0.82
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/Client.d.ts +0 -3
- package/Client.js +6 -11
- package/api/resources/connections/client/Client.js +12 -12
- package/api/resources/cursorDevelopment/client/Client.d.ts +0 -22
- package/api/resources/cursorDevelopment/client/Client.js +1 -76
- package/api/resources/destinations/client/Client.js +2 -2
- package/api/resources/embeddingModels/client/Client.js +2 -2
- package/api/resources/entities/client/Client.js +8 -8
- package/api/resources/index.d.ts +0 -2
- package/api/resources/index.js +1 -3
- package/api/resources/search/client/Client.js +1 -1
- package/api/resources/sources/client/Client.js +2 -2
- package/api/resources/sync/client/Client.js +11 -11
- package/api/resources/transformers/client/Client.js +3 -3
- package/api/resources/users/client/Client.js +1 -1
- package/api/resources/whiteLabels/client/Client.js +8 -8
- package/api/types/SyncDagCreate.d.ts +14 -0
- package/{dist/api/resources/dag/client/requests → api/types}/SyncDagUpdate.d.ts +3 -7
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/Client.d.ts +0 -3
- package/dist/Client.js +6 -11
- package/dist/api/resources/connections/client/Client.js +12 -12
- package/dist/api/resources/cursorDevelopment/client/Client.d.ts +0 -22
- package/dist/api/resources/cursorDevelopment/client/Client.js +1 -76
- package/dist/api/resources/destinations/client/Client.js +2 -2
- package/dist/api/resources/embeddingModels/client/Client.js +2 -2
- package/dist/api/resources/entities/client/Client.js +8 -8
- package/dist/api/resources/index.d.ts +0 -2
- package/dist/api/resources/index.js +1 -3
- package/dist/api/resources/search/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.js +2 -2
- package/dist/api/resources/sync/client/Client.js +11 -11
- package/dist/api/resources/transformers/client/Client.js +3 -3
- package/dist/api/resources/users/client/Client.js +1 -1
- package/dist/api/resources/whiteLabels/client/Client.js +8 -8
- package/dist/api/types/SyncDagCreate.d.ts +14 -0
- package/{api/resources/dag/client/requests → dist/api/types}/SyncDagUpdate.d.ts +3 -7
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/resources/index.d.ts +0 -3
- package/dist/serialization/resources/index.js +1 -4
- package/dist/serialization/types/SyncDagCreate.d.ts +18 -0
- package/dist/serialization/{resources/dag/client/requests → types}/SyncDagCreate.js +4 -4
- package/dist/serialization/types/SyncDagUpdate.d.ts +18 -0
- package/dist/serialization/{resources/dag/client/requests → types}/SyncDagUpdate.js +4 -4
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +0 -363
- package/serialization/resources/index.d.ts +0 -3
- package/serialization/resources/index.js +1 -4
- package/serialization/types/SyncDagCreate.d.ts +18 -0
- package/serialization/{resources/dag/client/requests → types}/SyncDagCreate.js +4 -4
- package/serialization/types/SyncDagUpdate.d.ts +18 -0
- package/serialization/{resources/dag/client/requests → types}/SyncDagUpdate.js +4 -4
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/dag/client/Client.d.ts +0 -95
- package/api/resources/dag/client/Client.js +0 -347
- package/api/resources/dag/client/index.d.ts +0 -1
- package/api/resources/dag/client/index.js +0 -17
- package/api/resources/dag/client/requests/InitializeDagDagInitGetRequest.d.ts +0 -12
- package/api/resources/dag/client/requests/InitializeDagDagInitGetRequest.js +0 -5
- package/api/resources/dag/client/requests/SyncDagCreate.d.ts +0 -26
- package/api/resources/dag/client/requests/index.d.ts +0 -3
- package/api/resources/dag/client/requests/index.js +0 -2
- package/api/resources/dag/index.d.ts +0 -1
- package/api/resources/dag/index.js +0 -17
- package/dist/api/resources/dag/client/Client.d.ts +0 -95
- package/dist/api/resources/dag/client/Client.js +0 -347
- package/dist/api/resources/dag/client/index.d.ts +0 -1
- package/dist/api/resources/dag/client/index.js +0 -17
- package/dist/api/resources/dag/client/requests/InitializeDagDagInitGetRequest.d.ts +0 -12
- package/dist/api/resources/dag/client/requests/InitializeDagDagInitGetRequest.js +0 -5
- package/dist/api/resources/dag/client/requests/SyncDagCreate.d.ts +0 -26
- package/dist/api/resources/dag/client/requests/index.d.ts +0 -3
- package/dist/api/resources/dag/client/requests/index.js +0 -2
- package/dist/api/resources/dag/index.d.ts +0 -1
- package/dist/api/resources/dag/index.js +0 -17
- package/dist/serialization/resources/cursorDevelopment/client/checkConnectionStatus.d.ts +0 -11
- package/dist/serialization/resources/cursorDevelopment/client/checkConnectionStatus.js +0 -42
- package/dist/serialization/resources/cursorDevelopment/client/index.d.ts +0 -1
- package/dist/serialization/resources/cursorDevelopment/client/index.js +0 -37
- package/dist/serialization/resources/cursorDevelopment/index.d.ts +0 -1
- package/dist/serialization/resources/cursorDevelopment/index.js +0 -17
- package/dist/serialization/resources/dag/client/index.d.ts +0 -1
- package/dist/serialization/resources/dag/client/index.js +0 -17
- package/dist/serialization/resources/dag/client/requests/SyncDagCreate.d.ts +0 -18
- package/dist/serialization/resources/dag/client/requests/SyncDagUpdate.d.ts +0 -18
- package/dist/serialization/resources/dag/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/dag/client/requests/index.js +0 -7
- package/dist/serialization/resources/dag/index.d.ts +0 -1
- package/dist/serialization/resources/dag/index.js +0 -17
- package/serialization/resources/cursorDevelopment/client/checkConnectionStatus.d.ts +0 -11
- package/serialization/resources/cursorDevelopment/client/checkConnectionStatus.js +0 -42
- package/serialization/resources/cursorDevelopment/client/index.d.ts +0 -1
- package/serialization/resources/cursorDevelopment/client/index.js +0 -37
- package/serialization/resources/cursorDevelopment/index.d.ts +0 -1
- package/serialization/resources/cursorDevelopment/index.js +0 -17
- package/serialization/resources/dag/client/index.d.ts +0 -1
- package/serialization/resources/dag/client/index.js +0 -17
- package/serialization/resources/dag/client/requests/SyncDagCreate.d.ts +0 -18
- package/serialization/resources/dag/client/requests/SyncDagUpdate.d.ts +0 -18
- package/serialization/resources/dag/client/requests/index.d.ts +0 -2
- package/serialization/resources/dag/client/requests/index.js +0 -7
- package/serialization/resources/dag/index.d.ts +0 -1
- package/serialization/resources/dag/index.js +0 -17
- /package/api/{resources/dag/client/requests → types}/SyncDagCreate.js +0 -0
- /package/api/{resources/dag/client/requests → types}/SyncDagUpdate.js +0 -0
- /package/dist/api/{resources/dag/client/requests → types}/SyncDagCreate.js +0 -0
- /package/dist/api/{resources/dag/client/requests → types}/SyncDagUpdate.js +0 -0
|
@@ -101,7 +101,7 @@ class Sync {
|
|
|
101
101
|
method: "GET",
|
|
102
102
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
103
103
|
? yield core.Supplier.get(this._options.apiKey)
|
|
104
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
104
|
+
: 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),
|
|
105
105
|
contentType: "application/json",
|
|
106
106
|
queryParameters: _queryParams,
|
|
107
107
|
requestType: "json",
|
|
@@ -182,7 +182,7 @@ class Sync {
|
|
|
182
182
|
method: "POST",
|
|
183
183
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
184
184
|
? yield core.Supplier.get(this._options.apiKey)
|
|
185
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
185
|
+
: 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),
|
|
186
186
|
contentType: "application/json",
|
|
187
187
|
requestType: "json",
|
|
188
188
|
body: serializers.SyncCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -267,7 +267,7 @@ class Sync {
|
|
|
267
267
|
method: "GET",
|
|
268
268
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
269
269
|
? yield core.Supplier.get(this._options.apiKey)
|
|
270
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
270
|
+
: 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),
|
|
271
271
|
contentType: "application/json",
|
|
272
272
|
queryParameters: _queryParams,
|
|
273
273
|
requestType: "json",
|
|
@@ -343,7 +343,7 @@ class Sync {
|
|
|
343
343
|
method: "GET",
|
|
344
344
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
345
345
|
? yield core.Supplier.get(this._options.apiKey)
|
|
346
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
346
|
+
: 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),
|
|
347
347
|
contentType: "application/json",
|
|
348
348
|
requestType: "json",
|
|
349
349
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -425,7 +425,7 @@ class Sync {
|
|
|
425
425
|
method: "DELETE",
|
|
426
426
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
427
427
|
? yield core.Supplier.get(this._options.apiKey)
|
|
428
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
428
|
+
: 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),
|
|
429
429
|
contentType: "application/json",
|
|
430
430
|
queryParameters: _queryParams,
|
|
431
431
|
requestType: "json",
|
|
@@ -503,7 +503,7 @@ class Sync {
|
|
|
503
503
|
method: "PATCH",
|
|
504
504
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
505
505
|
? yield core.Supplier.get(this._options.apiKey)
|
|
506
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
506
|
+
: 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),
|
|
507
507
|
contentType: "application/json",
|
|
508
508
|
requestType: "json",
|
|
509
509
|
body: serializers.SyncUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -580,7 +580,7 @@ class Sync {
|
|
|
580
580
|
method: "POST",
|
|
581
581
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
582
582
|
? yield core.Supplier.get(this._options.apiKey)
|
|
583
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
583
|
+
: 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),
|
|
584
584
|
contentType: "application/json",
|
|
585
585
|
requestType: "json",
|
|
586
586
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -655,7 +655,7 @@ class Sync {
|
|
|
655
655
|
method: "GET",
|
|
656
656
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
657
657
|
? yield core.Supplier.get(this._options.apiKey)
|
|
658
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
658
|
+
: 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),
|
|
659
659
|
contentType: "application/json",
|
|
660
660
|
requestType: "json",
|
|
661
661
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -732,7 +732,7 @@ class Sync {
|
|
|
732
732
|
method: "GET",
|
|
733
733
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
734
734
|
? yield core.Supplier.get(this._options.apiKey)
|
|
735
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
735
|
+
: 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),
|
|
736
736
|
contentType: "application/json",
|
|
737
737
|
requestType: "json",
|
|
738
738
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -806,7 +806,7 @@ class Sync {
|
|
|
806
806
|
method: "GET",
|
|
807
807
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
808
808
|
? yield core.Supplier.get(this._options.apiKey)
|
|
809
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
809
|
+
: 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),
|
|
810
810
|
contentType: "application/json",
|
|
811
811
|
requestType: "json",
|
|
812
812
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -866,7 +866,7 @@ class Sync {
|
|
|
866
866
|
method: "GET",
|
|
867
867
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
868
868
|
? yield core.Supplier.get(this._options.apiKey)
|
|
869
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
869
|
+
: 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),
|
|
870
870
|
contentType: "application/json",
|
|
871
871
|
requestType: "json",
|
|
872
872
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -77,7 +77,7 @@ class Transformers {
|
|
|
77
77
|
method: "GET",
|
|
78
78
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
79
79
|
? yield core.Supplier.get(this._options.apiKey)
|
|
80
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
80
|
+
: 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),
|
|
81
81
|
contentType: "application/json",
|
|
82
82
|
requestType: "json",
|
|
83
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -148,7 +148,7 @@ class Transformers {
|
|
|
148
148
|
method: "POST",
|
|
149
149
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
150
150
|
? yield core.Supplier.get(this._options.apiKey)
|
|
151
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
151
|
+
: 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),
|
|
152
152
|
contentType: "application/json",
|
|
153
153
|
requestType: "json",
|
|
154
154
|
body: serializers.TransformerCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -221,7 +221,7 @@ class Transformers {
|
|
|
221
221
|
method: "PUT",
|
|
222
222
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
223
223
|
? yield core.Supplier.get(this._options.apiKey)
|
|
224
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
224
|
+
: 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),
|
|
225
225
|
contentType: "application/json",
|
|
226
226
|
requestType: "json",
|
|
227
227
|
body: serializers.TransformerUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -85,7 +85,7 @@ class Users {
|
|
|
85
85
|
method: "GET",
|
|
86
86
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
87
87
|
? yield core.Supplier.get(this._options.apiKey)
|
|
88
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
88
|
+
: 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),
|
|
89
89
|
contentType: "application/json",
|
|
90
90
|
requestType: "json",
|
|
91
91
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -86,7 +86,7 @@ class WhiteLabels {
|
|
|
86
86
|
method: "GET",
|
|
87
87
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
88
88
|
? yield core.Supplier.get(this._options.apiKey)
|
|
89
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
89
|
+
: 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),
|
|
90
90
|
contentType: "application/json",
|
|
91
91
|
requestType: "json",
|
|
92
92
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -167,7 +167,7 @@ class WhiteLabels {
|
|
|
167
167
|
method: "POST",
|
|
168
168
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
169
169
|
? yield core.Supplier.get(this._options.apiKey)
|
|
170
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
170
|
+
: 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),
|
|
171
171
|
contentType: "application/json",
|
|
172
172
|
requestType: "json",
|
|
173
173
|
body: serializers.WhiteLabelCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -243,7 +243,7 @@ class WhiteLabels {
|
|
|
243
243
|
method: "GET",
|
|
244
244
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
245
245
|
? yield core.Supplier.get(this._options.apiKey)
|
|
246
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
246
|
+
: 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),
|
|
247
247
|
contentType: "application/json",
|
|
248
248
|
requestType: "json",
|
|
249
249
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -320,7 +320,7 @@ class WhiteLabels {
|
|
|
320
320
|
method: "PUT",
|
|
321
321
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
322
322
|
? yield core.Supplier.get(this._options.apiKey)
|
|
323
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
323
|
+
: 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),
|
|
324
324
|
contentType: "application/json",
|
|
325
325
|
requestType: "json",
|
|
326
326
|
body: serializers.WhiteLabelUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -396,7 +396,7 @@ class WhiteLabels {
|
|
|
396
396
|
method: "DELETE",
|
|
397
397
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
398
398
|
? yield core.Supplier.get(this._options.apiKey)
|
|
399
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
399
|
+
: 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),
|
|
400
400
|
contentType: "application/json",
|
|
401
401
|
requestType: "json",
|
|
402
402
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -471,7 +471,7 @@ class WhiteLabels {
|
|
|
471
471
|
method: "GET",
|
|
472
472
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
473
473
|
? yield core.Supplier.get(this._options.apiKey)
|
|
474
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
474
|
+
: 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),
|
|
475
475
|
contentType: "application/json",
|
|
476
476
|
requestType: "json",
|
|
477
477
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -548,7 +548,7 @@ class WhiteLabels {
|
|
|
548
548
|
method: "POST",
|
|
549
549
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
550
550
|
? yield core.Supplier.get(this._options.apiKey)
|
|
551
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
551
|
+
: 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),
|
|
552
552
|
contentType: "application/json",
|
|
553
553
|
requestType: "json",
|
|
554
554
|
body: serializers.whiteLabels.exchangeWhiteLabelOauth2Code.Request.jsonOrThrow(request, {
|
|
@@ -626,7 +626,7 @@ class WhiteLabels {
|
|
|
626
626
|
method: "GET",
|
|
627
627
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
628
628
|
? yield core.Supplier.get(this._options.apiKey)
|
|
629
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
629
|
+
: 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),
|
|
630
630
|
contentType: "application/json",
|
|
631
631
|
requestType: "json",
|
|
632
632
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Schema for creating a sync DAG definition.
|
|
7
|
+
*/
|
|
8
|
+
export interface SyncDagCreate {
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
syncId: string;
|
|
12
|
+
nodes: AirweaveSDK.DagNodeCreate[];
|
|
13
|
+
edges: AirweaveSDK.DagEdgeCreate[];
|
|
14
|
+
}
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as AirweaveSDK from "
|
|
4
|
+
import * as AirweaveSDK from "../index";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
* {
|
|
8
|
-
* name: "name",
|
|
9
|
-
* syncDagUpdateSyncId: "sync_id"
|
|
10
|
-
* }
|
|
6
|
+
* Schema for updating a sync DAG definition.
|
|
11
7
|
*/
|
|
12
8
|
export interface SyncDagUpdate {
|
|
13
9
|
name: string;
|
|
14
10
|
description?: string;
|
|
15
|
-
|
|
11
|
+
syncId: string;
|
|
16
12
|
nodes?: AirweaveSDK.DagNodeCreate[];
|
|
17
13
|
edges?: AirweaveSDK.DagEdgeCreate[];
|
|
18
14
|
}
|
package/api/types/index.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ export * from "./Source";
|
|
|
30
30
|
export * from "./SourceWithConfigFields";
|
|
31
31
|
export * from "./Sync";
|
|
32
32
|
export * from "./SyncDag";
|
|
33
|
+
export * from "./SyncDagCreate";
|
|
34
|
+
export * from "./SyncDagUpdate";
|
|
33
35
|
export * from "./SyncJob";
|
|
34
36
|
export * from "./SyncJobStatus";
|
|
35
37
|
export * from "./SyncStatus";
|
package/api/types/index.js
CHANGED
|
@@ -46,6 +46,8 @@ __exportStar(require("./Source"), exports);
|
|
|
46
46
|
__exportStar(require("./SourceWithConfigFields"), exports);
|
|
47
47
|
__exportStar(require("./Sync"), exports);
|
|
48
48
|
__exportStar(require("./SyncDag"), exports);
|
|
49
|
+
__exportStar(require("./SyncDagCreate"), exports);
|
|
50
|
+
__exportStar(require("./SyncDagUpdate"), exports);
|
|
49
51
|
__exportStar(require("./SyncJob"), exports);
|
|
50
52
|
__exportStar(require("./SyncJobStatus"), exports);
|
|
51
53
|
__exportStar(require("./SyncStatus"), exports);
|
package/dist/Client.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ import { Connections } from "./api/resources/connections/client/Client";
|
|
|
11
11
|
import { Sync } from "./api/resources/sync/client/Client";
|
|
12
12
|
import { Search } from "./api/resources/search/client/Client";
|
|
13
13
|
import { WhiteLabels } from "./api/resources/whiteLabels/client/Client";
|
|
14
|
-
import { Dag } from "./api/resources/dag/client/Client";
|
|
15
14
|
import { Entities } from "./api/resources/entities/client/Client";
|
|
16
15
|
import { Transformers } from "./api/resources/transformers/client/Client";
|
|
17
16
|
import { CursorDevelopment } from "./api/resources/cursorDevelopment/client/Client";
|
|
@@ -44,7 +43,6 @@ export declare class AirweaveSDKClient {
|
|
|
44
43
|
protected _sync: Sync | undefined;
|
|
45
44
|
protected _search: Search | undefined;
|
|
46
45
|
protected _whiteLabels: WhiteLabels | undefined;
|
|
47
|
-
protected _dag: Dag | undefined;
|
|
48
46
|
protected _entities: Entities | undefined;
|
|
49
47
|
protected _transformers: Transformers | undefined;
|
|
50
48
|
protected _cursorDevelopment: CursorDevelopment | undefined;
|
|
@@ -57,7 +55,6 @@ export declare class AirweaveSDKClient {
|
|
|
57
55
|
get sync(): Sync;
|
|
58
56
|
get search(): Search;
|
|
59
57
|
get whiteLabels(): WhiteLabels;
|
|
60
|
-
get dag(): Dag;
|
|
61
58
|
get entities(): Entities;
|
|
62
59
|
get transformers(): Transformers;
|
|
63
60
|
get cursorDevelopment(): CursorDevelopment;
|
package/dist/Client.js
CHANGED
|
@@ -12,10 +12,9 @@ const Client_5 = require("./api/resources/connections/client/Client");
|
|
|
12
12
|
const Client_6 = require("./api/resources/sync/client/Client");
|
|
13
13
|
const Client_7 = require("./api/resources/search/client/Client");
|
|
14
14
|
const Client_8 = require("./api/resources/whiteLabels/client/Client");
|
|
15
|
-
const Client_9 = require("./api/resources/
|
|
16
|
-
const Client_10 = require("./api/resources/
|
|
17
|
-
const Client_11 = require("./api/resources/
|
|
18
|
-
const Client_12 = require("./api/resources/cursorDevelopment/client/Client");
|
|
15
|
+
const Client_9 = require("./api/resources/entities/client/Client");
|
|
16
|
+
const Client_10 = require("./api/resources/transformers/client/Client");
|
|
17
|
+
const Client_11 = require("./api/resources/cursorDevelopment/client/Client");
|
|
19
18
|
class AirweaveSDKClient {
|
|
20
19
|
constructor(_options = {}) {
|
|
21
20
|
this._options = _options;
|
|
@@ -52,21 +51,17 @@ class AirweaveSDKClient {
|
|
|
52
51
|
var _a;
|
|
53
52
|
return ((_a = this._whiteLabels) !== null && _a !== void 0 ? _a : (this._whiteLabels = new Client_8.WhiteLabels(this._options)));
|
|
54
53
|
}
|
|
55
|
-
get dag() {
|
|
56
|
-
var _a;
|
|
57
|
-
return ((_a = this._dag) !== null && _a !== void 0 ? _a : (this._dag = new Client_9.Dag(this._options)));
|
|
58
|
-
}
|
|
59
54
|
get entities() {
|
|
60
55
|
var _a;
|
|
61
|
-
return ((_a = this._entities) !== null && _a !== void 0 ? _a : (this._entities = new
|
|
56
|
+
return ((_a = this._entities) !== null && _a !== void 0 ? _a : (this._entities = new Client_9.Entities(this._options)));
|
|
62
57
|
}
|
|
63
58
|
get transformers() {
|
|
64
59
|
var _a;
|
|
65
|
-
return ((_a = this._transformers) !== null && _a !== void 0 ? _a : (this._transformers = new
|
|
60
|
+
return ((_a = this._transformers) !== null && _a !== void 0 ? _a : (this._transformers = new Client_10.Transformers(this._options)));
|
|
66
61
|
}
|
|
67
62
|
get cursorDevelopment() {
|
|
68
63
|
var _a;
|
|
69
|
-
return ((_a = this._cursorDevelopment) !== null && _a !== void 0 ? _a : (this._cursorDevelopment = new
|
|
64
|
+
return ((_a = this._cursorDevelopment) !== null && _a !== void 0 ? _a : (this._cursorDevelopment = new Client_11.CursorDevelopment(this._options)));
|
|
70
65
|
}
|
|
71
66
|
}
|
|
72
67
|
exports.AirweaveSDKClient = AirweaveSDKClient;
|
|
@@ -88,7 +88,7 @@ class Connections {
|
|
|
88
88
|
method: "GET",
|
|
89
89
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
90
90
|
? yield core.Supplier.get(this._options.apiKey)
|
|
91
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
91
|
+
: 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),
|
|
92
92
|
contentType: "application/json",
|
|
93
93
|
requestType: "json",
|
|
94
94
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -161,7 +161,7 @@ class Connections {
|
|
|
161
161
|
method: "GET",
|
|
162
162
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
163
163
|
? yield core.Supplier.get(this._options.apiKey)
|
|
164
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
164
|
+
: 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),
|
|
165
165
|
contentType: "application/json",
|
|
166
166
|
requestType: "json",
|
|
167
167
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -236,7 +236,7 @@ class Connections {
|
|
|
236
236
|
method: "GET",
|
|
237
237
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
238
238
|
? yield core.Supplier.get(this._options.apiKey)
|
|
239
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
239
|
+
: 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),
|
|
240
240
|
contentType: "application/json",
|
|
241
241
|
requestType: "json",
|
|
242
242
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -328,7 +328,7 @@ class Connections {
|
|
|
328
328
|
method: "POST",
|
|
329
329
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
330
330
|
? yield core.Supplier.get(this._options.apiKey)
|
|
331
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
331
|
+
: 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),
|
|
332
332
|
contentType: "application/json",
|
|
333
333
|
requestType: "json",
|
|
334
334
|
body: serializers.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -404,7 +404,7 @@ class Connections {
|
|
|
404
404
|
method: "GET",
|
|
405
405
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
406
406
|
? yield core.Supplier.get(this._options.apiKey)
|
|
407
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
407
|
+
: 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),
|
|
408
408
|
contentType: "application/json",
|
|
409
409
|
requestType: "json",
|
|
410
410
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -481,7 +481,7 @@ class Connections {
|
|
|
481
481
|
method: "DELETE",
|
|
482
482
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
483
483
|
? yield core.Supplier.get(this._options.apiKey)
|
|
484
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
484
|
+
: 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),
|
|
485
485
|
contentType: "application/json",
|
|
486
486
|
requestType: "json",
|
|
487
487
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -556,7 +556,7 @@ class Connections {
|
|
|
556
556
|
method: "PUT",
|
|
557
557
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
558
558
|
? yield core.Supplier.get(this._options.apiKey)
|
|
559
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
559
|
+
: 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),
|
|
560
560
|
contentType: "application/json",
|
|
561
561
|
requestType: "json",
|
|
562
562
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -631,7 +631,7 @@ class Connections {
|
|
|
631
631
|
method: "PUT",
|
|
632
632
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
633
633
|
? yield core.Supplier.get(this._options.apiKey)
|
|
634
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
634
|
+
: 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),
|
|
635
635
|
contentType: "application/json",
|
|
636
636
|
requestType: "json",
|
|
637
637
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -707,7 +707,7 @@ class Connections {
|
|
|
707
707
|
method: "GET",
|
|
708
708
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
709
709
|
? yield core.Supplier.get(this._options.apiKey)
|
|
710
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
710
|
+
: 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),
|
|
711
711
|
contentType: "application/json",
|
|
712
712
|
queryParameters: _queryParams,
|
|
713
713
|
requestType: "json",
|
|
@@ -792,7 +792,7 @@ class Connections {
|
|
|
792
792
|
method: "POST",
|
|
793
793
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
794
794
|
? yield core.Supplier.get(this._options.apiKey)
|
|
795
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
795
|
+
: 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),
|
|
796
796
|
contentType: "application/json",
|
|
797
797
|
requestType: "json",
|
|
798
798
|
body: serializers.BodySendOauth2CodeConnectionsOauth2SourceCodePost.jsonOrThrow(request, {
|
|
@@ -873,7 +873,7 @@ class Connections {
|
|
|
873
873
|
method: "POST",
|
|
874
874
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
875
875
|
? yield core.Supplier.get(this._options.apiKey)
|
|
876
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
876
|
+
: 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),
|
|
877
877
|
contentType: "application/json",
|
|
878
878
|
requestType: "json",
|
|
879
879
|
body: serializers.connections.sendOauth2WhiteLabelCode.Request.jsonOrThrow(request, {
|
|
@@ -951,7 +951,7 @@ class Connections {
|
|
|
951
951
|
method: "GET",
|
|
952
952
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
953
953
|
? yield core.Supplier.get(this._options.apiKey)
|
|
954
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
954
|
+
: 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),
|
|
955
955
|
contentType: "application/json",
|
|
956
956
|
requestType: "json",
|
|
957
957
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -26,28 +26,6 @@ export declare namespace CursorDevelopment {
|
|
|
26
26
|
export declare class CursorDevelopment {
|
|
27
27
|
protected readonly _options: CursorDevelopment.Options;
|
|
28
28
|
constructor(_options?: CursorDevelopment.Options);
|
|
29
|
-
/**
|
|
30
|
-
* Check if a source connection exists for the given short_name.
|
|
31
|
-
*
|
|
32
|
-
* Args:
|
|
33
|
-
* -----
|
|
34
|
-
* db: The database session
|
|
35
|
-
* short_name: The short name of the source to check
|
|
36
|
-
* user: The admin user
|
|
37
|
-
*
|
|
38
|
-
* Returns:
|
|
39
|
-
* --------
|
|
40
|
-
* List[schemas.Connection]: List of source connections for the given short_name
|
|
41
|
-
*
|
|
42
|
-
* @param {string} shortName
|
|
43
|
-
* @param {CursorDevelopment.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
-
*
|
|
45
|
-
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* await client.cursorDevelopment.checkConnectionStatus("short_name")
|
|
49
|
-
*/
|
|
50
|
-
checkConnectionStatus(shortName: string, requestOptions?: CursorDevelopment.RequestOptions): Promise<AirweaveSDK.Connection[]>;
|
|
51
29
|
/**
|
|
52
30
|
* Run a sync for a specific source by short_name.
|
|
53
31
|
*
|
|
@@ -59,81 +59,6 @@ class CursorDevelopment {
|
|
|
59
59
|
constructor(_options = {}) {
|
|
60
60
|
this._options = _options;
|
|
61
61
|
}
|
|
62
|
-
/**
|
|
63
|
-
* Check if a source connection exists for the given short_name.
|
|
64
|
-
*
|
|
65
|
-
* Args:
|
|
66
|
-
* -----
|
|
67
|
-
* db: The database session
|
|
68
|
-
* short_name: The short name of the source to check
|
|
69
|
-
* user: The admin user
|
|
70
|
-
*
|
|
71
|
-
* Returns:
|
|
72
|
-
* --------
|
|
73
|
-
* List[schemas.Connection]: List of source connections for the given short_name
|
|
74
|
-
*
|
|
75
|
-
* @param {string} shortName
|
|
76
|
-
* @param {CursorDevelopment.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
|
-
*
|
|
78
|
-
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
79
|
-
*
|
|
80
|
-
* @example
|
|
81
|
-
* await client.cursorDevelopment.checkConnectionStatus("short_name")
|
|
82
|
-
*/
|
|
83
|
-
checkConnectionStatus(shortName, requestOptions) {
|
|
84
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
-
var _a;
|
|
86
|
-
const _response = yield core.fetcher({
|
|
87
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `cursor-dev/connections/status/${encodeURIComponent(shortName)}`),
|
|
88
|
-
method: "GET",
|
|
89
|
-
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
90
|
-
? yield core.Supplier.get(this._options.apiKey)
|
|
91
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.81", "User-Agent": "@airweave/sdk/0.1.29", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
92
|
-
contentType: "application/json",
|
|
93
|
-
requestType: "json",
|
|
94
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
95
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
96
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
97
|
-
});
|
|
98
|
-
if (_response.ok) {
|
|
99
|
-
return serializers.cursorDevelopment.checkConnectionStatus.Response.parseOrThrow(_response.body, {
|
|
100
|
-
unrecognizedObjectKeys: "passthrough",
|
|
101
|
-
allowUnrecognizedUnionMembers: true,
|
|
102
|
-
allowUnrecognizedEnumValues: true,
|
|
103
|
-
breadcrumbsPrefix: ["response"],
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
if (_response.error.reason === "status-code") {
|
|
107
|
-
switch (_response.error.statusCode) {
|
|
108
|
-
case 422:
|
|
109
|
-
throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
110
|
-
unrecognizedObjectKeys: "passthrough",
|
|
111
|
-
allowUnrecognizedUnionMembers: true,
|
|
112
|
-
allowUnrecognizedEnumValues: true,
|
|
113
|
-
breadcrumbsPrefix: ["response"],
|
|
114
|
-
}));
|
|
115
|
-
default:
|
|
116
|
-
throw new errors.AirweaveSDKError({
|
|
117
|
-
statusCode: _response.error.statusCode,
|
|
118
|
-
body: _response.error.body,
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
switch (_response.error.reason) {
|
|
123
|
-
case "non-json":
|
|
124
|
-
throw new errors.AirweaveSDKError({
|
|
125
|
-
statusCode: _response.error.statusCode,
|
|
126
|
-
body: _response.error.rawBody,
|
|
127
|
-
});
|
|
128
|
-
case "timeout":
|
|
129
|
-
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /cursor-dev/connections/status/{short_name}.");
|
|
130
|
-
case "unknown":
|
|
131
|
-
throw new errors.AirweaveSDKError({
|
|
132
|
-
message: _response.error.errorMessage,
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
62
|
/**
|
|
138
63
|
* Run a sync for a specific source by short_name.
|
|
139
64
|
*
|
|
@@ -168,7 +93,7 @@ class CursorDevelopment {
|
|
|
168
93
|
method: "POST",
|
|
169
94
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
170
95
|
? yield core.Supplier.get(this._options.apiKey)
|
|
171
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.0.
|
|
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),
|
|
172
97
|
contentType: "application/json",
|
|
173
98
|
requestType: "json",
|
|
174
99
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|