@aviaryhq/cloudglue-js 0.2.1 → 0.2.2

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.
@@ -1,6 +1,7 @@
1
1
  import { type ZodiosOptions } from "@zodios/core";
2
2
  import { z } from "zod";
3
3
  type SearchResponse = {
4
+ id: string;
4
5
  object: "search";
5
6
  query: string;
6
7
  scope: "file" | "segment";
@@ -65,7 +66,7 @@ type SearchFilter = Partial<{
65
66
  }>;
66
67
  type SearchFilterCriteria = {
67
68
  path: string;
68
- operator: "NotEqual" | "Equal" | "LessThan" | "GreaterThan" | "ContainsAny" | "ContainsAll" | "In";
69
+ operator: "NotEqual" | "Equal" | "LessThan" | "GreaterThan" | "ContainsAny" | "ContainsAll" | "In" | "Like";
69
70
  valueText?: string | undefined;
70
71
  valueTextArray?: Array<string> | undefined;
71
72
  };
@@ -15,6 +15,7 @@ const SearchFilterCriteria = zod_1.z
15
15
  "ContainsAny",
16
16
  "ContainsAll",
17
17
  "In",
18
+ "Like",
18
19
  ]),
19
20
  valueText: zod_1.z.string().optional(),
20
21
  valueTextArray: zod_1.z.array(zod_1.z.string()).optional(),
@@ -115,6 +116,7 @@ const SegmentSearchResult = zod_1.z
115
116
  .passthrough();
116
117
  const SearchResponse = zod_1.z
117
118
  .object({
119
+ id: zod_1.z.string().uuid(),
118
120
  object: zod_1.z.literal("search"),
119
121
  query: zod_1.z.string(),
120
122
  scope: zod_1.z.enum(["file", "segment"]),
@@ -2679,6 +2679,7 @@ declare class EnhancedSearchApi {
2679
2679
  private readonly api;
2680
2680
  constructor(api: typeof SearchApi);
2681
2681
  searchContent(params: SearchParams): Promise<{
2682
+ id: string;
2682
2683
  object: "search";
2683
2684
  query: string;
2684
2685
  scope: "file" | "segment";
@@ -426,7 +426,7 @@ class CloudGlue {
426
426
  headers: {
427
427
  Authorization: `Bearer ${this.apiKey}`,
428
428
  'x-sdk-client': 'cloudglue-js',
429
- 'x-sdk-version': '0.2.1',
429
+ 'x-sdk-version': '0.2.2',
430
430
  },
431
431
  baseURL: this.baseUrl,
432
432
  timeout: this.timeout,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aviaryhq/cloudglue-js",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Cloudglue API client for Node.js",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",