@backstage/integration 1.15.1 → 1.16.0-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.
Files changed (105) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/ScmIntegrations.cjs.js +6 -0
  3. package/dist/ScmIntegrations.cjs.js.map +1 -1
  4. package/dist/ScmIntegrations.esm.js +6 -0
  5. package/dist/ScmIntegrations.esm.js.map +1 -1
  6. package/dist/awsCodeCommit/AwsCodeCommitIntegration.cjs.js.map +1 -1
  7. package/dist/awsCodeCommit/AwsCodeCommitIntegration.esm.js.map +1 -1
  8. package/dist/awsCodeCommit/config.cjs.js.map +1 -1
  9. package/dist/awsCodeCommit/config.esm.js.map +1 -1
  10. package/dist/awsS3/AwsS3Integration.cjs.js.map +1 -1
  11. package/dist/awsS3/AwsS3Integration.esm.js.map +1 -1
  12. package/dist/awsS3/config.cjs.js.map +1 -1
  13. package/dist/awsS3/config.esm.js.map +1 -1
  14. package/dist/azure/AzureIntegration.cjs.js.map +1 -1
  15. package/dist/azure/AzureIntegration.esm.js.map +1 -1
  16. package/dist/azure/AzureUrl.cjs.js.map +1 -1
  17. package/dist/azure/AzureUrl.esm.js.map +1 -1
  18. package/dist/azure/CachedAzureDevOpsCredentialsProvider.cjs.js.map +1 -1
  19. package/dist/azure/CachedAzureDevOpsCredentialsProvider.esm.js.map +1 -1
  20. package/dist/azure/DefaultAzureDevOpsCredentialsProvider.cjs.js.map +1 -1
  21. package/dist/azure/DefaultAzureDevOpsCredentialsProvider.esm.js.map +1 -1
  22. package/dist/azure/config.cjs.js.map +1 -1
  23. package/dist/azure/config.esm.js.map +1 -1
  24. package/dist/azure/core.cjs.js.map +1 -1
  25. package/dist/azure/core.esm.js.map +1 -1
  26. package/dist/azure/deprecated.cjs.js.map +1 -1
  27. package/dist/azure/deprecated.esm.js.map +1 -1
  28. package/dist/azureBlobStorage/AzureBlobStorageIntegration.cjs.js +40 -0
  29. package/dist/azureBlobStorage/AzureBlobStorageIntegration.cjs.js.map +1 -0
  30. package/dist/azureBlobStorage/AzureBlobStorageIntegration.esm.js +38 -0
  31. package/dist/azureBlobStorage/AzureBlobStorageIntegration.esm.js.map +1 -0
  32. package/dist/azureBlobStorage/DefaultAzureCredentialsProvider.cjs.js +49 -0
  33. package/dist/azureBlobStorage/DefaultAzureCredentialsProvider.cjs.js.map +1 -0
  34. package/dist/azureBlobStorage/DefaultAzureCredentialsProvider.esm.js +47 -0
  35. package/dist/azureBlobStorage/DefaultAzureCredentialsProvider.esm.js.map +1 -0
  36. package/dist/azureBlobStorage/config.cjs.js +69 -0
  37. package/dist/azureBlobStorage/config.cjs.js.map +1 -0
  38. package/dist/azureBlobStorage/config.esm.js +66 -0
  39. package/dist/azureBlobStorage/config.esm.js.map +1 -0
  40. package/dist/bitbucket/BitbucketIntegration.cjs.js.map +1 -1
  41. package/dist/bitbucket/BitbucketIntegration.esm.js.map +1 -1
  42. package/dist/bitbucket/config.cjs.js.map +1 -1
  43. package/dist/bitbucket/config.esm.js.map +1 -1
  44. package/dist/bitbucket/core.cjs.js.map +1 -1
  45. package/dist/bitbucket/core.esm.js.map +1 -1
  46. package/dist/bitbucketCloud/BitbucketCloudIntegration.cjs.js.map +1 -1
  47. package/dist/bitbucketCloud/BitbucketCloudIntegration.esm.js.map +1 -1
  48. package/dist/bitbucketCloud/config.cjs.js.map +1 -1
  49. package/dist/bitbucketCloud/config.esm.js.map +1 -1
  50. package/dist/bitbucketCloud/core.cjs.js.map +1 -1
  51. package/dist/bitbucketCloud/core.esm.js.map +1 -1
  52. package/dist/bitbucketServer/BitbucketServerIntegration.cjs.js.map +1 -1
  53. package/dist/bitbucketServer/BitbucketServerIntegration.esm.js.map +1 -1
  54. package/dist/bitbucketServer/config.cjs.js.map +1 -1
  55. package/dist/bitbucketServer/config.esm.js.map +1 -1
  56. package/dist/bitbucketServer/core.cjs.js.map +1 -1
  57. package/dist/bitbucketServer/core.esm.js.map +1 -1
  58. package/dist/gerrit/GerritIntegration.cjs.js.map +1 -1
  59. package/dist/gerrit/GerritIntegration.esm.js.map +1 -1
  60. package/dist/gerrit/config.cjs.js.map +1 -1
  61. package/dist/gerrit/config.esm.js.map +1 -1
  62. package/dist/gerrit/core.cjs.js.map +1 -1
  63. package/dist/gerrit/core.esm.js.map +1 -1
  64. package/dist/gitea/GiteaIntegration.cjs.js.map +1 -1
  65. package/dist/gitea/GiteaIntegration.esm.js.map +1 -1
  66. package/dist/gitea/config.cjs.js.map +1 -1
  67. package/dist/gitea/config.esm.js.map +1 -1
  68. package/dist/gitea/core.cjs.js.map +1 -1
  69. package/dist/gitea/core.esm.js.map +1 -1
  70. package/dist/github/DefaultGithubCredentialsProvider.cjs.js.map +1 -1
  71. package/dist/github/DefaultGithubCredentialsProvider.esm.js.map +1 -1
  72. package/dist/github/GithubIntegration.cjs.js.map +1 -1
  73. package/dist/github/GithubIntegration.esm.js.map +1 -1
  74. package/dist/github/SingleInstanceGithubCredentialsProvider.cjs.js.map +1 -1
  75. package/dist/github/SingleInstanceGithubCredentialsProvider.esm.js.map +1 -1
  76. package/dist/github/config.cjs.js.map +1 -1
  77. package/dist/github/config.esm.js.map +1 -1
  78. package/dist/github/core.cjs.js.map +1 -1
  79. package/dist/github/core.esm.js.map +1 -1
  80. package/dist/gitlab/DefaultGitlabCredentialsProvider.cjs.js.map +1 -1
  81. package/dist/gitlab/DefaultGitlabCredentialsProvider.esm.js.map +1 -1
  82. package/dist/gitlab/GitLabIntegration.cjs.js.map +1 -1
  83. package/dist/gitlab/GitLabIntegration.esm.js.map +1 -1
  84. package/dist/gitlab/SingleInstanceGitlabCredentialsProvider.cjs.js.map +1 -1
  85. package/dist/gitlab/SingleInstanceGitlabCredentialsProvider.esm.js.map +1 -1
  86. package/dist/gitlab/config.cjs.js.map +1 -1
  87. package/dist/gitlab/config.esm.js.map +1 -1
  88. package/dist/gitlab/core.cjs.js.map +1 -1
  89. package/dist/gitlab/core.esm.js.map +1 -1
  90. package/dist/googleGcs/config.cjs.js.map +1 -1
  91. package/dist/googleGcs/config.esm.js.map +1 -1
  92. package/dist/harness/HarnessIntegration.cjs.js.map +1 -1
  93. package/dist/harness/HarnessIntegration.esm.js.map +1 -1
  94. package/dist/harness/config.cjs.js.map +1 -1
  95. package/dist/harness/config.esm.js.map +1 -1
  96. package/dist/harness/core.cjs.js.map +1 -1
  97. package/dist/harness/core.esm.js.map +1 -1
  98. package/dist/helpers.cjs.js.map +1 -1
  99. package/dist/helpers.esm.js.map +1 -1
  100. package/dist/index.cjs.js +35 -28
  101. package/dist/index.cjs.js.map +1 -1
  102. package/dist/index.d.ts +178 -60
  103. package/dist/index.esm.js +3 -0
  104. package/dist/index.esm.js.map +1 -1
  105. package/package.json +13 -5
