@airweave/sdk 0.1.24 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +12 -0
- package/Client.js +20 -0
- package/api/resources/connections/client/Client.js +12 -12
- package/api/resources/cursorDevelopment/client/Client.d.ts +78 -0
- package/api/resources/cursorDevelopment/client/Client.js +218 -0
- package/api/resources/cursorDevelopment/client/index.d.ts +1 -0
- package/api/resources/cursorDevelopment/client/index.js +2 -0
- package/api/resources/cursorDevelopment/index.d.ts +1 -0
- package/api/resources/cursorDevelopment/index.js +17 -0
- package/api/resources/dag/client/Client.d.ts +95 -0
- package/api/resources/dag/client/Client.js +347 -0
- package/api/resources/dag/client/index.d.ts +1 -0
- package/api/resources/dag/client/index.js +17 -0
- package/api/resources/dag/client/requests/InitializeDagDagInitGetRequest.d.ts +12 -0
- package/api/resources/dag/client/requests/InitializeDagDagInitGetRequest.js +5 -0
- package/api/resources/dag/client/requests/SyncDagCreate.d.ts +26 -0
- package/api/resources/dag/client/requests/SyncDagCreate.js +5 -0
- package/api/resources/dag/client/requests/SyncDagUpdate.d.ts +18 -0
- package/api/resources/dag/client/requests/SyncDagUpdate.js +5 -0
- package/api/resources/dag/client/requests/index.d.ts +3 -0
- package/api/resources/dag/client/requests/index.js +2 -0
- package/api/resources/dag/index.d.ts +1 -0
- package/api/resources/dag/index.js +17 -0
- package/api/resources/destinations/client/Client.js +2 -2
- package/api/resources/embeddingModels/client/Client.js +2 -2
- package/api/resources/entities/client/Client.d.ts +141 -0
- package/api/resources/entities/client/Client.js +553 -0
- package/api/resources/entities/client/index.d.ts +1 -0
- package/api/resources/entities/client/index.js +17 -0
- package/api/resources/entities/client/requests/EntityDefinitionCreate.d.ts +23 -0
- package/api/resources/entities/client/requests/EntityDefinitionCreate.js +5 -0
- package/api/resources/entities/client/requests/EntityDefinitionUpdate.d.ts +23 -0
- package/api/resources/entities/client/requests/EntityDefinitionUpdate.js +5 -0
- package/api/resources/entities/client/requests/EntityRelationCreate.d.ts +17 -0
- package/api/resources/entities/client/requests/EntityRelationCreate.js +5 -0
- package/api/resources/entities/client/requests/EntityRelationUpdate.d.ts +17 -0
- package/api/resources/entities/client/requests/EntityRelationUpdate.js +5 -0
- package/api/resources/entities/client/requests/index.d.ts +4 -0
- package/api/resources/entities/client/requests/index.js +2 -0
- package/api/resources/entities/index.d.ts +2 -0
- package/api/resources/entities/index.js +18 -0
- package/api/resources/entities/types/EntityDefinitionCreateEntitySchema.d.ts +4 -0
- package/api/resources/entities/types/EntityDefinitionCreateEntitySchema.js +5 -0
- package/api/resources/entities/types/EntityDefinitionUpdateEntitySchema.d.ts +4 -0
- package/api/resources/entities/types/EntityDefinitionUpdateEntitySchema.js +5 -0
- package/api/resources/entities/types/index.d.ts +2 -0
- package/api/resources/entities/types/index.js +18 -0
- package/api/resources/index.d.ts +8 -0
- package/api/resources/index.js +9 -1
- package/api/resources/sources/client/Client.js +2 -2
- package/api/resources/sync/client/Client.d.ts +36 -0
- package/api/resources/sync/client/Client.js +151 -8
- package/api/resources/sync/client/requests/SyncCreate.d.ts +3 -0
- package/api/resources/sync/client/requests/SyncUpdate.d.ts +21 -0
- package/api/resources/sync/client/requests/SyncUpdate.js +5 -0
- package/api/resources/sync/client/requests/index.d.ts +1 -0
- package/api/resources/transformers/client/Client.d.ts +77 -0
- package/api/resources/transformers/client/Client.js +272 -0
- package/api/resources/transformers/client/index.d.ts +1 -0
- package/api/resources/transformers/client/index.js +17 -0
- package/api/resources/transformers/client/requests/TransformerCreate.d.ts +22 -0
- package/api/resources/transformers/client/requests/TransformerCreate.js +5 -0
- package/api/resources/transformers/client/requests/TransformerUpdate.d.ts +22 -0
- package/api/resources/transformers/client/requests/TransformerUpdate.js +5 -0
- package/api/resources/transformers/client/requests/index.d.ts +2 -0
- package/api/resources/transformers/client/requests/index.js +2 -0
- package/api/resources/transformers/index.d.ts +1 -0
- package/api/resources/transformers/index.js +17 -0
- package/api/resources/users/client/Client.js +1 -1
- package/api/resources/whiteLabels/client/Client.js +8 -8
- package/api/types/DagEdge.d.ts +15 -0
- package/api/types/DagEdge.js +5 -0
- package/api/types/DagEdgeCreate.d.ts +10 -0
- package/api/types/DagEdgeCreate.js +5 -0
- package/api/types/DagNode.d.ts +20 -0
- package/api/types/DagNode.js +5 -0
- package/api/types/DagNodeCreate.d.ts +17 -0
- package/api/types/DagNodeCreate.js +5 -0
- package/api/types/Destination.d.ts +3 -0
- package/api/types/DestinationWithConfigFields.d.ts +3 -0
- package/api/types/EntityDefinition.d.ts +20 -0
- package/api/types/EntityDefinition.js +5 -0
- package/api/types/EntityDefinitionEntitySchema.d.ts +4 -0
- package/api/types/EntityDefinitionEntitySchema.js +5 -0
- package/api/types/EntityRelation.d.ts +16 -0
- package/api/types/EntityRelation.js +5 -0
- package/api/types/EntityType.d.ts +11 -0
- package/api/types/EntityType.js +10 -0
- package/api/types/NodeType.d.ts +13 -0
- package/api/types/NodeType.js +12 -0
- package/api/types/Source.d.ts +3 -0
- package/api/types/SourceWithConfigFields.d.ts +3 -0
- package/api/types/Sync.d.ts +2 -1
- package/api/types/SyncDag.d.ts +29 -0
- package/api/types/SyncDag.js +5 -0
- package/api/types/SyncWithSourceConnection.d.ts +2 -1
- package/api/types/Transformer.d.ts +19 -0
- package/api/types/Transformer.js +5 -0
- package/api/types/index.d.ts +11 -0
- package/api/types/index.js +11 -0
- package/dist/Client.d.ts +12 -0
- package/dist/Client.js +20 -0
- package/dist/api/resources/connections/client/Client.js +12 -12
- package/dist/api/resources/cursorDevelopment/client/Client.d.ts +78 -0
- package/dist/api/resources/cursorDevelopment/client/Client.js +218 -0
- package/dist/api/resources/cursorDevelopment/client/index.d.ts +1 -0
- package/dist/api/resources/cursorDevelopment/client/index.js +2 -0
- package/dist/api/resources/cursorDevelopment/index.d.ts +1 -0
- package/dist/api/resources/cursorDevelopment/index.js +17 -0
- package/dist/api/resources/dag/client/Client.d.ts +95 -0
- package/dist/api/resources/dag/client/Client.js +347 -0
- package/dist/api/resources/dag/client/index.d.ts +1 -0
- package/dist/api/resources/dag/client/index.js +17 -0
- package/dist/api/resources/dag/client/requests/InitializeDagDagInitGetRequest.d.ts +12 -0
- package/dist/api/resources/dag/client/requests/InitializeDagDagInitGetRequest.js +5 -0
- package/dist/api/resources/dag/client/requests/SyncDagCreate.d.ts +26 -0
- package/dist/api/resources/dag/client/requests/SyncDagCreate.js +5 -0
- package/dist/api/resources/dag/client/requests/SyncDagUpdate.d.ts +18 -0
- package/dist/api/resources/dag/client/requests/SyncDagUpdate.js +5 -0
- package/dist/api/resources/dag/client/requests/index.d.ts +3 -0
- package/dist/api/resources/dag/client/requests/index.js +2 -0
- package/dist/api/resources/dag/index.d.ts +1 -0
- package/dist/api/resources/dag/index.js +17 -0
- package/dist/api/resources/destinations/client/Client.js +2 -2
- package/dist/api/resources/embeddingModels/client/Client.js +2 -2
- package/dist/api/resources/entities/client/Client.d.ts +141 -0
- package/dist/api/resources/entities/client/Client.js +553 -0
- package/dist/api/resources/entities/client/index.d.ts +1 -0
- package/dist/api/resources/entities/client/index.js +17 -0
- package/dist/api/resources/entities/client/requests/EntityDefinitionCreate.d.ts +23 -0
- package/dist/api/resources/entities/client/requests/EntityDefinitionCreate.js +5 -0
- package/dist/api/resources/entities/client/requests/EntityDefinitionUpdate.d.ts +23 -0
- package/dist/api/resources/entities/client/requests/EntityDefinitionUpdate.js +5 -0
- package/dist/api/resources/entities/client/requests/EntityRelationCreate.d.ts +17 -0
- package/dist/api/resources/entities/client/requests/EntityRelationCreate.js +5 -0
- package/dist/api/resources/entities/client/requests/EntityRelationUpdate.d.ts +17 -0
- package/dist/api/resources/entities/client/requests/EntityRelationUpdate.js +5 -0
- package/dist/api/resources/entities/client/requests/index.d.ts +4 -0
- package/dist/api/resources/entities/client/requests/index.js +2 -0
- package/dist/api/resources/entities/index.d.ts +2 -0
- package/dist/api/resources/entities/index.js +18 -0
- package/dist/api/resources/entities/types/EntityDefinitionCreateEntitySchema.d.ts +4 -0
- package/dist/api/resources/entities/types/EntityDefinitionCreateEntitySchema.js +5 -0
- package/dist/api/resources/entities/types/EntityDefinitionUpdateEntitySchema.d.ts +4 -0
- package/dist/api/resources/entities/types/EntityDefinitionUpdateEntitySchema.js +5 -0
- package/dist/api/resources/entities/types/index.d.ts +2 -0
- package/dist/api/resources/entities/types/index.js +18 -0
- package/dist/api/resources/index.d.ts +8 -0
- package/dist/api/resources/index.js +9 -1
- package/dist/api/resources/sources/client/Client.js +2 -2
- package/dist/api/resources/sync/client/Client.d.ts +36 -0
- package/dist/api/resources/sync/client/Client.js +151 -8
- package/dist/api/resources/sync/client/requests/SyncCreate.d.ts +3 -0
- package/dist/api/resources/sync/client/requests/SyncUpdate.d.ts +21 -0
- package/dist/api/resources/sync/client/requests/SyncUpdate.js +5 -0
- package/dist/api/resources/sync/client/requests/index.d.ts +1 -0
- package/dist/api/resources/transformers/client/Client.d.ts +77 -0
- package/dist/api/resources/transformers/client/Client.js +272 -0
- package/dist/api/resources/transformers/client/index.d.ts +1 -0
- package/dist/api/resources/transformers/client/index.js +17 -0
- package/dist/api/resources/transformers/client/requests/TransformerCreate.d.ts +22 -0
- package/dist/api/resources/transformers/client/requests/TransformerCreate.js +5 -0
- package/dist/api/resources/transformers/client/requests/TransformerUpdate.d.ts +22 -0
- package/dist/api/resources/transformers/client/requests/TransformerUpdate.js +5 -0
- package/dist/api/resources/transformers/client/requests/index.d.ts +2 -0
- package/dist/api/resources/transformers/client/requests/index.js +2 -0
- package/dist/api/resources/transformers/index.d.ts +1 -0
- package/dist/api/resources/transformers/index.js +17 -0
- package/dist/api/resources/users/client/Client.js +1 -1
- package/dist/api/resources/whiteLabels/client/Client.js +8 -8
- package/dist/api/types/DagEdge.d.ts +15 -0
- package/dist/api/types/DagEdge.js +5 -0
- package/dist/api/types/DagEdgeCreate.d.ts +10 -0
- package/dist/api/types/DagEdgeCreate.js +5 -0
- package/dist/api/types/DagNode.d.ts +20 -0
- package/dist/api/types/DagNode.js +5 -0
- package/dist/api/types/DagNodeCreate.d.ts +17 -0
- package/dist/api/types/DagNodeCreate.js +5 -0
- package/dist/api/types/Destination.d.ts +3 -0
- package/dist/api/types/DestinationWithConfigFields.d.ts +3 -0
- package/dist/api/types/EntityDefinition.d.ts +20 -0
- package/dist/api/types/EntityDefinition.js +5 -0
- package/dist/api/types/EntityDefinitionEntitySchema.d.ts +4 -0
- package/dist/api/types/EntityDefinitionEntitySchema.js +5 -0
- package/dist/api/types/EntityRelation.d.ts +16 -0
- package/dist/api/types/EntityRelation.js +5 -0
- package/dist/api/types/EntityType.d.ts +11 -0
- package/dist/api/types/EntityType.js +10 -0
- package/dist/api/types/NodeType.d.ts +13 -0
- package/dist/api/types/NodeType.js +12 -0
- package/dist/api/types/Source.d.ts +3 -0
- package/dist/api/types/SourceWithConfigFields.d.ts +3 -0
- package/dist/api/types/Sync.d.ts +2 -1
- package/dist/api/types/SyncDag.d.ts +29 -0
- package/dist/api/types/SyncDag.js +5 -0
- package/dist/api/types/SyncWithSourceConnection.d.ts +2 -1
- package/dist/api/types/Transformer.d.ts +19 -0
- package/dist/api/types/Transformer.js +5 -0
- package/dist/api/types/index.d.ts +11 -0
- package/dist/api/types/index.js +11 -0
- package/dist/serialization/resources/cursorDevelopment/client/checkConnectionStatus.d.ts +11 -0
- package/dist/serialization/resources/cursorDevelopment/client/checkConnectionStatus.js +42 -0
- package/dist/serialization/resources/cursorDevelopment/client/index.d.ts +1 -0
- package/dist/serialization/resources/cursorDevelopment/client/index.js +37 -0
- package/dist/serialization/resources/cursorDevelopment/index.d.ts +1 -0
- package/dist/serialization/resources/cursorDevelopment/index.js +17 -0
- package/dist/serialization/resources/dag/client/index.d.ts +1 -0
- package/dist/serialization/resources/dag/client/index.js +17 -0
- package/dist/serialization/resources/dag/client/requests/SyncDagCreate.d.ts +18 -0
- package/dist/serialization/resources/dag/client/requests/SyncDagCreate.js +49 -0
- package/dist/serialization/resources/dag/client/requests/SyncDagUpdate.d.ts +18 -0
- package/dist/serialization/resources/dag/client/requests/SyncDagUpdate.js +49 -0
- package/dist/serialization/resources/dag/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/dag/client/requests/index.js +7 -0
- package/dist/serialization/resources/dag/index.d.ts +1 -0
- package/dist/serialization/resources/dag/index.js +17 -0
- package/dist/serialization/resources/entities/client/getEntityDefinitionsByIds.d.ts +15 -0
- package/dist/serialization/resources/entities/client/getEntityDefinitionsByIds.js +43 -0
- package/dist/serialization/resources/entities/client/index.d.ts +4 -0
- package/dist/serialization/resources/entities/client/index.js +43 -0
- package/dist/serialization/resources/entities/client/listEntityDefinitions.d.ts +11 -0
- package/dist/serialization/resources/entities/client/listEntityDefinitions.js +42 -0
- package/dist/serialization/resources/entities/client/listEntityRelations.d.ts +11 -0
- package/dist/serialization/resources/entities/client/listEntityRelations.js +42 -0
- package/dist/serialization/resources/entities/client/requests/EntityDefinitionCreate.d.ts +20 -0
- package/dist/serialization/resources/entities/client/requests/EntityDefinitionCreate.js +51 -0
- package/dist/serialization/resources/entities/client/requests/EntityDefinitionUpdate.d.ts +20 -0
- package/dist/serialization/resources/entities/client/requests/EntityDefinitionUpdate.js +51 -0
- package/dist/serialization/resources/entities/client/requests/EntityRelationCreate.d.ts +15 -0
- package/dist/serialization/resources/entities/client/requests/EntityRelationCreate.js +46 -0
- package/dist/serialization/resources/entities/client/requests/EntityRelationUpdate.d.ts +15 -0
- package/dist/serialization/resources/entities/client/requests/EntityRelationUpdate.js +46 -0
- package/dist/serialization/resources/entities/client/requests/index.d.ts +4 -0
- package/dist/serialization/resources/entities/client/requests/index.js +11 -0
- package/dist/serialization/resources/entities/index.d.ts +2 -0
- package/dist/serialization/resources/entities/index.js +18 -0
- package/dist/serialization/resources/entities/types/EntityDefinitionCreateEntitySchema.d.ts +10 -0
- package/dist/serialization/resources/entities/types/EntityDefinitionCreateEntitySchema.js +44 -0
- package/dist/serialization/resources/entities/types/EntityDefinitionUpdateEntitySchema.d.ts +10 -0
- package/dist/serialization/resources/entities/types/EntityDefinitionUpdateEntitySchema.js +44 -0
- package/dist/serialization/resources/entities/types/index.d.ts +2 -0
- package/dist/serialization/resources/entities/types/index.js +18 -0
- package/dist/serialization/resources/index.d.ts +8 -0
- package/dist/serialization/resources/index.js +9 -1
- package/dist/serialization/resources/sync/client/requests/SyncCreate.d.ts +3 -0
- package/dist/serialization/resources/sync/client/requests/SyncCreate.js +3 -0
- package/dist/serialization/resources/sync/client/requests/SyncUpdate.d.ts +23 -0
- package/dist/serialization/resources/sync/client/requests/SyncUpdate.js +54 -0
- package/dist/serialization/resources/sync/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/sync/client/requests/index.js +3 -1
- package/dist/serialization/resources/transformers/client/index.d.ts +2 -0
- package/dist/serialization/resources/transformers/client/index.js +41 -0
- package/dist/serialization/resources/transformers/client/listTransformers.d.ts +11 -0
- package/dist/serialization/resources/transformers/client/listTransformers.js +42 -0
- package/dist/serialization/resources/transformers/client/requests/TransformerCreate.d.ts +18 -0
- package/dist/serialization/resources/transformers/client/requests/TransformerCreate.js +49 -0
- package/dist/serialization/resources/transformers/client/requests/TransformerUpdate.d.ts +18 -0
- package/dist/serialization/resources/transformers/client/requests/TransformerUpdate.js +49 -0
- package/dist/serialization/resources/transformers/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/transformers/client/requests/index.js +7 -0
- package/dist/serialization/resources/transformers/index.d.ts +1 -0
- package/dist/serialization/resources/transformers/index.js +17 -0
- package/dist/serialization/types/DagEdge.d.ts +18 -0
- package/dist/serialization/types/DagEdge.js +49 -0
- package/dist/serialization/types/DagEdgeCreate.d.ts +13 -0
- package/dist/serialization/types/DagEdgeCreate.js +44 -0
- package/dist/serialization/types/DagNode.d.ts +23 -0
- package/dist/serialization/types/DagNode.js +54 -0
- package/dist/serialization/types/DagNodeCreate.d.ts +19 -0
- package/dist/serialization/types/DagNodeCreate.js +50 -0
- package/dist/serialization/types/Destination.d.ts +3 -0
- package/dist/serialization/types/Destination.js +3 -0
- package/dist/serialization/types/DestinationWithConfigFields.d.ts +3 -0
- package/dist/serialization/types/DestinationWithConfigFields.js +3 -0
- package/dist/serialization/types/EntityDefinition.d.ts +24 -0
- package/dist/serialization/types/EntityDefinition.js +55 -0
- package/dist/serialization/types/EntityDefinitionEntitySchema.d.ts +10 -0
- package/dist/serialization/types/EntityDefinitionEntitySchema.js +44 -0
- package/dist/serialization/types/EntityRelation.d.ts +19 -0
- package/dist/serialization/types/EntityRelation.js +50 -0
- package/dist/serialization/types/EntityType.d.ts +10 -0
- package/dist/serialization/types/EntityType.js +41 -0
- package/dist/serialization/types/NodeType.d.ts +10 -0
- package/dist/serialization/types/NodeType.js +41 -0
- package/dist/serialization/types/Source.d.ts +3 -0
- package/dist/serialization/types/Source.js +3 -0
- package/dist/serialization/types/SourceWithConfigFields.d.ts +3 -0
- package/dist/serialization/types/SourceWithConfigFields.js +3 -0
- package/dist/serialization/types/Sync.d.ts +2 -1
- package/dist/serialization/types/Sync.js +2 -1
- package/dist/serialization/types/SyncDag.d.ts +22 -0
- package/dist/serialization/types/SyncDag.js +53 -0
- package/dist/serialization/types/SyncWithSourceConnection.d.ts +2 -1
- package/dist/serialization/types/SyncWithSourceConnection.js +2 -1
- package/dist/serialization/types/Transformer.d.ts +22 -0
- package/dist/serialization/types/Transformer.js +53 -0
- package/dist/serialization/types/index.d.ts +11 -0
- package/dist/serialization/types/index.js +11 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +1262 -0
- package/serialization/resources/cursorDevelopment/client/checkConnectionStatus.d.ts +11 -0
- package/serialization/resources/cursorDevelopment/client/checkConnectionStatus.js +42 -0
- package/serialization/resources/cursorDevelopment/client/index.d.ts +1 -0
- package/serialization/resources/cursorDevelopment/client/index.js +37 -0
- package/serialization/resources/cursorDevelopment/index.d.ts +1 -0
- package/serialization/resources/cursorDevelopment/index.js +17 -0
- package/serialization/resources/dag/client/index.d.ts +1 -0
- package/serialization/resources/dag/client/index.js +17 -0
- package/serialization/resources/dag/client/requests/SyncDagCreate.d.ts +18 -0
- package/serialization/resources/dag/client/requests/SyncDagCreate.js +49 -0
- package/serialization/resources/dag/client/requests/SyncDagUpdate.d.ts +18 -0
- package/serialization/resources/dag/client/requests/SyncDagUpdate.js +49 -0
- package/serialization/resources/dag/client/requests/index.d.ts +2 -0
- package/serialization/resources/dag/client/requests/index.js +7 -0
- package/serialization/resources/dag/index.d.ts +1 -0
- package/serialization/resources/dag/index.js +17 -0
- package/serialization/resources/entities/client/getEntityDefinitionsByIds.d.ts +15 -0
- package/serialization/resources/entities/client/getEntityDefinitionsByIds.js +43 -0
- package/serialization/resources/entities/client/index.d.ts +4 -0
- package/serialization/resources/entities/client/index.js +43 -0
- package/serialization/resources/entities/client/listEntityDefinitions.d.ts +11 -0
- package/serialization/resources/entities/client/listEntityDefinitions.js +42 -0
- package/serialization/resources/entities/client/listEntityRelations.d.ts +11 -0
- package/serialization/resources/entities/client/listEntityRelations.js +42 -0
- package/serialization/resources/entities/client/requests/EntityDefinitionCreate.d.ts +20 -0
- package/serialization/resources/entities/client/requests/EntityDefinitionCreate.js +51 -0
- package/serialization/resources/entities/client/requests/EntityDefinitionUpdate.d.ts +20 -0
- package/serialization/resources/entities/client/requests/EntityDefinitionUpdate.js +51 -0
- package/serialization/resources/entities/client/requests/EntityRelationCreate.d.ts +15 -0
- package/serialization/resources/entities/client/requests/EntityRelationCreate.js +46 -0
- package/serialization/resources/entities/client/requests/EntityRelationUpdate.d.ts +15 -0
- package/serialization/resources/entities/client/requests/EntityRelationUpdate.js +46 -0
- package/serialization/resources/entities/client/requests/index.d.ts +4 -0
- package/serialization/resources/entities/client/requests/index.js +11 -0
- package/serialization/resources/entities/index.d.ts +2 -0
- package/serialization/resources/entities/index.js +18 -0
- package/serialization/resources/entities/types/EntityDefinitionCreateEntitySchema.d.ts +10 -0
- package/serialization/resources/entities/types/EntityDefinitionCreateEntitySchema.js +44 -0
- package/serialization/resources/entities/types/EntityDefinitionUpdateEntitySchema.d.ts +10 -0
- package/serialization/resources/entities/types/EntityDefinitionUpdateEntitySchema.js +44 -0
- package/serialization/resources/entities/types/index.d.ts +2 -0
- package/serialization/resources/entities/types/index.js +18 -0
- package/serialization/resources/index.d.ts +8 -0
- package/serialization/resources/index.js +9 -1
- package/serialization/resources/sync/client/requests/SyncCreate.d.ts +3 -0
- package/serialization/resources/sync/client/requests/SyncCreate.js +3 -0
- package/serialization/resources/sync/client/requests/SyncUpdate.d.ts +23 -0
- package/serialization/resources/sync/client/requests/SyncUpdate.js +54 -0
- package/serialization/resources/sync/client/requests/index.d.ts +1 -0
- package/serialization/resources/sync/client/requests/index.js +3 -1
- package/serialization/resources/transformers/client/index.d.ts +2 -0
- package/serialization/resources/transformers/client/index.js +41 -0
- package/serialization/resources/transformers/client/listTransformers.d.ts +11 -0
- package/serialization/resources/transformers/client/listTransformers.js +42 -0
- package/serialization/resources/transformers/client/requests/TransformerCreate.d.ts +18 -0
- package/serialization/resources/transformers/client/requests/TransformerCreate.js +49 -0
- package/serialization/resources/transformers/client/requests/TransformerUpdate.d.ts +18 -0
- package/serialization/resources/transformers/client/requests/TransformerUpdate.js +49 -0
- package/serialization/resources/transformers/client/requests/index.d.ts +2 -0
- package/serialization/resources/transformers/client/requests/index.js +7 -0
- package/serialization/resources/transformers/index.d.ts +1 -0
- package/serialization/resources/transformers/index.js +17 -0
- package/serialization/types/DagEdge.d.ts +18 -0
- package/serialization/types/DagEdge.js +49 -0
- package/serialization/types/DagEdgeCreate.d.ts +13 -0
- package/serialization/types/DagEdgeCreate.js +44 -0
- package/serialization/types/DagNode.d.ts +23 -0
- package/serialization/types/DagNode.js +54 -0
- package/serialization/types/DagNodeCreate.d.ts +19 -0
- package/serialization/types/DagNodeCreate.js +50 -0
- package/serialization/types/Destination.d.ts +3 -0
- package/serialization/types/Destination.js +3 -0
- package/serialization/types/DestinationWithConfigFields.d.ts +3 -0
- package/serialization/types/DestinationWithConfigFields.js +3 -0
- package/serialization/types/EntityDefinition.d.ts +24 -0
- package/serialization/types/EntityDefinition.js +55 -0
- package/serialization/types/EntityDefinitionEntitySchema.d.ts +10 -0
- package/serialization/types/EntityDefinitionEntitySchema.js +44 -0
- package/serialization/types/EntityRelation.d.ts +19 -0
- package/serialization/types/EntityRelation.js +50 -0
- package/serialization/types/EntityType.d.ts +10 -0
- package/serialization/types/EntityType.js +41 -0
- package/serialization/types/NodeType.d.ts +10 -0
- package/serialization/types/NodeType.js +41 -0
- package/serialization/types/Source.d.ts +3 -0
- package/serialization/types/Source.js +3 -0
- package/serialization/types/SourceWithConfigFields.d.ts +3 -0
- package/serialization/types/SourceWithConfigFields.js +3 -0
- package/serialization/types/Sync.d.ts +2 -1
- package/serialization/types/Sync.js +2 -1
- package/serialization/types/SyncDag.d.ts +22 -0
- package/serialization/types/SyncDag.js +53 -0
- package/serialization/types/SyncWithSourceConnection.d.ts +2 -1
- package/serialization/types/SyncWithSourceConnection.js +2 -1
- package/serialization/types/Transformer.d.ts +22 -0
- package/serialization/types/Transformer.js +53 -0
- package/serialization/types/index.d.ts +11 -0
- package/serialization/types/index.js +11 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Schema for an entity relation.
|
|
6
|
+
*/
|
|
7
|
+
export interface EntityRelation {
|
|
8
|
+
name: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
fromEntityId: string;
|
|
11
|
+
toEntityId: string;
|
|
12
|
+
id: string;
|
|
13
|
+
organizationId: string;
|
|
14
|
+
createdByEmail: string;
|
|
15
|
+
modifiedByEmail: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Type of node.
|
|
6
|
+
*/
|
|
7
|
+
export type NodeType = "source" | "destination" | "transformer" | "entity";
|
|
8
|
+
export declare const NodeType: {
|
|
9
|
+
readonly Source: "source";
|
|
10
|
+
readonly Destination: "destination";
|
|
11
|
+
readonly Transformer: "transformer";
|
|
12
|
+
readonly Entity: "entity";
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.NodeType = void 0;
|
|
7
|
+
exports.NodeType = {
|
|
8
|
+
Source: "source",
|
|
9
|
+
Destination: "destination",
|
|
10
|
+
Transformer: "transformer",
|
|
11
|
+
Entity: "entity",
|
|
12
|
+
};
|
package/api/types/Source.d.ts
CHANGED
|
@@ -12,6 +12,9 @@ export interface Source {
|
|
|
12
12
|
authConfigClass?: string;
|
|
13
13
|
shortName: string;
|
|
14
14
|
className: string;
|
|
15
|
+
outputEntityDefinitionIds?: string[];
|
|
16
|
+
organizationId?: string;
|
|
17
|
+
configSchema?: Record<string, unknown>;
|
|
15
18
|
id: string;
|
|
16
19
|
createdAt: Date;
|
|
17
20
|
modifiedAt: Date;
|
|
@@ -12,6 +12,9 @@ export interface SourceWithConfigFields {
|
|
|
12
12
|
authConfigClass?: string;
|
|
13
13
|
shortName: string;
|
|
14
14
|
className: string;
|
|
15
|
+
outputEntityDefinitionIds?: string[];
|
|
16
|
+
organizationId?: string;
|
|
17
|
+
configSchema?: Record<string, unknown>;
|
|
15
18
|
id: string;
|
|
16
19
|
createdAt: Date;
|
|
17
20
|
modifiedAt: Date;
|
package/api/types/Sync.d.ts
CHANGED
|
@@ -12,14 +12,15 @@ export interface Sync {
|
|
|
12
12
|
destinationConnectionId?: string;
|
|
13
13
|
embeddingModelConnectionId?: string;
|
|
14
14
|
cronSchedule?: string;
|
|
15
|
+
nextScheduledRun?: Date;
|
|
15
16
|
whiteLabelId?: string;
|
|
16
17
|
whiteLabelUserIdentifier?: string;
|
|
17
18
|
syncMetadata?: Record<string, unknown>;
|
|
19
|
+
status: AirweaveSDK.SyncStatus;
|
|
18
20
|
id: string;
|
|
19
21
|
organizationId: string;
|
|
20
22
|
createdAt: Date;
|
|
21
23
|
modifiedAt: Date;
|
|
22
24
|
createdByEmail: string;
|
|
23
25
|
modifiedByEmail: string;
|
|
24
|
-
status: AirweaveSDK.SyncStatus;
|
|
25
26
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Schema for a sync DAG definition.
|
|
7
|
+
*
|
|
8
|
+
* The DAG structure as the UI displays it.
|
|
9
|
+
*
|
|
10
|
+
* This means that for each entity, there is a node that is the producer and a node that is the
|
|
11
|
+
* consumer. These are connected by an edge: producer -edge-> entity -edge-> consumer
|
|
12
|
+
*
|
|
13
|
+
* Sources, transformers, and destinations are also nodes, but they do not have an
|
|
14
|
+
* entity_definition_id.
|
|
15
|
+
*
|
|
16
|
+
* Sources are producers by default, and destinations are consumers by default.
|
|
17
|
+
* Transformers are both producers and consumers.
|
|
18
|
+
*/
|
|
19
|
+
export interface SyncDag {
|
|
20
|
+
name: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
syncId: string;
|
|
23
|
+
id: string;
|
|
24
|
+
organizationId: string;
|
|
25
|
+
createdByEmail: string;
|
|
26
|
+
modifiedByEmail: string;
|
|
27
|
+
nodes: AirweaveSDK.DagNode[];
|
|
28
|
+
edges: AirweaveSDK.DagEdge[];
|
|
29
|
+
}
|
|
@@ -12,15 +12,16 @@ export interface SyncWithSourceConnection {
|
|
|
12
12
|
destinationConnectionId?: string;
|
|
13
13
|
embeddingModelConnectionId?: string;
|
|
14
14
|
cronSchedule?: string;
|
|
15
|
+
nextScheduledRun?: Date;
|
|
15
16
|
whiteLabelId?: string;
|
|
16
17
|
whiteLabelUserIdentifier?: string;
|
|
17
18
|
syncMetadata?: Record<string, unknown>;
|
|
19
|
+
status: AirweaveSDK.SyncStatus;
|
|
18
20
|
id: string;
|
|
19
21
|
organizationId: string;
|
|
20
22
|
createdAt: Date;
|
|
21
23
|
modifiedAt: Date;
|
|
22
24
|
createdByEmail: string;
|
|
23
25
|
modifiedByEmail: string;
|
|
24
|
-
status: AirweaveSDK.SyncStatus;
|
|
25
26
|
sourceConnection?: AirweaveSDK.Connection;
|
|
26
27
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Schema for a transformer.
|
|
6
|
+
*/
|
|
7
|
+
export interface Transformer {
|
|
8
|
+
name: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
methodName: string;
|
|
11
|
+
moduleName: string;
|
|
12
|
+
inputEntityDefinitionIds: string[];
|
|
13
|
+
outputEntityDefinitionIds: string[];
|
|
14
|
+
configSchema?: Record<string, unknown>;
|
|
15
|
+
id: string;
|
|
16
|
+
organizationId: string;
|
|
17
|
+
createdByEmail: string;
|
|
18
|
+
modifiedByEmail: string;
|
|
19
|
+
}
|
package/api/types/index.d.ts
CHANGED
|
@@ -10,20 +10,31 @@ export * from "./ChatUpdate";
|
|
|
10
10
|
export * from "./ConfigField";
|
|
11
11
|
export * from "./Connection";
|
|
12
12
|
export * from "./ConnectionStatus";
|
|
13
|
+
export * from "./DagEdge";
|
|
14
|
+
export * from "./DagEdgeCreate";
|
|
15
|
+
export * from "./DagNode";
|
|
16
|
+
export * from "./DagNodeCreate";
|
|
13
17
|
export * from "./Destination";
|
|
14
18
|
export * from "./DestinationWithConfigFields";
|
|
15
19
|
export * from "./EmbeddingModel";
|
|
16
20
|
export * from "./EmbeddingModelWithConfigFields";
|
|
21
|
+
export * from "./EntityDefinitionEntitySchema";
|
|
22
|
+
export * from "./EntityDefinition";
|
|
23
|
+
export * from "./EntityRelation";
|
|
24
|
+
export * from "./EntityType";
|
|
17
25
|
export * from "./Fields";
|
|
18
26
|
export * from "./HttpValidationError";
|
|
19
27
|
export * from "./IntegrationType";
|
|
28
|
+
export * from "./NodeType";
|
|
20
29
|
export * from "./Source";
|
|
21
30
|
export * from "./SourceWithConfigFields";
|
|
22
31
|
export * from "./Sync";
|
|
32
|
+
export * from "./SyncDag";
|
|
23
33
|
export * from "./SyncJob";
|
|
24
34
|
export * from "./SyncJobStatus";
|
|
25
35
|
export * from "./SyncStatus";
|
|
26
36
|
export * from "./SyncWithSourceConnection";
|
|
37
|
+
export * from "./Transformer";
|
|
27
38
|
export * from "./User";
|
|
28
39
|
export * from "./ValidationErrorLocItem";
|
|
29
40
|
export * from "./ValidationError";
|
package/api/types/index.js
CHANGED
|
@@ -26,20 +26,31 @@ __exportStar(require("./ChatUpdate"), exports);
|
|
|
26
26
|
__exportStar(require("./ConfigField"), exports);
|
|
27
27
|
__exportStar(require("./Connection"), exports);
|
|
28
28
|
__exportStar(require("./ConnectionStatus"), exports);
|
|
29
|
+
__exportStar(require("./DagEdge"), exports);
|
|
30
|
+
__exportStar(require("./DagEdgeCreate"), exports);
|
|
31
|
+
__exportStar(require("./DagNode"), exports);
|
|
32
|
+
__exportStar(require("./DagNodeCreate"), exports);
|
|
29
33
|
__exportStar(require("./Destination"), exports);
|
|
30
34
|
__exportStar(require("./DestinationWithConfigFields"), exports);
|
|
31
35
|
__exportStar(require("./EmbeddingModel"), exports);
|
|
32
36
|
__exportStar(require("./EmbeddingModelWithConfigFields"), exports);
|
|
37
|
+
__exportStar(require("./EntityDefinitionEntitySchema"), exports);
|
|
38
|
+
__exportStar(require("./EntityDefinition"), exports);
|
|
39
|
+
__exportStar(require("./EntityRelation"), exports);
|
|
40
|
+
__exportStar(require("./EntityType"), exports);
|
|
33
41
|
__exportStar(require("./Fields"), exports);
|
|
34
42
|
__exportStar(require("./HttpValidationError"), exports);
|
|
35
43
|
__exportStar(require("./IntegrationType"), exports);
|
|
44
|
+
__exportStar(require("./NodeType"), exports);
|
|
36
45
|
__exportStar(require("./Source"), exports);
|
|
37
46
|
__exportStar(require("./SourceWithConfigFields"), exports);
|
|
38
47
|
__exportStar(require("./Sync"), exports);
|
|
48
|
+
__exportStar(require("./SyncDag"), exports);
|
|
39
49
|
__exportStar(require("./SyncJob"), exports);
|
|
40
50
|
__exportStar(require("./SyncJobStatus"), exports);
|
|
41
51
|
__exportStar(require("./SyncStatus"), exports);
|
|
42
52
|
__exportStar(require("./SyncWithSourceConnection"), exports);
|
|
53
|
+
__exportStar(require("./Transformer"), exports);
|
|
43
54
|
__exportStar(require("./User"), exports);
|
|
44
55
|
__exportStar(require("./ValidationErrorLocItem"), exports);
|
|
45
56
|
__exportStar(require("./ValidationError"), exports);
|
package/dist/Client.d.ts
CHANGED
|
@@ -10,6 +10,10 @@ import { EmbeddingModels } from "./api/resources/embeddingModels/client/Client";
|
|
|
10
10
|
import { Connections } from "./api/resources/connections/client/Client";
|
|
11
11
|
import { Sync } from "./api/resources/sync/client/Client";
|
|
12
12
|
import { WhiteLabels } from "./api/resources/whiteLabels/client/Client";
|
|
13
|
+
import { Dag } from "./api/resources/dag/client/Client";
|
|
14
|
+
import { Entities } from "./api/resources/entities/client/Client";
|
|
15
|
+
import { Transformers } from "./api/resources/transformers/client/Client";
|
|
16
|
+
import { CursorDevelopment } from "./api/resources/cursorDevelopment/client/Client";
|
|
13
17
|
export declare namespace AirweaveSDKClient {
|
|
14
18
|
interface Options {
|
|
15
19
|
environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
|
|
@@ -38,6 +42,10 @@ export declare class AirweaveSDKClient {
|
|
|
38
42
|
protected _connections: Connections | undefined;
|
|
39
43
|
protected _sync: Sync | undefined;
|
|
40
44
|
protected _whiteLabels: WhiteLabels | undefined;
|
|
45
|
+
protected _dag: Dag | undefined;
|
|
46
|
+
protected _entities: Entities | undefined;
|
|
47
|
+
protected _transformers: Transformers | undefined;
|
|
48
|
+
protected _cursorDevelopment: CursorDevelopment | undefined;
|
|
41
49
|
constructor(_options?: AirweaveSDKClient.Options);
|
|
42
50
|
get users(): Users;
|
|
43
51
|
get sources(): Sources;
|
|
@@ -46,4 +54,8 @@ export declare class AirweaveSDKClient {
|
|
|
46
54
|
get connections(): Connections;
|
|
47
55
|
get sync(): Sync;
|
|
48
56
|
get whiteLabels(): WhiteLabels;
|
|
57
|
+
get dag(): Dag;
|
|
58
|
+
get entities(): Entities;
|
|
59
|
+
get transformers(): Transformers;
|
|
60
|
+
get cursorDevelopment(): CursorDevelopment;
|
|
49
61
|
}
|
package/dist/Client.js
CHANGED
|
@@ -11,6 +11,10 @@ const Client_4 = require("./api/resources/embeddingModels/client/Client");
|
|
|
11
11
|
const Client_5 = require("./api/resources/connections/client/Client");
|
|
12
12
|
const Client_6 = require("./api/resources/sync/client/Client");
|
|
13
13
|
const Client_7 = require("./api/resources/whiteLabels/client/Client");
|
|
14
|
+
const Client_8 = require("./api/resources/dag/client/Client");
|
|
15
|
+
const Client_9 = require("./api/resources/entities/client/Client");
|
|
16
|
+
const Client_10 = require("./api/resources/transformers/client/Client");
|
|
17
|
+
const Client_11 = require("./api/resources/cursorDevelopment/client/Client");
|
|
14
18
|
class AirweaveSDKClient {
|
|
15
19
|
constructor(_options = {}) {
|
|
16
20
|
this._options = _options;
|
|
@@ -43,5 +47,21 @@ class AirweaveSDKClient {
|
|
|
43
47
|
var _a;
|
|
44
48
|
return ((_a = this._whiteLabels) !== null && _a !== void 0 ? _a : (this._whiteLabels = new Client_7.WhiteLabels(this._options)));
|
|
45
49
|
}
|
|
50
|
+
get dag() {
|
|
51
|
+
var _a;
|
|
52
|
+
return ((_a = this._dag) !== null && _a !== void 0 ? _a : (this._dag = new Client_8.Dag(this._options)));
|
|
53
|
+
}
|
|
54
|
+
get entities() {
|
|
55
|
+
var _a;
|
|
56
|
+
return ((_a = this._entities) !== null && _a !== void 0 ? _a : (this._entities = new Client_9.Entities(this._options)));
|
|
57
|
+
}
|
|
58
|
+
get transformers() {
|
|
59
|
+
var _a;
|
|
60
|
+
return ((_a = this._transformers) !== null && _a !== void 0 ? _a : (this._transformers = new Client_10.Transformers(this._options)));
|
|
61
|
+
}
|
|
62
|
+
get cursorDevelopment() {
|
|
63
|
+
var _a;
|
|
64
|
+
return ((_a = this._cursorDevelopment) !== null && _a !== void 0 ? _a : (this._cursorDevelopment = new Client_11.CursorDevelopment(this._options)));
|
|
65
|
+
}
|
|
46
66
|
}
|
|
47
67
|
exports.AirweaveSDKClient = AirweaveSDKClient;
|
|
@@ -88,7 +88,7 @@ class Connections {
|
|
|
88
88
|
method: "GET",
|
|
89
89
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
90
90
|
? yield core.Supplier.get(this._options.apiKey)
|
|
91
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
91
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.25", "User-Agent": "@airweave/sdk/0.1.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
92
92
|
contentType: "application/json",
|
|
93
93
|
requestType: "json",
|
|
94
94
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -161,7 +161,7 @@ class Connections {
|
|
|
161
161
|
method: "GET",
|
|
162
162
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
163
163
|
? yield core.Supplier.get(this._options.apiKey)
|
|
164
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
164
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.25", "User-Agent": "@airweave/sdk/0.1.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
165
165
|
contentType: "application/json",
|
|
166
166
|
requestType: "json",
|
|
167
167
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -236,7 +236,7 @@ class Connections {
|
|
|
236
236
|
method: "GET",
|
|
237
237
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
238
238
|
? yield core.Supplier.get(this._options.apiKey)
|
|
239
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
239
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.25", "User-Agent": "@airweave/sdk/0.1.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
240
240
|
contentType: "application/json",
|
|
241
241
|
requestType: "json",
|
|
242
242
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -328,7 +328,7 @@ class Connections {
|
|
|
328
328
|
method: "POST",
|
|
329
329
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
330
330
|
? yield core.Supplier.get(this._options.apiKey)
|
|
331
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
331
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.25", "User-Agent": "@airweave/sdk/0.1.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
332
332
|
contentType: "application/json",
|
|
333
333
|
requestType: "json",
|
|
334
334
|
body: serializers.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -404,7 +404,7 @@ class Connections {
|
|
|
404
404
|
method: "GET",
|
|
405
405
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
406
406
|
? yield core.Supplier.get(this._options.apiKey)
|
|
407
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
407
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.25", "User-Agent": "@airweave/sdk/0.1.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
408
408
|
contentType: "application/json",
|
|
409
409
|
requestType: "json",
|
|
410
410
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -481,7 +481,7 @@ class Connections {
|
|
|
481
481
|
method: "DELETE",
|
|
482
482
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
483
483
|
? yield core.Supplier.get(this._options.apiKey)
|
|
484
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
484
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.25", "User-Agent": "@airweave/sdk/0.1.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
485
485
|
contentType: "application/json",
|
|
486
486
|
requestType: "json",
|
|
487
487
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -556,7 +556,7 @@ class Connections {
|
|
|
556
556
|
method: "PUT",
|
|
557
557
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
558
558
|
? yield core.Supplier.get(this._options.apiKey)
|
|
559
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
559
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.25", "User-Agent": "@airweave/sdk/0.1.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
560
560
|
contentType: "application/json",
|
|
561
561
|
requestType: "json",
|
|
562
562
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -631,7 +631,7 @@ class Connections {
|
|
|
631
631
|
method: "PUT",
|
|
632
632
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
633
633
|
? yield core.Supplier.get(this._options.apiKey)
|
|
634
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
634
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.25", "User-Agent": "@airweave/sdk/0.1.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
635
635
|
contentType: "application/json",
|
|
636
636
|
requestType: "json",
|
|
637
637
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -707,7 +707,7 @@ class Connections {
|
|
|
707
707
|
method: "GET",
|
|
708
708
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
709
709
|
? yield core.Supplier.get(this._options.apiKey)
|
|
710
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
710
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.25", "User-Agent": "@airweave/sdk/0.1.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
711
711
|
contentType: "application/json",
|
|
712
712
|
queryParameters: _queryParams,
|
|
713
713
|
requestType: "json",
|
|
@@ -792,7 +792,7 @@ class Connections {
|
|
|
792
792
|
method: "POST",
|
|
793
793
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
794
794
|
? yield core.Supplier.get(this._options.apiKey)
|
|
795
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
795
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.25", "User-Agent": "@airweave/sdk/0.1.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
796
796
|
contentType: "application/json",
|
|
797
797
|
requestType: "json",
|
|
798
798
|
body: serializers.BodySendOauth2CodeConnectionsOauth2SourceCodePost.jsonOrThrow(request, {
|
|
@@ -873,7 +873,7 @@ class Connections {
|
|
|
873
873
|
method: "POST",
|
|
874
874
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
875
875
|
? yield core.Supplier.get(this._options.apiKey)
|
|
876
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
876
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.25", "User-Agent": "@airweave/sdk/0.1.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
877
877
|
contentType: "application/json",
|
|
878
878
|
requestType: "json",
|
|
879
879
|
body: serializers.connections.sendOauth2WhiteLabelCode.Request.jsonOrThrow(request, {
|
|
@@ -951,7 +951,7 @@ class Connections {
|
|
|
951
951
|
method: "GET",
|
|
952
952
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
953
953
|
? yield core.Supplier.get(this._options.apiKey)
|
|
954
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
954
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.25", "User-Agent": "@airweave/sdk/0.1.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
955
955
|
contentType: "application/json",
|
|
956
956
|
requestType: "json",
|
|
957
957
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -0,0 +1,78 @@
|
|
|
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 CursorDevelopment {
|
|
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 CursorDevelopment {
|
|
27
|
+
protected readonly _options: CursorDevelopment.Options;
|
|
28
|
+
constructor(_options?: CursorDevelopment.Options);
|
|
29
|
+
/**
|
|
30
|
+
* Check if a source connection exists for the given short_name.
|
|
31
|
+
*
|
|
32
|
+
* Args:
|
|
33
|
+
* -----
|
|
34
|
+
* db: The database session
|
|
35
|
+
* short_name: The short name of the source to check
|
|
36
|
+
* user: The admin user
|
|
37
|
+
*
|
|
38
|
+
* Returns:
|
|
39
|
+
* --------
|
|
40
|
+
* List[schemas.Connection]: List of source connections for the given short_name
|
|
41
|
+
*
|
|
42
|
+
* @param {string} shortName
|
|
43
|
+
* @param {CursorDevelopment.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
+
*
|
|
45
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* await client.cursorDevelopment.checkConnectionStatus("short_name")
|
|
49
|
+
*/
|
|
50
|
+
checkConnectionStatus(shortName: string, requestOptions?: CursorDevelopment.RequestOptions): Promise<AirweaveSDK.Connection[]>;
|
|
51
|
+
/**
|
|
52
|
+
* Run a sync for a specific source by short_name.
|
|
53
|
+
*
|
|
54
|
+
* This endpoint is used for testing source integrations during development.
|
|
55
|
+
* It finds the first available source connection for the given short_name and
|
|
56
|
+
* runs a sync on it.
|
|
57
|
+
*
|
|
58
|
+
* Args:
|
|
59
|
+
* -----
|
|
60
|
+
* db: The database session
|
|
61
|
+
* short_name: The short name of the source to sync
|
|
62
|
+
* background_tasks: The background tasks
|
|
63
|
+
* user: The admin user
|
|
64
|
+
*
|
|
65
|
+
* Returns:
|
|
66
|
+
* --------
|
|
67
|
+
* schemas.SyncJob: The created sync job
|
|
68
|
+
*
|
|
69
|
+
* @param {string} shortName
|
|
70
|
+
* @param {CursorDevelopment.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* await client.cursorDevelopment.testSync("short_name")
|
|
76
|
+
*/
|
|
77
|
+
testSync(shortName: string, requestOptions?: CursorDevelopment.RequestOptions): Promise<AirweaveSDK.SyncJob>;
|
|
78
|
+
}
|