@epam/ai-dial-chat-api-client 1.4.0-rc.12 → 1.4.0-rc.14
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/generated/src/apis/PublishApi.d.ts +14 -1
- package/generated/src/apis/PublishApi.d.ts.map +1 -1
- package/generated/src/apis/PublishApi.js +37 -0
- package/generated/src/apis/UserApi.d.ts +39 -1
- package/generated/src/apis/UserApi.d.ts.map +1 -1
- package/generated/src/apis/UserApi.js +110 -0
- package/generated/src/models/index.d.ts +584 -12
- package/generated/src/models/index.d.ts.map +1 -1
- package/generated/src/models/index.js +20 -1
- package/package.json +1 -1
- package/tsconfig.lib.tsbuildinfo +1 -1
|
@@ -2052,6 +2052,12 @@ export interface ClientConfigDto {
|
|
|
2052
2052
|
customVariables: {
|
|
2053
2053
|
[key: string]: unknown;
|
|
2054
2054
|
};
|
|
2055
|
+
/**
|
|
2056
|
+
* Allowed claim/category names selectable as a publication access rule's source. Sourced from PUBLICATION_FILTER_SOURCES; falls back to the legacy default when unset or empty.
|
|
2057
|
+
* @type {Array<string>}
|
|
2058
|
+
* @memberof ClientConfigDto
|
|
2059
|
+
*/
|
|
2060
|
+
publicationFilterSources: Array<string>;
|
|
2055
2061
|
/**
|
|
2056
2062
|
* Additional content locales (canonical BCP-47 tags) a toolset's or application's Name/Description can be translated into. Sourced from ADDITIONAL_CONTENT_LOCALES, or the deprecated AVAILABLE_LOCALES when that is absent; empty when neither is set. May include the primary locale, which the client drops.
|
|
2057
2063
|
* @type {Array<string>}
|
|
@@ -3657,7 +3663,7 @@ export interface CreateProjectResponseDto {
|
|
|
3657
3663
|
*/
|
|
3658
3664
|
export interface CreatePromptDto {
|
|
3659
3665
|
/**
|
|
3660
|
-
* Prompt name.
|
|
3666
|
+
* Prompt name. At most 255 UTF-8 bytes, no leading or trailing whitespace, and none of : ; , = / \ { } % & " ? # or control characters; not . or ..
|
|
3661
3667
|
* @type {string}
|
|
3662
3668
|
* @memberof CreatePromptDto
|
|
3663
3669
|
*/
|
|
@@ -3688,7 +3694,7 @@ export interface CreatePromptDto {
|
|
|
3688
3694
|
*/
|
|
3689
3695
|
export interface CreatePromptFolderDto {
|
|
3690
3696
|
/**
|
|
3691
|
-
* Folder name.
|
|
3697
|
+
* Folder name. At most 255 UTF-8 bytes, no leading or trailing whitespace, and none of : ; , = / \ { } % & " ? # or control characters; not . or ..
|
|
3692
3698
|
* @type {string}
|
|
3693
3699
|
* @memberof CreatePromptFolderDto
|
|
3694
3700
|
*/
|
|
@@ -4113,6 +4119,19 @@ export interface CustomVisualizerDto {
|
|
|
4113
4119
|
*/
|
|
4114
4120
|
passExplicitToken?: boolean;
|
|
4115
4121
|
}
|
|
4122
|
+
/**
|
|
4123
|
+
*
|
|
4124
|
+
* @export
|
|
4125
|
+
* @interface DefaultBudgetResponseDto
|
|
4126
|
+
*/
|
|
4127
|
+
export interface DefaultBudgetResponseDto {
|
|
4128
|
+
/**
|
|
4129
|
+
* The caller's default budget as DIAL Core reports it; DIAL Core sends `null` when the default was cleared or none is set.
|
|
4130
|
+
* @type {string}
|
|
4131
|
+
* @memberof DefaultBudgetResponseDto
|
|
4132
|
+
*/
|
|
4133
|
+
budget?: string | null;
|
|
4134
|
+
}
|
|
4116
4135
|
/**
|
|
4117
4136
|
*
|
|
4118
4137
|
* @export
|
|
@@ -7526,7 +7545,7 @@ export interface OfflineCredentialsSigninBodyDto {
|
|
|
7526
7545
|
*/
|
|
7527
7546
|
code: string;
|
|
7528
7547
|
/**
|
|
7529
|
-
* OAuth redirect URI used for the code exchange. Must resolve to the configured AUTH_CALLBACK_BASE_URL origin and one of the app's own callback paths.
|
|
7548
|
+
* OAuth redirect URI used for the code exchange. Must resolve to the configured AUTH_CALLBACK_BASE_URL or AUTH_ADDITIONAL_CALLBACK_BASE_URLS origin and one of the app's own callback paths.
|
|
7530
7549
|
* @type {string}
|
|
7531
7550
|
* @memberof OfflineCredentialsSigninBodyDto
|
|
7532
7551
|
*/
|
|
@@ -8426,6 +8445,12 @@ export interface PublishCatalogEntityDto {
|
|
|
8426
8445
|
* @memberof PublishCatalogEntityDto
|
|
8427
8446
|
*/
|
|
8428
8447
|
author?: string;
|
|
8448
|
+
/**
|
|
8449
|
+
* Access-restriction rules combined with AND, forwarded to DIAL Core unchanged. When omitted, the request to DIAL Core carries no rules and the target folder keeps its stored rules; `[]` clears them. Refused with 403 while the `features.orgUnitsEnabled` flag is on for the caller.
|
|
8450
|
+
* @type {Array<PublishRuleDto>}
|
|
8451
|
+
* @memberof PublishCatalogEntityDto
|
|
8452
|
+
*/
|
|
8453
|
+
rules?: Array<PublishRuleDto>;
|
|
8429
8454
|
/**
|
|
8430
8455
|
* Publish the entity together with the publisher's own credentials for it. DIAL Core honours it by copying the credential onto the published copy, so members of the organization use the entity without authorising individually. Omitted or `false` sends exactly the request every caller sent before this field existed. The flag grants no additional authorization: Core still derives the actor from the bearer token, enforces target-folder write access, and holds the publication `PENDING` until an administrator approves it. No credential value ever crosses the wire — only this boolean.
|
|
8431
8456
|
* @type {boolean}
|
|
@@ -8491,6 +8516,12 @@ export interface PublishConversationDto {
|
|
|
8491
8516
|
* @memberof PublishConversationDto
|
|
8492
8517
|
*/
|
|
8493
8518
|
author?: string;
|
|
8519
|
+
/**
|
|
8520
|
+
* Access-restriction rules combined with AND, forwarded to DIAL Core unchanged. When omitted, the request to DIAL Core carries no rules and the target folder keeps its stored rules; `[]` clears them. Refused with 403 while the `features.orgUnitsEnabled` flag is on for the caller.
|
|
8521
|
+
* @type {Array<PublishRuleDto>}
|
|
8522
|
+
* @memberof PublishConversationDto
|
|
8523
|
+
*/
|
|
8524
|
+
rules?: Array<PublishRuleDto>;
|
|
8494
8525
|
}
|
|
8495
8526
|
/**
|
|
8496
8527
|
*
|
|
@@ -8639,6 +8670,53 @@ export declare const PublishResultDtoEntityTypeEnum: {
|
|
|
8639
8670
|
readonly Project: "project";
|
|
8640
8671
|
};
|
|
8641
8672
|
export type PublishResultDtoEntityTypeEnum = (typeof PublishResultDtoEntityTypeEnum)[keyof typeof PublishResultDtoEntityTypeEnum];
|
|
8673
|
+
/**
|
|
8674
|
+
*
|
|
8675
|
+
* @export
|
|
8676
|
+
* @interface PublishRuleDto
|
|
8677
|
+
*/
|
|
8678
|
+
export interface PublishRuleDto {
|
|
8679
|
+
/**
|
|
8680
|
+
* Claim/category name this rule matches against.
|
|
8681
|
+
* @type {string}
|
|
8682
|
+
* @memberof PublishRuleDto
|
|
8683
|
+
*/
|
|
8684
|
+
source: string;
|
|
8685
|
+
/**
|
|
8686
|
+
*
|
|
8687
|
+
* @type {string}
|
|
8688
|
+
* @memberof PublishRuleDto
|
|
8689
|
+
*/
|
|
8690
|
+
function: PublishRuleDtoFunctionEnum;
|
|
8691
|
+
/**
|
|
8692
|
+
* Values combined with OR; exactly one pattern when function is REGEX.
|
|
8693
|
+
* @type {Array<string>}
|
|
8694
|
+
* @memberof PublishRuleDto
|
|
8695
|
+
*/
|
|
8696
|
+
targets: Array<string>;
|
|
8697
|
+
}
|
|
8698
|
+
/**
|
|
8699
|
+
* @export
|
|
8700
|
+
*/
|
|
8701
|
+
export declare const PublishRuleDtoFunctionEnum: {
|
|
8702
|
+
readonly Equal: "EQUAL";
|
|
8703
|
+
readonly Contain: "CONTAIN";
|
|
8704
|
+
readonly Regex: "REGEX";
|
|
8705
|
+
};
|
|
8706
|
+
export type PublishRuleDtoFunctionEnum = (typeof PublishRuleDtoFunctionEnum)[keyof typeof PublishRuleDtoFunctionEnum];
|
|
8707
|
+
/**
|
|
8708
|
+
*
|
|
8709
|
+
* @export
|
|
8710
|
+
* @interface PublishRulesResultDto
|
|
8711
|
+
*/
|
|
8712
|
+
export interface PublishRulesResultDto {
|
|
8713
|
+
/**
|
|
8714
|
+
* The requested folder's own access-restriction rules, or an empty array when the folder has none configured.
|
|
8715
|
+
* @type {Array<PublishRuleDto>}
|
|
8716
|
+
* @memberof PublishRulesResultDto
|
|
8717
|
+
*/
|
|
8718
|
+
rules: Array<PublishRuleDto>;
|
|
8719
|
+
}
|
|
8642
8720
|
/**
|
|
8643
8721
|
*
|
|
8644
8722
|
* @export
|
|
@@ -8864,7 +8942,7 @@ export interface RenameItemResultDto {
|
|
|
8864
8942
|
*/
|
|
8865
8943
|
export interface RenamePromptFolderDto {
|
|
8866
8944
|
/**
|
|
8867
|
-
* New folder name.
|
|
8945
|
+
* New folder name. At most 255 UTF-8 bytes, no leading or trailing whitespace, and none of : ; , = / \ { } % & " ? # or control characters; not . or ..
|
|
8868
8946
|
* @type {string}
|
|
8869
8947
|
* @memberof RenamePromptFolderDto
|
|
8870
8948
|
*/
|
|
@@ -10947,6 +11025,19 @@ export interface UpdateApplicationBodyDto {
|
|
|
10947
11025
|
*/
|
|
10948
11026
|
primaryLocale?: string;
|
|
10949
11027
|
}
|
|
11028
|
+
/**
|
|
11029
|
+
*
|
|
11030
|
+
* @export
|
|
11031
|
+
* @interface UpdateDefaultBudgetRequestDto
|
|
11032
|
+
*/
|
|
11033
|
+
export interface UpdateDefaultBudgetRequestDto {
|
|
11034
|
+
/**
|
|
11035
|
+
* The `<costObject>/<id>` of a budget the caller holds, to set it as the default; `null` clears the default. The property must be present: DIAL Core rejects a body without it.
|
|
11036
|
+
* @type {string}
|
|
11037
|
+
* @memberof UpdateDefaultBudgetRequestDto
|
|
11038
|
+
*/
|
|
11039
|
+
budget: string | null;
|
|
11040
|
+
}
|
|
10950
11041
|
/**
|
|
10951
11042
|
*
|
|
10952
11043
|
* @export
|
|
@@ -11073,7 +11164,7 @@ export interface UpdateProjectResponseDto {
|
|
|
11073
11164
|
*/
|
|
11074
11165
|
export interface UpdatePromptDto {
|
|
11075
11166
|
/**
|
|
11076
|
-
* New display name.
|
|
11167
|
+
* New display name. At most 255 UTF-8 bytes, no leading or trailing whitespace, and none of : ; , = / \ { } % & " ? # or control characters; not . or ..
|
|
11077
11168
|
* @type {string}
|
|
11078
11169
|
* @memberof UpdatePromptDto
|
|
11079
11170
|
*/
|
|
@@ -11387,7 +11478,7 @@ export interface UsageHistoryClientEntryDto {
|
|
|
11387
11478
|
*/
|
|
11388
11479
|
spend: number;
|
|
11389
11480
|
/**
|
|
11390
|
-
* Number from this client. Without `budget`, user requests (root spans); with `budget`, model calls the budget paid for.
|
|
11481
|
+
* Number from this client. Without `budget`, priced user requests (root spans with a price); with `budget`, priced model calls the budget paid for. Failed and refused calls, and calls to a model without pricing, carry no price and are not counted.
|
|
11391
11482
|
* @type {number}
|
|
11392
11483
|
* @memberof UsageHistoryClientEntryDto
|
|
11393
11484
|
*/
|
|
@@ -11412,7 +11503,7 @@ export interface UsageHistoryDailyEntryDto {
|
|
|
11412
11503
|
*/
|
|
11413
11504
|
spend: number;
|
|
11414
11505
|
/**
|
|
11415
|
-
* Number on that date. Without `budget`, user requests (root spans); with `budget`, model calls the budget paid for.
|
|
11506
|
+
* Number on that date. Without `budget`, priced user requests (root spans with a price); with `budget`, priced model calls the budget paid for. Failed and refused calls, and calls to a model without pricing, carry no price and are not counted.
|
|
11416
11507
|
* @type {number}
|
|
11417
11508
|
* @memberof UsageHistoryDailyEntryDto
|
|
11418
11509
|
*/
|
|
@@ -11445,7 +11536,7 @@ export interface UsageHistoryModelEntryDto {
|
|
|
11445
11536
|
*/
|
|
11446
11537
|
spend: number;
|
|
11447
11538
|
/**
|
|
11448
|
-
* Number for this entry. Without `budget`, user requests (root spans); with `budget`, model calls the budget paid for. With a root breakdown, the paid model calls under this root, wherever they sit in its call chain.
|
|
11539
|
+
* Number for this entry. Without `budget`, priced user requests (root spans with a price); with `budget`, priced model calls the budget paid for. Failed and refused calls, and calls to a model without pricing, carry no price and are not counted. With a root breakdown, the paid model calls under this root, wherever they sit in its call chain.
|
|
11449
11540
|
* @type {number}
|
|
11450
11541
|
* @memberof UsageHistoryModelEntryDto
|
|
11451
11542
|
*/
|
|
@@ -11492,6 +11583,31 @@ export interface UsageHistoryServedByEntryDto {
|
|
|
11492
11583
|
*/
|
|
11493
11584
|
requests: number;
|
|
11494
11585
|
}
|
|
11586
|
+
/**
|
|
11587
|
+
*
|
|
11588
|
+
* @export
|
|
11589
|
+
* @interface UsageHistoryTokensDto
|
|
11590
|
+
*/
|
|
11591
|
+
export interface UsageHistoryTokensDto {
|
|
11592
|
+
/**
|
|
11593
|
+
* Prompt (input) tokens. Summed over the caller's chat-completion rows of the window (DIAL Analytics `event_kind` `llm_call`) at every depth of the call chain: unlike `totals`, it includes the model calls an application made, plus the usage the application reports itself on its own row (DIAL Core adds no model tokens to it). With `budget`, only that budget's paid chat-completion calls. DIAL Core accounts them the OpenAI way: this number includes `cached` and `cacheCreation`, so `cached / prompt` is the cache hit rate. Rows whose provider reported no cache counters add only to this number, so that rate is a lower bound.
|
|
11594
|
+
* @type {number}
|
|
11595
|
+
* @memberof UsageHistoryTokensDto
|
|
11596
|
+
*/
|
|
11597
|
+
prompt: number;
|
|
11598
|
+
/**
|
|
11599
|
+
* Prompt tokens the provider served from its cache (cache reads), a part of `prompt`. A row whose provider reported no cache counters adds 0.
|
|
11600
|
+
* @type {number}
|
|
11601
|
+
* @memberof UsageHistoryTokensDto
|
|
11602
|
+
*/
|
|
11603
|
+
cached: number;
|
|
11604
|
+
/**
|
|
11605
|
+
* Prompt tokens the provider wrote to its cache (cache writes), a part of `prompt`. A row whose provider reported no cache counters adds 0, and rows written by DIAL Core older than 0.47 never report it.
|
|
11606
|
+
* @type {number}
|
|
11607
|
+
* @memberof UsageHistoryTokensDto
|
|
11608
|
+
*/
|
|
11609
|
+
cacheCreation: number;
|
|
11610
|
+
}
|
|
11495
11611
|
/**
|
|
11496
11612
|
*
|
|
11497
11613
|
* @export
|
|
@@ -11505,7 +11621,7 @@ export interface UsageHistoryTotalsDto {
|
|
|
11505
11621
|
*/
|
|
11506
11622
|
spend: number;
|
|
11507
11623
|
/**
|
|
11508
|
-
* Number in the window. Without `budget`, user requests (root spans); with `budget`, model calls the budget paid for.
|
|
11624
|
+
* Number in the window. Without `budget`, priced user requests (root spans with a price); with `budget`, priced model calls the budget paid for. Failed and refused calls, and calls to a model without pricing, carry no price and are not counted.
|
|
11509
11625
|
* @type {number}
|
|
11510
11626
|
* @memberof UsageHistoryTotalsDto
|
|
11511
11627
|
*/
|
|
@@ -11547,6 +11663,179 @@ export interface UsageHistoryWindowDto {
|
|
|
11547
11663
|
*/
|
|
11548
11664
|
to: string;
|
|
11549
11665
|
}
|
|
11666
|
+
/**
|
|
11667
|
+
*
|
|
11668
|
+
* @export
|
|
11669
|
+
* @interface UsageSessionEntryDto
|
|
11670
|
+
*/
|
|
11671
|
+
export interface UsageSessionEntryDto {
|
|
11672
|
+
/**
|
|
11673
|
+
* The client's own session id, as the `usage_client_identity` enrichment normalises it: the DIAL conversation id for chat traffic, else the Claude Code, Codex or OpenCode session header. Id spaces differ per client: read it with `source` and `client`.
|
|
11674
|
+
* @type {string}
|
|
11675
|
+
* @memberof UsageSessionEntryDto
|
|
11676
|
+
*/
|
|
11677
|
+
id: string;
|
|
11678
|
+
/**
|
|
11679
|
+
* Which field the id was taken from, as DIAL Analytics labels it (for example `chat_id`, `x-claude-code-session-id`, `thread-id`, `x-session-id`): the largest value over the session's rows, as the DIAL Analytics sessions rollup takes it.
|
|
11680
|
+
* @type {string}
|
|
11681
|
+
* @memberof UsageSessionEntryDto
|
|
11682
|
+
*/
|
|
11683
|
+
source: string;
|
|
11684
|
+
/**
|
|
11685
|
+
* Client type from the `usage_client_identity` enrichment (for example `chat`, `claudecode`, `claudedesktop`, `codex`, `opencode`, `dialcli`): the largest value over the session's rows, so a session whose hops are labelled `chat` and a harness reads as the harness; `unknown` when the enrichment has no value.
|
|
11686
|
+
* @type {string}
|
|
11687
|
+
* @memberof UsageSessionEntryDto
|
|
11688
|
+
*/
|
|
11689
|
+
client: string;
|
|
11690
|
+
/**
|
|
11691
|
+
* `request_time` of the session's earliest counted row in the window, ISO-8601 UTC with milliseconds. A session that started before the window starts here at its first request in the window.
|
|
11692
|
+
* @type {string}
|
|
11693
|
+
* @memberof UsageSessionEntryDto
|
|
11694
|
+
*/
|
|
11695
|
+
firstRequestAt: string;
|
|
11696
|
+
/**
|
|
11697
|
+
* `request_time` of the session's latest counted row in the window, ISO-8601 UTC with milliseconds. The elapsed time is `lastRequestAt − firstRequestAt`. DIAL Analytics stores a call minutes after it is made, and the enrichment adds about a minute, so newer calls may exist.
|
|
11698
|
+
* @type {string}
|
|
11699
|
+
* @memberof UsageSessionEntryDto
|
|
11700
|
+
*/
|
|
11701
|
+
lastRequestAt: string;
|
|
11702
|
+
/**
|
|
11703
|
+
* Number of distinct turns (`trace_id`) with a counted row.
|
|
11704
|
+
* @type {number}
|
|
11705
|
+
* @memberof UsageSessionEntryDto
|
|
11706
|
+
*/
|
|
11707
|
+
turns: number;
|
|
11708
|
+
/**
|
|
11709
|
+
* Number of counted rows: model calls, including those an application or router made and embedding calls. The usage history counts a user request to an application once; here each model call it made counts.
|
|
11710
|
+
* @type {number}
|
|
11711
|
+
* @memberof UsageSessionEntryDto
|
|
11712
|
+
*/
|
|
11713
|
+
requests: number;
|
|
11714
|
+
/**
|
|
11715
|
+
* Spend in USD, the sum of `deployment_price` over the counted rows, rounded on its own to 6 decimal places (half away from zero). Without `budget` it can differ from the usage history, which sums root spans' chain-inclusive `total_price`.
|
|
11716
|
+
* @type {number}
|
|
11717
|
+
* @memberof UsageSessionEntryDto
|
|
11718
|
+
*/
|
|
11719
|
+
spend: number;
|
|
11720
|
+
/**
|
|
11721
|
+
* Prompt (input) tokens of the session's counted rows other than embedding calls, including the Anthropic Messages and OpenAI Responses calls of coding agents. DIAL Core accounts them the OpenAI way: this number includes `cachedPromptTokens`, so `cachedPromptTokens / promptTokens` is the cache hit rate, a lower bound when a provider reports no cache counters. Applications are not counted on top of their models. Present on every session only when the caller's DIAL Analytics schema of the usage log lists `prompt_tokens`, `cached_prompt_tokens` and `event_kind`; absent otherwise, not zero-filled.
|
|
11722
|
+
* @type {number}
|
|
11723
|
+
* @memberof UsageSessionEntryDto
|
|
11724
|
+
*/
|
|
11725
|
+
promptTokens?: number;
|
|
11726
|
+
/**
|
|
11727
|
+
* Prompt tokens the provider served from its cache (cache reads), a part of `promptTokens`, over the same rows. A row whose provider reported no cache counters adds 0. Present exactly when `promptTokens` is.
|
|
11728
|
+
* @type {number}
|
|
11729
|
+
* @memberof UsageSessionEntryDto
|
|
11730
|
+
*/
|
|
11731
|
+
cachedPromptTokens?: number;
|
|
11732
|
+
/**
|
|
11733
|
+
* Number of the caller's own MCP tool calls through DIAL in the window that carried this session's id: DIAL Analytics rows with `event_kind` `mcp` and `mcp_method` `tools/call`, whatever their price. MCP protocol requests (`initialize`, `tools/list`, notifications) are not counted, and neither is a call whose request DIAL Analytics could not read the method from. MCP calls carry no budget, so with `budget` this is not narrowed: a session can show tool calls that no budget paid for. Present on every session only when the caller's DIAL Analytics schema of the usage log lists `event_kind` and `mcp_method` and the count was read; absent otherwise, not zero-filled.
|
|
11734
|
+
* @type {number}
|
|
11735
|
+
* @memberof UsageSessionEntryDto
|
|
11736
|
+
*/
|
|
11737
|
+
mcpCalls?: number;
|
|
11738
|
+
}
|
|
11739
|
+
/**
|
|
11740
|
+
*
|
|
11741
|
+
* @export
|
|
11742
|
+
* @interface UsageSessionsBudgetDto
|
|
11743
|
+
*/
|
|
11744
|
+
export interface UsageSessionsBudgetDto {
|
|
11745
|
+
/**
|
|
11746
|
+
* Cost object of the budget the sessions are narrowed to.
|
|
11747
|
+
* @type {string}
|
|
11748
|
+
* @memberof UsageSessionsBudgetDto
|
|
11749
|
+
*/
|
|
11750
|
+
costObject: string;
|
|
11751
|
+
/**
|
|
11752
|
+
* Policy of the budget the sessions are narrowed to.
|
|
11753
|
+
* @type {string}
|
|
11754
|
+
* @memberof UsageSessionsBudgetDto
|
|
11755
|
+
*/
|
|
11756
|
+
policy: string;
|
|
11757
|
+
}
|
|
11758
|
+
/**
|
|
11759
|
+
*
|
|
11760
|
+
* @export
|
|
11761
|
+
* @interface UsageSessionsDailyEntryDto
|
|
11762
|
+
*/
|
|
11763
|
+
export interface UsageSessionsDailyEntryDto {
|
|
11764
|
+
/**
|
|
11765
|
+
* UTC calendar date, `YYYY-MM-DD`.
|
|
11766
|
+
* @type {string}
|
|
11767
|
+
* @memberof UsageSessionsDailyEntryDto
|
|
11768
|
+
*/
|
|
11769
|
+
date: string;
|
|
11770
|
+
/**
|
|
11771
|
+
* Number of distinct sessions with a counted row on that date. A session active on two dates counts on both, so the entries can sum to more than `totals.sessions`.
|
|
11772
|
+
* @type {number}
|
|
11773
|
+
* @memberof UsageSessionsDailyEntryDto
|
|
11774
|
+
*/
|
|
11775
|
+
sessions: number;
|
|
11776
|
+
}
|
|
11777
|
+
/**
|
|
11778
|
+
*
|
|
11779
|
+
* @export
|
|
11780
|
+
* @interface UsageSessionsTotalsDto
|
|
11781
|
+
*/
|
|
11782
|
+
export interface UsageSessionsTotalsDto {
|
|
11783
|
+
/**
|
|
11784
|
+
* Number of distinct sessions of the window, every session and not only the listed page.
|
|
11785
|
+
* @type {number}
|
|
11786
|
+
* @memberof UsageSessionsTotalsDto
|
|
11787
|
+
*/
|
|
11788
|
+
sessions: number;
|
|
11789
|
+
/**
|
|
11790
|
+
* Number of distinct turns (`trace_id`) with a counted row. Over every session of the window.
|
|
11791
|
+
* @type {number}
|
|
11792
|
+
* @memberof UsageSessionsTotalsDto
|
|
11793
|
+
*/
|
|
11794
|
+
turns: number;
|
|
11795
|
+
/**
|
|
11796
|
+
* Number of counted rows: model calls, including those an application or router made and embedding calls. The usage history counts a user request to an application once; here each model call it made counts. Over every session of the window.
|
|
11797
|
+
* @type {number}
|
|
11798
|
+
* @memberof UsageSessionsTotalsDto
|
|
11799
|
+
*/
|
|
11800
|
+
requests: number;
|
|
11801
|
+
/**
|
|
11802
|
+
* Spend in USD, the sum of `deployment_price` over the counted rows, rounded on its own to 6 decimal places (half away from zero). Without `budget` it can differ from the usage history, which sums root spans' chain-inclusive `total_price`. Over every session of the window.
|
|
11803
|
+
* @type {number}
|
|
11804
|
+
* @memberof UsageSessionsTotalsDto
|
|
11805
|
+
*/
|
|
11806
|
+
spend: number;
|
|
11807
|
+
}
|
|
11808
|
+
/**
|
|
11809
|
+
* Present only when `available` is `false`. `not_configured`: ANALYTICS_URL is unset. `forbidden`: DIAL Analytics refused the caller's token, the caller cannot read the usage log, or DIAL Analytics cannot run the own-rows filter. `unavailable`: timeout, network error, server error or an unexpected response. `sessions_unsupported`: the caller's DIAL Analytics schema of the usage log does not list the session columns (the recommended catalog's `usage_client_identity` enrichment and `trace_id`). `budget_unsupported`: `costObject` and `policy` were given, but that schema has no budget columns.
|
|
11810
|
+
* @export
|
|
11811
|
+
*/
|
|
11812
|
+
export declare const UsageSessionsUnavailableReason: {
|
|
11813
|
+
readonly NotConfigured: "not_configured";
|
|
11814
|
+
readonly Unavailable: "unavailable";
|
|
11815
|
+
readonly Forbidden: "forbidden";
|
|
11816
|
+
readonly BudgetUnsupported: "budget_unsupported";
|
|
11817
|
+
readonly SessionsUnsupported: "sessions_unsupported";
|
|
11818
|
+
};
|
|
11819
|
+
export type UsageSessionsUnavailableReason = (typeof UsageSessionsUnavailableReason)[keyof typeof UsageSessionsUnavailableReason];
|
|
11820
|
+
/**
|
|
11821
|
+
*
|
|
11822
|
+
* @export
|
|
11823
|
+
* @interface UsageSessionsWithoutSessionDto
|
|
11824
|
+
*/
|
|
11825
|
+
export interface UsageSessionsWithoutSessionDto {
|
|
11826
|
+
/**
|
|
11827
|
+
* Number of priced model calls of the window, in the same scope, that have no session id: from clients that send no conversation or session id, model calls an application made below a coding-agent session (DIAL Core does not pass the harness header on), and calls ingested in the last minute or so, which the enrichment has not reached yet.
|
|
11828
|
+
* @type {number}
|
|
11829
|
+
* @memberof UsageSessionsWithoutSessionDto
|
|
11830
|
+
*/
|
|
11831
|
+
requests: number;
|
|
11832
|
+
/**
|
|
11833
|
+
* Spend in USD of those calls, the sum of `deployment_price`, rounded to 6 decimal places.
|
|
11834
|
+
* @type {number}
|
|
11835
|
+
* @memberof UsageSessionsWithoutSessionDto
|
|
11836
|
+
*/
|
|
11837
|
+
spend: number;
|
|
11838
|
+
}
|
|
11550
11839
|
/**
|
|
11551
11840
|
*
|
|
11552
11841
|
* @export
|
|
@@ -11566,18 +11855,222 @@ export interface UsageTotalsWindowDto {
|
|
|
11566
11855
|
*/
|
|
11567
11856
|
to: string;
|
|
11568
11857
|
/**
|
|
11569
|
-
* Spend in USD that budgets paid in the window, summed from each paid model call's own price and rounded once to 6 decimal places (half away from zero). Only model calls a budget paid for count (`budget_outcome` `paid`, whatever the cost object and policy)
|
|
11858
|
+
* Spend in USD that budgets paid in the window, summed from each paid model call's own price and rounded once to 6 decimal places (half away from zero). Only priced model calls a budget paid for count (`budget_outcome` `paid` with a `deployment_price`, whatever the cost object and policy). Failed calls, calls charged to no budget, and rows written before DIAL Core logged the charged budget are not counted.
|
|
11570
11859
|
* @type {number}
|
|
11571
11860
|
* @memberof UsageTotalsWindowDto
|
|
11572
11861
|
*/
|
|
11573
11862
|
spend: number;
|
|
11574
11863
|
/**
|
|
11575
|
-
* Number of model calls budgets paid for in the window. Only model calls a budget paid for count (`budget_outcome` `paid`, whatever the cost object and policy)
|
|
11864
|
+
* Number of model calls budgets paid for in the window. Only priced model calls a budget paid for count (`budget_outcome` `paid` with a `deployment_price`, whatever the cost object and policy). Failed calls, calls charged to no budget, and rows written before DIAL Core logged the charged budget are not counted.
|
|
11576
11865
|
* @type {number}
|
|
11577
11866
|
* @memberof UsageTotalsWindowDto
|
|
11578
11867
|
*/
|
|
11579
11868
|
requests: number;
|
|
11580
11869
|
}
|
|
11870
|
+
/**
|
|
11871
|
+
*
|
|
11872
|
+
* @export
|
|
11873
|
+
* @interface UserBudgetCapDto
|
|
11874
|
+
*/
|
|
11875
|
+
export interface UserBudgetCapDto {
|
|
11876
|
+
/**
|
|
11877
|
+
* The cap id.
|
|
11878
|
+
* @type {string}
|
|
11879
|
+
* @memberof UserBudgetCapDto
|
|
11880
|
+
*/
|
|
11881
|
+
cap: string;
|
|
11882
|
+
/**
|
|
11883
|
+
* Human-readable cap name; absent when none is set.
|
|
11884
|
+
* @type {string}
|
|
11885
|
+
* @memberof UserBudgetCapDto
|
|
11886
|
+
*/
|
|
11887
|
+
displayName?: string;
|
|
11888
|
+
/**
|
|
11889
|
+
* True when the cap hangs on the budget of this entry rather than on the cost object.
|
|
11890
|
+
* @type {boolean}
|
|
11891
|
+
* @memberof UserBudgetCapDto
|
|
11892
|
+
*/
|
|
11893
|
+
attached: boolean;
|
|
11894
|
+
/**
|
|
11895
|
+
* Deployments or groups the cap applies to.
|
|
11896
|
+
* @type {Array<string>}
|
|
11897
|
+
* @memberof UserBudgetCapDto
|
|
11898
|
+
*/
|
|
11899
|
+
packages?: Array<string>;
|
|
11900
|
+
/**
|
|
11901
|
+
* Dimensions the cap is split by.
|
|
11902
|
+
* @type {Array<string>}
|
|
11903
|
+
* @memberof UserBudgetCapDto
|
|
11904
|
+
*/
|
|
11905
|
+
per?: Array<string>;
|
|
11906
|
+
/**
|
|
11907
|
+
* Spend windows. Mutually exclusive with `slices`.
|
|
11908
|
+
* @type {UserBudgetWindowsDto}
|
|
11909
|
+
* @memberof UserBudgetCapDto
|
|
11910
|
+
*/
|
|
11911
|
+
windows?: UserBudgetWindowsDto;
|
|
11912
|
+
/**
|
|
11913
|
+
* Per-slice spend windows. Mutually exclusive with `windows`.
|
|
11914
|
+
* @type {Array<UserBudgetSliceDto>}
|
|
11915
|
+
* @memberof UserBudgetCapDto
|
|
11916
|
+
*/
|
|
11917
|
+
slices?: Array<UserBudgetSliceDto>;
|
|
11918
|
+
}
|
|
11919
|
+
/**
|
|
11920
|
+
*
|
|
11921
|
+
* @export
|
|
11922
|
+
* @interface UserBudgetDto
|
|
11923
|
+
*/
|
|
11924
|
+
export interface UserBudgetDto {
|
|
11925
|
+
/**
|
|
11926
|
+
* The exact `X-DIAL-BUDGET` value for this budget, `<costObject>/<id>`.
|
|
11927
|
+
* @type {string}
|
|
11928
|
+
* @memberof UserBudgetDto
|
|
11929
|
+
*/
|
|
11930
|
+
budget: string;
|
|
11931
|
+
/**
|
|
11932
|
+
* The cost object the budget belongs to.
|
|
11933
|
+
* @type {string}
|
|
11934
|
+
* @memberof UserBudgetDto
|
|
11935
|
+
*/
|
|
11936
|
+
costObject: string;
|
|
11937
|
+
/**
|
|
11938
|
+
* Human-readable budget name; absent when none is set.
|
|
11939
|
+
* @type {string}
|
|
11940
|
+
* @memberof UserBudgetDto
|
|
11941
|
+
*/
|
|
11942
|
+
displayName?: string;
|
|
11943
|
+
/**
|
|
11944
|
+
* True when this budget is the caller's default budget.
|
|
11945
|
+
* @type {boolean}
|
|
11946
|
+
* @memberof UserBudgetDto
|
|
11947
|
+
*/
|
|
11948
|
+
default: boolean;
|
|
11949
|
+
/**
|
|
11950
|
+
* Deployments or groups the budget applies to.
|
|
11951
|
+
* @type {Array<string>}
|
|
11952
|
+
* @memberof UserBudgetDto
|
|
11953
|
+
*/
|
|
11954
|
+
packages?: Array<string>;
|
|
11955
|
+
/**
|
|
11956
|
+
* Dimensions the budget is split by.
|
|
11957
|
+
* @type {Array<string>}
|
|
11958
|
+
* @memberof UserBudgetDto
|
|
11959
|
+
*/
|
|
11960
|
+
per?: Array<string>;
|
|
11961
|
+
/**
|
|
11962
|
+
* Spend windows. Mutually exclusive with `slices`.
|
|
11963
|
+
* @type {UserBudgetWindowsDto}
|
|
11964
|
+
* @memberof UserBudgetDto
|
|
11965
|
+
*/
|
|
11966
|
+
windows?: UserBudgetWindowsDto;
|
|
11967
|
+
/**
|
|
11968
|
+
* Per-slice spend windows. Mutually exclusive with `windows`.
|
|
11969
|
+
* @type {Array<UserBudgetSliceDto>}
|
|
11970
|
+
* @memberof UserBudgetDto
|
|
11971
|
+
*/
|
|
11972
|
+
slices?: Array<UserBudgetSliceDto>;
|
|
11973
|
+
/**
|
|
11974
|
+
* Caps that further limit this budget.
|
|
11975
|
+
* @type {Array<UserBudgetCapDto>}
|
|
11976
|
+
* @memberof UserBudgetDto
|
|
11977
|
+
*/
|
|
11978
|
+
caps?: Array<UserBudgetCapDto>;
|
|
11979
|
+
}
|
|
11980
|
+
/**
|
|
11981
|
+
*
|
|
11982
|
+
* @export
|
|
11983
|
+
* @interface UserBudgetSliceDto
|
|
11984
|
+
*/
|
|
11985
|
+
export interface UserBudgetSliceDto {
|
|
11986
|
+
/**
|
|
11987
|
+
* The value of the dimension the budget is split by.
|
|
11988
|
+
* @type {string}
|
|
11989
|
+
* @memberof UserBudgetSliceDto
|
|
11990
|
+
*/
|
|
11991
|
+
slice: string;
|
|
11992
|
+
/**
|
|
11993
|
+
*
|
|
11994
|
+
* @type {UserBudgetWindowsDto}
|
|
11995
|
+
* @memberof UserBudgetSliceDto
|
|
11996
|
+
*/
|
|
11997
|
+
windows: UserBudgetWindowsDto;
|
|
11998
|
+
}
|
|
11999
|
+
/**
|
|
12000
|
+
*
|
|
12001
|
+
* @export
|
|
12002
|
+
* @interface UserBudgetWindowStatsDto
|
|
12003
|
+
*/
|
|
12004
|
+
export interface UserBudgetWindowStatsDto {
|
|
12005
|
+
/**
|
|
12006
|
+
*
|
|
12007
|
+
* @type {number}
|
|
12008
|
+
* @memberof UserBudgetWindowStatsDto
|
|
12009
|
+
*/
|
|
12010
|
+
total: number;
|
|
12011
|
+
/**
|
|
12012
|
+
*
|
|
12013
|
+
* @type {number}
|
|
12014
|
+
* @memberof UserBudgetWindowStatsDto
|
|
12015
|
+
*/
|
|
12016
|
+
used: number;
|
|
12017
|
+
/**
|
|
12018
|
+
* Optional ISO-8601 instant, forwarded as DIAL Core sends it, at which this window ends and a fresh one begins. The offset is that of the rate-limit schedule time zone configured in DIAL Core: `Z` when the schedule is UTC (the default), otherwise the zone offset, for example `2026-12-04T00:00:00+01:00`. The window boundary follows that zone and its reset time, so it is not necessarily UTC midnight. DIAL Core may omit the field. The BFF never parses, reformats, converts, drops or synthesizes it.
|
|
12019
|
+
* @type {string}
|
|
12020
|
+
* @memberof UserBudgetWindowStatsDto
|
|
12021
|
+
*/
|
|
12022
|
+
resetsAt?: string;
|
|
12023
|
+
}
|
|
12024
|
+
/**
|
|
12025
|
+
*
|
|
12026
|
+
* @export
|
|
12027
|
+
* @interface UserBudgetWindowsDto
|
|
12028
|
+
*/
|
|
12029
|
+
export interface UserBudgetWindowsDto {
|
|
12030
|
+
/**
|
|
12031
|
+
* Spend in the current day of DIAL Core's rate-limit schedule time zone (not necessarily UTC). A `total` at or above 2^53 (9007199254740992) is DIAL Core's "unlimited" sentinel (`Long.MAX_VALUE`, which JSON parsing turns into 9223372036854776000); treat it as unlimited and never compare it for equality with 9223372036854775807.
|
|
12032
|
+
* @type {UserBudgetWindowStatsDto}
|
|
12033
|
+
* @memberof UserBudgetWindowsDto
|
|
12034
|
+
*/
|
|
12035
|
+
day: UserBudgetWindowStatsDto;
|
|
12036
|
+
/**
|
|
12037
|
+
* Spend in the current month of DIAL Core's rate-limit schedule time zone (not necessarily UTC). A `total` at or above 2^53 (9007199254740992) is DIAL Core's "unlimited" sentinel (`Long.MAX_VALUE`, which JSON parsing turns into 9223372036854776000); treat it as unlimited and never compare it for equality with 9223372036854775807.
|
|
12038
|
+
* @type {UserBudgetWindowStatsDto}
|
|
12039
|
+
* @memberof UserBudgetWindowsDto
|
|
12040
|
+
*/
|
|
12041
|
+
month: UserBudgetWindowStatsDto;
|
|
12042
|
+
}
|
|
12043
|
+
/**
|
|
12044
|
+
*
|
|
12045
|
+
* @export
|
|
12046
|
+
* @interface UserBudgetsResponseDto
|
|
12047
|
+
*/
|
|
12048
|
+
export interface UserBudgetsResponseDto {
|
|
12049
|
+
/**
|
|
12050
|
+
* When true and a call names no budget and no default applies, DIAL Core picks the payer itself, walking the budgets by priority; when false it refuses such a call.
|
|
12051
|
+
* @type {boolean}
|
|
12052
|
+
* @memberof UserBudgetsResponseDto
|
|
12053
|
+
*/
|
|
12054
|
+
autoBudgetSelection: boolean;
|
|
12055
|
+
/**
|
|
12056
|
+
* When true, DIAL Core refuses a call to a model that does not carry the `X-DIAL-BUDGET` header, with `400`. A default budget does not satisfy it.
|
|
12057
|
+
* @type {boolean}
|
|
12058
|
+
* @memberof UserBudgetsResponseDto
|
|
12059
|
+
*/
|
|
12060
|
+
budgetMandatory: boolean;
|
|
12061
|
+
/**
|
|
12062
|
+
* The `budget` of the caller's default; DIAL Core sends `null` when none of the returned budgets is the default.
|
|
12063
|
+
* @type {string}
|
|
12064
|
+
* @memberof UserBudgetsResponseDto
|
|
12065
|
+
*/
|
|
12066
|
+
defaultBudget?: string | null;
|
|
12067
|
+
/**
|
|
12068
|
+
* Every budget instance the caller holds, in the order DIAL Core returns them (cost object, then priority, then id). Empty when spending limits are off.
|
|
12069
|
+
* @type {Array<UserBudgetDto>}
|
|
12070
|
+
* @memberof UserBudgetsResponseDto
|
|
12071
|
+
*/
|
|
12072
|
+
budgets: Array<UserBudgetDto>;
|
|
12073
|
+
}
|
|
11581
12074
|
/**
|
|
11582
12075
|
*
|
|
11583
12076
|
* @export
|
|
@@ -11730,7 +12223,7 @@ export interface UserProfileDto {
|
|
|
11730
12223
|
*/
|
|
11731
12224
|
export interface UserUsageHistoryResponseDto {
|
|
11732
12225
|
/**
|
|
11733
|
-
* Whether DIAL Analytics answered. `true`: `period`, `currency`, `totals`, `daily` and `byModel` are present (and `byClient` when the client-identity enrichment is available). `false`: only `reason` is present.
|
|
12226
|
+
* Whether DIAL Analytics answered. `true`: `period`, `currency`, `totals`, `daily` and `byModel` are present (and `byClient` when the client-identity enrichment is available, `latestRequestAt` when the window has a counted row, `tokens` when the token totals were read). `false`: only `reason` is present.
|
|
11734
12227
|
* @type {boolean}
|
|
11735
12228
|
* @memberof UserUsageHistoryResponseDto
|
|
11736
12229
|
*/
|
|
@@ -11753,6 +12246,12 @@ export interface UserUsageHistoryResponseDto {
|
|
|
11753
12246
|
* @memberof UserUsageHistoryResponseDto
|
|
11754
12247
|
*/
|
|
11755
12248
|
period?: UsageHistoryWindowDto;
|
|
12249
|
+
/**
|
|
12250
|
+
* Present only when `available` is `true` and the window has a counted row: the `request_time` of the latest row that `totals` counts, in the same scope (without `budget` the latest priced root span, with `budget` the latest priced model call that budget paid for), ISO-8601 UTC with milliseconds. It is the time of the latest counted request, not an ingest watermark: DIAL Analytics stores a call minutes after it is made (usually 1 to 11, rarely up to a day), so calls newer than this may exist and appear on a later request. Absent when no row is counted.
|
|
12251
|
+
* @type {string}
|
|
12252
|
+
* @memberof UserUsageHistoryResponseDto
|
|
12253
|
+
*/
|
|
12254
|
+
latestRequestAt?: string;
|
|
11756
12255
|
/**
|
|
11757
12256
|
* Present only when `available` is `true`. Always `USD`: DIAL Analytics prices carry no currency.
|
|
11758
12257
|
* @type {string}
|
|
@@ -11765,6 +12264,12 @@ export interface UserUsageHistoryResponseDto {
|
|
|
11765
12264
|
* @memberof UserUsageHistoryResponseDto
|
|
11766
12265
|
*/
|
|
11767
12266
|
totals?: UsageHistoryTotalsDto;
|
|
12267
|
+
/**
|
|
12268
|
+
* Present only when `available` is `true` and the token totals were read: the caller's DIAL Analytics schema of the usage log lists `prompt_tokens`, `cached_prompt_tokens`, `cache_creation_tokens` and `event_kind`, and their query succeeded. Otherwise absent, not zero-filled; the other fields do not depend on it. Rows written by DIAL Core older than 0.47, and applications that copy their models' usage into their own report, are counted twice.
|
|
12269
|
+
* @type {UsageHistoryTokensDto}
|
|
12270
|
+
* @memberof UserUsageHistoryResponseDto
|
|
12271
|
+
*/
|
|
12272
|
+
tokens?: UsageHistoryTokensDto;
|
|
11768
12273
|
/**
|
|
11769
12274
|
* Present only when `available` is `true`. One entry per UTC date of the window, ascending, zero-filled.
|
|
11770
12275
|
* @type {Array<UsageHistoryDailyEntryDto>}
|
|
@@ -11784,6 +12289,73 @@ export interface UserUsageHistoryResponseDto {
|
|
|
11784
12289
|
*/
|
|
11785
12290
|
byClient?: Array<UsageHistoryClientEntryDto>;
|
|
11786
12291
|
}
|
|
12292
|
+
/**
|
|
12293
|
+
*
|
|
12294
|
+
* @export
|
|
12295
|
+
* @interface UserUsageSessionsResponseDto
|
|
12296
|
+
*/
|
|
12297
|
+
export interface UserUsageSessionsResponseDto {
|
|
12298
|
+
/**
|
|
12299
|
+
* Whether DIAL Analytics answered. `true`: `period`, `currency`, `totals`, `withoutSession`, `daily`, `sessions` and `truncated` are present (and `budget` when the request named one). `false`: only `reason` is present.
|
|
12300
|
+
* @type {boolean}
|
|
12301
|
+
* @memberof UserUsageSessionsResponseDto
|
|
12302
|
+
*/
|
|
12303
|
+
available: boolean;
|
|
12304
|
+
/**
|
|
12305
|
+
* Present only when `available` is `false`. `not_configured`: ANALYTICS_URL is unset. `forbidden`: DIAL Analytics refused the caller's token, the caller cannot read the usage log, or DIAL Analytics cannot run the own-rows filter. `unavailable`: timeout, network error, server error or an unexpected response. `sessions_unsupported`: the caller's DIAL Analytics schema of the usage log does not list the session columns (the recommended catalog's `usage_client_identity` enrichment and `trace_id`). `budget_unsupported`: `costObject` and `policy` were given, but that schema has no budget columns.
|
|
12306
|
+
* @type {UsageSessionsUnavailableReason}
|
|
12307
|
+
* @memberof UserUsageSessionsResponseDto
|
|
12308
|
+
*/
|
|
12309
|
+
reason?: UsageSessionsUnavailableReason;
|
|
12310
|
+
/**
|
|
12311
|
+
* Present only when `available` is `true`. The half-open window `[from, to)`.
|
|
12312
|
+
* @type {UsageHistoryWindowDto}
|
|
12313
|
+
* @memberof UserUsageSessionsResponseDto
|
|
12314
|
+
*/
|
|
12315
|
+
period?: UsageHistoryWindowDto;
|
|
12316
|
+
/**
|
|
12317
|
+
* Present only when `available` is `true` and the request named a budget: every figure is then that budget's, from the model calls it paid for.
|
|
12318
|
+
* @type {UsageSessionsBudgetDto}
|
|
12319
|
+
* @memberof UserUsageSessionsResponseDto
|
|
12320
|
+
*/
|
|
12321
|
+
budget?: UsageSessionsBudgetDto;
|
|
12322
|
+
/**
|
|
12323
|
+
* Present only when `available` is `true`. Always `USD`: DIAL Analytics prices carry no currency.
|
|
12324
|
+
* @type {string}
|
|
12325
|
+
* @memberof UserUsageSessionsResponseDto
|
|
12326
|
+
*/
|
|
12327
|
+
currency?: string;
|
|
12328
|
+
/**
|
|
12329
|
+
* Present only when `available` is `true`. Every session of the window. Counted rows are the caller's priced model calls of the window (a `deployment_price`, as DIAL Core writes it for a call that cost something) at every depth of the call chain, with a session id from the `usage_client_identity` enrichment of DIAL Analytics; with `budget`, only the calls that budget paid for. Application, router, MCP and route rows, failed and refused calls, and calls to a model without pricing carry no price and are not counted.
|
|
12330
|
+
* @type {UsageSessionsTotalsDto}
|
|
12331
|
+
* @memberof UserUsageSessionsResponseDto
|
|
12332
|
+
*/
|
|
12333
|
+
totals?: UsageSessionsTotalsDto;
|
|
12334
|
+
/**
|
|
12335
|
+
* Present only when `available` is `true`. The priced model calls of the window that no session lists, so a client can say what the list leaves out.
|
|
12336
|
+
* @type {UsageSessionsWithoutSessionDto}
|
|
12337
|
+
* @memberof UserUsageSessionsResponseDto
|
|
12338
|
+
*/
|
|
12339
|
+
withoutSession?: UsageSessionsWithoutSessionDto;
|
|
12340
|
+
/**
|
|
12341
|
+
* Present only when `available` is `true`. One entry per UTC date of the window, ascending, zero-filled; the busiest day is the entry with the most sessions.
|
|
12342
|
+
* @type {Array<UsageSessionsDailyEntryDto>}
|
|
12343
|
+
* @memberof UserUsageSessionsResponseDto
|
|
12344
|
+
*/
|
|
12345
|
+
daily?: Array<UsageSessionsDailyEntryDto>;
|
|
12346
|
+
/**
|
|
12347
|
+
* Present only when `available` is `true`. At most the 100 sessions with the latest `lastRequestAt`, latest first, then by `id`. There is no search or offset: filter this page, and read `truncated` to know whether it is partial.
|
|
12348
|
+
* @type {Array<UsageSessionEntryDto>}
|
|
12349
|
+
* @memberof UserUsageSessionsResponseDto
|
|
12350
|
+
*/
|
|
12351
|
+
sessions?: Array<UsageSessionEntryDto>;
|
|
12352
|
+
/**
|
|
12353
|
+
* Present only when `available` is `true`. Whether the window has more sessions than `sessions` lists; `totals` and `daily` always cover them all.
|
|
12354
|
+
* @type {boolean}
|
|
12355
|
+
* @memberof UserUsageSessionsResponseDto
|
|
12356
|
+
*/
|
|
12357
|
+
truncated?: boolean;
|
|
12358
|
+
}
|
|
11787
12359
|
/**
|
|
11788
12360
|
*
|
|
11789
12361
|
* @export
|