@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/client.js CHANGED
@@ -911,6 +911,7 @@ window.__ModuleLoader__.load({
911
911
  };
912
912
  const number = /^-?\d+(?:\.\d+)?$/;
913
913
  const boolean$1 = /^(?:true|false)$/i;
914
+ const _undefined$2 = /^undefined$/i;
914
915
  const lowercase = /^[^A-Z]*$/;
915
916
  const uppercase = /^[^a-z]*$/;
916
917
  //#endregion
@@ -1608,6 +1609,22 @@ window.__ModuleLoader__.load({
1608
1609
  return payload;
1609
1610
  };
1610
1611
  });
1612
+ const $ZodUndefined = /*@__PURE__*/ $constructor("$ZodUndefined", (inst, def) => {
1613
+ $ZodType.init(inst, def);
1614
+ inst._zod.pattern = _undefined$2;
1615
+ inst._zod.values = /* @__PURE__ */ new Set([void 0]);
1616
+ inst._zod.parse = (payload, _ctx) => {
1617
+ const input = payload.value;
1618
+ if (typeof input === "undefined") return payload;
1619
+ payload.issues.push({
1620
+ expected: "undefined",
1621
+ code: "invalid_type",
1622
+ input,
1623
+ inst
1624
+ });
1625
+ return payload;
1626
+ };
1627
+ });
1611
1628
  const $ZodUnknown = /*@__PURE__*/ $constructor("$ZodUnknown", (inst, def) => {
1612
1629
  $ZodType.init(inst, def);
1613
1630
  inst._zod.parse = (payload) => payload;
@@ -3056,6 +3073,13 @@ window.__ModuleLoader__.load({
3056
3073
  });
3057
3074
  }
3058
3075
  // @__NO_SIDE_EFFECTS__
3076
+ function _undefined$1(Class, params) {
3077
+ return new Class({
3078
+ type: "undefined",
3079
+ ...normalizeParams(params)
3080
+ });
3081
+ }
3082
+ // @__NO_SIDE_EFFECTS__
3059
3083
  function _unknown(Class) {
3060
3084
  return new Class({ type: "unknown" });
3061
3085
  }
@@ -3692,6 +3716,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
3692
3716
  const booleanProcessor = (_schema, _ctx, json, _params) => {
3693
3717
  json.type = "boolean";
3694
3718
  };
3719
+ const undefinedProcessor = (schema, ctx, json, params) => {
3720
+ handleUnrepresentable(schema, ctx, json, params, "Undefined cannot be represented in JSON Schema");
3721
+ };
3695
3722
  const neverProcessor = (_schema, _ctx, json, _params) => {
3696
3723
  json.not = {};
3697
3724
  };
@@ -4425,6 +4452,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4425
4452
  function boolean(params) {
4426
4453
  return /* @__PURE__ */ _boolean(ZodBoolean, params);
4427
4454
  }
4455
+ const ZodUndefined = /*@__PURE__*/ $constructor("ZodUndefined", (inst, def) => {
4456
+ $ZodUndefined.init(inst, def);
4457
+ ZodType.init(inst, def);
4458
+ inst._zod.processJSONSchema = (ctx, json, params) => undefinedProcessor(inst, ctx, json, params);
4459
+ });
4460
+ function _undefined(params) {
4461
+ return /* @__PURE__ */ _undefined$1(ZodUndefined, params);
4462
+ }
4428
4463
  const ZodUnknown = /*@__PURE__*/ $constructor("ZodUnknown", (inst, def) => {
4429
4464
  $ZodUnknown.init(inst, def);
4430
4465
  ZodType.init(inst, def);
@@ -4812,8 +4847,56 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4812
4847
  const _yadsh_dsh_qa_integrations_qaIntegrations_confluenceSites_result$schema = array(object({
4813
4848
  "id": string().readonly(),
4814
4849
  "label": string().readonly(),
4815
- "baseUrl": string().readonly()
4850
+ "baseUrl": string().readonly(),
4851
+ "service": union([literal(null), object({ "label": string().readonly() })]).readonly()
4816
4852
  }));
4853
+ const _yadsh_dsh_qa_integrations_qaIntegrations_credentialSource_parameter_0$schema = string();
4854
+ const _yadsh_dsh_qa_integrations_qaIntegrations_credentialSource_parameter_1$schema = object({
4855
+ "provider": string().readonly(),
4856
+ "source": union([literal("personal"), literal("service")]).readonly()
4857
+ });
4858
+ const _yadsh_dsh_qa_integrations_qaIntegrations_credentialSource_result$schema = object({
4859
+ "provider": string().readonly(),
4860
+ "displayName": string().readonly(),
4861
+ "status": union([
4862
+ literal("pending"),
4863
+ literal("connected"),
4864
+ literal("error"),
4865
+ literal("revoked"),
4866
+ literal("not_connected")
4867
+ ]).readonly(),
4868
+ "portal": union([literal(null), string()]).readonly(),
4869
+ "externalAccountName": union([literal(null), string()]).readonly(),
4870
+ "credentialConfigured": boolean().readonly(),
4871
+ "credentialUpdatedAt": union([literal(null), string()]).readonly(),
4872
+ "capabilities": array(string()).readonly(),
4873
+ "capabilityInfo": record(string(), object({
4874
+ "label": string().readonly(),
4875
+ "hint": string().readonly()
4876
+ })).readonly().readonly(),
4877
+ "policy": array(object({
4878
+ "capability": string().readonly(),
4879
+ "mode": union([
4880
+ literal("allow"),
4881
+ literal("confirm"),
4882
+ literal("deny")
4883
+ ]).readonly()
4884
+ })).readonly(),
4885
+ "lastValidatedAt": union([literal(null), string()]).readonly(),
4886
+ "errorCode": union([literal(null), string()]).readonly(),
4887
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
4888
+ "service": union([literal(null), object({
4889
+ "available": boolean().readonly(),
4890
+ "label": union([literal(null), string()]).readonly(),
4891
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
4892
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
4893
+ "capabilities": record(string(), union([
4894
+ literal("available"),
4895
+ literal("sensitive"),
4896
+ literal("unavailable")
4897
+ ])).readonly().readonly()
4898
+ })]).readonly()
4899
+ });
4817
4900
  const _yadsh_dsh_qa_integrations_qaIntegrations_describe_result$schema = object({
4818
4901
  "enabled": boolean().readonly(),
4819
4902
  "providers": array(string()).readonly()
@@ -4828,6 +4911,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4828
4911
  const _yadsh_dsh_qa_integrations_qaIntegrations_disconnectJira_result$schema = boolean();
4829
4912
  const _yadsh_dsh_qa_integrations_qaIntegrations_disconnectTeamcity_parameter_0$schema = string();
4830
4913
  const _yadsh_dsh_qa_integrations_qaIntegrations_disconnectTeamcity_result$schema = boolean();
4914
+ const _yadsh_dsh_qa_integrations_qaIntegrations_disconnectTestit_parameter_0$schema = string();
4915
+ const _yadsh_dsh_qa_integrations_qaIntegrations_disconnectTestit_result$schema = boolean();
4916
+ const _yadsh_dsh_qa_integrations_qaIntegrations_disconnectWeblate_parameter_0$schema = string();
4917
+ const _yadsh_dsh_qa_integrations_qaIntegrations_disconnectWeblate_result$schema = boolean();
4831
4918
  const _yadsh_dsh_qa_integrations_qaIntegrations_getBitrix24_parameter_0$schema = string();
4832
4919
  const _yadsh_dsh_qa_integrations_qaIntegrations_getBitrix24_result$schema = object({
4833
4920
  "provider": string().readonly(),
@@ -4857,7 +4944,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4857
4944
  ]).readonly()
4858
4945
  })).readonly(),
4859
4946
  "lastValidatedAt": union([literal(null), string()]).readonly(),
4860
- "errorCode": union([literal(null), string()]).readonly()
4947
+ "errorCode": union([literal(null), string()]).readonly(),
4948
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
4949
+ "service": union([literal(null), object({
4950
+ "available": boolean().readonly(),
4951
+ "label": union([literal(null), string()]).readonly(),
4952
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
4953
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
4954
+ "capabilities": record(string(), union([
4955
+ literal("available"),
4956
+ literal("sensitive"),
4957
+ literal("unavailable")
4958
+ ])).readonly().readonly()
4959
+ })]).readonly()
4861
4960
  });
4862
4961
  const _yadsh_dsh_qa_integrations_qaIntegrations_getConfluence_parameter_0$schema = string();
4863
4962
  const _yadsh_dsh_qa_integrations_qaIntegrations_getConfluence_result$schema = object({
@@ -4888,7 +4987,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4888
4987
  ]).readonly()
4889
4988
  })).readonly(),
4890
4989
  "lastValidatedAt": union([literal(null), string()]).readonly(),
4891
- "errorCode": union([literal(null), string()]).readonly()
4990
+ "errorCode": union([literal(null), string()]).readonly(),
4991
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
4992
+ "service": union([literal(null), object({
4993
+ "available": boolean().readonly(),
4994
+ "label": union([literal(null), string()]).readonly(),
4995
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
4996
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
4997
+ "capabilities": record(string(), union([
4998
+ literal("available"),
4999
+ literal("sensitive"),
5000
+ literal("unavailable")
5001
+ ])).readonly().readonly()
5002
+ })]).readonly()
4892
5003
  });
4893
5004
  const _yadsh_dsh_qa_integrations_qaIntegrations_getGitlab_parameter_0$schema = string();
4894
5005
  const _yadsh_dsh_qa_integrations_qaIntegrations_getGitlab_result$schema = object({
@@ -4919,7 +5030,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4919
5030
  ]).readonly()
4920
5031
  })).readonly(),
4921
5032
  "lastValidatedAt": union([literal(null), string()]).readonly(),
4922
- "errorCode": union([literal(null), string()]).readonly()
5033
+ "errorCode": union([literal(null), string()]).readonly(),
5034
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
5035
+ "service": union([literal(null), object({
5036
+ "available": boolean().readonly(),
5037
+ "label": union([literal(null), string()]).readonly(),
5038
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5039
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5040
+ "capabilities": record(string(), union([
5041
+ literal("available"),
5042
+ literal("sensitive"),
5043
+ literal("unavailable")
5044
+ ])).readonly().readonly()
5045
+ })]).readonly()
4923
5046
  });
4924
5047
  const _yadsh_dsh_qa_integrations_qaIntegrations_getJira_parameter_0$schema = string();
4925
5048
  const _yadsh_dsh_qa_integrations_qaIntegrations_getJira_result$schema = object({
@@ -4950,7 +5073,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4950
5073
  ]).readonly()
4951
5074
  })).readonly(),
4952
5075
  "lastValidatedAt": union([literal(null), string()]).readonly(),
4953
- "errorCode": union([literal(null), string()]).readonly()
5076
+ "errorCode": union([literal(null), string()]).readonly(),
5077
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
5078
+ "service": union([literal(null), object({
5079
+ "available": boolean().readonly(),
5080
+ "label": union([literal(null), string()]).readonly(),
5081
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5082
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5083
+ "capabilities": record(string(), union([
5084
+ literal("available"),
5085
+ literal("sensitive"),
5086
+ literal("unavailable")
5087
+ ])).readonly().readonly()
5088
+ })]).readonly()
4954
5089
  });
4955
5090
  const _yadsh_dsh_qa_integrations_qaIntegrations_getTeamcity_parameter_0$schema = string();
4956
5091
  const _yadsh_dsh_qa_integrations_qaIntegrations_getTeamcity_result$schema = object({
@@ -4981,19 +5116,119 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4981
5116
  ]).readonly()
4982
5117
  })).readonly(),
4983
5118
  "lastValidatedAt": union([literal(null), string()]).readonly(),
4984
- "errorCode": union([literal(null), string()]).readonly()
5119
+ "errorCode": union([literal(null), string()]).readonly(),
5120
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
5121
+ "service": union([literal(null), object({
5122
+ "available": boolean().readonly(),
5123
+ "label": union([literal(null), string()]).readonly(),
5124
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5125
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5126
+ "capabilities": record(string(), union([
5127
+ literal("available"),
5128
+ literal("sensitive"),
5129
+ literal("unavailable")
5130
+ ])).readonly().readonly()
5131
+ })]).readonly()
5132
+ });
5133
+ const _yadsh_dsh_qa_integrations_qaIntegrations_getTestit_parameter_0$schema = string();
5134
+ const _yadsh_dsh_qa_integrations_qaIntegrations_getTestit_result$schema = object({
5135
+ "provider": string().readonly(),
5136
+ "displayName": string().readonly(),
5137
+ "status": union([
5138
+ literal("pending"),
5139
+ literal("connected"),
5140
+ literal("error"),
5141
+ literal("revoked"),
5142
+ literal("not_connected")
5143
+ ]).readonly(),
5144
+ "portal": union([literal(null), string()]).readonly(),
5145
+ "externalAccountName": union([literal(null), string()]).readonly(),
5146
+ "credentialConfigured": boolean().readonly(),
5147
+ "credentialUpdatedAt": union([literal(null), string()]).readonly(),
5148
+ "capabilities": array(string()).readonly(),
5149
+ "capabilityInfo": record(string(), object({
5150
+ "label": string().readonly(),
5151
+ "hint": string().readonly()
5152
+ })).readonly().readonly(),
5153
+ "policy": array(object({
5154
+ "capability": string().readonly(),
5155
+ "mode": union([
5156
+ literal("allow"),
5157
+ literal("confirm"),
5158
+ literal("deny")
5159
+ ]).readonly()
5160
+ })).readonly(),
5161
+ "lastValidatedAt": union([literal(null), string()]).readonly(),
5162
+ "errorCode": union([literal(null), string()]).readonly(),
5163
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
5164
+ "service": union([literal(null), object({
5165
+ "available": boolean().readonly(),
5166
+ "label": union([literal(null), string()]).readonly(),
5167
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5168
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5169
+ "capabilities": record(string(), union([
5170
+ literal("available"),
5171
+ literal("sensitive"),
5172
+ literal("unavailable")
5173
+ ])).readonly().readonly()
5174
+ })]).readonly()
5175
+ });
5176
+ const _yadsh_dsh_qa_integrations_qaIntegrations_getWeblate_parameter_0$schema = string();
5177
+ const _yadsh_dsh_qa_integrations_qaIntegrations_getWeblate_result$schema = object({
5178
+ "provider": string().readonly(),
5179
+ "displayName": string().readonly(),
5180
+ "status": union([
5181
+ literal("pending"),
5182
+ literal("connected"),
5183
+ literal("error"),
5184
+ literal("revoked"),
5185
+ literal("not_connected")
5186
+ ]).readonly(),
5187
+ "portal": union([literal(null), string()]).readonly(),
5188
+ "externalAccountName": union([literal(null), string()]).readonly(),
5189
+ "credentialConfigured": boolean().readonly(),
5190
+ "credentialUpdatedAt": union([literal(null), string()]).readonly(),
5191
+ "capabilities": array(string()).readonly(),
5192
+ "capabilityInfo": record(string(), object({
5193
+ "label": string().readonly(),
5194
+ "hint": string().readonly()
5195
+ })).readonly().readonly(),
5196
+ "policy": array(object({
5197
+ "capability": string().readonly(),
5198
+ "mode": union([
5199
+ literal("allow"),
5200
+ literal("confirm"),
5201
+ literal("deny")
5202
+ ]).readonly()
5203
+ })).readonly(),
5204
+ "lastValidatedAt": union([literal(null), string()]).readonly(),
5205
+ "errorCode": union([literal(null), string()]).readonly(),
5206
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
5207
+ "service": union([literal(null), object({
5208
+ "available": boolean().readonly(),
5209
+ "label": union([literal(null), string()]).readonly(),
5210
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5211
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5212
+ "capabilities": record(string(), union([
5213
+ literal("available"),
5214
+ literal("sensitive"),
5215
+ literal("unavailable")
5216
+ ])).readonly().readonly()
5217
+ })]).readonly()
4985
5218
  });
4986
5219
  const _yadsh_dsh_qa_integrations_qaIntegrations_gitlabInstances_parameter_0$schema = string();
4987
5220
  const _yadsh_dsh_qa_integrations_qaIntegrations_gitlabInstances_result$schema = array(object({
4988
5221
  "id": string().readonly(),
4989
5222
  "label": string().readonly(),
4990
- "baseUrl": string().readonly()
5223
+ "baseUrl": string().readonly(),
5224
+ "service": union([literal(null), object({ "label": string().readonly() })]).readonly()
4991
5225
  }));
4992
5226
  const _yadsh_dsh_qa_integrations_qaIntegrations_jiraSites_parameter_0$schema = string();
4993
5227
  const _yadsh_dsh_qa_integrations_qaIntegrations_jiraSites_result$schema = array(object({
4994
5228
  "id": string().readonly(),
4995
5229
  "label": string().readonly(),
4996
- "baseUrl": string().readonly()
5230
+ "baseUrl": string().readonly(),
5231
+ "service": union([literal(null), object({ "label": string().readonly() })]).readonly()
4997
5232
  }));
4998
5233
  const _yadsh_dsh_qa_integrations_qaIntegrations_list_parameter_0$schema = string();
4999
5234
  const _yadsh_dsh_qa_integrations_qaIntegrations_list_result$schema = array(object({
@@ -5024,8 +5259,25 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5024
5259
  ]).readonly()
5025
5260
  })).readonly(),
5026
5261
  "lastValidatedAt": union([literal(null), string()]).readonly(),
5027
- "errorCode": union([literal(null), string()]).readonly()
5262
+ "errorCode": union([literal(null), string()]).readonly(),
5263
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
5264
+ "service": union([literal(null), object({
5265
+ "available": boolean().readonly(),
5266
+ "label": union([literal(null), string()]).readonly(),
5267
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5268
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5269
+ "capabilities": record(string(), union([
5270
+ literal("available"),
5271
+ literal("sensitive"),
5272
+ literal("unavailable")
5273
+ ])).readonly().readonly()
5274
+ })]).readonly()
5028
5275
  }));
5276
+ const _yadsh_dsh_qa_integrations_qaIntegrations_managedServiceCredentials_parameter_0$schema = string();
5277
+ const _yadsh_dsh_qa_integrations_qaIntegrations_managedServiceCredentials_result$schema = object({
5278
+ "enabled": boolean().readonly(),
5279
+ "defaultForNewConnections": boolean().readonly()
5280
+ });
5029
5281
  const _yadsh_dsh_qa_integrations_qaIntegrations_patchBitrix24Policy_parameter_0$schema = string();
5030
5282
  const _yadsh_dsh_qa_integrations_qaIntegrations_patchBitrix24Policy_parameter_1$schema = object({
5031
5283
  "operation": string().readonly(),
@@ -5063,7 +5315,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5063
5315
  ]).readonly()
5064
5316
  })).readonly(),
5065
5317
  "lastValidatedAt": union([literal(null), string()]).readonly(),
5066
- "errorCode": union([literal(null), string()]).readonly()
5318
+ "errorCode": union([literal(null), string()]).readonly(),
5319
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
5320
+ "service": union([literal(null), object({
5321
+ "available": boolean().readonly(),
5322
+ "label": union([literal(null), string()]).readonly(),
5323
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5324
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5325
+ "capabilities": record(string(), union([
5326
+ literal("available"),
5327
+ literal("sensitive"),
5328
+ literal("unavailable")
5329
+ ])).readonly().readonly()
5330
+ })]).readonly()
5067
5331
  });
5068
5332
  const _yadsh_dsh_qa_integrations_qaIntegrations_patchConfluencePolicy_parameter_0$schema = string();
5069
5333
  const _yadsh_dsh_qa_integrations_qaIntegrations_patchConfluencePolicy_parameter_1$schema = object({
@@ -5102,7 +5366,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5102
5366
  ]).readonly()
5103
5367
  })).readonly(),
5104
5368
  "lastValidatedAt": union([literal(null), string()]).readonly(),
5105
- "errorCode": union([literal(null), string()]).readonly()
5369
+ "errorCode": union([literal(null), string()]).readonly(),
5370
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
5371
+ "service": union([literal(null), object({
5372
+ "available": boolean().readonly(),
5373
+ "label": union([literal(null), string()]).readonly(),
5374
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5375
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5376
+ "capabilities": record(string(), union([
5377
+ literal("available"),
5378
+ literal("sensitive"),
5379
+ literal("unavailable")
5380
+ ])).readonly().readonly()
5381
+ })]).readonly()
5106
5382
  });
5107
5383
  const _yadsh_dsh_qa_integrations_qaIntegrations_patchGitlabPolicy_parameter_0$schema = string();
5108
5384
  const _yadsh_dsh_qa_integrations_qaIntegrations_patchGitlabPolicy_parameter_1$schema = object({
@@ -5141,7 +5417,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5141
5417
  ]).readonly()
5142
5418
  })).readonly(),
5143
5419
  "lastValidatedAt": union([literal(null), string()]).readonly(),
5144
- "errorCode": union([literal(null), string()]).readonly()
5420
+ "errorCode": union([literal(null), string()]).readonly(),
5421
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
5422
+ "service": union([literal(null), object({
5423
+ "available": boolean().readonly(),
5424
+ "label": union([literal(null), string()]).readonly(),
5425
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5426
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5427
+ "capabilities": record(string(), union([
5428
+ literal("available"),
5429
+ literal("sensitive"),
5430
+ literal("unavailable")
5431
+ ])).readonly().readonly()
5432
+ })]).readonly()
5145
5433
  });
5146
5434
  const _yadsh_dsh_qa_integrations_qaIntegrations_patchJiraPolicy_parameter_0$schema = string();
5147
5435
  const _yadsh_dsh_qa_integrations_qaIntegrations_patchJiraPolicy_parameter_1$schema = object({
@@ -5180,7 +5468,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5180
5468
  ]).readonly()
5181
5469
  })).readonly(),
5182
5470
  "lastValidatedAt": union([literal(null), string()]).readonly(),
5183
- "errorCode": union([literal(null), string()]).readonly()
5471
+ "errorCode": union([literal(null), string()]).readonly(),
5472
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
5473
+ "service": union([literal(null), object({
5474
+ "available": boolean().readonly(),
5475
+ "label": union([literal(null), string()]).readonly(),
5476
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5477
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5478
+ "capabilities": record(string(), union([
5479
+ literal("available"),
5480
+ literal("sensitive"),
5481
+ literal("unavailable")
5482
+ ])).readonly().readonly()
5483
+ })]).readonly()
5184
5484
  });
5185
5485
  const _yadsh_dsh_qa_integrations_qaIntegrations_patchTeamcityPolicy_parameter_0$schema = string();
5186
5486
  const _yadsh_dsh_qa_integrations_qaIntegrations_patchTeamcityPolicy_parameter_1$schema = object({
@@ -5219,7 +5519,121 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5219
5519
  ]).readonly()
5220
5520
  })).readonly(),
5221
5521
  "lastValidatedAt": union([literal(null), string()]).readonly(),
