@airweave/sdk 0.2.8 → 0.2.9
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/README.md +11 -10
- package/api/resources/connections/client/Client.d.ts +47 -18
- package/api/resources/connections/client/Client.js +112 -30
- package/api/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +6 -1
- package/api/resources/connections/client/requests/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +2 -0
- package/api/resources/connections/client/requests/DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest.d.ts +12 -0
- package/api/resources/connections/client/requests/DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest.js +5 -0
- package/api/resources/connections/client/requests/DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest.d.ts +12 -0
- package/api/resources/connections/client/requests/DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest.js +5 -0
- package/api/resources/connections/client/requests/GetConnectionConnectionsDetailConnectionIdGetRequest.d.ts +12 -0
- package/api/resources/connections/client/requests/GetConnectionConnectionsDetailConnectionIdGetRequest.js +5 -0
- package/api/resources/connections/client/requests/GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest.d.ts +12 -0
- package/api/resources/connections/client/requests/GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest.js +5 -0
- package/api/resources/connections/client/requests/GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest.d.ts +12 -0
- package/api/resources/connections/client/requests/GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest.js +5 -0
- package/api/resources/connections/client/requests/ListAllConnectedIntegrationsConnectionsListGetRequest.d.ts +12 -0
- package/api/resources/connections/client/requests/ListAllConnectedIntegrationsConnectionsListGetRequest.js +5 -0
- package/api/resources/connections/client/requests/ListConnectedIntegrationsConnectionsListIntegrationTypeGetRequest.d.ts +12 -0
- package/api/resources/connections/client/requests/ListConnectedIntegrationsConnectionsListIntegrationTypeGetRequest.js +5 -0
- package/api/resources/connections/client/requests/SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest.d.ts +14 -0
- package/api/resources/connections/client/requests/SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest.js +5 -0
- package/api/resources/connections/client/requests/index.d.ts +8 -0
- package/api/resources/destinations/client/Client.d.ts +10 -4
- package/api/resources/destinations/client/Client.js +20 -6
- package/api/resources/destinations/client/index.d.ts +1 -1
- package/api/resources/destinations/client/index.js +15 -0
- package/api/resources/destinations/client/requests/ListDestinationsDestinationsListGetRequest.d.ts +12 -0
- package/api/resources/destinations/client/requests/ListDestinationsDestinationsListGetRequest.js +5 -0
- package/api/resources/destinations/client/requests/ReadDestinationDestinationsDetailShortNameGetRequest.d.ts +12 -0
- package/api/resources/destinations/client/requests/ReadDestinationDestinationsDetailShortNameGetRequest.js +5 -0
- package/api/resources/destinations/client/requests/index.d.ts +2 -0
- package/api/resources/destinations/client/requests/index.js +2 -0
- package/api/resources/embeddingModels/client/Client.d.ts +10 -4
- package/api/resources/embeddingModels/client/Client.js +20 -6
- package/api/resources/embeddingModels/client/index.d.ts +1 -1
- package/api/resources/embeddingModels/client/index.js +15 -0
- package/api/resources/embeddingModels/client/requests/ReadEmbeddingModelEmbeddingModelsDetailShortNameGetRequest.d.ts +12 -0
- package/api/resources/embeddingModels/client/requests/ReadEmbeddingModelEmbeddingModelsDetailShortNameGetRequest.js +5 -0
- package/api/resources/embeddingModels/client/requests/ReadEmbeddingModelsEmbeddingModelsListGetRequest.d.ts +12 -0
- package/api/resources/embeddingModels/client/requests/ReadEmbeddingModelsEmbeddingModelsListGetRequest.js +5 -0
- package/api/resources/embeddingModels/client/requests/index.d.ts +2 -0
- package/api/resources/embeddingModels/client/requests/index.js +2 -0
- package/api/resources/entities/client/Client.d.ts +30 -10
- package/api/resources/entities/client/Client.js +83 -23
- package/api/resources/entities/client/requests/EntityDefinitionCreate.d.ts +5 -1
- package/api/resources/entities/client/requests/EntityDefinitionUpdate.d.ts +5 -1
- package/api/resources/entities/client/requests/EntityRelationCreate.d.ts +3 -0
- package/api/resources/entities/client/requests/EntityRelationUpdate.d.ts +3 -0
- package/api/resources/entities/client/requests/GetEntityDefinitionsByIdsEntitiesDefinitionsByIdsPostRequest.d.ts +14 -0
- package/api/resources/entities/client/requests/GetEntityDefinitionsByIdsEntitiesDefinitionsByIdsPostRequest.js +5 -0
- package/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +3 -1
- package/api/resources/entities/client/requests/ListEntityDefinitionsEntitiesDefinitionsGetRequest.d.ts +12 -0
- package/api/resources/entities/client/requests/ListEntityDefinitionsEntitiesDefinitionsGetRequest.js +5 -0
- package/api/resources/entities/client/requests/ListEntityRelationsEntitiesRelationsGetRequest.d.ts +12 -0
- package/api/resources/entities/client/requests/ListEntityRelationsEntitiesRelationsGetRequest.js +5 -0
- package/api/resources/entities/client/requests/index.d.ts +3 -0
- package/api/resources/index.d.ts +4 -0
- package/api/resources/index.js +4 -0
- package/api/resources/search/client/Client.d.ts +2 -1
- package/api/resources/search/client/Client.js +5 -3
- package/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +3 -1
- package/api/resources/sources/client/Client.d.ts +10 -4
- package/api/resources/sources/client/Client.js +20 -6
- package/api/resources/sources/client/index.d.ts +1 -1
- package/api/resources/sources/client/index.js +15 -0
- package/api/resources/sources/client/requests/ReadSourceSourcesDetailShortNameGetRequest.d.ts +12 -0
- package/api/resources/sources/client/requests/ReadSourceSourcesDetailShortNameGetRequest.js +5 -0
- package/api/resources/sources/client/requests/ReadSourcesSourcesListGetRequest.d.ts +12 -0
- package/api/resources/sources/client/requests/ReadSourcesSourcesListGetRequest.js +5 -0
- package/api/resources/sources/client/requests/index.d.ts +2 -0
- package/api/resources/sources/client/requests/index.js +2 -0
- package/api/resources/sync/client/Client.d.ts +61 -20
- package/api/resources/sync/client/Client.js +123 -40
- package/api/resources/sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.d.ts +4 -1
- package/api/resources/sync/client/requests/GetSyncDagSyncSyncIdDagGetRequest.d.ts +12 -0
- package/api/resources/sync/client/requests/GetSyncDagSyncSyncIdDagGetRequest.js +5 -0
- package/api/resources/sync/client/requests/GetSyncJobSyncSyncIdJobJobIdGetRequest.d.ts +12 -0
- package/api/resources/sync/client/requests/GetSyncJobSyncSyncIdJobJobIdGetRequest.js +5 -0
- package/api/resources/sync/client/requests/GetSyncSyncSyncIdGetRequest.d.ts +12 -0
- package/api/resources/sync/client/requests/GetSyncSyncSyncIdGetRequest.js +5 -0
- package/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +4 -1
- package/api/resources/sync/client/requests/ListSyncJobsSyncSyncIdJobsGetRequest.d.ts +12 -0
- package/api/resources/sync/client/requests/ListSyncJobsSyncSyncIdJobsGetRequest.js +5 -0
- package/api/resources/sync/client/requests/ListSyncsSyncGetRequest.d.ts +4 -1
- package/api/resources/sync/client/requests/RunSyncSyncSyncIdRunPostRequest.d.ts +12 -0
- package/api/resources/sync/client/requests/RunSyncSyncSyncIdRunPostRequest.js +5 -0
- package/api/resources/sync/client/requests/SyncCreate.d.ts +12 -1
- package/api/resources/sync/client/requests/SyncUpdate.d.ts +11 -1
- package/api/resources/sync/client/requests/index.d.ts +5 -0
- package/api/resources/transformers/client/Client.d.ts +15 -6
- package/api/resources/transformers/client/Client.js +43 -11
- package/api/resources/transformers/client/requests/ListTransformersTransformersGetRequest.d.ts +12 -0
- package/api/resources/transformers/client/requests/ListTransformersTransformersGetRequest.js +5 -0
- package/api/resources/transformers/client/requests/TransformerCreate.d.ts +6 -2
- package/api/resources/transformers/client/requests/TransformerUpdate.d.ts +6 -2
- package/api/resources/transformers/client/requests/index.d.ts +1 -0
- package/api/resources/users/client/Client.d.ts +35 -2
- package/api/resources/users/client/Client.js +109 -3
- package/api/resources/users/client/index.d.ts +1 -1
- package/api/resources/users/client/index.js +15 -0
- package/api/resources/users/client/requests/ReadUserUsersGetRequest.d.ts +12 -0
- package/api/resources/users/client/requests/ReadUserUsersGetRequest.js +5 -0
- package/api/resources/users/client/requests/UserCreate.d.ts +18 -0
- package/api/resources/users/client/requests/UserCreate.js +5 -0
- package/api/resources/users/client/requests/index.d.ts +2 -0
- package/api/resources/users/client/requests/index.js +2 -0
- package/api/resources/whiteLabels/client/Client.d.ts +40 -15
- package/api/resources/whiteLabels/client/Client.js +94 -26
- package/api/resources/whiteLabels/client/requests/DeleteWhiteLabelWhiteLabelsWhiteLabelIdDeleteRequest.d.ts +12 -0
- package/api/resources/whiteLabels/client/requests/DeleteWhiteLabelWhiteLabelsWhiteLabelIdDeleteRequest.js +5 -0
- package/api/resources/whiteLabels/client/requests/ExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePostRequest.d.ts +14 -0
- package/api/resources/whiteLabels/client/requests/ExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePostRequest.js +5 -0
- package/api/resources/whiteLabels/client/requests/GetWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlGetRequest.d.ts +12 -0
- package/api/resources/whiteLabels/client/requests/GetWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlGetRequest.js +5 -0
- package/api/resources/whiteLabels/client/requests/GetWhiteLabelWhiteLabelsWhiteLabelIdGetRequest.d.ts +12 -0
- package/api/resources/whiteLabels/client/requests/GetWhiteLabelWhiteLabelsWhiteLabelIdGetRequest.js +5 -0
- package/api/resources/whiteLabels/client/requests/ListWhiteLabelSyncsWhiteLabelsWhiteLabelIdSyncsGetRequest.d.ts +12 -0
- package/api/resources/whiteLabels/client/requests/ListWhiteLabelSyncsWhiteLabelsWhiteLabelIdSyncsGetRequest.js +5 -0
- package/api/resources/whiteLabels/client/requests/ListWhiteLabelsWhiteLabelsListGetRequest.d.ts +12 -0
- package/api/resources/whiteLabels/client/requests/ListWhiteLabelsWhiteLabelsListGetRequest.js +5 -0
- package/api/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +2 -0
- package/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +8 -1
- package/api/resources/whiteLabels/client/requests/index.d.ts +6 -0
- package/api/types/User.d.ts +1 -1
- package/dist/api/resources/connections/client/Client.d.ts +47 -18
- package/dist/api/resources/connections/client/Client.js +112 -30
- package/dist/api/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +6 -1
- package/dist/api/resources/connections/client/requests/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +2 -0
- package/dist/api/resources/connections/client/requests/DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest.d.ts +12 -0
- package/dist/api/resources/connections/client/requests/DeleteConnectionConnectionsDeleteSourceConnectionIdDeleteRequest.js +5 -0
- package/dist/api/resources/connections/client/requests/DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest.d.ts +12 -0
- package/dist/api/resources/connections/client/requests/DisconnectSourceConnectionConnectionsDisconnectSourceConnectionIdPutRequest.js +5 -0
- package/dist/api/resources/connections/client/requests/GetConnectionConnectionsDetailConnectionIdGetRequest.d.ts +12 -0
- package/dist/api/resources/connections/client/requests/GetConnectionConnectionsDetailConnectionIdGetRequest.js +5 -0
- package/dist/api/resources/connections/client/requests/GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest.d.ts +12 -0
- package/dist/api/resources/connections/client/requests/GetConnectionCredentialsConnectionsCredentialsConnectionIdGetRequest.js +5 -0
- package/dist/api/resources/connections/client/requests/GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest.d.ts +12 -0
- package/dist/api/resources/connections/client/requests/GetOauth2WhiteLabelAuthUrlConnectionsOauth2WhiteLabelWhiteLabelIdAuthUrlGetRequest.js +5 -0
- package/dist/api/resources/connections/client/requests/ListAllConnectedIntegrationsConnectionsListGetRequest.d.ts +12 -0
- package/dist/api/resources/connections/client/requests/ListAllConnectedIntegrationsConnectionsListGetRequest.js +5 -0
- package/dist/api/resources/connections/client/requests/ListConnectedIntegrationsConnectionsListIntegrationTypeGetRequest.d.ts +12 -0
- package/dist/api/resources/connections/client/requests/ListConnectedIntegrationsConnectionsListIntegrationTypeGetRequest.js +5 -0
- package/dist/api/resources/connections/client/requests/SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest.d.ts +14 -0
- package/dist/api/resources/connections/client/requests/SendOauth2WhiteLabelCodeConnectionsOauth2WhiteLabelWhiteLabelIdCodePostRequest.js +5 -0
- package/dist/api/resources/connections/client/requests/index.d.ts +8 -0
- package/dist/api/resources/destinations/client/Client.d.ts +10 -4
- package/dist/api/resources/destinations/client/Client.js +20 -6
- package/dist/api/resources/destinations/client/index.d.ts +1 -1
- package/dist/api/resources/destinations/client/index.js +15 -0
- package/dist/api/resources/destinations/client/requests/ListDestinationsDestinationsListGetRequest.d.ts +12 -0
- package/dist/api/resources/destinations/client/requests/ListDestinationsDestinationsListGetRequest.js +5 -0
- package/dist/api/resources/destinations/client/requests/ReadDestinationDestinationsDetailShortNameGetRequest.d.ts +12 -0
- package/dist/api/resources/destinations/client/requests/ReadDestinationDestinationsDetailShortNameGetRequest.js +5 -0
- package/dist/api/resources/destinations/client/requests/index.d.ts +2 -0
- package/dist/api/resources/destinations/client/requests/index.js +2 -0
- package/dist/api/resources/embeddingModels/client/Client.d.ts +10 -4
- package/dist/api/resources/embeddingModels/client/Client.js +20 -6
- package/dist/api/resources/embeddingModels/client/index.d.ts +1 -1
- package/dist/api/resources/embeddingModels/client/index.js +15 -0
- package/dist/api/resources/embeddingModels/client/requests/ReadEmbeddingModelEmbeddingModelsDetailShortNameGetRequest.d.ts +12 -0
- package/dist/api/resources/embeddingModels/client/requests/ReadEmbeddingModelEmbeddingModelsDetailShortNameGetRequest.js +5 -0
- package/dist/api/resources/embeddingModels/client/requests/ReadEmbeddingModelsEmbeddingModelsListGetRequest.d.ts +12 -0
- package/dist/api/resources/embeddingModels/client/requests/ReadEmbeddingModelsEmbeddingModelsListGetRequest.js +5 -0
- package/dist/api/resources/embeddingModels/client/requests/index.d.ts +2 -0
- package/dist/api/resources/embeddingModels/client/requests/index.js +2 -0
- package/dist/api/resources/entities/client/Client.d.ts +30 -10
- package/dist/api/resources/entities/client/Client.js +83 -23
- package/dist/api/resources/entities/client/requests/EntityDefinitionCreate.d.ts +5 -1
- package/dist/api/resources/entities/client/requests/EntityDefinitionUpdate.d.ts +5 -1
- package/dist/api/resources/entities/client/requests/EntityRelationCreate.d.ts +3 -0
- package/dist/api/resources/entities/client/requests/EntityRelationUpdate.d.ts +3 -0
- package/dist/api/resources/entities/client/requests/GetEntityDefinitionsByIdsEntitiesDefinitionsByIdsPostRequest.d.ts +14 -0
- package/dist/api/resources/entities/client/requests/GetEntityDefinitionsByIdsEntitiesDefinitionsByIdsPostRequest.js +5 -0
- package/dist/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +3 -1
- package/dist/api/resources/entities/client/requests/ListEntityDefinitionsEntitiesDefinitionsGetRequest.d.ts +12 -0
- package/dist/api/resources/entities/client/requests/ListEntityDefinitionsEntitiesDefinitionsGetRequest.js +5 -0
- package/dist/api/resources/entities/client/requests/ListEntityRelationsEntitiesRelationsGetRequest.d.ts +12 -0
- package/dist/api/resources/entities/client/requests/ListEntityRelationsEntitiesRelationsGetRequest.js +5 -0
- package/dist/api/resources/entities/client/requests/index.d.ts +3 -0
- package/dist/api/resources/index.d.ts +4 -0
- package/dist/api/resources/index.js +4 -0
- package/dist/api/resources/search/client/Client.d.ts +2 -1
- package/dist/api/resources/search/client/Client.js +5 -3
- package/dist/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +3 -1
- package/dist/api/resources/sources/client/Client.d.ts +10 -4
- package/dist/api/resources/sources/client/Client.js +20 -6
- package/dist/api/resources/sources/client/index.d.ts +1 -1
- package/dist/api/resources/sources/client/index.js +15 -0
- package/dist/api/resources/sources/client/requests/ReadSourceSourcesDetailShortNameGetRequest.d.ts +12 -0
- package/dist/api/resources/sources/client/requests/ReadSourceSourcesDetailShortNameGetRequest.js +5 -0
- package/dist/api/resources/sources/client/requests/ReadSourcesSourcesListGetRequest.d.ts +12 -0
- package/dist/api/resources/sources/client/requests/ReadSourcesSourcesListGetRequest.js +5 -0
- package/dist/api/resources/sources/client/requests/index.d.ts +2 -0
- package/dist/api/resources/sources/client/requests/index.js +2 -0
- package/dist/api/resources/sync/client/Client.d.ts +61 -20
- package/dist/api/resources/sync/client/Client.js +123 -40
- package/dist/api/resources/sync/client/requests/DeleteSyncSyncSyncIdDeleteRequest.d.ts +4 -1
- package/dist/api/resources/sync/client/requests/GetSyncDagSyncSyncIdDagGetRequest.d.ts +12 -0
- package/dist/api/resources/sync/client/requests/GetSyncDagSyncSyncIdDagGetRequest.js +5 -0
- package/dist/api/resources/sync/client/requests/GetSyncJobSyncSyncIdJobJobIdGetRequest.d.ts +12 -0
- package/dist/api/resources/sync/client/requests/GetSyncJobSyncSyncIdJobJobIdGetRequest.js +5 -0
- package/dist/api/resources/sync/client/requests/GetSyncSyncSyncIdGetRequest.d.ts +12 -0
- package/dist/api/resources/sync/client/requests/GetSyncSyncSyncIdGetRequest.js +5 -0
- package/dist/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +4 -1
- package/dist/api/resources/sync/client/requests/ListSyncJobsSyncSyncIdJobsGetRequest.d.ts +12 -0
- package/dist/api/resources/sync/client/requests/ListSyncJobsSyncSyncIdJobsGetRequest.js +5 -0
- package/dist/api/resources/sync/client/requests/ListSyncsSyncGetRequest.d.ts +4 -1
- package/dist/api/resources/sync/client/requests/RunSyncSyncSyncIdRunPostRequest.d.ts +12 -0
- package/dist/api/resources/sync/client/requests/RunSyncSyncSyncIdRunPostRequest.js +5 -0
- package/dist/api/resources/sync/client/requests/SyncCreate.d.ts +12 -1
- package/dist/api/resources/sync/client/requests/SyncUpdate.d.ts +11 -1
- package/dist/api/resources/sync/client/requests/index.d.ts +5 -0
- package/dist/api/resources/transformers/client/Client.d.ts +15 -6
- package/dist/api/resources/transformers/client/Client.js +43 -11
- package/dist/api/resources/transformers/client/requests/ListTransformersTransformersGetRequest.d.ts +12 -0
- package/dist/api/resources/transformers/client/requests/ListTransformersTransformersGetRequest.js +5 -0
- package/dist/api/resources/transformers/client/requests/TransformerCreate.d.ts +6 -2
- package/dist/api/resources/transformers/client/requests/TransformerUpdate.d.ts +6 -2
- package/dist/api/resources/transformers/client/requests/index.d.ts +1 -0
- package/dist/api/resources/users/client/Client.d.ts +35 -2
- package/dist/api/resources/users/client/Client.js +109 -3
- package/dist/api/resources/users/client/index.d.ts +1 -1
- package/dist/api/resources/users/client/index.js +15 -0
- package/dist/api/resources/users/client/requests/ReadUserUsersGetRequest.d.ts +12 -0
- package/dist/api/resources/users/client/requests/ReadUserUsersGetRequest.js +5 -0
- package/dist/api/resources/users/client/requests/UserCreate.d.ts +18 -0
- package/dist/api/resources/users/client/requests/UserCreate.js +5 -0
- package/dist/api/resources/users/client/requests/index.d.ts +2 -0
- package/dist/api/resources/users/client/requests/index.js +2 -0
- package/dist/api/resources/whiteLabels/client/Client.d.ts +40 -15
- package/dist/api/resources/whiteLabels/client/Client.js +94 -26
- package/dist/api/resources/whiteLabels/client/requests/DeleteWhiteLabelWhiteLabelsWhiteLabelIdDeleteRequest.d.ts +12 -0
- package/dist/api/resources/whiteLabels/client/requests/DeleteWhiteLabelWhiteLabelsWhiteLabelIdDeleteRequest.js +5 -0
- package/dist/api/resources/whiteLabels/client/requests/ExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePostRequest.d.ts +14 -0
- package/dist/api/resources/whiteLabels/client/requests/ExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePostRequest.js +5 -0
- package/dist/api/resources/whiteLabels/client/requests/GetWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlGetRequest.d.ts +12 -0
- package/dist/api/resources/whiteLabels/client/requests/GetWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlGetRequest.js +5 -0
- package/dist/api/resources/whiteLabels/client/requests/GetWhiteLabelWhiteLabelsWhiteLabelIdGetRequest.d.ts +12 -0
- package/dist/api/resources/whiteLabels/client/requests/GetWhiteLabelWhiteLabelsWhiteLabelIdGetRequest.js +5 -0
- package/dist/api/resources/whiteLabels/client/requests/ListWhiteLabelSyncsWhiteLabelsWhiteLabelIdSyncsGetRequest.d.ts +12 -0
- package/dist/api/resources/whiteLabels/client/requests/ListWhiteLabelSyncsWhiteLabelsWhiteLabelIdSyncsGetRequest.js +5 -0
- package/dist/api/resources/whiteLabels/client/requests/ListWhiteLabelsWhiteLabelsListGetRequest.d.ts +12 -0
- package/dist/api/resources/whiteLabels/client/requests/ListWhiteLabelsWhiteLabelsListGetRequest.js +5 -0
- package/dist/api/resources/whiteLabels/client/requests/WhiteLabelCreate.d.ts +2 -0
- package/dist/api/resources/whiteLabels/client/requests/WhiteLabelUpdate.d.ts +8 -1
- package/dist/api/resources/whiteLabels/client/requests/index.d.ts +6 -0
- package/dist/api/types/User.d.ts +1 -1
- package/dist/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +1 -1
- package/dist/serialization/resources/connections/client/requests/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +1 -1
- package/dist/serialization/resources/entities/client/requests/EntityDefinitionCreate.d.ts +1 -1
- package/dist/serialization/resources/entities/client/requests/EntityDefinitionUpdate.d.ts +1 -1
- package/dist/serialization/resources/entities/client/requests/EntityRelationCreate.d.ts +1 -1
- package/dist/serialization/resources/entities/client/requests/EntityRelationUpdate.d.ts +1 -1
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +3 -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/requests/TransformerCreate.d.ts +1 -1
- package/dist/serialization/resources/transformers/client/requests/TransformerUpdate.d.ts +1 -1
- package/dist/serialization/resources/users/client/index.d.ts +1 -0
- package/dist/serialization/resources/users/client/index.js +17 -0
- package/dist/serialization/resources/users/client/requests/UserCreate.d.ts +14 -0
- package/dist/serialization/resources/users/client/requests/UserCreate.js +45 -0
- package/dist/serialization/resources/users/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/users/client/requests/index.js +5 -0
- package/dist/serialization/resources/users/index.d.ts +1 -0
- package/dist/serialization/resources/users/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/User.d.ts +1 -1
- package/dist/serialization/types/User.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +490 -74
- package/serialization/resources/connections/client/requests/BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.d.ts +1 -1
- package/serialization/resources/connections/client/requests/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +1 -1
- package/serialization/resources/entities/client/requests/EntityDefinitionCreate.d.ts +1 -1
- package/serialization/resources/entities/client/requests/EntityDefinitionUpdate.d.ts +1 -1
- package/serialization/resources/entities/client/requests/EntityRelationCreate.d.ts +1 -1
- package/serialization/resources/entities/client/requests/EntityRelationUpdate.d.ts +1 -1
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -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/requests/TransformerCreate.d.ts +1 -1
- package/serialization/resources/transformers/client/requests/TransformerUpdate.d.ts +1 -1
- package/serialization/resources/users/client/index.d.ts +1 -0
- package/serialization/resources/users/client/index.js +17 -0
- package/serialization/resources/users/client/requests/UserCreate.d.ts +14 -0
- package/serialization/resources/users/client/requests/UserCreate.js +45 -0
- package/serialization/resources/users/client/requests/index.d.ts +1 -0
- package/serialization/resources/users/client/requests/index.js +5 -0
- package/serialization/resources/users/index.d.ts +1 -0
- package/serialization/resources/users/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/User.d.ts +1 -1
- package/serialization/types/User.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -38,14 +38,17 @@ export declare class WhiteLabels {
|
|
|
38
38
|
* --------
|
|
39
39
|
* list[schemas.WhiteLabel]: A list of white labels
|
|
40
40
|
*
|
|
41
|
+
* @param {AirweaveSDK.ListWhiteLabelsWhiteLabelsListGetRequest} request
|
|
41
42
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
42
43
|
*
|
|
43
44
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
44
45
|
*
|
|
45
46
|
* @example
|
|
46
|
-
* await client.whiteLabels.listWhiteLabels(
|
|
47
|
+
* await client.whiteLabels.listWhiteLabels({
|
|
48
|
+
* creds: "creds"
|
|
49
|
+
* })
|
|
47
50
|
*/
|
|
48
|
-
listWhiteLabels(requestOptions?: WhiteLabels.RequestOptions): Promise<AirweaveSDK.WhiteLabel[]>;
|
|
51
|
+
listWhiteLabels(request: AirweaveSDK.ListWhiteLabelsWhiteLabelsListGetRequest, requestOptions?: WhiteLabels.RequestOptions): Promise<AirweaveSDK.WhiteLabel[]>;
|
|
49
52
|
/**
|
|
50
53
|
* Create new white label integration.
|
|
51
54
|
*
|
|
@@ -66,6 +69,7 @@ export declare class WhiteLabels {
|
|
|
66
69
|
*
|
|
67
70
|
* @example
|
|
68
71
|
* await client.whiteLabels.createWhiteLabel({
|
|
72
|
+
* creds: "creds",
|
|
69
73
|
* name: "name",
|
|
70
74
|
* sourceShortName: "source_short_name",
|
|
71
75
|
* redirectUrl: "redirect_url",
|
|
@@ -88,14 +92,17 @@ export declare class WhiteLabels {
|
|
|
88
92
|
* white_label (schemas.WhiteLabel): The white label
|
|
89
93
|
*
|
|
90
94
|
* @param {string} whiteLabelId
|
|
95
|
+
* @param {AirweaveSDK.GetWhiteLabelWhiteLabelsWhiteLabelIdGetRequest} request
|
|
91
96
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
92
97
|
*
|
|
93
98
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
94
99
|
*
|
|
95
100
|
* @example
|
|
96
|
-
* await client.whiteLabels.getWhiteLabel("white_label_id"
|
|
101
|
+
* await client.whiteLabels.getWhiteLabel("white_label_id", {
|
|
102
|
+
* creds: "creds"
|
|
103
|
+
* })
|
|
97
104
|
*/
|
|
98
|
-
getWhiteLabel(whiteLabelId: string, requestOptions?: WhiteLabels.RequestOptions): Promise<AirweaveSDK.WhiteLabel>;
|
|
105
|
+
getWhiteLabel(whiteLabelId: string, request: AirweaveSDK.GetWhiteLabelWhiteLabelsWhiteLabelIdGetRequest, requestOptions?: WhiteLabels.RequestOptions): Promise<AirweaveSDK.WhiteLabel>;
|
|
99
106
|
/**
|
|
100
107
|
* Update a white label integration.
|
|
101
108
|
*
|
|
@@ -117,9 +124,15 @@ export declare class WhiteLabels {
|
|
|
117
124
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
118
125
|
*
|
|
119
126
|
* @example
|
|
120
|
-
* await client.whiteLabels.updateWhiteLabel("white_label_id"
|
|
127
|
+
* await client.whiteLabels.updateWhiteLabel("white_label_id", {
|
|
128
|
+
* creds: "creds",
|
|
129
|
+
* name: undefined,
|
|
130
|
+
* redirectUrl: undefined,
|
|
131
|
+
* clientId: undefined,
|
|
132
|
+
* clientSecret: undefined
|
|
133
|
+
* })
|
|
121
134
|
*/
|
|
122
|
-
updateWhiteLabel(whiteLabelId: string, request
|
|
135
|
+
updateWhiteLabel(whiteLabelId: string, request: AirweaveSDK.WhiteLabelUpdate, requestOptions?: WhiteLabels.RequestOptions): Promise<AirweaveSDK.WhiteLabel>;
|
|
123
136
|
/**
|
|
124
137
|
* Delete a white label integration.
|
|
125
138
|
*
|
|
@@ -134,14 +147,17 @@ export declare class WhiteLabels {
|
|
|
134
147
|
* white_label (schemas.WhiteLabel): The deleted white label
|
|
135
148
|
*
|
|
136
149
|
* @param {string} whiteLabelId
|
|
150
|
+
* @param {AirweaveSDK.DeleteWhiteLabelWhiteLabelsWhiteLabelIdDeleteRequest} request
|
|
137
151
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
138
152
|
*
|
|
139
153
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
140
154
|
*
|
|
141
155
|
* @example
|
|
142
|
-
* await client.whiteLabels.deleteWhiteLabel("white_label_id"
|
|
156
|
+
* await client.whiteLabels.deleteWhiteLabel("white_label_id", {
|
|
157
|
+
* creds: "creds"
|
|
158
|
+
* })
|
|
143
159
|
*/
|
|
144
|
-
deleteWhiteLabel(whiteLabelId: string, requestOptions?: WhiteLabels.RequestOptions): Promise<AirweaveSDK.WhiteLabel>;
|
|
160
|
+
deleteWhiteLabel(whiteLabelId: string, request: AirweaveSDK.DeleteWhiteLabelWhiteLabelsWhiteLabelIdDeleteRequest, requestOptions?: WhiteLabels.RequestOptions): Promise<AirweaveSDK.WhiteLabel>;
|
|
145
161
|
/**
|
|
146
162
|
* Generate the OAuth2 authorization URL by delegating to oauth2_service.
|
|
147
163
|
*
|
|
@@ -156,14 +172,17 @@ export declare class WhiteLabels {
|
|
|
156
172
|
* str: The OAuth2 authorization URL
|
|
157
173
|
*
|
|
158
174
|
* @param {string} whiteLabelId
|
|
175
|
+
* @param {AirweaveSDK.GetWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlGetRequest} request
|
|
159
176
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
160
177
|
*
|
|
161
178
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
162
179
|
*
|
|
163
180
|
* @example
|
|
164
|
-
* await client.whiteLabels.getWhiteLabelOauth2AuthUrl("white_label_id"
|
|
181
|
+
* await client.whiteLabels.getWhiteLabelOauth2AuthUrl("white_label_id", {
|
|
182
|
+
* creds: "creds"
|
|
183
|
+
* })
|
|
165
184
|
*/
|
|
166
|
-
getWhiteLabelOauth2AuthUrl(whiteLabelId: string, requestOptions?: WhiteLabels.RequestOptions): Promise<string>;
|
|
185
|
+
getWhiteLabelOauth2AuthUrl(whiteLabelId: string, request: AirweaveSDK.GetWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlGetRequest, requestOptions?: WhiteLabels.RequestOptions): Promise<string>;
|
|
167
186
|
/**
|
|
168
187
|
* Exchange OAuth2 code for tokens and create connection.
|
|
169
188
|
*
|
|
@@ -179,15 +198,18 @@ export declare class WhiteLabels {
|
|
|
179
198
|
* connection (schemas.Connection): The created connection
|
|
180
199
|
*
|
|
181
200
|
* @param {string} whiteLabelId
|
|
182
|
-
* @param {
|
|
201
|
+
* @param {AirweaveSDK.ExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePostRequest} request
|
|
183
202
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
184
203
|
*
|
|
185
204
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
186
205
|
*
|
|
187
206
|
* @example
|
|
188
|
-
* await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id",
|
|
207
|
+
* await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", {
|
|
208
|
+
* creds: "creds",
|
|
209
|
+
* body: "string"
|
|
210
|
+
* })
|
|
189
211
|
*/
|
|
190
|
-
exchangeWhiteLabelOauth2Code(whiteLabelId: string, request:
|
|
212
|
+
exchangeWhiteLabelOauth2Code(whiteLabelId: string, request: AirweaveSDK.ExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePostRequest, requestOptions?: WhiteLabels.RequestOptions): Promise<AirweaveSDK.Connection>;
|
|
191
213
|
/**
|
|
192
214
|
* List all syncs for a specific white label.
|
|
193
215
|
*
|
|
@@ -202,12 +224,15 @@ export declare class WhiteLabels {
|
|
|
202
224
|
* list[schemas.Sync]: A list of syncs
|
|
203
225
|
*
|
|
204
226
|
* @param {string} whiteLabelId
|
|
227
|
+
* @param {AirweaveSDK.ListWhiteLabelSyncsWhiteLabelsWhiteLabelIdSyncsGetRequest} request
|
|
205
228
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
206
229
|
*
|
|
207
230
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
208
231
|
*
|
|
209
232
|
* @example
|
|
210
|
-
* await client.whiteLabels.listWhiteLabelSyncs("white_label_id"
|
|
233
|
+
* await client.whiteLabels.listWhiteLabelSyncs("white_label_id", {
|
|
234
|
+
* creds: "creds"
|
|
235
|
+
* })
|
|
211
236
|
*/
|
|
212
|
-
listWhiteLabelSyncs(whiteLabelId: string, requestOptions?: WhiteLabels.RequestOptions): Promise<AirweaveSDK.Sync[]>;
|
|
237
|
+
listWhiteLabelSyncs(whiteLabelId: string, request: AirweaveSDK.ListWhiteLabelSyncsWhiteLabelsWhiteLabelIdSyncsGetRequest, requestOptions?: WhiteLabels.RequestOptions): Promise<AirweaveSDK.Sync[]>;
|
|
213
238
|
}
|
|
@@ -44,6 +44,17 @@ 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
|
+
};
|
|
47
58
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
59
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
60
|
};
|
|
@@ -71,23 +82,30 @@ class WhiteLabels {
|
|
|
71
82
|
* --------
|
|
72
83
|
* list[schemas.WhiteLabel]: A list of white labels
|
|
73
84
|
*
|
|
85
|
+
* @param {AirweaveSDK.ListWhiteLabelsWhiteLabelsListGetRequest} request
|
|
74
86
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
87
|
*
|
|
76
88
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
77
89
|
*
|
|
78
90
|
* @example
|
|
79
|
-
* await client.whiteLabels.listWhiteLabels(
|
|
91
|
+
* await client.whiteLabels.listWhiteLabels({
|
|
92
|
+
* creds: "creds"
|
|
93
|
+
* })
|
|
80
94
|
*/
|
|
81
|
-
listWhiteLabels(requestOptions) {
|
|
95
|
+
listWhiteLabels(request, requestOptions) {
|
|
82
96
|
return __awaiter(this, void 0, void 0, function* () {
|
|
83
97
|
var _a;
|
|
98
|
+
const { creds } = request;
|
|
99
|
+
const _queryParams = {};
|
|
100
|
+
_queryParams["creds"] = creds;
|
|
84
101
|
const _response = yield core.fetcher({
|
|
85
102
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "white_labels/list"),
|
|
86
103
|
method: "GET",
|
|
87
104
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
88
105
|
? yield core.Supplier.get(this._options.apiKey)
|
|
89
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.
|
|
106
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.9", "User-Agent": "@airweave/sdk/v0.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
90
107
|
contentType: "application/json",
|
|
108
|
+
queryParameters: _queryParams,
|
|
91
109
|
requestType: "json",
|
|
92
110
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
93
111
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -152,6 +170,7 @@ class WhiteLabels {
|
|
|
152
170
|
*
|
|
153
171
|
* @example
|
|
154
172
|
* await client.whiteLabels.createWhiteLabel({
|
|
173
|
+
* creds: "creds",
|
|
155
174
|
* name: "name",
|
|
156
175
|
* sourceShortName: "source_short_name",
|
|
157
176
|
* redirectUrl: "redirect_url",
|
|
@@ -162,15 +181,19 @@ class WhiteLabels {
|
|
|
162
181
|
createWhiteLabel(request, requestOptions) {
|
|
163
182
|
return __awaiter(this, void 0, void 0, function* () {
|
|
164
183
|
var _a;
|
|
184
|
+
const { creds } = request, _body = __rest(request, ["creds"]);
|
|
185
|
+
const _queryParams = {};
|
|
186
|
+
_queryParams["creds"] = creds;
|
|
165
187
|
const _response = yield core.fetcher({
|
|
166
188
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "white_labels/"),
|
|
167
189
|
method: "POST",
|
|
168
190
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
169
191
|
? yield core.Supplier.get(this._options.apiKey)
|
|
170
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.
|
|
192
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.9", "User-Agent": "@airweave/sdk/v0.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
171
193
|
contentType: "application/json",
|
|
194
|
+
queryParameters: _queryParams,
|
|
172
195
|
requestType: "json",
|
|
173
|
-
body: serializers.WhiteLabelCreate.jsonOrThrow(
|
|
196
|
+
body: serializers.WhiteLabelCreate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
174
197
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
175
198
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
176
199
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -228,23 +251,30 @@ class WhiteLabels {
|
|
|
228
251
|
* white_label (schemas.WhiteLabel): The white label
|
|
229
252
|
*
|
|
230
253
|
* @param {string} whiteLabelId
|
|
254
|
+
* @param {AirweaveSDK.GetWhiteLabelWhiteLabelsWhiteLabelIdGetRequest} request
|
|
231
255
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
232
256
|
*
|
|
233
257
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
234
258
|
*
|
|
235
259
|
* @example
|
|
236
|
-
* await client.whiteLabels.getWhiteLabel("white_label_id"
|
|
260
|
+
* await client.whiteLabels.getWhiteLabel("white_label_id", {
|
|
261
|
+
* creds: "creds"
|
|
262
|
+
* })
|
|
237
263
|
*/
|
|
238
|
-
getWhiteLabel(whiteLabelId, requestOptions) {
|
|
264
|
+
getWhiteLabel(whiteLabelId, request, requestOptions) {
|
|
239
265
|
return __awaiter(this, void 0, void 0, function* () {
|
|
240
266
|
var _a;
|
|
267
|
+
const { creds } = request;
|
|
268
|
+
const _queryParams = {};
|
|
269
|
+
_queryParams["creds"] = creds;
|
|
241
270
|
const _response = yield core.fetcher({
|
|
242
271
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `white_labels/${encodeURIComponent(whiteLabelId)}`),
|
|
243
272
|
method: "GET",
|
|
244
273
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
245
274
|
? yield core.Supplier.get(this._options.apiKey)
|
|
246
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.
|
|
275
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.9", "User-Agent": "@airweave/sdk/v0.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
247
276
|
contentType: "application/json",
|
|
277
|
+
queryParameters: _queryParams,
|
|
248
278
|
requestType: "json",
|
|
249
279
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
250
280
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -310,20 +340,30 @@ class WhiteLabels {
|
|
|
310
340
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
311
341
|
*
|
|
312
342
|
* @example
|
|
313
|
-
* await client.whiteLabels.updateWhiteLabel("white_label_id"
|
|
343
|
+
* await client.whiteLabels.updateWhiteLabel("white_label_id", {
|
|
344
|
+
* creds: "creds",
|
|
345
|
+
* name: undefined,
|
|
346
|
+
* redirectUrl: undefined,
|
|
347
|
+
* clientId: undefined,
|
|
348
|
+
* clientSecret: undefined
|
|
349
|
+
* })
|
|
314
350
|
*/
|
|
315
|
-
updateWhiteLabel(
|
|
316
|
-
return __awaiter(this,
|
|
351
|
+
updateWhiteLabel(whiteLabelId, request, requestOptions) {
|
|
352
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
317
353
|
var _a;
|
|
354
|
+
const { creds } = request, _body = __rest(request, ["creds"]);
|
|
355
|
+
const _queryParams = {};
|
|
356
|
+
_queryParams["creds"] = creds;
|
|
318
357
|
const _response = yield core.fetcher({
|
|
319
358
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `white_labels/${encodeURIComponent(whiteLabelId)}`),
|
|
320
359
|
method: "PUT",
|
|
321
360
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
322
361
|
? yield core.Supplier.get(this._options.apiKey)
|
|
323
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.
|
|
362
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.9", "User-Agent": "@airweave/sdk/v0.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
324
363
|
contentType: "application/json",
|
|
364
|
+
queryParameters: _queryParams,
|
|
325
365
|
requestType: "json",
|
|
326
|
-
body: serializers.WhiteLabelUpdate.jsonOrThrow(
|
|
366
|
+
body: serializers.WhiteLabelUpdate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
327
367
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
328
368
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
329
369
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -381,23 +421,30 @@ class WhiteLabels {
|
|
|
381
421
|
* white_label (schemas.WhiteLabel): The deleted white label
|
|
382
422
|
*
|
|
383
423
|
* @param {string} whiteLabelId
|
|
424
|
+
* @param {AirweaveSDK.DeleteWhiteLabelWhiteLabelsWhiteLabelIdDeleteRequest} request
|
|
384
425
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
385
426
|
*
|
|
386
427
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
387
428
|
*
|
|
388
429
|
* @example
|
|
389
|
-
* await client.whiteLabels.deleteWhiteLabel("white_label_id"
|
|
430
|
+
* await client.whiteLabels.deleteWhiteLabel("white_label_id", {
|
|
431
|
+
* creds: "creds"
|
|
432
|
+
* })
|
|
390
433
|
*/
|
|
391
|
-
deleteWhiteLabel(whiteLabelId, requestOptions) {
|
|
434
|
+
deleteWhiteLabel(whiteLabelId, request, requestOptions) {
|
|
392
435
|
return __awaiter(this, void 0, void 0, function* () {
|
|
393
436
|
var _a;
|
|
437
|
+
const { creds } = request;
|
|
438
|
+
const _queryParams = {};
|
|
439
|
+
_queryParams["creds"] = creds;
|
|
394
440
|
const _response = yield core.fetcher({
|
|
395
441
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `white_labels/${encodeURIComponent(whiteLabelId)}`),
|
|
396
442
|
method: "DELETE",
|
|
397
443
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
398
444
|
? yield core.Supplier.get(this._options.apiKey)
|
|
399
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.
|
|
445
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.9", "User-Agent": "@airweave/sdk/v0.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
400
446
|
contentType: "application/json",
|
|
447
|
+
queryParameters: _queryParams,
|
|
401
448
|
requestType: "json",
|
|
402
449
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
403
450
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -456,23 +503,30 @@ class WhiteLabels {
|
|
|
456
503
|
* str: The OAuth2 authorization URL
|
|
457
504
|
*
|
|
458
505
|
* @param {string} whiteLabelId
|
|
506
|
+
* @param {AirweaveSDK.GetWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlGetRequest} request
|
|
459
507
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
460
508
|
*
|
|
461
509
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
462
510
|
*
|
|
463
511
|
* @example
|
|
464
|
-
* await client.whiteLabels.getWhiteLabelOauth2AuthUrl("white_label_id"
|
|
512
|
+
* await client.whiteLabels.getWhiteLabelOauth2AuthUrl("white_label_id", {
|
|
513
|
+
* creds: "creds"
|
|
514
|
+
* })
|
|
465
515
|
*/
|
|
466
|
-
getWhiteLabelOauth2AuthUrl(whiteLabelId, requestOptions) {
|
|
516
|
+
getWhiteLabelOauth2AuthUrl(whiteLabelId, request, requestOptions) {
|
|
467
517
|
return __awaiter(this, void 0, void 0, function* () {
|
|
468
518
|
var _a;
|
|
519
|
+
const { creds } = request;
|
|
520
|
+
const _queryParams = {};
|
|
521
|
+
_queryParams["creds"] = creds;
|
|
469
522
|
const _response = yield core.fetcher({
|
|
470
523
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `white_labels/${encodeURIComponent(whiteLabelId)}/oauth2/auth_url`),
|
|
471
524
|
method: "GET",
|
|
472
525
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
473
526
|
? yield core.Supplier.get(this._options.apiKey)
|
|
474
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.
|
|
527
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.9", "User-Agent": "@airweave/sdk/v0.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
475
528
|
contentType: "application/json",
|
|
529
|
+
queryParameters: _queryParams,
|
|
476
530
|
requestType: "json",
|
|
477
531
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
478
532
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -532,26 +586,33 @@ class WhiteLabels {
|
|
|
532
586
|
* connection (schemas.Connection): The created connection
|
|
533
587
|
*
|
|
534
588
|
* @param {string} whiteLabelId
|
|
535
|
-
* @param {
|
|
589
|
+
* @param {AirweaveSDK.ExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePostRequest} request
|
|
536
590
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
537
591
|
*
|
|
538
592
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
539
593
|
*
|
|
540
594
|
* @example
|
|
541
|
-
* await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id",
|
|
595
|
+
* await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", {
|
|
596
|
+
* creds: "creds",
|
|
597
|
+
* body: "string"
|
|
598
|
+
* })
|
|
542
599
|
*/
|
|
543
600
|
exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions) {
|
|
544
601
|
return __awaiter(this, void 0, void 0, function* () {
|
|
545
602
|
var _a;
|
|
603
|
+
const { creds, body: _body } = request;
|
|
604
|
+
const _queryParams = {};
|
|
605
|
+
_queryParams["creds"] = creds;
|
|
546
606
|
const _response = yield core.fetcher({
|
|
547
607
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `white_labels/${encodeURIComponent(whiteLabelId)}/oauth2/code`),
|
|
548
608
|
method: "POST",
|
|
549
609
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
550
610
|
? yield core.Supplier.get(this._options.apiKey)
|
|
551
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.
|
|
611
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.9", "User-Agent": "@airweave/sdk/v0.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
552
612
|
contentType: "application/json",
|
|
613
|
+
queryParameters: _queryParams,
|
|
553
614
|
requestType: "json",
|
|
554
|
-
body: serializers.whiteLabels.exchangeWhiteLabelOauth2Code.Request.jsonOrThrow(
|
|
615
|
+
body: serializers.whiteLabels.exchangeWhiteLabelOauth2Code.Request.jsonOrThrow(_body, {
|
|
555
616
|
unrecognizedObjectKeys: "strip",
|
|
556
617
|
}),
|
|
557
618
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -611,23 +672,30 @@ class WhiteLabels {
|
|
|
611
672
|
* list[schemas.Sync]: A list of syncs
|
|
612
673
|
*
|
|
613
674
|
* @param {string} whiteLabelId
|
|
675
|
+
* @param {AirweaveSDK.ListWhiteLabelSyncsWhiteLabelsWhiteLabelIdSyncsGetRequest} request
|
|
614
676
|
* @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
|
|
615
677
|
*
|
|
616
678
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
617
679
|
*
|
|
618
680
|
* @example
|
|
619
|
-
* await client.whiteLabels.listWhiteLabelSyncs("white_label_id"
|
|
681
|
+
* await client.whiteLabels.listWhiteLabelSyncs("white_label_id", {
|
|
682
|
+
* creds: "creds"
|
|
683
|
+
* })
|
|
620
684
|
*/
|
|
621
|
-
listWhiteLabelSyncs(whiteLabelId, requestOptions) {
|
|
685
|
+
listWhiteLabelSyncs(whiteLabelId, request, requestOptions) {
|
|
622
686
|
return __awaiter(this, void 0, void 0, function* () {
|
|
623
687
|
var _a;
|
|
688
|
+
const { creds } = request;
|
|
689
|
+
const _queryParams = {};
|
|
690
|
+
_queryParams["creds"] = creds;
|
|
624
691
|
const _response = yield core.fetcher({
|
|
625
692
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `white_labels/${encodeURIComponent(whiteLabelId)}/syncs`),
|
|
626
693
|
method: "GET",
|
|
627
694
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
628
695
|
? yield core.Supplier.get(this._options.apiKey)
|
|
629
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.
|
|
696
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.9", "User-Agent": "@airweave/sdk/v0.2.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
630
697
|
contentType: "application/json",
|
|
698
|
+
queryParameters: _queryParams,
|
|
631
699
|
requestType: "json",
|
|
632
700
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
633
701
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* creds: "creds",
|
|
8
|
+
* body: "string"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface ExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePostRequest {
|
|
12
|
+
creds: string;
|
|
13
|
+
body: string;
|
|
14
|
+
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
+
* creds: "creds",
|
|
7
8
|
* name: "name",
|
|
8
9
|
* sourceShortName: "source_short_name",
|
|
9
10
|
* redirectUrl: "redirect_url",
|
|
@@ -12,6 +13,7 @@
|
|
|
12
13
|
* }
|
|
13
14
|
*/
|
|
14
15
|
export interface WhiteLabelCreate {
|
|
16
|
+
creds: string;
|
|
15
17
|
name: string;
|
|
16
18
|
sourceShortName: string;
|
|
17
19
|
redirectUrl: string;
|
|
@@ -3,9 +3,16 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
|
-
* {
|
|
6
|
+
* {
|
|
7
|
+
* creds: "creds",
|
|
8
|
+
* name: undefined,
|
|
9
|
+
* redirectUrl: undefined,
|
|
10
|
+
* clientId: undefined,
|
|
11
|
+
* clientSecret: undefined
|
|
12
|
+
* }
|
|
7
13
|
*/
|
|
8
14
|
export interface WhiteLabelUpdate {
|
|
15
|
+
creds: string;
|
|
9
16
|
name?: string;
|
|
10
17
|
redirectUrl?: string;
|
|
11
18
|
clientId?: string;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
+
export { type ListWhiteLabelsWhiteLabelsListGetRequest } from "./ListWhiteLabelsWhiteLabelsListGetRequest";
|
|
1
2
|
export { type WhiteLabelCreate } from "./WhiteLabelCreate";
|
|
3
|
+
export { type GetWhiteLabelWhiteLabelsWhiteLabelIdGetRequest } from "./GetWhiteLabelWhiteLabelsWhiteLabelIdGetRequest";
|
|
2
4
|
export { type WhiteLabelUpdate } from "./WhiteLabelUpdate";
|
|
5
|
+
export { type DeleteWhiteLabelWhiteLabelsWhiteLabelIdDeleteRequest } from "./DeleteWhiteLabelWhiteLabelsWhiteLabelIdDeleteRequest";
|
|
6
|
+
export { type GetWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlGetRequest } from "./GetWhiteLabelOauth2AuthUrlWhiteLabelsWhiteLabelIdOauth2AuthUrlGetRequest";
|
|
7
|
+
export { type ExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePostRequest } from "./ExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePostRequest";
|
|
8
|
+
export { type ListWhiteLabelSyncsWhiteLabelsWhiteLabelIdSyncsGetRequest } from "./ListWhiteLabelSyncsWhiteLabelsWhiteLabelIdSyncsGetRequest";
|
package/dist/api/types/User.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as serializers from "../../../../index";
|
|
5
5
|
import * as AirweaveSDK from "../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../core";
|
|
7
|
-
export declare const BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost: core.serialization.Schema<serializers.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.Raw, AirweaveSDK.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost
|
|
7
|
+
export declare const BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost: core.serialization.Schema<serializers.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.Raw, Omit<AirweaveSDK.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost, "creds">>;
|
|
8
8
|
export declare namespace BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost {
|
|
9
9
|
interface Raw {
|
|
10
10
|
name?: string | null;
|