@airweave/sdk 0.2.19 → 0.2.22
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 +3 -12
- package/Client.js +13 -28
- package/README.md +13 -10
- package/api/resources/apiKeys/client/Client.d.ts +58 -0
- package/{dist/api/resources/destinations → api/resources/apiKeys}/client/Client.js +22 -98
- package/{dist/api/resources/users/client/requests/ReadUserUsersGetRequest.d.ts → api/resources/apiKeys/client/requests/ReadApiKeyApiKeysIdGetRequest.d.ts} +1 -1
- package/api/resources/apiKeys/client/requests/index.d.ts +1 -0
- package/api/resources/connections/client/Client.d.ts +0 -32
- package/api/resources/connections/client/Client.js +9 -101
- package/api/resources/connections/client/requests/index.d.ts +0 -1
- package/api/resources/embeddingModels/client/Client.js +2 -2
- package/api/resources/index.d.ts +2 -9
- package/api/resources/index.js +3 -10
- package/api/resources/search/client/Client.js +1 -1
- package/api/resources/sources/client/Client.js +2 -2
- package/api/resources/sync/client/Client.d.ts +1 -0
- package/api/resources/sync/client/Client.js +21 -12
- package/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +4 -0
- package/api/resources/whiteLabels/client/Client.js +8 -8
- package/api/types/ApiKey.d.ts +1 -1
- package/api/types/ApiKeyCreate.d.ts +1 -0
- package/api/types/ApiKeyWithPlainKey.d.ts +1 -1
- package/api/{resources/connections/client/requests → types}/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +0 -9
- package/api/types/EntityCount.d.ts +9 -0
- package/api/types/EntityDefinitionCreate.d.ts +16 -0
- package/api/types/EntityDefinitionUpdate.d.ts +16 -0
- package/{dist/api/resources/entities/client/requests → api/types}/EntityRelationCreate.d.ts +1 -9
- package/{dist/api/resources/entities/client/requests → api/types}/EntityRelationUpdate.d.ts +1 -9
- package/api/types/Organization.d.ts +13 -0
- package/api/types/SyncJob.d.ts +5 -4
- package/api/types/TransformerCreate.d.ts +15 -0
- package/api/types/TransformerUpdate.d.ts +15 -0
- package/{dist/api/resources/users/client/requests → api/types}/UserCreate.d.ts +1 -8
- package/api/types/index.d.ts +12 -0
- package/api/types/index.js +12 -0
- package/dist/Client.d.ts +3 -12
- package/dist/Client.js +13 -28
- package/dist/api/resources/apiKeys/client/Client.d.ts +58 -0
- package/{api/resources/destinations → dist/api/resources/apiKeys}/client/Client.js +22 -98
- package/{api/resources/users/client/requests/ReadUserUsersGetRequest.d.ts → dist/api/resources/apiKeys/client/requests/ReadApiKeyApiKeysIdGetRequest.d.ts} +1 -1
- package/dist/api/resources/apiKeys/client/requests/index.d.ts +1 -0
- package/dist/api/resources/connections/client/Client.d.ts +0 -32
- package/dist/api/resources/connections/client/Client.js +9 -101
- package/dist/api/resources/connections/client/requests/index.d.ts +0 -1
- package/dist/api/resources/embeddingModels/client/Client.js +2 -2
- package/dist/api/resources/index.d.ts +2 -9
- package/dist/api/resources/index.js +3 -10
- package/dist/api/resources/search/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.js +2 -2
- package/dist/api/resources/sync/client/Client.d.ts +1 -0
- package/dist/api/resources/sync/client/Client.js +21 -12
- package/dist/api/resources/sync/client/requests/ListAllJobsSyncJobsGetRequest.d.ts +4 -0
- package/dist/api/resources/whiteLabels/client/Client.js +8 -8
- package/dist/api/types/ApiKey.d.ts +1 -1
- package/dist/api/types/ApiKeyCreate.d.ts +1 -0
- package/dist/api/types/ApiKeyWithPlainKey.d.ts +1 -1
- package/dist/api/{resources/connections/client/requests → types}/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +0 -9
- package/dist/api/types/EntityCount.d.ts +9 -0
- package/dist/api/types/EntityDefinitionCreate.d.ts +16 -0
- package/dist/api/types/EntityDefinitionUpdate.d.ts +16 -0
- package/{api/resources/entities/client/requests → dist/api/types}/EntityRelationCreate.d.ts +1 -9
- package/{api/resources/entities/client/requests → dist/api/types}/EntityRelationUpdate.d.ts +1 -9
- package/dist/api/types/Organization.d.ts +13 -0
- package/dist/api/types/SyncJob.d.ts +5 -4
- package/dist/api/types/TransformerCreate.d.ts +15 -0
- package/dist/api/types/TransformerUpdate.d.ts +15 -0
- package/{api/resources/users/client/requests → dist/api/types}/UserCreate.d.ts +1 -8
- package/dist/api/types/index.d.ts +12 -0
- package/dist/api/types/index.js +12 -0
- package/dist/serialization/resources/connections/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/connections/client/requests/index.js +1 -3
- package/dist/serialization/resources/index.d.ts +0 -8
- package/dist/serialization/resources/index.js +1 -9
- package/dist/serialization/types/ApiKey.d.ts +1 -1
- package/dist/serialization/types/ApiKey.js +1 -1
- package/dist/serialization/types/ApiKeyWithPlainKey.d.ts +1 -1
- package/dist/serialization/types/ApiKeyWithPlainKey.js +1 -1
- package/dist/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +13 -0
- package/dist/serialization/{resources/connections/client/requests → types}/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +1 -1
- package/dist/serialization/types/EntityCount.d.ts +12 -0
- package/dist/serialization/{resources/transformers/client/listTransformers.js → types/EntityCount.js} +5 -4
- package/{serialization/resources/entities/client/requests → dist/serialization/types}/EntityDefinitionCreate.d.ts +6 -6
- package/dist/serialization/{resources/entities/client/requests → types}/EntityDefinitionCreate.js +3 -3
- package/dist/serialization/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.d.ts +3 -3
- package/dist/serialization/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.js +1 -1
- package/dist/serialization/{resources/entities/client/requests → types}/EntityDefinitionUpdate.d.ts +6 -6
- package/dist/serialization/{resources/entities/client/requests → types}/EntityDefinitionUpdate.js +3 -3
- package/dist/serialization/{resources/entities/types → types}/EntityDefinitionUpdateEntitySchema.d.ts +3 -3
- package/dist/serialization/{resources/entities/types → types}/EntityDefinitionUpdateEntitySchema.js +1 -1
- package/dist/serialization/types/EntityRelationCreate.d.ts +15 -0
- package/dist/serialization/{resources/entities/client/requests → types}/EntityRelationCreate.js +1 -1
- package/dist/serialization/types/EntityRelationUpdate.d.ts +15 -0
- package/dist/serialization/{resources/entities/client/requests → types}/EntityRelationUpdate.js +1 -1
- package/dist/serialization/types/Organization.d.ts +16 -0
- package/dist/serialization/types/Organization.js +47 -0
- package/dist/serialization/types/SyncJob.d.ts +5 -4
- package/dist/serialization/types/SyncJob.js +5 -4
- package/{serialization/resources/transformers/client/requests → dist/serialization/types}/TransformerCreate.d.ts +4 -4
- package/dist/serialization/{resources/transformers/client/requests → types}/TransformerCreate.js +1 -1
- package/dist/serialization/{resources/transformers/client/requests → types}/TransformerUpdate.d.ts +4 -4
- package/{serialization/resources/transformers/client/requests → dist/serialization/types}/TransformerUpdate.js +1 -1
- package/dist/serialization/types/UserCreate.d.ts +14 -0
- package/dist/serialization/{resources/users/client/requests → types}/UserCreate.js +1 -1
- package/dist/serialization/types/index.d.ts +12 -0
- package/dist/serialization/types/index.js +12 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +49 -1147
- package/serialization/resources/connections/client/requests/index.d.ts +0 -1
- package/serialization/resources/connections/client/requests/index.js +1 -3
- package/serialization/resources/index.d.ts +0 -8
- package/serialization/resources/index.js +1 -9
- package/serialization/types/ApiKey.d.ts +1 -1
- package/serialization/types/ApiKey.js +1 -1
- package/serialization/types/ApiKeyWithPlainKey.d.ts +1 -1
- package/serialization/types/ApiKeyWithPlainKey.js +1 -1
- package/serialization/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +13 -0
- package/serialization/{resources/connections/client/requests → types}/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +1 -1
- package/serialization/types/EntityCount.d.ts +12 -0
- package/serialization/{resources/transformers/client/listTransformers.js → types/EntityCount.js} +5 -4
- package/{dist/serialization/resources/entities/client/requests → serialization/types}/EntityDefinitionCreate.d.ts +6 -6
- package/serialization/{resources/entities/client/requests → types}/EntityDefinitionCreate.js +3 -3
- package/serialization/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.d.ts +3 -3
- package/serialization/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.js +1 -1
- package/serialization/{resources/entities/client/requests → types}/EntityDefinitionUpdate.d.ts +6 -6
- package/serialization/{resources/entities/client/requests → types}/EntityDefinitionUpdate.js +3 -3
- package/serialization/{resources/entities/types → types}/EntityDefinitionUpdateEntitySchema.d.ts +3 -3
- package/serialization/{resources/entities/types → types}/EntityDefinitionUpdateEntitySchema.js +1 -1
- package/serialization/types/EntityRelationCreate.d.ts +15 -0
- package/serialization/{resources/entities/client/requests → types}/EntityRelationCreate.js +1 -1
- package/serialization/types/EntityRelationUpdate.d.ts +15 -0
- package/serialization/{resources/entities/client/requests → types}/EntityRelationUpdate.js +1 -1
- package/serialization/types/Organization.d.ts +16 -0
- package/serialization/types/Organization.js +47 -0
- package/serialization/types/SyncJob.d.ts +5 -4
- package/serialization/types/SyncJob.js +5 -4
- package/{dist/serialization/resources/transformers/client/requests → serialization/types}/TransformerCreate.d.ts +4 -4
- package/serialization/{resources/transformers/client/requests → types}/TransformerCreate.js +1 -1
- package/serialization/{resources/transformers/client/requests → types}/TransformerUpdate.d.ts +4 -4
- package/{dist/serialization/resources/transformers/client/requests → serialization/types}/TransformerUpdate.js +1 -1
- package/serialization/types/UserCreate.d.ts +14 -0
- package/serialization/{resources/users/client/requests → types}/UserCreate.js +1 -1
- package/serialization/types/index.d.ts +12 -0
- package/serialization/types/index.js +12 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/destinations/client/Client.d.ts +0 -77
- package/api/resources/destinations/client/requests/ListDestinationsDestinationsListGetRequest.d.ts +0 -12
- package/api/resources/destinations/client/requests/ReadDestinationDestinationsDetailShortNameGetRequest.d.ts +0 -12
- package/api/resources/destinations/client/requests/index.d.ts +0 -2
- package/api/resources/entities/client/Client.d.ts +0 -175
- package/api/resources/entities/client/Client.js +0 -684
- package/api/resources/entities/client/requests/EntityDefinitionCreate.d.ts +0 -27
- package/api/resources/entities/client/requests/EntityDefinitionUpdate.d.ts +0 -27
- package/api/resources/entities/client/requests/GetEntityDefinitionsByIdsEntitiesDefinitionsByIdsPostRequest.d.ts +0 -14
- package/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +0 -14
- package/api/resources/entities/client/requests/ListEntityDefinitionsEntitiesDefinitionsGetRequest.d.ts +0 -12
- package/api/resources/entities/client/requests/ListEntityRelationsEntitiesRelationsGetRequest.d.ts +0 -12
- package/api/resources/entities/client/requests/index.d.ts +0 -8
- package/api/resources/entities/index.d.ts +0 -2
- package/api/resources/entities/index.js +0 -18
- package/api/resources/entities/types/index.d.ts +0 -2
- package/api/resources/entities/types/index.js +0 -18
- package/api/resources/transformers/client/Client.d.ts +0 -86
- package/api/resources/transformers/client/Client.js +0 -304
- package/api/resources/transformers/client/index.d.ts +0 -1
- package/api/resources/transformers/client/index.js +0 -17
- package/api/resources/transformers/client/requests/ListTransformersTransformersGetRequest.d.ts +0 -12
- package/api/resources/transformers/client/requests/ListTransformersTransformersGetRequest.js +0 -5
- package/api/resources/transformers/client/requests/TransformerCreate.d.ts +0 -26
- package/api/resources/transformers/client/requests/TransformerUpdate.d.ts +0 -26
- package/api/resources/transformers/client/requests/index.d.ts +0 -3
- package/api/resources/transformers/client/requests/index.js +0 -2
- package/api/resources/users/client/Client.d.ts +0 -81
- package/api/resources/users/client/Client.js +0 -241
- package/api/resources/users/client/index.d.ts +0 -1
- package/api/resources/users/client/index.js +0 -17
- package/api/resources/users/client/requests/ReadUserUsersGetRequest.js +0 -5
- package/api/resources/users/client/requests/index.d.ts +0 -2
- package/api/resources/users/client/requests/index.js +0 -2
- package/api/resources/users/index.d.ts +0 -1
- package/api/resources/users/index.js +0 -17
- package/dist/api/resources/destinations/client/Client.d.ts +0 -77
- package/dist/api/resources/destinations/client/index.d.ts +0 -1
- package/dist/api/resources/destinations/client/index.js +0 -17
- package/dist/api/resources/destinations/client/requests/ListDestinationsDestinationsListGetRequest.d.ts +0 -12
- package/dist/api/resources/destinations/client/requests/ListDestinationsDestinationsListGetRequest.js +0 -5
- package/dist/api/resources/destinations/client/requests/ReadDestinationDestinationsDetailShortNameGetRequest.d.ts +0 -12
- package/dist/api/resources/destinations/client/requests/ReadDestinationDestinationsDetailShortNameGetRequest.js +0 -5
- package/dist/api/resources/destinations/client/requests/index.d.ts +0 -2
- package/dist/api/resources/destinations/client/requests/index.js +0 -2
- package/dist/api/resources/destinations/index.d.ts +0 -1
- package/dist/api/resources/destinations/index.js +0 -17
- package/dist/api/resources/entities/client/Client.d.ts +0 -175
- package/dist/api/resources/entities/client/Client.js +0 -684
- package/dist/api/resources/entities/client/index.d.ts +0 -1
- package/dist/api/resources/entities/client/index.js +0 -17
- package/dist/api/resources/entities/client/requests/EntityDefinitionCreate.d.ts +0 -27
- package/dist/api/resources/entities/client/requests/EntityDefinitionUpdate.d.ts +0 -27
- package/dist/api/resources/entities/client/requests/GetEntityDefinitionsByIdsEntitiesDefinitionsByIdsPostRequest.d.ts +0 -14
- package/dist/api/resources/entities/client/requests/GetEntityDefinitionsByIdsEntitiesDefinitionsByIdsPostRequest.js +0 -5
- package/dist/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.d.ts +0 -14
- package/dist/api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.js +0 -5
- package/dist/api/resources/entities/client/requests/ListEntityDefinitionsEntitiesDefinitionsGetRequest.d.ts +0 -12
- package/dist/api/resources/entities/client/requests/ListEntityDefinitionsEntitiesDefinitionsGetRequest.js +0 -5
- package/dist/api/resources/entities/client/requests/ListEntityRelationsEntitiesRelationsGetRequest.d.ts +0 -12
- package/dist/api/resources/entities/client/requests/ListEntityRelationsEntitiesRelationsGetRequest.js +0 -5
- package/dist/api/resources/entities/client/requests/index.d.ts +0 -8
- package/dist/api/resources/entities/client/requests/index.js +0 -2
- package/dist/api/resources/entities/index.d.ts +0 -2
- package/dist/api/resources/entities/index.js +0 -18
- package/dist/api/resources/entities/types/index.d.ts +0 -2
- package/dist/api/resources/entities/types/index.js +0 -18
- package/dist/api/resources/transformers/client/Client.d.ts +0 -86
- package/dist/api/resources/transformers/client/Client.js +0 -304
- package/dist/api/resources/transformers/client/index.d.ts +0 -1
- package/dist/api/resources/transformers/client/index.js +0 -17
- package/dist/api/resources/transformers/client/requests/ListTransformersTransformersGetRequest.d.ts +0 -12
- package/dist/api/resources/transformers/client/requests/ListTransformersTransformersGetRequest.js +0 -5
- package/dist/api/resources/transformers/client/requests/TransformerCreate.d.ts +0 -26
- package/dist/api/resources/transformers/client/requests/TransformerUpdate.d.ts +0 -26
- package/dist/api/resources/transformers/client/requests/index.d.ts +0 -3
- package/dist/api/resources/transformers/client/requests/index.js +0 -2
- package/dist/api/resources/transformers/index.d.ts +0 -1
- package/dist/api/resources/transformers/index.js +0 -17
- package/dist/api/resources/users/client/Client.d.ts +0 -81
- package/dist/api/resources/users/client/Client.js +0 -241
- package/dist/api/resources/users/client/index.d.ts +0 -1
- package/dist/api/resources/users/client/index.js +0 -17
- package/dist/api/resources/users/client/requests/ReadUserUsersGetRequest.js +0 -5
- package/dist/api/resources/users/client/requests/index.d.ts +0 -2
- package/dist/api/resources/users/client/requests/index.js +0 -2
- package/dist/api/resources/users/index.d.ts +0 -1
- package/dist/api/resources/users/index.js +0 -17
- package/dist/serialization/resources/connections/client/requests/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +0 -13
- package/dist/serialization/resources/destinations/client/index.d.ts +0 -1
- package/dist/serialization/resources/destinations/client/index.js +0 -37
- package/dist/serialization/resources/destinations/client/listDestinations.d.ts +0 -11
- package/dist/serialization/resources/destinations/client/listDestinations.js +0 -42
- package/dist/serialization/resources/destinations/index.d.ts +0 -1
- package/dist/serialization/resources/destinations/index.js +0 -17
- package/dist/serialization/resources/entities/client/getEntityDefinitionsByIds.d.ts +0 -15
- package/dist/serialization/resources/entities/client/getEntityDefinitionsByIds.js +0 -43
- package/dist/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.d.ts +0 -11
- package/dist/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.js +0 -42
- package/dist/serialization/resources/entities/client/index.d.ts +0 -5
- package/dist/serialization/resources/entities/client/index.js +0 -44
- package/dist/serialization/resources/entities/client/listEntityDefinitions.d.ts +0 -11
- package/dist/serialization/resources/entities/client/listEntityDefinitions.js +0 -42
- package/dist/serialization/resources/entities/client/listEntityRelations.d.ts +0 -11
- package/dist/serialization/resources/entities/client/listEntityRelations.js +0 -42
- package/dist/serialization/resources/entities/client/requests/EntityRelationCreate.d.ts +0 -15
- package/dist/serialization/resources/entities/client/requests/EntityRelationUpdate.d.ts +0 -15
- package/dist/serialization/resources/entities/client/requests/index.d.ts +0 -4
- package/dist/serialization/resources/entities/client/requests/index.js +0 -11
- package/dist/serialization/resources/entities/index.d.ts +0 -2
- package/dist/serialization/resources/entities/index.js +0 -18
- package/dist/serialization/resources/entities/types/index.d.ts +0 -2
- package/dist/serialization/resources/entities/types/index.js +0 -18
- package/dist/serialization/resources/transformers/client/index.d.ts +0 -2
- package/dist/serialization/resources/transformers/client/index.js +0 -41
- package/dist/serialization/resources/transformers/client/listTransformers.d.ts +0 -11
- package/dist/serialization/resources/transformers/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/transformers/client/requests/index.js +0 -7
- package/dist/serialization/resources/transformers/index.d.ts +0 -1
- package/dist/serialization/resources/transformers/index.js +0 -17
- package/dist/serialization/resources/users/client/index.d.ts +0 -1
- package/dist/serialization/resources/users/client/index.js +0 -17
- package/dist/serialization/resources/users/client/requests/UserCreate.d.ts +0 -14
- package/dist/serialization/resources/users/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/users/client/requests/index.js +0 -5
- package/dist/serialization/resources/users/index.d.ts +0 -1
- package/dist/serialization/resources/users/index.js +0 -17
- package/serialization/resources/connections/client/requests/BodySendOauth2CodeConnectionsOauth2SourceCodePost.d.ts +0 -13
- package/serialization/resources/destinations/client/index.d.ts +0 -1
- package/serialization/resources/destinations/client/index.js +0 -37
- package/serialization/resources/destinations/client/listDestinations.d.ts +0 -11
- package/serialization/resources/destinations/client/listDestinations.js +0 -42
- package/serialization/resources/destinations/index.d.ts +0 -1
- package/serialization/resources/destinations/index.js +0 -17
- package/serialization/resources/entities/client/getEntityDefinitionsByIds.d.ts +0 -15
- package/serialization/resources/entities/client/getEntityDefinitionsByIds.js +0 -43
- package/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.d.ts +0 -11
- package/serialization/resources/entities/client/getEntityDefinitionsBySourceShortName.js +0 -42
- package/serialization/resources/entities/client/index.d.ts +0 -5
- package/serialization/resources/entities/client/index.js +0 -44
- package/serialization/resources/entities/client/listEntityDefinitions.d.ts +0 -11
- package/serialization/resources/entities/client/listEntityDefinitions.js +0 -42
- package/serialization/resources/entities/client/listEntityRelations.d.ts +0 -11
- package/serialization/resources/entities/client/listEntityRelations.js +0 -42
- package/serialization/resources/entities/client/requests/EntityRelationCreate.d.ts +0 -15
- package/serialization/resources/entities/client/requests/EntityRelationUpdate.d.ts +0 -15
- package/serialization/resources/entities/client/requests/index.d.ts +0 -4
- package/serialization/resources/entities/client/requests/index.js +0 -11
- package/serialization/resources/entities/index.d.ts +0 -2
- package/serialization/resources/entities/index.js +0 -18
- package/serialization/resources/entities/types/index.d.ts +0 -2
- package/serialization/resources/entities/types/index.js +0 -18
- package/serialization/resources/transformers/client/index.d.ts +0 -2
- package/serialization/resources/transformers/client/index.js +0 -41
- package/serialization/resources/transformers/client/listTransformers.d.ts +0 -11
- package/serialization/resources/transformers/client/requests/index.d.ts +0 -2
- package/serialization/resources/transformers/client/requests/index.js +0 -7
- package/serialization/resources/transformers/index.d.ts +0 -1
- package/serialization/resources/transformers/index.js +0 -17
- package/serialization/resources/users/client/index.d.ts +0 -1
- package/serialization/resources/users/client/index.js +0 -17
- package/serialization/resources/users/client/requests/UserCreate.d.ts +0 -14
- package/serialization/resources/users/client/requests/index.d.ts +0 -1
- package/serialization/resources/users/client/requests/index.js +0 -5
- package/serialization/resources/users/index.d.ts +0 -1
- package/serialization/resources/users/index.js +0 -17
- /package/api/resources/{destinations → apiKeys}/client/index.d.ts +0 -0
- /package/api/resources/{destinations → apiKeys}/client/index.js +0 -0
- /package/api/resources/{connections/client/requests/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js → apiKeys/client/requests/ReadApiKeyApiKeysIdGetRequest.js} +0 -0
- /package/api/resources/{destinations → apiKeys}/client/requests/index.js +0 -0
- /package/api/resources/{destinations → apiKeys}/index.d.ts +0 -0
- /package/api/resources/{destinations → apiKeys}/index.js +0 -0
- /package/{dist/api/resources/connections/client/requests → api/types}/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js +0 -0
- /package/api/{resources/destinations/client/requests/ListDestinationsDestinationsListGetRequest.js → types/EntityCount.js} +0 -0
- /package/api/{resources/entities/client/requests → types}/EntityDefinitionCreate.js +0 -0
- /package/api/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.d.ts +0 -0
- /package/api/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.js +0 -0
- /package/api/{resources/entities/client/requests → types}/EntityDefinitionUpdate.js +0 -0
- /package/api/{resources/entities/types → types}/EntityDefinitionUpdateEntitySchema.d.ts +0 -0
- /package/api/{resources/entities/types → types}/EntityDefinitionUpdateEntitySchema.js +0 -0
- /package/api/{resources/entities/client/requests → types}/EntityRelationCreate.js +0 -0
- /package/api/{resources/entities/client/requests → types}/EntityRelationUpdate.js +0 -0
- /package/api/{resources/destinations/client/requests/ReadDestinationDestinationsDetailShortNameGetRequest.js → types/Organization.js} +0 -0
- /package/api/{resources/transformers/client/requests → types}/TransformerCreate.js +0 -0
- /package/api/{resources/transformers/client/requests → types}/TransformerUpdate.js +0 -0
- /package/api/{resources/users/client/requests → types}/UserCreate.js +0 -0
- /package/{api/resources/entities → dist/api/resources/apiKeys}/client/index.d.ts +0 -0
- /package/{api/resources/entities → dist/api/resources/apiKeys}/client/index.js +0 -0
- /package/{api/resources/entities/client/requests/GetEntityDefinitionsByIdsEntitiesDefinitionsByIdsPostRequest.js → dist/api/resources/apiKeys/client/requests/ReadApiKeyApiKeysIdGetRequest.js} +0 -0
- /package/{api/resources/entities → dist/api/resources/apiKeys}/client/requests/index.js +0 -0
- /package/{api/resources/transformers → dist/api/resources/apiKeys}/index.d.ts +0 -0
- /package/{api/resources/transformers → dist/api/resources/apiKeys}/index.js +0 -0
- /package/{api/resources/entities/client/requests/GetEntityDefinitionsBySourceShortNameEntitiesDefinitionsBySourceGetRequest.js → dist/api/types/BodySendOauth2CodeConnectionsOauth2SourceCodePost.js} +0 -0
- /package/{api/resources/entities/client/requests/ListEntityDefinitionsEntitiesDefinitionsGetRequest.js → dist/api/types/EntityCount.js} +0 -0
- /package/dist/api/{resources/entities/client/requests → types}/EntityDefinitionCreate.js +0 -0
- /package/dist/api/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.d.ts +0 -0
- /package/dist/api/{resources/entities/types → types}/EntityDefinitionCreateEntitySchema.js +0 -0
- /package/dist/api/{resources/entities/client/requests → types}/EntityDefinitionUpdate.js +0 -0
- /package/dist/api/{resources/entities/types → types}/EntityDefinitionUpdateEntitySchema.d.ts +0 -0
- /package/dist/api/{resources/entities/types → types}/EntityDefinitionUpdateEntitySchema.js +0 -0
- /package/dist/api/{resources/entities/client/requests → types}/EntityRelationCreate.js +0 -0
- /package/dist/api/{resources/entities/client/requests → types}/EntityRelationUpdate.js +0 -0
- /package/{api/resources/entities/client/requests/ListEntityRelationsEntitiesRelationsGetRequest.js → dist/api/types/Organization.js} +0 -0
- /package/dist/api/{resources/transformers/client/requests → types}/TransformerCreate.js +0 -0
- /package/dist/api/{resources/transformers/client/requests → types}/TransformerUpdate.js +0 -0
- /package/dist/api/{resources/users/client/requests → types}/UserCreate.js +0 -0
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as environments from "../../../../environments";
|
|
5
|
-
import * as core from "../../../../core";
|
|
6
|
-
import * as AirweaveSDK from "../../../index";
|
|
7
|
-
export declare namespace Users {
|
|
8
|
-
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
|
|
10
|
-
/** Override the x-api-key header */
|
|
11
|
-
apiKey?: core.Supplier<string | undefined>;
|
|
12
|
-
}
|
|
13
|
-
interface RequestOptions {
|
|
14
|
-
/** The maximum time to wait for a response in seconds. */
|
|
15
|
-
timeoutInSeconds?: number;
|
|
16
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
17
|
-
maxRetries?: number;
|
|
18
|
-
/** A hook to abort the request. */
|
|
19
|
-
abortSignal?: AbortSignal;
|
|
20
|
-
/** Override the x-api-key header */
|
|
21
|
-
apiKey?: string | undefined;
|
|
22
|
-
/** Additional headers to include in the request. */
|
|
23
|
-
headers?: Record<string, string>;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export declare class Users {
|
|
27
|
-
protected readonly _options: Users.Options;
|
|
28
|
-
constructor(_options?: Users.Options);
|
|
29
|
-
/**
|
|
30
|
-
* Get current user.
|
|
31
|
-
*
|
|
32
|
-
* Args:
|
|
33
|
-
* ----
|
|
34
|
-
* current_user (User): The current user.
|
|
35
|
-
*
|
|
36
|
-
* Returns:
|
|
37
|
-
* -------
|
|
38
|
-
* schemas.User: The user object.
|
|
39
|
-
*
|
|
40
|
-
* @param {AirweaveSDK.ReadUserUsersGetRequest} request
|
|
41
|
-
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
|
|
42
|
-
*
|
|
43
|
-
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* await client.users.readUser({
|
|
47
|
-
* creds: "creds"
|
|
48
|
-
* })
|
|
49
|
-
*/
|
|
50
|
-
readUser(request: AirweaveSDK.ReadUserUsersGetRequest, requestOptions?: Users.RequestOptions): Promise<AirweaveSDK.User>;
|
|
51
|
-
/**
|
|
52
|
-
* Create new user in database if it does not exist.
|
|
53
|
-
*
|
|
54
|
-
* Can only create user with the same email as the authenticated user.
|
|
55
|
-
*
|
|
56
|
-
* Args:
|
|
57
|
-
* user_data (schemas.UserCreate): The user object to be created.
|
|
58
|
-
* db (AsyncSession): Database session dependency to handle database operations.
|
|
59
|
-
* auth0_user (Auth0User): Authenticated auth0 user.
|
|
60
|
-
*
|
|
61
|
-
* Returns:
|
|
62
|
-
* schemas.User: The created user object.
|
|
63
|
-
*
|
|
64
|
-
* Raises:
|
|
65
|
-
* HTTPException: If the user is not authorized to create this user.
|
|
66
|
-
*
|
|
67
|
-
* @param {AirweaveSDK.UserCreate} request
|
|
68
|
-
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
|
-
*
|
|
70
|
-
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* await client.users.createOrUpdateUser({
|
|
74
|
-
* creds: "creds",
|
|
75
|
-
* email: "email",
|
|
76
|
-
* fullName: undefined,
|
|
77
|
-
* organizationId: undefined
|
|
78
|
-
* })
|
|
79
|
-
*/
|
|
80
|
-
createOrUpdateUser(request: AirweaveSDK.UserCreate, requestOptions?: Users.RequestOptions): Promise<AirweaveSDK.User>;
|
|
81
|
-
}
|
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
48
|
-
var t = {};
|
|
49
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
-
t[p] = s[p];
|
|
51
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
54
|
-
t[p[i]] = s[p[i]];
|
|
55
|
-
}
|
|
56
|
-
return t;
|
|
57
|
-
};
|
|
58
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
59
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
60
|
-
};
|
|
61
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
|
-
exports.Users = void 0;
|
|
63
|
-
const environments = __importStar(require("../../../../environments"));
|
|
64
|
-
const core = __importStar(require("../../../../core"));
|
|
65
|
-
const AirweaveSDK = __importStar(require("../../../index"));
|
|
66
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
67
|
-
const serializers = __importStar(require("../../../../serialization/index"));
|
|
68
|
-
const errors = __importStar(require("../../../../errors/index"));
|
|
69
|
-
class Users {
|
|
70
|
-
constructor(_options = {}) {
|
|
71
|
-
this._options = _options;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Get current user.
|
|
75
|
-
*
|
|
76
|
-
* Args:
|
|
77
|
-
* ----
|
|
78
|
-
* current_user (User): The current user.
|
|
79
|
-
*
|
|
80
|
-
* Returns:
|
|
81
|
-
* -------
|
|
82
|
-
* schemas.User: The user object.
|
|
83
|
-
*
|
|
84
|
-
* @param {AirweaveSDK.ReadUserUsersGetRequest} request
|
|
85
|
-
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
|
|
86
|
-
*
|
|
87
|
-
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
88
|
-
*
|
|
89
|
-
* @example
|
|
90
|
-
* await client.users.readUser({
|
|
91
|
-
* creds: "creds"
|
|
92
|
-
* })
|
|
93
|
-
*/
|
|
94
|
-
readUser(request, requestOptions) {
|
|
95
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
-
var _a;
|
|
97
|
-
const { creds } = request;
|
|
98
|
-
const _queryParams = {};
|
|
99
|
-
_queryParams["creds"] = creds;
|
|
100
|
-
const _response = yield core.fetcher({
|
|
101
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "users/"),
|
|
102
|
-
method: "GET",
|
|
103
|
-
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
104
|
-
? yield core.Supplier.get(this._options.apiKey)
|
|
105
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.19", "User-Agent": "@airweave/sdk/v0.2.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
106
|
-
contentType: "application/json",
|
|
107
|
-
queryParameters: _queryParams,
|
|
108
|
-
requestType: "json",
|
|
109
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
110
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
111
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
112
|
-
});
|
|
113
|
-
if (_response.ok) {
|
|
114
|
-
return serializers.User.parseOrThrow(_response.body, {
|
|
115
|
-
unrecognizedObjectKeys: "passthrough",
|
|
116
|
-
allowUnrecognizedUnionMembers: true,
|
|
117
|
-
allowUnrecognizedEnumValues: true,
|
|
118
|
-
breadcrumbsPrefix: ["response"],
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
if (_response.error.reason === "status-code") {
|
|
122
|
-
switch (_response.error.statusCode) {
|
|
123
|
-
case 422:
|
|
124
|
-
throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
125
|
-
unrecognizedObjectKeys: "passthrough",
|
|
126
|
-
allowUnrecognizedUnionMembers: true,
|
|
127
|
-
allowUnrecognizedEnumValues: true,
|
|
128
|
-
breadcrumbsPrefix: ["response"],
|
|
129
|
-
}));
|
|
130
|
-
default:
|
|
131
|
-
throw new errors.AirweaveSDKError({
|
|
132
|
-
statusCode: _response.error.statusCode,
|
|
133
|
-
body: _response.error.body,
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
switch (_response.error.reason) {
|
|
138
|
-
case "non-json":
|
|
139
|
-
throw new errors.AirweaveSDKError({
|
|
140
|
-
statusCode: _response.error.statusCode,
|
|
141
|
-
body: _response.error.rawBody,
|
|
142
|
-
});
|
|
143
|
-
case "timeout":
|
|
144
|
-
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /users/.");
|
|
145
|
-
case "unknown":
|
|
146
|
-
throw new errors.AirweaveSDKError({
|
|
147
|
-
message: _response.error.errorMessage,
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Create new user in database if it does not exist.
|
|
154
|
-
*
|
|
155
|
-
* Can only create user with the same email as the authenticated user.
|
|
156
|
-
*
|
|
157
|
-
* Args:
|
|
158
|
-
* user_data (schemas.UserCreate): The user object to be created.
|
|
159
|
-
* db (AsyncSession): Database session dependency to handle database operations.
|
|
160
|
-
* auth0_user (Auth0User): Authenticated auth0 user.
|
|
161
|
-
*
|
|
162
|
-
* Returns:
|
|
163
|
-
* schemas.User: The created user object.
|
|
164
|
-
*
|
|
165
|
-
* Raises:
|
|
166
|
-
* HTTPException: If the user is not authorized to create this user.
|
|
167
|
-
*
|
|
168
|
-
* @param {AirweaveSDK.UserCreate} request
|
|
169
|
-
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
|
|
170
|
-
*
|
|
171
|
-
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
172
|
-
*
|
|
173
|
-
* @example
|
|
174
|
-
* await client.users.createOrUpdateUser({
|
|
175
|
-
* creds: "creds",
|
|
176
|
-
* email: "email",
|
|
177
|
-
* fullName: undefined,
|
|
178
|
-
* organizationId: undefined
|
|
179
|
-
* })
|
|
180
|
-
*/
|
|
181
|
-
createOrUpdateUser(request, requestOptions) {
|
|
182
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
183
|
-
var _a;
|
|
184
|
-
const { creds } = request, _body = __rest(request, ["creds"]);
|
|
185
|
-
const _queryParams = {};
|
|
186
|
-
_queryParams["creds"] = creds;
|
|
187
|
-
const _response = yield core.fetcher({
|
|
188
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "users/create_or_update"),
|
|
189
|
-
method: "POST",
|
|
190
|
-
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
191
|
-
? yield core.Supplier.get(this._options.apiKey)
|
|
192
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.19", "User-Agent": "@airweave/sdk/v0.2.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
193
|
-
contentType: "application/json",
|
|
194
|
-
queryParameters: _queryParams,
|
|
195
|
-
requestType: "json",
|
|
196
|
-
body: serializers.UserCreate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
197
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
198
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
199
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
200
|
-
});
|
|
201
|
-
if (_response.ok) {
|
|
202
|
-
return serializers.User.parseOrThrow(_response.body, {
|
|
203
|
-
unrecognizedObjectKeys: "passthrough",
|
|
204
|
-
allowUnrecognizedUnionMembers: true,
|
|
205
|
-
allowUnrecognizedEnumValues: true,
|
|
206
|
-
breadcrumbsPrefix: ["response"],
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
if (_response.error.reason === "status-code") {
|
|
210
|
-
switch (_response.error.statusCode) {
|
|
211
|
-
case 422:
|
|
212
|
-
throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
213
|
-
unrecognizedObjectKeys: "passthrough",
|
|
214
|
-
allowUnrecognizedUnionMembers: true,
|
|
215
|
-
allowUnrecognizedEnumValues: true,
|
|
216
|
-
breadcrumbsPrefix: ["response"],
|
|
217
|
-
}));
|
|
218
|
-
default:
|
|
219
|
-
throw new errors.AirweaveSDKError({
|
|
220
|
-
statusCode: _response.error.statusCode,
|
|
221
|
-
body: _response.error.body,
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
switch (_response.error.reason) {
|
|
226
|
-
case "non-json":
|
|
227
|
-
throw new errors.AirweaveSDKError({
|
|
228
|
-
statusCode: _response.error.statusCode,
|
|
229
|
-
body: _response.error.rawBody,
|
|
230
|
-
});
|
|
231
|
-
case "timeout":
|
|
232
|
-
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling POST /users/create_or_update.");
|
|
233
|
-
case "unknown":
|
|
234
|
-
throw new errors.AirweaveSDKError({
|
|
235
|
-
message: _response.error.errorMessage,
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
exports.Users = Users;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./requests";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./requests"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./client";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./client"), exports);
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as environments from "../../../../environments";
|
|
5
|
-
import * as core from "../../../../core";
|
|
6
|
-
import * as AirweaveSDK from "../../../index";
|
|
7
|
-
export declare namespace Destinations {
|
|
8
|
-
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
|
|
10
|
-
/** Override the x-api-key header */
|
|
11
|
-
apiKey?: core.Supplier<string | undefined>;
|
|
12
|
-
}
|
|
13
|
-
interface RequestOptions {
|
|
14
|
-
/** The maximum time to wait for a response in seconds. */
|
|
15
|
-
timeoutInSeconds?: number;
|
|
16
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
17
|
-
maxRetries?: number;
|
|
18
|
-
/** A hook to abort the request. */
|
|
19
|
-
abortSignal?: AbortSignal;
|
|
20
|
-
/** Override the x-api-key header */
|
|
21
|
-
apiKey?: string | undefined;
|
|
22
|
-
/** Additional headers to include in the request. */
|
|
23
|
-
headers?: Record<string, string>;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export declare class Destinations {
|
|
27
|
-
protected readonly _options: Destinations.Options;
|
|
28
|
-
constructor(_options?: Destinations.Options);
|
|
29
|
-
/**
|
|
30
|
-
* Get all available destinations.
|
|
31
|
-
*
|
|
32
|
-
* Args:
|
|
33
|
-
* -----
|
|
34
|
-
* db: The database session
|
|
35
|
-
* user: The current user
|
|
36
|
-
*
|
|
37
|
-
* Returns:
|
|
38
|
-
* --------
|
|
39
|
-
* List[schemas.Destination]: A list of destinations
|
|
40
|
-
*
|
|
41
|
-
* @param {AirweaveSDK.ListDestinationsDestinationsListGetRequest} request
|
|
42
|
-
* @param {Destinations.RequestOptions} requestOptions - Request-specific configuration.
|
|
43
|
-
*
|
|
44
|
-
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* await client.destinations.listDestinations({
|
|
48
|
-
* creds: "creds"
|
|
49
|
-
* })
|
|
50
|
-
*/
|
|
51
|
-
listDestinations(request: AirweaveSDK.ListDestinationsDestinationsListGetRequest, requestOptions?: Destinations.RequestOptions): Promise<AirweaveSDK.Destination[]>;
|
|
52
|
-
/**
|
|
53
|
-
* Get destination by short name.
|
|
54
|
-
*
|
|
55
|
-
* Args:
|
|
56
|
-
* -----
|
|
57
|
-
* db: The database session
|
|
58
|
-
* short_name: The short name of the destination
|
|
59
|
-
* user: The current user
|
|
60
|
-
*
|
|
61
|
-
* Returns:
|
|
62
|
-
* --------
|
|
63
|
-
* destination (schemas.Destination): The destination
|
|
64
|
-
*
|
|
65
|
-
* @param {string} shortName
|
|
66
|
-
* @param {AirweaveSDK.ReadDestinationDestinationsDetailShortNameGetRequest} request
|
|
67
|
-
* @param {Destinations.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
-
*
|
|
69
|
-
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* await client.destinations.readDestination("short_name", {
|
|
73
|
-
* creds: "creds"
|
|
74
|
-
* })
|
|
75
|
-
*/
|
|
76
|
-
readDestination(shortName: string, request: AirweaveSDK.ReadDestinationDestinationsDetailShortNameGetRequest, requestOptions?: Destinations.RequestOptions): Promise<AirweaveSDK.DestinationWithConfigFields>;
|
|
77
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./requests";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./requests"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./client";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./client"), exports);
|