telnyx 7.23.0 → 7.25.0
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/CHANGELOG.md +14 -0
- package/client.d.mts +27 -12
- package/client.d.mts.map +1 -1
- package/client.d.ts +27 -12
- package/client.d.ts.map +1 -1
- package/client.js +15 -0
- package/client.js.map +1 -1
- package/client.mjs +15 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +11 -6
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +11 -6
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js +4 -0
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs +4 -0
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +469 -35
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +469 -35
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js +79 -2
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs +79 -2
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/assistants/deleted.d.mts +60 -0
- package/resources/ai/assistants/deleted.d.mts.map +1 -0
- package/resources/ai/assistants/deleted.d.ts +60 -0
- package/resources/ai/assistants/deleted.d.ts.map +1 -0
- package/resources/ai/assistants/deleted.js +49 -0
- package/resources/ai/assistants/deleted.js.map +1 -0
- package/resources/ai/assistants/deleted.mjs +45 -0
- package/resources/ai/assistants/deleted.mjs.map +1 -0
- package/resources/ai/assistants/index.d.mts +2 -1
- package/resources/ai/assistants/index.d.mts.map +1 -1
- package/resources/ai/assistants/index.d.ts +2 -1
- package/resources/ai/assistants/index.d.ts.map +1 -1
- package/resources/ai/assistants/index.js +3 -1
- package/resources/ai/assistants/index.js.map +1 -1
- package/resources/ai/assistants/index.mjs +1 -0
- package/resources/ai/assistants/index.mjs.map +1 -1
- package/resources/ai/assistants/versions.d.mts +38 -2
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +38 -2
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/chat.d.mts +7 -2
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +7 -2
- package/resources/ai/chat.d.ts.map +1 -1
- package/resources/ai/collections/collections.d.mts +3 -3
- package/resources/ai/collections/collections.d.mts.map +1 -1
- package/resources/ai/collections/collections.d.ts +3 -3
- package/resources/ai/collections/collections.d.ts.map +1 -1
- package/resources/ai/collections/collections.js.map +1 -1
- package/resources/ai/collections/collections.mjs.map +1 -1
- package/resources/ai/collections/index.d.mts +1 -1
- package/resources/ai/collections/index.d.mts.map +1 -1
- package/resources/ai/collections/index.d.ts +1 -1
- package/resources/ai/collections/index.d.ts.map +1 -1
- package/resources/ai/collections/index.js.map +1 -1
- package/resources/ai/collections/index.mjs.map +1 -1
- package/resources/ai/collections/sources.d.mts +32 -5
- package/resources/ai/collections/sources.d.mts.map +1 -1
- package/resources/ai/collections/sources.d.ts +32 -5
- package/resources/ai/collections/sources.d.ts.map +1 -1
- package/resources/ai/collections/sources.js.map +1 -1
- package/resources/ai/collections/sources.mjs.map +1 -1
- package/resources/ai/embeddings/embeddings.d.mts +1 -1
- package/resources/ai/embeddings/embeddings.d.ts +1 -1
- package/resources/ai/embeddings/embeddings.js +1 -1
- package/resources/ai/embeddings/embeddings.mjs +1 -1
- package/resources/ai/index.d.mts +3 -2
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +3 -2
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js +9 -7
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs +1 -0
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/memory/index.d.mts +3 -0
- package/resources/ai/memory/index.d.mts.map +1 -0
- package/resources/ai/memory/index.d.ts +3 -0
- package/resources/ai/memory/index.d.ts.map +1 -0
- package/resources/ai/memory/index.js +9 -0
- package/resources/ai/memory/index.js.map +1 -0
- package/resources/ai/memory/index.mjs +4 -0
- package/resources/ai/memory/index.mjs.map +1 -0
- package/resources/ai/memory/memory.d.mts +10 -0
- package/resources/ai/memory/memory.d.mts.map +1 -0
- package/resources/ai/memory/memory.d.ts +10 -0
- package/resources/ai/memory/memory.d.ts.map +1 -0
- package/resources/ai/memory/memory.js +17 -0
- package/resources/ai/memory/memory.js.map +1 -0
- package/resources/ai/memory/memory.mjs +12 -0
- package/resources/ai/memory/memory.mjs.map +1 -0
- package/resources/ai/memory/namespaces/index.d.mts +4 -0
- package/resources/ai/memory/namespaces/index.d.mts.map +1 -0
- package/resources/ai/memory/namespaces/index.d.ts +4 -0
- package/resources/ai/memory/namespaces/index.d.ts.map +1 -0
- package/resources/ai/memory/namespaces/index.js +11 -0
- package/resources/ai/memory/namespaces/index.js.map +1 -0
- package/resources/ai/memory/namespaces/index.mjs +5 -0
- package/resources/ai/memory/namespaces/index.mjs.map +1 -0
- package/resources/ai/memory/namespaces/namespaces.d.mts +110 -0
- package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -0
- package/resources/ai/memory/namespaces/namespaces.d.ts +110 -0
- package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -0
- package/resources/ai/memory/namespaces/namespaces.js +81 -0
- package/resources/ai/memory/namespaces/namespaces.js.map +1 -0
- package/resources/ai/memory/namespaces/namespaces.mjs +76 -0
- package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -0
- package/resources/ai/memory/namespaces/profiles/index.d.mts +4 -0
- package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -0
- package/resources/ai/memory/namespaces/profiles/index.d.ts +4 -0
- package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -0
- package/resources/ai/memory/namespaces/profiles/index.js +11 -0
- package/resources/ai/memory/namespaces/profiles/index.js.map +1 -0
- package/resources/ai/memory/namespaces/profiles/index.mjs +5 -0
- package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -0
- package/resources/ai/memory/namespaces/profiles/memories.d.mts +118 -0
- package/resources/ai/memory/namespaces/profiles/memories.d.mts.map +1 -0
- package/resources/ai/memory/namespaces/profiles/memories.d.ts +118 -0
- package/resources/ai/memory/namespaces/profiles/memories.d.ts.map +1 -0
- package/resources/ai/memory/namespaces/profiles/memories.js +63 -0
- package/resources/ai/memory/namespaces/profiles/memories.js.map +1 -0
- package/resources/ai/memory/namespaces/profiles/memories.mjs +59 -0
- package/resources/ai/memory/namespaces/profiles/memories.mjs.map +1 -0
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts +324 -0
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -0
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts +324 -0
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -0
- package/resources/ai/memory/namespaces/profiles/profiles.js +161 -0
- package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -0
- package/resources/ai/memory/namespaces/profiles/profiles.mjs +156 -0
- package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -0
- package/resources/ai/memory/namespaces/profiles/sources.d.mts +163 -0
- package/resources/ai/memory/namespaces/profiles/sources.d.mts.map +1 -0
- package/resources/ai/memory/namespaces/profiles/sources.d.ts +163 -0
- package/resources/ai/memory/namespaces/profiles/sources.d.ts.map +1 -0
- package/resources/ai/memory/namespaces/profiles/sources.js +80 -0
- package/resources/ai/memory/namespaces/profiles/sources.js.map +1 -0
- package/resources/ai/memory/namespaces/profiles/sources.mjs +76 -0
- package/resources/ai/memory/namespaces/profiles/sources.mjs.map +1 -0
- package/resources/ai/memory/namespaces/profiles.d.mts +2 -0
- package/resources/ai/memory/namespaces/profiles.d.mts.map +1 -0
- package/resources/ai/memory/namespaces/profiles.d.ts +2 -0
- package/resources/ai/memory/namespaces/profiles.d.ts.map +1 -0
- package/resources/ai/memory/namespaces/profiles.js +6 -0
- package/resources/ai/memory/namespaces/profiles.js.map +1 -0
- package/resources/ai/memory/namespaces/profiles.mjs +3 -0
- package/resources/ai/memory/namespaces/profiles.mjs.map +1 -0
- package/resources/ai/memory/namespaces/settings.d.mts +108 -0
- package/resources/ai/memory/namespaces/settings.d.mts.map +1 -0
- package/resources/ai/memory/namespaces/settings.d.ts +108 -0
- package/resources/ai/memory/namespaces/settings.d.ts.map +1 -0
- package/resources/ai/memory/namespaces/settings.js +54 -0
- package/resources/ai/memory/namespaces/settings.js.map +1 -0
- package/resources/ai/memory/namespaces/settings.mjs +50 -0
- package/resources/ai/memory/namespaces/settings.mjs.map +1 -0
- package/resources/ai/memory/namespaces.d.mts +2 -0
- package/resources/ai/memory/namespaces.d.mts.map +1 -0
- package/resources/ai/memory/namespaces.d.ts +2 -0
- package/resources/ai/memory/namespaces.d.ts.map +1 -0
- package/resources/ai/memory/namespaces.js +6 -0
- package/resources/ai/memory/namespaces.js.map +1 -0
- package/resources/ai/memory/namespaces.mjs +3 -0
- package/resources/ai/memory/namespaces.mjs.map +1 -0
- package/resources/ai/memory.d.mts +2 -0
- package/resources/ai/memory.d.mts.map +1 -0
- package/resources/ai/memory.d.ts +2 -0
- package/resources/ai/memory.d.ts.map +1 -0
- package/resources/ai/memory.js +6 -0
- package/resources/ai/memory.js.map +1 -0
- package/resources/ai/memory.mjs +3 -0
- package/resources/ai/memory.mjs.map +1 -0
- package/resources/ai/openai/chat.d.mts +7 -2
- package/resources/ai/openai/chat.d.mts.map +1 -1
- package/resources/ai/openai/chat.d.ts +7 -2
- package/resources/ai/openai/chat.d.ts.map +1 -1
- package/resources/ai/tools.d.mts +3 -4
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +3 -4
- package/resources/ai/tools.d.ts.map +1 -1
- package/resources/ai/tools.js +5 -2
- package/resources/ai/tools.js.map +1 -1
- package/resources/ai/tools.mjs +5 -2
- package/resources/ai/tools.mjs.map +1 -1
- package/resources/ai/typesafe/v1.d.mts +25 -14
- package/resources/ai/typesafe/v1.d.mts.map +1 -1
- package/resources/ai/typesafe/v1.d.ts +25 -14
- package/resources/ai/typesafe/v1.d.ts.map +1 -1
- package/resources/ai/typesafe/v1.js +15 -10
- package/resources/ai/typesafe/v1.js.map +1 -1
- package/resources/ai/typesafe/v1.mjs +15 -10
- package/resources/ai/typesafe/v1.mjs.map +1 -1
- package/resources/calls/actions.d.mts +119 -22
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +119 -22
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/actions.js +31 -0
- package/resources/calls/actions.js.map +1 -1
- package/resources/calls/actions.mjs +31 -0
- package/resources/calls/actions.mjs.map +1 -1
- package/resources/calls/calls.d.mts +58 -15
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +58 -15
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js +3 -0
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs +3 -0
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/calls/index.d.mts +1 -1
- package/resources/calls/index.d.mts.map +1 -1
- package/resources/calls/index.d.ts +1 -1
- package/resources/calls/index.d.ts.map +1 -1
- package/resources/calls/index.js.map +1 -1
- package/resources/calls/index.mjs.map +1 -1
- package/resources/conferences/actions.d.mts +7 -1
- package/resources/conferences/actions.d.mts.map +1 -1
- package/resources/conferences/actions.d.ts +7 -1
- package/resources/conferences/actions.d.ts.map +1 -1
- package/resources/dir/dir.d.mts +220 -28
- package/resources/dir/dir.d.mts.map +1 -1
- package/resources/dir/dir.d.ts +220 -28
- package/resources/dir/dir.d.ts.map +1 -1
- package/resources/dir/dir.js +77 -13
- package/resources/dir/dir.js.map +1 -1
- package/resources/dir/dir.mjs +77 -13
- package/resources/dir/dir.mjs.map +1 -1
- package/resources/dir/index.d.mts +1 -1
- package/resources/dir/index.d.mts.map +1 -1
- package/resources/dir/index.d.ts +1 -1
- package/resources/dir/index.d.ts.map +1 -1
- package/resources/dir/index.js.map +1 -1
- package/resources/dir/index.mjs.map +1 -1
- package/resources/dir/phone-numbers.d.mts +8 -4
- package/resources/dir/phone-numbers.d.mts.map +1 -1
- package/resources/dir/phone-numbers.d.ts +8 -4
- package/resources/dir/phone-numbers.d.ts.map +1 -1
- package/resources/dir/phone-numbers.js +4 -4
- package/resources/dir/phone-numbers.mjs +4 -4
- package/resources/dir/references.d.mts +9 -6
- package/resources/dir/references.d.mts.map +1 -1
- package/resources/dir/references.d.ts +9 -6
- package/resources/dir/references.d.ts.map +1 -1
- package/resources/email-blocks/email-blocks.d.mts +12 -4
- package/resources/email-blocks/email-blocks.d.mts.map +1 -1
- package/resources/email-blocks/email-blocks.d.ts +12 -4
- package/resources/email-blocks/email-blocks.d.ts.map +1 -1
- package/resources/email-blocks/email-blocks.js +5 -3
- package/resources/email-blocks/email-blocks.js.map +1 -1
- package/resources/email-blocks/email-blocks.mjs +5 -3
- package/resources/email-blocks/email-blocks.mjs.map +1 -1
- package/resources/email-blocks/imports.d.mts +20 -4
- package/resources/email-blocks/imports.d.mts.map +1 -1
- package/resources/email-blocks/imports.d.ts +20 -4
- package/resources/email-blocks/imports.d.ts.map +1 -1
- package/resources/email-blocks/imports.js +17 -3
- package/resources/email-blocks/imports.js.map +1 -1
- package/resources/email-blocks/imports.mjs +17 -3
- package/resources/email-blocks/imports.mjs.map +1 -1
- package/resources/email-domains/email-domains.d.mts +98 -1
- package/resources/email-domains/email-domains.d.mts.map +1 -1
- package/resources/email-domains/email-domains.d.ts +98 -1
- package/resources/email-domains/email-domains.d.ts.map +1 -1
- package/resources/email-domains/email-domains.js +21 -0
- package/resources/email-domains/email-domains.js.map +1 -1
- package/resources/email-domains/email-domains.mjs +21 -0
- package/resources/email-domains/email-domains.mjs.map +1 -1
- package/resources/email-domains/index.d.mts +1 -1
- package/resources/email-domains/index.d.mts.map +1 -1
- package/resources/email-domains/index.d.ts +1 -1
- package/resources/email-domains/index.d.ts.map +1 -1
- package/resources/email-domains/index.js.map +1 -1
- package/resources/email-domains/index.mjs.map +1 -1
- package/resources/email-domains/webhooks.d.mts +6 -4
- package/resources/email-domains/webhooks.d.mts.map +1 -1
- package/resources/email-domains/webhooks.d.ts +6 -4
- package/resources/email-domains/webhooks.d.ts.map +1 -1
- package/resources/email-events.d.mts +162 -28
- package/resources/email-events.d.mts.map +1 -1
- package/resources/email-events.d.ts +162 -28
- package/resources/email-events.d.ts.map +1 -1
- package/resources/email-events.js +15 -6
- package/resources/email-events.js.map +1 -1
- package/resources/email-events.mjs +15 -6
- package/resources/email-events.mjs.map +1 -1
- package/resources/email-inboxes/drafts.d.mts +31 -1
- package/resources/email-inboxes/drafts.d.mts.map +1 -1
- package/resources/email-inboxes/drafts.d.ts +31 -1
- package/resources/email-inboxes/drafts.d.ts.map +1 -1
- package/resources/email-inboxes/drafts.js.map +1 -1
- package/resources/email-inboxes/drafts.mjs.map +1 -1
- package/resources/email-messages/email-messages.d.mts +174 -43
- package/resources/email-messages/email-messages.d.mts.map +1 -1
- package/resources/email-messages/email-messages.d.ts +174 -43
- package/resources/email-messages/email-messages.d.ts.map +1 -1
- package/resources/email-messages/email-messages.js +39 -7
- package/resources/email-messages/email-messages.js.map +1 -1
- package/resources/email-messages/email-messages.mjs +39 -7
- package/resources/email-messages/email-messages.mjs.map +1 -1
- package/resources/email-messages/index.d.mts +1 -1
- package/resources/email-messages/index.d.mts.map +1 -1
- package/resources/email-messages/index.d.ts +1 -1
- package/resources/email-messages/index.d.ts.map +1 -1
- package/resources/email-messages/index.js.map +1 -1
- package/resources/email-messages/index.mjs.map +1 -1
- package/resources/email-messages/recipients.d.mts +2 -2
- package/resources/email-messages/recipients.d.mts.map +1 -1
- package/resources/email-messages/recipients.d.ts +2 -2
- package/resources/email-messages/recipients.d.ts.map +1 -1
- package/resources/email-templates.d.mts +170 -0
- package/resources/email-templates.d.mts.map +1 -1
- package/resources/email-templates.d.ts +170 -0
- package/resources/email-templates.d.ts.map +1 -1
- package/resources/email-templates.js +6 -0
- package/resources/email-templates.js.map +1 -1
- package/resources/email-templates.mjs +6 -0
- package/resources/email-templates.mjs.map +1 -1
- package/resources/enterprises/dir.d.mts +17 -1
- package/resources/enterprises/dir.d.mts.map +1 -1
- package/resources/enterprises/dir.d.ts +17 -1
- package/resources/enterprises/dir.d.ts.map +1 -1
- package/resources/enterprises/enterprises.d.mts +237 -23
- package/resources/enterprises/enterprises.d.mts.map +1 -1
- package/resources/enterprises/enterprises.d.ts +237 -23
- package/resources/enterprises/enterprises.d.ts.map +1 -1
- package/resources/enterprises/enterprises.js +26 -4
- package/resources/enterprises/enterprises.js.map +1 -1
- package/resources/enterprises/enterprises.mjs +26 -4
- package/resources/enterprises/enterprises.mjs.map +1 -1
- package/resources/enterprises/index.d.mts +1 -0
- package/resources/enterprises/index.d.mts.map +1 -1
- package/resources/enterprises/index.d.ts +1 -0
- package/resources/enterprises/index.d.ts.map +1 -1
- package/resources/enterprises/index.js +3 -1
- package/resources/enterprises/index.js.map +1 -1
- package/resources/enterprises/index.mjs +1 -0
- package/resources/enterprises/index.mjs.map +1 -1
- package/resources/enterprises/reputation/loa.d.mts +61 -1
- package/resources/enterprises/reputation/loa.d.mts.map +1 -1
- package/resources/enterprises/reputation/loa.d.ts +61 -1
- package/resources/enterprises/reputation/loa.d.ts.map +1 -1
- package/resources/enterprises/verify-email.d.mts +91 -0
- package/resources/enterprises/verify-email.d.mts.map +1 -0
- package/resources/enterprises/verify-email.d.ts +91 -0
- package/resources/enterprises/verify-email.d.ts.map +1 -0
- package/resources/enterprises/verify-email.js +55 -0
- package/resources/enterprises/verify-email.js.map +1 -0
- package/resources/enterprises/verify-email.mjs +51 -0
- package/resources/enterprises/verify-email.mjs.map +1 -0
- package/resources/index.d.mts +8 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/infringement-claims.d.mts +4 -0
- package/resources/infringement-claims.d.mts.map +1 -1
- package/resources/infringement-claims.d.ts +4 -0
- package/resources/infringement-claims.d.ts.map +1 -1
- package/resources/llm-token-gateway/index.d.mts +3 -0
- package/resources/llm-token-gateway/index.d.mts.map +1 -0
- package/resources/llm-token-gateway/index.d.ts +3 -0
- package/resources/llm-token-gateway/index.d.ts.map +1 -0
- package/resources/llm-token-gateway/index.js +9 -0
- package/resources/llm-token-gateway/index.js.map +1 -0
- package/resources/llm-token-gateway/index.mjs +4 -0
- package/resources/llm-token-gateway/index.mjs.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.mts +10 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.mts.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.ts +10 -0
- package/resources/llm-token-gateway/llm-token-gateway.d.ts.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.js +17 -0
- package/resources/llm-token-gateway/llm-token-gateway.js.map +1 -0
- package/resources/llm-token-gateway/llm-token-gateway.mjs +12 -0
- package/resources/llm-token-gateway/llm-token-gateway.mjs.map +1 -0
- package/resources/llm-token-gateway/usage.d.mts +260 -0
- package/resources/llm-token-gateway/usage.d.mts.map +1 -0
- package/resources/llm-token-gateway/usage.d.ts +260 -0
- package/resources/llm-token-gateway/usage.d.ts.map +1 -0
- package/resources/llm-token-gateway/usage.js +31 -0
- package/resources/llm-token-gateway/usage.js.map +1 -0
- package/resources/llm-token-gateway/usage.mjs +27 -0
- package/resources/llm-token-gateway/usage.mjs.map +1 -0
- package/resources/llm-token-gateway.d.mts +2 -0
- package/resources/llm-token-gateway.d.mts.map +1 -0
- package/resources/llm-token-gateway.d.ts +2 -0
- package/resources/llm-token-gateway.d.ts.map +1 -0
- package/resources/llm-token-gateway.js +6 -0
- package/resources/llm-token-gateway.js.map +1 -0
- package/resources/llm-token-gateway.mjs +3 -0
- package/resources/llm-token-gateway.mjs.map +1 -0
- package/resources/meeting-sessions/actions.d.mts +7 -1
- package/resources/meeting-sessions/actions.d.mts.map +1 -1
- package/resources/meeting-sessions/actions.d.ts +7 -1
- package/resources/meeting-sessions/actions.d.ts.map +1 -1
- package/resources/meeting-sessions/actions.js +7 -1
- package/resources/meeting-sessions/actions.js.map +1 -1
- package/resources/meeting-sessions/actions.mjs +7 -1
- package/resources/meeting-sessions/actions.mjs.map +1 -1
- package/resources/meeting-sessions/artifacts.d.mts +38 -11
- package/resources/meeting-sessions/artifacts.d.mts.map +1 -1
- package/resources/meeting-sessions/artifacts.d.ts +38 -11
- package/resources/meeting-sessions/artifacts.d.ts.map +1 -1
- package/resources/meeting-sessions/artifacts.js +11 -5
- package/resources/meeting-sessions/artifacts.js.map +1 -1
- package/resources/meeting-sessions/artifacts.mjs +11 -5
- package/resources/meeting-sessions/artifacts.mjs.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.mts +71 -32
- package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.ts +71 -32
- package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.js +6 -8
- package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.mjs +6 -8
- package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.mts +12 -2
- package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.ts +12 -2
- package/resources/phone-numbers/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers/phone-numbers.js.map +1 -1
- package/resources/phone-numbers/phone-numbers.mjs.map +1 -1
- package/resources/porting-orders/phone-number-blocks.d.mts +1 -1
- package/resources/porting-orders/phone-number-blocks.d.mts.map +1 -1
- package/resources/porting-orders/phone-number-blocks.d.ts +1 -1
- package/resources/porting-orders/phone-number-blocks.d.ts.map +1 -1
- package/resources/porting-orders/porting-orders.d.mts +1 -1
- package/resources/porting-orders/porting-orders.d.mts.map +1 -1
- package/resources/porting-orders/porting-orders.d.ts +1 -1
- package/resources/porting-orders/porting-orders.d.ts.map +1 -1
- package/resources/porting-orders/porting-orders.js.map +1 -1
- package/resources/porting-orders/porting-orders.mjs.map +1 -1
- package/resources/porting-phone-numbers.d.mts +1 -1
- package/resources/porting-phone-numbers.d.mts.map +1 -1
- package/resources/porting-phone-numbers.d.ts +1 -1
- package/resources/porting-phone-numbers.d.ts.map +1 -1
- package/resources/private-wireless-gateways.d.mts +61 -7
- package/resources/private-wireless-gateways.d.mts.map +1 -1
- package/resources/private-wireless-gateways.d.ts +61 -7
- package/resources/private-wireless-gateways.d.ts.map +1 -1
- package/resources/private-wireless-gateways.js +1 -1
- package/resources/private-wireless-gateways.js.map +1 -1
- package/resources/private-wireless-gateways.mjs +1 -1
- package/resources/private-wireless-gateways.mjs.map +1 -1
- package/resources/requirements.d.mts +2 -2
- package/resources/requirements.d.mts.map +1 -1
- package/resources/requirements.d.ts +2 -2
- package/resources/requirements.d.ts.map +1 -1
- package/resources/spend-limits.d.mts +335 -0
- package/resources/spend-limits.d.mts.map +1 -0
- package/resources/spend-limits.d.ts +335 -0
- package/resources/spend-limits.d.ts.map +1 -0
- package/resources/spend-limits.js +91 -0
- package/resources/spend-limits.js.map +1 -0
- package/resources/spend-limits.mjs +87 -0
- package/resources/spend-limits.mjs.map +1 -0
- package/resources/terms-of-service/agreements.d.mts +12 -0
- package/resources/terms-of-service/agreements.d.mts.map +1 -1
- package/resources/terms-of-service/agreements.d.ts +12 -0
- package/resources/terms-of-service/agreements.d.ts.map +1 -1
- package/resources/terms-of-service/terms-of-service.d.mts +15 -0
- package/resources/terms-of-service/terms-of-service.d.mts.map +1 -1
- package/resources/terms-of-service/terms-of-service.d.ts +15 -0
- package/resources/terms-of-service/terms-of-service.d.ts.map +1 -1
- package/resources/terms-of-service/terms-of-service.js.map +1 -1
- package/resources/terms-of-service/terms-of-service.mjs.map +1 -1
- package/resources/texml/accounts/calls/calls.d.mts +9 -9
- package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
- package/resources/texml/accounts/calls/calls.d.ts +9 -9
- package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
- package/resources/texml/accounts/calls/calls.js +12 -2
- package/resources/texml/accounts/calls/calls.js.map +1 -1
- package/resources/texml/accounts/calls/calls.mjs +12 -2
- package/resources/texml/accounts/calls/calls.mjs.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.mts +65 -11
- package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.ts +65 -11
- package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-speech/text-to-speech.js +10 -3
- package/resources/text-to-speech/text-to-speech.js.map +1 -1
- package/resources/text-to-speech/text-to-speech.mjs +10 -3
- package/resources/text-to-speech/text-to-speech.mjs.map +1 -1
- package/resources/webhooks.d.mts +417 -9
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +417 -9
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.d.mts +89 -0
- package/resources/whatsapp/phone-numbers/calling-routing.d.mts.map +1 -0
- package/resources/whatsapp/phone-numbers/calling-routing.d.ts +89 -0
- package/resources/whatsapp/phone-numbers/calling-routing.d.ts.map +1 -0
- package/resources/whatsapp/phone-numbers/calling-routing.js +65 -0
- package/resources/whatsapp/phone-numbers/calling-routing.js.map +1 -0
- package/resources/whatsapp/phone-numbers/calling-routing.mjs +61 -0
- package/resources/whatsapp/phone-numbers/calling-routing.mjs.map +1 -0
- package/resources/whatsapp/phone-numbers/index.d.mts +1 -0
- package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/index.d.ts +1 -0
- package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/index.js +3 -1
- package/resources/whatsapp/phone-numbers/index.js.map +1 -1
- package/resources/whatsapp/phone-numbers/index.mjs +1 -0
- package/resources/whatsapp/phone-numbers/index.mjs.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +4 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +4 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.js +4 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs +4 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -1
- package/src/client.ts +67 -6
- package/src/resources/ai/ai.ts +21 -4
- package/src/resources/ai/assistants/assistants.ts +602 -36
- package/src/resources/ai/assistants/deleted.ts +86 -0
- package/src/resources/ai/assistants/index.ts +12 -0
- package/src/resources/ai/assistants/versions.ts +42 -2
- package/src/resources/ai/chat.ts +7 -2
- package/src/resources/ai/collections/collections.ts +3 -1
- package/src/resources/ai/collections/index.ts +2 -0
- package/src/resources/ai/collections/sources.ts +38 -4
- package/src/resources/ai/embeddings/embeddings.ts +1 -1
- package/src/resources/ai/index.ts +7 -1
- package/src/resources/ai/memory/index.ts +12 -0
- package/src/resources/ai/memory/memory.ts +31 -0
- package/src/resources/ai/memory/namespaces/index.ts +29 -0
- package/src/resources/ai/memory/namespaces/namespaces.ts +194 -0
- package/src/resources/ai/memory/namespaces/profiles/index.ts +35 -0
- package/src/resources/ai/memory/namespaces/profiles/memories.ts +170 -0
- package/src/resources/ai/memory/namespaces/profiles/profiles.ts +482 -0
- package/src/resources/ai/memory/namespaces/profiles/sources.ts +226 -0
- package/src/resources/ai/memory/namespaces/profiles.ts +3 -0
- package/src/resources/ai/memory/namespaces/settings.ts +129 -0
- package/src/resources/ai/memory/namespaces.ts +3 -0
- package/src/resources/ai/memory.ts +3 -0
- package/src/resources/ai/openai/chat.ts +7 -2
- package/src/resources/ai/tools.ts +6 -6
- package/src/resources/ai/typesafe/v1.ts +26 -14
- package/src/resources/calls/actions.ts +126 -19
- package/src/resources/calls/calls.ts +61 -11
- package/src/resources/calls/index.ts +1 -0
- package/src/resources/conferences/actions.ts +8 -1
- package/src/resources/dir/dir.ts +263 -32
- package/src/resources/dir/index.ts +6 -0
- package/src/resources/dir/phone-numbers.ts +8 -4
- package/src/resources/dir/references.ts +9 -6
- package/src/resources/email-blocks/email-blocks.ts +12 -4
- package/src/resources/email-blocks/imports.ts +20 -4
- package/src/resources/email-domains/email-domains.ts +120 -0
- package/src/resources/email-domains/index.ts +1 -0
- package/src/resources/email-domains/webhooks.ts +9 -4
- package/src/resources/email-events.ts +220 -35
- package/src/resources/email-inboxes/drafts.ts +32 -1
- package/src/resources/email-messages/email-messages.ts +191 -47
- package/src/resources/email-messages/index.ts +2 -1
- package/src/resources/email-messages/recipients.ts +6 -2
- package/src/resources/email-templates.ts +185 -0
- package/src/resources/enterprises/dir.ts +19 -1
- package/src/resources/enterprises/enterprises.ts +250 -23
- package/src/resources/enterprises/index.ts +5 -0
- package/src/resources/enterprises/reputation/loa.ts +73 -1
- package/src/resources/enterprises/verify-email.ts +117 -0
- package/src/resources/index.ts +26 -3
- package/src/resources/infringement-claims.ts +4 -0
- package/src/resources/llm-token-gateway/index.ts +4 -0
- package/src/resources/llm-token-gateway/llm-token-gateway.ts +19 -0
- package/src/resources/llm-token-gateway/usage.ts +336 -0
- package/src/resources/llm-token-gateway.ts +3 -0
- package/src/resources/meeting-sessions/actions.ts +7 -1
- package/src/resources/meeting-sessions/artifacts.ts +42 -11
- package/src/resources/meeting-sessions/meeting-sessions.ts +71 -33
- package/src/resources/phone-numbers/phone-numbers.ts +13 -2
- package/src/resources/porting-orders/phone-number-blocks.ts +9 -1
- package/src/resources/porting-orders/porting-orders.ts +9 -1
- package/src/resources/porting-phone-numbers.ts +9 -1
- package/src/resources/private-wireless-gateways.ts +76 -8
- package/src/resources/requirements.ts +2 -2
- package/src/resources/spend-limits.ts +428 -0
- package/src/resources/terms-of-service/agreements.ts +12 -0
- package/src/resources/terms-of-service/terms-of-service.ts +15 -0
- package/src/resources/texml/accounts/calls/calls.ts +20 -10
- package/src/resources/text-to-speech/text-to-speech.ts +73 -11
- package/src/resources/webhooks.ts +511 -6
- package/src/resources/whatsapp/phone-numbers/calling-routing.ts +113 -0
- package/src/resources/whatsapp/phone-numbers/index.ts +7 -0
- package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +18 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { APIResource } from "../../../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../../../core/api-promise.js";
|
|
3
|
+
import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from "../../../../../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../../../../../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* What a namespace and a profile hold.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Memories extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Everything stored under one profile, unranked -- ask `recall` for the memories
|
|
11
|
+
* that answer a question. A profile that holds nothing is an empty page rather
|
|
12
|
+
* than a 404: profiles exist by being written to. Each memory names the
|
|
13
|
+
* `source_id` it was extracted from, or null for a memory derived from other
|
|
14
|
+
* memories -- which can read almost the same as the fact it restates. A
|
|
15
|
+
* `source_id` narrows the listing to the memories extracted from that source, and
|
|
16
|
+
* a `session_id` to those extracted from the session, which is the same thing
|
|
17
|
+
* named another way; pass one or the other. Neither is everything the source led
|
|
18
|
+
* to: a memory derived from several sources belongs to no single one and appears
|
|
19
|
+
* only in the unfiltered listing. A memory written while the listing is paged
|
|
20
|
+
* shifts the pages after it, so an entry can be repeated or missed at a page
|
|
21
|
+
* boundary.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* // Automatically fetches more pages as needed.
|
|
26
|
+
* for await (const memoryListResponse of client.ai.memory.namespaces.profiles.memories.list(
|
|
27
|
+
* 'profile_id',
|
|
28
|
+
* { namespace: 'namespace' },
|
|
29
|
+
* )) {
|
|
30
|
+
* // ...
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
list(profileID: string, params: MemoryListParams, options?: RequestOptions): PagePromise<MemoryListResponsesDefaultFlatPagination, MemoryListResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* One memory by its id, as `recall` and the listing return it, together with what
|
|
37
|
+
* it came from. A fact names its `source_id`: read it with
|
|
38
|
+
* `GET .../sources/{source_id}` to see what was stored. A memory derived from
|
|
39
|
+
* other memories names them in `derived_from` instead; read each of those to reach
|
|
40
|
+
* its source.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const memory =
|
|
45
|
+
* await client.ai.memory.namespaces.profiles.memories.retrieve(
|
|
46
|
+
* 'memory_id',
|
|
47
|
+
* { namespace: 'namespace', profile_id: 'profile_id' },
|
|
48
|
+
* );
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
retrieve(memoryID: string, params: MemoryRetrieveParams, options?: RequestOptions): APIPromise<MemoryRetrieveResponse>;
|
|
52
|
+
}
|
|
53
|
+
export type MemoryListResponsesDefaultFlatPagination = DefaultFlatPagination<MemoryListResponse>;
|
|
54
|
+
export interface MemoryRetrieveResponse {
|
|
55
|
+
data: MemoryRetrieveResponse.Data;
|
|
56
|
+
}
|
|
57
|
+
export declare namespace MemoryRetrieveResponse {
|
|
58
|
+
interface Data {
|
|
59
|
+
id: string;
|
|
60
|
+
/**
|
|
61
|
+
* The ids of the memories this one was derived from. Read each with
|
|
62
|
+
* `GET .../memories/{memory_id}` to reach its `source_id`. Set for a derived
|
|
63
|
+
* memory; null for a fact.
|
|
64
|
+
*/
|
|
65
|
+
derived_from: Array<string> | null;
|
|
66
|
+
/**
|
|
67
|
+
* The source this memory was extracted from. Set for a fact, which comes from
|
|
68
|
+
* exactly one source; null for a memory derived from other memories. Read it with
|
|
69
|
+
* `GET .../sources/{source_id}`. A source deleted a moment ago can still be named
|
|
70
|
+
* here, and then answers 404.
|
|
71
|
+
*/
|
|
72
|
+
source_id: string | null;
|
|
73
|
+
text: string;
|
|
74
|
+
recorded_at?: string | null;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
export interface MemoryListResponse {
|
|
78
|
+
id: string;
|
|
79
|
+
/**
|
|
80
|
+
* The source this memory was extracted from. Set for a fact, which comes from
|
|
81
|
+
* exactly one source; null for a memory derived from other memories. Read it with
|
|
82
|
+
* `GET .../sources/{source_id}`. A source deleted a moment ago can still be named
|
|
83
|
+
* here, and then answers 404.
|
|
84
|
+
*/
|
|
85
|
+
source_id: string | null;
|
|
86
|
+
text: string;
|
|
87
|
+
recorded_at?: string | null;
|
|
88
|
+
}
|
|
89
|
+
export interface MemoryListParams extends DefaultFlatPaginationParams {
|
|
90
|
+
/**
|
|
91
|
+
* Path param
|
|
92
|
+
*/
|
|
93
|
+
namespace: string;
|
|
94
|
+
/**
|
|
95
|
+
* Query param: An ingested session, by the `session_id` it was ingested with.
|
|
96
|
+
* Narrows the request to the source that session was stored as.
|
|
97
|
+
*/
|
|
98
|
+
session_id?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Query param: Narrows the listing to the memories extracted from one source, a
|
|
101
|
+
* remembered fact as well as a session. Pass this or `session_id`, not both.
|
|
102
|
+
*/
|
|
103
|
+
source_id?: string | null;
|
|
104
|
+
}
|
|
105
|
+
export interface MemoryRetrieveParams {
|
|
106
|
+
/**
|
|
107
|
+
* The namespace. `default` exists for every organization.
|
|
108
|
+
*/
|
|
109
|
+
namespace: string;
|
|
110
|
+
/**
|
|
111
|
+
* The profile: your identifier for the user, caller or agent this memory is about.
|
|
112
|
+
*/
|
|
113
|
+
profile_id: string;
|
|
114
|
+
}
|
|
115
|
+
export declare namespace Memories {
|
|
116
|
+
export { type MemoryRetrieveResponse as MemoryRetrieveResponse, type MemoryListResponse as MemoryListResponse, type MemoryListResponsesDefaultFlatPagination as MemoryListResponsesDefaultFlatPagination, type MemoryListParams as MemoryListParams, type MemoryRetrieveParams as MemoryRetrieveParams, };
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=memories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memories.d.ts","sourceRoot":"","sources":["../../../../../src/resources/ai/memory/namespaces/profiles/memories.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,wCAAqC;AAC3D,OAAO,EAAE,UAAU,EAAE,2CAAwC;AAC7D,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,WAAW,EACZ,0CAAuC;AACxC,OAAO,EAAE,cAAc,EAAE,mDAAgD;AAGzE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,wCAAwC,EAAE,kBAAkB,CAAC;IAS5E;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CACN,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;CAOtC;AAED,MAAM,MAAM,wCAAwC,GAAG,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;AAEjG,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,sBAAsB,CAAC,IAAI,CAAC;CACnC;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,IAAI;QACnB,EAAE,EAAE,MAAM,CAAC;QAEX;;;;WAIG;QACH,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;QAEnC;;;;;WAKG;QACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QAEzB,IAAI,EAAE,MAAM,CAAC;QAEb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IAEX;;;;;OAKG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,IAAI,EAAE,MAAM,CAAC;IAEb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,WAAW,gBAAiB,SAAQ,2BAA2B;IACnE;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Memories = void 0;
|
|
5
|
+
const resource_1 = require("../../../../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../../../../core/pagination.js");
|
|
7
|
+
const path_1 = require("../../../../../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* What a namespace and a profile hold.
|
|
10
|
+
*/
|
|
11
|
+
class Memories extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Everything stored under one profile, unranked -- ask `recall` for the memories
|
|
14
|
+
* that answer a question. A profile that holds nothing is an empty page rather
|
|
15
|
+
* than a 404: profiles exist by being written to. Each memory names the
|
|
16
|
+
* `source_id` it was extracted from, or null for a memory derived from other
|
|
17
|
+
* memories -- which can read almost the same as the fact it restates. A
|
|
18
|
+
* `source_id` narrows the listing to the memories extracted from that source, and
|
|
19
|
+
* a `session_id` to those extracted from the session, which is the same thing
|
|
20
|
+
* named another way; pass one or the other. Neither is everything the source led
|
|
21
|
+
* to: a memory derived from several sources belongs to no single one and appears
|
|
22
|
+
* only in the unfiltered listing. A memory written while the listing is paged
|
|
23
|
+
* shifts the pages after it, so an entry can be repeated or missed at a page
|
|
24
|
+
* boundary.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* // Automatically fetches more pages as needed.
|
|
29
|
+
* for await (const memoryListResponse of client.ai.memory.namespaces.profiles.memories.list(
|
|
30
|
+
* 'profile_id',
|
|
31
|
+
* { namespace: 'namespace' },
|
|
32
|
+
* )) {
|
|
33
|
+
* // ...
|
|
34
|
+
* }
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
list(profileID, params, options) {
|
|
38
|
+
const { namespace, ...query } = params;
|
|
39
|
+
return this._client.getAPIList((0, path_1.path) `/ai/memory/namespaces/${namespace}/profiles/${profileID}/memories`, (pagination_1.DefaultFlatPagination), { query, ...options });
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* One memory by its id, as `recall` and the listing return it, together with what
|
|
43
|
+
* it came from. A fact names its `source_id`: read it with
|
|
44
|
+
* `GET .../sources/{source_id}` to see what was stored. A memory derived from
|
|
45
|
+
* other memories names them in `derived_from` instead; read each of those to reach
|
|
46
|
+
* its source.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const memory =
|
|
51
|
+
* await client.ai.memory.namespaces.profiles.memories.retrieve(
|
|
52
|
+
* 'memory_id',
|
|
53
|
+
* { namespace: 'namespace', profile_id: 'profile_id' },
|
|
54
|
+
* );
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
retrieve(memoryID, params, options) {
|
|
58
|
+
const { namespace, profile_id } = params;
|
|
59
|
+
return this._client.get((0, path_1.path) `/ai/memory/namespaces/${namespace}/profiles/${profile_id}/memories/${memoryID}`, options);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.Memories = Memories;
|
|
63
|
+
//# sourceMappingURL=memories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memories.js","sourceRoot":"","sources":["../../../../../src/resources/ai/memory/namespaces/profiles/memories.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAA2D;AAE3D,kEAIwC;AAExC,gEAA0D;AAE1D;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,IAAI,CACF,SAAiB,EACjB,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,yBAAyB,SAAS,aAAa,SAAS,WAAW,EACvE,CAAA,kCAAyC,CAAA,EACzC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CACN,QAAgB,EAChB,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAA,WAAI,EAAA,yBAAyB,SAAS,aAAa,UAAU,aAAa,QAAQ,EAAE,EACpF,OAAO,CACR,CAAC;IACJ,CAAC;CACF;AAlED,4BAkEC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../../../core/resource.mjs";
|
|
3
|
+
import { DefaultFlatPagination, } from "../../../../../core/pagination.mjs";
|
|
4
|
+
import { path } from "../../../../../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* What a namespace and a profile hold.
|
|
7
|
+
*/
|
|
8
|
+
export class Memories extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Everything stored under one profile, unranked -- ask `recall` for the memories
|
|
11
|
+
* that answer a question. A profile that holds nothing is an empty page rather
|
|
12
|
+
* than a 404: profiles exist by being written to. Each memory names the
|
|
13
|
+
* `source_id` it was extracted from, or null for a memory derived from other
|
|
14
|
+
* memories -- which can read almost the same as the fact it restates. A
|
|
15
|
+
* `source_id` narrows the listing to the memories extracted from that source, and
|
|
16
|
+
* a `session_id` to those extracted from the session, which is the same thing
|
|
17
|
+
* named another way; pass one or the other. Neither is everything the source led
|
|
18
|
+
* to: a memory derived from several sources belongs to no single one and appears
|
|
19
|
+
* only in the unfiltered listing. A memory written while the listing is paged
|
|
20
|
+
* shifts the pages after it, so an entry can be repeated or missed at a page
|
|
21
|
+
* boundary.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* // Automatically fetches more pages as needed.
|
|
26
|
+
* for await (const memoryListResponse of client.ai.memory.namespaces.profiles.memories.list(
|
|
27
|
+
* 'profile_id',
|
|
28
|
+
* { namespace: 'namespace' },
|
|
29
|
+
* )) {
|
|
30
|
+
* // ...
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
list(profileID, params, options) {
|
|
35
|
+
const { namespace, ...query } = params;
|
|
36
|
+
return this._client.getAPIList(path `/ai/memory/namespaces/${namespace}/profiles/${profileID}/memories`, (DefaultFlatPagination), { query, ...options });
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* One memory by its id, as `recall` and the listing return it, together with what
|
|
40
|
+
* it came from. A fact names its `source_id`: read it with
|
|
41
|
+
* `GET .../sources/{source_id}` to see what was stored. A memory derived from
|
|
42
|
+
* other memories names them in `derived_from` instead; read each of those to reach
|
|
43
|
+
* its source.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const memory =
|
|
48
|
+
* await client.ai.memory.namespaces.profiles.memories.retrieve(
|
|
49
|
+
* 'memory_id',
|
|
50
|
+
* { namespace: 'namespace', profile_id: 'profile_id' },
|
|
51
|
+
* );
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
retrieve(memoryID, params, options) {
|
|
55
|
+
const { namespace, profile_id } = params;
|
|
56
|
+
return this._client.get(path `/ai/memory/namespaces/${namespace}/profiles/${profile_id}/memories/${memoryID}`, options);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=memories.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memories.mjs","sourceRoot":"","sources":["../../../../../src/resources/ai/memory/namespaces/profiles/memories.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,yCAAqC;AAE3D,OAAO,EACL,qBAAqB,GAGtB,2CAAuC;AAExC,OAAO,EAAE,IAAI,EAAE,+CAA2C;AAE1D;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,IAAI,CACF,SAAiB,EACjB,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,yBAAyB,SAAS,aAAa,SAAS,WAAW,EACvE,CAAA,qBAAyC,CAAA,EACzC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CACN,QAAgB,EAChB,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAI,CAAA,yBAAyB,SAAS,aAAa,UAAU,aAAa,QAAQ,EAAE,EACpF,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import { APIResource } from "../../../../../core/resource.mjs";
|
|
2
|
+
import * as MemoriesAPI from "./memories.mjs";
|
|
3
|
+
import { Memories, MemoryListParams, MemoryListResponse, MemoryListResponsesDefaultFlatPagination, MemoryRetrieveParams, MemoryRetrieveResponse } from "./memories.mjs";
|
|
4
|
+
import * as SourcesAPI from "./sources.mjs";
|
|
5
|
+
import { SourceDeleteParams, SourceDeleteResponse, SourceListParams, SourceRetrieveParams, SourceRetrieveResponse, Sources } from "./sources.mjs";
|
|
6
|
+
import { APIPromise } from "../../../../../core/api-promise.mjs";
|
|
7
|
+
import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from "../../../../../core/pagination.mjs";
|
|
8
|
+
import { RequestOptions } from "../../../../../internal/request-options.mjs";
|
|
9
|
+
export declare class Profiles extends APIResource {
|
|
10
|
+
memories: MemoriesAPI.Memories;
|
|
11
|
+
sources: SourcesAPI.Sources;
|
|
12
|
+
/**
|
|
13
|
+
* Profiles are never created, only written to, so this lists the ones that hold a
|
|
14
|
+
* memory. A profile whose first ingest is still running is not here yet. Ordered
|
|
15
|
+
* by memory count, largest first, so a profile written to while the listing is
|
|
16
|
+
* paged can move between pages and be repeated or missed.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* // Automatically fetches more pages as needed.
|
|
21
|
+
* for await (const profileListResponse of client.ai.memory.namespaces.profiles.list(
|
|
22
|
+
* 'namespace',
|
|
23
|
+
* )) {
|
|
24
|
+
* // ...
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
list(namespace: string, query?: ProfileListParams | null | undefined, options?: RequestOptions): PagePromise<ProfileListResponsesDefaultFlatPagination, ProfileListResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Delete everything held about one profile. A 2xx means none of its memories are
|
|
31
|
+
* left, and its summary goes with them. There is no undo.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const profile =
|
|
36
|
+
* await client.ai.memory.namespaces.profiles.delete(
|
|
37
|
+
* 'profile_id',
|
|
38
|
+
* { namespace: 'namespace' },
|
|
39
|
+
* );
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
delete(profileID: string, params: ProfileDeleteParams, options?: RequestOptions): APIPromise<ProfileDeleteResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* Store a session. Facts are extracted from whatever you send — the body is taken
|
|
45
|
+
* as any JSON value and stored whole, so a framework's own transcript shape works
|
|
46
|
+
* unchanged. `messages` of `role`/`content` is the conventional shape, not a
|
|
47
|
+
* requirement. An empty object or a null body is refused. Carry a `session_id` to
|
|
48
|
+
* name the session: re-ingesting the same one replaces what it held. Omit it and a
|
|
49
|
+
* session is opened and returned. Extraction runs asynchronously — poll the
|
|
50
|
+
* returned operation.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const response =
|
|
55
|
+
* await client.ai.memory.namespaces.profiles.ingest(
|
|
56
|
+
* 'profile_id',
|
|
57
|
+
* {
|
|
58
|
+
* namespace: 'namespace',
|
|
59
|
+
* body: { foo: 'bar' },
|
|
60
|
+
* },
|
|
61
|
+
* );
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
ingest(profileID: string, params: ProfileIngestParams, options?: RequestOptions): APIPromise<ProfileIngestResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* Ranked memories for a question. Matching runs over the profile's memories and
|
|
67
|
+
* returns them in rank order with a relevance `score`; the score is null where the
|
|
68
|
+
* deployment's reranker is a passthrough, in which case order is the only signal.
|
|
69
|
+
* No model runs in this path — recall returns facts, it does not compose an
|
|
70
|
+
* answer.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* const response =
|
|
75
|
+
* await client.ai.memory.namespaces.profiles.recall(
|
|
76
|
+
* 'profile_id',
|
|
77
|
+
* {
|
|
78
|
+
* namespace: 'namespace',
|
|
79
|
+
* query: 'where do invoices go?',
|
|
80
|
+
* top_k: 5,
|
|
81
|
+
* },
|
|
82
|
+
* );
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
recall(profileID: string, params: ProfileRecallParams, options?: RequestOptions): APIPromise<ProfileRecallResponse>;
|
|
86
|
+
/**
|
|
87
|
+
* For a fact the agent has already distilled: `text` is stored as given, with
|
|
88
|
+
* nothing extracted from it. Send a transcript to `ingest` instead. Remembering
|
|
89
|
+
* the same text again writes the same memory rather than a second copy of it, so a
|
|
90
|
+
* retry is safe. The write runs asynchronously -- poll the returned operation.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```ts
|
|
94
|
+
* const response =
|
|
95
|
+
* await client.ai.memory.namespaces.profiles.remember(
|
|
96
|
+
* 'profile_id',
|
|
97
|
+
* {
|
|
98
|
+
* namespace: 'namespace',
|
|
99
|
+
* text: 'Prefers window seats and flies out of ORD',
|
|
100
|
+
* },
|
|
101
|
+
* );
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
remember(profileID: string, params: ProfileRememberParams, options?: RequestOptions): APIPromise<ProfileRememberResponse>;
|
|
105
|
+
/**
|
|
106
|
+
* The whole profile as one card, precomputed, with no query. Built for the start
|
|
107
|
+
* of a session, where there is no question to ask yet.
|
|
108
|
+
*
|
|
109
|
+
* A summary is generated in the background. `is_stale` tells you newer memories
|
|
110
|
+
* have arrived since it was written; that is ordinary and the card is still
|
|
111
|
+
* usable.
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* ```ts
|
|
115
|
+
* const response =
|
|
116
|
+
* await client.ai.memory.namespaces.profiles.retrieveSummary(
|
|
117
|
+
* 'profile_id',
|
|
118
|
+
* { namespace: 'namespace' },
|
|
119
|
+
* );
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
retrieveSummary(profileID: string, params: ProfileRetrieveSummaryParams, options?: RequestOptions): APIPromise<ProfileRetrieveSummaryResponse>;
|
|
123
|
+
}
|
|
124
|
+
export type ProfileListResponsesDefaultFlatPagination = DefaultFlatPagination<ProfileListResponse>;
|
|
125
|
+
/**
|
|
126
|
+
* Where a listing's page sits in the whole.
|
|
127
|
+
*
|
|
128
|
+
* A page is a snapshot: the counts it reports and the order it is drawn in both
|
|
129
|
+
* move as writes land, so paging through a busy namespace can repeat or miss an
|
|
130
|
+
* entry at a page boundary.
|
|
131
|
+
*/
|
|
132
|
+
export interface PageMeta {
|
|
133
|
+
/**
|
|
134
|
+
* The page returned, counting from 1.
|
|
135
|
+
*/
|
|
136
|
+
page_number: number;
|
|
137
|
+
/**
|
|
138
|
+
* How many results a page holds.
|
|
139
|
+
*/
|
|
140
|
+
page_size: number;
|
|
141
|
+
/**
|
|
142
|
+
* Pages that can be requested; 0 when nothing matched. Page until `page_number`
|
|
143
|
+
* reaches it rather than until a page comes back short: a page can hold fewer than
|
|
144
|
+
* `page_size` results without being the last. Capped at the deepest page served,
|
|
145
|
+
* so on a very large listing it covers fewer results than `total_results`.
|
|
146
|
+
*/
|
|
147
|
+
total_pages: number;
|
|
148
|
+
/**
|
|
149
|
+
* Results the request matched, including any past the deepest page.
|
|
150
|
+
*/
|
|
151
|
+
total_results: number;
|
|
152
|
+
}
|
|
153
|
+
export interface ProfileListResponse {
|
|
154
|
+
/**
|
|
155
|
+
* Memories stored under this profile, including the consolidated ones that
|
|
156
|
+
* paraphrase others. Listings are ordered by it.
|
|
157
|
+
*/
|
|
158
|
+
memory_count: number;
|
|
159
|
+
profile_id: string;
|
|
160
|
+
}
|
|
161
|
+
export interface ProfileDeleteResponse {
|
|
162
|
+
data: ProfileDeleteResponse.Data;
|
|
163
|
+
}
|
|
164
|
+
export declare namespace ProfileDeleteResponse {
|
|
165
|
+
interface Data {
|
|
166
|
+
/**
|
|
167
|
+
* Memories the profile held and no longer does, counted before and after. A report
|
|
168
|
+
* rather than an audit: memory moves in the background between the two counts. The
|
|
169
|
+
* status carries the outcome.
|
|
170
|
+
*/
|
|
171
|
+
memories_deleted: number;
|
|
172
|
+
profile_id: string;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
export interface ProfileIngestResponse {
|
|
176
|
+
data: ProfileIngestResponse.Data;
|
|
177
|
+
}
|
|
178
|
+
export declare namespace ProfileIngestResponse {
|
|
179
|
+
interface Data {
|
|
180
|
+
operation_id: string;
|
|
181
|
+
profile_id: string;
|
|
182
|
+
session_id: string;
|
|
183
|
+
/**
|
|
184
|
+
* Identifies one source within its profile: an ingested session, or one remembered
|
|
185
|
+
* fact. Returned by `ingest` and `remember` when the write is accepted.
|
|
186
|
+
* Re-ingesting a session keeps its source id.
|
|
187
|
+
*/
|
|
188
|
+
source_id: string;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
export interface ProfileRecallResponse {
|
|
192
|
+
data: Array<ProfileRecallResponse.Data>;
|
|
193
|
+
}
|
|
194
|
+
export declare namespace ProfileRecallResponse {
|
|
195
|
+
interface Data {
|
|
196
|
+
id: string;
|
|
197
|
+
text: string;
|
|
198
|
+
recorded_at?: string | null;
|
|
199
|
+
/**
|
|
200
|
+
* Relevance, 0-1. Null where the deployment's reranker is a passthrough; results
|
|
201
|
+
* are in rank order either way.
|
|
202
|
+
*/
|
|
203
|
+
score?: number | null;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
export interface ProfileRememberResponse {
|
|
207
|
+
data: ProfileRememberResponse.Data;
|
|
208
|
+
}
|
|
209
|
+
export declare namespace ProfileRememberResponse {
|
|
210
|
+
interface Data {
|
|
211
|
+
operation_id: string;
|
|
212
|
+
profile_id: string;
|
|
213
|
+
/**
|
|
214
|
+
* Identifies one source within its profile: an ingested session, or one remembered
|
|
215
|
+
* fact. Returned by `ingest` and `remember` when the write is accepted.
|
|
216
|
+
* Re-ingesting a session keeps its source id.
|
|
217
|
+
*/
|
|
218
|
+
source_id: string;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
export interface ProfileRetrieveSummaryResponse {
|
|
222
|
+
data: ProfileRetrieveSummaryResponse.Data;
|
|
223
|
+
}
|
|
224
|
+
export declare namespace ProfileRetrieveSummaryResponse {
|
|
225
|
+
interface Data {
|
|
226
|
+
/**
|
|
227
|
+
* Whether newer memories have arrived since the summary was generated. The summary
|
|
228
|
+
* is regenerated in the background, so a true here is ordinary and the summary is
|
|
229
|
+
* still usable.
|
|
230
|
+
*/
|
|
231
|
+
is_stale: boolean;
|
|
232
|
+
profile_id: string;
|
|
233
|
+
/**
|
|
234
|
+
* When the summary was last generated. Null while none is ready.
|
|
235
|
+
*/
|
|
236
|
+
generated_at?: string | null;
|
|
237
|
+
/**
|
|
238
|
+
* The precomputed summary, ready to place in an assistant's context at the start
|
|
239
|
+
* of a session.
|
|
240
|
+
*/
|
|
241
|
+
text?: string | null;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
export interface ProfileListParams extends DefaultFlatPaginationParams {
|
|
245
|
+
}
|
|
246
|
+
export interface ProfileDeleteParams {
|
|
247
|
+
/**
|
|
248
|
+
* The namespace. `default` exists for every organization.
|
|
249
|
+
*/
|
|
250
|
+
namespace: string;
|
|
251
|
+
}
|
|
252
|
+
export type ProfileIngestParams = ProfileIngestParams.Variant0 | ProfileIngestParams.Variant1;
|
|
253
|
+
export declare namespace ProfileIngestParams {
|
|
254
|
+
interface Variant0 {
|
|
255
|
+
/**
|
|
256
|
+
* Path param
|
|
257
|
+
*/
|
|
258
|
+
namespace: string;
|
|
259
|
+
/**
|
|
260
|
+
* Body param
|
|
261
|
+
*/
|
|
262
|
+
body: {
|
|
263
|
+
[key: string]: unknown;
|
|
264
|
+
};
|
|
265
|
+
/**
|
|
266
|
+
* Query param: Names the session. Re-ingesting the same session replaces what it
|
|
267
|
+
* held and keeps its `source_id`. Omit it to have one derived from the content and
|
|
268
|
+
* returned. No whitespace, control characters, or any of / \ # ? %.
|
|
269
|
+
*/
|
|
270
|
+
session_id?: string | null;
|
|
271
|
+
}
|
|
272
|
+
interface Variant1 {
|
|
273
|
+
/**
|
|
274
|
+
* Path param
|
|
275
|
+
*/
|
|
276
|
+
namespace: string;
|
|
277
|
+
/**
|
|
278
|
+
* Body param
|
|
279
|
+
*/
|
|
280
|
+
body: Array<unknown> | string | number | boolean;
|
|
281
|
+
/**
|
|
282
|
+
* Query param: Names the session. Re-ingesting the same session replaces what it
|
|
283
|
+
* held and keeps its `source_id`. Omit it to have one derived from the content and
|
|
284
|
+
* returned. No whitespace, control characters, or any of / \ # ? %.
|
|
285
|
+
*/
|
|
286
|
+
session_id?: string | null;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
export interface ProfileRecallParams {
|
|
290
|
+
/**
|
|
291
|
+
* Path param
|
|
292
|
+
*/
|
|
293
|
+
namespace: string;
|
|
294
|
+
/**
|
|
295
|
+
* Body param
|
|
296
|
+
*/
|
|
297
|
+
query: string;
|
|
298
|
+
/**
|
|
299
|
+
* Body param
|
|
300
|
+
*/
|
|
301
|
+
top_k?: number | null;
|
|
302
|
+
}
|
|
303
|
+
export interface ProfileRememberParams {
|
|
304
|
+
/**
|
|
305
|
+
* Path param
|
|
306
|
+
*/
|
|
307
|
+
namespace: string;
|
|
308
|
+
/**
|
|
309
|
+
* Body param
|
|
310
|
+
*/
|
|
311
|
+
text: string;
|
|
312
|
+
}
|
|
313
|
+
export interface ProfileRetrieveSummaryParams {
|
|
314
|
+
/**
|
|
315
|
+
* The namespace. `default` exists for every organization.
|
|
316
|
+
*/
|
|
317
|
+
namespace: string;
|
|
318
|
+
}
|
|
319
|
+
export declare namespace Profiles {
|
|
320
|
+
export { type PageMeta as PageMeta, type ProfileListResponse as ProfileListResponse, type ProfileDeleteResponse as ProfileDeleteResponse, type ProfileIngestResponse as ProfileIngestResponse, type ProfileRecallResponse as ProfileRecallResponse, type ProfileRememberResponse as ProfileRememberResponse, type ProfileRetrieveSummaryResponse as ProfileRetrieveSummaryResponse, type ProfileListResponsesDefaultFlatPagination as ProfileListResponsesDefaultFlatPagination, type ProfileListParams as ProfileListParams, type ProfileDeleteParams as ProfileDeleteParams, type ProfileIngestParams as ProfileIngestParams, type ProfileRecallParams as ProfileRecallParams, type ProfileRememberParams as ProfileRememberParams, type ProfileRetrieveSummaryParams as ProfileRetrieveSummaryParams, };
|
|
321
|
+
export { Memories as Memories, type MemoryRetrieveResponse as MemoryRetrieveResponse, type MemoryListResponse as MemoryListResponse, type MemoryListResponsesDefaultFlatPagination as MemoryListResponsesDefaultFlatPagination, type MemoryListParams as MemoryListParams, type MemoryRetrieveParams as MemoryRetrieveParams, };
|
|
322
|
+
export { Sources as Sources, type SourceRetrieveResponse as SourceRetrieveResponse, type SourceDeleteResponse as SourceDeleteResponse, type SourceListParams as SourceListParams, type SourceDeleteParams as SourceDeleteParams, type SourceRetrieveParams as SourceRetrieveParams, };
|
|
323
|
+
}
|
|
324
|
+
//# sourceMappingURL=profiles.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profiles.d.mts","sourceRoot":"","sources":["../../../../../src/resources/ai/memory/namespaces/profiles/profiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,yCAAqC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