@yadsh/dsh-qa-integrations 0.5.0 → 0.6.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 (191) hide show
  1. package/README.md +431 -18
  2. package/compatibility.json +1 -1
  3. package/lib/broker.js +456 -9
  4. package/lib/broker.js.map +1 -1
  5. package/lib/client/bitrix24.js +2 -1
  6. package/lib/client/bitrix24.js.map +1 -1
  7. package/lib/client/card.js +8 -1
  8. package/lib/client/card.js.map +1 -1
  9. package/lib/client/confluence.js +3 -2
  10. package/lib/client/confluence.js.map +1 -1
  11. package/lib/client/gitlab.js +40 -4
  12. package/lib/client/gitlab.js.map +1 -1
  13. package/lib/client/index.js +13 -11
  14. package/lib/client/index.js.map +1 -1
  15. package/lib/client/integrations.js +39 -2
  16. package/lib/client/integrations.js.map +1 -1
  17. package/lib/client/jira.js +3 -2
  18. package/lib/client/jira.js.map +1 -1
  19. package/lib/client/provider-card.js +138 -4
  20. package/lib/client/provider-card.js.map +1 -1
  21. package/lib/client/styles.js +8 -5
  22. package/lib/client/styles.js.map +1 -1
  23. package/lib/client/teamcity.js +31 -4
  24. package/lib/client/teamcity.js.map +1 -1
  25. package/lib/client/testit.js +65 -0
  26. package/lib/client/testit.js.map +1 -0
  27. package/lib/client/weblate.js +70 -0
  28. package/lib/client/weblate.js.map +1 -0
  29. package/lib/client.js +2600 -480
  30. package/lib/client.js.map +1 -1
  31. package/lib/coerce.js +16 -7
  32. package/lib/coerce.js.map +1 -1
  33. package/lib/config.js +12 -0
  34. package/lib/config.js.map +1 -1
  35. package/lib/errors.js.map +1 -1
  36. package/lib/index.js +274 -28
  37. package/lib/index.js.map +1 -1
  38. package/lib/providers/bitrix24/catalog.js +13 -0
  39. package/lib/providers/bitrix24/catalog.js.map +1 -1
  40. package/lib/providers/bitrix24/config.js +3 -0
  41. package/lib/providers/bitrix24/config.js.map +1 -1
  42. package/lib/providers/bitrix24/credential-help.js +24 -0
  43. package/lib/providers/bitrix24/credential-help.js.map +1 -0
  44. package/lib/providers/bitrix24/index.js +9 -0
  45. package/lib/providers/bitrix24/index.js.map +1 -1
  46. package/lib/providers/bitrix24/operations.js +60 -1
  47. package/lib/providers/bitrix24/operations.js.map +1 -1
  48. package/lib/providers/bitrix24/tools.js +95 -3
  49. package/lib/providers/bitrix24/tools.js.map +1 -1
  50. package/lib/providers/confluence/credential-help.js +29 -0
  51. package/lib/providers/confluence/credential-help.js.map +1 -0
  52. package/lib/providers/confluence/index.js +9 -0
  53. package/lib/providers/confluence/index.js.map +1 -1
  54. package/lib/providers/gitlab/catalog.js +108 -15
  55. package/lib/providers/gitlab/catalog.js.map +1 -1
  56. package/lib/providers/gitlab/config.js +11 -3
  57. package/lib/providers/gitlab/config.js.map +1 -1
  58. package/lib/providers/gitlab/credential-help.js +33 -0
  59. package/lib/providers/gitlab/credential-help.js.map +1 -0
  60. package/lib/providers/gitlab/index.js +337 -6
  61. package/lib/providers/gitlab/index.js.map +1 -1
  62. package/lib/providers/jira/credential-help.js +31 -0
  63. package/lib/providers/jira/credential-help.js.map +1 -0
  64. package/lib/providers/jira/index.js +9 -0
  65. package/lib/providers/jira/index.js.map +1 -1
  66. package/lib/providers/registry.js +4 -0
  67. package/lib/providers/registry.js.map +1 -1
  68. package/lib/providers/shared/credential-help.js +29 -0
  69. package/lib/providers/shared/credential-help.js.map +1 -0
  70. package/lib/providers/shared/service-boundary.js +44 -0
  71. package/lib/providers/shared/service-boundary.js.map +1 -0
  72. package/lib/providers/teamcity/catalog.js +56 -2
  73. package/lib/providers/teamcity/catalog.js.map +1 -1
  74. package/lib/providers/teamcity/credential-help.js +25 -0
  75. package/lib/providers/teamcity/credential-help.js.map +1 -0
  76. package/lib/providers/teamcity/index.js +254 -2
  77. package/lib/providers/teamcity/index.js.map +1 -1
  78. package/lib/providers/testit/attachments.js +131 -0
  79. package/lib/providers/testit/attachments.js.map +1 -0
  80. package/lib/providers/testit/catalog.js +225 -0
  81. package/lib/providers/testit/catalog.js.map +1 -0
  82. package/lib/providers/testit/config.js +175 -0
  83. package/lib/providers/testit/config.js.map +1 -0
  84. package/lib/providers/testit/credential-help.js +29 -0
  85. package/lib/providers/testit/credential-help.js.map +1 -0
  86. package/lib/providers/testit/index.js +184 -0
  87. package/lib/providers/testit/index.js.map +1 -0
  88. package/lib/providers/testit/operations.js +1070 -0
  89. package/lib/providers/testit/operations.js.map +1 -0
  90. package/lib/providers/testit/tools.js +717 -0
  91. package/lib/providers/testit/tools.js.map +1 -0
  92. package/lib/providers/testit/transport.js +158 -0
  93. package/lib/providers/testit/transport.js.map +1 -0
  94. package/lib/providers/weblate/catalog.js +185 -0
  95. package/lib/providers/weblate/catalog.js.map +1 -0
  96. package/lib/providers/weblate/config.js +147 -0
  97. package/lib/providers/weblate/config.js.map +1 -0
  98. package/lib/providers/weblate/credential-help.js +26 -0
  99. package/lib/providers/weblate/credential-help.js.map +1 -0
  100. package/lib/providers/weblate/index.js +181 -0
  101. package/lib/providers/weblate/index.js.map +1 -0
  102. package/lib/providers/weblate/operations.js +703 -0
  103. package/lib/providers/weblate/operations.js.map +1 -0
  104. package/lib/providers/weblate/query.js +80 -0
  105. package/lib/providers/weblate/query.js.map +1 -0
  106. package/lib/providers/weblate/tools.js +408 -0
  107. package/lib/providers/weblate/tools.js.map +1 -0
  108. package/lib/providers/weblate/transport.js +179 -0
  109. package/lib/providers/weblate/transport.js.map +1 -0
  110. package/lib/repository.js +197 -13
  111. package/lib/repository.js.map +1 -1
  112. package/lib/service-credentials/config.js +179 -0
  113. package/lib/service-credentials/config.js.map +1 -0
  114. package/lib/service-credentials/policy.js +92 -0
  115. package/lib/service-credentials/policy.js.map +1 -0
  116. package/lib/service-credentials/registry.js +142 -0
  117. package/lib/service-credentials/registry.js.map +1 -0
  118. package/lib/service-credentials/state.js +30 -0
  119. package/lib/service-credentials/state.js.map +1 -0
  120. package/lib/service-credentials/types.js +20 -0
  121. package/lib/service-credentials/types.js.map +1 -0
  122. package/lib/tools.js +27 -2
  123. package/lib/tools.js.map +1 -1
  124. package/lib/typert.host.js +1187 -39
  125. package/lib/typert.remote-client.d.ts +37 -5
  126. package/lib/typert.remote-client.js +1057 -33
  127. package/lib/types/broker.d.ts +70 -4
  128. package/lib/types/client/bitrix24.d.ts +1 -1
  129. package/lib/types/client/card.d.ts +3 -1
  130. package/lib/types/client/confluence.d.ts +2 -2
  131. package/lib/types/client/gitlab.d.ts +15 -2
  132. package/lib/types/client/index.d.ts +3 -2
  133. package/lib/types/client/integrations.d.ts +11 -2
  134. package/lib/types/client/jira.d.ts +2 -2
  135. package/lib/types/client/provider-card.d.ts +50 -8
  136. package/lib/types/client/styles.d.ts +4 -3
  137. package/lib/types/client/teamcity.d.ts +15 -2
  138. package/lib/types/client/testit.d.ts +15 -0
  139. package/lib/types/client/weblate.d.ts +15 -0
  140. package/lib/types/coerce.d.ts +2 -2
  141. package/lib/types/config.d.ts +21 -0
  142. package/lib/types/errors.d.ts +9 -1
  143. package/lib/types/index.d.ts +108 -11
  144. package/lib/types/providers/bitrix24/catalog.d.ts +1 -1
  145. package/lib/types/providers/bitrix24/config.d.ts +11 -1
  146. package/lib/types/providers/bitrix24/credential-help.d.ts +8 -0
  147. package/lib/types/providers/bitrix24/index.d.ts +5 -0
  148. package/lib/types/providers/bitrix24/tools.d.ts +4 -0
  149. package/lib/types/providers/confluence/credential-help.d.ts +9 -0
  150. package/lib/types/providers/confluence/index.d.ts +5 -0
  151. package/lib/types/providers/contract.d.ts +62 -1
  152. package/lib/types/providers/gitlab/catalog.d.ts +20 -5
  153. package/lib/types/providers/gitlab/config.d.ts +14 -3
  154. package/lib/types/providers/gitlab/credential-help.d.ts +9 -0
  155. package/lib/types/providers/gitlab/index.d.ts +51 -1
  156. package/lib/types/providers/jira/credential-help.d.ts +8 -0
  157. package/lib/types/providers/jira/index.d.ts +5 -0
  158. package/lib/types/providers/registry.d.ts +2 -0
  159. package/lib/types/providers/shared/credential-help.d.ts +17 -0
  160. package/lib/types/providers/shared/service-boundary.d.ts +25 -0
  161. package/lib/types/providers/teamcity/catalog.d.ts +18 -2
  162. package/lib/types/providers/teamcity/credential-help.d.ts +8 -0
  163. package/lib/types/providers/teamcity/index.d.ts +53 -2
  164. package/lib/types/providers/testit/attachments.d.ts +20 -0
  165. package/lib/types/providers/testit/catalog.d.ts +75 -0
  166. package/lib/types/providers/testit/config.d.ts +61 -0
  167. package/lib/types/providers/testit/credential-help.d.ts +8 -0
  168. package/lib/types/providers/testit/index.d.ts +60 -0
  169. package/lib/types/providers/testit/operations.d.ts +95 -0
  170. package/lib/types/providers/testit/tools.d.ts +15 -0
  171. package/lib/types/providers/testit/transport.d.ts +67 -0
  172. package/lib/types/providers/weblate/catalog.d.ts +43 -0
  173. package/lib/types/providers/weblate/config.d.ts +57 -0
  174. package/lib/types/providers/weblate/credential-help.d.ts +9 -0
  175. package/lib/types/providers/weblate/index.d.ts +50 -0
  176. package/lib/types/providers/weblate/operations.d.ts +77 -0
  177. package/lib/types/providers/weblate/query.d.ts +37 -0
  178. package/lib/types/providers/weblate/tools.d.ts +15 -0
  179. package/lib/types/providers/weblate/transport.d.ts +60 -0
  180. package/lib/types/repository.d.ts +38 -3
  181. package/lib/types/service-credentials/config.d.ts +73 -0
  182. package/lib/types/service-credentials/policy.d.ts +44 -0
  183. package/lib/types/service-credentials/registry.d.ts +43 -0
  184. package/lib/types/service-credentials/state.d.ts +14 -0
  185. package/lib/types/service-credentials/types.d.ts +97 -0
  186. package/lib/types/tools.d.ts +10 -1
  187. package/lib/types/types.d.ts +114 -10
  188. package/package.json +7 -7
  189. package/lib/shared/settings.js +0 -19
  190. package/lib/shared/settings.js.map +0 -1
  191. package/lib/types/shared/settings.d.ts +0 -19
