From fdd2b9850c87a48b3dc2e7ca4b2ab94e3672da5f Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 19 Feb 2025 01:19:59 +0000 Subject: [PATCH] Release 0.1.34 --- package.json | 2 +- reference.md | 275 +++++++++++ src/api/resources/agents/client/Client.ts | 28 +- .../resources/archivalMemory/client/Client.ts | 12 +- .../agents/resources/context/client/Client.ts | 4 +- .../resources/coreMemory/client/Client.ts | 24 +- .../memoryVariables/client/Client.ts | 4 +- .../resources/messages/client/Client.ts | 20 +- .../agents/resources/sources/client/Client.ts | 12 +- .../resources/templates/client/Client.ts | 12 +- .../agents/resources/tools/client/Client.ts | 12 +- src/api/resources/blocks/client/Client.ts | 24 +- src/api/resources/health/client/Client.ts | 4 +- src/api/resources/identities/client/Client.ts | 434 +++++++++++++++++- .../client/requests/CreateIdentityRequest.ts | 20 + .../client/requests/IdentityUpdate.ts | 18 + .../client/requests/UpsertIdentityRequest.ts | 20 + .../identities/client/requests/index.ts | 3 + src/api/resources/jobs/client/Client.ts | 16 +- src/api/resources/models/client/Client.ts | 8 +- src/api/resources/providers/client/Client.ts | 16 +- src/api/resources/runs/client/Client.ts | 24 +- src/api/resources/sources/client/Client.ts | 24 +- .../sources/resources/files/client/Client.ts | 12 +- .../resources/passages/client/Client.ts | 4 +- src/api/resources/steps/client/Client.ts | 8 +- src/api/resources/tag/client/Client.ts | 4 +- src/api/resources/templates/client/Client.ts | 4 +- src/api/resources/tools/client/Client.ts | 44 +- src/api/types/Identity.ts | 2 +- src/api/types/IdentityCreate.ts | 18 + src/api/types/index.ts | 1 + .../resources/identities/client/index.ts | 1 + .../client/requests/IdentityUpdate.ts | 26 ++ .../identities/client/requests/index.ts | 1 + src/serialization/resources/index.ts | 1 + src/serialization/types/IdentityCreate.ts | 30 ++ src/serialization/types/index.ts | 1 + src/version.ts | 2 +- 39 files changed, 1010 insertions(+), 165 deletions(-) create mode 100644 src/api/resources/identities/client/requests/CreateIdentityRequest.ts create mode 100644 src/api/resources/identities/client/requests/IdentityUpdate.ts create mode 100644 src/api/resources/identities/client/requests/UpsertIdentityRequest.ts create mode 100644 src/api/types/IdentityCreate.ts create mode 100644 src/serialization/resources/identities/client/requests/IdentityUpdate.ts create mode 100644 src/serialization/resources/identities/client/requests/index.ts create mode 100644 src/serialization/types/IdentityCreate.ts diff --git a/package.json b/package.json index 5cddd15..0c0d759 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@letta-ai/letta-client", - "version": "0.1.33", + "version": "0.1.34", "private": false, "repository": "https://github.com/letta-ai/letta-node", "main": "./index.js", diff --git a/reference.md b/reference.md index c5f9303..b3b9a48 100644 --- a/reference.md +++ b/reference.md @@ -1605,6 +1605,281 @@ await client.identities.listIdentities(); +
client.identities.createIdentity({ ...params }) -> Letta.Identity +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.identities.createIdentity({ + body: { + identifierKey: "identifier_key", + name: "name", + identityType: "org", + }, +}); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Letta.CreateIdentityRequest` + +
+
+ +
+
+ +**requestOptions:** `Identities.RequestOptions` + +
+
+
+
+ +
+
+
+ +
client.identities.upsertIdentity({ ...params }) -> Letta.Identity +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.identities.upsertIdentity({ + body: { + identifierKey: "identifier_key", + name: "name", + identityType: "org", + }, +}); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Letta.UpsertIdentityRequest` + +
+
+ +
+
+ +**requestOptions:** `Identities.RequestOptions` + +
+
+
+
+ +
+
+
+ +
client.identities.getIdentityFromIdentifierKey(identifierKey) -> Letta.Identity +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.identities.getIdentityFromIdentifierKey("identifier_key"); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**identifierKey:** `string` + +
+
+ +
+
+ +**requestOptions:** `Identities.RequestOptions` + +
+
+
+
+ +
+
+
+ +
client.identities.deleteIdentity(identifierKey) -> unknown +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Delete an identity by its identifier key + +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.identities.deleteIdentity("identifier_key"); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**identifierKey:** `string` + +
+
+ +
+
+ +**requestOptions:** `Identities.RequestOptions` + +
+
+
+
+ +
+
+
+ +
client.identities.updateIdentity(identifierKey, { ...params }) -> Letta.Identity +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.identities.updateIdentity("identifier_key"); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**identifierKey:** `string` + +
+
+ +
+
+ +**request:** `Letta.IdentityUpdate` + +
+
+ +
+
+ +**requestOptions:** `Identities.RequestOptions` + +
+
+
+
+ +
+
+
+ ## Models
client.models.listLlms() -> Letta.LlmConfig[] diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts index 5d838a3..71904bd 100644 --- a/src/api/resources/agents/client/Client.ts +++ b/src/api/resources/agents/client/Client.ts @@ -171,8 +171,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -257,8 +257,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "project-slug": projectSlug != null ? projectSlug : undefined, @@ -340,8 +340,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -421,8 +421,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -501,8 +501,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -594,8 +594,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -681,8 +681,8 @@ export class Agents { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/agents/resources/archivalMemory/client/Client.ts b/src/api/resources/agents/resources/archivalMemory/client/Client.ts index 4434a6f..7c05e77 100644 --- a/src/api/resources/agents/resources/archivalMemory/client/Client.ts +++ b/src/api/resources/agents/resources/archivalMemory/client/Client.ts @@ -75,8 +75,8 @@ export class ArchivalMemory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -166,8 +166,8 @@ export class ArchivalMemory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -255,8 +255,8 @@ export class ArchivalMemory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/agents/resources/context/client/Client.ts b/src/api/resources/agents/resources/context/client/Client.ts index c9c80ba..de3e029 100644 --- a/src/api/resources/agents/resources/context/client/Client.ts +++ b/src/api/resources/agents/resources/context/client/Client.ts @@ -59,8 +59,8 @@ export class Context { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/agents/resources/coreMemory/client/Client.ts b/src/api/resources/agents/resources/coreMemory/client/Client.ts index 0c3e4ce..f0de59a 100644 --- a/src/api/resources/agents/resources/coreMemory/client/Client.ts +++ b/src/api/resources/agents/resources/coreMemory/client/Client.ts @@ -57,8 +57,8 @@ export class CoreMemory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -145,8 +145,8 @@ export class CoreMemory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -235,8 +235,8 @@ export class CoreMemory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -319,8 +319,8 @@ export class CoreMemory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -407,8 +407,8 @@ export class CoreMemory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -495,8 +495,8 @@ export class CoreMemory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/agents/resources/memoryVariables/client/Client.ts b/src/api/resources/agents/resources/memoryVariables/client/Client.ts index 16598bd..701302d 100644 --- a/src/api/resources/agents/resources/memoryVariables/client/Client.ts +++ b/src/api/resources/agents/resources/memoryVariables/client/Client.ts @@ -61,8 +61,8 @@ export class MemoryVariables { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/agents/resources/messages/client/Client.ts b/src/api/resources/agents/resources/messages/client/Client.ts index b73fe03..a4df84e 100644 --- a/src/api/resources/agents/resources/messages/client/Client.ts +++ b/src/api/resources/agents/resources/messages/client/Client.ts @@ -89,8 +89,8 @@ export class Messages { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -182,8 +182,8 @@ export class Messages { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -273,8 +273,8 @@ export class Messages { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -355,8 +355,8 @@ export class Messages { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -461,8 +461,8 @@ export class Messages { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/agents/resources/sources/client/Client.ts b/src/api/resources/agents/resources/sources/client/Client.ts index ca5aae3..a29ba3b 100644 --- a/src/api/resources/agents/resources/sources/client/Client.ts +++ b/src/api/resources/agents/resources/sources/client/Client.ts @@ -61,8 +61,8 @@ export class Sources { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -149,8 +149,8 @@ export class Sources { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -232,8 +232,8 @@ export class Sources { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/agents/resources/templates/client/Client.ts b/src/api/resources/agents/resources/templates/client/Client.ts index 6a8e820..b46c811 100644 --- a/src/api/resources/agents/resources/templates/client/Client.ts +++ b/src/api/resources/agents/resources/templates/client/Client.ts @@ -70,8 +70,8 @@ export class Templates { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -157,8 +157,8 @@ export class Templates { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -250,8 +250,8 @@ export class Templates { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/agents/resources/tools/client/Client.ts b/src/api/resources/agents/resources/tools/client/Client.ts index 4e09197..f303e8d 100644 --- a/src/api/resources/agents/resources/tools/client/Client.ts +++ b/src/api/resources/agents/resources/tools/client/Client.ts @@ -56,8 +56,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -142,8 +142,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -230,8 +230,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/blocks/client/Client.ts b/src/api/resources/blocks/client/Client.ts index efbb6ad..f2b668d 100644 --- a/src/api/resources/blocks/client/Client.ts +++ b/src/api/resources/blocks/client/Client.ts @@ -71,8 +71,8 @@ export class Blocks { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -154,8 +154,8 @@ export class Blocks { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -234,8 +234,8 @@ export class Blocks { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -313,8 +313,8 @@ export class Blocks { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -397,8 +397,8 @@ export class Blocks { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -483,8 +483,8 @@ export class Blocks { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/health/client/Client.ts b/src/api/resources/health/client/Client.ts index 4283d6b..9cf281c 100644 --- a/src/api/resources/health/client/Client.ts +++ b/src/api/resources/health/client/Client.ts @@ -51,8 +51,8 @@ export class Health { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/identities/client/Client.ts b/src/api/resources/identities/client/Client.ts index 1b2fc55..d797ece 100644 --- a/src/api/resources/identities/client/Client.ts +++ b/src/api/resources/identities/client/Client.ts @@ -85,8 +85,8 @@ export class Identities { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -144,6 +144,436 @@ export class Identities { } } + /** + * @param {Letta.CreateIdentityRequest} request + * @param {Identities.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Letta.UnprocessableEntityError} + * + * @example + * await client.identities.createIdentity({ + * body: { + * identifierKey: "identifier_key", + * name: "name", + * identityType: "org" + * } + * }) + */ + public async createIdentity( + request: Letta.CreateIdentityRequest, + requestOptions?: Identities.RequestOptions, + ): Promise { + const { projectSlug, body: _body } = request; + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.LettaEnvironment.LettaCloud, + "v1/identities/", + ), + method: "POST", + headers: { + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@letta-ai/letta-client", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + "project-slug": projectSlug != null ? projectSlug : undefined, + ...(await this._getCustomAuthorizationHeaders()), + ...requestOptions?.headers, + }, + contentType: "application/json", + requestType: "json", + body: serializers.IdentityCreate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.Identity.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 422: + throw new Letta.UnprocessableEntityError( + serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + ); + default: + throw new errors.LettaError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.LettaError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/identities/."); + case "unknown": + throw new errors.LettaError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * @param {Letta.UpsertIdentityRequest} request + * @param {Identities.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Letta.UnprocessableEntityError} + * + * @example + * await client.identities.upsertIdentity({ + * body: { + * identifierKey: "identifier_key", + * name: "name", + * identityType: "org" + * } + * }) + */ + public async upsertIdentity( + request: Letta.UpsertIdentityRequest, + requestOptions?: Identities.RequestOptions, + ): Promise { + const { projectSlug, body: _body } = request; + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.LettaEnvironment.LettaCloud, + "v1/identities/", + ), + method: "PUT", + headers: { + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@letta-ai/letta-client", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + "project-slug": projectSlug != null ? projectSlug : undefined, + ...(await this._getCustomAuthorizationHeaders()), + ...requestOptions?.headers, + }, + contentType: "application/json", + requestType: "json", + body: serializers.IdentityCreate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.Identity.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 422: + throw new Letta.UnprocessableEntityError( + serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + ); + default: + throw new errors.LettaError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.LettaError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.LettaTimeoutError("Timeout exceeded when calling PUT /v1/identities/."); + case "unknown": + throw new errors.LettaError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * @param {string} identifierKey + * @param {Identities.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Letta.UnprocessableEntityError} + * + * @example + * await client.identities.getIdentityFromIdentifierKey("identifier_key") + */ + public async getIdentityFromIdentifierKey( + identifierKey: string, + requestOptions?: Identities.RequestOptions, + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.LettaEnvironment.LettaCloud, + `v1/identities/${encodeURIComponent(identifierKey)}`, + ), + method: "GET", + headers: { + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@letta-ai/letta-client", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ...(await this._getCustomAuthorizationHeaders()), + ...requestOptions?.headers, + }, + contentType: "application/json", + requestType: "json", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.Identity.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 422: + throw new Letta.UnprocessableEntityError( + serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + ); + default: + throw new errors.LettaError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.LettaError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.LettaTimeoutError( + "Timeout exceeded when calling GET /v1/identities/{identifier_key}.", + ); + case "unknown": + throw new errors.LettaError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * Delete an identity by its identifier key + * + * @param {string} identifierKey + * @param {Identities.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Letta.UnprocessableEntityError} + * + * @example + * await client.identities.deleteIdentity("identifier_key") + */ + public async deleteIdentity(identifierKey: string, requestOptions?: Identities.RequestOptions): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.LettaEnvironment.LettaCloud, + `v1/identities/${encodeURIComponent(identifierKey)}`, + ), + method: "DELETE", + headers: { + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@letta-ai/letta-client", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ...(await this._getCustomAuthorizationHeaders()), + ...requestOptions?.headers, + }, + contentType: "application/json", + requestType: "json", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return _response.body; + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 422: + throw new Letta.UnprocessableEntityError( + serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + ); + default: + throw new errors.LettaError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.LettaError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.LettaTimeoutError( + "Timeout exceeded when calling DELETE /v1/identities/{identifier_key}.", + ); + case "unknown": + throw new errors.LettaError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * @param {string} identifierKey + * @param {Letta.IdentityUpdate} request + * @param {Identities.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Letta.UnprocessableEntityError} + * + * @example + * await client.identities.updateIdentity("identifier_key") + */ + public async updateIdentity( + identifierKey: string, + request: Letta.IdentityUpdate = {}, + requestOptions?: Identities.RequestOptions, + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.LettaEnvironment.LettaCloud, + `v1/identities/${encodeURIComponent(identifierKey)}`, + ), + method: "PATCH", + headers: { + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@letta-ai/letta-client", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ...(await this._getCustomAuthorizationHeaders()), + ...requestOptions?.headers, + }, + contentType: "application/json", + requestType: "json", + body: serializers.IdentityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.Identity.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 422: + throw new Letta.UnprocessableEntityError( + serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + ); + default: + throw new errors.LettaError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.LettaError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.LettaTimeoutError( + "Timeout exceeded when calling PATCH /v1/identities/{identifier_key}.", + ); + case "unknown": + throw new errors.LettaError({ + message: _response.error.errorMessage, + }); + } + } + protected async _getCustomAuthorizationHeaders() { const tokenValue = await core.Supplier.get(this._options.token); return { Authorization: `Bearer ${tokenValue}` }; diff --git a/src/api/resources/identities/client/requests/CreateIdentityRequest.ts b/src/api/resources/identities/client/requests/CreateIdentityRequest.ts new file mode 100644 index 0000000..afef8d1 --- /dev/null +++ b/src/api/resources/identities/client/requests/CreateIdentityRequest.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Letta from "../../../../index"; + +/** + * @example + * { + * body: { + * identifierKey: "identifier_key", + * name: "name", + * identityType: "org" + * } + * } + */ +export interface CreateIdentityRequest { + projectSlug?: string; + body: Letta.IdentityCreate; +} diff --git a/src/api/resources/identities/client/requests/IdentityUpdate.ts b/src/api/resources/identities/client/requests/IdentityUpdate.ts new file mode 100644 index 0000000..fa31b2b --- /dev/null +++ b/src/api/resources/identities/client/requests/IdentityUpdate.ts @@ -0,0 +1,18 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Letta from "../../../../index"; + +/** + * @example + * {} + */ +export interface IdentityUpdate { + /** The name of the identity. */ + name?: string; + /** The type of the identity. */ + identityType?: Letta.IdentityType; + /** The agent ids that are associated with the identity. */ + agentIds?: string[]; +} diff --git a/src/api/resources/identities/client/requests/UpsertIdentityRequest.ts b/src/api/resources/identities/client/requests/UpsertIdentityRequest.ts new file mode 100644 index 0000000..5f0c55b --- /dev/null +++ b/src/api/resources/identities/client/requests/UpsertIdentityRequest.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Letta from "../../../../index"; + +/** + * @example + * { + * body: { + * identifierKey: "identifier_key", + * name: "name", + * identityType: "org" + * } + * } + */ +export interface UpsertIdentityRequest { + projectSlug?: string; + body: Letta.IdentityCreate; +} diff --git a/src/api/resources/identities/client/requests/index.ts b/src/api/resources/identities/client/requests/index.ts index c5a65c5..a5e7e39 100644 --- a/src/api/resources/identities/client/requests/index.ts +++ b/src/api/resources/identities/client/requests/index.ts @@ -1 +1,4 @@ export { type ListIdentitiesRequest } from "./ListIdentitiesRequest"; +export { type CreateIdentityRequest } from "./CreateIdentityRequest"; +export { type UpsertIdentityRequest } from "./UpsertIdentityRequest"; +export { type IdentityUpdate } from "./IdentityUpdate"; diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts index ff4bbb7..7b6d8e3 100644 --- a/src/api/resources/jobs/client/Client.ts +++ b/src/api/resources/jobs/client/Client.ts @@ -62,8 +62,8 @@ export class Jobs { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -143,8 +143,8 @@ export class Jobs { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -224,8 +224,8 @@ export class Jobs { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -305,8 +305,8 @@ export class Jobs { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/models/client/Client.ts b/src/api/resources/models/client/Client.ts index 831436d..1e79346 100644 --- a/src/api/resources/models/client/Client.ts +++ b/src/api/resources/models/client/Client.ts @@ -51,8 +51,8 @@ export class Models { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -114,8 +114,8 @@ export class Models { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/providers/client/Client.ts b/src/api/resources/providers/client/Client.ts index a2dd0fa..b0db572 100644 --- a/src/api/resources/providers/client/Client.ts +++ b/src/api/resources/providers/client/Client.ts @@ -69,8 +69,8 @@ export class Providers { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -157,8 +157,8 @@ export class Providers { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -247,8 +247,8 @@ export class Providers { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -329,8 +329,8 @@ export class Providers { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/runs/client/Client.ts b/src/api/resources/runs/client/Client.ts index b24958b..57ce5ad 100644 --- a/src/api/resources/runs/client/Client.ts +++ b/src/api/resources/runs/client/Client.ts @@ -55,8 +55,8 @@ export class Runs { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -135,8 +135,8 @@ export class Runs { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -216,8 +216,8 @@ export class Runs { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -297,8 +297,8 @@ export class Runs { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -418,8 +418,8 @@ export class Runs { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -500,8 +500,8 @@ export class Runs { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/sources/client/Client.ts b/src/api/resources/sources/client/Client.ts index 14c1ce1..44ebeb5 100644 --- a/src/api/resources/sources/client/Client.ts +++ b/src/api/resources/sources/client/Client.ts @@ -69,8 +69,8 @@ export class Sources { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -150,8 +150,8 @@ export class Sources { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -230,8 +230,8 @@ export class Sources { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -312,8 +312,8 @@ export class Sources { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -392,8 +392,8 @@ export class Sources { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -475,8 +475,8 @@ export class Sources { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/sources/resources/files/client/Client.ts b/src/api/resources/sources/resources/files/client/Client.ts index 17d1eb2..536048e 100644 --- a/src/api/resources/sources/resources/files/client/Client.ts +++ b/src/api/resources/sources/resources/files/client/Client.ts @@ -66,8 +66,8 @@ export class Files { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -166,8 +166,8 @@ export class Files { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -249,8 +249,8 @@ export class Files { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/sources/resources/passages/client/Client.ts b/src/api/resources/sources/resources/passages/client/Client.ts index e4a4cbe..c0e096c 100644 --- a/src/api/resources/sources/resources/passages/client/Client.ts +++ b/src/api/resources/sources/resources/passages/client/Client.ts @@ -56,8 +56,8 @@ export class Passages { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/steps/client/Client.ts b/src/api/resources/steps/client/Client.ts index f75b043..f8ed473 100644 --- a/src/api/resources/steps/client/Client.ts +++ b/src/api/resources/steps/client/Client.ts @@ -90,8 +90,8 @@ export class Steps { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -172,8 +172,8 @@ export class Steps { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/tag/client/Client.ts b/src/api/resources/tag/client/Client.ts index 91866d8..3852b96 100644 --- a/src/api/resources/tag/client/Client.ts +++ b/src/api/resources/tag/client/Client.ts @@ -70,8 +70,8 @@ export class Tag { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/templates/client/Client.ts b/src/api/resources/templates/client/Client.ts index c1c4e27..052049f 100644 --- a/src/api/resources/templates/client/Client.ts +++ b/src/api/resources/templates/client/Client.ts @@ -61,8 +61,8 @@ export class Templates { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/tools/client/Client.ts b/src/api/resources/tools/client/Client.ts index e897a1b..8961d36 100644 --- a/src/api/resources/tools/client/Client.ts +++ b/src/api/resources/tools/client/Client.ts @@ -56,8 +56,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -137,8 +137,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -217,8 +217,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -316,8 +316,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -400,8 +400,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -484,8 +484,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -565,8 +565,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -654,8 +654,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -735,8 +735,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -819,8 +819,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -905,8 +905,8 @@ export class Tools { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", - "X-Fern-SDK-Version": "0.1.33", - "User-Agent": "@letta-ai/letta-client/0.1.33", + "X-Fern-SDK-Version": "0.1.34", + "User-Agent": "@letta-ai/letta-client/0.1.34", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/types/Identity.ts b/src/api/types/Identity.ts index 76fa5f2..714642a 100644 --- a/src/api/types/Identity.ts +++ b/src/api/types/Identity.ts @@ -15,6 +15,6 @@ export interface Identity { identityType: Letta.IdentityType; /** The project id of the identity, if applicable. */ projectId?: string; - /** The ids of the agents associated with the identity. */ + /** The agents associated with the identity. */ agents: Letta.AgentState[]; } diff --git a/src/api/types/IdentityCreate.ts b/src/api/types/IdentityCreate.ts new file mode 100644 index 0000000..9282c1c --- /dev/null +++ b/src/api/types/IdentityCreate.ts @@ -0,0 +1,18 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Letta from "../index"; + +export interface IdentityCreate { + /** External, user-generated identifier key of the identity. */ + identifierKey: string; + /** The name of the identity. */ + name: string; + /** The type of the identity. */ + identityType: Letta.IdentityType; + /** The project id of the identity, if applicable. */ + projectId?: string; + /** The agent ids that are associated with the identity. */ + agentIds?: string[]; +} diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 4a55d69..048c584 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -85,6 +85,7 @@ export * from "./FunctionTool"; export * from "./HttpValidationError"; export * from "./Health"; export * from "./Identity"; +export * from "./IdentityCreate"; export * from "./IdentityType"; export * from "./ImageUrlDetail"; export * from "./ImageUrl"; diff --git a/src/serialization/resources/identities/client/index.ts b/src/serialization/resources/identities/client/index.ts index 37f0f88..af3daf8 100644 --- a/src/serialization/resources/identities/client/index.ts +++ b/src/serialization/resources/identities/client/index.ts @@ -1 +1,2 @@ export * as listIdentities from "./listIdentities"; +export * from "./requests"; diff --git a/src/serialization/resources/identities/client/requests/IdentityUpdate.ts b/src/serialization/resources/identities/client/requests/IdentityUpdate.ts new file mode 100644 index 0000000..d357913 --- /dev/null +++ b/src/serialization/resources/identities/client/requests/IdentityUpdate.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../index"; +import * as Letta from "../../../../../api/index"; +import * as core from "../../../../../core"; +import { IdentityType } from "../../../../types/IdentityType"; + +export const IdentityUpdate: core.serialization.Schema = + core.serialization.object({ + name: core.serialization.string().optional(), + identityType: core.serialization.property("identity_type", IdentityType.optional()), + agentIds: core.serialization.property( + "agent_ids", + core.serialization.list(core.serialization.string()).optional(), + ), + }); + +export declare namespace IdentityUpdate { + export interface Raw { + name?: string | null; + identity_type?: IdentityType.Raw | null; + agent_ids?: string[] | null; + } +} diff --git a/src/serialization/resources/identities/client/requests/index.ts b/src/serialization/resources/identities/client/requests/index.ts new file mode 100644 index 0000000..3685759 --- /dev/null +++ b/src/serialization/resources/identities/client/requests/index.ts @@ -0,0 +1 @@ +export { IdentityUpdate } from "./IdentityUpdate"; diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts index 561fd54..561895e 100644 --- a/src/serialization/resources/index.ts +++ b/src/serialization/resources/index.ts @@ -15,5 +15,6 @@ export * as tag from "./tag"; export * from "./tools/client/requests"; export * from "./sources/client/requests"; export * from "./agents/client/requests"; +export * from "./identities/client/requests"; export * from "./providers/client/requests"; export * from "./templates/client/requests"; diff --git a/src/serialization/types/IdentityCreate.ts b/src/serialization/types/IdentityCreate.ts new file mode 100644 index 0000000..8d2b897 --- /dev/null +++ b/src/serialization/types/IdentityCreate.ts @@ -0,0 +1,30 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Letta from "../../api/index"; +import * as core from "../../core"; +import { IdentityType } from "./IdentityType"; + +export const IdentityCreate: core.serialization.ObjectSchema = + core.serialization.object({ + identifierKey: core.serialization.property("identifier_key", core.serialization.string()), + name: core.serialization.string(), + identityType: core.serialization.property("identity_type", IdentityType), + projectId: core.serialization.property("project_id", core.serialization.string().optional()), + agentIds: core.serialization.property( + "agent_ids", + core.serialization.list(core.serialization.string()).optional(), + ), + }); + +export declare namespace IdentityCreate { + export interface Raw { + identifier_key: string; + name: string; + identity_type: IdentityType.Raw; + project_id?: string | null; + agent_ids?: string[] | null; + } +} diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index 4a55d69..048c584 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -85,6 +85,7 @@ export * from "./FunctionTool"; export * from "./HttpValidationError"; export * from "./Health"; export * from "./Identity"; +export * from "./IdentityCreate"; export * from "./IdentityType"; export * from "./ImageUrlDetail"; export * from "./ImageUrl"; diff --git a/src/version.ts b/src/version.ts index f6eb516..b2b65e2 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "0.1.33"; +export const SDK_VERSION = "0.1.34";