package/dist/index.cjs.js CHANGED
@@ -4,39 +4,42 @@ var AwsS3Integration = require('./awsS3/AwsS3Integration.cjs.js');
4
4
  var config = require('./awsS3/config.cjs.js');
5
5
  var AwsCodeCommitIntegration = require('./awsCodeCommit/AwsCodeCommitIntegration.cjs.js');
6
6
  var config$1 = require('./awsCodeCommit/config.cjs.js');
7
+ var AzureBlobStorageIntegration = require('./azureBlobStorage/AzureBlobStorageIntegration.cjs.js');
8
+ var config$2 = require('./azureBlobStorage/config.cjs.js');
9
+ var DefaultAzureCredentialsProvider = require('./azureBlobStorage/DefaultAzureCredentialsProvider.cjs.js');
7
10
  var AzureIntegration = require('./azure/AzureIntegration.cjs.js');
8
- var config$2 = require('./azure/config.cjs.js');
11
+ var config$3 = require('./azure/config.cjs.js');
9
12
  var core = require('./azure/core.cjs.js');
10
13
  var DefaultAzureDevOpsCredentialsProvider = require('./azure/DefaultAzureDevOpsCredentialsProvider.cjs.js');
11
14
  var deprecated = require('./azure/deprecated.cjs.js');
