@airweave/sdk 0.1.24 → 0.1.26
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 +9 -0
- package/Client.js +15 -0
- package/api/resources/connections/client/Client.js +12 -12
- 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 +7 -0
- package/api/resources/index.js +8 -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 +4 -0
- package/api/types/DestinationWithConfigFields.d.ts +4 -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 +4 -0
- package/api/types/SourceWithConfigFields.d.ts +4 -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 +9 -0
- package/dist/Client.js +15 -0
- package/dist/api/resources/connections/client/Client.js +12 -12
- 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 +7 -0
- package/dist/api/resources/index.js +8 -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 +4 -0
- package/dist/api/types/DestinationWithConfigFields.d.ts +4 -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 +4 -0
- package/dist/api/types/SourceWithConfigFields.d.ts +4 -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/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 +7 -0
- package/dist/serialization/resources/index.js +8 -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 +4 -0
- package/dist/serialization/types/Destination.js +4 -0
- package/dist/serialization/types/DestinationWithConfigFields.d.ts +4 -0
- package/dist/serialization/types/DestinationWithConfigFields.js +4 -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 +4 -0
- package/dist/serialization/types/Source.js +4 -0
- package/dist/serialization/types/SourceWithConfigFields.d.ts +4 -0
- package/dist/serialization/types/SourceWithConfigFields.js +4 -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 +1109 -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 +7 -0
- package/serialization/resources/index.js +8 -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 +4 -0
- package/serialization/types/Destination.js +4 -0
- package/serialization/types/DestinationWithConfigFields.d.ts +4 -0
- package/serialization/types/DestinationWithConfigFields.js +4 -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 +4 -0
- package/serialization/types/Source.js +4 -0
- package/serialization/types/SourceWithConfigFields.d.ts +4 -0
- package/serialization/types/SourceWithConfigFields.js +4 -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,272 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
+
};
|
|
50
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
+
exports.Transformers = void 0;
|
|
52
|
+
const environments = __importStar(require("../../../../environments"));
|
|
53
|
+
const core = __importStar(require("../../../../core"));
|
|
54
|
+
const AirweaveSDK = __importStar(require("../../../index"));
|
|
55
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
56
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
57
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
58
|
+
class Transformers {
|
|
59
|
+
constructor(_options = {}) {
|
|
60
|
+
this._options = _options;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* List all transformers for the current user's organization.
|
|
64
|
+
*
|
|
65
|
+
* @param {Transformers.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* await client.transformers.listTransformers()
|
|
71
|
+
*/
|
|
72
|
+
listTransformers(requestOptions) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
var _a;
|
|
75
|
+
const _response = yield core.fetcher({
|
|
76
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "transformers/"),
|
|
77
|
+
method: "GET",
|
|
78
|
+
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
79
|
+
? yield core.Supplier.get(this._options.apiKey)
|
|
80
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
81
|
+
contentType: "application/json",
|
|
82
|
+
requestType: "json",
|
|
83
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
84
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
85
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
86
|
+
});
|
|
87
|
+
if (_response.ok) {
|
|
88
|
+
return serializers.transformers.listTransformers.Response.parseOrThrow(_response.body, {
|
|
89
|
+
unrecognizedObjectKeys: "passthrough",
|
|
90
|
+
allowUnrecognizedUnionMembers: true,
|
|
91
|
+
allowUnrecognizedEnumValues: true,
|
|
92
|
+
breadcrumbsPrefix: ["response"],
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
if (_response.error.reason === "status-code") {
|
|
96
|
+
switch (_response.error.statusCode) {
|
|
97
|
+
case 422:
|
|
98
|
+
throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
99
|
+
unrecognizedObjectKeys: "passthrough",
|
|
100
|
+
allowUnrecognizedUnionMembers: true,
|
|
101
|
+
allowUnrecognizedEnumValues: true,
|
|
102
|
+
breadcrumbsPrefix: ["response"],
|
|
103
|
+
}));
|
|
104
|
+
default:
|
|
105
|
+
throw new errors.AirweaveSDKError({
|
|
106
|
+
statusCode: _response.error.statusCode,
|
|
107
|
+
body: _response.error.body,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
switch (_response.error.reason) {
|
|
112
|
+
case "non-json":
|
|
113
|
+
throw new errors.AirweaveSDKError({
|
|
114
|
+
statusCode: _response.error.statusCode,
|
|
115
|
+
body: _response.error.rawBody,
|
|
116
|
+
});
|
|
117
|
+
case "timeout":
|
|
118
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /transformers/.");
|
|
119
|
+
case "unknown":
|
|
120
|
+
throw new errors.AirweaveSDKError({
|
|
121
|
+
message: _response.error.errorMessage,
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Create a new transformer.
|
|
128
|
+
*
|
|
129
|
+
* @param {AirweaveSDK.TransformerCreate} request
|
|
130
|
+
* @param {Transformers.RequestOptions} requestOptions - Request-specific configuration.
|
|
131
|
+
*
|
|
132
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* await client.transformers.createTransformer({
|
|
136
|
+
* name: "name",
|
|
137
|
+
* methodName: "method_name",
|
|
138
|
+
* moduleName: "module_name",
|
|
139
|
+
* inputEntityDefinitionIds: ["input_entity_definition_ids"],
|
|
140
|
+
* outputEntityDefinitionIds: ["output_entity_definition_ids"]
|
|
141
|
+
* })
|
|
142
|
+
*/
|
|
143
|
+
createTransformer(request, requestOptions) {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
var _a;
|
|
146
|
+
const _response = yield core.fetcher({
|
|
147
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "transformers/"),
|
|
148
|
+
method: "POST",
|
|
149
|
+
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
150
|
+
? yield core.Supplier.get(this._options.apiKey)
|
|
151
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
152
|
+
contentType: "application/json",
|
|
153
|
+
requestType: "json",
|
|
154
|
+
body: serializers.TransformerCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
155
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
156
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
157
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
158
|
+
});
|
|
159
|
+
if (_response.ok) {
|
|
160
|
+
return serializers.Transformer.parseOrThrow(_response.body, {
|
|
161
|
+
unrecognizedObjectKeys: "passthrough",
|
|
162
|
+
allowUnrecognizedUnionMembers: true,
|
|
163
|
+
allowUnrecognizedEnumValues: true,
|
|
164
|
+
breadcrumbsPrefix: ["response"],
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
if (_response.error.reason === "status-code") {
|
|
168
|
+
switch (_response.error.statusCode) {
|
|
169
|
+
case 422:
|
|
170
|
+
throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
171
|
+
unrecognizedObjectKeys: "passthrough",
|
|
172
|
+
allowUnrecognizedUnionMembers: true,
|
|
173
|
+
allowUnrecognizedEnumValues: true,
|
|
174
|
+
breadcrumbsPrefix: ["response"],
|
|
175
|
+
}));
|
|
176
|
+
default:
|
|
177
|
+
throw new errors.AirweaveSDKError({
|
|
178
|
+
statusCode: _response.error.statusCode,
|
|
179
|
+
body: _response.error.body,
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
switch (_response.error.reason) {
|
|
184
|
+
case "non-json":
|
|
185
|
+
throw new errors.AirweaveSDKError({
|
|
186
|
+
statusCode: _response.error.statusCode,
|
|
187
|
+
body: _response.error.rawBody,
|
|
188
|
+
});
|
|
189
|
+
case "timeout":
|
|
190
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling POST /transformers/.");
|
|
191
|
+
case "unknown":
|
|
192
|
+
throw new errors.AirweaveSDKError({
|
|
193
|
+
message: _response.error.errorMessage,
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Update a transformer.
|
|
200
|
+
*
|
|
201
|
+
* @param {string} transformerId
|
|
202
|
+
* @param {AirweaveSDK.TransformerUpdate} request
|
|
203
|
+
* @param {Transformers.RequestOptions} requestOptions - Request-specific configuration.
|
|
204
|
+
*
|
|
205
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
206
|
+
*
|
|
207
|
+
* @example
|
|
208
|
+
* await client.transformers.updateTransformer("transformer_id", {
|
|
209
|
+
* name: "name",
|
|
210
|
+
* methodName: "method_name",
|
|
211
|
+
* moduleName: "module_name",
|
|
212
|
+
* inputEntityDefinitionIds: ["input_entity_definition_ids"],
|
|
213
|
+
* outputEntityDefinitionIds: ["output_entity_definition_ids"]
|
|
214
|
+
* })
|
|
215
|
+
*/
|
|
216
|
+
updateTransformer(transformerId, request, requestOptions) {
|
|
217
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
218
|
+
var _a;
|
|
219
|
+
const _response = yield core.fetcher({
|
|
220
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, `transformers/${encodeURIComponent(transformerId)}`),
|
|
221
|
+
method: "PUT",
|
|
222
|
+
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
223
|
+
? yield core.Supplier.get(this._options.apiKey)
|
|
224
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
225
|
+
contentType: "application/json",
|
|
226
|
+
requestType: "json",
|
|
227
|
+
body: serializers.TransformerUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
228
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
229
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
230
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
231
|
+
});
|
|
232
|
+
if (_response.ok) {
|
|
233
|
+
return serializers.Transformer.parseOrThrow(_response.body, {
|
|
234
|
+
unrecognizedObjectKeys: "passthrough",
|
|
235
|
+
allowUnrecognizedUnionMembers: true,
|
|
236
|
+
allowUnrecognizedEnumValues: true,
|
|
237
|
+
breadcrumbsPrefix: ["response"],
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
if (_response.error.reason === "status-code") {
|
|
241
|
+
switch (_response.error.statusCode) {
|
|
242
|
+
case 422:
|
|
243
|
+
throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
244
|
+
unrecognizedObjectKeys: "passthrough",
|
|
245
|
+
allowUnrecognizedUnionMembers: true,
|
|
246
|
+
allowUnrecognizedEnumValues: true,
|
|
247
|
+
breadcrumbsPrefix: ["response"],
|
|
248
|
+
}));
|
|
249
|
+
default:
|
|
250
|
+
throw new errors.AirweaveSDKError({
|
|
251
|
+
statusCode: _response.error.statusCode,
|
|
252
|
+
body: _response.error.body,
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
switch (_response.error.reason) {
|
|
257
|
+
case "non-json":
|
|
258
|
+
throw new errors.AirweaveSDKError({
|
|
259
|
+
statusCode: _response.error.statusCode,
|
|
260
|
+
body: _response.error.rawBody,
|
|
261
|
+
});
|
|
262
|
+
case "timeout":
|
|
263
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling PUT /transformers/{transformer_id}.");
|
|
264
|
+
case "unknown":
|
|
265
|
+
throw new errors.AirweaveSDKError({
|
|
266
|
+
message: _response.error.errorMessage,
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
exports.Transformers = Transformers;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* name: "name",
|
|
8
|
+
* methodName: "method_name",
|
|
9
|
+
* moduleName: "module_name",
|
|
10
|
+
* inputEntityDefinitionIds: ["input_entity_definition_ids"],
|
|
11
|
+
* outputEntityDefinitionIds: ["output_entity_definition_ids"]
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface TransformerCreate {
|
|
15
|
+
name: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
methodName: string;
|
|
18
|
+
moduleName: string;
|
|
19
|
+
inputEntityDefinitionIds: string[];
|
|
20
|
+
outputEntityDefinitionIds: string[];
|
|
21
|
+
configSchema?: Record<string, unknown>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* name: "name",
|
|
8
|
+
* methodName: "method_name",
|
|
9
|
+
* moduleName: "module_name",
|
|
10
|
+
* inputEntityDefinitionIds: ["input_entity_definition_ids"],
|
|
11
|
+
* outputEntityDefinitionIds: ["output_entity_definition_ids"]
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface TransformerUpdate {
|
|
15
|
+
name: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
methodName: string;
|
|
18
|
+
moduleName: string;
|
|
19
|
+
inputEntityDefinitionIds: string[];
|
|
20
|
+
outputEntityDefinitionIds: string[];
|
|
21
|
+
configSchema?: Record<string, unknown>;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -85,7 +85,7 @@ class Users {
|
|
|
85
85
|
method: "GET",
|
|
86
86
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
87
87
|
? yield core.Supplier.get(this._options.apiKey)
|
|
88
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
88
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
89
89
|
contentType: "application/json",
|
|
90
90
|
requestType: "json",
|
|
91
91
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -86,7 +86,7 @@ class WhiteLabels {
|
|
|
86
86
|
method: "GET",
|
|
87
87
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
88
88
|
? yield core.Supplier.get(this._options.apiKey)
|
|
89
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
89
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
90
90
|
contentType: "application/json",
|
|
91
91
|
requestType: "json",
|
|
92
92
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -167,7 +167,7 @@ class WhiteLabels {
|
|
|
167
167
|
method: "POST",
|
|
168
168
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
169
169
|
? yield core.Supplier.get(this._options.apiKey)
|
|
170
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
170
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
171
171
|
contentType: "application/json",
|
|
172
172
|
requestType: "json",
|
|
173
173
|
body: serializers.WhiteLabelCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -243,7 +243,7 @@ class WhiteLabels {
|
|
|
243
243
|
method: "GET",
|
|
244
244
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
245
245
|
? yield core.Supplier.get(this._options.apiKey)
|
|
246
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
246
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
247
247
|
contentType: "application/json",
|
|
248
248
|
requestType: "json",
|
|
249
249
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -320,7 +320,7 @@ class WhiteLabels {
|
|
|
320
320
|
method: "PUT",
|
|
321
321
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
322
322
|
? yield core.Supplier.get(this._options.apiKey)
|
|
323
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
323
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
324
324
|
contentType: "application/json",
|
|
325
325
|
requestType: "json",
|
|
326
326
|
body: serializers.WhiteLabelUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -396,7 +396,7 @@ class WhiteLabels {
|
|
|
396
396
|
method: "DELETE",
|
|
397
397
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
398
398
|
? yield core.Supplier.get(this._options.apiKey)
|
|
399
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
399
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
400
400
|
contentType: "application/json",
|
|
401
401
|
requestType: "json",
|
|
402
402
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -471,7 +471,7 @@ class WhiteLabels {
|
|
|
471
471
|
method: "GET",
|
|
472
472
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
473
473
|
? yield core.Supplier.get(this._options.apiKey)
|
|
474
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
474
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
475
475
|
contentType: "application/json",
|
|
476
476
|
requestType: "json",
|
|
477
477
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -548,7 +548,7 @@ class WhiteLabels {
|
|
|
548
548
|
method: "POST",
|
|
549
549
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
550
550
|
? yield core.Supplier.get(this._options.apiKey)
|
|
551
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
551
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
552
552
|
contentType: "application/json",
|
|
553
553
|
requestType: "json",
|
|
554
554
|
body: serializers.whiteLabels.exchangeWhiteLabelOauth2Code.Request.jsonOrThrow(request, {
|
|
@@ -626,7 +626,7 @@ class WhiteLabels {
|
|
|
626
626
|
method: "GET",
|
|
627
627
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
628
628
|
? yield core.Supplier.get(this._options.apiKey)
|
|
629
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
629
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
630
630
|
contentType: "application/json",
|
|
631
631
|
requestType: "json",
|
|
632
632
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Schema for a DAG edge.
|
|
6
|
+
*/
|
|
7
|
+
export interface DagEdge {
|
|
8
|
+
fromNodeId: string;
|
|
9
|
+
toNodeId: string;
|
|
10
|
+
id: string;
|
|
11
|
+
dagId: string;
|
|
12
|
+
organizationId: string;
|
|
13
|
+
createdByEmail: string;
|
|
14
|
+
modifiedByEmail: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 DAG node.
|
|
7
|
+
*/
|
|
8
|
+
export interface DagNode {
|
|
9
|
+
type: AirweaveSDK.NodeType;
|
|
10
|
+
name: string;
|
|
11
|
+
config?: Record<string, unknown>;
|
|
12
|
+
connectionId?: string;
|
|
13
|
+
entityDefinitionId?: string;
|
|
14
|
+
transformerId?: string;
|
|
15
|
+
id: string;
|
|
16
|
+
dagId: string;
|
|
17
|
+
organizationId: string;
|
|
18
|
+
createdByEmail: string;
|
|
19
|
+
modifiedByEmail: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Schema for creating a DAG node.
|
|
7
|
+
*/
|
|
8
|
+
export interface DagNodeCreate {
|
|
9
|
+
type: AirweaveSDK.NodeType;
|
|
10
|
+
name: string;
|
|
11
|
+
config?: Record<string, unknown>;
|
|
12
|
+
connectionId?: string;
|
|
13
|
+
entityDefinitionId?: string;
|
|
14
|
+
transformerId?: string;
|
|
15
|
+
/** Optional pre-set ID for the node */
|
|
16
|
+
id?: string;
|
|
17
|
+
}
|
|
@@ -12,6 +12,10 @@ export interface Destination {
|
|
|
12
12
|
className: string;
|
|
13
13
|
authType?: AirweaveSDK.AuthType;
|
|
14
14
|
authConfigClass?: string;
|
|
15
|
+
inputEntityDefinitionIds?: string[];
|
|
16
|
+
organizationId?: string;
|
|
17
|
+
configSchema?: Record<string, unknown>;
|
|
18
|
+
labels?: string[];
|
|
15
19
|
id: string;
|
|
16
20
|
createdAt: Date;
|
|
17
21
|
modifiedAt: Date;
|
|
@@ -12,6 +12,10 @@ export interface DestinationWithConfigFields {
|
|
|
12
12
|
className: string;
|
|
13
13
|
authType?: AirweaveSDK.AuthType;
|
|
14
14
|
authConfigClass?: string;
|
|
15
|
+
inputEntityDefinitionIds?: string[];
|
|
16
|
+
organizationId?: string;
|
|
17
|
+
configSchema?: Record<string, unknown>;
|
|
18
|
+
labels?: string[];
|
|
15
19
|
id: string;
|
|
16
20
|
createdAt: Date;
|
|
17
21
|
modifiedAt: Date;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Schema for an entity definition.
|
|
7
|
+
*/
|
|
8
|
+
export interface EntityDefinition {
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
type: AirweaveSDK.EntityType;
|
|
12
|
+
entitySchema: AirweaveSDK.EntityDefinitionEntitySchema;
|
|
13
|
+
parentId?: string;
|
|
14
|
+
moduleName: string;
|
|
15
|
+
className: string;
|
|
16
|
+
id: string;
|
|
17
|
+
organizationId: string;
|
|
18
|
+
createdByEmail: string;
|
|
19
|
+
modifiedByEmail: string;
|
|
20
|
+
}
|