5222
- "errorCode": union([literal(null), string()]).readonly()
5522
+ "errorCode": union([literal(null), string()]).readonly(),
5523
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
5524
+ "service": union([literal(null), object({
5525
+ "available": boolean().readonly(),
5526
+ "label": union([literal(null), string()]).readonly(),
5527
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5528
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5529
+ "capabilities": record(string(), union([
5530
+ literal("available"),
5531
+ literal("sensitive"),
5532
+ literal("unavailable")
5533
+ ])).readonly().readonly()
5534
+ })]).readonly()
5535
+ });
5536
+ const _yadsh_dsh_qa_integrations_qaIntegrations_patchTestitPolicy_parameter_0$schema = string();
5537
+ const _yadsh_dsh_qa_integrations_qaIntegrations_patchTestitPolicy_parameter_1$schema = object({
5538
+ "operation": string().readonly(),
5539
+ "mode": union([
5540
+ literal("allow"),
5541
+ literal("confirm"),
5542
+ literal("deny")
5543
+ ]).readonly()
5544
+ });
5545
+ const _yadsh_dsh_qa_integrations_qaIntegrations_patchTestitPolicy_result$schema = object({
5546
+ "provider": string().readonly(),
5547
+ "displayName": string().readonly(),
5548
+ "status": union([
5549
+ literal("pending"),
5550
+ literal("connected"),
5551
+ literal("error"),
5552
+ literal("revoked"),
5553
+ literal("not_connected")
5554
+ ]).readonly(),
5555
+ "portal": union([literal(null), string()]).readonly(),
5556
+ "externalAccountName": union([literal(null), string()]).readonly(),
5557
+ "credentialConfigured": boolean().readonly(),
5558
+ "credentialUpdatedAt": union([literal(null), string()]).readonly(),
5559
+ "capabilities": array(string()).readonly(),
5560
+ "capabilityInfo": record(string(), object({
5561
+ "label": string().readonly(),
5562
+ "hint": string().readonly()
5563
+ })).readonly().readonly(),
5564
+ "policy": array(object({
5565
+ "capability": string().readonly(),
5566
+ "mode": union([
5567
+ literal("allow"),
5568
+ literal("confirm"),
5569
+ literal("deny")
5570
+ ]).readonly()
5571
+ })).readonly(),
5572
+ "lastValidatedAt": union([literal(null), string()]).readonly(),
5573
+ "errorCode": union([literal(null), string()]).readonly(),
5574
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
5575
+ "service": union([literal(null), object({
5576
+ "available": boolean().readonly(),
5577
+ "label": union([literal(null), string()]).readonly(),
5578
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5579
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5580
+ "capabilities": record(string(), union([
5581
+ literal("available"),
5582
+ literal("sensitive"),
5583
+ literal("unavailable")
5584
+ ])).readonly().readonly()
5585
+ })]).readonly()
5586
+ });
5587
+ const _yadsh_dsh_qa_integrations_qaIntegrations_patchWeblatePolicy_parameter_0$schema = string();
5588
+ const _yadsh_dsh_qa_integrations_qaIntegrations_patchWeblatePolicy_parameter_1$schema = object({
5589
+ "operation": string().readonly(),
5590
+ "mode": union([
5591
+ literal("allow"),
5592
+ literal("confirm"),
5593
+ literal("deny")
5594
+ ]).readonly()
5595
+ });
5596
+ const _yadsh_dsh_qa_integrations_qaIntegrations_patchWeblatePolicy_result$schema = object({
5597
+ "provider": string().readonly(),
5598
+ "displayName": string().readonly(),
5599
+ "status": union([
5600
+ literal("pending"),
5601
+ literal("connected"),
5602
+ literal("error"),
5603
+ literal("revoked"),
5604
+ literal("not_connected")
5605
+ ]).readonly(),
5606
+ "portal": union([literal(null), string()]).readonly(),
5607
+ "externalAccountName": union([literal(null), string()]).readonly(),
5608
+ "credentialConfigured": boolean().readonly(),
5609
+ "credentialUpdatedAt": union([literal(null), string()]).readonly(),
5610
+ "capabilities": array(string()).readonly(),
5611
+ "capabilityInfo": record(string(), object({
5612
+ "label": string().readonly(),
5613
+ "hint": string().readonly()
5614
+ })).readonly().readonly(),
5615
+ "policy": array(object({
5616
+ "capability": string().readonly(),
5617
+ "mode": union([
5618
+ literal("allow"),
5619
+ literal("confirm"),
5620
+ literal("deny")
5621
+ ]).readonly()
5622
+ })).readonly(),
5623
+ "lastValidatedAt": union([literal(null), string()]).readonly(),
5624
+ "errorCode": union([literal(null), string()]).readonly(),
5625
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
5626
+ "service": union([literal(null), object({
5627
+ "available": boolean().readonly(),
5628
+ "label": union([literal(null), string()]).readonly(),
5629
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5630
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5631
+ "capabilities": record(string(), union([
5632
+ literal("available"),
5633
+ literal("sensitive"),
5634
+ literal("unavailable")
5635
+ ])).readonly().readonly()
5636
+ })]).readonly()
5223
5637
  });
5224
5638
  const _yadsh_dsh_qa_integrations_qaIntegrations_providers_parameter_0$schema = string();
5225
5639
  const _yadsh_dsh_qa_integrations_qaIntegrations_providers_result$schema = array(object({
@@ -5231,7 +5645,31 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5231
5645
  literal("oauth"),
5232
5646
  literal("mcp_token")
5233
5647
  ])).readonly(),
5234
- "capabilities": array(string()).readonly()
5648
+ "capabilities": array(string()).readonly(),
5649
+ "credentialHelp": union([literal(null), object({
5650
+ "kind": union([
5651
+ literal("oauth"),
5652
+ literal("api-key"),
5653
+ literal("personal-access-token"),
5654
+ literal("service-account"),
5655
+ literal("app-password"),
5656
+ literal("custom")
5657
+ ]).readonly(),
5658
+ "label": string().readonly().optional(),
5659
+ "obtain": object({
5660
+ "url": string().readonly(),
5661
+ "label": string().readonly().optional()
5662
+ }).readonly().optional(),
5663
+ "docs": object({
5664
+ "url": string().readonly(),
5665
+ "label": string().readonly().optional()
5666
+ }).readonly().optional(),
5667
+ "instructions": string().readonly().optional(),
5668
+ "instructionsLocaleKey": string().readonly().optional(),
5669
+ "scopes": array(string()).readonly().optional(),
5670
+ "notes": array(string()).readonly().optional(),
5671
+ "selfHosted": boolean().readonly().optional()
5672
+ })]).readonly()
5235
5673
  }));
5236
5674
  const _yadsh_dsh_qa_integrations_qaIntegrations_putBitrix24Credential_parameter_0$schema = string();
5237
5675
  const _yadsh_dsh_qa_integrations_qaIntegrations_putBitrix24Credential_parameter_1$schema = object({
@@ -5266,7 +5704,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5266
5704
  ]).readonly()
5267
5705
  })).readonly(),
5268
5706
  "lastValidatedAt": union([literal(null), string()]).readonly(),
5269
- "errorCode": union([literal(null), string()]).readonly()
5707
+ "errorCode": union([literal(null), string()]).readonly(),
5708
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
5709
+ "service": union([literal(null), object({
5710
+ "available": boolean().readonly(),
5711
+ "label": union([literal(null), string()]).readonly(),
5712
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5713
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5714
+ "capabilities": record(string(), union([
5715
+ literal("available"),
5716
+ literal("sensitive"),
5717
+ literal("unavailable")
5718
+ ])).readonly().readonly()
5719
+ })]).readonly()
5270
5720
  });
5271
5721
  const _yadsh_dsh_qa_integrations_qaIntegrations_putConfluenceCredential_parameter_0$schema = string();
5272
5722
  const _yadsh_dsh_qa_integrations_qaIntegrations_putConfluenceCredential_parameter_1$schema = object({
@@ -5302,12 +5752,29 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5302
5752
  ]).readonly()
5303
5753
  })).readonly(),
5304
5754
  "lastValidatedAt": union([literal(null), string()]).readonly(),
5305
- "errorCode": union([literal(null), string()]).readonly()
5755
+ "errorCode": union([literal(null), string()]).readonly(),
5756
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
5757
+ "service": union([literal(null), object({
5758
+ "available": boolean().readonly(),
5759
+ "label": union([literal(null), string()]).readonly(),
5760
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5761
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5762
+ "capabilities": record(string(), union([
5763
+ literal("available"),
5764
+ literal("sensitive"),
5765
+ literal("unavailable")
5766
+ ])).readonly().readonly()
5767
+ })]).readonly()
5306
5768
  });
5307
5769
  const _yadsh_dsh_qa_integrations_qaIntegrations_putGitlabCredential_parameter_0$schema = string();
5308
5770
  const _yadsh_dsh_qa_integrations_qaIntegrations_putGitlabCredential_parameter_1$schema = object({
5309
5771
  "instanceId": string().readonly(),
5310
- "token": string().readonly()
5772
+ "token": string().readonly(),
5773
+ "useServiceCredential": union([
5774
+ _undefined(),
5775
+ literal(false),
5776
+ literal(true)
5777
+ ]).readonly().optional()
5311
5778
  });
5312
5779
  const _yadsh_dsh_qa_integrations_qaIntegrations_putGitlabCredential_result$schema = object({
5313
5780
  "provider": string().readonly(),
@@ -5337,7 +5804,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5337
5804
  ]).readonly()
5338
5805
  })).readonly(),
5339
5806
  "lastValidatedAt": union([literal(null), string()]).readonly(),
5340
- "errorCode": union([literal(null), string()]).readonly()
5807
+ "errorCode": union([literal(null), string()]).readonly(),
5808
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
5809
+ "service": union([literal(null), object({
5810
+ "available": boolean().readonly(),
5811
+ "label": union([literal(null), string()]).readonly(),
5812
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5813
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5814
+ "capabilities": record(string(), union([
5815
+ literal("available"),
5816
+ literal("sensitive"),
5817
+ literal("unavailable")
5818
+ ])).readonly().readonly()
5819
+ })]).readonly()
5341
5820
  });
5342
5821
  const _yadsh_dsh_qa_integrations_qaIntegrations_putJiraCredential_parameter_0$schema = string();
5343
5822
  const _yadsh_dsh_qa_integrations_qaIntegrations_putJiraCredential_parameter_1$schema = object({
@@ -5373,10 +5852,29 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5373
5852
  ]).readonly()
5374
5853
  })).readonly(),
5375
5854
  "lastValidatedAt": union([literal(null), string()]).readonly(),
5376
- "errorCode": union([literal(null), string()]).readonly()
5855
+ "errorCode": union([literal(null), string()]).readonly(),
5856
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
5857
+ "service": union([literal(null), object({
5858
+ "available": boolean().readonly(),
5859
+ "label": union([literal(null), string()]).readonly(),
5860
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5861
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5862
+ "capabilities": record(string(), union([
5863
+ literal("available"),
5864
+ literal("sensitive"),
5865
+ literal("unavailable")
5866
+ ])).readonly().readonly()
5867
+ })]).readonly()
5377
5868
  });
5378
5869
  const _yadsh_dsh_qa_integrations_qaIntegrations_putTeamcityCredential_parameter_0$schema = string();
5379
- const _yadsh_dsh_qa_integrations_qaIntegrations_putTeamcityCredential_parameter_1$schema = object({ "token": string().readonly() });
5870
+ const _yadsh_dsh_qa_integrations_qaIntegrations_putTeamcityCredential_parameter_1$schema = object({
5871
+ "token": string().readonly(),
5872
+ "useServiceCredential": union([
5873
+ _undefined(),
5874
+ literal(false),
5875
+ literal(true)
5876
+ ]).readonly().optional()
5877
+ });
5380
5878
  const _yadsh_dsh_qa_integrations_qaIntegrations_putTeamcityCredential_result$schema = object({
5381
5879
  "provider": string().readonly(),
5382
5880
  "displayName": string().readonly(),
@@ -5405,16 +5903,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5405
5903
  ]).readonly()
5406
5904
  })).readonly(),
5407
5905
  "lastValidatedAt": union([literal(null), string()]).readonly(),
5408
- "errorCode": union([literal(null), string()]).readonly()
5906
+ "errorCode": union([literal(null), string()]).readonly(),
5907
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
5908
+ "service": union([literal(null), object({
5909
+ "available": boolean().readonly(),
5910
+ "label": union([literal(null), string()]).readonly(),
5911
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5912
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5913
+ "capabilities": record(string(), union([
5914
+ literal("available"),
5915
+ literal("sensitive"),
5916
+ literal("unavailable")
5917
+ ])).readonly().readonly()
5918
+ })]).readonly()
5919
+ });
5920
+ const _yadsh_dsh_qa_integrations_qaIntegrations_putTestitCredential_parameter_0$schema = string();
5921
+ const _yadsh_dsh_qa_integrations_qaIntegrations_putTestitCredential_parameter_1$schema = object({
5922
+ "instanceId": string().readonly(),
5923
+ "token": string().readonly()
5409
5924
  });
5410
- const _yadsh_dsh_qa_integrations_qaIntegrations_teamcityServer_parameter_0$schema = string();
5411
- const _yadsh_dsh_qa_integrations_qaIntegrations_teamcityServer_result$schema = union([literal(null), object({
5412
- "id": string().readonly(),
5413
- "label": string().readonly(),
5414
- "baseUrl": string().readonly()
5415
- })]);
5416
- const _yadsh_dsh_qa_integrations_qaIntegrations_testBitrix24_parameter_0$schema = string();
5417
- const _yadsh_dsh_qa_integrations_qaIntegrations_testBitrix24_result$schema = object({
5925
+ const _yadsh_dsh_qa_integrations_qaIntegrations_putTestitCredential_result$schema = object({
5418
5926
  "provider": string().readonly(),
5419
5927
  "displayName": string().readonly(),
5420
5928
  "status": union([
@@ -5442,10 +5950,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5442
5950
  ]).readonly()
5443
5951
  })).readonly(),
5444
5952
  "lastValidatedAt": union([literal(null), string()]).readonly(),
5445
- "errorCode": union([literal(null), string()]).readonly()
5953
+ "errorCode": union([literal(null), string()]).readonly(),
5954
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
5955
+ "service": union([literal(null), object({
5956
+ "available": boolean().readonly(),
5957
+ "label": union([literal(null), string()]).readonly(),
5958
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5959
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
5960
+ "capabilities": record(string(), union([
5961
+ literal("available"),
5962
+ literal("sensitive"),
5963
+ literal("unavailable")
5964
+ ])).readonly().readonly()
5965
+ })]).readonly()
5966
+ });
5967
+ const _yadsh_dsh_qa_integrations_qaIntegrations_putWeblateCredential_parameter_0$schema = string();
5968
+ const _yadsh_dsh_qa_integrations_qaIntegrations_putWeblateCredential_parameter_1$schema = object({
5969
+ "instanceId": string().readonly(),
5970
+ "token": string().readonly()
5446
5971
  });
5447
- const _yadsh_dsh_qa_integrations_qaIntegrations_testConfluence_parameter_0$schema = string();
5448
- const _yadsh_dsh_qa_integrations_qaIntegrations_testConfluence_result$schema = object({
5972
+ const _yadsh_dsh_qa_integrations_qaIntegrations_putWeblateCredential_result$schema = object({
5449
5973
  "provider": string().readonly(),
5450
5974
  "displayName": string().readonly(),
5451
5975
  "status": union([
@@ -5473,10 +5997,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5473
5997
  ]).readonly()
5474
5998
  })).readonly(),
5475
5999
  "lastValidatedAt": union([literal(null), string()]).readonly(),
5476
- "errorCode": union([literal(null), string()]).readonly()
6000
+ "errorCode": union([literal(null), string()]).readonly(),
6001
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
6002
+ "service": union([literal(null), object({
6003
+ "available": boolean().readonly(),
6004
+ "label": union([literal(null), string()]).readonly(),
6005
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
6006
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
6007
+ "capabilities": record(string(), union([
6008
+ literal("available"),
6009
+ literal("sensitive"),
6010
+ literal("unavailable")
6011
+ ])).readonly().readonly()
6012
+ })]).readonly()
6013
+ });
6014
+ const _yadsh_dsh_qa_integrations_qaIntegrations_serviceBoundary_parameter_0$schema = string();
6015
+ const _yadsh_dsh_qa_integrations_qaIntegrations_serviceBoundary_parameter_1$schema = object({
6016
+ "provider": string().readonly(),
6017
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly()
5477
6018
  });
5478
- const _yadsh_dsh_qa_integrations_qaIntegrations_testGitlab_parameter_0$schema = string();
5479
- const _yadsh_dsh_qa_integrations_qaIntegrations_testGitlab_result$schema = object({
6019
+ const _yadsh_dsh_qa_integrations_qaIntegrations_serviceBoundary_result$schema = object({
5480
6020
  "provider": string().readonly(),
5481
6021
  "displayName": string().readonly(),
5482
6022
  "status": union([
@@ -5504,10 +6044,49 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5504
6044
  ]).readonly()
5505
6045
  })).readonly(),
5506
6046
  "lastValidatedAt": union([literal(null), string()]).readonly(),
5507
- "errorCode": union([literal(null), string()]).readonly()
6047
+ "errorCode": union([literal(null), string()]).readonly(),
6048
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
6049
+ "service": union([literal(null), object({
6050
+ "available": boolean().readonly(),
6051
+ "label": union([literal(null), string()]).readonly(),
6052
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
6053
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
6054
+ "capabilities": record(string(), union([
6055
+ literal("available"),
6056
+ literal("sensitive"),
6057
+ literal("unavailable")
6058
+ ])).readonly().readonly()
6059
+ })]).readonly()
6060
+ });
6061
+ const _yadsh_dsh_qa_integrations_qaIntegrations_serviceHealth_parameter_0$schema = string();
6062
+ const _yadsh_dsh_qa_integrations_qaIntegrations_serviceHealth_parameter_1$schema = object({
6063
+ "provider": string().readonly(),
6064
+ "instanceId": string().readonly()
5508
6065
  });
5509
- const _yadsh_dsh_qa_integrations_qaIntegrations_testJira_parameter_0$schema = string();
5510
- const _yadsh_dsh_qa_integrations_qaIntegrations_testJira_result$schema = object({
6066
+ const _yadsh_dsh_qa_integrations_qaIntegrations_serviceHealth_result$schema = union([literal(null), object({
6067
+ "status": union([
6068
+ literal("revoked"),
6069
+ literal("healthy"),
6070
+ literal("expired"),
6071
+ literal("unsafe_scope"),
6072
+ literal("unreachable")
6073
+ ]).readonly(),
6074
+ "upstreamIdentity": union([_undefined(), object({
6075
+ "id": string().readonly(),
6076
+ "label": string().readonly()
6077
+ })]).readonly().optional(),
6078
+ "grantedScopes": union([_undefined(), array(string())]).readonly().optional(),
6079
+ "warnings": union([_undefined(), array(string())]).readonly().optional()
6080
+ })]);
6081
+ const _yadsh_dsh_qa_integrations_qaIntegrations_teamcityServer_parameter_0$schema = string();
6082
+ const _yadsh_dsh_qa_integrations_qaIntegrations_teamcityServer_result$schema = union([literal(null), object({
6083
+ "id": string().readonly(),
6084
+ "label": string().readonly(),
6085
+ "baseUrl": string().readonly(),
6086
+ "service": union([literal(null), object({ "label": string().readonly() })]).readonly()
6087
+ })]);
6088
+ const _yadsh_dsh_qa_integrations_qaIntegrations_testBitrix24_parameter_0$schema = string();
6089
+ const _yadsh_dsh_qa_integrations_qaIntegrations_testBitrix24_result$schema = object({
5511
6090
  "provider": string().readonly(),
5512
6091
  "displayName": string().readonly(),
5513
6092
  "status": union([
@@ -5535,10 +6114,22 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5535
6114
  ]).readonly()
5536
6115
  })).readonly(),
5537
6116
  "lastValidatedAt": union([literal(null), string()]).readonly(),
5538
- "errorCode": union([literal(null), string()]).readonly()
6117
+ "errorCode": union([literal(null), string()]).readonly(),
6118
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
6119
+ "service": union([literal(null), object({
6120
+ "available": boolean().readonly(),
6121
+ "label": union([literal(null), string()]).readonly(),
6122
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
6123
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
6124
+ "capabilities": record(string(), union([
6125
+ literal("available"),
6126
+ literal("sensitive"),
6127
+ literal("unavailable")
6128
+ ])).readonly().readonly()
6129
+ })]).readonly()
5539
6130
  });
5540
- const _yadsh_dsh_qa_integrations_qaIntegrations_testTeamcity_parameter_0$schema = string();
5541
- const _yadsh_dsh_qa_integrations_qaIntegrations_testTeamcity_result$schema = object({
6131
+ const _yadsh_dsh_qa_integrations_qaIntegrations_testConfluence_parameter_0$schema = string();
6132
+ const _yadsh_dsh_qa_integrations_qaIntegrations_testConfluence_result$schema = object({
5542
6133
  "provider": string().readonly(),
5543
6134
  "displayName": string().readonly(),
5544
6135
  "status": union([
@@ -5566,53 +6157,330 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5566
6157
  ]).readonly()
5567
6158
  })).readonly(),
5568
6159
  "lastValidatedAt": union([literal(null), string()]).readonly(),
5569
- "errorCode": union([literal(null), string()]).readonly()
6160
+ "errorCode": union([literal(null), string()]).readonly(),
6161
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
6162
+ "service": union([literal(null), object({
6163
+ "available": boolean().readonly(),
6164
+ "label": union([literal(null), string()]).readonly(),
6165
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
6166
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
6167
+ "capabilities": record(string(), union([
6168
+ literal("available"),
6169
+ literal("sensitive"),
6170
+ literal("unavailable")
6171
+ ])).readonly().readonly()
6172
+ })]).readonly()
5570
6173
  });