12
15
  var BitbucketIntegration = require('./bitbucket/BitbucketIntegration.cjs.js');
13
- var config$3 = require('./bitbucket/config.cjs.js');
16
+ var config$4 = require('./bitbucket/config.cjs.js');
14
17
  var core$1 = require('./bitbucket/core.cjs.js');
15
18
  var BitbucketCloudIntegration = require('./bitbucketCloud/BitbucketCloudIntegration.cjs.js');
16
- var config$4 = require('./bitbucketCloud/config.cjs.js');
19
+ var config$5 = require('./bitbucketCloud/config.cjs.js');
17
20
  var core$2 = require('./bitbucketCloud/core.cjs.js');
18
21
  var BitbucketServerIntegration = require('./bitbucketServer/BitbucketServerIntegration.cjs.js');
19
- var config$5 = require('./bitbucketServer/config.cjs.js');
22
+ var config$6 = require('./bitbucketServer/config.cjs.js');
20
23
  var core$3 = require('./bitbucketServer/core.cjs.js');
21
24
  var GerritIntegration = require('./gerrit/GerritIntegration.cjs.js');
22
- var config$6 = require('./gerrit/config.cjs.js');
25
+ var config$7 = require('./gerrit/config.cjs.js');
23
26
  var core$4 = require('./gerrit/core.cjs.js');
24
27
  var GiteaIntegration = require('./gitea/GiteaIntegration.cjs.js');
25
28
  var core$5 = require('./gitea/core.cjs.js');
26
- var config$7 = require('./gitea/config.cjs.js');
27
- var config$8 = require('./github/config.cjs.js');
29
+ var config$8 = require('./gitea/config.cjs.js');
30
+ var config$9 = require('./github/config.cjs.js');
28
31
  var core$6 = require('./github/core.cjs.js');
29
32
  var DefaultGithubCredentialsProvider = require('./github/DefaultGithubCredentialsProvider.cjs.js');
30
33
  var SingleInstanceGithubCredentialsProvider = require('./github/SingleInstanceGithubCredentialsProvider.cjs.js');
31
34
  var GithubIntegration = require('./github/GithubIntegration.cjs.js');
32
- var config$9 = require('./gitlab/config.cjs.js');
35
+ var config$a = require('./gitlab/config.cjs.js');
33
36
  var core$7 = require('./gitlab/core.cjs.js');
34
37
  var GitLabIntegration = require('./gitlab/GitLabIntegration.cjs.js');
35
38
  var DefaultGitlabCredentialsProvider = require('./gitlab/DefaultGitlabCredentialsProvider.cjs.js');
36
- var config$a = require('./googleGcs/config.cjs.js');
39
+ var config$b = require('./googleGcs/config.cjs.js');
37
40
  var HarnessIntegration = require('./harness/HarnessIntegration.cjs.js');
38
41
  var core$8 = require('./harness/core.cjs.js');
39
- var config$b = require('./harness/config.cjs.js');
42
+ var config$c = require('./harness/config.cjs.js');
40
43
  var helpers = require('./helpers.cjs.js');
41
44
  var ScmIntegrations = require('./ScmIntegrations.cjs.js');
42
45
 
@@ -48,38 +51,42 @@ exports.readAwsS3IntegrationConfigs = config.readAwsS3IntegrationConfigs;
48
51
  exports.AwsCodeCommitIntegration = AwsCodeCommitIntegration.AwsCodeCommitIntegration;
49
52
  exports.readAwsCodeCommitIntegrationConfig = config$1.readAwsCodeCommitIntegrationConfig;
50
53
  exports.readAwsCodeCommitIntegrationConfigs = config$1.readAwsCodeCommitIntegrationConfigs;
54
+ exports.AzureBlobStorageIntergation = AzureBlobStorageIntegration.AzureBlobStorageIntergation;
55
+ exports.readAzureBlobStorageIntegrationConfig = config$2.readAzureBlobStorageIntegrationConfig;
56
+ exports.readAzureBlobStorageIntegrationConfigs = config$2.readAzureBlobStorageIntegrationConfigs;
57
+ exports.DefaultAzureCredentialsManager = DefaultAzureCredentialsProvider.DefaultAzureCredentialsManager;
51
58
  exports.AzureIntegration = AzureIntegration.AzureIntegration;
52
- exports.readAzureIntegrationConfig = config$2.readAzureIntegrationConfig;
53
- exports.readAzureIntegrationConfigs = config$2.readAzureIntegrationConfigs;
59
+ exports.readAzureIntegrationConfig = config$3.readAzureIntegrationConfig;
60
+ exports.readAzureIntegrationConfigs = config$3.readAzureIntegrationConfigs;
54
61
  exports.getAzureCommitsUrl = core.getAzureCommitsUrl;
