@opengeni/sdk 6.0.0-canary.0 → 6.1.0-canary.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 (43) hide show
  1. package/dist/artifacts.js +4 -4
  2. package/dist/browser.d.ts +1 -0
  3. package/dist/browser.js +2 -2
  4. package/dist/chat/index.js +5 -5
  5. package/dist/{chunk-64S3VKJU.js → chunk-7WSXZWWJ.js} +48 -3
  6. package/dist/chunk-7WSXZWWJ.js.map +1 -0
  7. package/dist/{chunk-CFSYTYMA.js → chunk-B2ZC3AJC.js} +2 -2
  8. package/dist/{chunk-IZH5F7QC.js → chunk-FGXR55F2.js} +2 -2
  9. package/dist/{chunk-4ZQQQBOH.js → chunk-L2APU4LV.js} +2 -2
  10. package/dist/{chunk-VDACQXJZ.js → chunk-NX2WU4BY.js} +2 -2
  11. package/dist/{chunk-CMEU67C4.js → chunk-RM352F3Q.js} +1 -1
  12. package/dist/chunk-RM352F3Q.js.map +1 -0
  13. package/dist/client.d.ts +20 -1
  14. package/dist/core.js +3 -3
  15. package/dist/document-authority.js +3 -3
  16. package/dist/editable-artifacts.js +1 -1
  17. package/dist/index.d.ts +1 -0
  18. package/dist/index.js +6 -6
  19. package/dist/knowledge.d.ts +5 -3
  20. package/dist/knowledge.js +12 -3
  21. package/dist/knowledge.js.map +1 -1
  22. package/dist/organization-integration-policy.d.ts +26 -0
  23. package/dist/organization-integration-policy.js +26 -0
  24. package/dist/organization-integration-policy.js.map +1 -0
  25. package/dist/site-browser-runtime.gen.d.ts +1 -1
  26. package/dist/site-document.js +1 -1
  27. package/dist/site-document.js.map +1 -1
  28. package/dist/site.js +3 -3
  29. package/dist/types.d.ts +42 -2
  30. package/package.json +7 -3
  31. package/src/browser.ts +7 -0
  32. package/src/client.ts +75 -0
  33. package/src/index.ts +6 -0
  34. package/src/knowledge.ts +22 -1
  35. package/src/organization-integration-policy.ts +54 -0
  36. package/src/site-browser-runtime.gen.ts +1 -1
  37. package/src/types.ts +45 -1
  38. package/dist/chunk-64S3VKJU.js.map +0 -1
  39. package/dist/chunk-CMEU67C4.js.map +0 -1
  40. /package/dist/{chunk-CFSYTYMA.js.map → chunk-B2ZC3AJC.js.map} +0 -0
  41. /package/dist/{chunk-IZH5F7QC.js.map → chunk-FGXR55F2.js.map} +0 -0
  42. /package/dist/{chunk-4ZQQQBOH.js.map → chunk-L2APU4LV.js.map} +0 -0
  43. /package/dist/{chunk-VDACQXJZ.js.map → chunk-NX2WU4BY.js.map} +0 -0
package/dist/artifacts.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  OpenGeniClient
3
- } from "./chunk-4ZQQQBOH.js";
4
- import "./chunk-IZH5F7QC.js";
5
- import "./chunk-64S3VKJU.js";
3
+ } from "./chunk-L2APU4LV.js";
4
+ import "./chunk-FGXR55F2.js";
5
+ import "./chunk-7WSXZWWJ.js";
6
6
  import "./chunk-QTBAMHEF.js";
7
- import "./chunk-CMEU67C4.js";
7
+ import "./chunk-RM352F3Q.js";
8
8
  import "./chunk-OO5LPTO7.js";
9
9
  export {
10
10
  OpenGeniClient
package/dist/browser.d.ts CHANGED
@@ -7,3 +7,4 @@ export { OpenGeniApiContractMismatchError, OpenGeniApiError, OpenGeniSecureConte
7
7
  export type { OpenGeniSecureContextRequiredReason } from "./errors.js";
8
8
  export { resolveWorkspaceVoiceInputEnabled } from "./transcription.js";
9
9
  export { OPENGENI_API_CONTRACT_HEADER, OPENGENI_API_CONTRACT_REVISION } from "./types.js";
10
+ export type { ConnectorToolPermission, ConnectorToolPermissionEntry, ConnectorToolPermissionsResponse, UpdateConnectorToolPermissionsRequest, } from "./types.js";
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-64S3VKJU.js";
11
+ } from "./chunk-7WSXZWWJ.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-CMEU67C4.js";
16
+ } from "./chunk-RM352F3Q.js";
17
17
  import {
18
18
  OpenGeniApiContractMismatchError,
19
19
  OpenGeniApiError,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  OpenGeniEmbeddingClient
3
- } from "../chunk-VDACQXJZ.js";
4
- import "../chunk-4ZQQQBOH.js";
5
- import "../chunk-IZH5F7QC.js";
3
+ } from "../chunk-NX2WU4BY.js";
4
+ import "../chunk-L2APU4LV.js";
5
+ import "../chunk-FGXR55F2.js";
6
6
  import {
7
7
  parseSseStream
8
- } from "../chunk-64S3VKJU.js";
8
+ } from "../chunk-7WSXZWWJ.js";
9
9
  import "../chunk-QTBAMHEF.js";
