@airweave/sdk 0.1.45 → 0.1.46
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 +19 -5
- package/dist/cjs/Client.d.ts +41 -0
- package/dist/cjs/Client.js +74 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +9 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.js +52 -0
- package/dist/cjs/api/errors/index.d.ts +1 -0
- package/dist/cjs/api/errors/index.js +17 -0
- package/dist/cjs/api/index.d.ts +3 -0
- package/dist/cjs/api/index.js +19 -0
- package/dist/cjs/api/resources/collections/client/Client.d.ts +154 -0
- package/dist/cjs/api/resources/collections/client/Client.js +522 -0
- package/dist/cjs/api/resources/collections/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/collections/client/index.js +17 -0
- package/dist/cjs/api/resources/collections/client/requests/CollectionCreate.d.ts +16 -0
- package/dist/cjs/api/resources/collections/client/requests/CollectionUpdate.d.ts +13 -0
- package/dist/cjs/api/resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.d.ts +13 -0
- package/dist/cjs/api/resources/collections/client/requests/ListCollectionsCollectionsGetRequest.d.ts +17 -0
- package/dist/cjs/api/resources/collections/client/requests/SearchCollectionCollectionsReadableIdSearchGetRequest.d.ts +20 -0
- package/dist/cjs/api/resources/collections/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/collections/index.d.ts +1 -0
- package/dist/cjs/api/resources/collections/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +7 -0
- package/dist/cjs/api/resources/index.js +46 -0
- package/dist/cjs/api/resources/sourceConnections/client/Client.d.ts +204 -0
- package/dist/cjs/api/resources/sourceConnections/client/Client.js +668 -0
- package/dist/cjs/api/resources/sourceConnections/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/sourceConnections/client/index.js +17 -0
- package/dist/cjs/api/resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.d.ts +11 -0
- package/dist/cjs/api/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.d.ts +13 -0
- package/dist/cjs/api/resources/sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.d.ts +13 -0
- package/dist/cjs/api/resources/sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.d.ts +21 -0
- package/dist/cjs/api/resources/sourceConnections/client/requests/SourceConnectionCreate.d.ts +29 -0
- package/dist/cjs/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +30 -0
- package/dist/cjs/api/resources/sourceConnections/client/requests/index.d.ts +6 -0
- package/dist/cjs/api/resources/sourceConnections/index.d.ts +1 -0
- package/dist/cjs/api/resources/sourceConnections/index.js +17 -0
- package/dist/cjs/api/resources/sources/client/Client.d.ts +61 -0
- package/dist/cjs/api/resources/sources/client/Client.js +181 -0
- package/dist/cjs/api/resources/sources/index.d.ts +1 -0
- package/dist/cjs/api/resources/sources/index.js +17 -0
- package/dist/cjs/api/resources/whiteLabels/client/Client.d.ts +186 -0
- package/dist/cjs/api/resources/whiteLabels/client/Client.js +582 -0
- package/dist/cjs/api/resources/whiteLabels/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/whiteLabels/client/index.js +17 -0
- package/dist/cjs/api/resources/whiteLabels/client/requests/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.d.ts +16 -0
- package/dist/cjs/api/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +28 -0
- package/dist/cjs/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +23 -0
- package/dist/cjs/api/resources/whiteLabels/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/whiteLabels/index.d.ts +1 -0
- package/dist/cjs/api/resources/whiteLabels/index.js +17 -0
- package/dist/cjs/api/types/ApiKey.d.ts +17 -0
- package/dist/cjs/api/types/ApiKeyCreate.d.ts +10 -0
- package/dist/cjs/api/types/AuthType.d.ts +27 -0
- package/dist/cjs/api/types/AuthType.js +16 -0
- package/dist/cjs/api/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.d.ts +13 -0
- package/dist/cjs/api/types/Collection.d.ts +30 -0
- package/dist/cjs/api/types/Connection.d.ts +18 -0
- package/dist/cjs/api/types/DagEdge.d.ts +15 -0
- package/dist/cjs/api/types/DagEdgeCreate.d.ts +10 -0
- package/dist/cjs/api/types/DagNode.d.ts +20 -0
- package/dist/cjs/api/types/DagNodeCreate.d.ts +17 -0
- package/dist/cjs/api/types/Destination.d.ts +22 -0
- package/dist/cjs/api/types/DestinationWithAuthenticationFields.d.ts +23 -0
- package/dist/cjs/api/types/EmbeddingModel.d.ts +20 -0
- package/dist/cjs/api/types/EmbeddingModelWithAuthenticationFields.d.ts +21 -0
- package/dist/cjs/api/types/EntityDefinition.d.ts +21 -0
- package/dist/cjs/api/types/EntityDefinitionCreate.d.ts +19 -0
- package/dist/cjs/api/types/EntityDefinitionUpdate.d.ts +19 -0
- package/dist/cjs/api/types/Fields.d.ts +10 -0
- package/dist/cjs/api/types/HttpValidationError.d.ts +7 -0
- package/dist/cjs/api/types/IntegrationCredentialInDb.d.ts +18 -0
- package/dist/cjs/api/types/IntegrationCredentialRawCreate.d.ts +19 -0
- package/dist/cjs/api/types/InvitationCreate.d.ts +10 -0
- package/dist/cjs/api/types/InvitationResponse.d.ts +13 -0
- package/dist/cjs/api/types/MemberResponse.d.ts +15 -0
- package/dist/cjs/api/types/OAuth2AuthUrl.d.ts +13 -0
- package/dist/cjs/api/types/Organization.d.ts +14 -0
- package/dist/cjs/api/types/OrganizationCreate.d.ts +14 -0
- package/dist/cjs/api/types/OrganizationWithRole.d.ts +16 -0
- package/dist/cjs/api/types/ResponseType.d.ts +11 -0
- package/dist/cjs/api/types/SearchResponse.d.ts +17 -0
- package/dist/cjs/api/types/SearchStatus.d.ts +12 -0
- package/dist/cjs/api/types/Source.d.ts +39 -0
- package/dist/cjs/api/types/SourceConnection.d.ts +61 -0
- package/dist/cjs/api/types/SourceConnectionCreateWithCredential.d.ts +25 -0
- package/dist/cjs/api/types/SourceConnectionCreateWithWhiteLabel.d.ts +29 -0
- package/dist/cjs/api/types/SourceConnectionJob.d.ts +45 -0
- package/dist/cjs/api/types/SourceConnectionListItem.d.ts +29 -0
- package/dist/cjs/api/types/Sync.d.ts +24 -0
- package/dist/cjs/api/types/SyncCreate.d.ts +19 -0
- package/dist/cjs/api/types/SyncDag.d.ts +29 -0
- package/dist/cjs/api/types/SyncDagCreate.d.ts +14 -0
- package/dist/cjs/api/types/SyncDagUpdate.d.ts +14 -0
- package/dist/cjs/api/types/SyncJob.d.ts +30 -0
- package/dist/cjs/api/types/SyncJobStatus.d.ts +15 -0
- package/dist/cjs/api/types/SyncJobStatus.js +14 -0
- package/dist/cjs/api/types/SyncUpdate.d.ts +14 -0
- package/dist/cjs/api/types/SyncWithSourceConnection.d.ts +25 -0
- package/dist/cjs/api/types/Transformer.d.ts +19 -0
- package/dist/cjs/api/types/TransformerCreate.d.ts +15 -0
- package/dist/cjs/api/types/TransformerUpdate.d.ts +15 -0
- package/dist/cjs/api/types/User.d.ts +15 -0
- package/dist/cjs/api/types/UserCreate.d.ts +11 -0
- package/dist/cjs/api/types/UserOrganization.d.ts +14 -0
- package/dist/cjs/api/types/ValidationError.d.ts +14 -0
- package/dist/cjs/api/types/WhiteLabel.d.ts +32 -0
- package/dist/cjs/api/types/index.d.ts +65 -0
- package/dist/cjs/api/types/index.js +81 -0
- package/dist/cjs/core/fetcher/APIResponse.d.ts +20 -0
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +17 -0
- package/dist/cjs/core/fetcher/BinaryResponse.js +14 -0
- package/dist/cjs/core/fetcher/Fetcher.d.ts +40 -0
- package/dist/cjs/core/fetcher/Fetcher.js +120 -0
- package/dist/cjs/core/fetcher/Headers.d.ts +2 -0
- package/dist/cjs/core/fetcher/Headers.js +84 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/cjs/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/cjs/core/fetcher/RawResponse.js +44 -0
- package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +4 -0
- package/dist/cjs/core/fetcher/ResponseWithBody.js +6 -0
- package/dist/cjs/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/cjs/core/fetcher/createRequestUrl.js +8 -0
- package/dist/cjs/core/fetcher/getFetchFn.js +68 -0
- package/dist/cjs/core/fetcher/getRequestBody.js +23 -0
- package/dist/cjs/core/fetcher/getResponseBody.js +55 -0
- package/dist/cjs/core/fetcher/index.d.ts +9 -0
- package/dist/cjs/core/fetcher/index.js +15 -0
- package/dist/cjs/core/fetcher/makeRequest.js +42 -0
- package/dist/cjs/core/fetcher/requestWithRetries.js +40 -0
- package/dist/cjs/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/dist/cjs/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
- package/dist/cjs/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/dist/cjs/core/fetcher/stream-wrappers/chooseStreamWrapper.js +59 -0
- package/dist/cjs/core/headers.d.ts +3 -0
- package/dist/cjs/core/headers.js +29 -0
- package/dist/cjs/core/index.d.ts +3 -0
- package/dist/cjs/core/index.js +42 -0
- package/dist/cjs/core/json.d.ts +15 -0
- package/dist/cjs/core/json.js +24 -0
- package/dist/cjs/core/runtime/index.d.ts +1 -0
- package/dist/cjs/core/runtime/index.js +5 -0
- package/dist/cjs/core/runtime/runtime.d.ts +9 -0
- package/dist/cjs/core/runtime/runtime.js +102 -0
- package/dist/cjs/core/url/index.d.ts +2 -0
- package/dist/cjs/core/url/index.js +7 -0
- package/dist/cjs/core/url/join.d.ts +1 -0
- package/dist/cjs/core/url/join.js +49 -0
- package/dist/cjs/core/url/qs.d.ts +6 -0
- package/dist/cjs/core/url/qs.js +64 -0
- package/dist/cjs/errors/AirweaveSDKError.d.ts +15 -0
- package/dist/cjs/errors/AirweaveSDKError.js +30 -0
- package/dist/cjs/errors/index.d.ts +2 -0
- package/dist/cjs/errors/index.js +7 -0
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/index.js +44 -0
- package/dist/cjs/version.d.ts +1 -0
- package/dist/cjs/version.js +4 -0
- package/dist/esm/Client.d.mts +41 -0
- package/dist/esm/Client.mjs +37 -0
- package/dist/esm/api/errors/UnprocessableEntityError.d.mts +9 -0
- package/dist/esm/api/errors/UnprocessableEntityError.mjs +15 -0
- package/dist/esm/api/errors/index.d.mts +1 -0
- package/dist/esm/api/errors/index.mjs +1 -0
- package/dist/esm/api/index.d.mts +3 -0
- package/dist/esm/api/index.mjs +3 -0
- package/dist/esm/api/resources/collections/client/Client.d.mts +154 -0
- package/dist/esm/api/resources/collections/client/Client.mjs +485 -0
- package/dist/esm/api/resources/collections/client/index.d.mts +2 -0
- package/dist/esm/api/resources/collections/client/index.mjs +1 -0
- package/dist/esm/api/resources/collections/client/requests/CollectionCreate.d.mts +16 -0
- package/dist/esm/api/resources/collections/client/requests/CollectionCreate.mjs +4 -0
- package/dist/esm/api/resources/collections/client/requests/CollectionUpdate.d.mts +13 -0
- package/dist/esm/api/resources/collections/client/requests/CollectionUpdate.mjs +4 -0
- package/dist/esm/api/resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.d.mts +13 -0
- package/dist/esm/api/resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.mjs +4 -0
- package/dist/esm/api/resources/collections/client/requests/ListCollectionsCollectionsGetRequest.d.mts +17 -0
- package/dist/esm/api/resources/collections/client/requests/ListCollectionsCollectionsGetRequest.mjs +4 -0
- package/dist/esm/api/resources/collections/client/requests/SearchCollectionCollectionsReadableIdSearchGetRequest.d.mts +20 -0
- package/dist/esm/api/resources/collections/client/requests/SearchCollectionCollectionsReadableIdSearchGetRequest.mjs +4 -0
- package/dist/esm/api/resources/collections/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/collections/index.d.mts +1 -0
- package/dist/esm/api/resources/collections/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +7 -0
- package/dist/esm/api/resources/index.mjs +7 -0
- package/dist/esm/api/resources/sourceConnections/client/Client.d.mts +204 -0
- package/dist/esm/api/resources/sourceConnections/client/Client.mjs +631 -0
- package/dist/esm/api/resources/sourceConnections/client/index.d.mts +2 -0
- package/dist/esm/api/resources/sourceConnections/client/index.mjs +1 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.d.mts +11 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.mjs +4 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.d.mts +13 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.mjs +4 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.d.mts +13 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.mjs +4 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.d.mts +21 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.mjs +4 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/SourceConnectionCreate.d.mts +29 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/SourceConnectionCreate.mjs +4 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.mts +30 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.mjs +4 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/index.d.mts +6 -0
- package/dist/esm/api/resources/sourceConnections/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/sourceConnections/index.d.mts +1 -0
- package/dist/esm/api/resources/sourceConnections/index.mjs +1 -0
- package/dist/esm/api/resources/sources/client/Client.d.mts +61 -0
- package/dist/esm/api/resources/sources/client/Client.mjs +144 -0
- package/dist/esm/api/resources/sources/client/index.d.mts +1 -0
- package/dist/esm/api/resources/sources/client/index.mjs +1 -0
- package/dist/esm/api/resources/sources/index.d.mts +1 -0
- package/dist/esm/api/resources/sources/index.mjs +1 -0
- package/dist/esm/api/resources/whiteLabels/client/Client.d.mts +186 -0
- package/dist/esm/api/resources/whiteLabels/client/Client.mjs +545 -0
- package/dist/esm/api/resources/whiteLabels/client/index.d.mts +2 -0
- package/dist/esm/api/resources/whiteLabels/client/index.mjs +1 -0
- package/dist/esm/api/resources/whiteLabels/client/requests/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.d.mts +16 -0
- package/dist/esm/api/resources/whiteLabels/client/requests/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.mjs +4 -0
- package/dist/esm/api/resources/whiteLabels/client/requests/WhiteLabelCreate.d.mts +28 -0
- package/dist/esm/api/resources/whiteLabels/client/requests/WhiteLabelCreate.mjs +4 -0
- package/dist/esm/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.mts +23 -0
- package/dist/esm/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.mjs +4 -0
- package/dist/esm/api/resources/whiteLabels/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/whiteLabels/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/whiteLabels/index.d.mts +1 -0
- package/dist/esm/api/resources/whiteLabels/index.mjs +1 -0
- package/dist/esm/api/types/ApiKey.d.mts +17 -0
- package/dist/esm/api/types/ApiKey.mjs +4 -0
- package/dist/esm/api/types/ApiKeyCreate.d.mts +10 -0
- package/dist/esm/api/types/ApiKeyCreate.mjs +4 -0
- package/dist/esm/api/types/AuthType.d.mts +27 -0
- package/dist/esm/api/types/AuthType.mjs +13 -0
- package/dist/esm/api/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.mjs +4 -0
- package/dist/esm/api/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.d.mts +13 -0
- package/dist/esm/api/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.mjs +4 -0
- package/dist/esm/api/types/Collection.d.mts +30 -0
- package/dist/esm/api/types/Collection.mjs +4 -0
- package/dist/esm/api/types/CollectionStatus.mjs +9 -0
- package/dist/esm/api/types/ConfigField.mjs +4 -0
- package/dist/esm/api/types/ConfigValues.mjs +4 -0
- package/dist/esm/api/types/Connection.d.mts +18 -0
- package/dist/esm/api/types/Connection.mjs +4 -0
- package/dist/esm/api/types/ConnectionStatus.mjs +8 -0
- package/dist/esm/api/types/DagEdge.d.mts +15 -0
- package/dist/esm/api/types/DagEdge.mjs +4 -0
- package/dist/esm/api/types/DagEdgeCreate.d.mts +10 -0
- package/dist/esm/api/types/DagEdgeCreate.mjs +4 -0
- package/dist/esm/api/types/DagNode.d.mts +20 -0
- package/dist/esm/api/types/DagNode.mjs +4 -0
- package/dist/esm/api/types/DagNodeCreate.d.mts +17 -0
- package/dist/esm/api/types/DagNodeCreate.mjs +4 -0
- package/dist/esm/api/types/Destination.d.mts +22 -0
- package/dist/esm/api/types/Destination.mjs +4 -0
- package/dist/esm/api/types/DestinationWithAuthenticationFields.d.mts +23 -0
- package/dist/esm/api/types/DestinationWithAuthenticationFields.mjs +4 -0
- package/dist/esm/api/types/EmbeddingModel.d.mts +20 -0
- package/dist/esm/api/types/EmbeddingModel.mjs +4 -0
- package/dist/esm/api/types/EmbeddingModelWithAuthenticationFields.d.mts +21 -0
- package/dist/esm/api/types/EmbeddingModelWithAuthenticationFields.mjs +4 -0
- package/dist/esm/api/types/EntityCount.mjs +4 -0
- package/dist/esm/api/types/EntityDefinition.d.mts +21 -0
- package/dist/esm/api/types/EntityDefinition.mjs +4 -0
- package/dist/esm/api/types/EntityDefinitionCreate.d.mts +19 -0
- package/dist/esm/api/types/EntityDefinitionCreate.mjs +4 -0
- package/dist/esm/api/types/EntityDefinitionUpdate.d.mts +19 -0
- package/dist/esm/api/types/EntityDefinitionUpdate.mjs +4 -0
- package/dist/esm/api/types/EntityType.mjs +7 -0
- package/dist/esm/api/types/Fields.d.mts +10 -0
- package/dist/esm/api/types/Fields.mjs +4 -0
- package/dist/esm/api/types/HttpValidationError.d.mts +7 -0
- package/dist/esm/api/types/HttpValidationError.mjs +4 -0
- package/dist/esm/api/types/IntegrationCredentialInDb.d.mts +18 -0
- package/dist/esm/api/types/IntegrationCredentialInDb.mjs +4 -0
- package/dist/esm/api/types/IntegrationCredentialRawCreate.d.mts +19 -0
- package/dist/esm/api/types/IntegrationCredentialRawCreate.mjs +4 -0
- package/dist/esm/api/types/IntegrationType.mjs +8 -0
- package/dist/esm/api/types/InvitationCreate.d.mts +10 -0
- package/dist/esm/api/types/InvitationCreate.mjs +4 -0
- package/dist/esm/api/types/InvitationResponse.d.mts +13 -0
- package/dist/esm/api/types/InvitationResponse.mjs +4 -0
- package/dist/esm/api/types/MemberResponse.d.mts +15 -0
- package/dist/esm/api/types/MemberResponse.mjs +4 -0
- package/dist/esm/api/types/NodeType.mjs +9 -0
- package/dist/esm/api/types/OAuth2AuthUrl.d.mts +13 -0
- package/dist/esm/api/types/OAuth2AuthUrl.mjs +4 -0
- package/dist/esm/api/types/Organization.d.mts +14 -0
- package/dist/esm/api/types/Organization.mjs +4 -0
- package/dist/esm/api/types/OrganizationCreate.d.mts +14 -0
- package/dist/esm/api/types/OrganizationCreate.mjs +4 -0
- package/dist/esm/api/types/OrganizationWithRole.d.mts +16 -0
- package/dist/esm/api/types/OrganizationWithRole.mjs +4 -0
- package/dist/esm/api/types/ResponseType.d.mts +11 -0
- package/dist/esm/api/types/ResponseType.mjs +7 -0
- package/dist/esm/api/types/SearchResponse.d.mts +17 -0
- package/dist/esm/api/types/SearchResponse.mjs +4 -0
- package/dist/esm/api/types/SearchStatus.d.mts +12 -0
- package/dist/esm/api/types/SearchStatus.mjs +8 -0
- package/dist/esm/api/types/Source.d.mts +39 -0
- package/dist/esm/api/types/Source.mjs +4 -0
- package/dist/esm/api/types/SourceConnection.d.mts +61 -0
- package/dist/esm/api/types/SourceConnection.mjs +4 -0
- package/dist/esm/api/types/SourceConnectionCreateWithCredential.d.mts +25 -0
- package/dist/esm/api/types/SourceConnectionCreateWithCredential.mjs +4 -0
- package/dist/esm/api/types/SourceConnectionCreateWithWhiteLabel.d.mts +29 -0
- package/dist/esm/api/types/SourceConnectionCreateWithWhiteLabel.mjs +4 -0
- package/dist/esm/api/types/SourceConnectionJob.d.mts +45 -0
- package/dist/esm/api/types/SourceConnectionJob.mjs +4 -0
- package/dist/esm/api/types/SourceConnectionListItem.d.mts +29 -0
- package/dist/esm/api/types/SourceConnectionListItem.mjs +4 -0
- package/dist/esm/api/types/SourceConnectionStatus.mjs +8 -0
- package/dist/esm/api/types/Sync.d.mts +24 -0
- package/dist/esm/api/types/Sync.mjs +4 -0
- package/dist/esm/api/types/SyncCreate.d.mts +19 -0
- package/dist/esm/api/types/SyncCreate.mjs +4 -0
- package/dist/esm/api/types/SyncDag.d.mts +29 -0
- package/dist/esm/api/types/SyncDag.mjs +4 -0
- package/dist/esm/api/types/SyncDagCreate.d.mts +14 -0
- package/dist/esm/api/types/SyncDagCreate.mjs +4 -0
- package/dist/esm/api/types/SyncDagUpdate.d.mts +14 -0
- package/dist/esm/api/types/SyncDagUpdate.mjs +4 -0
- package/dist/esm/api/types/SyncJob.d.mts +30 -0
- package/dist/esm/api/types/SyncJob.mjs +4 -0
- package/dist/esm/api/types/SyncJobStatus.d.mts +15 -0
- package/dist/esm/api/types/SyncJobStatus.mjs +11 -0
- package/dist/esm/api/types/SyncStatus.mjs +8 -0
- package/dist/esm/api/types/SyncUpdate.d.mts +14 -0
- package/dist/esm/api/types/SyncUpdate.mjs +4 -0
- package/dist/esm/api/types/SyncWithSourceConnection.d.mts +25 -0
- package/dist/esm/api/types/SyncWithSourceConnection.mjs +4 -0
- package/dist/esm/api/types/Transformer.d.mts +19 -0
- package/dist/esm/api/types/Transformer.mjs +4 -0
- package/dist/esm/api/types/TransformerCreate.d.mts +15 -0
- package/dist/esm/api/types/TransformerCreate.mjs +4 -0
- package/dist/esm/api/types/TransformerUpdate.d.mts +15 -0
- package/dist/esm/api/types/TransformerUpdate.mjs +4 -0
- package/dist/esm/api/types/User.d.mts +15 -0
- package/dist/esm/api/types/User.mjs +4 -0
- package/dist/esm/api/types/UserCreate.d.mts +11 -0
- package/dist/esm/api/types/UserCreate.mjs +4 -0
- package/dist/esm/api/types/UserOrganization.d.mts +14 -0
- package/dist/esm/api/types/UserOrganization.mjs +4 -0
- package/dist/esm/api/types/ValidationError.d.mts +14 -0
- package/dist/esm/api/types/ValidationError.mjs +4 -0
- package/dist/esm/api/types/WhiteLabel.d.mts +32 -0
- package/dist/esm/api/types/WhiteLabel.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +65 -0
- package/dist/esm/api/types/index.mjs +65 -0
- package/dist/esm/core/fetcher/APIResponse.d.mts +20 -0
- package/dist/esm/core/fetcher/APIResponse.mjs +1 -0
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +17 -0
- package/dist/esm/core/fetcher/BinaryResponse.mjs +11 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +40 -0
- package/dist/esm/core/fetcher/Fetcher.mjs +116 -0
- package/dist/esm/core/fetcher/Headers.d.mts +2 -0
- package/dist/esm/core/fetcher/Headers.mjs +82 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +58 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.mjs +99 -0
- package/dist/esm/core/fetcher/RawResponse.d.mts +29 -0
- package/dist/esm/core/fetcher/RawResponse.mjs +40 -0
- package/dist/esm/core/fetcher/ResponseWithBody.d.mts +4 -0
- package/dist/esm/core/fetcher/ResponseWithBody.mjs +3 -0
- package/dist/esm/core/fetcher/Supplier.mjs +19 -0
- package/dist/esm/core/fetcher/createRequestUrl.d.mts +1 -0
- package/dist/esm/core/fetcher/createRequestUrl.mjs +5 -0
- package/dist/esm/core/fetcher/getFetchFn.mjs +32 -0
- package/dist/esm/core/fetcher/getHeader.mjs +8 -0
- package/dist/esm/core/fetcher/getRequestBody.mjs +20 -0
- package/dist/esm/core/fetcher/getResponseBody.mjs +52 -0
- package/dist/esm/core/fetcher/index.d.mts +9 -0
- package/dist/esm/core/fetcher/index.mjs +5 -0
- package/dist/esm/core/fetcher/makeRequest.mjs +38 -0
- package/dist/esm/core/fetcher/requestWithRetries.mjs +37 -0
- package/dist/esm/core/fetcher/signals.mjs +32 -0
- package/dist/esm/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.mts +30 -0
- package/dist/esm/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.mjs +243 -0
- package/dist/esm/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.mts +21 -0
- package/dist/esm/core/fetcher/stream-wrappers/NodePre18StreamWrapper.mjs +122 -0
- package/dist/esm/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.mts +31 -0
- package/dist/esm/core/fetcher/stream-wrappers/UndiciStreamWrapper.mjs +225 -0
- package/dist/esm/core/fetcher/stream-wrappers/chooseStreamWrapper.mjs +23 -0
- package/dist/esm/core/headers.d.mts +3 -0
- package/dist/esm/core/headers.mjs +25 -0
- package/dist/esm/core/index.d.mts +3 -0
- package/dist/esm/core/index.mjs +3 -0
- package/dist/esm/core/json.d.mts +15 -0
- package/dist/esm/core/json.mjs +19 -0
- package/dist/esm/core/runtime/index.d.mts +1 -0
- package/dist/esm/core/runtime/index.mjs +1 -0
- package/dist/esm/core/runtime/runtime.d.mts +9 -0
- package/dist/esm/core/runtime/runtime.mjs +99 -0
- package/dist/esm/core/url/index.d.mts +2 -0
- package/dist/esm/core/url/index.mjs +2 -0
- package/dist/esm/core/url/join.d.mts +1 -0
- package/dist/esm/core/url/join.mjs +46 -0
- package/dist/esm/core/url/qs.d.mts +6 -0
- package/dist/esm/core/url/qs.mjs +61 -0
- package/dist/esm/environments.mjs +7 -0
- package/dist/esm/errors/AirweaveSDKError.d.mts +15 -0
- package/dist/esm/errors/AirweaveSDKError.mjs +26 -0
- package/dist/esm/errors/AirweaveSDKTimeoutError.mjs +9 -0
- package/dist/esm/errors/index.d.mts +2 -0
- package/dist/esm/errors/index.mjs +2 -0
- package/dist/esm/index.d.mts +4 -0
- package/dist/esm/index.mjs +4 -0
- package/dist/esm/version.d.mts +1 -0
- package/dist/esm/version.mjs +1 -0
- package/package.json +39 -14
- package/reference.md +490 -200
- package/Client.d.ts +0 -37
- package/Client.js +0 -32
- package/api/errors/UnprocessableEntityError.d.ts +0 -8
- package/api/errors/UnprocessableEntityError.js +0 -51
- package/api/errors/index.d.ts +0 -1
- package/api/errors/index.js +0 -17
- package/api/index.d.ts +0 -3
- package/api/index.js +0 -19
- package/api/resources/collections/client/Client.d.ts +0 -135
- package/api/resources/collections/client/Client.js +0 -504
- package/api/resources/collections/client/index.d.ts +0 -1
- package/api/resources/collections/client/index.js +0 -17
- package/api/resources/collections/client/requests/CollectionCreate.d.ts +0 -15
- package/api/resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.d.ts +0 -10
- package/api/resources/collections/client/requests/ListCollectionsCollectionsGetRequest.d.ts +0 -11
- package/api/resources/collections/client/requests/SearchCollectionCollectionsReadableIdSearchGetRequest.d.ts +0 -20
- package/api/resources/collections/client/requests/index.d.ts +0 -4
- package/api/resources/collections/index.d.ts +0 -1
- package/api/resources/collections/index.js +0 -17
- package/api/resources/index.d.ts +0 -7
- package/api/resources/index.js +0 -46
- package/api/resources/sourceConnections/client/Client.d.ts +0 -189
- package/api/resources/sourceConnections/client/Client.js +0 -612
- package/api/resources/sourceConnections/client/index.d.ts +0 -1
- package/api/resources/sourceConnections/client/index.js +0 -17
- package/api/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.d.ts +0 -10
- package/api/resources/sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.d.ts +0 -10
- package/api/resources/sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.d.ts +0 -15
- package/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +0 -17
- package/api/resources/sourceConnections/client/requests/index.d.ts +0 -4
- package/api/resources/sourceConnections/index.d.ts +0 -1
- package/api/resources/sourceConnections/index.js +0 -17
- package/api/resources/sources/client/Client.d.ts +0 -71
- package/api/resources/sources/client/Client.js +0 -213
- package/api/resources/sources/index.d.ts +0 -1
- package/api/resources/sources/index.js +0 -17
- package/api/resources/whiteLabels/client/Client.d.ts +0 -167
- package/api/resources/whiteLabels/client/Client.js +0 -515
- package/api/resources/whiteLabels/client/index.d.ts +0 -1
- package/api/resources/whiteLabels/client/index.js +0 -17
- package/api/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +0 -20
- package/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +0 -13
- package/api/resources/whiteLabels/client/requests/index.d.ts +0 -2
- package/api/resources/whiteLabels/index.d.ts +0 -1
- package/api/resources/whiteLabels/index.js +0 -17
- package/api/types/ApiKey.d.ts +0 -17
- package/api/types/ApiKeyCreate.d.ts +0 -10
- package/api/types/AuthType.d.ts +0 -28
- package/api/types/AuthType.js +0 -16
- package/api/types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +0 -7
- package/api/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.d.ts +0 -8
- package/api/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +0 -9
- package/api/types/Chat.d.ts +0 -22
- package/api/types/ChatCreate.d.ts +0 -14
- package/api/types/ChatMessage.d.ts +0 -18
- package/api/types/ChatMessageCreate.d.ts +0 -10
- package/api/types/ChatUpdate.d.ts +0 -12
- package/api/types/Collection.d.ts +0 -19
- package/api/types/CollectionUpdate.d.ts +0 -10
- package/api/types/Connection.d.ts +0 -18
- package/api/types/DagEdge.d.ts +0 -15
- package/api/types/DagEdgeCreate.d.ts +0 -10
- package/api/types/DagNode.d.ts +0 -20
- package/api/types/DagNodeCreate.d.ts +0 -17
- package/api/types/Destination.d.ts +0 -22
- package/api/types/DestinationWithAuthenticationFields.d.ts +0 -23
- package/api/types/EmbeddingModel.d.ts +0 -20
- package/api/types/EmbeddingModelWithAuthenticationFields.d.ts +0 -21
- package/api/types/EntityDefinition.d.ts +0 -18
- package/api/types/EntityDefinitionCreate.d.ts +0 -16
- package/api/types/EntityDefinitionCreateEntitySchema.d.ts +0 -4
- package/api/types/EntityDefinitionEntitySchema.d.ts +0 -4
- package/api/types/EntityDefinitionUpdate.d.ts +0 -16
- package/api/types/EntityDefinitionUpdateEntitySchema.d.ts +0 -4
- package/api/types/EntityRelation.d.ts +0 -16
- package/api/types/EntityRelationCreate.d.ts +0 -12
- package/api/types/EntityRelationCreate.js +0 -5
- package/api/types/EntityRelationUpdate.d.ts +0 -12
- package/api/types/EntityRelationUpdate.js +0 -5
- package/api/types/Fields.d.ts +0 -10
- package/api/types/HttpValidationError.d.ts +0 -7
- package/api/types/Organization.d.ts +0 -13
- package/api/types/ResponseType.d.ts +0 -11
- package/api/types/SearchResponse.d.ts +0 -13
- package/api/types/SearchStatus.d.ts +0 -12
- package/api/types/Source.d.ts +0 -22
- package/api/types/SourceConnection.d.ts +0 -31
- package/api/types/SourceConnectionAuthFields.d.ts +0 -5
- package/api/types/SourceConnectionAuthFields.js +0 -5
- package/api/types/SourceConnectionCreate.d.ts +0 -21
- package/api/types/SourceConnectionJob.d.ts +0 -30
- package/api/types/SourceConnectionListItem.d.ts +0 -21
- package/api/types/SourceWithAuthenticationFields.d.ts +0 -23
- package/api/types/SourceWithAuthenticationFields.js +0 -5
- package/api/types/Sync.d.ts +0 -26
- package/api/types/SyncCreate.d.ts +0 -21
- package/api/types/SyncDag.d.ts +0 -29
- package/api/types/SyncDagCreate.d.ts +0 -14
- package/api/types/SyncDagUpdate.d.ts +0 -14
- package/api/types/SyncJob.d.ts +0 -29
- package/api/types/SyncJobStatus.d.ts +0 -13
- package/api/types/SyncJobStatus.js +0 -12
- package/api/types/SyncUpdate.d.ts +0 -16
- package/api/types/SyncWithSourceConnection.d.ts +0 -27
- package/api/types/Transformer.d.ts +0 -19
- package/api/types/TransformerCreate.d.ts +0 -15
- package/api/types/TransformerUpdate.d.ts +0 -15
- package/api/types/User.d.ts +0 -13
- package/api/types/UserCreate.d.ts +0 -11
- package/api/types/ValidationError.d.ts +0 -9
- package/api/types/ValidationErrorLocItem.d.ts +0 -4
- package/api/types/ValidationErrorLocItem.js +0 -5
- package/api/types/WhiteLabel.d.ts +0 -19
- package/api/types/index.d.ts +0 -72
- package/api/types/index.js +0 -88
- package/core/fetcher/APIResponse.d.ts +0 -10
- package/core/fetcher/Fetcher.d.ts +0 -39
- package/core/fetcher/Fetcher.js +0 -99
- package/core/fetcher/createRequestUrl.d.ts +0 -1
- package/core/fetcher/createRequestUrl.js +0 -12
- package/core/fetcher/getFetchFn.js +0 -68
- package/core/fetcher/getRequestBody.js +0 -22
- package/core/fetcher/getResponseBody.js +0 -54
- package/core/fetcher/index.d.ts +0 -5
- package/core/fetcher/index.js +0 -9
- package/core/fetcher/makeRequest.js +0 -42
- package/core/fetcher/requestWithRetries.js +0 -40
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/core/index.d.ts +0 -3
- package/core/index.js +0 -42
- package/core/runtime/index.d.ts +0 -1
- package/core/runtime/index.js +0 -5
- package/core/runtime/runtime.d.ts +0 -9
- package/core/runtime/runtime.js +0 -93
- package/core/schemas/Schema.d.ts +0 -85
- package/core/schemas/Schema.js +0 -22
- package/core/schemas/builders/bigint/bigint.d.ts +0 -2
- package/core/schemas/builders/bigint/bigint.js +0 -49
- package/core/schemas/builders/bigint/index.d.ts +0 -1
- package/core/schemas/builders/bigint/index.js +0 -5
- package/core/schemas/builders/date/date.d.ts +0 -2
- package/core/schemas/builders/date/date.js +0 -62
- package/core/schemas/builders/date/index.d.ts +0 -1
- package/core/schemas/builders/date/index.js +0 -5
- package/core/schemas/builders/enum/enum.d.ts +0 -2
- package/core/schemas/builders/enum/enum.js +0 -38
- package/core/schemas/builders/enum/index.d.ts +0 -1
- package/core/schemas/builders/enum/index.js +0 -5
- package/core/schemas/builders/index.d.ts +0 -14
- package/core/schemas/builders/index.js +0 -30
- package/core/schemas/builders/lazy/index.d.ts +0 -3
- package/core/schemas/builders/lazy/index.js +0 -7
- package/core/schemas/builders/lazy/lazy.d.ts +0 -5
- package/core/schemas/builders/lazy/lazy.js +0 -24
- package/core/schemas/builders/lazy/lazyObject.d.ts +0 -3
- package/core/schemas/builders/lazy/lazyObject.js +0 -11
- package/core/schemas/builders/list/index.d.ts +0 -1
- package/core/schemas/builders/list/index.js +0 -5
- package/core/schemas/builders/list/list.d.ts +0 -2
- package/core/schemas/builders/list/list.js +0 -54
- package/core/schemas/builders/literals/booleanLiteral.d.ts +0 -2
- package/core/schemas/builders/literals/booleanLiteral.js +0 -28
- package/core/schemas/builders/literals/index.d.ts +0 -2
- package/core/schemas/builders/literals/index.js +0 -7
- package/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
- package/core/schemas/builders/literals/stringLiteral.js +0 -28
- package/core/schemas/builders/object/index.d.ts +0 -6
- package/core/schemas/builders/object/index.js +0 -11
- package/core/schemas/builders/object/object.d.ts +0 -3
- package/core/schemas/builders/object/object.js +0 -260
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +0 -6
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -7
- package/core/schemas/builders/object/property.d.ts +0 -8
- package/core/schemas/builders/object/property.js +0 -15
- package/core/schemas/builders/object/types.d.ts +0 -31
- package/core/schemas/builders/object/types.js +0 -2
- package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -9
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -53
- package/core/schemas/builders/object-like/index.d.ts +0 -2
- package/core/schemas/builders/object-like/index.js +0 -6
- package/core/schemas/builders/object-like/types.d.ts +0 -7
- package/core/schemas/builders/object-like/types.js +0 -2
- package/core/schemas/builders/primitives/any.d.ts +0 -1
- package/core/schemas/builders/primitives/any.js +0 -6
- package/core/schemas/builders/primitives/boolean.d.ts +0 -1
- package/core/schemas/builders/primitives/boolean.js +0 -25
- package/core/schemas/builders/primitives/index.d.ts +0 -5
- package/core/schemas/builders/primitives/index.js +0 -13
- package/core/schemas/builders/primitives/number.d.ts +0 -1
- package/core/schemas/builders/primitives/number.js +0 -25
- package/core/schemas/builders/primitives/string.d.ts +0 -1
- package/core/schemas/builders/primitives/string.js +0 -25
- package/core/schemas/builders/primitives/unknown.d.ts +0 -1
- package/core/schemas/builders/primitives/unknown.js +0 -6
- package/core/schemas/builders/record/index.d.ts +0 -2
- package/core/schemas/builders/record/index.js +0 -5
- package/core/schemas/builders/record/record.d.ts +0 -3
- package/core/schemas/builders/record/record.js +0 -94
- package/core/schemas/builders/record/types.d.ts +0 -4
- package/core/schemas/builders/record/types.js +0 -2
- package/core/schemas/builders/schema-utils/JsonError.d.ts +0 -5
- package/core/schemas/builders/schema-utils/JsonError.js +0 -12
- package/core/schemas/builders/schema-utils/ParseError.d.ts +0 -5
- package/core/schemas/builders/schema-utils/ParseError.js +0 -12
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -17
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -81
- package/core/schemas/builders/schema-utils/index.d.ts +0 -4
- package/core/schemas/builders/schema-utils/index.js +0 -11
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +0 -2
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -9
- package/core/schemas/builders/set/index.d.ts +0 -1
- package/core/schemas/builders/set/index.js +0 -5
- package/core/schemas/builders/set/set.d.ts +0 -2
- package/core/schemas/builders/set/set.js +0 -43
- package/core/schemas/builders/undiscriminated-union/index.d.ts +0 -2
- package/core/schemas/builders/undiscriminated-union/index.js +0 -5
- package/core/schemas/builders/undiscriminated-union/types.d.ts +0 -4
- package/core/schemas/builders/undiscriminated-union/types.js +0 -2
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +0 -3
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -39
- package/core/schemas/builders/union/discriminant.d.ts +0 -5
- package/core/schemas/builders/union/discriminant.js +0 -9
- package/core/schemas/builders/union/index.d.ts +0 -4
- package/core/schemas/builders/union/index.js +0 -7
- package/core/schemas/builders/union/types.d.ts +0 -13
- package/core/schemas/builders/union/types.js +0 -2
- package/core/schemas/builders/union/union.d.ts +0 -4
- package/core/schemas/builders/union/union.js +0 -129
- package/core/schemas/index.d.ts +0 -2
- package/core/schemas/index.js +0 -17
- package/core/schemas/utils/MaybePromise.d.ts +0 -1
- package/core/schemas/utils/MaybePromise.js +0 -2
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -7
- package/core/schemas/utils/addQuestionMarksToNullableProperties.js +0 -2
- package/core/schemas/utils/createIdentitySchemaCreator.d.ts +0 -2
- package/core/schemas/utils/createIdentitySchemaCreator.js +0 -15
- package/core/schemas/utils/entries.d.ts +0 -1
- package/core/schemas/utils/entries.js +0 -6
- package/core/schemas/utils/filterObject.d.ts +0 -1
- package/core/schemas/utils/filterObject.js +0 -13
- package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +0 -1
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -27
- package/core/schemas/utils/isPlainObject.d.ts +0 -1
- package/core/schemas/utils/isPlainObject.js +0 -17
- package/core/schemas/utils/keys.d.ts +0 -1
- package/core/schemas/utils/keys.js +0 -6
- package/core/schemas/utils/maybeSkipValidation.d.ts +0 -2
- package/core/schemas/utils/maybeSkipValidation.js +0 -27
- package/core/schemas/utils/partition.d.ts +0 -1
- package/core/schemas/utils/partition.js +0 -15
- package/dist/Client.d.ts +0 -37
- package/dist/Client.js +0 -32
- package/dist/api/errors/UnprocessableEntityError.d.ts +0 -8
- package/dist/api/errors/UnprocessableEntityError.js +0 -51
- package/dist/api/errors/index.d.ts +0 -1
- package/dist/api/errors/index.js +0 -17
- package/dist/api/index.d.ts +0 -3
- package/dist/api/index.js +0 -19
- package/dist/api/resources/collections/client/Client.d.ts +0 -135
- package/dist/api/resources/collections/client/Client.js +0 -504
- package/dist/api/resources/collections/client/index.d.ts +0 -1
- package/dist/api/resources/collections/client/index.js +0 -17
- package/dist/api/resources/collections/client/requests/CollectionCreate.d.ts +0 -15
- package/dist/api/resources/collections/client/requests/CollectionCreate.js +0 -5
- package/dist/api/resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.d.ts +0 -10
- package/dist/api/resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.js +0 -5
- package/dist/api/resources/collections/client/requests/ListCollectionsCollectionsGetRequest.d.ts +0 -11
- package/dist/api/resources/collections/client/requests/ListCollectionsCollectionsGetRequest.js +0 -5
- package/dist/api/resources/collections/client/requests/SearchCollectionCollectionsReadableIdSearchGetRequest.d.ts +0 -20
- package/dist/api/resources/collections/client/requests/SearchCollectionCollectionsReadableIdSearchGetRequest.js +0 -5
- package/dist/api/resources/collections/client/requests/index.d.ts +0 -4
- package/dist/api/resources/collections/client/requests/index.js +0 -2
- package/dist/api/resources/collections/index.d.ts +0 -1
- package/dist/api/resources/collections/index.js +0 -17
- package/dist/api/resources/index.d.ts +0 -7
- package/dist/api/resources/index.js +0 -46
- package/dist/api/resources/sourceConnections/client/Client.d.ts +0 -189
- package/dist/api/resources/sourceConnections/client/Client.js +0 -612
- package/dist/api/resources/sourceConnections/client/index.d.ts +0 -1
- package/dist/api/resources/sourceConnections/client/index.js +0 -17
- package/dist/api/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.d.ts +0 -10
- package/dist/api/resources/sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.d.ts +0 -10
- package/dist/api/resources/sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.js +0 -5
- package/dist/api/resources/sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.d.ts +0 -15
- package/dist/api/resources/sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.js +0 -5
- package/dist/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +0 -17
- package/dist/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.js +0 -5
- package/dist/api/resources/sourceConnections/client/requests/index.d.ts +0 -4
- package/dist/api/resources/sourceConnections/client/requests/index.js +0 -2
- package/dist/api/resources/sourceConnections/index.d.ts +0 -1
- package/dist/api/resources/sourceConnections/index.js +0 -17
- package/dist/api/resources/sources/client/Client.d.ts +0 -71
- package/dist/api/resources/sources/client/Client.js +0 -213
- package/dist/api/resources/sources/client/index.js +0 -2
- package/dist/api/resources/sources/index.d.ts +0 -1
- package/dist/api/resources/sources/index.js +0 -17
- package/dist/api/resources/whiteLabels/client/Client.d.ts +0 -167
- package/dist/api/resources/whiteLabels/client/Client.js +0 -515
- package/dist/api/resources/whiteLabels/client/index.d.ts +0 -1
- package/dist/api/resources/whiteLabels/client/index.js +0 -17
- package/dist/api/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +0 -20
- package/dist/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +0 -13
- package/dist/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.js +0 -5
- package/dist/api/resources/whiteLabels/client/requests/index.d.ts +0 -2
- package/dist/api/resources/whiteLabels/client/requests/index.js +0 -2
- package/dist/api/resources/whiteLabels/index.d.ts +0 -1
- package/dist/api/resources/whiteLabels/index.js +0 -17
- package/dist/api/types/ApiKey.d.ts +0 -17
- package/dist/api/types/ApiKey.js +0 -5
- package/dist/api/types/ApiKeyCreate.d.ts +0 -10
- package/dist/api/types/ApiKeyCreate.js +0 -5
- package/dist/api/types/AuthType.d.ts +0 -28
- package/dist/api/types/AuthType.js +0 -16
- package/dist/api/types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +0 -7
- package/dist/api/types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +0 -5
- package/dist/api/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js +0 -5
- package/dist/api/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.d.ts +0 -8
- package/dist/api/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.js +0 -5
- package/dist/api/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +0 -9
- package/dist/api/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +0 -5
- package/dist/api/types/Chat.d.ts +0 -22
- package/dist/api/types/Chat.js +0 -5
- package/dist/api/types/ChatCreate.d.ts +0 -14
- package/dist/api/types/ChatCreate.js +0 -5
- package/dist/api/types/ChatMessage.d.ts +0 -18
- package/dist/api/types/ChatMessage.js +0 -5
- package/dist/api/types/ChatMessageCreate.d.ts +0 -10
- package/dist/api/types/ChatMessageCreate.js +0 -5
- package/dist/api/types/ChatUpdate.d.ts +0 -12
- package/dist/api/types/ChatUpdate.js +0 -5
- package/dist/api/types/Collection.d.ts +0 -19
- package/dist/api/types/Collection.js +0 -5
- package/dist/api/types/CollectionStatus.js +0 -12
- package/dist/api/types/CollectionUpdate.d.ts +0 -10
- package/dist/api/types/CollectionUpdate.js +0 -5
- package/dist/api/types/ConfigField.js +0 -5
- package/dist/api/types/ConfigValues.js +0 -5
- package/dist/api/types/Connection.d.ts +0 -18
- package/dist/api/types/Connection.js +0 -5
- package/dist/api/types/ConnectionStatus.js +0 -11
- package/dist/api/types/DagEdge.d.ts +0 -15
- package/dist/api/types/DagEdge.js +0 -5
- package/dist/api/types/DagEdgeCreate.d.ts +0 -10
- package/dist/api/types/DagEdgeCreate.js +0 -5
- package/dist/api/types/DagNode.d.ts +0 -20
- package/dist/api/types/DagNode.js +0 -5
- package/dist/api/types/DagNodeCreate.d.ts +0 -17
- package/dist/api/types/DagNodeCreate.js +0 -5
- package/dist/api/types/Destination.d.ts +0 -22
- package/dist/api/types/Destination.js +0 -5
- package/dist/api/types/DestinationWithAuthenticationFields.d.ts +0 -23
- package/dist/api/types/DestinationWithAuthenticationFields.js +0 -5
- package/dist/api/types/EmbeddingModel.d.ts +0 -20
- package/dist/api/types/EmbeddingModel.js +0 -5
- package/dist/api/types/EmbeddingModelWithAuthenticationFields.d.ts +0 -21
- package/dist/api/types/EmbeddingModelWithAuthenticationFields.js +0 -5
- package/dist/api/types/EntityCount.js +0 -5
- package/dist/api/types/EntityDefinition.d.ts +0 -18
- package/dist/api/types/EntityDefinition.js +0 -5
- package/dist/api/types/EntityDefinitionCreate.d.ts +0 -16
- package/dist/api/types/EntityDefinitionCreate.js +0 -5
- package/dist/api/types/EntityDefinitionCreateEntitySchema.d.ts +0 -4
- package/dist/api/types/EntityDefinitionCreateEntitySchema.js +0 -5
- package/dist/api/types/EntityDefinitionEntitySchema.d.ts +0 -4
- package/dist/api/types/EntityDefinitionEntitySchema.js +0 -5
- package/dist/api/types/EntityDefinitionUpdate.d.ts +0 -16
- package/dist/api/types/EntityDefinitionUpdate.js +0 -5
- package/dist/api/types/EntityDefinitionUpdateEntitySchema.d.ts +0 -4
- package/dist/api/types/EntityDefinitionUpdateEntitySchema.js +0 -5
- package/dist/api/types/EntityRelation.d.ts +0 -16
- package/dist/api/types/EntityRelation.js +0 -5
- package/dist/api/types/EntityRelationCreate.d.ts +0 -12
- package/dist/api/types/EntityRelationCreate.js +0 -5
- package/dist/api/types/EntityRelationUpdate.d.ts +0 -12
- package/dist/api/types/EntityRelationUpdate.js +0 -5
- package/dist/api/types/EntityType.js +0 -10
- package/dist/api/types/Fields.d.ts +0 -10
- package/dist/api/types/Fields.js +0 -5
- package/dist/api/types/HttpValidationError.d.ts +0 -7
- package/dist/api/types/HttpValidationError.js +0 -5
- package/dist/api/types/IntegrationType.js +0 -11
- package/dist/api/types/NodeType.js +0 -12
- package/dist/api/types/Organization.d.ts +0 -13
- package/dist/api/types/Organization.js +0 -5
- package/dist/api/types/ResponseType.d.ts +0 -11
- package/dist/api/types/ResponseType.js +0 -10
- package/dist/api/types/SearchResponse.d.ts +0 -13
- package/dist/api/types/SearchResponse.js +0 -5
- package/dist/api/types/SearchStatus.d.ts +0 -12
- package/dist/api/types/SearchStatus.js +0 -11
- package/dist/api/types/Source.d.ts +0 -22
- package/dist/api/types/Source.js +0 -5
- package/dist/api/types/SourceConnection.d.ts +0 -31
- package/dist/api/types/SourceConnection.js +0 -5
- package/dist/api/types/SourceConnectionAuthFields.d.ts +0 -5
- package/dist/api/types/SourceConnectionAuthFields.js +0 -5
- package/dist/api/types/SourceConnectionCreate.d.ts +0 -21
- package/dist/api/types/SourceConnectionCreate.js +0 -5
- package/dist/api/types/SourceConnectionJob.d.ts +0 -30
- package/dist/api/types/SourceConnectionJob.js +0 -5
- package/dist/api/types/SourceConnectionListItem.d.ts +0 -21
- package/dist/api/types/SourceConnectionListItem.js +0 -5
- package/dist/api/types/SourceConnectionStatus.js +0 -11
- package/dist/api/types/SourceWithAuthenticationFields.d.ts +0 -23
- package/dist/api/types/SourceWithAuthenticationFields.js +0 -5
- package/dist/api/types/Sync.d.ts +0 -26
- package/dist/api/types/Sync.js +0 -5
- package/dist/api/types/SyncCreate.d.ts +0 -21
- package/dist/api/types/SyncCreate.js +0 -5
- package/dist/api/types/SyncDag.d.ts +0 -29
- package/dist/api/types/SyncDag.js +0 -5
- package/dist/api/types/SyncDagCreate.d.ts +0 -14
- package/dist/api/types/SyncDagCreate.js +0 -5
- package/dist/api/types/SyncDagUpdate.d.ts +0 -14
- package/dist/api/types/SyncDagUpdate.js +0 -5
- package/dist/api/types/SyncJob.d.ts +0 -29
- package/dist/api/types/SyncJob.js +0 -5
- package/dist/api/types/SyncJobStatus.d.ts +0 -13
- package/dist/api/types/SyncJobStatus.js +0 -12
- package/dist/api/types/SyncStatus.js +0 -11
- package/dist/api/types/SyncUpdate.d.ts +0 -16
- package/dist/api/types/SyncUpdate.js +0 -5
- package/dist/api/types/SyncWithSourceConnection.d.ts +0 -27
- package/dist/api/types/SyncWithSourceConnection.js +0 -5
- package/dist/api/types/Transformer.d.ts +0 -19
- package/dist/api/types/Transformer.js +0 -5
- package/dist/api/types/TransformerCreate.d.ts +0 -15
- package/dist/api/types/TransformerCreate.js +0 -5
- package/dist/api/types/TransformerUpdate.d.ts +0 -15
- package/dist/api/types/TransformerUpdate.js +0 -5
- package/dist/api/types/User.d.ts +0 -13
- package/dist/api/types/User.js +0 -5
- package/dist/api/types/UserCreate.d.ts +0 -11
- package/dist/api/types/UserCreate.js +0 -5
- package/dist/api/types/ValidationError.d.ts +0 -9
- package/dist/api/types/ValidationError.js +0 -5
- package/dist/api/types/ValidationErrorLocItem.d.ts +0 -4
- package/dist/api/types/ValidationErrorLocItem.js +0 -5
- package/dist/api/types/WhiteLabel.d.ts +0 -19
- package/dist/api/types/WhiteLabel.js +0 -5
- package/dist/api/types/index.d.ts +0 -72
- package/dist/api/types/index.js +0 -88
- package/dist/core/fetcher/APIResponse.d.ts +0 -10
- package/dist/core/fetcher/APIResponse.js +0 -2
- package/dist/core/fetcher/Fetcher.d.ts +0 -39
- package/dist/core/fetcher/Fetcher.js +0 -99
- package/dist/core/fetcher/Supplier.js +0 -22
- package/dist/core/fetcher/createRequestUrl.d.ts +0 -1
- package/dist/core/fetcher/createRequestUrl.js +0 -12
- package/dist/core/fetcher/getFetchFn.js +0 -68
- package/dist/core/fetcher/getHeader.js +0 -11
- package/dist/core/fetcher/getRequestBody.js +0 -22
- package/dist/core/fetcher/getResponseBody.js +0 -54
- package/dist/core/fetcher/index.d.ts +0 -5
- package/dist/core/fetcher/index.js +0 -9
- package/dist/core/fetcher/makeRequest.js +0 -42
- package/dist/core/fetcher/requestWithRetries.js +0 -40
- package/dist/core/fetcher/signals.js +0 -36
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/dist/core/index.d.ts +0 -3
- package/dist/core/index.js +0 -42
- package/dist/core/runtime/index.d.ts +0 -1
- package/dist/core/runtime/index.js +0 -5
- package/dist/core/runtime/runtime.d.ts +0 -9
- package/dist/core/runtime/runtime.js +0 -93
- package/dist/core/schemas/Schema.d.ts +0 -85
- package/dist/core/schemas/Schema.js +0 -22
- package/dist/core/schemas/builders/bigint/bigint.d.ts +0 -2
- package/dist/core/schemas/builders/bigint/bigint.js +0 -49
- package/dist/core/schemas/builders/bigint/index.d.ts +0 -1
- package/dist/core/schemas/builders/bigint/index.js +0 -5
- package/dist/core/schemas/builders/date/date.d.ts +0 -2
- package/dist/core/schemas/builders/date/date.js +0 -62
- package/dist/core/schemas/builders/date/index.d.ts +0 -1
- package/dist/core/schemas/builders/date/index.js +0 -5
- package/dist/core/schemas/builders/enum/enum.d.ts +0 -2
- package/dist/core/schemas/builders/enum/enum.js +0 -38
- package/dist/core/schemas/builders/enum/index.d.ts +0 -1
- package/dist/core/schemas/builders/enum/index.js +0 -5
- package/dist/core/schemas/builders/index.d.ts +0 -14
- package/dist/core/schemas/builders/index.js +0 -30
- package/dist/core/schemas/builders/lazy/index.d.ts +0 -3
- package/dist/core/schemas/builders/lazy/index.js +0 -7
- package/dist/core/schemas/builders/lazy/lazy.d.ts +0 -5
- package/dist/core/schemas/builders/lazy/lazy.js +0 -24
- package/dist/core/schemas/builders/lazy/lazyObject.d.ts +0 -3
- package/dist/core/schemas/builders/lazy/lazyObject.js +0 -11
- package/dist/core/schemas/builders/list/index.d.ts +0 -1
- package/dist/core/schemas/builders/list/index.js +0 -5
- package/dist/core/schemas/builders/list/list.d.ts +0 -2
- package/dist/core/schemas/builders/list/list.js +0 -54
- package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +0 -2
- package/dist/core/schemas/builders/literals/booleanLiteral.js +0 -28
- package/dist/core/schemas/builders/literals/index.d.ts +0 -2
- package/dist/core/schemas/builders/literals/index.js +0 -7
- package/dist/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
- package/dist/core/schemas/builders/literals/stringLiteral.js +0 -28
- package/dist/core/schemas/builders/object/index.d.ts +0 -6
- package/dist/core/schemas/builders/object/index.js +0 -11
- package/dist/core/schemas/builders/object/object.d.ts +0 -3
- package/dist/core/schemas/builders/object/object.js +0 -260
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +0 -6
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -7
- package/dist/core/schemas/builders/object/property.d.ts +0 -8
- package/dist/core/schemas/builders/object/property.js +0 -15
- package/dist/core/schemas/builders/object/types.d.ts +0 -31
- package/dist/core/schemas/builders/object/types.js +0 -2
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -9
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -53
- package/dist/core/schemas/builders/object-like/index.d.ts +0 -2
- package/dist/core/schemas/builders/object-like/index.js +0 -6
- package/dist/core/schemas/builders/object-like/types.d.ts +0 -7
- package/dist/core/schemas/builders/object-like/types.js +0 -2
- package/dist/core/schemas/builders/primitives/any.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/any.js +0 -6
- package/dist/core/schemas/builders/primitives/boolean.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/boolean.js +0 -25
- package/dist/core/schemas/builders/primitives/index.d.ts +0 -5
- package/dist/core/schemas/builders/primitives/index.js +0 -13
- package/dist/core/schemas/builders/primitives/number.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/number.js +0 -25
- package/dist/core/schemas/builders/primitives/string.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/string.js +0 -25
- package/dist/core/schemas/builders/primitives/unknown.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/unknown.js +0 -6
- package/dist/core/schemas/builders/record/index.d.ts +0 -2
- package/dist/core/schemas/builders/record/index.js +0 -5
- package/dist/core/schemas/builders/record/record.d.ts +0 -3
- package/dist/core/schemas/builders/record/record.js +0 -94
- package/dist/core/schemas/builders/record/types.d.ts +0 -4
- package/dist/core/schemas/builders/record/types.js +0 -2
- package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +0 -5
- package/dist/core/schemas/builders/schema-utils/JsonError.js +0 -12
- package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +0 -5
- package/dist/core/schemas/builders/schema-utils/ParseError.js +0 -12
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -17
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -81
- package/dist/core/schemas/builders/schema-utils/index.d.ts +0 -4
- package/dist/core/schemas/builders/schema-utils/index.js +0 -11
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +0 -2
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -9
- package/dist/core/schemas/builders/set/index.d.ts +0 -1
- package/dist/core/schemas/builders/set/index.js +0 -5
- package/dist/core/schemas/builders/set/set.d.ts +0 -2
- package/dist/core/schemas/builders/set/set.js +0 -43
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +0 -2
- package/dist/core/schemas/builders/undiscriminated-union/index.js +0 -5
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +0 -4
- package/dist/core/schemas/builders/undiscriminated-union/types.js +0 -2
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +0 -3
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -39
- package/dist/core/schemas/builders/union/discriminant.d.ts +0 -5
- package/dist/core/schemas/builders/union/discriminant.js +0 -9
- package/dist/core/schemas/builders/union/index.d.ts +0 -4
- package/dist/core/schemas/builders/union/index.js +0 -7
- package/dist/core/schemas/builders/union/types.d.ts +0 -13
- package/dist/core/schemas/builders/union/types.js +0 -2
- package/dist/core/schemas/builders/union/union.d.ts +0 -4
- package/dist/core/schemas/builders/union/union.js +0 -129
- package/dist/core/schemas/index.d.ts +0 -2
- package/dist/core/schemas/index.js +0 -17
- package/dist/core/schemas/utils/MaybePromise.d.ts +0 -1
- package/dist/core/schemas/utils/MaybePromise.js +0 -2
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -7
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +0 -2
- package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +0 -2
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +0 -15
- package/dist/core/schemas/utils/entries.d.ts +0 -1
- package/dist/core/schemas/utils/entries.js +0 -6
- package/dist/core/schemas/utils/filterObject.d.ts +0 -1
- package/dist/core/schemas/utils/filterObject.js +0 -13
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +0 -1
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -27
- package/dist/core/schemas/utils/isPlainObject.d.ts +0 -1
- package/dist/core/schemas/utils/isPlainObject.js +0 -17
- package/dist/core/schemas/utils/keys.d.ts +0 -1
- package/dist/core/schemas/utils/keys.js +0 -6
- package/dist/core/schemas/utils/maybeSkipValidation.d.ts +0 -2
- package/dist/core/schemas/utils/maybeSkipValidation.js +0 -27
- package/dist/core/schemas/utils/partition.d.ts +0 -1
- package/dist/core/schemas/utils/partition.js +0 -15
- package/dist/errors/AirweaveSDKError.d.ts +0 -12
- package/dist/errors/AirweaveSDKError.js +0 -32
- package/dist/errors/index.d.ts +0 -2
- package/dist/errors/index.js +0 -7
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -44
- package/dist/serialization/index.d.ts +0 -2
- package/dist/serialization/index.js +0 -18
- package/dist/serialization/resources/collections/client/index.d.ts +0 -3
- package/dist/serialization/resources/collections/client/index.js +0 -42
- package/dist/serialization/resources/collections/client/listCollections.d.ts +0 -11
- package/dist/serialization/resources/collections/client/listCollections.js +0 -42
- package/dist/serialization/resources/collections/client/refreshAllSourceConnections.d.ts +0 -11
- package/dist/serialization/resources/collections/client/refreshAllSourceConnections.js +0 -42
- package/dist/serialization/resources/collections/client/requests/CollectionCreate.d.ts +0 -13
- package/dist/serialization/resources/collections/client/requests/CollectionCreate.js +0 -44
- package/dist/serialization/resources/collections/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/collections/client/requests/index.js +0 -5
- package/dist/serialization/resources/collections/index.d.ts +0 -1
- package/dist/serialization/resources/collections/index.js +0 -17
- package/dist/serialization/resources/index.d.ts +0 -7
- package/dist/serialization/resources/index.js +0 -46
- package/dist/serialization/resources/sourceConnections/client/index.d.ts +0 -3
- package/dist/serialization/resources/sourceConnections/client/index.js +0 -42
- package/dist/serialization/resources/sourceConnections/client/listSourceConnectionJobs.d.ts +0 -11
- package/dist/serialization/resources/sourceConnections/client/listSourceConnectionJobs.js +0 -42
- package/dist/serialization/resources/sourceConnections/client/listSourceConnections.d.ts +0 -11
- package/dist/serialization/resources/sourceConnections/client/listSourceConnections.js +0 -42
- package/dist/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +0 -18
- package/dist/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.js +0 -49
- package/dist/serialization/resources/sourceConnections/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/sourceConnections/client/requests/index.js +0 -5
- package/dist/serialization/resources/sourceConnections/index.d.ts +0 -1
- package/dist/serialization/resources/sourceConnections/index.js +0 -17
- package/dist/serialization/resources/sources/client/index.d.ts +0 -1
- package/dist/serialization/resources/sources/client/index.js +0 -37
- package/dist/serialization/resources/sources/client/readSources.d.ts +0 -11
- package/dist/serialization/resources/sources/client/readSources.js +0 -42
- package/dist/serialization/resources/sources/index.d.ts +0 -1
- package/dist/serialization/resources/sources/index.js +0 -17
- package/dist/serialization/resources/whiteLabels/client/index.d.ts +0 -3
- package/dist/serialization/resources/whiteLabels/client/index.js +0 -42
- package/dist/serialization/resources/whiteLabels/client/listWhiteLabelSyncs.d.ts +0 -11
- package/dist/serialization/resources/whiteLabels/client/listWhiteLabelSyncs.js +0 -42
- package/dist/serialization/resources/whiteLabels/client/listWhiteLabels.d.ts +0 -11
- package/dist/serialization/resources/whiteLabels/client/listWhiteLabels.js +0 -42
- package/dist/serialization/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +0 -16
- package/dist/serialization/resources/whiteLabels/client/requests/WhiteLabelCreate.js +0 -47
- package/dist/serialization/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +0 -15
- package/dist/serialization/resources/whiteLabels/client/requests/WhiteLabelUpdate.js +0 -46
- package/dist/serialization/resources/whiteLabels/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/whiteLabels/client/requests/index.js +0 -7
- package/dist/serialization/resources/whiteLabels/index.d.ts +0 -1
- package/dist/serialization/resources/whiteLabels/index.js +0 -17
- package/dist/serialization/types/ApiKey.d.ts +0 -20
- package/dist/serialization/types/ApiKey.js +0 -51
- package/dist/serialization/types/ApiKeyCreate.d.ts +0 -12
- package/dist/serialization/types/ApiKeyCreate.js +0 -43
- package/dist/serialization/types/AuthType.d.ts +0 -10
- package/dist/serialization/types/AuthType.js +0 -50
- package/dist/serialization/types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +0 -13
- package/dist/serialization/types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +0 -44
- package/dist/serialization/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +0 -13
- package/dist/serialization/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js +0 -44
- package/dist/serialization/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.d.ts +0 -14
- package/dist/serialization/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.js +0 -45
- package/dist/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +0 -15
- package/dist/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +0 -46
- package/dist/serialization/types/Chat.d.ts +0 -25
- package/dist/serialization/types/Chat.js +0 -56
- package/dist/serialization/types/ChatCreate.d.ts +0 -17
- package/dist/serialization/types/ChatCreate.js +0 -48
- package/dist/serialization/types/ChatMessage.d.ts +0 -21
- package/dist/serialization/types/ChatMessage.js +0 -52
- package/dist/serialization/types/ChatMessageCreate.d.ts +0 -13
- package/dist/serialization/types/ChatMessageCreate.js +0 -44
- package/dist/serialization/types/ChatUpdate.d.ts +0 -15
- package/dist/serialization/types/ChatUpdate.js +0 -46
- package/dist/serialization/types/Collection.d.ts +0 -21
- package/dist/serialization/types/Collection.js +0 -52
- package/dist/serialization/types/CollectionStatus.d.ts +0 -10
- package/dist/serialization/types/CollectionStatus.js +0 -41
- package/dist/serialization/types/CollectionUpdate.d.ts +0 -12
- package/dist/serialization/types/CollectionUpdate.js +0 -43
- package/dist/serialization/types/ConfigField.d.ts +0 -15
- package/dist/serialization/types/ConfigField.js +0 -46
- package/dist/serialization/types/ConfigValues.d.ts +0 -10
- package/dist/serialization/types/ConfigValues.js +0 -41
- package/dist/serialization/types/Connection.d.ts +0 -22
- package/dist/serialization/types/Connection.js +0 -53
- package/dist/serialization/types/ConnectionStatus.d.ts +0 -10
- package/dist/serialization/types/ConnectionStatus.js +0 -41
- package/dist/serialization/types/DagEdge.d.ts +0 -18
- package/dist/serialization/types/DagEdge.js +0 -49
- package/dist/serialization/types/DagEdgeCreate.d.ts +0 -13
- package/dist/serialization/types/DagEdgeCreate.js +0 -44
- package/dist/serialization/types/DagNode.d.ts +0 -23
- package/dist/serialization/types/DagNode.js +0 -54
- package/dist/serialization/types/DagNodeCreate.d.ts +0 -19
- package/dist/serialization/types/DagNodeCreate.js +0 -50
- package/dist/serialization/types/Destination.d.ts +0 -25
- package/dist/serialization/types/Destination.js +0 -56
- package/dist/serialization/types/DestinationWithAuthenticationFields.d.ts +0 -27
- package/dist/serialization/types/DestinationWithAuthenticationFields.js +0 -58
- package/dist/serialization/types/EmbeddingModel.d.ts +0 -23
- package/dist/serialization/types/EmbeddingModel.js +0 -54
- package/dist/serialization/types/EmbeddingModelWithAuthenticationFields.d.ts +0 -25
- package/dist/serialization/types/EmbeddingModelWithAuthenticationFields.js +0 -56
- package/dist/serialization/types/EntityCount.d.ts +0 -12
- package/dist/serialization/types/EntityCount.js +0 -43
- package/dist/serialization/types/EntityDefinition.d.ts +0 -22
- package/dist/serialization/types/EntityDefinition.js +0 -53
- package/dist/serialization/types/EntityDefinitionCreate.d.ts +0 -20
- package/dist/serialization/types/EntityDefinitionCreate.js +0 -51
- package/dist/serialization/types/EntityDefinitionCreateEntitySchema.d.ts +0 -10
- package/dist/serialization/types/EntityDefinitionCreateEntitySchema.js +0 -44
- package/dist/serialization/types/EntityDefinitionEntitySchema.d.ts +0 -10
- package/dist/serialization/types/EntityDefinitionEntitySchema.js +0 -44
- package/dist/serialization/types/EntityDefinitionUpdate.d.ts +0 -20
- package/dist/serialization/types/EntityDefinitionUpdate.js +0 -51
- package/dist/serialization/types/EntityDefinitionUpdateEntitySchema.d.ts +0 -10
- package/dist/serialization/types/EntityDefinitionUpdateEntitySchema.js +0 -44
- package/dist/serialization/types/EntityRelation.d.ts +0 -19
- package/dist/serialization/types/EntityRelation.js +0 -50
- package/dist/serialization/types/EntityRelationCreate.d.ts +0 -15
- package/dist/serialization/types/EntityRelationCreate.js +0 -46
- package/dist/serialization/types/EntityRelationUpdate.d.ts +0 -15
- package/dist/serialization/types/EntityRelationUpdate.js +0 -46
- package/dist/serialization/types/EntityType.d.ts +0 -10
- package/dist/serialization/types/EntityType.js +0 -41
- package/dist/serialization/types/Fields.d.ts +0 -13
- package/dist/serialization/types/Fields.js +0 -44
- package/dist/serialization/types/HttpValidationError.d.ts +0 -13
- package/dist/serialization/types/HttpValidationError.js +0 -44
- package/dist/serialization/types/IntegrationType.d.ts +0 -10
- package/dist/serialization/types/IntegrationType.js +0 -41
- package/dist/serialization/types/NodeType.d.ts +0 -10
- package/dist/serialization/types/NodeType.js +0 -41
- package/dist/serialization/types/Organization.d.ts +0 -16
- package/dist/serialization/types/Organization.js +0 -47
- package/dist/serialization/types/ResponseType.d.ts +0 -10
- package/dist/serialization/types/ResponseType.js +0 -41
- package/dist/serialization/types/SearchResponse.d.ts +0 -17
- package/dist/serialization/types/SearchResponse.js +0 -48
- package/dist/serialization/types/SearchStatus.d.ts +0 -10
- package/dist/serialization/types/SearchStatus.js +0 -41
- package/dist/serialization/types/Source.d.ts +0 -25
- package/dist/serialization/types/Source.js +0 -56
- package/dist/serialization/types/SourceConnection.d.ts +0 -36
- package/dist/serialization/types/SourceConnection.js +0 -67
- package/dist/serialization/types/SourceConnectionAuthFields.d.ts +0 -11
- package/dist/serialization/types/SourceConnectionAuthFields.js +0 -42
- package/dist/serialization/types/SourceConnectionCreate.d.ts +0 -20
- package/dist/serialization/types/SourceConnectionCreate.js +0 -51
- package/dist/serialization/types/SourceConnectionJob.d.ts +0 -30
- package/dist/serialization/types/SourceConnectionJob.js +0 -61
- package/dist/serialization/types/SourceConnectionListItem.d.ts +0 -21
- package/dist/serialization/types/SourceConnectionListItem.js +0 -52
- package/dist/serialization/types/SourceConnectionStatus.d.ts +0 -10
- package/dist/serialization/types/SourceConnectionStatus.js +0 -41
- package/dist/serialization/types/SourceWithAuthenticationFields.d.ts +0 -27
- package/dist/serialization/types/SourceWithAuthenticationFields.js +0 -58
- package/dist/serialization/types/Sync.d.ts +0 -29
- package/dist/serialization/types/Sync.js +0 -60
- package/dist/serialization/types/SyncCreate.d.ts +0 -24
- package/dist/serialization/types/SyncCreate.js +0 -55
- package/dist/serialization/types/SyncDag.d.ts +0 -22
- package/dist/serialization/types/SyncDag.js +0 -53
- package/dist/serialization/types/SyncDagCreate.d.ts +0 -18
- package/dist/serialization/types/SyncDagCreate.js +0 -49
- package/dist/serialization/types/SyncDagUpdate.d.ts +0 -18
- package/dist/serialization/types/SyncDagUpdate.js +0 -49
- package/dist/serialization/types/SyncJob.d.ts +0 -31
- package/dist/serialization/types/SyncJob.js +0 -62
- package/dist/serialization/types/SyncJobStatus.d.ts +0 -10
- package/dist/serialization/types/SyncJobStatus.js +0 -41
- package/dist/serialization/types/SyncStatus.d.ts +0 -10
- package/dist/serialization/types/SyncStatus.js +0 -41
- package/dist/serialization/types/SyncUpdate.d.ts +0 -19
- package/dist/serialization/types/SyncUpdate.js +0 -50
- package/dist/serialization/types/SyncWithSourceConnection.d.ts +0 -31
- package/dist/serialization/types/SyncWithSourceConnection.js +0 -62
- package/dist/serialization/types/Transformer.d.ts +0 -22
- package/dist/serialization/types/Transformer.js +0 -53
- package/dist/serialization/types/TransformerCreate.d.ts +0 -18
- package/dist/serialization/types/TransformerCreate.js +0 -49
- package/dist/serialization/types/TransformerUpdate.d.ts +0 -18
- package/dist/serialization/types/TransformerUpdate.js +0 -49
- package/dist/serialization/types/User.d.ts +0 -16
- package/dist/serialization/types/User.js +0 -47
- package/dist/serialization/types/UserCreate.d.ts +0 -14
- package/dist/serialization/types/UserCreate.js +0 -45
- package/dist/serialization/types/ValidationError.d.ts +0 -15
- package/dist/serialization/types/ValidationError.js +0 -46
- package/dist/serialization/types/ValidationErrorLocItem.d.ts +0 -10
- package/dist/serialization/types/ValidationErrorLocItem.js +0 -41
- package/dist/serialization/types/WhiteLabel.d.ts +0 -22
- package/dist/serialization/types/WhiteLabel.js +0 -53
- package/dist/serialization/types/index.d.ts +0 -72
- package/dist/serialization/types/index.js +0 -88
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -4
- package/environments.js +0 -10
- package/errors/AirweaveSDKError.d.ts +0 -12
- package/errors/AirweaveSDKError.js +0 -32
- package/errors/AirweaveSDKTimeoutError.js +0 -13
- package/errors/index.d.ts +0 -2
- package/errors/index.js +0 -7
- package/index.d.ts +0 -4
- package/index.js +0 -44
- package/jest.config.js +0 -5
- package/serialization/index.d.ts +0 -2
- package/serialization/index.js +0 -18
- package/serialization/resources/collections/client/index.d.ts +0 -3
- package/serialization/resources/collections/client/index.js +0 -42
- package/serialization/resources/collections/client/listCollections.d.ts +0 -11
- package/serialization/resources/collections/client/listCollections.js +0 -42
- package/serialization/resources/collections/client/refreshAllSourceConnections.d.ts +0 -11
- package/serialization/resources/collections/client/refreshAllSourceConnections.js +0 -42
- package/serialization/resources/collections/client/requests/CollectionCreate.d.ts +0 -13
- package/serialization/resources/collections/client/requests/CollectionCreate.js +0 -44
- package/serialization/resources/collections/client/requests/index.d.ts +0 -1
- package/serialization/resources/collections/client/requests/index.js +0 -5
- package/serialization/resources/collections/index.d.ts +0 -1
- package/serialization/resources/collections/index.js +0 -17
- package/serialization/resources/index.d.ts +0 -7
- package/serialization/resources/index.js +0 -46
- package/serialization/resources/sourceConnections/client/index.d.ts +0 -3
- package/serialization/resources/sourceConnections/client/index.js +0 -42
- package/serialization/resources/sourceConnections/client/listSourceConnectionJobs.d.ts +0 -11
- package/serialization/resources/sourceConnections/client/listSourceConnectionJobs.js +0 -42
- package/serialization/resources/sourceConnections/client/listSourceConnections.d.ts +0 -11
- package/serialization/resources/sourceConnections/client/listSourceConnections.js +0 -42
- package/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +0 -18
- package/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.js +0 -49
- package/serialization/resources/sourceConnections/client/requests/index.d.ts +0 -1
- package/serialization/resources/sourceConnections/client/requests/index.js +0 -5
- package/serialization/resources/sourceConnections/index.d.ts +0 -1
- package/serialization/resources/sourceConnections/index.js +0 -17
- package/serialization/resources/sources/client/index.d.ts +0 -1
- package/serialization/resources/sources/client/index.js +0 -37
- package/serialization/resources/sources/client/readSources.d.ts +0 -11
- package/serialization/resources/sources/client/readSources.js +0 -42
- package/serialization/resources/sources/index.d.ts +0 -1
- package/serialization/resources/sources/index.js +0 -17
- package/serialization/resources/whiteLabels/client/index.d.ts +0 -3
- package/serialization/resources/whiteLabels/client/index.js +0 -42
- package/serialization/resources/whiteLabels/client/listWhiteLabelSyncs.d.ts +0 -11
- package/serialization/resources/whiteLabels/client/listWhiteLabelSyncs.js +0 -42
- package/serialization/resources/whiteLabels/client/listWhiteLabels.d.ts +0 -11
- package/serialization/resources/whiteLabels/client/listWhiteLabels.js +0 -42
- package/serialization/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +0 -16
- package/serialization/resources/whiteLabels/client/requests/WhiteLabelCreate.js +0 -47
- package/serialization/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +0 -15
- package/serialization/resources/whiteLabels/client/requests/WhiteLabelUpdate.js +0 -46
- package/serialization/resources/whiteLabels/client/requests/index.d.ts +0 -2
- package/serialization/resources/whiteLabels/client/requests/index.js +0 -7
- package/serialization/resources/whiteLabels/index.d.ts +0 -1
- package/serialization/resources/whiteLabels/index.js +0 -17
- package/serialization/types/ApiKey.d.ts +0 -20
- package/serialization/types/ApiKey.js +0 -51
- package/serialization/types/ApiKeyCreate.d.ts +0 -12
- package/serialization/types/ApiKeyCreate.js +0 -43
- package/serialization/types/AuthType.d.ts +0 -10
- package/serialization/types/AuthType.js +0 -50
- package/serialization/types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +0 -13
- package/serialization/types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +0 -44
- package/serialization/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +0 -13
- package/serialization/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js +0 -44
- package/serialization/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.d.ts +0 -14
- package/serialization/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.js +0 -45
- package/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +0 -15
- package/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +0 -46
- package/serialization/types/Chat.d.ts +0 -25
- package/serialization/types/Chat.js +0 -56
- package/serialization/types/ChatCreate.d.ts +0 -17
- package/serialization/types/ChatCreate.js +0 -48
- package/serialization/types/ChatMessage.d.ts +0 -21
- package/serialization/types/ChatMessage.js +0 -52
- package/serialization/types/ChatMessageCreate.d.ts +0 -13
- package/serialization/types/ChatMessageCreate.js +0 -44
- package/serialization/types/ChatUpdate.d.ts +0 -15
- package/serialization/types/ChatUpdate.js +0 -46
- package/serialization/types/Collection.d.ts +0 -21
- package/serialization/types/Collection.js +0 -52
- package/serialization/types/CollectionStatus.d.ts +0 -10
- package/serialization/types/CollectionStatus.js +0 -41
- package/serialization/types/CollectionUpdate.d.ts +0 -12
- package/serialization/types/CollectionUpdate.js +0 -43
- package/serialization/types/ConfigField.d.ts +0 -15
- package/serialization/types/ConfigField.js +0 -46
- package/serialization/types/ConfigValues.d.ts +0 -10
- package/serialization/types/ConfigValues.js +0 -41
- package/serialization/types/Connection.d.ts +0 -22
- package/serialization/types/Connection.js +0 -53
- package/serialization/types/ConnectionStatus.d.ts +0 -10
- package/serialization/types/ConnectionStatus.js +0 -41
- package/serialization/types/DagEdge.d.ts +0 -18
- package/serialization/types/DagEdge.js +0 -49
- package/serialization/types/DagEdgeCreate.d.ts +0 -13
- package/serialization/types/DagEdgeCreate.js +0 -44
- package/serialization/types/DagNode.d.ts +0 -23
- package/serialization/types/DagNode.js +0 -54
- package/serialization/types/DagNodeCreate.d.ts +0 -19
- package/serialization/types/DagNodeCreate.js +0 -50
- package/serialization/types/Destination.d.ts +0 -25
- package/serialization/types/Destination.js +0 -56
- package/serialization/types/DestinationWithAuthenticationFields.d.ts +0 -27
- package/serialization/types/DestinationWithAuthenticationFields.js +0 -58
- package/serialization/types/EmbeddingModel.d.ts +0 -23
- package/serialization/types/EmbeddingModel.js +0 -54
- package/serialization/types/EmbeddingModelWithAuthenticationFields.d.ts +0 -25
- package/serialization/types/EmbeddingModelWithAuthenticationFields.js +0 -56
- package/serialization/types/EntityCount.d.ts +0 -12
- package/serialization/types/EntityCount.js +0 -43
- package/serialization/types/EntityDefinition.d.ts +0 -22
- package/serialization/types/EntityDefinition.js +0 -53
- package/serialization/types/EntityDefinitionCreate.d.ts +0 -20
- package/serialization/types/EntityDefinitionCreate.js +0 -51
- package/serialization/types/EntityDefinitionCreateEntitySchema.d.ts +0 -10
- package/serialization/types/EntityDefinitionCreateEntitySchema.js +0 -44
- package/serialization/types/EntityDefinitionEntitySchema.d.ts +0 -10
- package/serialization/types/EntityDefinitionEntitySchema.js +0 -44
- package/serialization/types/EntityDefinitionUpdate.d.ts +0 -20
- package/serialization/types/EntityDefinitionUpdate.js +0 -51
- package/serialization/types/EntityDefinitionUpdateEntitySchema.d.ts +0 -10
- package/serialization/types/EntityDefinitionUpdateEntitySchema.js +0 -44
- package/serialization/types/EntityRelation.d.ts +0 -19
- package/serialization/types/EntityRelation.js +0 -50
- package/serialization/types/EntityRelationCreate.d.ts +0 -15
- package/serialization/types/EntityRelationCreate.js +0 -46
- package/serialization/types/EntityRelationUpdate.d.ts +0 -15
- package/serialization/types/EntityRelationUpdate.js +0 -46
- package/serialization/types/EntityType.d.ts +0 -10
- package/serialization/types/EntityType.js +0 -41
- package/serialization/types/Fields.d.ts +0 -13
- package/serialization/types/Fields.js +0 -44
- package/serialization/types/HttpValidationError.d.ts +0 -13
- package/serialization/types/HttpValidationError.js +0 -44
- package/serialization/types/IntegrationType.d.ts +0 -10
- package/serialization/types/IntegrationType.js +0 -41
- package/serialization/types/NodeType.d.ts +0 -10
- package/serialization/types/NodeType.js +0 -41
- package/serialization/types/Organization.d.ts +0 -16
- package/serialization/types/Organization.js +0 -47
- package/serialization/types/ResponseType.d.ts +0 -10
- package/serialization/types/ResponseType.js +0 -41
- package/serialization/types/SearchResponse.d.ts +0 -17
- package/serialization/types/SearchResponse.js +0 -48
- package/serialization/types/SearchStatus.d.ts +0 -10
- package/serialization/types/SearchStatus.js +0 -41
- package/serialization/types/Source.d.ts +0 -25
- package/serialization/types/Source.js +0 -56
- package/serialization/types/SourceConnection.d.ts +0 -36
- package/serialization/types/SourceConnection.js +0 -67
- package/serialization/types/SourceConnectionAuthFields.d.ts +0 -11
- package/serialization/types/SourceConnectionAuthFields.js +0 -42
- package/serialization/types/SourceConnectionCreate.d.ts +0 -20
- package/serialization/types/SourceConnectionCreate.js +0 -51
- package/serialization/types/SourceConnectionJob.d.ts +0 -30
- package/serialization/types/SourceConnectionJob.js +0 -61
- package/serialization/types/SourceConnectionListItem.d.ts +0 -21
- package/serialization/types/SourceConnectionListItem.js +0 -52
- package/serialization/types/SourceConnectionStatus.d.ts +0 -10
- package/serialization/types/SourceConnectionStatus.js +0 -41
- package/serialization/types/SourceWithAuthenticationFields.d.ts +0 -27
- package/serialization/types/SourceWithAuthenticationFields.js +0 -58
- package/serialization/types/Sync.d.ts +0 -29
- package/serialization/types/Sync.js +0 -60
- package/serialization/types/SyncCreate.d.ts +0 -24
- package/serialization/types/SyncCreate.js +0 -55
- package/serialization/types/SyncDag.d.ts +0 -22
- package/serialization/types/SyncDag.js +0 -53
- package/serialization/types/SyncDagCreate.d.ts +0 -18
- package/serialization/types/SyncDagCreate.js +0 -49
- package/serialization/types/SyncDagUpdate.d.ts +0 -18
- package/serialization/types/SyncDagUpdate.js +0 -49
- package/serialization/types/SyncJob.d.ts +0 -31
- package/serialization/types/SyncJob.js +0 -62
- package/serialization/types/SyncJobStatus.d.ts +0 -10
- package/serialization/types/SyncJobStatus.js +0 -41
- package/serialization/types/SyncStatus.d.ts +0 -10
- package/serialization/types/SyncStatus.js +0 -41
- package/serialization/types/SyncUpdate.d.ts +0 -19
- package/serialization/types/SyncUpdate.js +0 -50
- package/serialization/types/SyncWithSourceConnection.d.ts +0 -31
- package/serialization/types/SyncWithSourceConnection.js +0 -62
- package/serialization/types/Transformer.d.ts +0 -22
- package/serialization/types/Transformer.js +0 -53
- package/serialization/types/TransformerCreate.d.ts +0 -18
- package/serialization/types/TransformerCreate.js +0 -49
- package/serialization/types/TransformerUpdate.d.ts +0 -18
- package/serialization/types/TransformerUpdate.js +0 -49
- package/serialization/types/User.d.ts +0 -16
- package/serialization/types/User.js +0 -47
- package/serialization/types/UserCreate.d.ts +0 -14
- package/serialization/types/UserCreate.js +0 -45
- package/serialization/types/ValidationError.d.ts +0 -15
- package/serialization/types/ValidationError.js +0 -46
- package/serialization/types/ValidationErrorLocItem.d.ts +0 -10
- package/serialization/types/ValidationErrorLocItem.js +0 -41
- package/serialization/types/WhiteLabel.d.ts +0 -22
- package/serialization/types/WhiteLabel.js +0 -53
- package/serialization/types/index.d.ts +0 -72
- package/serialization/types/index.js +0 -88
- package/version.d.ts +0 -1
- package/version.js +0 -4
- /package/{api → dist/cjs/api}/resources/collections/client/requests/CollectionCreate.js +0 -0
- /package/{api/types → dist/cjs/api/resources/collections/client/requests}/CollectionUpdate.js +0 -0
- /package/{api → dist/cjs/api}/resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.js +0 -0
- /package/{api → dist/cjs/api}/resources/collections/client/requests/ListCollectionsCollectionsGetRequest.js +0 -0
- /package/{api → dist/cjs/api}/resources/collections/client/requests/SearchCollectionCollectionsReadableIdSearchGetRequest.js +0 -0
- /package/{api → dist/cjs/api}/resources/collections/client/requests/index.js +0 -0
- /package/{api/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.js → dist/cjs/api/resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.js} +0 -0
- /package/dist/{api → cjs/api}/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.js +0 -0
- /package/{api → dist/cjs/api}/resources/sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.js +0 -0
- /package/{api → dist/cjs/api}/resources/sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.js +0 -0
- /package/{api/types → dist/cjs/api/resources/sourceConnections/client/requests}/SourceConnectionCreate.js +0 -0
- /package/{api → dist/cjs/api}/resources/sourceConnections/client/requests/SourceConnectionUpdate.js +0 -0
- /package/{api → dist/cjs/api}/resources/sourceConnections/client/requests/index.js +0 -0
- /package/{api → dist/cjs/api}/resources/sources/client/index.d.ts +0 -0
- /package/{api → dist/cjs/api}/resources/sources/client/index.js +0 -0
- /package/{api/resources/whiteLabels/client/requests/WhiteLabelCreate.js → dist/cjs/api/resources/whiteLabels/client/requests/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.js} +0 -0
- /package/dist/{api → cjs/api}/resources/whiteLabels/client/requests/WhiteLabelCreate.js +0 -0
- /package/{api → dist/cjs/api}/resources/whiteLabels/client/requests/WhiteLabelUpdate.js +0 -0
- /package/{api → dist/cjs/api}/resources/whiteLabels/client/requests/index.js +0 -0
- /package/{api → dist/cjs/api}/types/ApiKey.js +0 -0
- /package/{api → dist/cjs/api}/types/ApiKeyCreate.js +0 -0
- /package/{api → dist/cjs/api}/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js +0 -0
- /package/{api/types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js → dist/cjs/api/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.js} +0 -0
- /package/{api → dist/cjs/api}/types/Collection.js +0 -0
- /package/{api → dist/cjs/api}/types/CollectionStatus.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/CollectionStatus.js +0 -0
- /package/{api → dist/cjs/api}/types/ConfigField.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/ConfigField.js +0 -0
- /package/{api → dist/cjs/api}/types/ConfigValues.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/ConfigValues.js +0 -0
- /package/{api → dist/cjs/api}/types/Connection.js +0 -0
- /package/{api → dist/cjs/api}/types/ConnectionStatus.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/ConnectionStatus.js +0 -0
- /package/{api → dist/cjs/api}/types/DagEdge.js +0 -0
- /package/{api → dist/cjs/api}/types/DagEdgeCreate.js +0 -0
- /package/{api → dist/cjs/api}/types/DagNode.js +0 -0
- /package/{api → dist/cjs/api}/types/DagNodeCreate.js +0 -0
- /package/{api → dist/cjs/api}/types/Destination.js +0 -0
- /package/{api → dist/cjs/api}/types/DestinationWithAuthenticationFields.js +0 -0
- /package/{api → dist/cjs/api}/types/EmbeddingModel.js +0 -0
- /package/{api → dist/cjs/api}/types/EmbeddingModelWithAuthenticationFields.js +0 -0
- /package/{api → dist/cjs/api}/types/EntityCount.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/EntityCount.js +0 -0
- /package/{api → dist/cjs/api}/types/EntityDefinition.js +0 -0
- /package/{api → dist/cjs/api}/types/EntityDefinitionCreate.js +0 -0
- /package/{api → dist/cjs/api}/types/EntityDefinitionUpdate.js +0 -0
- /package/{api → dist/cjs/api}/types/EntityType.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/EntityType.js +0 -0
- /package/{api → dist/cjs/api}/types/Fields.js +0 -0
- /package/{api → dist/cjs/api}/types/HttpValidationError.js +0 -0
- /package/{api/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.js → dist/cjs/api/types/IntegrationCredentialInDb.js} +0 -0
- /package/{api/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js → dist/cjs/api/types/IntegrationCredentialRawCreate.js} +0 -0
- /package/{api → dist/cjs/api}/types/IntegrationType.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/IntegrationType.js +0 -0
- /package/{api/types/Chat.js → dist/cjs/api/types/InvitationCreate.js} +0 -0
- /package/{api/types/ChatCreate.js → dist/cjs/api/types/InvitationResponse.js} +0 -0
- /package/{api/types/ChatMessage.js → dist/cjs/api/types/MemberResponse.js} +0 -0
- /package/{api → dist/cjs/api}/types/NodeType.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/NodeType.js +0 -0
- /package/{api/types/ChatMessageCreate.js → dist/cjs/api/types/OAuth2AuthUrl.js} +0 -0
- /package/{api → dist/cjs/api}/types/Organization.js +0 -0
- /package/{api/types/ChatUpdate.js → dist/cjs/api/types/OrganizationCreate.js} +0 -0
- /package/{api/types/EntityDefinitionCreateEntitySchema.js → dist/cjs/api/types/OrganizationWithRole.js} +0 -0
- /package/{api → dist/cjs/api}/types/ResponseType.js +0 -0
- /package/{api → dist/cjs/api}/types/SearchResponse.js +0 -0
- /package/{api → dist/cjs/api}/types/SearchStatus.js +0 -0
- /package/{api → dist/cjs/api}/types/Source.js +0 -0
- /package/{api → dist/cjs/api}/types/SourceConnection.js +0 -0
- /package/{api/types/EntityDefinitionEntitySchema.js → dist/cjs/api/types/SourceConnectionCreateWithCredential.js} +0 -0
- /package/{api/types/EntityDefinitionUpdateEntitySchema.js → dist/cjs/api/types/SourceConnectionCreateWithWhiteLabel.js} +0 -0
- /package/{api → dist/cjs/api}/types/SourceConnectionJob.js +0 -0
- /package/{api → dist/cjs/api}/types/SourceConnectionListItem.js +0 -0
- /package/{api → dist/cjs/api}/types/SourceConnectionStatus.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/SourceConnectionStatus.js +0 -0
- /package/{api → dist/cjs/api}/types/Sync.js +0 -0
- /package/{api → dist/cjs/api}/types/SyncCreate.js +0 -0
- /package/{api → dist/cjs/api}/types/SyncDag.js +0 -0
- /package/{api → dist/cjs/api}/types/SyncDagCreate.js +0 -0
- /package/{api → dist/cjs/api}/types/SyncDagUpdate.js +0 -0
- /package/{api → dist/cjs/api}/types/SyncJob.js +0 -0
- /package/{api → dist/cjs/api}/types/SyncStatus.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/SyncStatus.js +0 -0
- /package/{api → dist/cjs/api}/types/SyncUpdate.js +0 -0
- /package/{api → dist/cjs/api}/types/SyncWithSourceConnection.js +0 -0
- /package/{api → dist/cjs/api}/types/Transformer.js +0 -0
- /package/{api → dist/cjs/api}/types/TransformerCreate.js +0 -0
- /package/{api → dist/cjs/api}/types/TransformerUpdate.js +0 -0
- /package/{api → dist/cjs/api}/types/User.js +0 -0
- /package/{api → dist/cjs/api}/types/UserCreate.js +0 -0
- /package/{api/types/EntityRelation.js → dist/cjs/api/types/UserOrganization.js} +0 -0
- /package/{api → dist/cjs/api}/types/ValidationError.js +0 -0
- /package/{api → dist/cjs/api}/types/WhiteLabel.js +0 -0
- /package/{core → dist/cjs/core}/fetcher/APIResponse.js +0 -0
- /package/{core → dist/cjs/core}/fetcher/Supplier.d.ts +0 -0
- /package/{core → dist/cjs/core}/fetcher/Supplier.js +0 -0
- /package/{core → dist/cjs/core}/fetcher/getFetchFn.d.ts +0 -0
- /package/{core → dist/cjs/core}/fetcher/getHeader.d.ts +0 -0
- /package/{core → dist/cjs/core}/fetcher/getHeader.js +0 -0
- /package/{core → dist/cjs/core}/fetcher/getRequestBody.d.ts +0 -0
- /package/{core → dist/cjs/core}/fetcher/getResponseBody.d.ts +0 -0
- /package/{core → dist/cjs/core}/fetcher/makeRequest.d.ts +0 -0
- /package/{core → dist/cjs/core}/fetcher/requestWithRetries.d.ts +0 -0
- /package/{core → dist/cjs/core}/fetcher/signals.d.ts +0 -0
- /package/{core → dist/cjs/core}/fetcher/signals.js +0 -0
- /package/{core → dist/cjs/core}/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -0
- /package/{core → dist/cjs/core}/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -0
- /package/{core → dist/cjs/core}/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -0
- /package/{core → dist/cjs/core}/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -0
- /package/dist/{environments.d.ts → cjs/environments.d.ts} +0 -0
- /package/dist/{environments.js → cjs/environments.js} +0 -0
- /package/dist/{errors → cjs/errors}/AirweaveSDKTimeoutError.d.ts +0 -0
- /package/dist/{errors → cjs/errors}/AirweaveSDKTimeoutError.js +0 -0
- /package/dist/{api/resources/sources/client/index.d.ts → esm/api/resources/collections/client/requests/index.mjs} +0 -0
- /package/dist/{api/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts → esm/api/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.mts} +0 -0
- /package/dist/{api/types/CollectionStatus.d.ts → esm/api/types/CollectionStatus.d.mts} +0 -0
- /package/dist/{api/types/ConfigField.d.ts → esm/api/types/ConfigField.d.mts} +0 -0
- /package/dist/{api/types/ConfigValues.d.ts → esm/api/types/ConfigValues.d.mts} +0 -0
- /package/dist/{api/types/ConnectionStatus.d.ts → esm/api/types/ConnectionStatus.d.mts} +0 -0
- /package/dist/{api/types/EntityCount.d.ts → esm/api/types/EntityCount.d.mts} +0 -0
- /package/dist/{api/types/EntityType.d.ts → esm/api/types/EntityType.d.mts} +0 -0
- /package/dist/{api/types/IntegrationType.d.ts → esm/api/types/IntegrationType.d.mts} +0 -0
- /package/dist/{api/types/NodeType.d.ts → esm/api/types/NodeType.d.mts} +0 -0
- /package/dist/{api/types/SourceConnectionStatus.d.ts → esm/api/types/SourceConnectionStatus.d.mts} +0 -0
- /package/dist/{api/types/SyncStatus.d.ts → esm/api/types/SyncStatus.d.mts} +0 -0
- /package/dist/{core/fetcher/Supplier.d.ts → esm/core/fetcher/Supplier.d.mts} +0 -0
- /package/dist/{core/fetcher/getFetchFn.d.ts → esm/core/fetcher/getFetchFn.d.mts} +0 -0
- /package/dist/{core/fetcher/getHeader.d.ts → esm/core/fetcher/getHeader.d.mts} +0 -0
- /package/dist/{core/fetcher/getRequestBody.d.ts → esm/core/fetcher/getRequestBody.d.mts} +0 -0
- /package/dist/{core/fetcher/getResponseBody.d.ts → esm/core/fetcher/getResponseBody.d.mts} +0 -0
- /package/dist/{core/fetcher/makeRequest.d.ts → esm/core/fetcher/makeRequest.d.mts} +0 -0
- /package/dist/{core/fetcher/requestWithRetries.d.ts → esm/core/fetcher/requestWithRetries.d.mts} +0 -0
- /package/dist/{core/fetcher/signals.d.ts → esm/core/fetcher/signals.d.mts} +0 -0
- /package/dist/{core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts → esm/core/fetcher/stream-wrappers/chooseStreamWrapper.d.mts} +0 -0
- /package/{environments.d.ts → dist/esm/environments.d.mts} +0 -0
- /package/{errors/AirweaveSDKTimeoutError.d.ts → dist/esm/errors/AirweaveSDKTimeoutError.d.mts} +0 -0
|
@@ -0,0 +1,522 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.Collections = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
50
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
51
|
+
const AirweaveSDK = __importStar(require("../../../index.js"));
|
|
52
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
53
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
54
|
+
class Collections {
|
|
55
|
+
constructor(_options) {
|
|
56
|
+
this._options = _options;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* List all collections that belong to your organization.
|
|
60
|
+
*
|
|
61
|
+
* @param {AirweaveSDK.ListCollectionsCollectionsGetRequest} request
|
|
62
|
+
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await client.collections.listCollections()
|
|
68
|
+
*/
|
|
69
|
+
listCollections(request = {}, requestOptions) {
|
|
70
|
+
return core.HttpResponsePromise.fromPromise(this.__listCollections(request, requestOptions));
|
|
71
|
+
}
|
|
72
|
+
__listCollections() {
|
|
73
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
74
|
+
var _a, _b, _c;
|
|
75
|
+
const { skip, limit } = request;
|
|
76
|
+
const _queryParams = {};
|
|
77
|
+
if (skip != null) {
|
|
78
|
+
_queryParams["skip"] = skip.toString();
|
|
79
|
+
}
|
|
80
|
+
if (limit != null) {
|
|
81
|
+
_queryParams["limit"] = limit.toString();
|
|
82
|
+
}
|
|
83
|
+
const _response = yield core.fetcher({
|
|
84
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirweaveSDKEnvironment.Production, "collections"),
|
|
85
|
+
method: "GET",
|
|
86
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
87
|
+
queryParameters: _queryParams,
|
|
88
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
89
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
90
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
91
|
+
});
|
|
92
|
+
if (_response.ok) {
|
|
93
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
94
|
+
}
|
|
95
|
+
if (_response.error.reason === "status-code") {
|
|
96
|
+
switch (_response.error.statusCode) {
|
|
97
|
+
case 422:
|
|
98
|
+
throw new AirweaveSDK.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
99
|
+
default:
|
|
100
|
+
throw new errors.AirweaveSDKError({
|
|
101
|
+
statusCode: _response.error.statusCode,
|
|
102
|
+
body: _response.error.body,
|
|
103
|
+
rawResponse: _response.rawResponse,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
switch (_response.error.reason) {
|
|
108
|
+
case "non-json":
|
|
109
|
+
throw new errors.AirweaveSDKError({
|
|
110
|
+
statusCode: _response.error.statusCode,
|
|
111
|
+
body: _response.error.rawBody,
|
|
112
|
+
rawResponse: _response.rawResponse,
|
|
113
|
+
});
|
|
114
|
+
case "timeout":
|
|
115
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /collections.");
|
|
116
|
+
case "unknown":
|
|
117
|
+
throw new errors.AirweaveSDKError({
|
|
118
|
+
message: _response.error.errorMessage,
|
|
119
|
+
rawResponse: _response.rawResponse,
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Create a new collection.
|
|
126
|
+
*
|
|
127
|
+
* <br/><br/>
|
|
128
|
+
* The newly created collection is initially empty and does not contain any data
|
|
129
|
+
* until you explicitly add source connections to it.
|
|
130
|
+
*
|
|
131
|
+
* @param {AirweaveSDK.CollectionCreate} request
|
|
132
|
+
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
133
|
+
*
|
|
134
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* await client.collections.createCollection({
|
|
138
|
+
* name: "Finance Data",
|
|
139
|
+
* readable_id: "finance-data-reports"
|
|
140
|
+
* })
|
|
141
|
+
*/
|
|
142
|
+
createCollection(request, requestOptions) {
|
|
143
|
+
return core.HttpResponsePromise.fromPromise(this.__createCollection(request, requestOptions));
|
|
144
|
+
}
|
|
145
|
+
__createCollection(request, requestOptions) {
|
|
146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
147
|
+
var _a, _b, _c;
|
|
148
|
+
const _response = yield core.fetcher({
|
|
149
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirweaveSDKEnvironment.Production, "collections"),
|
|
150
|
+
method: "POST",
|
|
151
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
152
|
+
contentType: "application/json",
|
|
153
|
+
requestType: "json",
|
|
154
|
+
body: request,
|
|
155
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
156
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
157
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
158
|
+
});
|
|
159
|
+
if (_response.ok) {
|
|
160
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
161
|
+
}
|
|
162
|
+
if (_response.error.reason === "status-code") {
|
|
163
|
+
switch (_response.error.statusCode) {
|
|
164
|
+
case 422:
|
|
165
|
+
throw new AirweaveSDK.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
166
|
+
default:
|
|
167
|
+
throw new errors.AirweaveSDKError({
|
|
168
|
+
statusCode: _response.error.statusCode,
|
|
169
|
+
body: _response.error.body,
|
|
170
|
+
rawResponse: _response.rawResponse,
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
switch (_response.error.reason) {
|
|
175
|
+
case "non-json":
|
|
176
|
+
throw new errors.AirweaveSDKError({
|
|
177
|
+
statusCode: _response.error.statusCode,
|
|
178
|
+
body: _response.error.rawBody,
|
|
179
|
+
rawResponse: _response.rawResponse,
|
|
180
|
+
});
|
|
181
|
+
case "timeout":
|
|
182
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling POST /collections.");
|
|
183
|
+
case "unknown":
|
|
184
|
+
throw new errors.AirweaveSDKError({
|
|
185
|
+
message: _response.error.errorMessage,
|
|
186
|
+
rawResponse: _response.rawResponse,
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Retrieve a specific collection by its readable ID.
|
|
193
|
+
*
|
|
194
|
+
* @param {string} readableId - The unique readable identifier of the collection (e.g., 'finance-data-ab123')
|
|
195
|
+
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
196
|
+
*
|
|
197
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
198
|
+
*
|
|
199
|
+
* @example
|
|
200
|
+
* await client.collections.getCollection("readable_id")
|
|
201
|
+
*/
|
|
202
|
+
getCollection(readableId, requestOptions) {
|
|
203
|
+
return core.HttpResponsePromise.fromPromise(this.__getCollection(readableId, requestOptions));
|
|
204
|
+
}
|
|
205
|
+
__getCollection(readableId, requestOptions) {
|
|
206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
207
|
+
var _a, _b, _c;
|
|
208
|
+
const _response = yield core.fetcher({
|
|
209
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirweaveSDKEnvironment.Production, `collections/${encodeURIComponent(readableId)}`),
|
|
210
|
+
method: "GET",
|
|
211
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
212
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
213
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
214
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
215
|
+
});
|
|
216
|
+
if (_response.ok) {
|
|
217
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
218
|
+
}
|
|
219
|
+
if (_response.error.reason === "status-code") {
|
|
220
|
+
switch (_response.error.statusCode) {
|
|
221
|
+
case 422:
|
|
222
|
+
throw new AirweaveSDK.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
223
|
+
default:
|
|
224
|
+
throw new errors.AirweaveSDKError({
|
|
225
|
+
statusCode: _response.error.statusCode,
|
|
226
|
+
body: _response.error.body,
|
|
227
|
+
rawResponse: _response.rawResponse,
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
switch (_response.error.reason) {
|
|
232
|
+
case "non-json":
|
|
233
|
+
throw new errors.AirweaveSDKError({
|
|
234
|
+
statusCode: _response.error.statusCode,
|
|
235
|
+
body: _response.error.rawBody,
|
|
236
|
+
rawResponse: _response.rawResponse,
|
|
237
|
+
});
|
|
238
|
+
case "timeout":
|
|
239
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /collections/{readable_id}.");
|
|
240
|
+
case "unknown":
|
|
241
|
+
throw new errors.AirweaveSDKError({
|
|
242
|
+
message: _response.error.errorMessage,
|
|
243
|
+
rawResponse: _response.rawResponse,
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Update a collection's properties.
|
|
250
|
+
*
|
|
251
|
+
* <br/><br/>
|
|
252
|
+
* Modifies the display name of an existing collection.
|
|
253
|
+
* Note that the readable ID cannot be changed after creation to maintain stable
|
|
254
|
+
* API endpoints and preserve any existing integrations or bookmarks.
|
|
255
|
+
*
|
|
256
|
+
* @param {string} readableId - The unique readable identifier of the collection to update
|
|
257
|
+
* @param {AirweaveSDK.CollectionUpdate} request
|
|
258
|
+
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
259
|
+
*
|
|
260
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
261
|
+
*
|
|
262
|
+
* @example
|
|
263
|
+
* await client.collections.updateCollection("readable_id", {
|
|
264
|
+
* name: "Updated Finance Data"
|
|
265
|
+
* })
|
|
266
|
+
*/
|
|
267
|
+
updateCollection(readableId, request = {}, requestOptions) {
|
|
268
|
+
return core.HttpResponsePromise.fromPromise(this.__updateCollection(readableId, request, requestOptions));
|
|
269
|
+
}
|
|
270
|
+
__updateCollection(readableId_1) {
|
|
271
|
+
return __awaiter(this, arguments, void 0, function* (readableId, request = {}, requestOptions) {
|
|
272
|
+
var _a, _b, _c;
|
|
273
|
+
const _response = yield core.fetcher({
|
|
274
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirweaveSDKEnvironment.Production, `collections/${encodeURIComponent(readableId)}`),
|
|
275
|
+
method: "PUT",
|
|
276
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
277
|
+
contentType: "application/json",
|
|
278
|
+
requestType: "json",
|
|
279
|
+
body: request,
|
|
280
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
281
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
282
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
283
|
+
});
|
|
284
|
+
if (_response.ok) {
|
|
285
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
286
|
+
}
|
|
287
|
+
if (_response.error.reason === "status-code") {
|
|
288
|
+
switch (_response.error.statusCode) {
|
|
289
|
+
case 422:
|
|
290
|
+
throw new AirweaveSDK.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
291
|
+
default:
|
|
292
|
+
throw new errors.AirweaveSDKError({
|
|
293
|
+
statusCode: _response.error.statusCode,
|
|
294
|
+
body: _response.error.body,
|
|
295
|
+
rawResponse: _response.rawResponse,
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
switch (_response.error.reason) {
|
|
300
|
+
case "non-json":
|
|
301
|
+
throw new errors.AirweaveSDKError({
|
|
302
|
+
statusCode: _response.error.statusCode,
|
|
303
|
+
body: _response.error.rawBody,
|
|
304
|
+
rawResponse: _response.rawResponse,
|
|
305
|
+
});
|
|
306
|
+
case "timeout":
|
|
307
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling PUT /collections/{readable_id}.");
|
|
308
|
+
case "unknown":
|
|
309
|
+
throw new errors.AirweaveSDKError({
|
|
310
|
+
message: _response.error.errorMessage,
|
|
311
|
+
rawResponse: _response.rawResponse,
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Delete a collection and optionally its associated data.
|
|
318
|
+
*
|
|
319
|
+
* <br/><br/>
|
|
320
|
+
* Permanently removes a collection from your organization. By default, this only
|
|
321
|
+
* deletes the collection metadata while preserving the actual data in the
|
|
322
|
+
* destination systems.<br/><br/>All source connections within this collection
|
|
323
|
+
* will also be deleted as part of the cleanup process.
|
|
324
|
+
*
|
|
325
|
+
* @param {string} readableId - The unique readable identifier of the collection to delete
|
|
326
|
+
* @param {AirweaveSDK.DeleteCollectionCollectionsReadableIdDeleteRequest} request
|
|
327
|
+
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
328
|
+
*
|
|
329
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
330
|
+
*
|
|
331
|
+
* @example
|
|
332
|
+
* await client.collections.deleteCollection("readable_id")
|
|
333
|
+
*/
|
|
334
|
+
deleteCollection(readableId, request = {}, requestOptions) {
|
|
335
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteCollection(readableId, request, requestOptions));
|
|
336
|
+
}
|
|
337
|
+
__deleteCollection(readableId_1) {
|
|
338
|
+
return __awaiter(this, arguments, void 0, function* (readableId, request = {}, requestOptions) {
|
|
339
|
+
var _a, _b, _c;
|
|
340
|
+
const { delete_data: deleteData } = request;
|
|
341
|
+
const _queryParams = {};
|
|
342
|
+
if (deleteData != null) {
|
|
343
|
+
_queryParams["delete_data"] = deleteData.toString();
|
|
344
|
+
}
|
|
345
|
+
const _response = yield core.fetcher({
|
|
346
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirweaveSDKEnvironment.Production, `collections/${encodeURIComponent(readableId)}`),
|
|
347
|
+
method: "DELETE",
|
|
348
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
349
|
+
queryParameters: _queryParams,
|
|
350
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
351
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
352
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
353
|
+
});
|
|
354
|
+
if (_response.ok) {
|
|
355
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
356
|
+
}
|
|
357
|
+
if (_response.error.reason === "status-code") {
|
|
358
|
+
switch (_response.error.statusCode) {
|
|
359
|
+
case 422:
|
|
360
|
+
throw new AirweaveSDK.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
361
|
+
default:
|
|
362
|
+
throw new errors.AirweaveSDKError({
|
|
363
|
+
statusCode: _response.error.statusCode,
|
|
364
|
+
body: _response.error.body,
|
|
365
|
+
rawResponse: _response.rawResponse,
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
switch (_response.error.reason) {
|
|
370
|
+
case "non-json":
|
|
371
|
+
throw new errors.AirweaveSDKError({
|
|
372
|
+
statusCode: _response.error.statusCode,
|
|
373
|
+
body: _response.error.rawBody,
|
|
374
|
+
rawResponse: _response.rawResponse,
|
|
375
|
+
});
|
|
376
|
+
case "timeout":
|
|
377
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling DELETE /collections/{readable_id}.");
|
|
378
|
+
case "unknown":
|
|
379
|
+
throw new errors.AirweaveSDKError({
|
|
380
|
+
message: _response.error.errorMessage,
|
|
381
|
+
rawResponse: _response.rawResponse,
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Search across all data sources within the specified collection.
|
|
388
|
+
*
|
|
389
|
+
* @param {string} readableId - The unique readable identifier of the collection to search
|
|
390
|
+
* @param {AirweaveSDK.SearchCollectionCollectionsReadableIdSearchGetRequest} request
|
|
391
|
+
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
392
|
+
*
|
|
393
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
394
|
+
*
|
|
395
|
+
* @example
|
|
396
|
+
* await client.collections.searchCollection("readable_id", {
|
|
397
|
+
* query: "customer payment issues"
|
|
398
|
+
* })
|
|
399
|
+
*/
|
|
400
|
+
searchCollection(readableId, request, requestOptions) {
|
|
401
|
+
return core.HttpResponsePromise.fromPromise(this.__searchCollection(readableId, request, requestOptions));
|
|
402
|
+
}
|
|
403
|
+
__searchCollection(readableId, request, requestOptions) {
|
|
404
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
405
|
+
var _a, _b, _c;
|
|
406
|
+
const { query, response_type: responseType } = request;
|
|
407
|
+
const _queryParams = {};
|
|
408
|
+
_queryParams["query"] = query;
|
|
409
|
+
if (responseType != null) {
|
|
410
|
+
_queryParams["response_type"] = responseType;
|
|
411
|
+
}
|
|
412
|
+
const _response = yield core.fetcher({
|
|
413
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirweaveSDKEnvironment.Production, `collections/${encodeURIComponent(readableId)}/search`),
|
|
414
|
+
method: "GET",
|
|
415
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
416
|
+
queryParameters: _queryParams,
|
|
417
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
418
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
419
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
420
|
+
});
|
|
421
|
+
if (_response.ok) {
|
|
422
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
423
|
+
}
|
|
424
|
+
if (_response.error.reason === "status-code") {
|
|
425
|
+
switch (_response.error.statusCode) {
|
|
426
|
+
case 422:
|
|
427
|
+
throw new AirweaveSDK.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
428
|
+
default:
|
|
429
|
+
throw new errors.AirweaveSDKError({
|
|
430
|
+
statusCode: _response.error.statusCode,
|
|
431
|
+
body: _response.error.body,
|
|
432
|
+
rawResponse: _response.rawResponse,
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
switch (_response.error.reason) {
|
|
437
|
+
case "non-json":
|
|
438
|
+
throw new errors.AirweaveSDKError({
|
|
439
|
+
statusCode: _response.error.statusCode,
|
|
440
|
+
body: _response.error.rawBody,
|
|
441
|
+
rawResponse: _response.rawResponse,
|
|
442
|
+
});
|
|
443
|
+
case "timeout":
|
|
444
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /collections/{readable_id}/search.");
|
|
445
|
+
case "unknown":
|
|
446
|
+
throw new errors.AirweaveSDKError({
|
|
447
|
+
message: _response.error.errorMessage,
|
|
448
|
+
rawResponse: _response.rawResponse,
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Trigger data synchronization for all source connections in the collection.
|
|
455
|
+
*
|
|
456
|
+
* <br/><br/>The sync jobs run asynchronously in the background, so this endpoint
|
|
457
|
+
* returns immediately with job details that you can use to track progress. You can
|
|
458
|
+
* monitor the status of individual data synchronization using the source connection
|
|
459
|
+
* endpoints.
|
|
460
|
+
*
|
|
461
|
+
* @param {string} readableId - The unique readable identifier of the collection to refresh
|
|
462
|
+
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
463
|
+
*
|
|
464
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
465
|
+
*
|
|
466
|
+
* @example
|
|
467
|
+
* await client.collections.refreshAllSourceConnections("readable_id")
|
|
468
|
+
*/
|
|
469
|
+
refreshAllSourceConnections(readableId, requestOptions) {
|
|
470
|
+
return core.HttpResponsePromise.fromPromise(this.__refreshAllSourceConnections(readableId, requestOptions));
|
|
471
|
+
}
|
|
472
|
+
__refreshAllSourceConnections(readableId, requestOptions) {
|
|
473
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
474
|
+
var _a, _b, _c;
|
|
475
|
+
const _response = yield core.fetcher({
|
|
476
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirweaveSDKEnvironment.Production, `collections/${encodeURIComponent(readableId)}/refresh_all`),
|
|
477
|
+
method: "POST",
|
|
478
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
479
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
480
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
481
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
482
|
+
});
|
|
483
|
+
if (_response.ok) {
|
|
484
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
485
|
+
}
|
|
486
|
+
if (_response.error.reason === "status-code") {
|
|
487
|
+
switch (_response.error.statusCode) {
|
|
488
|
+
case 422:
|
|
489
|
+
throw new AirweaveSDK.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
490
|
+
default:
|
|
491
|
+
throw new errors.AirweaveSDKError({
|
|
492
|
+
statusCode: _response.error.statusCode,
|
|
493
|
+
body: _response.error.body,
|
|
494
|
+
rawResponse: _response.rawResponse,
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
switch (_response.error.reason) {
|
|
499
|
+
case "non-json":
|
|
500
|
+
throw new errors.AirweaveSDKError({
|
|
501
|
+
statusCode: _response.error.statusCode,
|
|
502
|
+
body: _response.error.rawBody,
|
|
503
|
+
rawResponse: _response.rawResponse,
|
|
504
|
+
});
|
|
505
|
+
case "timeout":
|
|
506
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling POST /collections/{readable_id}/refresh_all.");
|
|
507
|
+
case "unknown":
|
|
508
|
+
throw new errors.AirweaveSDKError({
|
|
509
|
+
message: _response.error.errorMessage,
|
|
510
|
+
rawResponse: _response.rawResponse,
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
_getCustomAuthorizationHeaders() {
|
|
516
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
517
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
518
|
+
return { "x-api-key": apiKeyValue };
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
exports.Collections = Collections;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* name: "Finance Data",
|
|
8
|
+
* readable_id: "finance-data-reports"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface CollectionCreate {
|
|
12
|
+
/** Human-readable display name for the collection. This appears in the UI and should clearly describe the data contained within (e.g., 'Finance Data'). */
|
|
13
|
+
name: string;
|
|
14
|
+
/** URL-safe unique identifier used in API endpoints. Must contain only lowercase letters, numbers, and hyphens. If not provided, it will be automatically generated from the collection name with a random suffix for uniqueness (e.g., 'finance-data-ab123'). */
|
|
15
|
+
readable_id?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* name: "Updated Finance Data"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface CollectionUpdate {
|
|
11
|
+
/** Updated display name for the collection. Must be between 4 and 64 characters. */
|
|
12
|
+
name?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface DeleteCollectionCollectionsReadableIdDeleteRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Whether to also delete all associated data from destination systems
|
|
11
|
+
*/
|
|
12
|
+
delete_data?: boolean;
|
|
13
|
+
}
|
package/dist/cjs/api/resources/collections/client/requests/ListCollectionsCollectionsGetRequest.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface ListCollectionsCollectionsGetRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Number of collections to skip for pagination
|
|
11
|
+
*/
|
|
12
|
+
skip?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Maximum number of collections to return (1-1000)
|
|
15
|
+
*/
|
|
16
|
+
limit?: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* query: "customer payment issues"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface SearchCollectionCollectionsReadableIdSearchGetRequest {
|
|
12
|
+
/**
|
|
13
|
+
* The search query text to find relevant documents and data
|
|
14
|
+
*/
|
|
15
|
+
query: string;
|
|
16
|
+
/**
|
|
17
|
+
* Format of the response: 'raw' returns search results, 'completion' returns AI-generated answers
|
|
18
|
+
*/
|
|
19
|
+
response_type?: AirweaveSDK.ResponseType;
|
|
20
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { type ListCollectionsCollectionsGetRequest } from "./ListCollectionsCollectionsGetRequest.js";
|
|
2
|
+
export { type CollectionCreate } from "./CollectionCreate.js";
|
|
3
|
+
export { type CollectionUpdate } from "./CollectionUpdate.js";
|
|
4
|
+
export { type DeleteCollectionCollectionsReadableIdDeleteRequest } from "./DeleteCollectionCollectionsReadableIdDeleteRequest.js";
|
|
5
|
+
export { type SearchCollectionCollectionsReadableIdSearchGetRequest } from "./SearchCollectionCollectionsReadableIdSearchGetRequest.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|