55
62
  exports.getAzureDownloadUrl = core.getAzureDownloadUrl;
56
63
  exports.getAzureFileFetchUrl = core.getAzureFileFetchUrl;
57
64
  exports.DefaultAzureDevOpsCredentialsProvider = DefaultAzureDevOpsCredentialsProvider.DefaultAzureDevOpsCredentialsProvider;
58
65
  exports.getAzureRequestOptions = deprecated.getAzureRequestOptions;
59
66
  exports.BitbucketIntegration = BitbucketIntegration.BitbucketIntegration;
60
- exports.readBitbucketIntegrationConfig = config$3.readBitbucketIntegrationConfig;
61
- exports.readBitbucketIntegrationConfigs = config$3.readBitbucketIntegrationConfigs;
67
+ exports.readBitbucketIntegrationConfig = config$4.readBitbucketIntegrationConfig;
68
+ exports.readBitbucketIntegrationConfigs = config$4.readBitbucketIntegrationConfigs;
62
69
  exports.getBitbucketDefaultBranch = core$1.getBitbucketDefaultBranch;
63
70
  exports.getBitbucketDownloadUrl = core$1.getBitbucketDownloadUrl;
64
71
  exports.getBitbucketFileFetchUrl = core$1.getBitbucketFileFetchUrl;
65
72
  exports.getBitbucketRequestOptions = core$1.getBitbucketRequestOptions;
66
73
  exports.BitbucketCloudIntegration = BitbucketCloudIntegration.BitbucketCloudIntegration;
67
- exports.readBitbucketCloudIntegrationConfig = config$4.readBitbucketCloudIntegrationConfig;
68
- exports.readBitbucketCloudIntegrationConfigs = config$4.readBitbucketCloudIntegrationConfigs;
74
+ exports.readBitbucketCloudIntegrationConfig = config$5.readBitbucketCloudIntegrationConfig;
75
+ exports.readBitbucketCloudIntegrationConfigs = config$5.readBitbucketCloudIntegrationConfigs;
69
76
  exports.getBitbucketCloudDefaultBranch = core$2.getBitbucketCloudDefaultBranch;
70
77
  exports.getBitbucketCloudDownloadUrl = core$2.getBitbucketCloudDownloadUrl;
71
78
  exports.getBitbucketCloudFileFetchUrl = core$2.getBitbucketCloudFileFetchUrl;
72
79
  exports.getBitbucketCloudRequestOptions = core$2.getBitbucketCloudRequestOptions;
73
80
  exports.BitbucketServerIntegration = BitbucketServerIntegration.BitbucketServerIntegration;
74
- exports.readBitbucketServerIntegrationConfig = config$5.readBitbucketServerIntegrationConfig;
75
- exports.readBitbucketServerIntegrationConfigs = config$5.readBitbucketServerIntegrationConfigs;
81
+ exports.readBitbucketServerIntegrationConfig = config$6.readBitbucketServerIntegrationConfig;
82
+ exports.readBitbucketServerIntegrationConfigs = config$6.readBitbucketServerIntegrationConfigs;
76
83
  exports.getBitbucketServerDefaultBranch = core$3.getBitbucketServerDefaultBranch;
77
84
  exports.getBitbucketServerDownloadUrl = core$3.getBitbucketServerDownloadUrl;
78
85
  exports.getBitbucketServerFileFetchUrl = core$3.getBitbucketServerFileFetchUrl;
79
86
  exports.getBitbucketServerRequestOptions = core$3.getBitbucketServerRequestOptions;
80
87
  exports.GerritIntegration = GerritIntegration.GerritIntegration;
81
- exports.readGerritIntegrationConfig = config$6.readGerritIntegrationConfig;
82
- exports.readGerritIntegrationConfigs = config$6.readGerritIntegrationConfigs;
88
+ exports.readGerritIntegrationConfig = config$7.readGerritIntegrationConfig;
89
+ exports.readGerritIntegrationConfigs = config$7.readGerritIntegrationConfigs;
83
90
  exports.buildGerritGitilesArchiveUrl = core$4.buildGerritGitilesArchiveUrl;
84
91
  exports.getGerritBranchApiUrl = core$4.getGerritBranchApiUrl;
85
92
  exports.getGerritCloneRepoUrl = core$4.getGerritCloneRepoUrl;
@@ -96,9 +103,9 @@ exports.getGiteaFileContentsUrl = core$5.getGiteaFileContentsUrl;
96
103
  exports.getGiteaLatestCommitUrl = core$5.getGiteaLatestCommitUrl;
