renovate 44.115.2 → 44.115.4

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.
Files changed (98) hide show
  1. package/dist/config/defaults.d.ts +2 -3
  2. package/dist/config/global.d.ts +1 -2
  3. package/dist/config/options/env-options.d.ts +3 -4
  4. package/dist/config/options/index.d.ts +1 -2
  5. package/dist/config/types.d.ts +63 -63
  6. package/dist/config/utils.d.ts +1 -2
  7. package/dist/config/validation-helpers/types.d.ts +2 -3
  8. package/dist/config-validator.d.ts +1 -0
  9. package/dist/constants/category.d.ts +2 -3
  10. package/dist/constants/error-messages.d.ts +57 -58
  11. package/dist/constants/platforms.d.ts +2 -3
  12. package/dist/instrumentation/types.d.ts +13 -14
  13. package/dist/logger/err-serializer.d.ts +1 -2
  14. package/dist/logger/index.d.ts +13 -14
  15. package/dist/logger/renovate-logger.d.ts +1 -2
  16. package/dist/logger/types.d.ts +7 -7
  17. package/dist/manager-list.generated.d.ts +2 -3
  18. package/dist/modules/datasource/common.d.ts +8 -9
  19. package/dist/modules/datasource/index.d.ts +9 -9
  20. package/dist/modules/datasource/npm/schema.d.ts +5 -6
  21. package/dist/modules/datasource/types.d.ts +12 -13
  22. package/dist/modules/manager/custom/jsonata/types.d.ts +2 -3
  23. package/dist/modules/manager/custom/regex/types.d.ts +2 -3
  24. package/dist/modules/manager/custom/types.d.ts +3 -4
  25. package/dist/modules/manager/fingerprint.generated.d.ts +1 -2
  26. package/dist/modules/manager/fingerprint.generated.js +1 -1
  27. package/dist/modules/manager/fingerprint.generated.js.map +1 -1
  28. package/dist/modules/manager/gomod/line-parser.js +2 -2
  29. package/dist/modules/manager/gomod/line-parser.js.map +1 -1
  30. package/dist/modules/manager/index.d.ts +12 -12
  31. package/dist/modules/manager/types.d.ts +26 -27
  32. package/dist/modules/platform/bitbucket/index.d.ts +28 -29
  33. package/dist/modules/platform/bitbucket-server/index.d.ts +33 -34
  34. package/dist/modules/platform/bitbucket-server/types.d.ts +1 -2
  35. package/dist/modules/platform/github/schema.d.ts +3 -4
  36. package/dist/modules/platform/gitlab/code-owners.d.ts +1 -2
  37. package/dist/modules/platform/gitlab/index.d.ts +37 -37
  38. package/dist/modules/platform/gitlab/types.d.ts +2 -3
  39. package/dist/modules/platform/index.d.ts +5 -5
  40. package/dist/modules/platform/scm-manager/index.js +1 -5
  41. package/dist/modules/platform/scm-manager/index.js.map +1 -1
  42. package/dist/modules/platform/types.d.ts +31 -34
  43. package/dist/modules/versioning/generic.d.ts +1 -2
  44. package/dist/modules/versioning/index.d.ts +5 -5
  45. package/dist/modules/versioning/semver-coerced/index.d.ts +7 -7
  46. package/dist/modules/versioning/types.d.ts +11 -12
  47. package/dist/modules/versioning/ubuntu/index.d.ts +6 -6
  48. package/dist/proxy.d.ts +2 -3
  49. package/dist/renovate.d.ts +1 -0
  50. package/dist/types/base.d.ts +2 -3
  51. package/dist/types/branch-status.d.ts +1 -2
  52. package/dist/types/commit-message-json.d.ts +1 -2
  53. package/dist/types/git.d.ts +2 -3
  54. package/dist/types/host-rules.d.ts +3 -4
  55. package/dist/types/index.d.ts +5 -5
  56. package/dist/types/pr-state.d.ts +1 -2
  57. package/dist/types/skip-reason.d.ts +2 -3
  58. package/dist/types/versioning.d.ts +1 -2
  59. package/dist/util/cache/package/backend.d.ts +9 -7
  60. package/dist/util/cache/package/index.d.ts +7 -8
  61. package/dist/util/cache/package/namespaces.d.ts +2 -3
  62. package/dist/util/cache/repository/types.d.ts +10 -11
  63. package/dist/util/compress.d.ts +4 -5
  64. package/dist/util/exec/common.d.ts +2 -3
  65. package/dist/util/exec/common.js +1 -1
  66. package/dist/util/exec/common.js.map +1 -1
  67. package/dist/util/exec/exec-error.d.ts +2 -3
  68. package/dist/util/exec/types.d.ts +30 -27
  69. package/dist/util/exec/types.js.map +1 -1
  70. package/dist/util/git/config.d.ts +1 -2
  71. package/dist/util/git/index.d.ts +56 -56
  72. package/dist/util/git/private-key.d.ts +1 -2
  73. package/dist/util/git/types.d.ts +13 -13
  74. package/dist/util/host-rules.d.ts +14 -15
  75. package/dist/util/http/cache/types.d.ts +1 -2
  76. package/dist/util/http/errors.d.ts +1 -2
  77. package/dist/util/http/github.d.ts +6 -7
  78. package/dist/util/http/gitlab.d.ts +3 -4
  79. package/dist/util/http/http.d.ts +3 -4
  80. package/dist/util/http/legacy.d.ts +1 -2
  81. package/dist/util/http/types.d.ts +20 -21
  82. package/dist/util/merge-confidence/common.d.ts +1 -2
  83. package/dist/util/merge-confidence/types.d.ts +1 -2
  84. package/dist/util/result.d.ts +2 -3
  85. package/dist/util/s3.d.ts +3 -4
  86. package/dist/util/schema-utils/git.d.ts +2 -3
  87. package/dist/util/string-match.d.ts +9 -10
  88. package/dist/util/timestamp.d.ts +4 -5
  89. package/dist/util/url.d.ts +18 -19
  90. package/dist/versioning-list.generated.d.ts +2 -3
  91. package/dist/workers/global/autodiscover.d.ts +2 -3
  92. package/dist/workers/global/config/parse/index.d.ts +2 -3
  93. package/dist/workers/repository/init/types.d.ts +3 -4
  94. package/dist/workers/repository/result.d.ts +4 -5
  95. package/dist/workers/repository/update/pr/changelog/types.d.ts +7 -8
  96. package/dist/workers/types.d.ts +17 -18
  97. package/package.json +4 -4
  98. package/renovate-schema.json +2 -2
