@opengeni/sdk 5.0.3 → 5.0.5-canary.1

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/src/client.ts CHANGED
@@ -4825,6 +4825,25 @@ export class OpenGeniClient {
4825
4825
  );
4826
4826
  }
4827
4827
 
4828
+ async searchPublicSkills(workspaceId: string, query: string) {
4829
+ return this.requestJson<{
4830
+ provider: "skills_sh";
4831
+ query: string;
4832
+ items: Array<{
4833
+ id: string;
4834
+ name: string;
4835
+ source: string;
4836
+ skillId: string;
4837
+ url: string;
4838
+ installs: number;
4839
+ }>;
4840
+ nextCursor: null;
4841
+ }>(
4842
+ "GET",
4843
+ `/v1/workspaces/${encodeURIComponent(workspaceId)}/skills/search?q=${encodeURIComponent(query)}`,
4844
+ );
4845
+ }
4846
+
4828
4847
  async listWorkspaces(): Promise<Workspace[]> {
4829
4848
  return await this.requestJson<Workspace[]>("GET", "/v1/workspaces");
4830
4849
  }
@@ -6883,6 +6902,38 @@ export class OpenGeniClient {
6883
6902
  );
6884
6903
  }
6885
6904
 
6905
+ async discoverPlugins(
6906
+ workspaceId: string,
6907
+ options: { id?: string; query?: string; provider?: string; offset?: number } = {},
6908
+ ): Promise<import("@opengeni/contracts").PluginDiscoveryPage> {
6909
+ return this.requestJson(
6910
+ "GET",
6911
+ "/v1/workspaces/" + workspaceId + "/capabilities/discovery/plugins",
6912
+ undefined,
6913
+ {
6914
+ ...(options.id ? { id: options.id } : {}),
6915
+
6916
+ ...(options.query ? { query: options.query } : {}),
6917
+ ...(options.provider ? { provider: options.provider } : {}),
6918
+ ...(options.offset !== undefined ? { offset: String(options.offset) } : {}),
6919
+ },
6920
+ );
6921
+ }
6922
+
6923
+ async inspectMcpAuthentication(
6924
+ workspaceId: string,
6925
+ url: string,
6926
+ ): Promise<{
6927
+ kind: "oauth2" | "none" | "unknown";
6928
+ message?: string;
6929
+ }> {
6930
+ return await this.requestJson(
6931
+ "POST",
6932
+ `/v1/workspaces/${workspaceId}/capabilities/discovery/mcp-auth`,
6933
+ { url },
6934
+ );
6935
+ }
6936
+
6886
6937
  /** List installed protocol-neutral OpenAPI and GraphQL Integrations. */
6887
6938
  async listApiIntegrations(workspaceId: string): Promise<ListApiIntegrationsResponse> {
6888
6939
  return await this.requestJson<ListApiIntegrationsResponse>(
@@ -7096,6 +7147,15 @@ export class OpenGeniClient {
7096
7147
  );
7097
7148
  }
7098
7149
 
7150
+ async getInstalledPluginDetails(
7151
+ workspaceId: string,
7152
+ pluginKey: string,
7153
+ ): Promise<import("@opengeni/contracts").PluginDiscoveryItem> {
7154
+ return this.requestJson("GET", `/v1/workspaces/${workspaceId}/plugins/details`, undefined, {
7155
+ pluginKey,
7156
+ });
7157
+ }
7158
+
7099
7159
  async listInstalledPlugins(workspaceId: string): Promise<ListInstalledPluginsResponse> {
7100
7160
  return await this.requestJson<ListInstalledPluginsResponse>(
7101
7161
  "GET",
package/src/index.ts CHANGED
@@ -1,4 +1,9 @@
1
1
  export { OpenGeniEmbeddingClient as OpenGeniClient } from "./embedding-client";
2
+ export { pluginMcpUnavailableReason } from "@opengeni/contracts/plugin-discovery";
3
+ export type {
4
+ PluginDiscoveryItem,
5
+ PluginDiscoveryPage,
6
+ } from "@opengeni/contracts/plugin-discovery";
2
7
  export { createSiteToolBridge, isSiteCatalogStaleError } from "./site-tool-bridge";
3
8
  export type {
4
9
  SiteToolBridge,
package/src/types.ts CHANGED
@@ -1348,6 +1348,17 @@ export type CancelSessionBackgroundCommandResult = {
1348
1348
  };
1349
1349
 
1350
1350
  export type Session = {
1351
+ /** Detail-only failure evidence through lastSequence; independent of timeline paging. */
1352
+ failureDiagnostics?:
1353
+ | {
1354
+ eventId: string;
1355
+ sequence: number;
1356
+ turnId: string | null;
1357
+ occurredAt: string;
1358
+ payload: unknown;
1359
+ }
1360
+ | null
1361
+ | undefined;
1351
1362
  bundledSkillIds?: BundledSkillId[] | undefined;
1352
1363
  id: string;
1353
1364
  workspaceId: string;
@@ -6975,6 +6986,7 @@ export type SkillImportFileSummary = {
6975
6986
  };
6976
6987
 
6977
6988
  export type SkillImportPreview = {
6989
+ markdown?: string;
6978
6990
  source: SkillImportSource;
6979
6991
  sourceUrl: string;
6980
6992
  repositoryUrl: string;
@@ -7431,6 +7443,7 @@ export type PluginInstallationSummary = {
7431
7443
  description: string;
7432
7444
  category: string;
7433
7445
  tags: string[];
7446
+ logoUrl?: string | null | undefined;
7434
7447
  sourceUrl: string | null;
7435
7448
  manifestDigest: string;
7436
7449
  installationVersion: number;
@@ -8020,6 +8033,7 @@ export type MachineRuntimeCapabilities = {
8020
8033
  browserBridge: boolean;
8021
8034
  operationResourcePolicy: boolean;
8022
8035
  operationCpuQuota: boolean;
8036
+ transactionalFsWrite: boolean;
8023
8037
  };
8024
8038
 
8025
8039
  export type MachineUpdateStatus =