97
104
  exports.getGiteaRequestOptions = core$5.getGiteaRequestOptions;
98
105
  exports.parseGiteaUrl = core$5.parseGiteaUrl;
99
- exports.readGiteaConfig = config$7.readGiteaConfig;
100
- exports.readGithubIntegrationConfig = config$8.readGithubIntegrationConfig;
101
- exports.readGithubIntegrationConfigs = config$8.readGithubIntegrationConfigs;
106
+ exports.readGiteaConfig = config$8.readGiteaConfig;
107
+ exports.readGithubIntegrationConfig = config$9.readGithubIntegrationConfig;
108
+ exports.readGithubIntegrationConfigs = config$9.readGithubIntegrationConfigs;
102
109
  exports.getGitHubRequestOptions = core$6.getGitHubRequestOptions;
103
110
  exports.getGithubFileFetchUrl = core$6.getGithubFileFetchUrl;
104
111
  exports.DefaultGithubCredentialsProvider = DefaultGithubCredentialsProvider.DefaultGithubCredentialsProvider;
@@ -106,22 +113,22 @@ exports.GithubAppCredentialsMux = SingleInstanceGithubCredentialsProvider.Github
106
113
  exports.SingleInstanceGithubCredentialsProvider = SingleInstanceGithubCredentialsProvider.SingleInstanceGithubCredentialsProvider;
107
114
  exports.GithubIntegration = GithubIntegration.GithubIntegration;
108
115
  exports.replaceGithubUrlType = GithubIntegration.replaceGithubUrlType;
109
- exports.getGitLabIntegrationRelativePath = config$9.getGitLabIntegrationRelativePath;
110
- exports.readGitLabIntegrationConfig = config$9.readGitLabIntegrationConfig;
111
- exports.readGitLabIntegrationConfigs = config$9.readGitLabIntegrationConfigs;
116
+ exports.getGitLabIntegrationRelativePath = config$a.getGitLabIntegrationRelativePath;
117
+ exports.readGitLabIntegrationConfig = config$a.readGitLabIntegrationConfig;
118
+ exports.readGitLabIntegrationConfigs = config$a.readGitLabIntegrationConfigs;
112
119
  exports.getGitLabFileFetchUrl = core$7.getGitLabFileFetchUrl;
113
120
  exports.getGitLabRequestOptions = core$7.getGitLabRequestOptions;
114
121
  exports.GitLabIntegration = GitLabIntegration.GitLabIntegration;
115
122
  exports.replaceGitLabUrlType = GitLabIntegration.replaceGitLabUrlType;
116
123
  exports.DefaultGitlabCredentialsProvider = DefaultGitlabCredentialsProvider.DefaultGitlabCredentialsProvider;
117
- exports.readGoogleGcsIntegrationConfig = config$a.readGoogleGcsIntegrationConfig;
124
+ exports.readGoogleGcsIntegrationConfig = config$b.readGoogleGcsIntegrationConfig;
118
125
  exports.HarnessIntegration = HarnessIntegration.HarnessIntegration;
119
126
  exports.getHarnessArchiveUrl = core$8.getHarnessArchiveUrl;
120
127
  exports.getHarnessFileContentsUrl = core$8.getHarnessFileContentsUrl;
121
128
  exports.getHarnessLatestCommitUrl = core$8.getHarnessLatestCommitUrl;
122
129
  exports.getHarnessRequestOptions = core$8.getHarnessRequestOptions;
123
130
  exports.parseHarnessUrl = core$8.parseHarnessUrl;
124
- exports.readHarnessConfig = config$b.readHarnessConfig;
131
+ exports.readHarnessConfig = config$c.readHarnessConfig;
125
132
  exports.defaultScmResolveUrl = helpers.defaultScmResolveUrl;
126
133
  exports.ScmIntegrations = ScmIntegrations.ScmIntegrations;
127
134
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import { Config } from '@backstage/config';
2
+ import { TokenCredential } from '@azure/identity';
3
+ import { StorageSharedKeyCredential, AnonymousCredential } from '@azure/storage-blob';
2
4
  import { ConsumedResponse } from '@backstage/errors';
3
5
  import { RestEndpointMethodTypes } from '@octokit/rest';
4
6
 
@@ -240,6 +242,103 @@ declare class AwsCodeCommitIntegration implements ScmIntegration {
240
242
  resolveEditUrl(url: string): string;
241
243
  }
242
244
 
