@hydradb/sdk 0.0.1 → 0.0.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,19 +1,20 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * source_id: "<str>",
5
4
  * tenant_id: "tenant_1234"
6
5
  * }
7
6
  */
8
7
  export interface GraphRelationsBySourceIdFetchRequest {
9
- /** The source ID to fetch relations for */
10
- source_id: string;
8
+ /** Source ID. If omitted, returns relations across the entire sub-tenant. */
9
+ source_id?: string | null;
11
10
  /** Unique identifier for the tenant/organization */
12
11
  tenant_id?: string;
13
12
  /** Whether to fetch relations for memories */
14
13
  is_memory?: boolean;
15
14
  /** Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used. */
16
15
  sub_tenant_id?: string | null;
17
- /** Maximum number of relations to return */
16
+ /** Maximum number of relation groups to return */
18
17
  limit?: number;
18
+ /** Pagination cursor. Pass next_cursor from a previous response. */
19
+ cursor?: number | null;
19
20
  }
@@ -2,6 +2,10 @@ import type * as HydraDB from "../index.js";
2
2
  export interface SourceGraphRelationsResponse {
3
3
  /** List of relations retrieved */
4
4
  relations: (HydraDB.TripletWithEvidence | null)[];
5
+ /** Whether the result was truncated due to the limit */
6
+ is_truncated?: boolean | undefined;
7
+ /** Opaque cursor for fetching the next page. Pass this value as the 'cursor' query parameter to continue pagination. None when there are no more results. */
8
+ next_cursor?: (number | null) | undefined;
5
9
  /** Indicates whether the request was successful */
6
10
  success?: boolean | undefined;
7
11
  /** Response message describing the operation result */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hydradb/sdk",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "The official TypeScript SDK for the Hydra DB platform.",
5
5
  "author": "Nishkarsh Shrivastava <nishkarsh@hydradb.com>",
6
6
  "main": "./dist/index.js",