@airweave/sdk 0.2.22 → 0.2.24
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/README.md +7 -15
- package/api/resources/apiKeys/client/Client.d.ts +78 -5
- package/api/resources/apiKeys/client/Client.js +252 -10
- package/api/{types → resources/apiKeys/client/requests}/ApiKeyCreate.d.ts +2 -1
- package/api/resources/{sync/client/requests/GetSyncSyncSyncIdGetRequest.d.ts → apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.d.ts} +3 -3
- package/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.d.ts +11 -0
- package/api/resources/apiKeys/client/requests/index.d.ts +3 -1
- 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/index.d.ts +1 -0
- package/api/resources/chat/index.js +17 -0
- package/api/resources/connections/client/Client.d.ts +20 -48
- package/api/resources/connections/client/Client.js +30 -107
- package/api/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +3 -8
- package/api/resources/connections/client/requests/index.d.ts +0 -8
- 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/index.d.ts +1 -0
- package/api/resources/dag/index.js +17 -0
- package/api/resources/embeddingModels/client/Client.d.ts +4 -10
- package/api/resources/embeddingModels/client/Client.js +7 -21
- package/api/resources/embeddingModels/client/index.d.ts +1 -1
- package/api/resources/embeddingModels/client/index.js +0 -15
- 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/api/{types → 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/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 -2
- package/api/resources/index.js +11 -3
- package/api/resources/search/client/Client.d.ts +1 -2
- package/api/resources/search/client/Client.js +5 -7
- package/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +1 -3
- package/api/resources/sources/client/Client.d.ts +4 -10
- package/api/resources/sources/client/Client.js +7 -21
- package/api/resources/sources/client/index.d.ts +1 -1
- package/api/resources/sources/client/index.js +0 -15
- package/api/resources/sync/client/Client.d.ts +19 -59
- package/api/resources/sync/client/Client.js +43 -125
- package/api/resources/sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.d.ts +1 -4
- package/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +1 -4
- package/api/resources/sync/client/requests/ListSyncsSyncGetRequest.d.ts +1 -4
- package/api/resources/sync/client/requests/SyncCreate.d.ts +1 -12
- package/api/resources/sync/client/requests/SyncUpdate.d.ts +1 -11
- package/api/resources/sync/client/requests/index.d.ts +0 -5
- 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/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.d.ts +15 -40
- package/api/resources/whiteLabels/client/Client.js +28 -96
- package/api/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +0 -2
- package/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +1 -8
- package/api/resources/whiteLabels/client/requests/index.d.ts +0 -6
- 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/{SourceWithConfigFields.d.ts → SourceWithAuthenticationFields.d.ts} +2 -2
- package/api/types/index.d.ts +3 -11
- package/api/types/index.js +3 -11
- package/dist/Client.d.ts +15 -0
- package/dist/Client.js +37 -12
- package/dist/api/resources/apiKeys/client/Client.d.ts +78 -5
- package/dist/api/resources/apiKeys/client/Client.js +252 -10
- package/dist/api/{types → resources/apiKeys/client/requests}/ApiKeyCreate.d.ts +2 -1
- package/dist/api/resources/{sync/client/requests/GetSyncSyncSyncIdGetRequest.d.ts → apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.d.ts} +3 -3
- package/dist/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.d.ts +11 -0
- package/dist/api/resources/apiKeys/client/requests/index.d.ts +3 -1
- 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 +20 -48
- package/dist/api/resources/connections/client/Client.js +30 -107
- package/dist/api/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +3 -8
- package/dist/api/resources/connections/client/requests/index.d.ts +0 -8
- 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 +4 -10
- package/dist/api/resources/embeddingModels/client/Client.js +7 -21
- package/dist/api/resources/embeddingModels/client/index.d.ts +1 -1
- package/dist/api/resources/embeddingModels/client/index.js +0 -15
- 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/dist/api/{types → 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/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +12 -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/index.d.ts +1 -0
- package/dist/api/resources/entities/types/index.js +17 -0
- package/dist/api/resources/index.d.ts +10 -2
- package/dist/api/resources/index.js +11 -3
- package/dist/api/resources/search/client/Client.d.ts +1 -2
- package/dist/api/resources/search/client/Client.js +5 -7
- package/dist/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +1 -3
- package/dist/api/resources/sources/client/Client.d.ts +4 -10
- package/dist/api/resources/sources/client/Client.js +7 -21
- package/dist/api/resources/sources/client/index.d.ts +1 -1
- package/dist/api/resources/sources/client/index.js +0 -15
- package/dist/api/resources/sync/client/Client.d.ts +19 -59
- package/dist/api/resources/sync/client/Client.js +43 -125
- package/dist/api/resources/sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.d.ts +1 -4
- package/dist/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +1 -4
- package/dist/api/resources/sync/client/requests/ListSyncsSyncGetRequest.d.ts +1 -4
- package/dist/api/resources/sync/client/requests/SyncCreate.d.ts +1 -12
- package/dist/api/resources/sync/client/requests/SyncUpdate.d.ts +1 -11
- package/dist/api/resources/sync/client/requests/index.d.ts +0 -5
- 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/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.d.ts +15 -40
- package/dist/api/resources/whiteLabels/client/Client.js +28 -96
- package/dist/api/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +0 -2
- package/dist/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +1 -8
- package/dist/api/resources/whiteLabels/client/requests/index.d.ts +0 -6
- 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/{EmbeddingModelWithConfigFields.d.ts → EmbeddingModelWithAuthenticationFields.d.ts} +2 -2
- package/dist/api/types/{SourceWithConfigFields.d.ts → SourceWithAuthenticationFields.d.ts} +2 -2
- package/dist/api/types/index.d.ts +3 -11
- package/dist/api/types/index.js +3 -11
- package/dist/serialization/resources/apiKeys/client/index.d.ts +2 -0
- package/dist/serialization/resources/apiKeys/client/index.js +41 -0
- package/dist/serialization/resources/apiKeys/client/readApiKeys.d.ts +11 -0
- package/dist/serialization/resources/apiKeys/client/readApiKeys.js +42 -0
- package/dist/serialization/resources/apiKeys/client/requests/ApiKeyCreate.d.ts +12 -0
- package/dist/serialization/{types → resources/apiKeys/client/requests}/ApiKeyCreate.js +1 -1
- package/dist/serialization/resources/apiKeys/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/apiKeys/client/requests/index.js +5 -0
- package/dist/serialization/resources/apiKeys/index.d.ts +1 -0
- package/dist/serialization/resources/apiKeys/index.js +17 -0
- 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/{serialization/types → dist/serialization/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 +2 -2
- 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/dist/serialization/{types → 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/dist/serialization/{types → 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 +11 -0
- package/dist/serialization/resources/index.js +12 -1
- package/dist/serialization/resources/sync/client/requests/SyncCreate.d.ts +1 -1
- package/dist/serialization/resources/sync/client/requests/SyncUpdate.d.ts +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/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +1 -1
- package/dist/serialization/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +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/{serialization/types/DestinationWithConfigFields.js → dist/serialization/types/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/{SourceWithConfigFields.d.ts → SourceWithAuthenticationFields.d.ts} +3 -3
- package/dist/serialization/types/{SourceWithConfigFields.js → SourceWithAuthenticationFields.js} +3 -3
- package/dist/serialization/types/index.d.ts +3 -11
- package/dist/serialization/types/index.js +3 -11
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +1530 -612
- package/serialization/resources/apiKeys/client/index.d.ts +2 -0
- package/serialization/resources/apiKeys/client/index.js +41 -0
- package/serialization/resources/apiKeys/client/readApiKeys.d.ts +11 -0
- package/serialization/resources/apiKeys/client/readApiKeys.js +42 -0
- package/serialization/resources/apiKeys/client/requests/ApiKeyCreate.d.ts +12 -0
- package/serialization/{types → resources/apiKeys/client/requests}/ApiKeyCreate.js +1 -1
- package/serialization/resources/apiKeys/client/requests/index.d.ts +1 -0
- package/serialization/resources/apiKeys/client/requests/index.js +5 -0
- package/serialization/resources/apiKeys/index.d.ts +1 -0
- package/serialization/resources/apiKeys/index.js +17 -0
- 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/{dist/serialization/types → serialization/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 +2 -2
- 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/serialization/{types → 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/serialization/{types → 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 +11 -0
- package/serialization/resources/index.js +12 -1
- package/serialization/resources/sync/client/requests/SyncCreate.d.ts +1 -1
- package/serialization/resources/sync/client/requests/SyncUpdate.d.ts +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/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +1 -1
- package/serialization/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +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/{dist/serialization/types/DestinationWithConfigFields.js → serialization/types/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/{SourceWithConfigFields.d.ts → SourceWithAuthenticationFields.d.ts} +3 -3
- package/serialization/types/{SourceWithConfigFields.js → SourceWithAuthenticationFields.js} +3 -3
- package/serialization/types/index.d.ts +3 -11
- package/serialization/types/index.js +3 -11
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/apiKeys/client/requests/ReadApiKeyApiKeysIdGetRequest.d.ts +0 -12
- package/api/resources/connections/client/requests/DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest.d.ts +0 -12
- package/api/resources/connections/client/requests/DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest.d.ts +0 -12
- package/api/resources/connections/client/requests/GetConnectionConnectionsDetailConnectionIdGetRequest.d.ts +0 -12
- package/api/resources/connections/client/requests/GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest.d.ts +0 -12
- package/api/resources/connections/client/requests/GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest.d.ts +0 -12
- package/api/resources/connections/client/requests/ListAllConnectedIntegrationsConnectionsListGetRequest.d.ts +0 -12
- package/api/resources/connections/client/requests/ListConnectedIntegrationsConnectionsListIntegrationTypeGetRequest.d.ts +0 -12
- package/api/resources/connections/client/requests/SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest.d.ts +0 -14
- package/api/resources/embeddingModels/client/requests/ReadEmbeddingModelEmbeddingModelsDetailShortNameGetRequest.d.ts +0 -12
- package/api/resources/embeddingModels/client/requests/ReadEmbeddingModelsEmbeddingModelsListGetRequest.d.ts +0 -12
- package/api/resources/embeddingModels/client/requests/index.d.ts +0 -2
- package/api/resources/sources/client/requests/ReadSourceSourcesDetailShortNameGetRequest.d.ts +0 -12
- package/api/resources/sources/client/requests/ReadSourcesSourcesListGetRequest.d.ts +0 -12
- package/api/resources/sources/client/requests/index.d.ts +0 -2
- package/api/resources/sync/client/requests/GetSyncDagSyncSyncIdDagGetRequest.d.ts +0 -12
- package/api/resources/sync/client/requests/GetSyncJobSyncSyncIdJobJobIdGetRequest.d.ts +0 -12
- package/api/resources/sync/client/requests/GetSyncJobSyncSyncIdJobJobIdGetRequest.js +0 -5
- package/api/resources/sync/client/requests/GetSyncSyncSyncIdGetRequest.js +0 -5
- package/api/resources/sync/client/requests/ListSyncJobsSyncSyncIdJobsGetRequest.d.ts +0 -12
- package/api/resources/sync/client/requests/ListSyncJobsSyncSyncIdJobsGetRequest.js +0 -5
- package/api/resources/sync/client/requests/RunSyncSyncSyncIdRunPostRequest.d.ts +0 -12
- package/api/resources/sync/client/requests/RunSyncSyncSyncIdRunPostRequest.js +0 -5
- package/api/resources/whiteLabels/client/requests/DeleteWhiteLabelWhiteLabelsWhiteLabelIdDeleteRequest.d.ts +0 -12
- package/api/resources/whiteLabels/client/requests/DeleteWhiteLabelWhiteLabelsWhiteLabelIdDeleteRequest.js +0 -5
- package/api/resources/whiteLabels/client/requests/ExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePostRequest.d.ts +0 -14
- package/api/resources/whiteLabels/client/requests/ExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePostRequest.js +0 -5
- package/api/resources/whiteLabels/client/requests/GetWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlGetRequest.d.ts +0 -12
- package/api/resources/whiteLabels/client/requests/GetWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlGetRequest.js +0 -5
- package/api/resources/whiteLabels/client/requests/GetWhiteLabelWhiteLabelsWhiteLabelIdGetRequest.d.ts +0 -12
- package/api/resources/whiteLabels/client/requests/GetWhiteLabelWhiteLabelsWhiteLabelIdGetRequest.js +0 -5
- package/api/resources/whiteLabels/client/requests/ListWhiteLabelSyncsWhiteLabelsWhiteLabelIdSyncsGetRequest.d.ts +0 -12
- package/api/resources/whiteLabels/client/requests/ListWhiteLabelSyncsWhiteLabelsWhiteLabelIdSyncsGetRequest.js +0 -5
- package/api/resources/whiteLabels/client/requests/ListWhiteLabelsWhiteLabelsListGetRequest.d.ts +0 -12
- package/api/resources/whiteLabels/client/requests/ListWhiteLabelsWhiteLabelsListGetRequest.js +0 -5
- package/api/types/DestinationWithConfigFields.js +0 -5
- package/api/types/EmbeddingModelWithConfigFields.js +0 -5
- package/api/types/SourceWithConfigFields.js +0 -5
- package/api/types/SyncDagCreate.d.ts +0 -14
- package/dist/api/resources/apiKeys/client/requests/ReadApiKeyApiKeysIdGetRequest.d.ts +0 -12
- package/dist/api/resources/apiKeys/client/requests/ReadApiKeyApiKeysIdGetRequest.js +0 -5
- package/dist/api/resources/connections/client/requests/DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest.d.ts +0 -12
- package/dist/api/resources/connections/client/requests/DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest.js +0 -5
- package/dist/api/resources/connections/client/requests/DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest.d.ts +0 -12
- package/dist/api/resources/connections/client/requests/DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest.js +0 -5
- package/dist/api/resources/connections/client/requests/GetConnectionConnectionsDetailConnectionIdGetRequest.d.ts +0 -12
- package/dist/api/resources/connections/client/requests/GetConnectionConnectionsDetailConnectionIdGetRequest.js +0 -5
- package/dist/api/resources/connections/client/requests/GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest.d.ts +0 -12
- package/dist/api/resources/connections/client/requests/GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest.js +0 -5
- package/dist/api/resources/connections/client/requests/GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest.d.ts +0 -12
- package/dist/api/resources/connections/client/requests/GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest.js +0 -5
- package/dist/api/resources/connections/client/requests/ListAllConnectedIntegrationsConnectionsListGetRequest.d.ts +0 -12
- package/dist/api/resources/connections/client/requests/ListAllConnectedIntegrationsConnectionsListGetRequest.js +0 -5
- package/dist/api/resources/connections/client/requests/ListConnectedIntegrationsConnectionsListIntegrationTypeGetRequest.d.ts +0 -12
- package/dist/api/resources/connections/client/requests/ListConnectedIntegrationsConnectionsListIntegrationTypeGetRequest.js +0 -5
- package/dist/api/resources/connections/client/requests/SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest.d.ts +0 -14
- package/dist/api/resources/connections/client/requests/SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest.js +0 -5
- package/dist/api/resources/embeddingModels/client/requests/ReadEmbeddingModelEmbeddingModelsDetailShortNameGetRequest.d.ts +0 -12
- package/dist/api/resources/embeddingModels/client/requests/ReadEmbeddingModelEmbeddingModelsDetailShortNameGetRequest.js +0 -5
- package/dist/api/resources/embeddingModels/client/requests/ReadEmbeddingModelsEmbeddingModelsListGetRequest.d.ts +0 -12
- package/dist/api/resources/embeddingModels/client/requests/ReadEmbeddingModelsEmbeddingModelsListGetRequest.js +0 -5
- package/dist/api/resources/embeddingModels/client/requests/index.d.ts +0 -2
- package/dist/api/resources/sources/client/requests/ReadSourceSourcesDetailShortNameGetRequest.d.ts +0 -12
- package/dist/api/resources/sources/client/requests/ReadSourceSourcesDetailShortNameGetRequest.js +0 -5
- package/dist/api/resources/sources/client/requests/ReadSourcesSourcesListGetRequest.d.ts +0 -12
- package/dist/api/resources/sources/client/requests/ReadSourcesSourcesListGetRequest.js +0 -5
- package/dist/api/resources/sources/client/requests/index.d.ts +0 -2
- package/dist/api/resources/sync/client/requests/GetSyncDagSyncSyncIdDagGetRequest.d.ts +0 -12
- package/dist/api/resources/sync/client/requests/GetSyncDagSyncSyncIdDagGetRequest.js +0 -5
- package/dist/api/resources/sync/client/requests/GetSyncJobSyncSyncIdJobJobIdGetRequest.d.ts +0 -12
- package/dist/api/resources/sync/client/requests/GetSyncJobSyncSyncIdJobJobIdGetRequest.js +0 -5
- package/dist/api/resources/sync/client/requests/GetSyncSyncSyncIdGetRequest.js +0 -5
- package/dist/api/resources/sync/client/requests/ListSyncJobsSyncSyncIdJobsGetRequest.d.ts +0 -12
- package/dist/api/resources/sync/client/requests/ListSyncJobsSyncSyncIdJobsGetRequest.js +0 -5
- package/dist/api/resources/sync/client/requests/RunSyncSyncSyncIdRunPostRequest.d.ts +0 -12
- package/dist/api/resources/sync/client/requests/RunSyncSyncSyncIdRunPostRequest.js +0 -5
- package/dist/api/resources/whiteLabels/client/requests/DeleteWhiteLabelWhiteLabelsWhiteLabelIdDeleteRequest.d.ts +0 -12
- package/dist/api/resources/whiteLabels/client/requests/DeleteWhiteLabelWhiteLabelsWhiteLabelIdDeleteRequest.js +0 -5
- package/dist/api/resources/whiteLabels/client/requests/ExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePostRequest.d.ts +0 -14
- package/dist/api/resources/whiteLabels/client/requests/ExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePostRequest.js +0 -5
- package/dist/api/resources/whiteLabels/client/requests/GetWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlGetRequest.d.ts +0 -12
- package/dist/api/resources/whiteLabels/client/requests/GetWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlGetRequest.js +0 -5
- package/dist/api/resources/whiteLabels/client/requests/GetWhiteLabelWhiteLabelsWhiteLabelIdGetRequest.d.ts +0 -12
- package/dist/api/resources/whiteLabels/client/requests/GetWhiteLabelWhiteLabelsWhiteLabelIdGetRequest.js +0 -5
- package/dist/api/resources/whiteLabels/client/requests/ListWhiteLabelSyncsWhiteLabelsWhiteLabelIdSyncsGetRequest.d.ts +0 -12
- package/dist/api/resources/whiteLabels/client/requests/ListWhiteLabelSyncsWhiteLabelsWhiteLabelIdSyncsGetRequest.js +0 -5
- package/dist/api/resources/whiteLabels/client/requests/ListWhiteLabelsWhiteLabelsListGetRequest.d.ts +0 -12
- package/dist/api/resources/whiteLabels/client/requests/ListWhiteLabelsWhiteLabelsListGetRequest.js +0 -5
- package/dist/api/types/DestinationWithConfigFields.js +0 -5
- package/dist/api/types/EmbeddingModelWithConfigFields.js +0 -5
- package/dist/api/types/SourceWithConfigFields.js +0 -5
- package/dist/api/types/SyncDagCreate.d.ts +0 -14
- package/dist/serialization/types/ApiKeyCreate.d.ts +0 -12
- 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/ApiKeyCreate.d.ts +0 -12
- 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/apiKeys/client/requests}/ApiKeyCreate.js +0 -0
- /package/api/resources/apiKeys/client/requests/{ReadApiKeyApiKeysIdGetRequest.js → DeleteApiKeyApiKeysDeleteRequest.js} +0 -0
- /package/api/resources/{connections/client/requests/DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest.js → apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.js} +0 -0
- /package/api/{types → resources/chat/client/requests}/ChatCreate.js +0 -0
- /package/api/resources/{connections/client/requests/DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest.js → chat/client/requests/ListChatsChatGetRequest.js} +0 -0
- /package/api/resources/{embeddingModels → chat}/client/requests/index.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/resources/{sources → dag}/client/requests/index.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/resources/{connections/client/requests/GetConnectionConnectionsDetailConnectionIdGetRequest.js → entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.js} +0 -0
- /package/{dist/api/resources/embeddingModels → api/resources/entities}/client/requests/index.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/{dist/api/resources/sources → api/resources/transformers}/client/requests/index.js +0 -0
- /package/api/{resources/connections/client/requests/GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest.js → types/DestinationWithAuthenticationFields.js} +0 -0
- /package/api/{resources/connections/client/requests/GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest.js → types/EmbeddingModelWithAuthenticationFields.js} +0 -0
- /package/api/{resources/connections/client/requests/ListAllConnectedIntegrationsConnectionsListGetRequest.js → types/SourceWithAuthenticationFields.js} +0 -0
- /package/dist/api/{types → resources/apiKeys/client/requests}/ApiKeyCreate.js +0 -0
- /package/{api/resources/connections/client/requests/ListConnectedIntegrationsConnectionsListIntegrationTypeGetRequest.js → dist/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.js} +0 -0
- /package/{api/resources/connections/client/requests/SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest.js → dist/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.js} +0 -0
- /package/dist/api/{types → resources/chat/client/requests}/ChatCreate.js +0 -0
- /package/{api/resources/embeddingModels/client/requests/ReadEmbeddingModelEmbeddingModelsDetailShortNameGetRequest.js → dist/api/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 → resources/entities/client/requests}/EntityDefinitionCreate.js +0 -0
- /package/dist/api/{types → resources/entities/client/requests}/EntityRelationCreate.js +0 -0
- /package/{api/resources/embeddingModels/client/requests/ReadEmbeddingModelsEmbeddingModelsListGetRequest.js → dist/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.js} +0 -0
- /package/dist/api/{types → resources/entities/types}/EntityDefinitionCreateEntitySchema.d.ts +0 -0
- /package/dist/api/{types → resources/entities/types}/EntityDefinitionCreateEntitySchema.js +0 -0
- /package/dist/api/{types → resources/transformers/client/requests}/TransformerCreate.js +0 -0
- /package/{api/resources/sources/client/requests/ReadSourceSourcesDetailShortNameGetRequest.js → dist/api/types/DestinationWithAuthenticationFields.js} +0 -0
- /package/{api/resources/sources/client/requests/ReadSourcesSourcesListGetRequest.js → dist/api/types/EmbeddingModelWithAuthenticationFields.js} +0 -0
- /package/{api/resources/sync/client/requests/GetSyncDagSyncSyncIdDagGetRequest.js → dist/api/types/SourceWithAuthenticationFields.js} +0 -0
|
@@ -44,17 +44,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
44
44
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
48
|
-
var t = {};
|
|
49
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
-
t[p] = s[p];
|
|
51
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
54
|
-
t[p[i]] = s[p[i]];
|
|
55
|
-
}
|
|
56
|
-
return t;
|
|
57
|
-
};
|
|
58
47
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
59
48
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
60
49
|
};
|
|
@@ -84,30 +73,23 @@ class Connections {
|
|
|
84
73
|
* schemas.Connection: The connection.
|
|
85
74
|
*
|
|
86
75
|
* @param {string} connectionId
|
|
87
|
-
* @param {AirweaveSDK.GetConnectionConnectionsDetailConnectionIdGetRequest} request
|
|
88
76
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
89
77
|
*
|
|
90
78
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
91
79
|
*
|
|
92
80
|
* @example
|
|
93
|
-
* await client.connections.getConnection("connection_id"
|
|
94
|
-
* creds: "creds"
|
|
95
|
-
* })
|
|
81
|
+
* await client.connections.getConnection("connection_id")
|
|
96
82
|
*/
|
|
97
|
-
getConnection(connectionId,
|
|
83
|
+
getConnection(connectionId, requestOptions) {
|
|
98
84
|
return __awaiter(this, void 0, void 0, function* () {
|
|
99
85
|
var _a;
|
|
100
|
-
const { creds } = request;
|
|
101
|
-
const _queryParams = {};
|
|
102
|
-
_queryParams["creds"] = creds;
|
|
103
86
|
const _response = yield core.fetcher({
|
|
104
87
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `connections/detail/${encodeURIComponent(connectionId)}`),
|
|
105
88
|
method: "GET",
|
|
106
89
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
107
90
|
? yield core.Supplier.get(this._options.apiKey)
|
|
108
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.
|
|
91
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.24", "User-Agent": "@airweave/sdk/v0.2.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
109
92
|
contentType: "application/json",
|
|
110
|
-
queryParameters: _queryParams,
|
|
111
93
|
requestType: "json",
|
|
112
94
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
113
95
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -164,30 +146,23 @@ class Connections {
|
|
|
164
146
|
* -------
|
|
165
147
|
* list[schemas.Connection]: The list of connections.
|
|
166
148
|
*
|
|
167
|
-
* @param {AirweaveSDK.ListAllConnectedIntegrationsConnectionsListGetRequest} request
|
|
168
149
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
169
150
|
*
|
|
170
151
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
171
152
|
*
|
|
172
153
|
* @example
|
|
173
|
-
* await client.connections.listAllConnectedIntegrations(
|
|
174
|
-
* creds: "creds"
|
|
175
|
-
* })
|
|
154
|
+
* await client.connections.listAllConnectedIntegrations()
|
|
176
155
|
*/
|
|
177
|
-
listAllConnectedIntegrations(
|
|
156
|
+
listAllConnectedIntegrations(requestOptions) {
|
|
178
157
|
return __awaiter(this, void 0, void 0, function* () {
|
|
179
158
|
var _a;
|
|
180
|
-
const { creds } = request;
|
|
181
|
-
const _queryParams = {};
|
|
182
|
-
_queryParams["creds"] = creds;
|
|
183
159
|
const _response = yield core.fetcher({
|
|
184
160
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "connections/list"),
|
|
185
161
|
method: "GET",
|
|
186
162
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
187
163
|
? yield core.Supplier.get(this._options.apiKey)
|
|
188
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.
|
|
164
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.24", "User-Agent": "@airweave/sdk/v0.2.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
189
165
|
contentType: "application/json",
|
|
190
|
-
queryParameters: _queryParams,
|
|
191
166
|
requestType: "json",
|
|
192
167
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
193
168
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -246,30 +221,23 @@ class Connections {
|
|
|
246
221
|
* list[schemas.Connection]: The list of connections.
|
|
247
222
|
*
|
|
248
223
|
* @param {AirweaveSDK.IntegrationType} integrationType
|
|
249
|
-
* @param {AirweaveSDK.ListConnectedIntegrationsConnectionsListIntegrationTypeGetRequest} request
|
|
250
224
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
251
225
|
*
|
|
252
226
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
253
227
|
*
|
|
254
228
|
* @example
|
|
255
|
-
* await client.connections.listConnectedIntegrations("source"
|
|
256
|
-
* creds: "creds"
|
|
257
|
-
* })
|
|
229
|
+
* await client.connections.listConnectedIntegrations("source")
|
|
258
230
|
*/
|
|
259
|
-
listConnectedIntegrations(integrationType,
|
|
231
|
+
listConnectedIntegrations(integrationType, requestOptions) {
|
|
260
232
|
return __awaiter(this, void 0, void 0, function* () {
|
|
261
233
|
var _a;
|
|
262
|
-
const { creds } = request;
|
|
263
|
-
const _queryParams = {};
|
|
264
|
-
_queryParams["creds"] = creds;
|
|
265
234
|
const _response = yield core.fetcher({
|
|
266
235
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `connections/list/${encodeURIComponent(serializers.IntegrationType.jsonOrThrow(integrationType))}`),
|
|
267
236
|
method: "GET",
|
|
268
237
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
269
238
|
? yield core.Supplier.get(this._options.apiKey)
|
|
270
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.
|
|
239
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.24", "User-Agent": "@airweave/sdk/v0.2.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
271
240
|
contentType: "application/json",
|
|
272
|
-
queryParameters: _queryParams,
|
|
273
241
|
requestType: "json",
|
|
274
242
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
275
243
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -331,7 +299,7 @@ class Connections {
|
|
|
331
299
|
* integration_type: The type of integration to connect to.
|
|
332
300
|
* short_name: The short name of the integration to connect to.
|
|
333
301
|
* name: The name of the connection.
|
|
334
|
-
*
|
|
302
|
+
* auth_fields: The config fields for the integration.
|
|
335
303
|
* user: The current user.
|
|
336
304
|
*
|
|
337
305
|
* Returns:
|
|
@@ -347,33 +315,23 @@ class Connections {
|
|
|
347
315
|
*
|
|
348
316
|
* @example
|
|
349
317
|
* await client.connections.connectIntegration("source", "short_name", {
|
|
350
|
-
*
|
|
351
|
-
*
|
|
352
|
-
* configFields: {
|
|
353
|
-
* "config_fields": {
|
|
354
|
-
* "key": "value"
|
|
355
|
-
* }
|
|
318
|
+
* authFields: {
|
|
319
|
+
* "key": "value"
|
|
356
320
|
* }
|
|
357
321
|
* })
|
|
358
322
|
*/
|
|
359
323
|
connectIntegration(integrationType, shortName, request, requestOptions) {
|
|
360
324
|
return __awaiter(this, void 0, void 0, function* () {
|
|
361
325
|
var _a;
|
|
362
|
-
const { creds } = request, _body = __rest(request, ["creds"]);
|
|
363
|
-
const _queryParams = {};
|
|
364
|
-
_queryParams["creds"] = creds;
|
|
365
326
|
const _response = yield core.fetcher({
|
|
366
327
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `connections/connect/${encodeURIComponent(serializers.IntegrationType.jsonOrThrow(integrationType))}/${encodeURIComponent(shortName)}`),
|
|
367
328
|
method: "POST",
|
|
368
329
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
369
330
|
? yield core.Supplier.get(this._options.apiKey)
|
|
370
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.
|
|
331
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.24", "User-Agent": "@airweave/sdk/v0.2.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
371
332
|
contentType: "application/json",
|
|
372
|
-
queryParameters: _queryParams,
|
|
373
333
|
requestType: "json",
|
|
374
|
-
body: serializers.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.jsonOrThrow(
|
|
375
|
-
unrecognizedObjectKeys: "strip",
|
|
376
|
-
}),
|
|
334
|
+
body: serializers.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
377
335
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
378
336
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
379
337
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -431,30 +389,23 @@ class Connections {
|
|
|
431
389
|
* decrypted_credentials (dict): The credentials for the connection
|
|
432
390
|
*
|
|
433
391
|
* @param {string} connectionId
|
|
434
|
-
* @param {AirweaveSDK.GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest} request
|
|
435
392
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
436
393
|
*
|
|
437
394
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
438
395
|
*
|
|
439
396
|
* @example
|
|
440
|
-
* await client.connections.getConnectionCredentials("connection_id"
|
|
441
|
-
* creds: "creds"
|
|
442
|
-
* })
|
|
397
|
+
* await client.connections.getConnectionCredentials("connection_id")
|
|
443
398
|
*/
|
|
444
|
-
getConnectionCredentials(connectionId,
|
|
399
|
+
getConnectionCredentials(connectionId, requestOptions) {
|
|
445
400
|
return __awaiter(this, void 0, void 0, function* () {
|
|
446
401
|
var _a;
|
|
447
|
-
const { creds } = request;
|
|
448
|
-
const _queryParams = {};
|
|
449
|
-
_queryParams["creds"] = creds;
|
|
450
402
|
const _response = yield core.fetcher({
|
|
451
403
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `connections/credentials/${encodeURIComponent(connectionId)}`),
|
|
452
404
|
method: "GET",
|
|
453
405
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
454
406
|
? yield core.Supplier.get(this._options.apiKey)
|
|
455
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.
|
|
407
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.24", "User-Agent": "@airweave/sdk/v0.2.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
456
408
|
contentType: "application/json",
|
|
457
|
-
queryParameters: _queryParams,
|
|
458
409
|
requestType: "json",
|
|
459
410
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
460
411
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -515,30 +466,23 @@ class Connections {
|
|
|
515
466
|
* connection (schemas.Connection): The deleted connection
|
|
516
467
|
*
|
|
517
468
|
* @param {string} connectionId
|
|
518
|
-
* @param {AirweaveSDK.DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest} request
|
|
519
469
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
520
470
|
*
|
|
521
471
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
522
472
|
*
|
|
523
473
|
* @example
|
|
524
|
-
* await client.connections.deleteConnection("connection_id"
|
|
525
|
-
* creds: "creds"
|
|
526
|
-
* })
|
|
474
|
+
* await client.connections.deleteConnection("connection_id")
|
|
527
475
|
*/
|
|
528
|
-
deleteConnection(connectionId,
|
|
476
|
+
deleteConnection(connectionId, requestOptions) {
|
|
529
477
|
return __awaiter(this, void 0, void 0, function* () {
|
|
530
478
|
var _a;
|
|
531
|
-
const { creds } = request;
|
|
532
|
-
const _queryParams = {};
|
|
533
|
-
_queryParams["creds"] = creds;
|
|
534
479
|
const _response = yield core.fetcher({
|
|
535
480
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `connections/delete/source/${encodeURIComponent(connectionId)}`),
|
|
536
481
|
method: "DELETE",
|
|
537
482
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
538
483
|
? yield core.Supplier.get(this._options.apiKey)
|
|
539
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.
|
|
484
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.24", "User-Agent": "@airweave/sdk/v0.2.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
540
485
|
contentType: "application/json",
|
|
541
|
-
queryParameters: _queryParams,
|
|
542
486
|
requestType: "json",
|
|
543
487
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
544
488
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -597,30 +541,23 @@ class Connections {
|
|
|
597
541
|
* connection (schemas.Connection): The disconnected connection
|
|
598
542
|
*
|
|
599
543
|
* @param {string} connectionId
|
|
600
|
-
* @param {AirweaveSDK.DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest} request
|
|
601
544
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
602
545
|
*
|
|
603
546
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
604
547
|
*
|
|
605
548
|
* @example
|
|
606
|
-
* await client.connections.disconnectSourceConnection("connection_id"
|
|
607
|
-
* creds: "creds"
|
|
608
|
-
* })
|
|
549
|
+
* await client.connections.disconnectSourceConnection("connection_id")
|
|
609
550
|
*/
|
|
610
|
-
disconnectSourceConnection(connectionId,
|
|
551
|
+
disconnectSourceConnection(connectionId, requestOptions) {
|
|
611
552
|
return __awaiter(this, void 0, void 0, function* () {
|
|
612
553
|
var _a;
|
|
613
|
-
const { creds } = request;
|
|
614
|
-
const _queryParams = {};
|
|
615
|
-
_queryParams["creds"] = creds;
|
|
616
554
|
const _response = yield core.fetcher({
|
|
617
555
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `connections/disconnect/source/${encodeURIComponent(connectionId)}`),
|
|
618
556
|
method: "PUT",
|
|
619
557
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
620
558
|
? yield core.Supplier.get(this._options.apiKey)
|
|
621
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.
|
|
559
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.24", "User-Agent": "@airweave/sdk/v0.2.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
622
560
|
contentType: "application/json",
|
|
623
|
-
queryParameters: _queryParams,
|
|
624
561
|
requestType: "json",
|
|
625
562
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
626
563
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -681,33 +618,26 @@ class Connections {
|
|
|
681
618
|
* connection (schemas.Connection): The created connection
|
|
682
619
|
*
|
|
683
620
|
* @param {string} whiteLabelId
|
|
684
|
-
* @param {
|
|
621
|
+
* @param {string} request
|
|
685
622
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
686
623
|
*
|
|
687
624
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
688
625
|
*
|
|
689
626
|
* @example
|
|
690
|
-
* await client.connections.sendOauth2WhiteLabelCode("white_label_id",
|
|
691
|
-
* creds: "creds",
|
|
692
|
-
* body: "string"
|
|
693
|
-
* })
|
|
627
|
+
* await client.connections.sendOauth2WhiteLabelCode("white_label_id", "string")
|
|
694
628
|
*/
|
|
695
629
|
sendOauth2WhiteLabelCode(whiteLabelId, request, requestOptions) {
|
|
696
630
|
return __awaiter(this, void 0, void 0, function* () {
|
|
697
631
|
var _a;
|
|
698
|
-
const { creds, body: _body } = request;
|
|
699
|
-
const _queryParams = {};
|
|
700
|
-
_queryParams["creds"] = creds;
|
|
701
632
|
const _response = yield core.fetcher({
|
|
702
633
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `connections/oauth2/white-label/${encodeURIComponent(whiteLabelId)}/code`),
|
|
703
634
|
method: "POST",
|
|
704
635
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
705
636
|
? yield core.Supplier.get(this._options.apiKey)
|
|
706
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.
|
|
637
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.24", "User-Agent": "@airweave/sdk/v0.2.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
707
638
|
contentType: "application/json",
|
|
708
|
-
queryParameters: _queryParams,
|
|
709
639
|
requestType: "json",
|
|
710
|
-
body: serializers.connections.sendOauth2WhiteLabelCode.Request.jsonOrThrow(
|
|
640
|
+
body: serializers.connections.sendOauth2WhiteLabelCode.Request.jsonOrThrow(request, {
|
|
711
641
|
unrecognizedObjectKeys: "strip",
|
|
712
642
|
}),
|
|
713
643
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -767,30 +697,23 @@ class Connections {
|
|
|
767
697
|
* str: The OAuth2 authorization URL
|
|
768
698
|
*
|
|
769
699
|
* @param {string} whiteLabelId
|
|
770
|
-
* @param {AirweaveSDK.GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest} request
|
|
771
700
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
772
701
|
*
|
|
773
702
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
774
703
|
*
|
|
775
704
|
* @example
|
|
776
|
-
* await client.connections.getOauth2WhiteLabelAuthUrl("white_label_id"
|
|
777
|
-
* creds: "creds"
|
|
778
|
-
* })
|
|
705
|
+
* await client.connections.getOauth2WhiteLabelAuthUrl("white_label_id")
|
|
779
706
|
*/
|
|
780
|
-
getOauth2WhiteLabelAuthUrl(whiteLabelId,
|
|
707
|
+
getOauth2WhiteLabelAuthUrl(whiteLabelId, requestOptions) {
|
|
781
708
|
return __awaiter(this, void 0, void 0, function* () {
|
|
782
709
|
var _a;
|
|
783
|
-
const { creds } = request;
|
|
784
|
-
const _queryParams = {};
|
|
785
|
-
_queryParams["creds"] = creds;
|
|
786
710
|
const _response = yield core.fetcher({
|
|
787
711
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `connections/oauth2/white-label/${encodeURIComponent(whiteLabelId)}/auth_url`),
|
|
788
712
|
method: "GET",
|
|
789
713
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
790
714
|
? yield core.Supplier.get(this._options.apiKey)
|
|
791
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.
|
|
715
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.24", "User-Agent": "@airweave/sdk/v0.2.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
792
716
|
contentType: "application/json",
|
|
793
|
-
queryParameters: _queryParams,
|
|
794
717
|
requestType: "json",
|
|
795
718
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
796
719
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -4,17 +4,12 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* configFields: {
|
|
10
|
-
* "config_fields": {
|
|
11
|
-
* "key": "value"
|
|
12
|
-
* }
|
|
7
|
+
* authFields: {
|
|
8
|
+
* "key": "value"
|
|
13
9
|
* }
|
|
14
10
|
* }
|
|
15
11
|
*/
|
|
16
12
|
export interface BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost {
|
|
17
|
-
creds: string;
|
|
18
13
|
name?: string;
|
|
19
|
-
|
|
14
|
+
authFields: Record<string, unknown>;
|
|
20
15
|
}
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
export { type GetConnectionConnectionsDetailConnectionIdGetRequest } from "./GetConnectionConnectionsDetailConnectionIdGetRequest";
|
|
2
|
-
export { type ListAllConnectedIntegrationsConnectionsListGetRequest } from "./ListAllConnectedIntegrationsConnectionsListGetRequest";
|
|
3
|
-
export { type ListConnectedIntegrationsConnectionsListIntegrationTypeGetRequest } from "./ListConnectedIntegrationsConnectionsListIntegrationTypeGetRequest";
|
|
4
1
|
export { type BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost } from "./BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost";
|
|
5
|
-
export { type GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest } from "./GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest";
|
|
6
|
-
export { type DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest } from "./DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest";
|
|
7
|
-
export { type DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest } from "./DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest";
|
|
8
|
-
export { type SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest } from "./SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest";
|
|
9
|
-
export { type GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest } from "./GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest";
|
|
@@ -0,0 +1,81 @@
|
|
|
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 Dag {
|
|
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 Dag {
|
|
27
|
+
protected readonly _options: Dag.Options;
|
|
28
|
+
constructor(_options?: Dag.Options);
|
|
29
|
+
/**
|
|
30
|
+
* Get the DAG definition for a sync.
|
|
31
|
+
*
|
|
32
|
+
* @param {string} syncId
|
|
33
|
+
* @param {Dag.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
|
+
*
|
|
35
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* await client.dag.getSyncDag("sync_id")
|
|
39
|
+
*/
|
|
40
|
+
getSyncDag(syncId: string, requestOptions?: Dag.RequestOptions): Promise<AirweaveSDK.SyncDag>;
|
|
41
|
+
/**
|
|
42
|
+
* Create a new DAG definition for a sync.
|
|
43
|
+
*
|
|
44
|
+
* @param {string} syncId
|
|
45
|
+
* @param {AirweaveSDK.SyncDagCreate} request
|
|
46
|
+
* @param {Dag.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* await client.dag.createSyncDag("sync_id", {
|
|
52
|
+
* name: "name",
|
|
53
|
+
* syncDagCreateSyncId: "sync_id",
|
|
54
|
+
* nodes: [{
|
|
55
|
+
* type: "source",
|
|
56
|
+
* name: "name"
|
|
57
|
+
* }],
|
|
58
|
+
* edges: [{
|
|
59
|
+
* fromNodeId: "from_node_id",
|
|
60
|
+
* toNodeId: "to_node_id"
|
|
61
|
+
* }]
|
|
62
|
+
* })
|
|
63
|
+
*/
|
|
64
|
+
createSyncDag(syncId: string, request: AirweaveSDK.SyncDagCreate, requestOptions?: Dag.RequestOptions): Promise<AirweaveSDK.SyncDag>;
|
|
65
|
+
/**
|
|
66
|
+
* Update a DAG definition for a sync.
|
|
67
|
+
*
|
|
68
|
+
* @param {string} syncId
|
|
69
|
+
* @param {AirweaveSDK.SyncDagUpdate} request
|
|
70
|
+
* @param {Dag.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* await client.dag.updateSyncDag("sync_id", {
|
|
76
|
+
* name: "name",
|
|
77
|
+
* syncDagUpdateSyncId: "sync_id"
|
|
78
|
+
* })
|
|
79
|
+
*/
|
|
80
|
+
updateSyncDag(syncId: string, request: AirweaveSDK.SyncDagUpdate, requestOptions?: Dag.RequestOptions): Promise<AirweaveSDK.SyncDag>;
|
|
81
|
+
}
|