@opengeni/sdk 2.5.0-canary.2 → 2.6.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 (42) hide show
  1. package/README.md +15 -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-4VCQBOOQ.js} +75 -73
  11. package/dist/chunk-4VCQBOOQ.js.map +1 -0
  12. package/dist/chunk-C7AIXTNY.js +79 -0
  13. package/dist/chunk-C7AIXTNY.js.map +1 -0
  14. package/dist/{chunk-UP2PIWU2.js → chunk-JVRUGVPU.js} +5 -5
  15. package/dist/chunk-JVRUGVPU.js.map +1 -0
  16. package/dist/{chunk-ERPT45NP.js → chunk-Y7PC524F.js} +2 -2
  17. package/dist/chunk-Y7PC524F.js.map +1 -0
  18. package/dist/client.d.ts +13 -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 +99 -1
  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 +123 -106
  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 +118 -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
@@ -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-ERPT45NP.js";
8
+ } from "./chunk-Y7PC524F.js";
9
9
  import {
10
10
  OpenGeniInteractionClient
11
11
  } from "./chunk-GW3EJ2GP.js";
@@ -989,10 +989,13 @@ var OpenGeniClient = class {
989
989
  request
990
990
  );
991
991
  }
992
- async getNewSessionDraft(workspaceId) {
992
+ async getNewSessionDraft(workspaceId, options = {}) {
993
993
  return await this.requestJson(
994
994
  "GET",
995
- `/v1/workspaces/${workspaceId}/new-session-draft`
995
+ `/v1/workspaces/${workspaceId}/new-session-draft`,
996
+ void 0,
997
+ {},
998
+ options
996
999
  );
997
1000
  }
998
1001
  async saveNewSessionDraft(workspaceId, request) {
@@ -3088,6 +3091,61 @@ var OpenGeniClient = class {
3088
3091
  request
3089
3092
  );
3090
3093
  }
3094
+ async getOrganizationRecovery(organizationId) {
3095
+ return await this.requestJson(
3096
+ "GET",
3097
+ `/v1/organizations/${organizationId}/recovery`
3098
+ );
3099
+ }
3100
+ async configureOrganizationRecoveryPolicy(organizationId, request) {
3101
+ return await this.requestJson(
3102
+ "PUT",
3103
+ `/v1/organizations/${organizationId}/recovery/policy`,
3104
+ request
3105
+ );
3106
+ }
3107
+ async acceptOrganizationRecoveryCustody(organizationId, request) {
3108
+ return await this.requestJson(
3109
+ "POST",
3110
+ `/v1/organizations/${organizationId}/recovery/policy/accept`,
3111
+ request
3112
+ );
3113
+ }
3114
+ async disableOrganizationRecoveryPolicy(organizationId, request) {
3115
+ return await this.requestJson(
3116
+ "POST",
3117
+ `/v1/organizations/${organizationId}/recovery/policy/disable`,
3118
+ request
3119
+ );
3120
+ }
3121
+ async startOrganizationRecoveryOperation(organizationId, request) {
3122
+ return await this.requestJson(
3123
+ "POST",
3124
+ `/v1/organizations/${organizationId}/recovery/operations`,
3125
+ request
3126
+ );
3127
+ }
3128
+ async approveOrganizationRecoveryOperation(organizationId, recoveryOperationId, request) {
3129
+ return await this.requestJson(
3130
+ "POST",
3131
+ `/v1/organizations/${organizationId}/recovery/operations/${recoveryOperationId}/approve`,
3132
+ request
3133
+ );
3134
+ }
3135
+ async cancelOrganizationRecoveryOperation(organizationId, recoveryOperationId, request) {
3136
+ return await this.requestJson(
3137
+ "POST",
3138
+ `/v1/organizations/${organizationId}/recovery/operations/${recoveryOperationId}/cancel`,
3139
+ request
3140
+ );
3141
+ }
3142
+ async executeOrganizationRecoveryOperation(organizationId, recoveryOperationId, request) {
3143
+ return await this.requestJson(
3144
+ "POST",
3145
+ `/v1/organizations/${organizationId}/recovery/operations/${recoveryOperationId}/execute`,
3146
+ request
3147
+ );
3148
+ }
3091
3149
  async listWorkspaces() {
3092
3150
  return await this.requestJson("GET", "/v1/workspaces");
3093
3151
  }
@@ -3539,6 +3597,14 @@ var OpenGeniClient = class {
3539
3597
  `/v1/workspaces/${workspaceId}/variable-sets`
3540
3598
  );
3541
3599
  }
