telnyx 7.24.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 +7 -0
- package/client.d.mts +19 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +19 -4
- 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 +7 -6
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +7 -6
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +320 -28
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +320 -28
- 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 +36 -0
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +36 -0
- 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/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 +2 -2
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +2 -2
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/memory/index.d.mts +1 -1
- package/resources/ai/memory/index.d.mts.map +1 -1
- package/resources/ai/memory/index.d.ts +1 -1
- package/resources/ai/memory/index.d.ts.map +1 -1
- package/resources/ai/memory/index.js.map +1 -1
- package/resources/ai/memory/index.mjs +1 -1
- package/resources/ai/memory/index.mjs.map +1 -1
- package/resources/ai/memory/memory.d.mts +2 -2
- package/resources/ai/memory/memory.d.mts.map +1 -1
- package/resources/ai/memory/memory.d.ts +2 -2
- package/resources/ai/memory/memory.d.ts.map +1 -1
- package/resources/ai/memory/memory.js.map +1 -1
- package/resources/ai/memory/memory.mjs +1 -1
- package/resources/ai/memory/memory.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 +1 -1
- package/resources/ai/memory/namespaces/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.mts +60 -4
- package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.ts +60 -4
- package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.js +41 -3
- package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.mjs +41 -3
- package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
- 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/calls/actions.d.mts +76 -17
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +76 -17
- 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 +48 -11
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +48 -11
- 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/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/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 +4 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -2
- 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/meeting-sessions.d.mts +8 -9
- package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.ts +8 -9
- package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.js +6 -6
- package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.mjs +6 -6
- package/resources/meeting-sessions/meeting-sessions.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/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/text-to-speech/text-to-speech.d.mts +4 -2
- package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.ts +4 -2
- package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
- package/resources/webhooks.d.mts +403 -5
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +403 -5
- 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 +55 -0
- package/src/resources/ai/ai.ts +13 -4
- package/src/resources/ai/assistants/assistants.ts +384 -28
- package/src/resources/ai/assistants/deleted.ts +86 -0
- package/src/resources/ai/assistants/index.ts +11 -0
- package/src/resources/ai/assistants/versions.ts +40 -0
- package/src/resources/ai/chat.ts +7 -2
- package/src/resources/ai/embeddings/embeddings.ts +1 -1
- package/src/resources/ai/index.ts +5 -1
- package/src/resources/ai/memory/index.ts +9 -1
- package/src/resources/ai/memory/memory.ts +13 -1
- package/src/resources/ai/memory/namespaces/index.ts +9 -1
- package/src/resources/ai/memory/namespaces/namespaces.ts +81 -3
- package/src/resources/ai/openai/chat.ts +7 -2
- package/src/resources/ai/tools.ts +6 -6
- package/src/resources/calls/actions.ts +76 -15
- package/src/resources/calls/calls.ts +49 -9
- 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/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 +20 -0
- 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/meeting-sessions.ts +8 -9
- 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/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/text-to-speech/text-to-speech.ts +4 -2
- package/src/resources/webhooks.ts +495 -2
- 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 @@
|
|
|
1
|
+
{"version":3,"file":"llm-token-gateway.d.mts","sourceRoot":"","sources":["../../src/resources/llm-token-gateway/llm-token-gateway.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAAE,KAAK,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,oBAAgB;AAE1F,qBAAa,eAAgB,SAAQ,WAAW;IAC9C,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;CAC1D;AAID,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as UsageAPI from "./usage.js";
|
|
3
|
+
import { Usage, UsageRetrieveSummaryParams, UsageRetrieveSummaryResponse } from "./usage.js";
|
|
4
|
+
export declare class LlmTokenGateway extends APIResource {
|
|
5
|
+
usage: UsageAPI.Usage;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace LlmTokenGateway {
|
|
8
|
+
export { Usage as Usage, type UsageRetrieveSummaryResponse as UsageRetrieveSummaryResponse, type UsageRetrieveSummaryParams as UsageRetrieveSummaryParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=llm-token-gateway.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm-token-gateway.d.ts","sourceRoot":"","sources":["../../src/resources/llm-token-gateway/llm-token-gateway.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EAAE,KAAK,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,mBAAgB;AAE1F,qBAAa,eAAgB,SAAQ,WAAW;IAC9C,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;CAC1D;AAID,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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.LlmTokenGateway = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const UsageAPI = tslib_1.__importStar(require("./usage.js"));
|
|
8
|
+
const usage_1 = require("./usage.js");
|
|
9
|
+
class LlmTokenGateway extends resource_1.APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.usage = new UsageAPI.Usage(this._client);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.LlmTokenGateway = LlmTokenGateway;
|
|
16
|
+
LlmTokenGateway.Usage = usage_1.Usage;
|
|
17
|
+
//# sourceMappingURL=llm-token-gateway.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm-token-gateway.js","sourceRoot":"","sources":["../../src/resources/llm-token-gateway/llm-token-gateway.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,6DAAoC;AACpC,sCAA0F;AAE1F,MAAa,eAAgB,SAAQ,sBAAW;IAAhD;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAAA;AAFD,0CAEC;AAED,eAAe,CAAC,KAAK,GAAG,aAAK,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as UsageAPI from "./usage.mjs";
|
|
4
|
+
import { Usage } from "./usage.mjs";
|
|
5
|
+
export class LlmTokenGateway extends APIResource {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.usage = new UsageAPI.Usage(this._client);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
LlmTokenGateway.Usage = Usage;
|
|
12
|
+
//# sourceMappingURL=llm-token-gateway.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm-token-gateway.mjs","sourceRoot":"","sources":["../../src/resources/llm-token-gateway/llm-token-gateway.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAAE,KAAK,EAA4D,oBAAgB;AAE1F,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAAhD;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAAA;AAED,eAAe,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Manage and report AI Gateway traffic.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Usage extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Return complete usage totals, UTC daily and model breakdowns, and guardrail
|
|
10
|
+
* event counts for one token group owned by the authenticated account. Requires
|
|
11
|
+
* the llm_token_gateway.usage.read permission; spend and guardrail read
|
|
12
|
+
* permissions do not grant this combined report. All sections share one database
|
|
13
|
+
* snapshot and include the latest usage corrections. Dates use an inclusive start
|
|
14
|
+
* and exclusive end spanning 1 to 31 days. Only token_group_id, start_date and
|
|
15
|
+
* end_date are accepted; pagination, group_by and other filters are rejected.
|
|
16
|
+
* Spend is reference/enforcement USD, not invoice truth or BYOK provider charges.
|
|
17
|
+
* Unknown cost is excluded from spend and reported through unknown_requests and
|
|
18
|
+
* reserved_spend. Daily rows include zero-activity days. Model rows are ordered by
|
|
19
|
+
* request count descending, then model name, and are limited to 1,000. Guardrail
|
|
20
|
+
* counts count events, not distinct requests; recent_events contains at most 20
|
|
21
|
+
* newest events. A report that exceeds model or query limits returns 503 rather
|
|
22
|
+
* than a truncated success.
|
|
23
|
+
*/
|
|
24
|
+
retrieveSummary(query: UsageRetrieveSummaryParams, options?: RequestOptions): APIPromise<UsageRetrieveSummaryResponse>;
|
|
25
|
+
}
|
|
26
|
+
export interface UsageRetrieveSummaryResponse {
|
|
27
|
+
data: UsageRetrieveSummaryResponse.Data;
|
|
28
|
+
meta: UsageRetrieveSummaryResponse.Meta;
|
|
29
|
+
}
|
|
30
|
+
export declare namespace UsageRetrieveSummaryResponse {
|
|
31
|
+
interface Data {
|
|
32
|
+
/**
|
|
33
|
+
* One row per UTC day, including zero-activity days.
|
|
34
|
+
*/
|
|
35
|
+
by_day: Array<Data.ByDay>;
|
|
36
|
+
/**
|
|
37
|
+
* One row per model, ordered by request count descending then model name.
|
|
38
|
+
*/
|
|
39
|
+
by_model: Array<Data.ByModel>;
|
|
40
|
+
/**
|
|
41
|
+
* Complete guardrail event counts and bounded recent findings for the same group
|
|
42
|
+
* and range.
|
|
43
|
+
*/
|
|
44
|
+
guardrails: Data.Guardrails;
|
|
45
|
+
/**
|
|
46
|
+
* Metrics for all matching requests.
|
|
47
|
+
*/
|
|
48
|
+
totals: Data.Totals;
|
|
49
|
+
}
|
|
50
|
+
namespace Data {
|
|
51
|
+
interface ByDay {
|
|
52
|
+
/**
|
|
53
|
+
* Requests served from the gateway cache.
|
|
54
|
+
*/
|
|
55
|
+
cache_hits: number;
|
|
56
|
+
/**
|
|
57
|
+
* UTC day.
|
|
58
|
+
*/
|
|
59
|
+
date: string;
|
|
60
|
+
/**
|
|
61
|
+
* Requests classified as failed.
|
|
62
|
+
*/
|
|
63
|
+
failed_requests: number;
|
|
64
|
+
/**
|
|
65
|
+
* Independently known input tokens across attempts, including corrected usage.
|
|
66
|
+
*/
|
|
67
|
+
input_tokens: number;
|
|
68
|
+
/**
|
|
69
|
+
* Independently known output tokens across attempts, including corrected usage.
|
|
70
|
+
*/
|
|
71
|
+
output_tokens: number;
|
|
72
|
+
/**
|
|
73
|
+
* Requests classified as partial after streaming began.
|
|
74
|
+
*/
|
|
75
|
+
partial_requests: number;
|
|
76
|
+
/**
|
|
77
|
+
* Number of matching requests.
|
|
78
|
+
*/
|
|
79
|
+
requests: number;
|
|
80
|
+
/**
|
|
81
|
+
* Unresolved budget reservations in USD.
|
|
82
|
+
*/
|
|
83
|
+
reserved_spend: number;
|
|
84
|
+
/**
|
|
85
|
+
* Sum of known reference/enforcement cost in USD.
|
|
86
|
+
*/
|
|
87
|
+
spend: number;
|
|
88
|
+
/**
|
|
89
|
+
* Requests classified as succeeded.
|
|
90
|
+
*/
|
|
91
|
+
succeeded_requests: number;
|
|
92
|
+
/**
|
|
93
|
+
* Requests whose cost remains unresolved; unknown cost is excluded from spend.
|
|
94
|
+
*/
|
|
95
|
+
unknown_requests: number;
|
|
96
|
+
}
|
|
97
|
+
interface ByModel {
|
|
98
|
+
/**
|
|
99
|
+
* Requests served from the gateway cache.
|
|
100
|
+
*/
|
|
101
|
+
cache_hits: number;
|
|
102
|
+
/**
|
|
103
|
+
* Requests classified as failed.
|
|
104
|
+
*/
|
|
105
|
+
failed_requests: number;
|
|
106
|
+
/**
|
|
107
|
+
* Independently known input tokens across attempts, including corrected usage.
|
|
108
|
+
*/
|
|
109
|
+
input_tokens: number;
|
|
110
|
+
/**
|
|
111
|
+
* Model identifier.
|
|
112
|
+
*/
|
|
113
|
+
model: string;
|
|
114
|
+
/**
|
|
115
|
+
* Independently known output tokens across attempts, including corrected usage.
|
|
116
|
+
*/
|
|
117
|
+
output_tokens: number;
|
|
118
|
+
/**
|
|
119
|
+
* Requests classified as partial after streaming began.
|
|
120
|
+
*/
|
|
121
|
+
partial_requests: number;
|
|
122
|
+
/**
|
|
123
|
+
* Number of matching requests.
|
|
124
|
+
*/
|
|
125
|
+
requests: number;
|
|
126
|
+
/**
|
|
127
|
+
* Unresolved budget reservations in USD.
|
|
128
|
+
*/
|
|
129
|
+
reserved_spend: number;
|
|
130
|
+
/**
|
|
131
|
+
* Sum of known reference/enforcement cost in USD.
|
|
132
|
+
*/
|
|
133
|
+
spend: number;
|
|
134
|
+
/**
|
|
135
|
+
* Requests classified as succeeded.
|
|
136
|
+
*/
|
|
137
|
+
succeeded_requests: number;
|
|
138
|
+
/**
|
|
139
|
+
* Requests whose cost remains unresolved; unknown cost is excluded from spend.
|
|
140
|
+
*/
|
|
141
|
+
unknown_requests: number;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Complete guardrail event counts and bounded recent findings for the same group
|
|
145
|
+
* and range.
|
|
146
|
+
*/
|
|
147
|
+
interface Guardrails {
|
|
148
|
+
/**
|
|
149
|
+
* Total blocked guardrail events, not distinct requests.
|
|
150
|
+
*/
|
|
151
|
+
blocked_events: number;
|
|
152
|
+
/**
|
|
153
|
+
* Total flagged guardrail events, not distinct requests.
|
|
154
|
+
*/
|
|
155
|
+
flagged_events: number;
|
|
156
|
+
/**
|
|
157
|
+
* Up to 20 newest privacy-safe guardrail events, ordered by creation time
|
|
158
|
+
* descending and event ID.
|
|
159
|
+
*/
|
|
160
|
+
recent_events: Array<Guardrails.RecentEvent>;
|
|
161
|
+
}
|
|
162
|
+
namespace Guardrails {
|
|
163
|
+
interface RecentEvent {
|
|
164
|
+
id: string;
|
|
165
|
+
created_at: string;
|
|
166
|
+
end_user_id: string | null;
|
|
167
|
+
evaluation_input_tokens: number | null;
|
|
168
|
+
evaluation_output_tokens: number | null;
|
|
169
|
+
findings: Array<RecentEvent.Finding>;
|
|
170
|
+
/**
|
|
171
|
+
* Model identifier.
|
|
172
|
+
*/
|
|
173
|
+
model: string;
|
|
174
|
+
outcome: 'evaluated' | 'flagged' | 'blocked' | 'unevaluated';
|
|
175
|
+
record_type: 'guardrail_event';
|
|
176
|
+
request_id: string;
|
|
177
|
+
stage: 'prompt' | 'response';
|
|
178
|
+
token_group_id: string;
|
|
179
|
+
token_key_id: string;
|
|
180
|
+
token_user_id: string | null;
|
|
181
|
+
}
|
|
182
|
+
namespace RecentEvent {
|
|
183
|
+
interface Finding {
|
|
184
|
+
action: 'flag' | 'block';
|
|
185
|
+
code: string;
|
|
186
|
+
count: number;
|
|
187
|
+
detector: 'secrets' | 'dlp' | 'safety';
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Metrics for all matching requests.
|
|
193
|
+
*/
|
|
194
|
+
interface Totals {
|
|
195
|
+
/**
|
|
196
|
+
* Requests served from the gateway cache.
|
|
197
|
+
*/
|
|
198
|
+
cache_hits: number;
|
|
199
|
+
/**
|
|
200
|
+
* Requests classified as failed.
|
|
201
|
+
*/
|
|
202
|
+
failed_requests: number;
|
|
203
|
+
/**
|
|
204
|
+
* Independently known input tokens across attempts, including corrected usage.
|
|
205
|
+
*/
|
|
206
|
+
input_tokens: number;
|
|
207
|
+
/**
|
|
208
|
+
* Independently known output tokens across attempts, including corrected usage.
|
|
209
|
+
*/
|
|
210
|
+
output_tokens: number;
|
|
211
|
+
/**
|
|
212
|
+
* Requests classified as partial after streaming began.
|
|
213
|
+
*/
|
|
214
|
+
partial_requests: number;
|
|
215
|
+
/**
|
|
216
|
+
* Number of matching requests.
|
|
217
|
+
*/
|
|
218
|
+
requests: number;
|
|
219
|
+
/**
|
|
220
|
+
* Unresolved budget reservations in USD.
|
|
221
|
+
*/
|
|
222
|
+
reserved_spend: number;
|
|
223
|
+
/**
|
|
224
|
+
* Sum of known reference/enforcement cost in USD.
|
|
225
|
+
*/
|
|
226
|
+
spend: number;
|
|
227
|
+
/**
|
|
228
|
+
* Requests classified as succeeded.
|
|
229
|
+
*/
|
|
230
|
+
succeeded_requests: number;
|
|
231
|
+
/**
|
|
232
|
+
* Requests whose cost remains unresolved; unknown cost is excluded from spend.
|
|
233
|
+
*/
|
|
234
|
+
unknown_requests: number;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
interface Meta {
|
|
238
|
+
end_date: string;
|
|
239
|
+
start_date: string;
|
|
240
|
+
token_group_id: string;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
export interface UsageRetrieveSummaryParams {
|
|
244
|
+
/**
|
|
245
|
+
* Exclusive UTC date in YYYY-MM-DD format. Must follow start_date by 1 to 31 days.
|
|
246
|
+
*/
|
|
247
|
+
end_date: string;
|
|
248
|
+
/**
|
|
249
|
+
* Inclusive UTC date in YYYY-MM-DD format. Must precede end_date by 1 to 31 days.
|
|
250
|
+
*/
|
|
251
|
+
start_date: string;
|
|
252
|
+
/**
|
|
253
|
+
* ID of a token group owned by the authenticated account.
|
|
254
|
+
*/
|
|
255
|
+
token_group_id: string;
|
|
256
|
+
}
|
|
257
|
+
export declare namespace Usage {
|
|
258
|
+
export { type UsageRetrieveSummaryResponse as UsageRetrieveSummaryResponse, type UsageRetrieveSummaryParams as UsageRetrieveSummaryParams, };
|
|
259
|
+
}
|
|
260
|
+
//# sourceMappingURL=usage.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage.d.mts","sourceRoot":"","sources":["../../src/resources/llm-token-gateway/usage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;OAeG;IACH,eAAe,CACb,KAAK,EAAE,0BAA0B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAG5C;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,4BAA4B,CAAC,IAAI,CAAC;IAExC,IAAI,EAAE,4BAA4B,CAAC,IAAI,CAAC;CACzC;AAED,yBAAiB,4BAA4B,CAAC;IAC5C,UAAiB,IAAI;QACnB;;WAEG;QACH,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,KA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MAAM,CAAC;YAErB;;eAEG;YACH,aAAa,EAAE,MAAM,CAAC;YAEtB;;eAEG;YACH,gBAAgB,EAAE,MAAM,CAAC;YAEzB;;eAEG;YACH,QAAQ,EAAE,MAAM,CAAC;YAEjB;;eAEG;YACH,cAAc,EAAE,MAAM,CAAC;YAEvB;;eAEG;YACH,KAAK,EAAE,MAAM,CAAC;YAEd;;eAEG;YACH,kBAAkB,EAAE,MAAM,CAAC;YAE3B;;eAEG;YACH,gBAAgB,EAAE,MAAM,CAAC;SAC1B;KACF;IAED,UAAiB,IAAI;QACnB,QAAQ,EAAE,MAAM,CAAC;QAEjB,UAAU,EAAE,MAAM,CAAC;QAEnB,cAAc,EAAE,MAAM,CAAC;KACxB;CACF;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Manage and report AI Gateway traffic.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Usage extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Return complete usage totals, UTC daily and model breakdowns, and guardrail
|
|
10
|
+
* event counts for one token group owned by the authenticated account. Requires
|
|
11
|
+
* the llm_token_gateway.usage.read permission; spend and guardrail read
|
|
12
|
+
* permissions do not grant this combined report. All sections share one database
|
|
13
|
+
* snapshot and include the latest usage corrections. Dates use an inclusive start
|
|
14
|
+
* and exclusive end spanning 1 to 31 days. Only token_group_id, start_date and
|
|
15
|
+
* end_date are accepted; pagination, group_by and other filters are rejected.
|
|
16
|
+
* Spend is reference/enforcement USD, not invoice truth or BYOK provider charges.
|
|
17
|
+
* Unknown cost is excluded from spend and reported through unknown_requests and
|
|
18
|
+
* reserved_spend. Daily rows include zero-activity days. Model rows are ordered by
|
|
19
|
+
* request count descending, then model name, and are limited to 1,000. Guardrail
|
|
20
|
+
* counts count events, not distinct requests; recent_events contains at most 20
|
|
21
|
+
* newest events. A report that exceeds model or query limits returns 503 rather
|
|
22
|
+
* than a truncated success.
|
|
23
|
+
*/
|
|
24
|
+
retrieveSummary(query: UsageRetrieveSummaryParams, options?: RequestOptions): APIPromise<UsageRetrieveSummaryResponse>;
|
|
25
|
+
}
|
|
26
|
+
export interface UsageRetrieveSummaryResponse {
|
|
27
|
+
data: UsageRetrieveSummaryResponse.Data;
|
|
28
|
+
meta: UsageRetrieveSummaryResponse.Meta;
|
|
29
|
+
}
|
|
30
|
+
export declare namespace UsageRetrieveSummaryResponse {
|
|
31
|
+
interface Data {
|
|
32
|
+
/**
|
|
33
|
+
* One row per UTC day, including zero-activity days.
|
|
34
|
+
*/
|
|
35
|
+
by_day: Array<Data.ByDay>;
|
|
36
|
+
/**
|
|
37
|
+
* One row per model, ordered by request count descending then model name.
|
|
38
|
+
*/
|
|
39
|
+
by_model: Array<Data.ByModel>;
|
|
40
|
+
/**
|
|
41
|
+
* Complete guardrail event counts and bounded recent findings for the same group
|
|
42
|
+
* and range.
|
|
43
|
+
*/
|
|
44
|
+
guardrails: Data.Guardrails;
|
|
45
|
+
/**
|
|
46
|
+
* Metrics for all matching requests.
|
|
47
|
+
*/
|
|
48
|
+
totals: Data.Totals;
|
|
49
|
+
}
|
|
50
|
+
namespace Data {
|
|
51
|
+
interface ByDay {
|
|
52
|
+
/**
|
|
53
|
+
* Requests served from the gateway cache.
|
|
54
|
+
*/
|
|
55
|
+
cache_hits: number;
|
|
56
|
+
/**
|
|
57
|
+
* UTC day.
|
|
58
|
+
*/
|
|
59
|
+
date: string;
|
|
60
|
+
/**
|
|
61
|
+
* Requests classified as failed.
|
|
62
|
+
*/
|
|
63
|
+
failed_requests: number;
|
|
64
|
+
/**
|
|
65
|
+
* Independently known input tokens across attempts, including corrected usage.
|
|
66
|
+
*/
|
|
67
|
+
input_tokens: number;
|
|
68
|
+
/**
|
|
69
|
+
* Independently known output tokens across attempts, including corrected usage.
|
|
70
|
+
*/
|
|
71
|
+
output_tokens: number;
|
|
72
|
+
/**
|
|
73
|
+
* Requests classified as partial after streaming began.
|
|
74
|
+
*/
|
|
75
|
+
partial_requests: number;
|
|
76
|
+
/**
|
|
77
|
+
* Number of matching requests.
|
|
78
|
+
*/
|
|
79
|
+
requests: number;
|
|
80
|
+
/**
|
|
81
|
+
* Unresolved budget reservations in USD.
|
|
82
|
+
*/
|
|
83
|
+
reserved_spend: number;
|
|
84
|
+
/**
|
|
85
|
+
* Sum of known reference/enforcement cost in USD.
|
|
86
|
+
*/
|
|
87
|
+
spend: number;
|
|
88
|
+
/**
|
|
89
|
+
* Requests classified as succeeded.
|
|
90
|
+
*/
|
|
91
|
+
succeeded_requests: number;
|
|
92
|
+
/**
|
|
93
|
+
* Requests whose cost remains unresolved; unknown cost is excluded from spend.
|
|
94
|
+
*/
|
|
95
|
+
unknown_requests: number;
|
|
96
|
+
}
|
|
97
|
+
interface ByModel {
|
|
98
|
+
/**
|
|
99
|
+
* Requests served from the gateway cache.
|
|
100
|
+
*/
|
|
101
|
+
cache_hits: number;
|
|
102
|
+
/**
|
|
103
|
+
* Requests classified as failed.
|
|
104
|
+
*/
|
|
105
|
+
failed_requests: number;
|
|
106
|
+
/**
|
|
107
|
+
* Independently known input tokens across attempts, including corrected usage.
|
|
108
|
+
*/
|
|
109
|
+
input_tokens: number;
|
|
110
|
+
/**
|
|
111
|
+
* Model identifier.
|
|
112
|
+
*/
|
|
113
|
+
model: string;
|
|
114
|
+
/**
|
|
115
|
+
* Independently known output tokens across attempts, including corrected usage.
|
|
116
|
+
*/
|
|
117
|
+
output_tokens: number;
|
|
118
|
+
/**
|
|
119
|
+
* Requests classified as partial after streaming began.
|
|
120
|
+
*/
|
|
121
|
+
partial_requests: number;
|
|
122
|
+
/**
|
|
123
|
+
* Number of matching requests.
|
|
124
|
+
*/
|
|
125
|
+
requests: number;
|
|
126
|
+
/**
|
|
127
|
+
* Unresolved budget reservations in USD.
|
|
128
|
+
*/
|
|
129
|
+
reserved_spend: number;
|
|
130
|
+
/**
|
|
131
|
+
* Sum of known reference/enforcement cost in USD.
|
|
132
|
+
*/
|
|
133
|
+
spend: number;
|
|
134
|
+
/**
|
|
135
|
+
* Requests classified as succeeded.
|
|
136
|
+
*/
|
|
137
|
+
succeeded_requests: number;
|
|
138
|
+
/**
|
|
139
|
+
* Requests whose cost remains unresolved; unknown cost is excluded from spend.
|
|
140
|
+
*/
|
|
141
|
+
unknown_requests: number;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Complete guardrail event counts and bounded recent findings for the same group
|
|
145
|
+
* and range.
|
|
146
|
+
*/
|
|
147
|
+
interface Guardrails {
|
|
148
|
+
/**
|
|
149
|
+
* Total blocked guardrail events, not distinct requests.
|
|
150
|
+
*/
|
|
151
|
+
blocked_events: number;
|
|
152
|
+
/**
|
|
153
|
+
* Total flagged guardrail events, not distinct requests.
|
|
154
|
+
*/
|
|
155
|
+
flagged_events: number;
|
|
156
|
+
/**
|
|
157
|
+
* Up to 20 newest privacy-safe guardrail events, ordered by creation time
|
|
158
|
+
* descending and event ID.
|
|
159
|
+
*/
|
|
160
|
+
recent_events: Array<Guardrails.RecentEvent>;
|
|
161
|
+
}
|
|
162
|
+
namespace Guardrails {
|
|
163
|
+
interface RecentEvent {
|
|
164
|
+
id: string;
|
|
165
|
+
created_at: string;
|
|
166
|
+
end_user_id: string | null;
|
|
167
|
+
evaluation_input_tokens: number | null;
|
|
168
|
+
evaluation_output_tokens: number | null;
|
|
169
|
+
findings: Array<RecentEvent.Finding>;
|
|
170
|
+
/**
|
|
171
|
+
* Model identifier.
|
|
172
|
+
*/
|
|
173
|
+
model: string;
|
|
174
|
+
outcome: 'evaluated' | 'flagged' | 'blocked' | 'unevaluated';
|
|
175
|
+
record_type: 'guardrail_event';
|
|
176
|
+
request_id: string;
|
|
177
|
+
stage: 'prompt' | 'response';
|
|
178
|
+
token_group_id: string;
|
|
179
|
+
token_key_id: string;
|
|
180
|
+
token_user_id: string | null;
|
|
181
|
+
}
|
|
182
|
+
namespace RecentEvent {
|
|
183
|
+
interface Finding {
|
|
184
|
+
action: 'flag' | 'block';
|
|
185
|
+
code: string;
|
|
186
|
+
count: number;
|
|
187
|
+
detector: 'secrets' | 'dlp' | 'safety';
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Metrics for all matching requests.
|
|
193
|
+
*/
|
|
194
|
+
interface Totals {
|
|
195
|
+
/**
|
|
196
|
+
* Requests served from the gateway cache.
|
|
197
|
+
*/
|
|
198
|
+
cache_hits: number;
|
|
199
|
+
/**
|
|
200
|
+
* Requests classified as failed.
|
|
201
|
+
*/
|
|
202
|
+
failed_requests: number;
|
|
203
|
+
/**
|
|
204
|
+
* Independently known input tokens across attempts, including corrected usage.
|
|
205
|
+
*/
|
|
206
|
+
input_tokens: number;
|
|
207
|
+
/**
|
|
208
|
+
* Independently known output tokens across attempts, including corrected usage.
|
|
209
|
+
*/
|
|
210
|
+
output_tokens: number;
|
|
211
|
+
/**
|
|
212
|
+
* Requests classified as partial after streaming began.
|
|
213
|
+
*/
|
|
214
|
+
partial_requests: number;
|
|
215
|
+
/**
|
|
216
|
+
* Number of matching requests.
|
|
217
|
+
*/
|
|
218
|
+
requests: number;
|
|
219
|
+
/**
|
|
220
|
+
* Unresolved budget reservations in USD.
|
|
221
|
+
*/
|
|
222
|
+
reserved_spend: number;
|
|
223
|
+
/**
|
|
224
|
+
* Sum of known reference/enforcement cost in USD.
|
|
225
|
+
*/
|
|
226
|
+
spend: number;
|
|
227
|
+
/**
|
|
228
|
+
* Requests classified as succeeded.
|
|
229
|
+
*/
|
|
230
|
+
succeeded_requests: number;
|
|
231
|
+
/**
|
|
232
|
+
* Requests whose cost remains unresolved; unknown cost is excluded from spend.
|
|
233
|
+
*/
|
|
234
|
+
unknown_requests: number;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
interface Meta {
|
|
238
|
+
end_date: string;
|
|
239
|
+
start_date: string;
|
|
240
|
+
token_group_id: string;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
export interface UsageRetrieveSummaryParams {
|
|
244
|
+
/**
|
|
245
|
+
* Exclusive UTC date in YYYY-MM-DD format. Must follow start_date by 1 to 31 days.
|
|
246
|
+
*/
|
|
247
|
+
end_date: string;
|
|
248
|
+
/**
|
|
249
|
+
* Inclusive UTC date in YYYY-MM-DD format. Must precede end_date by 1 to 31 days.
|
|
250
|
+
*/
|
|
251
|
+
start_date: string;
|
|
252
|
+
/**
|
|
253
|
+
* ID of a token group owned by the authenticated account.
|
|
254
|
+
*/
|
|
255
|
+
token_group_id: string;
|
|
256
|
+
}
|
|
257
|
+
export declare namespace Usage {
|
|
258
|
+
export { type UsageRetrieveSummaryResponse as UsageRetrieveSummaryResponse, type UsageRetrieveSummaryParams as UsageRetrieveSummaryParams, };
|
|
259
|
+
}
|
|
260
|
+
//# sourceMappingURL=usage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/resources/llm-token-gateway/usage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;OAeG;IACH,eAAe,CACb,KAAK,EAAE,0BAA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AG,OAAO,CAAC;oBAEzB,IAAI,EAAE,MAAM,CAAC;oBAEb,KAAK,EAAE,MAAM,CAAC;oBAEd,QAAQ,EAAE,SAAS,GAAG,KAAK,GAAG,QAAQ,CAAC;iBACxC;aACF;SACF;QAED;;WAEG;QACH,UAAiB,MAAM;YACrB;;eAEG;YACH,UAAU,EAAE,MAAM,CAAC;YAEnB;;eAEG;YACH,eAAe,EAAE,MAAM,CAAC;YAExB;;eAEG;YACH,YAAY,EAAE,MAAM,CAAC;YAErB;;eAEG;YACH,aAAa,EAAE,MAAM,CAAC;YAEtB;;eAEG;YACH,gBAAgB,EAAE,MAAM,CAAC;YAEzB;;eAEG;YACH,QAAQ,EAAE,MAAM,CAAC;YAEjB;;eAEG;YACH,cAAc,EAAE,MAAM,CAAC;YAEvB;;eAEG;YACH,KAAK,EAAE,MAAM,CAAC;YAEd;;eAEG;YACH,kBAAkB,EAAE,MAAM,CAAC;YAE3B;;eAEG;YACH,gBAAgB,EAAE,MAAM,CAAC;SAC1B;KACF;IAED,UAAiB,IAAI;QACnB,QAAQ,EAAE,MAAM,CAAC;QAEjB,UAAU,EAAE,MAAM,CAAC;QAEnB,cAAc,EAAE,MAAM,CAAC;KACxB;CACF;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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.Usage = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
/**
|
|
7
|
+
* Manage and report AI Gateway traffic.
|
|
8
|
+
*/
|
|
9
|
+
class Usage extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Return complete usage totals, UTC daily and model breakdowns, and guardrail
|
|
12
|
+
* event counts for one token group owned by the authenticated account. Requires
|
|
13
|
+
* the llm_token_gateway.usage.read permission; spend and guardrail read
|
|
14
|
+
* permissions do not grant this combined report. All sections share one database
|
|
15
|
+
* snapshot and include the latest usage corrections. Dates use an inclusive start
|
|
16
|
+
* and exclusive end spanning 1 to 31 days. Only token_group_id, start_date and
|
|
17
|
+
* end_date are accepted; pagination, group_by and other filters are rejected.
|
|
18
|
+
* Spend is reference/enforcement USD, not invoice truth or BYOK provider charges.
|
|
19
|
+
* Unknown cost is excluded from spend and reported through unknown_requests and
|
|
20
|
+
* reserved_spend. Daily rows include zero-activity days. Model rows are ordered by
|
|
21
|
+
* request count descending, then model name, and are limited to 1,000. Guardrail
|
|
22
|
+
* counts count events, not distinct requests; recent_events contains at most 20
|
|
23
|
+
* newest events. A report that exceeds model or query limits returns 503 rather
|
|
24
|
+
* than a truncated success.
|
|
25
|
+
*/
|
|
26
|
+
retrieveSummary(query, options) {
|
|
27
|
+
return this._client.get('/llm_token_gateway/usage/summary', { query, ...options });
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.Usage = Usage;
|
|
31
|
+
//# sourceMappingURL=usage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../../src/resources/llm-token-gateway/usage.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;;;;OAeG;IACH,eAAe,CACb,KAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF;AAvBD,sBAuBC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* Manage and report AI Gateway traffic.
|
|
5
|
+
*/
|
|
6
|
+
export class Usage extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Return complete usage totals, UTC daily and model breakdowns, and guardrail
|
|
9
|
+
* event counts for one token group owned by the authenticated account. Requires
|
|
10
|
+
* the llm_token_gateway.usage.read permission; spend and guardrail read
|
|
11
|
+
* permissions do not grant this combined report. All sections share one database
|
|
12
|
+
* snapshot and include the latest usage corrections. Dates use an inclusive start
|
|
13
|
+
* and exclusive end spanning 1 to 31 days. Only token_group_id, start_date and
|
|
14
|
+
* end_date are accepted; pagination, group_by and other filters are rejected.
|
|
15
|
+
* Spend is reference/enforcement USD, not invoice truth or BYOK provider charges.
|
|
16
|
+
* Unknown cost is excluded from spend and reported through unknown_requests and
|
|
17
|
+
* reserved_spend. Daily rows include zero-activity days. Model rows are ordered by
|
|
18
|
+
* request count descending, then model name, and are limited to 1,000. Guardrail
|
|
19
|
+
* counts count events, not distinct requests; recent_events contains at most 20
|
|
20
|
+
* newest events. A report that exceeds model or query limits returns 503 rather
|
|
21
|
+
* than a truncated success.
|
|
22
|
+
*/
|
|
23
|
+
retrieveSummary(query, options) {
|
|
24
|
+
return this._client.get('/llm_token_gateway/usage/summary', { query, ...options });
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=usage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../../src/resources/llm-token-gateway/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;OAeG;IACH,eAAe,CACb,KAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm-token-gateway.d.mts","sourceRoot":"","sources":["../src/resources/llm-token-gateway.ts"],"names":[],"mappings":"AAEA,8CAA0C"}
|