@opengeni/sdk 2.2.0-canary.0 → 2.3.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.
- package/dist/artifacts.js +3 -3
- package/dist/{chunk-YBQTKNTL.js → chunk-6IPZY27S.js} +50 -2
- package/dist/chunk-6IPZY27S.js.map +1 -0
- package/dist/{chunk-G6LBVWKT.js → chunk-AGUKZAXR.js} +2 -2
- package/dist/{chunk-GLDV5QY7.js → chunk-TW5MNHUX.js} +1 -1
- package/dist/{chunk-GLDV5QY7.js.map → chunk-TW5MNHUX.js.map} +1 -1
- package/dist/client.d.ts +9 -1
- package/dist/core.js +2 -2
- package/dist/editable-artifacts.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/types.d.ts +62 -0
- package/package.json +2 -2
- package/src/client.ts +75 -0
- package/src/index.ts +3 -0
- package/src/types.ts +73 -0
- package/dist/chunk-YBQTKNTL.js.map +0 -1
- /package/dist/{chunk-G6LBVWKT.js.map → chunk-AGUKZAXR.js.map} +0 -0
package/dist/artifacts.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenGeniClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-AGUKZAXR.js";
|
|
4
|
+
import "./chunk-6IPZY27S.js";
|
|
5
|
+
import "./chunk-TW5MNHUX.js";
|
|
6
6
|
import "./chunk-GW3EJ2GP.js";
|
|
7
7
|
import "./chunk-C4DJPZRU.js";
|
|
8
8
|
export {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
OPENGENI_API_CONTRACT_REVISION,
|
|
6
6
|
OPENGENI_CORRELATION_HEADER,
|
|
7
7
|
RETAINED_OUTPUT_MAX_PAGE_BYTES
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TW5MNHUX.js";
|
|
9
9
|
import {
|
|
10
10
|
OpenGeniInteractionClient
|
|
11
11
|
} from "./chunk-GW3EJ2GP.js";
|
|
@@ -4060,6 +4060,40 @@ var OpenGeniClient = class {
|
|
|
4060
4060
|
request
|
|
4061
4061
|
);
|
|
4062
4062
|
}
|
|
4063
|
+
/** List organization-scoped Default collection backfill runs (organization admin only). */
|
|
4064
|
+
async listDocumentDefaultCollectionBackfillRuns(workspaceId, options = {}) {
|
|
4065
|
+
const params = new URLSearchParams();
|
|
4066
|
+
if (options.limit !== void 0) params.set("limit", String(options.limit));
|
|
4067
|
+
if (options.cursor) params.set("cursor", options.cursor);
|
|
4068
|
+
const query = params.size > 0 ? `?${params.toString()}` : "";
|
|
4069
|
+
return await this.requestJson(
|
|
4070
|
+
"GET",
|
|
4071
|
+
`/v1/workspaces/${workspaceId}/document-default-collection-backfills${query}`
|
|
4072
|
+
);
|
|
4073
|
+
}
|
|
4074
|
+
/** Read bounded operation and workspace receipts for one Default-collection backfill run. */
|
|
4075
|
+
async getDocumentDefaultCollectionBackfillAudit(workspaceId, runId, options = {}) {
|
|
4076
|
+
const params = new URLSearchParams();
|
|
4077
|
+
if (options.limit !== void 0) params.set("limit", String(options.limit));
|
|
4078
|
+
if (options.operationCursor) params.set("operationCursor", options.operationCursor);
|
|
4079
|
+
if (options.receiptCursor) params.set("receiptCursor", options.receiptCursor);
|
|
4080
|
+
const query = params.size > 0 ? `?${params.toString()}` : "";
|
|
4081
|
+
return await this.requestJson(
|
|
4082
|
+
"GET",
|
|
4083
|
+
`/v1/workspaces/${workspaceId}/document-default-collection-backfills/${runId}${query}`
|
|
4084
|
+
);
|
|
4085
|
+
}
|
|
4086
|
+
/** List organization-wide Document authority changes (organization admin only). */
|
|
4087
|
+
async listOrganizationDocumentAuthorityReclassifications(workspaceId, options = {}) {
|
|
4088
|
+
const params = new URLSearchParams();
|
|
4089
|
+
if (options.limit !== void 0) params.set("limit", String(options.limit));
|
|
4090
|
+
if (options.cursor) params.set("cursor", options.cursor);
|
|
4091
|
+
const query = params.size > 0 ? `?${params.toString()}` : "";
|
|
4092
|
+
return await this.requestJson(
|
|
4093
|
+
"GET",
|
|
4094
|
+
`/v1/workspaces/${workspaceId}/document-authority-reclassifications${query}`
|
|
4095
|
+
);
|
|
4096
|
+
}
|
|
4063
4097
|
/** Retry indexing for a failed document. */
|
|
4064
4098
|
async reindexDocument(workspaceId, baseId, documentId) {
|
|
4065
4099
|
return await this.requestJson(
|
|
@@ -4575,6 +4609,20 @@ var OpenGeniClient = class {
|
|
|
4575
4609
|
`/v1/workspaces/${workspaceId}/integrations/slack/reaction-channels?${query}`
|
|
4576
4610
|
);
|
|
4577
4611
|
}
|
|
4612
|
+
async listOpenGeniSlackChannelRoutes(workspaceId, connectionId) {
|
|
4613
|
+
const query = new URLSearchParams({ connectionId });
|
|
4614
|
+
return await this.requestJson(
|
|
4615
|
+
"GET",
|
|
4616
|
+
`/v1/workspaces/${workspaceId}/integrations/slack/channel-routes?${query}`
|
|
4617
|
+
);
|
|
4618
|
+
}
|
|
4619
|
+
async updateOpenGeniSlackChannelRoutes(workspaceId, request) {
|
|
4620
|
+
await this.requestJson(
|
|
4621
|
+
"PUT",
|
|
4622
|
+
`/v1/workspaces/${workspaceId}/integrations/slack/channel-routes`,
|
|
4623
|
+
request
|
|
4624
|
+
);
|
|
4625
|
+
}
|
|
4578
4626
|
async updateConnection(workspaceId, connectionId, request) {
|
|
4579
4627
|
const response = await this.requestJson(
|
|
4580
4628
|
"PATCH",
|
|
@@ -5322,4 +5370,4 @@ export {
|
|
|
5322
5370
|
parseMediaGenerationResult,
|
|
5323
5371
|
OpenGeniClient
|
|
5324
5372
|
};
|
|
5325
|
-
//# sourceMappingURL=chunk-
|
|
5373
|
+
//# sourceMappingURL=chunk-6IPZY27S.js.map
|