@rustrak/client 0.21.1 → 0.22.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/LICENSE +21 -674
- package/README.md +13 -4
- package/dist/generated/sdk.gen.cjs +185 -3
- package/dist/generated/sdk.gen.cjs.map +1 -1
- package/dist/generated/sdk.gen.d.cts +10 -1
- package/dist/generated/sdk.gen.d.cts.map +1 -1
- package/dist/generated/sdk.gen.d.mts +10 -1
- package/dist/generated/sdk.gen.d.mts.map +1 -1
- package/dist/generated/sdk.gen.mjs +186 -4
- package/dist/generated/sdk.gen.mjs.map +1 -1
- package/dist/generated/types.gen.d.cts +354 -1
- package/dist/generated/types.gen.d.cts.map +1 -1
- package/dist/generated/types.gen.d.mts +354 -1
- package/dist/generated/types.gen.d.mts.map +1 -1
- package/dist/generated/zod.gen.cjs +372 -13
- package/dist/generated/zod.gen.cjs.map +1 -1
- package/dist/generated/zod.gen.mjs +338 -14
- package/dist/generated/zod.gen.mjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/package.json +2 -2
|
@@ -18,6 +18,10 @@ export type ActivityEntry = {
|
|
|
18
18
|
type: string;
|
|
19
19
|
user_id: number | null;
|
|
20
20
|
};
|
|
21
|
+
export type AgentConversation = {
|
|
22
|
+
conversation_id: string;
|
|
23
|
+
spans: Array<ConversationSpan>;
|
|
24
|
+
};
|
|
21
25
|
export type AgentDurationPoint = {
|
|
22
26
|
avg_ms: number;
|
|
23
27
|
bucket: string;
|
|
@@ -46,6 +50,7 @@ export type AgentSummary = {
|
|
|
46
50
|
};
|
|
47
51
|
export type AgentTimeseriesPoint = {
|
|
48
52
|
bucket: string;
|
|
53
|
+
errors: number;
|
|
49
54
|
value: number;
|
|
50
55
|
};
|
|
51
56
|
export type AgentToolRow = {
|
|
@@ -83,6 +88,12 @@ export type AlertHistory = {
|
|
|
83
88
|
sent_at: string | null;
|
|
84
89
|
status: AlertStatus;
|
|
85
90
|
};
|
|
91
|
+
export type AlertHistoryDay = {
|
|
92
|
+
day: string;
|
|
93
|
+
failed: number;
|
|
94
|
+
sent: number;
|
|
95
|
+
skipped: number;
|
|
96
|
+
};
|
|
86
97
|
export type AlertIntegration = {
|
|
87
98
|
created_at: string;
|
|
88
99
|
credentials: {
|
|
@@ -267,6 +278,23 @@ export type Compaction = {
|
|
|
267
278
|
export type ConfirmSsoLinkRequest = {
|
|
268
279
|
password: string;
|
|
269
280
|
};
|
|
281
|
+
export type ConversationSpan = {
|
|
282
|
+
agent_name: string | null;
|
|
283
|
+
duration_ms: number | null;
|
|
284
|
+
id: string;
|
|
285
|
+
input: string | null;
|
|
286
|
+
model: string | null;
|
|
287
|
+
operation_type: string;
|
|
288
|
+
output: string | null;
|
|
289
|
+
parent_span_id: string | null;
|
|
290
|
+
span_id: string | null;
|
|
291
|
+
start_timestamp: string | null;
|
|
292
|
+
status: string | null;
|
|
293
|
+
tool_calls: string | null;
|
|
294
|
+
tool_name: string | null;
|
|
295
|
+
total_tokens: number | null;
|
|
296
|
+
trace_id: string;
|
|
297
|
+
};
|
|
270
298
|
export type CreateAlertIntegration = {
|
|
271
299
|
credentials: {
|
|
272
300
|
[key: string]: unknown;
|
|
@@ -517,7 +545,7 @@ export type IssueResponse = {
|
|
|
517
545
|
user_report_count?: number | null;
|
|
518
546
|
value: string;
|
|
519
547
|
};
|
|
520
|
-
export type IssueSort = 'digest_order' | 'last_seen' | 'event_count';
|
|
548
|
+
export type IssueSort = 'digest_order' | 'last_seen' | 'event_count' | 'first_seen' | 'priority';
|
|
521
549
|
export type IssueStatsResponse = {
|
|
522
550
|
data: Array<Array<number>>;
|
|
523
551
|
};
|
|
@@ -559,6 +587,15 @@ export type LogResponse = {
|
|
|
559
587
|
timestamp: string;
|
|
560
588
|
trace_id: string | null;
|
|
561
589
|
};
|
|
590
|
+
export type LogVolumePoint = {
|
|
591
|
+
bucket: string;
|
|
592
|
+
debug: number;
|
|
593
|
+
error: number;
|
|
594
|
+
fatal: number;
|
|
595
|
+
info: number;
|
|
596
|
+
trace: number;
|
|
597
|
+
warn: number;
|
|
598
|
+
};
|
|
562
599
|
export type LoginRequest = {
|
|
563
600
|
email: string;
|
|
564
601
|
password: string;
|
|
@@ -606,6 +643,12 @@ export type MonitorEnvironmentResponse = {
|
|
|
606
643
|
recent_checkins: Array<CheckInResponse>;
|
|
607
644
|
status: MonitorEnvironmentStatus;
|
|
608
645
|
};
|
|
646
|
+
export type MonitorEnvironmentStats = {
|
|
647
|
+
buckets: Array<MonitorStatsBucket>;
|
|
648
|
+
environment: string;
|
|
649
|
+
monitor_environment_id: string;
|
|
650
|
+
monitor_slug: string;
|
|
651
|
+
};
|
|
609
652
|
export type MonitorEnvironmentStatus = 'active' | 'ok' | 'error';
|
|
610
653
|
export type MonitorResponse = {
|
|
611
654
|
config: MonitorConfig;
|
|
@@ -616,6 +659,16 @@ export type MonitorResponse = {
|
|
|
616
659
|
name: string;
|
|
617
660
|
slug: string;
|
|
618
661
|
};
|
|
662
|
+
export type MonitorStatsBucket = {
|
|
663
|
+
avg_duration_ms: number | null;
|
|
664
|
+
bucket: string;
|
|
665
|
+
duration_count: number;
|
|
666
|
+
error: number;
|
|
667
|
+
in_progress: number;
|
|
668
|
+
missed: number;
|
|
669
|
+
ok: number;
|
|
670
|
+
timeout: number;
|
|
671
|
+
};
|
|
619
672
|
export type OAuthGrant = {
|
|
620
673
|
client_id: string;
|
|
621
674
|
client_name: string;
|
|
@@ -640,6 +693,7 @@ export type PreviewTemplateResponse = {
|
|
|
640
693
|
ok: boolean;
|
|
641
694
|
rendered?: string | null;
|
|
642
695
|
};
|
|
696
|
+
export type Product = 'issues' | 'feedback' | 'releases' | 'performance' | 'agents' | 'logs' | 'crons';
|
|
643
697
|
export type ProjectAge = {
|
|
644
698
|
events: KindAge;
|
|
645
699
|
logs: KindAge;
|
|
@@ -683,10 +737,12 @@ export type ProjectRepository = {
|
|
|
683
737
|
export type ProjectResponse = {
|
|
684
738
|
created_at: string;
|
|
685
739
|
digested_event_count: number;
|
|
740
|
+
disabled_products: Array<Product>;
|
|
686
741
|
dsn: string;
|
|
687
742
|
id: number;
|
|
688
743
|
name: string;
|
|
689
744
|
platform: string | null;
|
|
745
|
+
product_order: Array<Product>;
|
|
690
746
|
rate_limit_per_hour: number | null;
|
|
691
747
|
rate_limit_per_minute: number | null;
|
|
692
748
|
rate_limited_event_count: number;
|
|
@@ -752,6 +808,23 @@ export type ReleaseResponse = {
|
|
|
752
808
|
url: string | null;
|
|
753
809
|
version: string;
|
|
754
810
|
};
|
|
811
|
+
export type ReleaseSummary = {
|
|
812
|
+
adoption: number | null;
|
|
813
|
+
crash_free_sessions: number | null;
|
|
814
|
+
crash_free_users: number | null;
|
|
815
|
+
crashed: number;
|
|
816
|
+
date_created: string;
|
|
817
|
+
date_released: string | null;
|
|
818
|
+
environments: Array<string>;
|
|
819
|
+
event_count: number;
|
|
820
|
+
first_event: string | null;
|
|
821
|
+
last_event: string | null;
|
|
822
|
+
new_issues: number;
|
|
823
|
+
ref: string | null;
|
|
824
|
+
sessions: number;
|
|
825
|
+
url: string | null;
|
|
826
|
+
version: string;
|
|
827
|
+
};
|
|
755
828
|
export type RepoCommit = {
|
|
756
829
|
author_login: string | null;
|
|
757
830
|
author_name: string;
|
|
@@ -1065,18 +1138,30 @@ export type TransactionResponse = {
|
|
|
1065
1138
|
platform: string;
|
|
1066
1139
|
release: string;
|
|
1067
1140
|
start_timestamp: string | null;
|
|
1141
|
+
status: string | null;
|
|
1068
1142
|
timestamp: string;
|
|
1069
1143
|
transaction_name: string;
|
|
1070
1144
|
};
|
|
1071
1145
|
export type TransactionStatsResponse = {
|
|
1146
|
+
avg_ms: number;
|
|
1072
1147
|
count: number;
|
|
1073
1148
|
failure_rate: number;
|
|
1149
|
+
last_seen: string;
|
|
1074
1150
|
op: string | null;
|
|
1075
1151
|
p50_ms: number;
|
|
1076
1152
|
p95_ms: number;
|
|
1077
1153
|
p99_ms: number;
|
|
1154
|
+
time_share: number;
|
|
1155
|
+
total_ms: number;
|
|
1078
1156
|
transaction_name: string;
|
|
1079
1157
|
};
|
|
1158
|
+
export type TransactionTimeseriesPoint = {
|
|
1159
|
+
bucket: string;
|
|
1160
|
+
count: number;
|
|
1161
|
+
failures: number;
|
|
1162
|
+
p50_ms: number;
|
|
1163
|
+
p95_ms: number;
|
|
1164
|
+
};
|
|
1080
1165
|
export type UpdateAlertIntegration = {
|
|
1081
1166
|
credentials?: {
|
|
1082
1167
|
[key: string]: unknown;
|
|
@@ -1085,6 +1170,7 @@ export type UpdateAlertIntegration = {
|
|
|
1085
1170
|
name?: string | null;
|
|
1086
1171
|
};
|
|
1087
1172
|
export type UpdateAlertRule = {
|
|
1173
|
+
alert_type?: AlertType | null;
|
|
1088
1174
|
channels?: Array<AlertRuleChannelInput> | null;
|
|
1089
1175
|
conditions?: {
|
|
1090
1176
|
[key: string]: unknown;
|
|
@@ -1112,8 +1198,10 @@ export type UpdatePreferencesRequest = {
|
|
|
1112
1198
|
timezone?: string | null;
|
|
1113
1199
|
};
|
|
1114
1200
|
export type UpdateProject = {
|
|
1201
|
+
disabled_products?: Array<Product> | null;
|
|
1115
1202
|
name?: string | null;
|
|
1116
1203
|
platform?: string | null;
|
|
1204
|
+
product_order?: Array<Product> | null;
|
|
1117
1205
|
rate_limit_per_hour?: number | null;
|
|
1118
1206
|
rate_limit_per_minute?: number | null;
|
|
1119
1207
|
slug?: string | null;
|
|
@@ -1867,10 +1955,12 @@ export type ProjectsListResponses = {
|
|
|
1867
1955
|
items: Array<{
|
|
1868
1956
|
created_at: string;
|
|
1869
1957
|
digested_event_count: number;
|
|
1958
|
+
disabled_products: Array<Product>;
|
|
1870
1959
|
dsn: string;
|
|
1871
1960
|
id: number;
|
|
1872
1961
|
name: string;
|
|
1873
1962
|
platform: string | null;
|
|
1963
|
+
product_order: Array<Product>;
|
|
1874
1964
|
rate_limit_per_hour: number | null;
|
|
1875
1965
|
rate_limit_per_minute: number | null;
|
|
1876
1966
|
rate_limited_event_count: number;
|
|
@@ -1954,6 +2044,62 @@ export type ProjectsUpdateResponses = {
|
|
|
1954
2044
|
200: ProjectResponse;
|
|
1955
2045
|
};
|
|
1956
2046
|
export type ProjectsUpdateResponse = ProjectsUpdateResponses[keyof ProjectsUpdateResponses];
|
|
2047
|
+
export type AgentsConversationsData = {
|
|
2048
|
+
body?: never;
|
|
2049
|
+
path: {
|
|
2050
|
+
project_id: number;
|
|
2051
|
+
};
|
|
2052
|
+
query?: {
|
|
2053
|
+
period_hours?: number | null;
|
|
2054
|
+
environment?: string | null;
|
|
2055
|
+
page?: number;
|
|
2056
|
+
per_page?: number;
|
|
2057
|
+
};
|
|
2058
|
+
url: '/api/projects/{project_id}/agents/conversations';
|
|
2059
|
+
};
|
|
2060
|
+
export type AgentsConversationsErrors = {
|
|
2061
|
+
401: ErrorResponse;
|
|
2062
|
+
404: ErrorResponse;
|
|
2063
|
+
};
|
|
2064
|
+
export type AgentsConversationsError = AgentsConversationsErrors[keyof AgentsConversationsErrors];
|
|
2065
|
+
export type AgentsConversationsResponses = {
|
|
2066
|
+
200: {
|
|
2067
|
+
items: Array<{
|
|
2068
|
+
agent_names: Array<string>;
|
|
2069
|
+
conversation_id: string;
|
|
2070
|
+
error_count: number;
|
|
2071
|
+
first_seen: string | null;
|
|
2072
|
+
last_seen: string | null;
|
|
2073
|
+
llm_call_count: number;
|
|
2074
|
+
tool_call_count: number;
|
|
2075
|
+
total_tokens: number;
|
|
2076
|
+
turn_count: number;
|
|
2077
|
+
}>;
|
|
2078
|
+
page: number;
|
|
2079
|
+
per_page: number;
|
|
2080
|
+
total_count: number;
|
|
2081
|
+
total_pages: number;
|
|
2082
|
+
};
|
|
2083
|
+
};
|
|
2084
|
+
export type AgentsConversationsResponse = AgentsConversationsResponses[keyof AgentsConversationsResponses];
|
|
2085
|
+
export type AgentsConversationData = {
|
|
2086
|
+
body?: never;
|
|
2087
|
+
path: {
|
|
2088
|
+
project_id: number;
|
|
2089
|
+
conversation_id: string;
|
|
2090
|
+
};
|
|
2091
|
+
query?: never;
|
|
2092
|
+
url: '/api/projects/{project_id}/agents/conversations/{conversation_id}';
|
|
2093
|
+
};
|
|
2094
|
+
export type AgentsConversationErrors = {
|
|
2095
|
+
401: ErrorResponse;
|
|
2096
|
+
404: ErrorResponse;
|
|
2097
|
+
};
|
|
2098
|
+
export type AgentsConversationError = AgentsConversationErrors[keyof AgentsConversationErrors];
|
|
2099
|
+
export type AgentsConversationResponses = {
|
|
2100
|
+
200: AgentConversation;
|
|
2101
|
+
};
|
|
2102
|
+
export type AgentsConversationResponse = AgentsConversationResponses[keyof AgentsConversationResponses];
|
|
1957
2103
|
export type AgentsDurationData = {
|
|
1958
2104
|
body?: never;
|
|
1959
2105
|
path: {
|
|
@@ -2146,6 +2292,11 @@ export type AgentsTracesData = {
|
|
|
2146
2292
|
environment?: string | null;
|
|
2147
2293
|
page?: number;
|
|
2148
2294
|
per_page?: number;
|
|
2295
|
+
agent?: string | null;
|
|
2296
|
+
model?: string | null;
|
|
2297
|
+
tool?: string | null;
|
|
2298
|
+
errors?: boolean;
|
|
2299
|
+
sort?: 'newest' | 'duration' | 'tokens' | 'llm_calls' | 'tool_calls' | 'errors';
|
|
2149
2300
|
};
|
|
2150
2301
|
url: '/api/projects/{project_id}/agents/traces';
|
|
2151
2302
|
};
|
|
@@ -2180,10 +2331,12 @@ export type AlertRulesListHistoryData = {
|
|
|
2180
2331
|
};
|
|
2181
2332
|
query?: {
|
|
2182
2333
|
limit?: number;
|
|
2334
|
+
rule_id?: number;
|
|
2183
2335
|
};
|
|
2184
2336
|
url: '/api/projects/{project_id}/alert-history';
|
|
2185
2337
|
};
|
|
2186
2338
|
export type AlertRulesListHistoryErrors = {
|
|
2339
|
+
400: string;
|
|
2187
2340
|
401: ErrorResponse;
|
|
2188
2341
|
404: ErrorResponse;
|
|
2189
2342
|
};
|
|
@@ -2192,6 +2345,27 @@ export type AlertRulesListHistoryResponses = {
|
|
|
2192
2345
|
200: Array<AlertHistory>;
|
|
2193
2346
|
};
|
|
2194
2347
|
export type AlertRulesListHistoryResponse = AlertRulesListHistoryResponses[keyof AlertRulesListHistoryResponses];
|
|
2348
|
+
export type AlertRulesHistoryByDayData = {
|
|
2349
|
+
body?: never;
|
|
2350
|
+
path: {
|
|
2351
|
+
project_id: number;
|
|
2352
|
+
};
|
|
2353
|
+
query?: {
|
|
2354
|
+
days?: number;
|
|
2355
|
+
rule_id?: number;
|
|
2356
|
+
};
|
|
2357
|
+
url: '/api/projects/{project_id}/alert-history/daily';
|
|
2358
|
+
};
|
|
2359
|
+
export type AlertRulesHistoryByDayErrors = {
|
|
2360
|
+
400: string;
|
|
2361
|
+
401: ErrorResponse;
|
|
2362
|
+
404: ErrorResponse;
|
|
2363
|
+
};
|
|
2364
|
+
export type AlertRulesHistoryByDayError = AlertRulesHistoryByDayErrors[keyof AlertRulesHistoryByDayErrors];
|
|
2365
|
+
export type AlertRulesHistoryByDayResponses = {
|
|
2366
|
+
200: Array<AlertHistoryDay>;
|
|
2367
|
+
};
|
|
2368
|
+
export type AlertRulesHistoryByDayResponse = AlertRulesHistoryByDayResponses[keyof AlertRulesHistoryByDayResponses];
|
|
2195
2369
|
export type AlertRulesListData = {
|
|
2196
2370
|
body?: never;
|
|
2197
2371
|
path: {
|
|
@@ -2341,6 +2515,8 @@ export type StatsGetEventTimeseriesData = {
|
|
|
2341
2515
|
query?: {
|
|
2342
2516
|
period?: string;
|
|
2343
2517
|
interval?: number;
|
|
2518
|
+
environment?: string;
|
|
2519
|
+
release?: string;
|
|
2344
2520
|
};
|
|
2345
2521
|
url: '/api/projects/{project_id}/events/stats';
|
|
2346
2522
|
};
|
|
@@ -2493,6 +2669,14 @@ export type IssuesListData = {
|
|
|
2493
2669
|
category?: IssueCategory;
|
|
2494
2670
|
q?: string | null;
|
|
2495
2671
|
environment?: string | null;
|
|
2672
|
+
release?: string | null;
|
|
2673
|
+
level?: string | null;
|
|
2674
|
+
priority?: string | null;
|
|
2675
|
+
assigned?: string | null;
|
|
2676
|
+
first_seen?: string | null;
|
|
2677
|
+
last_seen?: string | null;
|
|
2678
|
+
events_min?: number | null;
|
|
2679
|
+
events_max?: number | null;
|
|
2496
2680
|
};
|
|
2497
2681
|
url: '/api/projects/{project_id}/issues';
|
|
2498
2682
|
};
|
|
@@ -2986,6 +3170,8 @@ export type LogsListData = {
|
|
|
2986
3170
|
per_page?: number;
|
|
2987
3171
|
level?: string | null;
|
|
2988
3172
|
trace_id?: string | null;
|
|
3173
|
+
query?: string | null;
|
|
3174
|
+
period?: string | null;
|
|
2989
3175
|
};
|
|
2990
3176
|
url: '/api/projects/{project_id}/logs';
|
|
2991
3177
|
};
|
|
@@ -3016,6 +3202,46 @@ export type LogsListResponses = {
|
|
|
3016
3202
|
};
|
|
3017
3203
|
};
|
|
3018
3204
|
export type LogsListResponse = LogsListResponses[keyof LogsListResponses];
|
|
3205
|
+
export type LogsVolumeData = {
|
|
3206
|
+
body?: never;
|
|
3207
|
+
path: {
|
|
3208
|
+
project_id: number;
|
|
3209
|
+
};
|
|
3210
|
+
query?: {
|
|
3211
|
+
level?: string | null;
|
|
3212
|
+
trace_id?: string | null;
|
|
3213
|
+
query?: string | null;
|
|
3214
|
+
period?: string | null;
|
|
3215
|
+
};
|
|
3216
|
+
url: '/api/projects/{project_id}/logs/volume';
|
|
3217
|
+
};
|
|
3218
|
+
export type LogsVolumeErrors = {
|
|
3219
|
+
401: ErrorResponse;
|
|
3220
|
+
404: ErrorResponse;
|
|
3221
|
+
};
|
|
3222
|
+
export type LogsVolumeError = LogsVolumeErrors[keyof LogsVolumeErrors];
|
|
3223
|
+
export type LogsVolumeResponses = {
|
|
3224
|
+
200: Array<LogVolumePoint>;
|
|
3225
|
+
};
|
|
3226
|
+
export type LogsVolumeResponse = LogsVolumeResponses[keyof LogsVolumeResponses];
|
|
3227
|
+
export type LogsGetData = {
|
|
3228
|
+
body?: never;
|
|
3229
|
+
path: {
|
|
3230
|
+
project_id: number;
|
|
3231
|
+
log_id: string;
|
|
3232
|
+
};
|
|
3233
|
+
query?: never;
|
|
3234
|
+
url: '/api/projects/{project_id}/logs/{log_id}';
|
|
3235
|
+
};
|
|
3236
|
+
export type LogsGetErrors = {
|
|
3237
|
+
401: ErrorResponse;
|
|
3238
|
+
404: ErrorResponse;
|
|
3239
|
+
};
|
|
3240
|
+
export type LogsGetError = LogsGetErrors[keyof LogsGetErrors];
|
|
3241
|
+
export type LogsGetResponses = {
|
|
3242
|
+
200: LogResponse;
|
|
3243
|
+
};
|
|
3244
|
+
export type LogsGetResponse = LogsGetResponses[keyof LogsGetResponses];
|
|
3019
3245
|
export type MembersListData = {
|
|
3020
3246
|
body?: never;
|
|
3021
3247
|
path: {
|
|
@@ -3074,6 +3300,26 @@ export type MembersRemoveResponses = {
|
|
|
3074
3300
|
204: void;
|
|
3075
3301
|
};
|
|
3076
3302
|
export type MembersRemoveResponse = MembersRemoveResponses[keyof MembersRemoveResponses];
|
|
3303
|
+
export type MonitorsStatsData = {
|
|
3304
|
+
body?: never;
|
|
3305
|
+
path: {
|
|
3306
|
+
project_id: number;
|
|
3307
|
+
};
|
|
3308
|
+
query?: {
|
|
3309
|
+
period?: string | null;
|
|
3310
|
+
slug?: string | null;
|
|
3311
|
+
};
|
|
3312
|
+
url: '/api/projects/{project_id}/monitor-stats';
|
|
3313
|
+
};
|
|
3314
|
+
export type MonitorsStatsErrors = {
|
|
3315
|
+
401: ErrorResponse;
|
|
3316
|
+
404: ErrorResponse;
|
|
3317
|
+
};
|
|
3318
|
+
export type MonitorsStatsError = MonitorsStatsErrors[keyof MonitorsStatsErrors];
|
|
3319
|
+
export type MonitorsStatsResponses = {
|
|
3320
|
+
200: Array<MonitorEnvironmentStats>;
|
|
3321
|
+
};
|
|
3322
|
+
export type MonitorsStatsResponse = MonitorsStatsResponses[keyof MonitorsStatsResponses];
|
|
3077
3323
|
export type MonitorsListData = {
|
|
3078
3324
|
body?: never;
|
|
3079
3325
|
path: {
|
|
@@ -3200,6 +3446,72 @@ export type MonitorsListCheckinsResponses = {
|
|
|
3200
3446
|
};
|
|
3201
3447
|
};
|
|
3202
3448
|
export type MonitorsListCheckinsResponse = MonitorsListCheckinsResponses[keyof MonitorsListCheckinsResponses];
|
|
3449
|
+
export type ReleasesListData = {
|
|
3450
|
+
body?: never;
|
|
3451
|
+
path: {
|
|
3452
|
+
project_id: number;
|
|
3453
|
+
};
|
|
3454
|
+
query?: {
|
|
3455
|
+
environment?: string;
|
|
3456
|
+
period?: string;
|
|
3457
|
+
query?: string;
|
|
3458
|
+
page?: number;
|
|
3459
|
+
per_page?: number;
|
|
3460
|
+
};
|
|
3461
|
+
url: '/api/projects/{project_id}/releases';
|
|
3462
|
+
};
|
|
3463
|
+
export type ReleasesListErrors = {
|
|
3464
|
+
401: unknown;
|
|
3465
|
+
403: unknown;
|
|
3466
|
+
404: unknown;
|
|
3467
|
+
};
|
|
3468
|
+
export type ReleasesListResponses = {
|
|
3469
|
+
200: {
|
|
3470
|
+
items: Array<{
|
|
3471
|
+
adoption: number | null;
|
|
3472
|
+
crash_free_sessions: number | null;
|
|
3473
|
+
crash_free_users: number | null;
|
|
3474
|
+
crashed: number;
|
|
3475
|
+
date_created: string;
|
|
3476
|
+
date_released: string | null;
|
|
3477
|
+
environments: Array<string>;
|
|
3478
|
+
event_count: number;
|
|
3479
|
+
first_event: string | null;
|
|
3480
|
+
last_event: string | null;
|
|
3481
|
+
new_issues: number;
|
|
3482
|
+
ref: string | null;
|
|
3483
|
+
sessions: number;
|
|
3484
|
+
url: string | null;
|
|
3485
|
+
version: string;
|
|
3486
|
+
}>;
|
|
3487
|
+
page: number;
|
|
3488
|
+
per_page: number;
|
|
3489
|
+
total_count: number;
|
|
3490
|
+
total_pages: number;
|
|
3491
|
+
};
|
|
3492
|
+
};
|
|
3493
|
+
export type ReleasesListResponse = ReleasesListResponses[keyof ReleasesListResponses];
|
|
3494
|
+
export type ReleasesGetData = {
|
|
3495
|
+
body?: never;
|
|
3496
|
+
path: {
|
|
3497
|
+
project_id: number;
|
|
3498
|
+
release: string;
|
|
3499
|
+
};
|
|
3500
|
+
query?: {
|
|
3501
|
+
environment?: string;
|
|
3502
|
+
period?: string;
|
|
3503
|
+
};
|
|
3504
|
+
url: '/api/projects/{project_id}/releases/{release}';
|
|
3505
|
+
};
|
|
3506
|
+
export type ReleasesGetErrors = {
|
|
3507
|
+
401: unknown;
|
|
3508
|
+
403: unknown;
|
|
3509
|
+
404: unknown;
|
|
3510
|
+
};
|
|
3511
|
+
export type ReleasesGetResponses = {
|
|
3512
|
+
200: ReleaseSummary;
|
|
3513
|
+
};
|
|
3514
|
+
export type ReleasesGetResponse = ReleasesGetResponses[keyof ReleasesGetResponses];
|
|
3203
3515
|
export type ReleasesNewIssuesData = {
|
|
3204
3516
|
body?: never;
|
|
3205
3517
|
path: {
|
|
@@ -3263,6 +3575,8 @@ export type SessionsGetSummaryData = {
|
|
|
3263
3575
|
};
|
|
3264
3576
|
query?: {
|
|
3265
3577
|
period?: string;
|
|
3578
|
+
environment?: string;
|
|
3579
|
+
release?: string;
|
|
3266
3580
|
};
|
|
3267
3581
|
url: '/api/projects/{project_id}/sessions/summary';
|
|
3268
3582
|
};
|
|
@@ -3282,6 +3596,8 @@ export type SessionsGetTimeseriesData = {
|
|
|
3282
3596
|
query?: {
|
|
3283
3597
|
period?: string;
|
|
3284
3598
|
interval?: number;
|
|
3599
|
+
environment?: string;
|
|
3600
|
+
release?: string;
|
|
3285
3601
|
};
|
|
3286
3602
|
url: '/api/projects/{project_id}/sessions/timeseries';
|
|
3287
3603
|
};
|
|
@@ -3375,6 +3691,8 @@ export type StatsGetSummaryData = {
|
|
|
3375
3691
|
};
|
|
3376
3692
|
query?: {
|
|
3377
3693
|
period?: string;
|
|
3694
|
+
environment?: string;
|
|
3695
|
+
release?: string;
|
|
3378
3696
|
};
|
|
3379
3697
|
url: '/api/projects/{project_id}/stats/summary';
|
|
3380
3698
|
};
|
|
@@ -3399,6 +3717,8 @@ export type TransactionsListData = {
|
|
|
3399
3717
|
status?: string | null;
|
|
3400
3718
|
environment?: string | null;
|
|
3401
3719
|
release?: string | null;
|
|
3720
|
+
period?: string | null;
|
|
3721
|
+
sort?: 'recent' | 'slowest' | null;
|
|
3402
3722
|
};
|
|
3403
3723
|
url: '/api/projects/{project_id}/transactions';
|
|
3404
3724
|
};
|
|
@@ -3418,6 +3738,7 @@ export type TransactionsListResponses = {
|
|
|
3418
3738
|
platform: string;
|
|
3419
3739
|
release: string;
|
|
3420
3740
|
start_timestamp: string | null;
|
|
3741
|
+
status: string | null;
|
|
3421
3742
|
timestamp: string;
|
|
3422
3743
|
transaction_name: string;
|
|
3423
3744
|
}>;
|
|
@@ -3436,6 +3757,10 @@ export type TransactionsGetStatsData = {
|
|
|
3436
3757
|
query?: {
|
|
3437
3758
|
page?: number;
|
|
3438
3759
|
per_page?: number;
|
|
3760
|
+
environment?: string | null;
|
|
3761
|
+
period?: string | null;
|
|
3762
|
+
query?: string | null;
|
|
3763
|
+
sort?: 'time_spent' | 'count' | 'avg' | 'failure_rate';
|
|
3439
3764
|
};
|
|
3440
3765
|
url: '/api/projects/{project_id}/transactions/stats';
|
|
3441
3766
|
};
|
|
@@ -3447,12 +3772,16 @@ export type TransactionsGetStatsError = TransactionsGetStatsErrors[keyof Transac
|
|
|
3447
3772
|
export type TransactionsGetStatsResponses = {
|
|
3448
3773
|
200: {
|
|
3449
3774
|
items: Array<{
|
|
3775
|
+
avg_ms: number;
|
|
3450
3776
|
count: number;
|
|
3451
3777
|
failure_rate: number;
|
|
3778
|
+
last_seen: string;
|
|
3452
3779
|
op: string | null;
|
|
3453
3780
|
p50_ms: number;
|
|
3454
3781
|
p95_ms: number;
|
|
3455
3782
|
p99_ms: number;
|
|
3783
|
+
time_share: number;
|
|
3784
|
+
total_ms: number;
|
|
3456
3785
|
transaction_name: string;
|
|
3457
3786
|
}>;
|
|
3458
3787
|
page: number;
|
|
@@ -3470,6 +3799,8 @@ export type TransactionsGetStatGroupData = {
|
|
|
3470
3799
|
query: {
|
|
3471
3800
|
name: string;
|
|
3472
3801
|
op?: string | null;
|
|
3802
|
+
environment?: string | null;
|
|
3803
|
+
period?: string | null;
|
|
3473
3804
|
};
|
|
3474
3805
|
url: '/api/projects/{project_id}/transactions/stats/group';
|
|
3475
3806
|
};
|
|
@@ -3482,6 +3813,28 @@ export type TransactionsGetStatGroupResponses = {
|
|
|
3482
3813
|
200: TransactionStatsResponse;
|
|
3483
3814
|
};
|
|
3484
3815
|
export type TransactionsGetStatGroupResponse = TransactionsGetStatGroupResponses[keyof TransactionsGetStatGroupResponses];
|
|
3816
|
+
export type TransactionsGetStatGroupTimeseriesData = {
|
|
3817
|
+
body?: never;
|
|
3818
|
+
path: {
|
|
3819
|
+
project_id: number;
|
|
3820
|
+
};
|
|
3821
|
+
query: {
|
|
3822
|
+
name: string;
|
|
3823
|
+
op?: string | null;
|
|
3824
|
+
environment?: string | null;
|
|
3825
|
+
period?: string | null;
|
|
3826
|
+
};
|
|
3827
|
+
url: '/api/projects/{project_id}/transactions/stats/group/timeseries';
|
|
3828
|
+
};
|
|
3829
|
+
export type TransactionsGetStatGroupTimeseriesErrors = {
|
|
3830
|
+
401: ErrorResponse;
|
|
3831
|
+
404: ErrorResponse;
|
|
3832
|
+
};
|
|
3833
|
+
export type TransactionsGetStatGroupTimeseriesError = TransactionsGetStatGroupTimeseriesErrors[keyof TransactionsGetStatGroupTimeseriesErrors];
|
|
3834
|
+
export type TransactionsGetStatGroupTimeseriesResponses = {
|
|
3835
|
+
200: Array<TransactionTimeseriesPoint>;
|
|
3836
|
+
};
|
|
3837
|
+
export type TransactionsGetStatGroupTimeseriesResponse = TransactionsGetStatGroupTimeseriesResponses[keyof TransactionsGetStatGroupTimeseriesResponses];
|
|
3485
3838
|
export type TransactionsGetData = {
|
|
3486
3839
|
body?: never;
|
|
3487
3840
|
path: {
|