@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,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* name: "name",
|
|
8
|
+
* fromEntityId: "from_entity_id",
|
|
9
|
+
* toEntityId: "to_entity_id"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface EntityRelationUpdate {
|
|
13
|
+
name: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
fromEntityId: string;
|
|
16
|
+
toEntityId: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { type EntityDefinitionCreate } from "./EntityDefinitionCreate";
|
|
2
|
+
export { type EntityDefinitionUpdate } from "./EntityDefinitionUpdate";
|
|
3
|
+
export { type EntityRelationCreate } from "./EntityRelationCreate";
|
|
4
|
+
export { type EntityRelationUpdate } from "./EntityRelationUpdate";
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./types"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./EntityDefinitionCreateEntitySchema"), exports);
|
|
18
|
+
__exportStar(require("./EntityDefinitionUpdateEntitySchema"), exports);
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
export * as sync from "./sync";
|
|
2
2
|
export * from "./sync/types";
|
|
3
|
+
export * as entities from "./entities";
|
|
4
|
+
export * from "./entities/types";
|
|
3
5
|
export * as users from "./users";
|
|
4
6
|
export * as sources from "./sources";
|
|
5
7
|
export * as destinations from "./destinations";
|
|
6
8
|
export * as embeddingModels from "./embeddingModels";
|
|
7
9
|
export * as connections from "./connections";
|
|
8
10
|
export * as whiteLabels from "./whiteLabels";
|
|
11
|
+
export * as dag from "./dag";
|
|
12
|
+
export * as transformers from "./transformers";
|
|
13
|
+
export * as cursorDevelopment from "./cursorDevelopment";
|
|
9
14
|
export * from "./connections/client/requests";
|
|
10
15
|
export * from "./sync/client/requests";
|
|
11
16
|
export * from "./whiteLabels/client/requests";
|
|
17
|
+
export * from "./dag/client/requests";
|
|
18
|
+
export * from "./entities/client/requests";
|
|
19
|
+
export * from "./transformers/client/requests";
|
|
@@ -36,15 +36,23 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.whiteLabels = exports.connections = exports.embeddingModels = exports.destinations = exports.sources = exports.users = exports.sync = void 0;
|
|
39
|
+
exports.cursorDevelopment = exports.transformers = exports.dag = exports.whiteLabels = exports.connections = exports.embeddingModels = exports.destinations = exports.sources = exports.users = exports.entities = exports.sync = void 0;
|
|
40
40
|
exports.sync = __importStar(require("./sync"));
|
|
41
41
|
__exportStar(require("./sync/types"), exports);
|
|
42
|
+
exports.entities = __importStar(require("./entities"));
|
|
43
|
+
__exportStar(require("./entities/types"), exports);
|
|
42
44
|
exports.users = __importStar(require("./users"));
|
|
43
45
|
exports.sources = __importStar(require("./sources"));
|
|
44
46
|
exports.destinations = __importStar(require("./destinations"));
|
|
45
47
|
exports.embeddingModels = __importStar(require("./embeddingModels"));
|
|
46
48
|
exports.connections = __importStar(require("./connections"));
|
|
47
49
|
exports.whiteLabels = __importStar(require("./whiteLabels"));
|
|
50
|
+
exports.dag = __importStar(require("./dag"));
|
|
51
|
+
exports.transformers = __importStar(require("./transformers"));
|
|
52
|
+
exports.cursorDevelopment = __importStar(require("./cursorDevelopment"));
|
|
48
53
|
__exportStar(require("./connections/client/requests"), exports);
|
|
49
54
|
__exportStar(require("./sync/client/requests"), exports);
|
|
50
55
|
__exportStar(require("./whiteLabels/client/requests"), exports);
|
|
56
|
+
__exportStar(require("./dag/client/requests"), exports);
|
|
57
|
+
__exportStar(require("./entities/client/requests"), exports);
|
|
58
|
+
__exportStar(require("./transformers/client/requests"), exports);
|
|
@@ -88,7 +88,7 @@ class Sources {
|
|
|
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 Sources {
|
|
|
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,
|
|
@@ -122,6 +122,30 @@ export declare class Sync {
|
|
|
122
122
|
* await client.sync.deleteSync("sync_id")
|
|
123
123
|
*/
|
|
124
124
|
deleteSync(syncId: string, request?: AirweaveSDK.DeleteSyncSyncSyncIdDeleteRequest, requestOptions?: Sync.RequestOptions): Promise<AirweaveSDK.Sync>;
|
|
125
|
+
/**
|
|
126
|
+
* Update a sync configuration.
|
|
127
|
+
*
|
|
128
|
+
* Args:
|
|
129
|
+
* -----
|
|
130
|
+
* db: The database session
|
|
131
|
+
* sync_id: The ID of the sync to update
|
|
132
|
+
* sync_update: The sync update data
|
|
133
|
+
* user: The current user
|
|
134
|
+
*
|
|
135
|
+
* Returns:
|
|
136
|
+
* --------
|
|
137
|
+
* sync (schemas.Sync): The updated sync
|
|
138
|
+
*
|
|
139
|
+
* @param {string} syncId
|
|
140
|
+
* @param {AirweaveSDK.SyncUpdate} request
|
|
141
|
+
* @param {Sync.RequestOptions} requestOptions - Request-specific configuration.
|
|
142
|
+
*
|
|
143
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* await client.sync.updateSync("sync_id")
|
|
147
|
+
*/
|
|
148
|
+
updateSync(syncId: string, request?: AirweaveSDK.SyncUpdate, requestOptions?: Sync.RequestOptions): Promise<AirweaveSDK.Sync>;
|
|
125
149
|
/**
|
|
126
150
|
* Trigger a sync run.
|
|
127
151
|
*
|
|
@@ -214,4 +238,16 @@ export declare class Sync {
|
|
|
214
238
|
* await client.sync.subscribeSyncJob("job_id")
|
|
215
239
|
*/
|
|
216
240
|
subscribeSyncJob(jobId: string, requestOptions?: Sync.RequestOptions): Promise<unknown>;
|
|
241
|
+
/**
|
|
242
|
+
* Get the DAG for a specific sync.
|
|
243
|
+
*
|
|
244
|
+
* @param {string} syncId
|
|
245
|
+
* @param {Sync.RequestOptions} requestOptions - Request-specific configuration.
|
|
246
|
+
*
|
|
247
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
248
|
+
*
|
|
249
|
+
* @example
|
|
250
|
+
* await client.sync.getSyncDag("sync_id")
|
|
251
|
+
*/
|
|
252
|
+
getSyncDag(syncId: string, requestOptions?: Sync.RequestOptions): Promise<AirweaveSDK.SyncDag>;
|
|
217
253
|
}
|
|
@@ -101,7 +101,7 @@ class Sync {
|
|
|
101
101
|
method: "GET",
|
|
102
102
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
103
103
|
? yield core.Supplier.get(this._options.apiKey)
|
|
104
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
104
|
+
: 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),
|
|
105
105
|
contentType: "application/json",
|
|
106
106
|
queryParameters: _queryParams,
|
|
107
107
|
requestType: "json",
|
|
@@ -181,7 +181,7 @@ class Sync {
|
|
|
181
181
|
method: "POST",
|
|
182
182
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
183
183
|
? yield core.Supplier.get(this._options.apiKey)
|
|
184
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
184
|
+
: 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),
|
|
185
185
|
contentType: "application/json",
|
|
186
186
|
requestType: "json",
|
|
187
187
|
body: serializers.SyncCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -257,7 +257,7 @@ class Sync {
|
|
|
257
257
|
method: "GET",
|
|
258
258
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
259
259
|
? yield core.Supplier.get(this._options.apiKey)
|
|
260
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
260
|
+
: 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),
|
|
261
261
|
contentType: "application/json",
|
|
262
262
|
requestType: "json",
|
|
263
263
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -339,7 +339,7 @@ class Sync {
|
|
|
339
339
|
method: "DELETE",
|
|
340
340
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
341
341
|
? yield core.Supplier.get(this._options.apiKey)
|
|
342
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
342
|
+
: 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),
|
|
343
343
|
contentType: "application/json",
|
|
344
344
|
queryParameters: _queryParams,
|
|
345
345
|
requestType: "json",
|
|
@@ -386,6 +386,84 @@ class Sync {
|
|
|
386
386
|
}
|
|
387
387
|
});
|
|
388
388
|
}
|
|
389
|
+
/**
|
|
390
|
+
* Update a sync configuration.
|
|
391
|
+
*
|
|
392
|
+
* Args:
|
|
393
|
+
* -----
|
|
394
|
+
* db: The database session
|
|
395
|
+
* sync_id: The ID of the sync to update
|
|
396
|
+
* sync_update: The sync update data
|
|
397
|
+
* user: The current user
|
|
398
|
+
*
|
|
399
|
+
* Returns:
|
|
400
|
+
* --------
|
|
401
|
+
* sync (schemas.Sync): The updated sync
|
|
402
|
+
*
|
|
403
|
+
* @param {string} syncId
|
|
404
|
+
* @param {AirweaveSDK.SyncUpdate} request
|
|
405
|
+
* @param {Sync.RequestOptions} requestOptions - Request-specific configuration.
|
|
406
|
+
*
|
|
407
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
408
|
+
*
|
|
409
|
+
* @example
|
|
410
|
+
* await client.sync.updateSync("sync_id")
|
|
411
|
+
*/
|
|
412
|
+
updateSync(syncId_1) {
|
|
413
|
+
return __awaiter(this, arguments, void 0, function* (syncId, request = {}, requestOptions) {
|
|
414
|
+
var _a;
|
|
415
|
+
const _response = yield core.fetcher({
|
|
416
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `sync/${encodeURIComponent(syncId)}`),
|
|
417
|
+
method: "PATCH",
|
|
418
|
+
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
419
|
+
? yield core.Supplier.get(this._options.apiKey)
|
|
420
|
+
: 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),
|
|
421
|
+
contentType: "application/json",
|
|
422
|
+
requestType: "json",
|
|
423
|
+
body: serializers.SyncUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
424
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
425
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
426
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
427
|
+
});
|
|
428
|
+
if (_response.ok) {
|
|
429
|
+
return serializers.Sync.parseOrThrow(_response.body, {
|
|
430
|
+
unrecognizedObjectKeys: "passthrough",
|
|
431
|
+
allowUnrecognizedUnionMembers: true,
|
|
432
|
+
allowUnrecognizedEnumValues: true,
|
|
433
|
+
breadcrumbsPrefix: ["response"],
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
if (_response.error.reason === "status-code") {
|
|
437
|
+
switch (_response.error.statusCode) {
|
|
438
|
+
case 422:
|
|
439
|
+
throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
440
|
+
unrecognizedObjectKeys: "passthrough",
|
|
441
|
+
allowUnrecognizedUnionMembers: true,
|
|
442
|
+
allowUnrecognizedEnumValues: true,
|
|
443
|
+
breadcrumbsPrefix: ["response"],
|
|
444
|
+
}));
|
|
445
|
+
default:
|
|
446
|
+
throw new errors.AirweaveSDKError({
|
|
447
|
+
statusCode: _response.error.statusCode,
|
|
448
|
+
body: _response.error.body,
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
switch (_response.error.reason) {
|
|
453
|
+
case "non-json":
|
|
454
|
+
throw new errors.AirweaveSDKError({
|
|
455
|
+
statusCode: _response.error.statusCode,
|
|
456
|
+
body: _response.error.rawBody,
|
|
457
|
+
});
|
|
458
|
+
case "timeout":
|
|
459
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling PATCH /sync/{sync_id}.");
|
|
460
|
+
case "unknown":
|
|
461
|
+
throw new errors.AirweaveSDKError({
|
|
462
|
+
message: _response.error.errorMessage,
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
});
|
|
466
|
+
}
|
|
389
467
|
/**
|
|
390
468
|
* Trigger a sync run.
|
|
391
469
|
*
|
|
@@ -416,7 +494,7 @@ class Sync {
|
|
|
416
494
|
method: "POST",
|
|
417
495
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
418
496
|
? yield core.Supplier.get(this._options.apiKey)
|
|
419
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
497
|
+
: 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),
|
|
420
498
|
contentType: "application/json",
|
|
421
499
|
requestType: "json",
|
|
422
500
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -491,7 +569,7 @@ class Sync {
|
|
|
491
569
|
method: "GET",
|
|
492
570
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
493
571
|
? yield core.Supplier.get(this._options.apiKey)
|
|
494
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
572
|
+
: 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),
|
|
495
573
|
contentType: "application/json",
|
|
496
574
|
requestType: "json",
|
|
497
575
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -573,7 +651,7 @@ class Sync {
|
|
|
573
651
|
method: "GET",
|
|
574
652
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
575
653
|
? yield core.Supplier.get(this._options.apiKey)
|
|
576
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
654
|
+
: 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),
|
|
577
655
|
contentType: "application/json",
|
|
578
656
|
queryParameters: _queryParams,
|
|
579
657
|
requestType: "json",
|
|
@@ -648,7 +726,7 @@ class Sync {
|
|
|
648
726
|
method: "GET",
|
|
649
727
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
650
728
|
? yield core.Supplier.get(this._options.apiKey)
|
|
651
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
729
|
+
: 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),
|
|
652
730
|
contentType: "application/json",
|
|
653
731
|
requestType: "json",
|
|
654
732
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -689,5 +767,70 @@ class Sync {
|
|
|
689
767
|
}
|
|
690
768
|
});
|
|
691
769
|
}
|
|
770
|
+
/**
|
|
771
|
+
* Get the DAG for a specific sync.
|
|
772
|
+
*
|
|
773
|
+
* @param {string} syncId
|
|
774
|
+
* @param {Sync.RequestOptions} requestOptions - Request-specific configuration.
|
|
775
|
+
*
|
|
776
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
777
|
+
*
|
|
778
|
+
* @example
|
|
779
|
+
* await client.sync.getSyncDag("sync_id")
|
|
780
|
+
*/
|
|
781
|
+
getSyncDag(syncId, requestOptions) {
|
|
782
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
783
|
+
var _a;
|
|
784
|
+
const _response = yield core.fetcher({
|
|
785
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `sync/${encodeURIComponent(syncId)}/dag`),
|
|
786
|
+
method: "GET",
|
|
787
|
+
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
788
|
+
? yield core.Supplier.get(this._options.apiKey)
|
|
789
|
+
: 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),
|
|
790
|
+
contentType: "application/json",
|
|
791
|
+
requestType: "json",
|
|
792
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
793
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
794
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
795
|
+
});
|
|
796
|
+
if (_response.ok) {
|
|
797
|
+
return serializers.SyncDag.parseOrThrow(_response.body, {
|
|
798
|
+
unrecognizedObjectKeys: "passthrough",
|
|
799
|
+
allowUnrecognizedUnionMembers: true,
|
|
800
|
+
allowUnrecognizedEnumValues: true,
|
|
801
|
+
breadcrumbsPrefix: ["response"],
|
|
802
|
+
});
|
|
803
|
+
}
|
|
804
|
+
if (_response.error.reason === "status-code") {
|
|
805
|
+
switch (_response.error.statusCode) {
|
|
806
|
+
case 422:
|
|
807
|
+
throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
808
|
+
unrecognizedObjectKeys: "passthrough",
|
|
809
|
+
allowUnrecognizedUnionMembers: true,
|
|
810
|
+
allowUnrecognizedEnumValues: true,
|
|
811
|
+
breadcrumbsPrefix: ["response"],
|
|
812
|
+
}));
|
|
813
|
+
default:
|
|
814
|
+
throw new errors.AirweaveSDKError({
|
|
815
|
+
statusCode: _response.error.statusCode,
|
|
816
|
+
body: _response.error.body,
|
|
817
|
+
});
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
switch (_response.error.reason) {
|
|
821
|
+
case "non-json":
|
|
822
|
+
throw new errors.AirweaveSDKError({
|
|
823
|
+
statusCode: _response.error.statusCode,
|
|
824
|
+
body: _response.error.rawBody,
|
|
825
|
+
});
|
|
826
|
+
case "timeout":
|
|
827
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /sync/{sync_id}/dag.");
|
|
828
|
+
case "unknown":
|
|
829
|
+
throw new errors.AirweaveSDKError({
|
|
830
|
+
message: _response.error.errorMessage,
|
|
831
|
+
});
|
|
832
|
+
}
|
|
833
|
+
});
|
|
834
|
+
}
|
|
692
835
|
}
|
|
693
836
|
exports.Sync = Sync;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as AirweaveSDK from "../../../../index";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {
|
|
@@ -15,8 +16,10 @@ export interface SyncCreate {
|
|
|
15
16
|
destinationConnectionId?: string;
|
|
16
17
|
embeddingModelConnectionId?: string;
|
|
17
18
|
cronSchedule?: string;
|
|
19
|
+
nextScheduledRun?: Date;
|
|
18
20
|
whiteLabelId?: string;
|
|
19
21
|
whiteLabelUserIdentifier?: string;
|
|
20
22
|
syncMetadata?: Record<string, unknown>;
|
|
23
|
+
status?: AirweaveSDK.SyncStatus;
|
|
21
24
|
runImmediately?: boolean;
|
|
22
25
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {}
|
|
8
|
+
*/
|
|
9
|
+
export interface SyncUpdate {
|
|
10
|
+
name?: string;
|
|
11
|
+
schedule?: string;
|
|
12
|
+
sourceConnectionId?: string;
|
|
13
|
+
destinationConnectionId?: string;
|
|
14
|
+
embeddingModelConnectionId?: string;
|
|
15
|
+
cronSchedule?: string;
|
|
16
|
+
nextScheduledRun?: Date;
|
|
17
|
+
whiteLabelId?: string;
|
|
18
|
+
whiteLabelUserIdentifier?: string;
|
|
19
|
+
syncMetadata?: Record<string, unknown>;
|
|
20
|
+
status?: AirweaveSDK.SyncStatus;
|
|
21
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { type ListSyncsSyncGetRequest } from "./ListSyncsSyncGetRequest";
|
|
2
2
|
export { type SyncCreate } from "./SyncCreate";
|
|
3
3
|
export { type DeleteSyncSyncSyncIdDeleteRequest } from "./DeleteSyncSyncSyncIdDeleteRequest";
|
|
4
|
+
export { type SyncUpdate } from "./SyncUpdate";
|
|
4
5
|
export { type GetSyncJobSyncJobJobIdGetRequest } from "./GetSyncJobSyncJobJobIdGetRequest";
|
|
@@ -0,0 +1,77 @@
|
|
|
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 Transformers {
|
|
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 Transformers {
|
|
27
|
+
protected readonly _options: Transformers.Options;
|
|
28
|
+
constructor(_options?: Transformers.Options);
|
|
29
|
+
/**
|
|
30
|
+
* List all transformers for the current user's organization.
|
|
31
|
+
*
|
|
32
|
+
* @param {Transformers.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
|
+
*
|
|
34
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* await client.transformers.listTransformers()
|
|
38
|
+
*/
|
|
39
|
+
listTransformers(requestOptions?: Transformers.RequestOptions): Promise<AirweaveSDK.Transformer[]>;
|
|
40
|
+
/**
|
|
41
|
+
* Create a new transformer.
|
|
42
|
+
*
|
|
43
|
+
* @param {AirweaveSDK.TransformerCreate} request
|
|
44
|
+
* @param {Transformers.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
|
+
*
|
|
46
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* await client.transformers.createTransformer({
|
|
50
|
+
* name: "name",
|
|
51
|
+
* methodName: "method_name",
|
|
52
|
+
* moduleName: "module_name",
|
|
53
|
+
* inputEntityDefinitionIds: ["input_entity_definition_ids"],
|
|
54
|
+
* outputEntityDefinitionIds: ["output_entity_definition_ids"]
|
|
55
|
+
* })
|
|
56
|
+
*/
|
|
57
|
+
createTransformer(request: AirweaveSDK.TransformerCreate, requestOptions?: Transformers.RequestOptions): Promise<AirweaveSDK.Transformer>;
|
|
58
|
+
/**
|
|
59
|
+
* Update a transformer.
|
|
60
|
+
*
|
|
61
|
+
* @param {string} transformerId
|
|
62
|
+
* @param {AirweaveSDK.TransformerUpdate} request
|
|
63
|
+
* @param {Transformers.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.transformers.updateTransformer("transformer_id", {
|
|
69
|
+
* name: "name",
|
|
70
|
+
* methodName: "method_name",
|
|
71
|
+
* moduleName: "module_name",
|
|
72
|
+
* inputEntityDefinitionIds: ["input_entity_definition_ids"],
|
|
73
|
+
* outputEntityDefinitionIds: ["output_entity_definition_ids"]
|
|
74
|
+
* })
|
|
75
|
+
*/
|
|
76
|
+
updateTransformer(transformerId: string, request: AirweaveSDK.TransformerUpdate, requestOptions?: Transformers.RequestOptions): Promise<AirweaveSDK.Transformer>;
|
|
77
|
+
}
|