@@ -4,19 +4,19 @@ import "../schema-utils/index.js";
4
4
  import { PlatformCommitOptions } from "../../config/types.js";
5
5
  import { StatusResult } from "simple-git";
6
6
  //#region lib/util/git/types.d.ts
7
- type GitNoVerifyOption = 'commit' | 'push';
7
+ export type GitNoVerifyOption = 'commit' | 'push';
8
8
  /**
9
9
  * Represents a virtual branch tracked as `refs/remotes/origin/<name>`.
10
10
  * Used by platforms like Gerrit where changes are represented as refs
11
11
  * (e.g., refs/changes/34/1234/1) instead of regular branches.
12
12
  */
13
- interface VirtualBranch {
13
+ export interface VirtualBranch {
14
14
  /** The ref this virtual branch is fetched from (e.g., 'refs/changes/34/1234/1') */
15
15
  ref: string;
16
16
  /** The commit SHA this virtual branch points to */
17
17
  sha: LongCommitSha;
18
18
  }
19
- interface StorageConfig {
19
+ export interface StorageConfig {
20
20
  currentBranch?: string;
21
21
  defaultBranch?: string;
22
22
  url: string;
@@ -32,7 +32,7 @@ interface StorageConfig {
32
32
  */
33
33
  virtualBranches?: Record<string, VirtualBranch>;
34
34
  }
35
- interface FileAddition {
35
+ export interface FileAddition {
36
36
  /**
37
37
  * Addition creates new file or modifies existing one
38
38
  */
@@ -51,7 +51,7 @@ interface FileAddition {
51
51
  isExecutable?: boolean;
52
52
  isSymlink?: boolean;
53
53
  }
54
- interface FileDeletion {
54
+ export interface FileDeletion {
55
55
  /**
56
56
  * Deletion removes the file
57
57
  */
@@ -61,8 +61,8 @@ interface FileDeletion {
61
61
  */
62
62
  path: string;
63
63
  }
64
- type FileChange = FileAddition | FileDeletion;
65
- interface CommitFilesConfig {
64
+ export type FileChange = FileAddition | FileDeletion;
65
+ export interface CommitFilesConfig {
66
66
  baseBranch?: string;
67
67
  branchName: string;
68
68
  files: FileChange[];
@@ -76,25 +76,25 @@ interface CommitFilesConfig {
76
76
  /** Only needed by Gerrit platform */
77
77
  autoApprove?: boolean;
78
78
  }
79
- interface PushFilesConfig {
79
+ export interface PushFilesConfig {
80
80
  sourceRef: string;
81
81
  targetRef?: string;
82
82
  files: FileChange[];
83
83
  pushOptions?: string[];
84
84
  }
85
- interface CommitResult {
85
+ export interface CommitResult {
86
86
  parentCommitSha: LongCommitSha;
87
87
  commitSha: LongCommitSha;
88
88
  files: FileChange[];
89
89
  }
90
- type GitObjectType = 'blob' | 'tree' | 'commit';
91
- interface DiffTreeItem {
90
+ export type GitObjectType = 'blob' | 'tree' | 'commit';
91
+ export interface DiffTreeItem {
92
92
  path: string;
93
93
  mode: string;
94
94
  type: GitObjectType;
95
95
  sha: LongCommitSha | null;
96
96
  }
97
- type GitOperationType =
97
+ export type GitOperationType =
98
98
  /**
99
99
  * The `git clone` sub-command.
100
100
  */
@@ -164,5 +164,5 @@ type GitOperationType =
164
164
  */
165
165
  'other';
166
166
  //#endregion
167
- export { CommitFilesConfig, CommitResult, DiffTreeItem, FileAddition, FileChange, FileDeletion, GitNoVerifyOption, GitObjectType, GitOperationType, PushFilesConfig, type StatusResult, StorageConfig, VirtualBranch };
167
+ export type { StatusResult };
168
168
  //# sourceMappingURL=types.d.ts.map
@@ -6,15 +6,15 @@ import "../types/index.js";
6
6
  *
7
7
  * Kept in sync with `redactedFields` through tests.
8
8
  */
9
- declare const confidentialFields: (keyof HostRule)[];
10
- interface LegacyHostRule {
9
+ export declare const confidentialFields: (keyof HostRule)[];
10
+ export interface LegacyHostRule {
11
11
  hostName?: string;
12
12
  domainName?: string;
13
13
  baseUrl?: string;
14
14
  host?: string;
15
15
  endpoint?: string;
16
16
  }
17
- declare function migrateRule(rule: LegacyHostRule & HostRule): HostRule;
17
+ export declare function migrateRule(rule: LegacyHostRule & HostRule): HostRule;
18
18
  /**
19
19
  * Enforce the `allowedHeaders` allowlist on a set of host rules.
20
20
  *
@@ -27,8 +27,8 @@ declare function migrateRule(rule: LegacyHostRule & HostRule): HostRule;
27
27
  *
28
28
  * Headers that survive this allowlist are still subject to how {@link find} combines them: an admin's headers for a host are applied over those of any repository or preset rule matching the same request, so a repository can neither drop nor substitute them.
29
29
  */
30
- declare function filterAllowedHeaders(rules: HostRule[], allowedHeaders?: string[], warnOnDenied?: boolean): HostRule[];
31
- interface AddHostRuleOptions {
30
+ export declare function filterAllowedHeaders(rules: HostRule[], allowedHeaders?: string[], warnOnDenied?: boolean): HostRule[];
31
+ export interface AddHostRuleOptions {
32
32
  /** the effective allowlist. Defaults to `GlobalConfig`; pass it explicitly when `GlobalConfig` does not yet reflect the repository the rule is registered for */
33
33
  allowedHeaders?: string[];
34
34
  /**
@@ -44,28 +44,27 @@ interface AddHostRuleOptions {
44
44
  */
45
45
  inherited?: boolean;
46
46
  }
47
- declare function add(params: HostRule, options?: AddHostRuleOptions): void;
48
- interface HostRuleSearch {
47
+ export declare function add(params: HostRule, options?: AddHostRuleOptions): void;
48
+ export interface HostRuleSearch {
49
49
  hostType?: string;
50
50
  url?: string;
51
51
  readOnly?: boolean;
52
52
  }
53
- declare function matchesHost(url: string, matchHost: string): boolean;
54
- declare function find(search: HostRuleSearch): CombinedHostRule;
55
- declare function hosts({ hostType }: {
53
+ export declare function matchesHost(url: string, matchHost: string): boolean;
54
+ export declare function find(search: HostRuleSearch): CombinedHostRule;
55
+ export declare function hosts({ hostType }: {
56
56
  hostType: string;
57
57
  }): string[];
58
- declare function hostType({ url }: {
58
+ export declare function hostType({ url }: {
59
59
  url: string;
60
60
  }): string | null;
61
- declare function findAll({ hostType }: {
61
+ export declare function findAll({ hostType }: {
62
62
  hostType: string;
63
63
  }): HostRule[];
64
64
  /**
65
65
  * @returns a deep copy of all known host rules without any filtering
66
66
  */
67
- declare function getAll(): HostRule[];
68
- declare function clear(): void;
67
+ export declare function getAll(): HostRule[];
68
+ export declare function clear(): void;
69
69
  //#endregion
70
- export { AddHostRuleOptions, HostRuleSearch, LegacyHostRule, add, clear, confidentialFields, filterAllowedHeaders, find, findAll, getAll, hostType, hosts, matchesHost, migrateRule };
71
70
  //# sourceMappingURL=host-rules.d.ts.map
@@ -1,10 +1,9 @@
1
1
  import { GotOptions, HttpResponse } from "../types.js";
2
2
  //#region lib/util/http/cache/types.d.ts
3
- interface HttpCacheProvider {
3
+ export interface HttpCacheProvider {
4
4
  setCacheHeaders<T extends Pick<GotOptions, 'headers'>>(method: string, url: string, opts: T): Promise<void>;
5
5
  bypassServer<T>(method: string, url: string, ignoreSoftTtl?: boolean): Promise<HttpResponse<T> | null>;
6
6
  wrapServerResponse<T>(method: string, url: string, resp: HttpResponse<T>): Promise<HttpResponse<T>>;
7
7
  }
8
8
  //#endregion
9
- export { HttpCacheProvider };
10
9
  //# sourceMappingURL=types.d.ts.map
@@ -1,5 +1,4 @@
1
1
  //#region lib/util/http/errors.d.ts
2
- declare class EmptyResultError extends Error {}
2
+ export declare class EmptyResultError extends Error {}
3
3
  //#endregion
4
- export { EmptyResultError };
5
4
  //# sourceMappingURL=errors.d.ts.map
@@ -2,16 +2,16 @@ import { GraphqlOptions, HttpMethod, HttpOptions, HttpResponse } from "./types.j
2
2
  import { HttpBase, InternalHttpOptions, InternalJsonUnsafeOptions } from "./http.js";
3
3
  import { GotLegacyError } from "./legacy.js";
4
4
  //#region lib/util/http/github.d.ts
5
- declare function setBaseUrl(url: string): void;
6
- interface GithubBaseHttpOptions extends HttpOptions {
5
+ export declare function setBaseUrl(url: string): void;
6
+ export interface GithubBaseHttpOptions extends HttpOptions {
7
7
  repository?: string;
8
8
  }
9
- interface GithubHttpOptions extends GithubBaseHttpOptions {
9
+ export interface GithubHttpOptions extends GithubBaseHttpOptions {
10
10
  paginate?: boolean | string;
11
11
  paginationField?: string;
12
12
  pageLimit?: number;
13
13
  }
14
- type GithubGraphqlResponse<T = unknown> = {
14
+ export type GithubGraphqlResponse<T = unknown> = {
15
15
  data: T;
16
16
  errors?: never;
17
17
  } | {
@@ -26,8 +26,8 @@ interface GraphqlPageCacheItem {
26
26
  pageLastResizedAt: string;
27
27
  pageSize: number;
28
28
  }
29
- type GraphqlPageCache = Record<string, GraphqlPageCacheItem>;
30
- declare class GithubHttp extends HttpBase<GithubHttpOptions> {
29
+ export type GraphqlPageCache = Record<string, GraphqlPageCacheItem>;
30
+ export declare class GithubHttp extends HttpBase<GithubHttpOptions> {
31
31
  protected get baseUrl(): string | undefined;
32
32
  constructor(hostType?: string, options?: HttpOptions);
33
33
  protected extraOptions(): readonly string[];
@@ -50,5 +50,4 @@ declare class GithubHttp extends HttpBase<GithubHttpOptions> {
50
50
  getRawTextFile(url: string, options?: InternalHttpOptions & GithubBaseHttpOptions): Promise<HttpResponse>;
51
51
  }
52
52
  //#endregion
53
- export { GithubBaseHttpOptions, GithubGraphqlResponse, GithubHttp, GithubHttpOptions, GraphqlPageCache, setBaseUrl };
54
53
  //# sourceMappingURL=github.d.ts.map
@@ -2,11 +2,11 @@ import { HttpMethod, HttpOptions, HttpResponse } from "./types.js";
2
2
  import { HttpBase, InternalJsonUnsafeOptions } from "./http.js";
3
3
  import { RetryObject } from "got";
4
4
  //#region lib/util/http/gitlab.d.ts
5
- declare function setBaseUrl(url: string): void;
6
- interface GitlabHttpOptions extends HttpOptions {
5
+ export declare function setBaseUrl(url: string): void;
6
+ export interface GitlabHttpOptions extends HttpOptions {
7
7
  paginate?: boolean;
8
8
  }
9
- declare class GitlabHttp extends HttpBase<GitlabHttpOptions> {
9
+ export declare class GitlabHttp extends HttpBase<GitlabHttpOptions> {
10
10
  protected get baseUrl(): string | undefined;
11
11
  constructor(type?: string, options?: GitlabHttpOptions);
12
12
  protected extraOptions(): readonly string[];
@@ -15,5 +15,4 @@ declare class GitlabHttp extends HttpBase<GitlabHttpOptions> {
15
15
  protected calculateRetryDelay(retryObject: RetryObject): number;
16
16
  }
17
17
  //#endregion
18
- export { GitlabHttp, GitlabHttpOptions, setBaseUrl };
19
18
  //# sourceMappingURL=gitlab.d.ts.map
@@ -4,16 +4,16 @@ import { Options, OptionsInit, RetryObject } from "got";
4
4
  import { ZodType, z } from "zod/v4";
5
5
  import "type-fest";
6
6
  //#region lib/util/http/http.d.ts
7
- interface InternalJsonUnsafeOptions<Opts extends HttpOptions = HttpOptions> {
7
+ export interface InternalJsonUnsafeOptions<Opts extends HttpOptions = HttpOptions> {
8
8
  url: string | URL;
9
9
  httpOptions?: Opts;
10
10
  }
11
- interface InternalHttpOptions extends HttpOptions {
11
+ export interface InternalHttpOptions extends HttpOptions {
12
12
  json?: HttpOptions['body'];
13
13
  method?: HttpMethod;
14
14
  parseJson?: Options['parseJson'];
15
15
  }
16
- declare abstract class HttpBase<JSONOpts extends HttpOptions = HttpOptions, Opts extends HttpOptions = HttpOptions> {
16
+ export declare abstract class HttpBase<JSONOpts extends HttpOptions = HttpOptions, Opts extends HttpOptions = HttpOptions> {
17
17
  private readonly options;
18
18
  protected get baseUrl(): string | undefined;
19
19
  protected hostType: string;
@@ -104,5 +104,4 @@ declare abstract class HttpBase<JSONOpts extends HttpOptions = HttpOptions, Opts
104
104
  getToml<Schema extends ZodType<any, any, any>>(url: string, options: JSONOpts, schema: Schema): Promise<HttpResponse<z.infer<Schema>>>;
105
105
  }
106
106
  //#endregion
107
- export { HttpBase, InternalHttpOptions, InternalJsonUnsafeOptions };
108
107
  //# sourceMappingURL=http.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { RequestError } from "got";
2
2
  //#region lib/util/http/legacy.d.ts
3
- type GotLegacyError<E = unknown, T = unknown> = RequestError & {
3
+ export type GotLegacyError<E = unknown, T = unknown> = RequestError & {
4
4
  statusCode?: number;
5
5
  body: {
6
6
  message?: string;
@@ -9,5 +9,4 @@ type GotLegacyError<E = unknown, T = unknown> = RequestError & {
9
9
  headers?: Record<string, T>;
10
10
  };
11
11
  //#endregion
12
- export { GotLegacyError };
13
12
  //# sourceMappingURL=legacy.d.ts.map
@@ -4,18 +4,18 @@ import { OptionsInit, OptionsOfBufferResponseBody, OptionsOfJSONResponseBody, Op
4
4
  import { ZodError } from "zod/v4";
5
5
  import { IncomingHttpHeaders } from "node:http";
6
6
  //#region lib/util/http/types.d.ts
7
- type GotContextOptions = {
7
+ export type GotContextOptions = {
8
8
  authType?: string;
9
9
  } & Record<string, unknown>;
10
- type GotOptions = GotBufferOptions | GotTextOptions | GotJSONOptions;
11
- type GotBufferOptions = OptionsOfBufferResponseBody & GotExtraOptions;
12
- type GotTextOptions = OptionsOfTextResponseBody & GotExtraOptions;
13
- type GotJSONOptions = OptionsOfJSONResponseBody & GotExtraOptions;
14
- type GotStreamOptions = OptionsInit & GotExtraOptions;
10
+ export type GotOptions = GotBufferOptions | GotTextOptions | GotJSONOptions;
11
+ export type GotBufferOptions = OptionsOfBufferResponseBody & GotExtraOptions;
12
+ export type GotTextOptions = OptionsOfTextResponseBody & GotExtraOptions;
13
+ export type GotJSONOptions = OptionsOfJSONResponseBody & GotExtraOptions;
14
+ export type GotStreamOptions = OptionsInit & GotExtraOptions;
15
15
  /**
16
16
  * Renovate extra options.
17
17
  */
18
- interface GotExtraOptions {
18
+ export interface GotExtraOptions {
19
19
  abortOnError?: boolean;
20
20
  abortIgnoreStatusCodes?: number[];
21
21
  token?: string;
@@ -33,10 +33,10 @@ interface GotExtraOptions {
33
33
  /**
34
34
  * Renovate extra options that are not part of `got` options.
35
35
  */
36
- declare const GotExtraOptionKeys: (keyof GotExtraOptions)[];
37
- type OutgoingHttpHeaders = Record<string, string | string[] | undefined>;
38
- type GraphqlVariables = Record<string, unknown>;
39
- interface GraphqlOptions {
36
+ export declare const GotExtraOptionKeys: (keyof GotExtraOptions)[];
37
+ export type OutgoingHttpHeaders = Record<string, string | string[] | undefined>;
38
+ export type GraphqlVariables = Record<string, unknown>;
39
+ export interface GraphqlOptions {
40
40
  variables?: GraphqlVariables;
41
41
  paginate?: boolean;
42
42
  count?: number;
@@ -50,7 +50,7 @@ interface GraphqlOptions {
50
50
  * Renovate http options that are partly not part of `got` options.
51
51
  * Remember to delete these in `normalizeGotOptions` before passing to `got`.
52
52
  */
53
- interface HttpOptions {
53
+ export interface HttpOptions {
54
54
  body?: any;
55
55
  username?: string;
56
56
  password?: string;
@@ -72,28 +72,27 @@ interface HttpOptions {
72
72
  */
73
73
  responseBecomesConfig?: boolean;
74
74
  }
75
- interface HttpHeaders extends IncomingHttpHeaders {
75
+ export interface HttpHeaders extends IncomingHttpHeaders {
76
76
  link?: string | undefined;
77
77
  }
78
- type HttpMethod = 'get' | 'post' | 'put' | 'patch' | 'delete' | 'head';
79
- interface HttpResponse<T = string> {
78
+ export type HttpMethod = 'get' | 'post' | 'put' | 'patch' | 'delete' | 'head';
79
+ export interface HttpResponse<T = string> {
80
80
  statusCode: number;
81
81
  body: T;
82
82
  headers: HttpHeaders;
83
83
  authorization?: boolean;
84
84
  cached?: boolean;
85
85
  }
86
- type Task<T> = () => Promise<T>;
87
- type GotTask<T = unknown> = Task<HttpResponse<T>>;
88
- interface ThrottleLimitRule {
86
+ export type Task<T> = () => Promise<T>;
87
+ export type GotTask<T = unknown> = Task<HttpResponse<T>>;
88
+ export interface ThrottleLimitRule {
89
89
  matchHost: string;
90
90
  throttleMs: number;
91
91
  }
92
- interface ConcurrencyLimitRule {
92
+ export interface ConcurrencyLimitRule {
93
93
  matchHost: string;
94
94
  concurrency: number;
95
95
  }
96
- type SafeJsonError = RequestError | ZodError | EmptyResultError;
96
+ export type SafeJsonError = RequestError | ZodError | EmptyResultError;
97
97
  //#endregion
98
- export { ConcurrencyLimitRule, GotBufferOptions, GotContextOptions, GotExtraOptionKeys, GotExtraOptions, GotJSONOptions, GotOptions, GotStreamOptions, GotTask, GotTextOptions, GraphqlOptions, GraphqlVariables, HttpHeaders, HttpMethod, HttpOptions, HttpResponse, OutgoingHttpHeaders, SafeJsonError, Task, ThrottleLimitRule };
99
98
  //# sourceMappingURL=types.d.ts.map
@@ -1,5 +1,4 @@
1
1
  //#region lib/util/merge-confidence/common.d.ts
2
- declare const MERGE_CONFIDENCE: readonly ['low', 'neutral', 'high', 'very high'];
2
+ export declare const MERGE_CONFIDENCE: readonly ['low', 'neutral', 'high', 'very high'];
3
3
  //#endregion
4
- export { MERGE_CONFIDENCE };
5
4
  //# sourceMappingURL=common.d.ts.map
@@ -1,6 +1,5 @@
1
1
  import { MERGE_CONFIDENCE } from "./common.js";
2
2
  //#region lib/util/merge-confidence/types.d.ts
3
- type MergeConfidence = (typeof MERGE_CONFIDENCE)[number];
3
+ export type MergeConfidence = (typeof MERGE_CONFIDENCE)[number];
4
4
  //#endregion
5
- export { MergeConfidence };
6
5
  //# sourceMappingURL=types.d.ts.map
@@ -32,7 +32,7 @@ type RawValue<T extends Val> = Exclude<T, ZodSafeParseResult<T> | Promise<unknow
32
32
  * - `.transform()` are pipes which can be chained
33
33
  * - `.unwrap()` is the point of consumption
34
34
  */
35
- declare class Result<T extends Val, E extends Val = Error> {
35
+ export declare class Result<T extends Val, E extends Val = Error> {
36
36
  private readonly res;
37
37
  private constructor();
38
38
  static ok<T extends Val>(val: T): Result<T, never>;
@@ -217,7 +217,7 @@ declare class Result<T extends Val, E extends Val = Error> {
217
217
  *
218
218
  * All the methods resemble `Result` methods, but work asynchronously.
219
219
  */
220
- declare class AsyncResult<T extends Val, E extends Val> implements PromiseLike<Result<T, E>> {
220
+ export declare class AsyncResult<T extends Val, E extends Val> implements PromiseLike<Result<T, E>> {
221
221
  private asyncResult;
222
222
  private constructor();
223
223
  then<TResult1 = Result<T, E>>(onfulfilled?: ((value: Result<T, E>) => TResult1 | PromiseLike<TResult1>) | null): PromiseLike<TResult1>;
@@ -295,5 +295,4 @@ declare class AsyncResult<T extends Val, E extends Val> implements PromiseLike<R
295
295
  onError(fn: (err: E) => void): AsyncResult<T, E>;
296
296
  }
297
297
  //#endregion
298
- export { AsyncResult, Result };
299
298
  //# sourceMappingURL=result.d.ts.map
package/dist/util/s3.d.ts CHANGED
@@ -1,11 +1,10 @@
1
1
  import { S3Client, S3ClientConfig } from "@aws-sdk/client-s3";
2
2
  //#region lib/util/s3.d.ts
3
- declare function getS3Client(s3Endpoint?: string, s3PathStyle?: boolean, credentials?: S3ClientConfig['credentials']): S3Client;
4
- interface S3UrlParts {
3
+ export declare function getS3Client(s3Endpoint?: string, s3PathStyle?: boolean, credentials?: S3ClientConfig['credentials']): S3Client;
4
+ export interface S3UrlParts {
5
5
  Bucket: string;
6
6
  Key: string;
7
7
  }
8
- declare function parseS3Url(rawUrl: URL | string): S3UrlParts | null;
8
+ export declare function parseS3Url(rawUrl: URL | string): S3UrlParts | null;
9
9
  //#endregion
10
- export { S3UrlParts, getS3Client, parseS3Url };
11
10
  //# sourceMappingURL=s3.d.ts.map
@@ -1,7 +1,6 @@
1
1
  import { z } from "zod/v4";
2
2
  //#region lib/util/schema-utils/git.d.ts
3
- declare const LongCommitSha: z.core.$ZodBranded<z.ZodString, "LongCommitSha", "out">;
4
- type LongCommitSha = z.infer<typeof LongCommitSha>;
3
+ export declare const LongCommitSha: z.core.$ZodBranded<z.ZodString, "LongCommitSha", "out">;
4
+ export type LongCommitSha = z.infer<typeof LongCommitSha>;
5
5
  //#endregion
6
- export { LongCommitSha };
7
6
  //# sourceMappingURL=git.d.ts.map
@@ -1,13 +1,12 @@
1
1
  //#region lib/util/string-match.d.ts
2
- type StringMatchPredicate = (s: string) => boolean;
3
- declare function isDockerDigest(input: string): boolean;
4
- declare function getRegexOrGlobPredicate(pattern: string): StringMatchPredicate;
5
- declare function matchRegexOrGlob(input: string, pattern: string): boolean;
6
- declare function matchRegexOrGlobList(input: string, patterns: string[]): boolean;
7
- declare function anyMatchRegexOrGlobList(inputs: string[], patterns: string[]): boolean;
8
- declare const UUIDRegex: RegExp;
9
- declare function isRegexMatch(input: unknown): input is string;
10
- declare function getRegexPredicate(input: string): StringMatchPredicate | null;
2
+ export type StringMatchPredicate = (s: string) => boolean;
3
+ export declare function isDockerDigest(input: string): boolean;
4
+ export declare function getRegexOrGlobPredicate(pattern: string): StringMatchPredicate;
5
+ export declare function matchRegexOrGlob(input: string, pattern: string): boolean;
6
+ export declare function matchRegexOrGlobList(input: string, patterns: string[]): boolean;
7
+ export declare function anyMatchRegexOrGlobList(inputs: string[], patterns: string[]): boolean;
8
+ export declare const UUIDRegex: RegExp;
9
+ export declare function isRegexMatch(input: unknown): input is string;
10
+ export declare function getRegexPredicate(input: string): StringMatchPredicate | null;
11
11
  //#endregion
12
- export { StringMatchPredicate, UUIDRegex, anyMatchRegexOrGlobList, getRegexOrGlobPredicate, getRegexPredicate, isDockerDigest, isRegexMatch, matchRegexOrGlob, matchRegexOrGlobList };
13
12
  //# sourceMappingURL=string-match.d.ts.map
@@ -1,11 +1,10 @@
1
1
  import { z } from "zod/v4";
2
2
  //#region lib/util/timestamp.d.ts
3
- type Timestamp = string & {
3
+ export type Timestamp = string & {
4
4
  __timestamp: never;
5
5
  };
6
- declare function asTimestamp(input: unknown): Timestamp | null;
7
- declare const Timestamp: z.ZodPipe<z.ZodUnknown, z.ZodTransform<Timestamp, unknown>>;
8
- declare const MaybeTimestamp: z.ZodCatch<z.ZodNullable<z.ZodPipe<z.ZodUnknown, z.ZodTransform<Timestamp, unknown>>>>;
6
+ export declare function asTimestamp(input: unknown): Timestamp | null;
7
+ export declare const Timestamp: z.ZodPipe<z.ZodUnknown, z.ZodTransform<Timestamp, unknown>>;
8
+ export declare const MaybeTimestamp: z.ZodCatch<z.ZodNullable<z.ZodPipe<z.ZodUnknown, z.ZodTransform<Timestamp, unknown>>>>;
9
9
  //#endregion
10
- export { MaybeTimestamp, Timestamp, asTimestamp };
11
10
  //# sourceMappingURL=timestamp.d.ts.map
@@ -1,25 +1,25 @@
1
1
  import _parseLinkHeader from "parse-link-header";
2
2
  //#region lib/util/url.d.ts
3
- declare function joinUrlParts(...parts: string[]): string;
4
- declare function ensurePathPrefix(url: string, prefix: string): string;
5
- declare function ensureTrailingSlash(url: string): string;
6
- declare function trimTrailingSlash(url: string): string;
7
- declare function trimLeadingSlash(path: string): string;
8
- declare function trimSlashes(path: string): string;
3
+ export declare function joinUrlParts(...parts: string[]): string;
4
+ export declare function ensurePathPrefix(url: string, prefix: string): string;
5
+ export declare function ensureTrailingSlash(url: string): string;
6
+ export declare function trimTrailingSlash(url: string): string;
7
+ export declare function trimLeadingSlash(path: string): string;
8
+ export declare function trimSlashes(path: string): string;
9
9
  /**
10
10
  * Resolves an input path against a base URL
11
11
  *
12
12
  * @param baseUrl - base URL to resolve against
13
13
  * @param input - input path (if this is a full URL, it will be returned)
14
14
  */
15
- declare function resolveBaseUrl(baseUrl: string, input: string | URL): string;
15
+ export declare function resolveBaseUrl(baseUrl: string, input: string | URL): string;
16
16
  /**
17
17
  * Replaces the path of a URL with a new path
18
18
  *
19
19
  * @param baseUrl - source URL
20
20
  * @param path - replacement path (if this is a full URL, it will be returned)
21
21
  */
22
- declare function replaceUrlPath(baseUrl: string | URL, path: string): string;
22
+ export declare function replaceUrlPath(baseUrl: string | URL, path: string): string;
23
23
  /**
24
24
  * Resolves a server-provided pagination "next" URL against the current request
25
25
  * URL, returning it only when it stays on the same origin.
@@ -35,16 +35,16 @@ declare function replaceUrlPath(baseUrl: string | URL, path: string): string;
35
35
  * @param nextUrl - the remote-server-provided pagination target (may be relative, and may be malicious)
36
36
  * @returns the resolved absolute URL if same-origin, otherwise `null`
37
37
  */
38
- declare function resolveSameOriginUrl(baseUrl: string | URL, nextUrl: string | URL): string | null;
39
- declare function getQueryString(params: Record<string, any>): string;
40
- declare function isHttpUrl(url: unknown): boolean;
41
- declare function parseUrl(url: URL | string | undefined | null): URL | null;
38
+ export declare function resolveSameOriginUrl(baseUrl: string | URL, nextUrl: string | URL): string | null;
39
+ export declare function getQueryString(params: Record<string, any>): string;
40
+ export declare function isHttpUrl(url: unknown): boolean;
41
+ export declare function parseUrl(url: URL | string | undefined | null): URL | null;
42
42
  /**
43
43
  * Tries to create an URL object from either a full URL string or a hostname
44
44
  * @param url either the full url or a hostname
45
45
  * @returns an URL object or null
46
46
  */
47
- declare function createURLFromHostOrURL(url: string): URL | null;
47
+ export declare function createURLFromHostOrURL(url: string): URL | null;
48
48
  /**
49
49
  * Removes the `user:password@` userinfo from a URL.
50
50
  *
@@ -52,14 +52,13 @@ declare function createURLFromHostOrURL(url: string): URL | null;
52
52
  *
53
53
  * @returns the URL's `href` without userinfo, or `null` if `url` cannot be parsed
54
54
  */
55
- declare function stripUrlCredentials(url: URL): string;
56
- declare function stripUrlCredentials(url: string | URL): string | null;
57
- type LinkHeaderLinks = _parseLinkHeader.Links;
58
- declare function parseLinkHeader(linkHeader: string | null | undefined): LinkHeaderLinks | null;
55
+ export declare function stripUrlCredentials(url: URL): string;
56
+ export declare function stripUrlCredentials(url: string | URL): string | null;
57
+ export type LinkHeaderLinks = _parseLinkHeader.Links;
58
+ export declare function parseLinkHeader(linkHeader: string | null | undefined): LinkHeaderLinks | null;
59
59
  /**
60
60
  * prefix https:// to hosts with port or path
61
61
  */
62
- declare function massageHostUrl(url: string): string;
62
+ export declare function massageHostUrl(url: string): string;
63
63
  //#endregion
64
- export { LinkHeaderLinks, createURLFromHostOrURL, ensurePathPrefix, ensureTrailingSlash, getQueryString, isHttpUrl, joinUrlParts, massageHostUrl, parseLinkHeader, parseUrl, replaceUrlPath, resolveBaseUrl, resolveSameOriginUrl, stripUrlCredentials, trimLeadingSlash, trimSlashes, trimTrailingSlash };
65
64
  //# sourceMappingURL=url.d.ts.map
@@ -1,6 +1,5 @@
1
1
  //#region lib/versioning-list.generated.d.ts
2
- declare const AllVersioningsListLiteral: readonly ["apk", "aws-eks-addon", "aws-machine-image", "azure-rest-api", "bazel-module", "cargo", "composer", "conan", "conda", "deb", "debian", "deno", "devbox", "docker", "elm", "exact", "git", "github-actions", "glasskube", "go-mod-directive", "gradle", "hashicorp", "helm", "hermit", "hex", "ivy", "kubernetes-api", "lambda-node", "loose", "maven", "nixpkgs", "node", "npm", "nuget", "paket", "pep440", "perl", "poetry", "pvp", "python", "redhat", "regex", "rez", "rpm", "ruby", "rust-release-channel", "same-major", "semver", "semver-coerced", "semver-partial", "swift", "ubuntu", "unity3d", "unity3d-packages"];
3
- type VersioningName = typeof AllVersioningsListLiteral[number];
2
+ export declare const AllVersioningsListLiteral: readonly ["apk", "aws-eks-addon", "aws-machine-image", "azure-rest-api", "bazel-module", "cargo", "composer", "conan", "conda", "deb", "debian", "deno", "devbox", "docker", "elm", "exact", "git", "github-actions", "glasskube", "go-mod-directive", "gradle", "hashicorp", "helm", "hermit", "hex", "ivy", "kubernetes-api", "lambda-node", "loose", "maven", "nixpkgs", "node", "npm", "nuget", "paket", "pep440", "perl", "poetry", "pvp", "python", "redhat", "regex", "rez", "rpm", "ruby", "rust-release-channel", "same-major", "semver", "semver-coerced", "semver-partial", "swift", "ubuntu", "unity3d", "unity3d-packages"];
3
+ export type VersioningName = typeof AllVersioningsListLiteral[number];
4
4
  //#endregion
5
- export { AllVersioningsListLiteral, VersioningName };
6
5
  //# sourceMappingURL=versioning-list.generated.d.ts.map
@@ -1,7 +1,6 @@
1
1
  import { AllConfig } from "../../config/types.js";
2
2
  //#region lib/workers/global/autodiscover.d.ts
3
- declare function autodiscoverRepositories(config: AllConfig): Promise<AllConfig>;
4
- declare function applyFilters(repos: string[], filters: string[]): string[];
3
+ export declare function autodiscoverRepositories(config: AllConfig): Promise<AllConfig>;
4
+ export declare function applyFilters(repos: string[], filters: string[]): string[];
5
5
  //#endregion
6
- export { applyFilters, autodiscoverRepositories };
7
6
  //# sourceMappingURL=autodiscover.d.ts.map
@@ -1,7 +1,6 @@
1
1
  import { AllConfig } from "../../../../config/types.js";
2
2
  //#region lib/workers/global/config/parse/index.d.ts
3
- declare function resolveGlobalExtends(globalExtends: string[], ignorePresets?: string[]): Promise<AllConfig>;
4
- declare function parseConfigs(env: NodeJS.ProcessEnv, argv: string[]): Promise<AllConfig>;
3
+ export declare function resolveGlobalExtends(globalExtends: string[], ignorePresets?: string[]): Promise<AllConfig>;
4
+ export declare function parseConfigs(env: NodeJS.ProcessEnv, argv: string[]): Promise<AllConfig>;
5
5
  //#endregion
6
- export { parseConfigs, resolveGlobalExtends };
7
6
  //# sourceMappingURL=index.d.ts.map
@@ -1,18 +1,17 @@
1
1
  import "../../../config/types.js";
2
2
  //#region lib/workers/repository/init/types.d.ts
3
- interface RepoConfigError {
3
+ export interface RepoConfigError {
4
4
  validationError: string;
5
5
  validationMessage: string;
6
6
  }
7
- interface RepoFileConfig {
7
+ export interface RepoFileConfig {
8
8
  configFileName?: string;
9
9
  configFileParsed?: any;
10
10
  configFileParseError?: RepoConfigError;
11
11
  }
12
- interface RepoInitConfig {
12
+ export interface RepoInitConfig {
13
13
  defaultBranchSha?: string;
14
14
  repoConfig?: RepoFileConfig;
15
15
  }
16
16
  //#endregion
17
- export { RepoConfigError, RepoFileConfig, RepoInitConfig };
18
17
  //# sourceMappingURL=types.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { ConfigErrors, EXTERNAL_HOST_ERROR, MANAGER_LOCKFILE_ERROR, MISSING_API_CREDENTIALS, PlatformErrors, RepositoryErrors, SystemErrors, TemporaryErrors, UNKNOWN_ERROR } from "../../constants/error-messages.js";
2
2
  import { RenovateConfig } from "../../config/types.js";
3
3
  //#region lib/workers/repository/result.d.ts
4
- type ProcessStatus =
4
+ export type ProcessStatus =
5
5
  /**
6
6
  * The repository has been disabled, and will not be processed.
7
7
  *
@@ -24,7 +24,7 @@ type ProcessStatus =
24
24
  * The repository has an onboarding PR from Renovate that has not yet been reviewed and merged.
25
25
  */
26
26
  'onboarding' | 'unknown';
27
- interface ProcessResult {
27
+ export interface ProcessResult {
28
28
  res: RepositoryResult;
29
29
  status: ProcessStatus;
30
30
  enabled: boolean | undefined;
@@ -33,14 +33,13 @@ interface ProcessResult {
33
33
  exitCode: number;
34
34
  }
35
35
  /** a strong type for any repository result status that Renovate may report */
36
- type RepositoryResult =
36
+ export type RepositoryResult =
37
37
  /** repository was processed successfully */
38
38
  'done' |
39
39
  /** Renovate performed branch-based automerge on one branch during its run */
40
40
  'automerged' |
41
41
  /** the repository is not yet onboarded, and its onboarding PR was processed during this run */
42
42
  'onboarding' | (typeof SystemErrors)[number] | (typeof RepositoryErrors)[number] | (typeof TemporaryErrors)[number] | (typeof ConfigErrors)[number] | (typeof PlatformErrors)[number] | typeof EXTERNAL_HOST_ERROR | typeof MISSING_API_CREDENTIALS | typeof MANAGER_LOCKFILE_ERROR | typeof UNKNOWN_ERROR;
43
- declare function processResult(config: RenovateConfig, res: RepositoryResult): ProcessResult;
43
+ export declare function processResult(config: RenovateConfig, res: RepositoryResult): ProcessResult;
44
44
  //#endregion
45
- export { ProcessResult, ProcessStatus, RepositoryResult, processResult };
46
45
  //# sourceMappingURL=result.d.ts.map