3600
+ /** Resolve only caller-supplied attachment ids without enumerating the catalog. */
3601
+ async resolveVariableSetAttachments(workspaceId, request) {
3602
+ return await this.requestJson(
3603
+ "POST",
3604
+ `/v1/workspaces/${workspaceId}/variable-sets/resolve-attachments`,
3605
+ request
3606
+ );
3607
+ }
3542
3608
  async createVariableSet(workspaceId, request) {
3543
3609
  return await this.requestJson(
3544
3610
  "POST",
@@ -3834,10 +3900,13 @@ var OpenGeniClient = class {
3834
3900
  async (signal) => await this.completeFileUpload(workspaceId, upload.uploadId, { signal })
3835
3901
  );
3836
3902
  }
3837
- async getFile(workspaceId, fileId) {
3903
+ async getFile(workspaceId, fileId, options = {}) {
3838
3904
  return await this.requestJson(
3839
3905
  "GET",
3840
- `/v1/workspaces/${workspaceId}/files/${fileId}`
3906
+ `/v1/workspaces/${workspaceId}/files/${fileId}`,
3907
+ void 0,
3908
+ {},
3909
+ options
3841
3910
  );
3842
3911
  }
3843
3912
  /** Read provider-neutral retained evidence metadata; never returns a storage location. */
@@ -4120,73 +4189,6 @@ var OpenGeniClient = class {
4120
4189
  request
4121
4190
  );
4122
4191
  }
4123
- /**
4124
- * Atomically reclassify a Document's authority and every indexed chunk.
4125
- * The operation is replay-safe and rejects a stale expected authority tuple.
4126
- */
4127
- async reclassifyDocumentAuthority(workspaceId, documentId, request) {
4128
- return await this.requestJson(
4129
- "POST",
4130
- `/v1/workspaces/${workspaceId}/documents/${documentId}/authority-reclassifications`,
4131
- request
4132
- );
4133
- }
4134
- /** List the current actor's durable authority-reclassification receipts. */
4135
- async listDocumentAuthorityReclassifications(workspaceId, documentId, options = {}) {
4136
- const params = new URLSearchParams();
4137
- if (options.limit !== void 0) params.set("limit", String(options.limit));
4138
- if (options.cursor) params.set("cursor", options.cursor);
4139
- const query = params.size > 0 ? `?${params.toString()}` : "";
4140
- return await this.requestJson(
4141
- "GET",
4142
- `/v1/workspaces/${workspaceId}/documents/${documentId}/authority-reclassifications${query}`
4143
- );
4144
- }
4145
- /**
4146
- * Advance one resumable, organization-scoped Default collection backfill.
4147
- * Reusing an operation ID is idempotent; keep the run ID across batches.
4148
- */
4149
- async runDocumentDefaultCollectionBackfill(workspaceId, request) {
4150
- return await this.requestJson(
4151
- "POST",
4152
- `/v1/workspaces/${workspaceId}/document-default-collection-backfills`,
4153
- request
4154
- );
4155
- }
4156
- /** List organization-scoped Default collection backfill runs (organization admin only). */
4157
- async listDocumentDefaultCollectionBackfillRuns(workspaceId, options = {}) {
4158
- const params = new URLSearchParams();
4159
- if (options.limit !== void 0) params.set("limit", String(options.limit));
4160
- if (options.cursor) params.set("cursor", options.cursor);
4161
- const query = params.size > 0 ? `?${params.toString()}` : "";
4162
- return await this.requestJson(
4163
- "GET",
4164
- `/v1/workspaces/${workspaceId}/document-default-collection-backfills${query}`
4165
- );
4166
- }
4167
- /** Read bounded operation and workspace receipts for one Default-collection backfill run. */
4168
- async getDocumentDefaultCollectionBackfillAudit(workspaceId, runId, options = {}) {
4169
- const params = new URLSearchParams();
4170
- if (options.limit !== void 0) params.set("limit", String(options.limit));
4171
- if (options.operationCursor) params.set("operationCursor", options.operationCursor);
4172
- if (options.receiptCursor) params.set("receiptCursor", options.receiptCursor);
4173
- const query = params.size > 0 ? `?${params.toString()}` : "";
4174
- return await this.requestJson(
4175
- "GET",
4176
- `/v1/workspaces/${workspaceId}/document-default-collection-backfills/${runId}${query}`
4177
- );
4178
- }
4179
- /** List organization-wide Document authority changes (organization admin only). */
4180
- async listOrganizationDocumentAuthorityReclassifications(workspaceId, options = {}) {
4181
- const params = new URLSearchParams();
4182
- if (options.limit !== void 0) params.set("limit", String(options.limit));
4183
- if (options.cursor) params.set("cursor", options.cursor);
4184
- const query = params.size > 0 ? `?${params.toString()}` : "";
4185
- return await this.requestJson(
4186
- "GET",
4187
- `/v1/workspaces/${workspaceId}/document-authority-reclassifications${query}`
4188
- );
4189
- }
4190
4192
  /** Retry indexing for a failed document. */
4191
4193
  async reindexDocument(workspaceId, baseId, documentId) {
4192
4194
  return await this.requestJson(
@@ -5463,4 +5465,4 @@ export {
5463
5465
  parseMediaGenerationResult,
5464
5466
  OpenGeniClient
5465
5467
  };
5466
- //# sourceMappingURL=chunk-7VERSV47.js.map
5468
+ //# sourceMappingURL=chunk-4VCQBOOQ.js.map