@airweave/sdk 0.2.24 → 0.2.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +0 -15
- package/Client.js +12 -37
- package/api/resources/apiKeys/client/Client.js +12 -12
- package/api/resources/apiKeys/client/requests/ApiKeyCreate.d.ts +0 -1
- package/api/resources/connections/client/Client.d.ts +2 -2
- package/api/resources/connections/client/Client.js +11 -11
- package/api/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +2 -2
- package/api/resources/embeddingModels/client/Client.d.ts +1 -1
- package/api/resources/embeddingModels/client/Client.js +3 -3
- package/api/resources/index.d.ts +0 -10
- package/api/resources/index.js +1 -11
- package/api/resources/search/client/Client.d.ts +2 -3
- package/api/resources/search/client/Client.js +5 -9
- package/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +0 -5
- package/api/resources/sources/client/Client.d.ts +1 -1
- package/api/resources/sources/client/Client.js +3 -3
- package/api/resources/sync/client/Client.d.ts +1 -3
- package/api/resources/sync/client/Client.js +17 -27
- package/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +0 -4
- package/api/resources/whiteLabels/client/Client.js +10 -10
- package/api/types/ApiKey.d.ts +1 -1
- package/api/types/ApiKeyWithPlainKey.d.ts +1 -1
- package/api/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +0 -2
- package/api/{resources/chat/client/requests → types}/ChatCreate.d.ts +1 -5
- package/{dist/api/types/DestinationWithAuthenticationFields.d.ts → api/types/DestinationWithConfigFields.d.ts} +2 -2
- package/{dist/api/types/EmbeddingModelWithAuthenticationFields.d.ts → api/types/EmbeddingModelWithConfigFields.d.ts} +2 -2
- package/{dist/api/resources/entities/client/requests → api/types}/EntityDefinitionCreate.d.ts +2 -9
- package/{dist/api/resources/entities/client/requests → api/types}/EntityRelationCreate.d.ts +1 -6
- package/{dist/api/types/SourceWithAuthenticationFields.d.ts → api/types/SourceWithConfigFields.d.ts} +2 -2
- package/api/types/SyncDagCreate.d.ts +14 -0
- package/{dist/api/resources/dag/client/requests → api/types}/SyncDagUpdate.d.ts +3 -7
- package/api/types/SyncJob.d.ts +4 -5
- package/{dist/api/resources/transformers/client/requests → api/types}/TransformerCreate.d.ts +1 -8
- package/api/types/User.d.ts +1 -1
- package/api/types/index.d.ts +10 -7
- package/api/types/index.js +10 -7
- package/dist/Client.d.ts +0 -15
- package/dist/Client.js +12 -37
- package/dist/api/resources/apiKeys/client/Client.js +12 -12
- package/dist/api/resources/apiKeys/client/requests/ApiKeyCreate.d.ts +0 -1
- package/dist/api/resources/connections/client/Client.d.ts +2 -2
- package/dist/api/resources/connections/client/Client.js +11 -11
- package/dist/api/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +2 -2
- package/dist/api/resources/embeddingModels/client/Client.d.ts +1 -1
- package/dist/api/resources/embeddingModels/client/Client.js +3 -3
- package/dist/api/resources/index.d.ts +0 -10
- package/dist/api/resources/index.js +1 -11
- package/dist/api/resources/search/client/Client.d.ts +2 -3
- package/dist/api/resources/search/client/Client.js +5 -9
- package/dist/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +0 -5
- package/dist/api/resources/sources/client/Client.d.ts +1 -1
- package/dist/api/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/sync/client/Client.d.ts +1 -3
- package/dist/api/resources/sync/client/Client.js +17 -27
- package/dist/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +0 -4
- package/dist/api/resources/whiteLabels/client/Client.js +10 -10
- package/dist/api/types/ApiKey.d.ts +1 -1
- package/dist/api/types/ApiKeyWithPlainKey.d.ts +1 -1
- package/dist/api/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +0 -2
- package/dist/api/{resources/chat/client/requests → types}/ChatCreate.d.ts +1 -5
- package/{api/types/DestinationWithAuthenticationFields.d.ts → dist/api/types/DestinationWithConfigFields.d.ts} +2 -2
- package/{api/types/EmbeddingModelWithAuthenticationFields.d.ts → dist/api/types/EmbeddingModelWithConfigFields.d.ts} +2 -2
- package/{api/resources/entities/client/requests → dist/api/types}/EntityDefinitionCreate.d.ts +2 -9
- package/{api/resources/entities/client/requests → dist/api/types}/EntityRelationCreate.d.ts +1 -6
- package/{api/types/SourceWithAuthenticationFields.d.ts → dist/api/types/SourceWithConfigFields.d.ts} +2 -2
- package/dist/api/types/SyncDagCreate.d.ts +14 -0
- package/{api/resources/dag/client/requests → dist/api/types}/SyncDagUpdate.d.ts +3 -7
- package/dist/api/types/SyncJob.d.ts +4 -5
- package/{api/resources/transformers/client/requests → dist/api/types}/TransformerCreate.d.ts +1 -8
- package/dist/api/types/User.d.ts +1 -1
- package/dist/api/types/index.d.ts +10 -7
- package/dist/api/types/index.js +10 -7
- package/dist/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +1 -1
- package/dist/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +1 -1
- package/dist/serialization/resources/index.d.ts +0 -9
- package/dist/serialization/resources/index.js +1 -10
- package/dist/serialization/resources/search/client/search.d.ts +2 -2
- package/dist/serialization/resources/search/client/search.js +1 -1
- package/dist/serialization/types/ApiKey.d.ts +1 -1
- package/dist/serialization/types/ApiKey.js +1 -1
- package/dist/serialization/types/ApiKeyWithPlainKey.d.ts +1 -1
- package/dist/serialization/types/ApiKeyWithPlainKey.js +1 -1
- package/dist/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +0 -2
- package/dist/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +0 -2
- package/{serialization/resources/chat/client/requests → dist/serialization/types}/ChatCreate.d.ts +4 -4
- package/{serialization/resources/chat/client/requests → dist/serialization/types}/ChatCreate.js +1 -1
- package/dist/serialization/types/{DestinationWithAuthenticationFields.d.ts → DestinationWithConfigFields.d.ts} +3 -3
- package/{serialization/types/DestinationWithAuthenticationFields.js → dist/serialization/types/DestinationWithConfigFields.js} +3 -3
- package/{serialization/types/EmbeddingModelWithAuthenticationFields.d.ts → dist/serialization/types/EmbeddingModelWithConfigFields.d.ts} +3 -3
- package/{serialization/types/EmbeddingModelWithAuthenticationFields.js → dist/serialization/types/EmbeddingModelWithConfigFields.js} +3 -3
- package/dist/serialization/{resources/entities/client/requests → types}/EntityDefinitionCreate.d.ts +6 -6
- package/{serialization/resources/entities/client/requests → dist/serialization/types}/EntityDefinitionCreate.js +3 -3
- package/dist/serialization/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.d.ts +3 -3
- package/dist/serialization/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.js +1 -1
- package/dist/serialization/types/EntityRelationCreate.d.ts +15 -0
- package/dist/serialization/{resources/entities/client/requests → types}/EntityRelationCreate.js +1 -1
- package/dist/serialization/types/{SourceWithAuthenticationFields.d.ts → SourceWithConfigFields.d.ts} +3 -3
- package/{serialization/types/SourceWithAuthenticationFields.js → dist/serialization/types/SourceWithConfigFields.js} +3 -3
- package/dist/serialization/types/SyncDagCreate.d.ts +18 -0
- package/{serialization/resources/dag/client/requests → dist/serialization/types}/SyncDagCreate.js +4 -4
- package/dist/serialization/types/SyncDagUpdate.d.ts +18 -0
- package/dist/serialization/{resources/dag/client/requests → types}/SyncDagUpdate.js +4 -4
- package/dist/serialization/types/SyncJob.d.ts +4 -5
- package/dist/serialization/types/SyncJob.js +4 -5
- package/dist/serialization/{resources/transformers/client/requests → types}/TransformerCreate.d.ts +4 -4
- package/dist/serialization/{resources/transformers/client/requests → types}/TransformerCreate.js +1 -1
- package/dist/serialization/types/User.d.ts +1 -1
- package/dist/serialization/types/User.js +1 -1
- package/dist/serialization/types/index.d.ts +10 -7
- package/dist/serialization/types/index.js +10 -7
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +7 -962
- package/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +1 -1
- package/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +1 -1
- package/serialization/resources/index.d.ts +0 -9
- package/serialization/resources/index.js +1 -10
- package/serialization/resources/search/client/search.d.ts +2 -2
- package/serialization/resources/search/client/search.js +1 -1
- package/serialization/types/ApiKey.d.ts +1 -1
- package/serialization/types/ApiKey.js +1 -1
- package/serialization/types/ApiKeyWithPlainKey.d.ts +1 -1
- package/serialization/types/ApiKeyWithPlainKey.js +1 -1
- package/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +0 -2
- package/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +0 -2
- package/{dist/serialization/resources/chat/client/requests → serialization/types}/ChatCreate.d.ts +4 -4
- package/{dist/serialization/resources/chat/client/requests → serialization/types}/ChatCreate.js +1 -1
- package/serialization/types/{DestinationWithAuthenticationFields.d.ts → DestinationWithConfigFields.d.ts} +3 -3
- package/{dist/serialization/types/DestinationWithAuthenticationFields.js → serialization/types/DestinationWithConfigFields.js} +3 -3
- package/{dist/serialization/types/EmbeddingModelWithAuthenticationFields.d.ts → serialization/types/EmbeddingModelWithConfigFields.d.ts} +3 -3
- package/{dist/serialization/types/EmbeddingModelWithAuthenticationFields.js → serialization/types/EmbeddingModelWithConfigFields.js} +3 -3
- package/serialization/{resources/entities/client/requests → types}/EntityDefinitionCreate.d.ts +6 -6
- package/{dist/serialization/resources/entities/client/requests → serialization/types}/EntityDefinitionCreate.js +3 -3
- package/serialization/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.d.ts +3 -3
- package/serialization/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.js +1 -1
- package/serialization/types/EntityRelationCreate.d.ts +15 -0
- package/serialization/{resources/entities/client/requests → types}/EntityRelationCreate.js +1 -1
- package/serialization/types/{SourceWithAuthenticationFields.d.ts → SourceWithConfigFields.d.ts} +3 -3
- package/{dist/serialization/types/SourceWithAuthenticationFields.js → serialization/types/SourceWithConfigFields.js} +3 -3
- package/serialization/types/SyncDagCreate.d.ts +18 -0
- package/{dist/serialization/resources/dag/client/requests → serialization/types}/SyncDagCreate.js +4 -4
- package/serialization/types/SyncDagUpdate.d.ts +18 -0
- package/serialization/{resources/dag/client/requests → types}/SyncDagUpdate.js +4 -4
- package/serialization/types/SyncJob.d.ts +4 -5
- package/serialization/types/SyncJob.js +4 -5
- package/serialization/{resources/transformers/client/requests → types}/TransformerCreate.d.ts +4 -4
- package/serialization/{resources/transformers/client/requests → types}/TransformerCreate.js +1 -1
- package/serialization/types/User.d.ts +1 -1
- package/serialization/types/User.js +1 -1
- package/serialization/types/index.d.ts +10 -7
- package/serialization/types/index.js +10 -7
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/chat/client/Client.d.ts +0 -77
- package/api/resources/chat/client/Client.js +0 -227
- package/api/resources/chat/client/index.d.ts +0 -1
- package/api/resources/chat/client/index.js +0 -17
- package/api/resources/chat/client/requests/ListChatsChatGetRequest.d.ts +0 -11
- package/api/resources/chat/client/requests/index.d.ts +0 -2
- package/api/resources/chat/client/requests/index.js +0 -2
- package/api/resources/chat/index.d.ts +0 -1
- package/api/resources/chat/index.js +0 -17
- package/api/resources/dag/client/Client.d.ts +0 -81
- package/api/resources/dag/client/Client.js +0 -276
- package/api/resources/dag/client/index.d.ts +0 -1
- package/api/resources/dag/client/index.js +0 -17
- package/api/resources/dag/client/requests/SyncDagCreate.d.ts +0 -26
- package/api/resources/dag/client/requests/index.d.ts +0 -2
- package/api/resources/dag/client/requests/index.js +0 -2
- package/api/resources/dag/index.d.ts +0 -1
- package/api/resources/dag/index.js +0 -17
- package/api/resources/entities/client/Client.d.ts +0 -119
- package/api/resources/entities/client/Client.js +0 -480
- package/api/resources/entities/client/index.d.ts +0 -1
- package/api/resources/entities/client/index.js +0 -17
- package/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +0 -12
- package/api/resources/entities/client/requests/index.d.ts +0 -3
- package/api/resources/entities/client/requests/index.js +0 -2
- package/api/resources/entities/index.d.ts +0 -2
- package/api/resources/entities/index.js +0 -18
- package/api/resources/entities/types/index.d.ts +0 -1
- package/api/resources/entities/types/index.js +0 -17
- package/api/resources/transformers/client/Client.d.ts +0 -58
- package/api/resources/transformers/client/Client.js +0 -199
- package/api/resources/transformers/client/index.d.ts +0 -1
- package/api/resources/transformers/client/index.js +0 -17
- package/api/resources/transformers/client/requests/index.d.ts +0 -1
- package/api/resources/transformers/client/requests/index.js +0 -2
- package/api/resources/transformers/index.d.ts +0 -1
- package/api/resources/transformers/index.js +0 -17
- package/api/resources/users/client/Client.d.ts +0 -48
- package/api/resources/users/client/Client.js +0 -135
- package/api/resources/users/client/index.d.ts +0 -1
- package/api/resources/users/client/index.js +0 -2
- package/api/resources/users/index.d.ts +0 -1
- package/api/resources/users/index.js +0 -17
- package/api/types/EntityCount.d.ts +0 -9
- package/api/types/Organization.d.ts +0 -13
- package/api/types/ResponseType.d.ts +0 -11
- package/api/types/ResponseType.js +0 -10
- package/api/types/SourceWithAuthenticationFields.js +0 -5
- package/api/types/UserCreate.d.ts +0 -11
- package/api/types/UserCreate.js +0 -5
- package/dist/api/resources/chat/client/Client.d.ts +0 -77
- package/dist/api/resources/chat/client/Client.js +0 -227
- package/dist/api/resources/chat/client/index.d.ts +0 -1
- package/dist/api/resources/chat/client/index.js +0 -17
- package/dist/api/resources/chat/client/requests/ListChatsChatGetRequest.d.ts +0 -11
- package/dist/api/resources/chat/client/requests/ListChatsChatGetRequest.js +0 -5
- package/dist/api/resources/chat/client/requests/index.d.ts +0 -2
- package/dist/api/resources/chat/client/requests/index.js +0 -2
- package/dist/api/resources/chat/index.d.ts +0 -1
- package/dist/api/resources/chat/index.js +0 -17
- package/dist/api/resources/dag/client/Client.d.ts +0 -81
- package/dist/api/resources/dag/client/Client.js +0 -276
- package/dist/api/resources/dag/client/index.d.ts +0 -1
- package/dist/api/resources/dag/client/index.js +0 -17
- package/dist/api/resources/dag/client/requests/SyncDagCreate.d.ts +0 -26
- package/dist/api/resources/dag/client/requests/index.d.ts +0 -2
- package/dist/api/resources/dag/client/requests/index.js +0 -2
- package/dist/api/resources/dag/index.d.ts +0 -1
- package/dist/api/resources/dag/index.js +0 -17
- package/dist/api/resources/entities/client/Client.d.ts +0 -119
- package/dist/api/resources/entities/client/Client.js +0 -480
- package/dist/api/resources/entities/client/index.d.ts +0 -1
- package/dist/api/resources/entities/client/index.js +0 -17
- package/dist/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +0 -12
- package/dist/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.js +0 -5
- package/dist/api/resources/entities/client/requests/index.d.ts +0 -3
- package/dist/api/resources/entities/client/requests/index.js +0 -2
- package/dist/api/resources/entities/index.d.ts +0 -2
- package/dist/api/resources/entities/index.js +0 -18
- package/dist/api/resources/entities/types/index.d.ts +0 -1
- package/dist/api/resources/entities/types/index.js +0 -17
- package/dist/api/resources/transformers/client/Client.d.ts +0 -58
- package/dist/api/resources/transformers/client/Client.js +0 -199
- package/dist/api/resources/transformers/client/index.d.ts +0 -1
- package/dist/api/resources/transformers/client/index.js +0 -17
- package/dist/api/resources/transformers/client/requests/index.d.ts +0 -1
- package/dist/api/resources/transformers/client/requests/index.js +0 -2
- package/dist/api/resources/transformers/index.d.ts +0 -1
- package/dist/api/resources/transformers/index.js +0 -17
- package/dist/api/resources/users/client/Client.d.ts +0 -48
- package/dist/api/resources/users/client/Client.js +0 -135
- package/dist/api/resources/users/client/index.d.ts +0 -1
- package/dist/api/resources/users/client/index.js +0 -2
- package/dist/api/resources/users/index.d.ts +0 -1
- package/dist/api/resources/users/index.js +0 -17
- package/dist/api/types/DestinationWithAuthenticationFields.js +0 -5
- package/dist/api/types/EmbeddingModelWithAuthenticationFields.js +0 -5
- package/dist/api/types/EntityCount.d.ts +0 -9
- package/dist/api/types/EntityCount.js +0 -5
- 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/SourceWithAuthenticationFields.js +0 -5
- package/dist/api/types/UserCreate.d.ts +0 -11
- package/dist/api/types/UserCreate.js +0 -5
- package/dist/serialization/resources/chat/client/index.d.ts +0 -2
- package/dist/serialization/resources/chat/client/index.js +0 -41
- package/dist/serialization/resources/chat/client/listChats.d.ts +0 -11
- package/dist/serialization/resources/chat/client/listChats.js +0 -42
- package/dist/serialization/resources/chat/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/chat/client/requests/index.js +0 -5
- package/dist/serialization/resources/chat/index.d.ts +0 -1
- package/dist/serialization/resources/chat/index.js +0 -17
- package/dist/serialization/resources/dag/client/index.d.ts +0 -1
- package/dist/serialization/resources/dag/client/index.js +0 -17
- package/dist/serialization/resources/dag/client/requests/SyncDagCreate.d.ts +0 -18
- package/dist/serialization/resources/dag/client/requests/SyncDagUpdate.d.ts +0 -18
- package/dist/serialization/resources/dag/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/dag/client/requests/index.js +0 -7
- package/dist/serialization/resources/dag/index.d.ts +0 -1
- package/dist/serialization/resources/dag/index.js +0 -17
- package/dist/serialization/resources/entities/client/getEntityDefinitionsByIds.d.ts +0 -15
- package/dist/serialization/resources/entities/client/getEntityDefinitionsByIds.js +0 -43
- package/dist/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.d.ts +0 -11
- package/dist/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.js +0 -42
- package/dist/serialization/resources/entities/client/index.d.ts +0 -5
- package/dist/serialization/resources/entities/client/index.js +0 -44
- package/dist/serialization/resources/entities/client/listEntityDefinitions.d.ts +0 -11
- package/dist/serialization/resources/entities/client/listEntityDefinitions.js +0 -42
- package/dist/serialization/resources/entities/client/listEntityRelations.d.ts +0 -11
- package/dist/serialization/resources/entities/client/listEntityRelations.js +0 -42
- package/dist/serialization/resources/entities/client/requests/EntityRelationCreate.d.ts +0 -15
- package/dist/serialization/resources/entities/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/entities/client/requests/index.js +0 -7
- package/dist/serialization/resources/entities/index.d.ts +0 -2
- package/dist/serialization/resources/entities/index.js +0 -18
- package/dist/serialization/resources/entities/types/index.d.ts +0 -1
- package/dist/serialization/resources/entities/types/index.js +0 -17
- package/dist/serialization/resources/transformers/client/index.d.ts +0 -2
- package/dist/serialization/resources/transformers/client/index.js +0 -41
- package/dist/serialization/resources/transformers/client/listTransformers.d.ts +0 -11
- package/dist/serialization/resources/transformers/client/listTransformers.js +0 -42
- package/dist/serialization/resources/transformers/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/transformers/client/requests/index.js +0 -5
- package/dist/serialization/resources/transformers/index.d.ts +0 -1
- package/dist/serialization/resources/transformers/index.js +0 -17
- package/dist/serialization/types/EntityCount.d.ts +0 -12
- package/dist/serialization/types/EntityCount.js +0 -43
- 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/UserCreate.d.ts +0 -14
- package/dist/serialization/types/UserCreate.js +0 -45
- package/serialization/resources/chat/client/index.d.ts +0 -2
- package/serialization/resources/chat/client/index.js +0 -41
- package/serialization/resources/chat/client/listChats.d.ts +0 -11
- package/serialization/resources/chat/client/listChats.js +0 -42
- package/serialization/resources/chat/client/requests/index.d.ts +0 -1
- package/serialization/resources/chat/client/requests/index.js +0 -5
- package/serialization/resources/chat/index.d.ts +0 -1
- package/serialization/resources/chat/index.js +0 -17
- package/serialization/resources/dag/client/index.d.ts +0 -1
- package/serialization/resources/dag/client/index.js +0 -17
- package/serialization/resources/dag/client/requests/SyncDagCreate.d.ts +0 -18
- package/serialization/resources/dag/client/requests/SyncDagUpdate.d.ts +0 -18
- package/serialization/resources/dag/client/requests/index.d.ts +0 -2
- package/serialization/resources/dag/client/requests/index.js +0 -7
- package/serialization/resources/dag/index.d.ts +0 -1
- package/serialization/resources/dag/index.js +0 -17
- package/serialization/resources/entities/client/getEntityDefinitionsByIds.d.ts +0 -15
- package/serialization/resources/entities/client/getEntityDefinitionsByIds.js +0 -43
- package/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.d.ts +0 -11
- package/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.js +0 -42
- package/serialization/resources/entities/client/index.d.ts +0 -5
- package/serialization/resources/entities/client/index.js +0 -44
- package/serialization/resources/entities/client/listEntityDefinitions.d.ts +0 -11
- package/serialization/resources/entities/client/listEntityDefinitions.js +0 -42
- package/serialization/resources/entities/client/listEntityRelations.d.ts +0 -11
- package/serialization/resources/entities/client/listEntityRelations.js +0 -42
- package/serialization/resources/entities/client/requests/EntityRelationCreate.d.ts +0 -15
- package/serialization/resources/entities/client/requests/index.d.ts +0 -2
- package/serialization/resources/entities/client/requests/index.js +0 -7
- package/serialization/resources/entities/index.d.ts +0 -2
- package/serialization/resources/entities/index.js +0 -18
- package/serialization/resources/entities/types/index.d.ts +0 -1
- package/serialization/resources/entities/types/index.js +0 -17
- package/serialization/resources/transformers/client/index.d.ts +0 -2
- package/serialization/resources/transformers/client/index.js +0 -41
- package/serialization/resources/transformers/client/listTransformers.d.ts +0 -11
- package/serialization/resources/transformers/client/listTransformers.js +0 -42
- package/serialization/resources/transformers/client/requests/index.d.ts +0 -1
- package/serialization/resources/transformers/client/requests/index.js +0 -5
- package/serialization/resources/transformers/index.d.ts +0 -1
- package/serialization/resources/transformers/index.js +0 -17
- package/serialization/types/EntityCount.d.ts +0 -12
- package/serialization/types/EntityCount.js +0 -43
- 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/UserCreate.d.ts +0 -14
- package/serialization/types/UserCreate.js +0 -45
- /package/api/{resources/chat/client/requests → types}/ChatCreate.js +0 -0
- /package/api/{resources/chat/client/requests/ListChatsChatGetRequest.js → types/DestinationWithConfigFields.js} +0 -0
- /package/api/{resources/dag/client/requests/SyncDagCreate.js → types/EmbeddingModelWithConfigFields.js} +0 -0
- /package/api/{resources/entities/client/requests → types}/EntityDefinitionCreate.js +0 -0
- /package/api/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.d.ts +0 -0
- /package/api/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.js +0 -0
- /package/api/{resources/entities/client/requests → types}/EntityRelationCreate.js +0 -0
- /package/api/{resources/dag/client/requests/SyncDagUpdate.js → types/SourceWithConfigFields.js} +0 -0
- /package/{dist/api/resources/dag/client/requests → api/types}/SyncDagCreate.js +0 -0
- /package/{dist/api/resources/dag/client/requests → api/types}/SyncDagUpdate.js +0 -0
- /package/api/{resources/transformers/client/requests → types}/TransformerCreate.js +0 -0
- /package/dist/api/{resources/chat/client/requests → types}/ChatCreate.js +0 -0
- /package/{api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.js → dist/api/types/DestinationWithConfigFields.js} +0 -0
- /package/{api/types/DestinationWithAuthenticationFields.js → dist/api/types/EmbeddingModelWithConfigFields.js} +0 -0
- /package/dist/api/{resources/entities/client/requests → types}/EntityDefinitionCreate.js +0 -0
- /package/dist/api/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.d.ts +0 -0
- /package/dist/api/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.js +0 -0
- /package/dist/api/{resources/entities/client/requests → types}/EntityRelationCreate.js +0 -0
- /package/{api/types/EmbeddingModelWithAuthenticationFields.js → dist/api/types/SourceWithConfigFields.js} +0 -0
- /package/{api/types/EntityCount.js → dist/api/types/SyncDagCreate.js} +0 -0
- /package/{api/types/Organization.js → dist/api/types/SyncDagUpdate.js} +0 -0
- /package/dist/api/{resources/transformers/client/requests → types}/TransformerCreate.js +0 -0
package/Client.d.ts
CHANGED
|
@@ -4,17 +4,12 @@
|
|
|
4
4
|
import * as environments from "./environments";
|
|
5
5
|
import * as core from "./core";
|
|
6
6
|
import { ApiKeys } from "./api/resources/apiKeys/client/Client";
|
|
7
|
-
import { Users } from "./api/resources/users/client/Client";
|
|
8
7
|
import { Sources } from "./api/resources/sources/client/Client";
|
|
9
8
|
import { EmbeddingModels } from "./api/resources/embeddingModels/client/Client";
|
|
10
9
|
import { Connections } from "./api/resources/connections/client/Client";
|
|
11
10
|
import { Sync } from "./api/resources/sync/client/Client";
|
|
12
11
|
import { Search } from "./api/resources/search/client/Client";
|
|
13
12
|
import { WhiteLabels } from "./api/resources/whiteLabels/client/Client";
|
|
14
|
-
import { Chat } from "./api/resources/chat/client/Client";
|
|
15
|
-
import { Dag } from "./api/resources/dag/client/Client";
|
|
16
|
-
import { Entities } from "./api/resources/entities/client/Client";
|
|
17
|
-
import { Transformers } from "./api/resources/transformers/client/Client";
|
|
18
13
|
export declare namespace AirweaveSDKClient {
|
|
19
14
|
interface Options {
|
|
20
15
|
environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
|
|
@@ -37,28 +32,18 @@ export declare namespace AirweaveSDKClient {
|
|
|
37
32
|
export declare class AirweaveSDKClient {
|
|
38
33
|
protected readonly _options: AirweaveSDKClient.Options;
|
|
39
34
|
protected _apiKeys: ApiKeys | undefined;
|
|
40
|
-
protected _users: Users | undefined;
|
|
41
35
|
protected _sources: Sources | undefined;
|
|
42
36
|
protected _embeddingModels: EmbeddingModels | undefined;
|
|
43
37
|
protected _connections: Connections | undefined;
|
|
44
38
|
protected _sync: Sync | undefined;
|
|
45
39
|
protected _search: Search | undefined;
|
|
46
40
|
protected _whiteLabels: WhiteLabels | undefined;
|
|
47
|
-
protected _chat: Chat | undefined;
|
|
48
|
-
protected _dag: Dag | undefined;
|
|
49
|
-
protected _entities: Entities | undefined;
|
|
50
|
-
protected _transformers: Transformers | undefined;
|
|
51
41
|
constructor(_options?: AirweaveSDKClient.Options);
|
|
52
42
|
get apiKeys(): ApiKeys;
|
|
53
|
-
get users(): Users;
|
|
54
43
|
get sources(): Sources;
|
|
55
44
|
get embeddingModels(): EmbeddingModels;
|
|
56
45
|
get connections(): Connections;
|
|
57
46
|
get sync(): Sync;
|
|
58
47
|
get search(): Search;
|
|
59
48
|
get whiteLabels(): WhiteLabels;
|
|
60
|
-
get chat(): Chat;
|
|
61
|
-
get dag(): Dag;
|
|
62
|
-
get entities(): Entities;
|
|
63
|
-
get transformers(): Transformers;
|
|
64
49
|
}
|
package/Client.js
CHANGED
|
@@ -5,17 +5,12 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.AirweaveSDKClient = void 0;
|
|
7
7
|
const Client_1 = require("./api/resources/apiKeys/client/Client");
|
|
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/
|
|
13
|
-
const Client_7 = require("./api/resources/
|
|
14
|
-
const Client_8 = require("./api/resources/whiteLabels/client/Client");
|
|
15
|
-
const Client_9 = require("./api/resources/chat/client/Client");
|
|
16
|
-
const Client_10 = require("./api/resources/dag/client/Client");
|
|
17
|
-
const Client_11 = require("./api/resources/entities/client/Client");
|
|
18
|
-
const Client_12 = require("./api/resources/transformers/client/Client");
|
|
8
|
+
const Client_2 = require("./api/resources/sources/client/Client");
|
|
9
|
+
const Client_3 = require("./api/resources/embeddingModels/client/Client");
|
|
10
|
+
const Client_4 = require("./api/resources/connections/client/Client");
|
|
11
|
+
const Client_5 = require("./api/resources/sync/client/Client");
|
|
12
|
+
const Client_6 = require("./api/resources/search/client/Client");
|
|
13
|
+
const Client_7 = require("./api/resources/whiteLabels/client/Client");
|
|
19
14
|
class AirweaveSDKClient {
|
|
20
15
|
constructor(_options = {}) {
|
|
21
16
|
this._options = _options;
|
|
@@ -24,49 +19,29 @@ class AirweaveSDKClient {
|
|
|
24
19
|
var _a;
|
|
25
20
|
return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new Client_1.ApiKeys(this._options)));
|
|
26
21
|
}
|
|
27
|
-
get users() {
|
|
28
|
-
var _a;
|
|
29
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_2.Users(this._options)));
|
|
30
|
-
}
|
|
31
22
|
get sources() {
|
|
32
23
|
var _a;
|
|
33
|
-
return ((_a = this._sources) !== null && _a !== void 0 ? _a : (this._sources = new
|
|
24
|
+
return ((_a = this._sources) !== null && _a !== void 0 ? _a : (this._sources = new Client_2.Sources(this._options)));
|
|
34
25
|
}
|
|
35
26
|
get embeddingModels() {
|
|
36
27
|
var _a;
|
|
37
|
-
return ((_a = this._embeddingModels) !== null && _a !== void 0 ? _a : (this._embeddingModels = new
|
|
28
|
+
return ((_a = this._embeddingModels) !== null && _a !== void 0 ? _a : (this._embeddingModels = new Client_3.EmbeddingModels(this._options)));
|
|
38
29
|
}
|
|
39
30
|
get connections() {
|
|
40
31
|
var _a;
|
|
41
|
-
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new
|
|
32
|
+
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_4.Connections(this._options)));
|
|
42
33
|
}
|
|
43
34
|
get sync() {
|
|
44
35
|
var _a;
|
|
45
|
-
return ((_a = this._sync) !== null && _a !== void 0 ? _a : (this._sync = new
|
|
36
|
+
return ((_a = this._sync) !== null && _a !== void 0 ? _a : (this._sync = new Client_5.Sync(this._options)));
|
|
46
37
|
}
|
|
47
38
|
get search() {
|
|
48
39
|
var _a;
|
|
49
|
-
return ((_a = this._search) !== null && _a !== void 0 ? _a : (this._search = new
|
|
40
|
+
return ((_a = this._search) !== null && _a !== void 0 ? _a : (this._search = new Client_6.Search(this._options)));
|
|
50
41
|
}
|
|
51
42
|
get whiteLabels() {
|
|
52
43
|
var _a;
|
|
53
|
-
return ((_a = this._whiteLabels) !== null && _a !== void 0 ? _a : (this._whiteLabels = new
|
|
54
|
-
}
|
|
55
|
-
get chat() {
|
|
56
|
-
var _a;
|
|
57
|
-
return ((_a = this._chat) !== null && _a !== void 0 ? _a : (this._chat = new Client_9.Chat(this._options)));
|
|
58
|
-
}
|
|
59
|
-
get dag() {
|
|
60
|
-
var _a;
|
|
61
|
-
return ((_a = this._dag) !== null && _a !== void 0 ? _a : (this._dag = new Client_10.Dag(this._options)));
|
|
62
|
-
}
|
|
63
|
-
get entities() {
|
|
64
|
-
var _a;
|
|
65
|
-
return ((_a = this._entities) !== null && _a !== void 0 ? _a : (this._entities = new Client_11.Entities(this._options)));
|
|
66
|
-
}
|
|
67
|
-
get transformers() {
|
|
68
|
-
var _a;
|
|
69
|
-
return ((_a = this._transformers) !== null && _a !== void 0 ? _a : (this._transformers = new Client_12.Transformers(this._options)));
|
|
44
|
+
return ((_a = this._whiteLabels) !== null && _a !== void 0 ? _a : (this._whiteLabels = new Client_7.WhiteLabels(this._options)));
|
|
70
45
|
}
|
|
71
46
|
}
|
|
72
47
|
exports.AirweaveSDKClient = AirweaveSDKClient;
|
|
@@ -93,11 +93,11 @@ class ApiKeys {
|
|
|
93
93
|
_queryParams["limit"] = limit.toString();
|
|
94
94
|
}
|
|
95
95
|
const _response = yield core.fetcher({
|
|
96
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "
|
|
96
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "api_keys/"),
|
|
97
97
|
method: "GET",
|
|
98
98
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
99
99
|
? yield core.Supplier.get(this._options.apiKey)
|
|
100
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
100
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.26", "User-Agent": "@airweave/sdk/0.2.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
101
101
|
contentType: "application/json",
|
|
102
102
|
queryParameters: _queryParams,
|
|
103
103
|
requestType: "json",
|
|
@@ -136,7 +136,7 @@ class ApiKeys {
|
|
|
136
136
|
body: _response.error.rawBody,
|
|
137
137
|
});
|
|
138
138
|
case "timeout":
|
|
139
|
-
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /
|
|
139
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /api_keys/.");
|
|
140
140
|
case "unknown":
|
|
141
141
|
throw new errors.AirweaveSDKError({
|
|
142
142
|
message: _response.error.errorMessage,
|
|
@@ -172,11 +172,11 @@ class ApiKeys {
|
|
|
172
172
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
173
173
|
var _a;
|
|
174
174
|
const _response = yield core.fetcher({
|
|
175
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "
|
|
175
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "api_keys/"),
|
|
176
176
|
method: "POST",
|
|
177
177
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
178
178
|
? yield core.Supplier.get(this._options.apiKey)
|
|
179
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
179
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.26", "User-Agent": "@airweave/sdk/0.2.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
180
180
|
contentType: "application/json",
|
|
181
181
|
requestType: "json",
|
|
182
182
|
body: serializers.ApiKeyCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -215,7 +215,7 @@ class ApiKeys {
|
|
|
215
215
|
body: _response.error.rawBody,
|
|
216
216
|
});
|
|
217
217
|
case "timeout":
|
|
218
|
-
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling POST /
|
|
218
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling POST /api_keys/.");
|
|
219
219
|
case "unknown":
|
|
220
220
|
throw new errors.AirweaveSDKError({
|
|
221
221
|
message: _response.error.errorMessage,
|
|
@@ -257,11 +257,11 @@ class ApiKeys {
|
|
|
257
257
|
const _queryParams = {};
|
|
258
258
|
_queryParams["id"] = id;
|
|
259
259
|
const _response = yield core.fetcher({
|
|
260
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "
|
|
260
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "api_keys/"),
|
|
261
261
|
method: "DELETE",
|
|
262
262
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
263
263
|
? yield core.Supplier.get(this._options.apiKey)
|
|
264
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
264
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.26", "User-Agent": "@airweave/sdk/0.2.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
265
265
|
contentType: "application/json",
|
|
266
266
|
queryParameters: _queryParams,
|
|
267
267
|
requestType: "json",
|
|
@@ -300,7 +300,7 @@ class ApiKeys {
|
|
|
300
300
|
body: _response.error.rawBody,
|
|
301
301
|
});
|
|
302
302
|
case "timeout":
|
|
303
|
-
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling DELETE /
|
|
303
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling DELETE /api_keys/.");
|
|
304
304
|
case "unknown":
|
|
305
305
|
throw new errors.AirweaveSDKError({
|
|
306
306
|
message: _response.error.errorMessage,
|
|
@@ -337,11 +337,11 @@ class ApiKeys {
|
|
|
337
337
|
return __awaiter(this, void 0, void 0, function* () {
|
|
338
338
|
var _a;
|
|
339
339
|
const _response = yield core.fetcher({
|
|
340
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `
|
|
340
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `api_keys/${encodeURIComponent(id)}`),
|
|
341
341
|
method: "GET",
|
|
342
342
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
343
343
|
? yield core.Supplier.get(this._options.apiKey)
|
|
344
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
344
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.26", "User-Agent": "@airweave/sdk/0.2.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
345
345
|
contentType: "application/json",
|
|
346
346
|
requestType: "json",
|
|
347
347
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -379,7 +379,7 @@ class ApiKeys {
|
|
|
379
379
|
body: _response.error.rawBody,
|
|
380
380
|
});
|
|
381
381
|
case "timeout":
|
|
382
|
-
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /
|
|
382
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /api_keys/{id}.");
|
|
383
383
|
case "unknown":
|
|
384
384
|
throw new errors.AirweaveSDKError({
|
|
385
385
|
message: _response.error.errorMessage,
|
|
@@ -107,7 +107,7 @@ export declare class Connections {
|
|
|
107
107
|
* integration_type: The type of integration to connect to.
|
|
108
108
|
* short_name: The short name of the integration to connect to.
|
|
109
109
|
* name: The name of the connection.
|
|
110
|
-
*
|
|
110
|
+
* config_fields: The config fields for the integration.
|
|
111
111
|
* user: The current user.
|
|
112
112
|
*
|
|
113
113
|
* Returns:
|
|
@@ -123,7 +123,7 @@ export declare class Connections {
|
|
|
123
123
|
*
|
|
124
124
|
* @example
|
|
125
125
|
* await client.connections.connectIntegration("source", "short_name", {
|
|
126
|
-
*
|
|
126
|
+
* configFields: {
|
|
127
127
|
* "key": "value"
|
|
128
128
|
* }
|
|
129
129
|
* })
|
|
@@ -88,7 +88,7 @@ class Connections {
|
|
|
88
88
|
method: "GET",
|
|
89
89
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
90
90
|
? yield core.Supplier.get(this._options.apiKey)
|
|
91
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
91
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.26", "User-Agent": "@airweave/sdk/0.2.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
92
92
|
contentType: "application/json",
|
|
93
93
|
requestType: "json",
|
|
94
94
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -161,7 +161,7 @@ class Connections {
|
|
|
161
161
|
method: "GET",
|
|
162
162
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
163
163
|
? yield core.Supplier.get(this._options.apiKey)
|
|
164
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
164
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.26", "User-Agent": "@airweave/sdk/0.2.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
165
165
|
contentType: "application/json",
|
|
166
166
|
requestType: "json",
|
|
167
167
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -236,7 +236,7 @@ class Connections {
|
|
|
236
236
|
method: "GET",
|
|
237
237
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
238
238
|
? yield core.Supplier.get(this._options.apiKey)
|
|
239
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
239
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.26", "User-Agent": "@airweave/sdk/0.2.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
240
240
|
contentType: "application/json",
|
|
241
241
|
requestType: "json",
|
|
242
242
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -299,7 +299,7 @@ class Connections {
|
|
|
299
299
|
* integration_type: The type of integration to connect to.
|
|
300
300
|
* short_name: The short name of the integration to connect to.
|
|
301
301
|
* name: The name of the connection.
|
|
302
|
-
*
|
|
302
|
+
* config_fields: The config fields for the integration.
|
|
303
303
|
* user: The current user.
|
|
304
304
|
*
|
|
305
305
|
* Returns:
|
|
@@ -315,7 +315,7 @@ class Connections {
|
|
|
315
315
|
*
|
|
316
316
|
* @example
|
|
317
317
|
* await client.connections.connectIntegration("source", "short_name", {
|
|
318
|
-
*
|
|
318
|
+
* configFields: {
|
|
319
319
|
* "key": "value"
|
|
320
320
|
* }
|
|
321
321
|
* })
|
|
@@ -328,7 +328,7 @@ class Connections {
|
|
|
328
328
|
method: "POST",
|
|
329
329
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
330
330
|
? yield core.Supplier.get(this._options.apiKey)
|
|
331
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
331
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.26", "User-Agent": "@airweave/sdk/0.2.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
332
332
|
contentType: "application/json",
|
|
333
333
|
requestType: "json",
|
|
334
334
|
body: serializers.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -404,7 +404,7 @@ class Connections {
|
|
|
404
404
|
method: "GET",
|
|
405
405
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
406
406
|
? yield core.Supplier.get(this._options.apiKey)
|
|
407
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
407
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.26", "User-Agent": "@airweave/sdk/0.2.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
408
408
|
contentType: "application/json",
|
|
409
409
|
requestType: "json",
|
|
410
410
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -481,7 +481,7 @@ class Connections {
|
|
|
481
481
|
method: "DELETE",
|
|
482
482
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
483
483
|
? yield core.Supplier.get(this._options.apiKey)
|
|
484
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
484
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.26", "User-Agent": "@airweave/sdk/0.2.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
485
485
|
contentType: "application/json",
|
|
486
486
|
requestType: "json",
|
|
487
487
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -556,7 +556,7 @@ class Connections {
|
|
|
556
556
|
method: "PUT",
|
|
557
557
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
558
558
|
? yield core.Supplier.get(this._options.apiKey)
|
|
559
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
559
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.26", "User-Agent": "@airweave/sdk/0.2.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
560
560
|
contentType: "application/json",
|
|
561
561
|
requestType: "json",
|
|
562
562
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -634,7 +634,7 @@ class Connections {
|
|
|
634
634
|
method: "POST",
|
|
635
635
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
636
636
|
? yield core.Supplier.get(this._options.apiKey)
|
|
637
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
637
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.26", "User-Agent": "@airweave/sdk/0.2.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
638
638
|
contentType: "application/json",
|
|
639
639
|
requestType: "json",
|
|
640
640
|
body: serializers.connections.sendOauth2WhiteLabelCode.Request.jsonOrThrow(request, {
|
|
@@ -712,7 +712,7 @@ class Connections {
|
|
|
712
712
|
method: "GET",
|
|
713
713
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
714
714
|
? yield core.Supplier.get(this._options.apiKey)
|
|
715
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
715
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.26", "User-Agent": "@airweave/sdk/0.2.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
716
716
|
contentType: "application/json",
|
|
717
717
|
requestType: "json",
|
|
718
718
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
-
*
|
|
7
|
+
* configFields: {
|
|
8
8
|
* "key": "value"
|
|
9
9
|
* }
|
|
10
10
|
* }
|
|
11
11
|
*/
|
|
12
12
|
export interface BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost {
|
|
13
13
|
name?: string;
|
|
14
|
-
|
|
14
|
+
configFields: Record<string, unknown>;
|
|
15
15
|
}
|
|
@@ -47,7 +47,7 @@ export declare class EmbeddingModels {
|
|
|
47
47
|
* @example
|
|
48
48
|
* await client.embeddingModels.readEmbeddingModel("short_name")
|
|
49
49
|
*/
|
|
50
|
-
readEmbeddingModel(shortName: string, requestOptions?: EmbeddingModels.RequestOptions): Promise<AirweaveSDK.
|
|
50
|
+
readEmbeddingModel(shortName: string, requestOptions?: EmbeddingModels.RequestOptions): Promise<AirweaveSDK.EmbeddingModelWithConfigFields>;
|
|
51
51
|
/**
|
|
52
52
|
* Get all embedding models.
|
|
53
53
|
*
|
|
@@ -88,7 +88,7 @@ class EmbeddingModels {
|
|
|
88
88
|
method: "GET",
|
|
89
89
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
90
90
|
? yield core.Supplier.get(this._options.apiKey)
|
|
91
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
91
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.26", "User-Agent": "@airweave/sdk/0.2.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
92
92
|
contentType: "application/json",
|
|
93
93
|
requestType: "json",
|
|
94
94
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -96,7 +96,7 @@ class EmbeddingModels {
|
|
|
96
96
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
97
97
|
});
|
|
98
98
|
if (_response.ok) {
|
|
99
|
-
return serializers.
|
|
99
|
+
return serializers.EmbeddingModelWithConfigFields.parseOrThrow(_response.body, {
|
|
100
100
|
unrecognizedObjectKeys: "passthrough",
|
|
101
101
|
allowUnrecognizedUnionMembers: true,
|
|
102
102
|
allowUnrecognizedEnumValues: true,
|
|
@@ -161,7 +161,7 @@ class EmbeddingModels {
|
|
|
161
161
|
method: "GET",
|
|
162
162
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
163
163
|
? yield core.Supplier.get(this._options.apiKey)
|
|
164
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
164
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.26", "User-Agent": "@airweave/sdk/0.2.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
165
165
|
contentType: "application/json",
|
|
166
166
|
requestType: "json",
|
|
167
167
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
package/api/resources/index.d.ts
CHANGED
|
@@ -1,23 +1,13 @@
|
|
|
1
1
|
export * as sync from "./sync";
|
|
2
2
|
export * from "./sync/types";
|
|
3
|
-
export * as entities from "./entities";
|
|
4
|
-
export * from "./entities/types";
|
|
5
3
|
export * as apiKeys from "./apiKeys";
|
|
6
|
-
export * as users from "./users";
|
|
7
4
|
export * as sources from "./sources";
|
|
8
5
|
export * as embeddingModels from "./embeddingModels";
|
|
9
6
|
export * as connections from "./connections";
|
|
10
7
|
export * as search from "./search";
|
|
11
8
|
export * as whiteLabels from "./whiteLabels";
|
|
12
|
-
export * as chat from "./chat";
|
|
13
|
-
export * as dag from "./dag";
|
|
14
|
-
export * as transformers from "./transformers";
|
|
15
9
|
export * from "./apiKeys/client/requests";
|
|
16
10
|
export * from "./connections/client/requests";
|
|
17
11
|
export * from "./sync/client/requests";
|
|
18
12
|
export * from "./search/client/requests";
|
|
19
13
|
export * from "./whiteLabels/client/requests";
|
|
20
|
-
export * from "./chat/client/requests";
|
|
21
|
-
export * from "./dag/client/requests";
|
|
22
|
-
export * from "./entities/client/requests";
|
|
23
|
-
export * from "./transformers/client/requests";
|
package/api/resources/index.js
CHANGED
|
@@ -36,27 +36,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.whiteLabels = exports.search = exports.connections = exports.embeddingModels = exports.sources = exports.apiKeys = exports.sync = void 0;
|
|
40
40
|
exports.sync = __importStar(require("./sync"));
|
|
41
41
|
__exportStar(require("./sync/types"), exports);
|
|
42
|
-
exports.entities = __importStar(require("./entities"));
|
|
43
|
-
__exportStar(require("./entities/types"), exports);
|
|
44
42
|
exports.apiKeys = __importStar(require("./apiKeys"));
|
|
45
|
-
exports.users = __importStar(require("./users"));
|
|
46
43
|
exports.sources = __importStar(require("./sources"));
|
|
47
44
|
exports.embeddingModels = __importStar(require("./embeddingModels"));
|
|
48
45
|
exports.connections = __importStar(require("./connections"));
|
|
49
46
|
exports.search = __importStar(require("./search"));
|
|
50
47
|
exports.whiteLabels = __importStar(require("./whiteLabels"));
|
|
51
|
-
exports.chat = __importStar(require("./chat"));
|
|
52
|
-
exports.dag = __importStar(require("./dag"));
|
|
53
|
-
exports.transformers = __importStar(require("./transformers"));
|
|
54
48
|
__exportStar(require("./apiKeys/client/requests"), exports);
|
|
55
49
|
__exportStar(require("./connections/client/requests"), exports);
|
|
56
50
|
__exportStar(require("./sync/client/requests"), exports);
|
|
57
51
|
__exportStar(require("./search/client/requests"), exports);
|
|
58
52
|
__exportStar(require("./whiteLabels/client/requests"), exports);
|
|
59
|
-
__exportStar(require("./chat/client/requests"), exports);
|
|
60
|
-
__exportStar(require("./dag/client/requests"), exports);
|
|
61
|
-
__exportStar(require("./entities/client/requests"), exports);
|
|
62
|
-
__exportStar(require("./transformers/client/requests"), exports);
|
|
@@ -34,12 +34,11 @@ export declare class Search {
|
|
|
34
34
|
* db: The database session
|
|
35
35
|
* sync_id: The ID of the sync to search within
|
|
36
36
|
* query: The search query text
|
|
37
|
-
* response_type: Type of response (raw results or AI completion)
|
|
38
37
|
* user: The current user
|
|
39
38
|
*
|
|
40
39
|
* Returns:
|
|
41
40
|
* --------
|
|
42
|
-
* dict: A
|
|
41
|
+
* list[dict]: A list of search results
|
|
43
42
|
*
|
|
44
43
|
* @param {AirweaveSDK.SearchSearchGetRequest} request
|
|
45
44
|
* @param {Search.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -52,5 +51,5 @@ export declare class Search {
|
|
|
52
51
|
* query: "query"
|
|
53
52
|
* })
|
|
54
53
|
*/
|
|
55
|
-
search(request: AirweaveSDK.SearchSearchGetRequest, requestOptions?: Search.RequestOptions): Promise<Record<string, unknown
|
|
54
|
+
search(request: AirweaveSDK.SearchSearchGetRequest, requestOptions?: Search.RequestOptions): Promise<Record<string, unknown>[]>;
|
|
56
55
|
}
|
|
@@ -67,12 +67,11 @@ class Search {
|
|
|
67
67
|
* db: The database session
|
|
68
68
|
* sync_id: The ID of the sync to search within
|
|
69
69
|
* query: The search query text
|
|
70
|
-
* response_type: Type of response (raw results or AI completion)
|
|
71
70
|
* user: The current user
|
|
72
71
|
*
|
|
73
72
|
* Returns:
|
|
74
73
|
* --------
|
|
75
|
-
* dict: A
|
|
74
|
+
* list[dict]: A list of search results
|
|
76
75
|
*
|
|
77
76
|
* @param {AirweaveSDK.SearchSearchGetRequest} request
|
|
78
77
|
* @param {Search.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -88,19 +87,16 @@ class Search {
|
|
|
88
87
|
search(request, requestOptions) {
|
|
89
88
|
return __awaiter(this, void 0, void 0, function* () {
|
|
90
89
|
var _a;
|
|
91
|
-
const { syncId, query
|
|
90
|
+
const { syncId, query } = request;
|
|
92
91
|
const _queryParams = {};
|
|
93
92
|
_queryParams["sync_id"] = syncId;
|
|
94
93
|
_queryParams["query"] = query;
|
|
95
|
-
if (responseType != null) {
|
|
96
|
-
_queryParams["response_type"] = responseType;
|
|
97
|
-
}
|
|
98
94
|
const _response = yield core.fetcher({
|
|
99
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "search"),
|
|
95
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "search/"),
|
|
100
96
|
method: "GET",
|
|
101
97
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
102
98
|
? yield core.Supplier.get(this._options.apiKey)
|
|
103
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
99
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.26", "User-Agent": "@airweave/sdk/0.2.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
104
100
|
contentType: "application/json",
|
|
105
101
|
queryParameters: _queryParams,
|
|
106
102
|
requestType: "json",
|
|
@@ -139,7 +135,7 @@ class Search {
|
|
|
139
135
|
body: _response.error.rawBody,
|
|
140
136
|
});
|
|
141
137
|
case "timeout":
|
|
142
|
-
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /search
|
|
138
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /search/.");
|
|
143
139
|
case "unknown":
|
|
144
140
|
throw new errors.AirweaveSDKError({
|
|
145
141
|
message: _response.error.errorMessage,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as AirweaveSDK from "../../../../index";
|
|
5
4
|
/**
|
|
6
5
|
* @example
|
|
7
6
|
* {
|
|
@@ -18,8 +17,4 @@ export interface SearchSearchGetRequest {
|
|
|
18
17
|
* Search query text
|
|
19
18
|
*/
|
|
20
19
|
query: string;
|
|
21
|
-
/**
|
|
22
|
-
* Type of response: raw search results or AI completion
|
|
23
|
-
*/
|
|
24
|
-
responseType?: AirweaveSDK.ResponseType;
|
|
25
20
|
}
|
|
@@ -47,7 +47,7 @@ export declare class Sources {
|
|
|
47
47
|
* @example
|
|
48
48
|
* await client.sources.readSource("short_name")
|
|
49
49
|
*/
|
|
50
|
-
readSource(shortName: string, requestOptions?: Sources.RequestOptions): Promise<AirweaveSDK.
|
|
50
|
+
readSource(shortName: string, requestOptions?: Sources.RequestOptions): Promise<AirweaveSDK.SourceWithConfigFields>;
|
|
51
51
|
/**
|
|
52
52
|
* Get all sources for the current user.
|
|
53
53
|
*
|
|
@@ -88,7 +88,7 @@ class Sources {
|
|
|
88
88
|
method: "GET",
|
|
89
89
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
90
90
|
? yield core.Supplier.get(this._options.apiKey)
|
|
91
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
91
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.26", "User-Agent": "@airweave/sdk/0.2.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
92
92
|
contentType: "application/json",
|
|
93
93
|
requestType: "json",
|
|
94
94
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -96,7 +96,7 @@ class Sources {
|
|
|
96
96
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
97
97
|
});
|
|
98
98
|
if (_response.ok) {
|
|
99
|
-
return serializers.
|
|
99
|
+
return serializers.SourceWithConfigFields.parseOrThrow(_response.body, {
|
|
100
100
|
unrecognizedObjectKeys: "passthrough",
|
|
101
101
|
allowUnrecognizedUnionMembers: true,
|
|
102
102
|
allowUnrecognizedEnumValues: true,
|
|
@@ -161,7 +161,7 @@ class Sources {
|
|
|
161
161
|
method: "GET",
|
|
162
162
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
163
163
|
? yield core.Supplier.get(this._options.apiKey)
|
|
164
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
164
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.2.26", "User-Agent": "@airweave/sdk/0.2.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
165
165
|
contentType: "application/json",
|
|
166
166
|
requestType: "json",
|
|
167
167
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -85,7 +85,6 @@ export declare class Sync {
|
|
|
85
85
|
* db: The database session
|
|
86
86
|
* skip: The number of jobs to skip
|
|
87
87
|
* limit: The number of jobs to return
|
|
88
|
-
* status: Filter by job status
|
|
89
88
|
* user: The current user
|
|
90
89
|
*
|
|
91
90
|
* Returns:
|
|
@@ -246,8 +245,7 @@ export declare class Sync {
|
|
|
246
245
|
* Args:
|
|
247
246
|
* -----
|
|
248
247
|
* job_id: The ID of the job to subscribe to
|
|
249
|
-
*
|
|
250
|
-
* db: The database session
|
|
248
|
+
* user: The current user
|
|
251
249
|
*
|
|
252
250
|
* Returns:
|
|
253
251
|
* --------
|