From 134e842d298c69a8991323bbf7387ddecdae3a86 Mon Sep 17 00:00:00 2001 From: paulpaliychuk Date: Thu, 31 Oct 2024 11:23:18 -0400 Subject: [PATCH 1/9] chore: Bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 14dafd2..69918c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@getzep/zep-cloud", - "version": "2.0.0", + "version": "2.0.1", "private": false, "repository": "https://github.com/getzep/zep-js", "description": "Zep: Fast, scalable building blocks for production LLM apps", From b380824d98b79e8e2f3987533e7f9b38962ae6f0 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 31 Oct 2024 15:25:01 +0000 Subject: [PATCH 2/9] SDK regeneration --- LICENSE | 201 ------------------ src/api/resources/document/client/Client.ts | 26 +-- src/api/resources/graph/client/Client.ts | 4 +- .../graph/resources/edge/client/Client.ts | 8 +- .../graph/resources/episode/client/Client.ts | 6 +- .../graph/resources/node/client/Client.ts | 6 +- src/api/resources/group/client/Client.ts | 4 +- .../client/requests/CreateGroupRequest.ts | 4 + src/api/resources/memory/client/Client.ts | 48 ++--- src/api/resources/user/client/Client.ts | 14 +- .../user/client/requests/CreateUserRequest.ts | 4 + .../user/client/requests/UpdateUserRequest.ts | 4 + ...amples.ts => ApidataFactRatingExamples.ts} | 2 +- ...ion.ts => ApidataFactRatingInstruction.ts} | 4 +- src/api/types/Episode.ts | 6 +- src/api/types/Fact.ts | 2 + src/api/types/Group.ts | 1 + src/api/types/Session.ts | 3 +- src/api/types/index.ts | 4 +- .../client/requests/CreateGroupRequest.ts | 6 + .../resources/memory/client/deleteFact.ts | 13 -- .../resources/memory/client/index.ts | 1 - .../user/client/requests/CreateUserRequest.ts | 3 + .../user/client/requests/UpdateUserRequest.ts | 3 + ...amples.ts => ApidataFactRatingExamples.ts} | 8 +- .../types/ApidataFactRatingInstruction.ts | 23 ++ src/serialization/types/Episode.ts | 12 +- src/serialization/types/Fact.ts | 2 + src/serialization/types/Session.ts | 6 +- .../types/SessionFactRatingInstruction.ts | 23 -- src/serialization/types/index.ts | 4 +- 31 files changed, 135 insertions(+), 320 deletions(-) delete mode 100644 LICENSE rename src/api/types/{SessionFactRatingExamples.ts => ApidataFactRatingExamples.ts} (74%) rename src/api/types/{SessionFactRatingInstruction.ts => ApidataFactRatingInstruction.ts} (90%) delete mode 100644 src/serialization/resources/memory/client/deleteFact.ts rename src/serialization/types/{SessionFactRatingExamples.ts => ApidataFactRatingExamples.ts} (71%) create mode 100644 src/serialization/types/ApidataFactRatingInstruction.ts delete mode 100644 src/serialization/types/SessionFactRatingInstruction.ts diff --git a/LICENSE b/LICENSE deleted file mode 100644 index f49a4e1..0000000 --- a/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/src/api/resources/document/client/Client.ts b/src/api/resources/document/client/Client.ts index 61f6bdf..d9948c1 100644 --- a/src/api/resources/document/client/Client.ts +++ b/src/api/resources/document/client/Client.ts @@ -47,7 +47,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -139,7 +139,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -253,7 +253,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -368,7 +368,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -482,7 +482,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -600,7 +600,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -706,7 +706,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -812,7 +812,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -918,7 +918,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1024,7 +1024,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1128,7 +1128,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1244,7 +1244,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1364,7 +1364,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/graph/client/Client.ts b/src/api/resources/graph/client/Client.ts index 85be1a7..1f524ec 100644 --- a/src/api/resources/graph/client/Client.ts +++ b/src/api/resources/graph/client/Client.ts @@ -54,7 +54,7 @@ export class Graph { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -147,7 +147,7 @@ export class Graph { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/graph/resources/edge/client/Client.ts b/src/api/resources/graph/resources/edge/client/Client.ts index 708faad..a236249 100644 --- a/src/api/resources/graph/resources/edge/client/Client.ts +++ b/src/api/resources/graph/resources/edge/client/Client.ts @@ -48,7 +48,7 @@ export class Edge { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -135,7 +135,7 @@ export class Edge { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -223,7 +223,7 @@ export class Edge { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -320,7 +320,7 @@ export class Edge { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/graph/resources/episode/client/Client.ts b/src/api/resources/graph/resources/episode/client/Client.ts index e68d583..e5c2274 100644 --- a/src/api/resources/graph/resources/episode/client/Client.ts +++ b/src/api/resources/graph/resources/episode/client/Client.ts @@ -59,7 +59,7 @@ export class Episode { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -158,7 +158,7 @@ export class Episode { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -246,7 +246,7 @@ export class Episode { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/graph/resources/node/client/Client.ts b/src/api/resources/graph/resources/node/client/Client.ts index 7f58dc2..4e4310d 100644 --- a/src/api/resources/graph/resources/node/client/Client.ts +++ b/src/api/resources/graph/resources/node/client/Client.ts @@ -48,7 +48,7 @@ export class Node { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -135,7 +135,7 @@ export class Node { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -223,7 +223,7 @@ export class Node { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/group/client/Client.ts b/src/api/resources/group/client/Client.ts index db115ff..55be453 100644 --- a/src/api/resources/group/client/Client.ts +++ b/src/api/resources/group/client/Client.ts @@ -48,7 +48,7 @@ export class Group { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -137,7 +137,7 @@ export class Group { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/group/client/requests/CreateGroupRequest.ts b/src/api/resources/group/client/requests/CreateGroupRequest.ts index a7157ea..17121b9 100644 --- a/src/api/resources/group/client/requests/CreateGroupRequest.ts +++ b/src/api/resources/group/client/requests/CreateGroupRequest.ts @@ -2,12 +2,16 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Zep from "../../../../index"; + /** * @example * {} */ export interface CreateGroupRequest { description?: string; + /** UserIDs []string `json:"user_ids"` */ + factRatingInstruction?: Zep.ApidataFactRatingInstruction; groupId?: string; name?: string; } diff --git a/src/api/resources/memory/client/Client.ts b/src/api/resources/memory/client/Client.ts index 2227d64..7510c2b 100644 --- a/src/api/resources/memory/client/Client.ts +++ b/src/api/resources/memory/client/Client.ts @@ -48,7 +48,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -125,7 +125,7 @@ export class Memory { * @example * await zep.memory.deleteFact("factUUID") */ - public async deleteFact(factUuid: string, requestOptions?: Memory.RequestOptions): Promise { + public async deleteFact(factUuid: string, requestOptions?: Memory.RequestOptions): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.ZepEnvironment.Default, @@ -135,7 +135,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -146,7 +146,7 @@ export class Memory { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return await serializers.memory.deleteFact.Response.parseOrThrow(_response.body, { + return await serializers.SuccessResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -228,7 +228,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -337,7 +337,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -431,7 +431,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -539,7 +539,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -618,7 +618,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -716,7 +716,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -832,7 +832,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -926,7 +926,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1033,7 +1033,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1142,7 +1142,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1235,7 +1235,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1338,7 +1338,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1435,7 +1435,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1513,7 +1513,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1615,7 +1615,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1708,7 +1708,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1806,7 +1806,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1907,7 +1907,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1999,7 +1999,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -2097,7 +2097,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/user/client/Client.ts b/src/api/resources/user/client/Client.ts index 189a1e1..df9bf5b 100644 --- a/src/api/resources/user/client/Client.ts +++ b/src/api/resources/user/client/Client.ts @@ -48,7 +48,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -149,7 +149,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -237,7 +237,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -324,7 +324,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -417,7 +417,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -515,7 +515,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -601,7 +601,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.0-rc.2", + "X-Fern-SDK-Version": "2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/user/client/requests/CreateUserRequest.ts b/src/api/resources/user/client/requests/CreateUserRequest.ts index 8844ecd..e2d005f 100644 --- a/src/api/resources/user/client/requests/CreateUserRequest.ts +++ b/src/api/resources/user/client/requests/CreateUserRequest.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Zep from "../../../../index"; + /** * @example * {} @@ -9,6 +11,8 @@ export interface CreateUserRequest { /** The email address of the user. */ email?: string; + /** Optional instruction to use for fact rating. */ + factRatingInstruction?: Zep.FactRatingInstruction; /** The first name of the user. */ firstName?: string; /** The last name of the user. */ diff --git a/src/api/resources/user/client/requests/UpdateUserRequest.ts b/src/api/resources/user/client/requests/UpdateUserRequest.ts index 954d9d3..26b3386 100644 --- a/src/api/resources/user/client/requests/UpdateUserRequest.ts +++ b/src/api/resources/user/client/requests/UpdateUserRequest.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Zep from "../../../../index"; + /** * @example * {} @@ -9,6 +11,8 @@ export interface UpdateUserRequest { /** The email address of the user. */ email?: string; + /** Optional instruction to use for fact rating. */ + factRatingInstruction?: Zep.FactRatingInstruction; /** The first name of the user. */ firstName?: string; /** The last name of the user. */ diff --git a/src/api/types/SessionFactRatingExamples.ts b/src/api/types/ApidataFactRatingExamples.ts similarity index 74% rename from src/api/types/SessionFactRatingExamples.ts rename to src/api/types/ApidataFactRatingExamples.ts index 10130a4..b26feed 100644 --- a/src/api/types/SessionFactRatingExamples.ts +++ b/src/api/types/ApidataFactRatingExamples.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export interface SessionFactRatingExamples { +export interface ApidataFactRatingExamples { high?: string; low?: string; medium?: string; diff --git a/src/api/types/SessionFactRatingInstruction.ts b/src/api/types/ApidataFactRatingInstruction.ts similarity index 90% rename from src/api/types/SessionFactRatingInstruction.ts rename to src/api/types/ApidataFactRatingInstruction.ts index 9567655..8dce278 100644 --- a/src/api/types/SessionFactRatingInstruction.ts +++ b/src/api/types/ApidataFactRatingInstruction.ts @@ -4,7 +4,7 @@ import * as Zep from "../index"; -export interface SessionFactRatingInstruction { +export interface ApidataFactRatingInstruction { /** * Examples is a list of examples that demonstrate how facts might be rated based on your instruction. You should provide * an example of a highly rated example, a low rated example, and a medium (or in between example). For example, if you are rating @@ -13,7 +13,7 @@ export interface SessionFactRatingInstruction { * Medium: "Joe has a fear of flying", * Low: "Joe's favorite food is Japanese", */ - examples?: Zep.SessionFactRatingExamples; + examples?: Zep.ApidataFactRatingExamples; /** * A string describing how to rate facts as they apply to your application. A trip planning application may * use something like "relevancy to planning a trip, the user's preferences when traveling, diff --git a/src/api/types/Episode.ts b/src/api/types/Episode.ts index 635d970..f31d8bf 100644 --- a/src/api/types/Episode.ts +++ b/src/api/types/Episode.ts @@ -5,10 +5,10 @@ import * as Zep from "../index"; export interface Episode { - content?: string; - createdAt?: string; + content: string; + createdAt: string; name?: string; source?: Zep.GraphDataType; sourceDescription?: string; - uuid?: string; + uuid: string; } diff --git a/src/api/types/Fact.ts b/src/api/types/Fact.ts index 3f4563e..683b418 100644 --- a/src/api/types/Fact.ts +++ b/src/api/types/Fact.ts @@ -3,8 +3,10 @@ */ export interface Fact { + content: string; createdAt: string; expiredAt?: string; + /** Deprecated. This field will be removed in the future, please use `content` instead. */ fact: string; invalidAt?: string; name?: string; diff --git a/src/api/types/Group.ts b/src/api/types/Group.ts index 01a643b..852fce2 100644 --- a/src/api/types/Group.ts +++ b/src/api/types/Group.ts @@ -6,6 +6,7 @@ export interface Group { createdAt?: string; description?: string; externalId?: string; + /** TODO deprecate */ id?: number; name?: string; projectUuid?: string; diff --git a/src/api/types/Session.ts b/src/api/types/Session.ts index ed52ab2..764ecab 100644 --- a/src/api/types/Session.ts +++ b/src/api/types/Session.ts @@ -9,8 +9,9 @@ export interface Session { createdAt?: string; deletedAt?: string; endedAt?: string; - factRatingInstruction?: Zep.SessionFactRatingInstruction; + factRatingInstruction?: Zep.ApidataFactRatingInstruction; facts?: string[]; + /** TODO deprecate */ id?: number; metadata?: Record; projectUuid?: string; diff --git a/src/api/types/index.ts b/src/api/types/index.ts index d6bad0a..f2d3152 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -6,6 +6,8 @@ export * from "./ApidataDocumentWithScore"; export * from "./EndSessionResponse"; export * from "./EndSessionsResponse"; export * from "./Fact"; +export * from "./ApidataFactRatingExamples"; +export * from "./ApidataFactRatingInstruction"; export * from "./FactResponse"; export * from "./FactsResponse"; export * from "./Episode"; @@ -20,8 +22,6 @@ export * from "./Question"; export * from "./RoleType"; export * from "./Session"; export * from "./SessionClassification"; -export * from "./SessionFactRatingExamples"; -export * from "./SessionFactRatingInstruction"; export * from "./SessionListResponse"; export * from "./SessionSearchResponse"; export * from "./SessionSearchResult"; diff --git a/src/serialization/resources/group/client/requests/CreateGroupRequest.ts b/src/serialization/resources/group/client/requests/CreateGroupRequest.ts index d8c12fc..91e1944 100644 --- a/src/serialization/resources/group/client/requests/CreateGroupRequest.ts +++ b/src/serialization/resources/group/client/requests/CreateGroupRequest.ts @@ -5,10 +5,15 @@ import * as serializers from "../../../../index"; import * as Zep from "../../../../../api/index"; import * as core from "../../../../../core"; +import { ApidataFactRatingInstruction } from "../../../../types/ApidataFactRatingInstruction"; export const CreateGroupRequest: core.serialization.Schema = core.serialization.object({ description: core.serialization.string().optional(), + factRatingInstruction: core.serialization.property( + "fact_rating_instruction", + ApidataFactRatingInstruction.optional() + ), groupId: core.serialization.property("group_id", core.serialization.string().optional()), name: core.serialization.string().optional(), }); @@ -16,6 +21,7 @@ export const CreateGroupRequest: core.serialization.Schema = - core.serialization.string(); - -export declare namespace Response { - type Raw = string; -} diff --git a/src/serialization/resources/memory/client/index.ts b/src/serialization/resources/memory/client/index.ts index 0ab9af6..d629c79 100644 --- a/src/serialization/resources/memory/client/index.ts +++ b/src/serialization/resources/memory/client/index.ts @@ -1,4 +1,3 @@ -export * as deleteFact from "./deleteFact"; export * as extractData from "./extractData"; export * as search from "./search"; export * from "./requests"; diff --git a/src/serialization/resources/user/client/requests/CreateUserRequest.ts b/src/serialization/resources/user/client/requests/CreateUserRequest.ts index 1e631ad..15f983b 100644 --- a/src/serialization/resources/user/client/requests/CreateUserRequest.ts +++ b/src/serialization/resources/user/client/requests/CreateUserRequest.ts @@ -5,10 +5,12 @@ import * as serializers from "../../../../index"; import * as Zep from "../../../../../api/index"; import * as core from "../../../../../core"; +import { FactRatingInstruction } from "../../../../types/FactRatingInstruction"; export const CreateUserRequest: core.serialization.Schema = core.serialization.object({ email: core.serialization.string().optional(), + factRatingInstruction: core.serialization.property("fact_rating_instruction", FactRatingInstruction.optional()), firstName: core.serialization.property("first_name", core.serialization.string().optional()), lastName: core.serialization.property("last_name", core.serialization.string().optional()), metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), @@ -18,6 +20,7 @@ export const CreateUserRequest: core.serialization.Schema | null; diff --git a/src/serialization/resources/user/client/requests/UpdateUserRequest.ts b/src/serialization/resources/user/client/requests/UpdateUserRequest.ts index f1d7b0a..85caa76 100644 --- a/src/serialization/resources/user/client/requests/UpdateUserRequest.ts +++ b/src/serialization/resources/user/client/requests/UpdateUserRequest.ts @@ -5,10 +5,12 @@ import * as serializers from "../../../../index"; import * as Zep from "../../../../../api/index"; import * as core from "../../../../../core"; +import { FactRatingInstruction } from "../../../../types/FactRatingInstruction"; export const UpdateUserRequest: core.serialization.Schema = core.serialization.object({ email: core.serialization.string().optional(), + factRatingInstruction: core.serialization.property("fact_rating_instruction", FactRatingInstruction.optional()), firstName: core.serialization.property("first_name", core.serialization.string().optional()), lastName: core.serialization.property("last_name", core.serialization.string().optional()), metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), @@ -17,6 +19,7 @@ export const UpdateUserRequest: core.serialization.Schema | null; diff --git a/src/serialization/types/SessionFactRatingExamples.ts b/src/serialization/types/ApidataFactRatingExamples.ts similarity index 71% rename from src/serialization/types/SessionFactRatingExamples.ts rename to src/serialization/types/ApidataFactRatingExamples.ts index c744eea..f6342ca 100644 --- a/src/serialization/types/SessionFactRatingExamples.ts +++ b/src/serialization/types/ApidataFactRatingExamples.ts @@ -6,16 +6,16 @@ import * as serializers from "../index"; import * as Zep from "../../api/index"; import * as core from "../../core"; -export const SessionFactRatingExamples: core.serialization.ObjectSchema< - serializers.SessionFactRatingExamples.Raw, - Zep.SessionFactRatingExamples +export const ApidataFactRatingExamples: core.serialization.ObjectSchema< + serializers.ApidataFactRatingExamples.Raw, + Zep.ApidataFactRatingExamples > = core.serialization.object({ high: core.serialization.string().optional(), low: core.serialization.string().optional(), medium: core.serialization.string().optional(), }); -export declare namespace SessionFactRatingExamples { +export declare namespace ApidataFactRatingExamples { interface Raw { high?: string | null; low?: string | null; diff --git a/src/serialization/types/ApidataFactRatingInstruction.ts b/src/serialization/types/ApidataFactRatingInstruction.ts new file mode 100644 index 0000000..7d76ce1 --- /dev/null +++ b/src/serialization/types/ApidataFactRatingInstruction.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Zep from "../../api/index"; +import * as core from "../../core"; +import { ApidataFactRatingExamples } from "./ApidataFactRatingExamples"; + +export const ApidataFactRatingInstruction: core.serialization.ObjectSchema< + serializers.ApidataFactRatingInstruction.Raw, + Zep.ApidataFactRatingInstruction +> = core.serialization.object({ + examples: ApidataFactRatingExamples.optional(), + instruction: core.serialization.string().optional(), +}); + +export declare namespace ApidataFactRatingInstruction { + interface Raw { + examples?: ApidataFactRatingExamples.Raw | null; + instruction?: string | null; + } +} diff --git a/src/serialization/types/Episode.ts b/src/serialization/types/Episode.ts index a8fda09..b37d7a4 100644 --- a/src/serialization/types/Episode.ts +++ b/src/serialization/types/Episode.ts @@ -9,22 +9,22 @@ import { GraphDataType } from "./GraphDataType"; export const Episode: core.serialization.ObjectSchema = core.serialization.object( { - content: core.serialization.string().optional(), - createdAt: core.serialization.property("created_at", core.serialization.string().optional()), + content: core.serialization.string(), + createdAt: core.serialization.property("created_at", core.serialization.string()), name: core.serialization.string().optional(), source: GraphDataType.optional(), sourceDescription: core.serialization.property("source_description", core.serialization.string().optional()), - uuid: core.serialization.string().optional(), + uuid: core.serialization.string(), } ); export declare namespace Episode { interface Raw { - content?: string | null; - created_at?: string | null; + content: string; + created_at: string; name?: string | null; source?: GraphDataType.Raw | null; source_description?: string | null; - uuid?: string | null; + uuid: string; } } diff --git a/src/serialization/types/Fact.ts b/src/serialization/types/Fact.ts index f2e554f..5ad1aec 100644 --- a/src/serialization/types/Fact.ts +++ b/src/serialization/types/Fact.ts @@ -7,6 +7,7 @@ import * as Zep from "../../api/index"; import * as core from "../../core"; export const Fact: core.serialization.ObjectSchema = core.serialization.object({ + content: core.serialization.string(), createdAt: core.serialization.property("created_at", core.serialization.string()), expiredAt: core.serialization.property("expired_at", core.serialization.string().optional()), fact: core.serialization.string(), @@ -21,6 +22,7 @@ export const Fact: core.serialization.ObjectSchema = core.serialization.object( { @@ -15,7 +15,7 @@ export const Session: core.serialization.ObjectSchema | null; diff --git a/src/serialization/types/SessionFactRatingInstruction.ts b/src/serialization/types/SessionFactRatingInstruction.ts deleted file mode 100644 index e2b465c..0000000 --- a/src/serialization/types/SessionFactRatingInstruction.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Zep from "../../api/index"; -import * as core from "../../core"; -import { SessionFactRatingExamples } from "./SessionFactRatingExamples"; - -export const SessionFactRatingInstruction: core.serialization.ObjectSchema< - serializers.SessionFactRatingInstruction.Raw, - Zep.SessionFactRatingInstruction -> = core.serialization.object({ - examples: SessionFactRatingExamples.optional(), - instruction: core.serialization.string().optional(), -}); - -export declare namespace SessionFactRatingInstruction { - interface Raw { - examples?: SessionFactRatingExamples.Raw | null; - instruction?: string | null; - } -} diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index d6bad0a..f2d3152 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -6,6 +6,8 @@ export * from "./ApidataDocumentWithScore"; export * from "./EndSessionResponse"; export * from "./EndSessionsResponse"; export * from "./Fact"; +export * from "./ApidataFactRatingExamples"; +export * from "./ApidataFactRatingInstruction"; export * from "./FactResponse"; export * from "./FactsResponse"; export * from "./Episode"; @@ -20,8 +22,6 @@ export * from "./Question"; export * from "./RoleType"; export * from "./Session"; export * from "./SessionClassification"; -export * from "./SessionFactRatingExamples"; -export * from "./SessionFactRatingInstruction"; export * from "./SessionListResponse"; export * from "./SessionSearchResponse"; export * from "./SessionSearchResult"; From 51261852e690d8456b0210a1804858a6e94f9c4c Mon Sep 17 00:00:00 2001 From: paulpaliychuk Date: Thu, 31 Oct 2024 11:35:28 -0400 Subject: [PATCH 3/9] chore: Add license --- .fernignore | 3 +- LICENSE | 201 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 203 insertions(+), 1 deletion(-) create mode 100644 LICENSE diff --git a/.fernignore b/.fernignore index d0a0b81..7d4b244 100644 --- a/.fernignore +++ b/.fernignore @@ -9,4 +9,5 @@ README.md tests/sde.test.ts .gitignore package.json -yarn.lock \ No newline at end of file +yarn.lock +LICENSE \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f49a4e1 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. \ No newline at end of file From 9299519edcf33c366e3878b639948e8fbcc8c17c Mon Sep 17 00:00:00 2001 From: paulpaliychuk Date: Thu, 31 Oct 2024 11:35:28 -0400 Subject: [PATCH 4/9] chore: Add license --- .fernignore | 3 +- LICENSE | 201 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 203 insertions(+), 1 deletion(-) create mode 100644 LICENSE diff --git a/.fernignore b/.fernignore index d0a0b81..7d4b244 100644 --- a/.fernignore +++ b/.fernignore @@ -9,4 +9,5 @@ README.md tests/sde.test.ts .gitignore package.json -yarn.lock \ No newline at end of file +yarn.lock +LICENSE \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f49a4e1 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. \ No newline at end of file From bbbd2a6b2bc9e932031f837d5b78b7ad44ccbad1 Mon Sep 17 00:00:00 2001 From: paulpaliychuk Date: Wed, 6 Nov 2024 13:26:05 -0500 Subject: [PATCH 5/9] chore: Bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 69918c0..52f183e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@getzep/zep-cloud", - "version": "2.0.1", + "version": "2.1.0", "private": false, "repository": "https://github.com/getzep/zep-js", "description": "Zep: Fast, scalable building blocks for production LLM apps", From cf3a3dd76a4dd379eef578dc5729c9fa0ac4588d Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 6 Nov 2024 18:27:51 +0000 Subject: [PATCH 6/9] SDK regeneration --- src/api/resources/document/client/Client.ts | 26 +++++------ src/api/resources/graph/client/Client.ts | 4 +- .../graph/resources/edge/client/Client.ts | 8 ++-- .../graph/resources/episode/client/Client.ts | 6 +-- .../graph/resources/node/client/Client.ts | 6 +-- src/api/resources/group/client/Client.ts | 4 +- src/api/resources/memory/client/Client.ts | 44 +++++++++---------- src/api/resources/user/client/Client.ts | 14 +++--- src/api/types/Memory.ts | 2 + src/serialization/types/Memory.ts | 2 + 10 files changed, 60 insertions(+), 56 deletions(-) diff --git a/src/api/resources/document/client/Client.ts b/src/api/resources/document/client/Client.ts index d9948c1..badec1f 100644 --- a/src/api/resources/document/client/Client.ts +++ b/src/api/resources/document/client/Client.ts @@ -47,7 +47,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -139,7 +139,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -253,7 +253,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -368,7 +368,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -482,7 +482,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -600,7 +600,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -706,7 +706,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -812,7 +812,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -918,7 +918,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1024,7 +1024,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1128,7 +1128,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1244,7 +1244,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1364,7 +1364,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/graph/client/Client.ts b/src/api/resources/graph/client/Client.ts index 1f524ec..841d18f 100644 --- a/src/api/resources/graph/client/Client.ts +++ b/src/api/resources/graph/client/Client.ts @@ -54,7 +54,7 @@ export class Graph { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -147,7 +147,7 @@ export class Graph { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/graph/resources/edge/client/Client.ts b/src/api/resources/graph/resources/edge/client/Client.ts index a236249..8b71713 100644 --- a/src/api/resources/graph/resources/edge/client/Client.ts +++ b/src/api/resources/graph/resources/edge/client/Client.ts @@ -48,7 +48,7 @@ export class Edge { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -135,7 +135,7 @@ export class Edge { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -223,7 +223,7 @@ export class Edge { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -320,7 +320,7 @@ export class Edge { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/graph/resources/episode/client/Client.ts b/src/api/resources/graph/resources/episode/client/Client.ts index e5c2274..3b0f030 100644 --- a/src/api/resources/graph/resources/episode/client/Client.ts +++ b/src/api/resources/graph/resources/episode/client/Client.ts @@ -59,7 +59,7 @@ export class Episode { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -158,7 +158,7 @@ export class Episode { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -246,7 +246,7 @@ export class Episode { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/graph/resources/node/client/Client.ts b/src/api/resources/graph/resources/node/client/Client.ts index 4e4310d..92c42e1 100644 --- a/src/api/resources/graph/resources/node/client/Client.ts +++ b/src/api/resources/graph/resources/node/client/Client.ts @@ -48,7 +48,7 @@ export class Node { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -135,7 +135,7 @@ export class Node { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -223,7 +223,7 @@ export class Node { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/group/client/Client.ts b/src/api/resources/group/client/Client.ts index 55be453..1281dc6 100644 --- a/src/api/resources/group/client/Client.ts +++ b/src/api/resources/group/client/Client.ts @@ -48,7 +48,7 @@ export class Group { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -137,7 +137,7 @@ export class Group { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/memory/client/Client.ts b/src/api/resources/memory/client/Client.ts index 7510c2b..9933204 100644 --- a/src/api/resources/memory/client/Client.ts +++ b/src/api/resources/memory/client/Client.ts @@ -48,7 +48,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -135,7 +135,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -228,7 +228,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -337,7 +337,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -431,7 +431,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -539,7 +539,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -618,7 +618,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -716,7 +716,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -832,7 +832,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -926,7 +926,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1033,7 +1033,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1142,7 +1142,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1235,7 +1235,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1338,7 +1338,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1435,7 +1435,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1513,7 +1513,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1615,7 +1615,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1708,7 +1708,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1806,7 +1806,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1907,7 +1907,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1999,7 +1999,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -2097,7 +2097,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/user/client/Client.ts b/src/api/resources/user/client/Client.ts index df9bf5b..f3047e3 100644 --- a/src/api/resources/user/client/Client.ts +++ b/src/api/resources/user/client/Client.ts @@ -48,7 +48,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -149,7 +149,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -237,7 +237,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -324,7 +324,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -417,7 +417,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -515,7 +515,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -601,7 +601,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/types/Memory.ts b/src/api/types/Memory.ts index 91fc05e..22f969c 100644 --- a/src/api/types/Memory.ts +++ b/src/api/types/Memory.ts @@ -5,6 +5,8 @@ import * as Zep from "../index"; export interface Memory { + /** Memory context containing relevant facts and entities for the session. Can be put into the prompt directly. */ + context?: string; /** * Most recent list of facts derived from the session. (cloud only) * Deprecated: Facts will be deprecated in future releases and relevant_facts should be used instead. diff --git a/src/serialization/types/Memory.ts b/src/serialization/types/Memory.ts index 707a700..988fee5 100644 --- a/src/serialization/types/Memory.ts +++ b/src/serialization/types/Memory.ts @@ -10,6 +10,7 @@ import { Fact } from "./Fact"; import { Summary } from "./Summary"; export const Memory: core.serialization.ObjectSchema = core.serialization.object({ + context: core.serialization.string().optional(), facts: core.serialization.list(core.serialization.string()).optional(), messages: core.serialization.list(Message).optional(), metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), @@ -19,6 +20,7 @@ export const Memory: core.serialization.ObjectSchema | null; From 60a37c970a69ef5010b3ffd6990a32f13f6dea6b Mon Sep 17 00:00:00 2001 From: paulpaliychuk Date: Wed, 6 Nov 2024 13:31:32 -0500 Subject: [PATCH 7/9] chore: Update memory example --- examples/memory/memory_example.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/memory/memory_example.ts b/examples/memory/memory_example.ts index b80b6f3..578114b 100644 --- a/examples/memory/memory_example.ts +++ b/examples/memory/memory_example.ts @@ -40,7 +40,7 @@ async function main() { await client.memory.addSession({ sessionId: sessionID, metadata: { foo: "bar" }, - userId: user.userId, + userId: user.userId!, }); console.debug("Adding new session ", sessionID); } catch (error) { @@ -89,7 +89,7 @@ async function main() { classes, persist: true, }); - console.debug(`${classification.class} Classification Result: ${classification.name}`); + console.debug(`${classification.class} Classification Result: ${classification.label}`); } catch (error) { console.debug("Got error:", error); } @@ -108,6 +108,10 @@ async function main() { console.debug(JSON.stringify(message)); }); } + + if (memory.context) { + console.debug("Memory Context: ", memory.context); + } } catch (error) { if (error instanceof NotFoundError) { console.error("Session not found:", error.message); From 650c14d99d67386c1391a1894061a292acf5e497 Mon Sep 17 00:00:00 2001 From: paulpaliychuk Date: Fri, 15 Nov 2024 13:34:06 -0500 Subject: [PATCH 8/9] chore: Version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 52f183e..2472360 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@getzep/zep-cloud", - "version": "2.1.0", + "version": "2.1.1", "private": false, "repository": "https://github.com/getzep/zep-js", "description": "Zep: Fast, scalable building blocks for production LLM apps", From b824eb910ee43966df13fac49a38e5a931d65a9f Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 15 Nov 2024 18:35:51 +0000 Subject: [PATCH 9/9] SDK regeneration --- src/api/resources/document/client/Client.ts | 26 +++++------ src/api/resources/graph/client/Client.ts | 4 +- .../graph/resources/edge/client/Client.ts | 8 ++-- .../graph/resources/episode/client/Client.ts | 6 +-- .../graph/resources/node/client/Client.ts | 6 +-- src/api/resources/group/client/Client.ts | 4 +- src/api/resources/memory/client/Client.ts | 44 +++++++++---------- src/api/resources/user/client/Client.ts | 14 +++--- src/api/types/Reranker.ts | 3 +- src/serialization/types/Reranker.ts | 3 +- 10 files changed, 60 insertions(+), 58 deletions(-) diff --git a/src/api/resources/document/client/Client.ts b/src/api/resources/document/client/Client.ts index badec1f..4198161 100644 --- a/src/api/resources/document/client/Client.ts +++ b/src/api/resources/document/client/Client.ts @@ -47,7 +47,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -139,7 +139,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -253,7 +253,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -368,7 +368,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -482,7 +482,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -600,7 +600,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -706,7 +706,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -812,7 +812,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -918,7 +918,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1024,7 +1024,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1128,7 +1128,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1244,7 +1244,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1364,7 +1364,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/graph/client/Client.ts b/src/api/resources/graph/client/Client.ts index 841d18f..36a2de3 100644 --- a/src/api/resources/graph/client/Client.ts +++ b/src/api/resources/graph/client/Client.ts @@ -54,7 +54,7 @@ export class Graph { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -147,7 +147,7 @@ export class Graph { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/graph/resources/edge/client/Client.ts b/src/api/resources/graph/resources/edge/client/Client.ts index 8b71713..c559740 100644 --- a/src/api/resources/graph/resources/edge/client/Client.ts +++ b/src/api/resources/graph/resources/edge/client/Client.ts @@ -48,7 +48,7 @@ export class Edge { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -135,7 +135,7 @@ export class Edge { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -223,7 +223,7 @@ export class Edge { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -320,7 +320,7 @@ export class Edge { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/graph/resources/episode/client/Client.ts b/src/api/resources/graph/resources/episode/client/Client.ts index 3b0f030..d97619f 100644 --- a/src/api/resources/graph/resources/episode/client/Client.ts +++ b/src/api/resources/graph/resources/episode/client/Client.ts @@ -59,7 +59,7 @@ export class Episode { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -158,7 +158,7 @@ export class Episode { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -246,7 +246,7 @@ export class Episode { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/graph/resources/node/client/Client.ts b/src/api/resources/graph/resources/node/client/Client.ts index 92c42e1..8ab69a8 100644 --- a/src/api/resources/graph/resources/node/client/Client.ts +++ b/src/api/resources/graph/resources/node/client/Client.ts @@ -48,7 +48,7 @@ export class Node { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -135,7 +135,7 @@ export class Node { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -223,7 +223,7 @@ export class Node { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/group/client/Client.ts b/src/api/resources/group/client/Client.ts index 1281dc6..4499ca9 100644 --- a/src/api/resources/group/client/Client.ts +++ b/src/api/resources/group/client/Client.ts @@ -48,7 +48,7 @@ export class Group { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -137,7 +137,7 @@ export class Group { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/memory/client/Client.ts b/src/api/resources/memory/client/Client.ts index 9933204..cf4af42 100644 --- a/src/api/resources/memory/client/Client.ts +++ b/src/api/resources/memory/client/Client.ts @@ -48,7 +48,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -135,7 +135,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -228,7 +228,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -337,7 +337,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -431,7 +431,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -539,7 +539,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -618,7 +618,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -716,7 +716,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -832,7 +832,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -926,7 +926,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1033,7 +1033,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1142,7 +1142,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1235,7 +1235,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1338,7 +1338,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1435,7 +1435,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1513,7 +1513,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1615,7 +1615,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1708,7 +1708,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1806,7 +1806,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1907,7 +1907,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1999,7 +1999,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -2097,7 +2097,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/user/client/Client.ts b/src/api/resources/user/client/Client.ts index f3047e3..1098bf0 100644 --- a/src/api/resources/user/client/Client.ts +++ b/src/api/resources/user/client/Client.ts @@ -48,7 +48,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -149,7 +149,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -237,7 +237,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -324,7 +324,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -417,7 +417,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -515,7 +515,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -601,7 +601,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.1.0", + "X-Fern-SDK-Version": "2.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/types/Reranker.ts b/src/api/types/Reranker.ts index 65855f7..dc2c609 100644 --- a/src/api/types/Reranker.ts +++ b/src/api/types/Reranker.ts @@ -2,11 +2,12 @@ * This file was auto-generated by Fern from our API Definition. */ -export type Reranker = "rrf" | "mmr" | "node_distance" | "episode_mentions"; +export type Reranker = "rrf" | "mmr" | "node_distance" | "episode_mentions" | "cross_encoder"; export const Reranker = { Rrf: "rrf", Mmr: "mmr", NodeDistance: "node_distance", EpisodeMentions: "episode_mentions", + CrossEncoder: "cross_encoder", } as const; diff --git a/src/serialization/types/Reranker.ts b/src/serialization/types/Reranker.ts index d2a905e..4554435 100644 --- a/src/serialization/types/Reranker.ts +++ b/src/serialization/types/Reranker.ts @@ -11,8 +11,9 @@ export const Reranker: core.serialization.Schema