245
+ /**
246
+ * The configuration parameters for a single Azure Blob Storage account.
247
+ *
248
+ * @public
249
+ */
250
+ type AzureBlobStorageIntegrationConfig = {
251
+ /**
252
+ * The name of the Azure Storage Account, e.g., "mystorageaccount".
253
+ */
254
+ accountName?: string;
255
+ /**
256
+ * The primary or secondary key for the Azure Storage Account.
257
+ * Only required if connectionString or SAS token are not specified.
258
+ */
259
+ accountKey?: string;
260
+ /**
261
+ * A Shared Access Signature (SAS) token for limited access to resources.
262
+ */
263
+ sasToken?: string;
264
+ /**
265
+ * A full connection string for the Azure Storage Account.
266
+ * This includes the account name, key, and endpoint details.
267
+ */
268
+ connectionString?: string;
269
+ /**
270
+ * Optional endpoint suffix for custom domains or sovereign clouds.
271
+ * e.g., "core.windows.net" for public Azure or "core.usgovcloudapi.net" for US Government cloud.
272
+ */
273
+ endpointSuffix?: string;
274
+ /**
275
+ * The host of the target that this matches on, e.g., "blob.core.windows.net".
276
+ */
277
+ host: string;
278
+ endpoint?: string;
279
+ /**
280
+ * Optional credential to use for Azure Active Directory authentication.
281
+ */
282
+ aadCredential?: {
283
+ /**
284
+ * The client ID of the Azure AD application.
285
+ */
286
+ clientId: string;
287
+ /**
288
+ * The tenant ID for Azure AD.
289
+ */
290
+ tenantId: string;
291
+ /**
292
+ * The client secret for the Azure AD application.
293
+ */
294
+ clientSecret: string;
295
+ };
296
+ };
297
+ /**
298
+ * Reads a single Azure Blob Storage integration config.
299
+ *
300
+ * @param config - The config object of a single integration.
301
+ * @public
302
+ */
303
+ declare function readAzureBlobStorageIntegrationConfig(config: Config): AzureBlobStorageIntegrationConfig;
304
+ /**
305
+ * Reads a set of Azure Blob Storage integration configs.
306
+ *
307
+ * @param configs - All of the integration config objects.
308
+ * @public
309
+ */
310
+ declare function readAzureBlobStorageIntegrationConfigs(configs: Config[]): AzureBlobStorageIntegrationConfig[];
311
+
312
+ /**
313
+ * Microsoft Azure Blob storage based integration.
314
+ *
315
+ * @public
316
+ */
317
+ declare class AzureBlobStorageIntergation implements ScmIntegration {
318
+ private readonly integrationConfig;
319
+ static factory: ScmIntegrationsFactory<AzureBlobStorageIntergation>;
320
+ get type(): string;
321
+ get title(): string;
322
+ get config(): AzureBlobStorageIntegrationConfig;
323
+ constructor(integrationConfig: AzureBlobStorageIntegrationConfig);
324
+ resolveUrl(options: {
325
+ url: string;
326
+ base: string;
327
+ lineNumber?: number | undefined;
328
+ }): string;
329
+ resolveEditUrl(url: string): string;
330
+ }
331
+
332
+ /**
333
+ * This allows implementations to be provided to retrieve Azure Storage accounts credentials.
334
+ *
335
+ * @public
336
+ *
337
+ */
338
+ interface AzureCredentialsManager {
339
+ getCredentials(accountName: string): Promise<TokenCredential | StorageSharedKeyCredential | AnonymousCredential>;
340
+ }
341
+
243
342
  /**
244
343
  * The configuration parameters for a single Azure provider.
245
344
  *
@@ -379,65 +478,6 @@ declare class AzureIntegration implements ScmIntegration {
379
478
  resolveEditUrl(url: string): string;
380
479
  }
381
480
 
382
- /**
383
- * Given a URL pointing to a file on a provider, returns a URL that is suitable
384
- * for fetching the contents of the data.
385
- *
386
- * @remarks
387
- *
388
- * Converts
389
- * - from: `https://dev.azure.com/{organization}/{project}/_git/reponame?path={path}&version=GB{commitOrBranch}&_a=contents`
390
- * - to: `https://dev.azure.com/{organization}/{project}/_apis/git/repositories/reponame/items?path={path}&version={commitOrBranch}`
391
- *
392
- * @param url - A URL pointing to a file
393
- * @public
394
- */
395
- declare function getAzureFileFetchUrl(url: string): string;
396
- /**
397
- * Given a URL pointing to a path on a provider, returns a URL that is suitable
398
- * for downloading the subtree.
399
- *
400
- * @param url - A URL pointing to a path
401
- * @public
402
- */
403
- declare function getAzureDownloadUrl(url: string): string;
404
- /**
405
- * Given a URL, return the API URL to fetch commits on the branch.
406
- *
407
- * @param url - A URL pointing to a repository or a sub-path
408
- * @public
409
- */
410
- declare function getAzureCommitsUrl(url: string): string;
411
-
412
- /**
413
- * The type of Azure DevOps credential, either bearer or pat.
414
- * @public
415
- */
416
- type AzureDevOpsCredentialType = 'bearer' | 'pat';
417
- /**
418
- * A set of credentials for Azure DevOps.
419
- *
420
- * @public
421
- */
422
- type AzureDevOpsCredentials = {
423
- headers: {
424
- [name: string]: string;
425
- };
426
- token: string;
427
- type: AzureDevOpsCredentialType;
428
- };
429
- /**
430
- * This allows implementations to be provided to retrieve Azure DevOps credentials.
431
- *
432
- * @public
433
- *
434
- */
435
- interface AzureDevOpsCredentialsProvider {
436
- getCredentials(opts: {
437
- url: string;
438
- }): Promise<AzureDevOpsCredentials | undefined>;
439
- }
440
-
441
481
  /**
442
482
  * The configuration parameters for a single Bitbucket Cloud API provider.
443
483
  *
@@ -1050,6 +1090,7 @@ declare class HarnessIntegration implements ScmIntegration {
1050
1090
  interface ScmIntegrationRegistry extends ScmIntegrationsGroup<ScmIntegration> {
1051
1091
  awsS3: ScmIntegrationsGroup<AwsS3Integration>;
1052
1092
  awsCodeCommit: ScmIntegrationsGroup<AwsCodeCommitIntegration>;
1093
+ azureBlobStorage: ScmIntegrationsGroup<AzureBlobStorageIntergation>;
1053
1094
  azure: ScmIntegrationsGroup<AzureIntegration>;
1054
1095
  /**
1055
1096
  * @deprecated in favor of `bitbucketCloud` and `bitbucketServer`
@@ -1102,6 +1143,81 @@ interface ScmIntegrationRegistry extends ScmIntegrationsGroup<ScmIntegration> {
1102
1143
  resolveEditUrl(url: string): string;
1103
1144
  }
1104
1145
 
1146
+ /**
1147
+ * Default implementation of AzureCredentialsManager that supports multiple Azure Blob Storage integrations.
1148
+ * @public
1149
+ */
1150
+ declare class DefaultAzureCredentialsManager implements AzureCredentialsManager {
1151
+ private readonly configProviders;
1152
+ private cachedCredentials;
1153
+ private constructor();
1154
+ /**
1155
+ * Creates an instance of DefaultAzureCredentialsManager from a Backstage integration registry.
1156
+ */
1157
+ static fromIntegrations(integrations: ScmIntegrationRegistry): DefaultAzureCredentialsManager;
1158
+ private createCredential;
1159
+ getCredentials(accountName: string): Promise<TokenCredential>;
1160
+ }
1161
+
1162
+ /**
1163
+ * Given a URL pointing to a file on a provider, returns a URL that is suitable
1164
+ * for fetching the contents of the data.
1165
+ *
1166
+ * @remarks
1167
+ *
1168
+ * Converts
1169
+ * - from: `https://dev.azure.com/{organization}/{project}/_git/reponame?path={path}&version=GB{commitOrBranch}&_a=contents`
1170
+ * - to: `https://dev.azure.com/{organization}/{project}/_apis/git/repositories/reponame/items?path={path}&version={commitOrBranch}`
1171
+ *
1172
+ * @param url - A URL pointing to a file
1173
+ * @public
1174
+ */
1175
+ declare function getAzureFileFetchUrl(url: string): string;
1176
+ /**
1177
+ * Given a URL pointing to a path on a provider, returns a URL that is suitable
1178
+ * for downloading the subtree.
1179
+ *
1180
+ * @param url - A URL pointing to a path
1181
+ * @public
1182
+ */
1183
+ declare function getAzureDownloadUrl(url: string): string;
1184
+ /**
1185
+ * Given a URL, return the API URL to fetch commits on the branch.
1186
+ *
1187
+ * @param url - A URL pointing to a repository or a sub-path
1188
+ * @public
1189
+ */
1190
+ declare function getAzureCommitsUrl(url: string): string;
1191
+
1192
+ /**
1193
+ * The type of Azure DevOps credential, either bearer or pat.
1194
+ * @public
1195
+ */
1196
+ type AzureDevOpsCredentialType = 'bearer' | 'pat';
1197
+ /**
1198
+ * A set of credentials for Azure DevOps.
1199
+ *
1200
+ * @public
1201
+ */
1202
+ type AzureDevOpsCredentials = {
1203
+ headers: {
1204
+ [name: string]: string;
1205
+ };
1206
+ token: string;
1207
+ type: AzureDevOpsCredentialType;
1208
+ };
1209
+ /**
1210
+ * This allows implementations to be provided to retrieve Azure DevOps credentials.
1211
+ *
1212
+ * @public
1213
+ *
1214
+ */
1215
+ interface AzureDevOpsCredentialsProvider {
1216
+ getCredentials(opts: {
1217
+ url: string;
1218
+ }): Promise<AzureDevOpsCredentials | undefined>;
1219
+ }
1220
+
1105
1221
  /**
1106
1222
  * Default implementation of AzureDevOpsCredentialsProvider.
1107
1223
  * @public
@@ -1785,6 +1901,7 @@ declare function defaultScmResolveUrl(options: {
1785
1901
  interface IntegrationsByType {
1786
1902
  awsS3: ScmIntegrationsGroup<AwsS3Integration>;
1787
1903
  awsCodeCommit: ScmIntegrationsGroup<AwsCodeCommitIntegration>;
1904
+ azureBlobStorage: ScmIntegrationsGroup<AzureBlobStorageIntergation>;
1788
1905
  azure: ScmIntegrationsGroup<AzureIntegration>;
1789
1906
  /**
1790
1907
  * @deprecated in favor of `bitbucketCloud` and `bitbucketServer`
@@ -1809,6 +1926,7 @@ declare class ScmIntegrations implements ScmIntegrationRegistry {
1809
1926
  constructor(integrationsByType: IntegrationsByType);
1810
1927
  get awsS3(): ScmIntegrationsGroup<AwsS3Integration>;
1811
1928
  get awsCodeCommit(): ScmIntegrationsGroup<AwsCodeCommitIntegration>;
1929
+ get azureBlobStorage(): ScmIntegrationsGroup<AzureBlobStorageIntergation>;
1812
1930
  get azure(): ScmIntegrationsGroup<AzureIntegration>;
1813
1931
  /**
1814
1932
  * @deprecated in favor of `bitbucketCloud()` and `bitbucketServer()`
@@ -1832,4 +1950,4 @@ declare class ScmIntegrations implements ScmIntegrationRegistry {
1832
1950
  resolveEditUrl(url: string): string;
1833
1951
  }
1834
1952
 
1835
- 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 };
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 };
package/dist/index.esm.js CHANGED
@@ -2,6 +2,9 @@ export { AwsS3Integration } from './awsS3/AwsS3Integration.esm.js';
2
2
  export { readAwsS3IntegrationConfig, readAwsS3IntegrationConfigs } from './awsS3/config.esm.js';
3
3
  export { AwsCodeCommitIntegration } from './awsCodeCommit/AwsCodeCommitIntegration.esm.js';
4
4
  export { readAwsCodeCommitIntegrationConfig, readAwsCodeCommitIntegrationConfigs } from './awsCodeCommit/config.esm.js';
5
+ export { AzureBlobStorageIntergation } from './azureBlobStorage/AzureBlobStorageIntegration.esm.js';
6
+ export { readAzureBlobStorageIntegrationConfig, readAzureBlobStorageIntegrationConfigs } from './azureBlobStorage/config.esm.js';
7
+ export { DefaultAzureCredentialsManager } from './azureBlobStorage/DefaultAzureCredentialsProvider.esm.js';
5
8
  export { AzureIntegration } from './azure/AzureIntegration.esm.js';
6
9
  export { readAzureIntegrationConfig, readAzureIntegrationConfigs } from './azure/config.esm.js';
7
10
  export { getAzureCommitsUrl, getAzureDownloadUrl, getAzureFileFetchUrl } from './azure/core.esm.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/integration",
3
- "version": "1.15.1",
3
+ "version": "1.16.0-next.0",
4
4
  "description": "Helpers for managing integrations towards external systems",
5
5
  "backstage": {
6
6
  "role": "common-library"
@@ -38,8 +38,9 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@azure/identity": "^4.0.0",
41
- "@backstage/config": "^1.2.0",
42
- "@backstage/errors": "^1.2.4",
41
+ "@azure/storage-blob": "^12.5.0",
42
+ "@backstage/config": "1.3.0",
43
+ "@backstage/errors": "1.2.5",
43
44
  "@octokit/auth-app": "^4.0.0",
44
45
  "@octokit/rest": "^19.0.3",
45
46
  "cross-fetch": "^4.0.0",
@@ -48,11 +49,18 @@
48
49
  "luxon": "^3.0.0"
49
50
  },
50
51
  "devDependencies": {
51
- "@backstage/cli": "^0.28.0",
52
- "@backstage/config-loader": "^1.9.1",
52
+ "@backstage/cli": "0.29.3-next.0",
53
+ "@backstage/config-loader": "1.9.2",
53
54
  "@types/luxon": "^3.0.0",
54
55
  "msw": "^1.0.0"
55
56
  },
56
57
  "configSchema": "config.d.ts",
58
+ "typesVersions": {
59
+ "*": {
60
+ "index": [
61
+ "dist/index.d.ts"
62
+ ]
63
+ }
64
+ },
57
65
  "module": "dist/index.esm.js"
58
66
  }