zorihq 0.20.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/resources/v1/analytics/analytics.d.mts +54 -3
- package/resources/v1/analytics/analytics.d.mts.map +1 -1
- package/resources/v1/analytics/analytics.d.ts +54 -3
- package/resources/v1/analytics/analytics.d.ts.map +1 -1
- package/resources/v1/analytics/analytics.js +4 -0
- package/resources/v1/analytics/analytics.js.map +1 -1
- package/resources/v1/analytics/analytics.mjs +4 -0
- package/resources/v1/analytics/analytics.mjs.map +1 -1
- package/resources/v1/analytics/index.d.mts +3 -2
- package/resources/v1/analytics/index.d.mts.map +1 -1
- package/resources/v1/analytics/index.d.ts +3 -2
- package/resources/v1/analytics/index.d.ts.map +1 -1
- package/resources/v1/analytics/index.js +3 -1
- package/resources/v1/analytics/index.js.map +1 -1
- package/resources/v1/analytics/index.mjs +1 -0
- package/resources/v1/analytics/index.mjs.map +1 -1
- package/resources/v1/analytics/llm.d.mts +63 -0
- package/resources/v1/analytics/llm.d.mts.map +1 -0
- package/resources/v1/analytics/llm.d.ts +63 -0
- package/resources/v1/analytics/llm.d.ts.map +1 -0
- package/resources/v1/analytics/llm.js +40 -0
- package/resources/v1/analytics/llm.js.map +1 -0
- package/resources/v1/analytics/llm.mjs +36 -0
- package/resources/v1/analytics/llm.mjs.map +1 -0
- package/resources/v1/analytics/tiles.d.mts +50 -1
- package/resources/v1/analytics/tiles.d.mts.map +1 -1
- package/resources/v1/analytics/tiles.d.ts +50 -1
- package/resources/v1/analytics/tiles.d.ts.map +1 -1
- package/resources/v1/analytics/tiles.js +31 -0
- package/resources/v1/analytics/tiles.js.map +1 -1
- package/resources/v1/analytics/tiles.mjs +31 -0
- package/resources/v1/analytics/tiles.mjs.map +1 -1
- package/resources/v1/index.d.mts +1 -1
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +1 -1
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/v1.d.mts +2 -2
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +2 -2
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/analytics/analytics.ts +102 -0
- package/src/resources/v1/analytics/index.ts +9 -0
- package/src/resources/v1/analytics/llm.ts +99 -0
- package/src/resources/v1/analytics/tiles.ts +78 -0
- package/src/resources/v1/index.ts +6 -0
- package/src/resources/v1/v1.ts +12 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/v1/v1.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Auth, AuthLoginParams, LoginRequest, LoginResponse } from "./auth.js";
|
|
|
4
4
|
import * as ProjectsAPI from "./projects.js";
|
|
5
5
|
import { CreateProjectRequest, ListProjectsResponse, Project, ProjectCreateParams, ProjectCreateResponse, ProjectDeleteResponse, ProjectResponse, ProjectUpdateParams, Projects, UpdateProjectRequest } from "./projects.js";
|
|
6
6
|
import * as AnalyticsAPI from "./analytics/analytics.js";
|
|
7
|
-
import { Analytics, AnalyticsTimelineParams, BounceRateResponse, CardPrecision, ChurnRateResponse, CohortAnalysisResponse, CohortData, CountryTrafficSourceData, CountryTrafficSourceResponse, DauResponse, EntryPagesData, EntryPagesResponse, EventFilterOptionsResponse, EventsOverTimeDataPoint, ExitPagesData, ExitPagesResponse, ManualIdentifyRequest, ManualIdentifyResponse, MauResponse, PagesPerSessionResponse, RecentEvent, RecentEventsResponse, RefererTrafficSourceData, RefererTrafficSourceResponse, ReturnRateResponse, SessionDurationResponse, TimeBetweenVisitsResponse, TimelineTileData, TimelineTileResponse, TopVisitor, TopVisitorsResponse, UniqueSessionsResponse, UniqueVisitorsResponse, UtmTrafficSourceResponse, VisitorDataPoint, VisitorEvent, VisitorProfileResponse, VisitorsByBrowserResponse, VisitorsByDeviceResponse, VisitorsByOsResponse, WauResponse } from "./analytics/analytics.js";
|
|
7
|
+
import { Analytics, AnalyticsTimelineParams, BounceRateResponse, CardPrecision, ChurnRateResponse, CohortAnalysisResponse, CohortData, CountryTrafficSourceData, CountryTrafficSourceResponse, DauResponse, EntryPagesData, EntryPagesResponse, EventFilterOptionsResponse, EventsOverTimeDataPoint, ExitPagesData, ExitPagesResponse, LlmCostResponse, LlmModelCostData, LlmTopModelsCostResponse, LlmTraceFilterOptionsResponse, LlmTraceItem, LlmTracesListResponse, ManualIdentifyRequest, ManualIdentifyResponse, MauResponse, PagesPerSessionResponse, RecentEvent, RecentEventsResponse, RefererTrafficSourceData, RefererTrafficSourceResponse, ReturnRateResponse, SessionDurationResponse, TimeBetweenVisitsResponse, TimelineTileData, TimelineTileResponse, TopVisitor, TopVisitorsResponse, UniqueSessionsResponse, UniqueVisitorsResponse, UtmTrafficSourceResponse, VisitorDataPoint, VisitorEvent, VisitorProfileResponse, VisitorsByBrowserResponse, VisitorsByDeviceResponse, VisitorsByOsResponse, WauResponse } from "./analytics/analytics.js";
|
|
8
8
|
import * as PaymentProvidersAPI from "./payment-providers/payment-providers.js";
|
|
9
9
|
import { CreatePaymentProviderRequest, ListPaymentProvidersResponse, PaymentProviderCreateParams, PaymentProviderDeleteResponse, PaymentProviderInstructionsParams, PaymentProviderListParams, PaymentProviderResponse, PaymentProviderUpdateParams, PaymentProviders, ProviderField, ProviderInstructionsResponse, UpdatePaymentProviderRequest } from "./payment-providers/payment-providers.js";
|
|
10
10
|
import * as RevenueAPI from "./revenue/revenue.js";
|
|
@@ -18,7 +18,7 @@ export declare class V1 extends APIResource {
|
|
|
18
18
|
}
|
|
19
19
|
export declare namespace V1 {
|
|
20
20
|
export { Auth as Auth, type LoginRequest as LoginRequest, type LoginResponse as LoginResponse, type AuthLoginParams as AuthLoginParams, };
|
|
21
|
-
export { Analytics as Analytics, type BounceRateResponse as BounceRateResponse, type CardPrecision as CardPrecision, type ChurnRateResponse as ChurnRateResponse, type CohortAnalysisResponse as CohortAnalysisResponse, type CohortData as CohortData, type CountryTrafficSourceData as CountryTrafficSourceData, type CountryTrafficSourceResponse as CountryTrafficSourceResponse, type DauResponse as DauResponse, type EntryPagesData as EntryPagesData, type EntryPagesResponse as EntryPagesResponse, type EventFilterOptionsResponse as EventFilterOptionsResponse, type EventsOverTimeDataPoint as EventsOverTimeDataPoint, type ExitPagesData as ExitPagesData, type ExitPagesResponse as ExitPagesResponse, type ManualIdentifyRequest as ManualIdentifyRequest, type ManualIdentifyResponse as ManualIdentifyResponse, type MauResponse as MauResponse, type PagesPerSessionResponse as PagesPerSessionResponse, type RecentEvent as RecentEvent, type RecentEventsResponse as RecentEventsResponse, type RefererTrafficSourceData as RefererTrafficSourceData, type RefererTrafficSourceResponse as RefererTrafficSourceResponse, type ReturnRateResponse as ReturnRateResponse, type SessionDurationResponse as SessionDurationResponse, type TimeBetweenVisitsResponse as TimeBetweenVisitsResponse, type TimelineTileData as TimelineTileData, type TimelineTileResponse as TimelineTileResponse, type TopVisitor as TopVisitor, type TopVisitorsResponse as TopVisitorsResponse, type UniqueSessionsResponse as UniqueSessionsResponse, type UniqueVisitorsResponse as UniqueVisitorsResponse, type UtmTrafficSourceResponse as UtmTrafficSourceResponse, type VisitorDataPoint as VisitorDataPoint, type VisitorEvent as VisitorEvent, type VisitorProfileResponse as VisitorProfileResponse, type VisitorsByBrowserResponse as VisitorsByBrowserResponse, type VisitorsByDeviceResponse as VisitorsByDeviceResponse, type VisitorsByOsResponse as VisitorsByOsResponse, type WauResponse as WauResponse, type AnalyticsTimelineParams as AnalyticsTimelineParams, };
|
|
21
|
+
export { Analytics as Analytics, type BounceRateResponse as BounceRateResponse, type CardPrecision as CardPrecision, type ChurnRateResponse as ChurnRateResponse, type CohortAnalysisResponse as CohortAnalysisResponse, type CohortData as CohortData, type CountryTrafficSourceData as CountryTrafficSourceData, type CountryTrafficSourceResponse as CountryTrafficSourceResponse, type DauResponse as DauResponse, type EntryPagesData as EntryPagesData, type EntryPagesResponse as EntryPagesResponse, type EventFilterOptionsResponse as EventFilterOptionsResponse, type EventsOverTimeDataPoint as EventsOverTimeDataPoint, type ExitPagesData as ExitPagesData, type ExitPagesResponse as ExitPagesResponse, type LlmCostResponse as LlmCostResponse, type LlmModelCostData as LlmModelCostData, type LlmTopModelsCostResponse as LlmTopModelsCostResponse, type LlmTraceFilterOptionsResponse as LlmTraceFilterOptionsResponse, type LlmTraceItem as LlmTraceItem, type LlmTracesListResponse as LlmTracesListResponse, type ManualIdentifyRequest as ManualIdentifyRequest, type ManualIdentifyResponse as ManualIdentifyResponse, type MauResponse as MauResponse, type PagesPerSessionResponse as PagesPerSessionResponse, type RecentEvent as RecentEvent, type RecentEventsResponse as RecentEventsResponse, type RefererTrafficSourceData as RefererTrafficSourceData, type RefererTrafficSourceResponse as RefererTrafficSourceResponse, type ReturnRateResponse as ReturnRateResponse, type SessionDurationResponse as SessionDurationResponse, type TimeBetweenVisitsResponse as TimeBetweenVisitsResponse, type TimelineTileData as TimelineTileData, type TimelineTileResponse as TimelineTileResponse, type TopVisitor as TopVisitor, type TopVisitorsResponse as TopVisitorsResponse, type UniqueSessionsResponse as UniqueSessionsResponse, type UniqueVisitorsResponse as UniqueVisitorsResponse, type UtmTrafficSourceResponse as UtmTrafficSourceResponse, type VisitorDataPoint as VisitorDataPoint, type VisitorEvent as VisitorEvent, type VisitorProfileResponse as VisitorProfileResponse, type VisitorsByBrowserResponse as VisitorsByBrowserResponse, type VisitorsByDeviceResponse as VisitorsByDeviceResponse, type VisitorsByOsResponse as VisitorsByOsResponse, type WauResponse as WauResponse, type AnalyticsTimelineParams as AnalyticsTimelineParams, };
|
|
22
22
|
export { Revenue as Revenue, type AttributionByOriginResponse as AttributionByOriginResponse, type AttributionByUtmResponse as AttributionByUtmResponse, type ConversionMetricsResponse as ConversionMetricsResponse, type CustomerProfileResponse as CustomerProfileResponse, type DashboardResponse as DashboardResponse, type OriginAttributionDataPoint as OriginAttributionDataPoint, type Payment as Payment, type RevenueOverTimeDataPoint as RevenueOverTimeDataPoint, type TimelineDataPoint as TimelineDataPoint, type TimelineResponse as TimelineResponse, type TopCustomer as TopCustomer, type TopCustomersResponse as TopCustomersResponse, type UtmAttributionDataPoint as UtmAttributionDataPoint, type RevenueDashboardParams as RevenueDashboardParams, type RevenueTimelineParams as RevenueTimelineParams, };
|
|
23
23
|
export { Projects as Projects, type CreateProjectRequest as CreateProjectRequest, type ListProjectsResponse as ListProjectsResponse, type Project as Project, type ProjectResponse as ProjectResponse, type UpdateProjectRequest as UpdateProjectRequest, type ProjectCreateResponse as ProjectCreateResponse, type ProjectDeleteResponse as ProjectDeleteResponse, type ProjectCreateParams as ProjectCreateParams, type ProjectUpdateParams as ProjectUpdateParams, };
|
|
24
24
|
export { PaymentProviders as PaymentProviders, type CreatePaymentProviderRequest as CreatePaymentProviderRequest, type ListPaymentProvidersResponse as ListPaymentProvidersResponse, type PaymentProviderResponse as PaymentProviderResponse, type ProviderField as ProviderField, type ProviderInstructionsResponse as ProviderInstructionsResponse, type UpdatePaymentProviderRequest as UpdatePaymentProviderRequest, type PaymentProviderDeleteResponse as PaymentProviderDeleteResponse, type PaymentProviderCreateParams as PaymentProviderCreateParams, type PaymentProviderUpdateParams as PaymentProviderUpdateParams, type PaymentProviderListParams as PaymentProviderListParams, type PaymentProviderInstructionsParams as PaymentProviderInstructionsParams, };
|
package/resources/v1/v1.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE;OACtD,KAAK,WAAW;OAChB,EACL,oBAAoB,EACpB,oBAAoB,EAC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e,IAAI,eAAe,EACvC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,gBAAgB,IAAI,gBAAgB,EACpC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,iCAAiC,IAAI,iCAAiC,GAC5E,CAAC;CACH"}
|
package/resources/v1/v1.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,2DAAkC;AAClC,oCAA4E;AAC5E,mEAA0C;AAC1C,4CAWoB;AACpB,+EAAsD;AACtD,
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,2DAAkC;AAClC,oCAA4E;AAC5E,mEAA0C;AAC1C,4CAWoB;AACpB,+EAAsD;AACtD,wDAgD+B;AAC/B,sGAA6E;AAC7E,gFAa+C;AAC/C,yEAAgD;AAChD,kDAiB2B;AAE3B,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;IACJ,CAAC;CAAA;AARD,gBAQC;AAED,EAAE,CAAC,IAAI,GAAG,WAAI,CAAC;AACf,EAAE,CAAC,SAAS,GAAG,qBAAS,CAAC;AACzB,EAAE,CAAC,OAAO,GAAG,iBAAO,CAAC;AACrB,EAAE,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AACvB,EAAE,CAAC,gBAAgB,GAAG,oCAAgB,CAAC"}
|
package/resources/v1/v1.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAAgD;OACtD,KAAK,WAAW;OAChB,EASL,QAAQ,GAET;OACM,KAAK,YAAY;OACjB,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAAgD;OACtD,KAAK,WAAW;OAChB,EASL,QAAQ,GAET;OACM,KAAK,YAAY;OACjB,EACL,SAAS,GA+CV;OACM,KAAK,mBAAmB;OACxB,EASL,gBAAgB,GAIjB;OACM,KAAK,UAAU;OACf,EAQL,OAAO,GASR;AAED,MAAM,OAAO,EAAG,SAAQ,WAAW;IAAnC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;IACJ,CAAC;CAAA;AAED,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC;AACf,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;AACzB,EAAE,CAAC,OAAO,GAAG,OAAO,CAAC;AACrB,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACvB,EAAE,CAAC,gBAAgB,GAAG,gBAAgB,CAAC"}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as EventsAPI from './events';
|
|
5
5
|
import { EventFilterOptionsParams, EventRecentParams, Events } from './events';
|
|
6
|
+
import * as LlmAPI from './llm';
|
|
7
|
+
import { Llm, LlmTracesFilterOptionsParams, LlmTracesParams } from './llm';
|
|
6
8
|
import * as RetentionAPI from './retention';
|
|
7
9
|
import { Retention, RetentionChurnRateParams, RetentionCohortsParams } from './retention';
|
|
8
10
|
import * as TilesAPI from './tiles';
|
|
@@ -11,6 +13,8 @@ import {
|
|
|
11
13
|
TileDauParams,
|
|
12
14
|
TileEntryPagesParams,
|
|
13
15
|
TileExitPagesParams,
|
|
16
|
+
TileLlmCostParams,
|
|
17
|
+
TileLlmTopModelsCostParams,
|
|
14
18
|
TileMauParams,
|
|
15
19
|
TilePagesPerSessionParams,
|
|
16
20
|
TileReturnRateParams,
|
|
@@ -40,6 +44,7 @@ import { RequestOptions } from '../../../internal/request-options';
|
|
|
40
44
|
export class Analytics extends APIResource {
|
|
41
45
|
visitors: VisitorsAPI.Visitors = new VisitorsAPI.Visitors(this._client);
|
|
42
46
|
events: EventsAPI.Events = new EventsAPI.Events(this._client);
|
|
47
|
+
llm: LlmAPI.Llm = new LlmAPI.Llm(this._client);
|
|
43
48
|
tiles: TilesAPI.Tiles = new TilesAPI.Tiles(this._client);
|
|
44
49
|
retention: RetentionAPI.Retention = new RetentionAPI.Retention(this._client);
|
|
45
50
|
|
|
@@ -157,6 +162,88 @@ export interface ExitPagesResponse {
|
|
|
157
162
|
data?: Array<ExitPagesData>;
|
|
158
163
|
}
|
|
159
164
|
|
|
165
|
+
export interface LlmCostResponse {
|
|
166
|
+
cost?: number;
|
|
167
|
+
|
|
168
|
+
previous_cost?: number;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export interface LlmModelCostData {
|
|
172
|
+
cost?: number;
|
|
173
|
+
|
|
174
|
+
model?: string;
|
|
175
|
+
|
|
176
|
+
previous_cost?: number;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export interface LlmTopModelsCostResponse {
|
|
180
|
+
data?: Array<LlmModelCostData>;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export interface LlmTraceFilterOptionsResponse {
|
|
184
|
+
models?: Array<string>;
|
|
185
|
+
|
|
186
|
+
names?: Array<string>;
|
|
187
|
+
|
|
188
|
+
session_ids?: Array<string>;
|
|
189
|
+
|
|
190
|
+
user_ids?: Array<string>;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export interface LlmTraceItem {
|
|
194
|
+
avg_latency_ms?: number;
|
|
195
|
+
|
|
196
|
+
created_at?: string;
|
|
197
|
+
|
|
198
|
+
generation_count?: number;
|
|
199
|
+
|
|
200
|
+
input?: string;
|
|
201
|
+
|
|
202
|
+
input_tokens?: number;
|
|
203
|
+
|
|
204
|
+
metadata?: string;
|
|
205
|
+
|
|
206
|
+
models?: Array<string>;
|
|
207
|
+
|
|
208
|
+
name?: string;
|
|
209
|
+
|
|
210
|
+
output?: string;
|
|
211
|
+
|
|
212
|
+
output_tokens?: number;
|
|
213
|
+
|
|
214
|
+
public?: boolean;
|
|
215
|
+
|
|
216
|
+
release?: string;
|
|
217
|
+
|
|
218
|
+
session_id?: string;
|
|
219
|
+
|
|
220
|
+
tags?: Array<string>;
|
|
221
|
+
|
|
222
|
+
timestamp?: string;
|
|
223
|
+
|
|
224
|
+
total_cost?: number;
|
|
225
|
+
|
|
226
|
+
total_tokens?: number;
|
|
227
|
+
|
|
228
|
+
trace_id?: string;
|
|
229
|
+
|
|
230
|
+
updated_at?: string;
|
|
231
|
+
|
|
232
|
+
user_id?: string;
|
|
233
|
+
|
|
234
|
+
version?: string;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export interface LlmTracesListResponse {
|
|
238
|
+
limit?: number;
|
|
239
|
+
|
|
240
|
+
offset?: number;
|
|
241
|
+
|
|
242
|
+
total?: number;
|
|
243
|
+
|
|
244
|
+
traces?: Array<LlmTraceItem>;
|
|
245
|
+
}
|
|
246
|
+
|
|
160
247
|
export interface ManualIdentifyRequest {
|
|
161
248
|
project_id: string;
|
|
162
249
|
|
|
@@ -547,6 +634,7 @@ export interface AnalyticsTimelineParams {
|
|
|
547
634
|
|
|
548
635
|
Analytics.Visitors = Visitors;
|
|
549
636
|
Analytics.Events = Events;
|
|
637
|
+
Analytics.Llm = Llm;
|
|
550
638
|
Analytics.Tiles = Tiles;
|
|
551
639
|
Analytics.Retention = Retention;
|
|
552
640
|
|
|
@@ -566,6 +654,12 @@ export declare namespace Analytics {
|
|
|
566
654
|
type EventsOverTimeDataPoint as EventsOverTimeDataPoint,
|
|
567
655
|
type ExitPagesData as ExitPagesData,
|
|
568
656
|
type ExitPagesResponse as ExitPagesResponse,
|
|
657
|
+
type LlmCostResponse as LlmCostResponse,
|
|
658
|
+
type LlmModelCostData as LlmModelCostData,
|
|
659
|
+
type LlmTopModelsCostResponse as LlmTopModelsCostResponse,
|
|
660
|
+
type LlmTraceFilterOptionsResponse as LlmTraceFilterOptionsResponse,
|
|
661
|
+
type LlmTraceItem as LlmTraceItem,
|
|
662
|
+
type LlmTracesListResponse as LlmTracesListResponse,
|
|
569
663
|
type ManualIdentifyRequest as ManualIdentifyRequest,
|
|
570
664
|
type ManualIdentifyResponse as ManualIdentifyResponse,
|
|
571
665
|
type MauResponse as MauResponse,
|
|
@@ -608,12 +702,20 @@ export declare namespace Analytics {
|
|
|
608
702
|
type EventRecentParams as EventRecentParams,
|
|
609
703
|
};
|
|
610
704
|
|
|
705
|
+
export {
|
|
706
|
+
Llm as Llm,
|
|
707
|
+
type LlmTracesParams as LlmTracesParams,
|
|
708
|
+
type LlmTracesFilterOptionsParams as LlmTracesFilterOptionsParams,
|
|
709
|
+
};
|
|
710
|
+
|
|
611
711
|
export {
|
|
612
712
|
Tiles as Tiles,
|
|
613
713
|
type TileBounceRateParams as TileBounceRateParams,
|
|
614
714
|
type TileDauParams as TileDauParams,
|
|
615
715
|
type TileEntryPagesParams as TileEntryPagesParams,
|
|
616
716
|
type TileExitPagesParams as TileExitPagesParams,
|
|
717
|
+
type TileLlmCostParams as TileLlmCostParams,
|
|
718
|
+
type TileLlmTopModelsCostParams as TileLlmTopModelsCostParams,
|
|
617
719
|
type TileMauParams as TileMauParams,
|
|
618
720
|
type TilePagesPerSessionParams as TilePagesPerSessionParams,
|
|
619
721
|
type TileReturnRateParams as TileReturnRateParams,
|
|
@@ -16,6 +16,12 @@ export {
|
|
|
16
16
|
type EventsOverTimeDataPoint,
|
|
17
17
|
type ExitPagesData,
|
|
18
18
|
type ExitPagesResponse,
|
|
19
|
+
type LlmCostResponse,
|
|
20
|
+
type LlmModelCostData,
|
|
21
|
+
type LlmTopModelsCostResponse,
|
|
22
|
+
type LlmTraceFilterOptionsResponse,
|
|
23
|
+
type LlmTraceItem,
|
|
24
|
+
type LlmTracesListResponse,
|
|
19
25
|
type ManualIdentifyRequest,
|
|
20
26
|
type ManualIdentifyResponse,
|
|
21
27
|
type MauResponse,
|
|
@@ -44,6 +50,7 @@ export {
|
|
|
44
50
|
type AnalyticsTimelineParams,
|
|
45
51
|
} from './analytics';
|
|
46
52
|
export { Events, type EventFilterOptionsParams, type EventRecentParams } from './events';
|
|
53
|
+
export { Llm, type LlmTracesParams, type LlmTracesFilterOptionsParams } from './llm';
|
|
47
54
|
export { Retention, type RetentionChurnRateParams, type RetentionCohortsParams } from './retention';
|
|
48
55
|
export {
|
|
49
56
|
Tiles,
|
|
@@ -51,6 +58,8 @@ export {
|
|
|
51
58
|
type TileDauParams,
|
|
52
59
|
type TileEntryPagesParams,
|
|
53
60
|
type TileExitPagesParams,
|
|
61
|
+
type TileLlmCostParams,
|
|
62
|
+
type TileLlmTopModelsCostParams,
|
|
54
63
|
type TileMauParams,
|
|
55
64
|
type TilePagesPerSessionParams,
|
|
56
65
|
type TileReturnRateParams,
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as AnalyticsAPI from './analytics';
|
|
5
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
|
|
8
|
+
export class Llm extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get a paginated list of LLM traces with optional filters (name, user_id,
|
|
11
|
+
* session_id, model)
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const llmTracesListResponse =
|
|
16
|
+
* await client.v1.analytics.llm.traces({
|
|
17
|
+
* project_id: 'project_id',
|
|
18
|
+
* time_range: 'last_hour',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
traces(query: LlmTracesParams, options?: RequestOptions): APIPromise<AnalyticsAPI.LlmTracesListResponse> {
|
|
23
|
+
return this._client.get('/api/v1/analytics/llm/traces', { query, ...options });
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Get unique names, user_ids, session_ids, and models to populate filter dropdowns
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const llmTraceFilterOptionsResponse =
|
|
32
|
+
* await client.v1.analytics.llm.tracesFilterOptions({
|
|
33
|
+
* project_id: 'project_id',
|
|
34
|
+
* time_range: 'last_hour',
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
tracesFilterOptions(
|
|
39
|
+
query: LlmTracesFilterOptionsParams,
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): APIPromise<AnalyticsAPI.LlmTraceFilterOptionsResponse> {
|
|
42
|
+
return this._client.get('/api/v1/analytics/llm/traces/filter-options', { query, ...options });
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface LlmTracesParams {
|
|
47
|
+
project_id: string;
|
|
48
|
+
|
|
49
|
+
time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
50
|
+
|
|
51
|
+
customer_id?: string;
|
|
52
|
+
|
|
53
|
+
limit?: number;
|
|
54
|
+
|
|
55
|
+
model?: string;
|
|
56
|
+
|
|
57
|
+
name?: string;
|
|
58
|
+
|
|
59
|
+
offset?: number;
|
|
60
|
+
|
|
61
|
+
referrer?: string;
|
|
62
|
+
|
|
63
|
+
session_id?: string;
|
|
64
|
+
|
|
65
|
+
user_id?: string;
|
|
66
|
+
|
|
67
|
+
utmtag?: string;
|
|
68
|
+
|
|
69
|
+
utmtagValue?: string;
|
|
70
|
+
|
|
71
|
+
visitor_id?: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface LlmTracesFilterOptionsParams {
|
|
75
|
+
project_id: string;
|
|
76
|
+
|
|
77
|
+
time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
78
|
+
|
|
79
|
+
customer_id?: string;
|
|
80
|
+
|
|
81
|
+
limit?: number;
|
|
82
|
+
|
|
83
|
+
offset?: number;
|
|
84
|
+
|
|
85
|
+
referrer?: string;
|
|
86
|
+
|
|
87
|
+
utmtag?: string;
|
|
88
|
+
|
|
89
|
+
utmtagValue?: string;
|
|
90
|
+
|
|
91
|
+
visitor_id?: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export declare namespace Llm {
|
|
95
|
+
export {
|
|
96
|
+
type LlmTracesParams as LlmTracesParams,
|
|
97
|
+
type LlmTracesFilterOptionsParams as LlmTracesFilterOptionsParams,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
@@ -80,6 +80,42 @@ export class Tiles extends APIResource {
|
|
|
80
80
|
return this._client.get('/api/v1/analytics/tiles/exit-pages', { query, ...options });
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
/**
|
|
84
|
+
* Get total LLM cost for current period compared to the previous period
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```ts
|
|
88
|
+
* const llmCostResponse =
|
|
89
|
+
* await client.v1.analytics.tiles.llmCost({
|
|
90
|
+
* project_id: 'project_id',
|
|
91
|
+
* time_range: 'last_hour',
|
|
92
|
+
* });
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
llmCost(query: TileLlmCostParams, options?: RequestOptions): APIPromise<AnalyticsAPI.LlmCostResponse> {
|
|
96
|
+
return this._client.get('/api/v1/analytics/tiles/llm-cost', { query, ...options });
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Get top 3 most expensive LLM models for current period compared to the previous
|
|
101
|
+
* period
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* ```ts
|
|
105
|
+
* const llmTopModelsCostResponse =
|
|
106
|
+
* await client.v1.analytics.tiles.llmTopModelsCost({
|
|
107
|
+
* project_id: 'project_id',
|
|
108
|
+
* time_range: 'last_hour',
|
|
109
|
+
* });
|
|
110
|
+
* ```
|
|
111
|
+
*/
|
|
112
|
+
llmTopModelsCost(
|
|
113
|
+
query: TileLlmTopModelsCostParams,
|
|
114
|
+
options?: RequestOptions,
|
|
115
|
+
): APIPromise<AnalyticsAPI.LlmTopModelsCostResponse> {
|
|
116
|
+
return this._client.get('/api/v1/analytics/tiles/llm-top-models-cost', { query, ...options });
|
|
117
|
+
}
|
|
118
|
+
|
|
83
119
|
/**
|
|
84
120
|
* Get monthly active user count (last 30 days) compared to the previous month
|
|
85
121
|
*
|
|
@@ -405,6 +441,46 @@ export interface TileExitPagesParams {
|
|
|
405
441
|
visitor_id?: string;
|
|
406
442
|
}
|
|
407
443
|
|
|
444
|
+
export interface TileLlmCostParams {
|
|
445
|
+
project_id: string;
|
|
446
|
+
|
|
447
|
+
time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
448
|
+
|
|
449
|
+
customer_id?: string;
|
|
450
|
+
|
|
451
|
+
limit?: number;
|
|
452
|
+
|
|
453
|
+
offset?: number;
|
|
454
|
+
|
|
455
|
+
referrer?: string;
|
|
456
|
+
|
|
457
|
+
utmtag?: string;
|
|
458
|
+
|
|
459
|
+
utmtagValue?: string;
|
|
460
|
+
|
|
461
|
+
visitor_id?: string;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
export interface TileLlmTopModelsCostParams {
|
|
465
|
+
project_id: string;
|
|
466
|
+
|
|
467
|
+
time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
468
|
+
|
|
469
|
+
customer_id?: string;
|
|
470
|
+
|
|
471
|
+
limit?: number;
|
|
472
|
+
|
|
473
|
+
offset?: number;
|
|
474
|
+
|
|
475
|
+
referrer?: string;
|
|
476
|
+
|
|
477
|
+
utmtag?: string;
|
|
478
|
+
|
|
479
|
+
utmtagValue?: string;
|
|
480
|
+
|
|
481
|
+
visitor_id?: string;
|
|
482
|
+
}
|
|
483
|
+
|
|
408
484
|
export interface TileMauParams {
|
|
409
485
|
project_id: string;
|
|
410
486
|
|
|
@@ -671,6 +747,8 @@ export declare namespace Tiles {
|
|
|
671
747
|
type TileDauParams as TileDauParams,
|
|
672
748
|
type TileEntryPagesParams as TileEntryPagesParams,
|
|
673
749
|
type TileExitPagesParams as TileExitPagesParams,
|
|
750
|
+
type TileLlmCostParams as TileLlmCostParams,
|
|
751
|
+
type TileLlmTopModelsCostParams as TileLlmTopModelsCostParams,
|
|
674
752
|
type TileMauParams as TileMauParams,
|
|
675
753
|
type TilePagesPerSessionParams as TilePagesPerSessionParams,
|
|
676
754
|
type TileReturnRateParams as TileReturnRateParams,
|
|
@@ -16,6 +16,12 @@ export {
|
|
|
16
16
|
type EventsOverTimeDataPoint,
|
|
17
17
|
type ExitPagesData,
|
|
18
18
|
type ExitPagesResponse,
|
|
19
|
+
type LlmCostResponse,
|
|
20
|
+
type LlmModelCostData,
|
|
21
|
+
type LlmTopModelsCostResponse,
|
|
22
|
+
type LlmTraceFilterOptionsResponse,
|
|
23
|
+
type LlmTraceItem,
|
|
24
|
+
type LlmTracesListResponse,
|
|
19
25
|
type ManualIdentifyRequest,
|
|
20
26
|
type ManualIdentifyResponse,
|
|
21
27
|
type MauResponse,
|
package/src/resources/v1/v1.ts
CHANGED
|
@@ -34,6 +34,12 @@ import {
|
|
|
34
34
|
EventsOverTimeDataPoint,
|
|
35
35
|
ExitPagesData,
|
|
36
36
|
ExitPagesResponse,
|
|
37
|
+
LlmCostResponse,
|
|
38
|
+
LlmModelCostData,
|
|
39
|
+
LlmTopModelsCostResponse,
|
|
40
|
+
LlmTraceFilterOptionsResponse,
|
|
41
|
+
LlmTraceItem,
|
|
42
|
+
LlmTracesListResponse,
|
|
37
43
|
ManualIdentifyRequest,
|
|
38
44
|
ManualIdentifyResponse,
|
|
39
45
|
MauResponse,
|
|
@@ -135,6 +141,12 @@ export declare namespace V1 {
|
|
|
135
141
|
type EventsOverTimeDataPoint as EventsOverTimeDataPoint,
|
|
136
142
|
type ExitPagesData as ExitPagesData,
|
|
137
143
|
type ExitPagesResponse as ExitPagesResponse,
|
|
144
|
+
type LlmCostResponse as LlmCostResponse,
|
|
145
|
+
type LlmModelCostData as LlmModelCostData,
|
|
146
|
+
type LlmTopModelsCostResponse as LlmTopModelsCostResponse,
|
|
147
|
+
type LlmTraceFilterOptionsResponse as LlmTraceFilterOptionsResponse,
|
|
148
|
+
type LlmTraceItem as LlmTraceItem,
|
|
149
|
+
type LlmTracesListResponse as LlmTracesListResponse,
|
|
138
150
|
type ManualIdentifyRequest as ManualIdentifyRequest,
|
|
139
151
|
type ManualIdentifyResponse as ManualIdentifyResponse,
|
|
140
152
|
type MauResponse as MauResponse,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.21.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.21.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.21.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.21.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|