@rustrak/client 0.18.0 → 0.19.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/README.md +312 -123
- package/dist/_virtual/_rolldown/runtime.cjs +23 -0
- package/dist/client.cjs +86 -0
- package/dist/client.cjs.map +1 -0
- package/dist/client.d.cts +18 -0
- package/dist/client.d.cts.map +1 -0
- package/dist/client.d.mts +18 -0
- package/dist/client.d.mts.map +1 -0
- package/dist/client.mjs +86 -0
- package/dist/client.mjs.map +1 -0
- package/dist/config.d.cts +10 -0
- package/dist/config.d.cts.map +1 -0
- package/dist/config.d.mts +10 -0
- package/dist/config.d.mts.map +1 -0
- package/dist/errors.cjs +52 -0
- package/dist/errors.cjs.map +1 -0
- package/dist/errors.d.cts +77 -0
- package/dist/errors.d.cts.map +1 -0
- package/dist/errors.d.mts +77 -0
- package/dist/errors.d.mts.map +1 -0
- package/dist/errors.mjs +48 -0
- package/dist/errors.mjs.map +1 -0
- package/dist/generated/client/client.gen.cjs +174 -0
- package/dist/generated/client/client.gen.cjs.map +1 -0
- package/dist/generated/client/client.gen.mjs +174 -0
- package/dist/generated/client/client.gen.mjs.map +1 -0
- package/dist/generated/client/types.gen.d.cts +71 -0
- package/dist/generated/client/types.gen.d.cts.map +1 -0
- package/dist/generated/client/types.gen.d.mts +71 -0
- package/dist/generated/client/types.gen.d.mts.map +1 -0
- package/dist/generated/client/utils.gen.cjs +184 -0
- package/dist/generated/client/utils.gen.cjs.map +1 -0
- package/dist/generated/client/utils.gen.d.cts +21 -0
- package/dist/generated/client/utils.gen.d.cts.map +1 -0
- package/dist/generated/client/utils.gen.d.mts +21 -0
- package/dist/generated/client/utils.gen.d.mts.map +1 -0
- package/dist/generated/client/utils.gen.mjs +177 -0
- package/dist/generated/client/utils.gen.mjs.map +1 -0
- package/dist/generated/client.gen.cjs +7 -0
- package/dist/generated/client.gen.cjs.map +1 -0
- package/dist/generated/client.gen.mjs +8 -0
- package/dist/generated/client.gen.mjs.map +1 -0
- package/dist/generated/core/auth.gen.cjs +12 -0
- package/dist/generated/core/auth.gen.cjs.map +1 -0
- package/dist/generated/core/auth.gen.d.cts +11 -0
- package/dist/generated/core/auth.gen.d.cts.map +1 -0
- package/dist/generated/core/auth.gen.d.mts +11 -0
- package/dist/generated/core/auth.gen.d.mts.map +1 -0
- package/dist/generated/core/auth.gen.mjs +12 -0
- package/dist/generated/core/auth.gen.mjs.map +1 -0
- package/dist/generated/core/bodySerializer.gen.cjs +21 -0
- package/dist/generated/core/bodySerializer.gen.cjs.map +1 -0
- package/dist/generated/core/bodySerializer.gen.d.cts +15 -0
- package/dist/generated/core/bodySerializer.gen.d.cts.map +1 -0
- package/dist/generated/core/bodySerializer.gen.d.mts +15 -0
- package/dist/generated/core/bodySerializer.gen.d.mts.map +1 -0
- package/dist/generated/core/bodySerializer.gen.mjs +20 -0
- package/dist/generated/core/bodySerializer.gen.mjs.map +1 -0
- package/dist/generated/core/pathSerializer.gen.cjs +87 -0
- package/dist/generated/core/pathSerializer.gen.cjs.map +1 -0
- package/dist/generated/core/pathSerializer.gen.d.cts +9 -0
- package/dist/generated/core/pathSerializer.gen.d.cts.map +1 -0
- package/dist/generated/core/pathSerializer.gen.d.mts +9 -0
- package/dist/generated/core/pathSerializer.gen.d.mts.map +1 -0
- package/dist/generated/core/pathSerializer.gen.mjs +82 -0
- package/dist/generated/core/pathSerializer.gen.mjs.map +1 -0
- package/dist/generated/core/serverSentEvents.gen.cjs +96 -0
- package/dist/generated/core/serverSentEvents.gen.cjs.map +1 -0
- package/dist/generated/core/serverSentEvents.gen.d.cts +25 -0
- package/dist/generated/core/serverSentEvents.gen.d.cts.map +1 -0
- package/dist/generated/core/serverSentEvents.gen.d.mts +25 -0
- package/dist/generated/core/serverSentEvents.gen.d.mts.map +1 -0
- package/dist/generated/core/serverSentEvents.gen.mjs +96 -0
- package/dist/generated/core/serverSentEvents.gen.mjs.map +1 -0
- package/dist/generated/core/types.gen.d.cts +27 -0
- package/dist/generated/core/types.gen.d.cts.map +1 -0
- package/dist/generated/core/types.gen.d.mts +27 -0
- package/dist/generated/core/types.gen.d.mts.map +1 -0
- package/dist/generated/core/utils.gen.cjs +81 -0
- package/dist/generated/core/utils.gen.cjs.map +1 -0
- package/dist/generated/core/utils.gen.mjs +78 -0
- package/dist/generated/core/utils.gen.mjs.map +1 -0
- package/dist/generated/sdk.gen.cjs +3138 -0
- package/dist/generated/sdk.gen.cjs.map +1 -0
- package/dist/generated/sdk.gen.d.cts +276 -0
- package/dist/generated/sdk.gen.d.cts.map +1 -0
- package/dist/generated/sdk.gen.d.mts +276 -0
- package/dist/generated/sdk.gen.d.mts.map +1 -0
- package/dist/generated/sdk.gen.mjs +3110 -0
- package/dist/generated/sdk.gen.mjs.map +1 -0
- package/dist/generated/types.gen.d.cts +3679 -0
- package/dist/generated/types.gen.d.cts.map +1 -0
- package/dist/generated/types.gen.d.mts +3679 -0
- package/dist/generated/types.gen.d.mts.map +1 -0
- package/dist/generated/zod.gen.cjs +3076 -0
- package/dist/generated/zod.gen.cjs.map +1 -0
- package/dist/generated/zod.gen.mjs +2618 -0
- package/dist/generated/zod.gen.mjs.map +1 -0
- package/dist/index.cjs +15 -3248
- package/dist/index.d.cts +6 -2037
- package/dist/index.d.mts +6 -0
- package/dist/index.mjs +4 -0
- package/dist/result.cjs +59 -0
- package/dist/result.cjs.map +1 -0
- package/dist/result.d.cts +15 -0
- package/dist/result.d.cts.map +1 -0
- package/dist/result.d.mts +15 -0
- package/dist/result.d.mts.map +1 -0
- package/dist/result.mjs +55 -0
- package/dist/result.mjs.map +1 -0
- package/dist/utils/http.cjs +339 -0
- package/dist/utils/http.cjs.map +1 -0
- package/dist/utils/http.mjs +336 -0
- package/dist/utils/http.mjs.map +1 -0
- package/package.json +17 -12
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts +0 -2037
- package/dist/index.js +0 -3232
- package/dist/index.js.map +0 -1
package/dist/index.d.ts
DELETED
|
@@ -1,2037 +0,0 @@
|
|
|
1
|
-
import { z, ZodSchema } from 'zod';
|
|
2
|
-
import { KyInstance, ResponsePromise } from 'ky';
|
|
3
|
-
|
|
4
|
-
interface ClientConfig {
|
|
5
|
-
baseUrl: string;
|
|
6
|
-
token?: string;
|
|
7
|
-
timeout?: number;
|
|
8
|
-
maxRetries?: number;
|
|
9
|
-
headers?: Record<string, string>;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
type RustrakError = {
|
|
13
|
-
readonly kind: 'validation';
|
|
14
|
-
readonly status: number;
|
|
15
|
-
readonly message: string;
|
|
16
|
-
readonly fields?: readonly FieldError[];
|
|
17
|
-
} | {
|
|
18
|
-
readonly kind: 'unauthenticated';
|
|
19
|
-
readonly status: number;
|
|
20
|
-
readonly message: string;
|
|
21
|
-
readonly fields?: readonly FieldError[];
|
|
22
|
-
} | {
|
|
23
|
-
readonly kind: 'forbidden';
|
|
24
|
-
readonly status: number;
|
|
25
|
-
readonly message: string;
|
|
26
|
-
readonly fields?: readonly FieldError[];
|
|
27
|
-
} | {
|
|
28
|
-
readonly kind: 'not_found';
|
|
29
|
-
readonly status: number;
|
|
30
|
-
readonly message: string;
|
|
31
|
-
readonly fields?: readonly FieldError[];
|
|
32
|
-
} | {
|
|
33
|
-
readonly kind: 'conflict';
|
|
34
|
-
readonly status: number;
|
|
35
|
-
readonly message: string;
|
|
36
|
-
readonly fields?: readonly FieldError[];
|
|
37
|
-
} | {
|
|
38
|
-
readonly kind: 'gone';
|
|
39
|
-
readonly status: number;
|
|
40
|
-
readonly message: string;
|
|
41
|
-
readonly fields?: readonly FieldError[];
|
|
42
|
-
} | {
|
|
43
|
-
readonly kind: 'payload_too_large';
|
|
44
|
-
readonly status: number;
|
|
45
|
-
readonly message: string;
|
|
46
|
-
readonly fields?: readonly FieldError[];
|
|
47
|
-
} | {
|
|
48
|
-
readonly kind: 'rate_limited';
|
|
49
|
-
readonly status: number;
|
|
50
|
-
readonly message: string;
|
|
51
|
-
readonly retryAfter?: number;
|
|
52
|
-
readonly fields?: readonly FieldError[];
|
|
53
|
-
} | {
|
|
54
|
-
readonly kind: 'client_error';
|
|
55
|
-
readonly status: number;
|
|
56
|
-
readonly message: string;
|
|
57
|
-
readonly fields?: readonly FieldError[];
|
|
58
|
-
} | {
|
|
59
|
-
readonly kind: 'invalid_request';
|
|
60
|
-
readonly message: string;
|
|
61
|
-
} | {
|
|
62
|
-
readonly kind: 'server_error';
|
|
63
|
-
readonly status: number;
|
|
64
|
-
readonly message: string;
|
|
65
|
-
readonly incidentId?: string;
|
|
66
|
-
} | {
|
|
67
|
-
readonly kind: 'network';
|
|
68
|
-
readonly message: string;
|
|
69
|
-
readonly reason: 'timeout' | 'unreachable';
|
|
70
|
-
} | {
|
|
71
|
-
readonly kind: 'invalid_response';
|
|
72
|
-
readonly message: string;
|
|
73
|
-
};
|
|
74
|
-
type RustrakErrorKind = RustrakError['kind'];
|
|
75
|
-
declare const FIELD_ERROR_CODES: readonly ["required", "invalid", "already_exists", "too_short", "too_long", "custom"];
|
|
76
|
-
type FieldErrorCode = (typeof FIELD_ERROR_CODES)[number];
|
|
77
|
-
type FieldError = {
|
|
78
|
-
readonly field: string;
|
|
79
|
-
readonly code: FieldErrorCode;
|
|
80
|
-
readonly message?: string;
|
|
81
|
-
};
|
|
82
|
-
declare const SERVER_ERROR_MESSAGE = "The server failed to handle the request.";
|
|
83
|
-
declare const NETWORK_ERROR_MESSAGE = "The request could not reach the server.";
|
|
84
|
-
declare const TIMEOUT_ERROR_MESSAGE = "The request timed out.";
|
|
85
|
-
declare function isRetryable(error: RustrakError): boolean;
|
|
86
|
-
|
|
87
|
-
type Result<T, E> = {
|
|
88
|
-
readonly success: true;
|
|
89
|
-
readonly data: T;
|
|
90
|
-
} | {
|
|
91
|
-
readonly success: false;
|
|
92
|
-
readonly error: E;
|
|
93
|
-
};
|
|
94
|
-
declare function Ok<T>(data: T): Result<T, never>;
|
|
95
|
-
declare function Err<E>(error: E): Result<never, E>;
|
|
96
|
-
declare function unwrap<T, E>(result: Result<T, E>): T;
|
|
97
|
-
declare function unwrapOr<T, E>(result: Result<T, E>, fallback: T): T;
|
|
98
|
-
declare function mapResult<T, U, E>(result: Result<T, E>, fn: (value: T) => U): Result<U, E>;
|
|
99
|
-
|
|
100
|
-
declare const serverVersionSchema: z.ZodObject<{
|
|
101
|
-
version: z.ZodString;
|
|
102
|
-
}, z.core.$strip>;
|
|
103
|
-
type ServerVersion = z.infer<typeof serverVersionSchema>;
|
|
104
|
-
|
|
105
|
-
declare const agentTimeseriesPointSchema: z.ZodObject<{
|
|
106
|
-
bucket: z.ZodString;
|
|
107
|
-
value: z.ZodNumber;
|
|
108
|
-
}, z.core.$strip>;
|
|
109
|
-
declare const agentDurationPointSchema: z.ZodObject<{
|
|
110
|
-
bucket: z.ZodString;
|
|
111
|
-
avg_ms: z.ZodNumber;
|
|
112
|
-
p95_ms: z.ZodNumber;
|
|
113
|
-
}, z.core.$strip>;
|
|
114
|
-
declare const genAiBreakdownRowSchema: z.ZodObject<{
|
|
115
|
-
label: z.ZodString;
|
|
116
|
-
value: z.ZodNumber;
|
|
117
|
-
}, z.core.$strip>;
|
|
118
|
-
declare const agentTraceSummarySchema: z.ZodObject<{
|
|
119
|
-
trace_id: z.ZodString;
|
|
120
|
-
agent_names: z.ZodArray<z.ZodString>;
|
|
121
|
-
duration_ms: z.ZodNullable<z.ZodNumber>;
|
|
122
|
-
total_tokens: z.ZodNumber;
|
|
123
|
-
tool_call_count: z.ZodNumber;
|
|
124
|
-
llm_call_count: z.ZodNumber;
|
|
125
|
-
error_count: z.ZodNumber;
|
|
126
|
-
started_at: z.ZodString;
|
|
127
|
-
}, z.core.$strip>;
|
|
128
|
-
declare const agentSummarySchema: z.ZodObject<{
|
|
129
|
-
agent_runs: z.ZodNumber;
|
|
130
|
-
llm_calls: z.ZodNumber;
|
|
131
|
-
tool_calls: z.ZodNumber;
|
|
132
|
-
error_count: z.ZodNumber;
|
|
133
|
-
total_tokens: z.ZodNumber;
|
|
134
|
-
avg_duration_ms: z.ZodNumber;
|
|
135
|
-
p95_duration_ms: z.ZodNumber;
|
|
136
|
-
}, z.core.$strip>;
|
|
137
|
-
declare const agentModelRowSchema: z.ZodObject<{
|
|
138
|
-
model: z.ZodString;
|
|
139
|
-
requests: z.ZodNumber;
|
|
140
|
-
errors: z.ZodNumber;
|
|
141
|
-
avg_ms: z.ZodNumber;
|
|
142
|
-
p95_ms: z.ZodNumber;
|
|
143
|
-
input_tokens: z.ZodNumber;
|
|
144
|
-
cached_input_tokens: z.ZodNumber;
|
|
145
|
-
output_tokens: z.ZodNumber;
|
|
146
|
-
reasoning_output_tokens: z.ZodNumber;
|
|
147
|
-
total_tokens: z.ZodNumber;
|
|
148
|
-
}, z.core.$strip>;
|
|
149
|
-
declare const agentToolRowSchema: z.ZodObject<{
|
|
150
|
-
tool: z.ZodString;
|
|
151
|
-
calls: z.ZodNumber;
|
|
152
|
-
errors: z.ZodNumber;
|
|
153
|
-
avg_ms: z.ZodNumber;
|
|
154
|
-
p95_ms: z.ZodNumber;
|
|
155
|
-
}, z.core.$strip>;
|
|
156
|
-
|
|
157
|
-
type AgentTimeseriesPoint = z.infer<typeof agentTimeseriesPointSchema>;
|
|
158
|
-
type AgentDurationPoint = z.infer<typeof agentDurationPointSchema>;
|
|
159
|
-
type GenAiBreakdownRow = z.infer<typeof genAiBreakdownRowSchema>;
|
|
160
|
-
type AgentTraceSummary = z.infer<typeof agentTraceSummarySchema>;
|
|
161
|
-
type AgentSummary = z.infer<typeof agentSummarySchema>;
|
|
162
|
-
type AgentModelRow = z.infer<typeof agentModelRowSchema>;
|
|
163
|
-
type AgentToolRow = z.infer<typeof agentToolRowSchema>;
|
|
164
|
-
interface AgentTimeseriesOptions {
|
|
165
|
-
period_hours?: number;
|
|
166
|
-
interval_hours?: number;
|
|
167
|
-
environment?: string;
|
|
168
|
-
}
|
|
169
|
-
interface AgentBreakdownOptions {
|
|
170
|
-
period_hours?: number;
|
|
171
|
-
limit?: number;
|
|
172
|
-
environment?: string;
|
|
173
|
-
}
|
|
174
|
-
interface AgentTracesOptions {
|
|
175
|
-
page?: number;
|
|
176
|
-
per_page?: number;
|
|
177
|
-
period_hours?: number;
|
|
178
|
-
environment?: string;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
declare const providerTypeSchema: z.ZodEnum<{
|
|
182
|
-
webhook: "webhook";
|
|
183
|
-
email: "email";
|
|
184
|
-
slack: "slack";
|
|
185
|
-
custom_webhook: "custom_webhook";
|
|
186
|
-
}>;
|
|
187
|
-
declare const alertTypeSchema: z.ZodEnum<{
|
|
188
|
-
new_issue: "new_issue";
|
|
189
|
-
regression: "regression";
|
|
190
|
-
unmute: "unmute";
|
|
191
|
-
}>;
|
|
192
|
-
declare const alertStatusSchema: z.ZodEnum<{
|
|
193
|
-
pending: "pending";
|
|
194
|
-
sent: "sent";
|
|
195
|
-
failed: "failed";
|
|
196
|
-
skipped: "skipped";
|
|
197
|
-
}>;
|
|
198
|
-
declare const alertIntegrationSchema: z.ZodObject<{
|
|
199
|
-
id: z.ZodNumber;
|
|
200
|
-
name: z.ZodString;
|
|
201
|
-
provider_type: z.ZodEnum<{
|
|
202
|
-
webhook: "webhook";
|
|
203
|
-
email: "email";
|
|
204
|
-
slack: "slack";
|
|
205
|
-
custom_webhook: "custom_webhook";
|
|
206
|
-
}>;
|
|
207
|
-
credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
208
|
-
is_enabled: z.ZodBoolean;
|
|
209
|
-
failure_count: z.ZodNumber;
|
|
210
|
-
last_failure_at: z.ZodNullable<z.ZodString>;
|
|
211
|
-
last_failure_message: z.ZodNullable<z.ZodString>;
|
|
212
|
-
last_success_at: z.ZodNullable<z.ZodString>;
|
|
213
|
-
created_at: z.ZodString;
|
|
214
|
-
updated_at: z.ZodString;
|
|
215
|
-
}, z.core.$strip>;
|
|
216
|
-
declare const createAlertIntegrationSchema: z.ZodObject<{
|
|
217
|
-
name: z.ZodString;
|
|
218
|
-
provider_type: z.ZodEnum<{
|
|
219
|
-
webhook: "webhook";
|
|
220
|
-
email: "email";
|
|
221
|
-
slack: "slack";
|
|
222
|
-
custom_webhook: "custom_webhook";
|
|
223
|
-
}>;
|
|
224
|
-
credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
225
|
-
is_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
226
|
-
}, z.core.$strip>;
|
|
227
|
-
declare const updateAlertIntegrationSchema: z.ZodObject<{
|
|
228
|
-
name: z.ZodOptional<z.ZodString>;
|
|
229
|
-
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
230
|
-
is_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
231
|
-
}, z.core.$strip>;
|
|
232
|
-
declare const alertRuleChannelInputSchema: z.ZodObject<{
|
|
233
|
-
integration_id: z.ZodNumber;
|
|
234
|
-
routing_override: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
235
|
-
}, z.core.$strip>;
|
|
236
|
-
declare const alertRuleConditionsSchema: z.ZodObject<{
|
|
237
|
-
min_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
238
|
-
error: "error";
|
|
239
|
-
debug: "debug";
|
|
240
|
-
info: "info";
|
|
241
|
-
warning: "warning";
|
|
242
|
-
fatal: "fatal";
|
|
243
|
-
}>>>;
|
|
244
|
-
environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
245
|
-
min_events: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
246
|
-
}, z.core.$strip>;
|
|
247
|
-
declare const alertRuleSchema: z.ZodObject<{
|
|
248
|
-
id: z.ZodNumber;
|
|
249
|
-
project_id: z.ZodNumber;
|
|
250
|
-
name: z.ZodString;
|
|
251
|
-
alert_type: z.ZodEnum<{
|
|
252
|
-
new_issue: "new_issue";
|
|
253
|
-
regression: "regression";
|
|
254
|
-
unmute: "unmute";
|
|
255
|
-
}>;
|
|
256
|
-
is_enabled: z.ZodBoolean;
|
|
257
|
-
conditions: z.ZodCatch<z.ZodObject<{
|
|
258
|
-
min_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
259
|
-
error: "error";
|
|
260
|
-
debug: "debug";
|
|
261
|
-
info: "info";
|
|
262
|
-
warning: "warning";
|
|
263
|
-
fatal: "fatal";
|
|
264
|
-
}>>>;
|
|
265
|
-
environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
266
|
-
min_events: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
267
|
-
}, z.core.$strip>>;
|
|
268
|
-
cooldown_minutes: z.ZodNumber;
|
|
269
|
-
last_triggered_at: z.ZodNullable<z.ZodString>;
|
|
270
|
-
created_at: z.ZodString;
|
|
271
|
-
updated_at: z.ZodString;
|
|
272
|
-
channels: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
273
|
-
integration_id: z.ZodNumber;
|
|
274
|
-
routing_override: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
275
|
-
}, z.core.$strip>>>;
|
|
276
|
-
integration_ids: z.ZodArray<z.ZodNumber>;
|
|
277
|
-
}, z.core.$strip>;
|
|
278
|
-
declare const createAlertRuleSchema: z.ZodObject<{
|
|
279
|
-
name: z.ZodString;
|
|
280
|
-
alert_type: z.ZodEnum<{
|
|
281
|
-
new_issue: "new_issue";
|
|
282
|
-
regression: "regression";
|
|
283
|
-
unmute: "unmute";
|
|
284
|
-
}>;
|
|
285
|
-
channels: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
286
|
-
integration_id: z.ZodNumber;
|
|
287
|
-
routing_override: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
288
|
-
}, z.core.$strip>>>;
|
|
289
|
-
is_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
290
|
-
conditions: z.ZodOptional<z.ZodObject<{
|
|
291
|
-
min_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
292
|
-
error: "error";
|
|
293
|
-
debug: "debug";
|
|
294
|
-
info: "info";
|
|
295
|
-
warning: "warning";
|
|
296
|
-
fatal: "fatal";
|
|
297
|
-
}>>>;
|
|
298
|
-
environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
299
|
-
min_events: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
300
|
-
}, z.core.$strip>>;
|
|
301
|
-
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
302
|
-
}, z.core.$strip>;
|
|
303
|
-
declare const updateAlertRuleSchema: z.ZodObject<{
|
|
304
|
-
name: z.ZodOptional<z.ZodString>;
|
|
305
|
-
is_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
306
|
-
conditions: z.ZodOptional<z.ZodObject<{
|
|
307
|
-
min_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
308
|
-
error: "error";
|
|
309
|
-
debug: "debug";
|
|
310
|
-
info: "info";
|
|
311
|
-
warning: "warning";
|
|
312
|
-
fatal: "fatal";
|
|
313
|
-
}>>>;
|
|
314
|
-
environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
315
|
-
min_events: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
316
|
-
}, z.core.$strip>>;
|
|
317
|
-
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
318
|
-
channels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
319
|
-
integration_id: z.ZodNumber;
|
|
320
|
-
routing_override: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
321
|
-
}, z.core.$strip>>>;
|
|
322
|
-
}, z.core.$strip>;
|
|
323
|
-
declare const alertHistorySchema: z.ZodObject<{
|
|
324
|
-
id: z.ZodNumber;
|
|
325
|
-
alert_rule_id: z.ZodNullable<z.ZodNumber>;
|
|
326
|
-
integration_id: z.ZodNullable<z.ZodNumber>;
|
|
327
|
-
issue_id: z.ZodNullable<z.ZodString>;
|
|
328
|
-
project_id: z.ZodNullable<z.ZodNumber>;
|
|
329
|
-
alert_type: z.ZodString;
|
|
330
|
-
channel_type: z.ZodString;
|
|
331
|
-
channel_name: z.ZodString;
|
|
332
|
-
status: z.ZodEnum<{
|
|
333
|
-
pending: "pending";
|
|
334
|
-
sent: "sent";
|
|
335
|
-
failed: "failed";
|
|
336
|
-
skipped: "skipped";
|
|
337
|
-
}>;
|
|
338
|
-
attempt_count: z.ZodNumber;
|
|
339
|
-
next_retry_at: z.ZodNullable<z.ZodString>;
|
|
340
|
-
error_message: z.ZodNullable<z.ZodString>;
|
|
341
|
-
http_status_code: z.ZodNullable<z.ZodNumber>;
|
|
342
|
-
idempotency_key: z.ZodString;
|
|
343
|
-
created_at: z.ZodString;
|
|
344
|
-
sent_at: z.ZodNullable<z.ZodString>;
|
|
345
|
-
}, z.core.$strip>;
|
|
346
|
-
declare const testChannelResponseSchema: z.ZodObject<{
|
|
347
|
-
success: z.ZodBoolean;
|
|
348
|
-
message: z.ZodString;
|
|
349
|
-
response_body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
350
|
-
}, z.core.$strip>;
|
|
351
|
-
declare const previewTemplateResponseSchema: z.ZodObject<{
|
|
352
|
-
ok: z.ZodBoolean;
|
|
353
|
-
rendered: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
354
|
-
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
355
|
-
}, z.core.$strip>;
|
|
356
|
-
declare const testIntegrationBodySchema: z.ZodObject<{
|
|
357
|
-
routing_override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
358
|
-
}, z.core.$strip>;
|
|
359
|
-
|
|
360
|
-
type ProviderType = z.infer<typeof providerTypeSchema>;
|
|
361
|
-
type AlertType = z.infer<typeof alertTypeSchema>;
|
|
362
|
-
type AlertStatus = z.infer<typeof alertStatusSchema>;
|
|
363
|
-
type AlertIntegration = z.infer<typeof alertIntegrationSchema>;
|
|
364
|
-
type CreateAlertIntegration = z.infer<typeof createAlertIntegrationSchema>;
|
|
365
|
-
type UpdateAlertIntegration = z.infer<typeof updateAlertIntegrationSchema>;
|
|
366
|
-
type AlertRuleChannelInput = z.infer<typeof alertRuleChannelInputSchema>;
|
|
367
|
-
type RoutingOverride = Record<string, unknown>;
|
|
368
|
-
type AlertRuleConditions = z.infer<typeof alertRuleConditionsSchema>;
|
|
369
|
-
type AlertRule = z.infer<typeof alertRuleSchema>;
|
|
370
|
-
type CreateAlertRule = z.infer<typeof createAlertRuleSchema>;
|
|
371
|
-
type UpdateAlertRule = z.infer<typeof updateAlertRuleSchema>;
|
|
372
|
-
type AlertHistory = z.infer<typeof alertHistorySchema>;
|
|
373
|
-
type TestChannelResponse = z.infer<typeof testChannelResponseSchema>;
|
|
374
|
-
type PreviewTemplateResponse = z.infer<typeof previewTemplateResponseSchema>;
|
|
375
|
-
type TestIntegrationBody = z.infer<typeof testIntegrationBodySchema>;
|
|
376
|
-
interface ListAlertHistoryOptions {
|
|
377
|
-
limit?: number;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
declare const sortOrderSchema: z.ZodEnum<{
|
|
381
|
-
asc: "asc";
|
|
382
|
-
desc: "desc";
|
|
383
|
-
}>;
|
|
384
|
-
declare const issueSortSchema: z.ZodEnum<{
|
|
385
|
-
digest_order: "digest_order";
|
|
386
|
-
last_seen: "last_seen";
|
|
387
|
-
event_count: "event_count";
|
|
388
|
-
}>;
|
|
389
|
-
declare const issueFilterSchema: z.ZodEnum<{
|
|
390
|
-
open: "open";
|
|
391
|
-
resolved: "resolved";
|
|
392
|
-
muted: "muted";
|
|
393
|
-
all: "all";
|
|
394
|
-
}>;
|
|
395
|
-
declare const apiErrorSchema: z.ZodObject<{
|
|
396
|
-
error: z.ZodString;
|
|
397
|
-
message: z.ZodOptional<z.ZodString>;
|
|
398
|
-
}, z.core.$strip>;
|
|
399
|
-
|
|
400
|
-
interface PaginatedResponse<T> {
|
|
401
|
-
items: T[];
|
|
402
|
-
next_cursor?: string;
|
|
403
|
-
has_more: boolean;
|
|
404
|
-
}
|
|
405
|
-
interface OffsetPaginatedResponse<T> {
|
|
406
|
-
items: T[];
|
|
407
|
-
total_count: number;
|
|
408
|
-
page: number;
|
|
409
|
-
per_page: number;
|
|
410
|
-
total_pages: number;
|
|
411
|
-
}
|
|
412
|
-
type SortOrder = z.infer<typeof sortOrderSchema>;
|
|
413
|
-
type IssueSort = z.infer<typeof issueSortSchema>;
|
|
414
|
-
type IssueFilter = z.infer<typeof issueFilterSchema>;
|
|
415
|
-
type ApiError = z.infer<typeof apiErrorSchema>;
|
|
416
|
-
interface ListIssuesOptions {
|
|
417
|
-
page?: number;
|
|
418
|
-
per_page?: number;
|
|
419
|
-
sort?: IssueSort;
|
|
420
|
-
order?: SortOrder;
|
|
421
|
-
filter?: IssueFilter;
|
|
422
|
-
q?: string;
|
|
423
|
-
}
|
|
424
|
-
interface ListEventsOptions {
|
|
425
|
-
order?: SortOrder;
|
|
426
|
-
cursor?: string;
|
|
427
|
-
}
|
|
428
|
-
interface ListProjectsOptions {
|
|
429
|
-
page?: number;
|
|
430
|
-
per_page?: number;
|
|
431
|
-
order?: SortOrder;
|
|
432
|
-
stats_period?: string;
|
|
433
|
-
}
|
|
434
|
-
interface ListTransactionsOptions {
|
|
435
|
-
page?: number;
|
|
436
|
-
per_page?: number;
|
|
437
|
-
name?: string;
|
|
438
|
-
op?: string;
|
|
439
|
-
status?: string;
|
|
440
|
-
environment?: string;
|
|
441
|
-
release?: string;
|
|
442
|
-
}
|
|
443
|
-
interface ListLogsOptions {
|
|
444
|
-
page?: number;
|
|
445
|
-
per_page?: number;
|
|
446
|
-
level?: string;
|
|
447
|
-
trace_id?: string;
|
|
448
|
-
}
|
|
449
|
-
interface ReleaseHealthStatsOptions {
|
|
450
|
-
page?: number;
|
|
451
|
-
per_page?: number;
|
|
452
|
-
period?: string;
|
|
453
|
-
release?: string;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
declare const eventSchema: z.ZodObject<{
|
|
457
|
-
id: z.ZodString;
|
|
458
|
-
event_id: z.ZodString;
|
|
459
|
-
issue_id: z.ZodNullable<z.ZodString>;
|
|
460
|
-
title: z.ZodString;
|
|
461
|
-
timestamp: z.ZodString;
|
|
462
|
-
level: z.ZodString;
|
|
463
|
-
platform: z.ZodString;
|
|
464
|
-
release: z.ZodString;
|
|
465
|
-
environment: z.ZodString;
|
|
466
|
-
event_type: z.ZodString;
|
|
467
|
-
}, z.core.$strip>;
|
|
468
|
-
declare const eventDetailSchema: z.ZodObject<{
|
|
469
|
-
id: z.ZodString;
|
|
470
|
-
event_id: z.ZodString;
|
|
471
|
-
issue_id: z.ZodNullable<z.ZodString>;
|
|
472
|
-
title: z.ZodString;
|
|
473
|
-
timestamp: z.ZodString;
|
|
474
|
-
ingested_at: z.ZodString;
|
|
475
|
-
level: z.ZodString;
|
|
476
|
-
platform: z.ZodString;
|
|
477
|
-
release: z.ZodString;
|
|
478
|
-
environment: z.ZodString;
|
|
479
|
-
server_name: z.ZodString;
|
|
480
|
-
sdk_name: z.ZodString;
|
|
481
|
-
sdk_version: z.ZodString;
|
|
482
|
-
event_type: z.ZodString;
|
|
483
|
-
data: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
484
|
-
}, z.core.$strip>;
|
|
485
|
-
|
|
486
|
-
type Event = z.infer<typeof eventSchema>;
|
|
487
|
-
type EventDetail = z.infer<typeof eventDetailSchema>;
|
|
488
|
-
|
|
489
|
-
declare const gitHubInstallationSchema: z.ZodObject<{
|
|
490
|
-
id: z.ZodNumber;
|
|
491
|
-
account_login: z.ZodString;
|
|
492
|
-
account_type: z.ZodString;
|
|
493
|
-
suspended: z.ZodBoolean;
|
|
494
|
-
created_at: z.ZodString;
|
|
495
|
-
}, z.core.$strip>;
|
|
496
|
-
declare const gitHubStatusSchema: z.ZodObject<{
|
|
497
|
-
app: z.ZodNullable<z.ZodObject<{
|
|
498
|
-
app_id: z.ZodNumber;
|
|
499
|
-
slug: z.ZodString;
|
|
500
|
-
html_url: z.ZodString;
|
|
501
|
-
owner_login: z.ZodString;
|
|
502
|
-
install_url: z.ZodString;
|
|
503
|
-
last_webhook_at: z.ZodNullable<z.ZodString>;
|
|
504
|
-
created_at: z.ZodString;
|
|
505
|
-
}, z.core.$strip>>;
|
|
506
|
-
installations: z.ZodArray<z.ZodObject<{
|
|
507
|
-
id: z.ZodNumber;
|
|
508
|
-
account_login: z.ZodString;
|
|
509
|
-
account_type: z.ZodString;
|
|
510
|
-
suspended: z.ZodBoolean;
|
|
511
|
-
created_at: z.ZodString;
|
|
512
|
-
}, z.core.$strip>>;
|
|
513
|
-
webhook_url: z.ZodString;
|
|
514
|
-
}, z.core.$strip>;
|
|
515
|
-
declare const gitHubManifestSchema: z.ZodObject<{
|
|
516
|
-
action_url: z.ZodString;
|
|
517
|
-
manifest: z.ZodString;
|
|
518
|
-
}, z.core.$strip>;
|
|
519
|
-
declare const gitHubRepositorySchema: z.ZodObject<{
|
|
520
|
-
installation_id: z.ZodNumber;
|
|
521
|
-
full_name: z.ZodString;
|
|
522
|
-
default_branch: z.ZodString;
|
|
523
|
-
private: z.ZodBoolean;
|
|
524
|
-
html_url: z.ZodString;
|
|
525
|
-
}, z.core.$strip>;
|
|
526
|
-
declare const codeMappingSchema: z.ZodObject<{
|
|
527
|
-
stack_root: z.ZodString;
|
|
528
|
-
source_root: z.ZodString;
|
|
529
|
-
}, z.core.$strip>;
|
|
530
|
-
declare const projectRepositorySchema: z.ZodObject<{
|
|
531
|
-
project_id: z.ZodNumber;
|
|
532
|
-
installation_id: z.ZodNumber;
|
|
533
|
-
repo_full_name: z.ZodString;
|
|
534
|
-
default_branch: z.ZodString;
|
|
535
|
-
html_url: z.ZodString;
|
|
536
|
-
code_mappings: z.ZodArray<z.ZodObject<{
|
|
537
|
-
stack_root: z.ZodString;
|
|
538
|
-
source_root: z.ZodString;
|
|
539
|
-
}, z.core.$strip>>;
|
|
540
|
-
auto_create_issues: z.ZodBoolean;
|
|
541
|
-
auto_create_conditions: z.ZodObject<{
|
|
542
|
-
min_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
543
|
-
error: "error";
|
|
544
|
-
debug: "debug";
|
|
545
|
-
info: "info";
|
|
546
|
-
warning: "warning";
|
|
547
|
-
fatal: "fatal";
|
|
548
|
-
}>>>;
|
|
549
|
-
environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
550
|
-
min_events: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
551
|
-
}, z.core.$strip>;
|
|
552
|
-
codeowners_rules: z.ZodNullable<z.ZodNumber>;
|
|
553
|
-
codeowners_synced_at: z.ZodNullable<z.ZodString>;
|
|
554
|
-
}, z.core.$strip>;
|
|
555
|
-
declare const updateProjectRepositorySchema: z.ZodObject<{
|
|
556
|
-
installation_id: z.ZodNumber;
|
|
557
|
-
repo_full_name: z.ZodString;
|
|
558
|
-
code_mappings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
559
|
-
stack_root: z.ZodString;
|
|
560
|
-
source_root: z.ZodString;
|
|
561
|
-
}, z.core.$strip>>>;
|
|
562
|
-
auto_create_issues: z.ZodOptional<z.ZodBoolean>;
|
|
563
|
-
auto_create_conditions: z.ZodOptional<z.ZodObject<{
|
|
564
|
-
min_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
565
|
-
error: "error";
|
|
566
|
-
debug: "debug";
|
|
567
|
-
info: "info";
|
|
568
|
-
warning: "warning";
|
|
569
|
-
fatal: "fatal";
|
|
570
|
-
}>>>;
|
|
571
|
-
environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
572
|
-
min_events: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
573
|
-
}, z.core.$strip>>;
|
|
574
|
-
}, z.core.$strip>;
|
|
575
|
-
declare const issueLinkSchema: z.ZodObject<{
|
|
576
|
-
id: z.ZodNumber;
|
|
577
|
-
issue_id: z.ZodString;
|
|
578
|
-
repo_full_name: z.ZodString;
|
|
579
|
-
number: z.ZodNumber;
|
|
580
|
-
title: z.ZodString;
|
|
581
|
-
url: z.ZodString;
|
|
582
|
-
state: z.ZodString;
|
|
583
|
-
created_at: z.ZodString;
|
|
584
|
-
}, z.core.$strip>;
|
|
585
|
-
declare const repoCommitSchema: z.ZodObject<{
|
|
586
|
-
repo_full_name: z.ZodString;
|
|
587
|
-
sha: z.ZodString;
|
|
588
|
-
message: z.ZodString;
|
|
589
|
-
author_name: z.ZodString;
|
|
590
|
-
author_login: z.ZodNullable<z.ZodString>;
|
|
591
|
-
url: z.ZodString;
|
|
592
|
-
committed_at: z.ZodString;
|
|
593
|
-
}, z.core.$strip>;
|
|
594
|
-
declare const issueGitHubSchema: z.ZodObject<{
|
|
595
|
-
links: z.ZodArray<z.ZodObject<{
|
|
596
|
-
id: z.ZodNumber;
|
|
597
|
-
issue_id: z.ZodString;
|
|
598
|
-
repo_full_name: z.ZodString;
|
|
599
|
-
number: z.ZodNumber;
|
|
600
|
-
title: z.ZodString;
|
|
601
|
-
url: z.ZodString;
|
|
602
|
-
state: z.ZodString;
|
|
603
|
-
created_at: z.ZodString;
|
|
604
|
-
}, z.core.$strip>>;
|
|
605
|
-
suspect_commits: z.ZodArray<z.ZodObject<{
|
|
606
|
-
repo_full_name: z.ZodString;
|
|
607
|
-
sha: z.ZodString;
|
|
608
|
-
message: z.ZodString;
|
|
609
|
-
author_name: z.ZodString;
|
|
610
|
-
author_login: z.ZodNullable<z.ZodString>;
|
|
611
|
-
url: z.ZodString;
|
|
612
|
-
committed_at: z.ZodString;
|
|
613
|
-
}, z.core.$strip>>;
|
|
614
|
-
owners: z.ZodArray<z.ZodString>;
|
|
615
|
-
}, z.core.$strip>;
|
|
616
|
-
|
|
617
|
-
type GitHubStatus = z.infer<typeof gitHubStatusSchema>;
|
|
618
|
-
type GitHubInstallation = z.infer<typeof gitHubInstallationSchema>;
|
|
619
|
-
type GitHubManifest = z.infer<typeof gitHubManifestSchema>;
|
|
620
|
-
type GitHubRepository = z.infer<typeof gitHubRepositorySchema>;
|
|
621
|
-
type CodeMapping = z.infer<typeof codeMappingSchema>;
|
|
622
|
-
type ProjectRepository = z.infer<typeof projectRepositorySchema>;
|
|
623
|
-
type UpdateProjectRepository = z.infer<typeof updateProjectRepositorySchema>;
|
|
624
|
-
type IssueLink = z.infer<typeof issueLinkSchema>;
|
|
625
|
-
type RepoCommit = z.infer<typeof repoCommitSchema>;
|
|
626
|
-
type IssueGitHub = z.infer<typeof issueGitHubSchema>;
|
|
627
|
-
|
|
628
|
-
declare const invitationSchema: z.ZodObject<{
|
|
629
|
-
token: z.ZodString;
|
|
630
|
-
email: z.ZodString;
|
|
631
|
-
role: z.ZodEnum<{
|
|
632
|
-
admin: "admin";
|
|
633
|
-
member: "member";
|
|
634
|
-
}>;
|
|
635
|
-
status: z.ZodString;
|
|
636
|
-
expires_at: z.ZodString;
|
|
637
|
-
created_at: z.ZodString;
|
|
638
|
-
}, z.core.$strip>;
|
|
639
|
-
declare const invitationInfoSchema: z.ZodObject<{
|
|
640
|
-
email: z.ZodString;
|
|
641
|
-
role: z.ZodEnum<{
|
|
642
|
-
admin: "admin";
|
|
643
|
-
member: "member";
|
|
644
|
-
}>;
|
|
645
|
-
status: z.ZodString;
|
|
646
|
-
expires_at: z.ZodString;
|
|
647
|
-
}, z.core.$strip>;
|
|
648
|
-
declare const createInvitationSchema: z.ZodObject<{
|
|
649
|
-
email: z.ZodString;
|
|
650
|
-
role: z.ZodEnum<{
|
|
651
|
-
admin: "admin";
|
|
652
|
-
member: "member";
|
|
653
|
-
}>;
|
|
654
|
-
}, z.core.$strip>;
|
|
655
|
-
declare const acceptInvitationSchema: z.ZodObject<{
|
|
656
|
-
token: z.ZodString;
|
|
657
|
-
password: z.ZodString;
|
|
658
|
-
}, z.core.$strip>;
|
|
659
|
-
|
|
660
|
-
type Invitation = z.infer<typeof invitationSchema>;
|
|
661
|
-
type InvitationInfo = z.infer<typeof invitationInfoSchema>;
|
|
662
|
-
type CreateInvitation = z.infer<typeof createInvitationSchema>;
|
|
663
|
-
type AcceptInvitation = z.infer<typeof acceptInvitationSchema>;
|
|
664
|
-
|
|
665
|
-
declare const issueStatusSchema: z.ZodEnum<{
|
|
666
|
-
resolved: "resolved";
|
|
667
|
-
unresolved: "unresolved";
|
|
668
|
-
ignored: "ignored";
|
|
669
|
-
}>;
|
|
670
|
-
declare const issuePrioritySchema: z.ZodEnum<{
|
|
671
|
-
low: "low";
|
|
672
|
-
medium: "medium";
|
|
673
|
-
high: "high";
|
|
674
|
-
}>;
|
|
675
|
-
declare const issueSchema: z.ZodObject<{
|
|
676
|
-
id: z.ZodString;
|
|
677
|
-
project_id: z.ZodNumber;
|
|
678
|
-
short_id: z.ZodString;
|
|
679
|
-
title: z.ZodString;
|
|
680
|
-
value: z.ZodString;
|
|
681
|
-
culprit: z.ZodString;
|
|
682
|
-
logger: z.ZodString;
|
|
683
|
-
first_seen: z.ZodString;
|
|
684
|
-
last_seen: z.ZodString;
|
|
685
|
-
event_count: z.ZodNumber;
|
|
686
|
-
level: z.ZodNullable<z.ZodString>;
|
|
687
|
-
platform: z.ZodNullable<z.ZodString>;
|
|
688
|
-
status: z.ZodEnum<{
|
|
689
|
-
resolved: "resolved";
|
|
690
|
-
unresolved: "unresolved";
|
|
691
|
-
ignored: "ignored";
|
|
692
|
-
}>;
|
|
693
|
-
substatus: z.ZodNullable<z.ZodString>;
|
|
694
|
-
priority: z.ZodNullable<z.ZodEnum<{
|
|
695
|
-
low: "low";
|
|
696
|
-
medium: "medium";
|
|
697
|
-
high: "high";
|
|
698
|
-
}>>;
|
|
699
|
-
assigned_to: z.ZodNullable<z.ZodNumber>;
|
|
700
|
-
assignee_type: z.ZodNullable<z.ZodString>;
|
|
701
|
-
issue_type: z.ZodString;
|
|
702
|
-
issue_category: z.ZodString;
|
|
703
|
-
first_release: z.ZodString;
|
|
704
|
-
last_release: z.ZodString;
|
|
705
|
-
status_details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
706
|
-
user_report_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
707
|
-
is_bookmarked: z.ZodOptional<z.ZodBoolean>;
|
|
708
|
-
is_subscribed: z.ZodOptional<z.ZodBoolean>;
|
|
709
|
-
has_seen: z.ZodOptional<z.ZodBoolean>;
|
|
710
|
-
user_count: z.ZodOptional<z.ZodNumber>;
|
|
711
|
-
trend: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
712
|
-
is_resolved: z.ZodBoolean;
|
|
713
|
-
is_muted: z.ZodBoolean;
|
|
714
|
-
}, z.core.$strip>;
|
|
715
|
-
declare const updateIssueStateSchema: z.ZodObject<{
|
|
716
|
-
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
717
|
-
resolved: "resolved";
|
|
718
|
-
unresolved: "unresolved";
|
|
719
|
-
ignored: "ignored";
|
|
720
|
-
}>, z.ZodLiteral<"resolvedInNextRelease">]>>;
|
|
721
|
-
substatus: z.ZodOptional<z.ZodString>;
|
|
722
|
-
priority: z.ZodOptional<z.ZodEnum<{
|
|
723
|
-
low: "low";
|
|
724
|
-
medium: "medium";
|
|
725
|
-
high: "high";
|
|
726
|
-
}>>;
|
|
727
|
-
assigned_to: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
728
|
-
assignee_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
729
|
-
is_resolved: z.ZodOptional<z.ZodBoolean>;
|
|
730
|
-
is_muted: z.ZodOptional<z.ZodBoolean>;
|
|
731
|
-
}, z.core.$strip>;
|
|
732
|
-
declare const issueHashSchema: z.ZodObject<{
|
|
733
|
-
id: z.ZodNumber;
|
|
734
|
-
project_id: z.ZodNumber;
|
|
735
|
-
issue_id: z.ZodString;
|
|
736
|
-
grouping_key: z.ZodString;
|
|
737
|
-
grouping_key_hash: z.ZodString;
|
|
738
|
-
created_at: z.ZodString;
|
|
739
|
-
}, z.core.$strip>;
|
|
740
|
-
declare const tagValueCountSchema: z.ZodObject<{
|
|
741
|
-
value: z.ZodString;
|
|
742
|
-
count: z.ZodNumber;
|
|
743
|
-
}, z.core.$strip>;
|
|
744
|
-
declare const issueTagValueSchema: z.ZodObject<{
|
|
745
|
-
key: z.ZodString;
|
|
746
|
-
name: z.ZodString;
|
|
747
|
-
value: z.ZodString;
|
|
748
|
-
count: z.ZodNumber;
|
|
749
|
-
first_seen: z.ZodString;
|
|
750
|
-
last_seen: z.ZodString;
|
|
751
|
-
}, z.core.$strip>;
|
|
752
|
-
declare const tagSummarySchema: z.ZodObject<{
|
|
753
|
-
key: z.ZodString;
|
|
754
|
-
total_values: z.ZodNumber;
|
|
755
|
-
top_values: z.ZodArray<z.ZodObject<{
|
|
756
|
-
value: z.ZodString;
|
|
757
|
-
count: z.ZodNumber;
|
|
758
|
-
}, z.core.$strip>>;
|
|
759
|
-
}, z.core.$strip>;
|
|
760
|
-
declare const issueAggregatesSchema: z.ZodObject<{
|
|
761
|
-
user_count: z.ZodNumber;
|
|
762
|
-
tags: z.ZodArray<z.ZodObject<{
|
|
763
|
-
key: z.ZodString;
|
|
764
|
-
total_values: z.ZodNumber;
|
|
765
|
-
top_values: z.ZodArray<z.ZodObject<{
|
|
766
|
-
value: z.ZodString;
|
|
767
|
-
count: z.ZodNumber;
|
|
768
|
-
}, z.core.$strip>>;
|
|
769
|
-
}, z.core.$strip>>;
|
|
770
|
-
}, z.core.$strip>;
|
|
771
|
-
declare const issueStatsWindowSchema: z.ZodEnum<{
|
|
772
|
-
"24h": "24h";
|
|
773
|
-
"30d": "30d";
|
|
774
|
-
}>;
|
|
775
|
-
declare const issueStatsSchema: z.ZodObject<{
|
|
776
|
-
data: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
777
|
-
}, z.core.$strip>;
|
|
778
|
-
declare const activityEntrySchema: z.ZodObject<{
|
|
779
|
-
id: z.ZodString;
|
|
780
|
-
issue_id: z.ZodString;
|
|
781
|
-
user_id: z.ZodNullable<z.ZodNumber>;
|
|
782
|
-
type: z.ZodString;
|
|
783
|
-
data: z.ZodString;
|
|
784
|
-
created_at: z.ZodString;
|
|
785
|
-
}, z.core.$strip>;
|
|
786
|
-
declare const userReportSchema: z.ZodObject<{
|
|
787
|
-
id: z.ZodString;
|
|
788
|
-
project_id: z.ZodNumber;
|
|
789
|
-
issue_id: z.ZodNullable<z.ZodString>;
|
|
790
|
-
event_id: z.ZodNullable<z.ZodString>;
|
|
791
|
-
name: z.ZodString;
|
|
792
|
-
email: z.ZodUnion<readonly [z.ZodEmail, z.ZodLiteral<"">]>;
|
|
793
|
-
comments: z.ZodString;
|
|
794
|
-
created_at: z.ZodString;
|
|
795
|
-
}, z.core.$strip>;
|
|
796
|
-
declare const createCommentSchema: z.ZodObject<{
|
|
797
|
-
text: z.ZodString;
|
|
798
|
-
}, z.core.$strip>;
|
|
799
|
-
declare const createUserReportSchema: z.ZodObject<{
|
|
800
|
-
name: z.ZodOptional<z.ZodString>;
|
|
801
|
-
email: z.ZodOptional<z.ZodEmail>;
|
|
802
|
-
comments: z.ZodOptional<z.ZodString>;
|
|
803
|
-
event_id: z.ZodOptional<z.ZodString>;
|
|
804
|
-
}, z.core.$strip>;
|
|
805
|
-
declare const bulkUpdateIssuesSchema: z.ZodObject<{
|
|
806
|
-
ids: z.ZodArray<z.ZodString>;
|
|
807
|
-
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
808
|
-
resolved: "resolved";
|
|
809
|
-
unresolved: "unresolved";
|
|
810
|
-
ignored: "ignored";
|
|
811
|
-
}>, z.ZodLiteral<"resolvedInNextRelease">]>>;
|
|
812
|
-
priority: z.ZodOptional<z.ZodEnum<{
|
|
813
|
-
low: "low";
|
|
814
|
-
medium: "medium";
|
|
815
|
-
high: "high";
|
|
816
|
-
}>>;
|
|
817
|
-
}, z.core.$strip>;
|
|
818
|
-
declare const bulkDeleteIssuesSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
819
|
-
ids: z.ZodArray<z.ZodString>;
|
|
820
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
821
|
-
filter: z.ZodEnum<{
|
|
822
|
-
open: "open";
|
|
823
|
-
resolved: "resolved";
|
|
824
|
-
muted: "muted";
|
|
825
|
-
all: "all";
|
|
826
|
-
}>;
|
|
827
|
-
}, z.core.$strict>]>;
|
|
828
|
-
|
|
829
|
-
type Issue = z.infer<typeof issueSchema>;
|
|
830
|
-
type IssueStatus = z.infer<typeof issueStatusSchema>;
|
|
831
|
-
type IssuePriority = z.infer<typeof issuePrioritySchema>;
|
|
832
|
-
type UpdateIssueState = z.infer<typeof updateIssueStateSchema>;
|
|
833
|
-
type IssueHash = z.infer<typeof issueHashSchema>;
|
|
834
|
-
type TagValueCount = z.infer<typeof tagValueCountSchema>;
|
|
835
|
-
type IssueTagValue = z.infer<typeof issueTagValueSchema>;
|
|
836
|
-
type TagSummary = z.infer<typeof tagSummarySchema>;
|
|
837
|
-
type IssueAggregates = z.infer<typeof issueAggregatesSchema>;
|
|
838
|
-
type IssueStats = z.infer<typeof issueStatsSchema>;
|
|
839
|
-
type ActivityEntry = z.infer<typeof activityEntrySchema>;
|
|
840
|
-
type UserReport = z.infer<typeof userReportSchema>;
|
|
841
|
-
type CreateComment = z.infer<typeof createCommentSchema>;
|
|
842
|
-
type CreateUserReport = z.infer<typeof createUserReportSchema>;
|
|
843
|
-
type BulkUpdateIssues = z.infer<typeof bulkUpdateIssuesSchema>;
|
|
844
|
-
type BulkDeleteIssues = z.infer<typeof bulkDeleteIssuesSchema>;
|
|
845
|
-
type IssueStatsWindow = z.infer<typeof issueStatsWindowSchema>;
|
|
846
|
-
|
|
847
|
-
declare const logSchema: z.ZodObject<{
|
|
848
|
-
id: z.ZodString;
|
|
849
|
-
trace_id: z.ZodNullable<z.ZodString>;
|
|
850
|
-
span_id: z.ZodNullable<z.ZodString>;
|
|
851
|
-
level: z.ZodString;
|
|
852
|
-
severity_number: z.ZodNullable<z.ZodNumber>;
|
|
853
|
-
body: z.ZodString;
|
|
854
|
-
attributes: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
855
|
-
timestamp: z.ZodString;
|
|
856
|
-
ingested_at: z.ZodString;
|
|
857
|
-
}, z.core.$strip>;
|
|
858
|
-
|
|
859
|
-
type Log = z.infer<typeof logSchema>;
|
|
860
|
-
|
|
861
|
-
declare const projectRoleSchema: z.ZodEnum<{
|
|
862
|
-
admin: "admin";
|
|
863
|
-
viewer: "viewer";
|
|
864
|
-
editor: "editor";
|
|
865
|
-
}>;
|
|
866
|
-
declare const projectMemberSchema: z.ZodObject<{
|
|
867
|
-
user_id: z.ZodNumber;
|
|
868
|
-
email: z.ZodString;
|
|
869
|
-
role: z.ZodEnum<{
|
|
870
|
-
admin: "admin";
|
|
871
|
-
viewer: "viewer";
|
|
872
|
-
editor: "editor";
|
|
873
|
-
}>;
|
|
874
|
-
created_at: z.ZodString;
|
|
875
|
-
}, z.core.$strip>;
|
|
876
|
-
declare const upsertProjectMemberSchema: z.ZodObject<{
|
|
877
|
-
user_id: z.ZodNumber;
|
|
878
|
-
role: z.ZodEnum<{
|
|
879
|
-
admin: "admin";
|
|
880
|
-
viewer: "viewer";
|
|
881
|
-
editor: "editor";
|
|
882
|
-
}>;
|
|
883
|
-
}, z.core.$strip>;
|
|
884
|
-
|
|
885
|
-
type ProjectRole = z.infer<typeof projectRoleSchema>;
|
|
886
|
-
type ProjectMember = z.infer<typeof projectMemberSchema>;
|
|
887
|
-
type UpsertProjectMember = z.infer<typeof upsertProjectMemberSchema>;
|
|
888
|
-
|
|
889
|
-
declare const monitorConfigSchema: z.ZodObject<{
|
|
890
|
-
schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
891
|
-
type: z.ZodLiteral<"crontab">;
|
|
892
|
-
value: z.ZodString;
|
|
893
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
894
|
-
type: z.ZodLiteral<"interval">;
|
|
895
|
-
value: z.ZodNumber;
|
|
896
|
-
unit: z.ZodEnum<{
|
|
897
|
-
minute: "minute";
|
|
898
|
-
hour: "hour";
|
|
899
|
-
day: "day";
|
|
900
|
-
week: "week";
|
|
901
|
-
month: "month";
|
|
902
|
-
year: "year";
|
|
903
|
-
}>;
|
|
904
|
-
}, z.core.$strip>], "type">;
|
|
905
|
-
checkin_margin: z.ZodNumber;
|
|
906
|
-
max_runtime: z.ZodNumber;
|
|
907
|
-
timezone: z.ZodString;
|
|
908
|
-
failure_issue_threshold: z.ZodNumber;
|
|
909
|
-
recovery_threshold: z.ZodNumber;
|
|
910
|
-
}, z.core.$strip>;
|
|
911
|
-
declare const monitorConfigInputSchema: z.ZodObject<{
|
|
912
|
-
schedule: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
913
|
-
type: z.ZodLiteral<"crontab">;
|
|
914
|
-
value: z.ZodString;
|
|
915
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
916
|
-
type: z.ZodLiteral<"interval">;
|
|
917
|
-
value: z.ZodNumber;
|
|
918
|
-
unit: z.ZodEnum<{
|
|
919
|
-
minute: "minute";
|
|
920
|
-
hour: "hour";
|
|
921
|
-
day: "day";
|
|
922
|
-
week: "week";
|
|
923
|
-
month: "month";
|
|
924
|
-
year: "year";
|
|
925
|
-
}>;
|
|
926
|
-
}, z.core.$strip>], "type">>;
|
|
927
|
-
checkin_margin: z.ZodOptional<z.ZodNumber>;
|
|
928
|
-
max_runtime: z.ZodOptional<z.ZodNumber>;
|
|
929
|
-
timezone: z.ZodOptional<z.ZodString>;
|
|
930
|
-
failure_issue_threshold: z.ZodOptional<z.ZodNumber>;
|
|
931
|
-
recovery_threshold: z.ZodOptional<z.ZodNumber>;
|
|
932
|
-
}, z.core.$strip>;
|
|
933
|
-
declare const checkInStatusSchema: z.ZodEnum<{
|
|
934
|
-
timeout: "timeout";
|
|
935
|
-
error: "error";
|
|
936
|
-
unknown: "unknown";
|
|
937
|
-
ok: "ok";
|
|
938
|
-
in_progress: "in_progress";
|
|
939
|
-
missed: "missed";
|
|
940
|
-
}>;
|
|
941
|
-
declare const monitorEnvironmentStatusSchema: z.ZodEnum<{
|
|
942
|
-
error: "error";
|
|
943
|
-
ok: "ok";
|
|
944
|
-
active: "active";
|
|
945
|
-
}>;
|
|
946
|
-
declare const checkInSchema: z.ZodObject<{
|
|
947
|
-
id: z.ZodString;
|
|
948
|
-
environment: z.ZodString;
|
|
949
|
-
status: z.ZodEnum<{
|
|
950
|
-
timeout: "timeout";
|
|
951
|
-
error: "error";
|
|
952
|
-
unknown: "unknown";
|
|
953
|
-
ok: "ok";
|
|
954
|
-
in_progress: "in_progress";
|
|
955
|
-
missed: "missed";
|
|
956
|
-
}>;
|
|
957
|
-
duration_ms: z.ZodNullable<z.ZodNumber>;
|
|
958
|
-
date_added: z.ZodString;
|
|
959
|
-
date_updated: z.ZodString;
|
|
960
|
-
expected_time: z.ZodNullable<z.ZodString>;
|
|
961
|
-
}, z.core.$strip>;
|
|
962
|
-
declare const monitorEnvironmentSchema: z.ZodObject<{
|
|
963
|
-
id: z.ZodString;
|
|
964
|
-
environment: z.ZodString;
|
|
965
|
-
status: z.ZodEnum<{
|
|
966
|
-
error: "error";
|
|
967
|
-
ok: "ok";
|
|
968
|
-
active: "active";
|
|
969
|
-
}>;
|
|
970
|
-
next_checkin: z.ZodNullable<z.ZodString>;
|
|
971
|
-
next_checkin_latest: z.ZodNullable<z.ZodString>;
|
|
972
|
-
last_checkin: z.ZodNullable<z.ZodString>;
|
|
973
|
-
recent_checkins: z.ZodArray<z.ZodObject<{
|
|
974
|
-
id: z.ZodString;
|
|
975
|
-
environment: z.ZodString;
|
|
976
|
-
status: z.ZodEnum<{
|
|
977
|
-
timeout: "timeout";
|
|
978
|
-
error: "error";
|
|
979
|
-
unknown: "unknown";
|
|
980
|
-
ok: "ok";
|
|
981
|
-
in_progress: "in_progress";
|
|
982
|
-
missed: "missed";
|
|
983
|
-
}>;
|
|
984
|
-
duration_ms: z.ZodNullable<z.ZodNumber>;
|
|
985
|
-
date_added: z.ZodString;
|
|
986
|
-
date_updated: z.ZodString;
|
|
987
|
-
expected_time: z.ZodNullable<z.ZodString>;
|
|
988
|
-
}, z.core.$strip>>;
|
|
989
|
-
}, z.core.$strip>;
|
|
990
|
-
declare const monitorSchema: z.ZodObject<{
|
|
991
|
-
id: z.ZodString;
|
|
992
|
-
slug: z.ZodString;
|
|
993
|
-
name: z.ZodString;
|
|
994
|
-
config: z.ZodObject<{
|
|
995
|
-
schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
996
|
-
type: z.ZodLiteral<"crontab">;
|
|
997
|
-
value: z.ZodString;
|
|
998
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
999
|
-
type: z.ZodLiteral<"interval">;
|
|
1000
|
-
value: z.ZodNumber;
|
|
1001
|
-
unit: z.ZodEnum<{
|
|
1002
|
-
minute: "minute";
|
|
1003
|
-
hour: "hour";
|
|
1004
|
-
day: "day";
|
|
1005
|
-
week: "week";
|
|
1006
|
-
month: "month";
|
|
1007
|
-
year: "year";
|
|
1008
|
-
}>;
|
|
1009
|
-
}, z.core.$strip>], "type">;
|
|
1010
|
-
checkin_margin: z.ZodNumber;
|
|
1011
|
-
max_runtime: z.ZodNumber;
|
|
1012
|
-
timezone: z.ZodString;
|
|
1013
|
-
failure_issue_threshold: z.ZodNumber;
|
|
1014
|
-
recovery_threshold: z.ZodNumber;
|
|
1015
|
-
}, z.core.$strip>;
|
|
1016
|
-
is_muted: z.ZodBoolean;
|
|
1017
|
-
created_at: z.ZodString;
|
|
1018
|
-
environments: z.ZodArray<z.ZodObject<{
|
|
1019
|
-
id: z.ZodString;
|
|
1020
|
-
environment: z.ZodString;
|
|
1021
|
-
status: z.ZodEnum<{
|
|
1022
|
-
error: "error";
|
|
1023
|
-
ok: "ok";
|
|
1024
|
-
active: "active";
|
|
1025
|
-
}>;
|
|
1026
|
-
next_checkin: z.ZodNullable<z.ZodString>;
|
|
1027
|
-
next_checkin_latest: z.ZodNullable<z.ZodString>;
|
|
1028
|
-
last_checkin: z.ZodNullable<z.ZodString>;
|
|
1029
|
-
recent_checkins: z.ZodArray<z.ZodObject<{
|
|
1030
|
-
id: z.ZodString;
|
|
1031
|
-
environment: z.ZodString;
|
|
1032
|
-
status: z.ZodEnum<{
|
|
1033
|
-
timeout: "timeout";
|
|
1034
|
-
error: "error";
|
|
1035
|
-
unknown: "unknown";
|
|
1036
|
-
ok: "ok";
|
|
1037
|
-
in_progress: "in_progress";
|
|
1038
|
-
missed: "missed";
|
|
1039
|
-
}>;
|
|
1040
|
-
duration_ms: z.ZodNullable<z.ZodNumber>;
|
|
1041
|
-
date_added: z.ZodString;
|
|
1042
|
-
date_updated: z.ZodString;
|
|
1043
|
-
expected_time: z.ZodNullable<z.ZodString>;
|
|
1044
|
-
}, z.core.$strip>>;
|
|
1045
|
-
}, z.core.$strip>>;
|
|
1046
|
-
}, z.core.$strip>;
|
|
1047
|
-
declare const createMonitorSchema: z.ZodObject<{
|
|
1048
|
-
name: z.ZodString;
|
|
1049
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
1050
|
-
config: z.ZodObject<{
|
|
1051
|
-
schedule: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1052
|
-
type: z.ZodLiteral<"crontab">;
|
|
1053
|
-
value: z.ZodString;
|
|
1054
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1055
|
-
type: z.ZodLiteral<"interval">;
|
|
1056
|
-
value: z.ZodNumber;
|
|
1057
|
-
unit: z.ZodEnum<{
|
|
1058
|
-
minute: "minute";
|
|
1059
|
-
hour: "hour";
|
|
1060
|
-
day: "day";
|
|
1061
|
-
week: "week";
|
|
1062
|
-
month: "month";
|
|
1063
|
-
year: "year";
|
|
1064
|
-
}>;
|
|
1065
|
-
}, z.core.$strip>], "type">>;
|
|
1066
|
-
checkin_margin: z.ZodOptional<z.ZodNumber>;
|
|
1067
|
-
max_runtime: z.ZodOptional<z.ZodNumber>;
|
|
1068
|
-
timezone: z.ZodOptional<z.ZodString>;
|
|
1069
|
-
failure_issue_threshold: z.ZodOptional<z.ZodNumber>;
|
|
1070
|
-
recovery_threshold: z.ZodOptional<z.ZodNumber>;
|
|
1071
|
-
}, z.core.$strip>;
|
|
1072
|
-
}, z.core.$strip>;
|
|
1073
|
-
declare const updateMonitorSchema: z.ZodObject<{
|
|
1074
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1075
|
-
config: z.ZodOptional<z.ZodObject<{
|
|
1076
|
-
schedule: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1077
|
-
type: z.ZodLiteral<"crontab">;
|
|
1078
|
-
value: z.ZodString;
|
|
1079
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1080
|
-
type: z.ZodLiteral<"interval">;
|
|
1081
|
-
value: z.ZodNumber;
|
|
1082
|
-
unit: z.ZodEnum<{
|
|
1083
|
-
minute: "minute";
|
|
1084
|
-
hour: "hour";
|
|
1085
|
-
day: "day";
|
|
1086
|
-
week: "week";
|
|
1087
|
-
month: "month";
|
|
1088
|
-
year: "year";
|
|
1089
|
-
}>;
|
|
1090
|
-
}, z.core.$strip>], "type">>;
|
|
1091
|
-
checkin_margin: z.ZodOptional<z.ZodNumber>;
|
|
1092
|
-
max_runtime: z.ZodOptional<z.ZodNumber>;
|
|
1093
|
-
timezone: z.ZodOptional<z.ZodString>;
|
|
1094
|
-
failure_issue_threshold: z.ZodOptional<z.ZodNumber>;
|
|
1095
|
-
recovery_threshold: z.ZodOptional<z.ZodNumber>;
|
|
1096
|
-
}, z.core.$strip>>;
|
|
1097
|
-
is_muted: z.ZodOptional<z.ZodBoolean>;
|
|
1098
|
-
}, z.core.$strip>;
|
|
1099
|
-
|
|
1100
|
-
type MonitorConfig = z.infer<typeof monitorConfigSchema>;
|
|
1101
|
-
type MonitorConfigInput = z.infer<typeof monitorConfigInputSchema>;
|
|
1102
|
-
type CheckInStatus = z.infer<typeof checkInStatusSchema>;
|
|
1103
|
-
type MonitorEnvironmentStatus = z.infer<typeof monitorEnvironmentStatusSchema>;
|
|
1104
|
-
type CheckIn = z.infer<typeof checkInSchema>;
|
|
1105
|
-
type MonitorEnvironment = z.infer<typeof monitorEnvironmentSchema>;
|
|
1106
|
-
type Monitor = z.infer<typeof monitorSchema>;
|
|
1107
|
-
type CreateMonitor = z.input<typeof createMonitorSchema>;
|
|
1108
|
-
type UpdateMonitor = z.input<typeof updateMonitorSchema>;
|
|
1109
|
-
interface ListCheckInsOptions {
|
|
1110
|
-
page?: number;
|
|
1111
|
-
per_page?: number;
|
|
1112
|
-
environment?: string;
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
declare const projectListStatsSchema: z.ZodObject<{
|
|
1116
|
-
trend: z.ZodArray<z.ZodNumber>;
|
|
1117
|
-
events: z.ZodObject<{
|
|
1118
|
-
current: z.ZodNumber;
|
|
1119
|
-
previous: z.ZodNullable<z.ZodNumber>;
|
|
1120
|
-
}, z.core.$strip>;
|
|
1121
|
-
new_issues: z.ZodObject<{
|
|
1122
|
-
current: z.ZodNumber;
|
|
1123
|
-
previous: z.ZodNullable<z.ZodNumber>;
|
|
1124
|
-
}, z.core.$strip>;
|
|
1125
|
-
open_issues: z.ZodNumber;
|
|
1126
|
-
fatal_issues: z.ZodNumber;
|
|
1127
|
-
}, z.core.$strip>;
|
|
1128
|
-
declare const projectSchema: z.ZodObject<{
|
|
1129
|
-
id: z.ZodNumber;
|
|
1130
|
-
name: z.ZodString;
|
|
1131
|
-
slug: z.ZodString;
|
|
1132
|
-
sentry_key: z.ZodString;
|
|
1133
|
-
dsn: z.ZodString;
|
|
1134
|
-
stored_event_count: z.ZodNumber;
|
|
1135
|
-
digested_event_count: z.ZodNumber;
|
|
1136
|
-
rate_limited_event_count: z.ZodNumber;
|
|
1137
|
-
rate_limit_per_minute: z.ZodNullable<z.ZodNumber>;
|
|
1138
|
-
rate_limit_per_hour: z.ZodNullable<z.ZodNumber>;
|
|
1139
|
-
created_at: z.ZodString;
|
|
1140
|
-
updated_at: z.ZodString;
|
|
1141
|
-
platform: z.ZodNullable<z.ZodString>;
|
|
1142
|
-
stats: z.ZodOptional<z.ZodObject<{
|
|
1143
|
-
trend: z.ZodArray<z.ZodNumber>;
|
|
1144
|
-
events: z.ZodObject<{
|
|
1145
|
-
current: z.ZodNumber;
|
|
1146
|
-
previous: z.ZodNullable<z.ZodNumber>;
|
|
1147
|
-
}, z.core.$strip>;
|
|
1148
|
-
new_issues: z.ZodObject<{
|
|
1149
|
-
current: z.ZodNumber;
|
|
1150
|
-
previous: z.ZodNullable<z.ZodNumber>;
|
|
1151
|
-
}, z.core.$strip>;
|
|
1152
|
-
open_issues: z.ZodNumber;
|
|
1153
|
-
fatal_issues: z.ZodNumber;
|
|
1154
|
-
}, z.core.$strip>>;
|
|
1155
|
-
}, z.core.$strip>;
|
|
1156
|
-
declare const createProjectSchema: z.ZodObject<{
|
|
1157
|
-
name: z.ZodString;
|
|
1158
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
1159
|
-
platform: z.ZodOptional<z.ZodString>;
|
|
1160
|
-
}, z.core.$strip>;
|
|
1161
|
-
declare const updateProjectSchema: z.ZodObject<{
|
|
1162
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1163
|
-
platform: z.ZodOptional<z.ZodString>;
|
|
1164
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
1165
|
-
rate_limit_per_minute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1166
|
-
rate_limit_per_hour: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1167
|
-
}, z.core.$strip>;
|
|
1168
|
-
declare const rateLimitsSchema: z.ZodObject<{
|
|
1169
|
-
project_per_minute: z.ZodNumber;
|
|
1170
|
-
project_per_hour: z.ZodNumber;
|
|
1171
|
-
}, z.core.$strip>;
|
|
1172
|
-
|
|
1173
|
-
type Project = z.infer<typeof projectSchema>;
|
|
1174
|
-
type ProjectListStats = z.infer<typeof projectListStatsSchema>;
|
|
1175
|
-
type CreateProject = z.infer<typeof createProjectSchema>;
|
|
1176
|
-
type UpdateProject = z.infer<typeof updateProjectSchema>;
|
|
1177
|
-
type RateLimits = z.infer<typeof rateLimitsSchema>;
|
|
1178
|
-
|
|
1179
|
-
declare const intervalUnitSchema: z.ZodEnum<{
|
|
1180
|
-
minute: "minute";
|
|
1181
|
-
hour: "hour";
|
|
1182
|
-
day: "day";
|
|
1183
|
-
week: "week";
|
|
1184
|
-
month: "month";
|
|
1185
|
-
year: "year";
|
|
1186
|
-
}>;
|
|
1187
|
-
declare const scheduleSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1188
|
-
type: z.ZodLiteral<"crontab">;
|
|
1189
|
-
value: z.ZodString;
|
|
1190
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1191
|
-
type: z.ZodLiteral<"interval">;
|
|
1192
|
-
value: z.ZodNumber;
|
|
1193
|
-
unit: z.ZodEnum<{
|
|
1194
|
-
minute: "minute";
|
|
1195
|
-
hour: "hour";
|
|
1196
|
-
day: "day";
|
|
1197
|
-
week: "week";
|
|
1198
|
-
month: "month";
|
|
1199
|
-
year: "year";
|
|
1200
|
-
}>;
|
|
1201
|
-
}, z.core.$strip>], "type">;
|
|
1202
|
-
declare const previewScheduleSchema: z.ZodObject<{
|
|
1203
|
-
schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1204
|
-
type: z.ZodLiteral<"crontab">;
|
|
1205
|
-
value: z.ZodString;
|
|
1206
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1207
|
-
type: z.ZodLiteral<"interval">;
|
|
1208
|
-
value: z.ZodNumber;
|
|
1209
|
-
unit: z.ZodEnum<{
|
|
1210
|
-
minute: "minute";
|
|
1211
|
-
hour: "hour";
|
|
1212
|
-
day: "day";
|
|
1213
|
-
week: "week";
|
|
1214
|
-
month: "month";
|
|
1215
|
-
year: "year";
|
|
1216
|
-
}>;
|
|
1217
|
-
}, z.core.$strip>], "type">;
|
|
1218
|
-
timezone: z.ZodOptional<z.ZodString>;
|
|
1219
|
-
}, z.core.$strip>;
|
|
1220
|
-
declare const schedulePreviewSchema: z.ZodObject<{
|
|
1221
|
-
next_runs: z.ZodArray<z.ZodString>;
|
|
1222
|
-
}, z.core.$strip>;
|
|
1223
|
-
|
|
1224
|
-
type IntervalUnit = z.infer<typeof intervalUnitSchema>;
|
|
1225
|
-
type Schedule = z.infer<typeof scheduleSchema>;
|
|
1226
|
-
type PreviewSchedule = z.input<typeof previewScheduleSchema>;
|
|
1227
|
-
type SchedulePreview = z.infer<typeof schedulePreviewSchema>;
|
|
1228
|
-
|
|
1229
|
-
declare const releaseHealthRowSchema: z.ZodObject<{
|
|
1230
|
-
release: z.ZodString;
|
|
1231
|
-
environment: z.ZodString;
|
|
1232
|
-
total: z.ZodNumber;
|
|
1233
|
-
errored: z.ZodNumber;
|
|
1234
|
-
crashed: z.ZodNumber;
|
|
1235
|
-
abnormal: z.ZodNumber;
|
|
1236
|
-
healthy: z.ZodNumber;
|
|
1237
|
-
crash_free_sessions_rate: z.ZodNullable<z.ZodNumber>;
|
|
1238
|
-
crash_free_users_rate: z.ZodNullable<z.ZodNumber>;
|
|
1239
|
-
}, z.core.$strip>;
|
|
1240
|
-
declare const sessionSummarySchema: z.ZodObject<{
|
|
1241
|
-
total: z.ZodNumber;
|
|
1242
|
-
errored: z.ZodNumber;
|
|
1243
|
-
crashed: z.ZodNumber;
|
|
1244
|
-
abnormal: z.ZodNumber;
|
|
1245
|
-
crash_free_sessions_rate: z.ZodNullable<z.ZodNumber>;
|
|
1246
|
-
crash_free_users_rate: z.ZodNullable<z.ZodNumber>;
|
|
1247
|
-
active_releases: z.ZodNumber;
|
|
1248
|
-
}, z.core.$strip>;
|
|
1249
|
-
declare const sessionTimeseriesPointSchema: z.ZodObject<{
|
|
1250
|
-
bucket: z.ZodString;
|
|
1251
|
-
total: z.ZodNumber;
|
|
1252
|
-
crashed: z.ZodNumber;
|
|
1253
|
-
crash_free_sessions_rate: z.ZodNullable<z.ZodNumber>;
|
|
1254
|
-
}, z.core.$strip>;
|
|
1255
|
-
declare const sessionTimeseriesSchema: z.ZodArray<z.ZodObject<{
|
|
1256
|
-
bucket: z.ZodString;
|
|
1257
|
-
total: z.ZodNumber;
|
|
1258
|
-
crashed: z.ZodNumber;
|
|
1259
|
-
crash_free_sessions_rate: z.ZodNullable<z.ZodNumber>;
|
|
1260
|
-
}, z.core.$strip>>;
|
|
1261
|
-
|
|
1262
|
-
type ReleaseHealthRow = z.infer<typeof releaseHealthRowSchema>;
|
|
1263
|
-
type SessionSummary = z.infer<typeof sessionSummarySchema>;
|
|
1264
|
-
type SessionTimeseriesPoint = z.infer<typeof sessionTimeseriesPointSchema>;
|
|
1265
|
-
type SessionTimeseries = z.infer<typeof sessionTimeseriesSchema>;
|
|
1266
|
-
|
|
1267
|
-
declare const chunkUploadCapabilitySchema: z.ZodObject<{
|
|
1268
|
-
url: z.ZodString;
|
|
1269
|
-
chunkSize: z.ZodNumber;
|
|
1270
|
-
chunksPerRequest: z.ZodNumber;
|
|
1271
|
-
maxRequestSize: z.ZodNumber;
|
|
1272
|
-
hashAlgorithm: z.ZodString;
|
|
1273
|
-
accept: z.ZodArray<z.ZodString>;
|
|
1274
|
-
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
1275
|
-
}, z.core.$strip>;
|
|
1276
|
-
declare const assembleInputSchema: z.ZodObject<{
|
|
1277
|
-
checksum: z.ZodString;
|
|
1278
|
-
chunks: z.ZodArray<z.ZodString>;
|
|
1279
|
-
projects: z.ZodArray<z.ZodString>;
|
|
1280
|
-
}, z.core.$strip>;
|
|
1281
|
-
declare const assembleResponseSchema: z.ZodObject<{
|
|
1282
|
-
state: z.ZodString;
|
|
1283
|
-
missingChunks: z.ZodArray<z.ZodString>;
|
|
1284
|
-
detail: z.ZodOptional<z.ZodString>;
|
|
1285
|
-
}, z.core.$strip>;
|
|
1286
|
-
declare const sourceMapFileSchema: z.ZodObject<{
|
|
1287
|
-
debugId: z.ZodString;
|
|
1288
|
-
fileType: z.ZodString;
|
|
1289
|
-
size: z.ZodNumber;
|
|
1290
|
-
timesUsed: z.ZodNumber;
|
|
1291
|
-
dateUploaded: z.ZodString;
|
|
1292
|
-
}, z.core.$strip>;
|
|
1293
|
-
declare const listSourceMapsResponseSchema: z.ZodObject<{
|
|
1294
|
-
data: z.ZodArray<z.ZodObject<{
|
|
1295
|
-
debugId: z.ZodString;
|
|
1296
|
-
fileType: z.ZodString;
|
|
1297
|
-
size: z.ZodNumber;
|
|
1298
|
-
timesUsed: z.ZodNumber;
|
|
1299
|
-
dateUploaded: z.ZodString;
|
|
1300
|
-
}, z.core.$strip>>;
|
|
1301
|
-
}, z.core.$strip>;
|
|
1302
|
-
|
|
1303
|
-
type ChunkUploadCapability = z.infer<typeof chunkUploadCapabilitySchema>;
|
|
1304
|
-
type AssembleResponse = z.infer<typeof assembleResponseSchema>;
|
|
1305
|
-
type SourceMapFile = z.infer<typeof sourceMapFileSchema>;
|
|
1306
|
-
type ListSourceMapsResponse = z.infer<typeof listSourceMapsResponseSchema>;
|
|
1307
|
-
type AssembleInput = z.infer<typeof assembleInputSchema>;
|
|
1308
|
-
|
|
1309
|
-
declare const eventTimeseriesPointSchema: z.ZodObject<{
|
|
1310
|
-
bucket: z.ZodString;
|
|
1311
|
-
total: z.ZodNumber;
|
|
1312
|
-
fatal: z.ZodNumber;
|
|
1313
|
-
error: z.ZodNumber;
|
|
1314
|
-
warning: z.ZodNumber;
|
|
1315
|
-
info: z.ZodNumber;
|
|
1316
|
-
}, z.core.$strip>;
|
|
1317
|
-
declare const eventTimeseriesSchema: z.ZodArray<z.ZodObject<{
|
|
1318
|
-
bucket: z.ZodString;
|
|
1319
|
-
total: z.ZodNumber;
|
|
1320
|
-
fatal: z.ZodNumber;
|
|
1321
|
-
error: z.ZodNumber;
|
|
1322
|
-
warning: z.ZodNumber;
|
|
1323
|
-
info: z.ZodNumber;
|
|
1324
|
-
}, z.core.$strip>>;
|
|
1325
|
-
declare const metricDeltaSchema: z.ZodObject<{
|
|
1326
|
-
current: z.ZodNumber;
|
|
1327
|
-
previous: z.ZodNullable<z.ZodNumber>;
|
|
1328
|
-
}, z.core.$strip>;
|
|
1329
|
-
declare const projectStatsSummarySchema: z.ZodObject<{
|
|
1330
|
-
period_hours: z.ZodNullable<z.ZodNumber>;
|
|
1331
|
-
events: z.ZodObject<{
|
|
1332
|
-
current: z.ZodNumber;
|
|
1333
|
-
previous: z.ZodNullable<z.ZodNumber>;
|
|
1334
|
-
}, z.core.$strip>;
|
|
1335
|
-
new_issues: z.ZodObject<{
|
|
1336
|
-
current: z.ZodNumber;
|
|
1337
|
-
previous: z.ZodNullable<z.ZodNumber>;
|
|
1338
|
-
}, z.core.$strip>;
|
|
1339
|
-
open_issues: z.ZodNumber;
|
|
1340
|
-
}, z.core.$strip>;
|
|
1341
|
-
|
|
1342
|
-
type EventTimeseriesPoint = z.infer<typeof eventTimeseriesPointSchema>;
|
|
1343
|
-
type EventTimeseries = z.infer<typeof eventTimeseriesSchema>;
|
|
1344
|
-
type MetricDelta = z.infer<typeof metricDeltaSchema>;
|
|
1345
|
-
type ProjectStatsSummary = z.infer<typeof projectStatsSummarySchema>;
|
|
1346
|
-
|
|
1347
|
-
declare const sourceMapStorageSchema: z.ZodObject<{
|
|
1348
|
-
chunk_bytes: z.ZodNumber;
|
|
1349
|
-
source_file_bytes: z.ZodNumber;
|
|
1350
|
-
total_bytes: z.ZodNumber;
|
|
1351
|
-
file_count: z.ZodNumber;
|
|
1352
|
-
}, z.core.$strip>;
|
|
1353
|
-
declare const storageSummarySchema: z.ZodObject<{
|
|
1354
|
-
total_db_size_bytes: z.ZodNumber;
|
|
1355
|
-
events_count: z.ZodNumber;
|
|
1356
|
-
transactions_count: z.ZodNumber;
|
|
1357
|
-
spans_count: z.ZodNumber;
|
|
1358
|
-
logs_count: z.ZodNumber;
|
|
1359
|
-
source_maps: z.ZodObject<{
|
|
1360
|
-
chunk_bytes: z.ZodNumber;
|
|
1361
|
-
source_file_bytes: z.ZodNumber;
|
|
1362
|
-
total_bytes: z.ZodNumber;
|
|
1363
|
-
file_count: z.ZodNumber;
|
|
1364
|
-
}, z.core.$strip>;
|
|
1365
|
-
}, z.core.$strip>;
|
|
1366
|
-
declare const projectStorageSchema: z.ZodObject<{
|
|
1367
|
-
project_id: z.ZodNumber;
|
|
1368
|
-
project_name: z.ZodString;
|
|
1369
|
-
events_count: z.ZodNumber;
|
|
1370
|
-
transactions_count: z.ZodNumber;
|
|
1371
|
-
spans_count: z.ZodNumber;
|
|
1372
|
-
logs_count: z.ZodNumber;
|
|
1373
|
-
source_maps_count: z.ZodNumber;
|
|
1374
|
-
estimated_bytes: z.ZodNumber;
|
|
1375
|
-
events_bytes: z.ZodNumber;
|
|
1376
|
-
transactions_bytes: z.ZodNumber;
|
|
1377
|
-
logs_bytes: z.ZodNumber;
|
|
1378
|
-
}, z.core.$strip>;
|
|
1379
|
-
declare const cleanupCountsSchema: z.ZodObject<{
|
|
1380
|
-
events: z.ZodNumber;
|
|
1381
|
-
transactions: z.ZodNumber;
|
|
1382
|
-
spans: z.ZodNumber;
|
|
1383
|
-
logs: z.ZodNumber;
|
|
1384
|
-
issues_removed: z.ZodNumber;
|
|
1385
|
-
source_maps: z.ZodDefault<z.ZodNumber>;
|
|
1386
|
-
}, z.core.$strip>;
|
|
1387
|
-
declare const cleanupStatusSchema: z.ZodObject<{
|
|
1388
|
-
state: z.ZodEnum<{
|
|
1389
|
-
failed: "failed";
|
|
1390
|
-
idle: "idle";
|
|
1391
|
-
running: "running";
|
|
1392
|
-
completed: "completed";
|
|
1393
|
-
}>;
|
|
1394
|
-
removed: z.ZodObject<{
|
|
1395
|
-
events: z.ZodNumber;
|
|
1396
|
-
transactions: z.ZodNumber;
|
|
1397
|
-
spans: z.ZodNumber;
|
|
1398
|
-
logs: z.ZodNumber;
|
|
1399
|
-
issues_removed: z.ZodNumber;
|
|
1400
|
-
source_maps: z.ZodDefault<z.ZodNumber>;
|
|
1401
|
-
}, z.core.$strip>;
|
|
1402
|
-
started_at: z.ZodNullable<z.ZodString>;
|
|
1403
|
-
finished_at: z.ZodNullable<z.ZodString>;
|
|
1404
|
-
error: z.ZodNullable<z.ZodString>;
|
|
1405
|
-
}, z.core.$strip>;
|
|
1406
|
-
declare const sourceMapGcResultSchema: z.ZodObject<{
|
|
1407
|
-
files_removed: z.ZodNumber;
|
|
1408
|
-
bytes_freed: z.ZodNumber;
|
|
1409
|
-
}, z.core.$strip>;
|
|
1410
|
-
declare const storageAgeSchema: z.ZodObject<{
|
|
1411
|
-
bucket_days: z.ZodArray<z.ZodNumber>;
|
|
1412
|
-
projects: z.ZodArray<z.ZodObject<{
|
|
1413
|
-
project_id: z.ZodNumber;
|
|
1414
|
-
events: z.ZodObject<{
|
|
1415
|
-
counts: z.ZodArray<z.ZodNumber>;
|
|
1416
|
-
oldest: z.ZodNullable<z.ZodString>;
|
|
1417
|
-
}, z.core.$strip>;
|
|
1418
|
-
transactions: z.ZodObject<{
|
|
1419
|
-
counts: z.ZodArray<z.ZodNumber>;
|
|
1420
|
-
oldest: z.ZodNullable<z.ZodString>;
|
|
1421
|
-
}, z.core.$strip>;
|
|
1422
|
-
logs: z.ZodObject<{
|
|
1423
|
-
counts: z.ZodArray<z.ZodNumber>;
|
|
1424
|
-
oldest: z.ZodNullable<z.ZodString>;
|
|
1425
|
-
}, z.core.$strip>;
|
|
1426
|
-
}, z.core.$strip>>;
|
|
1427
|
-
}, z.core.$strip>;
|
|
1428
|
-
declare const retentionWindowsSchema: z.ZodObject<{
|
|
1429
|
-
events_days: z.ZodNullable<z.ZodNumber>;
|
|
1430
|
-
transactions_days: z.ZodNullable<z.ZodNumber>;
|
|
1431
|
-
logs_days: z.ZodNullable<z.ZodNumber>;
|
|
1432
|
-
}, z.core.$strip>;
|
|
1433
|
-
declare const projectRetentionSchema: z.ZodObject<{
|
|
1434
|
-
events_days: z.ZodNullable<z.ZodNumber>;
|
|
1435
|
-
transactions_days: z.ZodNullable<z.ZodNumber>;
|
|
1436
|
-
logs_days: z.ZodNullable<z.ZodNumber>;
|
|
1437
|
-
project_id: z.ZodNumber;
|
|
1438
|
-
}, z.core.$strip>;
|
|
1439
|
-
declare const retentionSettingsSchema: z.ZodObject<{
|
|
1440
|
-
defaults: z.ZodObject<{
|
|
1441
|
-
events_days: z.ZodNullable<z.ZodNumber>;
|
|
1442
|
-
transactions_days: z.ZodNullable<z.ZodNumber>;
|
|
1443
|
-
logs_days: z.ZodNullable<z.ZodNumber>;
|
|
1444
|
-
}, z.core.$strip>;
|
|
1445
|
-
overrides: z.ZodArray<z.ZodObject<{
|
|
1446
|
-
events_days: z.ZodNullable<z.ZodNumber>;
|
|
1447
|
-
transactions_days: z.ZodNullable<z.ZodNumber>;
|
|
1448
|
-
logs_days: z.ZodNullable<z.ZodNumber>;
|
|
1449
|
-
project_id: z.ZodNumber;
|
|
1450
|
-
}, z.core.$strip>>;
|
|
1451
|
-
frequency: z.ZodEnum<{
|
|
1452
|
-
daily: "daily";
|
|
1453
|
-
weekly: "weekly";
|
|
1454
|
-
}>;
|
|
1455
|
-
hour: z.ZodNumber;
|
|
1456
|
-
weekday: z.ZodNumber;
|
|
1457
|
-
}, z.core.$strip>;
|
|
1458
|
-
declare const retentionRunSchema: z.ZodObject<{
|
|
1459
|
-
started_at: z.ZodString;
|
|
1460
|
-
finished_at: z.ZodNullable<z.ZodString>;
|
|
1461
|
-
status: z.ZodEnum<{
|
|
1462
|
-
error: "error";
|
|
1463
|
-
ok: "ok";
|
|
1464
|
-
running: "running";
|
|
1465
|
-
}>;
|
|
1466
|
-
removed: z.ZodNullable<z.ZodObject<{
|
|
1467
|
-
events: z.ZodNumber;
|
|
1468
|
-
transactions: z.ZodNumber;
|
|
1469
|
-
spans: z.ZodNumber;
|
|
1470
|
-
logs: z.ZodNumber;
|
|
1471
|
-
issues_removed: z.ZodNumber;
|
|
1472
|
-
source_maps: z.ZodDefault<z.ZodNumber>;
|
|
1473
|
-
}, z.core.$strip>>;
|
|
1474
|
-
error: z.ZodNullable<z.ZodString>;
|
|
1475
|
-
}, z.core.$strip>;
|
|
1476
|
-
declare const retentionSchema: z.ZodObject<{
|
|
1477
|
-
settings: z.ZodObject<{
|
|
1478
|
-
defaults: z.ZodObject<{
|
|
1479
|
-
events_days: z.ZodNullable<z.ZodNumber>;
|
|
1480
|
-
transactions_days: z.ZodNullable<z.ZodNumber>;
|
|
1481
|
-
logs_days: z.ZodNullable<z.ZodNumber>;
|
|
1482
|
-
}, z.core.$strip>;
|
|
1483
|
-
overrides: z.ZodArray<z.ZodObject<{
|
|
1484
|
-
events_days: z.ZodNullable<z.ZodNumber>;
|
|
1485
|
-
transactions_days: z.ZodNullable<z.ZodNumber>;
|
|
1486
|
-
logs_days: z.ZodNullable<z.ZodNumber>;
|
|
1487
|
-
project_id: z.ZodNumber;
|
|
1488
|
-
}, z.core.$strip>>;
|
|
1489
|
-
frequency: z.ZodEnum<{
|
|
1490
|
-
daily: "daily";
|
|
1491
|
-
weekly: "weekly";
|
|
1492
|
-
}>;
|
|
1493
|
-
hour: z.ZodNumber;
|
|
1494
|
-
weekday: z.ZodNumber;
|
|
1495
|
-
}, z.core.$strip>;
|
|
1496
|
-
next_run_at: z.ZodNullable<z.ZodString>;
|
|
1497
|
-
last_run: z.ZodNullable<z.ZodObject<{
|
|
1498
|
-
started_at: z.ZodString;
|
|
1499
|
-
finished_at: z.ZodNullable<z.ZodString>;
|
|
1500
|
-
status: z.ZodEnum<{
|
|
1501
|
-
error: "error";
|
|
1502
|
-
ok: "ok";
|
|
1503
|
-
running: "running";
|
|
1504
|
-
}>;
|
|
1505
|
-
removed: z.ZodNullable<z.ZodObject<{
|
|
1506
|
-
events: z.ZodNumber;
|
|
1507
|
-
transactions: z.ZodNumber;
|
|
1508
|
-
spans: z.ZodNumber;
|
|
1509
|
-
logs: z.ZodNumber;
|
|
1510
|
-
issues_removed: z.ZodNumber;
|
|
1511
|
-
source_maps: z.ZodDefault<z.ZodNumber>;
|
|
1512
|
-
}, z.core.$strip>>;
|
|
1513
|
-
error: z.ZodNullable<z.ZodString>;
|
|
1514
|
-
}, z.core.$strip>>;
|
|
1515
|
-
}, z.core.$strip>;
|
|
1516
|
-
declare const cleanupOptionsSchema: z.ZodObject<{
|
|
1517
|
-
older_than_days: z.ZodNumber;
|
|
1518
|
-
project_id: z.ZodOptional<z.ZodNumber>;
|
|
1519
|
-
include_events: z.ZodOptional<z.ZodBoolean>;
|
|
1520
|
-
include_transactions: z.ZodOptional<z.ZodBoolean>;
|
|
1521
|
-
include_logs: z.ZodOptional<z.ZodBoolean>;
|
|
1522
|
-
}, z.core.$strip>;
|
|
1523
|
-
|
|
1524
|
-
type SourceMapStorage = z.infer<typeof sourceMapStorageSchema>;
|
|
1525
|
-
type StorageSummary = z.infer<typeof storageSummarySchema>;
|
|
1526
|
-
type ProjectStorage = z.infer<typeof projectStorageSchema>;
|
|
1527
|
-
type CleanupCounts = z.infer<typeof cleanupCountsSchema>;
|
|
1528
|
-
type CleanupStatus = z.infer<typeof cleanupStatusSchema>;
|
|
1529
|
-
type SourceMapGcResult = z.infer<typeof sourceMapGcResultSchema>;
|
|
1530
|
-
type CleanupOptions = z.infer<typeof cleanupOptionsSchema>;
|
|
1531
|
-
type RetentionWindows = z.infer<typeof retentionWindowsSchema>;
|
|
1532
|
-
type ProjectRetention = z.infer<typeof projectRetentionSchema>;
|
|
1533
|
-
type RetentionSettings = z.infer<typeof retentionSettingsSchema>;
|
|
1534
|
-
type RetentionRun = z.infer<typeof retentionRunSchema>;
|
|
1535
|
-
type StorageAge = z.infer<typeof storageAgeSchema>;
|
|
1536
|
-
type Retention = z.infer<typeof retentionSchema>;
|
|
1537
|
-
|
|
1538
|
-
declare const globalRoleSchema: z.ZodEnum<{
|
|
1539
|
-
admin: "admin";
|
|
1540
|
-
member: "member";
|
|
1541
|
-
}>;
|
|
1542
|
-
declare const teamMemberSchema: z.ZodObject<{
|
|
1543
|
-
id: z.ZodNumber;
|
|
1544
|
-
email: z.ZodString;
|
|
1545
|
-
role: z.ZodEnum<{
|
|
1546
|
-
admin: "admin";
|
|
1547
|
-
member: "member";
|
|
1548
|
-
}>;
|
|
1549
|
-
is_active: z.ZodBoolean;
|
|
1550
|
-
is_primary: z.ZodOptional<z.ZodBoolean>;
|
|
1551
|
-
created_at: z.ZodString;
|
|
1552
|
-
last_login: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1553
|
-
}, z.core.$strip>;
|
|
1554
|
-
declare const updateUserRoleSchema: z.ZodObject<{
|
|
1555
|
-
role: z.ZodEnum<{
|
|
1556
|
-
admin: "admin";
|
|
1557
|
-
member: "member";
|
|
1558
|
-
}>;
|
|
1559
|
-
}, z.core.$strip>;
|
|
1560
|
-
|
|
1561
|
-
type GlobalRole = z.infer<typeof globalRoleSchema>;
|
|
1562
|
-
type TeamMember = z.infer<typeof teamMemberSchema>;
|
|
1563
|
-
type UpdateUserRole = z.infer<typeof updateUserRoleSchema>;
|
|
1564
|
-
|
|
1565
|
-
declare const authTokenSchema: z.ZodObject<{
|
|
1566
|
-
id: z.ZodNumber;
|
|
1567
|
-
token_prefix: z.ZodString;
|
|
1568
|
-
description: z.ZodNullable<z.ZodString>;
|
|
1569
|
-
created_at: z.ZodString;
|
|
1570
|
-
last_used_at: z.ZodNullable<z.ZodString>;
|
|
1571
|
-
}, z.core.$strip>;
|
|
1572
|
-
declare const authTokenCreatedSchema: z.ZodObject<{
|
|
1573
|
-
id: z.ZodNumber;
|
|
1574
|
-
token: z.ZodString;
|
|
1575
|
-
description: z.ZodNullable<z.ZodString>;
|
|
1576
|
-
created_at: z.ZodString;
|
|
1577
|
-
}, z.core.$strip>;
|
|
1578
|
-
declare const createAuthTokenSchema: z.ZodObject<{
|
|
1579
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1580
|
-
}, z.core.$strip>;
|
|
1581
|
-
|
|
1582
|
-
type AuthToken = z.infer<typeof authTokenSchema>;
|
|
1583
|
-
type AuthTokenCreated = z.infer<typeof authTokenCreatedSchema>;
|
|
1584
|
-
type CreateAuthToken = z.infer<typeof createAuthTokenSchema>;
|
|
1585
|
-
|
|
1586
|
-
declare const transactionSchema: z.ZodObject<{
|
|
1587
|
-
id: z.ZodString;
|
|
1588
|
-
event_id: z.ZodString;
|
|
1589
|
-
transaction_name: z.ZodString;
|
|
1590
|
-
timestamp: z.ZodString;
|
|
1591
|
-
start_timestamp: z.ZodNullable<z.ZodString>;
|
|
1592
|
-
duration_ms: z.ZodNullable<z.ZodNumber>;
|
|
1593
|
-
platform: z.ZodString;
|
|
1594
|
-
environment: z.ZodString;
|
|
1595
|
-
release: z.ZodString;
|
|
1596
|
-
ingested_at: z.ZodString;
|
|
1597
|
-
}, z.core.$strip>;
|
|
1598
|
-
declare const transactionDetailSchema: z.ZodObject<{
|
|
1599
|
-
id: z.ZodString;
|
|
1600
|
-
event_id: z.ZodString;
|
|
1601
|
-
transaction_name: z.ZodString;
|
|
1602
|
-
timestamp: z.ZodString;
|
|
1603
|
-
start_timestamp: z.ZodNullable<z.ZodString>;
|
|
1604
|
-
duration_ms: z.ZodNullable<z.ZodNumber>;
|
|
1605
|
-
platform: z.ZodString;
|
|
1606
|
-
environment: z.ZodString;
|
|
1607
|
-
release: z.ZodString;
|
|
1608
|
-
ingested_at: z.ZodString;
|
|
1609
|
-
data: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1610
|
-
}, z.core.$strip>;
|
|
1611
|
-
declare const spanSchema: z.ZodObject<{
|
|
1612
|
-
id: z.ZodString;
|
|
1613
|
-
transaction_id: z.ZodNullable<z.ZodString>;
|
|
1614
|
-
span_id: z.ZodNullable<z.ZodString>;
|
|
1615
|
-
trace_id: z.ZodNullable<z.ZodString>;
|
|
1616
|
-
parent_span_id: z.ZodNullable<z.ZodString>;
|
|
1617
|
-
op: z.ZodNullable<z.ZodString>;
|
|
1618
|
-
description: z.ZodNullable<z.ZodString>;
|
|
1619
|
-
status: z.ZodNullable<z.ZodString>;
|
|
1620
|
-
start_timestamp: z.ZodNullable<z.ZodString>;
|
|
1621
|
-
timestamp: z.ZodNullable<z.ZodString>;
|
|
1622
|
-
duration_ms: z.ZodNullable<z.ZodNumber>;
|
|
1623
|
-
exclusive_time_ms: z.ZodNullable<z.ZodNumber>;
|
|
1624
|
-
is_segment: z.ZodBoolean;
|
|
1625
|
-
segment_id: z.ZodNullable<z.ZodString>;
|
|
1626
|
-
platform: z.ZodNullable<z.ZodString>;
|
|
1627
|
-
release: z.ZodNullable<z.ZodString>;
|
|
1628
|
-
environment: z.ZodNullable<z.ZodString>;
|
|
1629
|
-
gen_ai_operation_type: z.ZodNullable<z.ZodString>;
|
|
1630
|
-
gen_ai_agent_name: z.ZodNullable<z.ZodString>;
|
|
1631
|
-
gen_ai_request_model: z.ZodNullable<z.ZodString>;
|
|
1632
|
-
gen_ai_response_model: z.ZodNullable<z.ZodString>;
|
|
1633
|
-
gen_ai_tool_name: z.ZodNullable<z.ZodString>;
|
|
1634
|
-
gen_ai_conversation_id: z.ZodNullable<z.ZodString>;
|
|
1635
|
-
gen_ai_usage_input_tokens: z.ZodNullable<z.ZodNumber>;
|
|
1636
|
-
gen_ai_usage_output_tokens: z.ZodNullable<z.ZodNumber>;
|
|
1637
|
-
gen_ai_usage_total_tokens: z.ZodNullable<z.ZodNumber>;
|
|
1638
|
-
}, z.core.$strip>;
|
|
1639
|
-
declare const spanDetailSchema: z.ZodObject<{
|
|
1640
|
-
id: z.ZodString;
|
|
1641
|
-
transaction_id: z.ZodNullable<z.ZodString>;
|
|
1642
|
-
span_id: z.ZodNullable<z.ZodString>;
|
|
1643
|
-
trace_id: z.ZodNullable<z.ZodString>;
|
|
1644
|
-
parent_span_id: z.ZodNullable<z.ZodString>;
|
|
1645
|
-
op: z.ZodNullable<z.ZodString>;
|
|
1646
|
-
description: z.ZodNullable<z.ZodString>;
|
|
1647
|
-
status: z.ZodNullable<z.ZodString>;
|
|
1648
|
-
start_timestamp: z.ZodNullable<z.ZodString>;
|
|
1649
|
-
timestamp: z.ZodNullable<z.ZodString>;
|
|
1650
|
-
duration_ms: z.ZodNullable<z.ZodNumber>;
|
|
1651
|
-
exclusive_time_ms: z.ZodNullable<z.ZodNumber>;
|
|
1652
|
-
is_segment: z.ZodBoolean;
|
|
1653
|
-
segment_id: z.ZodNullable<z.ZodString>;
|
|
1654
|
-
platform: z.ZodNullable<z.ZodString>;
|
|
1655
|
-
release: z.ZodNullable<z.ZodString>;
|
|
1656
|
-
environment: z.ZodNullable<z.ZodString>;
|
|
1657
|
-
gen_ai_operation_type: z.ZodNullable<z.ZodString>;
|
|
1658
|
-
gen_ai_agent_name: z.ZodNullable<z.ZodString>;
|
|
1659
|
-
gen_ai_request_model: z.ZodNullable<z.ZodString>;
|
|
1660
|
-
gen_ai_response_model: z.ZodNullable<z.ZodString>;
|
|
1661
|
-
gen_ai_tool_name: z.ZodNullable<z.ZodString>;
|
|
1662
|
-
gen_ai_conversation_id: z.ZodNullable<z.ZodString>;
|
|
1663
|
-
gen_ai_usage_input_tokens: z.ZodNullable<z.ZodNumber>;
|
|
1664
|
-
gen_ai_usage_output_tokens: z.ZodNullable<z.ZodNumber>;
|
|
1665
|
-
gen_ai_usage_total_tokens: z.ZodNullable<z.ZodNumber>;
|
|
1666
|
-
attributes: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1667
|
-
tags: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1668
|
-
}, z.core.$strip>;
|
|
1669
|
-
declare const transactionStatsSchema: z.ZodObject<{
|
|
1670
|
-
transaction_name: z.ZodString;
|
|
1671
|
-
op: z.ZodNullable<z.ZodString>;
|
|
1672
|
-
count: z.ZodNumber;
|
|
1673
|
-
p50_ms: z.ZodNumber;
|
|
1674
|
-
p95_ms: z.ZodNumber;
|
|
1675
|
-
p99_ms: z.ZodNumber;
|
|
1676
|
-
failure_rate: z.ZodNumber;
|
|
1677
|
-
}, z.core.$strip>;
|
|
1678
|
-
|
|
1679
|
-
type Transaction = z.infer<typeof transactionSchema>;
|
|
1680
|
-
type TransactionDetail = z.infer<typeof transactionDetailSchema>;
|
|
1681
|
-
type Span = z.infer<typeof spanSchema>;
|
|
1682
|
-
type SpanDetail = z.infer<typeof spanDetailSchema>;
|
|
1683
|
-
type TransactionStats = z.infer<typeof transactionStatsSchema>;
|
|
1684
|
-
interface ListSpansOptions {
|
|
1685
|
-
page?: number;
|
|
1686
|
-
per_page?: number;
|
|
1687
|
-
op?: string;
|
|
1688
|
-
status?: string;
|
|
1689
|
-
trace_id?: string;
|
|
1690
|
-
operation_type?: string;
|
|
1691
|
-
}
|
|
1692
|
-
|
|
1693
|
-
declare const userSchema: z.ZodObject<{
|
|
1694
|
-
id: z.ZodNumber;
|
|
1695
|
-
email: z.ZodString;
|
|
1696
|
-
role: z.ZodEnum<{
|
|
1697
|
-
admin: "admin";
|
|
1698
|
-
member: "member";
|
|
1699
|
-
}>;
|
|
1700
|
-
is_admin: z.ZodBoolean;
|
|
1701
|
-
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1702
|
-
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1703
|
-
}, z.core.$strip>;
|
|
1704
|
-
declare const updatePreferencesRequestSchema: z.ZodObject<{
|
|
1705
|
-
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1706
|
-
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1707
|
-
}, z.core.$strip>;
|
|
1708
|
-
declare const authResponseSchema: z.ZodObject<{
|
|
1709
|
-
user: z.ZodObject<{
|
|
1710
|
-
id: z.ZodNumber;
|
|
1711
|
-
email: z.ZodString;
|
|
1712
|
-
role: z.ZodEnum<{
|
|
1713
|
-
admin: "admin";
|
|
1714
|
-
member: "member";
|
|
1715
|
-
}>;
|
|
1716
|
-
is_admin: z.ZodBoolean;
|
|
1717
|
-
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1718
|
-
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1719
|
-
}, z.core.$strip>;
|
|
1720
|
-
}, z.core.$strip>;
|
|
1721
|
-
declare const loginResultSchema: z.ZodObject<{
|
|
1722
|
-
user: z.ZodObject<{
|
|
1723
|
-
id: z.ZodNumber;
|
|
1724
|
-
email: z.ZodString;
|
|
1725
|
-
role: z.ZodEnum<{
|
|
1726
|
-
admin: "admin";
|
|
1727
|
-
member: "member";
|
|
1728
|
-
}>;
|
|
1729
|
-
is_admin: z.ZodBoolean;
|
|
1730
|
-
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1731
|
-
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1732
|
-
}, z.core.$strip>;
|
|
1733
|
-
cookies: z.ZodArray<z.ZodString>;
|
|
1734
|
-
}, z.core.$strip>;
|
|
1735
|
-
declare const loginRequestSchema: z.ZodObject<{
|
|
1736
|
-
email: z.ZodString;
|
|
1737
|
-
password: z.ZodString;
|
|
1738
|
-
}, z.core.$strip>;
|
|
1739
|
-
declare const registerRequestSchema: z.ZodObject<{
|
|
1740
|
-
email: z.ZodString;
|
|
1741
|
-
password: z.ZodString;
|
|
1742
|
-
}, z.core.$strip>;
|
|
1743
|
-
declare const ssoConfigSchema: z.ZodObject<{
|
|
1744
|
-
enabled: z.ZodBoolean;
|
|
1745
|
-
provider_name: z.ZodNullable<z.ZodString>;
|
|
1746
|
-
}, z.core.$strip>;
|
|
1747
|
-
declare const ssoStartSchema: z.ZodObject<{
|
|
1748
|
-
authorization_url: z.ZodString;
|
|
1749
|
-
}, z.core.$strip>;
|
|
1750
|
-
declare const ssoLinkSchema: z.ZodObject<{
|
|
1751
|
-
email: z.ZodString;
|
|
1752
|
-
provider_name: z.ZodString;
|
|
1753
|
-
}, z.core.$strip>;
|
|
1754
|
-
declare const changePasswordRequestSchema: z.ZodObject<{
|
|
1755
|
-
current_password: z.ZodString;
|
|
1756
|
-
new_password: z.ZodString;
|
|
1757
|
-
}, z.core.$strip>;
|
|
1758
|
-
|
|
1759
|
-
type User = z.infer<typeof userSchema>;
|
|
1760
|
-
type UpdatePreferencesRequest = z.infer<typeof updatePreferencesRequestSchema>;
|
|
1761
|
-
type ChangePasswordRequest = z.infer<typeof changePasswordRequestSchema>;
|
|
1762
|
-
type AuthResponse = z.infer<typeof authResponseSchema>;
|
|
1763
|
-
type LoginResult = z.infer<typeof loginResultSchema>;
|
|
1764
|
-
type LoginRequest = z.infer<typeof loginRequestSchema>;
|
|
1765
|
-
type RegisterRequest = z.infer<typeof registerRequestSchema>;
|
|
1766
|
-
type SsoConfig = z.infer<typeof ssoConfigSchema>;
|
|
1767
|
-
type SsoStart = z.infer<typeof ssoStartSchema>;
|
|
1768
|
-
type SsoLink = z.infer<typeof ssoLinkSchema>;
|
|
1769
|
-
|
|
1770
|
-
declare abstract class BaseResource {
|
|
1771
|
-
protected readonly http: KyInstance;
|
|
1772
|
-
constructor(http: KyInstance);
|
|
1773
|
-
protected validate<T>(data: unknown, schema: ZodSchema<T>): Result<T, RustrakError>;
|
|
1774
|
-
protected validateInput<T>(input: unknown, schema: ZodSchema<T>): Result<T, RustrakError>;
|
|
1775
|
-
protected requestResponse<T>(send: () => ResponsePromise, read: (response: Response) => Promise<Result<T, RustrakError>>): Promise<Result<T, RustrakError>>;
|
|
1776
|
-
protected readJson(response: Response): Promise<Result<unknown, RustrakError>>;
|
|
1777
|
-
protected request<T>(send: () => ResponsePromise, schema: ZodSchema<T>): Promise<Result<T, RustrakError>>;
|
|
1778
|
-
protected requestVoid(send: () => ResponsePromise): Promise<Result<void, RustrakError>>;
|
|
1779
|
-
}
|
|
1780
|
-
|
|
1781
|
-
declare class AgentsResource extends BaseResource {
|
|
1782
|
-
getRuns(projectId: number, options?: AgentTimeseriesOptions): Promise<Result<AgentTimeseriesPoint[], RustrakError>>;
|
|
1783
|
-
getDuration(projectId: number, options?: AgentTimeseriesOptions): Promise<Result<AgentDurationPoint[], RustrakError>>;
|
|
1784
|
-
getModelsByCalls(projectId: number, options?: AgentBreakdownOptions): Promise<Result<GenAiBreakdownRow[], RustrakError>>;
|
|
1785
|
-
getModelsByTokens(projectId: number, options?: AgentBreakdownOptions): Promise<Result<GenAiBreakdownRow[], RustrakError>>;
|
|
1786
|
-
getTools(projectId: number, options?: AgentBreakdownOptions): Promise<Result<GenAiBreakdownRow[], RustrakError>>;
|
|
1787
|
-
getTraces(projectId: number, options?: AgentTracesOptions): Promise<Result<OffsetPaginatedResponse<AgentTraceSummary>, RustrakError>>;
|
|
1788
|
-
getSummary(projectId: number, options?: AgentBreakdownOptions): Promise<Result<AgentSummary, RustrakError>>;
|
|
1789
|
-
getModelsTable(projectId: number, options?: AgentBreakdownOptions): Promise<Result<AgentModelRow[], RustrakError>>;
|
|
1790
|
-
getToolsTable(projectId: number, options?: AgentBreakdownOptions): Promise<Result<AgentToolRow[], RustrakError>>;
|
|
1791
|
-
getEnvironments(projectId: number): Promise<Result<string[], RustrakError>>;
|
|
1792
|
-
}
|
|
1793
|
-
|
|
1794
|
-
declare class AlertIntegrationsResource extends BaseResource {
|
|
1795
|
-
list(): Promise<Result<AlertIntegration[], RustrakError>>;
|
|
1796
|
-
get(id: number): Promise<Result<AlertIntegration, RustrakError>>;
|
|
1797
|
-
create(input: CreateAlertIntegration): Promise<Result<AlertIntegration, RustrakError>>;
|
|
1798
|
-
update(id: number, input: UpdateAlertIntegration): Promise<Result<AlertIntegration, RustrakError>>;
|
|
1799
|
-
delete(id: number): Promise<Result<void, RustrakError>>;
|
|
1800
|
-
test(id: number, routingOverride?: RoutingOverride): Promise<Result<TestChannelResponse, RustrakError>>;
|
|
1801
|
-
previewTemplate(template: string): Promise<Result<PreviewTemplateResponse, RustrakError>>;
|
|
1802
|
-
}
|
|
1803
|
-
|
|
1804
|
-
declare class AlertRulesResource extends BaseResource {
|
|
1805
|
-
list(projectId: number): Promise<Result<AlertRule[], RustrakError>>;
|
|
1806
|
-
get(projectId: number, ruleId: number): Promise<Result<AlertRule, RustrakError>>;
|
|
1807
|
-
create(projectId: number, input: CreateAlertRule): Promise<Result<AlertRule, RustrakError>>;
|
|
1808
|
-
update(projectId: number, ruleId: number, input: UpdateAlertRule): Promise<Result<AlertRule, RustrakError>>;
|
|
1809
|
-
delete(projectId: number, ruleId: number): Promise<Result<void, RustrakError>>;
|
|
1810
|
-
listHistory(projectId: number, options?: ListAlertHistoryOptions): Promise<Result<AlertHistory[], RustrakError>>;
|
|
1811
|
-
}
|
|
1812
|
-
|
|
1813
|
-
declare class AuthResource extends BaseResource {
|
|
1814
|
-
getSsoConfig(): Promise<Result<SsoConfig, RustrakError>>;
|
|
1815
|
-
startSso(): Promise<Result<{
|
|
1816
|
-
authorizationUrl: string;
|
|
1817
|
-
cookies: string[];
|
|
1818
|
-
}, RustrakError>>;
|
|
1819
|
-
getSsoLink(): Promise<Result<SsoLink, RustrakError>>;
|
|
1820
|
-
confirmSsoLink(password: string): Promise<Result<LoginResult, RustrakError>>;
|
|
1821
|
-
completeSso(callback: {
|
|
1822
|
-
code?: string;
|
|
1823
|
-
state?: string;
|
|
1824
|
-
error?: string;
|
|
1825
|
-
}): Promise<Result<LoginResult, RustrakError>>;
|
|
1826
|
-
register(credentials: RegisterRequest): Promise<Result<LoginResult, RustrakError>>;
|
|
1827
|
-
login(credentials: LoginRequest): Promise<Result<LoginResult, RustrakError>>;
|
|
1828
|
-
logout(): Promise<Result<string[], RustrakError>>;
|
|
1829
|
-
getCurrentUser(): Promise<Result<User, RustrakError>>;
|
|
1830
|
-
updatePreferences(preferences: UpdatePreferencesRequest): Promise<Result<User, RustrakError>>;
|
|
1831
|
-
changePassword(request: ChangePasswordRequest): Promise<Result<void, RustrakError>>;
|
|
1832
|
-
getInvitation(token: string): Promise<Result<InvitationInfo, RustrakError>>;
|
|
1833
|
-
acceptInvitation(input: AcceptInvitation): Promise<Result<LoginResult, RustrakError>>;
|
|
1834
|
-
private readLoginResult;
|
|
1835
|
-
}
|
|
1836
|
-
|
|
1837
|
-
declare class EventsResource extends BaseResource {
|
|
1838
|
-
list(projectId: number, issueId: string, options?: ListEventsOptions): Promise<Result<PaginatedResponse<Event>, RustrakError>>;
|
|
1839
|
-
get(projectId: number, issueId: string, eventId: string): Promise<Result<EventDetail, RustrakError>>;
|
|
1840
|
-
getBySentryId(projectId: number, eventId: string): Promise<Result<EventDetail, RustrakError>>;
|
|
1841
|
-
}
|
|
1842
|
-
|
|
1843
|
-
declare class GitHubResource extends BaseResource {
|
|
1844
|
-
status(): Promise<Result<GitHubStatus, RustrakError>>;
|
|
1845
|
-
manifest(organization?: string): Promise<Result<GitHubManifest, RustrakError>>;
|
|
1846
|
-
disconnect(): Promise<Result<void, RustrakError>>;
|
|
1847
|
-
repositories(projectId: number): Promise<Result<GitHubRepository[], RustrakError>>;
|
|
1848
|
-
projectRepository(projectId: number): Promise<Result<ProjectRepository | null, RustrakError>>;
|
|
1849
|
-
setProjectRepository(projectId: number, input: UpdateProjectRepository): Promise<Result<ProjectRepository, RustrakError>>;
|
|
1850
|
-
removeProjectRepository(projectId: number): Promise<Result<void, RustrakError>>;
|
|
1851
|
-
syncCodeowners(projectId: number): Promise<Result<ProjectRepository, RustrakError>>;
|
|
1852
|
-
issue(projectId: number, issueId: string): Promise<Result<IssueGitHub, RustrakError>>;
|
|
1853
|
-
createIssue(projectId: number, issueId: string, input?: {
|
|
1854
|
-
title?: string;
|
|
1855
|
-
body?: string;
|
|
1856
|
-
}): Promise<Result<IssueLink, RustrakError>>;
|
|
1857
|
-
linkIssue(projectId: number, issueId: string, reference: string): Promise<Result<IssueLink, RustrakError>>;
|
|
1858
|
-
unlinkIssue(projectId: number, issueId: string, linkId: number): Promise<Result<void, RustrakError>>;
|
|
1859
|
-
myLogin(): Promise<Result<{
|
|
1860
|
-
login: string | null;
|
|
1861
|
-
}, RustrakError>>;
|
|
1862
|
-
setMyLogin(login: string | null): Promise<Result<{
|
|
1863
|
-
login: string | null;
|
|
1864
|
-
}, RustrakError>>;
|
|
1865
|
-
}
|
|
1866
|
-
|
|
1867
|
-
declare class HealthResource extends BaseResource {
|
|
1868
|
-
getVersion(): Promise<Result<ServerVersion, RustrakError>>;
|
|
1869
|
-
}
|
|
1870
|
-
|
|
1871
|
-
declare class InvitationsResource extends BaseResource {
|
|
1872
|
-
create(input: CreateInvitation): Promise<Result<Invitation, RustrakError>>;
|
|
1873
|
-
list(): Promise<Result<Invitation[], RustrakError>>;
|
|
1874
|
-
revoke(token: string): Promise<Result<void, RustrakError>>;
|
|
1875
|
-
}
|
|
1876
|
-
|
|
1877
|
-
declare class IssuesResource extends BaseResource {
|
|
1878
|
-
list(projectId: number, options?: ListIssuesOptions): Promise<Result<OffsetPaginatedResponse<Issue>, RustrakError>>;
|
|
1879
|
-
get(projectId: number, issueId: string): Promise<Result<Issue, RustrakError>>;
|
|
1880
|
-
updateState(projectId: number, issueId: string, input: UpdateIssueState): Promise<Result<Issue, RustrakError>>;
|
|
1881
|
-
resolveInNextRelease(projectId: number, issueId: string): Promise<Result<Issue, RustrakError>>;
|
|
1882
|
-
delete(projectId: number, issueId: string): Promise<Result<void, RustrakError>>;
|
|
1883
|
-
bulkUpdate(projectId: number, input: BulkUpdateIssues): Promise<Result<{
|
|
1884
|
-
updated: number;
|
|
1885
|
-
}, RustrakError>>;
|
|
1886
|
-
bulkDelete(projectId: number, input: BulkDeleteIssues): Promise<Result<{
|
|
1887
|
-
deleted: number;
|
|
1888
|
-
}, RustrakError>>;
|
|
1889
|
-
getHashes(projectId: number, issueId: string): Promise<Result<IssueHash[], RustrakError>>;
|
|
1890
|
-
getTagValues(projectId: number, issueId: string, key: string): Promise<Result<IssueTagValue[], RustrakError>>;
|
|
1891
|
-
getAggregates(projectId: number, issueId: string): Promise<Result<IssueAggregates, RustrakError>>;
|
|
1892
|
-
getStats(projectId: number, issueId: string, window?: IssueStatsWindow): Promise<Result<IssueStats, RustrakError>>;
|
|
1893
|
-
getActivity(projectId: number, issueId: string): Promise<Result<ActivityEntry[], RustrakError>>;
|
|
1894
|
-
addComment(projectId: number, issueId: string, input: CreateComment): Promise<Result<ActivityEntry, RustrakError>>;
|
|
1895
|
-
setBookmark(projectId: number, issueId: string, enabled: boolean): Promise<Result<{
|
|
1896
|
-
is_bookmarked: boolean;
|
|
1897
|
-
}, RustrakError>>;
|
|
1898
|
-
setSubscription(projectId: number, issueId: string, enabled: boolean): Promise<Result<{
|
|
1899
|
-
is_subscribed: boolean;
|
|
1900
|
-
}, RustrakError>>;
|
|
1901
|
-
markSeen(projectId: number, issueId: string): Promise<Result<{
|
|
1902
|
-
has_seen: boolean;
|
|
1903
|
-
}, RustrakError>>;
|
|
1904
|
-
listUserReports(projectId: number, issueId: string): Promise<Result<UserReport[], RustrakError>>;
|
|
1905
|
-
createUserReport(projectId: number, issueId: string, input: CreateUserReport): Promise<Result<UserReport, RustrakError>>;
|
|
1906
|
-
}
|
|
1907
|
-
|
|
1908
|
-
declare class LogsResource extends BaseResource {
|
|
1909
|
-
list(projectId: number, options?: ListLogsOptions): Promise<Result<OffsetPaginatedResponse<Log>, RustrakError>>;
|
|
1910
|
-
}
|
|
1911
|
-
|
|
1912
|
-
declare class MembersResource extends BaseResource {
|
|
1913
|
-
list(projectId: number): Promise<Result<ProjectMember[], RustrakError>>;
|
|
1914
|
-
upsert(projectId: number, input: UpsertProjectMember): Promise<Result<void, RustrakError>>;
|
|
1915
|
-
remove(projectId: number, userId: number): Promise<Result<void, RustrakError>>;
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
declare class MonitorsResource extends BaseResource {
|
|
1919
|
-
list(projectId: number): Promise<Result<Monitor[], RustrakError>>;
|
|
1920
|
-
get(projectId: number, slug: string): Promise<Result<Monitor, RustrakError>>;
|
|
1921
|
-
create(projectId: number, input: CreateMonitor): Promise<Result<Monitor, RustrakError>>;
|
|
1922
|
-
update(projectId: number, slug: string, input: UpdateMonitor): Promise<Result<Monitor, RustrakError>>;
|
|
1923
|
-
delete(projectId: number, slug: string): Promise<Result<void, RustrakError>>;
|
|
1924
|
-
listCheckIns(projectId: number, slug: string, options?: ListCheckInsOptions): Promise<Result<OffsetPaginatedResponse<CheckIn>, RustrakError>>;
|
|
1925
|
-
}
|
|
1926
|
-
|
|
1927
|
-
declare class ProjectsResource extends BaseResource {
|
|
1928
|
-
list(options?: ListProjectsOptions): Promise<Result<OffsetPaginatedResponse<Project>, RustrakError>>;
|
|
1929
|
-
rateLimits(): Promise<Result<RateLimits, RustrakError>>;
|
|
1930
|
-
get(id: number): Promise<Result<Project, RustrakError>>;
|
|
1931
|
-
create(input: CreateProject): Promise<Result<Project, RustrakError>>;
|
|
1932
|
-
update(id: number, input: UpdateProject): Promise<Result<Project, RustrakError>>;
|
|
1933
|
-
delete(id: number): Promise<Result<void, RustrakError>>;
|
|
1934
|
-
}
|
|
1935
|
-
|
|
1936
|
-
declare class ReleasesResource extends BaseResource {
|
|
1937
|
-
newIssues(projectId: number, release: string, limit?: number): Promise<Result<Issue[], RustrakError>>;
|
|
1938
|
-
}
|
|
1939
|
-
|
|
1940
|
-
declare class SchedulesResource extends BaseResource {
|
|
1941
|
-
preview(input: PreviewSchedule): Promise<Result<SchedulePreview, RustrakError>>;
|
|
1942
|
-
}
|
|
1943
|
-
|
|
1944
|
-
declare class SessionsResource extends BaseResource {
|
|
1945
|
-
stats(projectId: number, options?: ReleaseHealthStatsOptions): Promise<Result<OffsetPaginatedResponse<ReleaseHealthRow>, RustrakError>>;
|
|
1946
|
-
summary(projectId: number, period?: string): Promise<Result<SessionSummary, RustrakError>>;
|
|
1947
|
-
timeseries(projectId: number, period?: string, interval?: number): Promise<Result<SessionTimeseries, RustrakError>>;
|
|
1948
|
-
}
|
|
1949
|
-
|
|
1950
|
-
declare class SourceMapsResource extends BaseResource {
|
|
1951
|
-
getChunkUploadCapability(orgSlug: string): Promise<Result<ChunkUploadCapability, RustrakError>>;
|
|
1952
|
-
uploadChunks(orgSlug: string, chunks: {
|
|
1953
|
-
hash: string;
|
|
1954
|
-
data: Blob;
|
|
1955
|
-
}[], chunksPerRequest?: number): Promise<Result<void, RustrakError>>;
|
|
1956
|
-
assembleBundle(orgSlug: string, input: AssembleInput): Promise<Result<AssembleResponse, RustrakError>>;
|
|
1957
|
-
list(orgSlug: string, projectSlug: string): Promise<Result<ListSourceMapsResponse, RustrakError>>;
|
|
1958
|
-
}
|
|
1959
|
-
|
|
1960
|
-
declare class SpansResource extends BaseResource {
|
|
1961
|
-
list(projectId: number, options?: ListSpansOptions): Promise<Result<OffsetPaginatedResponse<Span>, RustrakError>>;
|
|
1962
|
-
get(projectId: number, spanId: string): Promise<Result<SpanDetail, RustrakError>>;
|
|
1963
|
-
}
|
|
1964
|
-
|
|
1965
|
-
declare class StatsResource extends BaseResource {
|
|
1966
|
-
timeseries(projectId: number, period?: string, interval?: number): Promise<Result<EventTimeseries, RustrakError>>;
|
|
1967
|
-
summary(projectId: number, period?: string): Promise<Result<ProjectStatsSummary, RustrakError>>;
|
|
1968
|
-
}
|
|
1969
|
-
|
|
1970
|
-
declare class StorageResource extends BaseResource {
|
|
1971
|
-
getSummary(): Promise<Result<StorageSummary, RustrakError>>;
|
|
1972
|
-
getProjects(): Promise<Result<ProjectStorage[], RustrakError>>;
|
|
1973
|
-
previewCleanup(options: CleanupOptions): Promise<Result<CleanupCounts, RustrakError>>;
|
|
1974
|
-
executeCleanup(options: CleanupOptions): Promise<Result<CleanupStatus, RustrakError>>;
|
|
1975
|
-
getCleanupStatus(): Promise<Result<CleanupStatus, RustrakError>>;
|
|
1976
|
-
previewGcSourceMaps(): Promise<Result<SourceMapGcResult, RustrakError>>;
|
|
1977
|
-
gcSourceMaps(): Promise<Result<SourceMapGcResult, RustrakError>>;
|
|
1978
|
-
getRetention(): Promise<Result<Retention, RustrakError>>;
|
|
1979
|
-
updateRetention(settings: RetentionSettings): Promise<Result<Retention, RustrakError>>;
|
|
1980
|
-
runRetention(): Promise<Result<CleanupStatus, RustrakError>>;
|
|
1981
|
-
getAge(): Promise<Result<StorageAge, RustrakError>>;
|
|
1982
|
-
previewRetention(settings: RetentionSettings): Promise<Result<CleanupCounts, RustrakError>>;
|
|
1983
|
-
}
|
|
1984
|
-
|
|
1985
|
-
declare class TeamResource extends BaseResource {
|
|
1986
|
-
list(): Promise<Result<TeamMember[], RustrakError>>;
|
|
1987
|
-
updateRole(userId: number, role: GlobalRole): Promise<Result<void, RustrakError>>;
|
|
1988
|
-
remove(userId: number): Promise<Result<void, RustrakError>>;
|
|
1989
|
-
}
|
|
1990
|
-
|
|
1991
|
-
declare class TokensResource extends BaseResource {
|
|
1992
|
-
list(): Promise<Result<AuthToken[], RustrakError>>;
|
|
1993
|
-
get(id: number): Promise<Result<AuthTokenCreated, RustrakError>>;
|
|
1994
|
-
create(input: CreateAuthToken): Promise<Result<AuthTokenCreated, RustrakError>>;
|
|
1995
|
-
delete(id: number): Promise<Result<void, RustrakError>>;
|
|
1996
|
-
}
|
|
1997
|
-
|
|
1998
|
-
declare class TransactionsResource extends BaseResource {
|
|
1999
|
-
list(projectId: number, options?: ListTransactionsOptions): Promise<Result<OffsetPaginatedResponse<Transaction>, RustrakError>>;
|
|
2000
|
-
getSpans(projectId: number, transactionId: string): Promise<Result<Span[], RustrakError>>;
|
|
2001
|
-
getStats(projectId: number, options?: {
|
|
2002
|
-
page?: number;
|
|
2003
|
-
per_page?: number;
|
|
2004
|
-
}): Promise<Result<OffsetPaginatedResponse<TransactionStats>, RustrakError>>;
|
|
2005
|
-
getStatForGroup(projectId: number, name: string, op?: string): Promise<Result<TransactionStats, RustrakError>>;
|
|
2006
|
-
get(projectId: number, transactionId: string): Promise<Result<TransactionDetail, RustrakError>>;
|
|
2007
|
-
}
|
|
2008
|
-
|
|
2009
|
-
declare class RustrakClient {
|
|
2010
|
-
private readonly http;
|
|
2011
|
-
readonly auth: AuthResource;
|
|
2012
|
-
readonly projects: ProjectsResource;
|
|
2013
|
-
readonly issues: IssuesResource;
|
|
2014
|
-
readonly events: EventsResource;
|
|
2015
|
-
readonly tokens: TokensResource;
|
|
2016
|
-
readonly alertIntegrations: AlertIntegrationsResource;
|
|
2017
|
-
readonly alertRules: AlertRulesResource;
|
|
2018
|
-
readonly sourceMaps: SourceMapsResource;
|
|
2019
|
-
readonly team: TeamResource;
|
|
2020
|
-
readonly invitations: InvitationsResource;
|
|
2021
|
-
readonly members: MembersResource;
|
|
2022
|
-
readonly sessions: SessionsResource;
|
|
2023
|
-
readonly releases: ReleasesResource;
|
|
2024
|
-
readonly transactions: TransactionsResource;
|
|
2025
|
-
readonly logs: LogsResource;
|
|
2026
|
-
readonly monitors: MonitorsResource;
|
|
2027
|
-
readonly schedules: SchedulesResource;
|
|
2028
|
-
readonly spans: SpansResource;
|
|
2029
|
-
readonly agents: AgentsResource;
|
|
2030
|
-
readonly stats: StatsResource;
|
|
2031
|
-
readonly storage: StorageResource;
|
|
2032
|
-
readonly health: HealthResource;
|
|
2033
|
-
readonly github: GitHubResource;
|
|
2034
|
-
constructor(config: ClientConfig);
|
|
2035
|
-
}
|
|
2036
|
-
|
|
2037
|
-
export { type AcceptInvitation, type ActivityEntry, type AgentBreakdownOptions, type AgentDurationPoint, type AgentModelRow, type AgentSummary, type AgentTimeseriesOptions, type AgentTimeseriesPoint, type AgentToolRow, type AgentTraceSummary, type AgentTracesOptions, type AlertHistory, type AlertIntegration, type AlertRule, type AlertRuleChannelInput, type AlertRuleConditions, type AlertStatus, type AlertType, type ApiError, type AssembleInput, type AssembleResponse, type AuthResponse, type AuthToken, type AuthTokenCreated, type BulkDeleteIssues, type BulkUpdateIssues, type ChangePasswordRequest, type CheckIn, type CheckInStatus, type ChunkUploadCapability, type CleanupCounts, type CleanupOptions, type CleanupStatus, type ClientConfig, type CodeMapping, type CreateAlertIntegration, type CreateAlertRule, type CreateAuthToken, type CreateComment, type CreateInvitation, type CreateMonitor, type CreateProject, type CreateUserReport, Err, type Event, type EventDetail, type EventTimeseries, type EventTimeseriesPoint, FIELD_ERROR_CODES, type FieldError, type FieldErrorCode, type GenAiBreakdownRow, type GitHubInstallation, type GitHubManifest, type GitHubRepository, type GitHubStatus, type GlobalRole, type IntervalUnit, type Invitation, type InvitationInfo, type Issue, type IssueAggregates, type IssueFilter, type IssueGitHub, type IssueHash, type IssueLink, type IssuePriority, type IssueSort, type IssueStats, type IssueStatsWindow, type IssueStatus, type IssueTagValue, type ListAlertHistoryOptions, type ListCheckInsOptions, type ListEventsOptions, type ListIssuesOptions, type ListLogsOptions, type ListProjectsOptions, type ListSourceMapsResponse, type ListSpansOptions, type ListTransactionsOptions, type Log, type LoginRequest, type LoginResult, type MetricDelta, type Monitor, type MonitorConfig, type MonitorConfigInput, type MonitorEnvironment, type MonitorEnvironmentStatus, NETWORK_ERROR_MESSAGE, type OffsetPaginatedResponse, Ok, type PaginatedResponse, type PreviewSchedule, type PreviewTemplateResponse, type Project, type ProjectListStats, type ProjectMember, type ProjectRepository, type ProjectRetention, type ProjectRole, type ProjectStatsSummary, type ProjectStorage, type ProviderType, type RateLimits, type RegisterRequest, type ReleaseHealthRow, type ReleaseHealthStatsOptions, type RepoCommit, type Result, type Retention, type RetentionRun, type RetentionSettings, type RetentionWindows, type RoutingOverride, RustrakClient, type RustrakError, type RustrakErrorKind, SERVER_ERROR_MESSAGE, type Schedule, type SchedulePreview, type ServerVersion, type SessionSummary, type SessionTimeseries, type SessionTimeseriesPoint, type SortOrder, type SourceMapFile, type SourceMapGcResult, type SourceMapStorage, type Span, type SpanDetail, type SsoConfig, type SsoLink, type SsoStart, type StorageAge, type StorageSummary, TIMEOUT_ERROR_MESSAGE, type TagSummary, type TagValueCount, type TeamMember, type TestChannelResponse, type TestIntegrationBody, type Transaction, type TransactionDetail, type TransactionStats, type UpdateAlertIntegration, type UpdateAlertRule, type UpdateIssueState, type UpdateMonitor, type UpdateProject, type UpdateProjectRepository, type UpdateUserRole, type UpsertProjectMember, type User, type UserReport, isRetryable, mapResult, unwrap, unwrapOr };
|