@airweave/sdk 0.1.15 → 0.1.17
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 +3 -0
- package/Client.js +5 -0
- package/api/resources/connections/client/Client.js +12 -12
- package/api/resources/destinations/client/Client.js +2 -2
- package/api/resources/embeddingModels/client/Client.js +2 -2
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/search/client/Client.d.ts +71 -0
- package/api/resources/search/client/Client.js +231 -0
- package/api/resources/search/client/index.d.ts +1 -0
- package/api/resources/search/client/index.js +17 -0
- package/api/resources/search/client/requests/SearchSearchObjectsPostRequest.d.ts +16 -0
- package/api/resources/search/client/requests/SearchSearchObjectsPostRequest.js +5 -0
- package/api/resources/search/client/requests/SearchSummarySearchSummaryPostRequest.d.ts +16 -0
- package/api/resources/search/client/requests/SearchSummarySearchSummaryPostRequest.js +5 -0
- package/api/resources/search/client/requests/index.d.ts +2 -0
- package/api/resources/search/client/requests/index.js +2 -0
- package/api/resources/search/index.d.ts +1 -0
- package/api/resources/search/index.js +17 -0
- package/api/resources/sources/client/Client.d.ts +1 -1
- package/api/resources/sources/client/Client.js +3 -3
- package/api/resources/sync/client/Client.js +8 -8
- package/api/resources/users/client/Client.js +1 -1
- package/api/resources/whiteLabels/client/Client.js +8 -8
- package/api/types/MetadataSearchFilter.d.ts +11 -0
- package/api/types/MetadataSearchFilter.js +5 -0
- package/api/types/SearchResult.d.ts +11 -0
- package/api/types/SearchResult.js +5 -0
- package/api/types/SourceWithConfigFields.d.ts +19 -0
- package/api/types/SourceWithConfigFields.js +5 -0
- package/api/types/index.d.ts +3 -0
- package/api/types/index.js +3 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +5 -0
- package/dist/api/resources/connections/client/Client.js +12 -12
- package/dist/api/resources/destinations/client/Client.js +2 -2
- package/dist/api/resources/embeddingModels/client/Client.js +2 -2
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/search/client/Client.d.ts +71 -0
- package/dist/api/resources/search/client/Client.js +231 -0
- package/dist/api/resources/search/client/index.d.ts +1 -0
- package/dist/api/resources/search/client/index.js +17 -0
- package/dist/api/resources/search/client/requests/SearchSearchObjectsPostRequest.d.ts +16 -0
- package/dist/api/resources/search/client/requests/SearchSearchObjectsPostRequest.js +5 -0
- package/dist/api/resources/search/client/requests/SearchSummarySearchSummaryPostRequest.d.ts +16 -0
- package/dist/api/resources/search/client/requests/SearchSummarySearchSummaryPostRequest.js +5 -0
- package/dist/api/resources/search/client/requests/index.d.ts +2 -0
- package/dist/api/resources/search/client/requests/index.js +2 -0
- package/dist/api/resources/search/index.d.ts +1 -0
- package/dist/api/resources/search/index.js +17 -0
- package/dist/api/resources/sources/client/Client.d.ts +1 -1
- package/dist/api/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/sync/client/Client.js +8 -8
- package/dist/api/resources/users/client/Client.js +1 -1
- package/dist/api/resources/whiteLabels/client/Client.js +8 -8
- package/dist/api/types/MetadataSearchFilter.d.ts +11 -0
- package/dist/api/types/MetadataSearchFilter.js +5 -0
- package/dist/api/types/SearchResult.d.ts +11 -0
- package/dist/api/types/SearchResult.js +5 -0
- package/dist/api/types/SourceWithConfigFields.d.ts +19 -0
- package/dist/api/types/SourceWithConfigFields.js +5 -0
- package/dist/api/types/index.d.ts +3 -0
- package/dist/api/types/index.js +3 -0
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +2 -1
- package/dist/serialization/resources/search/client/index.d.ts +2 -0
- package/dist/serialization/resources/search/client/index.js +38 -0
- package/dist/serialization/resources/search/client/search.d.ts +16 -0
- package/dist/serialization/resources/search/client/search.js +44 -0
- package/dist/serialization/resources/search/client/searchSummary.d.ts +15 -0
- package/dist/serialization/resources/search/client/searchSummary.js +43 -0
- package/dist/serialization/resources/search/index.d.ts +1 -0
- package/dist/serialization/resources/search/index.js +17 -0
- package/dist/serialization/types/MetadataSearchFilter.d.ts +14 -0
- package/dist/serialization/types/MetadataSearchFilter.js +45 -0
- package/dist/serialization/types/SearchResult.d.ts +14 -0
- package/dist/serialization/types/SearchResult.js +45 -0
- package/dist/serialization/types/SourceWithConfigFields.d.ts +23 -0
- package/dist/serialization/types/SourceWithConfigFields.js +54 -0
- package/dist/serialization/types/index.d.ts +3 -0
- package/dist/serialization/types/index.js +3 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +147 -1
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +2 -1
- package/serialization/resources/search/client/index.d.ts +2 -0
- package/serialization/resources/search/client/index.js +38 -0
- package/serialization/resources/search/client/search.d.ts +16 -0
- package/serialization/resources/search/client/search.js +44 -0
- package/serialization/resources/search/client/searchSummary.d.ts +15 -0
- package/serialization/resources/search/client/searchSummary.js +43 -0
- package/serialization/resources/search/index.d.ts +1 -0
- package/serialization/resources/search/index.js +17 -0
- package/serialization/types/MetadataSearchFilter.d.ts +14 -0
- package/serialization/types/MetadataSearchFilter.js +45 -0
- package/serialization/types/SearchResult.d.ts +14 -0
- package/serialization/types/SearchResult.js +45 -0
- package/serialization/types/SourceWithConfigFields.d.ts +23 -0
- package/serialization/types/SourceWithConfigFields.js +54 -0
- package/serialization/types/index.d.ts +3 -0
- package/serialization/types/index.js +3 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/dist/api/types/index.js
CHANGED
|
@@ -33,7 +33,10 @@ __exportStar(require("./EmbeddingModelWithConfigFields"), exports);
|
|
|
33
33
|
__exportStar(require("./Fields"), exports);
|
|
34
34
|
__exportStar(require("./HttpValidationError"), exports);
|
|
35
35
|
__exportStar(require("./IntegrationType"), exports);
|
|
36
|
+
__exportStar(require("./MetadataSearchFilter"), exports);
|
|
37
|
+
__exportStar(require("./SearchResult"), exports);
|
|
36
38
|
__exportStar(require("./Source"), exports);
|
|
39
|
+
__exportStar(require("./SourceWithConfigFields"), exports);
|
|
37
40
|
__exportStar(require("./Sync"), exports);
|
|
38
41
|
__exportStar(require("./SyncJob"), exports);
|
|
39
42
|
__exportStar(require("./SyncJobStatus"), exports);
|
|
@@ -5,6 +5,7 @@ export * as destinations from "./destinations";
|
|
|
5
5
|
export * as embeddingModels from "./embeddingModels";
|
|
6
6
|
export * as connections from "./connections";
|
|
7
7
|
export * as whiteLabels from "./whiteLabels";
|
|
8
|
+
export * as search from "./search";
|
|
8
9
|
export * from "./connections/client/requests";
|
|
9
10
|
export * from "./sync/client/requests";
|
|
10
11
|
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.whiteLabels = exports.connections = exports.embeddingModels = exports.destinations = exports.sources = exports.sync = void 0;
|
|
39
|
+
exports.search = exports.whiteLabels = exports.connections = exports.embeddingModels = exports.destinations = exports.sources = exports.sync = void 0;
|
|
40
40
|
exports.sync = __importStar(require("./sync"));
|
|
41
41
|
__exportStar(require("./sync/types"), exports);
|
|
42
42
|
exports.sources = __importStar(require("./sources"));
|
|
@@ -44,6 +44,7 @@ exports.destinations = __importStar(require("./destinations"));
|
|
|
44
44
|
exports.embeddingModels = __importStar(require("./embeddingModels"));
|
|
45
45
|
exports.connections = __importStar(require("./connections"));
|
|
46
46
|
exports.whiteLabels = __importStar(require("./whiteLabels"));
|
|
47
|
+
exports.search = __importStar(require("./search"));
|
|
47
48
|
__exportStar(require("./connections/client/requests"), exports);
|
|
48
49
|
__exportStar(require("./sync/client/requests"), exports);
|
|
49
50
|
__exportStar(require("./whiteLabels/client/requests"), exports);
|
|
@@ -0,0 +1,38 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.search = exports.searchSummary = void 0;
|
|
37
|
+
exports.searchSummary = __importStar(require("./searchSummary"));
|
|
38
|
+
exports.search = __importStar(require("./search"));
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
import { MetadataSearchFilter } from "../../../types/MetadataSearchFilter";
|
|
8
|
+
import { SearchResult } from "../../../types/SearchResult";
|
|
9
|
+
export declare const Request: core.serialization.Schema<serializers.search.search.Request.Raw, AirweaveSDK.MetadataSearchFilter[] | undefined>;
|
|
10
|
+
export declare namespace Request {
|
|
11
|
+
type Raw = MetadataSearchFilter.Raw[] | null | undefined;
|
|
12
|
+
}
|
|
13
|
+
export declare const Response: core.serialization.Schema<serializers.search.search.Response.Raw, AirweaveSDK.SearchResult[]>;
|
|
14
|
+
export declare namespace Response {
|
|
15
|
+
type Raw = SearchResult.Raw[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.Response = exports.Request = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const MetadataSearchFilter_1 = require("../../../types/MetadataSearchFilter");
|
|
42
|
+
const SearchResult_1 = require("../../../types/SearchResult");
|
|
43
|
+
exports.Request = core.serialization.list(MetadataSearchFilter_1.MetadataSearchFilter).optional();
|
|
44
|
+
exports.Response = core.serialization.list(SearchResult_1.SearchResult);
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
import { MetadataSearchFilter } from "../../../types/MetadataSearchFilter";
|
|
8
|
+
export declare const Request: core.serialization.Schema<serializers.search.searchSummary.Request.Raw, AirweaveSDK.MetadataSearchFilter[] | undefined>;
|
|
9
|
+
export declare namespace Request {
|
|
10
|
+
type Raw = MetadataSearchFilter.Raw[] | null | undefined;
|
|
11
|
+
}
|
|
12
|
+
export declare const Response: core.serialization.Schema<serializers.search.searchSummary.Response.Raw, string>;
|
|
13
|
+
export declare namespace Response {
|
|
14
|
+
type Raw = string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.Response = exports.Request = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const MetadataSearchFilter_1 = require("../../../types/MetadataSearchFilter");
|
|
42
|
+
exports.Request = core.serialization.list(MetadataSearchFilter_1.MetadataSearchFilter).optional();
|
|
43
|
+
exports.Response = core.serialization.string();
|
|
@@ -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);
|
|
@@ -0,0 +1,14 @@
|
|
|
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 MetadataSearchFilter: core.serialization.ObjectSchema<serializers.MetadataSearchFilter.Raw, AirweaveSDK.MetadataSearchFilter>;
|
|
8
|
+
export declare namespace MetadataSearchFilter {
|
|
9
|
+
interface Raw {
|
|
10
|
+
key: string;
|
|
11
|
+
value: string;
|
|
12
|
+
operator: string;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.MetadataSearchFilter = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.MetadataSearchFilter = core.serialization.object({
|
|
42
|
+
key: core.serialization.string(),
|
|
43
|
+
value: core.serialization.string(),
|
|
44
|
+
operator: core.serialization.string(),
|
|
45
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
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 SearchResult: core.serialization.ObjectSchema<serializers.SearchResult.Raw, AirweaveSDK.SearchResult>;
|
|
8
|
+
export declare namespace SearchResult {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id: string;
|
|
11
|
+
title: string;
|
|
12
|
+
description: string;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.SearchResult = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.SearchResult = core.serialization.object({
|
|
42
|
+
id: core.serialization.string(),
|
|
43
|
+
title: core.serialization.string(),
|
|
44
|
+
description: core.serialization.string(),
|
|
45
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
import { AuthType } from "./AuthType";
|
|
8
|
+
import { Fields } from "./Fields";
|
|
9
|
+
export declare const SourceWithConfigFields: core.serialization.ObjectSchema<serializers.SourceWithConfigFields.Raw, AirweaveSDK.SourceWithConfigFields>;
|
|
10
|
+
export declare namespace SourceWithConfigFields {
|
|
11
|
+
interface Raw {
|
|
12
|
+
name: string;
|
|
13
|
+
description?: string | null;
|
|
14
|
+
auth_type?: AuthType.Raw | null;
|
|
15
|
+
auth_config_class?: string | null;
|
|
16
|
+
short_name: string;
|
|
17
|
+
class_name: string;
|
|
18
|
+
id: string;
|
|
19
|
+
created_at: string;
|
|
20
|
+
modified_at: string;
|
|
21
|
+
config_fields?: Fields.Raw | null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.SourceWithConfigFields = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const AuthType_1 = require("./AuthType");
|
|
42
|
+
const Fields_1 = require("./Fields");
|
|
43
|
+
exports.SourceWithConfigFields = core.serialization.object({
|
|
44
|
+
name: core.serialization.string(),
|
|
45
|
+
description: core.serialization.string().optional(),
|
|
46
|
+
authType: core.serialization.property("auth_type", AuthType_1.AuthType.optional()),
|
|
47
|
+
authConfigClass: core.serialization.property("auth_config_class", core.serialization.string().optional()),
|
|
48
|
+
shortName: core.serialization.property("short_name", core.serialization.string()),
|
|
49
|
+
className: core.serialization.property("class_name", core.serialization.string()),
|
|
50
|
+
id: core.serialization.string(),
|
|
51
|
+
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
52
|
+
modifiedAt: core.serialization.property("modified_at", core.serialization.date()),
|
|
53
|
+
configFields: core.serialization.property("config_fields", Fields_1.Fields.optional()),
|
|
54
|
+
});
|
|
@@ -17,7 +17,10 @@ export * from "./EmbeddingModelWithConfigFields";
|
|
|
17
17
|
export * from "./Fields";
|
|
18
18
|
export * from "./HttpValidationError";
|
|
19
19
|
export * from "./IntegrationType";
|
|
20
|
+
export * from "./MetadataSearchFilter";
|
|
21
|
+
export * from "./SearchResult";
|
|
20
22
|
export * from "./Source";
|
|
23
|
+
export * from "./SourceWithConfigFields";
|
|
21
24
|
export * from "./Sync";
|
|
22
25
|
export * from "./SyncJob";
|
|
23
26
|
export * from "./SyncJobStatus";
|
|
@@ -33,7 +33,10 @@ __exportStar(require("./EmbeddingModelWithConfigFields"), exports);
|
|
|
33
33
|
__exportStar(require("./Fields"), exports);
|
|
34
34
|
__exportStar(require("./HttpValidationError"), exports);
|
|
35
35
|
__exportStar(require("./IntegrationType"), exports);
|
|
36
|
+
__exportStar(require("./MetadataSearchFilter"), exports);
|
|
37
|
+
__exportStar(require("./SearchResult"), exports);
|
|
36
38
|
__exportStar(require("./Source"), exports);
|
|
39
|
+
__exportStar(require("./SourceWithConfigFields"), exports);
|
|
37
40
|
__exportStar(require("./Sync"), exports);
|
|
38
41
|
__exportStar(require("./SyncJob"), exports);
|
|
39
42
|
__exportStar(require("./SyncJobStatus"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.17";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -67,7 +67,7 @@ await client.users.readUser();
|
|
|
67
67
|
|
|
68
68
|
## Sources
|
|
69
69
|
|
|
70
|
-
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">readSource</a>(shortName) -> AirweaveSDK.
|
|
70
|
+
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">readSource</a>(shortName) -> AirweaveSDK.SourceWithConfigFields</code></summary>
|
|
71
71
|
<dl>
|
|
72
72
|
<dd>
|
|
73
73
|
|
|
@@ -2343,3 +2343,149 @@ await client.whiteLabels.listWhiteLabelSyncs("white_label_id");
|
|
|
2343
2343
|
</dd>
|
|
2344
2344
|
</dl>
|
|
2345
2345
|
</details>
|
|
2346
|
+
|
|
2347
|
+
## Search
|
|
2348
|
+
|
|
2349
|
+
<details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">searchSummary</a>({ ...params }) -> string</code></summary>
|
|
2350
|
+
<dl>
|
|
2351
|
+
<dd>
|
|
2352
|
+
|
|
2353
|
+
#### 📝 Description
|
|
2354
|
+
|
|
2355
|
+
<dl>
|
|
2356
|
+
<dd>
|
|
2357
|
+
|
|
2358
|
+
<dl>
|
|
2359
|
+
<dd>
|
|
2360
|
+
|
|
2361
|
+
Search for summarized information.
|
|
2362
|
+
|
|
2363
|
+
</dd>
|
|
2364
|
+
</dl>
|
|
2365
|
+
</dd>
|
|
2366
|
+
</dl>
|
|
2367
|
+
|
|
2368
|
+
#### 🔌 Usage
|
|
2369
|
+
|
|
2370
|
+
<dl>
|
|
2371
|
+
<dd>
|
|
2372
|
+
|
|
2373
|
+
<dl>
|
|
2374
|
+
<dd>
|
|
2375
|
+
|
|
2376
|
+
```typescript
|
|
2377
|
+
await client.search.searchSummary({
|
|
2378
|
+
query: "query",
|
|
2379
|
+
body: undefined,
|
|
2380
|
+
});
|
|
2381
|
+
```
|
|
2382
|
+
|
|
2383
|
+
</dd>
|
|
2384
|
+
</dl>
|
|
2385
|
+
</dd>
|
|
2386
|
+
</dl>
|
|
2387
|
+
|
|
2388
|
+
#### ⚙️ Parameters
|
|
2389
|
+
|
|
2390
|
+
<dl>
|
|
2391
|
+
<dd>
|
|
2392
|
+
|
|
2393
|
+
<dl>
|
|
2394
|
+
<dd>
|
|
2395
|
+
|
|
2396
|
+
**request:** `AirweaveSDK.SearchSummarySearchSummaryPostRequest`
|
|
2397
|
+
|
|
2398
|
+
</dd>
|
|
2399
|
+
</dl>
|
|
2400
|
+
|
|
2401
|
+
<dl>
|
|
2402
|
+
<dd>
|
|
2403
|
+
|
|
2404
|
+
**requestOptions:** `Search.RequestOptions`
|
|
2405
|
+
|
|
2406
|
+
</dd>
|
|
2407
|
+
</dl>
|
|
2408
|
+
</dd>
|
|
2409
|
+
</dl>
|
|
2410
|
+
|
|
2411
|
+
</dd>
|
|
2412
|
+
</dl>
|
|
2413
|
+
</details>
|
|
2414
|
+
|
|
2415
|
+
<details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">search</a>({ ...params }) -> AirweaveSDK.SearchResult[]</code></summary>
|
|
2416
|
+
<dl>
|
|
2417
|
+
<dd>
|
|
2418
|
+
|
|
2419
|
+
#### 📝 Description
|
|
2420
|
+
|
|
2421
|
+
<dl>
|
|
2422
|
+
<dd>
|
|
2423
|
+
|
|
2424
|
+
<dl>
|
|
2425
|
+
<dd>
|
|
2426
|
+
|
|
2427
|
+
Search for a specific item.
|
|
2428
|
+
|
|
2429
|
+
## Args:
|
|
2430
|
+
|
|
2431
|
+
db (AsyncSession): The database session.
|
|
2432
|
+
query (str): The query to search for.
|
|
2433
|
+
sync_id (Optional[UUID]): The sync ID to search for.
|
|
2434
|
+
metadata_filter (Optional[list[MetadataSearchFilter]]): The filter to search for.
|
|
2435
|
+
user (schemas.User): The user to search for.
|
|
2436
|
+
|
|
2437
|
+
## Returns:
|
|
2438
|
+
|
|
2439
|
+
list[SearchResult]: The search results.
|
|
2440
|
+
|
|
2441
|
+
</dd>
|
|
2442
|
+
</dl>
|
|
2443
|
+
</dd>
|
|
2444
|
+
</dl>
|
|
2445
|
+
|
|
2446
|
+
#### 🔌 Usage
|
|
2447
|
+
|
|
2448
|
+
<dl>
|
|
2449
|
+
<dd>
|
|
2450
|
+
|
|
2451
|
+
<dl>
|
|
2452
|
+
<dd>
|
|
2453
|
+
|
|
2454
|
+
```typescript
|
|
2455
|
+
await client.search.search({
|
|
2456
|
+
query: "query",
|
|
2457
|
+
body: undefined,
|
|
2458
|
+
});
|
|
2459
|
+
```
|
|
2460
|
+
|
|
2461
|
+
</dd>
|
|
2462
|
+
</dl>
|
|
2463
|
+
</dd>
|
|
2464
|
+
</dl>
|
|
2465
|
+
|
|
2466
|
+
#### ⚙️ Parameters
|
|
2467
|
+
|
|
2468
|
+
<dl>
|
|
2469
|
+
<dd>
|
|
2470
|
+
|
|
2471
|
+
<dl>
|
|
2472
|
+
<dd>
|
|
2473
|
+
|
|
2474
|
+
**request:** `AirweaveSDK.SearchSearchObjectsPostRequest`
|
|
2475
|
+
|
|
2476
|
+
</dd>
|
|
2477
|
+
</dl>
|
|
2478
|
+
|
|
2479
|
+
<dl>
|
|
2480
|
+
<dd>
|
|
2481
|
+
|
|
2482
|
+
**requestOptions:** `Search.RequestOptions`
|
|
2483
|
+
|
|
2484
|
+
</dd>
|
|
2485
|
+
</dl>
|
|
2486
|
+
</dd>
|
|
2487
|
+
</dl>
|
|
2488
|
+
|
|
2489
|
+
</dd>
|
|
2490
|
+
</dl>
|
|
2491
|
+
</details>
|
|
@@ -5,6 +5,7 @@ export * as destinations from "./destinations";
|
|
|
5
5
|
export * as embeddingModels from "./embeddingModels";
|
|
6
6
|
export * as connections from "./connections";
|
|
7
7
|
export * as whiteLabels from "./whiteLabels";
|
|
8
|
+
export * as search from "./search";
|
|
8
9
|
export * from "./connections/client/requests";
|
|
9
10
|
export * from "./sync/client/requests";
|
|
10
11
|
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.whiteLabels = exports.connections = exports.embeddingModels = exports.destinations = exports.sources = exports.sync = void 0;
|
|
39
|
+
exports.search = exports.whiteLabels = exports.connections = exports.embeddingModels = exports.destinations = exports.sources = exports.sync = void 0;
|
|
40
40
|
exports.sync = __importStar(require("./sync"));
|
|
41
41
|
__exportStar(require("./sync/types"), exports);
|
|
42
42
|
exports.sources = __importStar(require("./sources"));
|
|
@@ -44,6 +44,7 @@ exports.destinations = __importStar(require("./destinations"));
|
|
|
44
44
|
exports.embeddingModels = __importStar(require("./embeddingModels"));
|
|
45
45
|
exports.connections = __importStar(require("./connections"));
|
|
46
46
|
exports.whiteLabels = __importStar(require("./whiteLabels"));
|
|
47
|
+
exports.search = __importStar(require("./search"));
|
|
47
48
|
__exportStar(require("./connections/client/requests"), exports);
|
|
48
49
|
__exportStar(require("./sync/client/requests"), exports);
|
|
49
50
|
__exportStar(require("./whiteLabels/client/requests"), exports);
|