@airweave/sdk 0.1.25 → 0.1.27
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 +0 -3
- package/Client.js +0 -5
- package/api/resources/connections/client/Client.js +12 -12
- package/api/resources/dag/client/Client.js +4 -4
- package/api/resources/destinations/client/Client.js +2 -2
- package/api/resources/embeddingModels/client/Client.js +2 -2
- package/api/resources/entities/client/Client.js +7 -7
- package/api/resources/index.d.ts +0 -1
- package/api/resources/index.js +1 -2
- package/api/resources/sources/client/Client.js +2 -2
- package/api/resources/sync/client/Client.d.ts +2 -1
- package/api/resources/sync/client/Client.js +12 -11
- package/api/resources/sync/client/requests/SyncCreate.d.ts +4 -3
- package/api/resources/sync/client/requests/SyncUpdate.d.ts +0 -4
- package/api/resources/transformers/client/Client.js +3 -3
- package/api/resources/users/client/Client.js +1 -1
- package/api/resources/whiteLabels/client/Client.js +8 -8
- package/api/types/Connection.d.ts +3 -3
- package/api/types/Destination.d.ts +1 -0
- package/api/types/DestinationWithConfigFields.d.ts +1 -0
- package/api/types/Source.d.ts +1 -0
- package/api/types/SourceWithConfigFields.d.ts +1 -0
- package/api/types/Sync.d.ts +2 -2
- package/api/types/SyncWithSourceConnection.d.ts +2 -2
- package/dist/Client.d.ts +0 -3
- package/dist/Client.js +0 -5
- package/dist/api/resources/connections/client/Client.js +12 -12
- package/dist/api/resources/dag/client/Client.js +4 -4
- 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.js +7 -7
- package/dist/api/resources/index.d.ts +0 -1
- package/dist/api/resources/index.js +1 -2
- package/dist/api/resources/sources/client/Client.js +2 -2
- package/dist/api/resources/sync/client/Client.d.ts +2 -1
- package/dist/api/resources/sync/client/Client.js +12 -11
- package/dist/api/resources/sync/client/requests/SyncCreate.d.ts +4 -3
- package/dist/api/resources/sync/client/requests/SyncUpdate.d.ts +0 -4
- package/dist/api/resources/transformers/client/Client.js +3 -3
- package/dist/api/resources/users/client/Client.js +1 -1
- package/dist/api/resources/whiteLabels/client/Client.js +8 -8
- package/dist/api/types/Connection.d.ts +3 -3
- package/dist/api/types/Destination.d.ts +1 -0
- package/dist/api/types/DestinationWithConfigFields.d.ts +1 -0
- package/dist/api/types/Source.d.ts +1 -0
- package/dist/api/types/SourceWithConfigFields.d.ts +1 -0
- package/dist/api/types/Sync.d.ts +2 -2
- package/dist/api/types/SyncWithSourceConnection.d.ts +2 -2
- package/dist/serialization/resources/index.d.ts +0 -1
- package/dist/serialization/resources/index.js +1 -2
- package/dist/serialization/resources/sync/client/requests/SyncCreate.d.ts +2 -2
- package/dist/serialization/resources/sync/client/requests/SyncCreate.js +2 -2
- package/dist/serialization/resources/sync/client/requests/SyncUpdate.d.ts +0 -4
- package/dist/serialization/resources/sync/client/requests/SyncUpdate.js +0 -4
- package/dist/serialization/types/Connection.d.ts +3 -3
- package/dist/serialization/types/Connection.js +3 -3
- package/dist/serialization/types/Destination.d.ts +1 -0
- package/dist/serialization/types/Destination.js +1 -0
- package/dist/serialization/types/DestinationWithConfigFields.d.ts +1 -0
- package/dist/serialization/types/DestinationWithConfigFields.js +1 -0
- package/dist/serialization/types/Source.d.ts +1 -0
- package/dist/serialization/types/Source.js +1 -0
- package/dist/serialization/types/SourceWithConfigFields.d.ts +1 -0
- package/dist/serialization/types/SourceWithConfigFields.js +1 -0
- package/dist/serialization/types/Sync.d.ts +2 -2
- package/dist/serialization/types/Sync.js +2 -2
- package/dist/serialization/types/SyncWithSourceConnection.d.ts +2 -2
- package/dist/serialization/types/SyncWithSourceConnection.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +1 -153
- package/serialization/resources/index.d.ts +0 -1
- package/serialization/resources/index.js +1 -2
- package/serialization/resources/sync/client/requests/SyncCreate.d.ts +2 -2
- package/serialization/resources/sync/client/requests/SyncCreate.js +2 -2
- package/serialization/resources/sync/client/requests/SyncUpdate.d.ts +0 -4
- package/serialization/resources/sync/client/requests/SyncUpdate.js +0 -4
- package/serialization/types/Connection.d.ts +3 -3
- package/serialization/types/Connection.js +3 -3
- package/serialization/types/Destination.d.ts +1 -0
- package/serialization/types/Destination.js +1 -0
- package/serialization/types/DestinationWithConfigFields.d.ts +1 -0
- package/serialization/types/DestinationWithConfigFields.js +1 -0
- package/serialization/types/Source.d.ts +1 -0
- package/serialization/types/Source.js +1 -0
- package/serialization/types/SourceWithConfigFields.d.ts +1 -0
- package/serialization/types/SourceWithConfigFields.js +1 -0
- package/serialization/types/Sync.d.ts +2 -2
- package/serialization/types/Sync.js +2 -2
- package/serialization/types/SyncWithSourceConnection.d.ts +2 -2
- package/serialization/types/SyncWithSourceConnection.js +2 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/cursorDevelopment/client/Client.d.ts +0 -78
- package/api/resources/cursorDevelopment/client/Client.js +0 -218
- package/api/resources/cursorDevelopment/client/index.d.ts +0 -1
- package/api/resources/cursorDevelopment/client/index.js +0 -2
- package/api/resources/cursorDevelopment/index.d.ts +0 -1
- package/api/resources/cursorDevelopment/index.js +0 -17
- package/dist/api/resources/cursorDevelopment/client/Client.d.ts +0 -78
- package/dist/api/resources/cursorDevelopment/client/Client.js +0 -218
- package/dist/api/resources/cursorDevelopment/client/index.d.ts +0 -1
- package/dist/api/resources/cursorDevelopment/client/index.js +0 -2
- package/dist/api/resources/cursorDevelopment/index.d.ts +0 -1
- package/dist/api/resources/cursorDevelopment/index.js +0 -17
- package/dist/serialization/resources/cursorDevelopment/client/checkConnectionStatus.d.ts +0 -11
- package/dist/serialization/resources/cursorDevelopment/client/checkConnectionStatus.js +0 -42
- package/dist/serialization/resources/cursorDevelopment/client/index.d.ts +0 -1
- package/dist/serialization/resources/cursorDevelopment/client/index.js +0 -37
- package/dist/serialization/resources/cursorDevelopment/index.d.ts +0 -1
- package/dist/serialization/resources/cursorDevelopment/index.js +0 -17
- package/serialization/resources/cursorDevelopment/client/checkConnectionStatus.d.ts +0 -11
- package/serialization/resources/cursorDevelopment/client/checkConnectionStatus.js +0 -42
- package/serialization/resources/cursorDevelopment/client/index.d.ts +0 -1
- package/serialization/resources/cursorDevelopment/client/index.js +0 -37
- package/serialization/resources/cursorDevelopment/index.d.ts +0 -1
- package/serialization/resources/cursorDevelopment/index.js +0 -17
package/reference.md
CHANGED
|
@@ -1522,6 +1522,7 @@ Create a new sync configuration.
|
|
|
1522
1522
|
await client.sync.createSync({
|
|
1523
1523
|
name: "name",
|
|
1524
1524
|
sourceConnectionId: "source_connection_id",
|
|
1525
|
+
destinationConnectionIds: ["destination_connection_ids"],
|
|
1525
1526
|
});
|
|
1526
1527
|
```
|
|
1527
1528
|
|
|
@@ -3724,156 +3725,3 @@ await client.transformers.updateTransformer("transformer_id", {
|
|
|
3724
3725
|
</dd>
|
|
3725
3726
|
</dl>
|
|
3726
3727
|
</details>
|
|
3727
|
-
|
|
3728
|
-
## CursorDevelopment
|
|
3729
|
-
|
|
3730
|
-
<details><summary><code>client.cursorDevelopment.<a href="/src/api/resources/cursorDevelopment/client/Client.ts">checkConnectionStatus</a>(shortName) -> AirweaveSDK.Connection[]</code></summary>
|
|
3731
|
-
<dl>
|
|
3732
|
-
<dd>
|
|
3733
|
-
|
|
3734
|
-
#### 📝 Description
|
|
3735
|
-
|
|
3736
|
-
<dl>
|
|
3737
|
-
<dd>
|
|
3738
|
-
|
|
3739
|
-
<dl>
|
|
3740
|
-
<dd>
|
|
3741
|
-
|
|
3742
|
-
Check if a source connection exists for the given short_name.
|
|
3743
|
-
|
|
3744
|
-
## Args:
|
|
3745
|
-
|
|
3746
|
-
db: The database session
|
|
3747
|
-
short_name: The short name of the source to check
|
|
3748
|
-
user: The admin user
|
|
3749
|
-
|
|
3750
|
-
## Returns:
|
|
3751
|
-
|
|
3752
|
-
List[schemas.Connection]: List of source connections for the given short_name
|
|
3753
|
-
|
|
3754
|
-
</dd>
|
|
3755
|
-
</dl>
|
|
3756
|
-
</dd>
|
|
3757
|
-
</dl>
|
|
3758
|
-
|
|
3759
|
-
#### 🔌 Usage
|
|
3760
|
-
|
|
3761
|
-
<dl>
|
|
3762
|
-
<dd>
|
|
3763
|
-
|
|
3764
|
-
<dl>
|
|
3765
|
-
<dd>
|
|
3766
|
-
|
|
3767
|
-
```typescript
|
|
3768
|
-
await client.cursorDevelopment.checkConnectionStatus("short_name");
|
|
3769
|
-
```
|
|
3770
|
-
|
|
3771
|
-
</dd>
|
|
3772
|
-
</dl>
|
|
3773
|
-
</dd>
|
|
3774
|
-
</dl>
|
|
3775
|
-
|
|
3776
|
-
#### ⚙️ Parameters
|
|
3777
|
-
|
|
3778
|
-
<dl>
|
|
3779
|
-
<dd>
|
|
3780
|
-
|
|
3781
|
-
<dl>
|
|
3782
|
-
<dd>
|
|
3783
|
-
|
|
3784
|
-
**shortName:** `string`
|
|
3785
|
-
|
|
3786
|
-
</dd>
|
|
3787
|
-
</dl>
|
|
3788
|
-
|
|
3789
|
-
<dl>
|
|
3790
|
-
<dd>
|
|
3791
|
-
|
|
3792
|
-
**requestOptions:** `CursorDevelopment.RequestOptions`
|
|
3793
|
-
|
|
3794
|
-
</dd>
|
|
3795
|
-
</dl>
|
|
3796
|
-
</dd>
|
|
3797
|
-
</dl>
|
|
3798
|
-
|
|
3799
|
-
</dd>
|
|
3800
|
-
</dl>
|
|
3801
|
-
</details>
|
|
3802
|
-
|
|
3803
|
-
<details><summary><code>client.cursorDevelopment.<a href="/src/api/resources/cursorDevelopment/client/Client.ts">testSync</a>(shortName) -> AirweaveSDK.SyncJob</code></summary>
|
|
3804
|
-
<dl>
|
|
3805
|
-
<dd>
|
|
3806
|
-
|
|
3807
|
-
#### 📝 Description
|
|
3808
|
-
|
|
3809
|
-
<dl>
|
|
3810
|
-
<dd>
|
|
3811
|
-
|
|
3812
|
-
<dl>
|
|
3813
|
-
<dd>
|
|
3814
|
-
|
|
3815
|
-
Run a sync for a specific source by short_name.
|
|
3816
|
-
|
|
3817
|
-
This endpoint is used for testing source integrations during development.
|
|
3818
|
-
It finds the first available source connection for the given short_name and
|
|
3819
|
-
runs a sync on it.
|
|
3820
|
-
|
|
3821
|
-
## Args:
|
|
3822
|
-
|
|
3823
|
-
db: The database session
|
|
3824
|
-
short_name: The short name of the source to sync
|
|
3825
|
-
background_tasks: The background tasks
|
|
3826
|
-
user: The admin user
|
|
3827
|
-
|
|
3828
|
-
## Returns:
|
|
3829
|
-
|
|
3830
|
-
schemas.SyncJob: The created sync job
|
|
3831
|
-
|
|
3832
|
-
</dd>
|
|
3833
|
-
</dl>
|
|
3834
|
-
</dd>
|
|
3835
|
-
</dl>
|
|
3836
|
-
|
|
3837
|
-
#### 🔌 Usage
|
|
3838
|
-
|
|
3839
|
-
<dl>
|
|
3840
|
-
<dd>
|
|
3841
|
-
|
|
3842
|
-
<dl>
|
|
3843
|
-
<dd>
|
|
3844
|
-
|
|
3845
|
-
```typescript
|
|
3846
|
-
await client.cursorDevelopment.testSync("short_name");
|
|
3847
|
-
```
|
|
3848
|
-
|
|
3849
|
-
</dd>
|
|
3850
|
-
</dl>
|
|
3851
|
-
</dd>
|
|
3852
|
-
</dl>
|
|
3853
|
-
|
|
3854
|
-
#### ⚙️ Parameters
|
|
3855
|
-
|
|
3856
|
-
<dl>
|
|
3857
|
-
<dd>
|
|
3858
|
-
|
|
3859
|
-
<dl>
|
|
3860
|
-
<dd>
|
|
3861
|
-
|
|
3862
|
-
**shortName:** `string`
|
|
3863
|
-
|
|
3864
|
-
</dd>
|
|
3865
|
-
</dl>
|
|
3866
|
-
|
|
3867
|
-
<dl>
|
|
3868
|
-
<dd>
|
|
3869
|
-
|
|
3870
|
-
**requestOptions:** `CursorDevelopment.RequestOptions`
|
|
3871
|
-
|
|
3872
|
-
</dd>
|
|
3873
|
-
</dl>
|
|
3874
|
-
</dd>
|
|
3875
|
-
</dl>
|
|
3876
|
-
|
|
3877
|
-
</dd>
|
|
3878
|
-
</dl>
|
|
3879
|
-
</details>
|
|
@@ -8,7 +8,6 @@ export * as embeddingModels from "./embeddingModels";
|
|
|
8
8
|
export * as connections from "./connections";
|
|
9
9
|
export * as whiteLabels from "./whiteLabels";
|
|
10
10
|
export * as transformers from "./transformers";
|
|
11
|
-
export * as cursorDevelopment from "./cursorDevelopment";
|
|
12
11
|
export * from "./connections/client/requests";
|
|
13
12
|
export * from "./sync/client/requests";
|
|
14
13
|
export * from "./whiteLabels/client/requests";
|
|
@@ -36,7 +36,7 @@ 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.dag = exports.
|
|
39
|
+
exports.dag = exports.transformers = exports.whiteLabels = exports.connections = exports.embeddingModels = exports.destinations = exports.sources = exports.entities = exports.sync = void 0;
|
|
40
40
|
exports.sync = __importStar(require("./sync"));
|
|
41
41
|
__exportStar(require("./sync/types"), exports);
|
|
42
42
|
exports.entities = __importStar(require("./entities"));
|
|
@@ -47,7 +47,6 @@ exports.embeddingModels = __importStar(require("./embeddingModels"));
|
|
|
47
47
|
exports.connections = __importStar(require("./connections"));
|
|
48
48
|
exports.whiteLabels = __importStar(require("./whiteLabels"));
|
|
49
49
|
exports.transformers = __importStar(require("./transformers"));
|
|
50
|
-
exports.cursorDevelopment = __importStar(require("./cursorDevelopment"));
|
|
51
50
|
__exportStar(require("./connections/client/requests"), exports);
|
|
52
51
|
__exportStar(require("./sync/client/requests"), exports);
|
|
53
52
|
__exportStar(require("./whiteLabels/client/requests"), exports);
|
|
@@ -9,10 +9,10 @@ export declare const SyncCreate: core.serialization.Schema<serializers.SyncCreat
|
|
|
9
9
|
export declare namespace SyncCreate {
|
|
10
10
|
interface Raw {
|
|
11
11
|
name: string;
|
|
12
|
-
description?: string | null;
|
|
13
12
|
source_connection_id: string;
|
|
14
|
-
destination_connection_id?: string | null;
|
|
15
13
|
embedding_model_connection_id?: string | null;
|
|
14
|
+
destination_connection_ids: string[];
|
|
15
|
+
description?: string | null;
|
|
16
16
|
cron_schedule?: string | null;
|
|
17
17
|
next_scheduled_run?: string | null;
|
|
18
18
|
white_label_id?: string | null;
|
|
@@ -41,10 +41,10 @@ const core = __importStar(require("../../../../../core"));
|
|
|
41
41
|
const SyncStatus_1 = require("../../../../types/SyncStatus");
|
|
42
42
|
exports.SyncCreate = core.serialization.object({
|
|
43
43
|
name: core.serialization.string(),
|
|
44
|
-
description: core.serialization.string().optional(),
|
|
45
44
|
sourceConnectionId: core.serialization.property("source_connection_id", core.serialization.string()),
|
|
46
|
-
destinationConnectionId: core.serialization.property("destination_connection_id", core.serialization.string().optional()),
|
|
47
45
|
embeddingModelConnectionId: core.serialization.property("embedding_model_connection_id", core.serialization.string().optional()),
|
|
46
|
+
destinationConnectionIds: core.serialization.property("destination_connection_ids", core.serialization.list(core.serialization.string())),
|
|
47
|
+
description: core.serialization.string().optional(),
|
|
48
48
|
cronSchedule: core.serialization.property("cron_schedule", core.serialization.string().optional()),
|
|
49
49
|
nextScheduledRun: core.serialization.property("next_scheduled_run", core.serialization.date().optional()),
|
|
50
50
|
whiteLabelId: core.serialization.property("white_label_id", core.serialization.string().optional()),
|
|
@@ -9,10 +9,6 @@ export declare const SyncUpdate: core.serialization.Schema<serializers.SyncUpdat
|
|
|
9
9
|
export declare namespace SyncUpdate {
|
|
10
10
|
interface Raw {
|
|
11
11
|
name?: string | null;
|
|
12
|
-
schedule?: string | null;
|
|
13
|
-
source_connection_id?: string | null;
|
|
14
|
-
destination_connection_id?: string | null;
|
|
15
|
-
embedding_model_connection_id?: string | null;
|
|
16
12
|
cron_schedule?: string | null;
|
|
17
13
|
next_scheduled_run?: string | null;
|
|
18
14
|
white_label_id?: string | null;
|
|
@@ -41,10 +41,6 @@ const core = __importStar(require("../../../../../core"));
|
|
|
41
41
|
const SyncStatus_1 = require("../../../../types/SyncStatus");
|
|
42
42
|
exports.SyncUpdate = core.serialization.object({
|
|
43
43
|
name: core.serialization.string().optional(),
|
|
44
|
-
schedule: core.serialization.string().optional(),
|
|
45
|
-
sourceConnectionId: core.serialization.property("source_connection_id", core.serialization.string().optional()),
|
|
46
|
-
destinationConnectionId: core.serialization.property("destination_connection_id", core.serialization.string().optional()),
|
|
47
|
-
embeddingModelConnectionId: core.serialization.property("embedding_model_connection_id", core.serialization.string().optional()),
|
|
48
44
|
cronSchedule: core.serialization.property("cron_schedule", core.serialization.string().optional()),
|
|
49
45
|
nextScheduledRun: core.serialization.property("next_scheduled_run", core.serialization.date().optional()),
|
|
50
46
|
whiteLabelId: core.serialization.property("white_label_id", core.serialization.string().optional()),
|
|
@@ -15,8 +15,8 @@ export declare namespace Connection {
|
|
|
15
15
|
status: ConnectionStatus.Raw;
|
|
16
16
|
short_name: string;
|
|
17
17
|
id: string;
|
|
18
|
-
organization_id
|
|
19
|
-
created_by_email
|
|
20
|
-
modified_by_email
|
|
18
|
+
organization_id?: string | null;
|
|
19
|
+
created_by_email?: string | null;
|
|
20
|
+
modified_by_email?: string | null;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -47,7 +47,7 @@ exports.Connection = core.serialization.object({
|
|
|
47
47
|
status: ConnectionStatus_1.ConnectionStatus,
|
|
48
48
|
shortName: core.serialization.property("short_name", core.serialization.string()),
|
|
49
49
|
id: core.serialization.string(),
|
|
50
|
-
organizationId: core.serialization.property("organization_id", core.serialization.string()),
|
|
51
|
-
createdByEmail: core.serialization.property("created_by_email", core.serialization.string()),
|
|
52
|
-
modifiedByEmail: core.serialization.property("modified_by_email", core.serialization.string()),
|
|
50
|
+
organizationId: core.serialization.property("organization_id", core.serialization.string().optional()),
|
|
51
|
+
createdByEmail: core.serialization.property("created_by_email", core.serialization.string().optional()),
|
|
52
|
+
modifiedByEmail: core.serialization.property("modified_by_email", core.serialization.string().optional()),
|
|
53
53
|
});
|
|
@@ -17,6 +17,7 @@ export declare namespace Destination {
|
|
|
17
17
|
input_entity_definition_ids?: string[] | null;
|
|
18
18
|
organization_id?: string | null;
|
|
19
19
|
config_schema?: Record<string, unknown> | null;
|
|
20
|
+
labels?: string[] | null;
|
|
20
21
|
id: string;
|
|
21
22
|
created_at: string;
|
|
22
23
|
modified_at: string;
|
|
@@ -49,6 +49,7 @@ exports.Destination = core.serialization.object({
|
|
|
49
49
|
inputEntityDefinitionIds: core.serialization.property("input_entity_definition_ids", core.serialization.list(core.serialization.string()).optional()),
|
|
50
50
|
organizationId: core.serialization.property("organization_id", core.serialization.string().optional()),
|
|
51
51
|
configSchema: core.serialization.property("config_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
52
|
+
labels: core.serialization.list(core.serialization.string()).optional(),
|
|
52
53
|
id: core.serialization.string(),
|
|
53
54
|
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
54
55
|
modifiedAt: core.serialization.property("modified_at", core.serialization.date()),
|
|
@@ -18,6 +18,7 @@ export declare namespace DestinationWithConfigFields {
|
|
|
18
18
|
input_entity_definition_ids?: string[] | null;
|
|
19
19
|
organization_id?: string | null;
|
|
20
20
|
config_schema?: Record<string, unknown> | null;
|
|
21
|
+
labels?: string[] | null;
|
|
21
22
|
id: string;
|
|
22
23
|
created_at: string;
|
|
23
24
|
modified_at: string;
|
|
@@ -50,6 +50,7 @@ exports.DestinationWithConfigFields = core.serialization.object({
|
|
|
50
50
|
inputEntityDefinitionIds: core.serialization.property("input_entity_definition_ids", core.serialization.list(core.serialization.string()).optional()),
|
|
51
51
|
organizationId: core.serialization.property("organization_id", core.serialization.string().optional()),
|
|
52
52
|
configSchema: core.serialization.property("config_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
53
|
+
labels: core.serialization.list(core.serialization.string()).optional(),
|
|
53
54
|
id: core.serialization.string(),
|
|
54
55
|
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
55
56
|
modifiedAt: core.serialization.property("modified_at", core.serialization.date()),
|
|
@@ -17,6 +17,7 @@ export declare namespace Source {
|
|
|
17
17
|
output_entity_definition_ids?: string[] | null;
|
|
18
18
|
organization_id?: string | null;
|
|
19
19
|
config_schema?: Record<string, unknown> | null;
|
|
20
|
+
labels?: string[] | null;
|
|
20
21
|
id: string;
|
|
21
22
|
created_at: string;
|
|
22
23
|
modified_at: string;
|
|
@@ -49,6 +49,7 @@ exports.Source = core.serialization.object({
|
|
|
49
49
|
outputEntityDefinitionIds: core.serialization.property("output_entity_definition_ids", core.serialization.list(core.serialization.string()).optional()),
|
|
50
50
|
organizationId: core.serialization.property("organization_id", core.serialization.string().optional()),
|
|
51
51
|
configSchema: core.serialization.property("config_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
52
|
+
labels: core.serialization.list(core.serialization.string()).optional(),
|
|
52
53
|
id: core.serialization.string(),
|
|
53
54
|
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
54
55
|
modifiedAt: core.serialization.property("modified_at", core.serialization.date()),
|
|
@@ -18,6 +18,7 @@ export declare namespace SourceWithConfigFields {
|
|
|
18
18
|
output_entity_definition_ids?: string[] | null;
|
|
19
19
|
organization_id?: string | null;
|
|
20
20
|
config_schema?: Record<string, unknown> | null;
|
|
21
|
+
labels?: string[] | null;
|
|
21
22
|
id: string;
|
|
22
23
|
created_at: string;
|
|
23
24
|
modified_at: string;
|
|
@@ -50,6 +50,7 @@ exports.SourceWithConfigFields = core.serialization.object({
|
|
|
50
50
|
outputEntityDefinitionIds: core.serialization.property("output_entity_definition_ids", core.serialization.list(core.serialization.string()).optional()),
|
|
51
51
|
organizationId: core.serialization.property("organization_id", core.serialization.string().optional()),
|
|
52
52
|
configSchema: core.serialization.property("config_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
53
|
+
labels: core.serialization.list(core.serialization.string()).optional(),
|
|
53
54
|
id: core.serialization.string(),
|
|
54
55
|
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
55
56
|
modifiedAt: core.serialization.property("modified_at", core.serialization.date()),
|
|
@@ -9,10 +9,10 @@ export declare const Sync: core.serialization.ObjectSchema<serializers.Sync.Raw,
|
|
|
9
9
|
export declare namespace Sync {
|
|
10
10
|
interface Raw {
|
|
11
11
|
name: string;
|
|
12
|
-
description?: string | null;
|
|
13
12
|
source_connection_id: string;
|
|
14
|
-
destination_connection_id?: string | null;
|
|
15
13
|
embedding_model_connection_id?: string | null;
|
|
14
|
+
destination_connection_ids: string[];
|
|
15
|
+
description?: string | null;
|
|
16
16
|
cron_schedule?: string | null;
|
|
17
17
|
next_scheduled_run?: string | null;
|
|
18
18
|
white_label_id?: string | null;
|
|
@@ -41,10 +41,10 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
const SyncStatus_1 = require("./SyncStatus");
|
|
42
42
|
exports.Sync = core.serialization.object({
|
|
43
43
|
name: core.serialization.string(),
|
|
44
|
-
description: core.serialization.string().optional(),
|
|
45
44
|
sourceConnectionId: core.serialization.property("source_connection_id", core.serialization.string()),
|
|
46
|
-
destinationConnectionId: core.serialization.property("destination_connection_id", core.serialization.string().optional()),
|
|
47
45
|
embeddingModelConnectionId: core.serialization.property("embedding_model_connection_id", core.serialization.string().optional()),
|
|
46
|
+
destinationConnectionIds: core.serialization.property("destination_connection_ids", core.serialization.list(core.serialization.string())),
|
|
47
|
+
description: core.serialization.string().optional(),
|
|
48
48
|
cronSchedule: core.serialization.property("cron_schedule", core.serialization.string().optional()),
|
|
49
49
|
nextScheduledRun: core.serialization.property("next_scheduled_run", core.serialization.date().optional()),
|
|
50
50
|
whiteLabelId: core.serialization.property("white_label_id", core.serialization.string().optional()),
|
|
@@ -10,10 +10,10 @@ export declare const SyncWithSourceConnection: core.serialization.ObjectSchema<s
|
|
|
10
10
|
export declare namespace SyncWithSourceConnection {
|
|
11
11
|
interface Raw {
|
|
12
12
|
name: string;
|
|
13
|
-
description?: string | null;
|
|
14
13
|
source_connection_id: string;
|
|
15
|
-
destination_connection_id?: string | null;
|
|
16
14
|
embedding_model_connection_id?: string | null;
|
|
15
|
+
destination_connection_ids: string[];
|
|
16
|
+
description?: string | null;
|
|
17
17
|
cron_schedule?: string | null;
|
|
18
18
|
next_scheduled_run?: string | null;
|
|
19
19
|
white_label_id?: string | null;
|
|
@@ -42,10 +42,10 @@ const SyncStatus_1 = require("./SyncStatus");
|
|
|
42
42
|
const Connection_1 = require("./Connection");
|
|
43
43
|
exports.SyncWithSourceConnection = core.serialization.object({
|
|
44
44
|
name: core.serialization.string(),
|
|
45
|
-
description: core.serialization.string().optional(),
|
|
46
45
|
sourceConnectionId: core.serialization.property("source_connection_id", core.serialization.string()),
|
|
47
|
-
destinationConnectionId: core.serialization.property("destination_connection_id", core.serialization.string().optional()),
|
|
48
46
|
embeddingModelConnectionId: core.serialization.property("embedding_model_connection_id", core.serialization.string().optional()),
|
|
47
|
+
destinationConnectionIds: core.serialization.property("destination_connection_ids", core.serialization.list(core.serialization.string())),
|
|
48
|
+
description: core.serialization.string().optional(),
|
|
49
49
|
cronSchedule: core.serialization.property("cron_schedule", core.serialization.string().optional()),
|
|
50
50
|
nextScheduledRun: core.serialization.property("next_scheduled_run", core.serialization.date().optional()),
|
|
51
51
|
whiteLabelId: core.serialization.property("white_label_id", core.serialization.string().optional()),
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.27";
|
package/version.js
CHANGED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as environments from "../../../../environments";
|
|
5
|
-
import * as core from "../../../../core";
|
|
6
|
-
import * as AirweaveSDK from "../../../index";
|
|
7
|
-
export declare namespace CursorDevelopment {
|
|
8
|
-
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
|
|
10
|
-
/** Override the x-api-key header */
|
|
11
|
-
apiKey?: core.Supplier<string | undefined>;
|
|
12
|
-
}
|
|
13
|
-
interface RequestOptions {
|
|
14
|
-
/** The maximum time to wait for a response in seconds. */
|
|
15
|
-
timeoutInSeconds?: number;
|
|
16
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
17
|
-
maxRetries?: number;
|
|
18
|
-
/** A hook to abort the request. */
|
|
19
|
-
abortSignal?: AbortSignal;
|
|
20
|
-
/** Override the x-api-key header */
|
|
21
|
-
apiKey?: string | undefined;
|
|
22
|
-
/** Additional headers to include in the request. */
|
|
23
|
-
headers?: Record<string, string>;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export declare class CursorDevelopment {
|
|
27
|
-
protected readonly _options: CursorDevelopment.Options;
|
|
28
|
-
constructor(_options?: CursorDevelopment.Options);
|
|
29
|
-
/**
|
|
30
|
-
* Check if a source connection exists for the given short_name.
|
|
31
|
-
*
|
|
32
|
-
* Args:
|
|
33
|
-
* -----
|
|
34
|
-
* db: The database session
|
|
35
|
-
* short_name: The short name of the source to check
|
|
36
|
-
* user: The admin user
|
|
37
|
-
*
|
|
38
|
-
* Returns:
|
|
39
|
-
* --------
|
|
40
|
-
* List[schemas.Connection]: List of source connections for the given short_name
|
|
41
|
-
*
|
|
42
|
-
* @param {string} shortName
|
|
43
|
-
* @param {CursorDevelopment.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
-
*
|
|
45
|
-
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* await client.cursorDevelopment.checkConnectionStatus("short_name")
|
|
49
|
-
*/
|
|
50
|
-
checkConnectionStatus(shortName: string, requestOptions?: CursorDevelopment.RequestOptions): Promise<AirweaveSDK.Connection[]>;
|
|
51
|
-
/**
|
|
52
|
-
* Run a sync for a specific source by short_name.
|
|
53
|
-
*
|
|
54
|
-
* This endpoint is used for testing source integrations during development.
|
|
55
|
-
* It finds the first available source connection for the given short_name and
|
|
56
|
-
* runs a sync on it.
|
|
57
|
-
*
|
|
58
|
-
* Args:
|
|
59
|
-
* -----
|
|
60
|
-
* db: The database session
|
|
61
|
-
* short_name: The short name of the source to sync
|
|
62
|
-
* background_tasks: The background tasks
|
|
63
|
-
* user: The admin user
|
|
64
|
-
*
|
|
65
|
-
* Returns:
|
|
66
|
-
* --------
|
|
67
|
-
* schemas.SyncJob: The created sync job
|
|
68
|
-
*
|
|
69
|
-
* @param {string} shortName
|
|
70
|
-
* @param {CursorDevelopment.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
|
-
*
|
|
72
|
-
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
73
|
-
*
|
|
74
|
-
* @example
|
|
75
|
-
* await client.cursorDevelopment.testSync("short_name")
|
|
76
|
-
*/
|
|
77
|
-
testSync(shortName: string, requestOptions?: CursorDevelopment.RequestOptions): Promise<AirweaveSDK.SyncJob>;
|
|
78
|
-
}
|