@epam/ai-dial-chat-api-client 1.4.0-rc.1 → 1.4.0-rc.11

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.
@@ -2625,6 +2625,12 @@ export interface ConversationMessageCustomContentDto {
2625
2625
  * @memberof ConversationMessageCustomContentDto
2626
2626
  */
2627
2627
  configurationValue?: object;
2628
+ /**
2629
+ * Legacy field: the JSON schema `configuration_value` was submitted against, which the earlier DIAL Chat stored on user messages. Conversation reads return it as stored. A completion request accepts it and does not copy it onto the user message it creates; creating a conversation stores it on the first message as given.
2630
+ * @type {object}
2631
+ * @memberof ConversationMessageCustomContentDto
2632
+ */
2633
+ configurationSchema?: object;
2628
2634
  /**
2629
2635
  * Key-value map of form field values submitted via an embedded form widget.
2630
2636
  * @type {object}
@@ -4434,6 +4440,12 @@ export interface DeploymentFeaturesDetailsDto {
4434
4440
  * @memberof DeploymentFeaturesDetailsDto
4435
4441
  */
4436
4442
  responsesApi?: boolean;
4443
+ /**
4444
+ * Supports Anthropic Messages, derived from DIAL Core declared-interface metadata
4445
+ * @type {boolean}
4446
+ * @memberof DeploymentFeaturesDetailsDto
4447
+ */
4448
+ anthropicMessages?: boolean;
4437
4449
  /**
4438
4450
  * Supports custom skills in chat requests
4439
4451
  * @type {boolean}
@@ -6801,6 +6813,12 @@ export interface MessageCustomContentDto {
6801
6813
  * @memberof MessageCustomContentDto
6802
6814
  */
6803
6815
  configurationValue?: object;
6816
+ /**
6817
+ * Legacy field: the JSON schema `configuration_value` was submitted against, which the earlier DIAL Chat stored on user messages. Conversation reads return it as stored. A completion request accepts it and does not copy it onto the user message it creates; creating a conversation stores it on the first message as given.
6818
+ * @type {object}
6819
+ * @memberof MessageCustomContentDto
6820
+ */
6821
+ configurationSchema?: object;
6804
6822
  /**
6805
6823
  * Key-value map of form field values submitted via an embedded form widget.
6806
6824
  * @type {object}
@@ -7065,6 +7083,12 @@ export interface ModelCatalogEntryDto {
7065
7083
  * @memberof ModelCatalogEntryDto
7066
7084
  */
7067
7085
  catalogProperties?: ModelCatalogPropertiesDto;
7086
+ /**
7087
+ * Normalized supported API names from DIAL Core declarations, with legacy OpenAI fallback when metadata is unavailable; no interface defaults or headers
7088
+ * @type {Array<string>}
7089
+ * @memberof ModelCatalogEntryDto
7090
+ */
7091
+ supportedInterfaces?: Array<string>;
7068
7092
  }
