@backstage/connections 0.0.0-nightly-20260610032156

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 (46) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +5 -0
  3. package/dist/api/DefaultConnectionService.cjs.js +205 -0
  4. package/dist/api/DefaultConnectionService.cjs.js.map +1 -0
  5. package/dist/api/declareConnection.cjs.js +14 -0
  6. package/dist/api/declareConnection.cjs.js.map +1 -0
  7. package/dist/definitions/lookup.cjs.js +16 -0
  8. package/dist/definitions/lookup.cjs.js.map +1 -0
  9. package/dist/definitions/types.cjs.js +32 -0
  10. package/dist/definitions/types.cjs.js.map +1 -0
  11. package/dist/index.cjs.js +15 -0
  12. package/dist/index.cjs.js.map +1 -0
  13. package/dist/index.d.ts +311 -0
  14. package/dist/schema/awsCodeCommit.cjs.js +35 -0
  15. package/dist/schema/awsCodeCommit.cjs.js.map +1 -0
  16. package/dist/schema/awsS3.cjs.js +36 -0
  17. package/dist/schema/awsS3.cjs.js.map +1 -0
  18. package/dist/schema/azure.cjs.js +45 -0
  19. package/dist/schema/azure.cjs.js.map +1 -0
  20. package/dist/schema/azureBlobStorage.cjs.js +49 -0
  21. package/dist/schema/azureBlobStorage.cjs.js.map +1 -0
  22. package/dist/schema/bitbucketCloud.cjs.js +41 -0
  23. package/dist/schema/bitbucketCloud.cjs.js.map +1 -0
  24. package/dist/schema/bitbucketServer.cjs.js +34 -0
  25. package/dist/schema/bitbucketServer.cjs.js.map +1 -0
  26. package/dist/schema/gerrit.cjs.js +30 -0
  27. package/dist/schema/gerrit.cjs.js.map +1 -0
  28. package/dist/schema/gitea.cjs.js +28 -0
  29. package/dist/schema/gitea.cjs.js.map +1 -0
  30. package/dist/schema/github.cjs.js +49 -0
  31. package/dist/schema/github.cjs.js.map +1 -0
  32. package/dist/schema/gitlab.cjs.js +28 -0
  33. package/dist/schema/gitlab.cjs.js.map +1 -0
  34. package/dist/schema/googleGcs.cjs.js +27 -0
  35. package/dist/schema/googleGcs.cjs.js.map +1 -0
  36. package/dist/schema/harness.cjs.js +23 -0
  37. package/dist/schema/harness.cjs.js.map +1 -0
  38. package/dist/service.cjs.js +29 -0
  39. package/dist/service.cjs.js.map +1 -0
  40. package/dist/system/combineConnectionSources.cjs.js +26 -0
  41. package/dist/system/combineConnectionSources.cjs.js.map +1 -0
  42. package/dist/system/createConnectionType.cjs.js +39 -0
  43. package/dist/system/createConnectionType.cjs.js.map +1 -0
  44. package/dist/system/getLegacyIntegrations.cjs.js +332 -0
  45. package/dist/system/getLegacyIntegrations.cjs.js.map +1 -0
  46. package/package.json +61 -0