5571
- const TYPERT_REMOTE = {
5572
- package: "@yadsh/dsh-qa-integrations",
5573
- descriptors: [
5574
- {
5575
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/confluenceSites",
5576
- service: "qaIntegrations",
5577
- namespace: "qaIntegrations",
5578
- method: "confluenceSites",
5579
- invocation: { kind: "direct" },
5580
- parameters: [{
5581
- name: "token",
5582
- wire: "token",
5583
- source: "json",
5584
- codec: {
5585
- mode: "strict",
5586
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/confluenceSites:token",
5587
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_confluenceSites_parameter_0$schema
5588
- }
5589
- }],
5590
- result: {
5591
- mode: "strict",
5592
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/confluenceSites:result",
5593
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_confluenceSites_result$schema
5594
- },
5595
- sourceLocation: {
5596
- "file": "packages/dsh-qa-integrations/src/index.ts",
5597
- "line": 337,
5598
- "column": 3
5599
- }
5600
- },
5601
- {
5602
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/describe",
5603
- service: "qaIntegrations",
5604
- namespace: "qaIntegrations",
5605
- method: "describe",
5606
- invocation: { kind: "direct" },
5607
- parameters: [],
5608
- result: {
5609
- mode: "strict",
5610
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/describe:result",
5611
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_describe_result$schema
5612
- },
5613
- sourceLocation: {
5614
- "file": "packages/dsh-qa-integrations/src/index.ts",
5615
- "line": 222,
6174
+ const _yadsh_dsh_qa_integrations_qaIntegrations_testGitlab_parameter_0$schema = string();
6175
+ const _yadsh_dsh_qa_integrations_qaIntegrations_testGitlab_result$schema = object({
6176
+ "provider": string().readonly(),
6177
+ "displayName": string().readonly(),
6178
+ "status": union([
6179
+ literal("pending"),
6180
+ literal("connected"),
6181
+ literal("error"),
6182
+ literal("revoked"),
6183
+ literal("not_connected")
6184
+ ]).readonly(),
6185
+ "portal": union([literal(null), string()]).readonly(),
6186
+ "externalAccountName": union([literal(null), string()]).readonly(),
6187
+ "credentialConfigured": boolean().readonly(),
6188
+ "credentialUpdatedAt": union([literal(null), string()]).readonly(),
6189
+ "capabilities": array(string()).readonly(),
6190
+ "capabilityInfo": record(string(), object({
6191
+ "label": string().readonly(),
6192
+ "hint": string().readonly()
6193
+ })).readonly().readonly(),
6194
+ "policy": array(object({
6195
+ "capability": string().readonly(),
6196
+ "mode": union([
6197
+ literal("allow"),
6198
+ literal("confirm"),
6199
+ literal("deny")
6200
+ ]).readonly()
6201
+ })).readonly(),
6202
+ "lastValidatedAt": union([literal(null), string()]).readonly(),
6203
+ "errorCode": union([literal(null), string()]).readonly(),
6204
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
6205
+ "service": union([literal(null), object({
6206
+ "available": boolean().readonly(),
6207
+ "label": union([literal(null), string()]).readonly(),
6208
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
6209
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
6210
+ "capabilities": record(string(), union([
6211
+ literal("available"),
6212
+ literal("sensitive"),
6213
+ literal("unavailable")
6214
+ ])).readonly().readonly()
6215
+ })]).readonly()
6216
+ });
6217
+ const _yadsh_dsh_qa_integrations_qaIntegrations_testitInstances_parameter_0$schema = string();
6218
+ const _yadsh_dsh_qa_integrations_qaIntegrations_testitInstances_result$schema = array(object({
6219
+ "id": string().readonly(),
6220
+ "label": string().readonly(),
6221
+ "baseUrl": string().readonly(),
6222
+ "service": union([literal(null), object({ "label": string().readonly() })]).readonly()
6223
+ }));
6224
+ const _yadsh_dsh_qa_integrations_qaIntegrations_testJira_parameter_0$schema = string();
6225
+ const _yadsh_dsh_qa_integrations_qaIntegrations_testJira_result$schema = object({
6226
+ "provider": string().readonly(),
6227
+ "displayName": string().readonly(),
6228
+ "status": union([
6229
+ literal("pending"),
6230
+ literal("connected"),
6231
+ literal("error"),
6232
+ literal("revoked"),
6233
+ literal("not_connected")
6234
+ ]).readonly(),
6235
+ "portal": union([literal(null), string()]).readonly(),
6236
+ "externalAccountName": union([literal(null), string()]).readonly(),
6237
+ "credentialConfigured": boolean().readonly(),
6238
+ "credentialUpdatedAt": union([literal(null), string()]).readonly(),
6239
+ "capabilities": array(string()).readonly(),
6240
+ "capabilityInfo": record(string(), object({
6241
+ "label": string().readonly(),
6242
+ "hint": string().readonly()
6243
+ })).readonly().readonly(),
6244
+ "policy": array(object({
6245
+ "capability": string().readonly(),
6246
+ "mode": union([
6247
+ literal("allow"),
6248
+ literal("confirm"),
6249
+ literal("deny")
6250
+ ]).readonly()
6251
+ })).readonly(),
6252
+ "lastValidatedAt": union([literal(null), string()]).readonly(),
6253
+ "errorCode": union([literal(null), string()]).readonly(),
6254
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
6255
+ "service": union([literal(null), object({
6256
+ "available": boolean().readonly(),
6257
+ "label": union([literal(null), string()]).readonly(),
6258
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
6259
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
6260
+ "capabilities": record(string(), union([
6261
+ literal("available"),
6262
+ literal("sensitive"),
6263
+ literal("unavailable")
6264
+ ])).readonly().readonly()
6265
+ })]).readonly()
6266
+ });
6267
+ const _yadsh_dsh_qa_integrations_qaIntegrations_testTeamcity_parameter_0$schema = string();
6268
+ const _yadsh_dsh_qa_integrations_qaIntegrations_testTeamcity_result$schema = object({
6269
+ "provider": string().readonly(),
6270
+ "displayName": string().readonly(),
6271
+ "status": union([
6272
+ literal("pending"),
6273
+ literal("connected"),
6274
+ literal("error"),
6275
+ literal("revoked"),
6276
+ literal("not_connected")
6277
+ ]).readonly(),
6278
+ "portal": union([literal(null), string()]).readonly(),
6279
+ "externalAccountName": union([literal(null), string()]).readonly(),
6280
+ "credentialConfigured": boolean().readonly(),
6281
+ "credentialUpdatedAt": union([literal(null), string()]).readonly(),
6282
+ "capabilities": array(string()).readonly(),
6283
+ "capabilityInfo": record(string(), object({
6284
+ "label": string().readonly(),
6285
+ "hint": string().readonly()
6286
+ })).readonly().readonly(),
6287
+ "policy": array(object({
6288
+ "capability": string().readonly(),
6289
+ "mode": union([
6290
+ literal("allow"),
6291
+ literal("confirm"),
6292
+ literal("deny")
6293
+ ]).readonly()
6294
+ })).readonly(),
6295
+ "lastValidatedAt": union([literal(null), string()]).readonly(),
6296
+ "errorCode": union([literal(null), string()]).readonly(),
6297
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
6298
+ "service": union([literal(null), object({
6299
+ "available": boolean().readonly(),
6300
+ "label": union([literal(null), string()]).readonly(),
6301
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
6302
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
6303
+ "capabilities": record(string(), union([
6304
+ literal("available"),
6305
+ literal("sensitive"),
6306
+ literal("unavailable")
6307
+ ])).readonly().readonly()
6308
+ })]).readonly()
6309
+ });
6310
+ const _yadsh_dsh_qa_integrations_qaIntegrations_testTestit_parameter_0$schema = string();
6311
+ const _yadsh_dsh_qa_integrations_qaIntegrations_testTestit_result$schema = object({
6312
+ "provider": string().readonly(),
6313
+ "displayName": string().readonly(),
6314
+ "status": union([
6315
+ literal("pending"),
6316
+ literal("connected"),
6317
+ literal("error"),
6318
+ literal("revoked"),
6319
+ literal("not_connected")
6320
+ ]).readonly(),
6321
+ "portal": union([literal(null), string()]).readonly(),
6322
+ "externalAccountName": union([literal(null), string()]).readonly(),
6323
+ "credentialConfigured": boolean().readonly(),
6324
+ "credentialUpdatedAt": union([literal(null), string()]).readonly(),
6325
+ "capabilities": array(string()).readonly(),
6326
+ "capabilityInfo": record(string(), object({
6327
+ "label": string().readonly(),
6328
+ "hint": string().readonly()
6329
+ })).readonly().readonly(),
6330
+ "policy": array(object({
6331
+ "capability": string().readonly(),
6332
+ "mode": union([
6333
+ literal("allow"),
6334
+ literal("confirm"),
6335
+ literal("deny")
6336
+ ]).readonly()
6337
+ })).readonly(),
6338
+ "lastValidatedAt": union([literal(null), string()]).readonly(),
6339
+ "errorCode": union([literal(null), string()]).readonly(),
6340
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
6341
+ "service": union([literal(null), object({
6342
+ "available": boolean().readonly(),
6343
+ "label": union([literal(null), string()]).readonly(),
6344
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
6345
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
6346
+ "capabilities": record(string(), union([
6347
+ literal("available"),
6348
+ literal("sensitive"),
6349
+ literal("unavailable")
6350
+ ])).readonly().readonly()
6351
+ })]).readonly()
6352
+ });
6353
+ const _yadsh_dsh_qa_integrations_qaIntegrations_testWeblate_parameter_0$schema = string();
6354
+ const _yadsh_dsh_qa_integrations_qaIntegrations_testWeblate_result$schema = object({
6355
+ "provider": string().readonly(),
6356
+ "displayName": string().readonly(),
6357
+ "status": union([
6358
+ literal("pending"),
6359
+ literal("connected"),
6360
+ literal("error"),
6361
+ literal("revoked"),
6362
+ literal("not_connected")
6363
+ ]).readonly(),
6364
+ "portal": union([literal(null), string()]).readonly(),
6365
+ "externalAccountName": union([literal(null), string()]).readonly(),
6366
+ "credentialConfigured": boolean().readonly(),
6367
+ "credentialUpdatedAt": union([literal(null), string()]).readonly(),
6368
+ "capabilities": array(string()).readonly(),
6369
+ "capabilityInfo": record(string(), object({
6370
+ "label": string().readonly(),
6371
+ "hint": string().readonly()
6372
+ })).readonly().readonly(),
6373
+ "policy": array(object({
6374
+ "capability": string().readonly(),
6375
+ "mode": union([
6376
+ literal("allow"),
6377
+ literal("confirm"),
6378
+ literal("deny")
6379
+ ]).readonly()
6380
+ })).readonly(),
6381
+ "lastValidatedAt": union([literal(null), string()]).readonly(),
6382
+ "errorCode": union([literal(null), string()]).readonly(),
6383
+ "credentialSource": union([literal("personal"), literal("service")]).readonly(),
6384
+ "service": union([literal(null), object({
6385
+ "available": boolean().readonly(),
6386
+ "label": union([literal(null), string()]).readonly(),
6387
+ "resources": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
6388
+ "selection": union([literal(null), record(string(), array(string())).readonly()]).readonly(),
6389
+ "capabilities": record(string(), union([
6390
+ literal("available"),
6391
+ literal("sensitive"),
6392
+ literal("unavailable")
6393
+ ])).readonly().readonly()
6394
+ })]).readonly()
6395
+ });
6396
+ const _yadsh_dsh_qa_integrations_qaIntegrations_weblateInstances_parameter_0$schema = string();
6397
+ const _yadsh_dsh_qa_integrations_qaIntegrations_weblateInstances_result$schema = array(object({
6398
+ "id": string().readonly(),
6399
+ "label": string().readonly(),
6400
+ "baseUrl": string().readonly(),
6401
+ "service": union([literal(null), object({ "label": string().readonly() })]).readonly()
6402
+ }));
6403
+ const TYPERT_REMOTE = {
6404
+ package: "@yadsh/dsh-qa-integrations",
6405
+ descriptors: [
6406
+ {
6407
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/confluenceSites",
6408
+ service: "qaIntegrations",
6409
+ namespace: "qaIntegrations",
6410
+ method: "confluenceSites",
6411
+ invocation: { kind: "direct" },
6412
+ parameters: [{
6413
+ name: "token",
6414
+ wire: "token",
6415
+ source: "json",
6416
+ codec: {
6417
+ mode: "strict",
6418
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/confluenceSites:token",
6419
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_confluenceSites_parameter_0$schema
6420
+ }
6421
+ }],
6422
+ result: {
6423
+ mode: "strict",
6424
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/confluenceSites:result",
6425
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_confluenceSites_result$schema
6426
+ },
6427
+ sourceLocation: {
6428
+ "file": "packages/dsh-qa-integrations/src/index.ts",
6429
+ "line": 420,
6430
+ "column": 3
6431
+ }
6432
+ },
6433
+ {
6434
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/credentialSource",
6435
+ service: "qaIntegrations",
6436
+ namespace: "qaIntegrations",
6437
+ method: "credentialSource",
6438
+ invocation: { kind: "direct" },
6439
+ parameters: [{
6440
+ name: "token",
6441
+ wire: "token",
6442
+ source: "json",
6443
+ codec: {
6444
+ mode: "strict",
6445
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/credentialSource:token",
6446
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_credentialSource_parameter_0$schema
6447
+ }
6448
+ }, {
6449
+ name: "input",
6450
+ wire: "input",
6451
+ source: "json",
6452
+ codec: {
6453
+ mode: "strict",
6454
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/credentialSource:input",
6455
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_credentialSource_parameter_1$schema
6456
+ }
6457
+ }],
6458
+ result: {
6459
+ mode: "strict",
6460
+ typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
6461
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_credentialSource_result$schema
6462
+ },
6463
+ sourceLocation: {
6464
+ "file": "packages/dsh-qa-integrations/src/index.ts",
6465
+ "line": 718,
6466
+ "column": 9
6467
+ }
6468
+ },
6469
+ {
6470
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/describe",
6471
+ service: "qaIntegrations",
6472
+ namespace: "qaIntegrations",
6473
+ method: "describe",
6474
+ invocation: { kind: "direct" },
6475
+ parameters: [],
6476
+ result: {
6477
+ mode: "strict",
6478
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/describe:result",
6479
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_describe_result$schema
6480
+ },
6481
+ sourceLocation: {
6482
+ "file": "packages/dsh-qa-integrations/src/index.ts",
6483
+ "line": 295,
5616
6484
  "column": 3
5617
6485
  }
5618
6486
  },
@@ -5639,7 +6507,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5639
6507
  },
5640
6508
  sourceLocation: {
5641
6509
  "file": "packages/dsh-qa-integrations/src/index.ts",
5642
- "line": 274,
6510
+ "line": 347,
5643
6511
  "column": 3
5644
6512
  }
5645
6513
  },
@@ -5666,7 +6534,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5666
6534
  },
5667
6535
  sourceLocation: {
5668
6536
  "file": "packages/dsh-qa-integrations/src/index.ts",
5669
- "line": 385,
6537
+ "line": 468,
5670
6538
  "column": 3
5671
6539
  }
5672
6540
  },
@@ -5693,7 +6561,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5693
6561
  },
5694
6562
  sourceLocation: {
5695
6563
  "file": "packages/dsh-qa-integrations/src/index.ts",
5696
- "line": 325,
6564
+ "line": 408,
5697
6565
  "column": 3
5698
6566
  }
5699
6567
  },
@@ -5720,7 +6588,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5720
6588
  },
5721
6589
  sourceLocation: {
5722
6590
  "file": "packages/dsh-qa-integrations/src/index.ts",
5723
- "line": 496,
6591
+ "line": 588,
5724
6592
  "column": 3
5725
6593
  }
5726
6594
  },
@@ -5747,15 +6615,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5747
6615
  },
5748
6616
  sourceLocation: {
5749
6617
  "file": "packages/dsh-qa-integrations/src/index.ts",
5750
- "line": 440,
6618
+ "line": 532,
5751
6619
  "column": 3
5752
6620
  }
5753
6621
  },
5754
6622
  {
5755
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/getBitrix24",
6623
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/disconnectTestit",
5756
6624
  service: "qaIntegrations",
5757
6625
  namespace: "qaIntegrations",
5758
- method: "getBitrix24",
6626
+ method: "disconnectTestit",
5759
6627
  invocation: { kind: "direct" },
5760
6628
  parameters: [{
5761
6629
  name: "token",
@@ -5763,26 +6631,53 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5763
6631
  source: "json",
5764
6632
  codec: {
5765
6633
  mode: "strict",
5766
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/getBitrix24:token",
5767
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_getBitrix24_parameter_0$schema
6634
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/disconnectTestit:token",
6635
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_disconnectTestit_parameter_0$schema
5768
6636
  }
5769
6637
  }],
5770
6638
  result: {
5771
6639
  mode: "strict",
5772
- typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
5773
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_getBitrix24_result$schema
6640
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/disconnectTestit:result",
6641
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_disconnectTestit_result$schema
5774
6642
  },
5775
6643
  sourceLocation: {
5776
6644
  "file": "packages/dsh-qa-integrations/src/index.ts",
5777
- "line": 243,
6645
+ "line": 639,
5778
6646
  "column": 3
5779
6647
  }
5780
6648
  },
