@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
|
@@ -51,39 +51,75 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
51
51
|
exports.Tags = void 0;
|
|
52
52
|
const environments = __importStar(require("../../../../environments"));
|
|
53
53
|
const core = __importStar(require("../../../../core"));
|
|
54
|
+
const Letta = __importStar(require("../../../index"));
|
|
54
55
|
const url_join_1 = __importDefault(require("url-join"));
|
|
56
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
55
57
|
const errors = __importStar(require("../../../../errors/index"));
|
|
56
58
|
class Tags {
|
|
57
59
|
constructor(_options = {}) {
|
|
58
60
|
this._options = _options;
|
|
59
61
|
}
|
|
60
62
|
/**
|
|
63
|
+
* Get a list of all tags in the database
|
|
64
|
+
*
|
|
65
|
+
* @param {Letta.TagsListRequest} request
|
|
61
66
|
* @param {Tags.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
67
|
*
|
|
68
|
+
* @throws {@link Letta.UnprocessableEntityError}
|
|
69
|
+
*
|
|
63
70
|
* @example
|
|
64
71
|
* await client.tags.list()
|
|
65
72
|
*/
|
|
66
|
-
list(
|
|
67
|
-
return __awaiter(this,
|
|
73
|
+
list() {
|
|
74
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
68
75
|
var _a, _b, _c;
|
|
76
|
+
const { after, limit, queryText } = request;
|
|
77
|
+
const _queryParams = {};
|
|
78
|
+
if (after != null) {
|
|
79
|
+
_queryParams["after"] = after;
|
|
80
|
+
}
|
|
81
|
+
if (limit != null) {
|
|
82
|
+
_queryParams["limit"] = limit.toString();
|
|
83
|
+
}
|
|
84
|
+
if (queryText != null) {
|
|
85
|
+
_queryParams["query_text"] = queryText;
|
|
86
|
+
}
|
|
69
87
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
70
|
-
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/tags"),
|
|
88
|
+
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/tags/"),
|
|
71
89
|
method: "GET",
|
|
72
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
90
|
+
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),
|
|
73
91
|
contentType: "application/json",
|
|
92
|
+
queryParameters: _queryParams,
|
|
74
93
|
requestType: "json",
|
|
75
94
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
76
95
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
77
96
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
78
97
|
});
|
|
79
98
|
if (_response.ok) {
|
|
80
|
-
return
|
|
99
|
+
return serializers.tags.list.Response.parseOrThrow(_response.body, {
|
|
100
|
+
unrecognizedObjectKeys: "passthrough",
|
|
101
|
+
allowUnrecognizedUnionMembers: true,
|
|
102
|
+
allowUnrecognizedEnumValues: true,
|
|
103
|
+
skipValidation: true,
|
|
104
|
+
breadcrumbsPrefix: ["response"],
|
|
105
|
+
});
|
|
81
106
|
}
|
|
82
107
|
if (_response.error.reason === "status-code") {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
108
|
+
switch (_response.error.statusCode) {
|
|
109
|
+
case 422:
|
|
110
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
111
|
+
unrecognizedObjectKeys: "passthrough",
|
|
112
|
+
allowUnrecognizedUnionMembers: true,
|
|
113
|
+
allowUnrecognizedEnumValues: true,
|
|
114
|
+
skipValidation: true,
|
|
115
|
+
breadcrumbsPrefix: ["response"],
|
|
116
|
+
}));
|
|
117
|
+
default:
|
|
118
|
+
throw new errors.LettaError({
|
|
119
|
+
statusCode: _response.error.statusCode,
|
|
120
|
+
body: _response.error.body,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
87
123
|
}
|
|
88
124
|
switch (_response.error.reason) {
|
|
89
125
|
case "non-json":
|
|
@@ -92,7 +128,7 @@ class Tags {
|
|
|
92
128
|
body: _response.error.rawBody,
|
|
93
129
|
});
|
|
94
130
|
case "timeout":
|
|
95
|
-
throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/tags
|
|
131
|
+
throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/tags/.");
|
|
96
132
|
case "unknown":
|
|
97
133
|
throw new errors.LettaError({
|
|
98
134
|
message: _response.error.errorMessage,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests";
|
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type TagsListRequest } from "./TagsListRequest";
|
|
@@ -32,13 +32,13 @@ export declare class Templates {
|
|
|
32
32
|
/**
|
|
33
33
|
* List all templates
|
|
34
34
|
*
|
|
35
|
-
* @param {Letta.
|
|
35
|
+
* @param {Letta.TemplatesListRequest} request
|
|
36
36
|
* @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
|
-
* await client.templates.
|
|
39
|
+
* await client.templates.list()
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
list(request?: Letta.TemplatesListRequest, requestOptions?: Templates.RequestOptions): Promise<Letta.TemplatesListResponse>;
|
|
42
42
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
43
43
|
Authorization: string;
|
|
44
44
|
}>;
|
|
@@ -66,13 +66,13 @@ class Templates {
|
|
|
66
66
|
/**
|
|
67
67
|
* List all templates
|
|
68
68
|
*
|
|
69
|
-
* @param {Letta.
|
|
69
|
+
* @param {Letta.TemplatesListRequest} request
|
|
70
70
|
* @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
71
|
*
|
|
72
72
|
* @example
|
|
73
|
-
* await client.templates.
|
|
73
|
+
* await client.templates.list()
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
list() {
|
|
76
76
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
77
77
|
var _a, _b, _c;
|
|
78
78
|
const { offset, limit, name, projectId } = request;
|
|
@@ -92,7 +92,7 @@ class Templates {
|
|
|
92
92
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
93
93
|
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/templates"),
|
|
94
94
|
method: "GET",
|
|
95
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
95
|
+
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),
|
|
96
96
|
contentType: "application/json",
|
|
97
97
|
queryParameters: _queryParams,
|
|
98
98
|
requestType: "json",
|
|
@@ -101,7 +101,7 @@ class Templates {
|
|
|
101
101
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
102
102
|
});
|
|
103
103
|
if (_response.ok) {
|
|
104
|
-
return serializers.
|
|
104
|
+
return serializers.TemplatesListResponse.parseOrThrow(_response.body, {
|
|
105
105
|
unrecognizedObjectKeys: "passthrough",
|
|
106
106
|
allowUnrecognizedUnionMembers: true,
|
|
107
107
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type TemplatesListRequest } from "./TemplatesListRequest";
|
|
@@ -75,7 +75,7 @@ class Agents {
|
|
|
75
75
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
76
76
|
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/templates/${encodeURIComponent(project)}/${encodeURIComponent(templateVersion)}/agents`),
|
|
77
77
|
method: "POST",
|
|
78
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
78
|
+
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),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
requestType: "json",
|
|
81
81
|
body: serializers.templates.AgentsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../../../index";
|
|
5
|
-
export interface
|
|
6
|
-
templates: Letta.
|
|
5
|
+
export interface TemplatesListResponse {
|
|
6
|
+
templates: Letta.TemplatesListResponseTemplatesItem[];
|
|
7
7
|
hasNextPage: boolean;
|
|
8
8
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
1
|
+
export * from "./TemplatesListResponseTemplatesItem";
|
|
2
|
+
export * from "./TemplatesListResponse";
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./TemplatesListResponseTemplatesItem"), exports);
|
|
18
|
+
__exportStar(require("./TemplatesListResponse"), exports);
|
|
@@ -76,7 +76,7 @@ class Tools {
|
|
|
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/tools/${encodeURIComponent(toolId)}`),
|
|
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,
|
|
@@ -141,7 +141,7 @@ class Tools {
|
|
|
141
141
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
142
142
|
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/tools/${encodeURIComponent(toolId)}`),
|
|
143
143
|
method: "DELETE",
|
|
144
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
144
|
+
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),
|
|
145
145
|
contentType: "application/json",
|
|
146
146
|
requestType: "json",
|
|
147
147
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -201,7 +201,7 @@ class Tools {
|
|
|
201
201
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
202
202
|
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/tools/${encodeURIComponent(toolId)}`),
|
|
203
203
|
method: "PATCH",
|
|
204
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
204
|
+
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),
|
|
205
205
|
contentType: "application/json",
|
|
206
206
|
requestType: "json",
|
|
207
207
|
body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -278,7 +278,7 @@ class Tools {
|
|
|
278
278
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
279
279
|
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/tools/"),
|
|
280
280
|
method: "GET",
|
|
281
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
281
|
+
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),
|
|
282
282
|
contentType: "application/json",
|
|
283
283
|
queryParameters: _queryParams,
|
|
284
284
|
requestType: "json",
|
|
@@ -346,7 +346,7 @@ class Tools {
|
|
|
346
346
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
347
347
|
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/tools/"),
|
|
348
348
|
method: "POST",
|
|
349
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
349
|
+
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),
|
|
350
350
|
contentType: "application/json",
|
|
351
351
|
requestType: "json",
|
|
352
352
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -414,7 +414,7 @@ class Tools {
|
|
|
414
414
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
415
415
|
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/tools/"),
|
|
416
416
|
method: "PUT",
|
|
417
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
417
|
+
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),
|
|
418
418
|
contentType: "application/json",
|
|
419
419
|
requestType: "json",
|
|
420
420
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -479,7 +479,7 @@ class Tools {
|
|
|
479
479
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
480
480
|
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/tools/add-base-tools"),
|
|
481
481
|
method: "POST",
|
|
482
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
482
|
+
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),
|
|
483
483
|
contentType: "application/json",
|
|
484
484
|
requestType: "json",
|
|
485
485
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -549,7 +549,7 @@ class Tools {
|
|
|
549
549
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
550
550
|
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/tools/run"),
|
|
551
551
|
method: "POST",
|
|
552
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
552
|
+
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),
|
|
553
553
|
contentType: "application/json",
|
|
554
554
|
requestType: "json",
|
|
555
555
|
body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -616,7 +616,7 @@ class Tools {
|
|
|
616
616
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
617
617
|
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/tools/composio/apps"),
|
|
618
618
|
method: "GET",
|
|
619
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
619
|
+
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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
620
620
|
contentType: "application/json",
|
|
621
621
|
requestType: "json",
|
|
622
622
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -681,7 +681,7 @@ class Tools {
|
|
|
681
681
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
682
682
|
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/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
|
|
683
683
|
method: "GET",
|
|
684
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
684
|
+
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),
|
|
685
685
|
contentType: "application/json",
|
|
686
686
|
requestType: "json",
|
|
687
687
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -746,7 +746,7 @@ class Tools {
|
|
|
746
746
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
747
747
|
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/tools/composio/${encodeURIComponent(composioActionName)}`),
|
|
748
748
|
method: "POST",
|
|
749
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
749
|
+
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),
|
|
750
750
|
contentType: "application/json",
|
|
751
751
|
requestType: "json",
|
|
752
752
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -812,7 +812,7 @@ class Tools {
|
|
|
812
812
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
813
813
|
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/tools/mcp/servers"),
|
|
814
814
|
method: "GET",
|
|
815
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
815
|
+
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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
816
816
|
contentType: "application/json",
|
|
817
817
|
requestType: "json",
|
|
818
818
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -881,7 +881,7 @@ class Tools {
|
|
|
881
881
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
882
882
|
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/tools/mcp/servers"),
|
|
883
883
|
method: "PUT",
|
|
884
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
884
|
+
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),
|
|
885
885
|
contentType: "application/json",
|
|
886
886
|
requestType: "json",
|
|
887
887
|
body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -947,7 +947,7 @@ class Tools {
|
|
|
947
947
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
948
948
|
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/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/tools`),
|
|
949
949
|
method: "GET",
|
|
950
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
950
|
+
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),
|
|
951
951
|
contentType: "application/json",
|
|
952
952
|
requestType: "json",
|
|
953
953
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1013,7 +1013,7 @@ class Tools {
|
|
|
1013
1013
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1014
1014
|
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/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/${encodeURIComponent(mcpToolName)}`),
|
|
1015
1015
|
method: "POST",
|
|
1016
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1016
|
+
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),
|
|
1017
1017
|
contentType: "application/json",
|
|
1018
1018
|
requestType: "json",
|
|
1019
1019
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1078,7 +1078,7 @@ class Tools {
|
|
|
1078
1078
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1079
1079
|
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/tools/mcp/servers/${encodeURIComponent(mcpServerName)}`),
|
|
1080
1080
|
method: "DELETE",
|
|
1081
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1081
|
+
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),
|
|
1082
1082
|
contentType: "application/json",
|
|
1083
1083
|
requestType: "json",
|
|
1084
1084
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -84,7 +84,7 @@ class Voice {
|
|
|
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/voice-beta/${encodeURIComponent(agentId)}/chat/completions`),
|
|
86
86
|
method: "POST",
|
|
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, "user-id": userId != null ? userId : undefined }, (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.CreateVoiceChatCompletionsRequestBody.jsonOrThrow(_body, {
|
package/dist/serialization/resources/agents/client/{exportAgentSerialized.d.ts → export.d.ts}
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
export declare const Response: core.serialization.Schema<serializers.agents.
|
|
6
|
+
export declare const Response: core.serialization.Schema<serializers.agents.export.Response.Raw, string>;
|
|
7
7
|
export declare namespace Response {
|
|
8
8
|
type Raw = string;
|
|
9
9
|
}
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.export = exports.list = void 0;
|
|
40
40
|
exports.list = __importStar(require("./list"));
|
|
41
|
-
exports.
|
|
41
|
+
exports.export = __importStar(require("./export"));
|
|
42
42
|
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../index";
|
|
5
|
+
import * as Letta from "../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../core";
|
|
7
|
+
import { ClientSideAccessTokensCreateRequestPolicyItem } from "../../types/ClientSideAccessTokensCreateRequestPolicyItem";
|
|
8
|
+
export declare const ClientSideAccessTokensCreateRequest: core.serialization.Schema<serializers.ClientSideAccessTokensCreateRequest.Raw, Letta.ClientSideAccessTokensCreateRequest>;
|
|
9
|
+
export declare namespace ClientSideAccessTokensCreateRequest {
|
|
10
|
+
interface Raw {
|
|
11
|
+
policy: ClientSideAccessTokensCreateRequestPolicyItem.Raw[];
|
|
12
|
+
hostname: string;
|
|
13
|
+
expires_at?: string | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -36,11 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.ClientSideAccessTokensCreateRequest = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../../core"));
|
|
41
|
-
const
|
|
42
|
-
exports.
|
|
43
|
-
policy: core.serialization.list(
|
|
41
|
+
const ClientSideAccessTokensCreateRequestPolicyItem_1 = require("../../types/ClientSideAccessTokensCreateRequestPolicyItem");
|
|
42
|
+
exports.ClientSideAccessTokensCreateRequest = core.serialization.object({
|
|
43
|
+
policy: core.serialization.list(ClientSideAccessTokensCreateRequestPolicyItem_1.ClientSideAccessTokensCreateRequestPolicyItem),
|
|
44
44
|
hostname: core.serialization.string(),
|
|
45
45
|
expiresAt: core.serialization.property("expires_at", core.serialization.string().optional()),
|
|
46
46
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ClientSideAccessTokensCreateRequest } from "./ClientSideAccessTokensCreateRequest";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "
|
|
3
|
+
exports.ClientSideAccessTokensCreateRequest = void 0;
|
|
4
|
+
var ClientSideAccessTokensCreateRequest_1 = require("./ClientSideAccessTokensCreateRequest");
|
|
5
|
+
Object.defineProperty(exports, "ClientSideAccessTokensCreateRequest", { enumerable: true, get: function () { return ClientSideAccessTokensCreateRequest_1.ClientSideAccessTokensCreateRequest; } });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Letta from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { ClientSideAccessTokensCreateRequestPolicyItemAccessItem } from "./ClientSideAccessTokensCreateRequestPolicyItemAccessItem";
|
|
8
|
+
export declare const ClientSideAccessTokensCreateRequestPolicyItem: core.serialization.ObjectSchema<serializers.ClientSideAccessTokensCreateRequestPolicyItem.Raw, Letta.ClientSideAccessTokensCreateRequestPolicyItem>;
|
|
9
|
+
export declare namespace ClientSideAccessTokensCreateRequestPolicyItem {
|
|
10
|
+
interface Raw {
|
|
11
|
+
type: "agent";
|
|
12
|
+
id: string;
|
|
13
|
+
access: ClientSideAccessTokensCreateRequestPolicyItemAccessItem.Raw[];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -36,11 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.ClientSideAccessTokensCreateRequestPolicyItem = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
-
const
|
|
42
|
-
exports.
|
|
41
|
+
const ClientSideAccessTokensCreateRequestPolicyItemAccessItem_1 = require("./ClientSideAccessTokensCreateRequestPolicyItemAccessItem");
|
|
42
|
+
exports.ClientSideAccessTokensCreateRequestPolicyItem = core.serialization.object({
|
|
43
43
|
type: core.serialization.stringLiteral("agent"),
|
|
44
44
|
id: core.serialization.string(),
|
|
45
|
-
access: core.serialization.list(
|
|
45
|
+
access: core.serialization.list(ClientSideAccessTokensCreateRequestPolicyItemAccessItem_1.ClientSideAccessTokensCreateRequestPolicyItemAccessItem),
|
|
46
46
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Letta from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const ClientSideAccessTokensCreateRequestPolicyItemAccessItem: core.serialization.Schema<serializers.ClientSideAccessTokensCreateRequestPolicyItemAccessItem.Raw, Letta.ClientSideAccessTokensCreateRequestPolicyItemAccessItem>;
|
|
8
|
+
export declare namespace ClientSideAccessTokensCreateRequestPolicyItemAccessItem {
|
|
9
|
+
type Raw = "read_messages" | "write_messages" | "read_agent" | "write_agent";
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ClientSideAccessTokensCreateRequestPolicyItemAccessItem = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.ClientSideAccessTokensCreateRequestPolicyItemAccessItem = core.serialization.enum_(["read_messages", "write_messages", "read_agent", "write_agent"]);
|