@@ -0,0 +1,311 @@
1
+ import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
2
+ import { LoggerService, RootConfigService, BackendPluginRegistrationPoints, BackendModuleRegistrationPoints } from '@backstage/backend-plugin-api';
3
+ import { z } from 'zod/v4';
4
+ import * as zod_v4_core from 'zod/v4/core';
5
+ import * as zod from 'zod';
6
+ import { ConnectionRegistration } from '@backstage/backend-plugin-api/alpha';
7
+
8
+ /** @public */
9
+ type ConnectionAuthValue<TAuthMethod extends ConnectionAuthMethod> = TAuthMethod extends any ? {
10
+ method: TAuthMethod['method'];
11
+ } & z.infer<TAuthMethod['configSchema']> : never;
12
+ /** @public */
13
+ type ConnectionType<TType extends string = string, TConfigSchema extends z.ZodObject = z.ZodObject, TAuthMethods extends readonly ConnectionAuthMethod[] = readonly ConnectionAuthMethod[]> = {
14
+ type: TType;
15
+ configSchema: TConfigSchema;
16
+ authMethods: TAuthMethods;
17
+ schema: z.ZodType;
18
+ matchAuth?(authMethods: ConnectionAuthValue<TAuthMethods[number]>[], query: string): ConnectionAuthValue<TAuthMethods[number]> | undefined;
19
+ };
20
+ /** @public */
21
+ type ConnectionAuthMethod<TMethod extends string = string, TConfigSchema extends z.ZodObject = z.ZodObject> = {
22
+ method: TMethod;
23
+ configSchema: TConfigSchema;
24
+ };
25
+ /** @public */
26
+ type ConnectionAuthMethodKey<T extends ConnectionType | ConnectionTypeKey> = LookupConnectionType<T>['authMethods'][number]['method'];
27
+
28
+ /** @public */
29
+ declare const connectionTypes: {
30
+ readonly 'aws-codecommit': ConnectionType<"aws-codecommit", zod.ZodObject<{
31
+ host: zod.ZodString;
32
+ region: zod.ZodString;
33
+ }, zod_v4_core.$strip>, readonly [{
34
+ readonly method: "none";
35
+ readonly configSchema: zod.ZodObject<{}, zod_v4_core.$strip>;
36
+ }, {
37
+ readonly method: "accessKey";
38
+ readonly configSchema: zod.ZodObject<{
39
+ accessKeyId: zod.ZodString;
40
+ secretAccessKey: zod.ZodString;
41
+ }, zod_v4_core.$strip>;
42
+ }, {
43
+ readonly method: "assumeRole";
44
+ readonly configSchema: zod.ZodObject<{
45
+ roleArn: zod.ZodString;
46
+ externalId: zod.ZodOptional<zod.ZodString>;
47
+ }, zod_v4_core.$strip>;
48
+ }]>;
49
+ readonly 'aws-s3': ConnectionType<"aws-s3", zod.ZodObject<{
50
+ host: zod.ZodString;
51
+ endpoint: zod.ZodOptional<zod.ZodString>;
52
+ s3ForcePathStyle: zod.ZodOptional<zod.ZodBoolean>;
53
+ }, zod_v4_core.$strip>, readonly [{
54
+ readonly method: "none";
55
+ readonly configSchema: zod.ZodObject<{}, zod_v4_core.$strip>;
56
+ }, {
57
+ readonly method: "accessKey";
58
+ readonly configSchema: zod.ZodObject<{
59
+ accessKeyId: zod.ZodString;
60
+ secretAccessKey: zod.ZodString;
61
+ }, zod_v4_core.$strip>;
62
+ }, {
63
+ readonly method: "assumeRole";
64
+ readonly configSchema: zod.ZodObject<{
65
+ roleArn: zod.ZodString;
66
+ externalId: zod.ZodOptional<zod.ZodString>;
67
+ }, zod_v4_core.$strip>;
68
+ }]>;
69
+ readonly 'azure-blob-storage': ConnectionType<"azure-blob-storage", zod.ZodObject<{
70
+ host: zod.ZodString;
71
+ accountName: zod.ZodOptional<zod.ZodString>;
72
+ endpoint: zod.ZodOptional<zod.ZodString>;
73
+ endpointSuffix: zod.ZodOptional<zod.ZodString>;
74
+ }, zod_v4_core.$strip>, readonly [{
75
+ readonly method: "none";
76
+ readonly configSchema: zod.ZodObject<{}, zod_v4_core.$strip>;
77
+ }, {
78
+ readonly method: "accountKey";
79
+ readonly configSchema: zod.ZodObject<{
80
+ accountKey: zod.ZodString;
81
+ }, zod_v4_core.$strip>;
82
+ }, {
83
+ readonly method: "sasToken";
84
+ readonly configSchema: zod.ZodObject<{
85
+ sasToken: zod.ZodString;
86
+ }, zod_v4_core.$strip>;
87
+ }, {
88
+ readonly method: "connectionString";
89
+ readonly configSchema: zod.ZodObject<{
90
+ connectionString: zod.ZodString;
91
+ }, zod_v4_core.$strip>;
92
+ }, {
93
+ readonly method: "aadCredential";
94
+ readonly configSchema: zod.ZodObject<{
95
+ clientId: zod.ZodString;
96
+ tenantId: zod.ZodString;
97
+ clientSecret: zod.ZodString;
98
+ }, zod_v4_core.$strip>;
99
+ }]>;
100
+ readonly azure: ConnectionType<"azure", zod.ZodObject<{
101
+ host: zod.ZodString;
102
+ }, zod_v4_core.$strip>, readonly [{
103
+ readonly method: "none";
104
+ readonly configSchema: zod.ZodObject<{}, zod_v4_core.$strip>;
105
+ }, {
106
+ readonly method: "pat";
107
+ readonly configSchema: zod.ZodObject<{
108
+ personalAccessToken: zod.ZodString;
109
+ orgs: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
110
+ }, zod_v4_core.$strip>;
111
+ }, {
112
+ readonly method: "clientCredentials";
113
+ readonly configSchema: zod.ZodObject<{
114
+ clientId: zod.ZodString;
115
+ clientSecret: zod.ZodString;
116
+ tenantId: zod.ZodString;
117
+ orgs: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
118
+ }, zod_v4_core.$strip>;
119
+ }, {
120
+ readonly method: "managedIdentity";
121
+ readonly configSchema: zod.ZodObject<{
122
+ clientId: zod.ZodString;
123
+ tenantId: zod.ZodOptional<zod.ZodString>;
124
+ managedIdentityClientId: zod.ZodOptional<zod.ZodString>;
125
+ orgs: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
126
+ }, zod_v4_core.$strip>;
127
+ }]>;
128
+ readonly 'bitbucket-cloud': ConnectionType<"bitbucket-cloud", zod.ZodObject<{
129
+ host: zod.ZodString;
130
+ }, zod_v4_core.$strip>, readonly [{
131
+ readonly method: "none";
132
+ readonly configSchema: zod.ZodObject<{}, zod_v4_core.$strip>;
133
+ }, {
134
+ readonly method: "token";
135
+ readonly configSchema: zod.ZodObject<{
136
+ username: zod.ZodString;
137
+ token: zod.ZodString;
138
+ }, zod_v4_core.$strip>;
139
+ }, {
140
+ readonly method: "appPassword";
141
+ readonly configSchema: zod.ZodObject<{
142
+ username: zod.ZodString;
143
+ appPassword: zod.ZodString;
144
+ }, zod_v4_core.$strip>;
145
+ }, {
146
+ readonly method: "oauth";
147
+ readonly configSchema: zod.ZodObject<{
148
+ clientId: zod.ZodString;
149
+ clientSecret: zod.ZodString;
150
+ }, zod_v4_core.$strip>;
151
+ }]>;
152
+ readonly 'bitbucket-server': ConnectionType<"bitbucket-server", zod.ZodObject<{
153
+ host: zod.ZodString;
154
+ apiBaseUrl: zod.ZodOptional<zod.ZodString>;
155
+ }, zod_v4_core.$strip>, readonly [{
156
+ readonly method: "none";
157
+ readonly configSchema: zod.ZodObject<{}, zod_v4_core.$strip>;
158
+ }, {
159
+ readonly method: "token";
160
+ readonly configSchema: zod.ZodObject<{
161
+ token: zod.ZodString;
162
+ }, zod_v4_core.$strip>;
163
+ }, {
164
+ readonly method: "basic";
165
+ readonly configSchema: zod.ZodObject<{
166
+ username: zod.ZodString;
167
+ password: zod.ZodString;
168
+ }, zod_v4_core.$strip>;
169
+ }]>;
170
+ readonly gerrit: ConnectionType<"gerrit", zod.ZodObject<{
171
+ host: zod.ZodString;
172
+ baseUrl: zod.ZodOptional<zod.ZodString>;
173
+ gitilesBaseUrl: zod.ZodString;
174
+ cloneUrl: zod.ZodOptional<zod.ZodString>;
175
+ }, zod_v4_core.$strip>, readonly [{
176
+ readonly method: "none";
177
+ readonly configSchema: zod.ZodObject<{}, zod_v4_core.$strip>;
178
+ }, {
179
+ readonly method: "basic";
180
+ readonly configSchema: zod.ZodObject<{
181
+ username: zod.ZodString;
182
+ password: zod.ZodString;
183
+ }, zod_v4_core.$strip>;
184
+ }]>;
185
+ readonly gitea: ConnectionType<"gitea", zod.ZodObject<{
186
+ host: zod.ZodString;
187
+ baseUrl: zod.ZodOptional<zod.ZodString>;
188
+ }, zod_v4_core.$strip>, readonly [{
189
+ readonly method: "none";
190
+ readonly configSchema: zod.ZodObject<{}, zod_v4_core.$strip>;
191
+ }, {
192
+ readonly method: "basic";
193
+ readonly configSchema: zod.ZodObject<{
194
+ username: zod.ZodString;
195
+ password: zod.ZodString;
196
+ }, zod_v4_core.$strip>;
197
+ }]>;
198
+ readonly github: ConnectionType<"github", zod.ZodObject<{
199
+ host: zod.ZodString;
200
+ apiBaseUrl: zod.ZodOptional<zod.ZodString>;
201
+ rawBaseUrl: zod.ZodOptional<zod.ZodString>;
202
+ }, zod_v4_core.$strip>, readonly [{
203
+ readonly method: "none";
204
+ readonly configSchema: zod.ZodObject<{}, zod_v4_core.$strip>;
205
+ }, {
206
+ readonly method: "token";
207
+ readonly configSchema: zod.ZodObject<{
208
+ token: zod.ZodString;
209
+ }, zod_v4_core.$strip>;
210
+ }, {
211
+ readonly method: "app";
212
+ readonly configSchema: zod.ZodObject<{
213
+ appId: zod.ZodUnion<readonly [zod.ZodNumber, zod.ZodString]>;
214
+ privateKey: zod.ZodString;
215
+ clientId: zod.ZodString;
216
+ clientSecret: zod.ZodString;
217
+ webhookSecret: zod.ZodOptional<zod.ZodString>;
218
+ publicAccess: zod.ZodOptional<zod.ZodBoolean>;
219
+ orgs: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
220
+ }, zod_v4_core.$strip>;
221
+ }]>;
222
+ readonly gitlab: ConnectionType<"gitlab", zod.ZodObject<{
223
+ host: zod.ZodString;
224
+ apiBaseUrl: zod.ZodOptional<zod.ZodString>;
225
+ baseUrl: zod.ZodOptional<zod.ZodString>;
226
+ }, zod_v4_core.$strip>, readonly [{
227
+ readonly method: "none";
228
+ readonly configSchema: zod.ZodObject<{}, zod_v4_core.$strip>;
229
+ }, {
230
+ readonly method: "token";
231
+ readonly configSchema: zod.ZodObject<{
232
+ token: zod.ZodString;
233
+ }, zod_v4_core.$strip>;
234
+ }]>;
235
+ readonly 'google-gcs': ConnectionType<"google-gcs", zod.ZodObject<{
236
+ host: zod.ZodString;
237
+ }, zod_v4_core.$strip>, readonly [{
238
+ readonly method: "none";
239
+ readonly configSchema: zod.ZodObject<{}, zod_v4_core.$strip>;
240
+ }, {
241
+ readonly method: "serviceAccount";
242
+ readonly configSchema: zod.ZodObject<{
243
+ clientEmail: zod.ZodString;
244
+ privateKey: zod.ZodString;
245
+ }, zod_v4_core.$strip>;
246
+ }]>;
247
+ readonly harness: ConnectionType<"harness", zod.ZodObject<{
248
+ host: zod.ZodString;
249
+ }, zod_v4_core.$strip>, readonly [{
250
+ readonly method: "token";
251
+ readonly configSchema: zod.ZodObject<{
252
+ token: zod.ZodString;
253
+ apiKey: zod.ZodOptional<zod.ZodString>;
254
+ }, zod_v4_core.$strip>;
255
+ }]>;
256
+ };
257
+ /** @public */
258
+ type ConnectionTypeKey = keyof typeof connectionTypes;
259
+ /** @public */
260
+ type LookupConnectionType<T extends ConnectionTypeKey | ConnectionType> = T extends ConnectionTypeKey ? (typeof connectionTypes)[T] : T;
261
+
262
+ /** @public */
263
+ type AuthValue<T extends ConnectionType | ConnectionTypeKey> = ConnectionAuthValue<LookupConnectionType<T>['authMethods'][number]>;
264
+ /** @public */
265
+ type Connection<T extends ConnectionType | ConnectionTypeKey = ConnectionType, TAuthMethod extends string = string> = {
266
+ type: LookupConnectionType<T>['type'];
267
+ auth: string extends TAuthMethod ? AuthValue<T>[] : Extract<AuthValue<T>, {
268
+ method: TAuthMethod;
269
+ }>;
270
+ } & z.infer<LookupConnectionType<T>['configSchema']>;
271
+
272
+ /** @public */
273
+ interface ConnectionsService {
274
+ find<TType extends ConnectionTypeKey, TAuthMethod extends ConnectionAuthMethodKey<TType>>(options: {
275
+ type: TType;
276
+ url: string;
277
+ authMethods: readonly [TAuthMethod, ...TAuthMethod[]];
278
+ }): Promise<Connection<TType, TAuthMethod>>;
279
+ }
280
+
281
+ /** @public */
282
+ declare class DefaultConnectionsService {
283
+ #private;
284
+ private readonly logger;
285
+ private readonly connections;
286
+ private readonly config;
287
+ private constructor();
288
+ static create(options: {
289
+ logger: LoggerService;
290
+ config: RootConfigService;
291
+ }): DefaultConnectionsService;
292
+ forPlugin(pluginId: string, options?: {
293
+ logger: LoggerService;
294
+ }): ConnectionsService;
295
+ }
296
+
297
+ /** @public */
298
+ declare const connectionsServiceRef: _backstage_backend_plugin_api.ServiceRef<ConnectionsService, "plugin", "singleton">;
299
+ /** @public */
300
+ declare const connectionsServiceFactory: _backstage_backend_plugin_api.ServiceFactory<ConnectionsService, "plugin", "singleton">;
301
+
302
+ /**
303
+ * Declares that a plugin or module uses a particular connection type.
304
+ * Must be called inside the `register` callback, before `registerInit`.
305
+ *
306
+ * @public
307
+ */
308
+ declare function declareConnection(reg: BackendPluginRegistrationPoints | BackendModuleRegistrationPoints, registration: ConnectionRegistration): void;
309
+
310
+ export { DefaultConnectionsService, connectionTypes, connectionsServiceFactory, connectionsServiceRef, declareConnection };
311
+ export type { AuthValue, Connection, ConnectionAuthMethod, ConnectionAuthMethodKey, ConnectionAuthValue, ConnectionType, ConnectionTypeKey, ConnectionsService, LookupConnectionType };
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ var createConnectionType = require('../system/createConnectionType.cjs.js');
4
+ var v4 = require('zod/v4');
5
+
6
+ const AwsCodeCommitConnectionType = createConnectionType.createConnectionType({
7
+ type: "aws-codecommit",
8
+ configSchema: v4.z.object({
9
+ host: v4.z.string(),
10
+ region: v4.z.string()
11
+ }),
12
+ authMethods: [
13
+ {
14
+ method: "none",
15
+ configSchema: v4.z.object({})
16
+ },
17
+ {
18
+ method: "accessKey",
19
+ configSchema: v4.z.object({
20
+ accessKeyId: v4.z.string(),
21
+ secretAccessKey: v4.z.string()
22
+ })
23
+ },
24
+ {
25
+ method: "assumeRole",
26
+ configSchema: v4.z.object({
27
+ roleArn: v4.z.string(),
28
+ externalId: v4.z.string().optional()
29
+ })
30
+ }
31
+ ]
32
+ });
33
+
34
+ exports.AwsCodeCommitConnectionType = AwsCodeCommitConnectionType;
35
+ //# sourceMappingURL=awsCodeCommit.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"awsCodeCommit.cjs.js","sources":["../../src/schema/awsCodeCommit.ts"],"sourcesContent":["/*\n * Copyright 2026 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createConnectionType } from '../system/createConnectionType';\nimport { z } from 'zod/v4';\n\n/** @public */\nexport const AwsCodeCommitConnectionType = createConnectionType({\n type: 'aws-codecommit',\n configSchema: z.object({\n host: z.string(),\n region: z.string(),\n }),\n authMethods: [\n {\n method: 'none',\n configSchema: z.object({}),\n },\n {\n method: 'accessKey',\n configSchema: z.object({\n accessKeyId: z.string(),\n secretAccessKey: z.string(),\n }),\n },\n {\n method: 'assumeRole',\n configSchema: z.object({\n roleArn: z.string(),\n externalId: z.string().optional(),\n }),\n },\n ],\n});\n"],"names":["createConnectionType","z"],"mappings":";;;;;AAmBO,MAAM,8BAA8BA,yCAAA,CAAqB;AAAA,EAC9D,IAAA,EAAM,gBAAA;AAAA,EACN,YAAA,EAAcC,KAAE,MAAA,CAAO;AAAA,IACrB,IAAA,EAAMA,KAAE,MAAA,EAAO;AAAA,IACf,MAAA,EAAQA,KAAE,MAAA;AAAO,GAClB,CAAA;AAAA,EACD,WAAA,EAAa;AAAA,IACX;AAAA,MACE,MAAA,EAAQ,MAAA;AAAA,MACR,YAAA,EAAcA,IAAA,CAAE,MAAA,CAAO,EAAE;AAAA,KAC3B;AAAA,IACA;AAAA,MACE,MAAA,EAAQ,WAAA;AAAA,MACR,YAAA,EAAcA,KAAE,MAAA,CAAO;AAAA,QACrB,WAAA,EAAaA,KAAE,MAAA,EAAO;AAAA,QACtB,eAAA,EAAiBA,KAAE,MAAA;AAAO,OAC3B;AAAA,KACH;AAAA,IACA;AAAA,MACE,MAAA,EAAQ,YAAA;AAAA,MACR,YAAA,EAAcA,KAAE,MAAA,CAAO;AAAA,QACrB,OAAA,EAASA,KAAE,MAAA,EAAO;AAAA,QAClB,UAAA,EAAYA,IAAA,CAAE,MAAA,EAAO,CAAE,QAAA;AAAS,OACjC;AAAA;AACH;AAEJ,CAAC;;;;"}
@@ -0,0 +1,36 @@
1
+ 'use strict';
2
+
3
+ var createConnectionType = require('../system/createConnectionType.cjs.js');
4
+ var v4 = require('zod/v4');
5
+
6
+ const AwsS3ConnectionType = createConnectionType.createConnectionType({
7
+ type: "aws-s3",
8
+ configSchema: v4.z.object({
9
+ host: v4.z.string(),
10
+ endpoint: v4.z.string().optional(),
11
+ s3ForcePathStyle: v4.z.boolean().optional()
12
+ }),
13
+ authMethods: [
14
+ {
15
+ method: "none",
16
+ configSchema: v4.z.object({})
17
+ },
18
+ {
19
+ method: "accessKey",
20
+ configSchema: v4.z.object({
21
+ accessKeyId: v4.z.string(),
22
+ secretAccessKey: v4.z.string()
23
+ })
24
+ },
25
+ {
26
+ method: "assumeRole",
27
+ configSchema: v4.z.object({
28
+ roleArn: v4.z.string(),
29
+ externalId: v4.z.string().optional()
30
+ })
31
+ }
32
+ ]
33
+ });
34
+
35
+ exports.AwsS3ConnectionType = AwsS3ConnectionType;
36
+ //# sourceMappingURL=awsS3.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"awsS3.cjs.js","sources":["../../src/schema/awsS3.ts"],"sourcesContent":["/*\n * Copyright 2026 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createConnectionType } from '../system/createConnectionType';\nimport { z } from 'zod/v4';\n\n/** @public */\nexport const AwsS3ConnectionType = createConnectionType({\n type: 'aws-s3',\n configSchema: z.object({\n host: z.string(),\n endpoint: z.string().optional(),\n s3ForcePathStyle: z.boolean().optional(),\n }),\n authMethods: [\n {\n method: 'none',\n configSchema: z.object({}),\n },\n {\n method: 'accessKey',\n configSchema: z.object({\n accessKeyId: z.string(),\n secretAccessKey: z.string(),\n }),\n },\n {\n method: 'assumeRole',\n configSchema: z.object({\n roleArn: z.string(),\n externalId: z.string().optional(),\n }),\n },\n ],\n});\n"],"names":["createConnectionType","z"],"mappings":";;;;;AAmBO,MAAM,sBAAsBA,yCAAA,CAAqB;AAAA,EACtD,IAAA,EAAM,QAAA;AAAA,EACN,YAAA,EAAcC,KAAE,MAAA,CAAO;AAAA,IACrB,IAAA,EAAMA,KAAE,MAAA,EAAO;AAAA,IACf,QAAA,EAAUA,IAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,IAC9B,gBAAA,EAAkBA,IAAA,CAAE,OAAA,EAAQ,CAAE,QAAA;AAAS,GACxC,CAAA;AAAA,EACD,WAAA,EAAa;AAAA,IACX;AAAA,MACE,MAAA,EAAQ,MAAA;AAAA,MACR,YAAA,EAAcA,IAAA,CAAE,MAAA,CAAO,EAAE;AAAA,KAC3B;AAAA,IACA;AAAA,MACE,MAAA,EAAQ,WAAA;AAAA,MACR,YAAA,EAAcA,KAAE,MAAA,CAAO;AAAA,QACrB,WAAA,EAAaA,KAAE,MAAA,EAAO;AAAA,QACtB,eAAA,EAAiBA,KAAE,MAAA;AAAO,OAC3B;AAAA,KACH;AAAA,IACA;AAAA,MACE,MAAA,EAAQ,YAAA;AAAA,MACR,YAAA,EAAcA,KAAE,MAAA,CAAO;AAAA,QACrB,OAAA,EAASA,KAAE,MAAA,EAAO;AAAA,QAClB,UAAA,EAAYA,IAAA,CAAE,MAAA,EAAO,CAAE,QAAA;AAAS,OACjC;AAAA;AACH;AAEJ,CAAC;;;;"}
@@ -0,0 +1,45 @@
1
+ 'use strict';
2
+
3
+ var createConnectionType = require('../system/createConnectionType.cjs.js');
4
+ var v4 = require('zod/v4');
5
+
6
+ const AzureConnectionType = createConnectionType.createConnectionType({
7
+ type: "azure",
8
+ configSchema: v4.z.object({
9
+ host: v4.z.string()
10
+ }),
11
+ authMethods: [
12
+ {
13
+ method: "none",
14
+ configSchema: v4.z.object({})
15
+ },
16
+ {
17
+ method: "pat",
18
+ configSchema: v4.z.object({
19
+ personalAccessToken: v4.z.string(),
20
+ orgs: v4.z.array(v4.z.string()).optional()
21
+ })
22
+ },
23
+ {
24
+ method: "clientCredentials",
25
+ configSchema: v4.z.object({
26
+ clientId: v4.z.string(),
27
+ clientSecret: v4.z.string(),
28
+ tenantId: v4.z.string(),
29
+ orgs: v4.z.array(v4.z.string()).optional()
30
+ })
31
+ },
32
+ {
33
+ method: "managedIdentity",
34
+ configSchema: v4.z.object({
35
+ clientId: v4.z.string(),
36
+ tenantId: v4.z.string().optional(),
37
+ managedIdentityClientId: v4.z.string().optional(),
38
+ orgs: v4.z.array(v4.z.string()).optional()
39
+ })
40
+ }
41
+ ]
42
+ });
43
+
44
+ exports.AzureConnectionType = AzureConnectionType;
45
+ //# sourceMappingURL=azure.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azure.cjs.js","sources":["../../src/schema/azure.ts"],"sourcesContent":["/*\n * Copyright 2026 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createConnectionType } from '../system/createConnectionType';\nimport { z } from 'zod/v4';\n\n/** @public */\nexport const AzureConnectionType = createConnectionType({\n type: 'azure',\n configSchema: z.object({\n host: z.string(),\n }),\n authMethods: [\n {\n method: 'none',\n configSchema: z.object({}),\n },\n {\n method: 'pat',\n configSchema: z.object({\n personalAccessToken: z.string(),\n orgs: z.array(z.string()).optional(),\n }),\n },\n {\n method: 'clientCredentials',\n configSchema: z.object({\n clientId: z.string(),\n clientSecret: z.string(),\n tenantId: z.string(),\n orgs: z.array(z.string()).optional(),\n }),\n },\n {\n method: 'managedIdentity',\n configSchema: z.object({\n clientId: z.string(),\n tenantId: z.string().optional(),\n managedIdentityClientId: z.string().optional(),\n orgs: z.array(z.string()).optional(),\n }),\n },\n ],\n});\n"],"names":["createConnectionType","z"],"mappings":";;;;;AAmBO,MAAM,sBAAsBA,yCAAA,CAAqB;AAAA,EACtD,IAAA,EAAM,OAAA;AAAA,EACN,YAAA,EAAcC,KAAE,MAAA,CAAO;AAAA,IACrB,IAAA,EAAMA,KAAE,MAAA;AAAO,GAChB,CAAA;AAAA,EACD,WAAA,EAAa;AAAA,IACX;AAAA,MACE,MAAA,EAAQ,MAAA;AAAA,MACR,YAAA,EAAcA,IAAA,CAAE,MAAA,CAAO,EAAE;AAAA,KAC3B;AAAA,IACA;AAAA,MACE,MAAA,EAAQ,KAAA;AAAA,MACR,YAAA,EAAcA,KAAE,MAAA,CAAO;AAAA,QACrB,mBAAA,EAAqBA,KAAE,MAAA,EAAO;AAAA,QAC9B,MAAMA,IAAA,CAAE,KAAA,CAAMA,KAAE,MAAA,EAAQ,EAAE,QAAA;AAAS,OACpC;AAAA,KACH;AAAA,IACA;AAAA,MACE,MAAA,EAAQ,mBAAA;AAAA,MACR,YAAA,EAAcA,KAAE,MAAA,CAAO;AAAA,QACrB,QAAA,EAAUA,KAAE,MAAA,EAAO;AAAA,QACnB,YAAA,EAAcA,KAAE,MAAA,EAAO;AAAA,QACvB,QAAA,EAAUA,KAAE,MAAA,EAAO;AAAA,QACnB,MAAMA,IAAA,CAAE,KAAA,CAAMA,KAAE,MAAA,EAAQ,EAAE,QAAA;AAAS,OACpC;AAAA,KACH;AAAA,IACA;AAAA,MACE,MAAA,EAAQ,iBAAA;AAAA,MACR,YAAA,EAAcA,KAAE,MAAA,CAAO;AAAA,QACrB,QAAA,EAAUA,KAAE,MAAA,EAAO;AAAA,QACnB,QAAA,EAAUA,IAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,QAC9B,uBAAA,EAAyBA,IAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,QAC7C,MAAMA,IAAA,CAAE,KAAA,CAAMA,KAAE,MAAA,EAAQ,EAAE,QAAA;AAAS,OACpC;AAAA;AACH;AAEJ,CAAC;;;;"}
@@ -0,0 +1,49 @@
1
+ 'use strict';
2
+
3
+ var createConnectionType = require('../system/createConnectionType.cjs.js');
4
+ var v4 = require('zod/v4');
5
+
6
+ const AzureBlobStorageConnectionType = createConnectionType.createConnectionType({
7
+ type: "azure-blob-storage",
8
+ configSchema: v4.z.object({
9
+ host: v4.z.string(),
10
+ accountName: v4.z.string().optional(),
11
+ endpoint: v4.z.string().optional(),
12
+ endpointSuffix: v4.z.string().optional()
13
+ }),
14
+ authMethods: [
15
+ {
16
+ method: "none",
17
+ configSchema: v4.z.object({})
18
+ },
19
+ {
20
+ method: "accountKey",
21
+ configSchema: v4.z.object({
22
+ accountKey: v4.z.string()
23
+ })
24
+ },
25
+ {
26
+ method: "sasToken",
27
+ configSchema: v4.z.object({
28
+ sasToken: v4.z.string()
29
+ })
30
+ },
31
+ {
32
+ method: "connectionString",
33
+ configSchema: v4.z.object({
34
+ connectionString: v4.z.string()
35
+ })
36
+ },
37
+ {
38
+ method: "aadCredential",
39
+ configSchema: v4.z.object({
40
+ clientId: v4.z.string(),
41
+ tenantId: v4.z.string(),
42
+ clientSecret: v4.z.string()
43
+ })
44
+ }
45
+ ]
46
+ });
47
+
48
+ exports.AzureBlobStorageConnectionType = AzureBlobStorageConnectionType;
49
+ //# sourceMappingURL=azureBlobStorage.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureBlobStorage.cjs.js","sources":["../../src/schema/azureBlobStorage.ts"],"sourcesContent":["/*\n * Copyright 2026 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createConnectionType } from '../system/createConnectionType';\nimport { z } from 'zod/v4';\n\n/** @public */\nexport const AzureBlobStorageConnectionType = createConnectionType({\n type: 'azure-blob-storage',\n configSchema: z.object({\n host: z.string(),\n accountName: z.string().optional(),\n endpoint: z.string().optional(),\n endpointSuffix: z.string().optional(),\n }),\n authMethods: [\n {\n method: 'none',\n configSchema: z.object({}),\n },\n {\n method: 'accountKey',\n configSchema: z.object({\n accountKey: z.string(),\n }),\n },\n {\n method: 'sasToken',\n configSchema: z.object({\n sasToken: z.string(),\n }),\n },\n {\n method: 'connectionString',\n configSchema: z.object({\n connectionString: z.string(),\n }),\n },\n {\n method: 'aadCredential',\n configSchema: z.object({\n clientId: z.string(),\n tenantId: z.string(),\n clientSecret: z.string(),\n }),\n },\n ],\n});\n"],"names":["createConnectionType","z"],"mappings":";;;;;AAmBO,MAAM,iCAAiCA,yCAAA,CAAqB;AAAA,EACjE,IAAA,EAAM,oBAAA;AAAA,EACN,YAAA,EAAcC,KAAE,MAAA,CAAO;AAAA,IACrB,IAAA,EAAMA,KAAE,MAAA,EAAO;AAAA,IACf,WAAA,EAAaA,IAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,IACjC,QAAA,EAAUA,IAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,IAC9B,cAAA,EAAgBA,IAAA,CAAE,MAAA,EAAO,CAAE,QAAA;AAAS,GACrC,CAAA;AAAA,EACD,WAAA,EAAa;AAAA,IACX;AAAA,MACE,MAAA,EAAQ,MAAA;AAAA,MACR,YAAA,EAAcA,IAAA,CAAE,MAAA,CAAO,EAAE;AAAA,KAC3B;AAAA,IACA;AAAA,MACE,MAAA,EAAQ,YAAA;AAAA,MACR,YAAA,EAAcA,KAAE,MAAA,CAAO;AAAA,QACrB,UAAA,EAAYA,KAAE,MAAA;AAAO,OACtB;AAAA,KACH;AAAA,IACA;AAAA,MACE,MAAA,EAAQ,UAAA;AAAA,MACR,YAAA,EAAcA,KAAE,MAAA,CAAO;AAAA,QACrB,QAAA,EAAUA,KAAE,MAAA;AAAO,OACpB;AAAA,KACH;AAAA,IACA;AAAA,MACE,MAAA,EAAQ,kBAAA;AAAA,MACR,YAAA,EAAcA,KAAE,MAAA,CAAO;AAAA,QACrB,gBAAA,EAAkBA,KAAE,MAAA;AAAO,OAC5B;AAAA,KACH;AAAA,IACA;AAAA,MACE,MAAA,EAAQ,eAAA;AAAA,MACR,YAAA,EAAcA,KAAE,MAAA,CAAO;AAAA,QACrB,QAAA,EAAUA,KAAE,MAAA,EAAO;AAAA,QACnB,QAAA,EAAUA,KAAE,MAAA,EAAO;AAAA,QACnB,YAAA,EAAcA,KAAE,MAAA;AAAO,OACxB;AAAA;AACH;AAEJ,CAAC;;;;"}
@@ -0,0 +1,41 @@
1
+ 'use strict';
2
+
3
+ var createConnectionType = require('../system/createConnectionType.cjs.js');
4
+ var v4 = require('zod/v4');
5
+
6
+ const BitbucketCloudConnectionType = createConnectionType.createConnectionType({
7
+ type: "bitbucket-cloud",
8
+ configSchema: v4.z.object({
9
+ host: v4.z.string()
10
+ }),
11
+ authMethods: [
12
+ {
13
+ method: "none",
14
+ configSchema: v4.z.object({})
15
+ },
16
+ {
17
+ method: "token",
18
+ configSchema: v4.z.object({
19
+ username: v4.z.string(),
20
+ token: v4.z.string()
21
+ })
22
+ },
23
+ {
24
+ method: "appPassword",
25
+ configSchema: v4.z.object({
26
+ username: v4.z.string(),
27
+ appPassword: v4.z.string()
28
+ })
29
+ },
30
+ {
31
+ method: "oauth",
32
+ configSchema: v4.z.object({
33
+ clientId: v4.z.string(),
34
+ clientSecret: v4.z.string()
35
+ })
36
+ }
37
+ ]
38
+ });
39
+
40
+ exports.BitbucketCloudConnectionType = BitbucketCloudConnectionType;
41
+ //# sourceMappingURL=bitbucketCloud.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bitbucketCloud.cjs.js","sources":["../../src/schema/bitbucketCloud.ts"],"sourcesContent":["/*\n * Copyright 2026 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createConnectionType } from '../system/createConnectionType';\nimport { z } from 'zod/v4';\n\n/** @public */\nexport const BitbucketCloudConnectionType = createConnectionType({\n type: 'bitbucket-cloud',\n configSchema: z.object({\n host: z.string(),\n }),\n authMethods: [\n {\n method: 'none',\n configSchema: z.object({}),\n },\n {\n method: 'token',\n configSchema: z.object({\n username: z.string(),\n token: z.string(),\n }),\n },\n {\n method: 'appPassword',\n configSchema: z.object({\n username: z.string(),\n appPassword: z.string(),\n }),\n },\n {\n method: 'oauth',\n configSchema: z.object({\n clientId: z.string(),\n clientSecret: z.string(),\n }),\n },\n ],\n});\n"],"names":["createConnectionType","z"],"mappings":";;;;;AAmBO,MAAM,+BAA+BA,yCAAA,CAAqB;AAAA,EAC/D,IAAA,EAAM,iBAAA;AAAA,EACN,YAAA,EAAcC,KAAE,MAAA,CAAO;AAAA,IACrB,IAAA,EAAMA,KAAE,MAAA;AAAO,GAChB,CAAA;AAAA,EACD,WAAA,EAAa;AAAA,IACX;AAAA,MACE,MAAA,EAAQ,MAAA;AAAA,MACR,YAAA,EAAcA,IAAA,CAAE,MAAA,CAAO,EAAE;AAAA,KAC3B;AAAA,IACA;AAAA,MACE,MAAA,EAAQ,OAAA;AAAA,MACR,YAAA,EAAcA,KAAE,MAAA,CAAO;AAAA,QACrB,QAAA,EAAUA,KAAE,MAAA,EAAO;AAAA,QACnB,KAAA,EAAOA,KAAE,MAAA;AAAO,OACjB;AAAA,KACH;AAAA,IACA;AAAA,MACE,MAAA,EAAQ,aAAA;AAAA,MACR,YAAA,EAAcA,KAAE,MAAA,CAAO;AAAA,QACrB,QAAA,EAAUA,KAAE,MAAA,EAAO;AAAA,QACnB,WAAA,EAAaA,KAAE,MAAA;AAAO,OACvB;AAAA,KACH;AAAA,IACA;AAAA,MACE,MAAA,EAAQ,OAAA;AAAA,MACR,YAAA,EAAcA,KAAE,MAAA,CAAO;AAAA,QACrB,QAAA,EAAUA,KAAE,MAAA,EAAO;AAAA,QACnB,YAAA,EAAcA,KAAE,MAAA;AAAO,OACxB;AAAA;AACH;AAEJ,CAAC;;;;"}
@@ -0,0 +1,34 @@
1
+ 'use strict';
2
+
3
+ var createConnectionType = require('../system/createConnectionType.cjs.js');
4
+ var v4 = require('zod/v4');
5
+
6
+ const BitbucketServerConnectionType = createConnectionType.createConnectionType({
7
+ type: "bitbucket-server",
8
+ configSchema: v4.z.object({
9
+ host: v4.z.string(),
10
+ apiBaseUrl: v4.z.string().optional()
11
+ }),
12
+ authMethods: [
13
+ {
14
+ method: "none",
15
+ configSchema: v4.z.object({})
16
+ },
17
+ {
18
+ method: "token",
19
+ configSchema: v4.z.object({
20
+ token: v4.z.string()
21
+ })
22
+ },
23
+ {
24
+ method: "basic",
25
+ configSchema: v4.z.object({
26
+ username: v4.z.string(),
27
+ password: v4.z.string()
28
+ })
29
+ }
30
+ ]
31
+ });
32
+
33
+ exports.BitbucketServerConnectionType = BitbucketServerConnectionType;
34
+ //# sourceMappingURL=bitbucketServer.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bitbucketServer.cjs.js","sources":["../../src/schema/bitbucketServer.ts"],"sourcesContent":["/*\n * Copyright 2026 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createConnectionType } from '../system/createConnectionType';\nimport { z } from 'zod/v4';\n\n/** @public */\nexport const BitbucketServerConnectionType = createConnectionType({\n type: 'bitbucket-server',\n configSchema: z.object({\n host: z.string(),\n apiBaseUrl: z.string().optional(),\n }),\n authMethods: [\n {\n method: 'none',\n configSchema: z.object({}),\n },\n {\n method: 'token',\n configSchema: z.object({\n token: z.string(),\n }),\n },\n {\n method: 'basic',\n configSchema: z.object({\n username: z.string(),\n password: z.string(),\n }),\n },\n ],\n});\n"],"names":["createConnectionType","z"],"mappings":";;;;;AAmBO,MAAM,gCAAgCA,yCAAA,CAAqB;AAAA,EAChE,IAAA,EAAM,kBAAA;AAAA,EACN,YAAA,EAAcC,KAAE,MAAA,CAAO;AAAA,IACrB,IAAA,EAAMA,KAAE,MAAA,EAAO;AAAA,IACf,UAAA,EAAYA,IAAA,CAAE,MAAA,EAAO,CAAE,QAAA;AAAS,GACjC,CAAA;AAAA,EACD,WAAA,EAAa;AAAA,IACX;AAAA,MACE,MAAA,EAAQ,MAAA;AAAA,MACR,YAAA,EAAcA,IAAA,CAAE,MAAA,CAAO,EAAE;AAAA,KAC3B;AAAA,IACA;AAAA,MACE,MAAA,EAAQ,OAAA;AAAA,MACR,YAAA,EAAcA,KAAE,MAAA,CAAO;AAAA,QACrB,KAAA,EAAOA,KAAE,MAAA;AAAO,OACjB;AAAA,KACH;AAAA,IACA;AAAA,MACE,MAAA,EAAQ,OAAA;AAAA,MACR,YAAA,EAAcA,KAAE,MAAA,CAAO;AAAA,QACrB,QAAA,EAAUA,KAAE,MAAA,EAAO;AAAA,QACnB,QAAA,EAAUA,KAAE,MAAA;AAAO,OACpB;AAAA;AACH;AAEJ,CAAC;;;;"}
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+ var createConnectionType = require('../system/createConnectionType.cjs.js');
4
+ var v4 = require('zod/v4');
5
+
6
+ const GerritConnectionType = createConnectionType.createConnectionType({
7
+ type: "gerrit",
8
+ configSchema: v4.z.object({
9
+ host: v4.z.string(),
10
+ baseUrl: v4.z.string().optional(),
11
+ gitilesBaseUrl: v4.z.string(),
12
+ cloneUrl: v4.z.string().optional()
13
+ }),
14
+ authMethods: [
15
+ {
16
+ method: "none",
17
+ configSchema: v4.z.object({})
18
+ },
19
+ {
20
+ method: "basic",
21
+ configSchema: v4.z.object({
22
+ username: v4.z.string(),
23
+ password: v4.z.string()
24
+ })
25
+ }
26
+ ]
27
+ });
28
+
29
+ exports.GerritConnectionType = GerritConnectionType;
30
+ //# sourceMappingURL=gerrit.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gerrit.cjs.js","sources":["../../src/schema/gerrit.ts"],"sourcesContent":["/*\n * Copyright 2026 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createConnectionType } from '../system/createConnectionType';\nimport { z } from 'zod/v4';\n\n/** @public */\nexport const GerritConnectionType = createConnectionType({\n type: 'gerrit',\n configSchema: z.object({\n host: z.string(),\n baseUrl: z.string().optional(),\n gitilesBaseUrl: z.string(),\n cloneUrl: z.string().optional(),\n }),\n authMethods: [\n {\n method: 'none',\n configSchema: z.object({}),\n },\n {\n method: 'basic',\n configSchema: z.object({\n username: z.string(),\n password: z.string(),\n }),\n },\n ],\n});\n"],"names":["createConnectionType","z"],"mappings":";;;;;AAmBO,MAAM,uBAAuBA,yCAAA,CAAqB;AAAA,EACvD,IAAA,EAAM,QAAA;AAAA,EACN,YAAA,EAAcC,KAAE,MAAA,CAAO;AAAA,IACrB,IAAA,EAAMA,KAAE,MAAA,EAAO;AAAA,IACf,OAAA,EAASA,IAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,IAC7B,cAAA,EAAgBA,KAAE,MAAA,EAAO;AAAA,IACzB,QAAA,EAAUA,IAAA,CAAE,MAAA,EAAO,CAAE,QAAA;AAAS,GAC/B,CAAA;AAAA,EACD,WAAA,EAAa;AAAA,IACX;AAAA,MACE,MAAA,EAAQ,MAAA;AAAA,MACR,YAAA,EAAcA,IAAA,CAAE,MAAA,CAAO,EAAE;AAAA,KAC3B;AAAA,IACA;AAAA,MACE,MAAA,EAAQ,OAAA;AAAA,MACR,YAAA,EAAcA,KAAE,MAAA,CAAO;AAAA,QACrB,QAAA,EAAUA,KAAE,MAAA,EAAO;AAAA,QACnB,QAAA,EAAUA,KAAE,MAAA;AAAO,OACpB;AAAA;AACH;AAEJ,CAAC;;;;"}
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ var createConnectionType = require('../system/createConnectionType.cjs.js');
4
+ var v4 = require('zod/v4');
5
+
6
+ const GiteaConnectionType = createConnectionType.createConnectionType({
7
+ type: "gitea",
8
+ configSchema: v4.z.object({
9
+ host: v4.z.string(),
10
+ baseUrl: v4.z.string().optional()
11
+ }),
12
+ authMethods: [
13
+ {
14
+ method: "none",
15
+ configSchema: v4.z.object({})
16
+ },
17
+ {
18
+ method: "basic",
19
+ configSchema: v4.z.object({
20
+ username: v4.z.string(),
21
+ password: v4.z.string()
22
+ })
23
+ }
24
+ ]
25
+ });
26
+
27
+ exports.GiteaConnectionType = GiteaConnectionType;
28
+ //# sourceMappingURL=gitea.cjs.js.map