@airweave/sdk 0.6.3 → 0.6.26
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 +14 -3
- package/dist/cjs/Client.d.ts +4 -5
- package/dist/cjs/Client.js +6 -11
- package/dist/cjs/api/resources/collections/client/Client.d.ts +14 -27
- package/dist/cjs/api/resources/collections/client/Client.js +37 -85
- package/dist/cjs/api/resources/collections/client/requests/ListCollectionsGetRequest.d.ts +6 -7
- package/dist/cjs/api/resources/collections/client/requests/SearchCollectionsReadableIdSearchGetRequest.d.ts +10 -16
- package/dist/cjs/api/resources/collections/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/index.d.ts +0 -2
- package/dist/cjs/api/resources/index.js +1 -3
- package/dist/cjs/api/resources/sourceConnections/client/Client.d.ts +40 -9
- package/dist/cjs/api/resources/sourceConnections/client/Client.js +112 -20
- package/dist/cjs/api/resources/sourceConnections/client/requests/GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest.d.ts +3 -1
- package/dist/cjs/api/resources/sourceConnections/client/requests/ListSourceConnectionsGetRequest.d.ts +6 -4
- package/dist/cjs/api/resources/sourceConnections/client/requests/SourceConnectionCreate.d.ts +1 -1
- package/dist/cjs/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +23 -0
- package/dist/cjs/api/resources/sourceConnections/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/sources/client/Client.d.ts +17 -17
- package/dist/cjs/api/resources/sources/client/Client.js +24 -20
- package/dist/cjs/api/types/ActionCheckRequest.d.ts +2 -2
- package/dist/cjs/api/types/ActionCheckResponse.d.ts +1 -2
- package/dist/cjs/api/types/AuthProviderAuthentication.d.ts +2 -2
- package/dist/cjs/api/types/AuthProviderConnection.d.ts +2 -0
- package/dist/cjs/api/{resources/authProviders/client/requests → types}/AuthProviderConnectionCreate.d.ts +2 -10
- package/dist/cjs/api/types/AuthenticationDetails.d.ts +1 -1
- package/dist/cjs/api/{resources/collections/client/requests → types}/CollectionUpdate.d.ts +4 -4
- package/dist/cjs/api/types/EntitySummary.d.ts +0 -1
- package/dist/cjs/api/types/FieldCondition.d.ts +3 -3
- package/dist/cjs/api/types/MatchPhrase.d.ts +10 -0
- package/dist/cjs/api/types/Source.d.ts +2 -2
- package/dist/cjs/api/types/SourceConnectionListItem.d.ts +2 -7
- package/dist/cjs/api/types/SubscriptionInfo.d.ts +12 -0
- package/dist/cjs/api/types/Sync.d.ts +0 -1
- package/dist/cjs/api/types/SyncCreate.d.ts +0 -1
- package/dist/cjs/api/types/SyncJobStatus.d.ts +2 -1
- package/dist/cjs/api/types/SyncJobStatus.js +1 -0
- package/dist/cjs/api/types/SyncUpdate.d.ts +0 -1
- package/dist/cjs/api/types/SyncWithSourceConnection.d.ts +0 -1
- package/dist/cjs/api/types/UpdatePlanRequest.d.ts +2 -0
- package/dist/cjs/api/types/UsageSnapshot.d.ts +4 -8
- package/dist/cjs/api/types/index.d.ts +3 -3
- package/dist/cjs/api/types/index.js +3 -3
- package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
- package/dist/cjs/core/fetcher/EndpointSupplier.js +22 -0
- package/dist/cjs/core/fetcher/Fetcher.d.ts +5 -3
- package/dist/cjs/core/fetcher/Fetcher.js +4 -3
- package/dist/cjs/core/fetcher/index.d.ts +7 -5
- package/dist/cjs/core/fetcher/index.js +7 -5
- package/dist/cjs/core/fetcher/requestWithRetries.js +44 -8
- package/dist/cjs/core/headers.d.ts +2 -3
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +4 -5
- package/dist/esm/Client.mjs +2 -7
- package/dist/esm/api/resources/collections/client/Client.d.mts +14 -27
- package/dist/esm/api/resources/collections/client/Client.mjs +37 -85
- package/dist/esm/api/resources/collections/client/requests/ListCollectionsGetRequest.d.mts +6 -7
- package/dist/esm/api/resources/collections/client/requests/SearchCollectionsReadableIdSearchGetRequest.d.mts +10 -16
- package/dist/esm/api/resources/collections/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/index.d.mts +0 -2
- package/dist/esm/api/resources/index.mjs +0 -2
- package/dist/esm/api/resources/sourceConnections/client/Client.d.mts +40 -9
- package/dist/esm/api/resources/sourceConnections/client/Client.mjs +112 -20
- package/dist/esm/api/resources/sourceConnections/client/requests/GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest.d.mts +3 -1
- package/dist/esm/api/resources/sourceConnections/client/requests/ListSourceConnectionsGetRequest.d.mts +6 -4
- package/dist/esm/api/resources/sourceConnections/client/requests/SourceConnectionCreate.d.mts +1 -1
- package/dist/esm/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.mts +23 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/sources/client/Client.d.mts +17 -17
- package/dist/esm/api/resources/sources/client/Client.mjs +24 -20
- package/dist/esm/api/types/ActionCheckRequest.d.mts +2 -2
- package/dist/esm/api/types/ActionCheckResponse.d.mts +1 -2
- package/dist/esm/api/types/AuthProviderAuthentication.d.mts +2 -2
- package/dist/esm/api/types/AuthProviderConnection.d.mts +2 -0
- package/dist/esm/api/{resources/authProviders/client/requests → types}/AuthProviderConnectionCreate.d.mts +2 -10
- package/dist/esm/api/types/AuthenticationDetails.d.mts +1 -1
- package/dist/esm/api/{resources/collections/client/requests → types}/CollectionUpdate.d.mts +4 -4
- package/dist/esm/api/types/EntitySummary.d.mts +0 -1
- package/dist/esm/api/types/FieldCondition.d.mts +3 -3
- package/dist/esm/api/types/MatchPhrase.d.mts +10 -0
- package/dist/esm/api/types/Source.d.mts +2 -2
- package/dist/esm/api/types/SourceConnectionListItem.d.mts +2 -7
- package/dist/esm/api/types/SubscriptionInfo.d.mts +12 -0
- package/dist/esm/api/types/Sync.d.mts +0 -1
- package/dist/esm/api/types/SyncCreate.d.mts +0 -1
- package/dist/esm/api/types/SyncJobStatus.d.mts +2 -1
- package/dist/esm/api/types/SyncJobStatus.mjs +1 -0
- package/dist/esm/api/types/SyncUpdate.d.mts +0 -1
- package/dist/esm/api/types/SyncWithSourceConnection.d.mts +0 -1
- package/dist/esm/api/types/UpdatePlanRequest.d.mts +2 -0
- package/dist/esm/api/types/UsageSnapshot.d.mts +4 -8
- package/dist/esm/api/types/index.d.mts +3 -3
- package/dist/esm/api/types/index.mjs +3 -3
- package/dist/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
- package/dist/esm/core/fetcher/EndpointSupplier.mjs +19 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +5 -3
- package/dist/esm/core/fetcher/Fetcher.mjs +4 -3
- package/dist/esm/core/fetcher/index.d.mts +7 -5
- package/dist/esm/core/fetcher/index.mjs +3 -2
- package/dist/esm/core/fetcher/requestWithRetries.mjs +44 -8
- package/dist/esm/core/headers.d.mts +2 -3
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +8 -13
- package/reference.md +109 -250
- package/dist/cjs/api/resources/authProviders/client/Client.d.ts +0 -90
- package/dist/cjs/api/resources/authProviders/client/Client.js +0 -213
- package/dist/cjs/api/resources/authProviders/client/index.d.ts +0 -2
- package/dist/cjs/api/resources/authProviders/client/index.js +0 -17
- package/dist/cjs/api/resources/authProviders/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/authProviders/index.d.ts +0 -1
- package/dist/cjs/api/resources/authProviders/index.js +0 -17
- package/dist/cjs/api/types/CancelSubscriptionRequest.d.ts +0 -11
- package/dist/cjs/api/types/SourceConnectionUpdate.d.ts +0 -16
- package/dist/cjs/api/types/SyncSummary.d.ts +0 -11
- package/dist/cjs/api/types/SyncSummary.js +0 -5
- package/dist/esm/api/resources/authProviders/client/Client.d.mts +0 -90
- package/dist/esm/api/resources/authProviders/client/Client.mjs +0 -176
- package/dist/esm/api/resources/authProviders/client/index.d.mts +0 -2
- package/dist/esm/api/resources/authProviders/client/index.mjs +0 -1
- package/dist/esm/api/resources/authProviders/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/authProviders/index.d.mts +0 -1
- package/dist/esm/api/resources/authProviders/index.mjs +0 -1
- package/dist/esm/api/types/CancelSubscriptionRequest.d.mts +0 -11
- package/dist/esm/api/types/SourceConnectionUpdate.d.mts +0 -16
- package/dist/esm/api/types/SyncSummary.d.mts +0 -11
- package/dist/esm/api/types/SyncSummary.mjs +0 -4
- /package/dist/cjs/api/{types → resources/sourceConnections/client/requests}/SourceConnectionUpdate.js +0 -0
- /package/dist/cjs/api/{resources/authProviders/client/requests → types}/AuthProviderConnectionCreate.js +0 -0
- /package/dist/cjs/api/{resources/collections/client/requests → types}/CollectionUpdate.js +0 -0
- /package/dist/cjs/api/types/{CancelSubscriptionRequest.js → MatchPhrase.js} +0 -0
- /package/dist/cjs/{api/resources/authProviders/client/requests/index.js → core/fetcher/EndpointMetadata.js} +0 -0
- /package/dist/esm/api/{types → resources/sourceConnections/client/requests}/SourceConnectionUpdate.mjs +0 -0
- /package/dist/esm/api/{resources/authProviders/client/requests → types}/AuthProviderConnectionCreate.mjs +0 -0
- /package/dist/esm/api/{resources/collections/client/requests → types}/CollectionUpdate.mjs +0 -0
- /package/dist/esm/api/types/{CancelSubscriptionRequest.mjs → MatchPhrase.mjs} +0 -0
- /package/dist/esm/{api/resources/authProviders/client/requests/index.mjs → core/fetcher/EndpointMetadata.mjs} +0 -0
|
@@ -31,7 +31,11 @@ export class SourceConnections {
|
|
|
31
31
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
|
-
* await client.sourceConnections.list(
|
|
34
|
+
* await client.sourceConnections.list({
|
|
35
|
+
* collection: "collection",
|
|
36
|
+
* skip: 1,
|
|
37
|
+
* limit: 1
|
|
38
|
+
* })
|
|
35
39
|
*/
|
|
36
40
|
list(request = {}, requestOptions) {
|
|
37
41
|
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
@@ -50,11 +54,12 @@ export class SourceConnections {
|
|
|
50
54
|
if (limit != null) {
|
|
51
55
|
_queryParams["limit"] = limit.toString();
|
|
52
56
|
}
|
|
57
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
53
58
|
const _response = yield core.fetcher({
|
|
54
|
-
url: core.url.join((
|
|
59
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirweaveSDKEnvironment.Production, "source-connections"),
|
|
55
60
|
method: "GET",
|
|
56
|
-
headers:
|
|
57
|
-
queryParameters: _queryParams,
|
|
61
|
+
headers: _headers,
|
|
62
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
58
63
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
59
64
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
60
65
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -106,6 +111,10 @@ export class SourceConnections {
|
|
|
106
111
|
* BYOC (Bring Your Own Client) is detected when client_id and client_secret
|
|
107
112
|
* are provided in OAuthBrowserAuthentication.
|
|
108
113
|
*
|
|
114
|
+
* sync_immediately defaults:
|
|
115
|
+
* - True for: direct, oauth_token, auth_provider
|
|
116
|
+
* - False for: oauth_browser, oauth_byoc (these sync after authentication)
|
|
117
|
+
*
|
|
109
118
|
* @param {AirweaveSDK.SourceConnectionCreate} request
|
|
110
119
|
* @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
|
|
111
120
|
*
|
|
@@ -123,11 +132,13 @@ export class SourceConnections {
|
|
|
123
132
|
__create(request, requestOptions) {
|
|
124
133
|
return __awaiter(this, void 0, void 0, function* () {
|
|
125
134
|
var _a, _b, _c;
|
|
135
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
126
136
|
const _response = yield core.fetcher({
|
|
127
|
-
url: core.url.join((
|
|
137
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirweaveSDKEnvironment.Production, "source-connections"),
|
|
128
138
|
method: "POST",
|
|
129
|
-
headers:
|
|
139
|
+
headers: _headers,
|
|
130
140
|
contentType: "application/json",
|
|
141
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
131
142
|
requestType: "json",
|
|
132
143
|
body: request,
|
|
133
144
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -183,10 +194,12 @@ export class SourceConnections {
|
|
|
183
194
|
__get(sourceConnectionId, requestOptions) {
|
|
184
195
|
return __awaiter(this, void 0, void 0, function* () {
|
|
185
196
|
var _a, _b, _c;
|
|
197
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
186
198
|
const _response = yield core.fetcher({
|
|
187
|
-
url: core.url.join((
|
|
199
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirweaveSDKEnvironment.Production, `source-connections/${encodeURIComponent(sourceConnectionId)}`),
|
|
188
200
|
method: "GET",
|
|
189
|
-
headers:
|
|
201
|
+
headers: _headers,
|
|
202
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
190
203
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
191
204
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
192
205
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -240,10 +253,12 @@ export class SourceConnections {
|
|
|
240
253
|
__delete(sourceConnectionId, requestOptions) {
|
|
241
254
|
return __awaiter(this, void 0, void 0, function* () {
|
|
242
255
|
var _a, _b, _c;
|
|
256
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
243
257
|
const _response = yield core.fetcher({
|
|
244
|
-
url: core.url.join((
|
|
258
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirweaveSDKEnvironment.Production, `source-connections/${encodeURIComponent(sourceConnectionId)}`),
|
|
245
259
|
method: "DELETE",
|
|
246
|
-
headers:
|
|
260
|
+
headers: _headers,
|
|
261
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
247
262
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
248
263
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
249
264
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -280,6 +295,75 @@ export class SourceConnections {
|
|
|
280
295
|
}
|
|
281
296
|
});
|
|
282
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* Update a source connection.
|
|
300
|
+
*
|
|
301
|
+
* Updateable fields:
|
|
302
|
+
* - name, description
|
|
303
|
+
* - config_fields
|
|
304
|
+
* - cron_schedule
|
|
305
|
+
* - auth_fields (direct auth only)
|
|
306
|
+
*
|
|
307
|
+
* @param {string} sourceConnectionId
|
|
308
|
+
* @param {AirweaveSDK.SourceConnectionUpdate} request
|
|
309
|
+
* @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
|
|
310
|
+
*
|
|
311
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
312
|
+
*
|
|
313
|
+
* @example
|
|
314
|
+
* await client.sourceConnections.update("source_connection_id")
|
|
315
|
+
*/
|
|
316
|
+
update(sourceConnectionId, request = {}, requestOptions) {
|
|
317
|
+
return core.HttpResponsePromise.fromPromise(this.__update(sourceConnectionId, request, requestOptions));
|
|
318
|
+
}
|
|
319
|
+
__update(sourceConnectionId_1) {
|
|
320
|
+
return __awaiter(this, arguments, void 0, function* (sourceConnectionId, request = {}, requestOptions) {
|
|
321
|
+
var _a, _b, _c;
|
|
322
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
323
|
+
const _response = yield core.fetcher({
|
|
324
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirweaveSDKEnvironment.Production, `source-connections/${encodeURIComponent(sourceConnectionId)}`),
|
|
325
|
+
method: "PATCH",
|
|
326
|
+
headers: _headers,
|
|
327
|
+
contentType: "application/json",
|
|
328
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
329
|
+
requestType: "json",
|
|
330
|
+
body: request,
|
|
331
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
332
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
333
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
334
|
+
});
|
|
335
|
+
if (_response.ok) {
|
|
336
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
337
|
+
}
|
|
338
|
+
if (_response.error.reason === "status-code") {
|
|
339
|
+
switch (_response.error.statusCode) {
|
|
340
|
+
case 422:
|
|
341
|
+
throw new AirweaveSDK.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
342
|
+
default:
|
|
343
|
+
throw new errors.AirweaveSDKError({
|
|
344
|
+
statusCode: _response.error.statusCode,
|
|
345
|
+
body: _response.error.body,
|
|
346
|
+
rawResponse: _response.rawResponse,
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
switch (_response.error.reason) {
|
|
351
|
+
case "non-json":
|
|
352
|
+
throw new errors.AirweaveSDKError({
|
|
353
|
+
statusCode: _response.error.statusCode,
|
|
354
|
+
body: _response.error.rawBody,
|
|
355
|
+
rawResponse: _response.rawResponse,
|
|
356
|
+
});
|
|
357
|
+
case "timeout":
|
|
358
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling PATCH /source-connections/{source_connection_id}.");
|
|
359
|
+
case "unknown":
|
|
360
|
+
throw new errors.AirweaveSDKError({
|
|
361
|
+
message: _response.error.errorMessage,
|
|
362
|
+
rawResponse: _response.rawResponse,
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
}
|
|
283
367
|
/**
|
|
284
368
|
* Trigger a sync run for a source connection.
|
|
285
369
|
*
|
|
@@ -299,10 +383,12 @@ export class SourceConnections {
|
|
|
299
383
|
__run(sourceConnectionId, requestOptions) {
|
|
300
384
|
return __awaiter(this, void 0, void 0, function* () {
|
|
301
385
|
var _a, _b, _c;
|
|
386
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
302
387
|
const _response = yield core.fetcher({
|
|
303
|
-
url: core.url.join((
|
|
388
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirweaveSDKEnvironment.Production, `source-connections/${encodeURIComponent(sourceConnectionId)}/run`),
|
|
304
389
|
method: "POST",
|
|
305
|
-
headers:
|
|
390
|
+
headers: _headers,
|
|
391
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
306
392
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
307
393
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
308
394
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -349,7 +435,9 @@ export class SourceConnections {
|
|
|
349
435
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
350
436
|
*
|
|
351
437
|
* @example
|
|
352
|
-
* await client.sourceConnections.getSourceConnectionJobs("source_connection_id"
|
|
438
|
+
* await client.sourceConnections.getSourceConnectionJobs("source_connection_id", {
|
|
439
|
+
* limit: 1
|
|
440
|
+
* })
|
|
353
441
|
*/
|
|
354
442
|
getSourceConnectionJobs(sourceConnectionId, request = {}, requestOptions) {
|
|
355
443
|
return core.HttpResponsePromise.fromPromise(this.__getSourceConnectionJobs(sourceConnectionId, request, requestOptions));
|
|
@@ -362,11 +450,12 @@ export class SourceConnections {
|
|
|
362
450
|
if (limit != null) {
|
|
363
451
|
_queryParams["limit"] = limit.toString();
|
|
364
452
|
}
|
|
453
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
365
454
|
const _response = yield core.fetcher({
|
|
366
|
-
url: core.url.join((
|
|
455
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirweaveSDKEnvironment.Production, `source-connections/${encodeURIComponent(sourceConnectionId)}/jobs`),
|
|
367
456
|
method: "GET",
|
|
368
|
-
headers:
|
|
369
|
-
queryParameters: _queryParams,
|
|
457
|
+
headers: _headers,
|
|
458
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
370
459
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
371
460
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
372
461
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -406,8 +495,9 @@ export class SourceConnections {
|
|
|
406
495
|
/**
|
|
407
496
|
* Cancel a running sync job for a source connection.
|
|
408
497
|
*
|
|
409
|
-
* This
|
|
410
|
-
*
|
|
498
|
+
* This endpoint requests cancellation and marks the job as CANCELLING.
|
|
499
|
+
* The workflow updates the final status to CANCELLED when it processes
|
|
500
|
+
* the cancellation request.
|
|
411
501
|
*
|
|
412
502
|
* @param {string} sourceConnectionId
|
|
413
503
|
* @param {string} jobId
|
|
@@ -424,10 +514,12 @@ export class SourceConnections {
|
|
|
424
514
|
__cancelJob(sourceConnectionId, jobId, requestOptions) {
|
|
425
515
|
return __awaiter(this, void 0, void 0, function* () {
|
|
426
516
|
var _a, _b, _c;
|
|
517
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
427
518
|
const _response = yield core.fetcher({
|
|
428
|
-
url: core.url.join((
|
|
519
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirweaveSDKEnvironment.Production, `source-connections/${encodeURIComponent(sourceConnectionId)}/jobs/${encodeURIComponent(jobId)}/cancel`),
|
|
429
520
|
method: "POST",
|
|
430
|
-
headers:
|
|
521
|
+
headers: _headers,
|
|
522
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
431
523
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
432
524
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
433
525
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
|
-
* {
|
|
6
|
+
* {
|
|
7
|
+
* collection: "collection",
|
|
8
|
+
* skip: 1,
|
|
9
|
+
* limit: 1
|
|
10
|
+
* }
|
|
7
11
|
*/
|
|
8
12
|
export interface ListSourceConnectionsGetRequest {
|
|
9
|
-
/**
|
|
10
|
-
* Filter by collection readable ID
|
|
11
|
-
*/
|
|
13
|
+
/** Filter by collection readable ID */
|
|
12
14
|
collection?: string;
|
|
13
15
|
skip?: number;
|
|
14
16
|
limit?: number;
|
package/dist/esm/api/resources/sourceConnections/client/requests/SourceConnectionCreate.d.mts
CHANGED
|
@@ -21,7 +21,7 @@ export interface SourceConnectionCreate {
|
|
|
21
21
|
/** Source-specific configuration */
|
|
22
22
|
config?: Record<string, unknown>;
|
|
23
23
|
schedule?: AirweaveSDK.ScheduleConfig;
|
|
24
|
-
/** Run initial sync after creation */
|
|
24
|
+
/** Run initial sync after creation. Defaults to True for direct/token/auth_provider, False for OAuth browser/BYOC flows (which sync after authentication) */
|
|
25
25
|
sync_immediately?: boolean;
|
|
26
26
|
/** Authentication config (defaults to OAuth browser flow for OAuth sources) */
|
|
27
27
|
authentication?: SourceConnectionCreate.Authentication;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {}
|
|
8
|
+
*/
|
|
9
|
+
export interface SourceConnectionUpdate {
|
|
10
|
+
name?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
/** Source-specific configuration */
|
|
13
|
+
config?: Record<string, unknown>;
|
|
14
|
+
schedule?: AirweaveSDK.ScheduleConfig;
|
|
15
|
+
/** Authentication config (defaults to OAuth browser flow for OAuth sources) */
|
|
16
|
+
authentication?: SourceConnectionUpdate.Authentication;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace SourceConnectionUpdate {
|
|
19
|
+
/**
|
|
20
|
+
* Authentication config (defaults to OAuth browser flow for OAuth sources)
|
|
21
|
+
*/
|
|
22
|
+
type Authentication = AirweaveSDK.DirectAuthentication | AirweaveSDK.OAuthTokenAuthentication | AirweaveSDK.OAuthBrowserAuthentication | AirweaveSDK.AuthProviderAuthentication;
|
|
23
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { type ListSourceConnectionsGetRequest } from "./ListSourceConnectionsGetRequest.mjs";
|
|
2
2
|
export { type SourceConnectionCreate } from "./SourceConnectionCreate.mjs";
|
|
3
|
+
export { type SourceConnectionUpdate } from "./SourceConnectionUpdate.mjs";
|
|
3
4
|
export { type GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest } from "./GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest.mjs";
|
|
@@ -11,7 +11,7 @@ export declare namespace Sources {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
apiKey: core.Supplier<string>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
15
|
}
|
|
16
16
|
interface RequestOptions {
|
|
17
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,8 +20,10 @@ export declare namespace Sources {
|
|
|
20
20
|
maxRetries?: number;
|
|
21
21
|
/** A hook to abort the request. */
|
|
22
22
|
abortSignal?: AbortSignal;
|
|
23
|
+
/** Additional query string parameters to include in the request. */
|
|
24
|
+
queryParams?: Record<string, unknown>;
|
|
23
25
|
/** Additional headers to include in the request. */
|
|
24
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
@@ -31,34 +33,32 @@ export declare class Sources {
|
|
|
31
33
|
protected readonly _options: Sources.Options;
|
|
32
34
|
constructor(_options: Sources.Options);
|
|
33
35
|
/**
|
|
34
|
-
*
|
|
36
|
+
* List all available data source connectors.
|
|
37
|
+
*
|
|
38
|
+
* <br/><br/>
|
|
39
|
+
* Returns the complete catalog of source types that Airweave can connect to.
|
|
35
40
|
*
|
|
36
|
-
* @param {string} shortName - Technical identifier of the source type (e.g., 'github', 'stripe', 'slack')
|
|
37
41
|
* @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
42
|
*
|
|
39
43
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
40
44
|
*
|
|
41
45
|
* @example
|
|
42
|
-
* await client.sources.
|
|
46
|
+
* await client.sources.list()
|
|
43
47
|
*/
|
|
44
|
-
|
|
45
|
-
private
|
|
48
|
+
list(requestOptions?: Sources.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Source[]>;
|
|
49
|
+
private __list;
|
|
46
50
|
/**
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* <br/><br/>
|
|
50
|
-
* Returns the complete catalog of source types that Airweave can connect to.
|
|
51
|
+
* Get detailed information about a specific data source connector.
|
|
51
52
|
*
|
|
53
|
+
* @param {string} shortName - Technical identifier of the source type (e.g., 'github', 'stripe', 'slack')
|
|
52
54
|
* @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
55
|
*
|
|
54
56
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
55
57
|
*
|
|
56
58
|
* @example
|
|
57
|
-
* await client.sources.
|
|
59
|
+
* await client.sources.read("short_name")
|
|
58
60
|
*/
|
|
59
|
-
|
|
60
|
-
private
|
|
61
|
-
protected _getCustomAuthorizationHeaders(): Promise<
|
|
62
|
-
"x-api-key": string;
|
|
63
|
-
}>;
|
|
61
|
+
read(shortName: string, requestOptions?: Sources.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Source>;
|
|
62
|
+
private __read;
|
|
63
|
+
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
64
64
|
}
|
|
@@ -23,26 +23,30 @@ export class Sources {
|
|
|
23
23
|
this._options = _options;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* List all available data source connectors.
|
|
27
|
+
*
|
|
28
|
+
* <br/><br/>
|
|
29
|
+
* Returns the complete catalog of source types that Airweave can connect to.
|
|
27
30
|
*
|
|
28
|
-
* @param {string} shortName - Technical identifier of the source type (e.g., 'github', 'stripe', 'slack')
|
|
29
31
|
* @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
32
|
*
|
|
31
33
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
32
34
|
*
|
|
33
35
|
* @example
|
|
34
|
-
* await client.sources.
|
|
36
|
+
* await client.sources.list()
|
|
35
37
|
*/
|
|
36
|
-
|
|
37
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
38
|
+
list(requestOptions) {
|
|
39
|
+
return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
|
|
38
40
|
}
|
|
39
|
-
|
|
41
|
+
__list(requestOptions) {
|
|
40
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
43
|
var _a, _b, _c;
|
|
44
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
42
45
|
const _response = yield core.fetcher({
|
|
43
|
-
url: core.url.join((
|
|
46
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirweaveSDKEnvironment.Production, "sources"),
|
|
44
47
|
method: "GET",
|
|
45
|
-
headers:
|
|
48
|
+
headers: _headers,
|
|
49
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
46
50
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
47
51
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
48
52
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -70,7 +74,7 @@ export class Sources {
|
|
|
70
74
|
rawResponse: _response.rawResponse,
|
|
71
75
|
});
|
|
72
76
|
case "timeout":
|
|
73
|
-
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /sources
|
|
77
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /sources.");
|
|
74
78
|
case "unknown":
|
|
75
79
|
throw new errors.AirweaveSDKError({
|
|
76
80
|
message: _response.error.errorMessage,
|
|
@@ -80,28 +84,28 @@ export class Sources {
|
|
|
80
84
|
});
|
|
81
85
|
}
|
|
82
86
|
/**
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* <br/><br/>
|
|
86
|
-
* Returns the complete catalog of source types that Airweave can connect to.
|
|
87
|
+
* Get detailed information about a specific data source connector.
|
|
87
88
|
*
|
|
89
|
+
* @param {string} shortName - Technical identifier of the source type (e.g., 'github', 'stripe', 'slack')
|
|
88
90
|
* @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
|
|
89
91
|
*
|
|
90
92
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
91
93
|
*
|
|
92
94
|
* @example
|
|
93
|
-
* await client.sources.
|
|
95
|
+
* await client.sources.read("short_name")
|
|
94
96
|
*/
|
|
95
|
-
|
|
96
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
97
|
+
read(shortName, requestOptions) {
|
|
98
|
+
return core.HttpResponsePromise.fromPromise(this.__read(shortName, requestOptions));
|
|
97
99
|
}
|
|
98
|
-
|
|
100
|
+
__read(shortName, requestOptions) {
|
|
99
101
|
return __awaiter(this, void 0, void 0, function* () {
|
|
100
102
|
var _a, _b, _c;
|
|
103
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
101
104
|
const _response = yield core.fetcher({
|
|
102
|
-
url: core.url.join((
|
|
105
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirweaveSDKEnvironment.Production, `sources/${encodeURIComponent(shortName)}`),
|
|
103
106
|
method: "GET",
|
|
104
|
-
headers:
|
|
107
|
+
headers: _headers,
|
|
108
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
105
109
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
106
110
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
107
111
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -129,7 +133,7 @@ export class Sources {
|
|
|
129
133
|
rawResponse: _response.rawResponse,
|
|
130
134
|
});
|
|
131
135
|
case "timeout":
|
|
132
|
-
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /sources/
|
|
136
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /sources/{short_name}.");
|
|
133
137
|
case "unknown":
|
|
134
138
|
throw new errors.AirweaveSDKError({
|
|
135
139
|
message: _response.error.errorMessage,
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
* Request
|
|
5
|
+
* Request body for checking multiple actions at once.
|
|
6
6
|
*/
|
|
7
7
|
export interface ActionCheckRequest {
|
|
8
|
-
/**
|
|
8
|
+
/** Map of action short name to amount to check */
|
|
9
9
|
actions: Record<string, number>;
|
|
10
10
|
}
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as AirweaveSDK from "../index.mjs";
|
|
5
5
|
/**
|
|
6
|
-
* Response
|
|
6
|
+
* Response containing per-action check results.
|
|
7
7
|
*/
|
|
8
8
|
export interface ActionCheckResponse {
|
|
9
|
-
/** Dictionary of action check results keyed by action type */
|
|
10
9
|
results: Record<string, AirweaveSDK.SingleActionCheckResponse>;
|
|
11
10
|
}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Authentication via external provider.
|
|
6
6
|
*/
|
|
7
7
|
export interface AuthProviderAuthentication {
|
|
8
|
-
/** Auth provider
|
|
9
|
-
|
|
8
|
+
/** Auth provider readable ID */
|
|
9
|
+
provider_readable_id: string;
|
|
10
10
|
/** Provider-specific configuration */
|
|
11
11
|
provider_config?: Record<string, unknown>;
|
|
12
12
|
}
|
|
@@ -1,17 +1,9 @@
|
|
|
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.mjs";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
* {
|
|
8
|
-
* name: "My Composio Connection",
|
|
9
|
-
* description: "My Composio Connection",
|
|
10
|
-
* short_name: "composio",
|
|
11
|
-
* auth_fields: {
|
|
12
|
-
* "api_key": "comp_1234567890abcdef"
|
|
13
|
-
* }
|
|
14
|
-
* }
|
|
6
|
+
* Schema for creating an auth provider connection with credentials.
|
|
15
7
|
*/
|
|
16
8
|
export interface AuthProviderConnectionCreate {
|
|
17
9
|
/** Human-readable name for this auth provider connection */
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* Schema for updating an existing collection.
|
|
6
|
+
*
|
|
7
|
+
* Only the collection's display name can be updated. The readable_id is immutable
|
|
8
|
+
* to maintain stable API endpoints and references.
|
|
9
9
|
*/
|
|
10
10
|
export interface CollectionUpdate {
|
|
11
11
|
/** Updated display name for the collection. Must be between 4 and 64 characters. */
|
|
@@ -20,14 +20,14 @@ export interface FieldCondition {
|
|
|
20
20
|
geo_polygon?: AirweaveSDK.GeoPolygon;
|
|
21
21
|
/** Check number of values of the field */
|
|
22
22
|
values_count?: AirweaveSDK.ValuesCount;
|
|
23
|
-
/** Check that the field is empty, alternative syntax for `is_empty:
|
|
23
|
+
/** Check that the field is empty, alternative syntax for `is_empty: 'field_name'` */
|
|
24
24
|
is_empty?: boolean;
|
|
25
|
-
/** Check that the field is null, alternative syntax for `is_null:
|
|
25
|
+
/** Check that the field is null, alternative syntax for `is_null: 'field_name'` */
|
|
26
26
|
is_null?: boolean;
|
|
27
27
|
}
|
|
28
28
|
export declare namespace FieldCondition {
|
|
29
29
|
/**
|
|
30
30
|
* Check if point has field with a given value
|
|
31
31
|
*/
|
|
32
|
-
type Match = AirweaveSDK.MatchValue | AirweaveSDK.MatchText | AirweaveSDK.MatchAny | AirweaveSDK.MatchExcept;
|
|
32
|
+
type Match = AirweaveSDK.MatchValue | AirweaveSDK.MatchText | AirweaveSDK.MatchPhrase | AirweaveSDK.MatchAny | AirweaveSDK.MatchExcept;
|
|
33
33
|
}
|
|
@@ -26,10 +26,10 @@ export interface Source {
|
|
|
26
26
|
class_name: string;
|
|
27
27
|
/** List of entity definition IDs that this source can produce. Defines the data schema and structure that this connector outputs. */
|
|
28
28
|
output_entity_definition_ids?: string[];
|
|
29
|
-
/** Organization identifier for custom source connectors. System sources have this set to null. */
|
|
30
|
-
organization_id?: string;
|
|
31
29
|
/** Categorization tags to help users discover and filter sources by domain or use case. */
|
|
32
30
|
labels?: string[];
|
|
31
|
+
/** Whether this source supports cursor-based continuous syncing for incremental data extraction. Sources with this capability can track their sync position and resume from where they left off. */
|
|
32
|
+
supports_continuous?: boolean;
|
|
33
33
|
/** Unique system identifier for this source type. Generated automatically when the source is registered. */
|
|
34
34
|
id: string;
|
|
35
35
|
/** Timestamp when this source type was registered in the system (ISO 8601 format). */
|