@airweave/sdk 0.2.23 → 0.2.25
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 +15 -0
- package/Client.js +37 -12
- package/api/resources/apiKeys/client/Client.js +12 -12
- package/api/resources/apiKeys/client/requests/ApiKeyCreate.d.ts +1 -0
- package/api/resources/chat/client/Client.d.ts +77 -0
- package/api/resources/chat/client/Client.js +227 -0
- package/api/resources/chat/client/index.d.ts +1 -0
- package/api/resources/chat/client/index.js +17 -0
- package/api/{types → resources/chat/client/requests}/ChatCreate.d.ts +5 -1
- package/api/resources/chat/client/requests/ListChatsChatGetRequest.d.ts +11 -0
- package/api/resources/chat/client/requests/index.d.ts +2 -0
- package/api/resources/chat/client/requests/index.js +2 -0
- package/api/resources/chat/index.d.ts +1 -0
- package/api/resources/chat/index.js +17 -0
- 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/dag/client/Client.d.ts +81 -0
- package/api/resources/dag/client/Client.js +276 -0
- package/api/resources/dag/client/index.d.ts +1 -0
- package/api/resources/dag/client/index.js +17 -0
- package/api/resources/dag/client/requests/SyncDagCreate.d.ts +26 -0
- package/{dist/api/types → api/resources/dag/client/requests}/SyncDagUpdate.d.ts +7 -3
- package/api/resources/dag/client/requests/index.d.ts +2 -0
- package/api/resources/dag/client/requests/index.js +2 -0
- package/api/resources/dag/index.d.ts +1 -0
- package/api/resources/dag/index.js +17 -0
- package/api/resources/embeddingModels/client/Client.d.ts +1 -1
- package/api/resources/embeddingModels/client/Client.js +3 -3
- package/api/resources/entities/client/Client.d.ts +119 -0
- package/api/resources/entities/client/Client.js +480 -0
- package/api/resources/entities/client/index.d.ts +1 -0
- package/api/resources/entities/client/index.js +17 -0
- package/{dist/api/types → api/resources/entities/client/requests}/EntityDefinitionCreate.d.ts +9 -2
- package/{dist/api/types → api/resources/entities/client/requests}/EntityRelationCreate.d.ts +6 -1
- package/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +12 -0
- package/api/resources/entities/client/requests/index.d.ts +3 -0
- package/api/resources/entities/client/requests/index.js +2 -0
- package/api/resources/entities/index.d.ts +2 -0
- package/api/resources/entities/index.js +18 -0
- package/api/resources/entities/types/index.d.ts +1 -0
- package/api/resources/entities/types/index.js +17 -0
- package/api/resources/index.d.ts +10 -0
- package/api/resources/index.js +11 -1
- package/api/resources/search/client/Client.d.ts +3 -2
- package/api/resources/search/client/Client.js +9 -5
- package/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +5 -0
- 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 +3 -1
- package/api/resources/sync/client/Client.js +27 -17
- package/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +4 -0
- package/api/resources/transformers/client/Client.d.ts +58 -0
- package/api/resources/transformers/client/Client.js +199 -0
- package/api/resources/transformers/client/index.d.ts +1 -0
- package/api/resources/transformers/client/index.js +17 -0
- package/{dist/api/types → api/resources/transformers/client/requests}/TransformerCreate.d.ts +8 -1
- package/api/resources/transformers/client/requests/index.d.ts +1 -0
- package/api/resources/transformers/client/requests/index.js +2 -0
- package/api/resources/transformers/index.d.ts +1 -0
- package/api/resources/transformers/index.js +17 -0
- package/api/resources/users/client/Client.d.ts +48 -0
- package/api/resources/users/client/Client.js +135 -0
- package/api/resources/users/client/index.d.ts +1 -0
- package/api/resources/users/client/index.js +2 -0
- package/api/resources/users/index.d.ts +1 -0
- package/api/resources/users/index.js +17 -0
- 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 +2 -0
- package/api/types/{DestinationWithConfigFields.d.ts → DestinationWithAuthenticationFields.d.ts} +2 -2
- package/api/types/{EmbeddingModelWithConfigFields.d.ts → 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/{SourceWithConfigFields.d.ts → SourceWithAuthenticationFields.d.ts} +2 -2
- package/api/types/SyncJob.d.ts +5 -4
- package/api/types/User.d.ts +1 -1
- package/api/types/UserCreate.d.ts +11 -0
- package/api/types/index.d.ts +7 -10
- package/api/types/index.js +7 -10
- package/dist/Client.d.ts +15 -0
- package/dist/Client.js +37 -12
- package/dist/api/resources/apiKeys/client/Client.js +12 -12
- package/dist/api/resources/apiKeys/client/requests/ApiKeyCreate.d.ts +1 -0
- package/dist/api/resources/chat/client/Client.d.ts +77 -0
- package/dist/api/resources/chat/client/Client.js +227 -0
- package/dist/api/resources/chat/client/index.d.ts +1 -0
- package/dist/api/resources/chat/client/index.js +17 -0
- package/dist/api/{types → resources/chat/client/requests}/ChatCreate.d.ts +5 -1
- package/dist/api/resources/chat/client/requests/ListChatsChatGetRequest.d.ts +11 -0
- package/dist/api/resources/chat/client/requests/index.d.ts +2 -0
- package/dist/api/resources/chat/client/requests/index.js +2 -0
- package/dist/api/resources/chat/index.d.ts +1 -0
- package/dist/api/resources/chat/index.js +17 -0
- 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/dag/client/Client.d.ts +81 -0
- package/dist/api/resources/dag/client/Client.js +276 -0
- package/dist/api/resources/dag/client/index.d.ts +1 -0
- package/dist/api/resources/dag/client/index.js +17 -0
- package/dist/api/resources/dag/client/requests/SyncDagCreate.d.ts +26 -0
- package/{api/types → dist/api/resources/dag/client/requests}/SyncDagUpdate.d.ts +7 -3
- package/dist/api/resources/dag/client/requests/index.d.ts +2 -0
- package/dist/api/resources/dag/client/requests/index.js +2 -0
- package/dist/api/resources/dag/index.d.ts +1 -0
- package/dist/api/resources/dag/index.js +17 -0
- 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/entities/client/Client.d.ts +119 -0
- package/dist/api/resources/entities/client/Client.js +480 -0
- package/dist/api/resources/entities/client/index.d.ts +1 -0
- package/dist/api/resources/entities/client/index.js +17 -0
- package/{api/types → dist/api/resources/entities/client/requests}/EntityDefinitionCreate.d.ts +9 -2
- package/{api/types → dist/api/resources/entities/client/requests}/EntityRelationCreate.d.ts +6 -1
- package/dist/api/resources/entities/client/requests/EntityRelationCreate.js +5 -0
- package/dist/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +12 -0
- package/dist/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.js +5 -0
- package/dist/api/resources/entities/client/requests/index.d.ts +3 -0
- package/dist/api/resources/entities/client/requests/index.js +2 -0
- package/dist/api/resources/entities/index.d.ts +2 -0
- package/dist/api/resources/entities/index.js +18 -0
- package/dist/api/resources/entities/types/EntityDefinitionCreateEntitySchema.js +5 -0
- package/dist/api/resources/entities/types/index.d.ts +1 -0
- package/dist/api/resources/entities/types/index.js +17 -0
- package/dist/api/resources/index.d.ts +10 -0
- package/dist/api/resources/index.js +11 -1
- package/dist/api/resources/search/client/Client.d.ts +3 -2
- package/dist/api/resources/search/client/Client.js +9 -5
- package/dist/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +5 -0
- 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 +3 -1
- package/dist/api/resources/sync/client/Client.js +27 -17
- package/dist/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +4 -0
- package/dist/api/resources/transformers/client/Client.d.ts +58 -0
- package/dist/api/resources/transformers/client/Client.js +199 -0
- package/dist/api/resources/transformers/client/index.d.ts +1 -0
- package/dist/api/resources/transformers/client/index.js +17 -0
- package/{api/types → dist/api/resources/transformers/client/requests}/TransformerCreate.d.ts +8 -1
- package/dist/api/resources/transformers/client/requests/TransformerCreate.js +5 -0
- package/dist/api/resources/transformers/client/requests/index.d.ts +1 -0
- package/dist/api/resources/transformers/client/requests/index.js +2 -0
- package/dist/api/resources/transformers/index.d.ts +1 -0
- package/dist/api/resources/transformers/index.js +17 -0
- package/dist/api/resources/users/client/Client.d.ts +48 -0
- package/dist/api/resources/users/client/Client.js +135 -0
- package/dist/api/resources/users/client/index.d.ts +1 -0
- package/dist/api/resources/users/client/index.js +2 -0
- package/dist/api/resources/users/index.d.ts +1 -0
- package/dist/api/resources/users/index.js +17 -0
- 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 +2 -0
- package/dist/api/types/{DestinationWithConfigFields.d.ts → DestinationWithAuthenticationFields.d.ts} +2 -2
- package/dist/api/types/DestinationWithAuthenticationFields.js +5 -0
- package/dist/api/types/{EmbeddingModelWithConfigFields.d.ts → 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/{SourceWithConfigFields.d.ts → SourceWithAuthenticationFields.d.ts} +2 -2
- package/dist/api/types/SourceWithAuthenticationFields.js +5 -0
- package/dist/api/types/SyncJob.d.ts +5 -4
- 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 +7 -10
- package/dist/api/types/index.js +7 -10
- package/dist/serialization/resources/chat/client/index.d.ts +2 -0
- package/dist/serialization/resources/chat/client/index.js +41 -0
- package/dist/serialization/resources/chat/client/listChats.d.ts +11 -0
- package/dist/serialization/resources/chat/client/listChats.js +42 -0
- package/dist/serialization/{types → resources/chat/client/requests}/ChatCreate.d.ts +4 -4
- package/{serialization/types → dist/serialization/resources/chat/client/requests}/ChatCreate.js +1 -1
- package/dist/serialization/resources/chat/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/chat/client/requests/index.js +5 -0
- package/dist/serialization/resources/chat/index.d.ts +1 -0
- package/dist/serialization/resources/chat/index.js +17 -0
- 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/dag/client/index.d.ts +1 -0
- package/dist/serialization/resources/dag/client/index.js +17 -0
- package/dist/serialization/resources/dag/client/requests/SyncDagCreate.d.ts +18 -0
- package/{serialization/types → dist/serialization/resources/dag/client/requests}/SyncDagCreate.js +4 -4
- package/dist/serialization/resources/dag/client/requests/SyncDagUpdate.d.ts +18 -0
- package/{serialization/types → dist/serialization/resources/dag/client/requests}/SyncDagUpdate.js +4 -4
- package/dist/serialization/resources/dag/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/dag/client/requests/index.js +7 -0
- package/dist/serialization/resources/dag/index.d.ts +1 -0
- package/dist/serialization/resources/dag/index.js +17 -0
- package/dist/serialization/resources/entities/client/getEntityDefinitionsByIds.d.ts +15 -0
- package/dist/serialization/resources/entities/client/getEntityDefinitionsByIds.js +43 -0
- package/dist/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.d.ts +11 -0
- package/dist/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.js +42 -0
- package/dist/serialization/resources/entities/client/index.d.ts +5 -0
- package/dist/serialization/resources/entities/client/index.js +44 -0
- package/dist/serialization/resources/entities/client/listEntityDefinitions.d.ts +11 -0
- package/dist/serialization/resources/entities/client/listEntityDefinitions.js +42 -0
- package/dist/serialization/resources/entities/client/listEntityRelations.d.ts +11 -0
- package/dist/serialization/resources/entities/client/listEntityRelations.js +42 -0
- package/{serialization/types → dist/serialization/resources/entities/client/requests}/EntityDefinitionCreate.d.ts +6 -6
- package/dist/serialization/{types → resources/entities/client/requests}/EntityDefinitionCreate.js +3 -3
- package/dist/serialization/resources/entities/client/requests/EntityRelationCreate.d.ts +15 -0
- package/{serialization/types → dist/serialization/resources/entities/client/requests}/EntityRelationCreate.js +1 -1
- package/dist/serialization/resources/entities/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/entities/client/requests/index.js +7 -0
- package/dist/serialization/resources/entities/index.d.ts +2 -0
- package/dist/serialization/resources/entities/index.js +18 -0
- package/dist/serialization/{types → resources/entities/types}/EntityDefinitionCreateEntitySchema.d.ts +3 -3
- package/dist/serialization/{types → resources/entities/types}/EntityDefinitionCreateEntitySchema.js +1 -1
- package/dist/serialization/resources/entities/types/index.d.ts +1 -0
- package/dist/serialization/resources/entities/types/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +9 -0
- package/dist/serialization/resources/index.js +10 -1
- package/dist/serialization/resources/search/client/search.d.ts +2 -2
- package/dist/serialization/resources/search/client/search.js +1 -1
- package/dist/serialization/resources/transformers/client/index.d.ts +2 -0
- package/dist/serialization/resources/transformers/client/index.js +41 -0
- package/dist/serialization/resources/transformers/client/listTransformers.d.ts +11 -0
- package/dist/serialization/resources/transformers/client/listTransformers.js +42 -0
- package/dist/serialization/{types → resources/transformers/client/requests}/TransformerCreate.d.ts +4 -4
- package/dist/serialization/{types → resources/transformers/client/requests}/TransformerCreate.js +1 -1
- package/dist/serialization/resources/transformers/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/transformers/client/requests/index.js +5 -0
- package/dist/serialization/resources/transformers/index.d.ts +1 -0
- package/dist/serialization/resources/transformers/index.js +17 -0
- 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 +2 -0
- package/dist/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +2 -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/types/EntityCount.js +43 -0
- 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/types/ResponseType.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/dist/serialization/types/SyncJob.d.ts +5 -4
- package/dist/serialization/types/SyncJob.js +5 -4
- 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 +7 -10
- package/dist/serialization/types/index.js +7 -10
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +962 -7
- package/serialization/resources/chat/client/index.d.ts +2 -0
- package/serialization/resources/chat/client/index.js +41 -0
- package/serialization/resources/chat/client/listChats.d.ts +11 -0
- package/serialization/resources/chat/client/listChats.js +42 -0
- package/serialization/{types → resources/chat/client/requests}/ChatCreate.d.ts +4 -4
- package/{dist/serialization/types → serialization/resources/chat/client/requests}/ChatCreate.js +1 -1
- package/serialization/resources/chat/client/requests/index.d.ts +1 -0
- package/serialization/resources/chat/client/requests/index.js +5 -0
- package/serialization/resources/chat/index.d.ts +1 -0
- package/serialization/resources/chat/index.js +17 -0
- package/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +1 -1
- package/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js +1 -1
- package/serialization/resources/dag/client/index.d.ts +1 -0
- package/serialization/resources/dag/client/index.js +17 -0
- package/serialization/resources/dag/client/requests/SyncDagCreate.d.ts +18 -0
- package/{dist/serialization/types → serialization/resources/dag/client/requests}/SyncDagCreate.js +4 -4
- package/serialization/resources/dag/client/requests/SyncDagUpdate.d.ts +18 -0
- package/{dist/serialization/types → serialization/resources/dag/client/requests}/SyncDagUpdate.js +4 -4
- package/serialization/resources/dag/client/requests/index.d.ts +2 -0
- package/serialization/resources/dag/client/requests/index.js +7 -0
- package/serialization/resources/dag/index.d.ts +1 -0
- package/serialization/resources/dag/index.js +17 -0
- package/serialization/resources/entities/client/getEntityDefinitionsByIds.d.ts +15 -0
- package/serialization/resources/entities/client/getEntityDefinitionsByIds.js +43 -0
- package/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.d.ts +11 -0
- package/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.js +42 -0
- package/serialization/resources/entities/client/index.d.ts +5 -0
- package/serialization/resources/entities/client/index.js +44 -0
- package/serialization/resources/entities/client/listEntityDefinitions.d.ts +11 -0
- package/serialization/resources/entities/client/listEntityDefinitions.js +42 -0
- package/serialization/resources/entities/client/listEntityRelations.d.ts +11 -0
- package/serialization/resources/entities/client/listEntityRelations.js +42 -0
- package/{dist/serialization/types → serialization/resources/entities/client/requests}/EntityDefinitionCreate.d.ts +6 -6
- package/serialization/{types → resources/entities/client/requests}/EntityDefinitionCreate.js +3 -3
- package/serialization/resources/entities/client/requests/EntityRelationCreate.d.ts +15 -0
- package/{dist/serialization/types → serialization/resources/entities/client/requests}/EntityRelationCreate.js +1 -1
- package/serialization/resources/entities/client/requests/index.d.ts +2 -0
- package/serialization/resources/entities/client/requests/index.js +7 -0
- package/serialization/resources/entities/index.d.ts +2 -0
- package/serialization/resources/entities/index.js +18 -0
- package/serialization/{types → resources/entities/types}/EntityDefinitionCreateEntitySchema.d.ts +3 -3
- package/serialization/{types → resources/entities/types}/EntityDefinitionCreateEntitySchema.js +1 -1
- package/serialization/resources/entities/types/index.d.ts +1 -0
- package/serialization/resources/entities/types/index.js +17 -0
- package/serialization/resources/index.d.ts +9 -0
- package/serialization/resources/index.js +10 -1
- package/serialization/resources/search/client/search.d.ts +2 -2
- package/serialization/resources/search/client/search.js +1 -1
- package/serialization/resources/transformers/client/index.d.ts +2 -0
- package/serialization/resources/transformers/client/index.js +41 -0
- package/serialization/resources/transformers/client/listTransformers.d.ts +11 -0
- package/serialization/resources/transformers/client/listTransformers.js +42 -0
- package/serialization/{types → resources/transformers/client/requests}/TransformerCreate.d.ts +4 -4
- package/serialization/{types → resources/transformers/client/requests}/TransformerCreate.js +1 -1
- package/serialization/resources/transformers/client/requests/index.d.ts +1 -0
- package/serialization/resources/transformers/client/requests/index.js +5 -0
- package/serialization/resources/transformers/index.d.ts +1 -0
- package/serialization/resources/transformers/index.js +17 -0
- 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 +2 -0
- package/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +2 -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/serialization/types/EntityCount.js +43 -0
- package/serialization/types/Organization.d.ts +16 -0
- package/serialization/types/Organization.js +47 -0
- package/serialization/types/ResponseType.d.ts +10 -0
- package/serialization/types/ResponseType.js +41 -0
- package/serialization/types/{SourceWithConfigFields.d.ts → SourceWithAuthenticationFields.d.ts} +3 -3
- package/serialization/types/{SourceWithConfigFields.js → SourceWithAuthenticationFields.js} +3 -3
- package/serialization/types/SyncJob.d.ts +5 -4
- package/serialization/types/SyncJob.js +5 -4
- 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 +7 -10
- package/serialization/types/index.js +7 -10
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/SyncDagCreate.d.ts +0 -14
- package/dist/api/types/SyncDagCreate.d.ts +0 -14
- package/dist/serialization/types/EntityRelationCreate.d.ts +0 -15
- package/dist/serialization/types/SyncDagCreate.d.ts +0 -18
- package/dist/serialization/types/SyncDagUpdate.d.ts +0 -18
- package/serialization/types/EntityRelationCreate.d.ts +0 -15
- package/serialization/types/SyncDagCreate.d.ts +0 -18
- package/serialization/types/SyncDagUpdate.d.ts +0 -18
- /package/api/{types → resources/chat/client/requests}/ChatCreate.js +0 -0
- /package/api/{types/DestinationWithConfigFields.js → resources/chat/client/requests/ListChatsChatGetRequest.js} +0 -0
- /package/api/{types → resources/dag/client/requests}/SyncDagCreate.js +0 -0
- /package/api/{types → resources/dag/client/requests}/SyncDagUpdate.js +0 -0
- /package/api/{types → resources/entities/client/requests}/EntityDefinitionCreate.js +0 -0
- /package/api/{types → resources/entities/client/requests}/EntityRelationCreate.js +0 -0
- /package/api/{types/EmbeddingModelWithConfigFields.js → resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.js} +0 -0
- /package/api/{types → resources/entities/types}/EntityDefinitionCreateEntitySchema.d.ts +0 -0
- /package/api/{types → resources/entities/types}/EntityDefinitionCreateEntitySchema.js +0 -0
- /package/api/{types → resources/transformers/client/requests}/TransformerCreate.js +0 -0
- /package/api/types/{SourceWithConfigFields.js → DestinationWithAuthenticationFields.js} +0 -0
- /package/{dist/api/types/ChatCreate.js → api/types/EmbeddingModelWithAuthenticationFields.js} +0 -0
- /package/{dist/api/types/DestinationWithConfigFields.js → api/types/EntityCount.js} +0 -0
- /package/{dist/api/types/EmbeddingModelWithConfigFields.js → api/types/Organization.js} +0 -0
- /package/{dist/api/types/EntityDefinitionCreate.js → api/types/SourceWithAuthenticationFields.js} +0 -0
- /package/{dist/api/types/EntityDefinitionCreateEntitySchema.js → api/types/UserCreate.js} +0 -0
- /package/dist/api/{types/EntityRelationCreate.js → resources/chat/client/requests/ChatCreate.js} +0 -0
- /package/dist/api/{types/SourceWithConfigFields.js → resources/chat/client/requests/ListChatsChatGetRequest.js} +0 -0
- /package/dist/api/{types → resources/dag/client/requests}/SyncDagCreate.js +0 -0
- /package/dist/api/{types → resources/dag/client/requests}/SyncDagUpdate.js +0 -0
- /package/dist/api/{types/TransformerCreate.js → resources/entities/client/requests/EntityDefinitionCreate.js} +0 -0
- /package/dist/api/{types → resources/entities/types}/EntityDefinitionCreateEntitySchema.d.ts +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { type EntityDefinitionCreate } from "./EntityDefinitionCreate";
|
|
2
|
+
export { type EntityRelationCreate } from "./EntityRelationCreate";
|
|
3
|
+
export { type GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest } from "./GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./EntityDefinitionCreateEntitySchema";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./EntityDefinitionCreateEntitySchema"), exports);
|
package/api/resources/index.d.ts
CHANGED
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
export * as sync from "./sync";
|
|
2
2
|
export * from "./sync/types";
|
|
3
|
+
export * as entities from "./entities";
|
|
4
|
+
export * from "./entities/types";
|
|
3
5
|
export * as apiKeys from "./apiKeys";
|
|
6
|
+
export * as users from "./users";
|
|
4
7
|
export * as sources from "./sources";
|
|
5
8
|
export * as embeddingModels from "./embeddingModels";
|
|
6
9
|
export * as connections from "./connections";
|
|
7
10
|
export * as search from "./search";
|
|
8
11
|
export * as whiteLabels from "./whiteLabels";
|
|
12
|
+
export * as chat from "./chat";
|
|
13
|
+
export * as dag from "./dag";
|
|
14
|
+
export * as transformers from "./transformers";
|
|
9
15
|
export * from "./apiKeys/client/requests";
|
|
10
16
|
export * from "./connections/client/requests";
|
|
11
17
|
export * from "./sync/client/requests";
|
|
12
18
|
export * from "./search/client/requests";
|
|
13
19
|
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,17 +36,27 @@ 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.whiteLabels = exports.search = exports.connections = exports.embeddingModels = exports.sources = exports.apiKeys = exports.sync = void 0;
|
|
39
|
+
exports.transformers = exports.dag = exports.chat = exports.whiteLabels = exports.search = exports.connections = exports.embeddingModels = exports.sources = exports.users = exports.apiKeys = exports.entities = 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);
|
|
42
44
|
exports.apiKeys = __importStar(require("./apiKeys"));
|
|
45
|
+
exports.users = __importStar(require("./users"));
|
|
43
46
|
exports.sources = __importStar(require("./sources"));
|
|
44
47
|
exports.embeddingModels = __importStar(require("./embeddingModels"));
|
|
45
48
|
exports.connections = __importStar(require("./connections"));
|
|
46
49
|
exports.search = __importStar(require("./search"));
|
|
47
50
|
exports.whiteLabels = __importStar(require("./whiteLabels"));
|
|
51
|
+
exports.chat = __importStar(require("./chat"));
|
|
52
|
+
exports.dag = __importStar(require("./dag"));
|
|
53
|
+
exports.transformers = __importStar(require("./transformers"));
|
|
48
54
|
__exportStar(require("./apiKeys/client/requests"), exports);
|
|
49
55
|
__exportStar(require("./connections/client/requests"), exports);
|
|
50
56
|
__exportStar(require("./sync/client/requests"), exports);
|
|
51
57
|
__exportStar(require("./search/client/requests"), exports);
|
|
52
58
|
__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,11 +34,12 @@ 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)
|
|
37
38
|
* user: The current user
|
|
38
39
|
*
|
|
39
40
|
* Returns:
|
|
40
41
|
* --------
|
|
41
|
-
*
|
|
42
|
+
* dict: A dictionary containing search results or AI completion
|
|
42
43
|
*
|
|
43
44
|
* @param {AirweaveSDK.SearchSearchGetRequest} request
|
|
44
45
|
* @param {Search.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -51,5 +52,5 @@ export declare class Search {
|
|
|
51
52
|
* query: "query"
|
|
52
53
|
* })
|
|
53
54
|
*/
|
|
54
|
-
search(request: AirweaveSDK.SearchSearchGetRequest, requestOptions?: Search.RequestOptions): Promise<Record<string, unknown
|
|
55
|
+
search(request: AirweaveSDK.SearchSearchGetRequest, requestOptions?: Search.RequestOptions): Promise<Record<string, unknown>>;
|
|
55
56
|
}
|
|
@@ -67,11 +67,12 @@ 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)
|
|
70
71
|
* user: The current user
|
|
71
72
|
*
|
|
72
73
|
* Returns:
|
|
73
74
|
* --------
|
|
74
|
-
*
|
|
75
|
+
* dict: A dictionary containing search results or AI completion
|
|
75
76
|
*
|
|
76
77
|
* @param {AirweaveSDK.SearchSearchGetRequest} request
|
|
77
78
|
* @param {Search.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -87,16 +88,19 @@ class Search {
|
|
|
87
88
|
search(request, requestOptions) {
|
|
88
89
|
return __awaiter(this, void 0, void 0, function* () {
|
|
89
90
|
var _a;
|
|
90
|
-
const { syncId, query } = request;
|
|
91
|
+
const { syncId, query, responseType } = request;
|
|
91
92
|
const _queryParams = {};
|
|
92
93
|
_queryParams["sync_id"] = syncId;
|
|
93
94
|
_queryParams["query"] = query;
|
|
95
|
+
if (responseType != null) {
|
|
96
|
+
_queryParams["response_type"] = responseType;
|
|
97
|
+
}
|
|
94
98
|
const _response = yield core.fetcher({
|
|
95
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "search
|
|
99
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "search"),
|
|
96
100
|
method: "GET",
|
|
97
101
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
98
102
|
? yield core.Supplier.get(this._options.apiKey)
|
|
99
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
103
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
100
104
|
contentType: "application/json",
|
|
101
105
|
queryParameters: _queryParams,
|
|
102
106
|
requestType: "json",
|
|
@@ -135,7 +139,7 @@ class Search {
|
|
|
135
139
|
body: _response.error.rawBody,
|
|
136
140
|
});
|
|
137
141
|
case "timeout":
|
|
138
|
-
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /search
|
|
142
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /search.");
|
|
139
143
|
case "unknown":
|
|
140
144
|
throw new errors.AirweaveSDKError({
|
|
141
145
|
message: _response.error.errorMessage,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as AirweaveSDK from "../../../../index";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {
|
|
@@ -17,4 +18,8 @@ export interface SearchSearchGetRequest {
|
|
|
17
18
|
* Search query text
|
|
18
19
|
*/
|
|
19
20
|
query: string;
|
|
21
|
+
/**
|
|
22
|
+
* Type of response: raw search results or AI completion
|
|
23
|
+
*/
|
|
24
|
+
responseType?: AirweaveSDK.ResponseType;
|
|
20
25
|
}
|
|
@@ -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.SourceWithAuthenticationFields>;
|
|
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": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "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.SourceWithAuthenticationFields.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": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "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,6 +85,7 @@ 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
|
|
88
89
|
* user: The current user
|
|
89
90
|
*
|
|
90
91
|
* Returns:
|
|
@@ -245,7 +246,8 @@ export declare class Sync {
|
|
|
245
246
|
* Args:
|
|
246
247
|
* -----
|
|
247
248
|
* job_id: The ID of the job to subscribe to
|
|
248
|
-
*
|
|
249
|
+
* request: The request object
|
|
250
|
+
* db: The database session
|
|
249
251
|
*
|
|
250
252
|
* Returns:
|
|
251
253
|
* --------
|
|
@@ -97,11 +97,11 @@ class Sync {
|
|
|
97
97
|
_queryParams["with_source_connection"] = withSourceConnection.toString();
|
|
98
98
|
}
|
|
99
99
|
const _response = yield core.fetcher({
|
|
100
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "sync
|
|
100
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "sync"),
|
|
101
101
|
method: "GET",
|
|
102
102
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
103
103
|
? yield core.Supplier.get(this._options.apiKey)
|
|
104
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
104
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
105
105
|
contentType: "application/json",
|
|
106
106
|
queryParameters: _queryParams,
|
|
107
107
|
requestType: "json",
|
|
@@ -140,7 +140,7 @@ class Sync {
|
|
|
140
140
|
body: _response.error.rawBody,
|
|
141
141
|
});
|
|
142
142
|
case "timeout":
|
|
143
|
-
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /sync
|
|
143
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /sync.");
|
|
144
144
|
case "unknown":
|
|
145
145
|
throw new errors.AirweaveSDKError({
|
|
146
146
|
message: _response.error.errorMessage,
|
|
@@ -178,11 +178,11 @@ class Sync {
|
|
|
178
178
|
return __awaiter(this, void 0, void 0, function* () {
|
|
179
179
|
var _a;
|
|
180
180
|
const _response = yield core.fetcher({
|
|
181
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "sync
|
|
181
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "sync"),
|
|
182
182
|
method: "POST",
|
|
183
183
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
184
184
|
? yield core.Supplier.get(this._options.apiKey)
|
|
185
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
185
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
186
186
|
contentType: "application/json",
|
|
187
187
|
requestType: "json",
|
|
188
188
|
body: serializers.SyncCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -221,7 +221,7 @@ class Sync {
|
|
|
221
221
|
body: _response.error.rawBody,
|
|
222
222
|
});
|
|
223
223
|
case "timeout":
|
|
224
|
-
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling POST /sync
|
|
224
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling POST /sync.");
|
|
225
225
|
case "unknown":
|
|
226
226
|
throw new errors.AirweaveSDKError({
|
|
227
227
|
message: _response.error.errorMessage,
|
|
@@ -237,6 +237,7 @@ class Sync {
|
|
|
237
237
|
* db: The database session
|
|
238
238
|
* skip: The number of jobs to skip
|
|
239
239
|
* limit: The number of jobs to return
|
|
240
|
+
* status: Filter by job status
|
|
240
241
|
* user: The current user
|
|
241
242
|
*
|
|
242
243
|
* Returns:
|
|
@@ -254,7 +255,7 @@ class Sync {
|
|
|
254
255
|
listAllJobs() {
|
|
255
256
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
256
257
|
var _a;
|
|
257
|
-
const { skip, limit } = request;
|
|
258
|
+
const { skip, limit, status } = request;
|
|
258
259
|
const _queryParams = {};
|
|
259
260
|
if (skip != null) {
|
|
260
261
|
_queryParams["skip"] = skip.toString();
|
|
@@ -262,12 +263,20 @@ class Sync {
|
|
|
262
263
|
if (limit != null) {
|
|
263
264
|
_queryParams["limit"] = limit.toString();
|
|
264
265
|
}
|
|
266
|
+
if (status != null) {
|
|
267
|
+
if (Array.isArray(status)) {
|
|
268
|
+
_queryParams["status"] = status.map((item) => item);
|
|
269
|
+
}
|
|
270
|
+
else {
|
|
271
|
+
_queryParams["status"] = status;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
265
274
|
const _response = yield core.fetcher({
|
|
266
275
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "sync/jobs"),
|
|
267
276
|
method: "GET",
|
|
268
277
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
269
278
|
? yield core.Supplier.get(this._options.apiKey)
|
|
270
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
279
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
271
280
|
contentType: "application/json",
|
|
272
281
|
queryParameters: _queryParams,
|
|
273
282
|
requestType: "json",
|
|
@@ -343,7 +352,7 @@ class Sync {
|
|
|
343
352
|
method: "GET",
|
|
344
353
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
345
354
|
? yield core.Supplier.get(this._options.apiKey)
|
|
346
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
355
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
347
356
|
contentType: "application/json",
|
|
348
357
|
requestType: "json",
|
|
349
358
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -425,7 +434,7 @@ class Sync {
|
|
|
425
434
|
method: "DELETE",
|
|
426
435
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
427
436
|
? yield core.Supplier.get(this._options.apiKey)
|
|
428
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
437
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
429
438
|
contentType: "application/json",
|
|
430
439
|
queryParameters: _queryParams,
|
|
431
440
|
requestType: "json",
|
|
@@ -503,7 +512,7 @@ class Sync {
|
|
|
503
512
|
method: "PATCH",
|
|
504
513
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
505
514
|
? yield core.Supplier.get(this._options.apiKey)
|
|
506
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
515
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
507
516
|
contentType: "application/json",
|
|
508
517
|
requestType: "json",
|
|
509
518
|
body: serializers.SyncUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -580,7 +589,7 @@ class Sync {
|
|
|
580
589
|
method: "POST",
|
|
581
590
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
582
591
|
? yield core.Supplier.get(this._options.apiKey)
|
|
583
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
592
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
584
593
|
contentType: "application/json",
|
|
585
594
|
requestType: "json",
|
|
586
595
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -655,7 +664,7 @@ class Sync {
|
|
|
655
664
|
method: "GET",
|
|
656
665
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
657
666
|
? yield core.Supplier.get(this._options.apiKey)
|
|
658
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
667
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
659
668
|
contentType: "application/json",
|
|
660
669
|
requestType: "json",
|
|
661
670
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -732,7 +741,7 @@ class Sync {
|
|
|
732
741
|
method: "GET",
|
|
733
742
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
734
743
|
? yield core.Supplier.get(this._options.apiKey)
|
|
735
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
744
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
736
745
|
contentType: "application/json",
|
|
737
746
|
requestType: "json",
|
|
738
747
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -784,7 +793,8 @@ class Sync {
|
|
|
784
793
|
* Args:
|
|
785
794
|
* -----
|
|
786
795
|
* job_id: The ID of the job to subscribe to
|
|
787
|
-
*
|
|
796
|
+
* request: The request object
|
|
797
|
+
* db: The database session
|
|
788
798
|
*
|
|
789
799
|
* Returns:
|
|
790
800
|
* --------
|
|
@@ -806,7 +816,7 @@ class Sync {
|
|
|
806
816
|
method: "GET",
|
|
807
817
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
808
818
|
? yield core.Supplier.get(this._options.apiKey)
|
|
809
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
819
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
810
820
|
contentType: "application/json",
|
|
811
821
|
requestType: "json",
|
|
812
822
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -866,7 +876,7 @@ class Sync {
|
|
|
866
876
|
method: "GET",
|
|
867
877
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
868
878
|
? yield core.Supplier.get(this._options.apiKey)
|
|
869
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
879
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.25", "User-Agent": "@airweave/sdk/v0.2.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
870
880
|
contentType: "application/json",
|
|
871
881
|
requestType: "json",
|
|
872
882
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -0,0 +1,58 @@
|
|
|
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 Transformers {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
|
|
10
|
+
/** Override the x-api-key header */
|
|
11
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
12
|
+
}
|
|
13
|
+
interface RequestOptions {
|
|
14
|
+
/** The maximum time to wait for a response in seconds. */
|
|
15
|
+
timeoutInSeconds?: number;
|
|
16
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
17
|
+
maxRetries?: number;
|
|
18
|
+
/** A hook to abort the request. */
|
|
19
|
+
abortSignal?: AbortSignal;
|
|
20
|
+
/** Override the x-api-key header */
|
|
21
|
+
apiKey?: string | undefined;
|
|
22
|
+
/** Additional headers to include in the request. */
|
|
23
|
+
headers?: Record<string, string>;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export declare class Transformers {
|
|
27
|
+
protected readonly _options: Transformers.Options;
|
|
28
|
+
constructor(_options?: Transformers.Options);
|
|
29
|
+
/**
|
|
30
|
+
* List all transformers for the current user's organization.
|
|
31
|
+
*
|
|
32
|
+
* @param {Transformers.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
|
+
*
|
|
34
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* await client.transformers.listTransformers()
|
|
38
|
+
*/
|
|
39
|
+
listTransformers(requestOptions?: Transformers.RequestOptions): Promise<AirweaveSDK.Transformer[]>;
|
|
40
|
+
/**
|
|
41
|
+
* Create a new transformer.
|
|
42
|
+
*
|
|
43
|
+
* @param {AirweaveSDK.TransformerCreate} request
|
|
44
|
+
* @param {Transformers.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
|
+
*
|
|
46
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* await client.transformers.createTransformer({
|
|
50
|
+
* name: "name",
|
|
51
|
+
* methodName: "method_name",
|
|
52
|
+
* moduleName: "module_name",
|
|
53
|
+
* inputEntityDefinitionIds: ["input_entity_definition_ids"],
|
|
54
|
+
* outputEntityDefinitionIds: ["output_entity_definition_ids"]
|
|
55
|
+
* })
|
|
56
|
+
*/
|
|
57
|
+
createTransformer(request: AirweaveSDK.TransformerCreate, requestOptions?: Transformers.RequestOptions): Promise<AirweaveSDK.Transformer>;
|
|
58
|
+
}
|