5781
6649
  {
5782
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/getConfluence",
6650
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/disconnectWeblate",
5783
6651
  service: "qaIntegrations",
5784
6652
  namespace: "qaIntegrations",
5785
- method: "getConfluence",
6653
+ method: "disconnectWeblate",
6654
+ invocation: { kind: "direct" },
6655
+ parameters: [{
6656
+ name: "token",
6657
+ wire: "token",
6658
+ source: "json",
6659
+ codec: {
6660
+ mode: "strict",
6661
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/disconnectWeblate:token",
6662
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_disconnectWeblate_parameter_0$schema
6663
+ }
6664
+ }],
6665
+ result: {
6666
+ mode: "strict",
6667
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/disconnectWeblate:result",
6668
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_disconnectWeblate_result$schema
6669
+ },
6670
+ sourceLocation: {
6671
+ "file": "packages/dsh-qa-integrations/src/index.ts",
6672
+ "line": 690,
6673
+ "column": 3
6674
+ }
6675
+ },
6676
+ {
6677
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/getBitrix24",
6678
+ service: "qaIntegrations",
6679
+ namespace: "qaIntegrations",
6680
+ method: "getBitrix24",
5786
6681
  invocation: { kind: "direct" },
5787
6682
  parameters: [{
5788
6683
  name: "token",
@@ -5790,26 +6685,440 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5790
6685
  source: "json",
5791
6686
  codec: {
5792
6687
  mode: "strict",
5793
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/getConfluence:token",
5794
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_getConfluence_parameter_0$schema
6688
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/getBitrix24:token",
6689
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_getBitrix24_parameter_0$schema
6690
+ }
6691
+ }],
6692
+ result: {
6693
+ mode: "strict",
6694
+ typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
6695
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_getBitrix24_result$schema
6696
+ },
6697
+ sourceLocation: {
6698
+ "file": "packages/dsh-qa-integrations/src/index.ts",
6699
+ "line": 316,
6700
+ "column": 3
6701
+ }
6702
+ },
6703
+ {
6704
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/getConfluence",
6705
+ service: "qaIntegrations",
6706
+ namespace: "qaIntegrations",
6707
+ method: "getConfluence",
6708
+ invocation: { kind: "direct" },
6709
+ parameters: [{
6710
+ name: "token",
6711
+ wire: "token",
6712
+ source: "json",
6713
+ codec: {
6714
+ mode: "strict",
6715
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/getConfluence:token",
6716
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_getConfluence_parameter_0$schema
6717
+ }
6718
+ }],
6719
+ result: {
6720
+ mode: "strict",
6721
+ typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
6722
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_getConfluence_result$schema
6723
+ },
6724
+ sourceLocation: {
6725
+ "file": "packages/dsh-qa-integrations/src/index.ts",
6726
+ "line": 425,
6727
+ "column": 3
6728
+ }
6729
+ },
6730
+ {
6731
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/getGitlab",
6732
+ service: "qaIntegrations",
6733
+ namespace: "qaIntegrations",
6734
+ method: "getGitlab",
6735
+ invocation: { kind: "direct" },
6736
+ parameters: [{
6737
+ name: "token",
6738
+ wire: "token",
6739
+ source: "json",
6740
+ codec: {
6741
+ mode: "strict",
6742
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/getGitlab:token",
6743
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_getGitlab_parameter_0$schema
6744
+ }
6745
+ }],
6746
+ result: {
6747
+ mode: "strict",
6748
+ typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
6749
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_getGitlab_result$schema
6750
+ },
6751
+ sourceLocation: {
6752
+ "file": "packages/dsh-qa-integrations/src/index.ts",
6753
+ "line": 364,
6754
+ "column": 3
6755
+ }
6756
+ },
6757
+ {
6758
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/getJira",
6759
+ service: "qaIntegrations",
6760
+ namespace: "qaIntegrations",
6761
+ method: "getJira",
6762
+ invocation: { kind: "direct" },
6763
+ parameters: [{
6764
+ name: "token",
6765
+ wire: "token",
6766
+ source: "json",
6767
+ codec: {
6768
+ mode: "strict",
6769
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/getJira:token",
6770
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_getJira_parameter_0$schema
6771
+ }
6772
+ }],
6773
+ result: {
6774
+ mode: "strict",
6775
+ typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
6776
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_getJira_result$schema
6777
+ },
6778
+ sourceLocation: {
6779
+ "file": "packages/dsh-qa-integrations/src/index.ts",
6780
+ "line": 550,
6781
+ "column": 3
6782
+ }
6783
+ },
6784
+ {
6785
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/getTeamcity",
6786
+ service: "qaIntegrations",
6787
+ namespace: "qaIntegrations",
6788
+ method: "getTeamcity",
6789
+ invocation: { kind: "direct" },
6790
+ parameters: [{
6791
+ name: "token",
6792
+ wire: "token",
6793
+ source: "json",
6794
+ codec: {
6795
+ mode: "strict",
6796
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/getTeamcity:token",
6797
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_getTeamcity_parameter_0$schema
6798
+ }
6799
+ }],
6800
+ result: {
6801
+ mode: "strict",
6802
+ typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
6803
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_getTeamcity_result$schema
6804
+ },
6805
+ sourceLocation: {
6806
+ "file": "packages/dsh-qa-integrations/src/index.ts",
6807
+ "line": 475,
6808
+ "column": 3
6809
+ }
6810
+ },
6811
+ {
6812
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/getTestit",
6813
+ service: "qaIntegrations",
6814
+ namespace: "qaIntegrations",
6815
+ method: "getTestit",
6816
+ invocation: { kind: "direct" },
6817
+ parameters: [{
6818
+ name: "token",
6819
+ wire: "token",
6820
+ source: "json",
6821
+ codec: {
6822
+ mode: "strict",
6823
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/getTestit:token",
6824
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_getTestit_parameter_0$schema
6825
+ }
6826
+ }],
6827
+ result: {
6828
+ mode: "strict",
6829
+ typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
6830
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_getTestit_result$schema
6831
+ },
6832
+ sourceLocation: {
6833
+ "file": "packages/dsh-qa-integrations/src/index.ts",
6834
+ "line": 605,
6835
+ "column": 3
6836
+ }
6837
+ },
6838
+ {
6839
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/getWeblate",
6840
+ service: "qaIntegrations",
6841
+ namespace: "qaIntegrations",
6842
+ method: "getWeblate",
6843
+ invocation: { kind: "direct" },
6844
+ parameters: [{
6845
+ name: "token",
6846
+ wire: "token",
6847
+ source: "json",
6848
+ codec: {
6849
+ mode: "strict",
6850
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/getWeblate:token",
6851
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_getWeblate_parameter_0$schema
6852
+ }
6853
+ }],
6854
+ result: {
6855
+ mode: "strict",
6856
+ typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
6857
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_getWeblate_result$schema
6858
+ },
6859
+ sourceLocation: {
6860
+ "file": "packages/dsh-qa-integrations/src/index.ts",
6861
+ "line": 656,
6862
+ "column": 3
6863
+ }
6864
+ },
6865
+ {
6866
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/gitlabInstances",
6867
+ service: "qaIntegrations",
6868
+ namespace: "qaIntegrations",
6869
+ method: "gitlabInstances",
6870
+ invocation: { kind: "direct" },
6871
+ parameters: [{
6872
+ name: "token",
6873
+ wire: "token",
6874
+ source: "json",
6875
+ codec: {
6876
+ mode: "strict",
6877
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/gitlabInstances:token",
6878
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_gitlabInstances_parameter_0$schema
6879
+ }
6880
+ }],
6881
+ result: {
6882
+ mode: "strict",
6883
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/gitlabInstances:result",
6884
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_gitlabInstances_result$schema
6885
+ },
6886
+ sourceLocation: {
6887
+ "file": "packages/dsh-qa-integrations/src/index.ts",
6888
+ "line": 359,
6889
+ "column": 3
6890
+ }
6891
+ },
6892
+ {
6893
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/jiraSites",
6894
+ service: "qaIntegrations",
6895
+ namespace: "qaIntegrations",
6896
+ method: "jiraSites",
6897
+ invocation: { kind: "direct" },
6898
+ parameters: [{
6899
+ name: "token",
6900
+ wire: "token",
6901
+ source: "json",
6902
+ codec: {
6903
+ mode: "strict",
6904
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/jiraSites:token",
6905
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_jiraSites_parameter_0$schema
6906
+ }
6907
+ }],
6908
+ result: {
6909
+ mode: "strict",
6910
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/jiraSites:result",
6911
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_jiraSites_result$schema
6912
+ },
6913
+ sourceLocation: {
6914
+ "file": "packages/dsh-qa-integrations/src/index.ts",
6915
+ "line": 545,
6916
+ "column": 3
6917
+ }
6918
+ },
6919
+ {
6920
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/list",
6921
+ service: "qaIntegrations",
6922
+ namespace: "qaIntegrations",
6923
+ method: "list",
6924
+ invocation: { kind: "direct" },
6925
+ parameters: [{
6926
+ name: "token",
6927
+ wire: "token",
6928
+ source: "json",
6929
+ codec: {
6930
+ mode: "strict",
6931
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/list:token",
6932
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_list_parameter_0$schema
6933
+ }
6934
+ }],
6935
+ result: {
6936
+ mode: "strict",
6937
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/list:result",
6938
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_list_result$schema
6939
+ },
6940
+ sourceLocation: {
6941
+ "file": "packages/dsh-qa-integrations/src/index.ts",
6942
+ "line": 311,
6943
+ "column": 3
6944
+ }
6945
+ },
6946
+ {
6947
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/managedServiceCredentials",
6948
+ service: "qaIntegrations",
6949
+ namespace: "qaIntegrations",
6950
+ method: "managedServiceCredentials",
6951
+ invocation: { kind: "direct" },
6952
+ parameters: [{
6953
+ name: "token",
6954
+ wire: "token",
6955
+ source: "json",
6956
+ codec: {
6957
+ mode: "strict",
6958
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/managedServiceCredentials:token",
6959
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_managedServiceCredentials_parameter_0$schema
6960
+ }
6961
+ }],
6962
+ result: {
6963
+ mode: "strict",
6964
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/managedServiceCredentials:result",
6965
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_managedServiceCredentials_result$schema
6966
+ },
6967
+ sourceLocation: {
6968
+ "file": "packages/dsh-qa-integrations/src/index.ts",
6969
+ "line": 702,
6970
+ "column": 3
6971
+ }
6972
+ },
6973
+ {
6974
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/patchBitrix24Policy",
6975
+ service: "qaIntegrations",
6976
+ namespace: "qaIntegrations",
6977
+ method: "patchBitrix24Policy",
6978
+ invocation: { kind: "direct" },
6979
+ parameters: [{
6980
+ name: "token",
6981
+ wire: "token",
6982
+ source: "json",
6983
+ codec: {
6984
+ mode: "strict",
6985
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/patchBitrix24Policy:token",
6986
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchBitrix24Policy_parameter_0$schema
6987
+ }
6988
+ }, {
6989
+ name: "patch",
6990
+ wire: "patch",
6991
+ source: "json",
6992
+ codec: {
6993
+ mode: "strict",
6994
+ typeSymbol: "@yadsh/dsh-qa-integrations/types#PolicyPatch",
6995
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchBitrix24Policy_parameter_1$schema
6996
+ }
6997
+ }],
6998
+ result: {
6999
+ mode: "strict",
7000
+ typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
7001
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchBitrix24Policy_result$schema
7002
+ },
7003
+ sourceLocation: {
7004
+ "file": "packages/dsh-qa-integrations/src/index.ts",
7005
+ "line": 340,
7006
+ "column": 3
7007
+ }
7008
+ },
7009
+ {
7010
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/patchConfluencePolicy",
7011
+ service: "qaIntegrations",
7012
+ namespace: "qaIntegrations",
7013
+ method: "patchConfluencePolicy",
7014
+ invocation: { kind: "direct" },
7015
+ parameters: [{
7016
+ name: "token",
7017
+ wire: "token",
7018
+ source: "json",
7019
+ codec: {
7020
+ mode: "strict",
7021
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/patchConfluencePolicy:token",
7022
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchConfluencePolicy_parameter_0$schema
7023
+ }
7024
+ }, {
7025
+ name: "patch",
7026
+ wire: "patch",
7027
+ source: "json",
7028
+ codec: {
7029
+ mode: "strict",
7030
+ typeSymbol: "@yadsh/dsh-qa-integrations/types#PolicyPatch",
7031
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchConfluencePolicy_parameter_1$schema
7032
+ }
7033
+ }],
7034
+ result: {
7035
+ mode: "strict",
7036
+ typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
7037
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchConfluencePolicy_result$schema
7038
+ },
7039
+ sourceLocation: {
7040
+ "file": "packages/dsh-qa-integrations/src/index.ts",
7041
+ "line": 461,
7042
+ "column": 3
7043
+ }
7044
+ },
7045
+ {
7046
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/patchGitlabPolicy",
7047
+ service: "qaIntegrations",
7048
+ namespace: "qaIntegrations",
7049
+ method: "patchGitlabPolicy",
7050
+ invocation: { kind: "direct" },
7051
+ parameters: [{
7052
+ name: "token",
7053
+ wire: "token",
7054
+ source: "json",
7055
+ codec: {
7056
+ mode: "strict",
7057
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/patchGitlabPolicy:token",
7058
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchGitlabPolicy_parameter_0$schema
7059
+ }
7060
+ }, {
7061
+ name: "patch",
7062
+ wire: "patch",
7063
+ source: "json",
7064
+ codec: {
7065
+ mode: "strict",
7066
+ typeSymbol: "@yadsh/dsh-qa-integrations/types#PolicyPatch",
7067
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchGitlabPolicy_parameter_1$schema
7068
+ }
7069
+ }],
7070
+ result: {
7071
+ mode: "strict",
7072
+ typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
7073
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchGitlabPolicy_result$schema
7074
+ },
7075
+ sourceLocation: {
7076
+ "file": "packages/dsh-qa-integrations/src/index.ts",
7077
+ "line": 401,
7078
+ "column": 3
7079
+ }
7080
+ },
7081
+ {
7082
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/patchJiraPolicy",
7083
+ service: "qaIntegrations",
7084
+ namespace: "qaIntegrations",
7085
+ method: "patchJiraPolicy",
7086
+ invocation: { kind: "direct" },
7087
+ parameters: [{
7088
+ name: "token",
7089
+ wire: "token",
7090
+ source: "json",
7091
+ codec: {
7092
+ mode: "strict",
7093
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/patchJiraPolicy:token",
7094
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchJiraPolicy_parameter_0$schema
7095
+ }
7096
+ }, {
7097
+ name: "patch",
7098
+ wire: "patch",
7099
+ source: "json",
7100
+ codec: {
7101
+ mode: "strict",
7102
+ typeSymbol: "@yadsh/dsh-qa-integrations/types#PolicyPatch",
7103
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchJiraPolicy_parameter_1$schema
5795
7104
  }
5796
7105
  }],
5797
7106
  result: {
5798
7107
  mode: "strict",
5799
7108
  typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
5800
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_getConfluence_result$schema
7109
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchJiraPolicy_result$schema
5801
7110
  },
5802
7111
  sourceLocation: {
5803
7112
  "file": "packages/dsh-qa-integrations/src/index.ts",
5804
- "line": 342,
7113
+ "line": 581,
5805
7114
  "column": 3
5806
7115
  }
5807
7116
  },
5808
7117
  {
5809
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/getGitlab",
7118
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/patchTeamcityPolicy",
5810
7119
  service: "qaIntegrations",
5811
7120
  namespace: "qaIntegrations",
5812
- method: "getGitlab",
7121
+ method: "patchTeamcityPolicy",
5813
7122
  invocation: { kind: "direct" },
5814
7123
  parameters: [{
5815
7124
  name: "token",
@@ -5817,26 +7126,35 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5817
7126
  source: "json",
5818
7127
  codec: {
5819
7128
  mode: "strict",
5820
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/getGitlab:token",
5821
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_getGitlab_parameter_0$schema
7129
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/patchTeamcityPolicy:token",
7130
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchTeamcityPolicy_parameter_0$schema
7131
+ }
7132
+ }, {
7133
+ name: "patch",
7134
+ wire: "patch",
7135
+ source: "json",
7136
+ codec: {
7137
+ mode: "strict",
7138
+ typeSymbol: "@yadsh/dsh-qa-integrations/types#PolicyPatch",
7139
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchTeamcityPolicy_parameter_1$schema
5822
7140
  }
5823
7141
  }],
5824
7142
  result: {
5825
7143
  mode: "strict",
5826
7144
  typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
5827
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_getGitlab_result$schema
7145
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchTeamcityPolicy_result$schema
5828
7146
  },
5829
7147
  sourceLocation: {
5830
7148
  "file": "packages/dsh-qa-integrations/src/index.ts",
5831
- "line": 291,
7149
+ "line": 525,
5832
7150
  "column": 3
5833
7151
  }
5834
7152
  },
5835
7153
  {
5836
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/getJira",
7154
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/patchTestitPolicy",
5837
7155
  service: "qaIntegrations",
5838
7156
  namespace: "qaIntegrations",
5839
- method: "getJira",
7157
+ method: "patchTestitPolicy",
5840
7158
  invocation: { kind: "direct" },
5841
7159
  parameters: [{
5842
7160
  name: "token",
@@ -5844,26 +7162,35 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5844
7162
  source: "json",
5845
7163
  codec: {
5846
7164
  mode: "strict",
5847
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/getJira:token",
5848
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_getJira_parameter_0$schema
7165
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/patchTestitPolicy:token",
7166
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchTestitPolicy_parameter_0$schema
7167
+ }
7168
+ }, {
7169
+ name: "patch",
7170
+ wire: "patch",
7171
+ source: "json",
7172
+ codec: {
7173
+ mode: "strict",
7174
+ typeSymbol: "@yadsh/dsh-qa-integrations/types#PolicyPatch",
7175
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchTestitPolicy_parameter_1$schema
5849
7176
  }
5850
7177
  }],
5851
7178
  result: {
5852
7179
  mode: "strict",
5853
7180
  typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
5854
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_getJira_result$schema
7181
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchTestitPolicy_result$schema
5855
7182
  },
5856
7183
  sourceLocation: {
5857
7184
  "file": "packages/dsh-qa-integrations/src/index.ts",
5858
- "line": 458,
7185
+ "line": 632,
5859
7186
  "column": 3
5860
7187
  }
5861
7188
  },
5862
7189
  {
5863
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/getTeamcity",
7190
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/patchWeblatePolicy",
5864
7191
  service: "qaIntegrations",
5865
7192
  namespace: "qaIntegrations",
5866
- method: "getTeamcity",
7193
+ method: "patchWeblatePolicy",
5867
7194
  invocation: { kind: "direct" },
5868
7195
  parameters: [{
5869
7196
  name: "token",
@@ -5871,26 +7198,35 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5871
7198
  source: "json",
5872
7199
  codec: {
5873
7200
  mode: "strict",
5874
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/getTeamcity:token",
5875
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_getTeamcity_parameter_0$schema
7201
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/patchWeblatePolicy:token",
7202
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchWeblatePolicy_parameter_0$schema
7203
+ }
7204
+ }, {
7205
+ name: "patch",
7206
+ wire: "patch",
7207
+ source: "json",
7208
+ codec: {
7209
+ mode: "strict",
7210
+ typeSymbol: "@yadsh/dsh-qa-integrations/types#PolicyPatch",
7211
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchWeblatePolicy_parameter_1$schema
5876
7212
  }
5877
7213
  }],
5878
7214
  result: {
5879
7215
  mode: "strict",
5880
7216
  typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
5881
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_getTeamcity_result$schema
7217
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchWeblatePolicy_result$schema
5882
7218
  },
5883
7219
  sourceLocation: {
5884
7220
  "file": "packages/dsh-qa-integrations/src/index.ts",
5885
- "line": 392,
7221
+ "line": 683,
5886
7222
  "column": 3
5887
7223
  }
5888
7224
  },
5889
7225
  {
5890
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/gitlabInstances",
7226
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/providers",
5891
7227
  service: "qaIntegrations",
5892
7228
  namespace: "qaIntegrations",
5893
- method: "gitlabInstances",
7229
+ method: "providers",
5894
7230
  invocation: { kind: "direct" },
5895
7231
  parameters: [{
5896
7232
  name: "token",
@@ -5898,26 +7234,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5898
7234
  source: "json",
5899
7235
  codec: {
5900
7236
  mode: "strict",
5901
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/gitlabInstances:token",
5902
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_gitlabInstances_parameter_0$schema
7237
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/providers:token",
7238
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_providers_parameter_0$schema
5903
7239
  }
5904
7240
  }],
5905
7241
  result: {
5906
7242
  mode: "strict",
5907
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/gitlabInstances:result",
5908
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_gitlabInstances_result$schema
7243
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/providers:result",
7244
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_providers_result$schema
5909
7245
  },
5910
7246
  sourceLocation: {
5911
7247
  "file": "packages/dsh-qa-integrations/src/index.ts",
5912
- "line": 286,
7248
+ "line": 306,
5913
7249
  "column": 3
5914
7250
  }
5915
7251
  },
5916
7252
  {
5917
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/jiraSites",
7253
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/putBitrix24Credential",
5918
7254
  service: "qaIntegrations",
5919
7255
  namespace: "qaIntegrations",
5920
- method: "jiraSites",
7256
+ method: "putBitrix24Credential",
5921
7257
  invocation: { kind: "direct" },
5922
7258
  parameters: [{
5923
7259
  name: "token",
@@ -5925,26 +7261,35 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5925
7261
  source: "json",
5926
7262
  codec: {
5927
7263
  mode: "strict",
5928
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/jiraSites:token",
5929
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_jiraSites_parameter_0$schema
7264
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/putBitrix24Credential:token",
7265
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_putBitrix24Credential_parameter_0$schema
7266
+ }
7267
+ }, {
7268
+ name: "input",
7269
+ wire: "input",
7270
+ source: "json",
7271
+ codec: {
7272
+ mode: "strict",
7273
+ typeSymbol: "@yadsh/dsh-qa-integrations/types#CredentialInput",
7274
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_putBitrix24Credential_parameter_1$schema
5930
7275
  }
5931
7276
  }],
5932
7277
  result: {
5933
7278
  mode: "strict",
5934
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/jiraSites:result",
5935
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_jiraSites_result$schema
7279
+ typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
7280
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_putBitrix24Credential_result$schema
5936
7281
  },
5937
7282
  sourceLocation: {
5938
7283
  "file": "packages/dsh-qa-integrations/src/index.ts",
5939
- "line": 453,
5940
- "column": 3
7284
+ "line": 323,
7285
+ "column": 9
5941
7286
  }
5942
7287
  },
5943
7288
  {
5944
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/list",
7289
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/putConfluenceCredential",
5945
7290
  service: "qaIntegrations",
5946
7291
  namespace: "qaIntegrations",
5947
- method: "list",
7292
+ method: "putConfluenceCredential",
5948
7293
  invocation: { kind: "direct" },
5949
7294
  parameters: [{
5950
7295
  name: "token",
@@ -5952,26 +7297,35 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5952
7297
  source: "json",
5953
7298
  codec: {
5954
7299
  mode: "strict",
5955
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/list:token",
5956
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_list_parameter_0$schema
7300
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/putConfluenceCredential:token",
7301
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_putConfluenceCredential_parameter_0$schema
7302
+ }
7303
+ }, {
7304
+ name: "input",
7305
+ wire: "input",
7306
+ source: "json",
7307
+ codec: {
7308
+ mode: "strict",
7309
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/putConfluenceCredential:input",
7310
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_putConfluenceCredential_parameter_1$schema
5957
7311
  }
5958
7312
  }],
5959
7313
  result: {
5960
7314
  mode: "strict",
5961
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/list:result",
5962
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_list_result$schema
7315
+ typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
7316
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_putConfluenceCredential_result$schema
5963
7317
  },
5964
7318
  sourceLocation: {
5965
7319
  "file": "packages/dsh-qa-integrations/src/index.ts",
5966
- "line": 238,
5967
- "column": 3
7320
+ "line": 437,
7321
+ "column": 9
5968
7322
  }
5969
7323
  },
5970
7324
  {
5971
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/patchBitrix24Policy",
7325
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/putGitlabCredential",
5972
7326
  service: "qaIntegrations",
5973
7327
  namespace: "qaIntegrations",
5974
- method: "patchBitrix24Policy",
7328
+ method: "putGitlabCredential",
5975
7329
  invocation: { kind: "direct" },
5976
7330
  parameters: [{
5977
7331
  name: "token",
@@ -5979,35 +7333,35 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5979
7333
  source: "json",
5980
7334
  codec: {
5981
7335
  mode: "strict",
5982
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/patchBitrix24Policy:token",
5983
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchBitrix24Policy_parameter_0$schema
7336
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/putGitlabCredential:token",
7337
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_putGitlabCredential_parameter_0$schema
5984
7338
  }
5985
7339
  }, {
5986
- name: "patch",
5987
- wire: "patch",
7340
+ name: "input",
7341
+ wire: "input",
5988
7342
  source: "json",
5989
7343
  codec: {
5990
7344
  mode: "strict",
5991
- typeSymbol: "@yadsh/dsh-qa-integrations/types#PolicyPatch",
5992
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchBitrix24Policy_parameter_1$schema
7345
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/putGitlabCredential:input",
7346
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_putGitlabCredential_parameter_1$schema
5993
7347
  }
5994
7348
  }],
5995
7349
  result: {
5996
7350
  mode: "strict",
5997
7351
  typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
5998
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchBitrix24Policy_result$schema
7352
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_putGitlabCredential_result$schema
5999
7353
  },
6000
7354
  sourceLocation: {
6001
7355
  "file": "packages/dsh-qa-integrations/src/index.ts",
6002
- "line": 267,
6003
- "column": 3
7356
+ "line": 371,
7357
+ "column": 9
6004
7358
  }
6005
7359
  },
6006
7360
  {
6007
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/patchConfluencePolicy",
7361
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/putJiraCredential",
6008
7362
  service: "qaIntegrations",
6009
7363
  namespace: "qaIntegrations",
6010
- method: "patchConfluencePolicy",
7364
+ method: "putJiraCredential",
6011
7365
  invocation: { kind: "direct" },
6012
7366
  parameters: [{
6013
7367
  name: "token",
@@ -6015,35 +7369,35 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6015
7369
  source: "json",
6016
7370
  codec: {
6017
7371
  mode: "strict",
6018
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/patchConfluencePolicy:token",
6019
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchConfluencePolicy_parameter_0$schema
7372
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/putJiraCredential:token",
7373
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_putJiraCredential_parameter_0$schema
6020
7374
  }
6021
7375
  }, {
6022
- name: "patch",
6023
- wire: "patch",
7376
+ name: "input",
7377
+ wire: "input",
6024
7378
  source: "json",
6025
7379
  codec: {
6026
7380
  mode: "strict",
6027
- typeSymbol: "@yadsh/dsh-qa-integrations/types#PolicyPatch",
6028
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchConfluencePolicy_parameter_1$schema
7381
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/putJiraCredential:input",
7382
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_putJiraCredential_parameter_1$schema
6029
7383
  }
6030
7384
  }],
6031
7385
  result: {
6032
7386
  mode: "strict",
6033
7387
  typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
6034
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchConfluencePolicy_result$schema
7388
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_putJiraCredential_result$schema
6035
7389
  },
6036
7390
  sourceLocation: {
6037
7391
  "file": "packages/dsh-qa-integrations/src/index.ts",
6038
- "line": 378,
6039
- "column": 3
7392
+ "line": 557,
7393
+ "column": 9
6040
7394
  }
6041
7395
  },
6042
7396
  {
6043
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/patchGitlabPolicy",
7397
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/putTeamcityCredential",
6044
7398
  service: "qaIntegrations",
6045
7399
  namespace: "qaIntegrations",
6046
- method: "patchGitlabPolicy",
7400
+ method: "putTeamcityCredential",
6047
7401
  invocation: { kind: "direct" },
6048
7402
  parameters: [{
6049
7403
  name: "token",
@@ -6051,35 +7405,35 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6051
7405
  source: "json",
6052
7406
  codec: {
6053
7407
  mode: "strict",
6054
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/patchGitlabPolicy:token",
6055
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchGitlabPolicy_parameter_0$schema
7408
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/putTeamcityCredential:token",
7409
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_putTeamcityCredential_parameter_0$schema
6056
7410
  }
6057
7411
  }, {
6058
- name: "patch",
6059
- wire: "patch",
7412
+ name: "input",
7413
+ wire: "input",
6060
7414
  source: "json",
6061
7415
  codec: {
6062
7416
  mode: "strict",
6063
- typeSymbol: "@yadsh/dsh-qa-integrations/types#PolicyPatch",
6064
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchGitlabPolicy_parameter_1$schema
7417
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/putTeamcityCredential:input",
7418
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_putTeamcityCredential_parameter_1$schema
6065
7419
  }
6066
7420
  }],
6067
7421
  result: {
6068
7422
  mode: "strict",
6069
7423
  typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
6070
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchGitlabPolicy_result$schema
7424
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_putTeamcityCredential_result$schema
6071
7425
  },
6072
7426
  sourceLocation: {
6073
7427
  "file": "packages/dsh-qa-integrations/src/index.ts",
6074
- "line": 318,
6075
- "column": 3
7428
+ "line": 488,
7429
+ "column": 9
6076
7430
  }
6077
7431
  },
6078
7432
  {
6079
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/patchJiraPolicy",
7433
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/putTestitCredential",
6080
7434
  service: "qaIntegrations",
6081
7435
  namespace: "qaIntegrations",
6082
- method: "patchJiraPolicy",
7436
+ method: "putTestitCredential",
6083
7437
  invocation: { kind: "direct" },
6084
7438
  parameters: [{
6085
7439
  name: "token",
@@ -6087,35 +7441,35 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6087
7441
  source: "json",
6088
7442
  codec: {
6089
7443
  mode: "strict",
6090
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/patchJiraPolicy:token",
6091
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchJiraPolicy_parameter_0$schema
7444
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/putTestitCredential:token",
7445
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_putTestitCredential_parameter_0$schema
6092
7446
  }
6093
7447
  }, {
6094
- name: "patch",
6095
- wire: "patch",
7448
+ name: "input",
7449
+ wire: "input",
6096
7450
  source: "json",
6097
7451
  codec: {
6098
7452
  mode: "strict",
6099
- typeSymbol: "@yadsh/dsh-qa-integrations/types#PolicyPatch",
6100
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchJiraPolicy_parameter_1$schema
7453
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/putTestitCredential:input",
7454
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_putTestitCredential_parameter_1$schema
6101
7455
  }
6102
7456
  }],
6103
7457
  result: {
6104
7458
  mode: "strict",
6105
7459
  typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
6106
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchJiraPolicy_result$schema
7460
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_putTestitCredential_result$schema
6107
7461
  },
6108
7462
  sourceLocation: {
6109
7463
  "file": "packages/dsh-qa-integrations/src/index.ts",
6110
- "line": 489,
6111
- "column": 3
7464
+ "line": 612,
7465
+ "column": 9
6112
7466
  }
6113
7467
  },
