@backstage/integration
Advanced tools
Comparing version 0.0.0-nightly-20241119023621 to 0.0.0-nightly-20241126023633
# @backstage/integration | ||
## 0.0.0-nightly-20241119023621 | ||
## 0.0.0-nightly-20241126023633 | ||
### Minor Changes | ||
- 277092a: Add the integration for Azure blob storage to read the credentials to access the storage account and provide the default credential provider. | ||
### Patch Changes | ||
- Updated dependencies | ||
- @backstage/config@0.0.0-nightly-20241119023621 | ||
- @backstage/errors@0.0.0-nightly-20241119023621 | ||
- @backstage/config@1.3.0 | ||
- @backstage/errors@1.2.5 | ||
## 1.15.2 | ||
### Patch Changes | ||
- Updated dependencies | ||
- @backstage/config@1.3.0 | ||
- @backstage/errors@1.2.5 | ||
## 1.15.1 | ||
@@ -12,0 +24,0 @@ |
@@ -7,4 +7,7 @@ 'use strict'; | ||
var config$1 = require('./awsCodeCommit/config.cjs.js'); | ||
var AzureBlobStorageIntegration = require('./azureBlobStorage/AzureBlobStorageIntegration.cjs.js'); | ||
var config$2 = require('./azureBlobStorage/config.cjs.js'); | ||
var DefaultAzureCredentialsProvider = require('./azureBlobStorage/DefaultAzureCredentialsProvider.cjs.js'); | ||
var AzureIntegration = require('./azure/AzureIntegration.cjs.js'); | ||
var config$2 = require('./azure/config.cjs.js'); | ||
var config$3 = require('./azure/config.cjs.js'); | ||
var core = require('./azure/core.cjs.js'); | ||
@@ -14,17 +17,17 @@ var DefaultAzureDevOpsCredentialsProvider = require('./azure/DefaultAzureDevOpsCredentialsProvider.cjs.js'); | ||
var BitbucketIntegration = require('./bitbucket/BitbucketIntegration.cjs.js'); | ||
var config$3 = require('./bitbucket/config.cjs.js'); | ||
var config$4 = require('./bitbucket/config.cjs.js'); | ||
var core$1 = require('./bitbucket/core.cjs.js'); | ||
var BitbucketCloudIntegration = require('./bitbucketCloud/BitbucketCloudIntegration.cjs.js'); | ||
var config$4 = require('./bitbucketCloud/config.cjs.js'); | ||
var config$5 = require('./bitbucketCloud/config.cjs.js'); | ||
var core$2 = require('./bitbucketCloud/core.cjs.js'); | ||
var BitbucketServerIntegration = require('./bitbucketServer/BitbucketServerIntegration.cjs.js'); | ||
var config$5 = require('./bitbucketServer/config.cjs.js'); | ||
var config$6 = require('./bitbucketServer/config.cjs.js'); | ||
var core$3 = require('./bitbucketServer/core.cjs.js'); | ||
var GerritIntegration = require('./gerrit/GerritIntegration.cjs.js'); | ||
var config$6 = require('./gerrit/config.cjs.js'); | ||
var config$7 = require('./gerrit/config.cjs.js'); | ||
var core$4 = require('./gerrit/core.cjs.js'); | ||
var GiteaIntegration = require('./gitea/GiteaIntegration.cjs.js'); | ||
var core$5 = require('./gitea/core.cjs.js'); | ||
var config$7 = require('./gitea/config.cjs.js'); | ||
var config$8 = require('./github/config.cjs.js'); | ||
var config$8 = require('./gitea/config.cjs.js'); | ||
var config$9 = require('./github/config.cjs.js'); | ||
var core$6 = require('./github/core.cjs.js'); | ||
@@ -34,10 +37,10 @@ var DefaultGithubCredentialsProvider = require('./github/DefaultGithubCredentialsProvider.cjs.js'); | ||
var GithubIntegration = require('./github/GithubIntegration.cjs.js'); | ||
var config$9 = require('./gitlab/config.cjs.js'); | ||
var config$a = require('./gitlab/config.cjs.js'); | ||
var core$7 = require('./gitlab/core.cjs.js'); | ||
var GitLabIntegration = require('./gitlab/GitLabIntegration.cjs.js'); | ||
var DefaultGitlabCredentialsProvider = require('./gitlab/DefaultGitlabCredentialsProvider.cjs.js'); | ||
var config$a = require('./googleGcs/config.cjs.js'); | ||
var config$b = require('./googleGcs/config.cjs.js'); | ||
var HarnessIntegration = require('./harness/HarnessIntegration.cjs.js'); | ||
var core$8 = require('./harness/core.cjs.js'); | ||
var config$b = require('./harness/config.cjs.js'); | ||
var config$c = require('./harness/config.cjs.js'); | ||
var helpers = require('./helpers.cjs.js'); | ||
@@ -54,5 +57,9 @@ var ScmIntegrations = require('./ScmIntegrations.cjs.js'); | ||
exports.readAwsCodeCommitIntegrationConfigs = config$1.readAwsCodeCommitIntegrationConfigs; | ||
exports.AzureBlobStorageIntergation = AzureBlobStorageIntegration.AzureBlobStorageIntergation; | ||
exports.readAzureBlobStorageIntegrationConfig = config$2.readAzureBlobStorageIntegrationConfig; | ||
exports.readAzureBlobStorageIntegrationConfigs = config$2.readAzureBlobStorageIntegrationConfigs; | ||
exports.DefaultAzureCredentialsManager = DefaultAzureCredentialsProvider.DefaultAzureCredentialsManager; | ||
exports.AzureIntegration = AzureIntegration.AzureIntegration; | ||
exports.readAzureIntegrationConfig = config$2.readAzureIntegrationConfig; | ||
exports.readAzureIntegrationConfigs = config$2.readAzureIntegrationConfigs; | ||
exports.readAzureIntegrationConfig = config$3.readAzureIntegrationConfig; | ||
exports.readAzureIntegrationConfigs = config$3.readAzureIntegrationConfigs; | ||
exports.getAzureCommitsUrl = core.getAzureCommitsUrl; | ||
@@ -64,4 +71,4 @@ exports.getAzureDownloadUrl = core.getAzureDownloadUrl; | ||
exports.BitbucketIntegration = BitbucketIntegration.BitbucketIntegration; | ||
exports.readBitbucketIntegrationConfig = config$3.readBitbucketIntegrationConfig; | ||
exports.readBitbucketIntegrationConfigs = config$3.readBitbucketIntegrationConfigs; | ||
exports.readBitbucketIntegrationConfig = config$4.readBitbucketIntegrationConfig; | ||
exports.readBitbucketIntegrationConfigs = config$4.readBitbucketIntegrationConfigs; | ||
exports.getBitbucketDefaultBranch = core$1.getBitbucketDefaultBranch; | ||
@@ -72,4 +79,4 @@ exports.getBitbucketDownloadUrl = core$1.getBitbucketDownloadUrl; | ||
exports.BitbucketCloudIntegration = BitbucketCloudIntegration.BitbucketCloudIntegration; | ||
exports.readBitbucketCloudIntegrationConfig = config$4.readBitbucketCloudIntegrationConfig; | ||
exports.readBitbucketCloudIntegrationConfigs = config$4.readBitbucketCloudIntegrationConfigs; | ||
exports.readBitbucketCloudIntegrationConfig = config$5.readBitbucketCloudIntegrationConfig; | ||
exports.readBitbucketCloudIntegrationConfigs = config$5.readBitbucketCloudIntegrationConfigs; | ||
exports.getBitbucketCloudDefaultBranch = core$2.getBitbucketCloudDefaultBranch; | ||
@@ -80,4 +87,4 @@ exports.getBitbucketCloudDownloadUrl = core$2.getBitbucketCloudDownloadUrl; | ||
exports.BitbucketServerIntegration = BitbucketServerIntegration.BitbucketServerIntegration; | ||
exports.readBitbucketServerIntegrationConfig = config$5.readBitbucketServerIntegrationConfig; | ||
exports.readBitbucketServerIntegrationConfigs = config$5.readBitbucketServerIntegrationConfigs; | ||
exports.readBitbucketServerIntegrationConfig = config$6.readBitbucketServerIntegrationConfig; | ||
exports.readBitbucketServerIntegrationConfigs = config$6.readBitbucketServerIntegrationConfigs; | ||
exports.getBitbucketServerDefaultBranch = core$3.getBitbucketServerDefaultBranch; | ||
@@ -88,4 +95,4 @@ exports.getBitbucketServerDownloadUrl = core$3.getBitbucketServerDownloadUrl; | ||
exports.GerritIntegration = GerritIntegration.GerritIntegration; | ||
exports.readGerritIntegrationConfig = config$6.readGerritIntegrationConfig; | ||
exports.readGerritIntegrationConfigs = config$6.readGerritIntegrationConfigs; | ||
exports.readGerritIntegrationConfig = config$7.readGerritIntegrationConfig; | ||
exports.readGerritIntegrationConfigs = config$7.readGerritIntegrationConfigs; | ||
exports.buildGerritGitilesArchiveUrl = core$4.buildGerritGitilesArchiveUrl; | ||
@@ -107,5 +114,5 @@ exports.getGerritBranchApiUrl = core$4.getGerritBranchApiUrl; | ||
exports.parseGiteaUrl = core$5.parseGiteaUrl; | ||
exports.readGiteaConfig = config$7.readGiteaConfig; | ||
exports.readGithubIntegrationConfig = config$8.readGithubIntegrationConfig; | ||
exports.readGithubIntegrationConfigs = config$8.readGithubIntegrationConfigs; | ||
exports.readGiteaConfig = config$8.readGiteaConfig; | ||
exports.readGithubIntegrationConfig = config$9.readGithubIntegrationConfig; | ||
exports.readGithubIntegrationConfigs = config$9.readGithubIntegrationConfigs; | ||
exports.getGitHubRequestOptions = core$6.getGitHubRequestOptions; | ||
@@ -118,5 +125,5 @@ exports.getGithubFileFetchUrl = core$6.getGithubFileFetchUrl; | ||
exports.replaceGithubUrlType = GithubIntegration.replaceGithubUrlType; | ||
exports.getGitLabIntegrationRelativePath = config$9.getGitLabIntegrationRelativePath; | ||
exports.readGitLabIntegrationConfig = config$9.readGitLabIntegrationConfig; | ||
exports.readGitLabIntegrationConfigs = config$9.readGitLabIntegrationConfigs; | ||
exports.getGitLabIntegrationRelativePath = config$a.getGitLabIntegrationRelativePath; | ||
exports.readGitLabIntegrationConfig = config$a.readGitLabIntegrationConfig; | ||
exports.readGitLabIntegrationConfigs = config$a.readGitLabIntegrationConfigs; | ||
exports.getGitLabFileFetchUrl = core$7.getGitLabFileFetchUrl; | ||
@@ -127,3 +134,3 @@ exports.getGitLabRequestOptions = core$7.getGitLabRequestOptions; | ||
exports.DefaultGitlabCredentialsProvider = DefaultGitlabCredentialsProvider.DefaultGitlabCredentialsProvider; | ||
exports.readGoogleGcsIntegrationConfig = config$a.readGoogleGcsIntegrationConfig; | ||
exports.readGoogleGcsIntegrationConfig = config$b.readGoogleGcsIntegrationConfig; | ||
exports.HarnessIntegration = HarnessIntegration.HarnessIntegration; | ||
@@ -135,5 +142,5 @@ exports.getHarnessArchiveUrl = core$8.getHarnessArchiveUrl; | ||
exports.parseHarnessUrl = core$8.parseHarnessUrl; | ||
exports.readHarnessConfig = config$b.readHarnessConfig; | ||
exports.readHarnessConfig = config$c.readHarnessConfig; | ||
exports.defaultScmResolveUrl = helpers.defaultScmResolveUrl; | ||
exports.ScmIntegrations = ScmIntegrations.ScmIntegrations; | ||
//# sourceMappingURL=index.cjs.js.map |
import { Config } from '@backstage/config'; | ||
import { TokenCredential } from '@azure/identity'; | ||
import { StorageSharedKeyCredential, AnonymousCredential } from '@azure/storage-blob'; | ||
import { ConsumedResponse } from '@backstage/errors'; | ||
@@ -244,2 +246,99 @@ import { RestEndpointMethodTypes } from '@octokit/rest'; | ||
/** | ||
* The configuration parameters for a single Azure Blob Storage account. | ||
* | ||
* @public | ||
*/ | ||
type AzureBlobStorageIntegrationConfig = { | ||
/** | ||
* The name of the Azure Storage Account, e.g., "mystorageaccount". | ||
*/ | ||
accountName?: string; | ||
/** | ||
* The primary or secondary key for the Azure Storage Account. | ||
* Only required if connectionString or SAS token are not specified. | ||
*/ | ||
accountKey?: string; | ||
/** | ||
* A Shared Access Signature (SAS) token for limited access to resources. | ||
*/ | ||
sasToken?: string; | ||
/** | ||
* A full connection string for the Azure Storage Account. | ||
* This includes the account name, key, and endpoint details. | ||
*/ | ||
connectionString?: string; | ||
/** | ||
* Optional endpoint suffix for custom domains or sovereign clouds. | ||
* e.g., "core.windows.net" for public Azure or "core.usgovcloudapi.net" for US Government cloud. | ||
*/ | ||
endpointSuffix?: string; | ||
/** | ||
* The host of the target that this matches on, e.g., "blob.core.windows.net". | ||
*/ | ||
host: string; | ||
endpoint?: string; | ||
/** | ||
* Optional credential to use for Azure Active Directory authentication. | ||
*/ | ||
aadCredential?: { | ||
/** | ||
* The client ID of the Azure AD application. | ||
*/ | ||
clientId: string; | ||
/** | ||
* The tenant ID for Azure AD. | ||
*/ | ||
tenantId: string; | ||
/** | ||
* The client secret for the Azure AD application. | ||
*/ | ||
clientSecret: string; | ||
}; | ||
}; | ||
/** | ||
* Reads a single Azure Blob Storage integration config. | ||
* | ||
* @param config - The config object of a single integration. | ||
* @public | ||
*/ | ||
declare function readAzureBlobStorageIntegrationConfig(config: Config): AzureBlobStorageIntegrationConfig; | ||
/** | ||
* Reads a set of Azure Blob Storage integration configs. | ||
* | ||
* @param configs - All of the integration config objects. | ||
* @public | ||
*/ | ||
declare function readAzureBlobStorageIntegrationConfigs(configs: Config[]): AzureBlobStorageIntegrationConfig[]; | ||
/** | ||
* Microsoft Azure Blob storage based integration. | ||
* | ||
* @public | ||
*/ | ||
declare class AzureBlobStorageIntergation implements ScmIntegration { | ||
private readonly integrationConfig; | ||
static factory: ScmIntegrationsFactory<AzureBlobStorageIntergation>; | ||
get type(): string; | ||
get title(): string; | ||
get config(): AzureBlobStorageIntegrationConfig; | ||
constructor(integrationConfig: AzureBlobStorageIntegrationConfig); | ||
resolveUrl(options: { | ||
url: string; | ||
base: string; | ||
lineNumber?: number | undefined; | ||
}): string; | ||
resolveEditUrl(url: string): string; | ||
} | ||
/** | ||
* This allows implementations to be provided to retrieve Azure Storage accounts credentials. | ||
* | ||
* @public | ||
* | ||
*/ | ||
interface AzureCredentialsManager { | ||
getCredentials(accountName: string): Promise<TokenCredential | StorageSharedKeyCredential | AnonymousCredential>; | ||
} | ||
/** | ||
* The configuration parameters for a single Azure provider. | ||
@@ -384,61 +483,2 @@ * | ||
/** | ||
* Given a URL pointing to a file on a provider, returns a URL that is suitable | ||
* for fetching the contents of the data. | ||
* | ||
* @remarks | ||
* | ||
* Converts | ||
* - from: `https://dev.azure.com/{organization}/{project}/_git/reponame?path={path}&version=GB{commitOrBranch}&_a=contents` | ||
* - to: `https://dev.azure.com/{organization}/{project}/_apis/git/repositories/reponame/items?path={path}&version={commitOrBranch}` | ||
* | ||
* @param url - A URL pointing to a file | ||
* @public | ||
*/ | ||
declare function getAzureFileFetchUrl(url: string): string; | ||
/** | ||
* Given a URL pointing to a path on a provider, returns a URL that is suitable | ||
* for downloading the subtree. | ||
* | ||
* @param url - A URL pointing to a path | ||
* @public | ||
*/ | ||
declare function getAzureDownloadUrl(url: string): string; | ||
/** | ||
* Given a URL, return the API URL to fetch commits on the branch. | ||
* | ||
* @param url - A URL pointing to a repository or a sub-path | ||
* @public | ||
*/ | ||
declare function getAzureCommitsUrl(url: string): string; | ||
/** | ||
* The type of Azure DevOps credential, either bearer or pat. | ||
* @public | ||
*/ | ||
type AzureDevOpsCredentialType = 'bearer' | 'pat'; | ||
/** | ||
* A set of credentials for Azure DevOps. | ||
* | ||
* @public | ||
*/ | ||
type AzureDevOpsCredentials = { | ||
headers: { | ||
[name: string]: string; | ||
}; | ||
token: string; | ||
type: AzureDevOpsCredentialType; | ||
}; | ||
/** | ||
* This allows implementations to be provided to retrieve Azure DevOps credentials. | ||
* | ||
* @public | ||
* | ||
*/ | ||
interface AzureDevOpsCredentialsProvider { | ||
getCredentials(opts: { | ||
url: string; | ||
}): Promise<AzureDevOpsCredentials | undefined>; | ||
} | ||
/** | ||
* The configuration parameters for a single Bitbucket Cloud API provider. | ||
@@ -1055,2 +1095,3 @@ * | ||
awsCodeCommit: ScmIntegrationsGroup<AwsCodeCommitIntegration>; | ||
azureBlobStorage: ScmIntegrationsGroup<AzureBlobStorageIntergation>; | ||
azure: ScmIntegrationsGroup<AzureIntegration>; | ||
@@ -1109,2 +1150,77 @@ /** | ||
/** | ||
* Default implementation of AzureCredentialsManager that supports multiple Azure Blob Storage integrations. | ||
* @public | ||
*/ | ||
declare class DefaultAzureCredentialsManager implements AzureCredentialsManager { | ||
private readonly configProviders; | ||
private cachedCredentials; | ||
private constructor(); | ||
/** | ||
* Creates an instance of DefaultAzureCredentialsManager from a Backstage integration registry. | ||
*/ | ||
static fromIntegrations(integrations: ScmIntegrationRegistry): DefaultAzureCredentialsManager; | ||
private createCredential; | ||
getCredentials(accountName: string): Promise<TokenCredential>; | ||
} | ||
/** | ||
* Given a URL pointing to a file on a provider, returns a URL that is suitable | ||
* for fetching the contents of the data. | ||
* | ||
* @remarks | ||
* | ||
* Converts | ||
* - from: `https://dev.azure.com/{organization}/{project}/_git/reponame?path={path}&version=GB{commitOrBranch}&_a=contents` | ||
* - to: `https://dev.azure.com/{organization}/{project}/_apis/git/repositories/reponame/items?path={path}&version={commitOrBranch}` | ||
* | ||
* @param url - A URL pointing to a file | ||
* @public | ||
*/ | ||
declare function getAzureFileFetchUrl(url: string): string; | ||
/** | ||
* Given a URL pointing to a path on a provider, returns a URL that is suitable | ||
* for downloading the subtree. | ||
* | ||
* @param url - A URL pointing to a path | ||
* @public | ||
*/ | ||
declare function getAzureDownloadUrl(url: string): string; | ||
/** | ||
* Given a URL, return the API URL to fetch commits on the branch. | ||
* | ||
* @param url - A URL pointing to a repository or a sub-path | ||
* @public | ||
*/ | ||
declare function getAzureCommitsUrl(url: string): string; | ||
/** | ||
* The type of Azure DevOps credential, either bearer or pat. | ||
* @public | ||
*/ | ||
type AzureDevOpsCredentialType = 'bearer' | 'pat'; | ||
/** | ||
* A set of credentials for Azure DevOps. | ||
* | ||
* @public | ||
*/ | ||
type AzureDevOpsCredentials = { | ||
headers: { | ||
[name: string]: string; | ||
}; | ||
token: string; | ||
type: AzureDevOpsCredentialType; | ||
}; | ||
/** | ||
* This allows implementations to be provided to retrieve Azure DevOps credentials. | ||
* | ||
* @public | ||
* | ||
*/ | ||
interface AzureDevOpsCredentialsProvider { | ||
getCredentials(opts: { | ||
url: string; | ||
}): Promise<AzureDevOpsCredentials | undefined>; | ||
} | ||
/** | ||
* Default implementation of AzureDevOpsCredentialsProvider. | ||
@@ -1792,2 +1908,3 @@ * @public | ||
awsCodeCommit: ScmIntegrationsGroup<AwsCodeCommitIntegration>; | ||
azureBlobStorage: ScmIntegrationsGroup<AzureBlobStorageIntergation>; | ||
azure: ScmIntegrationsGroup<AzureIntegration>; | ||
@@ -1817,2 +1934,3 @@ /** | ||
get awsCodeCommit(): ScmIntegrationsGroup<AwsCodeCommitIntegration>; | ||
get azureBlobStorage(): ScmIntegrationsGroup<AzureBlobStorageIntergation>; | ||
get azure(): ScmIntegrationsGroup<AzureIntegration>; | ||
@@ -1841,2 +1959,2 @@ /** | ||
export { AwsCodeCommitIntegration, type AwsCodeCommitIntegrationConfig, AwsS3Integration, type AwsS3IntegrationConfig, type AzureClientSecretCredential, type AzureCredentialBase, 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, 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, readAzureIntegrationConfig, readAzureIntegrationConfigs, readBitbucketCloudIntegrationConfig, readBitbucketCloudIntegrationConfigs, readBitbucketIntegrationConfig, readBitbucketIntegrationConfigs, readBitbucketServerIntegrationConfig, readBitbucketServerIntegrationConfigs, readGerritIntegrationConfig, readGerritIntegrationConfigs, readGitLabIntegrationConfig, readGitLabIntegrationConfigs, readGiteaConfig, readGithubIntegrationConfig, readGithubIntegrationConfigs, readGoogleGcsIntegrationConfig, readHarnessConfig, replaceGitLabUrlType, replaceGithubUrlType }; | ||
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 }; |
@@ -5,2 +5,5 @@ export { AwsS3Integration } from './awsS3/AwsS3Integration.esm.js'; | ||
export { readAwsCodeCommitIntegrationConfig, readAwsCodeCommitIntegrationConfigs } from './awsCodeCommit/config.esm.js'; | ||
export { AzureBlobStorageIntergation } from './azureBlobStorage/AzureBlobStorageIntegration.esm.js'; | ||
export { readAzureBlobStorageIntegrationConfig, readAzureBlobStorageIntegrationConfigs } from './azureBlobStorage/config.esm.js'; | ||
export { DefaultAzureCredentialsManager } from './azureBlobStorage/DefaultAzureCredentialsProvider.esm.js'; | ||
export { AzureIntegration } from './azure/AzureIntegration.esm.js'; | ||
@@ -7,0 +10,0 @@ export { readAzureIntegrationConfig, readAzureIntegrationConfigs } from './azure/config.esm.js'; |
@@ -16,2 +16,4 @@ 'use strict'; | ||
var HarnessIntegration = require('./harness/HarnessIntegration.cjs.js'); | ||
var AzureBlobStorageIntegration = require('./azureBlobStorage/AzureBlobStorageIntegration.cjs.js'); | ||
require('@azure/identity'); | ||
@@ -24,2 +26,3 @@ class ScmIntegrations { | ||
awsCodeCommit: AwsCodeCommitIntegration.AwsCodeCommitIntegration.factory({ config }), | ||
azureBlobStorage: AzureBlobStorageIntegration.AzureBlobStorageIntergation.factory({ config }), | ||
azure: AzureIntegration.AzureIntegration.factory({ config }), | ||
@@ -45,2 +48,5 @@ bitbucket: BitbucketIntegration.BitbucketIntegration.factory({ config }), | ||
} | ||
get azureBlobStorage() { | ||
return this.byType.azureBlobStorage; | ||
} | ||
get azure() { | ||
@@ -47,0 +53,0 @@ return this.byType.azure; |
@@ -14,2 +14,4 @@ import { AwsS3Integration } from './awsS3/AwsS3Integration.esm.js'; | ||
import { HarnessIntegration } from './harness/HarnessIntegration.esm.js'; | ||
import { AzureBlobStorageIntergation } from './azureBlobStorage/AzureBlobStorageIntegration.esm.js'; | ||
import '@azure/identity'; | ||
@@ -22,2 +24,3 @@ class ScmIntegrations { | ||
awsCodeCommit: AwsCodeCommitIntegration.factory({ config }), | ||
azureBlobStorage: AzureBlobStorageIntergation.factory({ config }), | ||
azure: AzureIntegration.factory({ config }), | ||
@@ -43,2 +46,5 @@ bitbucket: BitbucketIntegration.factory({ config }), | ||
} | ||
get azureBlobStorage() { | ||
return this.byType.azureBlobStorage; | ||
} | ||
get azure() { | ||
@@ -45,0 +51,0 @@ return this.byType.azure; |
{ | ||
"name": "@backstage/integration", | ||
"version": "0.0.0-nightly-20241119023621", | ||
"version": "0.0.0-nightly-20241126023633", | ||
"description": "Helpers for managing integrations towards external systems", | ||
@@ -41,4 +41,5 @@ "backstage": { | ||
"@azure/identity": "^4.0.0", | ||
"@backstage/config": "0.0.0-nightly-20241119023621", | ||
"@backstage/errors": "0.0.0-nightly-20241119023621", | ||
"@azure/storage-blob": "^12.5.0", | ||
"@backstage/config": "1.3.0", | ||
"@backstage/errors": "1.2.5", | ||
"@octokit/auth-app": "^4.0.0", | ||
@@ -52,4 +53,4 @@ "@octokit/rest": "^19.0.3", | ||
"devDependencies": { | ||
"@backstage/cli": "0.0.0-nightly-20241119023621", | ||
"@backstage/config-loader": "0.0.0-nightly-20241119023621", | ||
"@backstage/cli": "0.0.0-nightly-20241126023633", | ||
"@backstage/config-loader": "1.9.2", | ||
"@types/luxon": "^3.0.0", | ||
@@ -56,0 +57,0 @@ "msw": "^1.0.0" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 6 instances in 1 package
840666
189
7822
10
90
+ Added@azure/storage-blob@^12.5.0
+ Added@azure/core-http-compat@2.1.2(transitive)
+ Added@azure/core-lro@2.7.2(transitive)
+ Added@azure/core-paging@1.6.2(transitive)
+ Added@azure/core-xml@1.4.4(transitive)
+ Added@azure/storage-blob@12.26.0(transitive)
+ Added@backstage/config@1.3.0(transitive)
+ Added@backstage/errors@1.2.5(transitive)
+ Added@backstage/types@1.2.1(transitive)
+ Addedfast-xml-parser@4.5.1(transitive)
+ Addedstrnum@1.0.5(transitive)
- Removed@backstage/config@0.0.0-nightly-20241119023621(transitive)
- Removed@backstage/errors@0.0.0-nightly-20241119023621(transitive)
- Removed@backstage/types@0.0.0-nightly-20241119023621(transitive)
Updated@backstage/config@1.3.0
Updated@backstage/errors@1.2.5