@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.
- package/README.md +431 -18
- package/compatibility.json +1 -1
- package/lib/broker.js +456 -9
- package/lib/broker.js.map +1 -1
- package/lib/client/bitrix24.js +2 -1
- package/lib/client/bitrix24.js.map +1 -1
- package/lib/client/card.js +8 -1
- package/lib/client/card.js.map +1 -1
- package/lib/client/confluence.js +3 -2
- package/lib/client/confluence.js.map +1 -1
- package/lib/client/gitlab.js +40 -4
- package/lib/client/gitlab.js.map +1 -1
- package/lib/client/index.js +13 -11
- package/lib/client/index.js.map +1 -1
- package/lib/client/integrations.js +39 -2
- package/lib/client/integrations.js.map +1 -1
- package/lib/client/jira.js +3 -2
- package/lib/client/jira.js.map +1 -1
- package/lib/client/provider-card.js +138 -4
- package/lib/client/provider-card.js.map +1 -1
- package/lib/client/styles.js +8 -5
- package/lib/client/styles.js.map +1 -1
- package/lib/client/teamcity.js +31 -4
- package/lib/client/teamcity.js.map +1 -1
- package/lib/client/testit.js +65 -0
- package/lib/client/testit.js.map +1 -0
- package/lib/client/weblate.js +70 -0
- package/lib/client/weblate.js.map +1 -0
- package/lib/client.js +2600 -480
- package/lib/client.js.map +1 -1
- package/lib/coerce.js +16 -7
- package/lib/coerce.js.map +1 -1
- package/lib/config.js +12 -0
- package/lib/config.js.map +1 -1
- package/lib/errors.js.map +1 -1
- package/lib/index.js +274 -28
- package/lib/index.js.map +1 -1
- package/lib/providers/bitrix24/catalog.js +13 -0
- package/lib/providers/bitrix24/catalog.js.map +1 -1
- package/lib/providers/bitrix24/config.js +3 -0
- package/lib/providers/bitrix24/config.js.map +1 -1
- package/lib/providers/bitrix24/credential-help.js +24 -0
- package/lib/providers/bitrix24/credential-help.js.map +1 -0
- package/lib/providers/bitrix24/index.js +9 -0
- package/lib/providers/bitrix24/index.js.map +1 -1
- package/lib/providers/bitrix24/operations.js +60 -1
- package/lib/providers/bitrix24/operations.js.map +1 -1
- package/lib/providers/bitrix24/tools.js +95 -3
- package/lib/providers/bitrix24/tools.js.map +1 -1
- package/lib/providers/confluence/credential-help.js +29 -0
- package/lib/providers/confluence/credential-help.js.map +1 -0
- package/lib/providers/confluence/index.js +9 -0
- package/lib/providers/confluence/index.js.map +1 -1
- package/lib/providers/gitlab/catalog.js +108 -15
- package/lib/providers/gitlab/catalog.js.map +1 -1
- package/lib/providers/gitlab/config.js +11 -3
- package/lib/providers/gitlab/config.js.map +1 -1
- package/lib/providers/gitlab/credential-help.js +33 -0
- package/lib/providers/gitlab/credential-help.js.map +1 -0
- package/lib/providers/gitlab/index.js +337 -6
- package/lib/providers/gitlab/index.js.map +1 -1
- package/lib/providers/jira/credential-help.js +31 -0
- package/lib/providers/jira/credential-help.js.map +1 -0
- package/lib/providers/jira/index.js +9 -0
- package/lib/providers/jira/index.js.map +1 -1
- package/lib/providers/registry.js +4 -0
- package/lib/providers/registry.js.map +1 -1
- package/lib/providers/shared/credential-help.js +29 -0
- package/lib/providers/shared/credential-help.js.map +1 -0
- package/lib/providers/shared/service-boundary.js +44 -0
- package/lib/providers/shared/service-boundary.js.map +1 -0
- package/lib/providers/teamcity/catalog.js +56 -2
- package/lib/providers/teamcity/catalog.js.map +1 -1
- package/lib/providers/teamcity/credential-help.js +25 -0
- package/lib/providers/teamcity/credential-help.js.map +1 -0
- package/lib/providers/teamcity/index.js +254 -2
- package/lib/providers/teamcity/index.js.map +1 -1
- package/lib/providers/testit/attachments.js +131 -0
- package/lib/providers/testit/attachments.js.map +1 -0
- package/lib/providers/testit/catalog.js +225 -0
- package/lib/providers/testit/catalog.js.map +1 -0
- package/lib/providers/testit/config.js +175 -0
- package/lib/providers/testit/config.js.map +1 -0
- package/lib/providers/testit/credential-help.js +29 -0
- package/lib/providers/testit/credential-help.js.map +1 -0
- package/lib/providers/testit/index.js +184 -0
- package/lib/providers/testit/index.js.map +1 -0
- package/lib/providers/testit/operations.js +1070 -0
- package/lib/providers/testit/operations.js.map +1 -0
- package/lib/providers/testit/tools.js +717 -0
- package/lib/providers/testit/tools.js.map +1 -0
- package/lib/providers/testit/transport.js +158 -0
- package/lib/providers/testit/transport.js.map +1 -0
- package/lib/providers/weblate/catalog.js +185 -0
- package/lib/providers/weblate/catalog.js.map +1 -0
- package/lib/providers/weblate/config.js +147 -0
- package/lib/providers/weblate/config.js.map +1 -0
- package/lib/providers/weblate/credential-help.js +26 -0
- package/lib/providers/weblate/credential-help.js.map +1 -0
- package/lib/providers/weblate/index.js +181 -0
- package/lib/providers/weblate/index.js.map +1 -0
- package/lib/providers/weblate/operations.js +703 -0
- package/lib/providers/weblate/operations.js.map +1 -0
- package/lib/providers/weblate/query.js +80 -0
- package/lib/providers/weblate/query.js.map +1 -0
- package/lib/providers/weblate/tools.js +408 -0
- package/lib/providers/weblate/tools.js.map +1 -0
- package/lib/providers/weblate/transport.js +179 -0
- package/lib/providers/weblate/transport.js.map +1 -0
- package/lib/repository.js +197 -13
- package/lib/repository.js.map +1 -1
- package/lib/service-credentials/config.js +179 -0
- package/lib/service-credentials/config.js.map +1 -0
- package/lib/service-credentials/policy.js +92 -0
- package/lib/service-credentials/policy.js.map +1 -0
- package/lib/service-credentials/registry.js +142 -0
- package/lib/service-credentials/registry.js.map +1 -0
- package/lib/service-credentials/state.js +30 -0
- package/lib/service-credentials/state.js.map +1 -0
- package/lib/service-credentials/types.js +20 -0
- package/lib/service-credentials/types.js.map +1 -0
- package/lib/tools.js +27 -2
- package/lib/tools.js.map +1 -1
- package/lib/typert.host.js +1187 -39
- package/lib/typert.remote-client.d.ts +37 -5
- package/lib/typert.remote-client.js +1057 -33
- package/lib/types/broker.d.ts +70 -4
- package/lib/types/client/bitrix24.d.ts +1 -1
- package/lib/types/client/card.d.ts +3 -1
- package/lib/types/client/confluence.d.ts +2 -2
- package/lib/types/client/gitlab.d.ts +15 -2
- package/lib/types/client/index.d.ts +3 -2
- package/lib/types/client/integrations.d.ts +11 -2
- package/lib/types/client/jira.d.ts +2 -2
- package/lib/types/client/provider-card.d.ts +50 -8
- package/lib/types/client/styles.d.ts +4 -3
- package/lib/types/client/teamcity.d.ts +15 -2
- package/lib/types/client/testit.d.ts +15 -0
- package/lib/types/client/weblate.d.ts +15 -0
- package/lib/types/coerce.d.ts +2 -2
- package/lib/types/config.d.ts +21 -0
- package/lib/types/errors.d.ts +9 -1
- package/lib/types/index.d.ts +108 -11
- package/lib/types/providers/bitrix24/catalog.d.ts +1 -1
- package/lib/types/providers/bitrix24/config.d.ts +11 -1
- package/lib/types/providers/bitrix24/credential-help.d.ts +8 -0
- package/lib/types/providers/bitrix24/index.d.ts +5 -0
- package/lib/types/providers/bitrix24/tools.d.ts +4 -0
- package/lib/types/providers/confluence/credential-help.d.ts +9 -0
- package/lib/types/providers/confluence/index.d.ts +5 -0
- package/lib/types/providers/contract.d.ts +62 -1
- package/lib/types/providers/gitlab/catalog.d.ts +20 -5
- package/lib/types/providers/gitlab/config.d.ts +14 -3
- package/lib/types/providers/gitlab/credential-help.d.ts +9 -0
- package/lib/types/providers/gitlab/index.d.ts +51 -1
- package/lib/types/providers/jira/credential-help.d.ts +8 -0
- package/lib/types/providers/jira/index.d.ts +5 -0
- package/lib/types/providers/registry.d.ts +2 -0
- package/lib/types/providers/shared/credential-help.d.ts +17 -0
- package/lib/types/providers/shared/service-boundary.d.ts +25 -0
- package/lib/types/providers/teamcity/catalog.d.ts +18 -2
- package/lib/types/providers/teamcity/credential-help.d.ts +8 -0
- package/lib/types/providers/teamcity/index.d.ts +53 -2
- package/lib/types/providers/testit/attachments.d.ts +20 -0
- package/lib/types/providers/testit/catalog.d.ts +75 -0
- package/lib/types/providers/testit/config.d.ts +61 -0
- package/lib/types/providers/testit/credential-help.d.ts +8 -0
- package/lib/types/providers/testit/index.d.ts +60 -0
- package/lib/types/providers/testit/operations.d.ts +95 -0
- package/lib/types/providers/testit/tools.d.ts +15 -0
- package/lib/types/providers/testit/transport.d.ts +67 -0
- package/lib/types/providers/weblate/catalog.d.ts +43 -0
- package/lib/types/providers/weblate/config.d.ts +57 -0
- package/lib/types/providers/weblate/credential-help.d.ts +9 -0
- package/lib/types/providers/weblate/index.d.ts +50 -0
- package/lib/types/providers/weblate/operations.d.ts +77 -0
- package/lib/types/providers/weblate/query.d.ts +37 -0
- package/lib/types/providers/weblate/tools.d.ts +15 -0
- package/lib/types/providers/weblate/transport.d.ts +60 -0
- package/lib/types/repository.d.ts +38 -3
- package/lib/types/service-credentials/config.d.ts +73 -0
- package/lib/types/service-credentials/policy.d.ts +44 -0
- package/lib/types/service-credentials/registry.d.ts +43 -0
- package/lib/types/service-credentials/state.d.ts +14 -0
- package/lib/types/service-credentials/types.d.ts +97 -0
- package/lib/types/tools.d.ts +10 -1
- package/lib/types/types.d.ts +114 -10
- package/package.json +7 -7
- package/lib/shared/settings.js +0 -19
- package/lib/shared/settings.js.map +0 -1
- package/lib/types/shared/settings.d.ts +0 -19
package/lib/types/tools.d.ts
CHANGED
|
@@ -4,13 +4,22 @@ import type { IntegrationPrincipal } from "./types.js";
|
|
|
4
4
|
export interface IntegrationToolOptions {
|
|
5
5
|
readonly broker: IntegrationBroker;
|
|
6
6
|
readonly principalForSession: (sessionId: string) => IntegrationPrincipal | undefined;
|
|
7
|
+
/** Mount the Bitrix24 timeline-comment tool; default stays read-only. */
|
|
8
|
+
readonly bitrix24CrmCommentWrite?: boolean;
|
|
7
9
|
}
|
|
8
10
|
/**
|
|
9
11
|
* Model-facing tool names of every enabled provider, in registration order. The
|
|
10
12
|
* QA surface admits exactly these names as principal-scoped, so this list is the
|
|
11
13
|
* single place where the tool surface is declared.
|
|
12
14
|
*/
|
|
13
|
-
export declare const INTEGRATION_TOOL_NAMES: readonly ["bitrix_search_crm", "bitrix_get_crm_item", "bitrix_get_crm_fields", "bitrix_get_crm_funnels", "bitrix_get_crm_statuses", "bitrix_get_crm_activities", "bitrix_get_crm_activity", "bitrix_get_crm_timeline", "bitrix_get_crm_stage_history", "bitrix_get_crm_product_rows", "bitrix_find_crm_duplicates", "bitrix_get_crm_requisites", "bitrix_get_call_transcript", "bitrix_get_current_user", "bitrix_search_users", "bitrix_get_departments", "bitrix_get_user_fields", "bitrix_search_chats", "bitrix_get_chat_messages", "bitrix_search_chat_messages", "bitrix_get_recent_chats", "bitrix_search_chat_users", "bitrix_find_chat", "bitrix_get_chat_participants", "bitrix_get_chat_user_data", "bitrix_get_openline_dialog", "bitrix_get_openline_history", "bitrix_search_tasks", "bitrix_get_task", "bitrix_get_task_history", "bitrix_get_task_results", "bitrix_get_task_elapsed_time", "bitrix_get_calendar_events", "bitrix_get_calendar_accessibility", "bitrix_search_files", "bitrix_get_file", "bitrix_get_drives", "bitrix_get_storage_items", "bitrix_get_folder_items", "confluence_connection_get", "confluence_search", "confluence_get_page", "confluence_get_page_comments", "confluence_get_page_attachments", "confluence_get_page_versions", "confluence_get_space", "confluence_list_spaces", "gitlab_connection_get", "gitlab_projects_list", "gitlab_project_get", "gitlab_repository_tree", "gitlab_repository_file_get", "gitlab_commits_list", "gitlab_commit_get", "gitlab_compare", "gitlab_search", "gitlab_issues_list", "gitlab_issue_get", "gitlab_issue_notes_list", "gitlab_merge_requests_list", "gitlab_merge_request_get", "gitlab_merge_request_changes_get", "gitlab_merge_request_discussions_list", "gitlab_merge_request_approvals_get", "gitlab_merge_request_pipelines_list", "gitlab_pipelines_list", "gitlab_pipeline_get", "gitlab_pipeline_jobs_list", "gitlab_job_get", "gitlab_job_log_get", "teamcity_connection_get", "teamcity_projects", "teamcity_build_configs", "teamcity_builds", "teamcity_build", "teamcity_build_changes", "teamcity_build_failures", "teamcity_build_log", "teamcity_queue", "teamcity_investigations", "teamcity_agents", "teamcity_artifacts", "teamcity_artifact_text", "jira_get_current_user", "jira_search_issues", "jira_get_issue", "jira_get_issue_comments", "jira_get_issue_attachments", "jira_get_available_transitions", "jira_get_project", "jira_get_fields"];
|
|
15
|
+
export declare const INTEGRATION_TOOL_NAMES: readonly ["bitrix_search_crm", "bitrix_get_crm_item", "bitrix_get_crm_fields", "bitrix_get_crm_funnels", "bitrix_get_crm_statuses", "bitrix_get_crm_activities", "bitrix_get_crm_activity", "bitrix_get_crm_timeline", "bitrix_get_crm_stage_history", "bitrix_get_crm_product_rows", "bitrix_find_crm_duplicates", "bitrix_get_crm_requisites", "bitrix_get_call_transcript", "bitrix_get_current_user", "bitrix_search_users", "bitrix_get_departments", "bitrix_get_user_fields", "bitrix_search_chats", "bitrix_get_chat_messages", "bitrix_search_chat_messages", "bitrix_get_recent_chats", "bitrix_search_chat_users", "bitrix_find_chat", "bitrix_get_chat_participants", "bitrix_get_chat_user_data", "bitrix_get_openline_dialog", "bitrix_get_openline_history", "bitrix_search_tasks", "bitrix_get_task", "bitrix_get_task_history", "bitrix_get_task_results", "bitrix_get_task_elapsed_time", "bitrix_get_calendar_events", "bitrix_get_calendar_accessibility", "bitrix_search_files", "bitrix_get_file", "bitrix_get_drives", "bitrix_get_storage_items", "bitrix_get_folder_items", "confluence_connection_get", "confluence_search", "confluence_get_page", "confluence_get_page_comments", "confluence_get_page_attachments", "confluence_get_page_versions", "confluence_get_space", "confluence_list_spaces", "gitlab_connection_get", "gitlab_projects_list", "gitlab_project_get", "gitlab_repository_tree", "gitlab_repository_file_get", "gitlab_commits_list", "gitlab_commit_get", "gitlab_compare", "gitlab_search", "gitlab_issues_list", "gitlab_issue_get", "gitlab_issue_notes_list", "gitlab_merge_requests_list", "gitlab_merge_request_get", "gitlab_merge_request_changes_get", "gitlab_merge_request_discussions_list", "gitlab_merge_request_approvals_get", "gitlab_merge_request_pipelines_list", "gitlab_pipelines_list", "gitlab_pipeline_get", "gitlab_pipeline_jobs_list", "gitlab_job_get", "gitlab_job_log_get", "teamcity_connection_get", "teamcity_projects", "teamcity_build_configs", "teamcity_builds", "teamcity_build", "teamcity_build_changes", "teamcity_build_failures", "teamcity_build_log", "teamcity_queue", "teamcity_investigations", "teamcity_agents", "teamcity_artifacts", "teamcity_artifact_text", "jira_get_current_user", "jira_search_issues", "jira_get_issue", "jira_get_issue_comments", "jira_get_issue_attachments", "jira_get_available_transitions", "jira_get_project", "jira_get_fields", "testit_connection_get", "testit_projects", "testit_project_get", "testit_sections", "testit_work_items", "testit_work_item_get", "testit_work_item_history", "testit_work_item_comments", "testit_work_item_test_results", "testit_test_plans", "testit_test_plan_get", "testit_test_plan_summary", "testit_test_runs", "testit_test_run_get", "testit_test_run_results", "testit_test_result_get", "testit_test_result_attachments", "testit_attachment_metadata", "testit_attachment_text", "testit_auto_tests", "testit_auto_test_get", "testit_configurations", "weblate_connection_get", "weblate_projects_list", "weblate_project_get", "weblate_project_statistics_get", "weblate_components_list", "weblate_component_get", "weblate_component_statistics_get", "weblate_translations_list", "weblate_translation_get", "weblate_translation_statistics_get", "weblate_units_search", "weblate_units_find", "weblate_unit_get", "weblate_unit_comments_list", "weblate_unit_suggestions_list", "weblate_failing_units_list", "weblate_changes_list", "weblate_screenshots_list", "weblate_screenshot_get"];
|
|
16
|
+
/**
|
|
17
|
+
* The names to admit and mount for one deployment: the read-only catalog plus,
|
|
18
|
+
* only when the operator switched it on, the Bitrix24 timeline comment. The
|
|
19
|
+
* mount and the admission list must always be derived through this function so
|
|
20
|
+
* the two cannot drift apart.
|
|
21
|
+
*/
|
|
22
|
+
export declare function integrationToolNames(options?: Pick<IntegrationToolOptions, "bitrix24CrmCommentWrite">): readonly string[];
|
|
14
23
|
/** Provider tool modules, composed into one registration list. */
|
|
15
24
|
export declare function createIntegrationTools(options: IntegrationToolOptions): readonly ToolDefinition[];
|
|
16
25
|
//# sourceMappingURL=tools.d.ts.map
|
package/lib/types/types.d.ts
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
|
+
import type { CredentialHelp } from "@yadsh/dsh-plugin-kit";
|
|
1
2
|
export type IntegrationProviderId = string;
|
|
2
3
|
export type IntegrationAuthKind = "token" | "oauth" | "mcp_token";
|
|
3
4
|
export type IntegrationStatus = "pending" | "connected" | "error" | "revoked";
|
|
4
5
|
export type IntegrationPolicyMode = "allow" | "confirm" | "deny";
|
|
6
|
+
/**
|
|
7
|
+
* Which credential the broker spends for one binding. Declared here rather than
|
|
8
|
+
* next to the service-credential machinery because it is part of the stored
|
|
9
|
+
* connection and of every summary a client renders.
|
|
10
|
+
*/
|
|
11
|
+
export type CredentialSource = "personal" | "service";
|
|
12
|
+
/**
|
|
13
|
+
* How one capability behaves when the connection runs on the deployment's
|
|
14
|
+
* managed credential. Derived from the provider's operation classifications, so
|
|
15
|
+
* a client can explain a switched-off row instead of showing a bare deny.
|
|
16
|
+
*/
|
|
17
|
+
export type CapabilityServiceState =
|
|
18
|
+
/** Every operation of this capability is service-safe. */
|
|
19
|
+
"available"
|
|
20
|
+
/** At least one operation returns sensitive data: needs a personal account. */
|
|
21
|
+
| "sensitive"
|
|
22
|
+
/** At least one operation is a write, an admin action or explicitly denied. */
|
|
23
|
+
| "unavailable";
|
|
5
24
|
/**
|
|
6
25
|
* Capability id, free-form on purpose: every provider declares its own set in
|
|
7
26
|
* its own catalog (`providers/<id>/catalog.ts`) and this framework only moves
|
|
@@ -23,6 +42,68 @@ export interface IntegrationPolicyEntry {
|
|
|
23
42
|
export interface IntegrationPrincipal {
|
|
24
43
|
readonly userId: string;
|
|
25
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* The managed-credential side of one provider for one principal: whether the
|
|
47
|
+
* deployment offers a service credential for the connected instance, what it
|
|
48
|
+
* may read, and what it can never read. Safe to render and to log — it carries
|
|
49
|
+
* an administrator-chosen alias, never a secret.
|
|
50
|
+
*/
|
|
51
|
+
export interface IntegrationServiceSummary {
|
|
52
|
+
/** A profile exists for this provider instance and is not disabled. */
|
|
53
|
+
readonly available: boolean;
|
|
54
|
+
/** Safe alias of the profile, such as "QA Read-only". */
|
|
55
|
+
readonly label: string | null;
|
|
56
|
+
/** Administrator allowlist, so a user can narrow their own access. */
|
|
57
|
+
readonly resources: IntegrationServiceBoundary | null;
|
|
58
|
+
/** What this connection narrowed that allowlist to, or null for all of it. */
|
|
59
|
+
readonly selection: IntegrationServiceBoundary | null;
|
|
60
|
+
/** Service-mode behaviour of every capability the provider declares. */
|
|
61
|
+
readonly capabilities: Readonly<Record<IntegrationCapability, CapabilityServiceState>>;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Resource allowlist of a managed credential, keyed by provider vocabulary
|
|
65
|
+
* (`projects`, `groups`, …). Values are the identifiers the provider itself
|
|
66
|
+
* accepts in a call, so a boundary entry and a tool argument are compared as
|
|
67
|
+
* strings and never through a display name.
|
|
68
|
+
*/
|
|
69
|
+
export type IntegrationServiceBoundary = Readonly<Record<string, readonly string[]>>;
|
|
70
|
+
/** Identity upstream reports for a managed credential, safe to show and log. */
|
|
71
|
+
export interface SafeExternalIdentity {
|
|
72
|
+
readonly id: string;
|
|
73
|
+
readonly label: string;
|
|
74
|
+
}
|
|
75
|
+
export type ServiceCredentialStatus =
|
|
76
|
+
/** Reachable and, as far as the provider can tell, free of mutable scopes. */
|
|
77
|
+
"healthy"
|
|
78
|
+
/** Expired upstream; nothing is served and the operator must rotate. */
|
|
79
|
+
| "expired"
|
|
80
|
+
/** Rejected upstream; nothing is served. */
|
|
81
|
+
| "revoked"
|
|
82
|
+
/** Reachable, but wider than read-only; the local ceiling still applies. */
|
|
83
|
+
| "unsafe_scope"
|
|
84
|
+
/** The service could not be reached, or the secret could not be read. */
|
|
85
|
+
| "unreachable";
|
|
86
|
+
/**
|
|
87
|
+
* What a probe of a managed credential found. Declared here because it crosses
|
|
88
|
+
* the remote boundary: it carries a status and operator warnings, never a secret
|
|
89
|
+
* and never the upstream identity the credential holds.
|
|
90
|
+
*/
|
|
91
|
+
export interface ServiceCredentialHealth {
|
|
92
|
+
readonly status: ServiceCredentialStatus;
|
|
93
|
+
readonly upstreamIdentity?: SafeExternalIdentity | undefined;
|
|
94
|
+
readonly grantedScopes?: readonly string[] | undefined;
|
|
95
|
+
readonly warnings?: readonly string[] | undefined;
|
|
96
|
+
}
|
|
97
|
+
/** One configured instance, and whether a service credential covers it. */
|
|
98
|
+
export interface IntegrationInstanceSummary {
|
|
99
|
+
readonly id: string;
|
|
100
|
+
readonly label: string;
|
|
101
|
+
readonly baseUrl: string;
|
|
102
|
+
/** Safe alias of the managed credential bound to this instance, if any. */
|
|
103
|
+
readonly service: {
|
|
104
|
+
readonly label: string;
|
|
105
|
+
} | null;
|
|
106
|
+
}
|
|
26
107
|
export interface IntegrationSummary {
|
|
27
108
|
readonly provider: IntegrationProviderId;
|
|
28
109
|
readonly displayName: string;
|
|
@@ -44,6 +125,10 @@ export interface IntegrationSummary {
|
|
|
44
125
|
readonly policy: readonly IntegrationPolicyEntry[];
|
|
45
126
|
readonly lastValidatedAt: string | null;
|
|
46
127
|
readonly errorCode: string | null;
|
|
128
|
+
/** Which credential the next call will spend. */
|
|
129
|
+
readonly credentialSource: CredentialSource;
|
|
130
|
+
/** Effective managed-credential state, or null when the provider has none. */
|
|
131
|
+
readonly service: IntegrationServiceSummary | null;
|
|
47
132
|
}
|
|
48
133
|
export interface IntegrationProviderSummary {
|
|
49
134
|
readonly id: IntegrationProviderId;
|
|
@@ -51,16 +136,12 @@ export interface IntegrationProviderSummary {
|
|
|
51
136
|
readonly enabled: boolean;
|
|
52
137
|
readonly authModes: readonly IntegrationAuthKind[];
|
|
53
138
|
readonly capabilities: readonly IntegrationCapability[];
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
export interface IntegrationInstanceSummary {
|
|
61
|
-
readonly id: string;
|
|
62
|
-
readonly label: string;
|
|
63
|
-
readonly baseUrl: string;
|
|
139
|
+
/**
|
|
140
|
+
* Where the credential for this provider comes from, as the provider declares
|
|
141
|
+
* it and the deployment may have overridden it. Metadata only: it never
|
|
142
|
+
* carries a credential value, and `null` means the card shows the plain field.
|
|
143
|
+
*/
|
|
144
|
+
readonly credentialHelp: CredentialHelp | null;
|
|
64
145
|
}
|
|
65
146
|
export interface CredentialInput {
|
|
66
147
|
/** Write-only credential; never appears in a response. */
|
|
@@ -85,7 +166,21 @@ export interface StoredIntegration {
|
|
|
85
166
|
readonly externalUserId: string | null;
|
|
86
167
|
readonly displayName: string | null;
|
|
87
168
|
readonly capabilities: readonly IntegrationCapability[];
|
|
169
|
+
/** Personal credential, kept while the binding runs in service mode. */
|
|
88
170
|
readonly secretRef: string | null;
|
|
171
|
+
/** Which credential this binding spends; `personal` unless switched. */
|
|
172
|
+
readonly credentialSource: CredentialSource;
|
|
173
|
+
/** Managed profile this binding resolves to, when it runs in service mode. */
|
|
174
|
+
readonly serviceProfileId: string | null;
|
|
175
|
+
/**
|
|
176
|
+
* Incremented on every credential-mode switch. Cache keys, cursors and pending
|
|
177
|
+
* actions are bound to it, so switching modes invalidates them all at once.
|
|
178
|
+
*/
|
|
179
|
+
readonly bindingRevision: number;
|
|
180
|
+
/** What this binding narrows the profile's allowlist to, if anything. */
|
|
181
|
+
readonly serviceSelection: IntegrationServiceBoundary | null;
|
|
182
|
+
/** Policy revision of the profile the binding was last resolved against. */
|
|
183
|
+
readonly servicePolicyRevision: string | null;
|
|
89
184
|
readonly createdAt: string;
|
|
90
185
|
readonly updatedAt: string;
|
|
91
186
|
readonly lastValidatedAt: string | null;
|
|
@@ -107,9 +202,18 @@ export interface EncryptedSecretRecord {
|
|
|
107
202
|
}
|
|
108
203
|
export interface IntegrationAuditEntry {
|
|
109
204
|
readonly id: string;
|
|
205
|
+
/**
|
|
206
|
+
* The authenticated QA user the call belongs to. In service mode upstream
|
|
207
|
+
* only ever sees the deployment's account, so this column is what answers
|
|
208
|
+
* "which real user did this".
|
|
209
|
+
*/
|
|
110
210
|
readonly ownerUserId: string;
|
|
111
211
|
readonly provider: IntegrationProviderId;
|
|
112
212
|
readonly operation: string;
|
|
213
|
+
/** Which credential the call was attributed to. */
|
|
214
|
+
readonly credentialSource: CredentialSource;
|
|
215
|
+
/** Safe profile id, never a secret; null for a personal call. */
|
|
216
|
+
readonly serviceProfileId: string | null;
|
|
113
217
|
readonly result: "success" | "denied" | "error";
|
|
114
218
|
readonly sourceSessionId: string | null;
|
|
115
219
|
readonly createdAt: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yadsh/dsh-qa-integrations",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Principal-scoped, encrypted user integrations for DSH QA Surface",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -78,6 +78,8 @@
|
|
|
78
78
|
"gitlab",
|
|
79
79
|
"teamcity",
|
|
80
80
|
"jira",
|
|
81
|
+
"testit",
|
|
82
|
+
"weblate",
|
|
81
83
|
"credentials"
|
|
82
84
|
],
|
|
83
85
|
"engines": {
|
|
@@ -85,15 +87,14 @@
|
|
|
85
87
|
},
|
|
86
88
|
"dependencies": {
|
|
87
89
|
"zod": "^4.4.3",
|
|
90
|
+
"@yadsh/dsh-plugin-kit": "^0.3.0",
|
|
88
91
|
"@yadsh/dsh-plugin-log": "^0.4.0",
|
|
89
|
-
"@yadsh/dsh-qa-surface": "^0.
|
|
90
|
-
"@yadsh/dsh-plugin-kit": "^0.2.0"
|
|
92
|
+
"@yadsh/dsh-qa-surface": "^0.9.0"
|
|
91
93
|
},
|
|
92
94
|
"peerDependencies": {
|
|
93
95
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
94
96
|
"@deepseek-ai/dsh-client-ui-settings": ">=0.1.5-rc.2 <0.2.0",
|
|
95
97
|
"@deepseek-ai/dsh-client-ui-settings-plugins": ">=0.1.5-rc.2 <0.2.0",
|
|
96
|
-
"@deepseek-ai/dsh-settings": ">=0.1.5-rc.2 <0.2.0",
|
|
97
98
|
"@deepseek-ai/dsh-tools": ">=0.1.5-rc.2 <0.2.0",
|
|
98
99
|
"@deepseek-ai/dsh-typert-protocol": ">=0.1.5-rc.2 <0.2.0",
|
|
99
100
|
"@deepseek-ai/schemastery": "^3.18.2",
|
|
@@ -106,7 +107,6 @@
|
|
|
106
107
|
"@deepseek-ai/dsh-client-ui-settings": "0.1.5-rc.2",
|
|
107
108
|
"@deepseek-ai/dsh-client-ui-settings-plugins": "0.1.5-rc.2",
|
|
108
109
|
"@deepseek-ai/dsh-client-ui-slots": "0.1.5-rc.2",
|
|
109
|
-
"@deepseek-ai/dsh-settings": "0.1.5-rc.2",
|
|
110
110
|
"@deepseek-ai/dsh-tools": "0.1.5-rc.2",
|
|
111
111
|
"@deepseek-ai/dsh-typert-generator": "0.1.5-rc.2",
|
|
112
112
|
"@deepseek-ai/dsh-typert-protocol": "0.1.5-rc.2",
|
|
@@ -122,9 +122,9 @@
|
|
|
122
122
|
"tsdown": "^0.22.14",
|
|
123
123
|
"typescript": "^7.0.2",
|
|
124
124
|
"vitest": "^4.1.11",
|
|
125
|
+
"@yadsh/dsh-config": "^0.0.0",
|
|
125
126
|
"@yadsh/dsh-plugin-scripts": "^0.0.0",
|
|
126
|
-
"@yadsh/dsh-test-kit": "^0.1.0"
|
|
127
|
-
"@yadsh/dsh-config": "^0.0.0"
|
|
127
|
+
"@yadsh/dsh-test-kit": "^0.1.0"
|
|
128
128
|
},
|
|
129
129
|
"publishConfig": {
|
|
130
130
|
"access": "public",
|
package/lib/shared/settings.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The one place that names the settings namespace. The Host serves the section
|
|
3
|
-
* and the browser card keys on it, so both halves must agree without importing
|
|
4
|
-
* each other (the host entry pulls Node code into the bundle, the card pulls
|
|
5
|
-
* DOM code into the Host).
|
|
6
|
-
* @module shared/settings
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Settings namespace of the Integrations card.
|
|
10
|
-
*
|
|
11
|
-
* The Plugins tab dispatches a card by the namespace its Host serves, so the
|
|
12
|
-
* deployment mounts this section to give the browser half a key. It carries no
|
|
13
|
-
* editable value on purpose: the provider switches, the address policy and the
|
|
14
|
-
* vault path are composition-time decisions (`cordis.patch.yml`) that the
|
|
15
|
-
* runtime resolves once at boot, and a settings field the runtime only honored
|
|
16
|
-
* after a restart would read as a save that applied.
|
|
17
|
-
*/
|
|
18
|
-
export const QA_INTEGRATIONS_SETTINGS_NAMESPACE = "qa-integrations";
|
|
19
|
-
//# sourceMappingURL=settings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/shared/settings.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,iBAAiB,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The one place that names the settings namespace. The Host serves the section
|
|
3
|
-
* and the browser card keys on it, so both halves must agree without importing
|
|
4
|
-
* each other (the host entry pulls Node code into the bundle, the card pulls
|
|
5
|
-
* DOM code into the Host).
|
|
6
|
-
* @module shared/settings
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Settings namespace of the Integrations card.
|
|
10
|
-
*
|
|
11
|
-
* The Plugins tab dispatches a card by the namespace its Host serves, so the
|
|
12
|
-
* deployment mounts this section to give the browser half a key. It carries no
|
|
13
|
-
* editable value on purpose: the provider switches, the address policy and the
|
|
14
|
-
* vault path are composition-time decisions (`cordis.patch.yml`) that the
|
|
15
|
-
* runtime resolves once at boot, and a settings field the runtime only honored
|
|
16
|
-
* after a restart would read as a save that applied.
|
|
17
|
-
*/
|
|
18
|
-
export declare const QA_INTEGRATIONS_SETTINGS_NAMESPACE = "qa-integrations";
|
|
19
|
-
//# sourceMappingURL=settings.d.ts.map
|