@letta-ai/letta-client 0.0.68656 → 0.0.68658
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +3 -0
- package/Client.js +45 -40
- package/README.md +9 -9
- package/api/resources/agents/client/Client.js +9 -9
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/files/client/Client.js +4 -4
- package/api/resources/agents/resources/folders/client/Client.js +3 -3
- package/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +10 -10
- package/api/resources/agents/resources/passages/client/Client.js +5 -5
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +4 -4
- package/api/resources/archives/client/Client.d.ts +78 -0
- package/api/resources/archives/client/Client.js +325 -0
- package/api/resources/archives/client/index.d.ts +1 -0
- package/api/resources/archives/client/index.js +17 -0
- package/api/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
- package/api/resources/archives/client/requests/ArchiveCreateRequest.js +5 -0
- package/api/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +11 -0
- package/api/resources/archives/client/requests/ArchiveUpdateRequest.js +5 -0
- package/api/resources/archives/client/requests/ListArchivesRequest.d.ts +34 -0
- package/api/resources/archives/client/requests/ListArchivesRequest.js +5 -0
- package/api/resources/archives/client/requests/index.d.ts +3 -0
- package/api/resources/archives/client/requests/index.js +2 -0
- package/api/resources/archives/index.d.ts +2 -0
- package/api/resources/archives/index.js +18 -0
- package/api/resources/archives/types/ListArchivesRequestOrder.d.ts +11 -0
- package/api/resources/archives/types/ListArchivesRequestOrder.js +10 -0
- package/api/resources/archives/types/index.d.ts +1 -0
- package/api/resources/archives/types/index.js +17 -0
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/batches/resources/messages/client/Client.js +1 -1
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/api/resources/folders/client/Client.js +8 -8
- package/api/resources/folders/resources/agents/client/Client.js +1 -1
- package/api/resources/folders/resources/files/client/Client.js +3 -3
- package/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/api/resources/groups/client/Client.js +6 -6
- package/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +7 -7
- package/api/resources/identities/resources/agents/client/Client.js +1 -1
- package/api/resources/identities/resources/blocks/client/Client.js +1 -1
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/jobs/client/Client.d.ts +0 -1
- package/api/resources/jobs/client/Client.js +9 -7
- package/api/resources/jobs/client/requests/JobsListRequest.d.ts +4 -0
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/models/resources/embeddings/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +6 -6
- package/api/resources/runs/client/Client.js +15 -7
- package/api/resources/runs/client/requests/RunsListRequest.d.ts +9 -0
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.js +10 -10
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.d.ts +3 -0
- package/api/resources/steps/client/Client.js +7 -2
- package/api/resources/steps/index.d.ts +1 -1
- package/api/resources/steps/index.js +1 -1
- package/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/api/resources/steps/resources/index.d.ts +3 -0
- package/api/resources/steps/resources/index.js +4 -1
- package/api/resources/steps/resources/messages/client/Client.d.ts +50 -0
- package/api/resources/steps/resources/messages/client/Client.js +166 -0
- package/api/resources/steps/resources/messages/client/index.d.ts +1 -0
- package/api/resources/steps/resources/messages/client/index.js +17 -0
- package/api/resources/steps/resources/messages/client/requests/MessagesListRequest.d.ts +30 -0
- package/api/resources/steps/resources/messages/client/requests/MessagesListRequest.js +5 -0
- package/api/resources/steps/resources/messages/client/requests/index.d.ts +1 -0
- package/api/resources/steps/resources/messages/client/requests/index.js +2 -0
- package/api/resources/steps/resources/messages/index.d.ts +2 -0
- package/api/resources/steps/resources/messages/index.js +18 -0
- package/api/resources/steps/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
- package/api/resources/steps/resources/messages/types/MessagesListRequestOrder.js +10 -0
- package/api/resources/steps/resources/messages/types/MessagesListResponseItem.d.ts +5 -0
- package/api/resources/steps/resources/messages/types/MessagesListResponseItem.js +5 -0
- package/api/resources/steps/resources/messages/types/index.d.ts +2 -0
- package/api/resources/steps/resources/messages/types/index.js +18 -0
- package/api/resources/steps/resources/metrics/client/Client.js +1 -1
- package/api/resources/steps/resources/trace/client/Client.js +1 -1
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +9 -9
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +20 -20
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/Archive.d.ts +35 -0
- package/api/types/Archive.js +5 -0
- package/api/types/BatchJob.d.ts +2 -0
- package/api/types/ChildToolRule.d.ts +1 -1
- package/api/types/ConditionalToolRule.d.ts +1 -1
- package/api/types/ContinueToolRule.d.ts +1 -1
- package/api/types/InitToolRule.d.ts +1 -1
- package/api/types/Job.d.ts +2 -0
- package/api/types/MaxCountPerStepToolRule.d.ts +1 -1
- package/api/types/Memory.d.ts +3 -1
- package/api/types/MemoryAgentType.d.ts +8 -0
- package/api/types/MemoryAgentType.js +5 -0
- package/api/types/ParentToolRule.d.ts +1 -1
- package/api/types/RequiredBeforeExitToolRule.d.ts +1 -1
- package/api/types/RequiresApprovalToolRule.d.ts +1 -1
- package/api/types/Run.d.ts +2 -0
- package/api/types/Step.d.ts +1 -1
- package/api/types/TerminalToolRule.d.ts +1 -1
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +45 -40
- package/dist/api/resources/agents/client/Client.js +9 -9
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +10 -10
- package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
- package/dist/api/resources/archives/client/Client.d.ts +78 -0
- package/dist/api/resources/archives/client/Client.js +325 -0
- package/dist/api/resources/archives/client/index.d.ts +1 -0
- package/dist/api/resources/archives/client/index.js +17 -0
- package/dist/api/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
- package/dist/api/resources/archives/client/requests/ArchiveCreateRequest.js +5 -0
- package/dist/api/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +11 -0
- package/dist/api/resources/archives/client/requests/ArchiveUpdateRequest.js +5 -0
- package/dist/api/resources/archives/client/requests/ListArchivesRequest.d.ts +34 -0
- package/dist/api/resources/archives/client/requests/ListArchivesRequest.js +5 -0
- package/dist/api/resources/archives/client/requests/index.d.ts +3 -0
- package/dist/api/resources/archives/client/requests/index.js +2 -0
- package/dist/api/resources/archives/index.d.ts +2 -0
- package/dist/api/resources/archives/index.js +18 -0
- package/dist/api/resources/archives/types/ListArchivesRequestOrder.d.ts +11 -0
- package/dist/api/resources/archives/types/ListArchivesRequestOrder.js +10 -0
- package/dist/api/resources/archives/types/index.d.ts +1 -0
- package/dist/api/resources/archives/types/index.js +17 -0
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/dist/api/resources/folders/client/Client.js +8 -8
- package/dist/api/resources/folders/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
- package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/groups/client/Client.js +6 -6
- package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +7 -7
- package/dist/api/resources/identities/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/identities/resources/blocks/client/Client.js +1 -1
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -1
- package/dist/api/resources/jobs/client/Client.d.ts +0 -1
- package/dist/api/resources/jobs/client/Client.js +9 -7
- package/dist/api/resources/jobs/client/requests/JobsListRequest.d.ts +4 -0
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +6 -6
- package/dist/api/resources/runs/client/Client.js +15 -7
- package/dist/api/resources/runs/client/requests/RunsListRequest.d.ts +9 -0
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.js +10 -10
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.d.ts +3 -0
- package/dist/api/resources/steps/client/Client.js +7 -2
- package/dist/api/resources/steps/index.d.ts +1 -1
- package/dist/api/resources/steps/index.js +1 -1
- package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/dist/api/resources/steps/resources/index.d.ts +3 -0
- package/dist/api/resources/steps/resources/index.js +4 -1
- package/dist/api/resources/steps/resources/messages/client/Client.d.ts +50 -0
- package/dist/api/resources/steps/resources/messages/client/Client.js +166 -0
- package/dist/api/resources/steps/resources/messages/client/index.d.ts +1 -0
- package/dist/api/resources/steps/resources/messages/client/index.js +17 -0
- package/dist/api/resources/steps/resources/messages/client/requests/MessagesListRequest.d.ts +30 -0
- package/dist/api/resources/steps/resources/messages/client/requests/MessagesListRequest.js +5 -0
- package/dist/api/resources/steps/resources/messages/client/requests/index.d.ts +1 -0
- package/dist/api/resources/steps/resources/messages/client/requests/index.js +2 -0
- package/dist/api/resources/steps/resources/messages/index.d.ts +2 -0
- package/dist/api/resources/steps/resources/messages/index.js +18 -0
- package/dist/api/resources/steps/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
- package/dist/api/resources/steps/resources/messages/types/MessagesListRequestOrder.js +10 -0
- package/dist/api/resources/steps/resources/messages/types/MessagesListResponseItem.d.ts +5 -0
- package/dist/api/resources/steps/resources/messages/types/MessagesListResponseItem.js +5 -0
- package/dist/api/resources/steps/resources/messages/types/index.d.ts +2 -0
- package/dist/api/resources/steps/resources/messages/types/index.js +18 -0
- package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
- package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
- package/dist/api/resources/tags/client/Client.js +1 -1
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +9 -9
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +20 -20
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/Archive.d.ts +35 -0
- package/dist/api/types/Archive.js +5 -0
- package/dist/api/types/BatchJob.d.ts +2 -0
- package/dist/api/types/ChildToolRule.d.ts +1 -1
- package/dist/api/types/ConditionalToolRule.d.ts +1 -1
- package/dist/api/types/ContinueToolRule.d.ts +1 -1
- package/dist/api/types/InitToolRule.d.ts +1 -1
- package/dist/api/types/Job.d.ts +2 -0
- package/dist/api/types/MaxCountPerStepToolRule.d.ts +1 -1
- package/dist/api/types/Memory.d.ts +3 -1
- package/dist/api/types/MemoryAgentType.d.ts +8 -0
- package/dist/api/types/MemoryAgentType.js +5 -0
- package/dist/api/types/ParentToolRule.d.ts +1 -1
- package/dist/api/types/RequiredBeforeExitToolRule.d.ts +1 -1
- package/dist/api/types/RequiresApprovalToolRule.d.ts +1 -1
- package/dist/api/types/Run.d.ts +2 -0
- package/dist/api/types/Step.d.ts +1 -1
- package/dist/api/types/TerminalToolRule.d.ts +1 -1
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/resources/archives/client/index.d.ts +2 -0
- package/dist/serialization/resources/archives/client/index.js +41 -0
- package/dist/serialization/resources/archives/client/listArchives.d.ts +11 -0
- package/dist/serialization/resources/archives/client/listArchives.js +42 -0
- package/dist/serialization/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
- package/dist/serialization/resources/archives/client/requests/ArchiveCreateRequest.js +44 -0
- package/dist/serialization/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +13 -0
- package/dist/serialization/resources/archives/client/requests/ArchiveUpdateRequest.js +44 -0
- package/dist/serialization/resources/archives/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/archives/client/requests/index.js +7 -0
- package/dist/serialization/resources/archives/index.d.ts +2 -0
- package/dist/serialization/resources/archives/index.js +18 -0
- package/dist/serialization/resources/archives/types/ListArchivesRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/archives/types/ListArchivesRequestOrder.js +41 -0
- package/dist/serialization/resources/archives/types/index.d.ts +1 -0
- package/dist/serialization/resources/archives/types/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +4 -1
- package/dist/serialization/resources/steps/index.d.ts +1 -1
- package/dist/serialization/resources/steps/index.js +1 -1
- package/dist/serialization/resources/steps/resources/index.d.ts +2 -0
- package/dist/serialization/resources/steps/resources/index.js +3 -1
- package/dist/serialization/resources/steps/resources/messages/client/index.d.ts +1 -0
- package/dist/serialization/resources/steps/resources/messages/client/index.js +37 -0
- package/dist/serialization/resources/steps/resources/messages/client/list.d.ts +11 -0
- package/dist/serialization/resources/steps/resources/messages/client/list.js +42 -0
- package/dist/serialization/resources/steps/resources/messages/index.d.ts +2 -0
- package/dist/serialization/resources/steps/resources/messages/index.js +18 -0
- package/dist/serialization/resources/steps/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/steps/resources/messages/types/MessagesListRequestOrder.js +41 -0
- package/dist/serialization/resources/steps/resources/messages/types/MessagesListResponseItem.d.ts +19 -0
- package/dist/serialization/resources/steps/resources/messages/types/MessagesListResponseItem.js +60 -0
- package/dist/serialization/resources/steps/resources/messages/types/index.d.ts +2 -0
- package/dist/serialization/resources/steps/resources/messages/types/index.js +18 -0
- package/dist/serialization/types/Archive.d.ts +21 -0
- package/dist/serialization/types/Archive.js +52 -0
- package/dist/serialization/types/BatchJob.d.ts +2 -0
- package/dist/serialization/types/BatchJob.js +2 -0
- package/dist/serialization/types/Job.d.ts +2 -0
- package/dist/serialization/types/Job.js +2 -0
- package/dist/serialization/types/Memory.d.ts +2 -0
- package/dist/serialization/types/Memory.js +2 -0
- package/dist/serialization/types/MemoryAgentType.d.ts +11 -0
- package/dist/serialization/types/MemoryAgentType.js +42 -0
- package/dist/serialization/types/Run.d.ts +2 -0
- package/dist/serialization/types/Run.js +2 -0
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +274 -1
- package/serialization/resources/archives/client/index.d.ts +2 -0
- package/serialization/resources/archives/client/index.js +41 -0
- package/serialization/resources/archives/client/listArchives.d.ts +11 -0
- package/serialization/resources/archives/client/listArchives.js +42 -0
- package/serialization/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
- package/serialization/resources/archives/client/requests/ArchiveCreateRequest.js +44 -0
- package/serialization/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +13 -0
- package/serialization/resources/archives/client/requests/ArchiveUpdateRequest.js +44 -0
- package/serialization/resources/archives/client/requests/index.d.ts +2 -0
- package/serialization/resources/archives/client/requests/index.js +7 -0
- package/serialization/resources/archives/index.d.ts +2 -0
- package/serialization/resources/archives/index.js +18 -0
- package/serialization/resources/archives/types/ListArchivesRequestOrder.d.ts +10 -0
- package/serialization/resources/archives/types/ListArchivesRequestOrder.js +41 -0
- package/serialization/resources/archives/types/index.d.ts +1 -0
- package/serialization/resources/archives/types/index.js +17 -0
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +4 -1
- package/serialization/resources/steps/index.d.ts +1 -1
- package/serialization/resources/steps/index.js +1 -1
- package/serialization/resources/steps/resources/index.d.ts +2 -0
- package/serialization/resources/steps/resources/index.js +3 -1
- package/serialization/resources/steps/resources/messages/client/index.d.ts +1 -0
- package/serialization/resources/steps/resources/messages/client/index.js +37 -0
- package/serialization/resources/steps/resources/messages/client/list.d.ts +11 -0
- package/serialization/resources/steps/resources/messages/client/list.js +42 -0
- package/serialization/resources/steps/resources/messages/index.d.ts +2 -0
- package/serialization/resources/steps/resources/messages/index.js +18 -0
- package/serialization/resources/steps/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
- package/serialization/resources/steps/resources/messages/types/MessagesListRequestOrder.js +41 -0
- package/serialization/resources/steps/resources/messages/types/MessagesListResponseItem.d.ts +19 -0
- package/serialization/resources/steps/resources/messages/types/MessagesListResponseItem.js +60 -0
- package/serialization/resources/steps/resources/messages/types/index.d.ts +2 -0
- package/serialization/resources/steps/resources/messages/types/index.js +18 -0
- package/serialization/types/Archive.d.ts +21 -0
- package/serialization/types/Archive.js +52 -0
- package/serialization/types/BatchJob.d.ts +2 -0
- package/serialization/types/BatchJob.js +2 -0
- package/serialization/types/Job.d.ts +2 -0
- package/serialization/types/Job.js +2 -0
- package/serialization/types/Memory.d.ts +2 -0
- package/serialization/types/Memory.js +2 -0
- package/serialization/types/MemoryAgentType.d.ts +11 -0
- package/serialization/types/MemoryAgentType.js +42 -0
- package/serialization/types/Run.d.ts +2 -0
- package/serialization/types/Run.js +2 -0
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -108,7 +108,7 @@ class Messages {
|
|
|
108
108
|
method: "GET",
|
|
109
109
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
110
110
|
? yield core.Supplier.get(this._options.project)
|
|
111
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
111
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
112
112
|
contentType: "application/json",
|
|
113
113
|
queryParameters: _queryParams,
|
|
114
114
|
requestType: "json",
|
|
@@ -195,7 +195,7 @@ class Messages {
|
|
|
195
195
|
method: "POST",
|
|
196
196
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
197
197
|
? yield core.Supplier.get(this._options.project)
|
|
198
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
198
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
199
199
|
contentType: "application/json",
|
|
200
200
|
requestType: "json",
|
|
201
201
|
body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -276,7 +276,7 @@ class Messages {
|
|
|
276
276
|
method: "PATCH",
|
|
277
277
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
278
278
|
? yield core.Supplier.get(this._options.project)
|
|
279
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
279
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
280
280
|
contentType: "application/json",
|
|
281
281
|
requestType: "json",
|
|
282
282
|
body: serializers.agents.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -347,7 +347,7 @@ class Messages {
|
|
|
347
347
|
method: "POST",
|
|
348
348
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
349
349
|
? yield core.Supplier.get(this._options.project)
|
|
350
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
350
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
351
351
|
contentType: "application/json",
|
|
352
352
|
requestType: "json",
|
|
353
353
|
body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -438,7 +438,7 @@ class Messages {
|
|
|
438
438
|
method: "POST",
|
|
439
439
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
440
440
|
? yield core.Supplier.get(this._options.project)
|
|
441
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
441
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
442
442
|
contentType: "application/json",
|
|
443
443
|
requestType: "json",
|
|
444
444
|
body: serializers.agents.CancelAgentRunRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -517,7 +517,7 @@ class Messages {
|
|
|
517
517
|
method: "POST",
|
|
518
518
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
519
519
|
? yield core.Supplier.get(this._options.project)
|
|
520
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
520
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
521
521
|
contentType: "application/json",
|
|
522
522
|
requestType: "json",
|
|
523
523
|
body: serializers.agents.MessageSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -607,7 +607,7 @@ class Messages {
|
|
|
607
607
|
method: "POST",
|
|
608
608
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
609
609
|
? yield core.Supplier.get(this._options.project)
|
|
610
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
610
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
611
611
|
contentType: "application/json",
|
|
612
612
|
requestType: "json",
|
|
613
613
|
body: serializers.agents.LettaAsyncRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -690,7 +690,7 @@ class Messages {
|
|
|
690
690
|
method: "PATCH",
|
|
691
691
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
692
692
|
? yield core.Supplier.get(this._options.project)
|
|
693
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
693
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
694
694
|
contentType: "application/json",
|
|
695
695
|
queryParameters: _queryParams,
|
|
696
696
|
requestType: "json",
|
|
@@ -780,7 +780,7 @@ class Messages {
|
|
|
780
780
|
method: "POST",
|
|
781
781
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
782
782
|
? yield core.Supplier.get(this._options.project)
|
|
783
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
783
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
784
784
|
contentType: "application/json",
|
|
785
785
|
requestType: "json",
|
|
786
786
|
body: serializers.agents.MessagesPreviewRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -866,7 +866,7 @@ class Messages {
|
|
|
866
866
|
method: "POST",
|
|
867
867
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
868
868
|
? yield core.Supplier.get(this._options.project)
|
|
869
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
869
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
870
870
|
contentType: "application/json",
|
|
871
871
|
queryParameters: _queryParams,
|
|
872
872
|
requestType: "json",
|
|
@@ -99,7 +99,7 @@ class Passages {
|
|
|
99
99
|
method: "GET",
|
|
100
100
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
101
101
|
? yield core.Supplier.get(this._options.project)
|
|
102
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
102
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
103
103
|
contentType: "application/json",
|
|
104
104
|
queryParameters: _queryParams,
|
|
105
105
|
requestType: "json",
|
|
@@ -179,7 +179,7 @@ class Passages {
|
|
|
179
179
|
method: "POST",
|
|
180
180
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
181
181
|
? yield core.Supplier.get(this._options.project)
|
|
182
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
182
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
183
183
|
contentType: "application/json",
|
|
184
184
|
requestType: "json",
|
|
185
185
|
body: serializers.agents.CreateArchivalMemory.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -286,7 +286,7 @@ class Passages {
|
|
|
286
286
|
method: "GET",
|
|
287
287
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
288
288
|
? yield core.Supplier.get(this._options.project)
|
|
289
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
289
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
290
290
|
contentType: "application/json",
|
|
291
291
|
queryParameters: _queryParams,
|
|
292
292
|
requestType: "json",
|
|
@@ -364,7 +364,7 @@ class Passages {
|
|
|
364
364
|
method: "DELETE",
|
|
365
365
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
366
366
|
? yield core.Supplier.get(this._options.project)
|
|
367
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
367
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
368
368
|
contentType: "application/json",
|
|
369
369
|
requestType: "json",
|
|
370
370
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -428,7 +428,7 @@ class Passages {
|
|
|
428
428
|
method: "PATCH",
|
|
429
429
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
430
430
|
? yield core.Supplier.get(this._options.project)
|
|
431
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
431
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
432
432
|
contentType: "application/json",
|
|
433
433
|
requestType: "json",
|
|
434
434
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -82,7 +82,7 @@ class Sources {
|
|
|
82
82
|
method: "PATCH",
|
|
83
83
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
84
84
|
? yield core.Supplier.get(this._options.project)
|
|
85
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
85
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
requestType: "json",
|
|
88
88
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -159,7 +159,7 @@ class Sources {
|
|
|
159
159
|
method: "PATCH",
|
|
160
160
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
161
161
|
? yield core.Supplier.get(this._options.project)
|
|
162
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
162
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
163
163
|
contentType: "application/json",
|
|
164
164
|
requestType: "json",
|
|
165
165
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -235,7 +235,7 @@ class Sources {
|
|
|
235
235
|
method: "GET",
|
|
236
236
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
237
237
|
? yield core.Supplier.get(this._options.project)
|
|
238
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
238
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
239
239
|
contentType: "application/json",
|
|
240
240
|
requestType: "json",
|
|
241
241
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -84,7 +84,7 @@ class Templates {
|
|
|
84
84
|
method: "POST",
|
|
85
85
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
86
86
|
? yield core.Supplier.get(this._options.project)
|
|
87
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
87
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
88
88
|
contentType: "application/json",
|
|
89
89
|
requestType: "json",
|
|
90
90
|
body: serializers.agents.TemplatesMigrateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -150,7 +150,7 @@ class Templates {
|
|
|
150
150
|
method: "POST",
|
|
151
151
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
152
152
|
? yield core.Supplier.get(this._options.project)
|
|
153
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
153
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
154
154
|
contentType: "application/json",
|
|
155
155
|
requestType: "json",
|
|
156
156
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -206,7 +206,7 @@ class Templates {
|
|
|
206
206
|
method: "POST",
|
|
207
207
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
208
208
|
? yield core.Supplier.get(this._options.project)
|
|
209
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
209
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
210
210
|
contentType: "application/json",
|
|
211
211
|
requestType: "json",
|
|
212
212
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -81,7 +81,7 @@ class Tools {
|
|
|
81
81
|
method: "GET",
|
|
82
82
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
83
83
|
? yield core.Supplier.get(this._options.project)
|
|
84
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
84
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
87
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -158,7 +158,7 @@ class Tools {
|
|
|
158
158
|
method: "PATCH",
|
|
159
159
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
160
160
|
? yield core.Supplier.get(this._options.project)
|
|
161
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
161
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
162
162
|
contentType: "application/json",
|
|
163
163
|
requestType: "json",
|
|
164
164
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -235,7 +235,7 @@ class Tools {
|
|
|
235
235
|
method: "PATCH",
|
|
236
236
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
237
237
|
? yield core.Supplier.get(this._options.project)
|
|
238
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
238
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
239
239
|
contentType: "application/json",
|
|
240
240
|
requestType: "json",
|
|
241
241
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -318,7 +318,7 @@ class Tools {
|
|
|
318
318
|
method: "PATCH",
|
|
319
319
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
320
320
|
? yield core.Supplier.get(this._options.project)
|
|
321
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
321
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
322
322
|
contentType: "application/json",
|
|
323
323
|
queryParameters: _queryParams,
|
|
324
324
|
requestType: "json",
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as Letta from "../../../index";
|
|
7
|
+
export declare namespace Archives {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.LettaEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<string | undefined>;
|
|
13
|
+
/** Override the X-Project header */
|
|
14
|
+
project?: core.Supplier<string | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Override the X-Project header */
|
|
25
|
+
project?: string | undefined;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class Archives {
|
|
31
|
+
protected readonly _options: Archives.Options;
|
|
32
|
+
constructor(_options?: Archives.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Get a list of all archives for the current organization with optional filters and pagination.
|
|
35
|
+
*
|
|
36
|
+
* @param {Letta.ListArchivesRequest} request
|
|
37
|
+
* @param {Archives.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link Letta.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.archives.listArchives()
|
|
43
|
+
*/
|
|
44
|
+
listArchives(request?: Letta.ListArchivesRequest, requestOptions?: Archives.RequestOptions): core.HttpResponsePromise<Letta.Archive[]>;
|
|
45
|
+
private __listArchives;
|
|
46
|
+
/**
|
|
47
|
+
* Create a new archive.
|
|
48
|
+
*
|
|
49
|
+
* @param {Letta.ArchiveCreateRequest} request
|
|
50
|
+
* @param {Archives.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link Letta.UnprocessableEntityError}
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* await client.archives.createArchive({
|
|
56
|
+
* name: "name"
|
|
57
|
+
* })
|
|
58
|
+
*/
|
|
59
|
+
createArchive(request: Letta.ArchiveCreateRequest, requestOptions?: Archives.RequestOptions): core.HttpResponsePromise<Letta.Archive>;
|
|
60
|
+
private __createArchive;
|
|
61
|
+
/**
|
|
62
|
+
* Update an existing archive's name and/or description.
|
|
63
|
+
*
|
|
64
|
+
* @param {string} archiveId
|
|
65
|
+
* @param {Letta.ArchiveUpdateRequest} request
|
|
66
|
+
* @param {Archives.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link Letta.UnprocessableEntityError}
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* await client.archives.modifyArchive("archive_id")
|
|
72
|
+
*/
|
|
73
|
+
modifyArchive(archiveId: string, request?: Letta.ArchiveUpdateRequest, requestOptions?: Archives.RequestOptions): core.HttpResponsePromise<Letta.Archive>;
|
|
74
|
+
private __modifyArchive;
|
|
75
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
76
|
+
Authorization: string;
|
|
77
|
+
}>;
|
|
78
|
+
}
|