@opengeni/sdk 2.5.0-canary.2 → 3.1.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 (42) hide show
  1. package/README.md +54 -0
  2. package/dist/accounts.d.ts +149 -0
  3. package/dist/accounts.js +295 -0
  4. package/dist/accounts.js.map +1 -0
  5. package/dist/artifact-client.d.ts +3 -3
  6. package/dist/artifacts.js +4 -3
  7. package/dist/browser.d.ts +6 -0
  8. package/dist/browser.js +30 -0
  9. package/dist/browser.js.map +1 -0
  10. package/dist/{chunk-7VERSV47.js → chunk-7ZXBPJZP.js} +90 -75
  11. package/dist/chunk-7ZXBPJZP.js.map +1 -0
  12. package/dist/chunk-TX3EIENU.js +79 -0
  13. package/dist/chunk-TX3EIENU.js.map +1 -0
  14. package/dist/{chunk-UP2PIWU2.js → chunk-VUQZAB3O.js} +5 -5
  15. package/dist/chunk-VUQZAB3O.js.map +1 -0
  16. package/dist/{chunk-ERPT45NP.js → chunk-YTAWBDO2.js} +2 -2
  17. package/dist/chunk-YTAWBDO2.js.map +1 -0
  18. package/dist/client.d.ts +25 -21
  19. package/dist/core.d.ts +2 -1
  20. package/dist/core.js +6 -5
  21. package/dist/document-authority-client.d.ts +29 -0
  22. package/dist/document-authority.d.ts +2 -0
  23. package/dist/document-authority.js +11 -0
  24. package/dist/document-authority.js.map +1 -0
  25. package/dist/editable-artifacts.js +4 -4
  26. package/dist/index.d.ts +1 -1
  27. package/dist/index.js +22 -21
  28. package/dist/index.js.map +1 -1
  29. package/dist/types.d.ts +143 -2
  30. package/package.json +14 -2
  31. package/src/accounts.ts +425 -0
  32. package/src/artifact-client.ts +3 -3
  33. package/src/browser.ts +21 -0
  34. package/src/client.ts +156 -108
  35. package/src/core.ts +2 -1
  36. package/src/document-authority-client.ts +116 -0
  37. package/src/document-authority.ts +17 -0
  38. package/src/index.ts +19 -0
  39. package/src/types.ts +186 -2
  40. package/dist/chunk-7VERSV47.js.map +0 -1
  41. package/dist/chunk-ERPT45NP.js.map +0 -1
  42. package/dist/chunk-UP2PIWU2.js.map +0 -1
