@opengeni/sdk 5.0.5-canary.0 → 5.0.5-canary.2
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/dist/artifacts.js +4 -4
- package/dist/browser.js +2 -2
- package/dist/chat/index.js +5 -5
- package/dist/{chunk-TOB3B4ZJ.js → chunk-A7KFT3LE.js} +2 -2
- package/dist/{chunk-4YAL54F3.js → chunk-KTHFOTHG.js} +2 -2
- package/dist/{chunk-J5USCWPE.js → chunk-XWVDS6OX.js} +2 -2
- package/dist/{chunk-ARGX7UY4.js → chunk-YIVLK5PZ.js} +2 -2
- package/dist/{chunk-UQGHX4DI.js → chunk-YTKQQMYF.js} +33 -2
- package/dist/chunk-YTKQQMYF.js.map +1 -0
- package/dist/{chunk-TARU5CD2.js → chunk-ZGUPH7BG.js} +1 -1
- package/dist/chunk-ZGUPH7BG.js.map +1 -0
- package/dist/client.d.ts +24 -0
- package/dist/core.js +3 -3
- package/dist/document-authority.js +3 -3
- package/dist/editable-artifacts.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +30 -6
- package/dist/index.js.map +1 -1
- package/dist/site.js +3 -3
- package/dist/types.d.ts +11 -0
- package/package.json +3 -3
- package/src/client.ts +60 -0
- package/src/index.ts +5 -0
- package/src/types.ts +14 -0
- package/dist/chunk-TARU5CD2.js.map +0 -1
- package/dist/chunk-UQGHX4DI.js.map +0 -1
- /package/dist/{chunk-TOB3B4ZJ.js.map → chunk-A7KFT3LE.js.map} +0 -0
- /package/dist/{chunk-4YAL54F3.js.map → chunk-KTHFOTHG.js.map} +0 -0
- /package/dist/{chunk-J5USCWPE.js.map → chunk-XWVDS6OX.js.map} +0 -0
- /package/dist/{chunk-ARGX7UY4.js.map → chunk-YIVLK5PZ.js.map} +0 -0
package/dist/artifacts.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenGeniClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-A7KFT3LE.js";
|
|
4
|
+
import "./chunk-KTHFOTHG.js";
|
|
5
|
+
import "./chunk-YTKQQMYF.js";
|
|
6
6
|
import "./chunk-QTBAMHEF.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-ZGUPH7BG.js";
|
|
8
8
|
import "./chunk-OO5LPTO7.js";
|
|
9
9
|
export {
|
|
10
10
|
OpenGeniClient
|
package/dist/browser.js
CHANGED
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
} from "./chunk-FMLDFJ2Q.js";
|
|
9
9
|
import {
|
|
10
10
|
OpenGeniClient
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YTKQQMYF.js";
|
|
12
12
|
import "./chunk-QTBAMHEF.js";
|
|
13
13
|
import {
|
|
14
14
|
OPENGENI_API_CONTRACT_HEADER,
|
|
15
15
|
OPENGENI_API_CONTRACT_REVISION
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZGUPH7BG.js";
|
|
17
17
|
import {
|
|
18
18
|
OpenGeniApiContractMismatchError,
|
|
19
19
|
OpenGeniApiError,
|
package/dist/chat/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenGeniEmbeddingClient
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-XWVDS6OX.js";
|
|
4
|
+
import "../chunk-A7KFT3LE.js";
|
|
5
|
+
import "../chunk-KTHFOTHG.js";
|
|
6
6
|
import {
|
|
7
7
|
parseSseStream
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-YTKQQMYF.js";
|
|
9
9
|
import "../chunk-QTBAMHEF.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-ZGUPH7BG.js";
|
|
11
11
|
import {
|
|
12
12
|
OpenGeniApiError
|
|
13
13
|
} from "../chunk-OO5LPTO7.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenGeniDocumentAuthorityClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KTHFOTHG.js";
|
|
4
4
|
|
|
5
5
|
// src/artifact-client.ts
|
|
6
6
|
var OpenGeniClient = class extends OpenGeniDocumentAuthorityClient {
|
|
@@ -121,4 +121,4 @@ var OpenGeniClient = class extends OpenGeniDocumentAuthorityClient {
|
|
|
121
121
|
export {
|
|
122
122
|
OpenGeniClient
|
|
123
123
|
};
|
|
124
|
-
//# sourceMappingURL=chunk-
|
|
124
|
+
//# sourceMappingURL=chunk-A7KFT3LE.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenGeniClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YTKQQMYF.js";
|
|
4
4
|
|
|
5
5
|
// src/document-authority-client.ts
|
|
6
6
|
var OpenGeniDocumentAuthorityClient = class extends OpenGeniClient {
|
|
@@ -76,4 +76,4 @@ var OpenGeniDocumentAuthorityClient = class extends OpenGeniClient {
|
|
|
76
76
|
export {
|
|
77
77
|
OpenGeniDocumentAuthorityClient
|
|
78
78
|
};
|
|
79
|
-
//# sourceMappingURL=chunk-
|
|
79
|
+
//# sourceMappingURL=chunk-KTHFOTHG.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenGeniClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A7KFT3LE.js";
|
|
4
4
|
|
|
5
5
|
// src/embedding-client.ts
|
|
6
6
|
var OpenGeniEmbeddingClient = class extends OpenGeniClient {
|
|
@@ -192,4 +192,4 @@ var OpenGeniEmbeddingClient = class extends OpenGeniClient {
|
|
|
192
192
|
export {
|
|
193
193
|
OpenGeniEmbeddingClient
|
|
194
194
|
};
|
|
195
|
-
//# sourceMappingURL=chunk-
|
|
195
|
+
//# sourceMappingURL=chunk-XWVDS6OX.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-FMLDFJ2Q.js";
|
|
4
4
|
import {
|
|
5
5
|
OpenGeniClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YTKQQMYF.js";
|
|
7
7
|
import {
|
|
8
8
|
OpenGeniApiError
|
|
9
9
|
} from "./chunk-OO5LPTO7.js";
|
|
@@ -626,4 +626,4 @@ export {
|
|
|
626
626
|
isOpenGeniSiteBridgeCancelMessage,
|
|
627
627
|
sanitizeOpenGeniSiteToolCallRequest
|
|
628
628
|
};
|
|
629
|
-
//# sourceMappingURL=chunk-
|
|
629
|
+
//# sourceMappingURL=chunk-YIVLK5PZ.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
OPENGENI_API_CONTRACT_REVISION,
|
|
10
10
|
OPENGENI_CORRELATION_HEADER,
|
|
11
11
|
RETAINED_OUTPUT_MAX_PAGE_BYTES
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZGUPH7BG.js";
|
|
13
13
|
import {
|
|
14
14
|
OpenGeniApiContractMismatchError,
|
|
15
15
|
OpenGeniApiError,
|
|
@@ -3499,6 +3499,12 @@ var OpenGeniClient = class {
|
|
|
3499
3499
|
request
|
|
3500
3500
|
);
|
|
3501
3501
|
}
|
|
3502
|
+
async searchPublicSkills(workspaceId, query) {
|
|
3503
|
+
return this.requestJson(
|
|
3504
|
+
"GET",
|
|
3505
|
+
`/v1/workspaces/${encodeURIComponent(workspaceId)}/skills/search?q=${encodeURIComponent(query)}`
|
|
3506
|
+
);
|
|
3507
|
+
}
|
|
3502
3508
|
async listWorkspaces() {
|
|
3503
3509
|
return await this.requestJson("GET", "/v1/workspaces");
|
|
3504
3510
|
}
|
|
@@ -4928,6 +4934,26 @@ var OpenGeniClient = class {
|
|
|
4928
4934
|
}
|
|
4929
4935
|
);
|
|
4930
4936
|
}
|
|
4937
|
+
async discoverPlugins(workspaceId, options = {}) {
|
|
4938
|
+
return this.requestJson(
|
|
4939
|
+
"GET",
|
|
4940
|
+
"/v1/workspaces/" + workspaceId + "/capabilities/discovery/plugins",
|
|
4941
|
+
void 0,
|
|
4942
|
+
{
|
|
4943
|
+
...options.id ? { id: options.id } : {},
|
|
4944
|
+
...options.query ? { query: options.query } : {},
|
|
4945
|
+
...options.provider ? { provider: options.provider } : {},
|
|
4946
|
+
...options.offset !== void 0 ? { offset: String(options.offset) } : {}
|
|
4947
|
+
}
|
|
4948
|
+
);
|
|
4949
|
+
}
|
|
4950
|
+
async inspectMcpAuthentication(workspaceId, url) {
|
|
4951
|
+
return await this.requestJson(
|
|
4952
|
+
"POST",
|
|
4953
|
+
`/v1/workspaces/${workspaceId}/capabilities/discovery/mcp-auth`,
|
|
4954
|
+
{ url }
|
|
4955
|
+
);
|
|
4956
|
+
}
|
|
4931
4957
|
/** List installed protocol-neutral OpenAPI and GraphQL Integrations. */
|
|
4932
4958
|
async listApiIntegrations(workspaceId) {
|
|
4933
4959
|
return await this.requestJson(
|
|
@@ -5055,6 +5081,11 @@ var OpenGeniClient = class {
|
|
|
5055
5081
|
request
|
|
5056
5082
|
);
|
|
5057
5083
|
}
|
|
5084
|
+
async getInstalledPluginDetails(workspaceId, pluginKey) {
|
|
5085
|
+
return this.requestJson("GET", `/v1/workspaces/${workspaceId}/plugins/details`, void 0, {
|
|
5086
|
+
pluginKey
|
|
5087
|
+
});
|
|
5088
|
+
}
|
|
5058
5089
|
async listInstalledPlugins(workspaceId) {
|
|
5059
5090
|
return await this.requestJson(
|
|
5060
5091
|
"GET",
|
|
@@ -6218,4 +6249,4 @@ export {
|
|
|
6218
6249
|
parseMediaGenerationResult,
|
|
6219
6250
|
OpenGeniClient
|
|
6220
6251
|
};
|
|
6221
|
-
//# sourceMappingURL=chunk-
|
|
6252
|
+
//# sourceMappingURL=chunk-YTKQQMYF.js.map
|