@air/api-rest 0.3.0 → 0.4.0
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/dist/index.cjs +3 -0
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +3 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -77,6 +77,9 @@ var Assets = class {
|
|
|
77
77
|
if (params.includeNestedAssets !== void 0) {
|
|
78
78
|
query.includeNestedAssets = params.includeNestedAssets;
|
|
79
79
|
}
|
|
80
|
+
if (params.semantic !== void 0) {
|
|
81
|
+
query.semantic = params.semantic;
|
|
82
|
+
}
|
|
80
83
|
if (params.tag) {
|
|
81
84
|
query.tag = params.tag;
|
|
82
85
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -62,6 +62,13 @@ interface AssetListParams extends CursorPageParams {
|
|
|
62
62
|
tag?: string | string[];
|
|
63
63
|
customField?: string | string[];
|
|
64
64
|
search?: string;
|
|
65
|
+
/**
|
|
66
|
+
* When true, `search` is used for semantic search via AI embeddings.
|
|
67
|
+
* Requires a non-blank `search` value and Semantic Search enabled on the workspace.
|
|
68
|
+
* Returns a single page of results ordered by relevance. Combining with `tag`,
|
|
69
|
+
* `customField`, `createdAt`, or `cursor` is rejected by the API with 400.
|
|
70
|
+
*/
|
|
71
|
+
semantic?: boolean;
|
|
65
72
|
"createdAt[gte]"?: string;
|
|
66
73
|
"createdAt[lte]"?: string;
|
|
67
74
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -62,6 +62,13 @@ interface AssetListParams extends CursorPageParams {
|
|
|
62
62
|
tag?: string | string[];
|
|
63
63
|
customField?: string | string[];
|
|
64
64
|
search?: string;
|
|
65
|
+
/**
|
|
66
|
+
* When true, `search` is used for semantic search via AI embeddings.
|
|
67
|
+
* Requires a non-blank `search` value and Semantic Search enabled on the workspace.
|
|
68
|
+
* Returns a single page of results ordered by relevance. Combining with `tag`,
|
|
69
|
+
* `customField`, `createdAt`, or `cursor` is rejected by the API with 400.
|
|
70
|
+
*/
|
|
71
|
+
semantic?: boolean;
|
|
65
72
|
"createdAt[gte]"?: string;
|
|
66
73
|
"createdAt[lte]"?: string;
|
|
67
74
|
}
|
package/dist/index.js
CHANGED
|
@@ -16,6 +16,9 @@ var Assets = class {
|
|
|
16
16
|
if (params.includeNestedAssets !== void 0) {
|
|
17
17
|
query.includeNestedAssets = params.includeNestedAssets;
|
|
18
18
|
}
|
|
19
|
+
if (params.semantic !== void 0) {
|
|
20
|
+
query.semantic = params.semantic;
|
|
21
|
+
}
|
|
19
22
|
if (params.tag) {
|
|
20
23
|
query.tag = params.tag;
|
|
21
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@air/api-rest",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Typed REST client for Air API",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"clean": "rm -rf dist .tsc-out tsconfig.tsbuildinfo"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@air/api-core": "0.
|
|
32
|
+
"@air/api-core": "0.4.0"
|
|
33
33
|
},
|
|
34
34
|
"engines": {
|
|
35
35
|
"node": ">=18"
|