@sentry/api 0.426.0 → 0.428.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 +49 -0
- package/dist/client/client.gen.d.ts +7 -2
- package/dist/client/index.d.ts +1 -0
- package/dist/client.gen.d.ts +1 -1
- package/dist/error-results.gen.d.ts +7 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +66 -5
- package/dist/operations.js +89 -0
- package/dist/pagination.gen.d.ts +13 -1
- package/dist/query-enums.gen.d.ts +3 -1
- package/dist/sdk.gen.d.ts +25 -1
- package/dist/sentry-client.gen.d.ts +82 -1
- package/dist/types.gen.d.ts +353 -0
- package/dist/valibot.gen.d.ts +137 -0
- package/dist/valibot.js +131 -0
- package/dist/zod.gen.d.ts +739 -212
- package/dist/zod.js +173 -0
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ import type * as types from './types.gen';
|
|
|
8
8
|
* Each method keeps the standalone operation's result and request options.
|
|
9
9
|
*/
|
|
10
10
|
export declare function createSentryClient(config?: Config): {
|
|
11
|
-
readonly client: import("./client").
|
|
11
|
+
readonly client: import("./client").PreparedClient;
|
|
12
12
|
/**
|
|
13
13
|
* List Your Organizations
|
|
14
14
|
*
|
|
@@ -1840,6 +1840,30 @@ export declare function createSentryClient(config?: Config): {
|
|
|
1840
1840
|
* returns 200 if the link already exists, 201 if created.
|
|
1841
1841
|
*/
|
|
1842
1842
|
readonly linkProjectRepository: <ThrowOnError extends boolean = false>(options: Omit<NonNullable<sdk.Options<types.LinkProjectRepositoryData, ThrowOnError>>, "client">) => import("./client").RequestResult<types.LinkProjectRepositoryResponses, types.LinkProjectRepositoryErrors, ThrowOnError, "fields">;
|
|
1843
|
+
/**
|
|
1844
|
+
* List Repositories Configured for Seer
|
|
1845
|
+
*
|
|
1846
|
+
* **Experimental:** This API is under active development and may change.
|
|
1847
|
+
*
|
|
1848
|
+
* List repositories connected to Seer for the project.
|
|
1849
|
+
*/
|
|
1850
|
+
readonly listProjectSeerRepositories: <ThrowOnError extends boolean = false>(options: Omit<NonNullable<sdk.Options<types.ListProjectSeerRepositoriesData, ThrowOnError>>, "client">) => import("./client").RequestResult<types.ListProjectSeerRepositoriesResponses, types.ListProjectSeerRepositoriesErrors, ThrowOnError, "fields">;
|
|
1851
|
+
/**
|
|
1852
|
+
* Add Repositories to Seer for a Project
|
|
1853
|
+
*
|
|
1854
|
+
* **Experimental:** This API is under active development and may change.
|
|
1855
|
+
*
|
|
1856
|
+
* Add the specified repositories to Seer without removing other repositories. At least one repository is required. Re-submitting a repository replaces its branchName, instructions, and branchOverrides; omitted values are cleared.
|
|
1857
|
+
*/
|
|
1858
|
+
readonly addProjectSeerRepositories: <ThrowOnError extends boolean = false>(options: Omit<NonNullable<sdk.Options<types.AddProjectSeerRepositoriesData, ThrowOnError>>, "client">) => import("./client").RequestResult<types.AddProjectSeerRepositoriesResponses, types.AddProjectSeerRepositoriesErrors, ThrowOnError, "fields">;
|
|
1859
|
+
/**
|
|
1860
|
+
* Replace Repositories Configured for Seer
|
|
1861
|
+
*
|
|
1862
|
+
* **Experimental:** This API is under active development and may change.
|
|
1863
|
+
*
|
|
1864
|
+
* Replace the project's active Seer repository configurations with the submitted repositories. An empty `repos` list removes all active Seer repository configurations. Inactive repository configurations are retained and become available again if the repositories are reactivated.
|
|
1865
|
+
*/
|
|
1866
|
+
readonly replaceProjectSeerRepositories: <ThrowOnError extends boolean = false>(options: Omit<NonNullable<sdk.Options<types.ReplaceProjectSeerRepositoriesData, ThrowOnError>>, "client">) => import("./client").RequestResult<types.ReplaceProjectSeerRepositoriesResponses, types.ReplaceProjectSeerRepositoriesErrors, ThrowOnError, "fields">;
|
|
1843
1867
|
/**
|
|
1844
1868
|
* Get a Source Code Link for a Stack Trace Frame
|
|
1845
1869
|
*
|
|
@@ -4752,6 +4776,25 @@ export declare function createSentryClient(config?: Config): {
|
|
|
4752
4776
|
readonly listProjectReplayRecordingSegments: (options: Omit<NonNullable<Parameters<typeof pagination.fetchPage_listProjectReplayRecordingSegments>[0]>, "client">, cursor?: Parameters<typeof pagination.fetchPage_listProjectReplayRecordingSegments>[1]) => Promise<import("./sentry-pagination").PaginatedResponse<{
|
|
4753
4777
|
[key: string]: unknown;
|
|
4754
4778
|
}[][]>>;
|
|
4779
|
+
/** Fetch a single page of `listProjectSeerRepositories` with cursors from the Link header. */
|
|
4780
|
+
readonly listProjectSeerRepositories: (options: Omit<NonNullable<Parameters<typeof pagination.fetchPage_listProjectSeerRepositories>[0]>, "client">, cursor?: Parameters<typeof pagination.fetchPage_listProjectSeerRepositories>[1]) => Promise<import("./sentry-pagination").PaginatedResponse<{
|
|
4781
|
+
id: string;
|
|
4782
|
+
repositoryId: string;
|
|
4783
|
+
organizationId: string;
|
|
4784
|
+
provider: string;
|
|
4785
|
+
owner: string;
|
|
4786
|
+
name: string;
|
|
4787
|
+
externalId: string;
|
|
4788
|
+
integrationId: string | null;
|
|
4789
|
+
branchName: string | null;
|
|
4790
|
+
branchOverrides: Array<{
|
|
4791
|
+
id: string;
|
|
4792
|
+
tagName: string;
|
|
4793
|
+
tagValue: string;
|
|
4794
|
+
branchName: string;
|
|
4795
|
+
}>;
|
|
4796
|
+
instructions: string | null;
|
|
4797
|
+
}[]>>;
|
|
4755
4798
|
/** Fetch a single page of `listProjectTagValues` with cursors from the Link header. */
|
|
4756
4799
|
readonly listProjectTagValues: (options: Omit<NonNullable<Parameters<typeof pagination.fetchPage_listProjectTagValues>[0]>, "client">, cursor?: Parameters<typeof pagination.fetchPage_listProjectTagValues>[1]) => Promise<import("./sentry-pagination").PaginatedResponse<{
|
|
4757
4800
|
name: string;
|
|
@@ -7324,6 +7367,25 @@ export declare function createSentryClient(config?: Config): {
|
|
|
7324
7367
|
readonly listProjectReplayRecordingSegments: (options: Omit<NonNullable<Parameters<typeof pagination.paginateAll_listProjectReplayRecordingSegments>[0]>, "client">, paginateOptions?: Parameters<typeof pagination.paginateAll_listProjectReplayRecordingSegments>[1]) => Promise<import("./sentry-pagination").PaginatedCollection<{
|
|
7325
7368
|
[key: string]: unknown;
|
|
7326
7369
|
}[]>>;
|
|
7370
|
+
/** Eagerly fetch all pages of `listProjectSeerRepositories`. Bounded by `maxPages` (default 50). */
|
|
7371
|
+
readonly listProjectSeerRepositories: (options: Omit<NonNullable<Parameters<typeof pagination.paginateAll_listProjectSeerRepositories>[0]>, "client">, paginateOptions?: Parameters<typeof pagination.paginateAll_listProjectSeerRepositories>[1]) => Promise<import("./sentry-pagination").PaginatedCollection<{
|
|
7372
|
+
id: string;
|
|
7373
|
+
repositoryId: string;
|
|
7374
|
+
organizationId: string;
|
|
7375
|
+
provider: string;
|
|
7376
|
+
owner: string;
|
|
7377
|
+
name: string;
|
|
7378
|
+
externalId: string;
|
|
7379
|
+
integrationId: string | null;
|
|
7380
|
+
branchName: string | null;
|
|
7381
|
+
branchOverrides: Array<{
|
|
7382
|
+
id: string;
|
|
7383
|
+
tagName: string;
|
|
7384
|
+
tagValue: string;
|
|
7385
|
+
branchName: string;
|
|
7386
|
+
}>;
|
|
7387
|
+
instructions: string | null;
|
|
7388
|
+
}>>;
|
|
7327
7389
|
/** Eagerly fetch all pages of `listProjectTagValues`. Bounded by `maxPages` (default 50). */
|
|
7328
7390
|
readonly listProjectTagValues: (options: Omit<NonNullable<Parameters<typeof pagination.paginateAll_listProjectTagValues>[0]>, "client">, paginateOptions?: Parameters<typeof pagination.paginateAll_listProjectTagValues>[1]) => Promise<import("./sentry-pagination").PaginatedCollection<{
|
|
7329
7391
|
name: string;
|
|
@@ -9768,6 +9830,25 @@ export declare function createSentryClient(config?: Config): {
|
|
|
9768
9830
|
readonly listProjectReplayRecordingSegments: (options: Omit<NonNullable<Parameters<typeof pagination.paginateUpTo_listProjectReplayRecordingSegments>[0]>, "client">, paginateOptions: Parameters<typeof pagination.paginateUpTo_listProjectReplayRecordingSegments>[1]) => Promise<import("./sentry-pagination").PaginatedCollection<{
|
|
9769
9831
|
[key: string]: unknown;
|
|
9770
9832
|
}[]>>;
|
|
9833
|
+
/** Paginate `listProjectSeerRepositories` up to `limit` items; see PaginateUpToOptions. */
|
|
9834
|
+
readonly listProjectSeerRepositories: (options: Omit<NonNullable<Parameters<typeof pagination.paginateUpTo_listProjectSeerRepositories>[0]>, "client">, paginateOptions: Parameters<typeof pagination.paginateUpTo_listProjectSeerRepositories>[1]) => Promise<import("./sentry-pagination").PaginatedCollection<{
|
|
9835
|
+
id: string;
|
|
9836
|
+
repositoryId: string;
|
|
9837
|
+
organizationId: string;
|
|
9838
|
+
provider: string;
|
|
9839
|
+
owner: string;
|
|
9840
|
+
name: string;
|
|
9841
|
+
externalId: string;
|
|
9842
|
+
integrationId: string | null;
|
|
9843
|
+
branchName: string | null;
|
|
9844
|
+
branchOverrides: Array<{
|
|
9845
|
+
id: string;
|
|
9846
|
+
tagName: string;
|
|
9847
|
+
tagValue: string;
|
|
9848
|
+
branchName: string;
|
|
9849
|
+
}>;
|
|
9850
|
+
instructions: string | null;
|
|
9851
|
+
}>>;
|
|
9771
9852
|
/** Paginate `listProjectTagValues` up to `limit` items; see PaginateUpToOptions. */
|
|
9772
9853
|
readonly listProjectTagValues: (options: Omit<NonNullable<Parameters<typeof pagination.paginateUpTo_listProjectTagValues>[0]>, "client">, paginateOptions: Parameters<typeof pagination.paginateUpTo_listProjectTagValues>[1]) => Promise<import("./sentry-pagination").PaginatedCollection<{
|
|
9773
9854
|
name: string;
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -352,6 +352,25 @@ export type BaseTeam = {
|
|
|
352
352
|
avatarUrl?: string | null;
|
|
353
353
|
};
|
|
354
354
|
};
|
|
355
|
+
/**
|
|
356
|
+
* Allows parameters to be defined in snake case, but passed as camel case.
|
|
357
|
+
*
|
|
358
|
+
* Errors are output in camel case.
|
|
359
|
+
*/
|
|
360
|
+
export type BranchOverride = {
|
|
361
|
+
/**
|
|
362
|
+
* Event tag key to match.
|
|
363
|
+
*/
|
|
364
|
+
tag_name: string;
|
|
365
|
+
/**
|
|
366
|
+
* Event tag value to match.
|
|
367
|
+
*/
|
|
368
|
+
tag_value: string;
|
|
369
|
+
/**
|
|
370
|
+
* The repository branch Seer uses for issues whose events have this tag value.
|
|
371
|
+
*/
|
|
372
|
+
branch_name: string;
|
|
373
|
+
};
|
|
355
374
|
export type BulkCodeMappingsPartialResponse = {
|
|
356
375
|
created: number;
|
|
357
376
|
updated: number;
|
|
@@ -9736,6 +9755,24 @@ export type ProjectRepoListResponse = Array<{
|
|
|
9736
9755
|
providerKey: string | null;
|
|
9737
9756
|
mappingCount?: number;
|
|
9738
9757
|
}>;
|
|
9758
|
+
export type ProjectSeerRepositoriesResponse = Array<{
|
|
9759
|
+
id: string;
|
|
9760
|
+
repositoryId: string;
|
|
9761
|
+
organizationId: string;
|
|
9762
|
+
provider: string;
|
|
9763
|
+
owner: string;
|
|
9764
|
+
name: string;
|
|
9765
|
+
externalId: string;
|
|
9766
|
+
integrationId: string | null;
|
|
9767
|
+
branchName: string | null;
|
|
9768
|
+
branchOverrides: Array<{
|
|
9769
|
+
id: string;
|
|
9770
|
+
tagName: string;
|
|
9771
|
+
tagValue: string;
|
|
9772
|
+
branchName: string;
|
|
9773
|
+
}>;
|
|
9774
|
+
instructions: string | null;
|
|
9775
|
+
}>;
|
|
9739
9776
|
export type ProjectSizeStatusCheckRulesResponse = {
|
|
9740
9777
|
enabled: boolean;
|
|
9741
9778
|
rules: Array<{
|
|
@@ -10503,6 +10540,87 @@ export type ScimTeamRequestBody = {
|
|
|
10503
10540
|
export type SeerModelsResponse = {
|
|
10504
10541
|
models: Array<string>;
|
|
10505
10542
|
};
|
|
10543
|
+
/**
|
|
10544
|
+
* Allows parameters to be defined in snake case, but passed as camel case.
|
|
10545
|
+
*
|
|
10546
|
+
* Errors are output in camel case.
|
|
10547
|
+
*/
|
|
10548
|
+
export type SeerProjectRepoCreate = {
|
|
10549
|
+
/**
|
|
10550
|
+
* The ID of an active, supported repository in the organization.
|
|
10551
|
+
*/
|
|
10552
|
+
repository_id: number;
|
|
10553
|
+
/**
|
|
10554
|
+
* The branch Seer works from in this repository. Leave empty to use the repository's default branch.
|
|
10555
|
+
*/
|
|
10556
|
+
branch_name?: string | null;
|
|
10557
|
+
/**
|
|
10558
|
+
* Extra context Seer should use when working with this repository.
|
|
10559
|
+
*/
|
|
10560
|
+
instructions?: string | null;
|
|
10561
|
+
/**
|
|
10562
|
+
* Deprecated. Branch overrides selected by matching tags.
|
|
10563
|
+
*
|
|
10564
|
+
* @deprecated
|
|
10565
|
+
*/
|
|
10566
|
+
branch_overrides?: Array<{
|
|
10567
|
+
/**
|
|
10568
|
+
* Event tag key to match.
|
|
10569
|
+
*/
|
|
10570
|
+
tag_name: string;
|
|
10571
|
+
/**
|
|
10572
|
+
* Event tag value to match.
|
|
10573
|
+
*/
|
|
10574
|
+
tag_value: string;
|
|
10575
|
+
/**
|
|
10576
|
+
* The repository branch Seer uses for issues whose events have this tag value.
|
|
10577
|
+
*/
|
|
10578
|
+
branch_name: string;
|
|
10579
|
+
}>;
|
|
10580
|
+
};
|
|
10581
|
+
/**
|
|
10582
|
+
* Allows parameters to be defined in snake case, but passed as camel case.
|
|
10583
|
+
*
|
|
10584
|
+
* Errors are output in camel case.
|
|
10585
|
+
*/
|
|
10586
|
+
export type SeerProjectReposBulk = {
|
|
10587
|
+
/**
|
|
10588
|
+
* Repositories to link and configure for Seer in this project.
|
|
10589
|
+
*/
|
|
10590
|
+
repos: Array<{
|
|
10591
|
+
/**
|
|
10592
|
+
* The ID of an active, supported repository in the organization.
|
|
10593
|
+
*/
|
|
10594
|
+
repository_id: number;
|
|
10595
|
+
/**
|
|
10596
|
+
* The branch Seer works from in this repository. Leave empty to use the repository's default branch.
|
|
10597
|
+
*/
|
|
10598
|
+
branch_name?: string | null;
|
|
10599
|
+
/**
|
|
10600
|
+
* Extra context Seer should use when working with this repository.
|
|
10601
|
+
*/
|
|
10602
|
+
instructions?: string | null;
|
|
10603
|
+
/**
|
|
10604
|
+
* Deprecated. Branch overrides selected by matching tags.
|
|
10605
|
+
*
|
|
10606
|
+
* @deprecated
|
|
10607
|
+
*/
|
|
10608
|
+
branch_overrides?: Array<{
|
|
10609
|
+
/**
|
|
10610
|
+
* Event tag key to match.
|
|
10611
|
+
*/
|
|
10612
|
+
tag_name: string;
|
|
10613
|
+
/**
|
|
10614
|
+
* Event tag value to match.
|
|
10615
|
+
*/
|
|
10616
|
+
tag_value: string;
|
|
10617
|
+
/**
|
|
10618
|
+
* The repository branch Seer uses for issues whose events have this tag value.
|
|
10619
|
+
*/
|
|
10620
|
+
branch_name: string;
|
|
10621
|
+
}>;
|
|
10622
|
+
}>;
|
|
10623
|
+
};
|
|
10506
10624
|
export type SentryAppComponentsResponse = Array<{
|
|
10507
10625
|
uuid: string;
|
|
10508
10626
|
type: string;
|
|
@@ -36428,6 +36546,241 @@ export type LinkProjectRepositoryResponses = {
|
|
|
36428
36546
|
};
|
|
36429
36547
|
};
|
|
36430
36548
|
export type LinkProjectRepositoryResponse = LinkProjectRepositoryResponses[keyof LinkProjectRepositoryResponses];
|
|
36549
|
+
export type ListProjectSeerRepositoriesData = {
|
|
36550
|
+
body?: never;
|
|
36551
|
+
path: {
|
|
36552
|
+
/**
|
|
36553
|
+
* The ID or slug of the organization the resource belongs to.
|
|
36554
|
+
*/
|
|
36555
|
+
organization_id_or_slug: string;
|
|
36556
|
+
/**
|
|
36557
|
+
* The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.
|
|
36558
|
+
*/
|
|
36559
|
+
project_id_or_slug: string;
|
|
36560
|
+
};
|
|
36561
|
+
query?: {
|
|
36562
|
+
/**
|
|
36563
|
+
* Filter repositories using Sentry search syntax. `name` supports substring matching and is also the free-text key. `provider` supports `=`, `!=`, `IN`, and `NOT IN` operators, and matches with or without the `integrations:` prefix.
|
|
36564
|
+
*/
|
|
36565
|
+
query?: string;
|
|
36566
|
+
/**
|
|
36567
|
+
* Sort by repository name or provider. Defaults to `name`.
|
|
36568
|
+
*/
|
|
36569
|
+
sortBy?: '-name' | '-provider' | 'name' | 'provider';
|
|
36570
|
+
/**
|
|
36571
|
+
* A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.
|
|
36572
|
+
*/
|
|
36573
|
+
cursor?: string;
|
|
36574
|
+
/**
|
|
36575
|
+
* The maximum number of results per page.
|
|
36576
|
+
*/
|
|
36577
|
+
per_page?: number;
|
|
36578
|
+
};
|
|
36579
|
+
url: '/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/seer/repos/';
|
|
36580
|
+
};
|
|
36581
|
+
export type ListProjectSeerRepositoriesErrors = {
|
|
36582
|
+
/**
|
|
36583
|
+
* Bad Request
|
|
36584
|
+
*/
|
|
36585
|
+
400: unknown;
|
|
36586
|
+
/**
|
|
36587
|
+
* Unauthorized
|
|
36588
|
+
*/
|
|
36589
|
+
401: unknown;
|
|
36590
|
+
/**
|
|
36591
|
+
* Forbidden
|
|
36592
|
+
*/
|
|
36593
|
+
403: unknown;
|
|
36594
|
+
/**
|
|
36595
|
+
* Not Found
|
|
36596
|
+
*/
|
|
36597
|
+
404: unknown;
|
|
36598
|
+
};
|
|
36599
|
+
export type ListProjectSeerRepositoriesResponses = {
|
|
36600
|
+
200: Array<{
|
|
36601
|
+
id: string;
|
|
36602
|
+
repositoryId: string;
|
|
36603
|
+
organizationId: string;
|
|
36604
|
+
provider: string;
|
|
36605
|
+
owner: string;
|
|
36606
|
+
name: string;
|
|
36607
|
+
externalId: string;
|
|
36608
|
+
integrationId: string | null;
|
|
36609
|
+
branchName: string | null;
|
|
36610
|
+
branchOverrides: Array<{
|
|
36611
|
+
id: string;
|
|
36612
|
+
tagName: string;
|
|
36613
|
+
tagValue: string;
|
|
36614
|
+
branchName: string;
|
|
36615
|
+
}>;
|
|
36616
|
+
instructions: string | null;
|
|
36617
|
+
}>;
|
|
36618
|
+
};
|
|
36619
|
+
export type ListProjectSeerRepositoriesResponse = ListProjectSeerRepositoriesResponses[keyof ListProjectSeerRepositoriesResponses];
|
|
36620
|
+
export type AddProjectSeerRepositoriesData = {
|
|
36621
|
+
/**
|
|
36622
|
+
* Allows parameters to be defined in snake case, but passed as camel case.
|
|
36623
|
+
*
|
|
36624
|
+
* Errors are output in camel case.
|
|
36625
|
+
*/
|
|
36626
|
+
body: {
|
|
36627
|
+
/**
|
|
36628
|
+
* Repositories to link and configure for Seer in this project.
|
|
36629
|
+
*/
|
|
36630
|
+
repos: Array<{
|
|
36631
|
+
/**
|
|
36632
|
+
* The ID of an active, supported repository in the organization.
|
|
36633
|
+
*/
|
|
36634
|
+
repository_id: number;
|
|
36635
|
+
/**
|
|
36636
|
+
* The branch Seer works from in this repository. Leave empty to use the repository's default branch.
|
|
36637
|
+
*/
|
|
36638
|
+
branch_name?: string | null;
|
|
36639
|
+
/**
|
|
36640
|
+
* Extra context Seer should use when working with this repository.
|
|
36641
|
+
*/
|
|
36642
|
+
instructions?: string | null;
|
|
36643
|
+
/**
|
|
36644
|
+
* Deprecated. Branch overrides selected by matching tags.
|
|
36645
|
+
*
|
|
36646
|
+
* @deprecated
|
|
36647
|
+
*/
|
|
36648
|
+
branch_overrides?: Array<{
|
|
36649
|
+
/**
|
|
36650
|
+
* Event tag key to match.
|
|
36651
|
+
*/
|
|
36652
|
+
tag_name: string;
|
|
36653
|
+
/**
|
|
36654
|
+
* Event tag value to match.
|
|
36655
|
+
*/
|
|
36656
|
+
tag_value: string;
|
|
36657
|
+
/**
|
|
36658
|
+
* The repository branch Seer uses for issues whose events have this tag value.
|
|
36659
|
+
*/
|
|
36660
|
+
branch_name: string;
|
|
36661
|
+
}>;
|
|
36662
|
+
}>;
|
|
36663
|
+
};
|
|
36664
|
+
path: {
|
|
36665
|
+
/**
|
|
36666
|
+
* The ID or slug of the organization the resource belongs to.
|
|
36667
|
+
*/
|
|
36668
|
+
organization_id_or_slug: string;
|
|
36669
|
+
/**
|
|
36670
|
+
* The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.
|
|
36671
|
+
*/
|
|
36672
|
+
project_id_or_slug: string;
|
|
36673
|
+
};
|
|
36674
|
+
query?: never;
|
|
36675
|
+
url: '/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/seer/repos/';
|
|
36676
|
+
};
|
|
36677
|
+
export type AddProjectSeerRepositoriesErrors = {
|
|
36678
|
+
/**
|
|
36679
|
+
* Bad Request
|
|
36680
|
+
*/
|
|
36681
|
+
400: unknown;
|
|
36682
|
+
/**
|
|
36683
|
+
* Unauthorized
|
|
36684
|
+
*/
|
|
36685
|
+
401: unknown;
|
|
36686
|
+
/**
|
|
36687
|
+
* Forbidden
|
|
36688
|
+
*/
|
|
36689
|
+
403: unknown;
|
|
36690
|
+
/**
|
|
36691
|
+
* Not Found
|
|
36692
|
+
*/
|
|
36693
|
+
404: unknown;
|
|
36694
|
+
};
|
|
36695
|
+
export type AddProjectSeerRepositoriesResponses = {
|
|
36696
|
+
/**
|
|
36697
|
+
* No Content
|
|
36698
|
+
*/
|
|
36699
|
+
204: void;
|
|
36700
|
+
};
|
|
36701
|
+
export type AddProjectSeerRepositoriesResponse = AddProjectSeerRepositoriesResponses[keyof AddProjectSeerRepositoriesResponses];
|
|
36702
|
+
export type ReplaceProjectSeerRepositoriesData = {
|
|
36703
|
+
/**
|
|
36704
|
+
* Allows parameters to be defined in snake case, but passed as camel case.
|
|
36705
|
+
*
|
|
36706
|
+
* Errors are output in camel case.
|
|
36707
|
+
*/
|
|
36708
|
+
body: {
|
|
36709
|
+
/**
|
|
36710
|
+
* Repositories to link and configure for Seer in this project.
|
|
36711
|
+
*/
|
|
36712
|
+
repos: Array<{
|
|
36713
|
+
/**
|
|
36714
|
+
* The ID of an active, supported repository in the organization.
|
|
36715
|
+
*/
|
|
36716
|
+
repository_id: number;
|
|
36717
|
+
/**
|
|
36718
|
+
* The branch Seer works from in this repository. Leave empty to use the repository's default branch.
|
|
36719
|
+
*/
|
|
36720
|
+
branch_name?: string | null;
|
|
36721
|
+
/**
|
|
36722
|
+
* Extra context Seer should use when working with this repository.
|
|
36723
|
+
*/
|
|
36724
|
+
instructions?: string | null;
|
|
36725
|
+
/**
|
|
36726
|
+
* Deprecated. Branch overrides selected by matching tags.
|
|
36727
|
+
*
|
|
36728
|
+
* @deprecated
|
|
36729
|
+
*/
|
|
36730
|
+
branch_overrides?: Array<{
|
|
36731
|
+
/**
|
|
36732
|
+
* Event tag key to match.
|
|
36733
|
+
*/
|
|
36734
|
+
tag_name: string;
|
|
36735
|
+
/**
|
|
36736
|
+
* Event tag value to match.
|
|
36737
|
+
*/
|
|
36738
|
+
tag_value: string;
|
|
36739
|
+
/**
|
|
36740
|
+
* The repository branch Seer uses for issues whose events have this tag value.
|
|
36741
|
+
*/
|
|
36742
|
+
branch_name: string;
|
|
36743
|
+
}>;
|
|
36744
|
+
}>;
|
|
36745
|
+
};
|
|
36746
|
+
path: {
|
|
36747
|
+
/**
|
|
36748
|
+
* The ID or slug of the organization the resource belongs to.
|
|
36749
|
+
*/
|
|
36750
|
+
organization_id_or_slug: string;
|
|
36751
|
+
/**
|
|
36752
|
+
* The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.
|
|
36753
|
+
*/
|
|
36754
|
+
project_id_or_slug: string;
|
|
36755
|
+
};
|
|
36756
|
+
query?: never;
|
|
36757
|
+
url: '/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/seer/repos/';
|
|
36758
|
+
};
|
|
36759
|
+
export type ReplaceProjectSeerRepositoriesErrors = {
|
|
36760
|
+
/**
|
|
36761
|
+
* Bad Request
|
|
36762
|
+
*/
|
|
36763
|
+
400: unknown;
|
|
36764
|
+
/**
|
|
36765
|
+
* Unauthorized
|
|
36766
|
+
*/
|
|
36767
|
+
401: unknown;
|
|
36768
|
+
/**
|
|
36769
|
+
* Forbidden
|
|
36770
|
+
*/
|
|
36771
|
+
403: unknown;
|
|
36772
|
+
/**
|
|
36773
|
+
* Not Found
|
|
36774
|
+
*/
|
|
36775
|
+
404: unknown;
|
|
36776
|
+
};
|
|
36777
|
+
export type ReplaceProjectSeerRepositoriesResponses = {
|
|
36778
|
+
/**
|
|
36779
|
+
* No Content
|
|
36780
|
+
*/
|
|
36781
|
+
204: void;
|
|
36782
|
+
};
|
|
36783
|
+
export type ReplaceProjectSeerRepositoriesResponse = ReplaceProjectSeerRepositoriesResponses[keyof ReplaceProjectSeerRepositoriesResponses];
|
|
36431
36784
|
export type GetProjectStacktraceLinkData = {
|
|
36432
36785
|
body?: never;
|
|
36433
36786
|
path: {
|
package/dist/valibot.gen.d.ts
CHANGED
|
@@ -99,6 +99,16 @@ export declare const vBaseTeam: v.ObjectSchema<{
|
|
|
99
99
|
readonly avatarUrl: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
100
100
|
}, undefined>;
|
|
101
101
|
}, undefined>;
|
|
102
|
+
/**
|
|
103
|
+
* Allows parameters to be defined in snake case, but passed as camel case.
|
|
104
|
+
*
|
|
105
|
+
* Errors are output in camel case.
|
|
106
|
+
*/
|
|
107
|
+
export declare const vBranchOverride: v.ObjectSchema<{
|
|
108
|
+
readonly tag_name: v.StringSchema<undefined>;
|
|
109
|
+
readonly tag_value: v.StringSchema<undefined>;
|
|
110
|
+
readonly branch_name: v.StringSchema<undefined>;
|
|
111
|
+
}, undefined>;
|
|
102
112
|
export declare const vBulkCodeMappingsPartialResponse: v.ObjectSchema<{
|
|
103
113
|
readonly created: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
104
114
|
readonly updated: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
@@ -5854,6 +5864,24 @@ export declare const vProjectRepoListResponse: v.ArraySchema<v.ObjectSchema<{
|
|
|
5854
5864
|
readonly providerKey: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
|
|
5855
5865
|
readonly mappingCount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
5856
5866
|
}, undefined>, undefined>;
|
|
5867
|
+
export declare const vProjectSeerRepositoriesResponse: v.ArraySchema<v.ObjectSchema<{
|
|
5868
|
+
readonly id: v.StringSchema<undefined>;
|
|
5869
|
+
readonly repositoryId: v.StringSchema<undefined>;
|
|
5870
|
+
readonly organizationId: v.StringSchema<undefined>;
|
|
5871
|
+
readonly provider: v.StringSchema<undefined>;
|
|
5872
|
+
readonly owner: v.StringSchema<undefined>;
|
|
5873
|
+
readonly name: v.StringSchema<undefined>;
|
|
5874
|
+
readonly externalId: v.StringSchema<undefined>;
|
|
5875
|
+
readonly integrationId: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
|
|
5876
|
+
readonly branchName: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
|
|
5877
|
+
readonly branchOverrides: v.ArraySchema<v.ObjectSchema<{
|
|
5878
|
+
readonly id: v.StringSchema<undefined>;
|
|
5879
|
+
readonly tagName: v.StringSchema<undefined>;
|
|
5880
|
+
readonly tagValue: v.StringSchema<undefined>;
|
|
5881
|
+
readonly branchName: v.StringSchema<undefined>;
|
|
5882
|
+
}, undefined>, undefined>;
|
|
5883
|
+
readonly instructions: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
|
|
5884
|
+
}, undefined>, undefined>;
|
|
5857
5885
|
export declare const vProjectSizeStatusCheckRulesResponse: v.ObjectSchema<{
|
|
5858
5886
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
5859
5887
|
readonly rules: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -6426,6 +6454,38 @@ export declare const vScimTeamRequestBody: v.ObjectSchema<{
|
|
|
6426
6454
|
export declare const vSeerModelsResponse: v.ObjectSchema<{
|
|
6427
6455
|
readonly models: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
6428
6456
|
}, undefined>;
|
|
6457
|
+
/**
|
|
6458
|
+
* Allows parameters to be defined in snake case, but passed as camel case.
|
|
6459
|
+
*
|
|
6460
|
+
* Errors are output in camel case.
|
|
6461
|
+
*/
|
|
6462
|
+
export declare const vSeerProjectRepoCreate: v.ObjectSchema<{
|
|
6463
|
+
readonly repository_id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
6464
|
+
readonly branch_name: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
6465
|
+
readonly instructions: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
6466
|
+
readonly branch_overrides: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
6467
|
+
readonly tag_name: v.StringSchema<undefined>;
|
|
6468
|
+
readonly tag_value: v.StringSchema<undefined>;
|
|
6469
|
+
readonly branch_name: v.StringSchema<undefined>;
|
|
6470
|
+
}, undefined>, undefined>, undefined>;
|
|
6471
|
+
}, undefined>;
|
|
6472
|
+
/**
|
|
6473
|
+
* Allows parameters to be defined in snake case, but passed as camel case.
|
|
6474
|
+
*
|
|
6475
|
+
* Errors are output in camel case.
|
|
6476
|
+
*/
|
|
6477
|
+
export declare const vSeerProjectReposBulk: v.ObjectSchema<{
|
|
6478
|
+
readonly repos: v.ArraySchema<v.ObjectSchema<{
|
|
6479
|
+
readonly repository_id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
6480
|
+
readonly branch_name: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
6481
|
+
readonly instructions: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
6482
|
+
readonly branch_overrides: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
6483
|
+
readonly tag_name: v.StringSchema<undefined>;
|
|
6484
|
+
readonly tag_value: v.StringSchema<undefined>;
|
|
6485
|
+
readonly branch_name: v.StringSchema<undefined>;
|
|
6486
|
+
}, undefined>, undefined>, undefined>;
|
|
6487
|
+
}, undefined>, undefined>;
|
|
6488
|
+
}, undefined>;
|
|
6429
6489
|
export declare const vSentryAppComponentsResponse: v.ArraySchema<v.ObjectSchema<{
|
|
6430
6490
|
readonly uuid: v.StringSchema<undefined>;
|
|
6431
6491
|
readonly type: v.StringSchema<undefined>;
|
|
@@ -17515,6 +17575,83 @@ export declare const vLinkProjectRepositoryResponse: v.ObjectSchema<{
|
|
|
17515
17575
|
readonly source: v.StringSchema<undefined>;
|
|
17516
17576
|
readonly created: v.BooleanSchema<undefined>;
|
|
17517
17577
|
}, undefined>;
|
|
17578
|
+
export declare const vListProjectSeerRepositoriesData: v.ObjectSchema<{
|
|
17579
|
+
readonly body: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
17580
|
+
readonly path: v.ObjectSchema<{
|
|
17581
|
+
readonly organization_id_or_slug: v.StringSchema<undefined>;
|
|
17582
|
+
readonly project_id_or_slug: v.StringSchema<undefined>;
|
|
17583
|
+
}, undefined>;
|
|
17584
|
+
readonly query: v.OptionalSchema<v.ObjectSchema<{
|
|
17585
|
+
readonly query: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
17586
|
+
readonly sortBy: v.OptionalSchema<v.PicklistSchema<["-name", "-provider", "name", "provider"], undefined>, undefined>;
|
|
17587
|
+
readonly cursor: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
17588
|
+
readonly per_page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
17589
|
+
}, undefined>, undefined>;
|
|
17590
|
+
}, undefined>;
|
|
17591
|
+
export declare const vListProjectSeerRepositoriesResponse: v.ArraySchema<v.ObjectSchema<{
|
|
17592
|
+
readonly id: v.StringSchema<undefined>;
|
|
17593
|
+
readonly repositoryId: v.StringSchema<undefined>;
|
|
17594
|
+
readonly organizationId: v.StringSchema<undefined>;
|
|
17595
|
+
readonly provider: v.StringSchema<undefined>;
|
|
17596
|
+
readonly owner: v.StringSchema<undefined>;
|
|
17597
|
+
readonly name: v.StringSchema<undefined>;
|
|
17598
|
+
readonly externalId: v.StringSchema<undefined>;
|
|
17599
|
+
readonly integrationId: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
|
|
17600
|
+
readonly branchName: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
|
|
17601
|
+
readonly branchOverrides: v.ArraySchema<v.ObjectSchema<{
|
|
17602
|
+
readonly id: v.StringSchema<undefined>;
|
|
17603
|
+
readonly tagName: v.StringSchema<undefined>;
|
|
17604
|
+
readonly tagValue: v.StringSchema<undefined>;
|
|
17605
|
+
readonly branchName: v.StringSchema<undefined>;
|
|
17606
|
+
}, undefined>, undefined>;
|
|
17607
|
+
readonly instructions: v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>;
|
|
17608
|
+
}, undefined>, undefined>;
|
|
17609
|
+
export declare const vAddProjectSeerRepositoriesData: v.ObjectSchema<{
|
|
17610
|
+
readonly body: v.ObjectSchema<{
|
|
17611
|
+
readonly repos: v.ArraySchema<v.ObjectSchema<{
|
|
17612
|
+
readonly repository_id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
17613
|
+
readonly branch_name: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
17614
|
+
readonly instructions: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
17615
|
+
readonly branch_overrides: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
17616
|
+
readonly tag_name: v.StringSchema<undefined>;
|
|
17617
|
+
readonly tag_value: v.StringSchema<undefined>;
|
|
17618
|
+
readonly branch_name: v.StringSchema<undefined>;
|
|
17619
|
+
}, undefined>, undefined>, undefined>;
|
|
17620
|
+
}, undefined>, undefined>;
|
|
17621
|
+
}, undefined>;
|
|
17622
|
+
readonly path: v.ObjectSchema<{
|
|
17623
|
+
readonly organization_id_or_slug: v.StringSchema<undefined>;
|
|
17624
|
+
readonly project_id_or_slug: v.StringSchema<undefined>;
|
|
17625
|
+
}, undefined>;
|
|
17626
|
+
readonly query: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
17627
|
+
}, undefined>;
|
|
17628
|
+
/**
|
|
17629
|
+
* No Content
|
|
17630
|
+
*/
|
|
17631
|
+
export declare const vAddProjectSeerRepositoriesResponse: v.VoidSchema<undefined>;
|
|
17632
|
+
export declare const vReplaceProjectSeerRepositoriesData: v.ObjectSchema<{
|
|
17633
|
+
readonly body: v.ObjectSchema<{
|
|
17634
|
+
readonly repos: v.ArraySchema<v.ObjectSchema<{
|
|
17635
|
+
readonly repository_id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
17636
|
+
readonly branch_name: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
17637
|
+
readonly instructions: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
17638
|
+
readonly branch_overrides: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
17639
|
+
readonly tag_name: v.StringSchema<undefined>;
|
|
17640
|
+
readonly tag_value: v.StringSchema<undefined>;
|
|
17641
|
+
readonly branch_name: v.StringSchema<undefined>;
|
|
17642
|
+
}, undefined>, undefined>, undefined>;
|
|
17643
|
+
}, undefined>, undefined>;
|
|
17644
|
+
}, undefined>;
|
|
17645
|
+
readonly path: v.ObjectSchema<{
|
|
17646
|
+
readonly organization_id_or_slug: v.StringSchema<undefined>;
|
|
17647
|
+
readonly project_id_or_slug: v.StringSchema<undefined>;
|
|
17648
|
+
}, undefined>;
|
|
17649
|
+
readonly query: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
17650
|
+
}, undefined>;
|
|
17651
|
+
/**
|
|
17652
|
+
* No Content
|
|
17653
|
+
*/
|
|
17654
|
+
export declare const vReplaceProjectSeerRepositoriesResponse: v.VoidSchema<undefined>;
|
|
17518
17655
|
export declare const vGetProjectStacktraceLinkData: v.ObjectSchema<{
|
|
17519
17656
|
readonly body: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
17520
17657
|
readonly path: v.ObjectSchema<{
|