package/lib/coerce.js CHANGED
@@ -1,7 +1,13 @@
1
1
  import { IntegrationError } from "./errors.js";
2
2
  const MAX_INT = 2_147_483_647;
3
- function invalid(field) {
4
- throw new IntegrationError("InvalidRequest", `${field} is invalid`);
3
+ /**
4
+ * The message a rejected argument carries. `explain` appends what a correct
5
+ * value looks like, so a model can repair the call instead of retrying it.
6
+ */
7
+ function invalid(field, explain) {
8
+ throw new IntegrationError("InvalidRequest", explain === undefined
9
+ ? `${field} is invalid`
10
+ : `${field} is invalid: ${explain}`);
5
11
  }
6
12
  /** Model-supplied identifiers are positive integers or the argument is refused. */
7
13
  export function requiredInteger(value, field, min = 1, max = MAX_INT) {
@@ -15,14 +21,17 @@ export function optionalInteger(value, field, min = 1, max = MAX_INT) {
15
21
  ? undefined
16
22
  : requiredInteger(value, field, min, max);
17
23
  }
18
- export function requiredText(value, field, min, max) {
24
+ export function requiredText(value, field, min, max, explain) {
19
25
  const normalized = typeof value === "string" ? value.trim() : "";
20
- if (normalized.length < min || normalized.length > max)
21
- invalid(field);
26
+ if (normalized.length < min || normalized.length > max) {
27
+ invalid(field, explain);
28
+ }
22
29
  return normalized;
23
30
  }
24
- export function optionalText(value, field, min, max) {
25
- return value === undefined ? undefined : requiredText(value, field, min, max);
31
+ export function optionalText(value, field, min, max, explain) {
32
+ return value === undefined
33
+ ? undefined
34
+ : requiredText(value, field, min, max, explain);
26
35
  }
27
36
  export function optionalBoolean(value, field) {
28
37
  if (value === undefined)
package/lib/coerce.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"coerce.js","sourceRoot":"","sources":["../src/coerce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,OAAO,GAAG,aAAa,CAAC;AAE9B,SAAS,OAAO,CAAC,KAAa;IAC5B,MAAM,IAAI,gBAAgB,CAAC,gBAAgB,EAAE,GAAG,KAAK,aAAa,CAAC,CAAC;AACtE,CAAC;AAED,mFAAmF;AACnF,MAAM,UAAU,eAAe,CAC7B,KAAc,EACd,KAAa,EACb,GAAG,GAAG,CAAC,EACP,GAAG,GAAG,OAAO;IAEb,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,KAAK,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AAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC;QACnE,MAAM,IAAI,gBAAgB,CACxB,gBAAgB,EAChB,GAAG,SAAS,mDAAmD,CAChE,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC,cAAc,CAAC,CAAC;AAChC,CAAC"}
package/lib/config.js CHANGED
@@ -5,6 +5,10 @@ import { confluenceConfigSchema, resolveConfluenceConfig, } from "./providers/co
5
5
  import { gitlabConfigSchema, resolveGitlabConfig, } from "./providers/gitlab/config.js";
6
6
  import { jiraConfigSchema, resolveJiraConfig, } from "./providers/jira/config.js";
7
7
  import { resolveTeamCityConfig, teamcityConfigSchema, } from "./providers/teamcity/config.js";
8
+ import { resolveTestitConfig, testitConfigSchema, } from "./providers/testit/config.js";
9
+ import { resolveWeblateConfig, weblateConfigSchema, } from "./providers/weblate/config.js";
10
+ import { credentialHelpOverridesSchema } from "./providers/shared/credential-help.js";
11
+ import { managedServiceCredentialsSchema, resolveManagedServiceCredentials, } from "./service-credentials/config.js";
8
12
  export const ConfigSchema = z.object({
9
13
  enabled: z.boolean().default(false),
10
14
  dataPath: z.string(),
@@ -16,11 +20,15 @@ export const ConfigSchema = z.object({
16
20
  allowedPortalSuffixes: z
17
21
  .array(z.string())
18
22
  .default([".bitrix24.ru", ".bitrix24.com", ".bitrix24.eu"]),
23
+ credentialHelp: credentialHelpOverridesSchema,
19
24
  bitrix24: bitrix24ConfigSchema,
20
25
  confluence: confluenceConfigSchema,
21
26
  gitlab: gitlabConfigSchema,
22
27
  teamcity: teamcityConfigSchema,
23
28
  jira: jiraConfigSchema,
29
+ testit: testitConfigSchema,
30
+ weblate: weblateConfigSchema,
31
+ managedServiceCredentials: managedServiceCredentialsSchema,
24
32
  });
25
33
  export function resolveConfig(input = {}) {
26
34
  const dshHome = process.env.DSH_HOME?.trim();
@@ -41,11 +49,15 @@ export function resolveConfig(input = {}) {
41
49
  timeoutMs: input.timeoutMs ?? 15_000,
42
50
  maxResponseBytes: input.maxResponseBytes ?? 2_000_000,
43
51
  allowedPortalSuffixes: Object.freeze(suffixes),
52
+ credentialHelp: Object.freeze({ ...input.credentialHelp }),
44
53
  bitrix24: resolveBitrix24Config(input.bitrix24),
45
54
  confluence: resolveConfluenceConfig(input.confluence),
46
55
  gitlab: resolveGitlabConfig(input.gitlab),
47
56
  teamcity: resolveTeamCityConfig(input.teamcity),
48
57
  jira: resolveJiraConfig(input.jira),
58
+ testit: resolveTestitConfig(input.testit),
59
+ weblate: resolveWeblateConfig(input.weblate),
60
+ managedServiceCredentials: resolveManagedServiceCredentials(input.managedServiceCredentials),
49
61
  });
50
62
  }
51
63
  //# sourceMappingURL=config.js.map
package/lib/config.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,CAAC,MAAM,0BAA0B,CAAC;AACzC,OAAO,EACL,oBAAoB,EACpB,qBAAqB,GAEtB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,sBAAsB,EACtB,uBAAuB,GAExB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,kBAAkB,EAClB,mBAAmB,GAEpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,gBAAgB,EAChB,iBAAiB,GAElB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,qBAAqB,EACrB,oBAAoB,GAGrB,MAAM,gCAAgC,CAAC;AA2CxC,MAAM,CAAC,MAAM,YAAY,GAA4B,CAAC,CAAC,MAAM,CAAC;IAC5D,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACnC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC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AK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;oBAJf,IAAI;QAKb,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;IACjC,CAAC;CACF;AAED,MAAM,UAAU,sBAAsB,CAAC,KAAc;IACnD,MAAM,IAAI,GACR,KAAK,YAAY,gBAAgB,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,qBAAqB,CAAC;IACzE,OAAO,IAAI,KAAK,CAAC,uCAAuC,IAAI,GAAG,CAAC,CAAC;AACnE,CAAC"}
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AA8CA,oFAAoF;AACpF,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IAE9B,IAAI;IADf,YACW,IAA0B,EACnC,OAAe,EACf,OAAsB;QAEtB,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;oBAJf,IAAI;QAKb,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;IACjC,CAAC;CACF;AAED,MAAM,UAAU,sBAAsB,CAAC,KAAc;IACnD,MAAM,IAAI,GACR,KAAK,YAAY,gBAAgB,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,qBAAqB,CAAC;IACzE,OAAO,IAAI,KAAK,CAAC,uCAAuC,IAAI,GAAG,CAAC,CAAC;AACnE,CAAC"}
package/lib/index.js CHANGED
@@ -33,33 +33,29 @@ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn,
33
33
  done = true;
34
34
  };
35
35
  import { Remote, TypertRemoteService } from "@deepseek-ai/dsh-typert-protocol";
36
- import z from "@deepseek-ai/schemastery";
37
36
  import { createHostLoggerSink, getPluginLogger, } from "@yadsh/dsh-plugin-log";
38
37
  import { IntegrationBroker } from "./broker.js";
39
38
  import { ConfigSchema, resolveConfig, } from "./config.js";
40
39
  import { IntegrationError, publicIntegrationError } from "./errors.js";
41
40
  import Bitrix24Provider from "./providers/bitrix24/index.js";
42
41
  import ConfluenceProvider from "./providers/confluence/index.js";
42
+ import { GITLAB_CI_SPLIT_CAPABILITIES, GITLAB_LEGACY_CI_CAPABILITY, } from "./providers/gitlab/catalog.js";
43
43
  import GitlabProvider from "./providers/gitlab/index.js";
44
44
  import JiraProvider from "./providers/jira/index.js";
45
45
  import { IntegrationProviderRegistry } from "./providers/registry.js";
46
46
  import TeamcityProvider from "./providers/teamcity/index.js";
47
47
  import { networkAllowsNothing } from "./providers/teamcity/config.js";
48
+ import { TEAMCITY_INSTANCE_ID } from "./providers/teamcity/catalog.js";
49
+ import TestitProvider from "./providers/testit/index.js";
50
+ import WeblateProvider from "./providers/weblate/index.js";
48
51
  import { IntegrationRepository } from "./repository.js";
49
52
  import { DockerSecretKeyProvider } from "./secrets/key-provider.js";
50
53
  import { SecretStore } from "./secrets/secret-store.js";
51
- import { QA_INTEGRATIONS_SETTINGS_NAMESPACE } from "./shared/settings.js";
52
- import { createIntegrationTools, INTEGRATION_TOOL_NAMES } from "./tools.js";
54
+ import { ServiceCredentialRegistry } from "./service-credentials/registry.js";
55
+ import { createIntegrationTools, integrationToolNames } from "./tools.js";
53
56
  export const name = "dsh-qa-integrations";
54
57
  export const inject = ["qaSurface", "tools"];
55
58
  export const Config = ConfigSchema;
56
- /**
57
- * Schema of the mount-only settings section. The Plugins tab dispatches a card
58
- * by the namespace its Host serves, so serving it is what puts the Integrations
59
- * card in "Plugin configuration"; the section itself holds nothing an operator
60
- * could edit, for the reason spelled out in `shared/settings.ts`.
61
- */
62
- const MOUNT_SECTION_SCHEMA = z.object({});
63
59
  /** What the settings client needs to render a provider it has never seen. */
64
60
  function providerSummary(provider) {
65
61
  return {
@@ -68,6 +64,7 @@ function providerSummary(provider) {
68
64
  enabled: true,
69
65
  authModes: ["token"],
70
66
  capabilities: provider.capabilities,
67
+ credentialHelp: provider.credentialHelp,
71
68
  };
72
69
  }
73
70
  /** The `.json` sibling of a `.db` path: what a deployment upgraded from. */
@@ -112,6 +109,22 @@ let QaIntegrations = (() => {
112
109
  let _testJira_decorators;
113
110
  let _patchJiraPolicy_decorators;
114
111
  let _disconnectJira_decorators;
112
+ let _testitInstances_decorators;
113
+ let _getTestit_decorators;
114
+ let _putTestitCredential_decorators;
115
+ let _testTestit_decorators;
116
+ let _patchTestitPolicy_decorators;
117
+ let _disconnectTestit_decorators;
118
+ let _weblateInstances_decorators;
119
+ let _getWeblate_decorators;
120
+ let _putWeblateCredential_decorators;
121
+ let _testWeblate_decorators;
122
+ let _patchWeblatePolicy_decorators;
123
+ let _disconnectWeblate_decorators;
124
+ let _managedServiceCredentials_decorators;
125
+ let _credentialSource_decorators;
126
+ let _serviceBoundary_decorators;
127
+ let _serviceHealth_decorators;
115
128
  return class QaIntegrations extends _classSuper {
116
129
  static {
117
130
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
@@ -147,6 +160,22 @@ let QaIntegrations = (() => {
147
160
  _testJira_decorators = [Remote("testJira")];
148
161
  _patchJiraPolicy_decorators = [Remote("patchJiraPolicy")];
149
162
  _disconnectJira_decorators = [Remote("disconnectJira")];
163
+ _testitInstances_decorators = [Remote("testitInstances")];
164
+ _getTestit_decorators = [Remote("getTestit")];
165
+ _putTestitCredential_decorators = [Remote("putTestitCredential")];
166
+ _testTestit_decorators = [Remote("testTestit")];
167
+ _patchTestitPolicy_decorators = [Remote("patchTestitPolicy")];
168
+ _disconnectTestit_decorators = [Remote("disconnectTestit")];
169
+ _weblateInstances_decorators = [Remote("weblateInstances")];
170
+ _getWeblate_decorators = [Remote("getWeblate")];
171
+ _putWeblateCredential_decorators = [Remote("putWeblateCredential")];
172
+ _testWeblate_decorators = [Remote("testWeblate")];
173
+ _patchWeblatePolicy_decorators = [Remote("patchWeblatePolicy")];
174
+ _disconnectWeblate_decorators = [Remote("disconnectWeblate")];
175
+ _managedServiceCredentials_decorators = [Remote("managedServiceCredentials")];
176
+ _credentialSource_decorators = [Remote("credentialSource")];
177
+ _serviceBoundary_decorators = [Remote("serviceBoundary")];
178
+ _serviceHealth_decorators = [Remote("serviceHealth")];
150
179
  __esDecorate(this, null, _describe_decorators, { kind: "method", name: "describe", static: false, private: false, access: { has: obj => "describe" in obj, get: obj => obj.describe }, metadata: _metadata }, null, _instanceExtraInitializers);
151
180
  __esDecorate(this, null, _providers_decorators, { kind: "method", name: "providers", static: false, private: false, access: { has: obj => "providers" in obj, get: obj => obj.providers }, metadata: _metadata }, null, _instanceExtraInitializers);
152
181
  __esDecorate(this, null, _list_decorators, { kind: "method", name: "list", static: false, private: false, access: { has: obj => "list" in obj, get: obj => obj.list }, metadata: _metadata }, null, _instanceExtraInitializers);
@@ -179,6 +208,22 @@ let QaIntegrations = (() => {
179
208
  __esDecorate(this, null, _testJira_decorators, { kind: "method", name: "testJira", static: false, private: false, access: { has: obj => "testJira" in obj, get: obj => obj.testJira }, metadata: _metadata }, null, _instanceExtraInitializers);
180
209
  __esDecorate(this, null, _patchJiraPolicy_decorators, { kind: "method", name: "patchJiraPolicy", static: false, private: false, access: { has: obj => "patchJiraPolicy" in obj, get: obj => obj.patchJiraPolicy }, metadata: _metadata }, null, _instanceExtraInitializers);
181
210
  __esDecorate(this, null, _disconnectJira_decorators, { kind: "method", name: "disconnectJira", static: false, private: false, access: { has: obj => "disconnectJira" in obj, get: obj => obj.disconnectJira }, metadata: _metadata }, null, _instanceExtraInitializers);
211
+ __esDecorate(this, null, _testitInstances_decorators, { kind: "method", name: "testitInstances", static: false, private: false, access: { has: obj => "testitInstances" in obj, get: obj => obj.testitInstances }, metadata: _metadata }, null, _instanceExtraInitializers);
212
+ __esDecorate(this, null, _getTestit_decorators, { kind: "method", name: "getTestit", static: false, private: false, access: { has: obj => "getTestit" in obj, get: obj => obj.getTestit }, metadata: _metadata }, null, _instanceExtraInitializers);
213
+ __esDecorate(this, null, _putTestitCredential_decorators, { kind: "method", name: "putTestitCredential", static: false, private: false, access: { has: obj => "putTestitCredential" in obj, get: obj => obj.putTestitCredential }, metadata: _metadata }, null, _instanceExtraInitializers);
214
+ __esDecorate(this, null, _testTestit_decorators, { kind: "method", name: "testTestit", static: false, private: false, access: { has: obj => "testTestit" in obj, get: obj => obj.testTestit }, metadata: _metadata }, null, _instanceExtraInitializers);
215
+ __esDecorate(this, null, _patchTestitPolicy_decorators, { kind: "method", name: "patchTestitPolicy", static: false, private: false, access: { has: obj => "patchTestitPolicy" in obj, get: obj => obj.patchTestitPolicy }, metadata: _metadata }, null, _instanceExtraInitializers);
216
+ __esDecorate(this, null, _disconnectTestit_decorators, { kind: "method", name: "disconnectTestit", static: false, private: false, access: { has: obj => "disconnectTestit" in obj, get: obj => obj.disconnectTestit }, metadata: _metadata }, null, _instanceExtraInitializers);
217
+ __esDecorate(this, null, _weblateInstances_decorators, { kind: "method", name: "weblateInstances", static: false, private: false, access: { has: obj => "weblateInstances" in obj, get: obj => obj.weblateInstances }, metadata: _metadata }, null, _instanceExtraInitializers);
218
+ __esDecorate(this, null, _getWeblate_decorators, { kind: "method", name: "getWeblate", static: false, private: false, access: { has: obj => "getWeblate" in obj, get: obj => obj.getWeblate }, metadata: _metadata }, null, _instanceExtraInitializers);
219
+ __esDecorate(this, null, _putWeblateCredential_decorators, { kind: "method", name: "putWeblateCredential", static: false, private: false, access: { has: obj => "putWeblateCredential" in obj, get: obj => obj.putWeblateCredential }, metadata: _metadata }, null, _instanceExtraInitializers);
220
+ __esDecorate(this, null, _testWeblate_decorators, { kind: "method", name: "testWeblate", static: false, private: false, access: { has: obj => "testWeblate" in obj, get: obj => obj.testWeblate }, metadata: _metadata }, null, _instanceExtraInitializers);
221
+ __esDecorate(this, null, _patchWeblatePolicy_decorators, { kind: "method", name: "patchWeblatePolicy", static: false, private: false, access: { has: obj => "patchWeblatePolicy" in obj, get: obj => obj.patchWeblatePolicy }, metadata: _metadata }, null, _instanceExtraInitializers);
222
+ __esDecorate(this, null, _disconnectWeblate_decorators, { kind: "method", name: "disconnectWeblate", static: false, private: false, access: { has: obj => "disconnectWeblate" in obj, get: obj => obj.disconnectWeblate }, metadata: _metadata }, null, _instanceExtraInitializers);
223
+ __esDecorate(this, null, _managedServiceCredentials_decorators, { kind: "method", name: "managedServiceCredentials", static: false, private: false, access: { has: obj => "managedServiceCredentials" in obj, get: obj => obj.managedServiceCredentials }, metadata: _metadata }, null, _instanceExtraInitializers);
224
+ __esDecorate(this, null, _credentialSource_decorators, { kind: "method", name: "credentialSource", static: false, private: false, access: { has: obj => "credentialSource" in obj, get: obj => obj.credentialSource }, metadata: _metadata }, null, _instanceExtraInitializers);
225
+ __esDecorate(this, null, _serviceBoundary_decorators, { kind: "method", name: "serviceBoundary", static: false, private: false, access: { has: obj => "serviceBoundary" in obj, get: obj => obj.serviceBoundary }, metadata: _metadata }, null, _instanceExtraInitializers);
226
+ __esDecorate(this, null, _serviceHealth_decorators, { kind: "method", name: "serviceHealth", static: false, private: false, access: { has: obj => "serviceHealth" in obj, get: obj => obj.serviceHealth }, metadata: _metadata }, null, _instanceExtraInitializers);
182
227
  if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
183
228
  }
184
229
  static inject = inject;
@@ -186,6 +231,11 @@ let QaIntegrations = (() => {
186
231
  broker = __runInitializers(this, _instanceExtraInitializers);
187
232
  logger;
188
233
  enabled;
234
+ /** Providers by id; the service-credential registry resolves through them. */
235
+ providerRegistry;
236
+ /** Absent unless the deployment configured managed service credentials. */
237
+ serviceCredentials;
238
+ defaultForNewConnections;
189
239
  providerSummaries;
190
240
  configuredInstances;
191
241
  /** The Confluence sites this deployment dials, for the connect form. */
@@ -194,6 +244,10 @@ let QaIntegrations = (() => {
194
244
  configuredJiraSites;
195
245
  /** The TeamCity server this deployment dials, or null when it mounts none. */
196
246
  configuredServer;
247
+ /** The Test IT installations this deployment allows, in config order. */
248
+ configuredTestitInstances;
249
+ /** The Weblate instances this deployment allows, in config order. */
250
+ configuredWeblateInstances;
197
251
  constructor(ctx, rawConfig = {}) {
198
252
  super(ctx, "qaIntegrations", { namespace: "qaIntegrations" });
199
253
  const config = resolveConfig(rawConfig);
@@ -208,6 +262,12 @@ let QaIntegrations = (() => {
208
262
  // A deployment upgrading from the JSON store keeps its connections: the
209
263
  // file is imported, verified and renamed aside before the broker serves.
210
264
  repository.importLegacyFile(legacySiblingOf(config.dataPath));
265
+ // A provider that split one capability into two names the pair here; the
266
+ // store stays provider-agnostic and the composition root is where the
267
+ // knowledge of a provider belongs.
268
+ repository.expandCapabilities({
269
+ [GITLAB_LEGACY_CI_CAPABILITY]: GITLAB_CI_SPLIT_CAPABILITIES,
270
+ });
211
271
  const secrets = new SecretStore(new DockerSecretKeyProvider(config.masterKeyPath, config.masterKeyVersion));
212
272
  const providers = new IntegrationProviderRegistry();
213
273
  if (config.bitrix24.enabled) {
@@ -225,6 +285,32 @@ let QaIntegrations = (() => {
225
285
  if (config.jira.enabled) {
226
286
  providers.register(new JiraProvider(config));
227
287
  }
288
+ if (config.testit.enabled) {
289
+ providers.register(new TestitProvider(config));
290
+ }
291
+ if (config.weblate.enabled) {
292
+ providers.register(new WeblateProvider(config));
293
+ }
294
+ this.providerRegistry = providers;
295
+ this.defaultForNewConnections =
296
+ config.managedServiceCredentials.defaultForNewConnections;
297
+ // Profiles are resolved to a portal here, at load: deployment configuration
298
+ // that names a provider instance nobody configured fails loudly instead of
299
+ // leaving users with a checkbox that cannot work.
300
+ this.serviceCredentials = config.managedServiceCredentials.enabled
301
+ ? new ServiceCredentialRegistry(config.managedServiceCredentials, (providerId, instanceId) => {
302
+ const provider = providers.find(providerId);
303
+ if (provider === undefined) {
304
+ throw new Error(`qa-integrations managed service credentials: a profile names provider "${providerId}", which this deployment does not enable`);
305
+ }
306
+ try {
307
+ return provider.instancePortal?.(instanceId);
308
+ }
309
+ catch {
310
+ return undefined;
311
+ }
312
+ })
313
+ : undefined;
228
314
  this.providerSummaries = this.enabled
229
315
  ? providers.list().map(providerSummary)
230
316
  : [];
@@ -233,6 +319,7 @@ let QaIntegrations = (() => {
233
319
  id: instance.id,
234
320
  label: instance.label,
235
321
  baseUrl: instance.baseUrl,
322
+ service: this.serviceBinding("confluence", instance.id),
236
323
  }))
237
324
  : [];
238
325
  this.configuredInstances = config.gitlab.enabled
@@ -240,6 +327,7 @@ let QaIntegrations = (() => {
240
327
  id: instance.id,
241
328
  label: instance.label,
242
329
  baseUrl: instance.baseUrl,
330
+ service: this.serviceBinding("gitlab", instance.id),
243
331
  }))
244
332
  : [];
245
333
  this.configuredJiraSites = config.jira.enabled
@@ -247,38 +335,60 @@ let QaIntegrations = (() => {
247
335
  id: site.id,
248
336
  label: site.label,
249
337
  baseUrl: site.baseUrl,
338
+ service: this.serviceBinding("jira", site.id),
339
+ }))
340
+ : [];
341
+ this.configuredTestitInstances = config.testit.enabled
342
+ ? config.testit.instances.map((instance) => ({
343
+ id: instance.id,
344
+ label: instance.label,
345
+ baseUrl: instance.baseUrl,
346
+ service: this.serviceBinding("testit", instance.id),
250
347
  }))
251
348
  : [];
252
349
  this.configuredServer =
253
350
  config.teamcity.enabled && config.teamcity.serverUrl !== ""
254
351
  ? {
255
- id: "teamcity",
352
+ id: TEAMCITY_INSTANCE_ID,
256
353
  label: new URL(config.teamcity.serverUrl).host,
257
354
  baseUrl: config.teamcity.serverUrl,
355
+ service: this.serviceBinding("teamcity", TEAMCITY_INSTANCE_ID),
258
356
  }
259
357
  : null;
260
- this.broker = new IntegrationBroker(repository, secrets, providers, this.logger);
261
- // Serving the namespace is what lets the browser half mount its card; the
262
- // section carries no editable value and therefore no live source.
263
- ctx.inject(["settings"], (settingsCtx) => {
264
- settingsCtx.settings.installSection(ctx, QA_INTEGRATIONS_SETTINGS_NAMESPACE, MOUNT_SECTION_SCHEMA, {}, { setSource: () => undefined, onChange: () => undefined });
358
+ this.configuredWeblateInstances = config.weblate.enabled
359
+ ? config.weblate.instances.map((instance) => ({
360
+ id: instance.id,
361
+ label: instance.label,
362
+ baseUrl: instance.baseUrl,
363
+ service: this.serviceBinding("weblate", instance.id),
364
+ }))
365
+ : [];
366
+ this.broker = new IntegrationBroker(repository, secrets, providers, this.logger, {
367
+ serviceCredentials: this.serviceCredentials,
368
+ defaultForNewConnections: this.defaultForNewConnections,
265
369
  });
266
370
  if (config.enabled) {
267
- const removeAdmission = ctx.qaSurface.registerPrincipalScopedTools(INTEGRATION_TOOL_NAMES);
371
+ const toolOptions = {
372
+ bitrix24CrmCommentWrite: config.bitrix24.crmCommentWrite,
373
+ };
374
+ const toolNames = integrationToolNames(toolOptions);
375
+ const removeAdmission = ctx.qaSurface.registerPrincipalScopedTools(toolNames);
268
376
  const removers = createIntegrationTools({
269
377
  broker: this.broker,
270
378
  principalForSession: (sessionId) => ctx.qaSurface.principalForSession(sessionId),
379
+ ...toolOptions,
271
380
  }).map((definition) => ctx.tools.register(definition));
272
381
  ctx.effect(() => () => {
273
382
  for (const remove of removers.reverse())
274
383
  remove();
275
384
  removeAdmission();
276
385
  }, "dsh-qa-integrations.tools");
386
+ this.logger.info("plugin.ready", { tools: [...toolNames] });
387
+ }
388
+ else {
389
+ this.logger.info("plugin.disabled", { tools: [] });
277
390
  }
278
391
  ctx.effect(() => async () => this.logger.close(), "dsh-qa-integrations.logger");
279
- this.logger.info(config.enabled ? "plugin.ready" : "plugin.disabled", {
280
- tools: config.enabled ? [...INTEGRATION_TOOL_NAMES] : [],
281
- });
282
392
  if (config.teamcity.enabled &&
283
393
  networkAllowsNothing(config.teamcity.network)) {
284
394
  // A TeamCity deployment whose address policy is empty refuses every
@@ -287,6 +397,17 @@ let QaIntegrations = (() => {
287
397
  hint: "set teamcity.network.allowedHosts or network.allowedCidrs",
288
398
  });
289
399
  }
400
+ for (const provider of providers.list()) {
401
+ for (const problem of provider.credentialHelpProblems ?? []) {
402
+ // A help address the deployment got wrong hides its own link and is
403
+ // reported here: the credential field keeps working, which is why this
404
+ // is a warning and not a load failure.
405
+ this.logger.warn("credential-help.override", {
406
+ provider: provider.id,
407
+ problem,
408
+ });
409
+ }
410
+ }
290
411
  }
291
412
  describe() {
292
413
  return {
@@ -330,7 +451,7 @@ let QaIntegrations = (() => {
330
451
  return this.runAsync(token, (principal) => this.broker.connect(principal, "gitlab", {
331
452
  token: input.token,
332
453
  options: { instanceId: input.instanceId },
333
- }));
454
+ }, { useServiceCredential: input.useServiceCredential }));
334
455
  }
335
456
  async testGitlab(token) {
336
457
  return this.runAsync(token, (principal) => this.broker.validate(principal, "gitlab"));
@@ -382,7 +503,7 @@ let QaIntegrations = (() => {
382
503
  * every call.
383
504
  */
384
505
  async putTeamcityCredential(token, input) {
385
- return this.runAsync(token, (principal) => this.broker.connect(principal, "teamcity", { token: input.token }));
506
+ return this.runAsync(token, (principal) => this.broker.connect(principal, "teamcity", { token: input.token }, { useServiceCredential: input.useServiceCredential }));
386
507
  }
387
508
  /**
388
509
  * The address the connect form shows next to the token field, or null when
@@ -429,6 +550,111 @@ let QaIntegrations = (() => {
429
550
  disconnectJira(token) {
430
551
  return this.run(token, (principal) => this.broker.disconnect(principal, "jira"));
431
552
  }
553
+ /**
554
+ * Installations this deployment allows. Like the GitLab instance list, the
555
+ * connect form picks from it and never takes a hostname: the Test IT address a
556
+ * token is spent against is operator configuration.
557
+ */
558
+ testitInstances(token) {
559
+ return this.run(token, () => this.configuredTestitInstances);
560
+ }
561
+ getTestit(token) {
562
+ return this.run(token, (principal) => this.broker.summary(principal, "testit"));
563
+ }
564
+ async putTestitCredential(token, input) {
565
+ return this.runAsync(token, (principal) => this.broker.connect(principal, "testit", {
566
+ token: input.token,
567
+ options: { instanceId: input.instanceId },
568
+ }));
569
+ }
570
+ async testTestit(token) {
571
+ return this.runAsync(token, (principal) => this.broker.validate(principal, "testit"));
572
+ }
573
+ patchTestitPolicy(token, patch) {
574
+ return this.run(token, (principal) => this.broker.patchPolicy(principal, "testit", patch));
575
+ }
576
+ disconnectTestit(token) {
577
+ return this.run(token, (principal) => this.broker.disconnect(principal, "testit"));
578
+ }
579
+ /**
580
+ * Instances this deployment allows. The connect form picks from this list and
581
+ * never takes a hostname, which is what keeps the broker from being pointed at
582
+ * an origin the operator did not configure.
583
+ */
584
+ weblateInstances(token) {
585
+ return this.run(token, () => this.configuredWeblateInstances);
586
+ }
587
+ getWeblate(token) {
588
+ return this.run(token, (principal) => this.broker.summary(principal, "weblate"));
589
+ }
590
+ async putWeblateCredential(token, input) {
591
+ return this.runAsync(token, (principal) => this.broker.connect(principal, "weblate", {
592
+ token: input.token,
593
+ options: { instanceId: input.instanceId },
594
+ }));
595
+ }
596
+ async testWeblate(token) {
597
+ return this.runAsync(token, (principal) => this.broker.validate(principal, "weblate"));
598
+ }
599
+ patchWeblatePolicy(token, patch) {
600
+ return this.run(token, (principal) => this.broker.patchPolicy(principal, "weblate", patch));
601
+ }
602
+ disconnectWeblate(token) {
603
+ return this.run(token, (principal) => this.broker.disconnect(principal, "weblate"));
604
+ }
605
+ /**
606
+ * Whether this deployment offers managed service credentials at all, and
607
+ * whether a new connection starts on one. Token-gated like every other card
608
+ * call: the answer describes the deployment, not the caller.
609
+ */
610
+ managedServiceCredentials(token) {
611
+ return this.run(token, () => ({
612
+ enabled: this.serviceCredentials !== undefined,
613
+ defaultForNewConnections: this.defaultForNewConnections,
614
+ }));
615
+ }
616
+ /**
617
+ * Switch one provider of the calling principal between their own credential
618
+ * and the deployment's. The provider id is validated against the registry, and
619
+ * the profile is resolved server-side, so no caller can name a credential.
620
+ */
621
+ async credentialSource(token, input) {
622
+ return this.runAsync(token, (principal) => this.broker.setCredentialSource(principal, input.provider, input.source));
623
+ }
624
+ /**
625
+ * Narrow what this connection may read inside the profile's allowlist. A
626
+ * selection outside that allowlist is dropped rather than stored, so this can
627
+ * only ever remove.
628
+ */
629
+ serviceBoundary(token, input) {
630
+ return this.run(token, (principal) => this.broker.setServiceSelection(principal, input.provider, input.selection));
631
+ }
632
+ /**
633
+ * Probe the managed credential of one provider instance. Answers a health
634
+ * status, never the secret and never the upstream identity it carries.
635
+ */
636
+ serviceHealth(token, input) {
637
+ return this.runAsync(token, () => this.broker.serviceCredentialHealth(input.provider, input.instanceId));
638
+ }
639
+ /** The safe alias of the managed credential bound to one instance, if any. */
640
+ serviceBinding(providerId, instanceId) {
641
+ const registry = this.serviceCredentials;
642
+ if (registry === undefined)
643
+ return null;
644
+ let portal;
645
+ try {
646
+ portal = this.providerRegistry
647
+ .find(providerId)
648
+ ?.instancePortal?.(instanceId);
649
+ }
650
+ catch {
651
+ return null;
652
+ }
653
+ if (portal === undefined || portal === "")
654
+ return null;
655
+ const profile = registry.find(providerId, portal);
656
+ return profile?.enabled === true ? { label: profile.label } : null;
657
+ }
432
658
  requirePrincipal(token) {
433
659
  if (!this.enabled) {
434
660
  throw new IntegrationError("ProviderUnavailable", "QA integrations are disabled");
@@ -460,14 +686,20 @@ let QaIntegrations = (() => {
460
686
  export { QaIntegrations };
461
687
  export { IntegrationBroker } from "./broker.js";
462
688
  export { ConfigSchema, resolveConfig, } from "./config.js";
689
+ export { MANAGED_SERVICE_CREDENTIALS_DEFAULTS, managedServiceCredentialsSchema, resolveManagedServiceCredentials, } from "./service-credentials/config.js";
690
+ export { evaluateServiceOperation, narrowBoundary, SERVICE_CEILING, } from "./service-credentials/policy.js";
691
+ export { ServiceCredentialRegistry } from "./service-credentials/registry.js";
692
+ export { operationCapabilityServiceState } from "./service-credentials/state.js";
693
+ export { profilePolicyRevision } from "./service-credentials/config.js";
694
+ export { CREDENTIAL_SOURCES, isCredentialSource, UNCLASSIFIED_OPERATION, } from "./service-credentials/types.js";
463
695
  export { IntegrationError } from "./errors.js";
464
696
  export { BITRIX_CAPABILITIES, BITRIX_OPERATIONS, BITRIX24_CAPABILITY_INFO, bitrix24OperationCapability, enabledCapabilities, } from "./providers/bitrix24/catalog.js";
465
697
  export { BITRIX24_DEFAULTS, bitrix24ConfigSchema, resolveBitrix24Config, } from "./providers/bitrix24/config.js";
466
698
  export { Bitrix24Provider, parseBitrixWebhook, } from "./providers/bitrix24/index.js";
467
699
  export { BITRIX_HANDLERS, BITRIX_PROJECTIONS, } from "./providers/bitrix24/operations.js";
468
700
  export { createBitrix24Tools, BITRIX24_TOOL_NAMES, } from "./providers/bitrix24/tools.js";
469
- export { GitlabProvider } from "./providers/gitlab/index.js";
470
- export { GITLAB_CAPABILITIES, GITLAB_CAPABILITY_INFO, GITLAB_OPERATIONS, capabilitiesForScopes, gitlabOperationCapability, } from "./providers/gitlab/catalog.js";
701
+ export { GitlabProvider, groupAllowed as gitlabGroupAllowed, projectAllowed as gitlabProjectAllowed, } from "./providers/gitlab/index.js";
702
+ export { GITLAB_CAPABILITIES, GITLAB_CAPABILITY_INFO, GITLAB_CI_SPLIT_CAPABILITIES, GITLAB_LEGACY_CI_CAPABILITY, GITLAB_OPERATIONS, GITLAB_RESOURCE_KIND, capabilitiesForScopes, gitlabOperationCapability, gitlabOperationMetadata, } from "./providers/gitlab/catalog.js";
471
703
  export { GITLAB_DEFAULTS, gitlabConfigSchema, resolveGitlabConfig, } from "./providers/gitlab/config.js";
472
704
  export { createGitlabTools, GITLAB_TOOL_NAMES, } from "./providers/gitlab/tools.js";
473
705
  export { GitlabTransport, credentialFromPlaintext as gitlabCredentialFromPlaintext, credentialInstance, } from "./providers/gitlab/transport.js";
@@ -480,8 +712,8 @@ export { buildCql, cqlLiteral, CONTENT_TYPES, ORDER_BY, } from "./providers/conf
480
712
  export { COMMENT_KINDS, CONFLUENCE_HANDLERS, CONFLUENCE_PROJECTIONS, DEFAULT_LIMIT, bodyLimit, commentChildrenPath, commentCollections, commentKind, commentPath, commentReplies, isNumericSpace, modifiedAfterDate, numericId, offsetCursor, pageLimit, plainExcerpt, spaceRef, upstreamCursor, } from "./providers/confluence/operations.js";
481
713
  export { createConfluenceTools, CONFLUENCE_TOOL_NAMES, } from "./providers/confluence/tools.js";
482
714
  export { ConfluenceTransport, credentialFromPlaintext as confluenceCredentialFromPlaintext, credentialInstance as confluenceCredentialInstance, } from "./providers/confluence/transport.js";
483
- export { TeamcityProvider } from "./providers/teamcity/index.js";
484
- export { TEAMCITY_CAPABILITIES, TEAMCITY_CAPABILITY_INFO, TEAMCITY_OPERATIONS, TEAMCITY_STREAM_OPERATIONS, enabledCapabilities as enabledTeamcityCapabilities, teamcityOperationCapability, } from "./providers/teamcity/catalog.js";
715
+ export { TeamcityProvider, buildTypeAllowed as teamcityBuildTypeAllowed, projectAllowed as teamcityProjectAllowed, } from "./providers/teamcity/index.js";
716
+ export { TEAMCITY_CAPABILITIES, TEAMCITY_CAPABILITY_INFO, TEAMCITY_INSTANCE_ID, TEAMCITY_OPERATIONS, TEAMCITY_RESOURCE_KIND, TEAMCITY_STREAM_OPERATIONS, enabledCapabilities as enabledTeamcityCapabilities, teamcityOperationCapability, teamcityOperationMetadata, } from "./providers/teamcity/catalog.js";
485
717
  export { TEAMCITY_DEFAULTS, DEFAULT_LOG_LINES, resolveTeamCityConfig, teamcityConfigSchema, } from "./providers/teamcity/config.js";
486
718
  export { artifactBinaryProblem, artifactByteLimit, artifactPath, textArtifact, } from "./providers/teamcity/artifacts.js";
487
719
  export { LOG_MODES, logLines, logMode, sanitizeLog, selectLogWindow, trimToBytes, } from "./providers/teamcity/logs.js";
@@ -498,13 +730,27 @@ export { buildJql, commentLimit, commentStart, issueKey as jiraIssueKey, jqlDate
498
730
  export { ISSUE_INCLUDES, JIRA_HANDLERS, JIRA_PROJECTIONS, SEARCH_FIELDS as JIRA_SEARCH_FIELDS, customFieldValue, issueFields, issueUrl, requestedIncludes, wantsFieldNames, } from "./providers/jira/operations.js";
499
731
  export { JiraTransport, basicAuthorization, credentialFromPlaintext as jiraCredentialFromPlaintext, credentialSite, } from "./providers/jira/transport.js";
500
732
  export { createJiraTools, JIRA_TOOL_NAMES } from "./providers/jira/tools.js";
733
+ export { TestitProvider } from "./providers/testit/index.js";
734
+ export { TESTIT_CAPABILITIES, TESTIT_CAPABILITY_INFO, TESTIT_OPERATIONS, enabledCapabilities as enabledTestitCapabilities, testitOperationCapability, } from "./providers/testit/catalog.js";
735
+ export { TESTIT_DEFAULTS, resolveTestitConfig, testitConfigSchema, testitInstance, } from "./providers/testit/config.js";
736
+ export { assertReadableSize, attachmentBinaryProblem, attachmentByteLimit, attachmentExtension, attachmentName, } from "./providers/testit/attachments.js";
737
+ export { RESULT_OUTCOMES, TESTIT_HANDLERS, TESTIT_LIMITS, TESTIT_PROJECTIONS, TEST_RUN_STATES, WORK_ITEM_ENTITY_TYPES, WORK_ITEM_PRIORITIES, WORK_ITEM_STATES, bounded as testitBounded, capped, contentBlock as testitContentBlock, listLimit as testitListLimit, listOffset as testitListOffset, paged, } from "./providers/testit/operations.js";
738
+ export { TestitTransport, credentialFromPlaintext as testitCredentialFromPlaintext, credentialInstance as testitCredentialInstance, } from "./providers/testit/transport.js";
739
+ export { createTestitTools, TESTIT_TOOL_NAMES, } from "./providers/testit/tools.js";
740
+ export { WeblateProvider } from "./providers/weblate/index.js";
741
+ export { WEBLATE_CAPABILITIES, WEBLATE_CAPABILITY_INFO, WEBLATE_OPERATIONS, enabledCapabilities as weblateEnabledCapabilities, weblateOperationCapability, } from "./providers/weblate/catalog.js";
742
+ export { WEBLATE_DEFAULTS, resolveWeblateConfig, weblateConfigSchema, weblateInstance, } from "./providers/weblate/config.js";
743
+ export { WEBLATE_HANDLERS, WEBLATE_PROJECTIONS, WEBLATE_UNTRUSTED_OPERATIONS, accountFromUsers, componentRef, projectRef as weblateProjectRef, sameOriginUrl, translationRef as weblateTranslationRef, unitState as weblateUnitState, } from "./providers/weblate/operations.js";
744
+ export { FAILING_CHECK_CLAUSE, UNIT_STATE_FILTERS, UNIT_TEXT_FIELDS, buildUnitQuery, exactClause as weblateExactClause, quoteQueryValue, stateClause as weblateStateClause, textClause as weblateTextClause, } from "./providers/weblate/query.js";
745
+ export { WeblateTransport, credentialFromPlaintext as weblateCredentialFromPlaintext, credentialInstance as weblateCredentialInstance, resultsOf, } from "./providers/weblate/transport.js";
746
+ export { createWeblateTools, WEBLATE_TOOL_NAMES, } from "./providers/weblate/tools.js";
501
747
  export { IntegrationProviderRegistry } from "./providers/registry.js";
748
+ export { serviceBoundaryOf, serviceResourceDenied, } from "./providers/shared/service-boundary.js";
502
749
  export { IntegrationRepository } from "./repository.js";
503
750
  export { DockerSecretKeyProvider, MemoryKeyProvider, } from "./secrets/key-provider.js";
504
751
  export { SecretStore } from "./secrets/secret-store.js";
505
- export { QA_INTEGRATIONS_SETTINGS_NAMESPACE } from "./shared/settings.js";
506
752
  export { createToolKit } from "./tool-kit.js";
507
- export { createIntegrationTools, INTEGRATION_TOOL_NAMES } from "./tools.js";
753
+ export { createIntegrationTools, INTEGRATION_TOOL_NAMES, integrationToolNames, } from "./tools.js";
508
754
  export { BitrixTransport, credentialFromPlaintext, } from "./providers/bitrix24/transport.js";
509
755
  export default QaIntegrations;
510
756
  //# sourceMappingURL=index.js.map