package/src/client.ts CHANGED
@@ -163,17 +163,7 @@ import type {
163
163
  UninstallPluginResult,
164
164
  AddDocumentRequest,
165
165
  CreateKnowledgeDropRequest,
166
- DocumentAuthorityReclassification,
167
- DocumentDefaultCollectionBackfill,
168
- DocumentDefaultCollectionBackfillAudit,
169
- GetDocumentDefaultCollectionBackfillAuditOptions,
170
- ListDocumentDefaultCollectionBackfillRunsResponse,
171
- ListOrganizationDocumentAuthorityReclassificationsResponse,
172
- ListDocumentAuthorityReclassificationsOptions,
173
- ListDocumentAuthorityReclassificationsResponse,
174
166
  MoveDocumentRequest,
175
- ReclassifyDocumentAuthorityRequest,
176
- RunDocumentDefaultCollectionBackfillRequest,
177
167
  ClientConfig,
178
168
  WorkspaceModelAccessPolicy,
179
169
  WorkspaceModelCatalogResponse,
@@ -222,6 +212,8 @@ import type {
222
212
  CreateSessionRequest,
223
213
  CreateSessionResponse,
224
214
  CreateVariableSetRequest,
215
+ ResolveVariableSetAttachmentsRequest,
216
+ ResolveVariableSetAttachmentsResponse,
225
217
  CreateRigRequest,
226
218
  CreateWorkspaceRequest,
227
219
  // Enrollment UX (design 11): the click-Grant approve-page lookup/deny + headless
@@ -261,6 +253,8 @@ import type {
261
253
  ListOrganizationAdministrationMembersResponse,
262
254
  AcceptOrganizationInvitationRequest,
263
255
  AcceptOrganizationInvitationResponse,
256
+ AcceptOrganizationRecoveryCustodyRequest,
257
+ ConfigureOrganizationRecoveryPolicyRequest,
264
258
  CreateOrganizationInvitationRequest,
265
259
  CreateOrganizationRequest,
266
260
  CreateOrganizationResponse,
@@ -268,6 +262,9 @@ import type {
268
262
  OrganizationInvitation,
269
263
  OrganizationAdministrationOverview,
270
264
  OrganizationMember,
265
+ OrganizationRecoveryMutationResponse,
266
+ OrganizationRecoveryOperationCommandRequest,
267
+ OrganizationRecoveryOverview,
271
268
  OrganizationWorkspaceAccess,
272
269
  OrganizationWorkspaceAccessMember,
273
270
  OrganizationRetentionPolicy,
@@ -278,6 +275,8 @@ import type {
278
275
  PutOrganizationWorkspaceMemberRequest,
279
276
  UpdateOrganizationMemberRequest,
280
277
  UpdateOrganizationNameRequest,
278
+ DisableOrganizationRecoveryPolicyRequest,
279
+ StartOrganizationRecoveryOperationRequest,
281
280
  UpdateOrganizationWorkspaceRequest,
282
281
  UpdateOrganizationRetentionPolicyRequest,
283
282
  ListPacksResponse,
@@ -324,6 +323,8 @@ import type {
324
323
  ForkSessionRequest,
325
324
  ForkSessionResponse,
326
325
  Session,
326
+ SessionStatus,
327
+ WorkClaimSubjectType,
327
328
  SessionBackgroundCommandListResponse,
328
329
  CancelSessionBackgroundCommandResult,
329
330
  SessionListResponse,
@@ -950,10 +951,16 @@ export class OpenGeniClient {
950
951
  );
951
952
  }
952
953
 
953
- async getNewSessionDraft(workspaceId: string): Promise<NewSessionDraft> {
954
+ async getNewSessionDraft(
955
+ workspaceId: string,
956
+ options: OpenGeniRequestOptions = {},
957
+ ): Promise<NewSessionDraft> {
954
958
  return await this.requestJson<NewSessionDraft>(
955
959
  "GET",
956
960
  `/v1/workspaces/${workspaceId}/new-session-draft`,
961
+ undefined,
962
+ {},
963
+ options,
957
964
  );
958
965
  }
959
966
 
@@ -1189,11 +1196,26 @@ export class OpenGeniClient {
1189
1196
  options: {
1190
1197
  limit?: number;
1191
1198
  parentSessionId?: string | null;
1199
+ rootSessionId?: string;
1192
1200
  cursor?: string;
1201
+ query?: string;
1202
+ /** @deprecated use query. */
1193
1203
  search?: string;
1204
+ statuses?: SessionStatus[];
1205
+ activeOnly?: boolean;
1206
+ recentHours?: number;
1207
+ subject?: {
1208
+ namespace: string;
1209
+ type: WorkClaimSubjectType;
1210
+ canonicalKey: string;
1211
+ };
1212
+ claimLimit?: number;
1194
1213
  } = {},
1195
1214
  ): Promise<AgentTopologyPageResponse> {
1196
- const search = options.search?.trim();
1215
+ const query = options.query?.trim() || options.search?.trim();
1216
+ if (query && options.subject) {
1217
+ throw new TypeError("listAgentTopology query cannot be combined with an exact subject");
1218
+ }
1197
1219
  return await this.requestJson<AgentTopologyPageResponse>(
1198
1220
  "GET",
1199
1221
  `/v1/workspaces/${workspaceId}/agent-topology`,
@@ -1203,8 +1225,22 @@ export class OpenGeniClient {
1203
1225
  ...(options.parentSessionId === undefined
1204
1226
  ? {}
1205
1227
  : { parentSessionId: options.parentSessionId ?? "null" }),
1228
+ ...(options.rootSessionId ? { rootSessionId: options.rootSessionId } : {}),
1206
1229
  ...(options.cursor ? { cursor: options.cursor } : {}),
1207
- ...(search ? { search } : {}),
1230
+ ...(query ? { query } : {}),
1231
+ ...(options.statuses?.length ? { statuses: options.statuses.join(",") } : {}),
1232
+ ...(options.activeOnly !== undefined
1233
+ ? { activeOnly: options.activeOnly ? "true" : "false" }
1234
+ : {}),
1235
+ ...(options.recentHours !== undefined ? { recentHours: String(options.recentHours) } : {}),
1236
+ ...(options.subject
1237
+ ? {
1238
+ subjectNamespace: options.subject.namespace,
1239
+ subjectType: options.subject.type,
1240
+ subjectKey: options.subject.canonicalKey,
1241
+ }
1242
+ : {}),
1243
+ ...(options.claimLimit !== undefined ? { claimLimit: String(options.claimLimit) } : {}),
1208
1244
  },
1209
1245
  );
1210
1246
  }
@@ -4140,6 +4176,93 @@ export class OpenGeniClient {
4140
4176
  );
4141
4177
  }
4142
4178
 
4179
+ async getOrganizationRecovery(organizationId: string): Promise<OrganizationRecoveryOverview> {
4180
+ return await this.requestJson<OrganizationRecoveryOverview>(
4181
+ "GET",
4182
+ `/v1/organizations/${organizationId}/recovery`,
4183
+ );
4184
+ }
4185
+
4186
+ async configureOrganizationRecoveryPolicy(
4187
+ organizationId: string,
4188
+ request: ConfigureOrganizationRecoveryPolicyRequest,
4189
+ ): Promise<OrganizationRecoveryMutationResponse> {
4190
+ return await this.requestJson<OrganizationRecoveryMutationResponse>(
4191
+ "PUT",
4192
+ `/v1/organizations/${organizationId}/recovery/policy`,
4193
+ request,
4194
+ );
4195
+ }
4196
+
4197
+ async acceptOrganizationRecoveryCustody(
4198
+ organizationId: string,
4199
+ request: AcceptOrganizationRecoveryCustodyRequest,
4200
+ ): Promise<OrganizationRecoveryMutationResponse> {
4201
+ return await this.requestJson<OrganizationRecoveryMutationResponse>(
4202
+ "POST",
4203
+ `/v1/organizations/${organizationId}/recovery/policy/accept`,
4204
+ request,
4205
+ );
4206
+ }
4207
+
4208
+ async disableOrganizationRecoveryPolicy(
4209
+ organizationId: string,
4210
+ request: DisableOrganizationRecoveryPolicyRequest,
4211
+ ): Promise<OrganizationRecoveryMutationResponse> {
4212
+ return await this.requestJson<OrganizationRecoveryMutationResponse>(
4213
+ "POST",
4214
+ `/v1/organizations/${organizationId}/recovery/policy/disable`,
4215
+ request,
4216
+ );
4217
+ }
4218
+
4219
+ async startOrganizationRecoveryOperation(
4220
+ organizationId: string,
4221
+ request: StartOrganizationRecoveryOperationRequest,
4222
+ ): Promise<OrganizationRecoveryMutationResponse> {
4223
+ return await this.requestJson<OrganizationRecoveryMutationResponse>(
4224
+ "POST",
4225
+ `/v1/organizations/${organizationId}/recovery/operations`,
4226
+ request,
4227
+ );
4228
+ }
4229
+
4230
+ async approveOrganizationRecoveryOperation(
4231
+ organizationId: string,
4232
+ recoveryOperationId: string,
4233
+ request: OrganizationRecoveryOperationCommandRequest,
4234
+ ): Promise<OrganizationRecoveryMutationResponse> {
4235
+ return await this.requestJson<OrganizationRecoveryMutationResponse>(
4236
+ "POST",
4237
+ `/v1/organizations/${organizationId}/recovery/operations/${recoveryOperationId}/approve`,
4238
+ request,
4239
+ );
4240
+ }
4241
+
4242
+ async cancelOrganizationRecoveryOperation(
4243
+ organizationId: string,
4244
+ recoveryOperationId: string,
4245
+ request: OrganizationRecoveryOperationCommandRequest,
4246
+ ): Promise<OrganizationRecoveryMutationResponse> {
4247
+ return await this.requestJson<OrganizationRecoveryMutationResponse>(
4248
+ "POST",
4249
+ `/v1/organizations/${organizationId}/recovery/operations/${recoveryOperationId}/cancel`,
4250
+ request,
4251
+ );
4252
+ }
4253
+
4254
+ async executeOrganizationRecoveryOperation(
4255
+ organizationId: string,
4256
+ recoveryOperationId: string,
4257
+ request: OrganizationRecoveryOperationCommandRequest,
4258
+ ): Promise<OrganizationRecoveryMutationResponse> {
4259
+ return await this.requestJson<OrganizationRecoveryMutationResponse>(
4260
+ "POST",
4261
+ `/v1/organizations/${organizationId}/recovery/operations/${recoveryOperationId}/execute`,
4262
+ request,
4263
+ );
4264
+ }
4265
+
4143
4266
  async listWorkspaces(): Promise<Workspace[]> {
4144
4267
  return await this.requestJson<Workspace[]>("GET", "/v1/workspaces");
4145
4268
  }
@@ -4805,6 +4928,18 @@ export class OpenGeniClient {
4805
4928
  );
4806
4929
  }
4807
4930
 
4931
+ /** Resolve only caller-supplied attachment ids without enumerating the catalog. */
4932
+ async resolveVariableSetAttachments(
4933
+ workspaceId: string,
4934
+ request: ResolveVariableSetAttachmentsRequest,
4935
+ ): Promise<ResolveVariableSetAttachmentsResponse> {
4936
+ return await this.requestJson<ResolveVariableSetAttachmentsResponse>(
4937
+ "POST",
4938
+ `/v1/workspaces/${workspaceId}/variable-sets/resolve-attachments`,
4939
+ request,
4940
+ );
4941
+ }
4942
+
4808
4943
  async createVariableSet(
4809
4944
  workspaceId: string,
4810
4945
  request: CreateVariableSetRequest,
@@ -5227,10 +5362,17 @@ export class OpenGeniClient {
5227
5362
  );
5228
5363
  }
5229
5364
 
5230
- async getFile(workspaceId: string, fileId: string): Promise<FileAsset> {
5365
+ async getFile(
5366
+ workspaceId: string,
5367
+ fileId: string,
5368
+ options: OpenGeniRequestOptions = {},
5369
+ ): Promise<FileAsset> {
5231
5370
  return await this.requestJson<FileAsset>(
5232
5371
  "GET",
5233
5372
  `/v1/workspaces/${workspaceId}/files/${fileId}`,
5373
+ undefined,
5374
+ {},
5375
+ options,
5234
5376
  );
5235
5377
  }
5236
5378
 
@@ -5625,100 +5767,6 @@ export class OpenGeniClient {
5625
5767
  );
5626
5768
  }
5627
5769
 
5628
- /**
5629
- * Atomically reclassify a Document's authority and every indexed chunk.
5630
- * The operation is replay-safe and rejects a stale expected authority tuple.
5631
- */
5632
- async reclassifyDocumentAuthority(
5633
- workspaceId: string,
5634
- documentId: string,
5635
- request: ReclassifyDocumentAuthorityRequest,
5636
- ): Promise<DocumentAuthorityReclassification> {
5637
- return await this.requestJson<DocumentAuthorityReclassification>(
5638
- "POST",
5639
- `/v1/workspaces/${workspaceId}/documents/${documentId}/authority-reclassifications`,
5640
- request,
5641
- );
5642
- }
5643
-
5644
- /** List the current actor's durable authority-reclassification receipts. */
5645
- async listDocumentAuthorityReclassifications(
5646
- workspaceId: string,
5647
- documentId: string,
5648
- options: ListDocumentAuthorityReclassificationsOptions = {},
5649
- ): Promise<ListDocumentAuthorityReclassificationsResponse> {
5650
- const params = new URLSearchParams();
5651
- if (options.limit !== undefined) params.set("limit", String(options.limit));
5652
- if (options.cursor) params.set("cursor", options.cursor);
5653
- const query = params.size > 0 ? `?${params.toString()}` : "";
5654
- return await this.requestJson<ListDocumentAuthorityReclassificationsResponse>(
5655
- "GET",
5656
- `/v1/workspaces/${workspaceId}/documents/${documentId}/authority-reclassifications${query}`,
5657
- );
5658
- }
5659
-
5660
- /**
5661
- * Advance one resumable, organization-scoped Default collection backfill.
5662
- * Reusing an operation ID is idempotent; keep the run ID across batches.
5663
- */
5664
- async runDocumentDefaultCollectionBackfill(
5665
- workspaceId: string,
5666
- request: RunDocumentDefaultCollectionBackfillRequest,
5667
- ): Promise<DocumentDefaultCollectionBackfill> {
5668
- return await this.requestJson<DocumentDefaultCollectionBackfill>(
5669
- "POST",
5670
- `/v1/workspaces/${workspaceId}/document-default-collection-backfills`,
5671
- request,
5672
- );
5673
- }
5674
-
5675
- /** List organization-scoped Default collection backfill runs (organization admin only). */
5676
- async listDocumentDefaultCollectionBackfillRuns(
5677
- workspaceId: string,
5678
- options: ListDocumentAuthorityReclassificationsOptions = {},
5679
- ): Promise<ListDocumentDefaultCollectionBackfillRunsResponse> {
5680
- const params = new URLSearchParams();
5681
- if (options.limit !== undefined) params.set("limit", String(options.limit));
5682
- if (options.cursor) params.set("cursor", options.cursor);
5683
- const query = params.size > 0 ? `?${params.toString()}` : "";
5684
- return await this.requestJson<ListDocumentDefaultCollectionBackfillRunsResponse>(
5685
- "GET",
5686
- `/v1/workspaces/${workspaceId}/document-default-collection-backfills${query}`,
5687
- );
5688
- }
5689
-
5690
- /** Read bounded operation and workspace receipts for one Default-collection backfill run. */
5691
- async getDocumentDefaultCollectionBackfillAudit(
5692
- workspaceId: string,
5693
- runId: string,
5694
- options: GetDocumentDefaultCollectionBackfillAuditOptions = {},
5695
- ): Promise<DocumentDefaultCollectionBackfillAudit> {
5696
- const params = new URLSearchParams();
5697
- if (options.limit !== undefined) params.set("limit", String(options.limit));
5698
- if (options.operationCursor) params.set("operationCursor", options.operationCursor);
5699
- if (options.receiptCursor) params.set("receiptCursor", options.receiptCursor);
5700
- const query = params.size > 0 ? `?${params.toString()}` : "";
5701
- return await this.requestJson<DocumentDefaultCollectionBackfillAudit>(
5702
- "GET",
5703
- `/v1/workspaces/${workspaceId}/document-default-collection-backfills/${runId}${query}`,
5704
- );
5705
- }
5706
-
5707
- /** List organization-wide Document authority changes (organization admin only). */
5708
- async listOrganizationDocumentAuthorityReclassifications(
5709
- workspaceId: string,
5710
- options: ListDocumentAuthorityReclassificationsOptions = {},
5711
- ): Promise<ListOrganizationDocumentAuthorityReclassificationsResponse> {
5712
- const params = new URLSearchParams();
5713
- if (options.limit !== undefined) params.set("limit", String(options.limit));
5714
- if (options.cursor) params.set("cursor", options.cursor);
5715
- const query = params.size > 0 ? `?${params.toString()}` : "";
5716
- return await this.requestJson<ListOrganizationDocumentAuthorityReclassificationsResponse>(
5717
- "GET",
5718
- `/v1/workspaces/${workspaceId}/document-authority-reclassifications${query}`,
5719
- );
5720
- }
5721
-
5722
5770
  /** Retry indexing for a failed document. */
5723
5771
  async reindexDocument(
5724
5772
  workspaceId: string,
package/src/core.ts CHANGED
@@ -1,4 +1,5 @@
1
- export { OpenGeniClient as OpenGeniCoreClient } from "./client";
1
+ /** Backward-compatible non-artifact client surface. */
2
+ export { OpenGeniDocumentAuthorityClient as OpenGeniCoreClient } from "./document-authority-client";
2
3
  export type {
3
4
  FetchLike,
4
5
  GetSessionOptions,
@@ -0,0 +1,116 @@
1
+ import { OpenGeniClient as OpenGeniCoreClient } from "./client";
2
+ import type {
3
+ DocumentAuthorityReclassification,
4
+ DocumentDefaultCollectionBackfill,
5
+ DocumentDefaultCollectionBackfillAudit,
6
+ GetDocumentDefaultCollectionBackfillAuditOptions,
7
+ ListDocumentAuthorityReclassificationsOptions,
8
+ ListDocumentAuthorityReclassificationsResponse,
9
+ ListDocumentDefaultCollectionBackfillRunsResponse,
10
+ ListOrganizationDocumentAuthorityReclassificationsResponse,
11
+ ReclassifyDocumentAuthorityRequest,
12
+ RunDocumentDefaultCollectionBackfillRequest,
13
+ } from "./types";
14
+
15
+ /**
16
+ * Operator-only Document authority and tenancy-backfill surface.
17
+ *
18
+ * The public root and legacy `core` clients extend this class for compatibility.
19
+ * Browser consoles that import `@opengeni/sdk/browser` do not retain these
20
+ * methods or their routes.
21
+ */
22
+ export class OpenGeniDocumentAuthorityClient extends OpenGeniCoreClient {
23
+ /**
24
+ * Atomically reclassify a Document's authority and every indexed chunk.
25
+ * The operation is replay-safe and rejects a stale expected authority tuple.
26
+ */
27
+ async reclassifyDocumentAuthority(
28
+ workspaceId: string,
29
+ documentId: string,
30
+ request: ReclassifyDocumentAuthorityRequest,
31
+ ): Promise<DocumentAuthorityReclassification> {
32
+ return await this.requestJson<DocumentAuthorityReclassification>(
33
+ "POST",
34
+ `/v1/workspaces/${workspaceId}/documents/${documentId}/authority-reclassifications`,
35
+ request,
36
+ );
37
+ }
38
+
39
+ /** List the current actor's durable authority-reclassification receipts. */
40
+ async listDocumentAuthorityReclassifications(
41
+ workspaceId: string,
42
+ documentId: string,
43
+ options: ListDocumentAuthorityReclassificationsOptions = {},
44
+ ): Promise<ListDocumentAuthorityReclassificationsResponse> {
45
+ const params = new URLSearchParams();
46
+ if (options.limit !== undefined) params.set("limit", String(options.limit));
47
+ if (options.cursor) params.set("cursor", options.cursor);
48
+ const query = params.size > 0 ? `?${params.toString()}` : "";
49
+ return await this.requestJson<ListDocumentAuthorityReclassificationsResponse>(
50
+ "GET",
51
+ `/v1/workspaces/${workspaceId}/documents/${documentId}/authority-reclassifications${query}`,
52
+ );
53
+ }
54
+
55
+ /**
56
+ * Advance one resumable, organization-scoped Default collection backfill.
57
+ * Reusing an operation ID is idempotent; keep the run ID across batches.
58
+ */
59
+ async runDocumentDefaultCollectionBackfill(
60
+ workspaceId: string,
61
+ request: RunDocumentDefaultCollectionBackfillRequest,
62
+ ): Promise<DocumentDefaultCollectionBackfill> {
63
+ return await this.requestJson<DocumentDefaultCollectionBackfill>(
64
+ "POST",
65
+ `/v1/workspaces/${workspaceId}/document-default-collection-backfills`,
66
+ request,
67
+ );
68
+ }
69
+
70
+ /** List organization-scoped Default collection backfill runs (organization admin only). */
71
+ async listDocumentDefaultCollectionBackfillRuns(
72
+ workspaceId: string,
73
+ options: ListDocumentAuthorityReclassificationsOptions = {},
74
+ ): Promise<ListDocumentDefaultCollectionBackfillRunsResponse> {
75
+ const params = new URLSearchParams();
76
+ if (options.limit !== undefined) params.set("limit", String(options.limit));
77
+ if (options.cursor) params.set("cursor", options.cursor);
78
+ const query = params.size > 0 ? `?${params.toString()}` : "";
79
+ return await this.requestJson<ListDocumentDefaultCollectionBackfillRunsResponse>(
80
+ "GET",
81
+ `/v1/workspaces/${workspaceId}/document-default-collection-backfills${query}`,
82
+ );
83
+ }
84
+
85
+ /** Read bounded operation and workspace receipts for one Default-collection backfill run. */
86
+ async getDocumentDefaultCollectionBackfillAudit(
87
+ workspaceId: string,
88
+ runId: string,
89
+ options: GetDocumentDefaultCollectionBackfillAuditOptions = {},
90
+ ): Promise<DocumentDefaultCollectionBackfillAudit> {
91
+ const params = new URLSearchParams();
92
+ if (options.limit !== undefined) params.set("limit", String(options.limit));
93
+ if (options.operationCursor) params.set("operationCursor", options.operationCursor);
94
+ if (options.receiptCursor) params.set("receiptCursor", options.receiptCursor);
95
+ const query = params.size > 0 ? `?${params.toString()}` : "";
96
+ return await this.requestJson<DocumentDefaultCollectionBackfillAudit>(
97
+ "GET",
98
+ `/v1/workspaces/${workspaceId}/document-default-collection-backfills/${runId}${query}`,
99
+ );
100
+ }
101
+
102
+ /** List organization-wide Document authority changes (organization admin only). */
103
+ async listOrganizationDocumentAuthorityReclassifications(
104
+ workspaceId: string,
105
+ options: ListDocumentAuthorityReclassificationsOptions = {},
106
+ ): Promise<ListOrganizationDocumentAuthorityReclassificationsResponse> {
107
+ const params = new URLSearchParams();
108
+ if (options.limit !== undefined) params.set("limit", String(options.limit));
109
+ if (options.cursor) params.set("cursor", options.cursor);
110
+ const query = params.size > 0 ? `?${params.toString()}` : "";
111
+ return await this.requestJson<ListOrganizationDocumentAuthorityReclassificationsResponse>(
112
+ "GET",
113
+ `/v1/workspaces/${workspaceId}/document-authority-reclassifications${query}`,
114
+ );
115
+ }
116
+ }
@@ -0,0 +1,17 @@
1
+ export { OpenGeniDocumentAuthorityClient } from "./document-authority-client";
2
+ export type {
3
+ DocumentAuthorityReclassification,
4
+ DocumentDefaultCollectionBackfill,
5
+ DocumentDefaultCollectionBackfillAudit,
6
+ DocumentDefaultCollectionBackfillOperationAudit,
7
+ DocumentDefaultCollectionBackfillReceiptAudit,
8
+ DocumentDefaultCollectionBackfillRunAudit,
9
+ GetDocumentDefaultCollectionBackfillAuditOptions,
10
+ ListDocumentAuthorityReclassificationsOptions,
11
+ ListDocumentAuthorityReclassificationsResponse,
12
+ ListDocumentDefaultCollectionBackfillRunsResponse,
13
+ ListOrganizationDocumentAuthorityReclassificationsResponse,
14
+ OrganizationDocumentAuthorityReclassification,
15
+ ReclassifyDocumentAuthorityRequest,
16
+ RunDocumentDefaultCollectionBackfillRequest,
17
+ } from "./types";
package/src/index.ts CHANGED
@@ -385,6 +385,18 @@ export type {
385
385
  OrganizationMember,
386
386
  OrganizationMembershipRole,
387
387
  OrganizationPrivateSessionSettings,
388
+ OrganizationRecoveryApproval,
389
+ OrganizationRecoveryCapabilities,
390
+ OrganizationRecoveryCustodian,
391
+ OrganizationRecoveryMemberSummary,
392
+ OrganizationRecoveryMutationResponse,
393
+ OrganizationRecoveryOperation,
394
+ OrganizationRecoveryOperationCommandRequest,
395
+ OrganizationRecoveryOperationState,
396
+ OrganizationRecoveryOverview,
397
+ OrganizationRecoveryPolicy,
398
+ OrganizationRecoveryPolicyState,
399
+ OrganizationRecoveryUnavailableReason,
388
400
  OrganizationSummary,
389
401
  OrganizationWorkspaceAccess,
390
402
  OrganizationWorkspaceAccessMember,
@@ -398,6 +410,10 @@ export type {
398
410
  RevokeOrganizationWorkspaceMemberResponse,
399
411
  UpdateOrganizationNameRequest,
400
412
  UpdateOrganizationPrivateSessionSettingsRequest,
413
+ AcceptOrganizationRecoveryCustodyRequest,
414
+ ConfigureOrganizationRecoveryPolicyRequest,
415
+ DisableOrganizationRecoveryPolicyRequest,
416
+ StartOrganizationRecoveryOperationRequest,
401
417
  BillingUsageResponse,
402
418
  InsightsRange,
403
419
  InsightsBillingPath,
@@ -953,6 +969,9 @@ export type {
953
969
  Workspace,
954
970
  WorkspaceControlEvent,
955
971
  VariableSet,
972
+ VariableSetAttachmentMetadata,
973
+ ResolveVariableSetAttachmentsRequest,
974
+ ResolveVariableSetAttachmentsResponse,
956
975
  VariableSetSecret,
957
976
  VariableSetVariableMetadata,
958
977
  Channel,