@sentry/api 0.287.0 → 0.289.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/error-results.gen.d.ts +5 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +26 -0
- package/dist/pagination.gen.d.ts +16 -1
- package/dist/sdk.gen.d.ts +16 -1
- package/dist/types.gen.d.ts +471 -0
- package/dist/valibot.gen.d.ts +304 -0
- package/dist/valibot.js +369 -0
- package/dist/zod.gen.d.ts +3461 -1901
- package/dist/zod.js +525 -0
- package/package.json +1 -1
package/dist/types.gen.d.ts
CHANGED
|
@@ -3484,6 +3484,79 @@ export type GroupHashesResponse = Array<{
|
|
|
3484
3484
|
mergedBySeer: boolean;
|
|
3485
3485
|
seerMatchDistance: number | null;
|
|
3486
3486
|
}>;
|
|
3487
|
+
export type GroupSearchViewPostValidator = {
|
|
3488
|
+
/**
|
|
3489
|
+
* The name of the issue view.
|
|
3490
|
+
*/
|
|
3491
|
+
name: string;
|
|
3492
|
+
/**
|
|
3493
|
+
* The issue search query.
|
|
3494
|
+
*/
|
|
3495
|
+
query: string;
|
|
3496
|
+
/**
|
|
3497
|
+
* The project IDs included in the view. Use `-1` to include all projects.
|
|
3498
|
+
*/
|
|
3499
|
+
projects: Array<number>;
|
|
3500
|
+
/**
|
|
3501
|
+
* The environment names included in the view. An empty list includes all environments.
|
|
3502
|
+
*/
|
|
3503
|
+
environments: Array<string>;
|
|
3504
|
+
/**
|
|
3505
|
+
* The time range for the view.
|
|
3506
|
+
*/
|
|
3507
|
+
timeFilters: {
|
|
3508
|
+
/**
|
|
3509
|
+
* The start of the time range in ISO-8601 format.
|
|
3510
|
+
*/
|
|
3511
|
+
start?: string | null;
|
|
3512
|
+
/**
|
|
3513
|
+
* The end of the time range in ISO-8601 format.
|
|
3514
|
+
*/
|
|
3515
|
+
end?: string | null;
|
|
3516
|
+
/**
|
|
3517
|
+
* The relative time period, such as `14d`.
|
|
3518
|
+
*/
|
|
3519
|
+
period?: string | null;
|
|
3520
|
+
/**
|
|
3521
|
+
* Whether to interpret the time range as UTC.
|
|
3522
|
+
*/
|
|
3523
|
+
utc?: boolean | null;
|
|
3524
|
+
};
|
|
3525
|
+
/**
|
|
3526
|
+
* How to sort issues in the view.
|
|
3527
|
+
*
|
|
3528
|
+
* * `date` - Last Seen
|
|
3529
|
+
* * `new` - First Seen
|
|
3530
|
+
* * `trends` - Trends
|
|
3531
|
+
* * `freq` - Events
|
|
3532
|
+
* * `user` - Users
|
|
3533
|
+
* * `inbox` - Date Added
|
|
3534
|
+
* * `recommended` - Recommended
|
|
3535
|
+
*/
|
|
3536
|
+
querySort?: 'date' | 'new' | 'trends' | 'freq' | 'user' | 'inbox' | 'recommended';
|
|
3537
|
+
/**
|
|
3538
|
+
* Whether to star the issue view for the current user.
|
|
3539
|
+
*/
|
|
3540
|
+
starred?: boolean;
|
|
3541
|
+
};
|
|
3542
|
+
export type GroupSearchViewTimeFilters = {
|
|
3543
|
+
/**
|
|
3544
|
+
* The start of the time range in ISO-8601 format.
|
|
3545
|
+
*/
|
|
3546
|
+
start?: string | null;
|
|
3547
|
+
/**
|
|
3548
|
+
* The end of the time range in ISO-8601 format.
|
|
3549
|
+
*/
|
|
3550
|
+
end?: string | null;
|
|
3551
|
+
/**
|
|
3552
|
+
* The relative time period, such as `14d`.
|
|
3553
|
+
*/
|
|
3554
|
+
period?: string | null;
|
|
3555
|
+
/**
|
|
3556
|
+
* Whether to interpret the time range as UTC.
|
|
3557
|
+
*/
|
|
3558
|
+
utc?: boolean | null;
|
|
3559
|
+
};
|
|
3487
3560
|
export type GroupUpdateResponse = {
|
|
3488
3561
|
isUnhandled?: boolean;
|
|
3489
3562
|
count?: string;
|
|
@@ -7097,6 +7170,136 @@ export type OrganizationIntegrationResponse = {
|
|
|
7097
7170
|
organizationIntegrationStatus: string;
|
|
7098
7171
|
gracePeriodEnd: string | null;
|
|
7099
7172
|
};
|
|
7173
|
+
export type OrganizationIssueView = {
|
|
7174
|
+
id: string;
|
|
7175
|
+
createdBy: {
|
|
7176
|
+
identities?: Array<{
|
|
7177
|
+
id: string;
|
|
7178
|
+
name: string;
|
|
7179
|
+
organization: {
|
|
7180
|
+
slug: string;
|
|
7181
|
+
name: string;
|
|
7182
|
+
};
|
|
7183
|
+
provider: {
|
|
7184
|
+
id: string;
|
|
7185
|
+
name: string;
|
|
7186
|
+
};
|
|
7187
|
+
dateVerified: string;
|
|
7188
|
+
dateSynced: string;
|
|
7189
|
+
}>;
|
|
7190
|
+
avatar?: {
|
|
7191
|
+
avatarType?: string;
|
|
7192
|
+
avatarUuid?: string | null;
|
|
7193
|
+
avatarUrl?: string | null;
|
|
7194
|
+
};
|
|
7195
|
+
authenticators?: Array<unknown>;
|
|
7196
|
+
canReset2fa?: boolean;
|
|
7197
|
+
id: string;
|
|
7198
|
+
name: string;
|
|
7199
|
+
username: string;
|
|
7200
|
+
email: string;
|
|
7201
|
+
avatarUrl: string;
|
|
7202
|
+
isActive: boolean;
|
|
7203
|
+
isSuspended: boolean;
|
|
7204
|
+
hasPasswordAuth: boolean;
|
|
7205
|
+
isManaged: boolean;
|
|
7206
|
+
dateJoined: string;
|
|
7207
|
+
lastLogin: string | null;
|
|
7208
|
+
has2fa: boolean;
|
|
7209
|
+
lastActive: string | null;
|
|
7210
|
+
isSuperuser: boolean;
|
|
7211
|
+
isStaff: boolean;
|
|
7212
|
+
experiments: {
|
|
7213
|
+
[key: string]: unknown;
|
|
7214
|
+
};
|
|
7215
|
+
emails: Array<{
|
|
7216
|
+
id: string;
|
|
7217
|
+
email: string;
|
|
7218
|
+
is_verified: boolean;
|
|
7219
|
+
}>;
|
|
7220
|
+
} | null;
|
|
7221
|
+
name: string;
|
|
7222
|
+
query: string;
|
|
7223
|
+
querySort: 'date' | 'new' | 'trends' | 'freq' | 'user' | 'inbox' | 'recommended';
|
|
7224
|
+
projects: Array<number>;
|
|
7225
|
+
environments: Array<string>;
|
|
7226
|
+
timeFilters: {
|
|
7227
|
+
start?: string | null;
|
|
7228
|
+
end?: string | null;
|
|
7229
|
+
period?: string | null;
|
|
7230
|
+
utc?: boolean | null;
|
|
7231
|
+
};
|
|
7232
|
+
lastVisited: string | null;
|
|
7233
|
+
dateCreated: string;
|
|
7234
|
+
dateUpdated: string;
|
|
7235
|
+
starred: boolean;
|
|
7236
|
+
stars: number;
|
|
7237
|
+
};
|
|
7238
|
+
export type OrganizationIssueViewList = Array<{
|
|
7239
|
+
id: string;
|
|
7240
|
+
createdBy: {
|
|
7241
|
+
identities?: Array<{
|
|
7242
|
+
id: string;
|
|
7243
|
+
name: string;
|
|
7244
|
+
organization: {
|
|
7245
|
+
slug: string;
|
|
7246
|
+
name: string;
|
|
7247
|
+
};
|
|
7248
|
+
provider: {
|
|
7249
|
+
id: string;
|
|
7250
|
+
name: string;
|
|
7251
|
+
};
|
|
7252
|
+
dateVerified: string;
|
|
7253
|
+
dateSynced: string;
|
|
7254
|
+
}>;
|
|
7255
|
+
avatar?: {
|
|
7256
|
+
avatarType?: string;
|
|
7257
|
+
avatarUuid?: string | null;
|
|
7258
|
+
avatarUrl?: string | null;
|
|
7259
|
+
};
|
|
7260
|
+
authenticators?: Array<unknown>;
|
|
7261
|
+
canReset2fa?: boolean;
|
|
7262
|
+
id: string;
|
|
7263
|
+
name: string;
|
|
7264
|
+
username: string;
|
|
7265
|
+
email: string;
|
|
7266
|
+
avatarUrl: string;
|
|
7267
|
+
isActive: boolean;
|
|
7268
|
+
isSuspended: boolean;
|
|
7269
|
+
hasPasswordAuth: boolean;
|
|
7270
|
+
isManaged: boolean;
|
|
7271
|
+
dateJoined: string;
|
|
7272
|
+
lastLogin: string | null;
|
|
7273
|
+
has2fa: boolean;
|
|
7274
|
+
lastActive: string | null;
|
|
7275
|
+
isSuperuser: boolean;
|
|
7276
|
+
isStaff: boolean;
|
|
7277
|
+
experiments: {
|
|
7278
|
+
[key: string]: unknown;
|
|
7279
|
+
};
|
|
7280
|
+
emails: Array<{
|
|
7281
|
+
id: string;
|
|
7282
|
+
email: string;
|
|
7283
|
+
is_verified: boolean;
|
|
7284
|
+
}>;
|
|
7285
|
+
} | null;
|
|
7286
|
+
name: string;
|
|
7287
|
+
query: string;
|
|
7288
|
+
querySort: 'date' | 'new' | 'trends' | 'freq' | 'user' | 'inbox' | 'recommended';
|
|
7289
|
+
projects: Array<number>;
|
|
7290
|
+
environments: Array<string>;
|
|
7291
|
+
timeFilters: {
|
|
7292
|
+
start?: string | null;
|
|
7293
|
+
end?: string | null;
|
|
7294
|
+
period?: string | null;
|
|
7295
|
+
utc?: boolean | null;
|
|
7296
|
+
};
|
|
7297
|
+
lastVisited: string | null;
|
|
7298
|
+
dateCreated: string;
|
|
7299
|
+
dateUpdated: string;
|
|
7300
|
+
starred: boolean;
|
|
7301
|
+
stars: number;
|
|
7302
|
+
}>;
|
|
7100
7303
|
export type OrganizationMember = {
|
|
7101
7304
|
externalUsers?: Array<{
|
|
7102
7305
|
externalId?: string;
|
|
@@ -14848,6 +15051,274 @@ export type UpdateOrganizationForwardingResponses = {
|
|
|
14848
15051
|
};
|
|
14849
15052
|
};
|
|
14850
15053
|
export type UpdateOrganizationForwardingResponse = UpdateOrganizationForwardingResponses[keyof UpdateOrganizationForwardingResponses];
|
|
15054
|
+
export type ListOrganizationIssueViewsData = {
|
|
15055
|
+
body?: never;
|
|
15056
|
+
path: {
|
|
15057
|
+
/**
|
|
15058
|
+
* The ID or slug of the organization the resource belongs to.
|
|
15059
|
+
*/
|
|
15060
|
+
organization_id_or_slug: string;
|
|
15061
|
+
};
|
|
15062
|
+
query?: {
|
|
15063
|
+
/**
|
|
15064
|
+
* Whether to return issue views created by the current user or other members.
|
|
15065
|
+
*
|
|
15066
|
+
* * `me`
|
|
15067
|
+
* * `others`
|
|
15068
|
+
*/
|
|
15069
|
+
createdBy?: 'me' | 'others';
|
|
15070
|
+
/**
|
|
15071
|
+
* The fields used to sort issue views, in order of precedence.
|
|
15072
|
+
*/
|
|
15073
|
+
sort?: Array<'popularity' | '-popularity' | 'visited' | '-visited' | 'name' | '-name' | 'created' | '-created'>;
|
|
15074
|
+
/**
|
|
15075
|
+
* A case-insensitive search against issue view names and queries.
|
|
15076
|
+
*/
|
|
15077
|
+
query?: string;
|
|
15078
|
+
/**
|
|
15079
|
+
* A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.
|
|
15080
|
+
*/
|
|
15081
|
+
cursor?: string;
|
|
15082
|
+
};
|
|
15083
|
+
url: '/api/0/organizations/{organization_id_or_slug}/group-search-views/';
|
|
15084
|
+
};
|
|
15085
|
+
export type ListOrganizationIssueViewsErrors = {
|
|
15086
|
+
/**
|
|
15087
|
+
* Bad Request
|
|
15088
|
+
*/
|
|
15089
|
+
400: unknown;
|
|
15090
|
+
/**
|
|
15091
|
+
* Unauthorized
|
|
15092
|
+
*/
|
|
15093
|
+
401: unknown;
|
|
15094
|
+
/**
|
|
15095
|
+
* Forbidden
|
|
15096
|
+
*/
|
|
15097
|
+
403: unknown;
|
|
15098
|
+
/**
|
|
15099
|
+
* Not Found
|
|
15100
|
+
*/
|
|
15101
|
+
404: unknown;
|
|
15102
|
+
};
|
|
15103
|
+
export type ListOrganizationIssueViewsResponses = {
|
|
15104
|
+
200: Array<{
|
|
15105
|
+
id: string;
|
|
15106
|
+
createdBy: {
|
|
15107
|
+
identities?: Array<{
|
|
15108
|
+
id: string;
|
|
15109
|
+
name: string;
|
|
15110
|
+
organization: {
|
|
15111
|
+
slug: string;
|
|
15112
|
+
name: string;
|
|
15113
|
+
};
|
|
15114
|
+
provider: {
|
|
15115
|
+
id: string;
|
|
15116
|
+
name: string;
|
|
15117
|
+
};
|
|
15118
|
+
dateVerified: string;
|
|
15119
|
+
dateSynced: string;
|
|
15120
|
+
}>;
|
|
15121
|
+
avatar?: {
|
|
15122
|
+
avatarType?: string;
|
|
15123
|
+
avatarUuid?: string | null;
|
|
15124
|
+
avatarUrl?: string | null;
|
|
15125
|
+
};
|
|
15126
|
+
authenticators?: Array<unknown>;
|
|
15127
|
+
canReset2fa?: boolean;
|
|
15128
|
+
id: string;
|
|
15129
|
+
name: string;
|
|
15130
|
+
username: string;
|
|
15131
|
+
email: string;
|
|
15132
|
+
avatarUrl: string;
|
|
15133
|
+
isActive: boolean;
|
|
15134
|
+
isSuspended: boolean;
|
|
15135
|
+
hasPasswordAuth: boolean;
|
|
15136
|
+
isManaged: boolean;
|
|
15137
|
+
dateJoined: string;
|
|
15138
|
+
lastLogin: string | null;
|
|
15139
|
+
has2fa: boolean;
|
|
15140
|
+
lastActive: string | null;
|
|
15141
|
+
isSuperuser: boolean;
|
|
15142
|
+
isStaff: boolean;
|
|
15143
|
+
experiments: {
|
|
15144
|
+
[key: string]: unknown;
|
|
15145
|
+
};
|
|
15146
|
+
emails: Array<{
|
|
15147
|
+
id: string;
|
|
15148
|
+
email: string;
|
|
15149
|
+
is_verified: boolean;
|
|
15150
|
+
}>;
|
|
15151
|
+
} | null;
|
|
15152
|
+
name: string;
|
|
15153
|
+
query: string;
|
|
15154
|
+
querySort: 'date' | 'new' | 'trends' | 'freq' | 'user' | 'inbox' | 'recommended';
|
|
15155
|
+
projects: Array<number>;
|
|
15156
|
+
environments: Array<string>;
|
|
15157
|
+
timeFilters: {
|
|
15158
|
+
start?: string | null;
|
|
15159
|
+
end?: string | null;
|
|
15160
|
+
period?: string | null;
|
|
15161
|
+
utc?: boolean | null;
|
|
15162
|
+
};
|
|
15163
|
+
lastVisited: string | null;
|
|
15164
|
+
dateCreated: string;
|
|
15165
|
+
dateUpdated: string;
|
|
15166
|
+
starred: boolean;
|
|
15167
|
+
stars: number;
|
|
15168
|
+
}>;
|
|
15169
|
+
};
|
|
15170
|
+
export type ListOrganizationIssueViewsResponse = ListOrganizationIssueViewsResponses[keyof ListOrganizationIssueViewsResponses];
|
|
15171
|
+
export type CreateOrganizationIssueViewData = {
|
|
15172
|
+
body: {
|
|
15173
|
+
/**
|
|
15174
|
+
* The name of the issue view.
|
|
15175
|
+
*/
|
|
15176
|
+
name: string;
|
|
15177
|
+
/**
|
|
15178
|
+
* The issue search query.
|
|
15179
|
+
*/
|
|
15180
|
+
query: string;
|
|
15181
|
+
/**
|
|
15182
|
+
* The project IDs included in the view. Use `-1` to include all projects.
|
|
15183
|
+
*/
|
|
15184
|
+
projects: Array<number>;
|
|
15185
|
+
/**
|
|
15186
|
+
* The environment names included in the view. An empty list includes all environments.
|
|
15187
|
+
*/
|
|
15188
|
+
environments: Array<string>;
|
|
15189
|
+
/**
|
|
15190
|
+
* The time range for the view.
|
|
15191
|
+
*/
|
|
15192
|
+
timeFilters: {
|
|
15193
|
+
/**
|
|
15194
|
+
* The start of the time range in ISO-8601 format.
|
|
15195
|
+
*/
|
|
15196
|
+
start?: string | null;
|
|
15197
|
+
/**
|
|
15198
|
+
* The end of the time range in ISO-8601 format.
|
|
15199
|
+
*/
|
|
15200
|
+
end?: string | null;
|
|
15201
|
+
/**
|
|
15202
|
+
* The relative time period, such as `14d`.
|
|
15203
|
+
*/
|
|
15204
|
+
period?: string | null;
|
|
15205
|
+
/**
|
|
15206
|
+
* Whether to interpret the time range as UTC.
|
|
15207
|
+
*/
|
|
15208
|
+
utc?: boolean | null;
|
|
15209
|
+
};
|
|
15210
|
+
/**
|
|
15211
|
+
* How to sort issues in the view.
|
|
15212
|
+
*
|
|
15213
|
+
* * `date` - Last Seen
|
|
15214
|
+
* * `new` - First Seen
|
|
15215
|
+
* * `trends` - Trends
|
|
15216
|
+
* * `freq` - Events
|
|
15217
|
+
* * `user` - Users
|
|
15218
|
+
* * `inbox` - Date Added
|
|
15219
|
+
* * `recommended` - Recommended
|
|
15220
|
+
*/
|
|
15221
|
+
querySort?: 'date' | 'new' | 'trends' | 'freq' | 'user' | 'inbox' | 'recommended';
|
|
15222
|
+
/**
|
|
15223
|
+
* Whether to star the issue view for the current user.
|
|
15224
|
+
*/
|
|
15225
|
+
starred?: boolean;
|
|
15226
|
+
};
|
|
15227
|
+
path: {
|
|
15228
|
+
/**
|
|
15229
|
+
* The ID or slug of the organization the resource belongs to.
|
|
15230
|
+
*/
|
|
15231
|
+
organization_id_or_slug: string;
|
|
15232
|
+
};
|
|
15233
|
+
query?: never;
|
|
15234
|
+
url: '/api/0/organizations/{organization_id_or_slug}/group-search-views/';
|
|
15235
|
+
};
|
|
15236
|
+
export type CreateOrganizationIssueViewErrors = {
|
|
15237
|
+
/**
|
|
15238
|
+
* Bad Request
|
|
15239
|
+
*/
|
|
15240
|
+
400: unknown;
|
|
15241
|
+
/**
|
|
15242
|
+
* Unauthorized
|
|
15243
|
+
*/
|
|
15244
|
+
401: unknown;
|
|
15245
|
+
/**
|
|
15246
|
+
* Forbidden
|
|
15247
|
+
*/
|
|
15248
|
+
403: unknown;
|
|
15249
|
+
/**
|
|
15250
|
+
* Not Found
|
|
15251
|
+
*/
|
|
15252
|
+
404: unknown;
|
|
15253
|
+
};
|
|
15254
|
+
export type CreateOrganizationIssueViewResponses = {
|
|
15255
|
+
201: {
|
|
15256
|
+
id: string;
|
|
15257
|
+
createdBy: {
|
|
15258
|
+
identities?: Array<{
|
|
15259
|
+
id: string;
|
|
15260
|
+
name: string;
|
|
15261
|
+
organization: {
|
|
15262
|
+
slug: string;
|
|
15263
|
+
name: string;
|
|
15264
|
+
};
|
|
15265
|
+
provider: {
|
|
15266
|
+
id: string;
|
|
15267
|
+
name: string;
|
|
15268
|
+
};
|
|
15269
|
+
dateVerified: string;
|
|
15270
|
+
dateSynced: string;
|
|
15271
|
+
}>;
|
|
15272
|
+
avatar?: {
|
|
15273
|
+
avatarType?: string;
|
|
15274
|
+
avatarUuid?: string | null;
|
|
15275
|
+
avatarUrl?: string | null;
|
|
15276
|
+
};
|
|
15277
|
+
authenticators?: Array<unknown>;
|
|
15278
|
+
canReset2fa?: boolean;
|
|
15279
|
+
id: string;
|
|
15280
|
+
name: string;
|
|
15281
|
+
username: string;
|
|
15282
|
+
email: string;
|
|
15283
|
+
avatarUrl: string;
|
|
15284
|
+
isActive: boolean;
|
|
15285
|
+
isSuspended: boolean;
|
|
15286
|
+
hasPasswordAuth: boolean;
|
|
15287
|
+
isManaged: boolean;
|
|
15288
|
+
dateJoined: string;
|
|
15289
|
+
lastLogin: string | null;
|
|
15290
|
+
has2fa: boolean;
|
|
15291
|
+
lastActive: string | null;
|
|
15292
|
+
isSuperuser: boolean;
|
|
15293
|
+
isStaff: boolean;
|
|
15294
|
+
experiments: {
|
|
15295
|
+
[key: string]: unknown;
|
|
15296
|
+
};
|
|
15297
|
+
emails: Array<{
|
|
15298
|
+
id: string;
|
|
15299
|
+
email: string;
|
|
15300
|
+
is_verified: boolean;
|
|
15301
|
+
}>;
|
|
15302
|
+
} | null;
|
|
15303
|
+
name: string;
|
|
15304
|
+
query: string;
|
|
15305
|
+
querySort: 'date' | 'new' | 'trends' | 'freq' | 'user' | 'inbox' | 'recommended';
|
|
15306
|
+
projects: Array<number>;
|
|
15307
|
+
environments: Array<string>;
|
|
15308
|
+
timeFilters: {
|
|
15309
|
+
start?: string | null;
|
|
15310
|
+
end?: string | null;
|
|
15311
|
+
period?: string | null;
|
|
15312
|
+
utc?: boolean | null;
|
|
15313
|
+
};
|
|
15314
|
+
lastVisited: string | null;
|
|
15315
|
+
dateCreated: string;
|
|
15316
|
+
dateUpdated: string;
|
|
15317
|
+
starred: boolean;
|
|
15318
|
+
stars: number;
|
|
15319
|
+
};
|
|
15320
|
+
};
|
|
15321
|
+
export type CreateOrganizationIssueViewResponse = CreateOrganizationIssueViewResponses[keyof CreateOrganizationIssueViewResponses];
|
|
14851
15322
|
export type ListOrganizationIntegrationsData = {
|
|
14852
15323
|
body?: never;
|
|
14853
15324
|
path: {
|