Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
5861f6d
SDK regeneration
fern-api[bot] Aug 1, 2025
8b2101e
chore: Version bump
paul-paliychuk Aug 1, 2025
26dc883
Merge branch 'main' of github.com:getzep/zep-js into v3
paul-paliychuk Aug 5, 2025
bfeadd1
chore: Version bump
paul-paliychuk Aug 5, 2025
8d19541
SDK regeneration
fern-api[bot] Aug 5, 2025
269d88e
wip
paul-paliychuk Aug 5, 2025
76c080f
Merge branch 'v3' of github.com:getzep/zep-js into v3
paul-paliychuk Aug 5, 2025
c3242a2
chore: Add support for user and graph specific entity/edge types
paul-paliychuk Aug 5, 2025
0f572e6
chore: Add support for ontology target
paul-paliychuk Aug 5, 2025
9930bb6
SDK regeneration
fern-api[bot] Aug 5, 2025
f38cf9d
chore: Add support for multiple ontology targets
paul-paliychuk Aug 5, 2025
7a7f9a9
SDK regeneration
fern-api[bot] Aug 5, 2025
8302c4f
fix: redundant default to empty list
paul-paliychuk Aug 5, 2025
3691cf0
fix: comment
paul-paliychuk Aug 6, 2025
0f60321
Merge branch 'main' of github.com:getzep/zep-js into v3
paul-paliychuk Aug 6, 2025
86d940b
fix: comment
paul-paliychuk Aug 6, 2025
558244d
Merge branch 'main' of github.com:getzep/zep-js into v3
paul-paliychuk Aug 9, 2025
136f0b0
chore: Bump version
paul-paliychuk Aug 9, 2025
959098b
SDK regeneration
fern-api[bot] Aug 9, 2025
db4f562
Merge branch 'main' of github.com:getzep/zep-js into v3
paul-paliychuk Aug 12, 2025
a52e2b0
feat: Update context string utility to include entity attributes and …
paul-paliychuk Aug 12, 2025
0962eab
SDK regeneration
fern-api[bot] Aug 12, 2025
0d97c8d
chore: Version bump
paul-paliychuk Aug 12, 2025
d408a17
SDK regeneration
fern-api[bot] Aug 14, 2025
2088f0a
Merge branch 'main' of github.com:getzep/zep-js into v3
paul-paliychuk Aug 16, 2025
c6db84d
chore: Version bump
paul-paliychuk Aug 16, 2025
ab961a1
SDK regeneration
fern-api[bot] Aug 16, 2025
0ef6d80
Merge branch 'main' of github.com:getzep/zep-js into v3
paul-paliychuk Oct 3, 2025
6d1167e
chore: Version bump
paul-paliychuk Oct 3, 2025
e98a5ce
Merge branch 'v3' of github.com:getzep/zep-js into v3
paul-paliychuk Oct 3, 2025
625cc0b
SDK regeneration
fern-api[bot] Oct 3, 2025
08c30ce
SDK regeneration
fern-api[bot] Oct 3, 2025
54586e7
Merge branch 'main' of github.com:getzep/zep-js into v3
paul-paliychuk Oct 20, 2025
d03df86
chore: Version bump
paul-paliychuk Oct 20, 2025
eaa31c7
SDK regeneration
fern-api[bot] Oct 20, 2025
3fd76e0
chore: Version bump
paul-paliychuk Oct 21, 2025
d4395c3
Merge branch 'v3' of github.com:getzep/zep-js into v3
paul-paliychuk Oct 21, 2025
830f677
Merge branch 'main' of github.com:getzep/zep-js into v3
paul-paliychuk Oct 21, 2025
3d58d65
SDK regeneration
fern-api[bot] Oct 21, 2025
d295ffd
SDK regeneration
fern-api[bot] Oct 21, 2025
1146be9
Merge branch 'main' of github.com:getzep/zep-js into v3
paul-paliychuk Oct 21, 2025
eea448b
chore: Version bump
paul-paliychuk Oct 21, 2025
8db01d5
Merge branch 'v3' of github.com:getzep/zep-js into v3
paul-paliychuk Oct 21, 2025
62cbf65
SDK regeneration
fern-api[bot] Oct 21, 2025
82f1bc3
SDK regeneration
fern-api[bot] Oct 21, 2025
0689a6b
SDK regeneration
fern-api[bot] Oct 21, 2025
25a21dd
SDK regeneration
fern-api[bot] Oct 21, 2025
ad22d79
SDK regeneration
fern-api[bot] Oct 21, 2025
a9b3a66
SDK regeneration
fern-api[bot] Oct 21, 2025
fdc21f3
SDK regeneration
fern-api[bot] Oct 21, 2025
f6647d8
Merge branch 'main' of github.com:getzep/zep-js into v3
paul-paliychuk Oct 30, 2025
be09141
chore: Version bump
paul-paliychuk Oct 30, 2025
ef76ca4
SDK regeneration
fern-api[bot] Oct 30, 2025
c109952
SDK regeneration
fern-api[bot] Oct 30, 2025
a669a86
Merge branch 'main' of github.com:getzep/zep-js into v3
paul-paliychuk Nov 4, 2025
729543d
chore: Version bump
paul-paliychuk Nov 4, 2025
6ccad5c
SDK regeneration
fern-api[bot] Nov 4, 2025
8570371
SDK regeneration
fern-api[bot] Nov 4, 2025
3aad037
SDK regeneration
fern-api[bot] Nov 6, 2025
57fa1be
SDK regeneration
fern-api[bot] Nov 6, 2025
d1bcb0d
Merge branch 'main' of github.com:getzep/zep-js into v3
paul-paliychuk Nov 17, 2025
9bc025b
chore: Version bump
paul-paliychuk Nov 17, 2025
f00a0b0
SDK regeneration
fern-api[bot] Nov 17, 2025
a716878
SDK regeneration
fern-api[bot] Nov 17, 2025
c47758b
Merge branch 'main' of github.com:getzep/zep-js into v3
paul-paliychuk Nov 17, 2025
0bf30a0
SDK regeneration
fern-api[bot] Nov 17, 2025
cfda1f4
chore: Version bump
paul-paliychuk Nov 18, 2025
804283a
SDK regeneration
fern-api[bot] Nov 18, 2025
e6657bd
SDK regeneration
fern-api[bot] Nov 18, 2025
cab7d02
SDK regeneration
fern-api[bot] Nov 20, 2025
edf7494
SDK regeneration
fern-api[bot] Nov 20, 2025
f7022ef
Merge branch 'main' of github.com:getzep/zep-js into v3
paul-paliychuk Nov 20, 2025
7cb4833
chore: Version bump
paul-paliychuk Nov 20, 2025
6938aef
SDK regeneration
fern-api[bot] Nov 20, 2025
96905a6
Merge branch 'main' of github.com:getzep/zep-js into v3
paul-paliychuk Dec 17, 2025
f4fb963
chore: Version bump
paul-paliychuk Dec 17, 2025
245e885
SDK regeneration
fern-api[bot] Dec 17, 2025
3a5692a
SDK regeneration
fern-api[bot] Jan 7, 2026
e7a2e59
Merge branch 'main' into v3
paul-paliychuk Jan 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@getzep/zep-cloud",
"version": "3.13.0",
"version": "3.14.0",
"private": false,
"repository": "https://github.com/getzep/zep-js",
"description": "Zep: Fast, scalable building blocks for production LLM apps",
Expand Down
65 changes: 63 additions & 2 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -620,8 +620,6 @@ Add a fact triple for a user or group
await client.graph.addFactTriple({
fact: "fact",
factName: "fact_name",
sourceNodeName: "source_node_name",
targetNodeName: "target_node_name",
});
```

Expand Down Expand Up @@ -3397,6 +3395,69 @@ await client.graph.node.get("uuid");
</dl>
</details>

<details><summary><code>client.graph.node.<a href="/src/api/resources/graph/resources/node/client/Client.ts">delete</a>(uuid) -> Zep.SuccessResponse</code></summary>
<dl>
<dd>

#### 📝 Description

<dl>
<dd>

<dl>
<dd>

Deletes a node by UUID.

</dd>
</dl>
</dd>
</dl>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```typescript
await client.graph.node.delete("uuid");
```

</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**uuid:** `string` — Node UUID

</dd>
</dl>

<dl>
<dd>

**requestOptions:** `Node.RequestOptions`

</dd>
</dl>
</dd>
</dl>

</dd>
</dl>
</details>

## Thread Message

<details><summary><code>client.thread.message.<a href="/src/api/resources/thread/resources/message/client/Client.ts">update</a>(messageUuid, { ...params }) -> Zep.Message</code></summary>
Expand Down
4 changes: 2 additions & 2 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export class ZepClient {
{
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "zep-cloud",
"X-Fern-SDK-Version": "3.13.0",
"User-Agent": "zep-cloud/3.13.0",
"X-Fern-SDK-Version": "3.14.0",
"User-Agent": "zep-cloud/3.14.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
4 changes: 1 addition & 3 deletions src/api/resources/graph/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,9 +533,7 @@ export class Graph {
* @example
* await client.graph.addFactTriple({
* fact: "fact",
* factName: "fact_name",
* sourceNodeName: "source_node_name",
* targetNodeName: "target_node_name"
* factName: "fact_name"
* })
*/
public addFactTriple(
Expand Down
23 changes: 18 additions & 5 deletions src/api/resources/graph/client/requests/AddTripleRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@
* @example
* {
* fact: "fact",
* factName: "fact_name",
* sourceNodeName: "source_node_name",
* targetNodeName: "target_node_name"
* factName: "fact_name"
* }
*/
export interface AddTripleRequest {
/** The timestamp of the message */
createdAt?: string;
/**
* Additional attributes of the edge. Values must be scalar types (string, number, boolean, or null).
* Nested objects and arrays are not allowed.
*/
edgeAttributes?: Record<string, unknown>;
/** The time (if any) at which the edge expires */
expiredAt?: string;
/** The fact relating the two nodes that this edge represents */
Expand All @@ -25,14 +28,24 @@ export interface AddTripleRequest {
graphId?: string;
/** The time (if any) at which the fact stops being true */
invalidAt?: string;
/**
* Additional attributes of the source node. Values must be scalar types (string, number, boolean, or null).
* Nested objects and arrays are not allowed.
*/
sourceNodeAttributes?: Record<string, unknown>;
/** The name of the source node to add */
sourceNodeName: string;
sourceNodeName?: string;
/** The summary of the source node to add */
sourceNodeSummary?: string;
/** The source node uuid */
sourceNodeUuid?: string;
/**
* Additional attributes of the target node. Values must be scalar types (string, number, boolean, or null).
* Nested objects and arrays are not allowed.
*/
targetNodeAttributes?: Record<string, unknown>;
/** The name of the target node to add */
targetNodeName: string;
targetNodeName?: string;
/** The summary of the target node to add */
targetNodeSummary?: string;
/** The target node uuid */
Expand Down
100 changes: 100 additions & 0 deletions src/api/resources/graph/resources/node/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,106 @@ export class Node {
}
}

/**
* Deletes a node by UUID.
*
* @param {string} uuid - Node UUID
* @param {Node.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Zep.BadRequestError}
* @throws {@link Zep.InternalServerError}
*
* @example
* await client.graph.node.delete("uuid")
*/
public delete(uuid: string, requestOptions?: Node.RequestOptions): core.HttpResponsePromise<Zep.SuccessResponse> {
return core.HttpResponsePromise.fromPromise(this.__delete(uuid, requestOptions));
}

private async __delete(
uuid: string,
requestOptions?: Node.RequestOptions,
): Promise<core.WithRawResponse<Zep.SuccessResponse>> {
const _response = await (this._options.fetcher ?? core.fetcher)({
url: core.url.join(
(await core.Supplier.get(this._options.baseUrl)) ??
(await core.Supplier.get(this._options.environment)) ??
environments.ZepEnvironment.Default,
`graph/node/${encodeURIComponent(uuid)}`,
),
method: "DELETE",
headers: mergeHeaders(
this._options?.headers,
mergeOnlyDefinedHeaders({ ...(await this._getCustomAuthorizationHeaders()) }),
requestOptions?.headers,
),
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
maxRetries: requestOptions?.maxRetries,
abortSignal: requestOptions?.abortSignal,
});
if (_response.ok) {
return {
data: serializers.SuccessResponse.parseOrThrow(_response.body, {
unrecognizedObjectKeys: "passthrough",
allowUnrecognizedUnionMembers: true,
allowUnrecognizedEnumValues: true,
skipValidation: true,
breadcrumbsPrefix: ["response"],
}),
rawResponse: _response.rawResponse,
};
}

if (_response.error.reason === "status-code") {
switch (_response.error.statusCode) {
case 400:
throw new Zep.BadRequestError(
serializers.ApiError.parseOrThrow(_response.error.body, {
unrecognizedObjectKeys: "passthrough",
allowUnrecognizedUnionMembers: true,
allowUnrecognizedEnumValues: true,
skipValidation: true,
breadcrumbsPrefix: ["response"],
}),
_response.rawResponse,
);
case 500:
throw new Zep.InternalServerError(
serializers.ApiError.parseOrThrow(_response.error.body, {
unrecognizedObjectKeys: "passthrough",
allowUnrecognizedUnionMembers: true,
allowUnrecognizedEnumValues: true,
skipValidation: true,
breadcrumbsPrefix: ["response"],
}),
_response.rawResponse,
);
default:
throw new errors.ZepError({
statusCode: _response.error.statusCode,
body: _response.error.body,
rawResponse: _response.rawResponse,
});
}
}

switch (_response.error.reason) {
case "non-json":
throw new errors.ZepError({
statusCode: _response.error.statusCode,
body: _response.error.rawBody,
rawResponse: _response.rawResponse,
});
case "timeout":
throw new errors.ZepTimeoutError("Timeout exceeded when calling DELETE /graph/node/{uuid}.");
case "unknown":
throw new errors.ZepError({
message: _response.error.errorMessage,
rawResponse: _response.rawResponse,
});
}
}

protected async _getCustomAuthorizationHeaders() {
const apiKeyValue = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["ZEP_API_KEY"];
return { Authorization: `Api-Key ${apiKeyValue}` };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import * as Zep from "../../../../index.js";
*/
export interface ThreadGetUserContextRequest {
/**
* The minimum rating by which to filter relevant facts.
* Deprecated, this field will be removed in a future release. The minimum rating by which to filter relevant facts.
*/
minRating?: number;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface CreateUserRequest {
disableDefaultOntology?: boolean;
/** The email address of the user. */
email?: string;
/** Optional instruction to use for fact rating. */
/** Deprecated: this field will be removed in a future release. Optional instruction to use for fact rating. */
factRatingInstruction?: Zep.FactRatingInstruction;
/** The first name of the user. */
firstName?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface UpdateUserRequest {
disableDefaultOntology?: boolean;
/** The email address of the user. */
email?: string;
/** Optional instruction to use for fact rating. */
/** Deprecated: this field will be removed in a future release. Optional instruction to use for fact rating. */
factRatingInstruction?: Zep.FactRatingInstruction;
/** The first name of the user. */
firstName?: string;
Expand Down
7 changes: 5 additions & 2 deletions src/api/types/DateFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import * as Zep from "../index.js";
export interface DateFilter {
/** Comparison operator for date filter */
comparisonOperator: Zep.ComparisonOperator;
/** Date to filter on */
date: string;
/**
* Date to filter on. Required for non-null operators (=, <>, >, <, >=, <=).
* Should be omitted for IS NULL and IS NOT NULL operators.
*/
date?: string;
}
18 changes: 18 additions & 0 deletions src/api/types/PropertyFilter.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Zep from "../index.js";

export interface PropertyFilter {
/** Comparison operator for property filter */
comparisonOperator: Zep.ComparisonOperator;
/** Property name to filter on */
propertyName: string;
/**
* Property value to match on. Accepted types: string, int, float64, bool, or nil.
* Invalid types (e.g., arrays, objects) will be rejected by validation.
* Must be non-nil for non-null operators (=, <>, >, <, >=, <=).
*/
propertyValue?: unknown;
}
4 changes: 4 additions & 0 deletions src/api/types/SearchFilters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export interface SearchFilters {
createdAt?: Zep.DateFilter[][];
/** List of edge types to filter on */
edgeTypes?: string[];
/** List of edge UUIDs to filter on */
edgeUuids?: string[];
/** List of edge types to exclude from results */
excludeEdgeTypes?: string[];
/** List of node labels to exclude from results */
Expand All @@ -37,6 +39,8 @@ export interface SearchFilters {
invalidAt?: Zep.DateFilter[][];
/** List of node labels to filter on */
nodeLabels?: string[];
/** List of property filters to apply to nodes and edges */
propertyFilters?: Zep.PropertyFilter[];
/**
* 2D array of date filters for the valid_at field.
* The outer array elements are combined with OR logic.
Expand Down
1 change: 1 addition & 0 deletions src/api/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export * from "./DateFilter.js";
export * from "./EntityEdge.js";
export * from "./EntityNode.js";
export * from "./GraphSearchScope.js";
export * from "./PropertyFilter.js";
export * from "./Reranker.js";
export * from "./SearchFilters.js";
export * from "./EntityPropertyType.js";
Expand Down
Loading