@backstage/integration 1.16.1-next.0 → 1.16.2-next.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/CHANGELOG.md +27 -0
- package/config.d.ts +35 -0
- package/dist/azure/config.cjs.js +2 -1
- package/dist/azure/config.cjs.js.map +1 -1
- package/dist/azure/config.esm.js +2 -1
- package/dist/azure/config.esm.js.map +1 -1
- package/dist/bitbucket/config.cjs.js +2 -1
- package/dist/bitbucket/config.cjs.js.map +1 -1
- package/dist/bitbucket/config.esm.js +2 -1
- package/dist/bitbucket/config.esm.js.map +1 -1
- package/dist/bitbucketCloud/config.cjs.js +2 -1
- package/dist/bitbucketCloud/config.cjs.js.map +1 -1
- package/dist/bitbucketCloud/config.esm.js +2 -1
- package/dist/bitbucketCloud/config.esm.js.map +1 -1
- package/dist/bitbucketServer/config.cjs.js +2 -1
- package/dist/bitbucketServer/config.cjs.js.map +1 -1
- package/dist/bitbucketServer/config.esm.js +2 -1
- package/dist/bitbucketServer/config.esm.js.map +1 -1
- package/dist/gerrit/config.cjs.js +2 -1
- package/dist/gerrit/config.cjs.js.map +1 -1
- package/dist/gerrit/config.esm.js +2 -1
- package/dist/gerrit/config.esm.js.map +1 -1
- package/dist/gerrit/core.cjs.js +37 -6
- package/dist/gerrit/core.cjs.js.map +1 -1
- package/dist/gerrit/core.esm.js +37 -7
- package/dist/gerrit/core.esm.js.map +1 -1
- package/dist/gitea/config.cjs.js +2 -1
- package/dist/gitea/config.cjs.js.map +1 -1
- package/dist/gitea/config.esm.js +2 -1
- package/dist/gitea/config.esm.js.map +1 -1
- package/dist/gitlab/config.cjs.js +7 -1
- package/dist/gitlab/config.cjs.js.map +1 -1
- package/dist/gitlab/config.esm.js +7 -1
- package/dist/gitlab/config.esm.js.map +1 -1
- package/dist/index.cjs.js +1 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +39 -1
- package/dist/index.esm.js +1 -1
- package/package.json +5 -12
package/dist/index.d.ts
CHANGED
|
@@ -374,6 +374,10 @@ type AzureIntegrationConfig = {
|
|
|
374
374
|
* If no credentials are specified at all, either a default credential (for Azure DevOps) or anonymous access (for Azure DevOps Server) is used.
|
|
375
375
|
*/
|
|
376
376
|
credentials?: AzureDevOpsCredential[];
|
|
377
|
+
/**
|
|
378
|
+
* Signing key for commits
|
|
379
|
+
*/
|
|
380
|
+
commitSigningKey?: string;
|
|
377
381
|
};
|
|
378
382
|
/**
|
|
379
383
|
* The kind of Azure DevOps credential.
|
|
@@ -506,6 +510,8 @@ type BitbucketCloudIntegrationConfig = {
|
|
|
506
510
|
* The access token to use for requests to Bitbucket Cloud (bitbucket.org).
|
|
507
511
|
*/
|
|
508
512
|
token?: string;
|
|
513
|
+
/** PGP private key for signing commits. */
|
|
514
|
+
commitSigningKey?: string;
|
|
509
515
|
};
|
|
510
516
|
/**
|
|
511
517
|
* Reads a single Bitbucket Cloud integration config.
|
|
@@ -580,6 +586,10 @@ type BitbucketIntegrationConfig = {
|
|
|
580
586
|
* See https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/
|
|
581
587
|
*/
|
|
582
588
|
appPassword?: string;
|
|
589
|
+
/**
|
|
590
|
+
* Signing key for commits
|
|
591
|
+
*/
|
|
592
|
+
commitSigningKey?: string;
|
|
583
593
|
};
|
|
584
594
|
/**
|
|
585
595
|
* Reads a single Bitbucket integration config.
|
|
@@ -662,6 +672,10 @@ type BitbucketServerIntegrationConfig = {
|
|
|
662
672
|
* See https://developer.atlassian.com/server/bitbucket/how-tos/command-line-rest/#authentication
|
|
663
673
|
*/
|
|
664
674
|
password?: string;
|
|
675
|
+
/**
|
|
676
|
+
* Signing key for commits
|
|
677
|
+
*/
|
|
678
|
+
commitSigningKey?: string;
|
|
665
679
|
};
|
|
666
680
|
/**
|
|
667
681
|
* Reads a single Bitbucket Server integration config.
|
|
@@ -735,6 +749,10 @@ type GerritIntegrationConfig = {
|
|
|
735
749
|
* The password or http token to use for authentication.
|
|
736
750
|
*/
|
|
737
751
|
password?: string;
|
|
752
|
+
/**
|
|
753
|
+
* The signing key to use for signing commits.
|
|
754
|
+
*/
|
|
755
|
+
commitSigningKey?: string;
|
|
738
756
|
};
|
|
739
757
|
/**
|
|
740
758
|
* Reads a single Gerrit integration config.
|
|
@@ -931,6 +949,10 @@ type GitLabIntegrationConfig = {
|
|
|
931
949
|
* If no baseUrl is provided, it will default to `https://${host}`
|
|
932
950
|
*/
|
|
933
951
|
baseUrl: string;
|
|
952
|
+
/**
|
|
953
|
+
* Signing key to sign commits
|
|
954
|
+
*/
|
|
955
|
+
commitSigningKey?: string;
|
|
934
956
|
};
|
|
935
957
|
/**
|
|
936
958
|
* Reads a single GitLab integration config.
|
|
@@ -1010,6 +1032,10 @@ type GiteaIntegrationConfig = {
|
|
|
1010
1032
|
* The password or http token to use for authentication.
|
|
1011
1033
|
*/
|
|
1012
1034
|
password?: string;
|
|
1035
|
+
/**
|
|
1036
|
+
* Signing key to to sign commits
|
|
1037
|
+
*/
|
|
1038
|
+
commitSigningKey?: string;
|
|
1013
1039
|
};
|
|
1014
1040
|
/**
|
|
1015
1041
|
* Parses a location config block for use in GiteaIntegration
|
|
@@ -1399,6 +1425,8 @@ declare function getBitbucketServerRequestOptions(config: BitbucketServerIntegra
|
|
|
1399
1425
|
*
|
|
1400
1426
|
* @param url - An URL pointing to a file stored in git.
|
|
1401
1427
|
* @public
|
|
1428
|
+
* @deprecated `parseGerritGitilesUrl` is deprecated. Use
|
|
1429
|
+
* {@link parseGitilesUrlRef} instead.
|
|
1402
1430
|
*/
|
|
1403
1431
|
declare function parseGerritGitilesUrl(config: GerritIntegrationConfig, url: string): {
|
|
1404
1432
|
branch: string;
|
|
@@ -1439,8 +1467,18 @@ declare function parseGitilesUrlRef(config: GerritIntegrationConfig, url: string
|
|
|
1439
1467
|
* @param branch - The branch we will target.
|
|
1440
1468
|
* @param filePath - The absolute file path.
|
|
1441
1469
|
* @public
|
|
1470
|
+
* @deprecated `buildGerritGitilesArchiveUrl` is deprecated. Use
|
|
1471
|
+
* {@link buildGerritGitilesArchiveUrlFromLocation} instead.
|
|
1442
1472
|
*/
|
|
1443
1473
|
declare function buildGerritGitilesArchiveUrl(config: GerritIntegrationConfig, project: string, branch: string, filePath: string): string;
|
|
1474
|
+
/**
|
|
1475
|
+
* Build a Gerrit Gitiles archive url from a Gitiles url.
|
|
1476
|
+
*
|
|
1477
|
+
* @param config - A Gerrit provider config.
|
|
1478
|
+
* @param url - The gitiles url
|
|
1479
|
+
* @public
|
|
1480
|
+
*/
|
|
1481
|
+
declare function buildGerritGitilesArchiveUrlFromLocation(config: GerritIntegrationConfig, url: string): string;
|
|
1444
1482
|
/**
|
|
1445
1483
|
* Return the url to get branch info from the Gerrit API.
|
|
1446
1484
|
*
|
|
@@ -1950,4 +1988,4 @@ declare class ScmIntegrations implements ScmIntegrationRegistry {
|
|
|
1950
1988
|
resolveEditUrl(url: string): string;
|
|
1951
1989
|
}
|
|
1952
1990
|
|
|
1953
|
-
export { AwsCodeCommitIntegration, type AwsCodeCommitIntegrationConfig, AwsS3Integration, type AwsS3IntegrationConfig, type AzureBlobStorageIntegrationConfig, AzureBlobStorageIntergation, type AzureClientSecretCredential, type AzureCredentialBase, type AzureCredentialsManager, type AzureDevOpsCredential, type AzureDevOpsCredentialKind, type AzureDevOpsCredentialLike, type AzureDevOpsCredentialType, type AzureDevOpsCredentials, type AzureDevOpsCredentialsProvider, AzureIntegration, type AzureIntegrationConfig, type AzureManagedIdentityCredential, BitbucketCloudIntegration, type BitbucketCloudIntegrationConfig, BitbucketIntegration, type BitbucketIntegrationConfig, BitbucketServerIntegration, type BitbucketServerIntegrationConfig, DefaultAzureCredentialsManager, DefaultAzureDevOpsCredentialsProvider, DefaultGithubCredentialsProvider, DefaultGitlabCredentialsProvider, GerritIntegration, type GerritIntegrationConfig, GitLabIntegration, type GitLabIntegrationConfig, GiteaIntegration, type GiteaIntegrationConfig, type GithubAppConfig, GithubAppCredentialsMux, type GithubCredentialType, type GithubCredentials, type GithubCredentialsProvider, GithubIntegration, type GithubIntegrationConfig, type GitlabCredentials, type GitlabCredentialsProvider, type GoogleGcsIntegrationConfig, HarnessIntegration, type HarnessIntegrationConfig, type IntegrationsByType, type PersonalAccessTokenCredential, type RateLimitInfo, type ScmIntegration, type ScmIntegrationRegistry, ScmIntegrations, type ScmIntegrationsFactory, type ScmIntegrationsGroup, SingleInstanceGithubCredentialsProvider, buildGerritGitilesArchiveUrl, defaultScmResolveUrl, getAzureCommitsUrl, getAzureDownloadUrl, getAzureFileFetchUrl, getAzureRequestOptions, getBitbucketCloudDefaultBranch, getBitbucketCloudDownloadUrl, getBitbucketCloudFileFetchUrl, getBitbucketCloudRequestOptions, getBitbucketDefaultBranch, getBitbucketDownloadUrl, getBitbucketFileFetchUrl, getBitbucketRequestOptions, getBitbucketServerDefaultBranch, getBitbucketServerDownloadUrl, getBitbucketServerFileFetchUrl, getBitbucketServerRequestOptions, getGerritBranchApiUrl, getGerritCloneRepoUrl, getGerritFileContentsApiUrl, getGerritProjectsApiUrl, getGerritRequestOptions, getGitHubRequestOptions, getGitLabFileFetchUrl, getGitLabIntegrationRelativePath, getGitLabRequestOptions, getGiteaArchiveUrl, getGiteaEditContentsUrl, getGiteaFileContentsUrl, getGiteaLatestCommitUrl, getGiteaRequestOptions, getGithubFileFetchUrl, getHarnessArchiveUrl, getHarnessFileContentsUrl, getHarnessLatestCommitUrl, getHarnessRequestOptions, parseGerritGitilesUrl, parseGerritJsonResponse, parseGiteaUrl, parseGitilesUrlRef, parseHarnessUrl, readAwsCodeCommitIntegrationConfig, readAwsCodeCommitIntegrationConfigs, readAwsS3IntegrationConfig, readAwsS3IntegrationConfigs, readAzureBlobStorageIntegrationConfig, readAzureBlobStorageIntegrationConfigs, readAzureIntegrationConfig, readAzureIntegrationConfigs, readBitbucketCloudIntegrationConfig, readBitbucketCloudIntegrationConfigs, readBitbucketIntegrationConfig, readBitbucketIntegrationConfigs, readBitbucketServerIntegrationConfig, readBitbucketServerIntegrationConfigs, readGerritIntegrationConfig, readGerritIntegrationConfigs, readGitLabIntegrationConfig, readGitLabIntegrationConfigs, readGiteaConfig, readGithubIntegrationConfig, readGithubIntegrationConfigs, readGoogleGcsIntegrationConfig, readHarnessConfig, replaceGitLabUrlType, replaceGithubUrlType };
|
|
1991
|
+
export { AwsCodeCommitIntegration, type AwsCodeCommitIntegrationConfig, AwsS3Integration, type AwsS3IntegrationConfig, type AzureBlobStorageIntegrationConfig, AzureBlobStorageIntergation, type AzureClientSecretCredential, type AzureCredentialBase, type AzureCredentialsManager, type AzureDevOpsCredential, type AzureDevOpsCredentialKind, type AzureDevOpsCredentialLike, type AzureDevOpsCredentialType, type AzureDevOpsCredentials, type AzureDevOpsCredentialsProvider, AzureIntegration, type AzureIntegrationConfig, type AzureManagedIdentityCredential, BitbucketCloudIntegration, type BitbucketCloudIntegrationConfig, BitbucketIntegration, type BitbucketIntegrationConfig, BitbucketServerIntegration, type BitbucketServerIntegrationConfig, DefaultAzureCredentialsManager, DefaultAzureDevOpsCredentialsProvider, DefaultGithubCredentialsProvider, DefaultGitlabCredentialsProvider, GerritIntegration, type GerritIntegrationConfig, GitLabIntegration, type GitLabIntegrationConfig, GiteaIntegration, type GiteaIntegrationConfig, type GithubAppConfig, GithubAppCredentialsMux, type GithubCredentialType, type GithubCredentials, type GithubCredentialsProvider, GithubIntegration, type GithubIntegrationConfig, type GitlabCredentials, type GitlabCredentialsProvider, type GoogleGcsIntegrationConfig, HarnessIntegration, type HarnessIntegrationConfig, type IntegrationsByType, type PersonalAccessTokenCredential, type RateLimitInfo, type ScmIntegration, type ScmIntegrationRegistry, ScmIntegrations, type ScmIntegrationsFactory, type ScmIntegrationsGroup, SingleInstanceGithubCredentialsProvider, buildGerritGitilesArchiveUrl, buildGerritGitilesArchiveUrlFromLocation, defaultScmResolveUrl, getAzureCommitsUrl, getAzureDownloadUrl, getAzureFileFetchUrl, getAzureRequestOptions, getBitbucketCloudDefaultBranch, getBitbucketCloudDownloadUrl, getBitbucketCloudFileFetchUrl, getBitbucketCloudRequestOptions, getBitbucketDefaultBranch, getBitbucketDownloadUrl, getBitbucketFileFetchUrl, getBitbucketRequestOptions, getBitbucketServerDefaultBranch, getBitbucketServerDownloadUrl, getBitbucketServerFileFetchUrl, getBitbucketServerRequestOptions, getGerritBranchApiUrl, getGerritCloneRepoUrl, getGerritFileContentsApiUrl, getGerritProjectsApiUrl, getGerritRequestOptions, getGitHubRequestOptions, getGitLabFileFetchUrl, getGitLabIntegrationRelativePath, getGitLabRequestOptions, getGiteaArchiveUrl, getGiteaEditContentsUrl, getGiteaFileContentsUrl, getGiteaLatestCommitUrl, getGiteaRequestOptions, getGithubFileFetchUrl, getHarnessArchiveUrl, getHarnessFileContentsUrl, getHarnessLatestCommitUrl, getHarnessRequestOptions, parseGerritGitilesUrl, parseGerritJsonResponse, parseGiteaUrl, parseGitilesUrlRef, parseHarnessUrl, readAwsCodeCommitIntegrationConfig, readAwsCodeCommitIntegrationConfigs, readAwsS3IntegrationConfig, readAwsS3IntegrationConfigs, readAzureBlobStorageIntegrationConfig, readAzureBlobStorageIntegrationConfigs, readAzureIntegrationConfig, readAzureIntegrationConfigs, readBitbucketCloudIntegrationConfig, readBitbucketCloudIntegrationConfigs, readBitbucketIntegrationConfig, readBitbucketIntegrationConfigs, readBitbucketServerIntegrationConfig, readBitbucketServerIntegrationConfigs, readGerritIntegrationConfig, readGerritIntegrationConfigs, readGitLabIntegrationConfig, readGitLabIntegrationConfigs, readGiteaConfig, readGithubIntegrationConfig, readGithubIntegrationConfigs, readGoogleGcsIntegrationConfig, readHarnessConfig, replaceGitLabUrlType, replaceGithubUrlType };
|
package/dist/index.esm.js
CHANGED
|
@@ -21,7 +21,7 @@ export { readBitbucketServerIntegrationConfig, readBitbucketServerIntegrationCon
|
|
|
21
21
|
export { getBitbucketServerDefaultBranch, getBitbucketServerDownloadUrl, getBitbucketServerFileFetchUrl, getBitbucketServerRequestOptions } from './bitbucketServer/core.esm.js';
|
|
22
22
|
export { GerritIntegration } from './gerrit/GerritIntegration.esm.js';
|
|
23
23
|
export { readGerritIntegrationConfig, readGerritIntegrationConfigs } from './gerrit/config.esm.js';
|
|
24
|
-
export { buildGerritGitilesArchiveUrl, getGerritBranchApiUrl, getGerritCloneRepoUrl, getGerritFileContentsApiUrl, getGerritProjectsApiUrl, getGerritRequestOptions, parseGerritGitilesUrl, parseGerritJsonResponse, parseGitilesUrlRef } from './gerrit/core.esm.js';
|
|
24
|
+
export { buildGerritGitilesArchiveUrl, buildGerritGitilesArchiveUrlFromLocation, getGerritBranchApiUrl, getGerritCloneRepoUrl, getGerritFileContentsApiUrl, getGerritProjectsApiUrl, getGerritRequestOptions, parseGerritGitilesUrl, parseGerritJsonResponse, parseGitilesUrlRef } from './gerrit/core.esm.js';
|
|
25
25
|
export { GiteaIntegration } from './gitea/GiteaIntegration.esm.js';
|
|
26
26
|
export { getGiteaArchiveUrl, getGiteaEditContentsUrl, getGiteaFileContentsUrl, getGiteaLatestCommitUrl, getGiteaRequestOptions, parseGiteaUrl } from './gitea/core.esm.js';
|
|
27
27
|
export { readGiteaConfig } from './gitea/config.esm.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/integration",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.2-next.0",
|
|
4
4
|
"description": "Helpers for managing integrations towards external systems",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "common-library"
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@azure/identity": "^4.0.0",
|
|
41
41
|
"@azure/storage-blob": "^12.5.0",
|
|
42
|
-
"@backstage/config": "1.3.2
|
|
43
|
-
"@backstage/errors": "1.2.7
|
|
42
|
+
"@backstage/config": "1.3.2",
|
|
43
|
+
"@backstage/errors": "1.2.7",
|
|
44
44
|
"@octokit/auth-app": "^4.0.0",
|
|
45
45
|
"@octokit/rest": "^19.0.3",
|
|
46
46
|
"cross-fetch": "^4.0.0",
|
|
@@ -49,18 +49,11 @@
|
|
|
49
49
|
"luxon": "^3.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@backstage/cli": "0.
|
|
53
|
-
"@backstage/config-loader": "1.
|
|
52
|
+
"@backstage/cli": "0.31.0-next.1",
|
|
53
|
+
"@backstage/config-loader": "1.10.0-next.0",
|
|
54
54
|
"@types/luxon": "^3.0.0",
|
|
55
55
|
"msw": "^1.0.0"
|
|
56
56
|
},
|
|
57
57
|
"configSchema": "config.d.ts",
|
|
58
|
-
"typesVersions": {
|
|
59
|
-
"*": {
|
|
60
|
-
"index": [
|
|
61
|
-
"dist/index.d.ts"
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
58
|
"module": "dist/index.esm.js"
|
|
66
59
|
}
|