@airweave/sdk 0.2.27 → 0.2.53
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 +1 -8
- package/Client.js +3 -13
- package/README.md +1 -1
- package/api/index.d.ts +1 -1
- package/api/index.js +1 -1
- package/api/resources/collections/client/Client.d.ts +26 -3
- package/api/resources/collections/client/Client.js +96 -16
- package/api/resources/collections/client/requests/SearchCollectionCollectionsReadableIdSearchGetRequest.d.ts +20 -0
- package/api/resources/collections/client/requests/index.d.ts +1 -0
- package/api/resources/index.d.ts +2 -4
- package/api/resources/index.js +3 -5
- package/api/resources/sourceConnections/client/Client.d.ts +4 -4
- package/api/resources/sourceConnections/client/Client.js +22 -22
- package/api/resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.d.ts +10 -0
- package/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +2 -1
- package/api/resources/sourceConnections/client/requests/index.d.ts +1 -0
- package/api/resources/sourceConnections/index.d.ts +1 -0
- package/api/resources/sourceConnections/index.js +1 -0
- package/api/resources/sourceConnections/types/SourceConnectionUpdateAuthFields.d.ts +5 -0
- package/api/resources/sourceConnections/types/index.d.ts +1 -0
- package/api/resources/{connections → sourceConnections/types}/index.js +1 -1
- package/api/resources/sources/client/Client.d.ts +9 -14
- package/api/resources/sources/client/Client.js +13 -21
- package/api/types/AuthType.d.ts +2 -3
- package/api/types/AuthType.js +1 -1
- package/api/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.d.ts +9 -0
- package/api/types/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.d.ts +8 -0
- package/api/types/IntegrationCredentialInDb.d.ts +18 -0
- package/api/types/IntegrationCredentialRawCreate.d.ts +19 -0
- package/api/types/OAuth2AuthUrl.d.ts +13 -0
- package/api/types/Source.d.ts +4 -1
- package/api/types/SourceConnection.d.ts +2 -0
- package/api/types/SourceConnectionCreate.d.ts +2 -0
- package/api/types/SourceConnectionListItem.d.ts +1 -0
- package/api/types/Sync.d.ts +0 -2
- package/api/types/SyncCreate.d.ts +0 -2
- package/api/types/SyncJob.d.ts +1 -0
- package/api/types/SyncUpdate.d.ts +0 -2
- package/api/types/SyncWithSourceConnection.d.ts +0 -2
- package/api/types/WhiteLabel.d.ts +1 -0
- package/api/{resources/whiteLabels/client/requests → types}/WhiteLabelCreate.d.ts +2 -8
- package/api/{resources/whiteLabels/client/requests → types}/WhiteLabelUpdate.d.ts +2 -2
- package/api/types/index.d.ts +7 -4
- package/api/types/index.js +7 -4
- package/core/index.d.ts +0 -1
- package/core/index.js +0 -1
- package/dist/Client.d.ts +1 -8
- package/dist/Client.js +3 -13
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/resources/collections/client/Client.d.ts +26 -3
- package/dist/api/resources/collections/client/Client.js +96 -16
- package/dist/api/resources/collections/client/requests/SearchCollectionCollectionsReadableIdSearchGetRequest.d.ts +20 -0
- package/dist/api/resources/collections/client/requests/index.d.ts +1 -0
- package/dist/api/resources/index.d.ts +2 -4
- package/dist/api/resources/index.js +3 -5
- package/dist/api/resources/sourceConnections/client/Client.d.ts +4 -4
- package/dist/api/resources/sourceConnections/client/Client.js +22 -22
- package/dist/api/resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.d.ts +10 -0
- package/dist/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +2 -1
- package/dist/api/resources/sourceConnections/client/requests/index.d.ts +1 -0
- package/dist/api/resources/sourceConnections/index.d.ts +1 -0
- package/dist/api/resources/sourceConnections/index.js +1 -0
- package/dist/api/resources/sourceConnections/types/SourceConnectionUpdateAuthFields.d.ts +5 -0
- package/dist/api/resources/sourceConnections/types/SourceConnectionUpdateAuthFields.js +5 -0
- package/dist/api/resources/sourceConnections/types/index.d.ts +1 -0
- package/{api/resources/whiteLabels/client → dist/api/resources/sourceConnections/types}/index.js +1 -1
- package/dist/api/resources/sources/client/Client.d.ts +9 -14
- package/dist/api/resources/sources/client/Client.js +13 -21
- package/dist/api/types/AuthType.d.ts +2 -3
- package/dist/api/types/AuthType.js +1 -1
- package/dist/api/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.d.ts +9 -0
- package/dist/api/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.js +5 -0
- package/dist/api/types/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.d.ts +8 -0
- package/dist/api/types/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.js +5 -0
- package/dist/api/types/IntegrationCredentialInDb.d.ts +18 -0
- package/dist/api/types/IntegrationCredentialInDb.js +5 -0
- package/dist/api/types/IntegrationCredentialRawCreate.d.ts +19 -0
- package/dist/api/types/IntegrationCredentialRawCreate.js +5 -0
- package/dist/api/types/OAuth2AuthUrl.d.ts +13 -0
- package/dist/api/types/OAuth2AuthUrl.js +5 -0
- package/dist/api/types/Source.d.ts +4 -1
- package/dist/api/types/SourceConnection.d.ts +2 -0
- package/dist/api/types/SourceConnectionCreate.d.ts +2 -0
- package/dist/api/types/SourceConnectionListItem.d.ts +1 -0
- package/dist/api/types/Sync.d.ts +0 -2
- package/dist/api/types/SyncCreate.d.ts +0 -2
- package/dist/api/types/SyncJob.d.ts +1 -0
- package/dist/api/types/SyncUpdate.d.ts +0 -2
- package/dist/api/types/SyncWithSourceConnection.d.ts +0 -2
- package/dist/api/types/WhiteLabel.d.ts +1 -0
- package/dist/api/{resources/whiteLabels/client/requests → types}/WhiteLabelCreate.d.ts +2 -8
- package/dist/api/types/WhiteLabelCreate.js +5 -0
- package/dist/api/{resources/whiteLabels/client/requests → types}/WhiteLabelUpdate.d.ts +2 -2
- package/dist/api/types/WhiteLabelUpdate.js +5 -0
- package/dist/api/types/index.d.ts +7 -4
- package/dist/api/types/index.js +7 -4
- package/dist/core/index.d.ts +0 -1
- package/dist/core/index.js +0 -1
- package/dist/serialization/index.d.ts +1 -1
- package/dist/serialization/index.js +1 -1
- package/dist/serialization/resources/index.d.ts +2 -4
- package/dist/serialization/resources/index.js +3 -5
- package/dist/serialization/resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.d.ts +12 -0
- package/dist/serialization/resources/{connections/client/listAllConnectedIntegrations.js → sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.js} +5 -4
- package/dist/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +3 -1
- package/dist/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.js +3 -1
- package/dist/serialization/resources/sourceConnections/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/sourceConnections/client/requests/index.js +3 -1
- package/dist/serialization/resources/sourceConnections/index.d.ts +1 -0
- package/dist/serialization/resources/sourceConnections/index.js +1 -0
- package/dist/serialization/resources/sourceConnections/types/SourceConnectionUpdateAuthFields.d.ts +11 -0
- package/dist/serialization/resources/{whiteLabels/client/listWhiteLabels.js → sourceConnections/types/SourceConnectionUpdateAuthFields.js} +3 -3
- package/dist/serialization/resources/sourceConnections/types/index.d.ts +1 -0
- package/{api/resources/whiteLabels → dist/serialization/resources/sourceConnections/types}/index.js +1 -1
- package/dist/serialization/types/AuthType.d.ts +1 -1
- package/dist/serialization/types/AuthType.js +1 -1
- package/dist/serialization/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.d.ts +15 -0
- package/dist/serialization/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.js +46 -0
- package/dist/serialization/types/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.d.ts +14 -0
- package/dist/serialization/types/{BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.js → BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.js} +4 -4
- package/dist/serialization/types/IntegrationCredentialInDb.d.ts +22 -0
- package/{serialization/types/SourceWithAuthenticationFields.js → dist/serialization/types/IntegrationCredentialInDb.js} +8 -13
- package/dist/serialization/types/IntegrationCredentialRawCreate.d.ts +20 -0
- package/dist/serialization/types/{BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js → IntegrationCredentialRawCreate.js} +10 -3
- package/dist/serialization/types/OAuth2AuthUrl.d.ts +12 -0
- package/{serialization/resources/whiteLabels/client/listWhiteLabelSyncs.js → dist/serialization/types/OAuth2AuthUrl.js} +5 -4
- package/dist/serialization/types/Source.d.ts +5 -1
- package/dist/serialization/types/Source.js +5 -1
- package/dist/serialization/types/SourceConnection.d.ts +2 -0
- package/dist/serialization/types/SourceConnection.js +2 -0
- package/dist/serialization/types/SourceConnectionCreate.d.ts +2 -0
- package/dist/serialization/types/SourceConnectionCreate.js +2 -0
- package/dist/serialization/types/SourceConnectionListItem.d.ts +1 -0
- package/dist/serialization/types/SourceConnectionListItem.js +1 -0
- package/dist/serialization/types/Sync.d.ts +0 -2
- package/dist/serialization/types/Sync.js +0 -2
- package/dist/serialization/types/SyncCreate.d.ts +0 -2
- package/dist/serialization/types/SyncCreate.js +0 -2
- package/dist/serialization/types/SyncJob.d.ts +1 -0
- package/dist/serialization/types/SyncJob.js +1 -0
- package/dist/serialization/types/SyncUpdate.d.ts +0 -2
- package/dist/serialization/types/SyncUpdate.js +0 -2
- package/dist/serialization/types/SyncWithSourceConnection.d.ts +0 -2
- package/dist/serialization/types/SyncWithSourceConnection.js +0 -2
- package/dist/serialization/types/WhiteLabel.d.ts +1 -0
- package/dist/serialization/types/WhiteLabel.js +1 -0
- package/dist/serialization/types/WhiteLabelCreate.d.ts +17 -0
- package/dist/serialization/{resources/whiteLabels/client/requests → types}/WhiteLabelCreate.js +2 -1
- package/dist/serialization/types/WhiteLabelUpdate.d.ts +16 -0
- package/dist/serialization/{resources/whiteLabels/client/requests → types}/WhiteLabelUpdate.js +2 -1
- package/dist/serialization/types/index.d.ts +7 -4
- package/dist/serialization/types/index.js +7 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -3
- package/reference.md +44 -543
- package/serialization/index.d.ts +1 -1
- package/serialization/index.js +1 -1
- package/serialization/resources/index.d.ts +2 -4
- package/serialization/resources/index.js +3 -5
- package/serialization/resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.d.ts +12 -0
- package/serialization/resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.js +43 -0
- package/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +3 -1
- package/serialization/resources/sourceConnections/client/requests/SourceConnectionUpdate.js +3 -1
- package/serialization/resources/sourceConnections/client/requests/index.d.ts +1 -0
- package/serialization/resources/sourceConnections/client/requests/index.js +3 -1
- package/serialization/resources/sourceConnections/index.d.ts +1 -0
- package/serialization/resources/sourceConnections/index.js +1 -0
- package/serialization/resources/sourceConnections/types/SourceConnectionUpdateAuthFields.d.ts +11 -0
- package/serialization/resources/{connections/client/listAllConnectedIntegrations.js → sourceConnections/types/SourceConnectionUpdateAuthFields.js} +3 -3
- package/serialization/resources/sourceConnections/types/index.d.ts +1 -0
- package/{dist/api/resources/connections → serialization/resources/sourceConnections/types}/index.js +1 -1
- package/serialization/types/AuthType.d.ts +1 -1
- package/serialization/types/AuthType.js +1 -1
- package/serialization/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.d.ts +15 -0
- package/serialization/types/BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.js +46 -0
- package/serialization/types/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.d.ts +14 -0
- package/serialization/types/{BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.js → BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.js} +4 -4
- package/serialization/types/IntegrationCredentialInDb.d.ts +22 -0
- package/{dist/serialization/types/SourceWithAuthenticationFields.js → serialization/types/IntegrationCredentialInDb.js} +8 -13
- package/serialization/types/IntegrationCredentialRawCreate.d.ts +20 -0
- package/serialization/types/{BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js → IntegrationCredentialRawCreate.js} +10 -3
- package/serialization/types/OAuth2AuthUrl.d.ts +12 -0
- package/{dist/serialization/resources/whiteLabels/client/listWhiteLabelSyncs.js → serialization/types/OAuth2AuthUrl.js} +5 -4
- package/serialization/types/Source.d.ts +5 -1
- package/serialization/types/Source.js +5 -1
- package/serialization/types/SourceConnection.d.ts +2 -0
- package/serialization/types/SourceConnection.js +2 -0
- package/serialization/types/SourceConnectionCreate.d.ts +2 -0
- package/serialization/types/SourceConnectionCreate.js +2 -0
- package/serialization/types/SourceConnectionListItem.d.ts +1 -0
- package/serialization/types/SourceConnectionListItem.js +1 -0
- package/serialization/types/Sync.d.ts +0 -2
- package/serialization/types/Sync.js +0 -2
- package/serialization/types/SyncCreate.d.ts +0 -2
- package/serialization/types/SyncCreate.js +0 -2
- package/serialization/types/SyncJob.d.ts +1 -0
- package/serialization/types/SyncJob.js +1 -0
- package/serialization/types/SyncUpdate.d.ts +0 -2
- package/serialization/types/SyncUpdate.js +0 -2
- package/serialization/types/SyncWithSourceConnection.d.ts +0 -2
- package/serialization/types/SyncWithSourceConnection.js +0 -2
- package/serialization/types/WhiteLabel.d.ts +1 -0
- package/serialization/types/WhiteLabel.js +1 -0
- package/serialization/types/WhiteLabelCreate.d.ts +17 -0
- package/serialization/{resources/whiteLabels/client/requests → types}/WhiteLabelCreate.js +2 -1
- package/serialization/types/WhiteLabelUpdate.d.ts +16 -0
- package/serialization/{resources/whiteLabels/client/requests → types}/WhiteLabelUpdate.js +2 -1
- package/serialization/types/index.d.ts +7 -4
- package/serialization/types/index.js +7 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/connections/client/Client.d.ts +0 -73
- package/api/resources/connections/client/Client.js +0 -216
- package/api/resources/connections/client/index.d.ts +0 -1
- package/api/resources/connections/client/index.js +0 -2
- package/api/resources/connections/index.d.ts +0 -1
- package/api/resources/whiteLabels/client/Client.d.ts +0 -169
- package/api/resources/whiteLabels/client/Client.js +0 -526
- package/api/resources/whiteLabels/client/index.d.ts +0 -1
- package/api/resources/whiteLabels/client/requests/index.d.ts +0 -2
- package/api/resources/whiteLabels/client/requests/index.js +0 -2
- package/api/resources/whiteLabels/index.d.ts +0 -1
- package/api/types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +0 -7
- package/api/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.d.ts +0 -8
- package/api/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +0 -9
- package/api/types/SourceWithAuthenticationFields.d.ts +0 -23
- package/core/auth/BasicAuth.d.ts +0 -8
- package/core/auth/BasicAuth.js +0 -26
- package/core/auth/BearerToken.d.ts +0 -5
- package/core/auth/BearerToken.js +0 -15
- package/core/auth/index.d.ts +0 -2
- package/core/auth/index.js +0 -7
- package/dist/api/resources/connections/client/Client.d.ts +0 -73
- package/dist/api/resources/connections/client/Client.js +0 -216
- package/dist/api/resources/connections/client/index.d.ts +0 -1
- package/dist/api/resources/connections/client/index.js +0 -2
- package/dist/api/resources/connections/index.d.ts +0 -1
- package/dist/api/resources/whiteLabels/client/Client.d.ts +0 -169
- package/dist/api/resources/whiteLabels/client/Client.js +0 -526
- package/dist/api/resources/whiteLabels/client/index.d.ts +0 -1
- package/dist/api/resources/whiteLabels/client/index.js +0 -17
- package/dist/api/resources/whiteLabels/client/requests/index.d.ts +0 -2
- package/dist/api/resources/whiteLabels/client/requests/index.js +0 -2
- package/dist/api/resources/whiteLabels/index.d.ts +0 -1
- package/dist/api/resources/whiteLabels/index.js +0 -17
- package/dist/api/types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +0 -7
- package/dist/api/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.d.ts +0 -8
- package/dist/api/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +0 -9
- package/dist/api/types/SourceWithAuthenticationFields.d.ts +0 -23
- package/dist/core/auth/BasicAuth.d.ts +0 -8
- package/dist/core/auth/BasicAuth.js +0 -26
- package/dist/core/auth/BearerToken.d.ts +0 -5
- package/dist/core/auth/BearerToken.js +0 -15
- package/dist/core/auth/index.d.ts +0 -2
- package/dist/core/auth/index.js +0 -7
- package/dist/serialization/resources/connections/client/index.d.ts +0 -1
- package/dist/serialization/resources/connections/client/index.js +0 -37
- package/dist/serialization/resources/connections/client/listAllConnectedIntegrations.d.ts +0 -11
- package/dist/serialization/resources/connections/index.d.ts +0 -1
- package/dist/serialization/resources/connections/index.js +0 -17
- package/dist/serialization/resources/whiteLabels/client/index.d.ts +0 -3
- package/dist/serialization/resources/whiteLabels/client/index.js +0 -42
- package/dist/serialization/resources/whiteLabels/client/listWhiteLabelSyncs.d.ts +0 -11
- package/dist/serialization/resources/whiteLabels/client/listWhiteLabels.d.ts +0 -11
- package/dist/serialization/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +0 -16
- package/dist/serialization/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +0 -15
- package/dist/serialization/resources/whiteLabels/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/whiteLabels/client/requests/index.js +0 -7
- package/dist/serialization/resources/whiteLabels/index.d.ts +0 -1
- package/dist/serialization/resources/whiteLabels/index.js +0 -17
- package/dist/serialization/types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +0 -13
- package/dist/serialization/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.d.ts +0 -14
- package/dist/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +0 -15
- package/dist/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +0 -46
- package/dist/serialization/types/SourceWithAuthenticationFields.d.ts +0 -27
- package/serialization/resources/connections/client/index.d.ts +0 -1
- package/serialization/resources/connections/client/index.js +0 -37
- package/serialization/resources/connections/client/listAllConnectedIntegrations.d.ts +0 -11
- package/serialization/resources/connections/index.d.ts +0 -1
- package/serialization/resources/connections/index.js +0 -17
- package/serialization/resources/whiteLabels/client/index.d.ts +0 -3
- package/serialization/resources/whiteLabels/client/index.js +0 -42
- package/serialization/resources/whiteLabels/client/listWhiteLabelSyncs.d.ts +0 -11
- package/serialization/resources/whiteLabels/client/listWhiteLabels.d.ts +0 -11
- package/serialization/resources/whiteLabels/client/listWhiteLabels.js +0 -42
- package/serialization/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +0 -16
- package/serialization/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +0 -15
- package/serialization/resources/whiteLabels/client/requests/index.d.ts +0 -2
- package/serialization/resources/whiteLabels/client/requests/index.js +0 -7
- package/serialization/resources/whiteLabels/index.d.ts +0 -1
- package/serialization/resources/whiteLabels/index.js +0 -17
- package/serialization/types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +0 -13
- package/serialization/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.d.ts +0 -14
- package/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +0 -15
- package/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +0 -46
- package/serialization/types/SourceWithAuthenticationFields.d.ts +0 -27
- /package/api/resources/{whiteLabels/client/requests/WhiteLabelCreate.js → collections/client/requests/SearchCollectionCollectionsReadableIdSearchGetRequest.js} +0 -0
- /package/api/resources/{whiteLabels/client/requests/WhiteLabelUpdate.js → sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.js} +0 -0
- /package/api/{types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js → resources/sourceConnections/types/SourceConnectionUpdateAuthFields.js} +0 -0
- /package/api/types/{BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.js → BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.js} +0 -0
- /package/api/types/{BodySendOauth2CodeConnectionsOauth2SourceCodePost.js → BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.js} +0 -0
- /package/api/types/{SourceWithAuthenticationFields.js → IntegrationCredentialInDb.js} +0 -0
- /package/{dist/api/resources/whiteLabels/client/requests/WhiteLabelCreate.js → api/types/IntegrationCredentialRawCreate.js} +0 -0
- /package/{dist/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.js → api/types/OAuth2AuthUrl.js} +0 -0
- /package/{dist/api/types/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.js → api/types/WhiteLabelCreate.js} +0 -0
- /package/{dist/api/types/BodyCreateSourceConnectionFromOauthConnectionsCreateSourceConnectionFromOauthPost.js → api/types/WhiteLabelUpdate.js} +0 -0
- /package/dist/api/{types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js → resources/collections/client/requests/SearchCollectionCollectionsReadableIdSearchGetRequest.js} +0 -0
- /package/dist/api/{types/SourceWithAuthenticationFields.js → resources/sourceConnections/client/requests/BodyRunSourceConnectionSourceConnectionsSourceConnectionIdRunPost.js} +0 -0
|
@@ -7,7 +7,6 @@ import * as AirweaveSDK from "../../../index";
|
|
|
7
7
|
export declare namespace Sources {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
|
|
10
|
-
token: core.Supplier<core.BearerToken>;
|
|
11
10
|
/** Override the x-api-key header */
|
|
12
11
|
apiKey?: core.Supplier<string | undefined>;
|
|
13
12
|
}
|
|
@@ -26,7 +25,7 @@ export declare namespace Sources {
|
|
|
26
25
|
}
|
|
27
26
|
export declare class Sources {
|
|
28
27
|
protected readonly _options: Sources.Options;
|
|
29
|
-
constructor(_options
|
|
28
|
+
constructor(_options?: Sources.Options);
|
|
30
29
|
/**
|
|
31
30
|
* Get source by id.
|
|
32
31
|
*
|
|
@@ -40,6 +39,12 @@ export declare class Sources {
|
|
|
40
39
|
* -------
|
|
41
40
|
* schemas.Source: The source object.
|
|
42
41
|
*
|
|
42
|
+
* Raises:
|
|
43
|
+
* HTTPException:
|
|
44
|
+
* - 404 if source not found
|
|
45
|
+
* - 400 if source missing required configuration classes
|
|
46
|
+
* - 500 if there's an error retrieving auth configuration
|
|
47
|
+
*
|
|
43
48
|
* @param {string} shortName
|
|
44
49
|
* @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
50
|
*
|
|
@@ -48,18 +53,9 @@ export declare class Sources {
|
|
|
48
53
|
* @example
|
|
49
54
|
* await client.sources.readSource("short_name")
|
|
50
55
|
*/
|
|
51
|
-
readSource(shortName: string, requestOptions?: Sources.RequestOptions): Promise<AirweaveSDK.
|
|
56
|
+
readSource(shortName: string, requestOptions?: Sources.RequestOptions): Promise<AirweaveSDK.Source>;
|
|
52
57
|
/**
|
|
53
|
-
* Get all sources
|
|
54
|
-
*
|
|
55
|
-
* Args:
|
|
56
|
-
* -----
|
|
57
|
-
* db: The database session
|
|
58
|
-
* user: The current user
|
|
59
|
-
*
|
|
60
|
-
* Returns:
|
|
61
|
-
* --------
|
|
62
|
-
* list[schemas.Source]: The list of sources.
|
|
58
|
+
* Get all sources with their authentication fields.
|
|
63
59
|
*
|
|
64
60
|
* @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
61
|
*
|
|
@@ -69,5 +65,4 @@ export declare class Sources {
|
|
|
69
65
|
* await client.sources.readSources()
|
|
70
66
|
*/
|
|
71
67
|
readSources(requestOptions?: Sources.RequestOptions): Promise<AirweaveSDK.Source[]>;
|
|
72
|
-
protected _getAuthorizationHeader(): Promise<string>;
|
|
73
68
|
}
|
|
@@ -56,7 +56,7 @@ const url_join_1 = __importDefault(require("url-join"));
|
|
|
56
56
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
57
57
|
const errors = __importStar(require("../../../../errors/index"));
|
|
58
58
|
class Sources {
|
|
59
|
-
constructor(_options) {
|
|
59
|
+
constructor(_options = {}) {
|
|
60
60
|
this._options = _options;
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
@@ -72,6 +72,12 @@ class Sources {
|
|
|
72
72
|
* -------
|
|
73
73
|
* schemas.Source: The source object.
|
|
74
74
|
*
|
|
75
|
+
* Raises:
|
|
76
|
+
* HTTPException:
|
|
77
|
+
* - 404 if source not found
|
|
78
|
+
* - 400 if source missing required configuration classes
|
|
79
|
+
* - 500 if there's an error retrieving auth configuration
|
|
80
|
+
*
|
|
75
81
|
* @param {string} shortName
|
|
76
82
|
* @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
83
|
*
|
|
@@ -86,9 +92,9 @@ class Sources {
|
|
|
86
92
|
const _response = yield core.fetcher({
|
|
87
93
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `sources/detail/${encodeURIComponent(shortName)}`),
|
|
88
94
|
method: "GET",
|
|
89
|
-
headers: Object.assign({
|
|
95
|
+
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
90
96
|
? yield core.Supplier.get(this._options.apiKey)
|
|
91
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
97
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.53", "User-Agent": "@airweave/sdk/v0.2.53", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
92
98
|
contentType: "application/json",
|
|
93
99
|
requestType: "json",
|
|
94
100
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -96,7 +102,7 @@ class Sources {
|
|
|
96
102
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
97
103
|
});
|
|
98
104
|
if (_response.ok) {
|
|
99
|
-
return serializers.
|
|
105
|
+
return serializers.Source.parseOrThrow(_response.body, {
|
|
100
106
|
unrecognizedObjectKeys: "passthrough",
|
|
101
107
|
allowUnrecognizedUnionMembers: true,
|
|
102
108
|
allowUnrecognizedEnumValues: true,
|
|
@@ -135,16 +141,7 @@ class Sources {
|
|
|
135
141
|
});
|
|
136
142
|
}
|
|
137
143
|
/**
|
|
138
|
-
* Get all sources
|
|
139
|
-
*
|
|
140
|
-
* Args:
|
|
141
|
-
* -----
|
|
142
|
-
* db: The database session
|
|
143
|
-
* user: The current user
|
|
144
|
-
*
|
|
145
|
-
* Returns:
|
|
146
|
-
* --------
|
|
147
|
-
* list[schemas.Source]: The list of sources.
|
|
144
|
+
* Get all sources with their authentication fields.
|
|
148
145
|
*
|
|
149
146
|
* @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
|
|
150
147
|
*
|
|
@@ -159,9 +156,9 @@ class Sources {
|
|
|
159
156
|
const _response = yield core.fetcher({
|
|
160
157
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "sources/list"),
|
|
161
158
|
method: "GET",
|
|
162
|
-
headers: Object.assign({
|
|
159
|
+
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
163
160
|
? yield core.Supplier.get(this._options.apiKey)
|
|
164
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "
|
|
161
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.53", "User-Agent": "@airweave/sdk/v0.2.53", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
165
162
|
contentType: "application/json",
|
|
166
163
|
requestType: "json",
|
|
167
164
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -207,10 +204,5 @@ class Sources {
|
|
|
207
204
|
}
|
|
208
205
|
});
|
|
209
206
|
}
|
|
210
|
-
_getAuthorizationHeader() {
|
|
211
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
-
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
207
|
}
|
|
216
208
|
exports.Sources = Sources;
|
package/api/types/AuthType.d.ts
CHANGED
|
@@ -9,20 +9,19 @@
|
|
|
9
9
|
* oauth2: OAuth2 authentication.
|
|
10
10
|
* oauth2_with_refresh: OAuth2 authentication with refresh token.
|
|
11
11
|
* oauth2_with_refresh_rotating: OAuth2 authentication with rotating refresh token.
|
|
12
|
-
* trello_auth: Trello authentication.
|
|
13
12
|
* api_key: API key authentication.
|
|
14
13
|
* native_functionality: Native functionality.
|
|
15
14
|
* url_and_api_key: URL and API key authentication.
|
|
16
15
|
* none: No authentication.
|
|
17
16
|
*/
|
|
18
|
-
export type AuthType = "oauth2" | "oauth2_with_refresh" | "oauth2_with_refresh_rotating" | "
|
|
17
|
+
export type AuthType = "oauth2" | "oauth2_with_refresh" | "oauth2_with_refresh_rotating" | "api_key" | "native_functionality" | "config_class" | "trello_auth" | "none";
|
|
19
18
|
export declare const AuthType: {
|
|
20
19
|
readonly Oauth2: "oauth2";
|
|
21
20
|
readonly Oauth2WithRefresh: "oauth2_with_refresh";
|
|
22
21
|
readonly Oauth2WithRefreshRotating: "oauth2_with_refresh_rotating";
|
|
23
|
-
readonly TrelloAuth: "trello_auth";
|
|
24
22
|
readonly ApiKey: "api_key";
|
|
25
23
|
readonly NativeFunctionality: "native_functionality";
|
|
26
24
|
readonly ConfigClass: "config_class";
|
|
25
|
+
readonly TrelloAuth: "trello_auth";
|
|
27
26
|
readonly None: "none";
|
|
28
27
|
};
|
package/api/types/AuthType.js
CHANGED
|
@@ -8,9 +8,9 @@ exports.AuthType = {
|
|
|
8
8
|
Oauth2: "oauth2",
|
|
9
9
|
Oauth2WithRefresh: "oauth2_with_refresh",
|
|
10
10
|
Oauth2WithRefreshRotating: "oauth2_with_refresh_rotating",
|
|
11
|
-
TrelloAuth: "trello_auth",
|
|
12
11
|
ApiKey: "api_key",
|
|
13
12
|
NativeFunctionality: "native_functionality",
|
|
14
13
|
ConfigClass: "config_class",
|
|
14
|
+
TrelloAuth: "trello_auth",
|
|
15
15
|
None: "none",
|
|
16
16
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost {
|
|
5
|
+
credentialName?: string;
|
|
6
|
+
credentialDescription?: string;
|
|
7
|
+
clientId?: string;
|
|
8
|
+
clientSecret?: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../index";
|
|
5
|
+
export interface BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost {
|
|
6
|
+
code: string;
|
|
7
|
+
sourceConnectionIn?: AirweaveSDK.SourceConnectionCreate;
|
|
8
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Integration credential in DB without decrypted data.
|
|
7
|
+
*/
|
|
8
|
+
export interface IntegrationCredentialInDb {
|
|
9
|
+
name: string;
|
|
10
|
+
integrationShortName: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
integrationType: AirweaveSDK.IntegrationType;
|
|
13
|
+
authType: AirweaveSDK.AuthType;
|
|
14
|
+
authConfigClass?: string;
|
|
15
|
+
id: string;
|
|
16
|
+
organizationId: string;
|
|
17
|
+
encryptedCredentials: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Create class for integration credentials with raw auth fields.
|
|
7
|
+
*
|
|
8
|
+
* This schema is used when auth fields need to be validated and encrypted
|
|
9
|
+
* before creating the credential.
|
|
10
|
+
*/
|
|
11
|
+
export interface IntegrationCredentialRawCreate {
|
|
12
|
+
name: string;
|
|
13
|
+
integrationShortName: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
integrationType: AirweaveSDK.IntegrationType;
|
|
16
|
+
authType: AirweaveSDK.AuthType;
|
|
17
|
+
authConfigClass?: string;
|
|
18
|
+
authFields: Record<string, unknown>;
|
|
19
|
+
}
|
package/api/types/Source.d.ts
CHANGED
|
@@ -9,7 +9,8 @@ export interface Source {
|
|
|
9
9
|
name: string;
|
|
10
10
|
description?: string;
|
|
11
11
|
authType?: AirweaveSDK.AuthType;
|
|
12
|
-
authConfigClass
|
|
12
|
+
authConfigClass: string;
|
|
13
|
+
configClass: string;
|
|
13
14
|
shortName: string;
|
|
14
15
|
className: string;
|
|
15
16
|
outputEntityDefinitionIds?: string[];
|
|
@@ -19,4 +20,6 @@ export interface Source {
|
|
|
19
20
|
id: string;
|
|
20
21
|
createdAt: Date;
|
|
21
22
|
modifiedAt: Date;
|
|
23
|
+
authFields: AirweaveSDK.Fields;
|
|
24
|
+
configFields?: AirweaveSDK.Fields;
|
|
22
25
|
}
|
|
@@ -11,6 +11,7 @@ export interface SourceConnection {
|
|
|
11
11
|
description?: string;
|
|
12
12
|
configFields?: AirweaveSDK.ConfigValues;
|
|
13
13
|
shortName: string;
|
|
14
|
+
whiteLabelId?: string;
|
|
14
15
|
id: string;
|
|
15
16
|
syncId?: string;
|
|
16
17
|
organizationId: string;
|
|
@@ -26,6 +27,7 @@ export interface SourceConnection {
|
|
|
26
27
|
latestSyncJobId?: string;
|
|
27
28
|
latestSyncJobStartedAt?: Date;
|
|
28
29
|
latestSyncJobCompletedAt?: Date;
|
|
30
|
+
latestSyncJobError?: string;
|
|
29
31
|
cronSchedule?: string;
|
|
30
32
|
nextScheduledRun?: Date;
|
|
31
33
|
}
|
|
@@ -14,8 +14,10 @@ export interface SourceConnectionCreate {
|
|
|
14
14
|
description?: string;
|
|
15
15
|
configFields?: AirweaveSDK.ConfigValues;
|
|
16
16
|
shortName: string;
|
|
17
|
+
whiteLabelId?: string;
|
|
17
18
|
collection?: string;
|
|
18
19
|
cronSchedule?: string;
|
|
19
20
|
authFields?: AirweaveSDK.ConfigValues;
|
|
21
|
+
credentialId?: string;
|
|
20
22
|
syncImmediately?: boolean;
|
|
21
23
|
}
|
package/api/types/Sync.d.ts
CHANGED
|
@@ -13,8 +13,6 @@ export interface SyncCreate {
|
|
|
13
13
|
description?: string;
|
|
14
14
|
cronSchedule?: string;
|
|
15
15
|
nextScheduledRun?: Date;
|
|
16
|
-
whiteLabelId?: string;
|
|
17
|
-
whiteLabelUserIdentifier?: string;
|
|
18
16
|
syncMetadata?: Record<string, unknown>;
|
|
19
17
|
status?: AirweaveSDK.SyncStatus;
|
|
20
18
|
runImmediately?: boolean;
|
package/api/types/SyncJob.d.ts
CHANGED
|
@@ -13,8 +13,6 @@ export interface SyncWithSourceConnection {
|
|
|
13
13
|
description?: string;
|
|
14
14
|
cronSchedule?: string;
|
|
15
15
|
nextScheduledRun?: Date;
|
|
16
|
-
whiteLabelId?: string;
|
|
17
|
-
whiteLabelUserIdentifier?: string;
|
|
18
16
|
syncMetadata?: Record<string, unknown>;
|
|
19
17
|
status: AirweaveSDK.SyncStatus;
|
|
20
18
|
id: string;
|
|
@@ -2,14 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
* {
|
|
7
|
-
* name: "name",
|
|
8
|
-
* sourceShortName: "source_short_name",
|
|
9
|
-
* redirectUrl: "redirect_url",
|
|
10
|
-
* clientId: "client_id",
|
|
11
|
-
* clientSecret: "client_secret"
|
|
12
|
-
* }
|
|
5
|
+
* Schema for creating a WhiteLabel object.
|
|
13
6
|
*/
|
|
14
7
|
export interface WhiteLabelCreate {
|
|
15
8
|
name: string;
|
|
@@ -17,4 +10,5 @@ export interface WhiteLabelCreate {
|
|
|
17
10
|
redirectUrl: string;
|
|
18
11
|
clientId: string;
|
|
19
12
|
clientSecret: string;
|
|
13
|
+
allowedOrigins: string;
|
|
20
14
|
}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
* {}
|
|
5
|
+
* Schema for updating a WhiteLabel object.
|
|
7
6
|
*/
|
|
8
7
|
export interface WhiteLabelUpdate {
|
|
9
8
|
name?: string;
|
|
10
9
|
redirectUrl?: string;
|
|
11
10
|
clientId?: string;
|
|
12
11
|
clientSecret?: string;
|
|
12
|
+
allowedOrigins?: string;
|
|
13
13
|
}
|
package/api/types/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export * from "./ApiKey";
|
|
2
2
|
export * from "./ApiKeyCreate";
|
|
3
3
|
export * from "./AuthType";
|
|
4
|
-
export * from "./BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost";
|
|
5
4
|
export * from "./BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost";
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
5
|
+
export * from "./BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost";
|
|
6
|
+
export * from "./BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost";
|
|
8
7
|
export * from "./Chat";
|
|
9
8
|
export * from "./ChatCreate";
|
|
10
9
|
export * from "./ChatMessage";
|
|
@@ -38,8 +37,11 @@ export * from "./EntityRelationUpdate";
|
|
|
38
37
|
export * from "./EntityType";
|
|
39
38
|
export * from "./Fields";
|
|
40
39
|
export * from "./HttpValidationError";
|
|
40
|
+
export * from "./IntegrationCredentialInDb";
|
|
41
|
+
export * from "./IntegrationCredentialRawCreate";
|
|
41
42
|
export * from "./IntegrationType";
|
|
42
43
|
export * from "./NodeType";
|
|
44
|
+
export * from "./OAuth2AuthUrl";
|
|
43
45
|
export * from "./Organization";
|
|
44
46
|
export * from "./ResponseType";
|
|
45
47
|
export * from "./SearchResponse";
|
|
@@ -51,7 +53,6 @@ export * from "./SourceConnectionCreate";
|
|
|
51
53
|
export * from "./SourceConnectionJob";
|
|
52
54
|
export * from "./SourceConnectionListItem";
|
|
53
55
|
export * from "./SourceConnectionStatus";
|
|
54
|
-
export * from "./SourceWithAuthenticationFields";
|
|
55
56
|
export * from "./Sync";
|
|
56
57
|
export * from "./SyncCreate";
|
|
57
58
|
export * from "./SyncDag";
|
|
@@ -70,3 +71,5 @@ export * from "./UserCreate";
|
|
|
70
71
|
export * from "./ValidationErrorLocItem";
|
|
71
72
|
export * from "./ValidationError";
|
|
72
73
|
export * from "./WhiteLabel";
|
|
74
|
+
export * from "./WhiteLabelCreate";
|
|
75
|
+
export * from "./WhiteLabelUpdate";
|
package/api/types/index.js
CHANGED
|
@@ -17,10 +17,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./ApiKey"), exports);
|
|
18
18
|
__exportStar(require("./ApiKeyCreate"), exports);
|
|
19
19
|
__exportStar(require("./AuthType"), exports);
|
|
20
|
-
__exportStar(require("./BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost"), exports);
|
|
21
20
|
__exportStar(require("./BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost"), exports);
|
|
22
|
-
__exportStar(require("./
|
|
23
|
-
__exportStar(require("./
|
|
21
|
+
__exportStar(require("./BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost"), exports);
|
|
22
|
+
__exportStar(require("./BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost"), exports);
|
|
24
23
|
__exportStar(require("./Chat"), exports);
|
|
25
24
|
__exportStar(require("./ChatCreate"), exports);
|
|
26
25
|
__exportStar(require("./ChatMessage"), exports);
|
|
@@ -54,8 +53,11 @@ __exportStar(require("./EntityRelationUpdate"), exports);
|
|
|
54
53
|
__exportStar(require("./EntityType"), exports);
|
|
55
54
|
__exportStar(require("./Fields"), exports);
|
|
56
55
|
__exportStar(require("./HttpValidationError"), exports);
|
|
56
|
+
__exportStar(require("./IntegrationCredentialInDb"), exports);
|
|
57
|
+
__exportStar(require("./IntegrationCredentialRawCreate"), exports);
|
|
57
58
|
__exportStar(require("./IntegrationType"), exports);
|
|
58
59
|
__exportStar(require("./NodeType"), exports);
|
|
60
|
+
__exportStar(require("./OAuth2AuthUrl"), exports);
|
|
59
61
|
__exportStar(require("./Organization"), exports);
|
|
60
62
|
__exportStar(require("./ResponseType"), exports);
|
|
61
63
|
__exportStar(require("./SearchResponse"), exports);
|
|
@@ -67,7 +69,6 @@ __exportStar(require("./SourceConnectionCreate"), exports);
|
|
|
67
69
|
__exportStar(require("./SourceConnectionJob"), exports);
|
|
68
70
|
__exportStar(require("./SourceConnectionListItem"), exports);
|
|
69
71
|
__exportStar(require("./SourceConnectionStatus"), exports);
|
|
70
|
-
__exportStar(require("./SourceWithAuthenticationFields"), exports);
|
|
71
72
|
__exportStar(require("./Sync"), exports);
|
|
72
73
|
__exportStar(require("./SyncCreate"), exports);
|
|
73
74
|
__exportStar(require("./SyncDag"), exports);
|
|
@@ -86,3 +87,5 @@ __exportStar(require("./UserCreate"), exports);
|
|
|
86
87
|
__exportStar(require("./ValidationErrorLocItem"), exports);
|
|
87
88
|
__exportStar(require("./ValidationError"), exports);
|
|
88
89
|
__exportStar(require("./WhiteLabel"), exports);
|
|
90
|
+
__exportStar(require("./WhiteLabelCreate"), exports);
|
|
91
|
+
__exportStar(require("./WhiteLabelUpdate"), exports);
|
package/core/index.d.ts
CHANGED
package/core/index.js
CHANGED
|
@@ -38,6 +38,5 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.serialization = void 0;
|
|
40
40
|
__exportStar(require("./fetcher"), exports);
|
|
41
|
-
__exportStar(require("./auth"), exports);
|
|
42
41
|
__exportStar(require("./runtime"), exports);
|
|
43
42
|
exports.serialization = __importStar(require("./schemas"));
|
package/dist/Client.d.ts
CHANGED
|
@@ -5,13 +5,10 @@ import * as environments from "./environments";
|
|
|
5
5
|
import * as core from "./core";
|
|
6
6
|
import { Sources } from "./api/resources/sources/client/Client";
|
|
7
7
|
import { Collections } from "./api/resources/collections/client/Client";
|
|
8
|
-
import { Connections } from "./api/resources/connections/client/Client";
|
|
9
8
|
import { SourceConnections } from "./api/resources/sourceConnections/client/Client";
|
|
10
|
-
import { WhiteLabels } from "./api/resources/whiteLabels/client/Client";
|
|
11
9
|
export declare namespace AirweaveSDKClient {
|
|
12
10
|
interface Options {
|
|
13
11
|
environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
|
|
14
|
-
token: core.Supplier<core.BearerToken>;
|
|
15
12
|
/** Override the x-api-key header */
|
|
16
13
|
apiKey?: core.Supplier<string | undefined>;
|
|
17
14
|
}
|
|
@@ -32,13 +29,9 @@ export declare class AirweaveSDKClient {
|
|
|
32
29
|
protected readonly _options: AirweaveSDKClient.Options;
|
|
33
30
|
protected _sources: Sources | undefined;
|
|
34
31
|
protected _collections: Collections | undefined;
|
|
35
|
-
protected _connections: Connections | undefined;
|
|
36
32
|
protected _sourceConnections: SourceConnections | undefined;
|
|
37
|
-
|
|
38
|
-
constructor(_options: AirweaveSDKClient.Options);
|
|
33
|
+
constructor(_options?: AirweaveSDKClient.Options);
|
|
39
34
|
get sources(): Sources;
|
|
40
35
|
get collections(): Collections;
|
|
41
|
-
get connections(): Connections;
|
|
42
36
|
get sourceConnections(): SourceConnections;
|
|
43
|
-
get whiteLabels(): WhiteLabels;
|
|
44
37
|
}
|
package/dist/Client.js
CHANGED
|
@@ -6,11 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.AirweaveSDKClient = void 0;
|
|
7
7
|
const Client_1 = require("./api/resources/sources/client/Client");
|
|
8
8
|
const Client_2 = require("./api/resources/collections/client/Client");
|
|
9
|
-
const Client_3 = require("./api/resources/
|
|
10
|
-
const Client_4 = require("./api/resources/sourceConnections/client/Client");
|
|
11
|
-
const Client_5 = require("./api/resources/whiteLabels/client/Client");
|
|
9
|
+
const Client_3 = require("./api/resources/sourceConnections/client/Client");
|
|
12
10
|
class AirweaveSDKClient {
|
|
13
|
-
constructor(_options) {
|
|
11
|
+
constructor(_options = {}) {
|
|
14
12
|
this._options = _options;
|
|
15
13
|
}
|
|
16
14
|
get sources() {
|
|
@@ -21,17 +19,9 @@ class AirweaveSDKClient {
|
|
|
21
19
|
var _a;
|
|
22
20
|
return ((_a = this._collections) !== null && _a !== void 0 ? _a : (this._collections = new Client_2.Collections(this._options)));
|
|
23
21
|
}
|
|
24
|
-
get connections() {
|
|
25
|
-
var _a;
|
|
26
|
-
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_3.Connections(this._options)));
|
|
27
|
-
}
|
|
28
22
|
get sourceConnections() {
|
|
29
23
|
var _a;
|
|
30
|
-
return ((_a = this._sourceConnections) !== null && _a !== void 0 ? _a : (this._sourceConnections = new
|
|
31
|
-
}
|
|
32
|
-
get whiteLabels() {
|
|
33
|
-
var _a;
|
|
34
|
-
return ((_a = this._whiteLabels) !== null && _a !== void 0 ? _a : (this._whiteLabels = new Client_5.WhiteLabels(this._options)));
|
|
24
|
+
return ((_a = this._sourceConnections) !== null && _a !== void 0 ? _a : (this._sourceConnections = new Client_3.SourceConnections(this._options)));
|
|
35
25
|
}
|
|
36
26
|
}
|
|
37
27
|
exports.AirweaveSDKClient = AirweaveSDKClient;
|
package/dist/api/index.d.ts
CHANGED
package/dist/api/index.js
CHANGED
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources"), exports);
|
|
17
18
|
__exportStar(require("./types"), exports);
|
|
18
19
|
__exportStar(require("./errors"), exports);
|
|
19
|
-
__exportStar(require("./resources"), exports);
|
|
@@ -7,7 +7,6 @@ import * as AirweaveSDK from "../../../index";
|
|
|
7
7
|
export declare namespace Collections {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
|
|
10
|
-
token: core.Supplier<core.BearerToken>;
|
|
11
10
|
/** Override the x-api-key header */
|
|
12
11
|
apiKey?: core.Supplier<string | undefined>;
|
|
13
12
|
}
|
|
@@ -26,7 +25,7 @@ export declare namespace Collections {
|
|
|
26
25
|
}
|
|
27
26
|
export declare class Collections {
|
|
28
27
|
protected readonly _options: Collections.Options;
|
|
29
|
-
constructor(_options
|
|
28
|
+
constructor(_options?: Collections.Options);
|
|
30
29
|
/**
|
|
31
30
|
* List all collections for the current user's organization.
|
|
32
31
|
*
|
|
@@ -87,6 +86,31 @@ export declare class Collections {
|
|
|
87
86
|
* await client.collections.deleteCollection("readable_id")
|
|
88
87
|
*/
|
|
89
88
|
deleteCollection(readableId: string, request?: AirweaveSDK.DeleteCollectionCollectionsReadableIdDeleteRequest, requestOptions?: Collections.RequestOptions): Promise<AirweaveSDK.Collection>;
|
|
89
|
+
/**
|
|
90
|
+
* Search within a collection identified by readable ID.
|
|
91
|
+
*
|
|
92
|
+
* Args:
|
|
93
|
+
* readable_id: The readable ID of the collection to search
|
|
94
|
+
* query: The search query
|
|
95
|
+
* response_type: Type of response (raw results or AI completion)
|
|
96
|
+
* db: The database session
|
|
97
|
+
* current_user: The current user
|
|
98
|
+
*
|
|
99
|
+
* Returns:
|
|
100
|
+
* dict: Search results or AI completion response
|
|
101
|
+
*
|
|
102
|
+
* @param {string} readableId
|
|
103
|
+
* @param {AirweaveSDK.SearchCollectionCollectionsReadableIdSearchGetRequest} request
|
|
104
|
+
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* await client.collections.searchCollection("readable_id", {
|
|
110
|
+
* query: "query"
|
|
111
|
+
* })
|
|
112
|
+
*/
|
|
113
|
+
searchCollection(readableId: string, request: AirweaveSDK.SearchCollectionCollectionsReadableIdSearchGetRequest, requestOptions?: Collections.RequestOptions): Promise<AirweaveSDK.SearchResponse>;
|
|
90
114
|
/**
|
|
91
115
|
* Start sync jobs for all source connections in the collection.
|
|
92
116
|
*
|
|
@@ -108,5 +132,4 @@ export declare class Collections {
|
|
|
108
132
|
* await client.collections.refreshAllSourceConnections("readable_id")
|
|
109
133
|
*/
|
|
110
134
|
refreshAllSourceConnections(readableId: string, requestOptions?: Collections.RequestOptions): Promise<AirweaveSDK.SourceConnectionJob[]>;
|
|
111
|
-
protected _getAuthorizationHeader(): Promise<string>;
|
|
112
135
|
}
|