@sentry/api 0.162.0 → 0.164.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/dist/index.d.ts +2 -2
- package/dist/index.js +6 -0
- package/dist/sdk.gen.d.ts +9 -1
- package/dist/types.gen.d.ts +332 -0
- package/dist/zod.gen.d.ts +1100 -0
- package/dist/zod.js +345 -0
- package/package.json +1 -1
package/dist/types.gen.d.ts
CHANGED
|
@@ -6506,6 +6506,138 @@ export type OrganizationTraceMetaResponse = {
|
|
|
6506
6506
|
[key: string]: number;
|
|
6507
6507
|
};
|
|
6508
6508
|
};
|
|
6509
|
+
export type OrganizationTraceResponse = Array<{
|
|
6510
|
+
description: string;
|
|
6511
|
+
event_id: string;
|
|
6512
|
+
event_type: string;
|
|
6513
|
+
project_id: number;
|
|
6514
|
+
project_slug: string;
|
|
6515
|
+
transaction: string;
|
|
6516
|
+
children: Array<{
|
|
6517
|
+
description: string;
|
|
6518
|
+
event_id: string;
|
|
6519
|
+
event_type: string;
|
|
6520
|
+
project_id: number;
|
|
6521
|
+
project_slug: string;
|
|
6522
|
+
transaction: string;
|
|
6523
|
+
}>;
|
|
6524
|
+
errors: Array<{
|
|
6525
|
+
description: string;
|
|
6526
|
+
event_id: string;
|
|
6527
|
+
event_type: string;
|
|
6528
|
+
project_id: number;
|
|
6529
|
+
project_slug: string;
|
|
6530
|
+
transaction: string;
|
|
6531
|
+
issue_id: number;
|
|
6532
|
+
level: string;
|
|
6533
|
+
start_timestamp: number;
|
|
6534
|
+
end_timestamp?: number;
|
|
6535
|
+
culprit: string | null;
|
|
6536
|
+
short_id: string | null;
|
|
6537
|
+
issue_type: number;
|
|
6538
|
+
}>;
|
|
6539
|
+
occurrences: Array<{
|
|
6540
|
+
description: string;
|
|
6541
|
+
event_id: string;
|
|
6542
|
+
event_type: string;
|
|
6543
|
+
project_id: number;
|
|
6544
|
+
project_slug: string;
|
|
6545
|
+
transaction: string;
|
|
6546
|
+
issue_id: number;
|
|
6547
|
+
level: string;
|
|
6548
|
+
start_timestamp: number;
|
|
6549
|
+
end_timestamp?: number;
|
|
6550
|
+
culprit: string | null;
|
|
6551
|
+
short_id: string | null;
|
|
6552
|
+
issue_type: number;
|
|
6553
|
+
}>;
|
|
6554
|
+
duration: number;
|
|
6555
|
+
end_timestamp: string;
|
|
6556
|
+
measurements: {
|
|
6557
|
+
[key: string]: unknown;
|
|
6558
|
+
};
|
|
6559
|
+
op: string;
|
|
6560
|
+
name: string;
|
|
6561
|
+
parent_span_id: string | null;
|
|
6562
|
+
profile_id: string;
|
|
6563
|
+
profiler_id: string;
|
|
6564
|
+
sdk_name: string;
|
|
6565
|
+
start_timestamp: string;
|
|
6566
|
+
is_transaction: boolean;
|
|
6567
|
+
transaction_id: string;
|
|
6568
|
+
additional_attributes?: {
|
|
6569
|
+
[key: string]: unknown;
|
|
6570
|
+
};
|
|
6571
|
+
} | {
|
|
6572
|
+
description: string;
|
|
6573
|
+
event_id: string;
|
|
6574
|
+
event_type: string;
|
|
6575
|
+
project_id: number;
|
|
6576
|
+
project_slug: string;
|
|
6577
|
+
transaction: string;
|
|
6578
|
+
issue_id: number;
|
|
6579
|
+
level: string;
|
|
6580
|
+
start_timestamp: number;
|
|
6581
|
+
end_timestamp?: number;
|
|
6582
|
+
culprit: string | null;
|
|
6583
|
+
short_id: string | null;
|
|
6584
|
+
issue_type: number;
|
|
6585
|
+
} | {
|
|
6586
|
+
description: string;
|
|
6587
|
+
event_id: string;
|
|
6588
|
+
event_type: string;
|
|
6589
|
+
project_id: number;
|
|
6590
|
+
project_slug: string;
|
|
6591
|
+
transaction: string;
|
|
6592
|
+
children: Array<{
|
|
6593
|
+
description: string;
|
|
6594
|
+
event_id: string;
|
|
6595
|
+
event_type: string;
|
|
6596
|
+
project_id: number;
|
|
6597
|
+
project_slug: string;
|
|
6598
|
+
transaction: string;
|
|
6599
|
+
}>;
|
|
6600
|
+
errors: Array<{
|
|
6601
|
+
description: string;
|
|
6602
|
+
event_id: string;
|
|
6603
|
+
event_type: string;
|
|
6604
|
+
project_id: number;
|
|
6605
|
+
project_slug: string;
|
|
6606
|
+
transaction: string;
|
|
6607
|
+
issue_id: number;
|
|
6608
|
+
level: string;
|
|
6609
|
+
start_timestamp: number;
|
|
6610
|
+
end_timestamp?: number;
|
|
6611
|
+
culprit: string | null;
|
|
6612
|
+
short_id: string | null;
|
|
6613
|
+
issue_type: number;
|
|
6614
|
+
}>;
|
|
6615
|
+
occurrences: Array<{
|
|
6616
|
+
description: string;
|
|
6617
|
+
event_id: string;
|
|
6618
|
+
event_type: string;
|
|
6619
|
+
project_id: number;
|
|
6620
|
+
project_slug: string;
|
|
6621
|
+
transaction: string;
|
|
6622
|
+
issue_id: number;
|
|
6623
|
+
level: string;
|
|
6624
|
+
start_timestamp: number;
|
|
6625
|
+
end_timestamp?: number;
|
|
6626
|
+
culprit: string | null;
|
|
6627
|
+
short_id: string | null;
|
|
6628
|
+
issue_type: number;
|
|
6629
|
+
}>;
|
|
6630
|
+
transaction_id: string;
|
|
6631
|
+
op: string;
|
|
6632
|
+
start_timestamp: number;
|
|
6633
|
+
end_timestamp: number;
|
|
6634
|
+
duration: number;
|
|
6635
|
+
name: string;
|
|
6636
|
+
region_name: string;
|
|
6637
|
+
additional_attributes: {
|
|
6638
|
+
[key: string]: unknown;
|
|
6639
|
+
};
|
|
6640
|
+
}>;
|
|
6509
6641
|
export type OrganizationWithProjectsAndTeams = {
|
|
6510
6642
|
features?: Array<string>;
|
|
6511
6643
|
extraOptions?: {
|
|
@@ -21008,6 +21140,206 @@ export type RetrieveTraceMetadataResponses = {
|
|
|
21008
21140
|
};
|
|
21009
21141
|
};
|
|
21010
21142
|
export type RetrieveTraceMetadataResponse = RetrieveTraceMetadataResponses[keyof RetrieveTraceMetadataResponses];
|
|
21143
|
+
export type RetrieveATraceData = {
|
|
21144
|
+
body?: never;
|
|
21145
|
+
path: {
|
|
21146
|
+
/**
|
|
21147
|
+
* The ID or slug of the organization the resource belongs to.
|
|
21148
|
+
*/
|
|
21149
|
+
organization_id_or_slug: string;
|
|
21150
|
+
/**
|
|
21151
|
+
* The ID of the trace, a 32-character hexadecimal string.
|
|
21152
|
+
*/
|
|
21153
|
+
trace_id: string;
|
|
21154
|
+
};
|
|
21155
|
+
query?: {
|
|
21156
|
+
/**
|
|
21157
|
+
* The period of time for the query, will override the start & end parameters, a number followed by one of:
|
|
21158
|
+
* - `d` for days
|
|
21159
|
+
* - `h` for hours
|
|
21160
|
+
* - `m` for minutes
|
|
21161
|
+
* - `s` for seconds
|
|
21162
|
+
* - `w` for weeks
|
|
21163
|
+
*
|
|
21164
|
+
* For example, `24h`, to mean query data starting from 24 hours ago to now.
|
|
21165
|
+
*/
|
|
21166
|
+
statsPeriod?: string;
|
|
21167
|
+
/**
|
|
21168
|
+
* The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`.
|
|
21169
|
+
*/
|
|
21170
|
+
start?: string;
|
|
21171
|
+
/**
|
|
21172
|
+
* The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`.
|
|
21173
|
+
*/
|
|
21174
|
+
end?: string;
|
|
21175
|
+
/**
|
|
21176
|
+
* Internal referrer identifier used for query tracing. Most clients can omit this.
|
|
21177
|
+
*/
|
|
21178
|
+
referrer?: string;
|
|
21179
|
+
/**
|
|
21180
|
+
* A 32-character hexadecimal event ID to bias the trace results toward including.
|
|
21181
|
+
*/
|
|
21182
|
+
errorId?: string;
|
|
21183
|
+
/**
|
|
21184
|
+
* Additional span attributes to include on each event. Repeat to request multiple.
|
|
21185
|
+
*/
|
|
21186
|
+
additional_attributes?: Array<string>;
|
|
21187
|
+
/**
|
|
21188
|
+
* Set to `1` to include uptime check results in the trace. Defaults to `0`.
|
|
21189
|
+
*/
|
|
21190
|
+
include_uptime?: '0' | '1';
|
|
21191
|
+
};
|
|
21192
|
+
url: '/api/0/organizations/{organization_id_or_slug}/trace/{trace_id}/';
|
|
21193
|
+
};
|
|
21194
|
+
export type RetrieveATraceErrors = {
|
|
21195
|
+
/**
|
|
21196
|
+
* Unauthorized
|
|
21197
|
+
*/
|
|
21198
|
+
401: unknown;
|
|
21199
|
+
/**
|
|
21200
|
+
* Forbidden
|
|
21201
|
+
*/
|
|
21202
|
+
403: unknown;
|
|
21203
|
+
/**
|
|
21204
|
+
* Not Found
|
|
21205
|
+
*/
|
|
21206
|
+
404: unknown;
|
|
21207
|
+
};
|
|
21208
|
+
export type RetrieveATraceResponses = {
|
|
21209
|
+
200: Array<{
|
|
21210
|
+
description: string;
|
|
21211
|
+
event_id: string;
|
|
21212
|
+
event_type: string;
|
|
21213
|
+
project_id: number;
|
|
21214
|
+
project_slug: string;
|
|
21215
|
+
transaction: string;
|
|
21216
|
+
children: Array<{
|
|
21217
|
+
description: string;
|
|
21218
|
+
event_id: string;
|
|
21219
|
+
event_type: string;
|
|
21220
|
+
project_id: number;
|
|
21221
|
+
project_slug: string;
|
|
21222
|
+
transaction: string;
|
|
21223
|
+
}>;
|
|
21224
|
+
errors: Array<{
|
|
21225
|
+
description: string;
|
|
21226
|
+
event_id: string;
|
|
21227
|
+
event_type: string;
|
|
21228
|
+
project_id: number;
|
|
21229
|
+
project_slug: string;
|
|
21230
|
+
transaction: string;
|
|
21231
|
+
issue_id: number;
|
|
21232
|
+
level: string;
|
|
21233
|
+
start_timestamp: number;
|
|
21234
|
+
end_timestamp?: number;
|
|
21235
|
+
culprit: string | null;
|
|
21236
|
+
short_id: string | null;
|
|
21237
|
+
issue_type: number;
|
|
21238
|
+
}>;
|
|
21239
|
+
occurrences: Array<{
|
|
21240
|
+
description: string;
|
|
21241
|
+
event_id: string;
|
|
21242
|
+
event_type: string;
|
|
21243
|
+
project_id: number;
|
|
21244
|
+
project_slug: string;
|
|
21245
|
+
transaction: string;
|
|
21246
|
+
issue_id: number;
|
|
21247
|
+
level: string;
|
|
21248
|
+
start_timestamp: number;
|
|
21249
|
+
end_timestamp?: number;
|
|
21250
|
+
culprit: string | null;
|
|
21251
|
+
short_id: string | null;
|
|
21252
|
+
issue_type: number;
|
|
21253
|
+
}>;
|
|
21254
|
+
duration: number;
|
|
21255
|
+
end_timestamp: string;
|
|
21256
|
+
measurements: {
|
|
21257
|
+
[key: string]: unknown;
|
|
21258
|
+
};
|
|
21259
|
+
op: string;
|
|
21260
|
+
name: string;
|
|
21261
|
+
parent_span_id: string | null;
|
|
21262
|
+
profile_id: string;
|
|
21263
|
+
profiler_id: string;
|
|
21264
|
+
sdk_name: string;
|
|
21265
|
+
start_timestamp: string;
|
|
21266
|
+
is_transaction: boolean;
|
|
21267
|
+
transaction_id: string;
|
|
21268
|
+
additional_attributes?: {
|
|
21269
|
+
[key: string]: unknown;
|
|
21270
|
+
};
|
|
21271
|
+
} | {
|
|
21272
|
+
description: string;
|
|
21273
|
+
event_id: string;
|
|
21274
|
+
event_type: string;
|
|
21275
|
+
project_id: number;
|
|
21276
|
+
project_slug: string;
|
|
21277
|
+
transaction: string;
|
|
21278
|
+
issue_id: number;
|
|
21279
|
+
level: string;
|
|
21280
|
+
start_timestamp: number;
|
|
21281
|
+
end_timestamp?: number;
|
|
21282
|
+
culprit: string | null;
|
|
21283
|
+
short_id: string | null;
|
|
21284
|
+
issue_type: number;
|
|
21285
|
+
} | {
|
|
21286
|
+
description: string;
|
|
21287
|
+
event_id: string;
|
|
21288
|
+
event_type: string;
|
|
21289
|
+
project_id: number;
|
|
21290
|
+
project_slug: string;
|
|
21291
|
+
transaction: string;
|
|
21292
|
+
children: Array<{
|
|
21293
|
+
description: string;
|
|
21294
|
+
event_id: string;
|
|
21295
|
+
event_type: string;
|
|
21296
|
+
project_id: number;
|
|
21297
|
+
project_slug: string;
|
|
21298
|
+
transaction: string;
|
|
21299
|
+
}>;
|
|
21300
|
+
errors: Array<{
|
|
21301
|
+
description: string;
|
|
21302
|
+
event_id: string;
|
|
21303
|
+
event_type: string;
|
|
21304
|
+
project_id: number;
|
|
21305
|
+
project_slug: string;
|
|
21306
|
+
transaction: string;
|
|
21307
|
+
issue_id: number;
|
|
21308
|
+
level: string;
|
|
21309
|
+
start_timestamp: number;
|
|
21310
|
+
end_timestamp?: number;
|
|
21311
|
+
culprit: string | null;
|
|
21312
|
+
short_id: string | null;
|
|
21313
|
+
issue_type: number;
|
|
21314
|
+
}>;
|
|
21315
|
+
occurrences: Array<{
|
|
21316
|
+
description: string;
|
|
21317
|
+
event_id: string;
|
|
21318
|
+
event_type: string;
|
|
21319
|
+
project_id: number;
|
|
21320
|
+
project_slug: string;
|
|
21321
|
+
transaction: string;
|
|
21322
|
+
issue_id: number;
|
|
21323
|
+
level: string;
|
|
21324
|
+
start_timestamp: number;
|
|
21325
|
+
end_timestamp?: number;
|
|
21326
|
+
culprit: string | null;
|
|
21327
|
+
short_id: string | null;
|
|
21328
|
+
issue_type: number;
|
|
21329
|
+
}>;
|
|
21330
|
+
transaction_id: string;
|
|
21331
|
+
op: string;
|
|
21332
|
+
start_timestamp: number;
|
|
21333
|
+
end_timestamp: number;
|
|
21334
|
+
duration: number;
|
|
21335
|
+
name: string;
|
|
21336
|
+
region_name: string;
|
|
21337
|
+
additional_attributes: {
|
|
21338
|
+
[key: string]: unknown;
|
|
21339
|
+
};
|
|
21340
|
+
}>;
|
|
21341
|
+
};
|
|
21342
|
+
export type RetrieveATraceResponse = RetrieveATraceResponses[keyof RetrieveATraceResponses];
|
|
21011
21343
|
export type ListAuserSTeamsForAnOrganizationData = {
|
|
21012
21344
|
body?: never;
|
|
21013
21345
|
path: {
|