10
- import "../chunk-CMEU67C4.js";
10
+ import "../chunk-RM352F3Q.js";
11
11
  import {
12
12
  OpenGeniApiError
13
13
  } from "../chunk-OO5LPTO7.js";
@@ -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-CMEU67C4.js";
12
+ } from "./chunk-RM352F3Q.js";
13
13
  import {
14
14
  OpenGeniApiContractMismatchError,
15
15
  OpenGeniApiError,
@@ -4847,6 +4847,24 @@ var OpenGeniClient = class {
4847
4847
  request
4848
4848
  );
4849
4849
  }
4850
+ async getConnectorToolPermissions(workspaceId, capabilityId, options = {}) {
4851
+ return await this.requestJson(
4852
+ "GET",
4853
+ `/v1/workspaces/${workspaceId}/capabilities/${encodeURIComponent(capabilityId)}/tool-permissions`,
4854
+ void 0,
4855
+ {},
4856
+ options
4857
+ );
4858
+ }
4859
+ async updateConnectorToolPermissions(workspaceId, capabilityId, request, options = {}) {
4860
+ return await this.requestJson(
4861
+ "PATCH",
4862
+ `/v1/workspaces/${workspaceId}/capabilities/${encodeURIComponent(capabilityId)}/tool-permissions`,
4863
+ request,
4864
+ {},
4865
+ options
4866
+ );
4867
+ }
4850
4868
  async enableCapability(workspaceId, capabilityId, request = {}) {
4851
4869
  return await this.requestJson(
4852
4870
  "POST",
@@ -5563,6 +5581,32 @@ var OpenGeniClient = class {
5563
5581
  ...options.accountId !== void 0 ? { accountId: options.accountId } : {}
5564
5582
  });
5565
5583
  }
5584
+ async getOrganizationUsageSummary(options, requestOptions = {}) {
5585
+ return await this.requestJson(
5586
+ "GET",
5587
+ "/v1/billing/usage-summary",
5588
+ void 0,
5589
+ {
5590
+ accountId: options.accountId,
5591
+ period: options.period ?? "month"
5592
+ },
5593
+ requestOptions
5594
+ );
5595
+ }
5596
+ async getOrganizationUsageWorkspacePage(options, requestOptions = {}) {
5597
+ return await this.requestJson(
5598
+ "GET",
5599
+ "/v1/billing/usage-workspaces",
5600
+ void 0,
5601
+ {
5602
+ accountId: options.accountId,
5603
+ period: options.period ?? "month",
5604
+ until: options.until,
5605
+ ...options.afterWorkspaceId ? { afterWorkspaceId: options.afterWorkspaceId } : {}
5606
+ },
5607
+ requestOptions
5608
+ );
5609
+ }
5566
5610
  async getBillingUsage(options = {}) {
5567
5611
  return await this.requestJson("GET", "/v1/billing/usage", void 0, {
5568
5612
  ...options.accountId !== void 0 ? { accountId: options.accountId } : {},
@@ -5578,7 +5622,8 @@ var OpenGeniClient = class {
5578
5622
  range: options.range ?? "week",
5579
5623
  ...options.provider !== void 0 ? { provider: options.provider } : {},
5580
5624
  ...options.model !== void 0 ? { model: options.model } : {}
5581
- }
5625
+ },
5626
+ { signal: options.signal }
5582
5627
  );
5583
5628
  }
5584
5629
  async getBillingEntitlements(options = {}) {
@@ -6269,4 +6314,4 @@ export {
6269
6314
  parseMediaGenerationResult,
6270
6315
  OpenGeniClient
6271
6316
  };
6272
- //# sourceMappingURL=chunk-64S3VKJU.js.map
6317
+ //# sourceMappingURL=chunk-7WSXZWWJ.js.map