@ondewo/csi-client-angular 5.4.1 → 5.4.2
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.
|
@@ -2,9 +2,12 @@ import { BinaryReader, BinaryWriter } from 'google-protobuf';
|
|
|
2
2
|
import * as googleProtobuf005 from '@ngx-grpc/well-known-types';
|
|
3
3
|
import { uint8ArrayToBase64, GrpcMetadata, GrpcCallType } from '@ngx-grpc/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { InjectionToken, Optional, Inject, Injectable } from '@angular/core';
|
|
5
|
+
import { InjectionToken, Optional, Inject, Injectable, inject, makeEnvironmentProviders } from '@angular/core';
|
|
6
6
|
import * as i1 from '@ngx-grpc/core';
|
|
7
|
-
import { throwStatusErrors, takeMessages, GRPC_CLIENT_FACTORY } from '@ngx-grpc/core';
|
|
7
|
+
import { throwStatusErrors, takeMessages, GRPC_CLIENT_FACTORY, GRPC_INTERCEPTORS } from '@ngx-grpc/core';
|
|
8
|
+
import * as i1$1 from '@angular/common/http';
|
|
9
|
+
import { HttpHeaders } from '@angular/common/http';
|
|
10
|
+
import { firstValueFrom, isObservable, from, Observable, of, switchMap } from 'rxjs';
|
|
8
11
|
|
|
9
12
|
/**
|
|
10
13
|
* Message implementation for google.api.Http
|
|
@@ -152695,9 +152698,556 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.29", ngImpo
|
|
|
152695
152698
|
args: [GRPC_CLIENT_FACTORY]
|
|
152696
152699
|
}] }, { type: i1.GrpcHandler }] });
|
|
152697
152700
|
|
|
152701
|
+
/**
|
|
152702
|
+
* DI token under which the consuming application registers its
|
|
152703
|
+
* {@link TokenProvider} implementation.
|
|
152704
|
+
*
|
|
152705
|
+
* Example:
|
|
152706
|
+
*
|
|
152707
|
+
* ```ts
|
|
152708
|
+
* providers: [
|
|
152709
|
+
* { provide: TOKEN_PROVIDER, useExisting: KeycloakTokenProvider },
|
|
152710
|
+
* ]
|
|
152711
|
+
* ```
|
|
152712
|
+
*/
|
|
152713
|
+
const TOKEN_PROVIDER = new InjectionToken("ONDEWO_CSI_TOKEN_PROVIDER");
|
|
152714
|
+
|
|
152715
|
+
/**
|
|
152716
|
+
* Seconds of head-room subtracted from a token's `expires_in` so the background
|
|
152717
|
+
* refresh fires *before* the access token actually lapses. Covers clock skew
|
|
152718
|
+
* plus the round-trip latency to Keycloak so an in-flight request never travels
|
|
152719
|
+
* with a token that expires mid-flight.
|
|
152720
|
+
*
|
|
152721
|
+
* Mirrors `REFRESH_SKEW_IN_S` in the Node.js SDK and `_EXPIRY_LEEWAY_S` in the
|
|
152722
|
+
* Python SDK.
|
|
152723
|
+
*/
|
|
152724
|
+
const REFRESH_SKEW_SECONDS = 30;
|
|
152725
|
+
/**
|
|
152726
|
+
* Lower bound (in seconds) for the scheduled refresh delay, so a tiny or zero
|
|
152727
|
+
* `expires_in` cannot spin a hot refresh loop.
|
|
152728
|
+
*/
|
|
152729
|
+
const MIN_REFRESH_DELAY_SECONDS = 1;
|
|
152730
|
+
/**
|
|
152731
|
+
* DI token under which the consuming application provides the
|
|
152732
|
+
* {@link KeycloakTokenProviderConfig} consumed by {@link KeycloakTokenProvider}.
|
|
152733
|
+
*
|
|
152734
|
+
* Example:
|
|
152735
|
+
*
|
|
152736
|
+
* ```ts
|
|
152737
|
+
* providers: [
|
|
152738
|
+
* {
|
|
152739
|
+
* provide: KEYCLOAK_TOKEN_PROVIDER_CONFIG,
|
|
152740
|
+
* useValue: {
|
|
152741
|
+
* keycloakUrl: "https://auth.example.com",
|
|
152742
|
+
* realm: "ondewo-ccai-platform",
|
|
152743
|
+
* clientId: "ondewo-nlu-cai-sdk-public",
|
|
152744
|
+
* offlineToken: "<offline-token>",
|
|
152745
|
+
* },
|
|
152746
|
+
* },
|
|
152747
|
+
* ]
|
|
152748
|
+
* ```
|
|
152749
|
+
*/
|
|
152750
|
+
const KEYCLOAK_TOKEN_PROVIDER_CONFIG = new InjectionToken("ONDEWO_CSI_KEYCLOAK_TOKEN_PROVIDER_CONFIG");
|
|
152751
|
+
/** Raised on any token-endpoint failure or unusable token-endpoint response. */
|
|
152752
|
+
class KeycloakAuthenticationError extends Error {
|
|
152753
|
+
/**
|
|
152754
|
+
* @param message human-readable description of the token failure.
|
|
152755
|
+
*/
|
|
152756
|
+
constructor(message) {
|
|
152757
|
+
super(message);
|
|
152758
|
+
this.name = "KeycloakAuthenticationError";
|
|
152759
|
+
}
|
|
152760
|
+
}
|
|
152761
|
+
/**
|
|
152762
|
+
* Render an unknown thrown value as a human-readable detail string for an error
|
|
152763
|
+
* message, without risking the default `[object Object]` stringification.
|
|
152764
|
+
*
|
|
152765
|
+
* @param caughtError the value thrown by a failed token-endpoint call.
|
|
152766
|
+
* @returns the error's message (for `Error`s), the value itself (for strings),
|
|
152767
|
+
* or its JSON form (for anything else).
|
|
152768
|
+
*/
|
|
152769
|
+
function describeError(caughtError) {
|
|
152770
|
+
if (caughtError instanceof Error) {
|
|
152771
|
+
return caughtError.message;
|
|
152772
|
+
}
|
|
152773
|
+
if (typeof caughtError === "string") {
|
|
152774
|
+
return caughtError;
|
|
152775
|
+
}
|
|
152776
|
+
return JSON.stringify(caughtError);
|
|
152777
|
+
}
|
|
152778
|
+
/**
|
|
152779
|
+
* A concrete, ready-to-use {@link TokenProvider} that performs the headless
|
|
152780
|
+
* Keycloak offline-token flow itself, so consumers get background access-token
|
|
152781
|
+
* refresh without implementing {@link TokenProvider}.
|
|
152782
|
+
*
|
|
152783
|
+
* On the first {@link login}, the provider obtains an access token + an offline
|
|
152784
|
+
* refresh token (via `grant_type=refresh_token` when an `offlineToken` is
|
|
152785
|
+
* configured, otherwise via a one-time `grant_type=password` ROPC login with
|
|
152786
|
+
* `scope=offline_access`). It then keeps the access token fresh with a
|
|
152787
|
+
* background timer that re-runs the `refresh_token` grant {@link REFRESH_SKEW_SECONDS}
|
|
152788
|
+
* before the token expires. {@link getToken} returns the current cached access
|
|
152789
|
+
* token synchronously (or `null` before {@link login} completes).
|
|
152790
|
+
*
|
|
152791
|
+
* The flow mirrors the Node.js SDK's `OfflineTokenProvider` and the Python
|
|
152792
|
+
* SDK's `KeycloakTokenProvider` (refresh-before-expiry, refresh-token rotation,
|
|
152793
|
+
* a non-`null` `access_token` guard). No `client_secret` is ever sent.
|
|
152794
|
+
*
|
|
152795
|
+
* Register it with the SDK's `provideOndewoCsiAuth(KeycloakTokenProvider)` and
|
|
152796
|
+
* provide a {@link KEYCLOAK_TOKEN_PROVIDER_CONFIG}; call {@link login} once on
|
|
152797
|
+
* application start, and {@link ngOnDestroy} (or {@link stop}) cancels the
|
|
152798
|
+
* background refresh.
|
|
152799
|
+
*/
|
|
152800
|
+
class KeycloakTokenProvider {
|
|
152801
|
+
/**
|
|
152802
|
+
* Construct the provider. No network call is made here — call {@link login}
|
|
152803
|
+
* to acquire the first token and arm the background refresh.
|
|
152804
|
+
*
|
|
152805
|
+
* @param http the Angular {@link HttpClient} used for token-endpoint calls.
|
|
152806
|
+
* @param injectedConfig the {@link KeycloakTokenProviderConfig} (injected via
|
|
152807
|
+
* {@link KEYCLOAK_TOKEN_PROVIDER_CONFIG}).
|
|
152808
|
+
* @throws KeycloakAuthenticationError when no config is provided, when a
|
|
152809
|
+
* mandatory field is empty, or when neither an `offlineToken` nor a
|
|
152810
|
+
* `username`/`password` pair is supplied.
|
|
152811
|
+
*/
|
|
152812
|
+
constructor(http, injectedConfig) {
|
|
152813
|
+
this.http = http;
|
|
152814
|
+
/** The current access token, or `null` before {@link login} has completed. */
|
|
152815
|
+
this.accessToken = null;
|
|
152816
|
+
/** The current offline/refresh token, or `""` before {@link login}. */
|
|
152817
|
+
this.refreshToken = "";
|
|
152818
|
+
/** Handle of the armed refresh timer, or `null` when no refresh is scheduled. */
|
|
152819
|
+
this.timer = null;
|
|
152820
|
+
/** Whether {@link stop} has run; suppresses any further (re-)scheduling. */
|
|
152821
|
+
this.stopped = false;
|
|
152822
|
+
if (injectedConfig === null) {
|
|
152823
|
+
throw new KeycloakAuthenticationError("KeycloakTokenProvider requires a KEYCLOAK_TOKEN_PROVIDER_CONFIG to be provided");
|
|
152824
|
+
}
|
|
152825
|
+
for (const key of ["keycloakUrl", "realm", "clientId"]) {
|
|
152826
|
+
const value = injectedConfig[key];
|
|
152827
|
+
if (typeof value !== "string" || value.length === 0) {
|
|
152828
|
+
throw new KeycloakAuthenticationError(`KeycloakTokenProvider config field "${key}" is required and must be a non-empty string`);
|
|
152829
|
+
}
|
|
152830
|
+
}
|
|
152831
|
+
this.clientId = injectedConfig.clientId;
|
|
152832
|
+
// Stored for cross-SDK config parity; a no-op on the browser transport (see field doc).
|
|
152833
|
+
this.verifySsl = injectedConfig.keycloakVerifySsl ?? true;
|
|
152834
|
+
const base = injectedConfig.keycloakUrl.replace(/\/+$/, "");
|
|
152835
|
+
this.tokenEndpoint = `${base}/realms/${encodeURIComponent(injectedConfig.realm)}/protocol/openid-connect/token`;
|
|
152836
|
+
const offlineToken = injectedConfig.offlineToken;
|
|
152837
|
+
const username = injectedConfig.username;
|
|
152838
|
+
const password = injectedConfig.password;
|
|
152839
|
+
if (typeof offlineToken === "string" && offlineToken.length > 0) {
|
|
152840
|
+
this.loginParams = {
|
|
152841
|
+
grant_type: "refresh_token",
|
|
152842
|
+
client_id: this.clientId,
|
|
152843
|
+
refresh_token: offlineToken
|
|
152844
|
+
};
|
|
152845
|
+
}
|
|
152846
|
+
else if (typeof username === "string" && username.length > 0 && typeof password === "string" && password.length > 0) {
|
|
152847
|
+
this.loginParams = {
|
|
152848
|
+
grant_type: "password",
|
|
152849
|
+
client_id: this.clientId,
|
|
152850
|
+
username,
|
|
152851
|
+
password,
|
|
152852
|
+
scope: "offline_access"
|
|
152853
|
+
};
|
|
152854
|
+
}
|
|
152855
|
+
else {
|
|
152856
|
+
throw new KeycloakAuthenticationError("KeycloakTokenProvider config must supply either an offlineToken or a username + password");
|
|
152857
|
+
}
|
|
152858
|
+
}
|
|
152859
|
+
/**
|
|
152860
|
+
* Return the current access token, or `null` before {@link login} has
|
|
152861
|
+
* completed. Synchronous: the background timer keeps the cached token fresh,
|
|
152862
|
+
* so the SDK's interceptors read it without awaiting a network round-trip.
|
|
152863
|
+
*
|
|
152864
|
+
* @returns the current access token, or `null` when not yet authenticated.
|
|
152865
|
+
*/
|
|
152866
|
+
getToken() {
|
|
152867
|
+
return this.accessToken;
|
|
152868
|
+
}
|
|
152869
|
+
/**
|
|
152870
|
+
* The resolved TLS-verification setting from
|
|
152871
|
+
* {@link KeycloakTokenProviderConfig.keycloakVerifySsl} (defaults to `true`).
|
|
152872
|
+
*
|
|
152873
|
+
* Exposed for cross-SDK config parity and introspection only. It is a NO-OP in
|
|
152874
|
+
* this browser client — the browser owns the TLS handshake, so the value never
|
|
152875
|
+
* reaches {@link postTokenRequest} and does not change the outgoing request.
|
|
152876
|
+
*
|
|
152877
|
+
* @returns `true` when TLS verification is requested (the default), `false`
|
|
152878
|
+
* when the config explicitly opted out (still inert here).
|
|
152879
|
+
*/
|
|
152880
|
+
get keycloakVerifySsl() {
|
|
152881
|
+
return this.verifySsl;
|
|
152882
|
+
}
|
|
152883
|
+
/**
|
|
152884
|
+
* Perform the one-time login and arm the first background refresh.
|
|
152885
|
+
*
|
|
152886
|
+
* When the config carries an `offlineToken`, this runs a
|
|
152887
|
+
* `grant_type=refresh_token` exchange; otherwise it runs a one-time
|
|
152888
|
+
* `grant_type=password` ROPC login with `scope=offline_access`. Idempotent
|
|
152889
|
+
* results are not guaranteed — call it exactly once on application start.
|
|
152890
|
+
*
|
|
152891
|
+
* @returns a promise that resolves once the first access token is cached and
|
|
152892
|
+
* the background refresh is armed.
|
|
152893
|
+
* @throws KeycloakAuthenticationError when the token endpoint fails, the
|
|
152894
|
+
* response lacks an `access_token`, or (for the ROPC path) the response
|
|
152895
|
+
* carries no `refresh_token`.
|
|
152896
|
+
*/
|
|
152897
|
+
async login() {
|
|
152898
|
+
const response = await this.postTokenRequest(this.loginParams);
|
|
152899
|
+
this.storeTokens(response);
|
|
152900
|
+
if (this.refreshToken.length === 0) {
|
|
152901
|
+
throw new KeycloakAuthenticationError("Keycloak token response did not contain a refresh_token; the SDK client must have " +
|
|
152902
|
+
"directAccessGrants and the offline_access scope");
|
|
152903
|
+
}
|
|
152904
|
+
this.scheduleRefresh(response.expires_in);
|
|
152905
|
+
}
|
|
152906
|
+
/**
|
|
152907
|
+
* Exchange the offline refresh token for a fresh access token and re-arm the
|
|
152908
|
+
* next refresh. No-ops once {@link stop} has run.
|
|
152909
|
+
*
|
|
152910
|
+
* @returns a promise resolving once the token is refreshed and re-armed.
|
|
152911
|
+
* @throws KeycloakAuthenticationError when the refresh request fails or
|
|
152912
|
+
* returns an unusable body.
|
|
152913
|
+
*/
|
|
152914
|
+
async refresh() {
|
|
152915
|
+
if (this.stopped) {
|
|
152916
|
+
return;
|
|
152917
|
+
}
|
|
152918
|
+
const response = await this.postTokenRequest({
|
|
152919
|
+
grant_type: "refresh_token",
|
|
152920
|
+
client_id: this.clientId,
|
|
152921
|
+
refresh_token: this.refreshToken
|
|
152922
|
+
});
|
|
152923
|
+
this.storeTokens(response);
|
|
152924
|
+
this.scheduleRefresh(response.expires_in);
|
|
152925
|
+
}
|
|
152926
|
+
/**
|
|
152927
|
+
* Arm a single timer for the next refresh. The delay is `expiresInRaw` minus
|
|
152928
|
+
* {@link REFRESH_SKEW_SECONDS}, floored at {@link MIN_REFRESH_DELAY_SECONDS}.
|
|
152929
|
+
* A missing or non-positive `expires_in` falls back to the floor.
|
|
152930
|
+
*
|
|
152931
|
+
* @param expiresInRaw the `expires_in` (seconds) from the latest response.
|
|
152932
|
+
*/
|
|
152933
|
+
scheduleRefresh(expiresInRaw) {
|
|
152934
|
+
if (this.stopped) {
|
|
152935
|
+
return;
|
|
152936
|
+
}
|
|
152937
|
+
if (this.timer !== null) {
|
|
152938
|
+
clearTimeout(this.timer);
|
|
152939
|
+
}
|
|
152940
|
+
const expiresInSeconds = typeof expiresInRaw === "number" && expiresInRaw > 0 ? expiresInRaw : MIN_REFRESH_DELAY_SECONDS;
|
|
152941
|
+
const delaySeconds = Math.max(expiresInSeconds - REFRESH_SKEW_SECONDS, MIN_REFRESH_DELAY_SECONDS);
|
|
152942
|
+
this.timer = setTimeout(() => {
|
|
152943
|
+
void this.refresh().catch(() => {
|
|
152944
|
+
// Swallow a transient background-refresh failure: the next interceptor read
|
|
152945
|
+
// gets the stale (possibly expired) token and the server replies
|
|
152946
|
+
// UNAUTHENTICATED, prompting the consumer to re-login.
|
|
152947
|
+
});
|
|
152948
|
+
}, delaySeconds * 1000);
|
|
152949
|
+
}
|
|
152950
|
+
/**
|
|
152951
|
+
* POST a form-urlencoded body to the token endpoint and return the parsed
|
|
152952
|
+
* response.
|
|
152953
|
+
*
|
|
152954
|
+
* @param params the form fields to URL-encode into the request body.
|
|
152955
|
+
* @returns the parsed {@link KeycloakTokenResponse}.
|
|
152956
|
+
* @throws KeycloakAuthenticationError on a transport error.
|
|
152957
|
+
*/
|
|
152958
|
+
async postTokenRequest(params) {
|
|
152959
|
+
const body = new URLSearchParams(params).toString();
|
|
152960
|
+
const headers = new HttpHeaders({ "Content-Type": "application/x-www-form-urlencoded" });
|
|
152961
|
+
try {
|
|
152962
|
+
return await firstValueFrom(this.http.post(this.tokenEndpoint, body, { headers }));
|
|
152963
|
+
}
|
|
152964
|
+
catch (caughtError) {
|
|
152965
|
+
throw new KeycloakAuthenticationError(`Keycloak token request failed: ${describeError(caughtError)}`);
|
|
152966
|
+
}
|
|
152967
|
+
}
|
|
152968
|
+
/**
|
|
152969
|
+
* Store the access token and (rotated) refresh token from a token response.
|
|
152970
|
+
*
|
|
152971
|
+
* @param response the parsed token-endpoint response.
|
|
152972
|
+
* @throws KeycloakAuthenticationError when the response carries no
|
|
152973
|
+
* `access_token`.
|
|
152974
|
+
*/
|
|
152975
|
+
storeTokens(response) {
|
|
152976
|
+
if (typeof response.access_token !== "string" || response.access_token.length === 0) {
|
|
152977
|
+
throw new KeycloakAuthenticationError("Keycloak token response did not contain an access_token");
|
|
152978
|
+
}
|
|
152979
|
+
this.accessToken = response.access_token;
|
|
152980
|
+
// Keycloak may rotate the offline refresh token; keep the newest when present so a
|
|
152981
|
+
// response that omits it does not blank out the offline token.
|
|
152982
|
+
if (typeof response.refresh_token === "string" && response.refresh_token.length > 0) {
|
|
152983
|
+
this.refreshToken = response.refresh_token;
|
|
152984
|
+
}
|
|
152985
|
+
}
|
|
152986
|
+
/** Stop the background refresh loop. Idempotent; safe to call from any state. */
|
|
152987
|
+
stop() {
|
|
152988
|
+
this.stopped = true;
|
|
152989
|
+
if (this.timer !== null) {
|
|
152990
|
+
clearTimeout(this.timer);
|
|
152991
|
+
this.timer = null;
|
|
152992
|
+
}
|
|
152993
|
+
}
|
|
152994
|
+
/** Angular lifecycle hook: cancels the background refresh on destruction. */
|
|
152995
|
+
ngOnDestroy() {
|
|
152996
|
+
this.stop();
|
|
152997
|
+
}
|
|
152998
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.29", ngImport: i0, type: KeycloakTokenProvider, deps: [{ token: i1$1.HttpClient }, { token: KEYCLOAK_TOKEN_PROVIDER_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
152999
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.29", ngImport: i0, type: KeycloakTokenProvider }); }
|
|
153000
|
+
}
|
|
153001
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.29", ngImport: i0, type: KeycloakTokenProvider, decorators: [{
|
|
153002
|
+
type: Injectable
|
|
153003
|
+
}], ctorParameters: () => [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
|
|
153004
|
+
type: Optional
|
|
153005
|
+
}, {
|
|
153006
|
+
type: Inject,
|
|
153007
|
+
args: [KEYCLOAK_TOKEN_PROVIDER_CONFIG]
|
|
153008
|
+
}] }] });
|
|
153009
|
+
|
|
153010
|
+
/**
|
|
153011
|
+
* The HTTP / gRPC header under which the bearer credential is attached.
|
|
153012
|
+
*
|
|
153013
|
+
* Uses the canonical `Authorization` capitalization. HTTP and gRPC-web metadata
|
|
153014
|
+
* keys are matched case-insensitively, so this casing is compatible with every
|
|
153015
|
+
* transport while presenting the credential under its conventional name.
|
|
153016
|
+
*/
|
|
153017
|
+
const AUTHORIZATION_HEADER = "Authorization";
|
|
153018
|
+
/** The credential scheme prefix prepended to the raw access token. */
|
|
153019
|
+
const BEARER_PREFIX = "Bearer ";
|
|
153020
|
+
/**
|
|
153021
|
+
* Normalize the value returned by a `TokenProvider.getToken()` call — which may
|
|
153022
|
+
* be a `string`, `null`, a `Promise` or an `Observable` — into a single
|
|
153023
|
+
* `Observable<string | null>` that emits exactly once.
|
|
153024
|
+
*
|
|
153025
|
+
* A non-empty token is returned trimmed; `null`, `undefined`, an empty string
|
|
153026
|
+
* and a whitespace-only string are all collapsed to `null` so callers have a
|
|
153027
|
+
* single "no usable token" signal and never build an empty `Bearer` header.
|
|
153028
|
+
*
|
|
153029
|
+
* @param result the raw value returned by `TokenProvider.getToken()`.
|
|
153030
|
+
* @returns an observable emitting the usable token, or `null` when absent.
|
|
153031
|
+
*/
|
|
153032
|
+
function resolveToken(result) {
|
|
153033
|
+
const source = isObservable(result)
|
|
153034
|
+
? result
|
|
153035
|
+
: from(Promise.resolve(result));
|
|
153036
|
+
return new Observable((subscriber) => {
|
|
153037
|
+
const subscription = source.subscribe({
|
|
153038
|
+
next: (token) => subscriber.next(normalizeToken(token)),
|
|
153039
|
+
error: (caughtError) => subscriber.error(caughtError),
|
|
153040
|
+
complete: () => subscriber.complete()
|
|
153041
|
+
});
|
|
153042
|
+
return () => subscription.unsubscribe();
|
|
153043
|
+
});
|
|
153044
|
+
}
|
|
153045
|
+
/**
|
|
153046
|
+
* Build the `Authorization` header value for a resolved token, or `null` when
|
|
153047
|
+
* the token is absent.
|
|
153048
|
+
*
|
|
153049
|
+
* @param token a usable token, or `null`.
|
|
153050
|
+
* @returns the `"Bearer <token>"` string, or `null` when there is no token.
|
|
153051
|
+
*/
|
|
153052
|
+
function buildBearerValue(token) {
|
|
153053
|
+
return token === null ? null : `${BEARER_PREFIX}${token}`;
|
|
153054
|
+
}
|
|
153055
|
+
/**
|
|
153056
|
+
* Convenience wrapper: emit the ready-to-use `Authorization` header value, or
|
|
153057
|
+
* `null` when no token is available.
|
|
153058
|
+
*
|
|
153059
|
+
* @param result the raw value returned by `TokenProvider.getToken()`.
|
|
153060
|
+
* @returns an observable emitting the bearer header value, or `null`.
|
|
153061
|
+
*/
|
|
153062
|
+
function resolveBearerValue(result) {
|
|
153063
|
+
return new Observable((subscriber) => {
|
|
153064
|
+
const subscription = resolveToken(result).subscribe({
|
|
153065
|
+
next: (token) => subscriber.next(buildBearerValue(token)),
|
|
153066
|
+
error: (caughtError) => subscriber.error(caughtError),
|
|
153067
|
+
complete: () => subscriber.complete()
|
|
153068
|
+
});
|
|
153069
|
+
return () => subscription.unsubscribe();
|
|
153070
|
+
});
|
|
153071
|
+
}
|
|
153072
|
+
/**
|
|
153073
|
+
* Collapse every "no usable token" value to `null` and trim a real token.
|
|
153074
|
+
*
|
|
153075
|
+
* @param token the raw token emitted by the source.
|
|
153076
|
+
* @returns the trimmed token, or `null` when empty / whitespace-only / absent.
|
|
153077
|
+
*/
|
|
153078
|
+
function normalizeToken(token) {
|
|
153079
|
+
if (token === null || token === undefined) {
|
|
153080
|
+
return null;
|
|
153081
|
+
}
|
|
153082
|
+
const trimmed = token.trim();
|
|
153083
|
+
return trimmed.length === 0 ? null : trimmed;
|
|
153084
|
+
}
|
|
153085
|
+
/**
|
|
153086
|
+
* Wrap a synchronous value as a single-emission observable. Used by callers that
|
|
153087
|
+
* want to stay in the observable world without importing `rxjs` `of` directly.
|
|
153088
|
+
*
|
|
153089
|
+
* @param value the value to emit.
|
|
153090
|
+
* @returns an observable emitting `value` once and completing.
|
|
153091
|
+
*/
|
|
153092
|
+
function once(value) {
|
|
153093
|
+
return of(value);
|
|
153094
|
+
}
|
|
153095
|
+
|
|
153096
|
+
/**
|
|
153097
|
+
* Functional Angular `HttpInterceptor` that attaches the current Keycloak access
|
|
153098
|
+
* token as an `Authorization: Bearer <token>` header to outgoing HTTP requests.
|
|
153099
|
+
*
|
|
153100
|
+
* Behaviour:
|
|
153101
|
+
* - token present → a cloned request carrying the bearer header is forwarded.
|
|
153102
|
+
* - token absent / empty → the original request is forwarded untouched (no empty
|
|
153103
|
+
* `Bearer` header is ever sent).
|
|
153104
|
+
* - token source is async (Promise/Observable) → resolved before the request is
|
|
153105
|
+
* sent.
|
|
153106
|
+
* - an existing `Authorization` header on the request is left untouched, so a
|
|
153107
|
+
* caller that already set credentials explicitly wins.
|
|
153108
|
+
*
|
|
153109
|
+
* Register it in the application's HTTP pipeline:
|
|
153110
|
+
*
|
|
153111
|
+
* ```ts
|
|
153112
|
+
* provideHttpClient(withInterceptors([authHttpInterceptor]))
|
|
153113
|
+
* ```
|
|
153114
|
+
*
|
|
153115
|
+
* Errors raised by the `TokenProvider` propagate to the caller (the request is
|
|
153116
|
+
* not sent) so an authentication failure surfaces rather than silently issuing
|
|
153117
|
+
* an unauthenticated request.
|
|
153118
|
+
*
|
|
153119
|
+
* @param req the outgoing HTTP request.
|
|
153120
|
+
* @param next the next handler in the interceptor chain.
|
|
153121
|
+
* @returns the stream of HTTP events for the (possibly authorized) request.
|
|
153122
|
+
*/
|
|
153123
|
+
function authHttpInterceptor(req, next) {
|
|
153124
|
+
if (req.headers.has(AUTHORIZATION_HEADER)) {
|
|
153125
|
+
return next(req);
|
|
153126
|
+
}
|
|
153127
|
+
const tokenProvider = inject(TOKEN_PROVIDER);
|
|
153128
|
+
return resolveBearerValue(tokenProvider.getToken()).pipe(switchMap((bearerValue) => {
|
|
153129
|
+
if (bearerValue === null) {
|
|
153130
|
+
return next(req);
|
|
153131
|
+
}
|
|
153132
|
+
const authorizedRequest = req.clone({
|
|
153133
|
+
setHeaders: { [AUTHORIZATION_HEADER]: bearerValue }
|
|
153134
|
+
});
|
|
153135
|
+
return next(authorizedRequest);
|
|
153136
|
+
}));
|
|
153137
|
+
}
|
|
153138
|
+
|
|
153139
|
+
/**
|
|
153140
|
+
* `@ngx-grpc` interceptor that attaches the current Keycloak access token as an
|
|
153141
|
+
* `Authorization: Bearer <token>` entry on the gRPC-web request metadata. This
|
|
153142
|
+
* is the gRPC-web counterpart of {@link authHttpInterceptor} and matches the
|
|
153143
|
+
* `@ngx-grpc` client style used by every generated `*.pbsc.ts` service client in
|
|
153144
|
+
* this library (e.g. `ConversationsClient`).
|
|
153145
|
+
*
|
|
153146
|
+
* Behaviour mirrors the HTTP interceptor:
|
|
153147
|
+
* - token present → the bearer credential is set on `requestMetadata`.
|
|
153148
|
+
* - token absent / empty → the request metadata is left untouched (no empty
|
|
153149
|
+
* `Bearer` value is ever attached).
|
|
153150
|
+
* - token source is async (Promise/Observable) → resolved before the request is
|
|
153151
|
+
* handed to the next handler.
|
|
153152
|
+
* - an `authorization` entry already present on the request metadata is left
|
|
153153
|
+
* untouched, so an explicitly-set credential wins.
|
|
153154
|
+
*
|
|
153155
|
+
* Register it via the standard `@ngx-grpc` multi-provider:
|
|
153156
|
+
*
|
|
153157
|
+
* ```ts
|
|
153158
|
+
* providers: [
|
|
153159
|
+
* { provide: GRPC_INTERCEPTORS, useClass: AuthGrpcInterceptor, multi: true },
|
|
153160
|
+
* ]
|
|
153161
|
+
* ```
|
|
153162
|
+
*/
|
|
153163
|
+
class AuthGrpcInterceptor {
|
|
153164
|
+
/**
|
|
153165
|
+
* @param tokenProvider the application-supplied {@link TokenProvider} (injected
|
|
153166
|
+
* via the {@link TOKEN_PROVIDER} DI token) whose current access token is
|
|
153167
|
+
* attached to outgoing gRPC-web requests.
|
|
153168
|
+
*/
|
|
153169
|
+
constructor(tokenProvider) {
|
|
153170
|
+
this.tokenProvider = tokenProvider;
|
|
153171
|
+
}
|
|
153172
|
+
/**
|
|
153173
|
+
* Attach the bearer credential (when available) to the request metadata, then
|
|
153174
|
+
* delegate to the next handler in the chain.
|
|
153175
|
+
*
|
|
153176
|
+
* @param request the intercepted gRPC request.
|
|
153177
|
+
* @param next the next handler to pass the request through.
|
|
153178
|
+
* @returns the stream of gRPC events for the (possibly authorized) request.
|
|
153179
|
+
*/
|
|
153180
|
+
intercept(request, next) {
|
|
153181
|
+
if (request.requestMetadata.has(AUTHORIZATION_HEADER)) {
|
|
153182
|
+
return next.handle(request);
|
|
153183
|
+
}
|
|
153184
|
+
return resolveBearerValue(this.tokenProvider.getToken()).pipe(switchMap((bearerValue) => {
|
|
153185
|
+
if (bearerValue !== null) {
|
|
153186
|
+
request.requestMetadata.set(AUTHORIZATION_HEADER, bearerValue);
|
|
153187
|
+
}
|
|
153188
|
+
return next.handle(request);
|
|
153189
|
+
}));
|
|
153190
|
+
}
|
|
153191
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.29", ngImport: i0, type: AuthGrpcInterceptor, deps: [{ token: TOKEN_PROVIDER }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
153192
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.29", ngImport: i0, type: AuthGrpcInterceptor }); }
|
|
153193
|
+
}
|
|
153194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.29", ngImport: i0, type: AuthGrpcInterceptor, decorators: [{
|
|
153195
|
+
type: Injectable
|
|
153196
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
153197
|
+
type: Inject,
|
|
153198
|
+
args: [TOKEN_PROVIDER]
|
|
153199
|
+
}] }] });
|
|
153200
|
+
|
|
153201
|
+
/**
|
|
153202
|
+
* Wire a consuming application's {@link TokenProvider} implementation into this
|
|
153203
|
+
* library and register the `@ngx-grpc` {@link AuthGrpcInterceptor} that uses it.
|
|
153204
|
+
*
|
|
153205
|
+
* This covers the gRPC-web side. For HTTP requests, additionally register the
|
|
153206
|
+
* functional `authHttpInterceptor`:
|
|
153207
|
+
*
|
|
153208
|
+
* ```ts
|
|
153209
|
+
* provideHttpClient(withInterceptors([authHttpInterceptor]))
|
|
153210
|
+
* ```
|
|
153211
|
+
*
|
|
153212
|
+
* Usage in an application's `providers` (standalone bootstrap or `AppModule`):
|
|
153213
|
+
*
|
|
153214
|
+
* ```ts
|
|
153215
|
+
* import { provideOndewoCsiAuth } from "@ondewo/csi-client-angular";
|
|
153216
|
+
*
|
|
153217
|
+
* bootstrapApplication(AppComponent, {
|
|
153218
|
+
* providers: [
|
|
153219
|
+
* provideOndewoCsiAuth(KeycloakTokenProvider),
|
|
153220
|
+
* provideHttpClient(withInterceptors([authHttpInterceptor])),
|
|
153221
|
+
* ],
|
|
153222
|
+
* });
|
|
153223
|
+
* ```
|
|
153224
|
+
*
|
|
153225
|
+
* @param tokenProvider the application's `TokenProvider` class (e.g. one that
|
|
153226
|
+
* wraps `keycloak-js` / `keycloak-angular`).
|
|
153227
|
+
* @returns environment providers binding the token provider and the gRPC
|
|
153228
|
+
* interceptor.
|
|
153229
|
+
*/
|
|
153230
|
+
function provideOndewoCsiAuth(tokenProvider) {
|
|
153231
|
+
const providers = [
|
|
153232
|
+
tokenProvider,
|
|
153233
|
+
{ provide: TOKEN_PROVIDER, useExisting: tokenProvider },
|
|
153234
|
+
{ provide: GRPC_INTERCEPTORS, useClass: AuthGrpcInterceptor, multi: true }
|
|
153235
|
+
];
|
|
153236
|
+
return makeEnvironmentProviders(providers);
|
|
153237
|
+
}
|
|
153238
|
+
|
|
153239
|
+
/**
|
|
153240
|
+
* Public auth surface for `@ondewo/csi-client-angular`.
|
|
153241
|
+
*
|
|
153242
|
+
* The consuming application supplies the current Keycloak access token through a
|
|
153243
|
+
* {@link TokenProvider} (fed from `keycloak-js` / `keycloak-angular`); this
|
|
153244
|
+
* library attaches it as an `Authorization: Bearer <token>` credential to
|
|
153245
|
+
* outgoing gRPC-web and HTTP requests. No OAuth/OIDC flow is performed here.
|
|
153246
|
+
*/
|
|
153247
|
+
|
|
152698
153248
|
/**
|
|
152699
153249
|
* Generated bundle index. Do not edit.
|
|
152700
153250
|
*/
|
|
152701
153251
|
|
|
152702
|
-
export { AcousticModels, AddAudioFilesRequest, AddAudioFilesResponse, AddDataToUserLanguageModelRequest, AddLlmEvaluationExampleRequest, AddLlmEvaluationExamplesRequest, AddLlmEvaluationExamplesResponse, AddNotificationsRequest, AddNotificationsResponse, AddSessionCommentRequest, AddSessionFeedbackRequest, AddSessionLabelsRequest, AddSessionStepFeedbackRequest, AddTrainingPhrasesFromCSVRequest, AddTrainingPhrasesRequest, AddTrainingPhrasesResponse, AddUserToProjectRequest, Agent, AgentOfUserWithOwner, AgentSorting, AgentStatus, AgentView, AgentWithOwner, AgentsClient, AiServicesClient, AltSentence, AltTrainingPhrase, Apodization, ApplyLlmEvaluationAbRolloutRequest, AudioEncoding, AudioFileResource, AudioFileResourceType, AudioFormat, BatchCreateEntitiesRequest, BatchCreateParametersRequest, BatchCreateResponseMessagesRequest, BatchCreateTrainingPhrasesRequest, BatchDeleteEntitiesRequest, BatchDeleteEntitiesResponse, BatchDeleteEntityTypesRequest, BatchDeleteIntentsRequest, BatchDeleteParametersRequest, BatchDeleteParametersResponse, BatchDeleteResponseMessagesRequest, BatchDeleteResponseMessagesResponse, BatchDeleteTrainingPhrasesRequest, BatchDeleteTrainingPhrasesResponse, BatchEntitiesResponse, BatchGetEntitiesRequest, BatchGetParametersRequest, BatchGetResponseMessagesRequest, BatchGetTrainingPhrasesRequest, BatchParametersStatusResponse, BatchResponseMessagesStatusResponse, BatchSynthesizeRequest, BatchSynthesizeResponse, BatchTrainingPhrasesStatusResponse, BatchUpdateEntitiesRequest, BatchUpdateEntityTypesRequest, BatchUpdateEntityTypesResponse, BatchUpdateIntentsRequest, BatchUpdateIntentsResponse, BatchUpdateParametersRequest, BatchUpdateResponseMessagesRequest, BatchUpdateTrainingPhrasesRequest, BertAugEnrichmentConfig, BuildCacheRequest, Caching, CancelLlmEvaluationExperimentRequest, CancelOperationRequest, CcaiProject, CcaiProjectSorting, CcaiProjectStatus, CcaiProjectView, CcaiProjectsClient, CcaiService, CcaiServiceFilter, CcaiServiceList, CcaiServiceProvider, CcaiServiceType, CheckUpstreamHealthResponse, CkptFile, ClassifyIntentsRequest, ClassifyIntentsResponse, CleanAllEntityTypesRequest, CleanAllEntityTypesResponse, CleanAllIntentsRequest, CleanAllIntentsResponse, CleanEntityTypeRequest, CleanEntityTypeResponse, CleanIntentRequest, CleanIntentResponse, Comment, CompareLlmEvaluationExperimentsRequest, ComparisonOperator, CompositeInference, Condition, ConditionType, Context, ContextFilter, ContextsClient, ControlMessage, ControlMessageServiceMethod, ControlMessageServiceName, ControlMessageServiceParameters, ControlStatus, ControlStreamRequest, ControlStreamResponse, ConversationsClient, CreateAgentRequest, CreateCcaiProjectRequest, CreateCcaiProjectResponse, CreateContextRequest, CreateCustomPhonemizerRequest, CreateEntityRequest, CreateEntityTypeRequest, CreateIntentRequest, CreateLlmEvaluationAbExperimentRequest, CreateLlmEvaluationDatasetRequest, CreateLlmEvaluationExamplesFromSessionRequest, CreateLlmEvaluationExamplesFromSessionResponse, CreateLlmEvaluationOnlineConfigRequest, CreateLlmEvaluationReleaseGateRequest, CreateLlmEvaluationReportRequest, CreateLlmEvaluationScheduleRequest, CreateLlmEvaluationScorecardRequest, CreateProjectRoleRequest, CreateProjectTechnicalUserRequest, CreateProjectTechnicalUserResponse, CreateServerRoleRequest, CreateSessionEntityTypeRequest, CreateSessionRequest, CreateSessionReviewRequest, CreateSessionStepRequest, CreateUserLanguageModelRequest, CreateUserRequest, CustomHttpPattern, CustomPhonemizerProto, CustomPlatformInfo, DataEnrichmentConfig, Decoding, DefaultProjectRole, DefaultServerRole, DeleteAgentRequest, DeleteAllContextsRequest, DeleteAllUserPreferencesRequest, DeleteAudioFilesRequest, DeleteAudioFilesResponse, DeleteCcaiProjectRequest, DeleteCcaiProjectResponse, DeleteContextRequest, DeleteEntityRequest, DeleteEntityStatus, DeleteEntityTypeRequest, DeleteIntentRequest, DeleteLlmEvaluationAbExperimentRequest, DeleteLlmEvaluationDatasetRequest, DeleteLlmEvaluationExampleRequest, DeleteLlmEvaluationExperimentRequest, DeleteLlmEvaluationFeedbackRequest, DeleteLlmEvaluationOnlineConfigRequest, DeleteLlmEvaluationReleaseGateRequest, DeleteLlmEvaluationReportRequest, DeleteLlmEvaluationScheduleRequest, DeleteLlmEvaluationScorecardRequest, DeleteNotificationsRequest, DeleteOperationRequest, DeleteProjectRoleRequest, DeleteProjectTechnicalUserRequest, DeleteResourcesRequest, DeleteServerRoleRequest, DeleteSessionCommentsRequest, DeleteSessionEntityTypeRequest, DeleteSessionFeedbackRequest, DeleteSessionLabelsRequest, DeleteSessionRequest, DeleteSessionStepRequest, DeleteUserLanguageModelRequest, DeleteUserPreferencesRequest, DeleteUserPreferencesResponse, DeleteUserRequest, DetectIntentRequest, DetectIntentResponse, DetectedIntent, DocumentFileResource, EntityDetected, EntityEnrichmentConfig, EntityStatus, EntityType, EntityTypeBatch, EntityTypeCategory, EntityTypeFuzzyNerConfig, EntityTypeSorting, EntityTypeUpdate, EntityTypeView, EntityTypesClient, EntityValueSorting, EventInput, ExportAgentRequest, ExportAgentResponse, ExportBenchmarkAgentRequest, ExportBenchmarkAgentResponse, ExportResourcesRequest, ExportResourcesResponse, ExtractEntitiesFuzzyRequest, ExtractEntitiesRequest, ExtractEntitiesResponse, FeedbackAuthorType, FeedbackBreakdownBucket, FeedbackFilter, FeedbackRating, FeedbackScope, FeedbackStatistics, FeedbackTimeGranularity, FeedbackTimeSeriesBucket, FileResource, FullTextSearchRequest, FullTextSearchResponseEntity, FullTextSearchResponseEntitySynonym, FullTextSearchResponseEntityType, FullTextSearchResponseIntent, FullTextSearchResponseIntentContextIn, FullTextSearchResponseIntentContextOut, FullTextSearchResponseIntentParameters, FullTextSearchResponseIntentResponse, FullTextSearchResponseIntentTags, FullTextSearchResponseIntentUsersays, GPT2EnrichmentConfig, GRPC_AGENTS_CLIENT_SETTINGS, GRPC_AI_SERVICES_CLIENT_SETTINGS, GRPC_CCAI_PROJECTS_CLIENT_SETTINGS, GRPC_CONTEXTS_CLIENT_SETTINGS, GRPC_CONVERSATIONS_CLIENT_SETTINGS, GRPC_ENTITY_TYPES_CLIENT_SETTINGS, GRPC_INTENTS_CLIENT_SETTINGS, GRPC_LLM_EVALUATIONS_CLIENT_SETTINGS, GRPC_OPERATIONS_CLIENT_SETTINGS, GRPC_PROJECT_ROLES_CLIENT_SETTINGS, GRPC_PROJECT_STATISTICS_CLIENT_SETTINGS, GRPC_RAGS_CLIENT_SETTINGS, GRPC_SERVER_STATISTICS_CLIENT_SETTINGS, GRPC_SESSIONS_CLIENT_SETTINGS, GRPC_SPEECH2_TEXT_CLIENT_SETTINGS, GRPC_TEXT2_SPEECH_CLIENT_SETTINGS, GRPC_USERS_CLIENT_SETTINGS, GRPC_UTILITIES_CLIENT_SETTINGS, GRPC_WEBHOOK_CLIENT_SETTINGS, GenerateResponsesRequest, GenerateResponsesResponse, GenerateUserSaysRequest, GenerateUserSaysResponse, GetAgentRequest, GetAgentStatisticsRequest, GetAgentStatisticsResponse, GetAllIntentTagsRequest, GetAlternativeSentencesRequest, GetAlternativeSentencesResponse, GetAlternativeTrainingPhrasesRequest, GetAlternativeTrainingPhrasesResponse, GetAudioFileOfSessionRequest, GetAudioFilesRequest, GetAudioFilesResponse, GetCcaiProjectRequest, GetCcaiServiceRequest, GetContextRequest, GetEntityRequest, GetEntityTypeCountRequest, GetEntityTypeRequest, GetFeedbackStatisticsRequest, GetFeedbackStatisticsResponse, GetFeedbackStatisticsTimeSeriesRequest, GetFeedbackStatisticsTimeSeriesResponse, GetIntentCountRequest, GetIntentRequest, GetIntentTagsRequest, GetIntentTagsResponse, GetLatestSessionReviewRequest, GetLlmEvaluationAbExperimentRequest, GetLlmEvaluationAbExperimentResultsRequest, GetLlmEvaluationAbExperimentResultsResponse, GetLlmEvaluationAbRolloutDecisionRequest, GetLlmEvaluationAbRolloutRecommendationRequest, GetLlmEvaluationAnnotationQueueItemRequest, GetLlmEvaluationDatasetRequest, GetLlmEvaluationExampleRequest, GetLlmEvaluationExperimentRequest, GetLlmEvaluationOnlineConfigRequest, GetLlmEvaluationOnlineResultRequest, GetLlmEvaluationProjectSettingsRequest, GetLlmEvaluationReleaseGateRequest, GetLlmEvaluationReleaseGateRunRequest, GetLlmEvaluationReportRequest, GetLlmEvaluationScheduleRequest, GetLlmEvaluationScorecardRequest, GetModelStatusesRequest, GetModelStatusesResponse, GetNotificationRequest, GetOperationRequest, GetPlatformInfoResponse, GetPlatformMappingRequest, GetProjectElementStatRequest, GetProjectRoleRequest, GetProjectStatRequest, GetRemoteOperationContainerLogsRequest, GetRemoteOperationContainerLogsResponse, GetRemoteOperationContainerStatusRequest, GetServerRoleRequest, GetSessionEntityTypeRequest, GetSessionFeedbackRequest, GetSessionRequest, GetSessionReviewRequest, GetSessionStepRequest, GetSessionsStatisticsRequest, GetSessionsStatisticsResponse, GetSessionsStatisticsTimeSeriesRequest, GetSessionsStatisticsTimeSeriesResponse, GetSynonymsRequest, GetSynonymsResponse, GetUserPreferencesRequest, GetUserPreferencesResponse, GetUserProjectCountRequest, GetUserRequest, GloVeEnrichmentConfig, GlowTTS, GlowTTSTriton, HiFiGan, HiFiGanTriton, Http, HttpRule, ImageFileResource, ImportAgentRequest, InferenceBackend, InitiationProtocol, InputAudioConfig, Intent, IntentAlgorithms, IntentBatch, IntentCategory, IntentClassified, IntentSorting, IntentTagRequest, IntentUpdate, IntentView, IntentsClient, KeyValuePair, LanguageModelPipelineId, LanguageModels, LatLng, ListAccountIdsOfAllSessionsRequest, ListAccountIdsResponse, ListAgentsOfUserResponse, ListAgentsRequest, ListAgentsResponse, ListAudioFilesRequest, ListAudioFilesResponse, ListCcaiProjectsRequest, ListCcaiProjectsResponse, ListContextsRequest, ListContextsResponse, ListCustomPhonemizerRequest, ListCustomPhonemizerResponse, ListDatastreamIdsOfAllSessionsRequest, ListDatastreamIdsResponse, ListEntitiesRequest, ListEntitiesResponse, ListEntityTypesRequest, ListEntityTypesResponse, ListIdentifiedUserIdsOfAllSessionsRequest, ListIdentifiedUserIdsResponse, ListInputContextsOfAllSessionsRequest, ListInputContextsResponse, ListIntentsRequest, ListIntentsResponse, ListLanguageCodesOfAllSessionsRequest, ListLanguageCodesResponse, ListLlmEvaluationAbExperimentsRequest, ListLlmEvaluationAbExperimentsResponse, ListLlmEvaluationAbRolloutDecisionsRequest, ListLlmEvaluationAbRolloutDecisionsResponse, ListLlmEvaluationAnnotationQueueItemsRequest, ListLlmEvaluationAnnotationQueueItemsResponse, ListLlmEvaluationDatasetsRequest, ListLlmEvaluationDatasetsResponse, ListLlmEvaluationEvaluatorsRequest, ListLlmEvaluationEvaluatorsResponse, ListLlmEvaluationExamplesRequest, ListLlmEvaluationExamplesResponse, ListLlmEvaluationExperimentsRequest, ListLlmEvaluationExperimentsResponse, ListLlmEvaluationFeedbackRequest, ListLlmEvaluationFeedbackResponse, ListLlmEvaluationOnlineConfigsRequest, ListLlmEvaluationOnlineConfigsResponse, ListLlmEvaluationOnlineResultsRequest, ListLlmEvaluationOnlineResultsResponse, ListLlmEvaluationReleaseGateRunsRequest, ListLlmEvaluationReleaseGateRunsResponse, ListLlmEvaluationReleaseGatesRequest, ListLlmEvaluationReleaseGatesResponse, ListLlmEvaluationReportsRequest, ListLlmEvaluationReportsResponse, ListLlmEvaluationSchedulesRequest, ListLlmEvaluationSchedulesResponse, ListLlmEvaluationScorecardsRequest, ListLlmEvaluationScorecardsResponse, ListLlmModelsRequest, ListLlmModelsResponse, ListMatchedEntityTypesOfAllSessionsRequest, ListMatchedEntityTypesResponse, ListMatchedIntentsOfAllSessionsRequest, ListMatchedIntentsResponse, ListNotificationsRequest, ListNotificationsResponse, ListOperationsRequest, ListOperationsResponse, ListOriginIdsOfAllSessionsRequest, ListOriginIdsResponse, ListOutputContextsOfAllSessionsRequest, ListOutputContextsResponse, ListParametersRequest, ListParametersResponse, ListPlatformsOfAllSessionsRequest, ListPlatformsResponse, ListProjectPermissionsRequest, ListProjectPermissionsResponse, ListProjectRolesRequest, ListProjectRolesResponse, ListProjectTechnicalUsersRequest, ListProjectTechnicalUsersResponse, ListPropertyIdsOfAllSessionsRequest, ListPropertyIdsResponse, ListRemoteOperationContainersRequest, ListRemoteOperationContainersResponse, ListResponseMessagesRequest, ListResponseMessagesResponse, ListS2sPipelinesRequest, ListS2sPipelinesResponse, ListS2tDomainsRequest, ListS2tDomainsResponse, ListS2tLanguageModelsRequest, ListS2tLanguageModelsResponse, ListS2tLanguagesRequest, ListS2tLanguagesResponse, ListS2tNormalizationPipelinesRequest, ListS2tNormalizationPipelinesResponse, ListS2tPipelinesRequest, ListS2tPipelinesResponse, ListServerPermissionsRequest, ListServerPermissionsResponse, ListServerRolesRequest, ListServerRolesResponse, ListSessionCommentsOfAllSessionsRequest, ListSessionCommentsRequest, ListSessionCommentsResponse, ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, ListSessionFeedbackOfAllSessionsRequest, ListSessionFeedbackRequest, ListSessionFeedbackResponse, ListSessionLabelsOfAllSessionsRequest, ListSessionLabelsRequest, ListSessionLabelsResponse, ListSessionReviewsRequest, ListSessionReviewsResponse, ListSessionsRequest, ListSessionsResponse, ListT2sDomainsRequest, ListT2sDomainsResponse, ListT2sLanguagesRequest, ListT2sLanguagesResponse, ListT2sNormalizationPipelinesRequest, ListT2sNormalizationPipelinesResponse, ListT2sPipelinesRequest, ListT2sPipelinesResponse, ListTagsOfAllSessionsRequest, ListTagsResponse, ListTrainingPhrasesRequest, ListTrainingPhrasesResponse, ListTrainingPhrasesofIntentsWithEnrichmentRequest, ListTrainingPhrasesofIntentsWithEnrichmentResponse, ListUserIdsOfAllSessionsRequest, ListUserIdsResponse, ListUserInfosResponse, ListUserPreferencesRequest, ListUserPreferencesResponse, ListUsersInProjectRequest, ListUsersInProjectResponse, ListUsersRequest, ListUsersResponse, LlmAgentUsage, LlmCacheStats, LlmCallFinishedEvent, LlmCallStartedEvent, LlmCcaiServiceUsage, LlmEnrichmentConfig, LlmErrorStat, LlmErrorStats, LlmEvaluationAbExperiment, LlmEvaluationAbExperimentFilter, LlmEvaluationAbExperimentStatus, LlmEvaluationAbOptimizeMetric, LlmEvaluationAbRolloutDecision, LlmEvaluationAbRolloutDecisionFilter, LlmEvaluationAbRolloutRecommendation, LlmEvaluationAbTrafficConfig, LlmEvaluationAbVariant, LlmEvaluationAbVariantResult, LlmEvaluationAnnotationQueueItem, LlmEvaluationAnnotationQueueItemFilter, LlmEvaluationAnnotationStatus, LlmEvaluationComparison, LlmEvaluationDataset, LlmEvaluationDatasetFilter, LlmEvaluationDatasetType, LlmEvaluationEvaluatorCategory, LlmEvaluationEvaluatorParameterSpec, LlmEvaluationEvaluatorRun, LlmEvaluationEvaluatorSpec, LlmEvaluationEvaluatorType, LlmEvaluationExample, LlmEvaluationExampleExtractionMode, LlmEvaluationExampleFilter, LlmEvaluationExperiment, LlmEvaluationExperimentFilter, LlmEvaluationExperimentKind, LlmEvaluationExperimentStatus, LlmEvaluationFeedback, LlmEvaluationFeedbackFilter, LlmEvaluationJudgeConfig, LlmEvaluationOnlineConfig, LlmEvaluationOnlineConfigFilter, LlmEvaluationOnlineResult, LlmEvaluationOnlineResultFilter, LlmEvaluationOnlineSessionFilter, LlmEvaluationPairwiseResult, LlmEvaluationProjectSettings, LlmEvaluationReleaseGate, LlmEvaluationReleaseGateCheck, LlmEvaluationReleaseGateFilter, LlmEvaluationReleaseGateRun, LlmEvaluationReleaseGateRunFilter, LlmEvaluationReleaseGateSafetyConfig, LlmEvaluationReleaseGateThresholds, LlmEvaluationReleaseGateVerdict, LlmEvaluationReport, LlmEvaluationReportFilter, LlmEvaluationSchedule, LlmEvaluationScheduleAction, LlmEvaluationScheduleFilter, LlmEvaluationScorecard, LlmEvaluationScorecardComponent, LlmEvaluationScorecardFilter, LlmEvaluationSimulationKind, LlmEvaluationSimulationPersona, LlmEvaluationTurnResult, LlmEvaluationsClient, LlmFinishReasonStat, LlmGenerateRequest, LlmGenerateResponse, LlmLatencyStats, LlmModel, LlmModelUsage, LlmProviderUsage, LlmReasoningEffortStat, LlmRetrievalMetadata, LlmRetrievedChunk, LlmSafetyAssessment, LlmSafetyCategoryStat, LlmSafetyFinding, LlmSafetyLocation, LlmSafetyStats, LlmTelemetry, LlmTelemetryReport, LlmTelemetryTimeSeriesBucket, LlmThinkingDeltaEvent, LlmThinkingMetadata, LlmTokenUsage, LlmTokenUsageUpdateEvent, LlmToolCallFinishedEvent, LlmToolCallMetadata, LlmToolCallStartedEvent, LlmToolUsage, LogEntry, LogSeverity, Logging, Logmnse, Map, MbMelganTriton, Mel2Audio, MigrateAgentRequest, Mode, ModelStatus, NormalizeTextRequest, NormalizeTextResponse, Notification, NotificationFilter, NotificationFlaggedStatus, NotificationOrigin, NotificationReadStatus, NotificationType, NotificationVisibility, OpenaiLlmOptions, Operation, OperationFilter, OperationMetadata, OperationsClient, OptimizeRankingMatchRequest, OptimizeRankingMatchResponse, OriginalDetectIntentRequest, Parakeet, Pcm, PhonemizerId, PingRequest, PingResponse, PlatformMapping, PostProcessing, PostProcessingOptions, PostProcessors, Postprocessing, ProjectRole, ProjectRoleView, ProjectRolesClient, ProjectStatisticsClient, ProjectTechnicalUser, PromoteLlmEvaluationAnnotationQueueItemRequest, PromoteLlmEvaluationAnnotationQueueItemResponse, PtFiles, Pyannote, QueryInput, QueryParameters, QueryResult, Qwen3TtsBase, Qwen3TtsCustomVoice, RagAddCrawlerResultsToDatasetsRequest, RagChunk, RagChunkMethod, RagComparisonOperator, RagCrawler, RagCrawlerAuth, RagCrawlerAuthenticationExecutionType, RagCrawlerBrowserConfig, RagCrawlerConcurrencyConfig, RagCrawlerConfig, RagCrawlerContentResult, RagCrawlerContentScope, RagCrawlerCookie, RagCrawlerCrawlStrategy, RagCrawlerDeepCrawlerConfig, RagCrawlerDensityPruning, RagCrawlerExecutionInfo, RagCrawlerFilters, RagCrawlerHtmlAuth, RagCrawlerHttpAuth, RagCrawlerMetaDataExtractor, RagCrawlerMetaDataExtractorType, RagCrawlerPruningThresholdType, RagCrawlerResult, RagCrawlerResultsConfig, RagCrawlerRetryConfig, RagCrawlerSeedUrlFilters, RagCrawlerSelectorType, RagCrawlerSources, RagCrawlerStatusFilter, RagCreateCrawlerRequest, RagCreateDatasetRequest, RagDataset, RagDatasetList, RagDatasetParsingStatus, RagDeleteCrawlerRequest, RagDeleteCrawlerResponse, RagDeleteCrawlerRunsRequest, RagDeleteCrawlerRunsResponse, RagDeleteCrawlersRequest, RagDeleteCrawlersResponse, RagDeleteDocumentsRequest, RagDeleteRequest, RagDocAgg, RagDocument, RagDocumentIdsRequest, RagDocumentList, RagDocumentStatus, RagDocumentType, RagDownloadDocumentRequest, RagFileChunk, RagFileMetadata, RagGetCrawlerAttachedDatasetsRequest, RagGetCrawlerAttachedDatasetsResponse, RagGetCrawlerRequest, RagGetCrawlerResultRequest, RagGetCrawlerResultsRequest, RagGetCrawlerResultsResponse, RagGetCrawlerRunLogsRequest, RagGetCrawlerRunLogsResponse, RagGetCrawlerRunRequest, RagGraphRagConfig, RagGraphRagMethod, RagListCrawlerRunsRequest, RagListCrawlerRunsResponse, RagListCrawlersRequest, RagListCrawlersResponse, RagListDatasetsRequest, RagListDocumentsRequest, RagLogic, RagMetadataCondition, RagMetadataConditions, RagParserConfig, RagPartialSuccess, RagRaptorConfig, RagRemoveCrawlerResultsFromDatasetsRequest, RagRetrievalRequest, RagRetrievalResponse, RagStartCrawlerRequest, RagStopCrawlerRequest, RagStopCrawlerResponse, RagUpdateCrawlerRequest, RagUpdateDatasetRequest, RagUpdateDocumentRequest, RagUploadDocumentRequest, RagVariantConfig, RagsClient, RankingMatchOptimizationConfig, ReannotateEntitiesOptions, ReasoningEffort$1 as ReasoningEffort, ReferencedChunk, ReindexAgentRequest, RemoteOperationContainer, RemoteOperationContainerLifecycleState, RemoteOperationContainerLogLine, RemoteOperationContainerStatus, RemoveUserFromProjectRequest, ReportFormat, ReportType, RequestConfig, ResourceView, RestoreAgentRequest, RotateProjectTechnicalUserPasswordRequest, RotateProjectTechnicalUserPasswordResponse, RunLlmEvaluationExperimentRequest, RunLlmEvaluationReleaseGateRequest, S2sPipeline, S2sPipelineId, S2sStreamRequest, S2sStreamResponse, S2tCloudProviderConfig, S2tCloudProviderConfigAmazon, S2tCloudProviderConfigDeepgram, S2tCloudProviderConfigGoogle, S2tCloudProviderConfigMicrosoft, S2tCloudServiceAmazon, S2tCloudServiceDeepgram, S2tCloudServiceGoogle, S2tCloudServiceMicrosoft, S2tDescription, S2tGetServiceInfoResponse, S2tInference, S2tLlmPostProcessing, S2tLlmPostProcessingInverseNormalizationOptions, S2tLlmPostProcessingNormalizationOptions, S2tLlmPostProcessingSubTaskOptions, S2tLlmPostProcessingSummarizationOptions, S2tLlmPostProcessingTranslationOptions, S2tNormalization, S2tPipelineId, S2tTranscription, ServerRole, ServerStatisticsClient, ServiceTier, Session, SessionEntityType, SessionFeedback, SessionFilter, SessionInfo, SessionReview, SessionReviewStep, SessionStep, SessionsClient, SessionsReportType, SetAgentStatusRequest, SetControlStatusRequest, SetControlStatusResponse, SetNotificationsFlaggedStatusRequest, SetNotificationsReadStatusRequest, SetResourcesRequest, SetUserPreferencesRequest, SetUserPreferencesResponse, SimulateLlmEvaluationConversationsRequest, SingleInference, SipTrigger, SortingMode, Speech2TextClient, Speech2TextConfig, StartLlmEvaluationAbExperimentRequest, StatResponse, Status, StopLlmEvaluationAbExperimentRequest, StreamNotificationsRequest, StreamRemoteOperationContainerLogsRequest, StreamingDetectIntentRequest, StreamingDetectIntentResponse, StreamingLlmGenerateResponse, StreamingRecognitionResult, StreamingServer, StreamingSpeechRecognition, StreamingSynthesizeRequest, StreamingSynthesizeResponse, StringUpdate, SubmitLlmEvaluationFeedbackRequest, SymSpell, Synonym, SynthesizeRequest, SynthesizeResponse, T2SCustomLengthScales, T2SDescription, T2SGetServiceInfoResponse, T2SInference, T2SNormalization, T2sCloudProviderConfig, T2sCloudProviderConfigElevenLabs, T2sCloudProviderConfigGoogle, T2sCloudProviderConfigMicrosoft, T2sCloudServiceAmazon, T2sCloudServiceElevenLabs, T2sCloudServiceGoogle, T2sCloudServiceMicrosoft, T2sPipelineId, Text2Audio, Text2Mel, Text2SpeechClient, Text2SpeechConfig, TextInput, ThesaurusEnrichmentConfig, TrainAgentRequest, TrainUserLanguageModelRequest, TrainingPhraseCleanerOptions, TrainingPhraseStatus, TranscribeFileRequest, TranscribeFileResponse, TranscribeRequestConfig, TranscribeStreamRequest, TranscribeStreamResponse, Transcription, TranscriptionAlternative, TranscriptionReturnOptions, TranscriptionType, TurnDetectionOptions, UpdateAgentRequest, UpdateCcaiProjectRequest, UpdateCcaiProjectResponse, UpdateContextRequest, UpdateCustomPhonemizerRequest, UpdateEntityRequest, UpdateEntityTypeRequest, UpdateIntentRequest, UpdateLlmEvaluationAbExperimentRequest, UpdateLlmEvaluationAnnotationQueueItemRequest, UpdateLlmEvaluationDatasetRequest, UpdateLlmEvaluationExampleRequest, UpdateLlmEvaluationExperimentRequest, UpdateLlmEvaluationFeedbackRequest, UpdateLlmEvaluationOnlineConfigRequest, UpdateLlmEvaluationProjectSettingsRequest, UpdateLlmEvaluationReleaseGateRequest, UpdateLlmEvaluationScheduleRequest, UpdateLlmEvaluationScorecardRequest, UpdateNotificationRequest, UpdateProjectRoleRequest, UpdateServerRoleRequest, UpdateSessionCommentsRequest, UpdateSessionEntityTypeRequest, UpdateSessionFeedbackRequest, UpdateSessionStepRequest, UpdateUserRequest, User, UserInProject, UserInfo, UsersClient, UtilitiesClient, UtteranceDetectionOptions, ValidateEmbeddedRegexRequest, ValidateEmbeddedRegexResponse, ValidateRegexRequest, ValidateRegexResponse, Verbosity, VideoFileResource, Vits, VitsTriton, VoiceActivityDetection, VoiceCloningRequest, VoiceSettings, Wav2Vec, Wav2VecTriton, WebhookClient, WebhookRequest, WebhookResponse, Whisper, WhisperTriton, Wiener, Word2VecEnrichmentConfig, WordAlternative, WordDetail, WordNetAugEnrichmentConfig, XLNetAugEnrichmentConfig };
|
|
153252
|
+
export { AUTHORIZATION_HEADER, AcousticModels, AddAudioFilesRequest, AddAudioFilesResponse, AddDataToUserLanguageModelRequest, AddLlmEvaluationExampleRequest, AddLlmEvaluationExamplesRequest, AddLlmEvaluationExamplesResponse, AddNotificationsRequest, AddNotificationsResponse, AddSessionCommentRequest, AddSessionFeedbackRequest, AddSessionLabelsRequest, AddSessionStepFeedbackRequest, AddTrainingPhrasesFromCSVRequest, AddTrainingPhrasesRequest, AddTrainingPhrasesResponse, AddUserToProjectRequest, Agent, AgentOfUserWithOwner, AgentSorting, AgentStatus, AgentView, AgentWithOwner, AgentsClient, AiServicesClient, AltSentence, AltTrainingPhrase, Apodization, ApplyLlmEvaluationAbRolloutRequest, AudioEncoding, AudioFileResource, AudioFileResourceType, AudioFormat, AuthGrpcInterceptor, BEARER_PREFIX, BatchCreateEntitiesRequest, BatchCreateParametersRequest, BatchCreateResponseMessagesRequest, BatchCreateTrainingPhrasesRequest, BatchDeleteEntitiesRequest, BatchDeleteEntitiesResponse, BatchDeleteEntityTypesRequest, BatchDeleteIntentsRequest, BatchDeleteParametersRequest, BatchDeleteParametersResponse, BatchDeleteResponseMessagesRequest, BatchDeleteResponseMessagesResponse, BatchDeleteTrainingPhrasesRequest, BatchDeleteTrainingPhrasesResponse, BatchEntitiesResponse, BatchGetEntitiesRequest, BatchGetParametersRequest, BatchGetResponseMessagesRequest, BatchGetTrainingPhrasesRequest, BatchParametersStatusResponse, BatchResponseMessagesStatusResponse, BatchSynthesizeRequest, BatchSynthesizeResponse, BatchTrainingPhrasesStatusResponse, BatchUpdateEntitiesRequest, BatchUpdateEntityTypesRequest, BatchUpdateEntityTypesResponse, BatchUpdateIntentsRequest, BatchUpdateIntentsResponse, BatchUpdateParametersRequest, BatchUpdateResponseMessagesRequest, BatchUpdateTrainingPhrasesRequest, BertAugEnrichmentConfig, BuildCacheRequest, Caching, CancelLlmEvaluationExperimentRequest, CancelOperationRequest, CcaiProject, CcaiProjectSorting, CcaiProjectStatus, CcaiProjectView, CcaiProjectsClient, CcaiService, CcaiServiceFilter, CcaiServiceList, CcaiServiceProvider, CcaiServiceType, CheckUpstreamHealthResponse, CkptFile, ClassifyIntentsRequest, ClassifyIntentsResponse, CleanAllEntityTypesRequest, CleanAllEntityTypesResponse, CleanAllIntentsRequest, CleanAllIntentsResponse, CleanEntityTypeRequest, CleanEntityTypeResponse, CleanIntentRequest, CleanIntentResponse, Comment, CompareLlmEvaluationExperimentsRequest, ComparisonOperator, CompositeInference, Condition, ConditionType, Context, ContextFilter, ContextsClient, ControlMessage, ControlMessageServiceMethod, ControlMessageServiceName, ControlMessageServiceParameters, ControlStatus, ControlStreamRequest, ControlStreamResponse, ConversationsClient, CreateAgentRequest, CreateCcaiProjectRequest, CreateCcaiProjectResponse, CreateContextRequest, CreateCustomPhonemizerRequest, CreateEntityRequest, CreateEntityTypeRequest, CreateIntentRequest, CreateLlmEvaluationAbExperimentRequest, CreateLlmEvaluationDatasetRequest, CreateLlmEvaluationExamplesFromSessionRequest, CreateLlmEvaluationExamplesFromSessionResponse, CreateLlmEvaluationOnlineConfigRequest, CreateLlmEvaluationReleaseGateRequest, CreateLlmEvaluationReportRequest, CreateLlmEvaluationScheduleRequest, CreateLlmEvaluationScorecardRequest, CreateProjectRoleRequest, CreateProjectTechnicalUserRequest, CreateProjectTechnicalUserResponse, CreateServerRoleRequest, CreateSessionEntityTypeRequest, CreateSessionRequest, CreateSessionReviewRequest, CreateSessionStepRequest, CreateUserLanguageModelRequest, CreateUserRequest, CustomHttpPattern, CustomPhonemizerProto, CustomPlatformInfo, DataEnrichmentConfig, Decoding, DefaultProjectRole, DefaultServerRole, DeleteAgentRequest, DeleteAllContextsRequest, DeleteAllUserPreferencesRequest, DeleteAudioFilesRequest, DeleteAudioFilesResponse, DeleteCcaiProjectRequest, DeleteCcaiProjectResponse, DeleteContextRequest, DeleteEntityRequest, DeleteEntityStatus, DeleteEntityTypeRequest, DeleteIntentRequest, DeleteLlmEvaluationAbExperimentRequest, DeleteLlmEvaluationDatasetRequest, DeleteLlmEvaluationExampleRequest, DeleteLlmEvaluationExperimentRequest, DeleteLlmEvaluationFeedbackRequest, DeleteLlmEvaluationOnlineConfigRequest, DeleteLlmEvaluationReleaseGateRequest, DeleteLlmEvaluationReportRequest, DeleteLlmEvaluationScheduleRequest, DeleteLlmEvaluationScorecardRequest, DeleteNotificationsRequest, DeleteOperationRequest, DeleteProjectRoleRequest, DeleteProjectTechnicalUserRequest, DeleteResourcesRequest, DeleteServerRoleRequest, DeleteSessionCommentsRequest, DeleteSessionEntityTypeRequest, DeleteSessionFeedbackRequest, DeleteSessionLabelsRequest, DeleteSessionRequest, DeleteSessionStepRequest, DeleteUserLanguageModelRequest, DeleteUserPreferencesRequest, DeleteUserPreferencesResponse, DeleteUserRequest, DetectIntentRequest, DetectIntentResponse, DetectedIntent, DocumentFileResource, EntityDetected, EntityEnrichmentConfig, EntityStatus, EntityType, EntityTypeBatch, EntityTypeCategory, EntityTypeFuzzyNerConfig, EntityTypeSorting, EntityTypeUpdate, EntityTypeView, EntityTypesClient, EntityValueSorting, EventInput, ExportAgentRequest, ExportAgentResponse, ExportBenchmarkAgentRequest, ExportBenchmarkAgentResponse, ExportResourcesRequest, ExportResourcesResponse, ExtractEntitiesFuzzyRequest, ExtractEntitiesRequest, ExtractEntitiesResponse, FeedbackAuthorType, FeedbackBreakdownBucket, FeedbackFilter, FeedbackRating, FeedbackScope, FeedbackStatistics, FeedbackTimeGranularity, FeedbackTimeSeriesBucket, FileResource, FullTextSearchRequest, FullTextSearchResponseEntity, FullTextSearchResponseEntitySynonym, FullTextSearchResponseEntityType, FullTextSearchResponseIntent, FullTextSearchResponseIntentContextIn, FullTextSearchResponseIntentContextOut, FullTextSearchResponseIntentParameters, FullTextSearchResponseIntentResponse, FullTextSearchResponseIntentTags, FullTextSearchResponseIntentUsersays, GPT2EnrichmentConfig, GRPC_AGENTS_CLIENT_SETTINGS, GRPC_AI_SERVICES_CLIENT_SETTINGS, GRPC_CCAI_PROJECTS_CLIENT_SETTINGS, GRPC_CONTEXTS_CLIENT_SETTINGS, GRPC_CONVERSATIONS_CLIENT_SETTINGS, GRPC_ENTITY_TYPES_CLIENT_SETTINGS, GRPC_INTENTS_CLIENT_SETTINGS, GRPC_LLM_EVALUATIONS_CLIENT_SETTINGS, GRPC_OPERATIONS_CLIENT_SETTINGS, GRPC_PROJECT_ROLES_CLIENT_SETTINGS, GRPC_PROJECT_STATISTICS_CLIENT_SETTINGS, GRPC_RAGS_CLIENT_SETTINGS, GRPC_SERVER_STATISTICS_CLIENT_SETTINGS, GRPC_SESSIONS_CLIENT_SETTINGS, GRPC_SPEECH2_TEXT_CLIENT_SETTINGS, GRPC_TEXT2_SPEECH_CLIENT_SETTINGS, GRPC_USERS_CLIENT_SETTINGS, GRPC_UTILITIES_CLIENT_SETTINGS, GRPC_WEBHOOK_CLIENT_SETTINGS, GenerateResponsesRequest, GenerateResponsesResponse, GenerateUserSaysRequest, GenerateUserSaysResponse, GetAgentRequest, GetAgentStatisticsRequest, GetAgentStatisticsResponse, GetAllIntentTagsRequest, GetAlternativeSentencesRequest, GetAlternativeSentencesResponse, GetAlternativeTrainingPhrasesRequest, GetAlternativeTrainingPhrasesResponse, GetAudioFileOfSessionRequest, GetAudioFilesRequest, GetAudioFilesResponse, GetCcaiProjectRequest, GetCcaiServiceRequest, GetContextRequest, GetEntityRequest, GetEntityTypeCountRequest, GetEntityTypeRequest, GetFeedbackStatisticsRequest, GetFeedbackStatisticsResponse, GetFeedbackStatisticsTimeSeriesRequest, GetFeedbackStatisticsTimeSeriesResponse, GetIntentCountRequest, GetIntentRequest, GetIntentTagsRequest, GetIntentTagsResponse, GetLatestSessionReviewRequest, GetLlmEvaluationAbExperimentRequest, GetLlmEvaluationAbExperimentResultsRequest, GetLlmEvaluationAbExperimentResultsResponse, GetLlmEvaluationAbRolloutDecisionRequest, GetLlmEvaluationAbRolloutRecommendationRequest, GetLlmEvaluationAnnotationQueueItemRequest, GetLlmEvaluationDatasetRequest, GetLlmEvaluationExampleRequest, GetLlmEvaluationExperimentRequest, GetLlmEvaluationOnlineConfigRequest, GetLlmEvaluationOnlineResultRequest, GetLlmEvaluationProjectSettingsRequest, GetLlmEvaluationReleaseGateRequest, GetLlmEvaluationReleaseGateRunRequest, GetLlmEvaluationReportRequest, GetLlmEvaluationScheduleRequest, GetLlmEvaluationScorecardRequest, GetModelStatusesRequest, GetModelStatusesResponse, GetNotificationRequest, GetOperationRequest, GetPlatformInfoResponse, GetPlatformMappingRequest, GetProjectElementStatRequest, GetProjectRoleRequest, GetProjectStatRequest, GetRemoteOperationContainerLogsRequest, GetRemoteOperationContainerLogsResponse, GetRemoteOperationContainerStatusRequest, GetServerRoleRequest, GetSessionEntityTypeRequest, GetSessionFeedbackRequest, GetSessionRequest, GetSessionReviewRequest, GetSessionStepRequest, GetSessionsStatisticsRequest, GetSessionsStatisticsResponse, GetSessionsStatisticsTimeSeriesRequest, GetSessionsStatisticsTimeSeriesResponse, GetSynonymsRequest, GetSynonymsResponse, GetUserPreferencesRequest, GetUserPreferencesResponse, GetUserProjectCountRequest, GetUserRequest, GloVeEnrichmentConfig, GlowTTS, GlowTTSTriton, HiFiGan, HiFiGanTriton, Http, HttpRule, ImageFileResource, ImportAgentRequest, InferenceBackend, InitiationProtocol, InputAudioConfig, Intent, IntentAlgorithms, IntentBatch, IntentCategory, IntentClassified, IntentSorting, IntentTagRequest, IntentUpdate, IntentView, IntentsClient, KEYCLOAK_TOKEN_PROVIDER_CONFIG, KeyValuePair, KeycloakAuthenticationError, KeycloakTokenProvider, LanguageModelPipelineId, LanguageModels, LatLng, ListAccountIdsOfAllSessionsRequest, ListAccountIdsResponse, ListAgentsOfUserResponse, ListAgentsRequest, ListAgentsResponse, ListAudioFilesRequest, ListAudioFilesResponse, ListCcaiProjectsRequest, ListCcaiProjectsResponse, ListContextsRequest, ListContextsResponse, ListCustomPhonemizerRequest, ListCustomPhonemizerResponse, ListDatastreamIdsOfAllSessionsRequest, ListDatastreamIdsResponse, ListEntitiesRequest, ListEntitiesResponse, ListEntityTypesRequest, ListEntityTypesResponse, ListIdentifiedUserIdsOfAllSessionsRequest, ListIdentifiedUserIdsResponse, ListInputContextsOfAllSessionsRequest, ListInputContextsResponse, ListIntentsRequest, ListIntentsResponse, ListLanguageCodesOfAllSessionsRequest, ListLanguageCodesResponse, ListLlmEvaluationAbExperimentsRequest, ListLlmEvaluationAbExperimentsResponse, ListLlmEvaluationAbRolloutDecisionsRequest, ListLlmEvaluationAbRolloutDecisionsResponse, ListLlmEvaluationAnnotationQueueItemsRequest, ListLlmEvaluationAnnotationQueueItemsResponse, ListLlmEvaluationDatasetsRequest, ListLlmEvaluationDatasetsResponse, ListLlmEvaluationEvaluatorsRequest, ListLlmEvaluationEvaluatorsResponse, ListLlmEvaluationExamplesRequest, ListLlmEvaluationExamplesResponse, ListLlmEvaluationExperimentsRequest, ListLlmEvaluationExperimentsResponse, ListLlmEvaluationFeedbackRequest, ListLlmEvaluationFeedbackResponse, ListLlmEvaluationOnlineConfigsRequest, ListLlmEvaluationOnlineConfigsResponse, ListLlmEvaluationOnlineResultsRequest, ListLlmEvaluationOnlineResultsResponse, ListLlmEvaluationReleaseGateRunsRequest, ListLlmEvaluationReleaseGateRunsResponse, ListLlmEvaluationReleaseGatesRequest, ListLlmEvaluationReleaseGatesResponse, ListLlmEvaluationReportsRequest, ListLlmEvaluationReportsResponse, ListLlmEvaluationSchedulesRequest, ListLlmEvaluationSchedulesResponse, ListLlmEvaluationScorecardsRequest, ListLlmEvaluationScorecardsResponse, ListLlmModelsRequest, ListLlmModelsResponse, ListMatchedEntityTypesOfAllSessionsRequest, ListMatchedEntityTypesResponse, ListMatchedIntentsOfAllSessionsRequest, ListMatchedIntentsResponse, ListNotificationsRequest, ListNotificationsResponse, ListOperationsRequest, ListOperationsResponse, ListOriginIdsOfAllSessionsRequest, ListOriginIdsResponse, ListOutputContextsOfAllSessionsRequest, ListOutputContextsResponse, ListParametersRequest, ListParametersResponse, ListPlatformsOfAllSessionsRequest, ListPlatformsResponse, ListProjectPermissionsRequest, ListProjectPermissionsResponse, ListProjectRolesRequest, ListProjectRolesResponse, ListProjectTechnicalUsersRequest, ListProjectTechnicalUsersResponse, ListPropertyIdsOfAllSessionsRequest, ListPropertyIdsResponse, ListRemoteOperationContainersRequest, ListRemoteOperationContainersResponse, ListResponseMessagesRequest, ListResponseMessagesResponse, ListS2sPipelinesRequest, ListS2sPipelinesResponse, ListS2tDomainsRequest, ListS2tDomainsResponse, ListS2tLanguageModelsRequest, ListS2tLanguageModelsResponse, ListS2tLanguagesRequest, ListS2tLanguagesResponse, ListS2tNormalizationPipelinesRequest, ListS2tNormalizationPipelinesResponse, ListS2tPipelinesRequest, ListS2tPipelinesResponse, ListServerPermissionsRequest, ListServerPermissionsResponse, ListServerRolesRequest, ListServerRolesResponse, ListSessionCommentsOfAllSessionsRequest, ListSessionCommentsRequest, ListSessionCommentsResponse, ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, ListSessionFeedbackOfAllSessionsRequest, ListSessionFeedbackRequest, ListSessionFeedbackResponse, ListSessionLabelsOfAllSessionsRequest, ListSessionLabelsRequest, ListSessionLabelsResponse, ListSessionReviewsRequest, ListSessionReviewsResponse, ListSessionsRequest, ListSessionsResponse, ListT2sDomainsRequest, ListT2sDomainsResponse, ListT2sLanguagesRequest, ListT2sLanguagesResponse, ListT2sNormalizationPipelinesRequest, ListT2sNormalizationPipelinesResponse, ListT2sPipelinesRequest, ListT2sPipelinesResponse, ListTagsOfAllSessionsRequest, ListTagsResponse, ListTrainingPhrasesRequest, ListTrainingPhrasesResponse, ListTrainingPhrasesofIntentsWithEnrichmentRequest, ListTrainingPhrasesofIntentsWithEnrichmentResponse, ListUserIdsOfAllSessionsRequest, ListUserIdsResponse, ListUserInfosResponse, ListUserPreferencesRequest, ListUserPreferencesResponse, ListUsersInProjectRequest, ListUsersInProjectResponse, ListUsersRequest, ListUsersResponse, LlmAgentUsage, LlmCacheStats, LlmCallFinishedEvent, LlmCallStartedEvent, LlmCcaiServiceUsage, LlmEnrichmentConfig, LlmErrorStat, LlmErrorStats, LlmEvaluationAbExperiment, LlmEvaluationAbExperimentFilter, LlmEvaluationAbExperimentStatus, LlmEvaluationAbOptimizeMetric, LlmEvaluationAbRolloutDecision, LlmEvaluationAbRolloutDecisionFilter, LlmEvaluationAbRolloutRecommendation, LlmEvaluationAbTrafficConfig, LlmEvaluationAbVariant, LlmEvaluationAbVariantResult, LlmEvaluationAnnotationQueueItem, LlmEvaluationAnnotationQueueItemFilter, LlmEvaluationAnnotationStatus, LlmEvaluationComparison, LlmEvaluationDataset, LlmEvaluationDatasetFilter, LlmEvaluationDatasetType, LlmEvaluationEvaluatorCategory, LlmEvaluationEvaluatorParameterSpec, LlmEvaluationEvaluatorRun, LlmEvaluationEvaluatorSpec, LlmEvaluationEvaluatorType, LlmEvaluationExample, LlmEvaluationExampleExtractionMode, LlmEvaluationExampleFilter, LlmEvaluationExperiment, LlmEvaluationExperimentFilter, LlmEvaluationExperimentKind, LlmEvaluationExperimentStatus, LlmEvaluationFeedback, LlmEvaluationFeedbackFilter, LlmEvaluationJudgeConfig, LlmEvaluationOnlineConfig, LlmEvaluationOnlineConfigFilter, LlmEvaluationOnlineResult, LlmEvaluationOnlineResultFilter, LlmEvaluationOnlineSessionFilter, LlmEvaluationPairwiseResult, LlmEvaluationProjectSettings, LlmEvaluationReleaseGate, LlmEvaluationReleaseGateCheck, LlmEvaluationReleaseGateFilter, LlmEvaluationReleaseGateRun, LlmEvaluationReleaseGateRunFilter, LlmEvaluationReleaseGateSafetyConfig, LlmEvaluationReleaseGateThresholds, LlmEvaluationReleaseGateVerdict, LlmEvaluationReport, LlmEvaluationReportFilter, LlmEvaluationSchedule, LlmEvaluationScheduleAction, LlmEvaluationScheduleFilter, LlmEvaluationScorecard, LlmEvaluationScorecardComponent, LlmEvaluationScorecardFilter, LlmEvaluationSimulationKind, LlmEvaluationSimulationPersona, LlmEvaluationTurnResult, LlmEvaluationsClient, LlmFinishReasonStat, LlmGenerateRequest, LlmGenerateResponse, LlmLatencyStats, LlmModel, LlmModelUsage, LlmProviderUsage, LlmReasoningEffortStat, LlmRetrievalMetadata, LlmRetrievedChunk, LlmSafetyAssessment, LlmSafetyCategoryStat, LlmSafetyFinding, LlmSafetyLocation, LlmSafetyStats, LlmTelemetry, LlmTelemetryReport, LlmTelemetryTimeSeriesBucket, LlmThinkingDeltaEvent, LlmThinkingMetadata, LlmTokenUsage, LlmTokenUsageUpdateEvent, LlmToolCallFinishedEvent, LlmToolCallMetadata, LlmToolCallStartedEvent, LlmToolUsage, LogEntry, LogSeverity, Logging, Logmnse, MIN_REFRESH_DELAY_SECONDS, Map, MbMelganTriton, Mel2Audio, MigrateAgentRequest, Mode, ModelStatus, NormalizeTextRequest, NormalizeTextResponse, Notification, NotificationFilter, NotificationFlaggedStatus, NotificationOrigin, NotificationReadStatus, NotificationType, NotificationVisibility, OpenaiLlmOptions, Operation, OperationFilter, OperationMetadata, OperationsClient, OptimizeRankingMatchRequest, OptimizeRankingMatchResponse, OriginalDetectIntentRequest, Parakeet, Pcm, PhonemizerId, PingRequest, PingResponse, PlatformMapping, PostProcessing, PostProcessingOptions, PostProcessors, Postprocessing, ProjectRole, ProjectRoleView, ProjectRolesClient, ProjectStatisticsClient, ProjectTechnicalUser, PromoteLlmEvaluationAnnotationQueueItemRequest, PromoteLlmEvaluationAnnotationQueueItemResponse, PtFiles, Pyannote, QueryInput, QueryParameters, QueryResult, Qwen3TtsBase, Qwen3TtsCustomVoice, REFRESH_SKEW_SECONDS, RagAddCrawlerResultsToDatasetsRequest, RagChunk, RagChunkMethod, RagComparisonOperator, RagCrawler, RagCrawlerAuth, RagCrawlerAuthenticationExecutionType, RagCrawlerBrowserConfig, RagCrawlerConcurrencyConfig, RagCrawlerConfig, RagCrawlerContentResult, RagCrawlerContentScope, RagCrawlerCookie, RagCrawlerCrawlStrategy, RagCrawlerDeepCrawlerConfig, RagCrawlerDensityPruning, RagCrawlerExecutionInfo, RagCrawlerFilters, RagCrawlerHtmlAuth, RagCrawlerHttpAuth, RagCrawlerMetaDataExtractor, RagCrawlerMetaDataExtractorType, RagCrawlerPruningThresholdType, RagCrawlerResult, RagCrawlerResultsConfig, RagCrawlerRetryConfig, RagCrawlerSeedUrlFilters, RagCrawlerSelectorType, RagCrawlerSources, RagCrawlerStatusFilter, RagCreateCrawlerRequest, RagCreateDatasetRequest, RagDataset, RagDatasetList, RagDatasetParsingStatus, RagDeleteCrawlerRequest, RagDeleteCrawlerResponse, RagDeleteCrawlerRunsRequest, RagDeleteCrawlerRunsResponse, RagDeleteCrawlersRequest, RagDeleteCrawlersResponse, RagDeleteDocumentsRequest, RagDeleteRequest, RagDocAgg, RagDocument, RagDocumentIdsRequest, RagDocumentList, RagDocumentStatus, RagDocumentType, RagDownloadDocumentRequest, RagFileChunk, RagFileMetadata, RagGetCrawlerAttachedDatasetsRequest, RagGetCrawlerAttachedDatasetsResponse, RagGetCrawlerRequest, RagGetCrawlerResultRequest, RagGetCrawlerResultsRequest, RagGetCrawlerResultsResponse, RagGetCrawlerRunLogsRequest, RagGetCrawlerRunLogsResponse, RagGetCrawlerRunRequest, RagGraphRagConfig, RagGraphRagMethod, RagListCrawlerRunsRequest, RagListCrawlerRunsResponse, RagListCrawlersRequest, RagListCrawlersResponse, RagListDatasetsRequest, RagListDocumentsRequest, RagLogic, RagMetadataCondition, RagMetadataConditions, RagParserConfig, RagPartialSuccess, RagRaptorConfig, RagRemoveCrawlerResultsFromDatasetsRequest, RagRetrievalRequest, RagRetrievalResponse, RagStartCrawlerRequest, RagStopCrawlerRequest, RagStopCrawlerResponse, RagUpdateCrawlerRequest, RagUpdateDatasetRequest, RagUpdateDocumentRequest, RagUploadDocumentRequest, RagVariantConfig, RagsClient, RankingMatchOptimizationConfig, ReannotateEntitiesOptions, ReasoningEffort$1 as ReasoningEffort, ReferencedChunk, ReindexAgentRequest, RemoteOperationContainer, RemoteOperationContainerLifecycleState, RemoteOperationContainerLogLine, RemoteOperationContainerStatus, RemoveUserFromProjectRequest, ReportFormat, ReportType, RequestConfig, ResourceView, RestoreAgentRequest, RotateProjectTechnicalUserPasswordRequest, RotateProjectTechnicalUserPasswordResponse, RunLlmEvaluationExperimentRequest, RunLlmEvaluationReleaseGateRequest, S2sPipeline, S2sPipelineId, S2sStreamRequest, S2sStreamResponse, S2tCloudProviderConfig, S2tCloudProviderConfigAmazon, S2tCloudProviderConfigDeepgram, S2tCloudProviderConfigGoogle, S2tCloudProviderConfigMicrosoft, S2tCloudServiceAmazon, S2tCloudServiceDeepgram, S2tCloudServiceGoogle, S2tCloudServiceMicrosoft, S2tDescription, S2tGetServiceInfoResponse, S2tInference, S2tLlmPostProcessing, S2tLlmPostProcessingInverseNormalizationOptions, S2tLlmPostProcessingNormalizationOptions, S2tLlmPostProcessingSubTaskOptions, S2tLlmPostProcessingSummarizationOptions, S2tLlmPostProcessingTranslationOptions, S2tNormalization, S2tPipelineId, S2tTranscription, ServerRole, ServerStatisticsClient, ServiceTier, Session, SessionEntityType, SessionFeedback, SessionFilter, SessionInfo, SessionReview, SessionReviewStep, SessionStep, SessionsClient, SessionsReportType, SetAgentStatusRequest, SetControlStatusRequest, SetControlStatusResponse, SetNotificationsFlaggedStatusRequest, SetNotificationsReadStatusRequest, SetResourcesRequest, SetUserPreferencesRequest, SetUserPreferencesResponse, SimulateLlmEvaluationConversationsRequest, SingleInference, SipTrigger, SortingMode, Speech2TextClient, Speech2TextConfig, StartLlmEvaluationAbExperimentRequest, StatResponse, Status, StopLlmEvaluationAbExperimentRequest, StreamNotificationsRequest, StreamRemoteOperationContainerLogsRequest, StreamingDetectIntentRequest, StreamingDetectIntentResponse, StreamingLlmGenerateResponse, StreamingRecognitionResult, StreamingServer, StreamingSpeechRecognition, StreamingSynthesizeRequest, StreamingSynthesizeResponse, StringUpdate, SubmitLlmEvaluationFeedbackRequest, SymSpell, Synonym, SynthesizeRequest, SynthesizeResponse, T2SCustomLengthScales, T2SDescription, T2SGetServiceInfoResponse, T2SInference, T2SNormalization, T2sCloudProviderConfig, T2sCloudProviderConfigElevenLabs, T2sCloudProviderConfigGoogle, T2sCloudProviderConfigMicrosoft, T2sCloudServiceAmazon, T2sCloudServiceElevenLabs, T2sCloudServiceGoogle, T2sCloudServiceMicrosoft, T2sPipelineId, TOKEN_PROVIDER, Text2Audio, Text2Mel, Text2SpeechClient, Text2SpeechConfig, TextInput, ThesaurusEnrichmentConfig, TrainAgentRequest, TrainUserLanguageModelRequest, TrainingPhraseCleanerOptions, TrainingPhraseStatus, TranscribeFileRequest, TranscribeFileResponse, TranscribeRequestConfig, TranscribeStreamRequest, TranscribeStreamResponse, Transcription, TranscriptionAlternative, TranscriptionReturnOptions, TranscriptionType, TurnDetectionOptions, UpdateAgentRequest, UpdateCcaiProjectRequest, UpdateCcaiProjectResponse, UpdateContextRequest, UpdateCustomPhonemizerRequest, UpdateEntityRequest, UpdateEntityTypeRequest, UpdateIntentRequest, UpdateLlmEvaluationAbExperimentRequest, UpdateLlmEvaluationAnnotationQueueItemRequest, UpdateLlmEvaluationDatasetRequest, UpdateLlmEvaluationExampleRequest, UpdateLlmEvaluationExperimentRequest, UpdateLlmEvaluationFeedbackRequest, UpdateLlmEvaluationOnlineConfigRequest, UpdateLlmEvaluationProjectSettingsRequest, UpdateLlmEvaluationReleaseGateRequest, UpdateLlmEvaluationScheduleRequest, UpdateLlmEvaluationScorecardRequest, UpdateNotificationRequest, UpdateProjectRoleRequest, UpdateServerRoleRequest, UpdateSessionCommentsRequest, UpdateSessionEntityTypeRequest, UpdateSessionFeedbackRequest, UpdateSessionStepRequest, UpdateUserRequest, User, UserInProject, UserInfo, UsersClient, UtilitiesClient, UtteranceDetectionOptions, ValidateEmbeddedRegexRequest, ValidateEmbeddedRegexResponse, ValidateRegexRequest, ValidateRegexResponse, Verbosity, VideoFileResource, Vits, VitsTriton, VoiceActivityDetection, VoiceCloningRequest, VoiceSettings, Wav2Vec, Wav2VecTriton, WebhookClient, WebhookRequest, WebhookResponse, Whisper, WhisperTriton, Wiener, Word2VecEnrichmentConfig, WordAlternative, WordDetail, WordNetAugEnrichmentConfig, XLNetAugEnrichmentConfig, authHttpInterceptor, buildBearerValue, provideOndewoCsiAuth, resolveBearerValue, resolveToken };
|
|
152703
153253
|
//# sourceMappingURL=ondewo-csi-client-angular.mjs.map
|