6114
7468
  {
6115
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/patchTeamcityPolicy",
7469
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/putWeblateCredential",
6116
7470
  service: "qaIntegrations",
6117
7471
  namespace: "qaIntegrations",
6118
- method: "patchTeamcityPolicy",
7472
+ method: "putWeblateCredential",
6119
7473
  invocation: { kind: "direct" },
6120
7474
  parameters: [{
6121
7475
  name: "token",
@@ -6123,35 +7477,35 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6123
7477
  source: "json",
6124
7478
  codec: {
6125
7479
  mode: "strict",
6126
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/patchTeamcityPolicy:token",
6127
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchTeamcityPolicy_parameter_0$schema
7480
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/putWeblateCredential:token",
7481
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_putWeblateCredential_parameter_0$schema
6128
7482
  }
6129
7483
  }, {
6130
- name: "patch",
6131
- wire: "patch",
7484
+ name: "input",
7485
+ wire: "input",
6132
7486
  source: "json",
6133
7487
  codec: {
6134
7488
  mode: "strict",
6135
- typeSymbol: "@yadsh/dsh-qa-integrations/types#PolicyPatch",
6136
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchTeamcityPolicy_parameter_1$schema
7489
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/putWeblateCredential:input",
7490
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_putWeblateCredential_parameter_1$schema
6137
7491
  }
6138
7492
  }],
6139
7493
  result: {
6140
7494
  mode: "strict",
6141
7495
  typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
6142
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_patchTeamcityPolicy_result$schema
7496
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_putWeblateCredential_result$schema
6143
7497
  },
6144
7498
  sourceLocation: {
6145
7499
  "file": "packages/dsh-qa-integrations/src/index.ts",
6146
- "line": 433,
6147
- "column": 3
7500
+ "line": 663,
7501
+ "column": 9
6148
7502
  }
6149
7503
  },
6150
7504
  {
6151
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/providers",
7505
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/serviceBoundary",
6152
7506
  service: "qaIntegrations",
6153
7507
  namespace: "qaIntegrations",
6154
- method: "providers",
7508
+ method: "serviceBoundary",
6155
7509
  invocation: { kind: "direct" },
6156
7510
  parameters: [{
6157
7511
  name: "token",
@@ -6159,26 +7513,35 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6159
7513
  source: "json",
6160
7514
  codec: {
6161
7515
  mode: "strict",
6162
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/providers:token",
6163
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_providers_parameter_0$schema
7516
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/serviceBoundary:token",
7517
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_serviceBoundary_parameter_0$schema
7518
+ }
7519
+ }, {
7520
+ name: "input",
7521
+ wire: "input",
7522
+ source: "json",
7523
+ codec: {
7524
+ mode: "strict",
7525
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/serviceBoundary:input",
7526
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_serviceBoundary_parameter_1$schema
6164
7527
  }
6165
7528
  }],
6166
7529
  result: {
6167
7530
  mode: "strict",
6168
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/providers:result",
6169
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_providers_result$schema
7531
+ typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
7532
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_serviceBoundary_result$schema
6170
7533
  },
6171
7534
  sourceLocation: {
6172
7535
  "file": "packages/dsh-qa-integrations/src/index.ts",
6173
- "line": 233,
7536
+ "line": 736,
6174
7537
  "column": 3
6175
7538
  }
6176
7539
  },
6177
7540
  {
6178
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/putBitrix24Credential",
7541
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/serviceHealth",
6179
7542
  service: "qaIntegrations",
6180
7543
  namespace: "qaIntegrations",
6181
- method: "putBitrix24Credential",
7544
+ method: "serviceHealth",
6182
7545
  invocation: { kind: "direct" },
6183
7546
  parameters: [{
6184
7547
  name: "token",
@@ -6186,8 +7549,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6186
7549
  source: "json",
6187
7550
  codec: {
6188
7551
  mode: "strict",
6189
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/putBitrix24Credential:token",
6190
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_putBitrix24Credential_parameter_0$schema
7552
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/serviceHealth:token",
7553
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_serviceHealth_parameter_0$schema
6191
7554
  }
6192
7555
  }, {
6193
7556
  name: "input",
@@ -6195,26 +7558,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6195
7558
  source: "json",
6196
7559
  codec: {
6197
7560
  mode: "strict",
6198
- typeSymbol: "@yadsh/dsh-qa-integrations/types#CredentialInput",
6199
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_putBitrix24Credential_parameter_1$schema
7561
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/serviceHealth:input",
7562
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_serviceHealth_parameter_1$schema
6200
7563
  }
6201
7564
  }],
6202
7565
  result: {
6203
7566
  mode: "strict",
6204
- typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
6205
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_putBitrix24Credential_result$schema
7567
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/serviceHealth:result",
7568
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_serviceHealth_result$schema
6206
7569
  },
6207
7570
  sourceLocation: {
6208
7571
  "file": "packages/dsh-qa-integrations/src/index.ts",
6209
- "line": 250,
6210
- "column": 9
7572
+ "line": 757,
7573
+ "column": 3
6211
7574
  }
6212
7575
  },
6213
7576
  {
6214
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/putConfluenceCredential",
7577
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/teamcityServer",
6215
7578
  service: "qaIntegrations",
6216
7579
  namespace: "qaIntegrations",
6217
- method: "putConfluenceCredential",
7580
+ method: "teamcityServer",
6218
7581
  invocation: { kind: "direct" },
6219
7582
  parameters: [{
6220
7583
  name: "token",
@@ -6222,35 +7585,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6222
7585
  source: "json",
6223
7586
  codec: {
6224
7587
  mode: "strict",
6225
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/putConfluenceCredential:token",
6226
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_putConfluenceCredential_parameter_0$schema
6227
- }
6228
- }, {
6229
- name: "input",
6230
- wire: "input",
6231
- source: "json",
6232
- codec: {
6233
- mode: "strict",
6234
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/putConfluenceCredential:input",
6235
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_putConfluenceCredential_parameter_1$schema
7588
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/teamcityServer:token",
7589
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_teamcityServer_parameter_0$schema
6236
7590
  }
6237
7591
  }],
6238
7592
  result: {
6239
7593
  mode: "strict",
6240
- typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
6241
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_putConfluenceCredential_result$schema
7594
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/teamcityServer:result",
7595
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_teamcityServer_result$schema
6242
7596
  },
6243
7597
  sourceLocation: {
6244
7598
  "file": "packages/dsh-qa-integrations/src/index.ts",
6245
- "line": 354,
6246
- "column": 9
7599
+ "line": 513,
7600
+ "column": 3
6247
7601
  }
6248
7602
  },
6249
7603
  {
6250
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/putGitlabCredential",
7604
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/testBitrix24",
6251
7605
  service: "qaIntegrations",
6252
7606
  namespace: "qaIntegrations",
6253
- method: "putGitlabCredential",
7607
+ method: "testBitrix24",
6254
7608
  invocation: { kind: "direct" },
6255
7609
  parameters: [{
6256
7610
  name: "token",
@@ -6258,35 +7612,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6258
7612
  source: "json",
6259
7613
  codec: {
6260
7614
  mode: "strict",
6261
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/putGitlabCredential:token",
6262
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_putGitlabCredential_parameter_0$schema
6263
- }
6264
- }, {
6265
- name: "input",
6266
- wire: "input",
6267
- source: "json",
6268
- codec: {
6269
- mode: "strict",
6270
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/putGitlabCredential:input",
6271
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_putGitlabCredential_parameter_1$schema
7615
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/testBitrix24:token",
7616
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_testBitrix24_parameter_0$schema
6272
7617
  }
6273
7618
  }],
6274
7619
  result: {
6275
7620
  mode: "strict",
6276
7621
  typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
6277
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_putGitlabCredential_result$schema
7622
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_testBitrix24_result$schema
6278
7623
  },
6279
7624
  sourceLocation: {
6280
7625
  "file": "packages/dsh-qa-integrations/src/index.ts",
6281
- "line": 298,
7626
+ "line": 333,
6282
7627
  "column": 9
6283
7628
  }
6284
7629
  },
6285
7630
  {
6286
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/putJiraCredential",
7631
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/testConfluence",
6287
7632
  service: "qaIntegrations",
6288
7633
  namespace: "qaIntegrations",
6289
- method: "putJiraCredential",
7634
+ method: "testConfluence",
6290
7635
  invocation: { kind: "direct" },
6291
7636
  parameters: [{
6292
7637
  name: "token",
@@ -6294,35 +7639,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6294
7639
  source: "json",
6295
7640
  codec: {
6296
7641
  mode: "strict",
6297
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/putJiraCredential:token",
6298
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_putJiraCredential_parameter_0$schema
6299
- }
6300
- }, {
6301
- name: "input",
6302
- wire: "input",
6303
- source: "json",
6304
- codec: {
6305
- mode: "strict",
6306
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/putJiraCredential:input",
6307
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_putJiraCredential_parameter_1$schema
7642
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/testConfluence:token",
7643
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_testConfluence_parameter_0$schema
6308
7644
  }
6309
7645
  }],
6310
7646
  result: {
6311
7647
  mode: "strict",
6312
7648
  typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
6313
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_putJiraCredential_result$schema
7649
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_testConfluence_result$schema
6314
7650
  },
6315
7651
  sourceLocation: {
6316
7652
  "file": "packages/dsh-qa-integrations/src/index.ts",
6317
- "line": 465,
7653
+ "line": 454,
6318
7654
  "column": 9
6319
7655
  }
6320
7656
  },
6321
7657
  {
6322
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/putTeamcityCredential",
7658
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/testGitlab",
6323
7659
  service: "qaIntegrations",
6324
7660
  namespace: "qaIntegrations",
6325
- method: "putTeamcityCredential",
7661
+ method: "testGitlab",
6326
7662
  invocation: { kind: "direct" },
6327
7663
  parameters: [{
6328
7664
  name: "token",
@@ -6330,35 +7666,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6330
7666
  source: "json",
6331
7667
  codec: {
6332
7668
  mode: "strict",
6333
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/putTeamcityCredential:token",
6334
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_putTeamcityCredential_parameter_0$schema
6335
- }
6336
- }, {
6337
- name: "input",
6338
- wire: "input",
6339
- source: "json",
6340
- codec: {
6341
- mode: "strict",
6342
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/putTeamcityCredential:input",
6343
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_putTeamcityCredential_parameter_1$schema
7669
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/testGitlab:token",
7670
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_testGitlab_parameter_0$schema
6344
7671
  }
6345
7672
  }],
6346
7673
  result: {
6347
7674
  mode: "strict",
6348
7675
  typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
6349
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_putTeamcityCredential_result$schema
7676
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_testGitlab_result$schema
6350
7677
  },
6351
7678
  sourceLocation: {
6352
7679
  "file": "packages/dsh-qa-integrations/src/index.ts",
6353
- "line": 405,
7680
+ "line": 394,
6354
7681
  "column": 9
6355
7682
  }
6356
7683
  },
6357
7684
  {
6358
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/teamcityServer",
7685
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/testitInstances",
6359
7686
  service: "qaIntegrations",
6360
7687
  namespace: "qaIntegrations",
6361
- method: "teamcityServer",
7688
+ method: "testitInstances",
6362
7689
  invocation: { kind: "direct" },
6363
7690
  parameters: [{
6364
7691
  name: "token",
@@ -6366,26 +7693,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6366
7693
  source: "json",
6367
7694
  codec: {
6368
7695
  mode: "strict",
6369
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/teamcityServer:token",
6370
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_teamcityServer_parameter_0$schema
7696
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/testitInstances:token",
7697
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_testitInstances_parameter_0$schema
6371
7698
  }
6372
7699
  }],
6373
7700
  result: {
6374
7701
  mode: "strict",
6375
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/teamcityServer:result",
6376
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_teamcityServer_result$schema
7702
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/testitInstances:result",
7703
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_testitInstances_result$schema
6377
7704
  },
6378
7705
  sourceLocation: {
6379
7706
  "file": "packages/dsh-qa-integrations/src/index.ts",
6380
- "line": 421,
7707
+ "line": 600,
6381
7708
  "column": 3
6382
7709
  }
6383
7710
  },
6384
7711
  {
6385
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/testBitrix24",
7712
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/testJira",
6386
7713
  service: "qaIntegrations",
6387
7714
  namespace: "qaIntegrations",
6388
- method: "testBitrix24",
7715
+ method: "testJira",
6389
7716
  invocation: { kind: "direct" },
6390
7717
  parameters: [{
6391
7718
  name: "token",
@@ -6393,26 +7720,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6393
7720
  source: "json",
6394
7721
  codec: {
6395
7722
  mode: "strict",
6396
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/testBitrix24:token",
6397
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_testBitrix24_parameter_0$schema
7723
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/testJira:token",
7724
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_testJira_parameter_0$schema
6398
7725
  }
6399
7726
  }],
6400
7727
  result: {
6401
7728
  mode: "strict",
6402
7729
  typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
6403
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_testBitrix24_result$schema
7730
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_testJira_result$schema
6404
7731
  },
6405
7732
  sourceLocation: {
6406
7733
  "file": "packages/dsh-qa-integrations/src/index.ts",
6407
- "line": 260,
7734
+ "line": 574,
6408
7735
  "column": 9
6409
7736
  }
6410
7737
  },
6411
7738
  {
6412
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/testConfluence",
7739
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/testTeamcity",
6413
7740
  service: "qaIntegrations",
6414
7741
  namespace: "qaIntegrations",
6415
- method: "testConfluence",
7742
+ method: "testTeamcity",
6416
7743
  invocation: { kind: "direct" },
6417
7744
  parameters: [{
6418
7745
  name: "token",
@@ -6420,26 +7747,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6420
7747
  source: "json",
6421
7748
  codec: {
6422
7749
  mode: "strict",
6423
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/testConfluence:token",
6424
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_testConfluence_parameter_0$schema
7750
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/testTeamcity:token",
7751
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_testTeamcity_parameter_0$schema
6425
7752
  }
6426
7753
  }],
6427
7754
  result: {
6428
7755
  mode: "strict",
6429
7756
  typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
6430
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_testConfluence_result$schema
7757
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_testTeamcity_result$schema
6431
7758
  },
6432
7759
  sourceLocation: {
6433
7760
  "file": "packages/dsh-qa-integrations/src/index.ts",
6434
- "line": 371,
7761
+ "line": 518,
6435
7762
  "column": 9
6436
7763
  }
6437
7764
  },
6438
7765
  {
6439
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/testGitlab",
7766
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/testTestit",
6440
7767
  service: "qaIntegrations",
6441
7768
  namespace: "qaIntegrations",
6442
- method: "testGitlab",
7769
+ method: "testTestit",
6443
7770
  invocation: { kind: "direct" },
6444
7771
  parameters: [{
6445
7772
  name: "token",
@@ -6447,26 +7774,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6447
7774
  source: "json",
6448
7775
  codec: {
6449
7776
  mode: "strict",
6450
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/testGitlab:token",
6451
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_testGitlab_parameter_0$schema
7777
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/testTestit:token",
7778
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_testTestit_parameter_0$schema
6452
7779
  }
6453
7780
  }],
6454
7781
  result: {
6455
7782
  mode: "strict",
6456
7783
  typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
6457
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_testGitlab_result$schema
7784
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_testTestit_result$schema
6458
7785
  },
6459
7786
  sourceLocation: {
6460
7787
  "file": "packages/dsh-qa-integrations/src/index.ts",
6461
- "line": 311,
7788
+ "line": 625,
6462
7789
  "column": 9
6463
7790
  }
6464
7791
  },
6465
7792
  {
6466
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/testJira",
7793
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/testWeblate",
6467
7794
  service: "qaIntegrations",
6468
7795
  namespace: "qaIntegrations",
6469
- method: "testJira",
7796
+ method: "testWeblate",
6470
7797
  invocation: { kind: "direct" },
6471
7798
  parameters: [{
6472
7799
  name: "token",
@@ -6474,26 +7801,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6474
7801
  source: "json",
6475
7802
  codec: {
6476
7803
  mode: "strict",
6477
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/testJira:token",
6478
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_testJira_parameter_0$schema
7804
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/testWeblate:token",
7805
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_testWeblate_parameter_0$schema
6479
7806
  }
6480
7807
  }],
6481
7808
  result: {
6482
7809
  mode: "strict",
6483
7810
  typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
6484
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_testJira_result$schema
7811
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_testWeblate_result$schema
6485
7812
  },
6486
7813
  sourceLocation: {
6487
7814
  "file": "packages/dsh-qa-integrations/src/index.ts",
6488
- "line": 482,
7815
+ "line": 676,
6489
7816
  "column": 9
6490
7817
  }
6491
7818
  },
6492
7819
  {
6493
- id: "@yadsh/dsh-qa-integrations#qaIntegrations/testTeamcity",
7820
+ id: "@yadsh/dsh-qa-integrations#qaIntegrations/weblateInstances",
6494
7821
  service: "qaIntegrations",
6495
7822
  namespace: "qaIntegrations",
6496
- method: "testTeamcity",
7823
+ method: "weblateInstances",
6497
7824
  invocation: { kind: "direct" },
6498
7825
  parameters: [{
6499
7826
  name: "token",
@@ -6501,19 +7828,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6501
7828
  source: "json",
6502
7829
  codec: {
6503
7830
  mode: "strict",
6504
- typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/testTeamcity:token",
6505
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_testTeamcity_parameter_0$schema
7831
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/weblateInstances:token",
7832
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_weblateInstances_parameter_0$schema
6506
7833
  }
6507
7834
  }],
6508
7835
  result: {
6509
7836
  mode: "strict",
6510
- typeSymbol: "@yadsh/dsh-qa-integrations/types#IntegrationSummary",
6511
- schema: _yadsh_dsh_qa_integrations_qaIntegrations_testTeamcity_result$schema
7837
+ typeSymbol: "@yadsh/dsh-qa-integrations#qaIntegrations/weblateInstances:result",
7838
+ schema: _yadsh_dsh_qa_integrations_qaIntegrations_weblateInstances_result$schema
6512
7839
  },
6513
7840
  sourceLocation: {
6514
7841
  "file": "packages/dsh-qa-integrations/src/index.ts",
6515
- "line": 426,
6516
- "column": 9
7842
+ "line": 651,
7843
+ "column": 3
6517
7844
  }
6518
7845
  }
6519
7846
  ]
@@ -6539,6 +7866,30 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6539
7866
  .dsh-plugin-card__chevron{width:14px;height:14px;color:var(--dsw-alias-label-tertiary);flex:none;transition:transform .16s}
6540
7867
  .dsh-plugin-card--open .dsh-plugin-card__chevron{transform:rotate(180deg)}
6541
7868
  .dsh-plugin-card__body{border-top:1px solid var(--dsw-alias-border-l2);margin:0 16px;padding-bottom:8px}
