telnyx 7.25.0 → 7.26.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 +7 -0
- package/client.d.mts +10 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -4
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +14 -5
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +14 -5
- 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 +232 -6
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +232 -6
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/assistants/index.d.mts +1 -1
- package/resources/ai/assistants/index.d.mts.map +1 -1
- package/resources/ai/assistants/index.d.ts +1 -1
- package/resources/ai/assistants/index.d.ts.map +1 -1
- package/resources/ai/assistants/index.js.map +1 -1
- package/resources/ai/assistants/index.mjs.map +1 -1
- package/resources/ai/assistants/versions.d.mts +12 -0
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +12 -0
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/avatars.d.mts +187 -0
- package/resources/ai/avatars.d.mts.map +1 -0
- package/resources/ai/avatars.d.ts +187 -0
- package/resources/ai/avatars.d.ts.map +1 -0
- package/resources/ai/avatars.js +93 -0
- package/resources/ai/avatars.js.map +1 -0
- package/resources/ai/avatars.mjs +89 -0
- package/resources/ai/avatars.mjs.map +1 -0
- package/resources/ai/chat.d.mts +20 -6
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +20 -6
- package/resources/ai/chat.d.ts.map +1 -1
- package/resources/ai/conversations/conversations.d.mts +8 -0
- package/resources/ai/conversations/conversations.d.mts.map +1 -1
- package/resources/ai/conversations/conversations.d.ts +8 -0
- package/resources/ai/conversations/conversations.d.ts.map +1 -1
- package/resources/ai/conversations/conversations.js.map +1 -1
- package/resources/ai/conversations/conversations.mjs.map +1 -1
- package/resources/ai/index.d.mts +2 -1
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +2 -1
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js +3 -1
- 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/namespaces/index.d.mts +1 -1
- package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/index.d.ts +1 -1
- package/resources/ai/memory/namespaces/index.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/index.js.map +1 -1
- package/resources/ai/memory/namespaces/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.mts +2 -2
- package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.ts +2 -2
- package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.mts +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.ts +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.js.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts +54 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts +54 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.js +31 -0
- package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.mjs +31 -0
- package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -1
- package/resources/ai/openai/chat.d.mts +20 -6
- package/resources/ai/openai/chat.d.mts.map +1 -1
- package/resources/ai/openai/chat.d.ts +20 -6
- package/resources/ai/openai/chat.d.ts.map +1 -1
- package/resources/ai/tools.d.mts +17 -1
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +17 -1
- package/resources/ai/tools.d.ts.map +1 -1
- package/resources/calls/actions.d.mts +59 -13
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +59 -13
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +24 -14
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +24 -14
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js +8 -0
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs +8 -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/dir/dir.d.mts +10 -7
- package/resources/dir/dir.d.mts.map +1 -1
- package/resources/dir/dir.d.ts +10 -7
- package/resources/dir/dir.d.ts.map +1 -1
- package/resources/dir/dir.js +1 -1
- package/resources/dir/dir.js.map +1 -1
- package/resources/dir/dir.mjs +1 -1
- package/resources/dir/dir.mjs.map +1 -1
- package/resources/dir/phone-numbers.d.mts +0 -4
- package/resources/dir/phone-numbers.d.mts.map +1 -1
- package/resources/dir/phone-numbers.d.ts +0 -4
- package/resources/dir/phone-numbers.d.ts.map +1 -1
- package/resources/email-templates.d.mts +109 -18
- package/resources/email-templates.d.mts.map +1 -1
- package/resources/email-templates.d.ts +109 -18
- package/resources/email-templates.d.ts.map +1 -1
- package/resources/email-templates.js +5 -1
- package/resources/email-templates.js.map +1 -1
- package/resources/email-templates.mjs +5 -1
- package/resources/email-templates.mjs.map +1 -1
- package/resources/enterprises/dir.d.mts +8 -2
- package/resources/enterprises/dir.d.mts.map +1 -1
- package/resources/enterprises/dir.d.ts +8 -2
- package/resources/enterprises/dir.d.ts.map +1 -1
- package/resources/enterprises/dir.js +8 -2
- package/resources/enterprises/dir.js.map +1 -1
- package/resources/enterprises/dir.mjs +8 -2
- package/resources/enterprises/dir.mjs.map +1 -1
- package/resources/enterprises/enterprises.d.mts +7 -5
- package/resources/enterprises/enterprises.d.mts.map +1 -1
- package/resources/enterprises/enterprises.d.ts +7 -5
- package/resources/enterprises/enterprises.d.ts.map +1 -1
- package/resources/enterprises/enterprises.js +5 -3
- package/resources/enterprises/enterprises.js.map +1 -1
- package/resources/enterprises/enterprises.mjs +5 -3
- package/resources/enterprises/enterprises.mjs.map +1 -1
- package/resources/enterprises/index.d.mts +1 -1
- package/resources/enterprises/index.d.mts.map +1 -1
- package/resources/enterprises/index.d.ts +1 -1
- package/resources/enterprises/index.d.ts.map +1 -1
- package/resources/enterprises/index.js.map +1 -1
- package/resources/enterprises/index.mjs.map +1 -1
- package/resources/enterprises/reputation/external-verification.d.mts +94 -0
- package/resources/enterprises/reputation/external-verification.d.mts.map +1 -0
- package/resources/enterprises/reputation/external-verification.d.ts +94 -0
- package/resources/enterprises/reputation/external-verification.d.ts.map +1 -0
- package/resources/enterprises/reputation/external-verification.js +54 -0
- package/resources/enterprises/reputation/external-verification.js.map +1 -0
- package/resources/enterprises/reputation/external-verification.mjs +50 -0
- package/resources/enterprises/reputation/external-verification.mjs.map +1 -0
- package/resources/enterprises/reputation/index.d.mts +3 -2
- package/resources/enterprises/reputation/index.d.mts.map +1 -1
- package/resources/enterprises/reputation/index.d.ts +3 -2
- package/resources/enterprises/reputation/index.d.ts.map +1 -1
- package/resources/enterprises/reputation/index.js +3 -1
- package/resources/enterprises/reputation/index.js.map +1 -1
- package/resources/enterprises/reputation/index.mjs +1 -0
- package/resources/enterprises/reputation/index.mjs.map +1 -1
- package/resources/enterprises/reputation/loa.d.mts +3 -2
- package/resources/enterprises/reputation/loa.d.mts.map +1 -1
- package/resources/enterprises/reputation/loa.d.ts +3 -2
- package/resources/enterprises/reputation/loa.d.ts.map +1 -1
- package/resources/enterprises/reputation/numbers.d.mts +197 -4
- package/resources/enterprises/reputation/numbers.d.mts.map +1 -1
- package/resources/enterprises/reputation/numbers.d.ts +197 -4
- package/resources/enterprises/reputation/numbers.d.ts.map +1 -1
- package/resources/enterprises/reputation/numbers.js +58 -2
- package/resources/enterprises/reputation/numbers.js.map +1 -1
- package/resources/enterprises/reputation/numbers.mjs +58 -2
- package/resources/enterprises/reputation/numbers.mjs.map +1 -1
- package/resources/enterprises/reputation/remediation.d.mts +3 -2
- package/resources/enterprises/reputation/remediation.d.mts.map +1 -1
- package/resources/enterprises/reputation/remediation.d.ts +3 -2
- package/resources/enterprises/reputation/remediation.d.ts.map +1 -1
- package/resources/enterprises/reputation/reputation.d.mts +39 -3
- package/resources/enterprises/reputation/reputation.d.mts.map +1 -1
- package/resources/enterprises/reputation/reputation.d.ts +39 -3
- package/resources/enterprises/reputation/reputation.d.ts.map +1 -1
- package/resources/enterprises/reputation/reputation.js +22 -0
- package/resources/enterprises/reputation/reputation.js.map +1 -1
- package/resources/enterprises/reputation/reputation.mjs +22 -0
- package/resources/enterprises/reputation/reputation.mjs.map +1 -1
- package/resources/global-ip-assignment-health.d.mts +4 -4
- package/resources/global-ip-assignment-health.d.mts.map +1 -1
- package/resources/global-ip-assignment-health.d.ts +4 -4
- package/resources/global-ip-assignment-health.d.ts.map +1 -1
- package/resources/global-ip-assignments-usage.d.mts +4 -4
- package/resources/global-ip-assignments-usage.d.mts.map +1 -1
- package/resources/global-ip-assignments-usage.d.ts +4 -4
- package/resources/global-ip-assignments-usage.d.ts.map +1 -1
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/llm-token-gateway/index.d.mts +4 -1
- package/resources/llm-token-gateway/index.d.mts.map +1 -1
- package/resources/llm-token-gateway/index.d.ts +4 -1
- package/resources/llm-token-gateway/index.d.ts.map +1 -1
- package/resources/llm-token-gateway/index.js +7 -1
- package/resources/llm-token-gateway/index.js.map +1 -1
- package/resources/llm-token-gateway/index.mjs +4 -1
- package/resources/llm-token-gateway/index.mjs.map +1 -1
- package/resources/llm-token-gateway/llm-token-gateway.d.mts +14 -2
- package/resources/llm-token-gateway/llm-token-gateway.d.mts.map +1 -1
- package/resources/llm-token-gateway/llm-token-gateway.d.ts +14 -2
- package/resources/llm-token-gateway/llm-token-gateway.d.ts.map +1 -1
- package/resources/llm-token-gateway/llm-token-gateway.js +12 -0
- package/resources/llm-token-gateway/llm-token-gateway.js.map +1 -1
- package/resources/llm-token-gateway/llm-token-gateway.mjs +13 -1
- package/resources/llm-token-gateway/llm-token-gateway.mjs.map +1 -1
- package/resources/llm-token-gateway/spend.d.mts +223 -0
- package/resources/llm-token-gateway/spend.d.mts.map +1 -0
- package/resources/llm-token-gateway/spend.d.ts +223 -0
- package/resources/llm-token-gateway/spend.d.ts.map +1 -0
- package/resources/llm-token-gateway/spend.js +56 -0
- package/resources/llm-token-gateway/spend.js.map +1 -0
- package/resources/llm-token-gateway/spend.mjs +52 -0
- package/resources/llm-token-gateway/spend.mjs.map +1 -0
- package/resources/llm-token-gateway/token-groups.d.mts +577 -0
- package/resources/llm-token-gateway/token-groups.d.mts.map +1 -0
- package/resources/llm-token-gateway/token-groups.d.ts +577 -0
- package/resources/llm-token-gateway/token-groups.d.ts.map +1 -0
- package/resources/llm-token-gateway/token-groups.js +139 -0
- package/resources/llm-token-gateway/token-groups.js.map +1 -0
- package/resources/llm-token-gateway/token-groups.mjs +135 -0
- package/resources/llm-token-gateway/token-groups.mjs.map +1 -0
- package/resources/llm-token-gateway/token-keys.d.mts +318 -0
- package/resources/llm-token-gateway/token-keys.d.mts.map +1 -0
- package/resources/llm-token-gateway/token-keys.d.ts +318 -0
- package/resources/llm-token-gateway/token-keys.d.ts.map +1 -0
- package/resources/llm-token-gateway/token-keys.js +127 -0
- package/resources/llm-token-gateway/token-keys.js.map +1 -0
- package/resources/llm-token-gateway/token-keys.mjs +123 -0
- package/resources/llm-token-gateway/token-keys.mjs.map +1 -0
- package/resources/llm-token-gateway/usage.d.mts +205 -146
- package/resources/llm-token-gateway/usage.d.mts.map +1 -1
- package/resources/llm-token-gateway/usage.d.ts +205 -146
- package/resources/llm-token-gateway/usage.d.ts.map +1 -1
- package/resources/llm-token-gateway/usage.js +47 -15
- package/resources/llm-token-gateway/usage.js.map +1 -1
- package/resources/llm-token-gateway/usage.mjs +47 -15
- package/resources/llm-token-gateway/usage.mjs.map +1 -1
- package/resources/phone-numbers/jobs.d.mts +17 -5
- package/resources/phone-numbers/jobs.d.mts.map +1 -1
- package/resources/phone-numbers/jobs.d.ts +17 -5
- package/resources/phone-numbers/jobs.d.ts.map +1 -1
- package/resources/phone-numbers/jobs.js +4 -3
- package/resources/phone-numbers/jobs.js.map +1 -1
- package/resources/phone-numbers/jobs.mjs +4 -3
- package/resources/phone-numbers/jobs.mjs.map +1 -1
- package/resources/reputation/numbers.d.mts +10 -0
- package/resources/reputation/numbers.d.mts.map +1 -1
- package/resources/reputation/numbers.d.ts +10 -0
- package/resources/reputation/numbers.d.ts.map +1 -1
- package/resources/sip-registration-status.d.mts +149 -0
- package/resources/sip-registration-status.d.mts.map +1 -0
- package/resources/sip-registration-status.d.ts +149 -0
- package/resources/sip-registration-status.d.ts.map +1 -0
- package/resources/sip-registration-status.js +32 -0
- package/resources/sip-registration-status.js.map +1 -0
- package/resources/sip-registration-status.mjs +28 -0
- package/resources/sip-registration-status.mjs.map +1 -0
- package/resources/texml/texml.d.mts +7 -3
- package/resources/texml/texml.d.mts.map +1 -1
- package/resources/texml/texml.d.ts +7 -3
- package/resources/texml/texml.d.ts.map +1 -1
- package/resources/texml/texml.js +4 -2
- package/resources/texml/texml.js.map +1 -1
- package/resources/texml/texml.mjs +4 -2
- package/resources/texml/texml.mjs.map +1 -1
- package/resources/webhooks.d.mts +566 -3
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +566 -3
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/whatsapp/index.d.mts +1 -0
- package/resources/whatsapp/index.d.mts.map +1 -1
- package/resources/whatsapp/index.d.ts +1 -0
- package/resources/whatsapp/index.d.ts.map +1 -1
- package/resources/whatsapp/index.js +3 -1
- package/resources/whatsapp/index.js.map +1 -1
- package/resources/whatsapp/index.mjs +1 -0
- package/resources/whatsapp/index.mjs.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.d.mts +6 -5
- package/resources/whatsapp/phone-numbers/calling-routing.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.d.ts +6 -5
- package/resources/whatsapp/phone-numbers/calling-routing.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.js +6 -5
- package/resources/whatsapp/phone-numbers/calling-routing.js.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.mjs +6 -5
- package/resources/whatsapp/phone-numbers/calling-routing.mjs.map +1 -1
- package/resources/whatsapp/signup.d.mts +128 -0
- package/resources/whatsapp/signup.d.mts.map +1 -0
- package/resources/whatsapp/signup.d.ts +128 -0
- package/resources/whatsapp/signup.d.ts.map +1 -0
- package/resources/whatsapp/signup.js +42 -0
- package/resources/whatsapp/signup.js.map +1 -0
- package/resources/whatsapp/signup.mjs +38 -0
- package/resources/whatsapp/signup.mjs.map +1 -0
- package/resources/whatsapp/whatsapp.d.mts +4 -0
- package/resources/whatsapp/whatsapp.d.mts.map +1 -1
- package/resources/whatsapp/whatsapp.d.ts +4 -0
- package/resources/whatsapp/whatsapp.d.ts.map +1 -1
- package/resources/whatsapp/whatsapp.js +4 -0
- package/resources/whatsapp/whatsapp.js.map +1 -1
- package/resources/whatsapp/whatsapp.mjs +4 -0
- package/resources/whatsapp/whatsapp.mjs.map +1 -1
- package/src/client.ts +28 -0
- package/src/resources/ai/ai.ts +38 -3
- package/src/resources/ai/assistants/assistants.ts +292 -5
- package/src/resources/ai/assistants/index.ts +2 -0
- package/src/resources/ai/assistants/versions.ts +14 -0
- package/src/resources/ai/avatars.ts +238 -0
- package/src/resources/ai/chat.ts +20 -6
- package/src/resources/ai/conversations/conversations.ts +9 -0
- package/src/resources/ai/index.ts +13 -0
- package/src/resources/ai/memory/namespaces/index.ts +2 -0
- package/src/resources/ai/memory/namespaces/namespaces.ts +4 -0
- package/src/resources/ai/memory/namespaces/profiles/index.ts +2 -0
- package/src/resources/ai/memory/namespaces/profiles/profiles.ts +71 -0
- package/src/resources/ai/openai/chat.ts +20 -6
- package/src/resources/ai/tools.ts +19 -1
- package/src/resources/calls/actions.ts +65 -10
- package/src/resources/calls/calls.ts +24 -8
- package/src/resources/calls/index.ts +1 -0
- package/src/resources/dir/dir.ts +10 -7
- package/src/resources/dir/phone-numbers.ts +1 -6
- package/src/resources/email-templates.ts +121 -19
- package/src/resources/enterprises/dir.ts +8 -2
- package/src/resources/enterprises/enterprises.ts +7 -3
- package/src/resources/enterprises/index.ts +1 -0
- package/src/resources/enterprises/reputation/external-verification.ts +125 -0
- package/src/resources/enterprises/reputation/index.ts +12 -0
- package/src/resources/enterprises/reputation/loa.ts +3 -2
- package/src/resources/enterprises/reputation/numbers.ts +256 -3
- package/src/resources/enterprises/reputation/remediation.ts +3 -2
- package/src/resources/enterprises/reputation/reputation.ts +70 -0
- package/src/resources/global-ip-assignment-health.ts +4 -4
- package/src/resources/global-ip-assignments-usage.ts +4 -4
- package/src/resources/index.ts +11 -0
- package/src/resources/llm-token-gateway/index.ts +38 -1
- package/src/resources/llm-token-gateway/llm-token-gateway.ts +83 -1
- package/src/resources/llm-token-gateway/spend.ts +309 -0
- package/src/resources/llm-token-gateway/token-groups.ts +724 -0
- package/src/resources/llm-token-gateway/token-keys.ts +422 -0
- package/src/resources/llm-token-gateway/usage.ts +273 -149
- package/src/resources/phone-numbers/jobs.ts +18 -5
- package/src/resources/reputation/numbers.ts +12 -0
- package/src/resources/sip-registration-status.ts +188 -0
- package/src/resources/texml/texml.ts +7 -3
- package/src/resources/webhooks.ts +754 -15
- package/src/resources/whatsapp/index.ts +7 -0
- package/src/resources/whatsapp/phone-numbers/calling-routing.ts +6 -5
- package/src/resources/whatsapp/signup.ts +188 -0
- package/src/resources/whatsapp/whatsapp.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
|
@@ -109,19 +109,19 @@ export namespace GlobalIPAssignmentHealthRetrieveParams {
|
|
|
109
109
|
/**
|
|
110
110
|
* Filter by exact Global IP Assignment ID
|
|
111
111
|
*/
|
|
112
|
-
global_ip_assignment_id?: string | Filter.
|
|
112
|
+
global_ip_assignment_id?: string | Filter.GlobalIPAssignmentIDIn;
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
115
|
* Filter by exact Global IP ID
|
|
116
116
|
*/
|
|
117
|
-
global_ip_id?: string | Filter.
|
|
117
|
+
global_ip_id?: string | Filter.GlobalIPIDIn;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
export namespace Filter {
|
|
121
121
|
/**
|
|
122
122
|
* Filtering operations
|
|
123
123
|
*/
|
|
124
|
-
export interface
|
|
124
|
+
export interface GlobalIPAssignmentIDIn {
|
|
125
125
|
/**
|
|
126
126
|
* Filter by Global IP Assignment ID(s) separated by commas
|
|
127
127
|
*/
|
|
@@ -131,7 +131,7 @@ export namespace GlobalIPAssignmentHealthRetrieveParams {
|
|
|
131
131
|
/**
|
|
132
132
|
* Filtering operations
|
|
133
133
|
*/
|
|
134
|
-
export interface
|
|
134
|
+
export interface GlobalIPIDIn {
|
|
135
135
|
/**
|
|
136
136
|
* Filter by Global IP ID(s) separated by commas
|
|
137
137
|
*/
|
|
@@ -123,19 +123,19 @@ export namespace GlobalIPAssignmentsUsageRetrieveParams {
|
|
|
123
123
|
/**
|
|
124
124
|
* Filter by exact Global IP Assignment ID
|
|
125
125
|
*/
|
|
126
|
-
global_ip_assignment_id?: string | Filter.
|
|
126
|
+
global_ip_assignment_id?: string | Filter.GlobalIPAssignmentIDIn;
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
129
|
* Filter by exact Global IP ID
|
|
130
130
|
*/
|
|
131
|
-
global_ip_id?: string | Filter.
|
|
131
|
+
global_ip_id?: string | Filter.GlobalIPIDIn;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
export namespace Filter {
|
|
135
135
|
/**
|
|
136
136
|
* Filtering operations
|
|
137
137
|
*/
|
|
138
|
-
export interface
|
|
138
|
+
export interface GlobalIPAssignmentIDIn {
|
|
139
139
|
/**
|
|
140
140
|
* Filter by Global IP Assignment ID(s) separated by commas
|
|
141
141
|
*/
|
|
@@ -145,7 +145,7 @@ export namespace GlobalIPAssignmentsUsageRetrieveParams {
|
|
|
145
145
|
/**
|
|
146
146
|
* Filtering operations
|
|
147
147
|
*/
|
|
148
|
-
export interface
|
|
148
|
+
export interface GlobalIPIDIn {
|
|
149
149
|
/**
|
|
150
150
|
* Filter by Global IP ID(s) separated by commas
|
|
151
151
|
*/
|
package/src/resources/index.ts
CHANGED
|
@@ -419,6 +419,7 @@ export {
|
|
|
419
419
|
export {
|
|
420
420
|
EmailTemplates,
|
|
421
421
|
type EmailTemplate,
|
|
422
|
+
type EmailTemplateCommon,
|
|
422
423
|
type EmailTemplateResponse,
|
|
423
424
|
type UpdateEmailTemplateRequest,
|
|
424
425
|
type EmailTemplateRenderResponse,
|
|
@@ -1350,6 +1351,11 @@ export {
|
|
|
1350
1351
|
type SimCardListWirelessConnectivityLogsParams,
|
|
1351
1352
|
type SimCardListWirelessConnectivityLogsResponsesDefaultFlatPagination,
|
|
1352
1353
|
} from './sim-cards/sim-cards';
|
|
1354
|
+
export {
|
|
1355
|
+
SipRegistrationStatus,
|
|
1356
|
+
type SipRegistrationStatusListResponse,
|
|
1357
|
+
type SipRegistrationStatusListParams,
|
|
1358
|
+
} from './sip-registration-status';
|
|
1353
1359
|
export {
|
|
1354
1360
|
SiprecConnectors,
|
|
1355
1361
|
type SiprecConnectorResponse,
|
|
@@ -1680,6 +1686,7 @@ export {
|
|
|
1680
1686
|
type CallConversationCreatedWebhookEvent,
|
|
1681
1687
|
type CallConversationEndedWebhookEvent,
|
|
1682
1688
|
type CallConversationInsightsGeneratedWebhookEvent,
|
|
1689
|
+
type CallConversationStartFailedWebhookEvent,
|
|
1683
1690
|
type CallCostWebhookEvent,
|
|
1684
1691
|
type CallDeepfakeDetectionErrorWebhookEvent,
|
|
1685
1692
|
type CallDeepfakeDetectionResultWebhookEvent,
|
|
@@ -1734,11 +1741,15 @@ export {
|
|
|
1734
1741
|
type HostedNumberOrderEventWebhookEvent,
|
|
1735
1742
|
type InboundMessageWebhookEvent,
|
|
1736
1743
|
type NumberOrderStatusUpdateWebhookEvent,
|
|
1744
|
+
type NumberReputationExternalVerificationStatusChangedWebhookEvent,
|
|
1745
|
+
type NumberReputationNumberFlaggedWebhookEvent,
|
|
1746
|
+
type NumberReputationNumberRemovedWebhookEvent,
|
|
1737
1747
|
type RecordingAvailableWebhookEvent,
|
|
1738
1748
|
type ReplacedLinkClickWebhookEvent,
|
|
1739
1749
|
type SessionStatusChangedWebhookEvent,
|
|
1740
1750
|
type TranscriptCompletedWebhookEvent,
|
|
1741
1751
|
type TranscriptionWebhookEvent,
|
|
1752
|
+
type WhatsappWabaAddedWebhookEvent,
|
|
1742
1753
|
type UnsafeUnwrapWebhookEvent,
|
|
1743
1754
|
type UnwrapWebhookEvent,
|
|
1744
1755
|
type InboundMessagesEmailBracketCursorPagination,
|
|
@@ -1,4 +1,41 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export { LlmTokenGateway } from './llm-token-gateway';
|
|
4
|
-
export {
|
|
4
|
+
export {
|
|
5
|
+
Spend,
|
|
6
|
+
type SpendGroupBy,
|
|
7
|
+
type SpendRetrieveEventsResponse,
|
|
8
|
+
type SpendRetrieveSummaryResponse,
|
|
9
|
+
type SpendRetrieveEventsParams,
|
|
10
|
+
type SpendRetrieveSummaryParams,
|
|
11
|
+
} from './spend';
|
|
12
|
+
export {
|
|
13
|
+
TokenGroups,
|
|
14
|
+
type AIGatewayResourcesPageMeta,
|
|
15
|
+
type BudgetDuration,
|
|
16
|
+
type TokenGroup,
|
|
17
|
+
type TokenGroupResponse,
|
|
18
|
+
type TokenGroupListParams,
|
|
19
|
+
type TokenGroupCreateParams,
|
|
20
|
+
type TokenGroupDeleteParams,
|
|
21
|
+
type TokenGroupUpdateParams,
|
|
22
|
+
type TokenGroupsDefaultFlatPagination,
|
|
23
|
+
} from './token-groups';
|
|
24
|
+
export {
|
|
25
|
+
TokenKeys,
|
|
26
|
+
type TokenKey,
|
|
27
|
+
type TokenKeyResponse,
|
|
28
|
+
type TokenKeyListParams,
|
|
29
|
+
type TokenKeyCreateParams,
|
|
30
|
+
type TokenKeyDeleteParams,
|
|
31
|
+
type TokenKeyUpdateParams,
|
|
32
|
+
type TokenKeysDefaultFlatPagination,
|
|
33
|
+
} from './token-keys';
|
|
34
|
+
export {
|
|
35
|
+
Usage,
|
|
36
|
+
type GuardrailFinding,
|
|
37
|
+
type UsageRetrieveExportResponse,
|
|
38
|
+
type UsageRetrieveSummaryResponse,
|
|
39
|
+
type UsageRetrieveSummaryParams,
|
|
40
|
+
type UsageRetrieveExportParams,
|
|
41
|
+
} from './usage';
|
|
@@ -1,19 +1,101 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as SpendAPI from './spend';
|
|
5
|
+
import {
|
|
6
|
+
Spend,
|
|
7
|
+
SpendGroupBy,
|
|
8
|
+
SpendRetrieveEventsParams,
|
|
9
|
+
SpendRetrieveEventsResponse,
|
|
10
|
+
SpendRetrieveSummaryParams,
|
|
11
|
+
SpendRetrieveSummaryResponse,
|
|
12
|
+
} from './spend';
|
|
13
|
+
import * as TokenGroupsAPI from './token-groups';
|
|
14
|
+
import {
|
|
15
|
+
AIGatewayResourcesPageMeta,
|
|
16
|
+
BudgetDuration,
|
|
17
|
+
TokenGroup,
|
|
18
|
+
TokenGroupCreateParams,
|
|
19
|
+
TokenGroupDeleteParams,
|
|
20
|
+
TokenGroupListParams,
|
|
21
|
+
TokenGroupResponse,
|
|
22
|
+
TokenGroupUpdateParams,
|
|
23
|
+
TokenGroups,
|
|
24
|
+
TokenGroupsDefaultFlatPagination,
|
|
25
|
+
} from './token-groups';
|
|
26
|
+
import * as TokenKeysAPI from './token-keys';
|
|
27
|
+
import {
|
|
28
|
+
TokenKey,
|
|
29
|
+
TokenKeyCreateParams,
|
|
30
|
+
TokenKeyDeleteParams,
|
|
31
|
+
TokenKeyListParams,
|
|
32
|
+
TokenKeyResponse,
|
|
33
|
+
TokenKeyUpdateParams,
|
|
34
|
+
TokenKeys,
|
|
35
|
+
TokenKeysDefaultFlatPagination,
|
|
36
|
+
} from './token-keys';
|
|
4
37
|
import * as UsageAPI from './usage';
|
|
5
|
-
import {
|
|
38
|
+
import {
|
|
39
|
+
GuardrailFinding,
|
|
40
|
+
Usage,
|
|
41
|
+
UsageRetrieveExportParams,
|
|
42
|
+
UsageRetrieveExportResponse,
|
|
43
|
+
UsageRetrieveSummaryParams,
|
|
44
|
+
UsageRetrieveSummaryResponse,
|
|
45
|
+
} from './usage';
|
|
6
46
|
|
|
7
47
|
export class LlmTokenGateway extends APIResource {
|
|
8
48
|
usage: UsageAPI.Usage = new UsageAPI.Usage(this._client);
|
|
49
|
+
spend: SpendAPI.Spend = new SpendAPI.Spend(this._client);
|
|
50
|
+
tokenGroups: TokenGroupsAPI.TokenGroups = new TokenGroupsAPI.TokenGroups(this._client);
|
|
51
|
+
tokenKeys: TokenKeysAPI.TokenKeys = new TokenKeysAPI.TokenKeys(this._client);
|
|
9
52
|
}
|
|
10
53
|
|
|
11
54
|
LlmTokenGateway.Usage = Usage;
|
|
55
|
+
LlmTokenGateway.Spend = Spend;
|
|
56
|
+
LlmTokenGateway.TokenGroups = TokenGroups;
|
|
57
|
+
LlmTokenGateway.TokenKeys = TokenKeys;
|
|
12
58
|
|
|
13
59
|
export declare namespace LlmTokenGateway {
|
|
14
60
|
export {
|
|
15
61
|
Usage as Usage,
|
|
62
|
+
type GuardrailFinding as GuardrailFinding,
|
|
63
|
+
type UsageRetrieveExportResponse as UsageRetrieveExportResponse,
|
|
16
64
|
type UsageRetrieveSummaryResponse as UsageRetrieveSummaryResponse,
|
|
17
65
|
type UsageRetrieveSummaryParams as UsageRetrieveSummaryParams,
|
|
66
|
+
type UsageRetrieveExportParams as UsageRetrieveExportParams,
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export {
|
|
70
|
+
Spend as Spend,
|
|
71
|
+
type SpendGroupBy as SpendGroupBy,
|
|
72
|
+
type SpendRetrieveEventsResponse as SpendRetrieveEventsResponse,
|
|
73
|
+
type SpendRetrieveSummaryResponse as SpendRetrieveSummaryResponse,
|
|
74
|
+
type SpendRetrieveEventsParams as SpendRetrieveEventsParams,
|
|
75
|
+
type SpendRetrieveSummaryParams as SpendRetrieveSummaryParams,
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export {
|
|
79
|
+
TokenGroups as TokenGroups,
|
|
80
|
+
type AIGatewayResourcesPageMeta as AIGatewayResourcesPageMeta,
|
|
81
|
+
type BudgetDuration as BudgetDuration,
|
|
82
|
+
type TokenGroup as TokenGroup,
|
|
83
|
+
type TokenGroupResponse as TokenGroupResponse,
|
|
84
|
+
type TokenGroupsDefaultFlatPagination as TokenGroupsDefaultFlatPagination,
|
|
85
|
+
type TokenGroupListParams as TokenGroupListParams,
|
|
86
|
+
type TokenGroupCreateParams as TokenGroupCreateParams,
|
|
87
|
+
type TokenGroupDeleteParams as TokenGroupDeleteParams,
|
|
88
|
+
type TokenGroupUpdateParams as TokenGroupUpdateParams,
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export {
|
|
92
|
+
TokenKeys as TokenKeys,
|
|
93
|
+
type TokenKey as TokenKey,
|
|
94
|
+
type TokenKeyResponse as TokenKeyResponse,
|
|
95
|
+
type TokenKeysDefaultFlatPagination as TokenKeysDefaultFlatPagination,
|
|
96
|
+
type TokenKeyListParams as TokenKeyListParams,
|
|
97
|
+
type TokenKeyCreateParams as TokenKeyCreateParams,
|
|
98
|
+
type TokenKeyDeleteParams as TokenKeyDeleteParams,
|
|
99
|
+
type TokenKeyUpdateParams as TokenKeyUpdateParams,
|
|
18
100
|
};
|
|
19
101
|
}
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as SpendAPI from './spend';
|
|
5
|
+
import { APIPromise } from '../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Manage and report AI Gateway usage.
|
|
10
|
+
*/
|
|
11
|
+
export class Spend extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Return request-level usage history for the authenticated account. Supply both
|
|
14
|
+
* UTC dates or neither; omitting both returns the previous full UTC day. Dates use
|
|
15
|
+
* a half-open range [start_date, end_date) of at most 31 days. Cost reflects
|
|
16
|
+
* budget reference rates, not invoice charges. Unknown spend is excluded and
|
|
17
|
+
* reported separately. The report snapshot supports at most 10,000 matching
|
|
18
|
+
* requests, independently of page size. Exceeding this bound returns HTTP 503
|
|
19
|
+
* without partial results. Narrow the date range or resource filters before
|
|
20
|
+
* retrying. A failed report must not be interpreted as zero usage. Request tags
|
|
21
|
+
* can filter either report and metadata:<key> can group the summary.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const response =
|
|
26
|
+
* await client.llmTokenGateway.spend.retrieveEvents();
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
retrieveEvents(
|
|
30
|
+
query: SpendRetrieveEventsParams | null | undefined = {},
|
|
31
|
+
options?: RequestOptions,
|
|
32
|
+
): APIPromise<SpendRetrieveEventsResponse> {
|
|
33
|
+
return this._client.get('/llm_token_gateway/spend/events', { query, ...options });
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Return request counts, token counts and reference spend grouped by one
|
|
38
|
+
* attribution dimension. Both UTC dates and group_by are required. Dates use a
|
|
39
|
+
* half-open range [start_date, end_date) of at most 31 days. Cost reflects budget
|
|
40
|
+
* reference rates, not invoice charges. Unknown spend is excluded and reported
|
|
41
|
+
* separately. The report snapshot supports at most 10,000 matching requests,
|
|
42
|
+
* independently of page size. Exceeding this bound returns HTTP 503 without
|
|
43
|
+
* partial results. Narrow the date range or resource filters before retrying. A
|
|
44
|
+
* failed report must not be interpreted as zero usage. Request tags can filter
|
|
45
|
+
* either report and metadata:<key> can group the summary.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const response =
|
|
50
|
+
* await client.llmTokenGateway.spend.retrieveSummary({
|
|
51
|
+
* end_date: '2019-12-27',
|
|
52
|
+
* group_by: 'token_group',
|
|
53
|
+
* start_date: '2019-12-27',
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
retrieveSummary(
|
|
58
|
+
query: SpendRetrieveSummaryParams,
|
|
59
|
+
options?: RequestOptions,
|
|
60
|
+
): APIPromise<SpendRetrieveSummaryResponse> {
|
|
61
|
+
return this._client.get('/llm_token_gateway/spend/summary', { query, ...options });
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Group by one request tag key. Keys starting with ltg*, telnyx*, litellm* or cf*
|
|
67
|
+
* (any case) are rejected.
|
|
68
|
+
*/
|
|
69
|
+
export type SpendGroupBy = 'token_group' | 'token_user' | 'token_key' | 'end_user' | (string & {});
|
|
70
|
+
|
|
71
|
+
export interface SpendRetrieveEventsResponse {
|
|
72
|
+
data: Array<SpendRetrieveEventsResponse.Data>;
|
|
73
|
+
|
|
74
|
+
meta: SpendRetrieveEventsResponse.Meta;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export namespace SpendRetrieveEventsResponse {
|
|
78
|
+
export interface Data {
|
|
79
|
+
id: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Provider attempts begun for the request (fallbacks included); 0 for a cache hit.
|
|
83
|
+
* Token and cost totals sum every attempt.
|
|
84
|
+
*/
|
|
85
|
+
attempts: number;
|
|
86
|
+
|
|
87
|
+
biller: 'telnyx' | 'provider' | 'none';
|
|
88
|
+
|
|
89
|
+
cache_hit: boolean;
|
|
90
|
+
|
|
91
|
+
configuration_version: number;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* USD, decimal precision at most 6 places; parse exactly to integer micro-USD,
|
|
95
|
+
* never binary float accounting.
|
|
96
|
+
*/
|
|
97
|
+
cost: number | null;
|
|
98
|
+
|
|
99
|
+
created_at: string;
|
|
100
|
+
|
|
101
|
+
end_user_id: string | null;
|
|
102
|
+
|
|
103
|
+
input_tokens: number | null;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Customer request tags from the x-ltg-metadata header: up to 5 entries. Keys are
|
|
107
|
+
* case-sensitive; keys starting with ltg*, telnyx*, litellm* or cf* (any case) are
|
|
108
|
+
* reserved. Values are strings (1-256 characters, no control or format
|
|
109
|
+
* characters), integers within +/-9007199254740991, or booleans; floats, null,
|
|
110
|
+
* objects and arrays are rejected. Values that look like credentials are rejected.
|
|
111
|
+
* Tags are attribution only: never forwarded upstream, never part of the response
|
|
112
|
+
* cache key, never used for budgets or routing. An untagged request reports {}.
|
|
113
|
+
*/
|
|
114
|
+
metadata: { [key: string]: string | number | boolean };
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Public alias that served (the last attempt); rate_version, biller and
|
|
118
|
+
* provider_key_id follow it.
|
|
119
|
+
*/
|
|
120
|
+
model: string;
|
|
121
|
+
|
|
122
|
+
output_tokens: number | null;
|
|
123
|
+
|
|
124
|
+
provider_key_id: string | null;
|
|
125
|
+
|
|
126
|
+
rate_version: string;
|
|
127
|
+
|
|
128
|
+
request_id: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Public alias the caller requested; differs from model only when a group fallback
|
|
132
|
+
* served.
|
|
133
|
+
*/
|
|
134
|
+
requested_model: string;
|
|
135
|
+
|
|
136
|
+
reservation_micro_usd: number;
|
|
137
|
+
|
|
138
|
+
status: 'succeeded' | 'failed' | 'partial' | 'unknown';
|
|
139
|
+
|
|
140
|
+
token_group_id: string;
|
|
141
|
+
|
|
142
|
+
token_key_id: string;
|
|
143
|
+
|
|
144
|
+
token_user_id: string | null;
|
|
145
|
+
|
|
146
|
+
usage_status: 'known' | 'unknown' | 'reconciled';
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export interface Meta {
|
|
150
|
+
has_more: boolean;
|
|
151
|
+
|
|
152
|
+
page_number: number;
|
|
153
|
+
|
|
154
|
+
page_size: number;
|
|
155
|
+
|
|
156
|
+
snapshot: string;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface SpendRetrieveSummaryResponse {
|
|
161
|
+
data: Array<SpendRetrieveSummaryResponse.Data>;
|
|
162
|
+
|
|
163
|
+
meta: SpendRetrieveSummaryResponse.Meta;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export namespace SpendRetrieveSummaryResponse {
|
|
167
|
+
export interface Data {
|
|
168
|
+
dimension_id: string | null;
|
|
169
|
+
|
|
170
|
+
input_tokens: number;
|
|
171
|
+
|
|
172
|
+
name: string | null;
|
|
173
|
+
|
|
174
|
+
output_tokens: number;
|
|
175
|
+
|
|
176
|
+
requests: number;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* USD, decimal precision at most 6 places; parse exactly to integer micro-USD,
|
|
180
|
+
* never binary float accounting.
|
|
181
|
+
*/
|
|
182
|
+
reserved_spend: number;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* USD, decimal precision at most 6 places; parse exactly to integer micro-USD,
|
|
186
|
+
* never binary float accounting.
|
|
187
|
+
*/
|
|
188
|
+
spend: number;
|
|
189
|
+
|
|
190
|
+
unknown_requests: number;
|
|
191
|
+
|
|
192
|
+
end_user_id?: string | null;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Present only for group_by=metadata:<key>: the tag key. dimension_id is then the
|
|
196
|
+
* tag value in text form (booleans as true/false, integers in decimal), or null
|
|
197
|
+
* for requests without the key; name is null.
|
|
198
|
+
*/
|
|
199
|
+
metadata_key?: string;
|
|
200
|
+
|
|
201
|
+
token_group_id?: string | null;
|
|
202
|
+
|
|
203
|
+
token_key_id?: string | null;
|
|
204
|
+
|
|
205
|
+
token_user_id?: string | null;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export interface Meta {
|
|
209
|
+
end_date: string;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Group by one request tag key. Keys starting with ltg*, telnyx*, litellm* or cf*
|
|
213
|
+
* (any case) are rejected.
|
|
214
|
+
*/
|
|
215
|
+
group_by: SpendAPI.SpendGroupBy;
|
|
216
|
+
|
|
217
|
+
has_more: boolean;
|
|
218
|
+
|
|
219
|
+
page_number: number;
|
|
220
|
+
|
|
221
|
+
page_size: number;
|
|
222
|
+
|
|
223
|
+
snapshot: string;
|
|
224
|
+
|
|
225
|
+
start_date: string;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export interface SpendRetrieveEventsParams {
|
|
230
|
+
end_date?: string;
|
|
231
|
+
|
|
232
|
+
end_user_id?: string;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Request tag filters as metadata[<key>]=<value>, at most 5, combined with AND. A
|
|
236
|
+
* value matches the tag's text form exactly (booleans as true/false, integers in
|
|
237
|
+
* decimal), so metadata[flag]=true matches both boolean true and the string
|
|
238
|
+
* "true". Keys are case-sensitive; reserved-prefix keys are rejected. Unindexed:
|
|
239
|
+
* bounded by the account, the date range and the report timeout.
|
|
240
|
+
*/
|
|
241
|
+
metadata?: { [key: string]: string };
|
|
242
|
+
|
|
243
|
+
'page[number]'?: number;
|
|
244
|
+
|
|
245
|
+
'page[size]'?: number;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Required after page 1; account/filter-bound 15-minute stable snapshot;
|
|
249
|
+
* expired/mismatch 409.
|
|
250
|
+
*/
|
|
251
|
+
'page[snapshot]'?: string;
|
|
252
|
+
|
|
253
|
+
start_date?: string;
|
|
254
|
+
|
|
255
|
+
token_group_id?: string;
|
|
256
|
+
|
|
257
|
+
token_key_id?: string;
|
|
258
|
+
|
|
259
|
+
token_user_id?: string;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export interface SpendRetrieveSummaryParams {
|
|
263
|
+
end_date: string;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* A scope, or metadata:<key> to group by one request tag's text-form value;
|
|
267
|
+
* requests without the key form one group with a null dimension_id.
|
|
268
|
+
*/
|
|
269
|
+
group_by: SpendGroupBy;
|
|
270
|
+
|
|
271
|
+
start_date: string;
|
|
272
|
+
|
|
273
|
+
end_user_id?: string;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Request tag filters as metadata[<key>]=<value>, at most 5, combined with AND. A
|
|
277
|
+
* value matches the tag's text form exactly (booleans as true/false, integers in
|
|
278
|
+
* decimal), so metadata[flag]=true matches both boolean true and the string
|
|
279
|
+
* "true". Keys are case-sensitive; reserved-prefix keys are rejected. Unindexed:
|
|
280
|
+
* bounded by the account, the date range and the report timeout.
|
|
281
|
+
*/
|
|
282
|
+
metadata?: { [key: string]: string };
|
|
283
|
+
|
|
284
|
+
'page[number]'?: number;
|
|
285
|
+
|
|
286
|
+
'page[size]'?: number;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Required after page 1; account/filter-bound 15-minute stable snapshot;
|
|
290
|
+
* expired/mismatch 409.
|
|
291
|
+
*/
|
|
292
|
+
'page[snapshot]'?: string;
|
|
293
|
+
|
|
294
|
+
token_group_id?: string;
|
|
295
|
+
|
|
296
|
+
token_key_id?: string;
|
|
297
|
+
|
|
298
|
+
token_user_id?: string;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export declare namespace Spend {
|
|
302
|
+
export {
|
|
303
|
+
type SpendGroupBy as SpendGroupBy,
|
|
304
|
+
type SpendRetrieveEventsResponse as SpendRetrieveEventsResponse,
|
|
305
|
+
type SpendRetrieveSummaryResponse as SpendRetrieveSummaryResponse,
|
|
306
|
+
type SpendRetrieveEventsParams as SpendRetrieveEventsParams,
|
|
307
|
+
type SpendRetrieveSummaryParams as SpendRetrieveSummaryParams,
|
|
308
|
+
};
|
|
309
|
+
}
|