7069
7093
  /**
7070
7094
  *
@@ -10001,6 +10025,101 @@ export declare const TextRefinementPurpose: {
10001
10025
  readonly ProjectInstructions: "project-instructions";
10002
10026
  };
10003
10027
  export type TextRefinementPurpose = (typeof TextRefinementPurpose)[keyof typeof TextRefinementPurpose];
10028
+ /**
10029
+ *
10030
+ * @export
10031
+ * @interface ThemeCatalogDto
10032
+ */
10033
+ export interface ThemeCatalogDto {
10034
+ /**
10035
+ * Every valid configured theme, in configuration order.
10036
+ * @type {Array<ThemeCatalogThemeDto>}
10037
+ * @memberof ThemeCatalogDto
10038
+ */
10039
+ themes: Array<ThemeCatalogThemeDto>;
10040
+ /**
10041
+ * Global images shared by every theme.
10042
+ * @type {ThemeCatalogImagesDto}
10043
+ * @memberof ThemeCatalogDto
10044
+ */
10045
+ images: ThemeCatalogImagesDto;
10046
+ }
10047
+ /**
10048
+ *
10049
+ * @export
10050
+ * @interface ThemeCatalogImagesDto
10051
+ */
10052
+ export interface ThemeCatalogImagesDto {
10053
+ /**
10054
+ * Logo file name for light themes. From `chat-logo-light`.
10055
+ * @type {string}
10056
+ * @memberof ThemeCatalogImagesDto
10057
+ */
10058
+ chatLogoLight?: string;
10059
+ /**
10060
+ * Logo file name for the dark theme. From `chat-logo-dark`.
10061
+ * @type {string}
10062
+ * @memberof ThemeCatalogImagesDto
10063
+ */
10064
+ chatLogoDark?: string;
10065
+ /**
10066
+ * Favicon file name. From `chat-favicon`.
10067
+ * @type {string}
10068
+ * @memberof ThemeCatalogImagesDto
10069
+ */
10070
+ chatFavicon?: string;
10071
+ /**
10072
+ * Fallback add-on icon file name. From `default-addon`.
10073
+ * @type {string}
10074
+ * @memberof ThemeCatalogImagesDto
10075
+ */
10076
+ defaultAddon?: string;
10077
+ /**
10078
+ * Fallback model icon file name. From `default-model`.
10079
+ * @type {string}
10080
+ * @memberof ThemeCatalogImagesDto
10081
+ */
10082
+ defaultModel?: string;
10083
+ /**
10084
+ * Legacy favicon file name. From `favicon`.
10085
+ * @type {string}
10086
+ * @memberof ThemeCatalogImagesDto
10087
+ */
10088
+ favicon?: string;
10089
+ }
10090
+ /**
10091
+ *
10092
+ * @export
10093
+ * @interface ThemeCatalogThemeDto
10094
+ */
10095
+ export interface ThemeCatalogThemeDto {
10096
+ /**
10097
+ * Unique theme ID. Duplicates are dropped; the first wins.
10098
+ * @type {string}
10099
+ * @memberof ThemeCatalogThemeDto
10100
+ */
10101
+ id: string;
10102
+ /**
10103
+ * Human-readable theme name shown in the theme picker.
10104
+ * @type {string}
10105
+ * @memberof ThemeCatalogThemeDto
10106
+ */
10107
+ displayName: string;
10108
+ /**
10109
+ * CSS custom-property values keyed by token name (without the `--` prefix). Token names are not camel-cased.
10110
+ * @type {{ [key: string]: string; }}
10111
+ * @memberof ThemeCatalogThemeDto
10112
+ */
10113
+ colors: {
10114
+ [key: string]: string;
10115
+ };
10116
+ /**
10117
+ * Theme logo file name, usable with GET /api/themes/icon. From the legacy `app-logo` key.
10118
+ * @type {string}
10119
+ * @memberof ThemeCatalogThemeDto
10120
+ */
10121
+ appLogo?: string;
10122
+ }
10004
10123
  /**
10005
10124
  *
10006
10125
  * @export
@@ -11214,6 +11333,16 @@ export interface UploadArchiveResponseDto {
11214
11333
  */
11215
11334
  results: Array<UploadArchiveEntryResultDto>;
11216
11335
  }
11336
+ /**
11337
+ * How the budget's paid model calls are grouped, from the server setting ANALYTICS_BUDGET_BREAKDOWN. `model`: `byModel` names the model that served each call. `root`: `byModel` names the deployment or route the user called (`root_deployment`), and `unattributed` holds the calls whose rows have no root. `root_nested`: as `root`, and every named root lists the models that served it in `servedBy`. Always sent by this server with `budget`; optional so that a client also reads a server without it.
11338
+ * @export
11339
+ */
11340
+ export declare const UsageHistoryBudgetBreakdown: {
11341
+ readonly Model: "model";
11342
+ readonly Root: "root";
11343
+ readonly RootNested: "root_nested";
11344
+ };
11345
+ export type UsageHistoryBudgetBreakdown = (typeof UsageHistoryBudgetBreakdown)[keyof typeof UsageHistoryBudgetBreakdown];
11217
11346
  /**
11218
11347
  *
11219
11348
  * @export
@@ -11232,6 +11361,12 @@ export interface UsageHistoryBudgetDto {
11232
11361
  * @memberof UsageHistoryBudgetDto
11233
11362
  */
11234
11363
  policy: string;
11364
+ /**
11365
+ * How the budget's paid model calls are grouped, from the server setting ANALYTICS_BUDGET_BREAKDOWN. `model`: `byModel` names the model that served each call. `root`: `byModel` names the deployment or route the user called (`root_deployment`), and `unattributed` holds the calls whose rows have no root. `root_nested`: as `root`, and every named root lists the models that served it in `servedBy`. Always sent by this server with `budget`; optional so that a client also reads a server without it.
11366
+ * @type {UsageHistoryBudgetBreakdown}
11367
+ * @memberof UsageHistoryBudgetDto
11368
+ */
11369
+ breakdown?: UsageHistoryBudgetBreakdown;
11235
11370
  }