7869
+ `;
7870
+ //#endregion
7871
+ //#region ../../packages/plugin-kit/lib/client/credential-help-css.js
7872
+ /**
7873
+ * CSS of the shared credential-help note. Plugins append it next to their own
7874
+ * card rules; like the card shell it uses only canonical `--dsw-alias-*` tokens,
7875
+ * so light, dark and system themes stay coherent.
7876
+ */
7877
+ const CREDENTIAL_HELP_CSS = `
7878
+ .dsh-credential-help{margin:0;font-size:12px;line-height:1.55;display:flex;flex-direction:column;gap:8px}
7879
+ .dsh-credential-help__trigger{appearance:none;width:fit-content;padding:0;border:0;background:0 0;color:var(--dsw-alias-brand-primary);font:inherit;font-size:12px;line-height:1.55;text-align:left;text-decoration:underline;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
7880
+ .dsh-credential-help__trigger:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px;border-radius:4px}
7881
+ .dsh-credential-help__chevron{width:12px;height:12px;flex:none;transition:transform .16s}
7882
+ .dsh-credential-help__trigger[aria-expanded="true"] .dsh-credential-help__chevron{transform:rotate(180deg)}
7883
+ .dsh-credential-help__panel{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:10px;color:var(--dsw-alias-label-secondary)}
7884
+ .dsh-credential-help__title{margin:0;color:var(--dsw-alias-label-primary);font-size:13px;font-weight:600}
7885
+ .dsh-credential-help__text{margin:0}
7886
+ .dsh-credential-help__steps,.dsh-credential-help__list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px}
7887
+ .dsh-credential-help__steps{list-style:decimal}
7888
+ .dsh-credential-help__group{display:flex;flex-direction:column;gap:5px}
7889
+ .dsh-credential-help__label{color:var(--dsw-alias-label-tertiary);font-size:11px;font-weight:600}
7890
+ .dsh-credential-help__links{display:flex;flex-wrap:wrap;gap:12px}
7891
+ .dsh-credential-help__links a,.dsh-credential-help__link{color:var(--dsw-alias-brand-primary);text-decoration:underline}
7892
+ .dsh-credential-help__links a:focus-visible,.dsh-credential-help__link:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px;border-radius:4px}
6542
7893
  `;
6543
7894
  //#endregion
6544
7895
  //#region ../../packages/plugin-kit/lib/client/chevron.js
@@ -6547,10 +7898,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6547
7898
  * 14x14 inline SVG stroked with `currentColor` (round caps and joins).
6548
7899
  * Font glyphs must not be used for this shape — their appearance and
6549
7900
  * baseline vary by font and encoding.
7901
+ *
7902
+ * The shell class is the default; a control outside the card body passes its
7903
+ * own class and keeps this path, so the shape stays one shape across the UI.
6550
7904
  */
6551
- function ChevronDown() {
7905
+ function ChevronDown({ className = "dsh-plugin-card__chevron" } = {}) {
6552
7906
  return (0, react_jsx_runtime.jsx)("svg", {
6553
- className: "dsh-plugin-card__chevron",
7907
+ className,
6554
7908
  viewBox: "0 0 14 14",
6555
7909
  fill: "none",
6556
7910
  "aria-hidden": "true",
@@ -6562,6 +7916,228 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6562
7916
  })
6563
7917
  });
6564
7918
  }
7919
+ Object.freeze([
7920
+ "api-key",
7921
+ "personal-access-token",
7922
+ "oauth",
7923
+ "service-account",
7924
+ "app-password",
7925
+ "custom"
7926
+ ]);
7927
+ /** Hosts a deployment plausibly owns, where an `http:` address may be legitimate. */
7928
+ const PRIVATE_HOST_SUFFIXES = [
7929
+ ".internal",
7930
+ ".intranet",
7931
+ ".corp",
7932
+ ".lan",
7933
+ ".local",
7934
+ ".home.arpa",
7935
+ ".localhost"
7936
+ ];
7937
+ /** Long enough for a deep documentation permalink, short enough to be a typo. */
7938
+ const MAX_URL_LENGTH = 2048;
7939
+ function isPrivateHost(hostname) {
7940
+ const host = hostname.toLowerCase();
7941
+ if (host === "localhost" || host.endsWith(".localhost")) return true;
7942
+ const bare = host.startsWith("[") && host.endsWith("]") ? host.slice(1, -1) : host;
7943
+ if (bare === "::1") return true;
7944
+ if (/^f[cd][0-9a-f]{2}:/u.test(bare) || bare.startsWith("fe80:")) return true;
7945
+ if (PRIVATE_HOST_SUFFIXES.some((suffix) => host.endsWith(suffix))) return true;
7946
+ const parts = bare.split(".");
7947
+ if (parts.length !== 4) return false;
7948
+ const [first, second] = parts;
7949
+ if (first === "10" || first === "127" || first === "169") return first !== "169" || second === "254";
7950
+ if (first === "192") return second === "168";
7951
+ if (first === "172") {
7952
+ const block = Number(second);
7953
+ return Number.isInteger(block) && block >= 16 && block <= 31;
7954
+ }
7955
+ return false;
7956
+ }
7957
+ /**
7958
+ * Canonicalize one help URL, or refuse it. Only `http:` and `https:` survive:
7959
+ * `javascript:`, `data:` and `file:` are the shapes a metadata typo turns into
7960
+ * an injection, and a credential must never end up in the address itself, so an
7961
+ * embedded userinfo or a missing host is refused with them.
7962
+ *
7963
+ * Plain `http:` is kept for loopback, private and self-hosted addresses, where a
7964
+ * deployment may genuinely have no certificate; anything else has to be HTTPS.
7965
+ */
7966
+ function sanitizeCredentialHelpUrl(value, options = {}) {
7967
+ const trimmed = value.trim();
7968
+ if (trimmed === "" || trimmed.length > MAX_URL_LENGTH) return void 0;
7969
+ let url;
7970
+ try {
7971
+ url = new URL(trimmed);
7972
+ } catch {
7973
+ return;
7974
+ }
7975
+ if (url.protocol === "https:") return url.username === "" && url.password === "" ? url.toString() : void 0;
7976
+ if (url.protocol !== "http:") return void 0;
7977
+ if (url.username !== "" || url.password !== "") return void 0;
7978
+ if (options.selfHosted !== true && !isPrivateHost(url.hostname)) return;
7979
+ return url.toString();
7980
+ }
7981
+ //#endregion
7982
+ //#region ../../packages/plugin-kit/lib/client/credential-help.js
7983
+ /**
7984
+ * What each credential mechanism is called in the UI, so a card never says
7985
+ * "Get a token" about an OAuth sign-in or an environment credential. A
7986
+ * deployment that needs other words overrides them in the metadata
7987
+ * (`obtain.label`, `docs.label`) instead of forking the component.
7988
+ */
7989
+ const CREDENTIAL_HELP_ACTIONS = Object.freeze({
7990
+ "api-key": "Создать API-ключ",
7991
+ "personal-access-token": "Создать токен доступа",
7992
+ oauth: "Войти и авторизовать",
7993
+ "service-account": "Создать сервисный аккаунт",
7994
+ "app-password": "Создать пароль приложения",
7995
+ custom: "Как получить доступ"
7996
+ });
7997
+ /** Wording of the trigger when the help carries links but no obtain address. */
7998
+ const SETUP_ACTION = "Как это настроить";
7999
+ const DOCS_LABEL = "Документация";
8000
+ const SCOPES_LABEL = "Требуемые права";
8001
+ function unique(values) {
8002
+ if (values === void 0) return [];
8003
+ const seen = /* @__PURE__ */ new Set();
8004
+ const items = [];
8005
+ for (const value of values) {
8006
+ const trimmed = value.trim();
8007
+ if (trimmed === "" || seen.has(trimmed)) continue;
8008
+ seen.add(trimmed);
8009
+ items.push(trimmed);
8010
+ }
8011
+ return items;
8012
+ }
8013
+ /**
8014
+ * Turn metadata into the view the note renders, or `null` when there is nothing
8015
+ * to say — the plain credential field is then the whole story.
8016
+ *
8017
+ * `translate` resolves `instructionsLocaleKey` in the embedding application's
8018
+ * locale; without one, the inline `instructions` text is used, which keeps the
8019
+ * contract free of prose that would have to be translated inside metadata.
8020
+ */
8021
+ function credentialHelpView(help, translate) {
8022
+ if (help === null || help === void 0) return null;
8023
+ const obtainUrl = sanitizeCredentialHelpUrl(help.obtain?.url ?? "", { selfHosted: help.selfHosted === true });
8024
+ const docsUrl = sanitizeCredentialHelpUrl(help.docs?.url ?? "", { selfHosted: help.selfHosted === true });
8025
+ const obtain = obtainUrl === void 0 ? void 0 : {
8026
+ url: obtainUrl,
8027
+ label: help.obtain?.label?.trim() || CREDENTIAL_HELP_ACTIONS[help.kind]
8028
+ };
8029
+ const docs = docsUrl === void 0 ? void 0 : {
8030
+ url: docsUrl,
8031
+ label: help.docs?.label?.trim() || DOCS_LABEL
8032
+ };
8033
+ if (obtain === void 0 && docs === void 0) {
8034
+ const steps = unique((help.instructions ?? "").split(/\r?\n/u).filter((line) => line !== ""));
8035
+ const scopes = unique(help.scopes);
8036
+ const notes = unique(help.notes);
8037
+ if (steps.length === 0 && scopes.length === 0 && notes.length === 0) return null;
8038
+ return {
8039
+ action: SETUP_ACTION,
8040
+ obtain: void 0,
8041
+ docs: void 0,
8042
+ title: help.label?.trim() || void 0,
8043
+ steps,
8044
+ scopes,
8045
+ notes,
8046
+ expandable: true
8047
+ };
8048
+ }
8049
+ const steps = unique(((help.instructionsLocaleKey === void 0 ? void 0 : translate?.(help.instructionsLocaleKey)) ?? help.instructions ?? "").split(/\r?\n/u).filter((line) => line !== ""));
8050
+ const scopes = unique(help.scopes);
8051
+ const notes = unique(help.notes);
8052
+ return {
8053
+ action: obtain?.label ?? docs?.label ?? SETUP_ACTION,
8054
+ obtain,
8055
+ docs,
8056
+ title: help.label?.trim() || void 0,
8057
+ steps,
8058
+ scopes,
8059
+ notes,
8060
+ expandable: steps.length > 0 || scopes.length > 0 || notes.length > 0 || obtain !== void 0 && docs !== void 0
8061
+ };
8062
+ }
8063
+ function HelpLink({ link, className }) {
8064
+ return (0, react_jsx_runtime.jsx)("a", {
8065
+ ...className === void 0 ? {} : { className },
8066
+ href: link.url,
8067
+ target: "_blank",
8068
+ rel: "noopener noreferrer",
8069
+ children: link.label
8070
+ });
8071
+ }
8072
+ /**
8073
+ * The credential field's helper: where to create the credential, what to grant
8074
+ * it and which documentation describes it. It renders inside any settings card
8075
+ * and carries no state beyond its own disclosure, so a card that has no
8076
+ * metadata simply renders the field it always did.
8077
+ */
8078
+ function CredentialHelpNote({ help, translate, className }) {
8079
+ const [open, setOpen] = (0, react.useState)(false);
8080
+ const panelId = (0, react.useId)();
8081
+ const view = credentialHelpView(help, translate);
8082
+ if (view === null) return null;
8083
+ const root = className === void 0 ? "dsh-credential-help" : `dsh-credential-help ${className}`;
8084
+ if (!view.expandable) {
8085
+ const link = view.obtain ?? view.docs;
8086
+ if (link === void 0) return null;
8087
+ return (0, react_jsx_runtime.jsx)("p", {
8088
+ className: root,
8089
+ children: (0, react_jsx_runtime.jsx)(HelpLink, {
8090
+ link,
8091
+ className: "dsh-credential-help__link"
8092
+ })
8093
+ });
8094
+ }
8095
+ return (0, react_jsx_runtime.jsxs)("div", {
8096
+ className: root,
8097
+ children: [(0, react_jsx_runtime.jsxs)("button", {
8098
+ type: "button",
8099
+ className: "dsh-credential-help__trigger",
8100
+ "aria-expanded": open,
8101
+ "aria-controls": panelId,
8102
+ onClick: () => setOpen(!open),
8103
+ children: [view.action, (0, react_jsx_runtime.jsx)(ChevronDown, { className: "dsh-credential-help__chevron" })]
8104
+ }), open ? (0, react_jsx_runtime.jsxs)("div", {
8105
+ className: "dsh-credential-help__panel",
8106
+ id: panelId,
8107
+ children: [
8108
+ view.title === void 0 ? null : (0, react_jsx_runtime.jsx)("p", {
8109
+ className: "dsh-credential-help__title",
8110
+ children: view.title
8111
+ }),
8112
+ view.steps.length === 1 ? (0, react_jsx_runtime.jsx)("p", {
8113
+ className: "dsh-credential-help__text",
8114
+ children: view.steps[0]
8115
+ }) : view.steps.length > 1 ? (0, react_jsx_runtime.jsx)("ol", {
8116
+ className: "dsh-credential-help__steps",
8117
+ children: view.steps.map((step) => (0, react_jsx_runtime.jsx)("li", { children: step }, step))
8118
+ }) : null,
8119
+ view.scopes.length === 0 ? null : (0, react_jsx_runtime.jsxs)("div", {
8120
+ className: "dsh-credential-help__group",
8121
+ children: [(0, react_jsx_runtime.jsx)("span", {
8122
+ className: "dsh-credential-help__label",
8123
+ children: SCOPES_LABEL
8124
+ }), (0, react_jsx_runtime.jsx)("ul", {
8125
+ className: "dsh-credential-help__list",
8126
+ children: view.scopes.map((scope) => (0, react_jsx_runtime.jsx)("li", { children: scope }, scope))
8127
+ })]
8128
+ }),
8129
+ view.notes.length === 0 ? null : (0, react_jsx_runtime.jsx)("ul", {
8130
+ className: "dsh-credential-help__list",
8131
+ children: view.notes.map((note) => (0, react_jsx_runtime.jsx)("li", { children: note }, note))
8132
+ }),
8133
+ view.obtain === void 0 && view.docs === void 0 ? null : (0, react_jsx_runtime.jsxs)("div", {
8134
+ className: "dsh-credential-help__links",
8135
+ children: [view.obtain === void 0 ? null : (0, react_jsx_runtime.jsx)(HelpLink, { link: view.obtain }), view.docs === void 0 ? null : (0, react_jsx_runtime.jsx)(HelpLink, { link: view.docs })]
8136
+ })
8137
+ ]
8138
+ }) : null]
8139
+ });
8140
+ }
6565
8141
  //#endregion
6566
8142
  //#region ../../packages/plugin-kit/lib/client/card-shell.js
6567
8143
  /**
@@ -6605,73 +8181,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6605
8181
  }) : null]
6606
8182
  });
6607
8183
  }
6608
- function noop() {}
6609
- /**
6610
- * Inject one stylesheet tag for the plugin's card CSS. The tag carries
6611
- * `data-plugin="<pluginName>"` and is guarded against double injection; the
6612
- * returned disposer removes the tag when this call created it. No-op in
6613
- * non-DOM environments (headless bundles, module probes).
6614
- */
6615
- function injectCardStyles(pluginName, css) {
6616
- if (typeof document === "undefined") return noop;
6617
- const selector = `style[data-plugin="${pluginName}"]`;
6618
- if (typeof document.querySelector === "function" && document.querySelector(selector) !== null) return noop;
6619
- const tag = document.createElement("style");
6620
- tag.dataset.plugin = pluginName;
6621
- tag.textContent = css;
6622
- document.head.appendChild(tag);
6623
- return () => {
6624
- tag.remove();
6625
- };
6626
- }
6627
- /**
6628
- * Register the card component into the shared settings-plugins slot. Returns
6629
- * the registration disposer. Use this variant when the plugin drives the
6630
- * slot's inject-factory itself (e.g. to dispose a form controller alongside).
6631
- */
6632
- function registerSettingsSlot(host, options) {
6633
- const slotOptions = {
6634
- name: options.slotName ?? "settings.plugin.item",
6635
- key: options.key,
6636
- ...options.locale === void 0 ? {} : { locale: options.locale },
6637
- ...options.inject === void 0 ? {} : { inject: options.inject }
6638
- };
6639
- return host.slots.register(slotOptions, options.component);
6640
- }
6641
- /**
6642
- * Full bootstrap: inject {@link options.styles} once (when provided), then
6643
- * mount the card into the settings-plugins slot. Returns a disposer removing
6644
- * the slot effect and the injected stylesheet.
6645
- */
6646
- function registerSettingsCard(host, options) {
6647
- const removeStyles = options.styles === void 0 || options.pluginName === void 0 ? void 0 : injectCardStyles(options.pluginName, options.styles);
6648
- const slotName = options.slotName ?? "settings.plugin.item";
6649
- const disposeEffect = host.slots.inject(slotName, () => registerSettingsSlot(host, options));
6650
- return () => {
6651
- disposeEffect();
6652
- removeStyles?.();
6653
- };
6654
- }
6655
- //#endregion
6656
- //#region src/shared/settings.ts
6657
- /**
6658
- * The one place that names the settings namespace. The Host serves the section
6659
- * and the browser card keys on it, so both halves must agree without importing
6660
- * each other (the host entry pulls Node code into the bundle, the card pulls
6661
- * DOM code into the Host).
6662
- * @module shared/settings
6663
- */
6664
- /**
6665
- * Settings namespace of the Integrations card.
6666
- *
6667
- * The Plugins tab dispatches a card by the namespace its Host serves, so the
6668
- * deployment mounts this section to give the browser half a key. It carries no
6669
- * editable value on purpose: the provider switches, the address policy and the
6670
- * vault path are composition-time decisions (`cordis.patch.yml`) that the
6671
- * runtime resolves once at boot, and a settings field the runtime only honored
6672
- * after a restart would read as a save that applied.
6673
- */
6674
- const QA_INTEGRATIONS_SETTINGS_NAMESPACE = "qa-integrations";
6675
8184
  //#endregion
6676
8185
  //#region src/client/copy.ts
6677
8186
  /**
@@ -6689,14 +8198,46 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6689
8198
  }
6690
8199
  //#endregion
6691
8200
  //#region src/client/provider-card.tsx
8201
+ /** Why a capability row is unavailable while a managed credential is in use. */
8202
+ const SERVICE_REASON = Object.freeze({
8203
+ available: "Доступно",
8204
+ sensitive: "Требуется личный аккаунт",
8205
+ unavailable: "Недоступно с сервисным токеном"
8206
+ });
8207
+ /**
8208
+ * The managed-credential block of a connect form: one checkbox, plus what the
8209
+ * mode does and does not give. Rendered by the providers a deployment may
8210
+ * manage a credential for, using the instance the form selected.
8211
+ */
8212
+ function serviceConnectOption(state) {
8213
+ if (state.service === null) return null;
8214
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8215
+ className: "dsh-qa-integrations__section",
8216
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
8217
+ className: "dsh-qa-integrations__check",
8218
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
8219
+ type: "checkbox",
8220
+ checked: state.useService,
8221
+ disabled: state.busy,
8222
+ onChange: (event) => state.setUseService(event.currentTarget.checked)
8223
+ }), "Использовать сервисный токен"]
8224
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
8225
+ className: "dsh-qa-integrations__hint",
8226
+ children: state.useService ? `Сервисный аккаунт: ${state.service.label}. Токен создавать не нужно; сервисный режим даёт только безопасное чтение — изменения, секреты и чувствительные данные недоступны.` : "Подключение под вашим личным аккаунтом: доступны все возможности, которые разрешает ваш токен."
8227
+ })]
8228
+ });
8229
+ }
6692
8230
  function createProviderCard(spec) {
6693
- return function ProviderCard({ token }) {
8231
+ return function ProviderCard({ token, help }) {
6694
8232
  const [summary, setSummary] = (0, react.useState)();
6695
8233
  const [credential, setCredential] = (0, react.useState)("");
6696
8234
  const [busy, setBusy] = (0, react.useState)(false);
6697
8235
  const [error, setError] = (0, react.useState)(null);
6698
8236
  const [replace, setReplace] = (0, react.useState)(false);
6699
8237
  const [confirmDisconnect, setConfirmDisconnect] = (0, react.useState)(false);
8238
+ const [serviceChoice, setServiceChoice] = (0, react.useState)(null);
8239
+ const [serviceDefault, setServiceDefault] = (0, react.useState)(false);
8240
+ const [editingBoundary, setEditingBoundary] = (0, react.useState)(null);
6700
8241
  const extra = spec.useExtra();
6701
8242
  const fail = (0, react.useCallback)((cause) => {
6702
8243
  setError(failureCopy(spec.errorCopy, cause));
@@ -6714,6 +8255,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6714
8255
  extraRef.current = extra;
6715
8256
  const load = (0, react.useCallback)(async () => {
6716
8257
  try {
8258
+ if (spec.serviceDefault !== void 0) try {
8259
+ setServiceDefault(await spec.serviceDefault(token));
8260
+ } catch {
8261
+ setServiceDefault(false);
8262
+ }
6717
8263
  await spec.load({
6718
8264
  token,
6719
8265
  extra: extraRef.current,
@@ -6731,10 +8277,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6731
8277
  (0, react.useEffect)(() => {
6732
8278
  load();
6733
8279
  }, [load]);
8280
+ const service = spec.serviceBinding?.(extra) ?? null;
8281
+ const serviceOffered = service !== null;
8282
+ const fallback = replace ? summary?.credentialSource === "service" : serviceDefault;
8283
+ const wantsService = serviceOffered && (serviceChoice ?? fallback);
6734
8284
  const save = async () => {
6735
8285
  setBusy(true);
6736
8286
  try {
6737
- if (accept(await spec.calls.save(token, credential, extraRef.current))) {
8287
+ if (accept(await spec.calls.save(token, credential, extraRef.current, { useServiceCredential: wantsService }))) {
6738
8288
  setCredential("");
6739
8289
  setReplace(false);
6740
8290
  }
@@ -6767,6 +8317,30 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6767
8317
  setBusy(false);
6768
8318
  }
6769
8319
  };
8320
+ const switchSource = async (source) => {
8321
+ const call = spec.calls.setSource;
8322
+ if (call === void 0) return;
8323
+ setBusy(true);
8324
+ try {
8325
+ accept(await call(token, source));
8326
+ } catch (cause) {
8327
+ fail(cause);
8328
+ } finally {
8329
+ setBusy(false);
8330
+ }
8331
+ };
8332
+ const saveBoundary = async (selection) => {
8333
+ const call = spec.calls.setBoundary;
8334
+ if (call === void 0) return;
8335
+ setBusy(true);
8336
+ try {
8337
+ if (accept(await call(token, selection))) setEditingBoundary(null);
8338
+ } catch (cause) {
8339
+ fail(cause);
8340
+ } finally {
8341
+ setBusy(false);
8342
+ }
8343
+ };
6770
8344
  const disconnect = async () => {
6771
8345
  setBusy(true);
6772
8346
  try {
@@ -6792,6 +8366,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6792
8366
  showCredential,
6793
8367
  credential,
6794
8368
  extra,
8369
+ service,
8370
+ useService: wantsService,
8371
+ setUseService: (value) => setServiceChoice(value),
6795
8372
  setCredential,
6796
8373
  cancelCredential: () => {
6797
8374
  setCredential("");
@@ -6800,11 +8377,23 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6800
8377
  save: () => void save(),
6801
8378
  test: () => void test(),
6802
8379
  patch: (capability, allowed) => void patch(capability, allowed),
8380
+ switchSource: (source) => void switchSource(source),
8381
+ saveBoundary: (selection) => void saveBoundary(selection),
6803
8382
  setConfirmDisconnect,
6804
8383
  disconnect: () => void disconnect(),
6805
8384
  fail,
6806
8385
  accept
6807
8386
  };
8387
+ const serviceMode = summary?.credentialSource === "service";
8388
+ const serviceState = summary?.service;
8389
+ const capabilityNote = (capability) => {
8390
+ if (serviceMode && serviceState !== null && serviceState !== void 0) {
8391
+ const state = serviceState.capabilities[capability];
8392
+ if (state !== void 0 && state !== "available") return SERVICE_REASON[state];
8393
+ }
8394
+ return summary?.capabilities.includes(capability) === true ? "Доступно" : spec.notGrantedText;
8395
+ };
8396
+ const capabilityAllowedInService = (capability) => serviceState?.capabilities[capability] === "available" || serviceState?.capabilities[capability] === void 0;
6808
8397
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("article", {
6809
8398
  className: "dsh-qa-integrations__card",
6810
8399
  children: [
@@ -6834,15 +8423,77 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6834
8423
  className: "dsh-qa-integrations__muted",
6835
8424
  children: ["Последняя успешная проверка: ", dateTime(summary.lastValidatedAt)]
6836
8425
  }),
6837
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
8426
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
6838
8427
  className: "dsh-qa-integrations__muted",
6839
- children: ["Токен настроен · обновлён ", dateTime(summary.credentialUpdatedAt)]
6840
- })
8428
+ children: serviceMode ? "Сервисный аккаунт · управляется администратором" : `Токен настроен · обновлён ${dateTime(summary.credentialUpdatedAt)}`
8429
+ }),
8430
+ summary.errorCode === "ServiceCredentialUnsafeScope" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
8431
+ className: "dsh-qa-integrations__muted",
8432
+ children: "Сервисный токен шире, чем read-only: доступ всё равно ограничен потолком режима, но токен стоит сузить."
8433
+ }) : null
6841
8434
  ]
6842
8435
  }) : null,
6843
- showCredential ? spec.credentialSection(state) : null,
8436
+ showCredential ? spec.credentialSection(state, help ?? null) : null,
6844
8437
  spec.notConfiguredHint?.(state) ?? null,
6845
8438
  connected && !showCredential ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
8439
+ serviceMode ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8440
+ className: "dsh-qa-integrations__section",
8441
+ children: [
8442
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h4", { children: "Режим доступа" }),
8443
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
8444
+ className: "dsh-qa-integrations__muted",
8445
+ children: "Только безопасное чтение: изменения, управление правами и секреты недоступны, даже если сервисный токен их позволяет."
8446
+ }),
8447
+ serviceState?.resources == null ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BoundarySummary, {
8448
+ resources: serviceState.resources,
8449
+ selection: serviceState.selection
8450
+ }),
8451
+ editingBoundary === null ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BoundaryEditor, {
8452
+ resources: serviceState?.resources ?? {},
8453
+ selection: editingBoundary ?? serviceState?.selection ?? null,
8454
+ busy,
8455
+ onChange: setEditingBoundary,
8456
+ onCancel: () => setEditingBoundary(null),
8457
+ onSave: () => void saveBoundary(editingBoundary)
8458
+ }),
8459
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8460
+ className: "dsh-qa-integrations__actions",
8461
+ children: [spec.calls.setBoundary === void 0 || serviceState?.resources == null ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
8462
+ className: "dsh-qa-integrations__button",
8463
+ type: "button",
8464
+ disabled: busy,
8465
+ onClick: () => setEditingBoundary(editingBoundary ?? serviceState.selection ?? {}),
8466
+ children: "Изменить доступ"
8467
+ }), spec.calls.setSource === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
8468
+ className: "dsh-qa-integrations__button",
8469
+ type: "button",
8470
+ disabled: busy,
8471
+ onClick: () => void switchSource("personal"),
8472
+ children: "Использовать личный аккаунт"
8473
+ })]
8474
+ })
8475
+ ]
8476
+ }) : serviceState?.available === true && spec.calls.setSource !== void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8477
+ className: "dsh-qa-integrations__section",
8478
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
8479
+ className: "dsh-qa-integrations__muted",
8480
+ children: [
8481
+ "Этому подключению доступен сервисный токен организации —",
8482
+ " ",
8483
+ serviceState.label ?? "сервисный аккаунт",
8484
+ "."
8485
+ ]
8486
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
8487
+ className: "dsh-qa-integrations__actions",
8488
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
8489
+ className: "dsh-qa-integrations__button",
8490
+ type: "button",
8491
+ disabled: busy,
8492
+ onClick: () => void switchSource("service"),
8493
+ children: "Использовать сервисный токен"
8494
+ })
8495
+ })]
8496
+ }) : null,
6846
8497
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
6847
8498
  className: "dsh-qa-integrations__section",
6848
8499
  children: [
@@ -6855,12 +8506,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6855
8506
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
6856
8507
  type: "checkbox",
6857
8508
  checked: mode === "allow",
6858
- disabled: busy || !granted,
8509
+ disabled: busy || !granted || serviceMode && !capabilityAllowedInService(capability),
6859
8510
  onChange: (event) => state.patch(capability, event.currentTarget.checked)
6860
8511
  }), info.label] }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
6861
8512
  className: "dsh-qa-integrations__muted",
6862
8513
  title: info.hint,
6863
- children: granted ? "Доступно" : spec.notGrantedText
8514
+ children: capabilityNote(capability)
6864
8515
  })]
6865
8516
  }, capability);
6866
8517
  }),
@@ -6937,9 +8588,74 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6937
8588
  });
6938
8589
  };
6939
8590
  }
8591
+ /** How many resources of each kind this connection may read. */
8592
+ function BoundarySummary({ resources, selection }) {
8593
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
8594
+ className: "dsh-qa-integrations__section",
8595
+ children: Object.entries(resources).map(([kind, allowed]) => {
8596
+ const chosen = selection?.[kind] ?? allowed;
8597
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
8598
+ className: "dsh-qa-integrations__muted",
8599
+ children: [
8600
+ kind,
8601
+ ": ",
8602
+ chosen.length,
8603
+ " из ",
8604
+ allowed.length,
8605
+ " доступно этому рабочему пространству"
8606
+ ]
8607
+ }, kind);
8608
+ })
8609
+ });
8610
+ }
8611
+ /**
8612
+ * The user's own narrowing of the deployment's allowlist. Only entries the
8613
+ * administrator listed are offered, and unchecking one stores a smaller list —
8614
+ * the host refuses anything that would grow.
8615
+ */
8616
+ function BoundaryEditor({ resources, selection, busy, onChange, onCancel, onSave }) {
8617
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8618
+ className: "dsh-qa-integrations__notice",
8619
+ children: [Object.entries(resources).map(([kind, allowed]) => {
8620
+ const chosen = new Set(selection?.[kind] ?? allowed);
8621
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h4", { children: kind }), allowed.map((ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
8622
+ className: "dsh-qa-integrations__check",
8623
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
8624
+ type: "checkbox",
8625
+ checked: chosen.has(ref),
8626
+ disabled: busy,
8627
+ onChange: (event) => {
8628
+ const next = new Set(chosen);
8629
+ if (event.currentTarget.checked) next.add(ref);
8630
+ else next.delete(ref);
8631
+ onChange({
8632
+ ...selection ?? resources,
8633
+ [kind]: allowed.filter((entry) => next.has(entry))
8634
+ });
8635
+ }
8636
+ }), ref]
8637
+ }, ref))] }, kind);
8638
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8639
+ className: "dsh-qa-integrations__actions",
8640
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
8641
+ className: "dsh-qa-integrations__button dsh-qa-integrations__button--primary",
8642
+ type: "button",
8643
+ disabled: busy,
8644
+ onClick: onSave,
8645
+ children: "Сохранить доступ"
8646
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
8647
+ className: "dsh-qa-integrations__button",
8648
+ type: "button",
8649
+ disabled: busy,
8650
+ onClick: onCancel,
8651
+ children: "Отмена"
8652
+ })]
8653
+ })]
8654
+ });
8655
+ }
6940
8656
  //#endregion
6941
8657
  //#region src/client/bitrix24.tsx
6942
- const ERROR_COPY$4 = {
8658
+ const ERROR_COPY$6 = {
6943
8659
  PrincipalNotResolved: "Сессия истекла. Войдите заново.",
6944
8660
  InvalidCredential: "Проверьте URL входящего вебхука Bitrix24.",
6945
8661
  ProviderPermissionDenied: "Bitrix24 не разрешил это действие.",
@@ -6953,7 +8669,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6953
8669
  title: "Bitrix24",
6954
8670
  portalFallback: "CRM и чаты вашей компании",
6955
8671
  accountFallback: "Пользователь Bitrix24",
6956
- errorCopy: ERROR_COPY$4,
8672
+ errorCopy: ERROR_COPY$6,
6957
8673
  notGrantedText: "Нет разрешения Bitrix24",
6958
8674
  futurePermissions: ["Отправлять сообщения", "Изменять CRM"],
6959
8675
  useExtra: () => void 0,
@@ -6966,7 +8682,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6966
8682
  patch: (token, patch) => remote.patchBitrix24Policy(token, patch),
6967
8683
  disconnect: (token) => remote.disconnectBitrix24(token)
6968
8684
  },
6969
- credentialSection: (state) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8685
+ credentialSection: (state, help) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
6970
8686
  className: "dsh-qa-integrations__section",
6971
8687
  children: [
6972
8688
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
@@ -6981,6 +8697,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6981
8697
  placeholder: "https://company.bitrix24.ru/rest/…"
6982
8698
  })]
6983
8699
  }),
8700
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CredentialHelpNote, { help }),
6984
8701
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
6985
8702
  className: "dsh-qa-integrations__hint",
6986
8703
  children: "Токен хранится в зашифрованном виде и после сохранения больше не отображается."
@@ -7007,7 +8724,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7007
8724
  }
7008
8725
  //#endregion
7009
8726
  //#region src/client/confluence.tsx
7010
- const ERROR_COPY$3 = {
8727
+ const ERROR_COPY$5 = {
7011
8728
  PrincipalNotResolved: "Сессия истекла. Войдите заново.",
7012
8729
  InvalidCredential: "Проверьте адрес почты Atlassian, API token и выбранный сайт Confluence.",
7013
8730
  ProviderPermissionDenied: "Confluence не разрешил это действие: у аккаунта нет прав на страницу.",
@@ -7020,7 +8737,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7020
8737
  OperationDeniedByPolicy: "Пространство вне списка, разрешённого оператором стенда."
7021
8738
  };
7022
8739
  function createConfluenceCard(remote) {
7023
- return function ConfluenceCard({ token }) {
8740
+ return function ConfluenceCard({ token, help }) {
7024
8741
  const [sites, setSites] = (0, react.useState)([]);
7025
8742
  const [summary, setSummary] = (0, react.useState)();
7026
8743
  const [instanceId, setInstanceId] = (0, react.useState)("");
@@ -7031,7 +8748,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7031
8748
  const [replace, setReplace] = (0, react.useState)(false);
7032
8749
  const [confirmDisconnect, setConfirmDisconnect] = (0, react.useState)(false);
7033
8750
  const fail = (0, react.useCallback)((cause) => {
7034
- setError(failureCopy(ERROR_COPY$3, cause));
8751
+ setError(failureCopy(ERROR_COPY$5, cause));
7035
8752
  }, []);
7036
8753
  const accept = (0, react.useCallback)((result) => {
7037
8754
  if (result.ok) {
@@ -7202,9 +8919,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7202
8919
  placeholder: "ATATT…"
7203
8920
  })]
7204
8921
  }),
8922
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CredentialHelpNote, { help }),
7205
8923
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
7206
8924
  className: "dsh-qa-integrations__hint",
7207
- children: "Почта и токен хранятся в зашифрованном виде и после сохранения больше не отображаются. Возьмите API token аккаунта, от имени которого агент будет читать, и выпустите его в профиле Atlassian."
8925
+ children: "Почта и токен хранятся в зашифрованном виде и после сохранения больше не отображаются."
7208
8926
  }),
7209
8927
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7210
8928
  className: "dsh-qa-integrations__actions",
@@ -7320,7 +9038,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7320
9038
  }
7321
9039
  //#endregion
7322
9040
  //#region src/client/gitlab.tsx
7323
- const ERROR_COPY$2 = {
9041
+ const ERROR_COPY$4 = {
7324
9042
  PrincipalNotResolved: "Сессия истекла. Войдите заново.",
7325
9043
  InvalidCredential: "Проверьте personal access token и выбранный инстанс.",
7326
9044
  ProviderPermissionDenied: "GitLab не разрешил это действие: проверьте права токена.",
@@ -7332,14 +9050,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7332
9050
  RateLimited: "Слишком много запросов. Попробуйте позже.",
7333
9051
  ResultTooLarge: "Ответ GitLab слишком большой для одного запроса.",
7334
9052
  UpstreamTimeout: "GitLab не ответил вовремя. Попробуйте ещё раз.",
7335
- TlsFailure: "Сертификат GitLab не принят стендом. Нужен сертификат, которому доверяет сервер."
9053
+ TlsFailure: "Сертификат GitLab не принят стендом. Нужен сертификат, которому доверяет сервер.",
9054
+ ServiceCredentialUnavailable: "Для этого инстанса администратор не настроил сервисный токен.",
9055
+ ServiceCredentialDisabled: "Сервисный токен этого инстанса отключён администратором.",
9056
+ ServiceCredentialInvalid: "Сервисный токен не подходит для выбранного инстанса. Сообщите администратору.",
9057
+ PersonalCredentialRequired: "Личный токен не сохранён: подключите его, чтобы вернуться к личному аккаунту.",
9058
+ ServiceResourceNotAllowed: "Сервисный токен не даёт доступа к этому проекту. Сузьте доступ в списке или подключите личный аккаунт.",
9059
+ SensitiveReadRequiresPersonalCredential: "Эта операция может содержать личные или чувствительные данные. Подключите личный аккаунт, чтобы использовать её.",
9060
+ OperationNotAllowedWithServiceCredential: "Сервисный режим — только безопасное чтение: изменения недоступны."
7336
9061
  };
7337
9062
  function createGitlabCard(remote) {
7338
9063
  return createProviderCard({
7339
9064
  title: "GitLab",
7340
9065
  portalFallback: "Issues, merge requests и CI вашего GitLab",
7341
9066
  accountFallback: "Пользователь GitLab",
7342
- errorCopy: ERROR_COPY$2,
9067
+ errorCopy: ERROR_COPY$4,
7343
9068
  notGrantedText: "Нет в правах токена",
7344
9069
  futurePermissions: ["Комментарии, задачи и MR на запись"],
7345
9070
  useExtra: () => {
@@ -7361,40 +9086,83 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7361
9086
  accept(await remote.getGitlab(token));
7362
9087
  },
7363
9088
  calls: {
7364
- save: (token, credential, extra) => remote.putGitlabCredential(token, {
9089
+ save: (token, credential, extra, options) => remote.putGitlabCredential(token, {
7365
9090
  instanceId: extra.instanceId,
7366
- token: credential
9091
+ token: credential,
9092
+ useServiceCredential: options.useServiceCredential
7367
9093
  }),
7368
9094
  test: (token) => remote.testGitlab(token),
7369
9095
  patch: (token, patch) => remote.patchGitlabPolicy(token, patch),
7370
- disconnect: (token) => remote.disconnectGitlab(token)
9096
+ disconnect: (token) => remote.disconnectGitlab(token),
9097
+ setSource: (token, source) => remote.credentialSource(token, {
9098
+ provider: "gitlab",
9099
+ source
9100
+ }),
9101
+ setBoundary: (token, selection) => remote.serviceBoundary(token, {
9102
+ provider: "gitlab",
9103
+ selection
9104
+ })
9105
+ },
9106
+ serviceBinding: (extra) => {
9107
+ if (extra.instanceId === "") return extra.instances.length === 1 ? extra.instances[0]?.service ?? null : null;
9108
+ return extra.instances.find((instance) => instance.id === extra.instanceId)?.service ?? null;
7371
9109
  },
7372
- credentialSection: (state) => {
9110
+ serviceDefault: async (token) => {
9111
+ const result = await remote.managedServiceCredentials(token);
9112
+ return result.ok ? result.value.enabled && result.value.defaultForNewConnections : false;
9113
+ },
9114
+ credentialSection: (state, help) => {
7373
9115
  const { instances, instanceId } = state.extra;
7374
9116
  if (!(instances.length > 0)) return null;
7375
9117
  const needsChoice = instances.length > 1;
9118
+ const service = serviceConnectOption(state);
9119
+ const instancePicker = needsChoice ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
9120
+ className: "dsh-qa-integrations__field",
9121
+ children: ["Инстанс GitLab", /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
9122
+ className: "dsh-qa-integrations__input",
9123
+ value: instanceId,
9124
+ disabled: state.busy,
9125
+ onChange: (event) => state.extra.setInstanceId(event.currentTarget.value),
9126
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
9127
+ value: "",
9128
+ children: "Выберите инстанс"
9129
+ }), instances.map((instance) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
9130
+ value: instance.id,
9131
+ children: instance.label
9132
+ }, instance.id))]
9133
+ })]
9134
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
9135
+ className: "dsh-qa-integrations__muted",
9136
+ children: ["Инстанс: ", instances[0]?.label ?? ""]
9137
+ });
9138
+ if (state.useService) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9139
+ className: "dsh-qa-integrations__section",
9140
+ children: [
9141
+ instancePicker,
9142
+ service,
9143
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9144
+ className: "dsh-qa-integrations__actions",
9145
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
9146
+ className: "dsh-qa-integrations__button dsh-qa-integrations__button--primary",
9147
+ type: "button",
9148
+ disabled: state.busy || needsChoice && instanceId === "",
9149
+ onClick: state.save,
9150
+ children: "Подключить сервисный токен"
9151
+ }), state.connected ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
9152
+ className: "dsh-qa-integrations__button",
9153
+ type: "button",
9154
+ disabled: state.busy,
9155
+ onClick: state.cancelCredential,
9156
+ children: "Отмена"
9157
+ }) : null]
9158
+ })
9159
+ ]
9160
+ });
7376
9161
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7377
9162
  className: "dsh-qa-integrations__section",
7378
9163
  children: [
7379
- needsChoice ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
7380
- className: "dsh-qa-integrations__field",
7381
- children: ["Инстанс GitLab", /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
7382
- className: "dsh-qa-integrations__input",
7383
- value: instanceId,
7384
- disabled: state.busy,
7385
- onChange: (event) => state.extra.setInstanceId(event.currentTarget.value),
7386
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
7387
- value: "",
7388
- children: "Выберите инстанс"
7389
- }), instances.map((instance) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
7390
- value: instance.id,
7391
- children: instance.label
7392
- }, instance.id))]
7393
- })]
7394
- }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
7395
- className: "dsh-qa-integrations__muted",
7396
- children: ["Инстанс: ", instances[0]?.label ?? ""]
7397
- }),
9164
+ service,
9165
+ instancePicker,
7398
9166
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
7399
9167
  className: "dsh-qa-integrations__field",
7400
9168
  children: ["Personal access token GitLab", /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
@@ -7407,19 +9175,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7407
9175
  placeholder: "glpat-…"
7408
9176
  })]
7409
9177
  }),
7410
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
9178
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CredentialHelpNote, { help }),
9179
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
7411
9180
  className: "dsh-qa-integrations__hint",
7412
- children: [
7413
- "Токен хранится в зашифрованном виде и после сохранения больше не отображается. Хватит read-scope: ",
7414
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("code", { children: "read_api" }),
7415
- " (или",
7416
- " ",
7417
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("code", { children: "read_user" }),
7418
- " для профиля и ",
7419
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("code", { children: "read_repository" }),
7420
- " ",
7421
- "для кода)."
7422
- ]
9181
+ children: "Токен хранится в зашифрованном виде и после сохранения больше не отображается."
7423
9182
  }),
7424
9183
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7425
9184
  className: "dsh-qa-integrations__actions",
@@ -7448,7 +9207,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7448
9207
  }
7449
9208
  //#endregion
7450
9209
  //#region src/client/jira.tsx
7451
- const ERROR_COPY$1 = {
9210
+ const ERROR_COPY$3 = {
7452
9211
  PrincipalNotResolved: "Сессия истекла. Войдите заново.",
7453
9212
  InvalidCredential: "Проверьте API-токен, e-mail аккаунта Atlassian и выбранный сайт.",
7454
9213
  ProviderPermissionDenied: "Jira не разрешил это действие: задача, проект или поле закрыты правами вашего аккаунта.",
@@ -7463,7 +9222,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7463
9222
  TlsFailure: "Сертификат сайта Jira не принят стендом. Нужен сертификат, которому доверяет сервер."
7464
9223
  };
7465
9224
  function createJiraCard(remote) {
7466
- return function JiraCard({ token }) {
9225
+ return function JiraCard({ token, help }) {
7467
9226
  const [sites, setSites] = (0, react.useState)([]);
7468
9227
  const [summary, setSummary] = (0, react.useState)();
7469
9228
  const [siteId, setSiteId] = (0, react.useState)("");
@@ -7474,7 +9233,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7474
9233
  const [replace, setReplace] = (0, react.useState)(false);
7475
9234
  const [confirmDisconnect, setConfirmDisconnect] = (0, react.useState)(false);
7476
9235
  const fail = (0, react.useCallback)((cause) => {
7477
- setError(failureCopy(ERROR_COPY$1, cause));
9236
+ setError(failureCopy(ERROR_COPY$3, cause));
7478
9237
  }, []);
7479
9238
  const accept = (0, react.useCallback)((result) => {
7480
9239
  if (result.ok) {
@@ -7649,9 +9408,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7649
9408
  placeholder: "ATATT…"
7650
9409
  })]
7651
9410
  }),
9411
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CredentialHelpNote, { help }),
7652
9412
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
7653
9413
  className: "dsh-qa-integrations__hint",
7654
- children: "Создайте API-токен в аккаунте Atlassian (id.atlassian.com → Безопасность → API-токены). Токен действует от вашего имени и наследует ваши права в Jira. Токен и e-mail хранятся в зашифрованном виде и после сохранения не отображаются."
9414
+ children: "Токен и e-mail хранятся в зашифрованном виде и после сохранения не отображаются."
7655
9415
  }),
7656
9416
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7657
9417
  className: "dsh-qa-integrations__actions",
@@ -7767,7 +9527,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7767
9527
  }
7768
9528
  //#endregion
7769
9529
  //#region src/client/teamcity.tsx
7770
- const ERROR_COPY = {
9530
+ const ERROR_COPY$2 = {
7771
9531
  PrincipalNotResolved: "Сессия истекла. Войдите заново.",
7772
9532
  InvalidCredential: "Проверьте access token: адрес TeamCity задаёт оператор стенда.",
7773
9533
  ProviderPermissionDenied: "TeamCity не разрешил это действие: проверьте права токена на нужные проекты.",
@@ -7779,14 +9539,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7779
9539
  RateLimited: "Слишком много запросов. Попробуйте позже.",
7780
9540
  ResultTooLarge: "Ответ TeamCity слишком большой для одного запроса.",
7781
9541
  UpstreamTimeout: "TeamCity не ответил вовремя. Попробуйте ещё раз.",
7782
- TlsFailure: "Сертификат TeamCity не принят стендом. Нужен сертификат, которому доверяет сервер."
9542
+ TlsFailure: "Сертификат TeamCity не принят стендом. Нужен сертификат, которому доверяет сервер.",
9543
+ ServiceCredentialUnavailable: "Администратор не настроил сервисный токен для этого TeamCity.",
9544
+ ServiceCredentialDisabled: "Сервисный токен этого TeamCity отключён администратором.",
9545
+ ServiceCredentialInvalid: "Сервисный токен не подходит для этого TeamCity. Сообщите администратору.",
9546
+ PersonalCredentialRequired: "Личный токен не сохранён: подключите его, чтобы вернуться к личному аккаунту.",
9547
+ ServiceResourceNotAllowed: "Сервисный токен не даёт доступа к этому проекту или сборке. Сузьте доступ в списке, укажите проект или подключите личный аккаунт.",
9548
+ SensitiveReadRequiresPersonalCredential: "Эта операция может содержать личные или чувствительные данные. Подключите личный аккаунт, чтобы использовать её.",
9549
+ OperationNotAllowedWithServiceCredential: "Сервисный режим — только безопасное чтение: изменения недоступны."
7783
9550
  };
7784
9551
  function createTeamcityCard(remote) {
7785
9552
  return createProviderCard({
7786
9553
  title: "TeamCity",
7787
9554
  portalFallback: "Сборки, тесты и причины падений вашего CI",
7788
9555
  accountFallback: "Пользователь TeamCity",
7789
- errorCopy: ERROR_COPY,
9556
+ errorCopy: ERROR_COPY$2,
7790
9557
  notGrantedText: "Выключено оператором стенда",
7791
9558
  futurePermissions: ["Запуск, отмена и комментарии к сборке"],
7792
9559
  useExtra: () => {
@@ -7805,26 +9572,68 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7805
9572
  extra.setServer(address.value);
7806
9573
  accept(await remote.getTeamcity(token));
7807
9574
  },
9575
+ serviceBinding: (extra) => extra.server?.service ?? null,
9576
+ serviceDefault: async (token) => {
9577
+ const result = await remote.managedServiceCredentials(token);
9578
+ return result.ok ? result.value.enabled && result.value.defaultForNewConnections : false;
9579
+ },
7808
9580
  calls: {
7809
- save: (token, credential) => remote.putTeamcityCredential(token, { token: credential }),
9581
+ save: (token, credential, _extra, options) => remote.putTeamcityCredential(token, {
9582
+ token: credential,
9583
+ useServiceCredential: options.useServiceCredential
9584
+ }),
7810
9585
  test: (token) => remote.testTeamcity(token),
7811
9586
  patch: (token, patch) => remote.patchTeamcityPolicy(token, patch),
7812
- disconnect: (token) => remote.disconnectTeamcity(token)
9587
+ disconnect: (token) => remote.disconnectTeamcity(token),
9588
+ setSource: (token, source) => remote.credentialSource(token, {
9589
+ provider: "teamcity",
9590
+ source
9591
+ }),
9592
+ setBoundary: (token, selection) => remote.serviceBoundary(token, {
9593
+ provider: "teamcity",
9594
+ selection
9595
+ })
7813
9596
  },
7814
- credentialSection: (state) => {
9597
+ credentialSection: (state, help) => {
7815
9598
  const server = state.extra.server;
7816
9599
  if (!(server !== null && server !== void 0)) return null;
9600
+ const address = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
9601
+ className: "dsh-qa-integrations__muted",
9602
+ children: [
9603
+ "Адрес TeamCity: ",
9604
+ server.label ?? "",
9605
+ " — задан оператором стенда"
9606
+ ]
9607
+ });
9608
+ const service = serviceConnectOption(state);
9609
+ if (state.useService) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9610
+ className: "dsh-qa-integrations__section",
9611
+ children: [
9612
+ address,
9613
+ service,
9614
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9615
+ className: "dsh-qa-integrations__actions",
9616
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
9617
+ className: "dsh-qa-integrations__button dsh-qa-integrations__button--primary",
9618
+ type: "button",
9619
+ disabled: state.busy,
9620
+ onClick: state.save,
9621
+ children: "Подключить сервисный токен"
9622
+ }), state.connected ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
9623
+ className: "dsh-qa-integrations__button",
9624
+ type: "button",
9625
+ disabled: state.busy,
9626
+ onClick: state.cancelCredential,
9627
+ children: "Отмена"
9628
+ }) : null]
9629
+ })
9630
+ ]
9631
+ });
7817
9632
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7818
9633
  className: "dsh-qa-integrations__section",
7819
9634
  children: [
7820
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
7821
- className: "dsh-qa-integrations__muted",
7822
- children: [
7823
- "Адрес TeamCity: ",
7824
- server.label ?? "",
7825
- " — задан оператором стенда"
7826
- ]
7827
- }),
9635
+ address,
9636
+ service,
7828
9637
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
7829
9638
  className: "dsh-qa-integrations__field",
7830
9639
  children: ["Access token TeamCity", /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
@@ -7836,9 +9645,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7836
9645
  onChange: (event) => state.setCredential(event.currentTarget.value)
7837
9646
  })]
7838
9647
  }),
9648
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CredentialHelpNote, { help }),
7839
9649
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
7840
9650
  className: "dsh-qa-integrations__hint",
7841
- children: "Создайте в TeamCity (Profile → Access Tokens) токен с минимальными правами — «Limit per project» и только на чтение. Токен хранится в зашифрованном виде и после сохранения не отображается."
9651
+ children: "Токен хранится в зашифрованном виде и после сохранения не отображается."
7842
9652
  }),
7843
9653
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7844
9654
  className: "dsh-qa-integrations__actions",
@@ -7866,13 +9676,279 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7866
9676
  });
7867
9677
  }
7868
9678
  //#endregion
9679
+ //#region src/client/testit.tsx
9680
+ const ERROR_COPY$1 = {
9681
+ PrincipalNotResolved: "Сессия истекла. Войдите заново.",
9682
+ InvalidCredential: "Проверьте API-токен Test IT и выбранную инсталляцию: адрес задаёт оператор стенда.",
9683
+ ProviderPermissionDenied: "Test IT не разрешил это действие: у токена нет прав на эти данные.",
9684
+ ProviderUnavailable: "Test IT недоступен с этого стенда. Проверьте адрес, заданный оператором, и сетевую доступность.",
9685
+ IntegrationNotConnected: "Интеграция не подключена.",
9686
+ CredentialExpired: "Срок действия токена истёк. Создайте новый токен.",
9687
+ CredentialRevoked: "Test IT отклонил токен. Создайте новый и замените его.",
9688
+ ResourceNotFound: "Test IT не нашёл ресурс или токен его не видит.",
9689
+ RateLimited: "Слишком много запросов. Попробуйте позже.",
9690
+ ResultTooLarge: "Ответ Test IT слишком большой для одного запроса. Сузьте фильтр или лимит.",
9691
+ UpstreamTimeout: "Test IT не ответил вовремя. Попробуйте ещё раз.",
9692
+ TlsFailure: "Сертификат Test IT не принят стендом. Нужен сертификат, которому доверяет сервер."
9693
+ };
9694
+ function createTestitCard(remote) {
9695
+ return createProviderCard({
9696
+ title: "Test IT",
9697
+ portalFallback: "Тест-кейсы, прогоны и результаты вашей Test IT",
9698
+ accountFallback: "Подключение Test IT",
9699
+ errorCopy: ERROR_COPY$1,
9700
+ notGrantedText: "Выключено оператором стенда",
9701
+ futurePermissions: ["Комментарии, правка тест-кейсов и запуск прогонов"],
9702
+ useExtra: () => {
9703
+ const [instances, setInstances] = (0, react.useState)([]);
9704
+ const [instanceId, setInstanceId] = (0, react.useState)("");
9705
+ return {
9706
+ instances,
9707
+ setInstances,
9708
+ instanceId,
9709
+ setInstanceId
9710
+ };
9711
+ },
9712
+ load: async ({ token, extra, accept, fail }) => {
9713
+ const list = await remote.testitInstances(token);
9714
+ if (list.ok) {
9715
+ extra.setInstances(list.value);
9716
+ extra.setInstanceId(list.value.length === 1 ? list.value[0]?.id ?? "" : "");
9717
+ } else fail(list.error);
9718
+ accept(await remote.getTestit(token));
9719
+ },
9720
+ calls: {
9721
+ save: (token, credential, extra) => remote.putTestitCredential(token, {
9722
+ instanceId: extra.instanceId,
9723
+ token: credential
9724
+ }),
9725
+ test: (token) => remote.testTestit(token),
9726
+ patch: (token, patch) => remote.patchTestitPolicy(token, patch),
9727
+ disconnect: (token) => remote.disconnectTestit(token)
9728
+ },
9729
+ credentialSection: (state, help) => {
9730
+ const { instances, instanceId } = state.extra;
9731
+ if (!(instances.length > 0)) return null;
9732
+ const needsChoice = instances.length > 1;
9733
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9734
+ className: "dsh-qa-integrations__section",
9735
+ children: [
9736
+ needsChoice ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
9737
+ className: "dsh-qa-integrations__field",
9738
+ children: ["Инсталляция Test IT", /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
9739
+ className: "dsh-qa-integrations__input",
9740
+ value: instanceId,
9741
+ disabled: state.busy,
9742
+ onChange: (event) => state.extra.setInstanceId(event.currentTarget.value),
9743
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
9744
+ value: "",
9745
+ children: "Выберите инсталляцию"
9746
+ }), instances.map((instance) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
9747
+ value: instance.id,
9748
+ children: instance.label
9749
+ }, instance.id))]
9750
+ })]
9751
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
9752
+ className: "dsh-qa-integrations__muted",
9753
+ children: ["Инсталляция: ", instances[0]?.label ?? ""]
9754
+ }),
9755
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
9756
+ className: "dsh-qa-integrations__field",
9757
+ children: ["API-токен Test IT", /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
9758
+ className: "dsh-qa-integrations__input",
9759
+ type: "password",
9760
+ autoComplete: "new-password",
9761
+ value: state.credential,
9762
+ disabled: state.busy,
9763
+ onChange: (event) => state.setCredential(event.currentTarget.value),
9764
+ placeholder: "Токен из профиля Test IT"
9765
+ })]
9766
+ }),
9767
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CredentialHelpNote, { help }),
9768
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9769
+ className: "dsh-qa-integrations__hint",
9770
+ children: "Токен хранится в зашифрованном виде и после сохранения больше не отображается."
9771
+ }),
9772
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9773
+ className: "dsh-qa-integrations__actions",
9774
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
9775
+ className: "dsh-qa-integrations__button dsh-qa-integrations__button--primary",
9776
+ type: "button",
9777
+ disabled: state.busy || state.credential.trim() === "" || needsChoice && instanceId === "",
9778
+ onClick: state.save,
9779
+ children: "Сохранить и проверить"
9780
+ }), state.connected ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
9781
+ className: "dsh-qa-integrations__button",
9782
+ type: "button",
9783
+ disabled: state.busy,
9784
+ onClick: state.cancelCredential,
9785
+ children: "Отмена"
9786
+ }) : null]
9787
+ })
9788
+ ]
9789
+ });
9790
+ },
9791
+ notConfiguredHint: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9792
+ className: "dsh-qa-integrations__hint",
9793
+ children: "Оператор не настроил ни одной инсталляции Test IT, подключать нечего."
9794
+ })
9795
+ });
9796
+ }
9797
+ //#endregion
9798
+ //#region src/client/weblate.tsx
9799
+ const ERROR_COPY = {
9800
+ PrincipalNotResolved: "Сессия истекла. Войдите заново.",
9801
+ InvalidCredential: "Проверьте API-токен и выбранный инстанс Weblate.",
9802
+ ProviderPermissionDenied: "Weblate не разрешил это действие: у токена нет прав на проект, компонент или язык.",
9803
+ ProviderUnavailable: "Weblate сейчас недоступен. Попробуйте позже.",
9804
+ IntegrationNotConnected: "Интеграция не подключена.",
9805
+ CredentialExpired: "Срок действия токена истёк. Создайте новый токен.",
9806
+ CredentialRevoked: "Weblate отклонил токен. Создайте новый и замените его здесь.",
9807
+ ResourceNotFound: "Weblate не нашёл ресурс, или токен его не видит, или эта версия Weblate не поддерживает операцию.",
9808
+ RateLimited: "Слишком много запросов. Попробуйте позже.",
9809
+ ResultTooLarge: "Ответ Weblate слишком большой для одного запроса.",
9810
+ UpstreamTimeout: "Weblate не ответил вовремя. Попробуйте ещё раз.",
9811
+ TlsFailure: "Сертификат Weblate не принят стендом. Нужен сертификат, которому доверяет сервер."
9812
+ };
9813
+ function createWeblateCard(remote) {
9814
+ return createProviderCard({
9815
+ title: "Weblate",
9816
+ portalFallback: "Переводы ваших проектов: языки, строки и проверки",
9817
+ accountFallback: "Пользователь Weblate",
9818
+ errorCopy: ERROR_COPY,
9819
+ notGrantedText: "Нет в правах токена",
9820
+ futurePermissions: [
9821
+ "Предложить перевод строки",
9822
+ "Комментировать строку",
9823
+ "Править и утверждать перевод",
9824
+ "Загружать файлы перевода и работать с репозиторием"
9825
+ ],
9826
+ useExtra: () => {
9827
+ const [instances, setInstances] = (0, react.useState)([]);
9828
+ const [instanceId, setInstanceId] = (0, react.useState)("");
9829
+ return {
9830
+ instances,
9831
+ setInstances,
9832
+ instanceId,
9833
+ setInstanceId
9834
+ };
9835
+ },
9836
+ load: async ({ token, extra, accept, fail }) => {
9837
+ const list = await remote.weblateInstances(token);
9838
+ if (list.ok) {
9839
+ extra.setInstances(list.value);
9840
+ extra.setInstanceId(list.value.length === 1 ? list.value[0]?.id ?? "" : "");
9841
+ } else fail(list.error);
9842
+ accept(await remote.getWeblate(token));
9843
+ },
9844
+ calls: {
9845
+ save: (token, credential, extra) => remote.putWeblateCredential(token, {
9846
+ instanceId: extra.instanceId,
9847
+ token: credential
9848
+ }),
9849
+ test: (token) => remote.testWeblate(token),
9850
+ patch: (token, patch) => remote.patchWeblatePolicy(token, patch),
9851
+ disconnect: (token) => remote.disconnectWeblate(token)
9852
+ },
9853
+ credentialSection: (state, help) => {
9854
+ const { instances, instanceId } = state.extra;
9855
+ if (!(instances.length > 0)) return null;
9856
+ const needsChoice = instances.length > 1;
9857
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9858
+ className: "dsh-qa-integrations__section",
9859
+ children: [
9860
+ needsChoice ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
9861
+ className: "dsh-qa-integrations__field",
9862
+ children: ["Инстанс Weblate", /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
9863
+ className: "dsh-qa-integrations__input",
9864
+ value: instanceId,
9865
+ disabled: state.busy,
9866
+ onChange: (event) => state.extra.setInstanceId(event.currentTarget.value),
9867
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
9868
+ value: "",
9869
+ children: "Выберите инстанс"
9870
+ }), instances.map((instance) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
9871
+ value: instance.id,
9872
+ children: instance.label
9873
+ }, instance.id))]
9874
+ })]
9875
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
9876
+ className: "dsh-qa-integrations__muted",
9877
+ children: ["Инстанс: ", instances[0]?.label ?? ""]
9878
+ }),
9879
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
9880
+ className: "dsh-qa-integrations__field",
9881
+ children: ["API-токен Weblate", /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
9882
+ className: "dsh-qa-integrations__input",
9883
+ type: "password",
9884
+ autoComplete: "new-password",
9885
+ value: state.credential,
9886
+ disabled: state.busy,
9887
+ onChange: (event) => state.setCredential(event.currentTarget.value),
9888
+ placeholder: "wlu_…"
9889
+ })]
9890
+ }),
9891
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CredentialHelpNote, { help }),
9892
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9893
+ className: "dsh-qa-integrations__hint",
9894
+ children: "Токен хранится в зашифрованном виде и после сохранения больше не отображается."
9895
+ }),
9896
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9897
+ className: "dsh-qa-integrations__actions",
9898
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
9899
+ className: "dsh-qa-integrations__button dsh-qa-integrations__button--primary",
9900
+ type: "button",
9901
+ disabled: state.busy || state.credential.trim() === "" || needsChoice && instanceId === "",
9902
+ onClick: state.save,
9903
+ children: "Сохранить и проверить"
9904
+ }), state.connected ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
9905
+ className: "dsh-qa-integrations__button",
9906
+ type: "button",
9907
+ disabled: state.busy,
9908
+ onClick: state.cancelCredential,
9909
+ children: "Отмена"
9910
+ }) : null]
9911
+ })
9912
+ ]
9913
+ });
9914
+ },
9915
+ notConfiguredHint: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9916
+ className: "dsh-qa-integrations__hint",
9917
+ children: "Оператор не настроил ни одного инстанса Weblate, подключать нечего."
9918
+ })
9919
+ });
9920
+ }
9921
+ //#endregion
7869
9922
  //#region src/client/integrations.tsx
7870
9923
  /** The disclosure that has to stand next to the credentials. */
7871
9924
  const INTEGRATIONS_DISCLOSURE = "Данные, которые агент читает через интеграцию, могут передаваться настроенному для этого чата LLM-провайдеру для выполнения запроса. Секрет подключения в модель не передаётся.";
7872
9925
  /**
9926
+ * Read the credential help once per mount. It is a display-only payload: when
9927
+ * the call fails, or a provider declares none, the cards render their plain
9928
+ * credential fields — which is why nothing here may block the form.
9929
+ */
9930
+ function useCredentialHelp(remote, token) {
9931
+ const [helps, setHelps] = (0, react.useState)(() => /* @__PURE__ */ new Map());
9932
+ const remoteRef = (0, react.useRef)(remote);
9933
+ remoteRef.current = remote;
9934
+ (0, react.useEffect)(() => {
9935
+ let cancelled = false;
9936
+ (async () => {
9937
+ const result = await remoteRef.current.providers(token);
9938
+ if (cancelled || !result.ok) return;
9939
+ setHelps(new Map(result.value.map((provider) => [provider.id, provider.credentialHelp])));
9940
+ })().catch(() => void 0);
9941
+ return () => {
9942
+ cancelled = true;
9943
+ };
9944
+ }, [token]);
9945
+ return helps;
9946
+ }
9947
+ /**
7873
9948
  * One card per provider the deployment mounted. The list comes from the host
7874
9949
  * (`describe`), so a provider the operator switched off simply never renders and
7875
- * the client carries no knowledge of which exist.
9950
+ * the client carries no knowledge of which exist. The credential help each card
9951
+ * shows comes from the same host, per provider.
7876
9952
  *
7877
9953
  * Both mounts share this component: the page of the QA settings dialog, where
7878
9954
  * the account gate lives, and the host's plugin-configuration card.
@@ -7883,13 +9959,40 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7883
9959
  const GitlabCard = createGitlabCard(remote);
7884
9960
  const TeamcityCard = createTeamcityCard(remote);
7885
9961
  const JiraCard = createJiraCard(remote);
9962
+ const TestitCard = createTestitCard(remote);
9963
+ const WeblateCard = createWeblateCard(remote);
7886
9964
  return function ProviderCards({ token, providers }) {
9965
+ const help = useCredentialHelp(remote, token);
9966
+ const helpFor = (id) => help.get(id) ?? null;
7887
9967
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
7888
- providers.includes("bitrix24") ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Bitrix24Card, { token }) : null,
7889
- providers.includes("confluence") ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ConfluenceCard, { token }) : null,
7890
- providers.includes("gitlab") ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GitlabCard, { token }) : null,
7891
- providers.includes("teamcity") ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TeamcityCard, { token }) : null,
7892
- providers.includes("jira") ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(JiraCard, { token }) : null
9968
+ providers.includes("bitrix24") ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Bitrix24Card, {
9969
+ token,
9970
+ help: helpFor("bitrix24")
9971
+ }) : null,
9972
+ providers.includes("confluence") ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ConfluenceCard, {
9973
+ token,
9974
+ help: helpFor("confluence")
9975
+ }) : null,
9976
+ providers.includes("gitlab") ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GitlabCard, {
9977
+ token,
9978
+ help: helpFor("gitlab")
9979
+ }) : null,
9980
+ providers.includes("teamcity") ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TeamcityCard, {
9981
+ token,
9982
+ help: helpFor("teamcity")
9983
+ }) : null,
9984
+ providers.includes("jira") ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(JiraCard, {
9985
+ token,
9986
+ help: helpFor("jira")
9987
+ }) : null,
9988
+ providers.includes("testit") ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TestitCard, {
9989
+ token,
9990
+ help: helpFor("testit")
9991
+ }) : null,
9992
+ providers.includes("weblate") ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(WeblateCard, {
9993
+ token,
9994
+ help: helpFor("weblate")
9995
+ }) : null
7893
9996
  ] });
7894
9997
  };
7895
9998
  }
@@ -7932,7 +10035,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7932
10035
  }
7933
10036
  }
7934
10037
  /**
7935
- * The Integrations card of the host's "Plugin configuration" tab.
10038
+ * The Integrations card shown inside the plugin-owned host settings tab.
7936
10039
  *
7937
10040
  * A connection belongs to a QA account, and the token of that account is the
7938
10041
  * only credential the principal-scoped remotes accept, so the card renders the
@@ -7961,14 +10064,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7961
10064
  });
7962
10065
  };
7963
10066
  }
10067
+ /** Host tab wrapper that preserves the card shell's direct ul > li contract. */
10068
+ function createIntegrationsHostTab(remote, providers, session) {
10069
+ const IntegrationsCard = createIntegrationsCard(remote, providers, session);
10070
+ return function IntegrationsHostTab() {
10071
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
10072
+ className: "dsh-qa-integrations__host-tab",
10073
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IntegrationsCard, {})
10074
+ });
10075
+ };
10076
+ }
7964
10077
  //#endregion
7965
10078
  //#region src/client/styles.ts
7966
10079
  /**
7967
- * The canonical settings-card shell comes from the kit (AGENTS.md pins it), and
7968
- * only what lives inside the card body is this plugin's own: the provider cards
7969
- * the dialog page and the plugin card both mount.
10080
+ * The canonical settings-card shell and the shared credential-help note come
10081
+ * from the kit (AGENTS.md pins the shell), and only the tab list and what lives
10082
+ * inside the card body are this plugin's own: the provider cards the dialog page
10083
+ * and the host tab both mount.
7970
10084
  */
7971
- const styles = `${PLUGIN_CARD_SHELL_CSS}${String.raw`
10085
+ const styles = `${PLUGIN_CARD_SHELL_CSS}${CREDENTIAL_HELP_CSS}${String.raw`
10086
+ .dsh-qa-integrations__host-tab{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;list-style:none}
7972
10087
  .dsh-qa-integrations__body{display:flex;flex-direction:column;gap:16px;padding:16px 0 8px}
7973
10088
  .dsh-qa-integrations{display:flex;flex-direction:column;gap:20px;max-width:760px;color:var(--dsw-alias-label-primary)}
7974
10089
  .dsh-qa-integrations__heading{margin:0;font-size:22px;line-height:1.3}
@@ -7994,6 +10109,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7994
10109
  .dsh-qa-integrations__muted{color:var(--dsw-alias-label-tertiary);font-size:12px}
7995
10110
  .dsh-qa-integrations__error{border:1px solid var(--dsw-alias-state-error-primary);border-radius:8px;padding:9px 11px;color:var(--dsw-alias-state-error-primary);font-size:13px}
7996
10111
  .dsh-qa-integrations__notice{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);border-radius:10px;padding:12px;font-size:12px;line-height:1.55;color:var(--dsw-alias-label-secondary)}
10112
+ .dsh-qa-integrations__check{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600}
7997
10113
  .dsh-qa-integrations__hint code{background:var(--dsw-alias-bg-layer-2);border-radius:4px;padding:0 4px;font-size:12px}
7998
10114
  `}`;
7999
10115
  //#endregion
@@ -8007,8 +10123,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8007
10123
  /**
8008
10124
  * Both mounts of the provider cards come from this one bundle: the page of the
8009
10125
  * signed-in user's QA settings dialog, where the account gate lives, and the
8010
- * card of the host's "Plugin configuration" tab, which reaches the same account
8011
- * through the `qaUserSession` service.
10126
+ * feature-owned tab in the host's Plugins settings, which reaches the same
10127
+ * account through the `qaUserSession` service without depending on the Host
10128
+ * settings directory.
8012
10129
  */
8013
10130
  async function apply(ctx) {
8014
10131
  const disposeRemote = await ctx.remote.$mount(TYPERT_REMOTE);
@@ -8022,7 +10139,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8022
10139
  const face = injected;
8023
10140
  let cancelled = false;
8024
10141
  let removeSection;
8025
- let removeCard;
10142
+ let removeHostTab;
8026
10143
  face.effect(() => {
8027
10144
  const style = document.createElement("style");
8028
10145
  style.dataset.dshQaIntegrations = "styles";
@@ -8040,15 +10157,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8040
10157
  order: 40,
8041
10158
  component: createIntegrationsPage(face.remote.qaIntegrations, providers)
8042
10159
  });
8043
- removeCard = registerSettingsCard(face, {
8044
- key: QA_INTEGRATIONS_SETTINGS_NAMESPACE,
8045
- component: createIntegrationsCard(face.remote.qaIntegrations, providers, face.qaUserSession)
8046
- });
10160
+ const HostTab = createIntegrationsHostTab(face.remote.qaIntegrations, providers, face.qaUserSession);
10161
+ removeHostTab = face.slots.inject("settings.plugins.tab", () => face.slots.register({
10162
+ name: "settings.plugins.tab",
10163
+ id: "qa-integrations",
10164
+ order: 40,
10165
+ label: () => "Интеграции"
10166
+ }, HostTab));
8047
10167
  })().catch(() => void 0);
8048
10168
  return () => {
8049
10169
  cancelled = true;
8050
10170
  removeSection?.();
8051
- removeCard?.();
10171
+ removeHostTab?.();
8052
10172
  };
8053
10173
  });
8054
10174
  } catch (error) {