@airweave/sdk 0.2.26 → 0.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +8 -13
- package/Client.js +13 -23
- package/README.md +10 -8
- package/api/index.d.ts +1 -1
- package/api/index.js +1 -1
- package/api/resources/collections/client/Client.d.ts +112 -0
- package/{dist/api/resources/apiKeys → api/resources/collections}/client/Client.js +133 -94
- package/api/resources/collections/client/requests/CollectionCreate.d.ts +15 -0
- package/{dist/api/resources/sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.d.ts → api/resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.d.ts} +1 -1
- package/{dist/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts → api/resources/collections/client/requests/ListCollectionsCollectionsGetRequest.d.ts} +1 -1
- package/api/resources/collections/client/requests/index.d.ts +3 -0
- package/api/resources/connections/client/Client.d.ts +3 -177
- package/api/resources/connections/client/Client.js +7 -553
- package/api/resources/connections/client/index.d.ts +1 -1
- package/api/resources/connections/client/index.js +0 -15
- package/api/resources/index.d.ts +4 -9
- package/api/resources/index.js +5 -10
- package/api/resources/sourceConnections/client/Client.d.ts +191 -0
- package/{dist/api/resources/sync → api/resources/sourceConnections}/client/Client.js +121 -412
- package/api/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.d.ts +10 -0
- package/api/resources/sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.d.ts +10 -0
- package/api/resources/{sync/client/requests/ListSyncsSyncGetRequest.d.ts → sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.d.ts} +5 -2
- package/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +17 -0
- package/api/resources/sourceConnections/client/requests/index.d.ts +4 -0
- package/api/resources/sources/client/Client.d.ts +4 -2
- package/api/resources/sources/client/Client.js +11 -6
- package/api/resources/whiteLabels/client/Client.d.ts +3 -47
- package/api/resources/whiteLabels/client/Client.js +20 -170
- package/api/types/ApiKey.d.ts +3 -3
- package/api/{resources/apiKeys/client/requests → types}/ApiKeyCreate.d.ts +2 -2
- package/{dist/api/resources/connections/client/requests → api/types}/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +1 -9
- package/api/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.d.ts +8 -0
- package/api/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +2 -0
- package/api/types/Collection.d.ts +19 -0
- package/api/types/CollectionStatus.d.ts +13 -0
- package/api/types/CollectionStatus.js +12 -0
- package/api/types/CollectionUpdate.d.ts +10 -0
- package/api/types/ConfigValues.d.ts +9 -0
- package/{dist/api/types/DestinationWithConfigFields.d.ts → api/types/DestinationWithAuthenticationFields.d.ts} +2 -2
- package/{dist/api/types/EmbeddingModelWithConfigFields.d.ts → api/types/EmbeddingModelWithAuthenticationFields.d.ts} +2 -2
- package/api/types/EntityCount.d.ts +9 -0
- package/api/types/Organization.d.ts +13 -0
- package/api/types/ResponseType.d.ts +11 -0
- package/api/types/ResponseType.js +10 -0
- package/api/types/SearchResponse.d.ts +13 -0
- package/api/types/SearchStatus.d.ts +12 -0
- package/api/types/SearchStatus.js +11 -0
- package/api/types/SourceConnection.d.ts +31 -0
- package/api/types/SourceConnectionAuthFields.d.ts +5 -0
- package/api/types/SourceConnectionCreate.d.ts +21 -0
- package/api/types/SourceConnectionJob.d.ts +30 -0
- package/api/types/SourceConnectionListItem.d.ts +21 -0
- package/api/types/SourceConnectionStatus.d.ts +12 -0
- package/api/types/SourceConnectionStatus.js +11 -0
- package/api/types/{SourceWithConfigFields.d.ts → SourceWithAuthenticationFields.d.ts} +2 -2
- package/{dist/api/resources/sync/client/requests → api/types}/SyncCreate.d.ts +2 -7
- package/api/types/SyncJob.d.ts +6 -4
- package/api/{resources/sync/client/requests → types}/SyncUpdate.d.ts +2 -3
- package/api/types/User.d.ts +1 -1
- package/api/types/UserCreate.d.ts +11 -0
- package/api/types/index.d.ts +24 -4
- package/api/types/index.js +24 -4
- package/core/auth/BasicAuth.d.ts +8 -0
- package/core/auth/BasicAuth.js +26 -0
- package/core/auth/BearerToken.d.ts +5 -0
- package/core/auth/BearerToken.js +15 -0
- package/core/auth/index.d.ts +2 -0
- package/core/auth/index.js +7 -0
- package/core/index.d.ts +1 -0
- package/core/index.js +1 -0
- package/dist/Client.d.ts +8 -13
- package/dist/Client.js +13 -23
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/resources/collections/client/Client.d.ts +112 -0
- package/{api/resources/apiKeys → dist/api/resources/collections}/client/Client.js +133 -94
- package/dist/api/resources/collections/client/requests/CollectionCreate.d.ts +15 -0
- package/{api/resources/sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.d.ts → dist/api/resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.d.ts} +1 -1
- package/{api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.d.ts → dist/api/resources/collections/client/requests/ListCollectionsCollectionsGetRequest.d.ts} +1 -1
- package/dist/api/resources/collections/client/requests/index.d.ts +3 -0
- package/dist/api/resources/connections/client/Client.d.ts +3 -177
- package/dist/api/resources/connections/client/Client.js +7 -553
- package/dist/api/resources/connections/client/index.d.ts +1 -1
- package/dist/api/resources/connections/client/index.js +0 -15
- package/dist/api/resources/index.d.ts +4 -9
- package/dist/api/resources/index.js +5 -10
- package/dist/api/resources/sourceConnections/client/Client.d.ts +191 -0
- package/{api/resources/sync → dist/api/resources/sourceConnections}/client/Client.js +121 -412
- package/dist/api/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.d.ts +10 -0
- package/dist/api/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.js +5 -0
- package/dist/api/resources/sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.d.ts +10 -0
- package/dist/api/resources/sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.js +5 -0
- package/{api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts → dist/api/resources/sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.d.ts} +5 -1
- package/dist/api/resources/sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.js +5 -0
- package/dist/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +17 -0
- package/dist/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.js +5 -0
- package/dist/api/resources/sourceConnections/client/requests/index.d.ts +4 -0
- package/dist/api/resources/sources/client/Client.d.ts +4 -2
- package/dist/api/resources/sources/client/Client.js +11 -6
- package/dist/api/resources/whiteLabels/client/Client.d.ts +3 -47
- package/dist/api/resources/whiteLabels/client/Client.js +20 -170
- package/dist/api/types/ApiKey.d.ts +3 -3
- package/dist/api/{resources/apiKeys/client/requests → types}/ApiKeyCreate.d.ts +2 -2
- package/dist/api/types/ApiKeyCreate.js +5 -0
- package/{api/resources/connections/client/requests → dist/api/types}/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +1 -9
- package/dist/api/types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +5 -0
- package/dist/api/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.d.ts +8 -0
- package/dist/api/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.js +5 -0
- package/dist/api/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +2 -0
- package/dist/api/types/Collection.d.ts +19 -0
- package/dist/api/types/Collection.js +5 -0
- package/dist/api/types/CollectionStatus.d.ts +13 -0
- package/dist/api/types/CollectionStatus.js +12 -0
- package/dist/api/types/CollectionUpdate.d.ts +10 -0
- package/dist/api/types/CollectionUpdate.js +5 -0
- package/dist/api/types/ConfigValues.d.ts +9 -0
- package/dist/api/types/ConfigValues.js +5 -0
- package/{api/types/DestinationWithConfigFields.d.ts → dist/api/types/DestinationWithAuthenticationFields.d.ts} +2 -2
- package/dist/api/types/DestinationWithAuthenticationFields.js +5 -0
- package/{api/types/EmbeddingModelWithConfigFields.d.ts → dist/api/types/EmbeddingModelWithAuthenticationFields.d.ts} +2 -2
- package/dist/api/types/EmbeddingModelWithAuthenticationFields.js +5 -0
- package/dist/api/types/EntityCount.d.ts +9 -0
- package/dist/api/types/EntityCount.js +5 -0
- package/dist/api/types/Organization.d.ts +13 -0
- package/dist/api/types/Organization.js +5 -0
- package/dist/api/types/ResponseType.d.ts +11 -0
- package/dist/api/types/ResponseType.js +10 -0
- package/dist/api/types/SearchResponse.d.ts +13 -0
- package/dist/api/types/SearchResponse.js +5 -0
- package/dist/api/types/SearchStatus.d.ts +12 -0
- package/dist/api/types/SearchStatus.js +11 -0
- package/dist/api/types/SourceConnection.d.ts +31 -0
- package/dist/api/types/SourceConnection.js +5 -0
- package/dist/api/types/SourceConnectionAuthFields.d.ts +5 -0
- package/dist/api/types/SourceConnectionAuthFields.js +5 -0
- package/dist/api/types/SourceConnectionCreate.d.ts +21 -0
- package/dist/api/types/SourceConnectionCreate.js +5 -0
- package/dist/api/types/SourceConnectionJob.d.ts +30 -0
- package/dist/api/types/SourceConnectionJob.js +5 -0
- package/dist/api/types/SourceConnectionListItem.d.ts +21 -0
- package/dist/api/types/SourceConnectionListItem.js +5 -0
- package/dist/api/types/SourceConnectionStatus.d.ts +12 -0
- package/dist/api/types/SourceConnectionStatus.js +11 -0
- package/dist/api/types/{SourceWithConfigFields.d.ts → SourceWithAuthenticationFields.d.ts} +2 -2
- package/dist/api/types/SourceWithAuthenticationFields.js +5 -0
- package/{api/resources/sync/client/requests → dist/api/types}/SyncCreate.d.ts +2 -7
- package/dist/api/types/SyncCreate.js +5 -0
- package/dist/api/types/SyncJob.d.ts +6 -4
- package/dist/api/{resources/sync/client/requests → types}/SyncUpdate.d.ts +2 -3
- package/dist/api/types/SyncUpdate.js +5 -0
- package/dist/api/types/User.d.ts +1 -1
- package/dist/api/types/UserCreate.d.ts +11 -0
- package/dist/api/types/UserCreate.js +5 -0
- package/dist/api/types/index.d.ts +24 -4
- package/dist/api/types/index.js +24 -4
- package/dist/core/auth/BasicAuth.d.ts +8 -0
- package/dist/core/auth/BasicAuth.js +26 -0
- package/dist/core/auth/BearerToken.d.ts +5 -0
- package/dist/core/auth/BearerToken.js +15 -0
- package/dist/core/auth/index.d.ts +2 -0
- package/dist/core/auth/index.js +7 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/serialization/index.d.ts +1 -1
- package/dist/serialization/index.js +1 -1
- package/dist/serialization/resources/collections/client/index.d.ts +3 -0
- package/dist/serialization/resources/{apiKeys → collections}/client/index.js +3 -2
- package/dist/serialization/resources/{apiKeys/client/readApiKeys.d.ts → collections/client/listCollections.d.ts} +3 -3
- package/{serialization/resources/connections/client/listConnectedIntegrations.js → dist/serialization/resources/collections/client/listCollections.js} +2 -2
- package/dist/serialization/resources/{embeddingModels/client/readEmbeddingModels.d.ts → collections/client/refreshAllSourceConnections.d.ts} +3 -3
- package/dist/serialization/resources/{apiKeys/client/readApiKeys.js → collections/client/refreshAllSourceConnections.js} +2 -2
- package/dist/serialization/resources/{apiKeys/client/requests/ApiKeyCreate.d.ts → collections/client/requests/CollectionCreate.d.ts} +4 -3
- package/dist/serialization/resources/collections/client/requests/CollectionCreate.js +44 -0
- package/dist/serialization/resources/collections/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/collections/client/requests/index.js +5 -0
- package/dist/serialization/resources/connections/client/index.d.ts +0 -5
- package/dist/serialization/resources/connections/client/index.js +1 -9
- package/dist/serialization/resources/index.d.ts +4 -8
- package/dist/serialization/resources/index.js +5 -9
- package/dist/serialization/resources/sourceConnections/client/index.d.ts +3 -0
- package/{serialization/resources/sync → dist/serialization/resources/sourceConnections}/client/index.js +3 -3
- package/dist/serialization/resources/{connections/client/listConnectedIntegrations.d.ts → sourceConnections/client/listSourceConnectionJobs.d.ts} +3 -3
- package/dist/serialization/resources/{connections/client/getConnectionCredentials.js → sourceConnections/client/listSourceConnectionJobs.js} +2 -1
- package/dist/serialization/resources/sourceConnections/client/listSourceConnections.d.ts +11 -0
- package/dist/serialization/resources/sourceConnections/client/listSourceConnections.js +42 -0
- package/dist/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +18 -0
- package/dist/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.js +49 -0
- package/dist/serialization/resources/sourceConnections/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/sourceConnections/client/requests/index.js +5 -0
- package/dist/serialization/resources/whiteLabels/client/index.d.ts +0 -2
- package/dist/serialization/resources/whiteLabels/client/index.js +1 -3
- package/dist/serialization/types/ApiKey.d.ts +2 -2
- package/dist/serialization/types/ApiKey.js +2 -2
- package/dist/serialization/types/ApiKeyCreate.d.ts +12 -0
- package/{serialization/resources/apiKeys/client/requests → dist/serialization/types}/ApiKeyCreate.js +1 -1
- package/dist/serialization/types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +13 -0
- package/dist/serialization/{resources/connections/client/requests → types}/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +2 -2
- package/dist/serialization/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.d.ts +14 -0
- package/dist/serialization/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.js +45 -0
- package/dist/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +2 -0
- package/dist/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +2 -0
- package/dist/serialization/types/{ApiKeyWithPlainKey.d.ts → Collection.d.ts} +7 -7
- package/{serialization/types/ApiKeyWithPlainKey.js → dist/serialization/types/Collection.js} +7 -7
- package/dist/serialization/types/CollectionStatus.d.ts +10 -0
- package/dist/serialization/types/CollectionStatus.js +41 -0
- package/dist/serialization/types/CollectionUpdate.d.ts +12 -0
- package/dist/serialization/types/CollectionUpdate.js +43 -0
- package/dist/serialization/types/ConfigValues.d.ts +10 -0
- package/dist/serialization/types/ConfigValues.js +41 -0
- package/dist/serialization/types/{DestinationWithConfigFields.d.ts → DestinationWithAuthenticationFields.d.ts} +3 -3
- package/dist/serialization/types/{DestinationWithConfigFields.js → DestinationWithAuthenticationFields.js} +3 -3
- package/{serialization/types/EmbeddingModelWithConfigFields.d.ts → dist/serialization/types/EmbeddingModelWithAuthenticationFields.d.ts} +3 -3
- package/{serialization/types/EmbeddingModelWithConfigFields.js → dist/serialization/types/EmbeddingModelWithAuthenticationFields.js} +3 -3
- package/dist/serialization/types/EntityCount.d.ts +12 -0
- package/dist/serialization/{resources/connections/client/sendOauth2WhiteLabelCode.js → types/EntityCount.js} +5 -3
- package/dist/serialization/types/Organization.d.ts +16 -0
- package/dist/serialization/types/Organization.js +47 -0
- package/dist/serialization/types/ResponseType.d.ts +10 -0
- package/dist/serialization/{resources/connections/client/getOauth2WhiteLabelAuthUrl.js → types/ResponseType.js} +3 -3
- package/dist/serialization/types/SearchResponse.d.ts +17 -0
- package/dist/serialization/types/SearchResponse.js +48 -0
- package/dist/serialization/types/SearchStatus.d.ts +10 -0
- package/dist/serialization/types/SearchStatus.js +41 -0
- package/dist/serialization/types/SourceConnection.d.ts +36 -0
- package/dist/serialization/types/SourceConnection.js +67 -0
- package/dist/serialization/types/SourceConnectionAuthFields.d.ts +11 -0
- package/dist/serialization/types/SourceConnectionAuthFields.js +42 -0
- package/dist/serialization/types/SourceConnectionCreate.d.ts +20 -0
- package/dist/serialization/types/SourceConnectionCreate.js +51 -0
- package/dist/serialization/types/SourceConnectionJob.d.ts +30 -0
- package/dist/serialization/types/SourceConnectionJob.js +61 -0
- package/dist/serialization/types/SourceConnectionListItem.d.ts +21 -0
- package/dist/serialization/types/SourceConnectionListItem.js +52 -0
- package/dist/serialization/types/SourceConnectionStatus.d.ts +10 -0
- package/dist/serialization/types/SourceConnectionStatus.js +41 -0
- package/dist/serialization/types/{SourceWithConfigFields.d.ts → SourceWithAuthenticationFields.d.ts} +3 -3
- package/dist/serialization/types/{SourceWithConfigFields.js → SourceWithAuthenticationFields.js} +3 -3
- package/{serialization/resources/sync/client/requests → dist/serialization/types}/SyncCreate.d.ts +5 -5
- package/dist/serialization/{resources/sync/client/requests → types}/SyncCreate.js +2 -2
- package/dist/serialization/types/SyncJob.d.ts +6 -4
- package/dist/serialization/types/SyncJob.js +6 -4
- package/dist/serialization/{resources/sync/client/requests → types}/SyncUpdate.d.ts +5 -5
- package/{serialization/resources/sync/client/requests → dist/serialization/types}/SyncUpdate.js +2 -2
- package/dist/serialization/types/User.d.ts +1 -1
- package/dist/serialization/types/User.js +1 -1
- package/dist/serialization/types/UserCreate.d.ts +14 -0
- package/dist/serialization/types/UserCreate.js +45 -0
- package/dist/serialization/types/index.d.ts +24 -4
- package/dist/serialization/types/index.js +24 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -2
- package/reference.md +257 -1437
- package/serialization/index.d.ts +1 -1
- package/serialization/index.js +1 -1
- package/serialization/resources/collections/client/index.d.ts +3 -0
- package/serialization/resources/{apiKeys → collections}/client/index.js +3 -2
- package/{dist/serialization/resources/sync/client/listSyncJobs.d.ts → serialization/resources/collections/client/listCollections.d.ts} +3 -3
- package/{dist/serialization/resources/connections/client/listConnectedIntegrations.js → serialization/resources/collections/client/listCollections.js} +2 -2
- package/{dist/serialization/resources/sync/client/listAllJobs.d.ts → serialization/resources/collections/client/refreshAllSourceConnections.d.ts} +3 -3
- package/serialization/resources/collections/client/refreshAllSourceConnections.js +42 -0
- package/serialization/resources/{apiKeys/client/requests/ApiKeyCreate.d.ts → collections/client/requests/CollectionCreate.d.ts} +4 -3
- package/serialization/resources/collections/client/requests/CollectionCreate.js +44 -0
- package/serialization/resources/collections/client/requests/index.d.ts +1 -0
- package/serialization/resources/collections/client/requests/index.js +5 -0
- package/serialization/resources/connections/client/index.d.ts +0 -5
- package/serialization/resources/connections/client/index.js +1 -9
- package/serialization/resources/index.d.ts +4 -8
- package/serialization/resources/index.js +5 -9
- package/serialization/resources/sourceConnections/client/index.d.ts +3 -0
- package/{dist/serialization/resources/sync → serialization/resources/sourceConnections}/client/index.js +3 -3
- package/serialization/resources/sourceConnections/client/listSourceConnectionJobs.d.ts +11 -0
- package/serialization/resources/sourceConnections/client/listSourceConnectionJobs.js +42 -0
- package/serialization/resources/sourceConnections/client/listSourceConnections.d.ts +11 -0
- package/serialization/resources/sourceConnections/client/listSourceConnections.js +42 -0
- package/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +18 -0
- package/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.js +49 -0
- package/serialization/resources/sourceConnections/client/requests/index.d.ts +1 -0
- package/serialization/resources/sourceConnections/client/requests/index.js +5 -0
- package/serialization/resources/whiteLabels/client/index.d.ts +0 -2
- package/serialization/resources/whiteLabels/client/index.js +1 -3
- package/serialization/types/ApiKey.d.ts +2 -2
- package/serialization/types/ApiKey.js +2 -2
- package/serialization/types/ApiKeyCreate.d.ts +12 -0
- package/{dist/serialization/resources/apiKeys/client/requests → serialization/types}/ApiKeyCreate.js +1 -1
- package/serialization/types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +13 -0
- package/serialization/{resources/connections/client/requests → types}/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +2 -2
- package/serialization/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.d.ts +14 -0
- package/serialization/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.js +45 -0
- package/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +2 -0
- package/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +2 -0
- package/serialization/types/{ApiKeyWithPlainKey.d.ts → Collection.d.ts} +7 -7
- package/{dist/serialization/types/ApiKeyWithPlainKey.js → serialization/types/Collection.js} +7 -7
- package/serialization/types/CollectionStatus.d.ts +10 -0
- package/serialization/types/CollectionStatus.js +41 -0
- package/serialization/types/CollectionUpdate.d.ts +12 -0
- package/serialization/types/CollectionUpdate.js +43 -0
- package/serialization/types/ConfigValues.d.ts +10 -0
- package/serialization/types/ConfigValues.js +41 -0
- package/serialization/types/{DestinationWithConfigFields.d.ts → DestinationWithAuthenticationFields.d.ts} +3 -3
- package/serialization/types/{DestinationWithConfigFields.js → DestinationWithAuthenticationFields.js} +3 -3
- package/{dist/serialization/types/EmbeddingModelWithConfigFields.d.ts → serialization/types/EmbeddingModelWithAuthenticationFields.d.ts} +3 -3
- package/{dist/serialization/types/EmbeddingModelWithConfigFields.js → serialization/types/EmbeddingModelWithAuthenticationFields.js} +3 -3
- package/serialization/types/EntityCount.d.ts +12 -0
- package/{dist/serialization/resources/whiteLabels/client/getWhiteLabelOauth2AuthUrl.js → serialization/types/EntityCount.js} +5 -3
- package/serialization/types/Organization.d.ts +16 -0
- package/serialization/types/Organization.js +47 -0
- package/serialization/types/ResponseType.d.ts +10 -0
- package/{dist/serialization/resources/whiteLabels/client/exchangeWhiteLabelOauth2Code.js → serialization/types/ResponseType.js} +3 -3
- package/serialization/types/SearchResponse.d.ts +17 -0
- package/serialization/types/SearchResponse.js +48 -0
- package/serialization/types/SearchStatus.d.ts +10 -0
- package/serialization/types/SearchStatus.js +41 -0
- package/serialization/types/SourceConnection.d.ts +36 -0
- package/serialization/types/SourceConnection.js +67 -0
- package/serialization/types/SourceConnectionAuthFields.d.ts +11 -0
- package/serialization/types/SourceConnectionAuthFields.js +42 -0
- package/serialization/types/SourceConnectionCreate.d.ts +20 -0
- package/serialization/types/SourceConnectionCreate.js +51 -0
- package/serialization/types/SourceConnectionJob.d.ts +30 -0
- package/serialization/types/SourceConnectionJob.js +61 -0
- package/serialization/types/SourceConnectionListItem.d.ts +21 -0
- package/serialization/types/SourceConnectionListItem.js +52 -0
- package/serialization/types/SourceConnectionStatus.d.ts +10 -0
- package/serialization/types/SourceConnectionStatus.js +41 -0
- package/serialization/types/{SourceWithConfigFields.d.ts → SourceWithAuthenticationFields.d.ts} +3 -3
- package/serialization/types/{SourceWithConfigFields.js → SourceWithAuthenticationFields.js} +3 -3
- package/{dist/serialization/resources/sync/client/requests → serialization/types}/SyncCreate.d.ts +5 -5
- package/serialization/{resources/sync/client/requests → types}/SyncCreate.js +2 -2
- package/serialization/types/SyncJob.d.ts +6 -4
- package/serialization/types/SyncJob.js +6 -4
- package/serialization/{resources/sync/client/requests → types}/SyncUpdate.d.ts +5 -5
- package/{dist/serialization/resources/sync/client/requests → serialization/types}/SyncUpdate.js +2 -2
- package/serialization/types/User.d.ts +1 -1
- package/serialization/types/User.js +1 -1
- package/serialization/types/UserCreate.d.ts +14 -0
- package/serialization/types/UserCreate.js +45 -0
- package/serialization/types/index.d.ts +24 -4
- package/serialization/types/index.js +24 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/apiKeys/client/Client.d.ts +0 -131
- package/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.d.ts +0 -12
- package/api/resources/apiKeys/client/requests/index.d.ts +0 -3
- package/api/resources/connections/client/requests/index.d.ts +0 -1
- package/api/resources/embeddingModels/client/Client.d.ts +0 -71
- package/api/resources/embeddingModels/client/Client.js +0 -211
- package/api/resources/embeddingModels/client/index.d.ts +0 -1
- package/api/resources/search/client/Client.d.ts +0 -55
- package/api/resources/search/client/Client.js +0 -147
- package/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +0 -20
- package/api/resources/search/client/requests/index.d.ts +0 -1
- package/api/resources/sync/client/Client.d.ts +0 -275
- package/api/resources/sync/client/requests/index.d.ts +0 -5
- package/api/resources/sync/client/requests/index.js +0 -2
- package/api/resources/sync/index.d.ts +0 -2
- package/api/resources/sync/index.js +0 -18
- package/api/resources/sync/types/ListSyncsSyncGetResponse.d.ts +0 -5
- package/api/resources/sync/types/index.d.ts +0 -1
- package/api/resources/sync/types/index.js +0 -17
- package/api/types/ApiKeyWithPlainKey.d.ts +0 -18
- package/dist/api/resources/apiKeys/client/Client.d.ts +0 -131
- package/dist/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.d.ts +0 -12
- package/dist/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.d.ts +0 -11
- package/dist/api/resources/apiKeys/client/requests/index.d.ts +0 -3
- package/dist/api/resources/apiKeys/client/requests/index.js +0 -2
- package/dist/api/resources/connections/client/requests/index.d.ts +0 -1
- package/dist/api/resources/connections/client/requests/index.js +0 -2
- package/dist/api/resources/embeddingModels/client/Client.d.ts +0 -71
- package/dist/api/resources/embeddingModels/client/Client.js +0 -211
- package/dist/api/resources/embeddingModels/client/index.d.ts +0 -1
- package/dist/api/resources/embeddingModels/client/index.js +0 -2
- package/dist/api/resources/search/client/Client.d.ts +0 -55
- package/dist/api/resources/search/client/Client.js +0 -147
- package/dist/api/resources/search/client/index.d.ts +0 -1
- package/dist/api/resources/search/client/index.js +0 -17
- package/dist/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +0 -20
- package/dist/api/resources/search/client/requests/index.d.ts +0 -1
- package/dist/api/resources/search/client/requests/index.js +0 -2
- package/dist/api/resources/sync/client/Client.d.ts +0 -275
- package/dist/api/resources/sync/client/index.d.ts +0 -1
- package/dist/api/resources/sync/client/index.js +0 -17
- package/dist/api/resources/sync/client/requests/ListSyncsSyncGetRequest.d.ts +0 -12
- package/dist/api/resources/sync/client/requests/index.d.ts +0 -5
- package/dist/api/resources/sync/client/requests/index.js +0 -2
- package/dist/api/resources/sync/index.d.ts +0 -2
- package/dist/api/resources/sync/index.js +0 -18
- package/dist/api/resources/sync/types/ListSyncsSyncGetResponse.d.ts +0 -5
- package/dist/api/resources/sync/types/index.d.ts +0 -1
- package/dist/api/resources/sync/types/index.js +0 -17
- package/dist/api/types/ApiKeyWithPlainKey.d.ts +0 -18
- package/dist/serialization/resources/apiKeys/client/index.d.ts +0 -2
- package/dist/serialization/resources/apiKeys/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/apiKeys/client/requests/index.js +0 -5
- package/dist/serialization/resources/connections/client/getConnectionCredentials.d.ts +0 -9
- package/dist/serialization/resources/connections/client/getOauth2WhiteLabelAuthUrl.d.ts +0 -9
- package/dist/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +0 -13
- package/dist/serialization/resources/connections/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/connections/client/requests/index.js +0 -5
- package/dist/serialization/resources/connections/client/sendOauth2WhiteLabelCode.d.ts +0 -9
- package/dist/serialization/resources/embeddingModels/client/index.d.ts +0 -1
- package/dist/serialization/resources/embeddingModels/client/index.js +0 -37
- package/dist/serialization/resources/embeddingModels/client/readEmbeddingModels.js +0 -42
- package/dist/serialization/resources/search/client/index.d.ts +0 -1
- package/dist/serialization/resources/search/client/index.js +0 -37
- package/dist/serialization/resources/search/client/search.d.ts +0 -9
- package/dist/serialization/resources/search/client/search.js +0 -41
- package/dist/serialization/resources/search/index.d.ts +0 -1
- package/dist/serialization/resources/search/index.js +0 -17
- package/dist/serialization/resources/sync/client/index.d.ts +0 -3
- package/dist/serialization/resources/sync/client/listAllJobs.js +0 -42
- package/dist/serialization/resources/sync/client/listSyncJobs.js +0 -42
- package/dist/serialization/resources/sync/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/sync/client/requests/index.js +0 -7
- package/dist/serialization/resources/sync/index.d.ts +0 -2
- package/dist/serialization/resources/sync/index.js +0 -18
- package/dist/serialization/resources/sync/types/ListSyncsSyncGetResponse.d.ts +0 -12
- package/dist/serialization/resources/sync/types/ListSyncsSyncGetResponse.js +0 -46
- package/dist/serialization/resources/sync/types/index.d.ts +0 -1
- package/dist/serialization/resources/sync/types/index.js +0 -17
- package/dist/serialization/resources/whiteLabels/client/exchangeWhiteLabelOauth2Code.d.ts +0 -9
- package/dist/serialization/resources/whiteLabels/client/getWhiteLabelOauth2AuthUrl.d.ts +0 -9
- package/serialization/resources/apiKeys/client/index.d.ts +0 -2
- package/serialization/resources/apiKeys/client/readApiKeys.d.ts +0 -11
- package/serialization/resources/apiKeys/client/readApiKeys.js +0 -42
- package/serialization/resources/apiKeys/client/requests/index.d.ts +0 -1
- package/serialization/resources/apiKeys/client/requests/index.js +0 -5
- package/serialization/resources/apiKeys/index.d.ts +0 -1
- package/serialization/resources/apiKeys/index.js +0 -17
- package/serialization/resources/connections/client/getConnectionCredentials.d.ts +0 -9
- package/serialization/resources/connections/client/getConnectionCredentials.js +0 -41
- package/serialization/resources/connections/client/getOauth2WhiteLabelAuthUrl.d.ts +0 -9
- package/serialization/resources/connections/client/getOauth2WhiteLabelAuthUrl.js +0 -41
- package/serialization/resources/connections/client/listConnectedIntegrations.d.ts +0 -11
- package/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +0 -13
- package/serialization/resources/connections/client/requests/index.d.ts +0 -1
- package/serialization/resources/connections/client/requests/index.js +0 -5
- package/serialization/resources/connections/client/sendOauth2WhiteLabelCode.d.ts +0 -9
- package/serialization/resources/connections/client/sendOauth2WhiteLabelCode.js +0 -41
- package/serialization/resources/embeddingModels/client/index.d.ts +0 -1
- package/serialization/resources/embeddingModels/client/index.js +0 -37
- package/serialization/resources/embeddingModels/client/readEmbeddingModels.d.ts +0 -11
- package/serialization/resources/embeddingModels/client/readEmbeddingModels.js +0 -42
- package/serialization/resources/embeddingModels/index.d.ts +0 -1
- package/serialization/resources/embeddingModels/index.js +0 -17
- package/serialization/resources/search/client/index.d.ts +0 -1
- package/serialization/resources/search/client/index.js +0 -37
- package/serialization/resources/search/client/search.d.ts +0 -9
- package/serialization/resources/search/client/search.js +0 -41
- package/serialization/resources/search/index.d.ts +0 -1
- package/serialization/resources/search/index.js +0 -17
- package/serialization/resources/sync/client/index.d.ts +0 -3
- package/serialization/resources/sync/client/listAllJobs.d.ts +0 -11
- package/serialization/resources/sync/client/listAllJobs.js +0 -42
- package/serialization/resources/sync/client/listSyncJobs.d.ts +0 -11
- package/serialization/resources/sync/client/listSyncJobs.js +0 -42
- package/serialization/resources/sync/client/requests/index.d.ts +0 -2
- package/serialization/resources/sync/client/requests/index.js +0 -7
- package/serialization/resources/sync/index.d.ts +0 -2
- package/serialization/resources/sync/index.js +0 -18
- package/serialization/resources/sync/types/ListSyncsSyncGetResponse.d.ts +0 -12
- package/serialization/resources/sync/types/ListSyncsSyncGetResponse.js +0 -46
- package/serialization/resources/sync/types/index.d.ts +0 -1
- package/serialization/resources/sync/types/index.js +0 -17
- package/serialization/resources/whiteLabels/client/exchangeWhiteLabelOauth2Code.d.ts +0 -9
- package/serialization/resources/whiteLabels/client/exchangeWhiteLabelOauth2Code.js +0 -41
- package/serialization/resources/whiteLabels/client/getWhiteLabelOauth2AuthUrl.d.ts +0 -9
- package/serialization/resources/whiteLabels/client/getWhiteLabelOauth2AuthUrl.js +0 -41
- /package/api/resources/{apiKeys → collections}/client/index.d.ts +0 -0
- /package/api/resources/{apiKeys → collections}/client/index.js +0 -0
- /package/api/resources/{apiKeys/client/requests/ApiKeyCreate.js → collections/client/requests/CollectionCreate.js} +0 -0
- /package/api/resources/{apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.js → collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.js} +0 -0
- /package/api/resources/{apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.js → collections/client/requests/ListCollectionsCollectionsGetRequest.js} +0 -0
- /package/api/resources/{apiKeys → collections}/client/requests/index.js +0 -0
- /package/api/resources/{apiKeys → collections}/index.d.ts +0 -0
- /package/api/resources/{apiKeys → collections}/index.js +0 -0
- /package/api/resources/{search → sourceConnections}/client/index.d.ts +0 -0
- /package/api/resources/{search → sourceConnections}/client/index.js +0 -0
- /package/api/resources/{connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js → sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.js} +0 -0
- /package/api/resources/{search/client/requests/SearchSearchGetRequest.js → sourceConnections/client/requests/GetSourceConnectionSourceConnectionsSourceConnectionIdGetRequest.js} +0 -0
- /package/api/resources/{sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.js → sourceConnections/client/requests/ListSourceConnectionsSourceConnectionsGetRequest.js} +0 -0
- /package/api/resources/{sync/client/requests/ListAllJobsSyncJobsGetRequest.js → sourceConnections/client/requests/SourceConnectionUpdate.js} +0 -0
- /package/api/resources/{connections → sourceConnections}/client/requests/index.js +0 -0
- /package/api/resources/{embeddingModels → sourceConnections}/index.d.ts +0 -0
- /package/api/resources/{embeddingModels → sourceConnections}/index.js +0 -0
- /package/{dist/api/resources/apiKeys/client/requests → api/types}/ApiKeyCreate.js +0 -0
- /package/{dist/api/resources/connections/client/requests → api/types}/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +0 -0
- /package/api/{resources/sync/client/requests/ListSyncsSyncGetRequest.js → types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.js} +0 -0
- /package/api/{resources/sync/client/requests/SyncCreate.js → types/Collection.js} +0 -0
- /package/api/{resources/sync/client/requests/SyncUpdate.js → types/CollectionUpdate.js} +0 -0
- /package/api/{resources/sync/types/ListSyncsSyncGetResponse.js → types/ConfigValues.js} +0 -0
- /package/api/types/{ApiKeyWithPlainKey.js → DestinationWithAuthenticationFields.js} +0 -0
- /package/api/types/{DestinationWithConfigFields.js → EmbeddingModelWithAuthenticationFields.js} +0 -0
- /package/api/types/{EmbeddingModelWithConfigFields.js → EntityCount.js} +0 -0
- /package/api/types/{SourceWithConfigFields.js → Organization.js} +0 -0
- /package/{dist/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.js → api/types/SearchResponse.js} +0 -0
- /package/{dist/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.js → api/types/SourceConnection.js} +0 -0
- /package/{dist/api/resources/search/client/requests/SearchSearchGetRequest.js → api/types/SourceConnectionAuthFields.js} +0 -0
- /package/{dist/api/resources/sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.js → api/types/SourceConnectionCreate.js} +0 -0
- /package/{dist/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.js → api/types/SourceConnectionJob.js} +0 -0
- /package/{dist/api/resources/sync/client/requests/ListSyncsSyncGetRequest.js → api/types/SourceConnectionListItem.js} +0 -0
- /package/{dist/api/resources/sync/client/requests/SyncCreate.js → api/types/SourceWithAuthenticationFields.js} +0 -0
- /package/{dist/api/resources/sync/client/requests/SyncUpdate.js → api/types/SyncCreate.js} +0 -0
- /package/{dist/api/resources/sync/types/ListSyncsSyncGetResponse.js → api/types/SyncUpdate.js} +0 -0
- /package/{dist/api/types/ApiKeyWithPlainKey.js → api/types/UserCreate.js} +0 -0
- /package/{api/resources/sync → dist/api/resources/collections}/client/index.d.ts +0 -0
- /package/{api/resources/sync → dist/api/resources/collections}/client/index.js +0 -0
- /package/dist/api/{types/DestinationWithConfigFields.js → resources/collections/client/requests/CollectionCreate.js} +0 -0
- /package/dist/api/{types/EmbeddingModelWithConfigFields.js → resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.js} +0 -0
- /package/dist/api/{types/SourceWithConfigFields.js → resources/collections/client/requests/ListCollectionsCollectionsGetRequest.js} +0 -0
- /package/{api/resources/embeddingModels/client → dist/api/resources/collections/client/requests}/index.js +0 -0
- /package/{api/resources/search → dist/api/resources/collections}/index.d.ts +0 -0
- /package/{api/resources/search → dist/api/resources/collections}/index.js +0 -0
- /package/dist/api/resources/{apiKeys → sourceConnections}/client/index.d.ts +0 -0
- /package/dist/api/resources/{apiKeys → sourceConnections}/client/index.js +0 -0
- /package/{api/resources/search → dist/api/resources/sourceConnections}/client/requests/index.js +0 -0
- /package/dist/api/resources/{apiKeys → sourceConnections}/index.d.ts +0 -0
- /package/dist/api/resources/{apiKeys → sourceConnections}/index.js +0 -0
- /package/dist/{api/resources/embeddingModels → serialization/resources/collections}/index.d.ts +0 -0
- /package/dist/{api/resources/embeddingModels → serialization/resources/collections}/index.js +0 -0
- /package/dist/{api/resources/search → serialization/resources/sourceConnections}/index.d.ts +0 -0
- /package/dist/{api/resources/search → serialization/resources/sourceConnections}/index.js +0 -0
- /package/{dist/serialization/resources/apiKeys → serialization/resources/collections}/index.d.ts +0 -0
- /package/{dist/serialization/resources/apiKeys → serialization/resources/collections}/index.js +0 -0
- /package/{dist/serialization/resources/embeddingModels → serialization/resources/sourceConnections}/index.d.ts +0 -0
- /package/{dist/serialization/resources/embeddingModels → serialization/resources/sourceConnections}/index.js +0 -0
package/Client.d.ts
CHANGED
|
@@ -3,16 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "./environments";
|
|
5
5
|
import * as core from "./core";
|
|
6
|
-
import { ApiKeys } from "./api/resources/apiKeys/client/Client";
|
|
7
6
|
import { Sources } from "./api/resources/sources/client/Client";
|
|
8
|
-
import {
|
|
7
|
+
import { Collections } from "./api/resources/collections/client/Client";
|
|
9
8
|
import { Connections } from "./api/resources/connections/client/Client";
|
|
10
|
-
import {
|
|
11
|
-
import { Search } from "./api/resources/search/client/Client";
|
|
9
|
+
import { SourceConnections } from "./api/resources/sourceConnections/client/Client";
|
|
12
10
|
import { WhiteLabels } from "./api/resources/whiteLabels/client/Client";
|
|
13
11
|
export declare namespace AirweaveSDKClient {
|
|
14
12
|
interface Options {
|
|
15
13
|
environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
|
|
14
|
+
token: core.Supplier<core.BearerToken>;
|
|
16
15
|
/** Override the x-api-key header */
|
|
17
16
|
apiKey?: core.Supplier<string | undefined>;
|
|
18
17
|
}
|
|
@@ -31,19 +30,15 @@ export declare namespace AirweaveSDKClient {
|
|
|
31
30
|
}
|
|
32
31
|
export declare class AirweaveSDKClient {
|
|
33
32
|
protected readonly _options: AirweaveSDKClient.Options;
|
|
34
|
-
protected _apiKeys: ApiKeys | undefined;
|
|
35
33
|
protected _sources: Sources | undefined;
|
|
36
|
-
protected
|
|
34
|
+
protected _collections: Collections | undefined;
|
|
37
35
|
protected _connections: Connections | undefined;
|
|
38
|
-
protected
|
|
39
|
-
protected _search: Search | undefined;
|
|
36
|
+
protected _sourceConnections: SourceConnections | undefined;
|
|
40
37
|
protected _whiteLabels: WhiteLabels | undefined;
|
|
41
|
-
constructor(_options
|
|
42
|
-
get apiKeys(): ApiKeys;
|
|
38
|
+
constructor(_options: AirweaveSDKClient.Options);
|
|
43
39
|
get sources(): Sources;
|
|
44
|
-
get
|
|
40
|
+
get collections(): Collections;
|
|
45
41
|
get connections(): Connections;
|
|
46
|
-
get
|
|
47
|
-
get search(): Search;
|
|
42
|
+
get sourceConnections(): SourceConnections;
|
|
48
43
|
get whiteLabels(): WhiteLabels;
|
|
49
44
|
}
|
package/Client.js
CHANGED
|
@@ -4,44 +4,34 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.AirweaveSDKClient = void 0;
|
|
7
|
-
const Client_1 = require("./api/resources/
|
|
8
|
-
const Client_2 = require("./api/resources/
|
|
9
|
-
const Client_3 = require("./api/resources/
|
|
10
|
-
const Client_4 = require("./api/resources/
|
|
11
|
-
const Client_5 = require("./api/resources/
|
|
12
|
-
const Client_6 = require("./api/resources/search/client/Client");
|
|
13
|
-
const Client_7 = require("./api/resources/whiteLabels/client/Client");
|
|
7
|
+
const Client_1 = require("./api/resources/sources/client/Client");
|
|
8
|
+
const Client_2 = require("./api/resources/collections/client/Client");
|
|
9
|
+
const Client_3 = require("./api/resources/connections/client/Client");
|
|
10
|
+
const Client_4 = require("./api/resources/sourceConnections/client/Client");
|
|
11
|
+
const Client_5 = require("./api/resources/whiteLabels/client/Client");
|
|
14
12
|
class AirweaveSDKClient {
|
|
15
|
-
constructor(_options
|
|
13
|
+
constructor(_options) {
|
|
16
14
|
this._options = _options;
|
|
17
15
|
}
|
|
18
|
-
get apiKeys() {
|
|
19
|
-
var _a;
|
|
20
|
-
return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new Client_1.ApiKeys(this._options)));
|
|
21
|
-
}
|
|
22
16
|
get sources() {
|
|
23
17
|
var _a;
|
|
24
|
-
return ((_a = this._sources) !== null && _a !== void 0 ? _a : (this._sources = new
|
|
18
|
+
return ((_a = this._sources) !== null && _a !== void 0 ? _a : (this._sources = new Client_1.Sources(this._options)));
|
|
25
19
|
}
|
|
26
|
-
get
|
|
20
|
+
get collections() {
|
|
27
21
|
var _a;
|
|
28
|
-
return ((_a = this.
|
|
22
|
+
return ((_a = this._collections) !== null && _a !== void 0 ? _a : (this._collections = new Client_2.Collections(this._options)));
|
|
29
23
|
}
|
|
30
24
|
get connections() {
|
|
31
25
|
var _a;
|
|
32
|
-
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new
|
|
33
|
-
}
|
|
34
|
-
get sync() {
|
|
35
|
-
var _a;
|
|
36
|
-
return ((_a = this._sync) !== null && _a !== void 0 ? _a : (this._sync = new Client_5.Sync(this._options)));
|
|
26
|
+
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_3.Connections(this._options)));
|
|
37
27
|
}
|
|
38
|
-
get
|
|
28
|
+
get sourceConnections() {
|
|
39
29
|
var _a;
|
|
40
|
-
return ((_a = this.
|
|
30
|
+
return ((_a = this._sourceConnections) !== null && _a !== void 0 ? _a : (this._sourceConnections = new Client_4.SourceConnections(this._options)));
|
|
41
31
|
}
|
|
42
32
|
get whiteLabels() {
|
|
43
33
|
var _a;
|
|
44
|
-
return ((_a = this._whiteLabels) !== null && _a !== void 0 ? _a : (this._whiteLabels = new
|
|
34
|
+
return ((_a = this._whiteLabels) !== null && _a !== void 0 ? _a : (this._whiteLabels = new Client_5.WhiteLabels(this._options)));
|
|
45
35
|
}
|
|
46
36
|
}
|
|
47
37
|
exports.AirweaveSDKClient = AirweaveSDKClient;
|
package/README.md
CHANGED
|
@@ -22,8 +22,10 @@ Instantiate and use the client with the following:
|
|
|
22
22
|
```typescript
|
|
23
23
|
import { AirweaveSDKClient } from "@airweave/sdk";
|
|
24
24
|
|
|
25
|
-
const client = new AirweaveSDKClient({ apiKey: "YOUR_API_KEY" });
|
|
26
|
-
await client.
|
|
25
|
+
const client = new AirweaveSDKClient({ token: "YOUR_TOKEN", apiKey: "YOUR_API_KEY" });
|
|
26
|
+
await client.collections.createCollection({
|
|
27
|
+
name: "name",
|
|
28
|
+
});
|
|
27
29
|
```
|
|
28
30
|
|
|
29
31
|
## Request And Response Types
|
|
@@ -34,7 +36,7 @@ following namespace:
|
|
|
34
36
|
```typescript
|
|
35
37
|
import { AirweaveSDK } from "@airweave/sdk";
|
|
36
38
|
|
|
37
|
-
const request: AirweaveSDK.
|
|
39
|
+
const request: AirweaveSDK.ListCollectionsCollectionsGetRequest = {
|
|
38
40
|
...
|
|
39
41
|
};
|
|
40
42
|
```
|
|
@@ -48,7 +50,7 @@ will be thrown.
|
|
|
48
50
|
import { AirweaveSDKError } from "@airweave/sdk";
|
|
49
51
|
|
|
50
52
|
try {
|
|
51
|
-
await client.
|
|
53
|
+
await client.collections.createCollection(...);
|
|
52
54
|
} catch (err) {
|
|
53
55
|
if (err instanceof AirweaveSDKError) {
|
|
54
56
|
console.log(err.statusCode);
|
|
@@ -65,7 +67,7 @@ try {
|
|
|
65
67
|
If you would like to send additional headers as part of the request, use the `headers` request option.
|
|
66
68
|
|
|
67
69
|
```typescript
|
|
68
|
-
const response = await client.
|
|
70
|
+
const response = await client.collections.createCollection(..., {
|
|
69
71
|
headers: {
|
|
70
72
|
'X-Custom-Header': 'custom value'
|
|
71
73
|
}
|
|
@@ -87,7 +89,7 @@ A request is deemed retriable when any of the following HTTP status codes is ret
|
|
|
87
89
|
Use the `maxRetries` request option to configure this behavior.
|
|
88
90
|
|
|
89
91
|
```typescript
|
|
90
|
-
const response = await client.
|
|
92
|
+
const response = await client.collections.createCollection(..., {
|
|
91
93
|
maxRetries: 0 // override maxRetries at the request level
|
|
92
94
|
});
|
|
93
95
|
```
|
|
@@ -97,7 +99,7 @@ const response = await client.apiKeys.createApiKey(..., {
|
|
|
97
99
|
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
|
|
98
100
|
|
|
99
101
|
```typescript
|
|
100
|
-
const response = await client.
|
|
102
|
+
const response = await client.collections.createCollection(..., {
|
|
101
103
|
timeoutInSeconds: 30 // override timeout to 30s
|
|
102
104
|
});
|
|
103
105
|
```
|
|
@@ -108,7 +110,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
|
|
|
108
110
|
|
|
109
111
|
```typescript
|
|
110
112
|
const controller = new AbortController();
|
|
111
|
-
const response = await client.
|
|
113
|
+
const response = await client.collections.createCollection(..., {
|
|
112
114
|
abortSignal: controller.signal
|
|
113
115
|
});
|
|
114
116
|
controller.abort(); // aborts the request
|
package/api/index.d.ts
CHANGED
package/api/index.js
CHANGED
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./resources"), exports);
|
|
18
17
|
__exportStar(require("./types"), exports);
|
|
19
18
|
__exportStar(require("./errors"), exports);
|
|
19
|
+
__exportStar(require("./resources"), exports);
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as AirweaveSDK from "../../../index";
|
|
7
|
+
export declare namespace Collections {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
|
|
10
|
+
token: core.Supplier<core.BearerToken>;
|
|
11
|
+
/** Override the x-api-key header */
|
|
12
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
13
|
+
}
|
|
14
|
+
interface RequestOptions {
|
|
15
|
+
/** The maximum time to wait for a response in seconds. */
|
|
16
|
+
timeoutInSeconds?: number;
|
|
17
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
18
|
+
maxRetries?: number;
|
|
19
|
+
/** A hook to abort the request. */
|
|
20
|
+
abortSignal?: AbortSignal;
|
|
21
|
+
/** Override the x-api-key header */
|
|
22
|
+
apiKey?: string | undefined;
|
|
23
|
+
/** Additional headers to include in the request. */
|
|
24
|
+
headers?: Record<string, string>;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export declare class Collections {
|
|
28
|
+
protected readonly _options: Collections.Options;
|
|
29
|
+
constructor(_options: Collections.Options);
|
|
30
|
+
/**
|
|
31
|
+
* List all collections for the current user's organization.
|
|
32
|
+
*
|
|
33
|
+
* @param {AirweaveSDK.ListCollectionsCollectionsGetRequest} request
|
|
34
|
+
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
+
*
|
|
36
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* await client.collections.listCollections()
|
|
40
|
+
*/
|
|
41
|
+
listCollections(request?: AirweaveSDK.ListCollectionsCollectionsGetRequest, requestOptions?: Collections.RequestOptions): Promise<AirweaveSDK.Collection[]>;
|
|
42
|
+
/**
|
|
43
|
+
* Create a new collection.
|
|
44
|
+
*
|
|
45
|
+
* @param {AirweaveSDK.CollectionCreate} request
|
|
46
|
+
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* await client.collections.createCollection({
|
|
52
|
+
* name: "name"
|
|
53
|
+
* })
|
|
54
|
+
*/
|
|
55
|
+
createCollection(request: AirweaveSDK.CollectionCreate, requestOptions?: Collections.RequestOptions): Promise<AirweaveSDK.Collection>;
|
|
56
|
+
/**
|
|
57
|
+
* Get a specific collection by its readable ID.
|
|
58
|
+
*
|
|
59
|
+
* @param {string} readableId
|
|
60
|
+
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* await client.collections.getCollection("readable_id")
|
|
66
|
+
*/
|
|
67
|
+
getCollection(readableId: string, requestOptions?: Collections.RequestOptions): Promise<AirweaveSDK.Collection>;
|
|
68
|
+
/**
|
|
69
|
+
* Delete a collection by its readable ID.
|
|
70
|
+
*
|
|
71
|
+
* Args:
|
|
72
|
+
* readable_id: The readable ID of the collection to delete
|
|
73
|
+
* delete_data: Whether to delete the data in destinations
|
|
74
|
+
* db: The database session
|
|
75
|
+
* current_user: The current user
|
|
76
|
+
*
|
|
77
|
+
* Returns:
|
|
78
|
+
* The deleted collection
|
|
79
|
+
*
|
|
80
|
+
* @param {string} readableId
|
|
81
|
+
* @param {AirweaveSDK.DeleteCollectionCollectionsReadableIdDeleteRequest} request
|
|
82
|
+
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* await client.collections.deleteCollection("readable_id")
|
|
88
|
+
*/
|
|
89
|
+
deleteCollection(readableId: string, request?: AirweaveSDK.DeleteCollectionCollectionsReadableIdDeleteRequest, requestOptions?: Collections.RequestOptions): Promise<AirweaveSDK.Collection>;
|
|
90
|
+
/**
|
|
91
|
+
* Start sync jobs for all source connections in the collection.
|
|
92
|
+
*
|
|
93
|
+
* Args:
|
|
94
|
+
* readable_id: The readable ID of the collection
|
|
95
|
+
* db: The database session
|
|
96
|
+
* current_user: The current user
|
|
97
|
+
* background_tasks: Background tasks for async operations
|
|
98
|
+
*
|
|
99
|
+
* Returns:
|
|
100
|
+
* A list of created sync jobs
|
|
101
|
+
*
|
|
102
|
+
* @param {string} readableId
|
|
103
|
+
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* await client.collections.refreshAllSourceConnections("readable_id")
|
|
109
|
+
*/
|
|
110
|
+
refreshAllSourceConnections(readableId: string, requestOptions?: Collections.RequestOptions): Promise<AirweaveSDK.SourceConnectionJob[]>;
|
|
111
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
112
|
+
}
|