@letta-ai/letta-client 0.1.99 → 0.1.101
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 -9
- package/Client.js +11 -21
- package/api/resources/agents/client/Client.d.ts +1 -9
- package/api/resources/agents/client/Client.js +11 -55
- 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/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 +6 -6
- package/api/resources/agents/resources/passages/client/Client.js +4 -4
- 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 +3 -3
- package/api/resources/batches/client/Client.d.ts +5 -1
- package/api/resources/batches/client/Client.js +26 -11
- package/api/resources/blocks/client/Client.js +5 -5
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.d.ts +5 -5
- package/api/resources/clientSideAccessTokens/client/Client.js +9 -9
- package/api/resources/clientSideAccessTokens/client/requests/{ClientSideAccessTokensCreateClientSideAccessTokenRequest.d.ts → ClientSideAccessTokensCreateRequest.d.ts} +2 -2
- package/api/resources/clientSideAccessTokens/client/requests/index.d.ts +1 -1
- package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.d.ts +9 -0
- package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.d.ts +10 -0
- package/{dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.js → api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.js} +2 -2
- package/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponse.d.ts → ClientSideAccessTokensCreateResponse.d.ts} +2 -2
- package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.d.ts +8 -0
- package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItem.d.ts +9 -0
- package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.d.ts +10 -0
- package/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.js → ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.js} +2 -2
- package/api/resources/clientSideAccessTokens/types/index.d.ts +6 -6
- package/api/resources/clientSideAccessTokens/types/index.js +6 -6
- package/api/resources/embeddings/client/Client.js +1 -1
- package/api/resources/groups/client/Client.js +5 -5
- 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 +6 -6
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/index.d.ts +2 -4
- package/api/resources/index.js +3 -5
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +1 -1
- package/api/resources/projects/client/Client.d.ts +3 -3
- package/api/resources/projects/client/Client.js +5 -5
- package/api/resources/projects/client/requests/{ProjectsListProjectsRequest.d.ts → ProjectsListRequest.d.ts} +1 -1
- package/api/resources/projects/client/requests/index.d.ts +1 -1
- package/{dist/api/resources/projects/types/ProjectsListProjectsResponse.d.ts → api/resources/projects/types/ProjectsListResponse.d.ts} +2 -2
- package/api/resources/projects/types/{ProjectsListProjectsResponseProjectsItem.d.ts → ProjectsListResponseProjectsItem.d.ts} +1 -1
- package/api/resources/projects/types/index.d.ts +2 -2
- package/api/resources/projects/types/index.js +2 -2
- package/api/resources/providers/client/Client.d.ts +6 -24
- package/api/resources/providers/client/Client.js +13 -107
- package/api/resources/providers/client/requests/ProviderUpdate.d.ts +0 -3
- package/api/resources/providers/client/requests/index.d.ts +0 -1
- package/api/resources/runs/client/Client.d.ts +3 -10
- package/api/resources/runs/client/Client.js +8 -51
- package/{dist/api/resources/runs/client/requests/ListRunsRequest.d.ts → api/resources/runs/client/requests/RunsListRequest.d.ts} +1 -1
- package/api/resources/runs/client/requests/index.d.ts +1 -1
- 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 +6 -6
- 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.js +3 -3
- package/api/resources/tags/client/Client.d.ts +7 -1
- package/api/resources/tags/client/Client.js +46 -10
- package/api/resources/tags/client/index.d.ts +1 -1
- package/api/resources/tags/client/index.js +15 -0
- package/{dist/api/resources/tag/client/requests/ListTagsRequest.d.ts → api/resources/tags/client/requests/TagsListRequest.d.ts} +1 -1
- package/api/resources/tags/client/requests/index.d.ts +1 -0
- package/api/resources/templates/client/Client.d.ts +3 -3
- package/api/resources/templates/client/Client.js +5 -5
- package/{dist/api/resources/templates/client/requests/TemplatesListTemplatesRequest.d.ts → api/resources/templates/client/requests/TemplatesListRequest.d.ts} +1 -1
- package/api/resources/templates/client/requests/index.d.ts +1 -1
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/{projects/types/ProjectsListProjectsResponse.d.ts → templates/types/TemplatesListResponse.d.ts} +2 -2
- package/api/resources/templates/types/{TemplatesListTemplatesResponseTemplatesItem.d.ts → TemplatesListResponseTemplatesItem.d.ts} +1 -1
- package/api/resources/templates/types/index.d.ts +2 -2
- package/api/resources/templates/types/index.js +2 -2
- package/api/resources/tools/client/Client.js +16 -16
- package/api/resources/voice/client/Client.js +1 -1
- package/dist/Client.d.ts +3 -9
- package/dist/Client.js +11 -21
- package/dist/api/resources/agents/client/Client.d.ts +1 -9
- package/dist/api/resources/agents/client/Client.js +11 -55
- 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/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 +6 -6
- package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
- 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 +3 -3
- package/dist/api/resources/batches/client/Client.d.ts +5 -1
- package/dist/api/resources/batches/client/Client.js +26 -11
- package/dist/api/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.d.ts +5 -5
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +9 -9
- package/dist/api/resources/clientSideAccessTokens/client/requests/{ClientSideAccessTokensCreateClientSideAccessTokenRequest.d.ts → ClientSideAccessTokensCreateRequest.d.ts} +2 -2
- package/dist/api/resources/clientSideAccessTokens/client/requests/index.d.ts +1 -1
- package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.d.ts +9 -0
- package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.d.ts +10 -0
- package/{api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.js → dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.js} +2 -2
- package/dist/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponse.d.ts → ClientSideAccessTokensCreateResponse.d.ts} +2 -2
- package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.d.ts +8 -0
- package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItem.d.ts +9 -0
- package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.d.ts +10 -0
- package/dist/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.js → ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.js} +2 -2
- package/dist/api/resources/clientSideAccessTokens/types/index.d.ts +6 -6
- package/dist/api/resources/clientSideAccessTokens/types/index.js +6 -6
- package/dist/api/resources/embeddings/client/Client.js +1 -1
- package/dist/api/resources/groups/client/Client.js +5 -5
- 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 +6 -6
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +2 -4
- package/dist/api/resources/index.js +3 -5
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.d.ts +3 -3
- package/dist/api/resources/projects/client/Client.js +5 -5
- package/dist/api/resources/projects/client/requests/{ProjectsListProjectsRequest.d.ts → ProjectsListRequest.d.ts} +1 -1
- package/dist/api/resources/projects/client/requests/index.d.ts +1 -1
- package/{api/resources/templates/types/TemplatesListTemplatesResponse.d.ts → dist/api/resources/projects/types/ProjectsListResponse.d.ts} +2 -2
- package/dist/api/resources/projects/types/{ProjectsListProjectsResponseProjectsItem.d.ts → ProjectsListResponseProjectsItem.d.ts} +1 -1
- package/dist/api/resources/projects/types/index.d.ts +2 -2
- package/dist/api/resources/projects/types/index.js +2 -2
- package/dist/api/resources/providers/client/Client.d.ts +6 -24
- package/dist/api/resources/providers/client/Client.js +13 -107
- package/dist/api/resources/providers/client/requests/ProviderUpdate.d.ts +0 -3
- package/dist/api/resources/providers/client/requests/index.d.ts +0 -1
- package/dist/api/resources/runs/client/Client.d.ts +3 -10
- package/dist/api/resources/runs/client/Client.js +8 -51
- package/{api/resources/runs/client/requests/ListRunsRequest.d.ts → dist/api/resources/runs/client/requests/RunsListRequest.d.ts} +1 -1
- package/dist/api/resources/runs/client/requests/index.d.ts +1 -1
- 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 +6 -6
- 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.js +3 -3
- package/dist/api/resources/tags/client/Client.d.ts +7 -1
- package/dist/api/resources/tags/client/Client.js +46 -10
- package/dist/api/resources/tags/client/index.d.ts +1 -1
- package/dist/api/resources/tags/client/index.js +15 -0
- package/{api/resources/tag/client/requests/ListTagsRequest.d.ts → dist/api/resources/tags/client/requests/TagsListRequest.d.ts} +1 -1
- package/dist/api/resources/tags/client/requests/index.d.ts +1 -0
- package/dist/api/resources/templates/client/Client.d.ts +3 -3
- package/dist/api/resources/templates/client/Client.js +5 -5
- package/{api/resources/templates/client/requests/TemplatesListTemplatesRequest.d.ts → dist/api/resources/templates/client/requests/TemplatesListRequest.d.ts} +1 -1
- package/dist/api/resources/templates/client/requests/index.d.ts +1 -1
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/templates/types/{TemplatesListTemplatesResponse.d.ts → TemplatesListResponse.d.ts} +2 -2
- package/dist/api/resources/templates/types/{TemplatesListTemplatesResponseTemplatesItem.d.ts → TemplatesListResponseTemplatesItem.d.ts} +1 -1
- package/dist/api/resources/templates/types/index.d.ts +2 -2
- package/dist/api/resources/templates/types/index.js +2 -2
- package/dist/api/resources/tools/client/Client.js +16 -16
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/serialization/resources/agents/client/{exportAgentSerialized.d.ts → export.d.ts} +1 -1
- package/dist/serialization/resources/agents/client/index.d.ts +1 -1
- package/dist/serialization/resources/agents/client/index.js +2 -2
- package/dist/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateRequest.d.ts +15 -0
- package/{serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.js → dist/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateRequest.js} +4 -4
- package/dist/serialization/resources/clientSideAccessTokens/client/requests/index.d.ts +1 -1
- package/dist/serialization/resources/clientSideAccessTokens/client/requests/index.js +3 -3
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.d.ts +15 -0
- package/{serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.js → dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.js} +4 -4
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.d.ts +10 -0
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.js +41 -0
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponse.d.ts +16 -0
- package/{serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.js → dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponse.js} +4 -4
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.d.ts +14 -0
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.js +45 -0
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItem.d.ts +15 -0
- package/dist/serialization/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.js → ClientSideAccessTokensCreateResponsePolicyDataItem.js} +4 -4
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.d.ts +10 -0
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.js +41 -0
- package/dist/serialization/resources/clientSideAccessTokens/types/index.d.ts +6 -6
- package/dist/serialization/resources/clientSideAccessTokens/types/index.js +6 -6
- package/dist/serialization/resources/index.d.ts +1 -1
- package/dist/serialization/resources/index.js +2 -2
- package/dist/serialization/resources/projects/types/ProjectsListResponse.d.ts +14 -0
- package/dist/serialization/resources/projects/types/{ProjectsListProjectsResponse.js → ProjectsListResponse.js} +4 -4
- package/{serialization/resources/projects/types/ProjectsListProjectsResponseProjectsItem.d.ts → dist/serialization/resources/projects/types/ProjectsListResponseProjectsItem.d.ts} +2 -2
- package/{serialization/resources/projects/types/ProjectsListProjectsResponseProjectsItem.js → dist/serialization/resources/projects/types/ProjectsListResponseProjectsItem.js} +2 -2
- package/dist/serialization/resources/projects/types/index.d.ts +2 -2
- package/dist/serialization/resources/projects/types/index.js +2 -2
- package/dist/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +0 -1
- package/dist/serialization/resources/providers/client/requests/ProviderUpdate.js +0 -1
- package/dist/serialization/resources/runs/client/index.d.ts +1 -1
- package/dist/serialization/resources/runs/client/index.js +2 -2
- package/{serialization/resources/runs/client/listRuns.d.ts → dist/serialization/resources/runs/client/list.d.ts} +1 -1
- package/dist/serialization/resources/tags/client/index.d.ts +1 -0
- package/{serialization/resources/tag → dist/serialization/resources/tags}/client/index.js +2 -2
- package/{serialization/resources/tag/client/listTags.d.ts → dist/serialization/resources/tags/client/list.d.ts} +1 -1
- package/dist/serialization/resources/templates/types/TemplatesListResponse.d.ts +14 -0
- package/{serialization/resources/projects/types/ProjectsListProjectsResponse.js → dist/serialization/resources/templates/types/TemplatesListResponse.js} +4 -4
- package/dist/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +13 -0
- package/dist/serialization/resources/templates/types/{TemplatesListTemplatesResponseTemplatesItem.js → TemplatesListResponseTemplatesItem.js} +2 -2
- package/dist/serialization/resources/templates/types/index.d.ts +2 -2
- package/dist/serialization/resources/templates/types/index.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +29 -300
- package/serialization/resources/agents/client/{exportAgentSerialized.d.ts → export.d.ts} +1 -1
- package/serialization/resources/agents/client/index.d.ts +1 -1
- package/serialization/resources/agents/client/index.js +2 -2
- package/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateRequest.d.ts +15 -0
- package/{dist/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.js → serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateRequest.js} +4 -4
- package/serialization/resources/clientSideAccessTokens/client/requests/index.d.ts +1 -1
- package/serialization/resources/clientSideAccessTokens/client/requests/index.js +3 -3
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.d.ts +15 -0
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.js +46 -0
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.d.ts +10 -0
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.js +41 -0
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponse.d.ts +16 -0
- package/{dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.js → serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponse.js} +4 -4
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.d.ts +14 -0
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.js +45 -0
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItem.d.ts +15 -0
- package/{dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.js → serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItem.js} +4 -4
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.d.ts +10 -0
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.js +41 -0
- package/serialization/resources/clientSideAccessTokens/types/index.d.ts +6 -6
- package/serialization/resources/clientSideAccessTokens/types/index.js +6 -6
- package/serialization/resources/index.d.ts +1 -1
- package/serialization/resources/index.js +2 -2
- package/serialization/resources/projects/types/ProjectsListResponse.d.ts +14 -0
- package/serialization/resources/projects/types/ProjectsListResponse.js +45 -0
- package/{dist/serialization/resources/projects/types/ProjectsListProjectsResponseProjectsItem.d.ts → serialization/resources/projects/types/ProjectsListResponseProjectsItem.d.ts} +2 -2
- package/{dist/serialization/resources/projects/types/ProjectsListProjectsResponseProjectsItem.js → serialization/resources/projects/types/ProjectsListResponseProjectsItem.js} +2 -2
- package/serialization/resources/projects/types/index.d.ts +2 -2
- package/serialization/resources/projects/types/index.js +2 -2
- package/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +0 -1
- package/serialization/resources/providers/client/requests/ProviderUpdate.js +0 -1
- package/serialization/resources/runs/client/index.d.ts +1 -1
- package/serialization/resources/runs/client/index.js +2 -2
- package/{dist/serialization/resources/runs/client/listRuns.d.ts → serialization/resources/runs/client/list.d.ts} +1 -1
- package/serialization/resources/tags/client/index.d.ts +1 -0
- package/{dist/serialization/resources/tag → serialization/resources/tags}/client/index.js +2 -2
- package/{dist/serialization/resources/tag/client/listTags.d.ts → serialization/resources/tags/client/list.d.ts} +1 -1
- package/serialization/resources/templates/types/TemplatesListResponse.d.ts +14 -0
- package/{dist/serialization/resources/templates/types/TemplatesListTemplatesResponse.js → serialization/resources/templates/types/TemplatesListResponse.js} +4 -4
- package/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +13 -0
- package/serialization/resources/templates/types/{TemplatesListTemplatesResponseTemplatesItem.js → TemplatesListResponseTemplatesItem.js} +2 -2
- package/serialization/resources/templates/types/index.d.ts +2 -2
- package/serialization/resources/templates/types/index.js +2 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.d.ts +0 -9
- package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.d.ts +0 -10
- package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.d.ts +0 -8
- package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.d.ts +0 -9
- package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.d.ts +0 -10
- package/api/resources/messages/client/Client.d.ts +0 -43
- package/api/resources/messages/client/Client.js +0 -128
- package/api/resources/messages/client/index.d.ts +0 -1
- package/api/resources/providers/client/requests/DeleteProviderRequest.d.ts +0 -15
- package/api/resources/tag/client/Client.d.ts +0 -44
- package/api/resources/tag/client/Client.js +0 -146
- package/api/resources/tag/client/index.d.ts +0 -1
- package/api/resources/tag/client/index.js +0 -17
- package/api/resources/tag/client/requests/index.d.ts +0 -1
- package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.d.ts +0 -9
- package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.d.ts +0 -10
- package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.d.ts +0 -8
- package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.d.ts +0 -9
- package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.d.ts +0 -10
- package/dist/api/resources/messages/client/Client.d.ts +0 -43
- package/dist/api/resources/messages/client/Client.js +0 -128
- package/dist/api/resources/messages/client/index.d.ts +0 -1
- package/dist/api/resources/messages/client/index.js +0 -2
- package/dist/api/resources/messages/index.d.ts +0 -1
- package/dist/api/resources/messages/index.js +0 -17
- package/dist/api/resources/providers/client/requests/DeleteProviderRequest.d.ts +0 -15
- package/dist/api/resources/tag/client/Client.d.ts +0 -44
- package/dist/api/resources/tag/client/Client.js +0 -146
- package/dist/api/resources/tag/client/index.d.ts +0 -1
- package/dist/api/resources/tag/client/index.js +0 -17
- package/dist/api/resources/tag/client/requests/index.d.ts +0 -1
- package/dist/api/resources/tag/client/requests/index.js +0 -2
- package/dist/api/resources/tag/index.d.ts +0 -1
- package/dist/api/resources/tag/index.js +0 -17
- package/dist/api/resources/templates/types/TemplatesListTemplatesResponse.js +0 -5
- package/dist/api/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.js +0 -5
- package/dist/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.d.ts +0 -15
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.d.ts +0 -15
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.d.ts +0 -10
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.js +0 -41
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.d.ts +0 -16
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.d.ts +0 -14
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.js +0 -45
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.d.ts +0 -15
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.d.ts +0 -10
- package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.js +0 -41
- package/dist/serialization/resources/projects/types/ProjectsListProjectsResponse.d.ts +0 -14
- package/dist/serialization/resources/tag/client/index.d.ts +0 -1
- package/dist/serialization/resources/tag/index.d.ts +0 -1
- package/dist/serialization/resources/tag/index.js +0 -17
- package/dist/serialization/resources/templates/types/TemplatesListTemplatesResponse.d.ts +0 -14
- package/dist/serialization/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.d.ts +0 -13
- package/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.d.ts +0 -15
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.d.ts +0 -15
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.d.ts +0 -10
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.js +0 -41
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.d.ts +0 -16
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.d.ts +0 -14
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.js +0 -45
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.d.ts +0 -15
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.js +0 -46
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.d.ts +0 -10
- package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.js +0 -41
- package/serialization/resources/projects/types/ProjectsListProjectsResponse.d.ts +0 -14
- package/serialization/resources/tag/client/index.d.ts +0 -1
- package/serialization/resources/tag/index.d.ts +0 -1
- package/serialization/resources/tag/index.js +0 -17
- package/serialization/resources/templates/types/TemplatesListTemplatesResponse.d.ts +0 -14
- package/serialization/resources/templates/types/TemplatesListTemplatesResponse.js +0 -45
- package/serialization/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.d.ts +0 -13
- /package/api/resources/clientSideAccessTokens/client/requests/{ClientSideAccessTokensCreateClientSideAccessTokenRequest.js → ClientSideAccessTokensCreateRequest.js} +0 -0
- /package/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.js → ClientSideAccessTokensCreateRequestPolicyItem.js} +0 -0
- /package/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponse.js → ClientSideAccessTokensCreateResponse.js} +0 -0
- /package/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.js → ClientSideAccessTokensCreateResponsePolicy.js} +0 -0
- /package/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.js → ClientSideAccessTokensCreateResponsePolicyDataItem.js} +0 -0
- /package/api/resources/projects/client/requests/{ProjectsListProjectsRequest.js → ProjectsListRequest.js} +0 -0
- /package/api/resources/projects/types/{ProjectsListProjectsResponse.js → ProjectsListResponse.js} +0 -0
- /package/api/resources/projects/types/{ProjectsListProjectsResponseProjectsItem.js → ProjectsListResponseProjectsItem.js} +0 -0
- /package/api/resources/{providers/client/requests/DeleteProviderRequest.js → runs/client/requests/RunsListRequest.js} +0 -0
- /package/api/resources/{runs/client/requests/ListRunsRequest.js → tags/client/requests/TagsListRequest.js} +0 -0
- /package/api/resources/{messages/client → tags/client/requests}/index.js +0 -0
- /package/api/resources/{tag/client/requests/ListTagsRequest.js → templates/client/requests/TemplatesListRequest.js} +0 -0
- /package/api/resources/templates/{client/requests/TemplatesListTemplatesRequest.js → types/TemplatesListResponse.js} +0 -0
- /package/api/resources/templates/types/{TemplatesListTemplatesResponse.js → TemplatesListResponseTemplatesItem.js} +0 -0
- /package/{api/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.js → dist/api/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateRequest.js} +0 -0
- /package/dist/api/resources/clientSideAccessTokens/{client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.js → types/ClientSideAccessTokensCreateRequestPolicyItem.js} +0 -0
- /package/dist/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.js → ClientSideAccessTokensCreateResponse.js} +0 -0
- /package/dist/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponse.js → ClientSideAccessTokensCreateResponsePolicy.js} +0 -0
- /package/dist/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.js → ClientSideAccessTokensCreateResponsePolicyDataItem.js} +0 -0
- /package/dist/api/resources/{clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.js → projects/client/requests/ProjectsListRequest.js} +0 -0
- /package/dist/api/resources/projects/{client/requests/ProjectsListProjectsRequest.js → types/ProjectsListResponse.js} +0 -0
- /package/dist/api/resources/projects/types/{ProjectsListProjectsResponse.js → ProjectsListResponseProjectsItem.js} +0 -0
- /package/dist/api/resources/{projects/types/ProjectsListProjectsResponseProjectsItem.js → runs/client/requests/RunsListRequest.js} +0 -0
- /package/dist/api/resources/{providers/client/requests/DeleteProviderRequest.js → tags/client/requests/TagsListRequest.js} +0 -0
- /package/{api/resources/tag → dist/api/resources/tags}/client/requests/index.js +0 -0
- /package/dist/api/resources/{runs/client/requests/ListRunsRequest.js → templates/client/requests/TemplatesListRequest.js} +0 -0
- /package/dist/api/resources/{tag/client/requests/ListTagsRequest.js → templates/types/TemplatesListResponse.js} +0 -0
- /package/dist/api/resources/templates/{client/requests/TemplatesListTemplatesRequest.js → types/TemplatesListResponseTemplatesItem.js} +0 -0
- /package/dist/serialization/resources/agents/client/{exportAgentSerialized.js → export.js} +0 -0
- /package/dist/serialization/resources/runs/client/{listRuns.js → list.js} +0 -0
- /package/dist/serialization/resources/{tag/client/listTags.js → tags/client/list.js} +0 -0
- /package/{api/resources/messages → dist/serialization/resources/tags}/index.d.ts +0 -0
- /package/{api/resources/messages → dist/serialization/resources/tags}/index.js +0 -0
- /package/serialization/resources/agents/client/{exportAgentSerialized.js → export.js} +0 -0
- /package/serialization/resources/runs/client/{listRuns.js → list.js} +0 -0
- /package/serialization/resources/{tag/client/listTags.js → tags/client/list.js} +0 -0
- /package/{api/resources/tag → serialization/resources/tags}/index.d.ts +0 -0
- /package/{api/resources/tag → serialization/resources/tags}/index.js +0 -0
|
@@ -84,7 +84,7 @@ class Providers {
|
|
|
84
84
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
85
85
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
|
|
86
86
|
method: "GET",
|
|
87
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
87
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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
|
queryParameters: _queryParams,
|
|
90
90
|
requestType: "json",
|
|
@@ -153,7 +153,7 @@ class Providers {
|
|
|
153
153
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
154
154
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
|
|
155
155
|
method: "POST",
|
|
156
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
156
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
|
|
157
157
|
contentType: "application/json",
|
|
158
158
|
requestType: "json",
|
|
159
159
|
body: serializers.ProviderCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -205,28 +205,22 @@ class Providers {
|
|
|
205
205
|
/**
|
|
206
206
|
* Delete an existing custom provider
|
|
207
207
|
*
|
|
208
|
-
* @param {
|
|
208
|
+
* @param {string} providerId
|
|
209
209
|
* @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
|
|
210
210
|
*
|
|
211
211
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
212
212
|
*
|
|
213
213
|
* @example
|
|
214
|
-
* await client.providers.
|
|
215
|
-
* providerId: "provider_id"
|
|
216
|
-
* })
|
|
214
|
+
* await client.providers.delete("provider_id")
|
|
217
215
|
*/
|
|
218
|
-
|
|
216
|
+
delete(providerId, requestOptions) {
|
|
219
217
|
return __awaiter(this, void 0, void 0, function* () {
|
|
220
218
|
var _a, _b, _c;
|
|
221
|
-
const { providerId } = request;
|
|
222
|
-
const _queryParams = {};
|
|
223
|
-
_queryParams["provider_id"] = providerId;
|
|
224
219
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
225
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud,
|
|
220
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/providers/${encodeURIComponent(providerId)}`),
|
|
226
221
|
method: "DELETE",
|
|
227
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
222
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
|
|
228
223
|
contentType: "application/json",
|
|
229
|
-
queryParameters: _queryParams,
|
|
230
224
|
requestType: "json",
|
|
231
225
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
232
226
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -259,7 +253,7 @@ class Providers {
|
|
|
259
253
|
body: _response.error.rawBody,
|
|
260
254
|
});
|
|
261
255
|
case "timeout":
|
|
262
|
-
throw new errors.LettaTimeoutError("Timeout exceeded when calling DELETE /v1/providers
|
|
256
|
+
throw new errors.LettaTimeoutError("Timeout exceeded when calling DELETE /v1/providers/{provider_id}.");
|
|
263
257
|
case "unknown":
|
|
264
258
|
throw new errors.LettaError({
|
|
265
259
|
message: _response.error.errorMessage,
|
|
@@ -270,24 +264,24 @@ class Providers {
|
|
|
270
264
|
/**
|
|
271
265
|
* Update an existing custom provider
|
|
272
266
|
*
|
|
267
|
+
* @param {string} providerId
|
|
273
268
|
* @param {Letta.ProviderUpdate} request
|
|
274
269
|
* @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
|
|
275
270
|
*
|
|
276
271
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
277
272
|
*
|
|
278
273
|
* @example
|
|
279
|
-
* await client.providers.
|
|
280
|
-
* id: "id",
|
|
274
|
+
* await client.providers.modify("provider_id", {
|
|
281
275
|
* apiKey: "api_key"
|
|
282
276
|
* })
|
|
283
277
|
*/
|
|
284
|
-
|
|
278
|
+
modify(providerId, request, requestOptions) {
|
|
285
279
|
return __awaiter(this, void 0, void 0, function* () {
|
|
286
280
|
var _a, _b, _c;
|
|
287
281
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
288
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud,
|
|
282
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/providers/${encodeURIComponent(providerId)}`),
|
|
289
283
|
method: "PATCH",
|
|
290
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
284
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
|
|
291
285
|
contentType: "application/json",
|
|
292
286
|
requestType: "json",
|
|
293
287
|
body: serializers.ProviderUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -321,94 +315,6 @@ class Providers {
|
|
|
321
315
|
});
|
|
322
316
|
}
|
|
323
317
|
}
|
|
324
|
-
switch (_response.error.reason) {
|
|
325
|
-
case "non-json":
|
|
326
|
-
throw new errors.LettaError({
|
|
327
|
-
statusCode: _response.error.statusCode,
|
|
328
|
-
body: _response.error.rawBody,
|
|
329
|
-
});
|
|
330
|
-
case "timeout":
|
|
331
|
-
throw new errors.LettaTimeoutError("Timeout exceeded when calling PATCH /v1/providers/.");
|
|
332
|
-
case "unknown":
|
|
333
|
-
throw new errors.LettaError({
|
|
334
|
-
message: _response.error.errorMessage,
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
|
-
/**
|
|
340
|
-
* @param {string} providerId
|
|
341
|
-
* @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
|
|
342
|
-
*
|
|
343
|
-
* @example
|
|
344
|
-
* await client.providers.delete("provider_id")
|
|
345
|
-
*/
|
|
346
|
-
delete(providerId, requestOptions) {
|
|
347
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
348
|
-
var _a, _b, _c;
|
|
349
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
350
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/providers/${encodeURIComponent(providerId)}`),
|
|
351
|
-
method: "DELETE",
|
|
352
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "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),
|
|
353
|
-
contentType: "application/json",
|
|
354
|
-
requestType: "json",
|
|
355
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
356
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
357
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
358
|
-
});
|
|
359
|
-
if (_response.ok) {
|
|
360
|
-
return;
|
|
361
|
-
}
|
|
362
|
-
if (_response.error.reason === "status-code") {
|
|
363
|
-
throw new errors.LettaError({
|
|
364
|
-
statusCode: _response.error.statusCode,
|
|
365
|
-
body: _response.error.body,
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
switch (_response.error.reason) {
|
|
369
|
-
case "non-json":
|
|
370
|
-
throw new errors.LettaError({
|
|
371
|
-
statusCode: _response.error.statusCode,
|
|
372
|
-
body: _response.error.rawBody,
|
|
373
|
-
});
|
|
374
|
-
case "timeout":
|
|
375
|
-
throw new errors.LettaTimeoutError("Timeout exceeded when calling DELETE /v1/providers/{provider_id}.");
|
|
376
|
-
case "unknown":
|
|
377
|
-
throw new errors.LettaError({
|
|
378
|
-
message: _response.error.errorMessage,
|
|
379
|
-
});
|
|
380
|
-
}
|
|
381
|
-
});
|
|
382
|
-
}
|
|
383
|
-
/**
|
|
384
|
-
* @param {string} providerId
|
|
385
|
-
* @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
|
|
386
|
-
*
|
|
387
|
-
* @example
|
|
388
|
-
* await client.providers.modify("provider_id")
|
|
389
|
-
*/
|
|
390
|
-
modify(providerId, requestOptions) {
|
|
391
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
392
|
-
var _a, _b, _c;
|
|
393
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
394
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/providers/${encodeURIComponent(providerId)}`),
|
|
395
|
-
method: "PATCH",
|
|
396
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "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),
|
|
397
|
-
contentType: "application/json",
|
|
398
|
-
requestType: "json",
|
|
399
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
400
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
401
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
402
|
-
});
|
|
403
|
-
if (_response.ok) {
|
|
404
|
-
return;
|
|
405
|
-
}
|
|
406
|
-
if (_response.error.reason === "status-code") {
|
|
407
|
-
throw new errors.LettaError({
|
|
408
|
-
statusCode: _response.error.statusCode,
|
|
409
|
-
body: _response.error.body,
|
|
410
|
-
});
|
|
411
|
-
}
|
|
412
318
|
switch (_response.error.reason) {
|
|
413
319
|
case "non-json":
|
|
414
320
|
throw new errors.LettaError({
|
|
@@ -38,15 +38,15 @@ export declare class Runs {
|
|
|
38
38
|
/**
|
|
39
39
|
* List all runs.
|
|
40
40
|
*
|
|
41
|
-
* @param {Letta.
|
|
41
|
+
* @param {Letta.RunsListRequest} request
|
|
42
42
|
* @param {Runs.RequestOptions} requestOptions - Request-specific configuration.
|
|
43
43
|
*
|
|
44
44
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
45
45
|
*
|
|
46
46
|
* @example
|
|
47
|
-
* await client.runs.
|
|
47
|
+
* await client.runs.list()
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
list(request?: Letta.RunsListRequest, requestOptions?: Runs.RequestOptions): Promise<Letta.Run[]>;
|
|
50
50
|
/**
|
|
51
51
|
* List all active runs.
|
|
52
52
|
*
|
|
@@ -83,13 +83,6 @@ export declare class Runs {
|
|
|
83
83
|
* await client.runs.delete("run_id")
|
|
84
84
|
*/
|
|
85
85
|
delete(runId: string, requestOptions?: Runs.RequestOptions): Promise<Letta.Run>;
|
|
86
|
-
/**
|
|
87
|
-
* @param {Runs.RequestOptions} requestOptions - Request-specific configuration.
|
|
88
|
-
*
|
|
89
|
-
* @example
|
|
90
|
-
* await client.runs.list()
|
|
91
|
-
*/
|
|
92
|
-
list(requestOptions?: Runs.RequestOptions): Promise<void>;
|
|
93
86
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
94
87
|
Authorization: string;
|
|
95
88
|
}>;
|
|
@@ -77,15 +77,15 @@ class Runs {
|
|
|
77
77
|
/**
|
|
78
78
|
* List all runs.
|
|
79
79
|
*
|
|
80
|
-
* @param {Letta.
|
|
80
|
+
* @param {Letta.RunsListRequest} request
|
|
81
81
|
* @param {Runs.RequestOptions} requestOptions - Request-specific configuration.
|
|
82
82
|
*
|
|
83
83
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
84
84
|
*
|
|
85
85
|
* @example
|
|
86
|
-
* await client.runs.
|
|
86
|
+
* await client.runs.list()
|
|
87
87
|
*/
|
|
88
|
-
|
|
88
|
+
list() {
|
|
89
89
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
90
90
|
var _a, _b, _c;
|
|
91
91
|
const { agentIds } = request;
|
|
@@ -101,7 +101,7 @@ class Runs {
|
|
|
101
101
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
102
102
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/runs/"),
|
|
103
103
|
method: "GET",
|
|
104
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
104
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
|
|
105
105
|
contentType: "application/json",
|
|
106
106
|
queryParameters: _queryParams,
|
|
107
107
|
requestType: "json",
|
|
@@ -110,7 +110,7 @@ class Runs {
|
|
|
110
110
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
111
111
|
});
|
|
112
112
|
if (_response.ok) {
|
|
113
|
-
return serializers.runs.
|
|
113
|
+
return serializers.runs.list.Response.parseOrThrow(_response.body, {
|
|
114
114
|
unrecognizedObjectKeys: "passthrough",
|
|
115
115
|
allowUnrecognizedUnionMembers: true,
|
|
116
116
|
allowUnrecognizedEnumValues: true,
|
|
@@ -177,7 +177,7 @@ class Runs {
|
|
|
177
177
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
178
178
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/runs/active"),
|
|
179
179
|
method: "GET",
|
|
180
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
180
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
|
|
181
181
|
contentType: "application/json",
|
|
182
182
|
queryParameters: _queryParams,
|
|
183
183
|
requestType: "json",
|
|
@@ -243,7 +243,7 @@ class Runs {
|
|
|
243
243
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
244
244
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/runs/${encodeURIComponent(runId)}`),
|
|
245
245
|
method: "GET",
|
|
246
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
246
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
|
|
247
247
|
contentType: "application/json",
|
|
248
248
|
requestType: "json",
|
|
249
249
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -308,7 +308,7 @@ class Runs {
|
|
|
308
308
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
309
309
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/runs/${encodeURIComponent(runId)}`),
|
|
310
310
|
method: "DELETE",
|
|
311
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
311
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
|
|
312
312
|
contentType: "application/json",
|
|
313
313
|
requestType: "json",
|
|
314
314
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -356,49 +356,6 @@ class Runs {
|
|
|
356
356
|
}
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
|
-
/**
|
|
360
|
-
* @param {Runs.RequestOptions} requestOptions - Request-specific configuration.
|
|
361
|
-
*
|
|
362
|
-
* @example
|
|
363
|
-
* await client.runs.list()
|
|
364
|
-
*/
|
|
365
|
-
list(requestOptions) {
|
|
366
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
367
|
-
var _a, _b, _c;
|
|
368
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
369
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/runs"),
|
|
370
|
-
method: "GET",
|
|
371
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "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),
|
|
372
|
-
contentType: "application/json",
|
|
373
|
-
requestType: "json",
|
|
374
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
375
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
376
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
377
|
-
});
|
|
378
|
-
if (_response.ok) {
|
|
379
|
-
return;
|
|
380
|
-
}
|
|
381
|
-
if (_response.error.reason === "status-code") {
|
|
382
|
-
throw new errors.LettaError({
|
|
383
|
-
statusCode: _response.error.statusCode,
|
|
384
|
-
body: _response.error.body,
|
|
385
|
-
});
|
|
386
|
-
}
|
|
387
|
-
switch (_response.error.reason) {
|
|
388
|
-
case "non-json":
|
|
389
|
-
throw new errors.LettaError({
|
|
390
|
-
statusCode: _response.error.statusCode,
|
|
391
|
-
body: _response.error.rawBody,
|
|
392
|
-
});
|
|
393
|
-
case "timeout":
|
|
394
|
-
throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/runs.");
|
|
395
|
-
case "unknown":
|
|
396
|
-
throw new errors.LettaError({
|
|
397
|
-
message: _response.error.errorMessage,
|
|
398
|
-
});
|
|
399
|
-
}
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
359
|
_getCustomAuthorizationHeaders() {
|
|
403
360
|
return __awaiter(this, void 0, void 0, function* () {
|
|
404
361
|
const tokenValue = yield core.Supplier.get(this._options.token);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type RunsListRequest } from "./RunsListRequest";
|
|
2
2
|
export { type RunsListActiveRequest } from "./RunsListActiveRequest";
|
|
@@ -107,7 +107,7 @@ class Messages {
|
|
|
107
107
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
108
108
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/runs/${encodeURIComponent(runId)}/messages`),
|
|
109
109
|
method: "GET",
|
|
110
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
110
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
|
|
111
111
|
contentType: "application/json",
|
|
112
112
|
queryParameters: _queryParams,
|
|
113
113
|
requestType: "json",
|
|
@@ -101,7 +101,7 @@ class Steps {
|
|
|
101
101
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
102
102
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/runs/${encodeURIComponent(runId)}/steps`),
|
|
103
103
|
method: "GET",
|
|
104
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
104
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
|
|
105
105
|
contentType: "application/json",
|
|
106
106
|
queryParameters: _queryParams,
|
|
107
107
|
requestType: "json",
|
|
@@ -76,7 +76,7 @@ class Usage {
|
|
|
76
76
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
77
77
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/runs/${encodeURIComponent(runId)}/usage`),
|
|
78
78
|
method: "GET",
|
|
79
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
79
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
|
|
80
80
|
contentType: "application/json",
|
|
81
81
|
requestType: "json",
|
|
82
82
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -86,7 +86,7 @@ class Sources {
|
|
|
86
86
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
87
87
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
|
|
88
88
|
method: "GET",
|
|
89
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
89
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
|
|
90
90
|
contentType: "application/json",
|
|
91
91
|
requestType: "json",
|
|
92
92
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -151,7 +151,7 @@ class Sources {
|
|
|
151
151
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
152
152
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
|
|
153
153
|
method: "DELETE",
|
|
154
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
154
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
|
|
155
155
|
contentType: "application/json",
|
|
156
156
|
requestType: "json",
|
|
157
157
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -211,7 +211,7 @@ class Sources {
|
|
|
211
211
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
212
212
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
|
|
213
213
|
method: "PATCH",
|
|
214
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
214
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
|
|
215
215
|
contentType: "application/json",
|
|
216
216
|
requestType: "json",
|
|
217
217
|
body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -277,7 +277,7 @@ class Sources {
|
|
|
277
277
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
278
278
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/name/${encodeURIComponent(sourceName)}`),
|
|
279
279
|
method: "GET",
|
|
280
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
280
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
|
|
281
281
|
contentType: "application/json",
|
|
282
282
|
requestType: "json",
|
|
283
283
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -341,7 +341,7 @@ class Sources {
|
|
|
341
341
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
342
342
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
|
|
343
343
|
method: "GET",
|
|
344
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
344
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
|
|
345
345
|
contentType: "application/json",
|
|
346
346
|
requestType: "json",
|
|
347
347
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -408,7 +408,7 @@ class Sources {
|
|
|
408
408
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
409
409
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
|
|
410
410
|
method: "POST",
|
|
411
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
411
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
|
|
412
412
|
contentType: "application/json",
|
|
413
413
|
requestType: "json",
|
|
414
414
|
body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -80,7 +80,7 @@ class Files {
|
|
|
80
80
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
81
81
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/upload`),
|
|
82
82
|
method: "POST",
|
|
83
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
83
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
84
84
|
requestType: "file",
|
|
85
85
|
duplex: _maybeEncodedRequest.duplex,
|
|
86
86
|
body: _maybeEncodedRequest.body,
|
|
@@ -155,7 +155,7 @@ class Files {
|
|
|
155
155
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
156
156
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/files`),
|
|
157
157
|
method: "GET",
|
|
158
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
158
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
|
|
159
159
|
contentType: "application/json",
|
|
160
160
|
queryParameters: _queryParams,
|
|
161
161
|
requestType: "json",
|
|
@@ -222,7 +222,7 @@ class Files {
|
|
|
222
222
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
223
223
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/${encodeURIComponent(fileId)}`),
|
|
224
224
|
method: "DELETE",
|
|
225
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
225
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
|
|
226
226
|
contentType: "application/json",
|
|
227
227
|
requestType: "json",
|
|
228
228
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -76,7 +76,7 @@ class Passages {
|
|
|
76
76
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
77
77
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/passages`),
|
|
78
78
|
method: "GET",
|
|
79
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
79
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
|
|
80
80
|
contentType: "application/json",
|
|
81
81
|
requestType: "json",
|
|
82
82
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -103,7 +103,7 @@ class Steps {
|
|
|
103
103
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
104
104
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/steps"),
|
|
105
105
|
method: "GET",
|
|
106
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
106
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
|
|
107
107
|
contentType: "application/json",
|
|
108
108
|
queryParameters: _queryParams,
|
|
109
109
|
requestType: "json",
|
|
@@ -169,7 +169,7 @@ class Steps {
|
|
|
169
169
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
170
170
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/steps/${encodeURIComponent(stepId)}`),
|
|
171
171
|
method: "GET",
|
|
172
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
172
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
|
|
173
173
|
contentType: "application/json",
|
|
174
174
|
requestType: "json",
|
|
175
175
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -229,7 +229,7 @@ class Steps {
|
|
|
229
229
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
230
230
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/steps/"),
|
|
231
231
|
method: "GET",
|
|
232
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
232
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
|
|
233
233
|
contentType: "application/json",
|
|
234
234
|
requestType: "json",
|
|
235
235
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
+
import * as Letta from "../../../index";
|
|
6
7
|
export declare namespace Tags {
|
|
7
8
|
interface Options {
|
|
8
9
|
environment?: core.Supplier<environments.LettaEnvironment | string>;
|
|
@@ -26,12 +27,17 @@ export declare class Tags {
|
|
|
26
27
|
protected readonly _options: Tags.Options;
|
|
27
28
|
constructor(_options?: Tags.Options);
|
|
28
29
|
/**
|
|
30
|
+
* Get a list of all tags in the database
|
|
31
|
+
*
|
|
32
|
+
* @param {Letta.TagsListRequest} request
|
|
29
33
|
* @param {Tags.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
34
|
*
|
|
35
|
+
* @throws {@link Letta.UnprocessableEntityError}
|
|
36
|
+
*
|
|
31
37
|
* @example
|
|
32
38
|
* await client.tags.list()
|
|
33
39
|
*/
|
|
34
|
-
list(requestOptions?: Tags.RequestOptions): Promise<
|
|
40
|
+
list(request?: Letta.TagsListRequest, requestOptions?: Tags.RequestOptions): Promise<string[]>;
|
|
35
41
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
36
42
|
Authorization: string;
|
|
37
43
|
}>;
|