@airweave/sdk 0.2.13 → 0.2.14
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/api/resources/connections/client/Client.js +10 -10
- 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 +8 -8
- package/api/resources/search/client/Client.d.ts +3 -2
- package/api/resources/search/client/Client.js +7 -3
- package/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +5 -0
- package/api/resources/sources/client/Client.js +2 -2
- package/api/resources/sync/client/Client.js +11 -11
- package/api/resources/transformers/client/Client.js +3 -3
- package/api/resources/users/client/Client.js +2 -2
- package/api/resources/whiteLabels/client/Client.js +8 -8
- package/api/types/ResponseType.d.ts +11 -0
- package/api/types/ResponseType.js +10 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/api/resources/connections/client/Client.js +10 -10
- 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 +8 -8
- package/dist/api/resources/search/client/Client.d.ts +3 -2
- package/dist/api/resources/search/client/Client.js +7 -3
- package/dist/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +5 -0
- package/dist/api/resources/sources/client/Client.js +2 -2
- package/dist/api/resources/sync/client/Client.js +11 -11
- package/dist/api/resources/transformers/client/Client.js +3 -3
- package/dist/api/resources/users/client/Client.js +2 -2
- package/dist/api/resources/whiteLabels/client/Client.js +8 -8
- package/dist/api/types/ResponseType.d.ts +11 -0
- package/dist/api/types/ResponseType.js +10 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/resources/search/client/search.d.ts +2 -2
- package/dist/serialization/resources/search/client/search.js +1 -1
- package/dist/serialization/types/ResponseType.d.ts +10 -0
- package/dist/serialization/types/ResponseType.js +41 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +3 -2
- package/serialization/resources/search/client/search.d.ts +2 -2
- package/serialization/resources/search/client/search.js +1 -1
- package/serialization/types/ResponseType.d.ts +10 -0
- package/serialization/types/ResponseType.js +41 -0
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -27,6 +27,7 @@ export * from "./Fields";
|
|
|
27
27
|
export * from "./HttpValidationError";
|
|
28
28
|
export * from "./IntegrationType";
|
|
29
29
|
export * from "./NodeType";
|
|
30
|
+
export * from "./ResponseType";
|
|
30
31
|
export * from "./Source";
|
|
31
32
|
export * from "./SourceWithConfigFields";
|
|
32
33
|
export * from "./Sync";
|
package/dist/api/types/index.js
CHANGED
|
@@ -43,6 +43,7 @@ __exportStar(require("./Fields"), exports);
|
|
|
43
43
|
__exportStar(require("./HttpValidationError"), exports);
|
|
44
44
|
__exportStar(require("./IntegrationType"), exports);
|
|
45
45
|
__exportStar(require("./NodeType"), exports);
|
|
46
|
+
__exportStar(require("./ResponseType"), exports);
|
|
46
47
|
__exportStar(require("./Source"), exports);
|
|
47
48
|
__exportStar(require("./SourceWithConfigFields"), exports);
|
|
48
49
|
__exportStar(require("./Sync"), exports);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
export declare const Response: core.serialization.Schema<serializers.search.search.Response.Raw, Record<string, unknown
|
|
6
|
+
export declare const Response: core.serialization.Schema<serializers.search.search.Response.Raw, Record<string, unknown>>;
|
|
7
7
|
export declare namespace Response {
|
|
8
|
-
type Raw = Record<string, unknown
|
|
8
|
+
type Raw = Record<string, unknown>;
|
|
9
9
|
}
|
|
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.Response = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
-
exports.Response = core.serialization.
|
|
41
|
+
exports.Response = core.serialization.record(core.serialization.string(), core.serialization.unknown());
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as AirweaveSDK from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ResponseType: core.serialization.Schema<serializers.ResponseType.Raw, AirweaveSDK.ResponseType>;
|
|
8
|
+
export declare namespace ResponseType {
|
|
9
|
+
type Raw = "raw" | "completion";
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ResponseType = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.ResponseType = core.serialization.enum_(["raw", "completion"]);
|
|
@@ -27,6 +27,7 @@ export * from "./Fields";
|
|
|
27
27
|
export * from "./HttpValidationError";
|
|
28
28
|
export * from "./IntegrationType";
|
|
29
29
|
export * from "./NodeType";
|
|
30
|
+
export * from "./ResponseType";
|
|
30
31
|
export * from "./Source";
|
|
31
32
|
export * from "./SourceWithConfigFields";
|
|
32
33
|
export * from "./Sync";
|
|
@@ -43,6 +43,7 @@ __exportStar(require("./Fields"), exports);
|
|
|
43
43
|
__exportStar(require("./HttpValidationError"), exports);
|
|
44
44
|
__exportStar(require("./IntegrationType"), exports);
|
|
45
45
|
__exportStar(require("./NodeType"), exports);
|
|
46
|
+
__exportStar(require("./ResponseType"), exports);
|
|
46
47
|
__exportStar(require("./Source"), exports);
|
|
47
48
|
__exportStar(require("./SourceWithConfigFields"), exports);
|
|
48
49
|
__exportStar(require("./Sync"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v0.2.
|
|
1
|
+
export declare const SDK_VERSION = "v0.2.14";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -2396,7 +2396,7 @@ await client.sync.getSyncDag("sync_id", {
|
|
|
2396
2396
|
|
|
2397
2397
|
## Search
|
|
2398
2398
|
|
|
2399
|
-
<details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">search</a>({ ...params }) -> Record<string, unknown
|
|
2399
|
+
<details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">search</a>({ ...params }) -> Record<string, unknown></code></summary>
|
|
2400
2400
|
<dl>
|
|
2401
2401
|
<dd>
|
|
2402
2402
|
|
|
@@ -2415,11 +2415,12 @@ Search for documents within a specific sync.
|
|
|
2415
2415
|
db: The database session
|
|
2416
2416
|
sync_id: The ID of the sync to search within
|
|
2417
2417
|
query: The search query text
|
|
2418
|
+
response_type: Type of response (raw results or AI completion)
|
|
2418
2419
|
user: The current user
|
|
2419
2420
|
|
|
2420
2421
|
## Returns:
|
|
2421
2422
|
|
|
2422
|
-
|
|
2423
|
+
dict: A dictionary containing search results or AI completion
|
|
2423
2424
|
|
|
2424
2425
|
</dd>
|
|
2425
2426
|
</dl>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
export declare const Response: core.serialization.Schema<serializers.search.search.Response.Raw, Record<string, unknown
|
|
6
|
+
export declare const Response: core.serialization.Schema<serializers.search.search.Response.Raw, Record<string, unknown>>;
|
|
7
7
|
export declare namespace Response {
|
|
8
|
-
type Raw = Record<string, unknown
|
|
8
|
+
type Raw = Record<string, unknown>;
|
|
9
9
|
}
|
|
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.Response = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
-
exports.Response = core.serialization.
|
|
41
|
+
exports.Response = core.serialization.record(core.serialization.string(), core.serialization.unknown());
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as AirweaveSDK from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ResponseType: core.serialization.Schema<serializers.ResponseType.Raw, AirweaveSDK.ResponseType>;
|
|
8
|
+
export declare namespace ResponseType {
|
|
9
|
+
type Raw = "raw" | "completion";
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ResponseType = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.ResponseType = core.serialization.enum_(["raw", "completion"]);
|
|
@@ -27,6 +27,7 @@ export * from "./Fields";
|
|
|
27
27
|
export * from "./HttpValidationError";
|
|
28
28
|
export * from "./IntegrationType";
|
|
29
29
|
export * from "./NodeType";
|
|
30
|
+
export * from "./ResponseType";
|
|
30
31
|
export * from "./Source";
|
|
31
32
|
export * from "./SourceWithConfigFields";
|
|
32
33
|
export * from "./Sync";
|
|
@@ -43,6 +43,7 @@ __exportStar(require("./Fields"), exports);
|
|
|
43
43
|
__exportStar(require("./HttpValidationError"), exports);
|
|
44
44
|
__exportStar(require("./IntegrationType"), exports);
|
|
45
45
|
__exportStar(require("./NodeType"), exports);
|
|
46
|
+
__exportStar(require("./ResponseType"), exports);
|
|
46
47
|
__exportStar(require("./Source"), exports);
|
|
47
48
|
__exportStar(require("./SourceWithConfigFields"), exports);
|
|
48
49
|
__exportStar(require("./Sync"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v0.2.
|
|
1
|
+
export declare const SDK_VERSION = "v0.2.14";
|
package/version.js
CHANGED