11236
11371
  /**
11237
11372
  *
@@ -11283,7 +11418,7 @@ export interface UsageHistoryDailyEntryDto {
11283
11418
  */
11284
11419
  requests: number;
11285
11420
  /**
11286
- * That date's spend per deployment, keyed by the deployment names of the top-level `byModel` (including `other`). Keys with no spend and no requests on that date are omitted, so a date without usage has an empty object.
11421
+ * That date's spend per entry, keyed by the `deployment` names of the top-level `byModel` (including `other` and `unattributed`). Keys with no spend and no requests on that date are omitted, so a date without usage has an empty object.
11287
11422
  * @type {{ [key: string]: number; }}
11288
11423
  * @memberof UsageHistoryDailyEntryDto
11289
11424
  */
@@ -11298,7 +11433,7 @@ export interface UsageHistoryDailyEntryDto {
11298
11433
  */
11299
11434
  export interface UsageHistoryModelEntryDto {
11300
11435
  /**
11301
- * Root deployment the user called (with `budget`: the model the budget paid for), or `other` for the remainder beyond the top 10 by spend.
11436
+ * Without `budget`: the root deployment the user called. With `budget` and `breakdown` `model`: the model the budget paid for. With `breakdown` `root` or `root_nested`: the deployment or route the user called (DIAL Core's `root_deployment`). Reserved names: `other` holds the remainder beyond the top 10 by spend; `unattributed` (budget with a root breakdown only, always last) holds the paid calls whose rows carry no root, for example rows written before DIAL Core recorded it. In a root breakdown a real root named `other` or `unattributed` is never listed by name: it is counted in `other`, so both names always mean the remainder and the calls without a root.
11302
11437
  * @type {string}
11303
11438
  * @memberof UsageHistoryModelEntryDto
11304
11439
  */
@@ -11310,11 +11445,17 @@ export interface UsageHistoryModelEntryDto {
11310
11445
  */
11311
11446
  spend: number;
11312
11447
  /**
11313
- * Number for this deployment. Without `budget`, user requests (root spans); with `budget`, model calls the budget paid for.
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.
11314
11449
  * @type {number}
11315
11450
  * @memberof UsageHistoryModelEntryDto
11316
11451
  */
11317
11452
  requests: number;
11453
+ /**
11454
+ * Present only with `budget` and `breakdown` `root_nested`, on every named root (never on `other` or `unattributed`). The models that served the paid calls of this root in the window, by spend descending, then requests descending, then name. Their exact spend and requests sum to this entry's, except for paid calls ingested between the two DIAL Analytics reads, which can make them sum slightly above it. Each spend is rounded on its own, so the rounded values may differ from this entry's by up to 0.0000005 each. When the served-by read returns its limit of 1000 (root, model) pairs, the lowest-spend pairs may be cut, and a final `other` entry holds what the listed models leave of this entry.
11455
+ * @type {Array<UsageHistoryServedByEntryDto>}
11456
+ * @memberof UsageHistoryModelEntryDto
11457
+ */
11458
+ servedBy?: Array<UsageHistoryServedByEntryDto>;
11318
11459
  }
11319
11460
  /**
11320
11461
  *
@@ -11326,6 +11467,31 @@ export declare const UsageHistoryPeriod: {
11326
11467
  readonly Month: "month";
11327
11468
  };
11328
11469
  export type UsageHistoryPeriod = (typeof UsageHistoryPeriod)[keyof typeof UsageHistoryPeriod];
11470
+ /**
11471
+ *
11472
+ * @export
11473
+ * @interface UsageHistoryServedByEntryDto
11474
+ */
11475
+ export interface UsageHistoryServedByEntryDto {
11476
+ /**
11477
+ * Model that served the root's paid calls, or `other` for the difference when the served-by read of the window returned its limit of 1000 (root, model) pairs.
11478
+ * @type {string}
11479
+ * @memberof UsageHistoryServedByEntryDto
11480
+ */
11481
+ deployment: string;
11482
+ /**
11483
+ * Spend in USD, rounded to 6 decimal places (half away from zero). Without `budget`, summed from the root span's chain-inclusive price: a call to an application includes the models it called. With `budget`, summed from the own price of the model calls that budget paid for.
11484
+ * @type {number}
11485
+ * @memberof UsageHistoryServedByEntryDto
11486
+ */
11487
+ spend: number;
11488
+ /**
11489
+ * Number of model calls the budget paid for, of this model under the root.
11490
+ * @type {number}
11491
+ * @memberof UsageHistoryServedByEntryDto
11492
+ */
11493
+ requests: number;
11494
+ }
11329
11495
  /**
11330
11496
  *
11331
11497
  * @export
@@ -11346,7 +11512,7 @@ export interface UsageHistoryTotalsDto {
11346
11512
  requests: number;
11347
11513
  }
11348
11514
  /**
11349
- * 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 (no query caller values, or `user_hash` hidden from the caller). `unavailable`: timeout, network error or server error. `budget_unsupported`: `costObject` and `policy` were given, but the caller's DIAL Analytics schema of the usage log has no budget columns.
11515
+ * 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 (no query caller values, or `user_hash` hidden from the caller). `unavailable`: timeout, network error, server error, or, with `budget` and a root breakdown, a caller schema of the usage log without `root_deployment` (needs DIAL Analytics 0.25). `budget_unsupported`: `costObject` and `policy` were given, but the caller's DIAL Analytics schema of the usage log has no budget columns.
11350
11516
  * @export
11351
11517
  */
11352
11518
  export declare const UsageHistoryUnavailableReason: {
@@ -11381,6 +11547,37 @@ export interface UsageHistoryWindowDto {
11381
11547
  */
11382
11548
  to: string;
11383
11549
  }
11550
+ /**
11551
+ *
11552
+ * @export
11553
+ * @interface UsageTotalsWindowDto
11554
+ */
11555
+ export interface UsageTotalsWindowDto {
11556
+ /**
11557
+ * Inclusive window start, ISO-8601 UTC with milliseconds.
11558
+ * @type {string}
11559
+ * @memberof UsageTotalsWindowDto
11560
+ */
11561
+ from: string;
11562
+ /**
11563
+ * Exclusive window end, ISO-8601 UTC with milliseconds. `current`: the request time. `previous`: its start plus the time elapsed in `current`, or the start of `current` when the previous period is shorter.
11564
+ * @type {string}
11565
+ * @memberof UsageTotalsWindowDto
11566
+ */
11567
+ to: string;
11568
+ /**
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), so calls charged to no budget are not included, and rows written before DIAL Core logged the charged budget carry no outcome and are not counted.
11570
+ * @type {number}
11571
+ * @memberof UsageTotalsWindowDto
11572
+ */
11573
+ spend: number;
11574
+ /**
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), so calls charged to no budget are not included, and rows written before DIAL Core logged the charged budget carry no outcome and are not counted.
11576
+ * @type {number}
11577
+ * @memberof UsageTotalsWindowDto
11578
+ */
11579
+ requests: number;
11580
+ }
11384
11581
  /**
11385
11582
  *
11386
11583
  * @export
@@ -11520,7 +11717,7 @@ export interface UserProfileDto {
11520
11717
  */
11521
11718
  isAdmin: boolean;
11522
11719
  /**
11523
- * URL of the user's profile picture: the IdP's absolute http(s) `picture` claim, or the same-origin `GET /auth/me/picture` path when the IdP supplied the image inline. Omitted when there is no picture.
11720
+ * URL of the user's profile picture: the IdP's absolute http(s) `picture` claim, or the same-origin `GET /auth/me/picture` path when the IdP supplied the image inline. The inline path carries a per-user `u` query so a browser-cached picture is never reused for another user. Omitted when there is no picture.
11524
11721
  * @type {string}
11525
11722
  * @memberof UserProfileDto
11526
11723
  */
@@ -11539,13 +11736,13 @@ export interface UserUsageHistoryResponseDto {
11539
11736
  */
11540
11737
  available: boolean;
11541
11738
  /**
11542
- * 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 (no query caller values, or `user_hash` hidden from the caller). `unavailable`: timeout, network error or server error. `budget_unsupported`: `costObject` and `policy` were given, but the caller's DIAL Analytics schema of the usage log has no budget columns.
11739
+ * 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 (no query caller values, or `user_hash` hidden from the caller). `unavailable`: timeout, network error, server error, or, with `budget` and a root breakdown, a caller schema of the usage log without `root_deployment` (needs DIAL Analytics 0.25). `budget_unsupported`: `costObject` and `policy` were given, but the caller's DIAL Analytics schema of the usage log has no budget columns.
11543
11740
  * @type {UsageHistoryUnavailableReason}
11544
11741
  * @memberof UserUsageHistoryResponseDto
11545
11742
  */
11546
11743
  reason?: UsageHistoryUnavailableReason;
11547
11744
  /**
11548
- * 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. Rows written before DIAL Core logged the charged budget carry none and are not counted.
11745
+ * 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, grouped as `breakdown` says. Rows written before DIAL Core logged the charged budget carry none and are not counted.
11549
11746
  * @type {UsageHistoryBudgetDto}
11550
11747
  * @memberof UserUsageHistoryResponseDto
11551
11748
  */
@@ -11575,7 +11772,7 @@ export interface UserUsageHistoryResponseDto {
11575
11772
  */
11576
11773
  daily?: Array<UsageHistoryDailyEntryDto>;
11577
11774
  /**
11578
- * Present only when `available` is `true`. Root deployments by spend descending, at most 10, followed by one `other` entry with the remainder when more than 10 have usage. When the request named a budget, the entries are the models whose calls that budget paid for, including models called by an application or other deployment, not root deployments.
11775
+ * Present only when `available` is `true`. Root deployments by spend descending, at most 10, followed by one `other` entry with the remainder when more than 10 have usage. When the request named a budget, the entries are the models whose calls that budget paid for, including models called by an application or other deployment (`breakdown` `model`), or the deployments or routes the user called (`root`, `root_nested`), then `other`, then `unattributed` for paid calls without a root.
11579
11776
  * @type {Array<UsageHistoryModelEntryDto>}
11580
11777
  * @memberof UserUsageHistoryResponseDto
11581
11778
  */
@@ -11587,6 +11784,49 @@ export interface UserUsageHistoryResponseDto {
11587
11784
  */
11588
11785
  byClient?: Array<UsageHistoryClientEntryDto>;
11589
11786
  }
11787
+ /**
11788
+ *
11789
+ * @export
11790
+ * @interface UserUsageTotalsResponseDto
11791
+ */
11792
+ export interface UserUsageTotalsResponseDto {
11793
+ /**
11794
+ * Whether DIAL Analytics answered. `true`: `period`, `currency`, `current` and `previous` are present. `false`: only `reason` is present.
11795
+ * @type {boolean}
11796
+ * @memberof UserUsageTotalsResponseDto
11797
+ */
11798
+ available: boolean;
11799
+ /**
11800
+ * 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, for either window. `budget_unsupported`: the caller's DIAL Analytics schema of the usage log has no budget columns.
11801
+ * @type {UsageHistoryUnavailableReason}
11802
+ * @memberof UserUsageTotalsResponseDto
11803
+ */
11804
+ reason?: UsageHistoryUnavailableReason;
11805
+ /**
11806
+ * Present only when `available` is `true`. The requested period.
11807
+ * @type {UsageHistoryPeriod}
11808
+ * @memberof UserUsageTotalsResponseDto
11809
+ */
11810
+ period?: UsageHistoryPeriod;
11811
+ /**
11812
+ * Present only when `available` is `true`. Always `USD`: DIAL Analytics prices carry no currency.
11813
+ * @type {string}
11814
+ * @memberof UserUsageTotalsResponseDto
11815
+ */
11816
+ currency?: string;
11817
+ /**
11818
+ * Present only when `available` is `true`. The current UTC day, ISO week (Monday start) or month, from its start to the request time.
11819
+ * @type {UsageTotalsWindowDto}
11820
+ * @memberof UserUsageTotalsResponseDto
11821
+ */
11822
+ current?: UsageTotalsWindowDto;
11823
+ /**
11824
+ * Present only when `available` is `true`, always together with `current`. The previous day, ISO week or month over the same elapsed time, cut at its own end.
11825
+ * @type {UsageTotalsWindowDto}
11826
+ * @memberof UserUsageTotalsResponseDto
11827
+ */
11828
+ previous?: UsageTotalsWindowDto;
11829
+ }
11590
11830
  /**
11591
11831
  *
11592
11832
  * @export