@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.
- package/README.md +54 -0
- package/dist/accounts.d.ts +149 -0
- package/dist/accounts.js +295 -0
- package/dist/accounts.js.map +1 -0
- package/dist/artifact-client.d.ts +3 -3
- package/dist/artifacts.js +4 -3
- package/dist/browser.d.ts +6 -0
- package/dist/browser.js +30 -0
- package/dist/browser.js.map +1 -0
- package/dist/{chunk-7VERSV47.js → chunk-7ZXBPJZP.js} +90 -75
- package/dist/chunk-7ZXBPJZP.js.map +1 -0
- package/dist/chunk-TX3EIENU.js +79 -0
- package/dist/chunk-TX3EIENU.js.map +1 -0
- package/dist/{chunk-UP2PIWU2.js → chunk-VUQZAB3O.js} +5 -5
- package/dist/chunk-VUQZAB3O.js.map +1 -0
- package/dist/{chunk-ERPT45NP.js → chunk-YTAWBDO2.js} +2 -2
- package/dist/chunk-YTAWBDO2.js.map +1 -0
- package/dist/client.d.ts +25 -21
- package/dist/core.d.ts +2 -1
- package/dist/core.js +6 -5
- package/dist/document-authority-client.d.ts +29 -0
- package/dist/document-authority.d.ts +2 -0
- package/dist/document-authority.js +11 -0
- package/dist/document-authority.js.map +1 -0
- package/dist/editable-artifacts.js +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +22 -21
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +143 -2
- package/package.json +14 -2
- package/src/accounts.ts +425 -0
- package/src/artifact-client.ts +3 -3
- package/src/browser.ts +21 -0
- package/src/client.ts +156 -108
- package/src/core.ts +2 -1
- package/src/document-authority-client.ts +116 -0
- package/src/document-authority.ts +17 -0
- package/src/index.ts +19 -0
- package/src/types.ts +186 -2
- package/dist/chunk-7VERSV47.js.map +0 -1
- package/dist/chunk-ERPT45NP.js.map +0 -1
- package/dist/chunk-UP2PIWU2.js.map +0 -1
package/src/types.ts
CHANGED
|
@@ -1389,6 +1389,64 @@ export type SessionListResponse = {
|
|
|
1389
1389
|
nextCursor: string | null;
|
|
1390
1390
|
};
|
|
1391
1391
|
|
|
1392
|
+
export type WorkClaimSubjectType =
|
|
1393
|
+
| "repository"
|
|
1394
|
+
| "branch"
|
|
1395
|
+
| "pull_request"
|
|
1396
|
+
| "issue"
|
|
1397
|
+
| "artifact"
|
|
1398
|
+
| "release"
|
|
1399
|
+
| "ci_run"
|
|
1400
|
+
| "other";
|
|
1401
|
+
|
|
1402
|
+
export type WorkClaimDiscoverySummary = {
|
|
1403
|
+
id: string;
|
|
1404
|
+
sessionId: string;
|
|
1405
|
+
subject: {
|
|
1406
|
+
namespace: string;
|
|
1407
|
+
type: WorkClaimSubjectType;
|
|
1408
|
+
canonicalKey: string;
|
|
1409
|
+
displayLabel: string | null;
|
|
1410
|
+
};
|
|
1411
|
+
role: "working" | "reviewing" | "monitoring" | "delivering";
|
|
1412
|
+
state: "active" | "released" | "superseded" | "stale";
|
|
1413
|
+
revision: number;
|
|
1414
|
+
provenance:
|
|
1415
|
+
| "explicit_agent"
|
|
1416
|
+
| "user_api"
|
|
1417
|
+
| "trusted_integration"
|
|
1418
|
+
| "session_resource"
|
|
1419
|
+
| "system_lifecycle";
|
|
1420
|
+
version: {
|
|
1421
|
+
kind:
|
|
1422
|
+
| "git_commit"
|
|
1423
|
+
| "branch_head"
|
|
1424
|
+
| "pull_request_head"
|
|
1425
|
+
| "artifact_version"
|
|
1426
|
+
| "release_version"
|
|
1427
|
+
| "ci_run"
|
|
1428
|
+
| "other";
|
|
1429
|
+
value: string;
|
|
1430
|
+
} | null;
|
|
1431
|
+
observedAt: string;
|
|
1432
|
+
updatedAt: string;
|
|
1433
|
+
settledAt: string | null;
|
|
1434
|
+
};
|
|
1435
|
+
|
|
1436
|
+
export type WorkDiscoveryProjection = {
|
|
1437
|
+
claims: WorkClaimDiscoverySummary[];
|
|
1438
|
+
claimsTruncated: boolean;
|
|
1439
|
+
match: {
|
|
1440
|
+
class: "exact_subject" | "title" | "goal" | "fuzzy";
|
|
1441
|
+
field: "subject" | "title" | "goal" | "claim_key" | "claim_label";
|
|
1442
|
+
scoreBand: "exact" | "strong" | "related";
|
|
1443
|
+
claimId: string | null;
|
|
1444
|
+
} | null;
|
|
1445
|
+
possibleOverlap: boolean;
|
|
1446
|
+
advisoryOnly: true;
|
|
1447
|
+
noAdditionalAccess: true;
|
|
1448
|
+
};
|
|
1449
|
+
|
|
1392
1450
|
/** Compact, bounded session projection for workspace agent-topology browsers. */
|
|
1393
1451
|
export type AgentTopologySession = {
|
|
1394
1452
|
id: string;
|
|
@@ -1403,6 +1461,11 @@ export type AgentTopologySession = {
|
|
|
1403
1461
|
titleTruncated: boolean;
|
|
1404
1462
|
}>;
|
|
1405
1463
|
status: SessionStatus;
|
|
1464
|
+
goal: {
|
|
1465
|
+
status: SessionGoalStatus;
|
|
1466
|
+
summary: string;
|
|
1467
|
+
summaryTruncated: boolean;
|
|
1468
|
+
} | null;
|
|
1406
1469
|
pause: {
|
|
1407
1470
|
state: "active" | "paused";
|
|
1408
1471
|
additionalBlockerCount: number;
|
|
@@ -1423,6 +1486,7 @@ export type AgentTopologySession = {
|
|
|
1423
1486
|
failedDescendants: number;
|
|
1424
1487
|
truncated: boolean;
|
|
1425
1488
|
};
|
|
1489
|
+
relatedWork: WorkDiscoveryProjection;
|
|
1426
1490
|
createdAt: string;
|
|
1427
1491
|
updatedAt: string;
|
|
1428
1492
|
};
|
|
@@ -1431,6 +1495,8 @@ export type AgentTopologyPageResponse = {
|
|
|
1431
1495
|
sessions: AgentTopologySession[];
|
|
1432
1496
|
total: number;
|
|
1433
1497
|
hasMore: boolean;
|
|
1498
|
+
/** Operator rollout decision for human advisory presentation. */
|
|
1499
|
+
humanAdvisoriesEnabled?: boolean | undefined;
|
|
1434
1500
|
nextCursor: string | null;
|
|
1435
1501
|
};
|
|
1436
1502
|
|
|
@@ -2776,6 +2842,8 @@ export type FirstPartyMcpToolName =
|
|
|
2776
2842
|
| "task_note_save"
|
|
2777
2843
|
| "task_note_archive"
|
|
2778
2844
|
| "task_note_replace"
|
|
2845
|
+
| "work_claim_upsert"
|
|
2846
|
+
| "work_claim_release"
|
|
2779
2847
|
| "knowledge_propose"
|
|
2780
2848
|
| "knowledge_correct"
|
|
2781
2849
|
| "task_note_promote_knowledge"
|
|
@@ -3403,8 +3471,7 @@ export type ClientAuthConfig =
|
|
|
3403
3471
|
|
|
3404
3472
|
// Kept value-identical to @opengeni/contracts and pinned by the SDK contract
|
|
3405
3473
|
// parity suite. The SDK has no runtime dependency on the Zod contracts package.
|
|
3406
|
-
export const OPENGENI_API_CONTRACT_REVISION =
|
|
3407
|
-
"2026-08-personal-only-organization-setup-v1" as const;
|
|
3474
|
+
export const OPENGENI_API_CONTRACT_REVISION = "2026-08-organization-recovery-custody-v1" as const;
|
|
3408
3475
|
export const OPENGENI_API_CONTRACT_HEADER = "x-opengeni-api-contract" as const;
|
|
3409
3476
|
/** Bounded request/response identifier shared by browser, ingress, and API diagnostics. */
|
|
3410
3477
|
export const OPENGENI_CORRELATION_HEADER = "x-opengeni-correlation-id" as const;
|
|
@@ -3437,6 +3504,7 @@ export type ClientConfig = {
|
|
|
3437
3504
|
/** Native browser microphone capture + server-side transcription capability. */
|
|
3438
3505
|
voiceInput?: ClientVoiceInputConfig | undefined;
|
|
3439
3506
|
productAccessMode: ProductAccessMode;
|
|
3507
|
+
managedAuthSessionSetMode: "legacy" | "dual" | "broker";
|
|
3440
3508
|
auth: ClientAuthConfig;
|
|
3441
3509
|
analytics: {
|
|
3442
3510
|
consentRequired: boolean;
|
|
@@ -3857,6 +3925,108 @@ export type OrganizationRetentionPolicy = {
|
|
|
3857
3925
|
version: number;
|
|
3858
3926
|
updatedAt: string;
|
|
3859
3927
|
};
|
|
3928
|
+
export type OrganizationRecoveryPolicyState =
|
|
3929
|
+
| "pending_acceptance"
|
|
3930
|
+
| "active"
|
|
3931
|
+
| "degraded"
|
|
3932
|
+
| "superseded"
|
|
3933
|
+
| "disabled";
|
|
3934
|
+
export type OrganizationRecoveryOperationState =
|
|
3935
|
+
| "collecting"
|
|
3936
|
+
| "cooling"
|
|
3937
|
+
| "executed"
|
|
3938
|
+
| "cancelled"
|
|
3939
|
+
| "expired"
|
|
3940
|
+
| "superseded";
|
|
3941
|
+
export type OrganizationRecoveryUnavailableReason =
|
|
3942
|
+
| "no_policy"
|
|
3943
|
+
| "pending_acceptance"
|
|
3944
|
+
| "degraded"
|
|
3945
|
+
| "disabled"
|
|
3946
|
+
| "identity_unavailable";
|
|
3947
|
+
export type OrganizationRecoveryMemberSummary = {
|
|
3948
|
+
membershipId: string;
|
|
3949
|
+
name: string | null;
|
|
3950
|
+
email: string | null;
|
|
3951
|
+
};
|
|
3952
|
+
export type OrganizationRecoveryCustodian = OrganizationRecoveryMemberSummary & {
|
|
3953
|
+
ordinal: number;
|
|
3954
|
+
enrollmentState: "pending_acceptance" | "accepted" | "ineligible";
|
|
3955
|
+
acceptedAt: string | null;
|
|
3956
|
+
};
|
|
3957
|
+
export type OrganizationRecoveryPolicy = {
|
|
3958
|
+
id: string;
|
|
3959
|
+
organizationId: string;
|
|
3960
|
+
revision: number;
|
|
3961
|
+
state: OrganizationRecoveryPolicyState;
|
|
3962
|
+
custodians: OrganizationRecoveryCustodian[];
|
|
3963
|
+
createdAt: string;
|
|
3964
|
+
updatedAt: string;
|
|
3965
|
+
};
|
|
3966
|
+
export type OrganizationRecoveryApproval = OrganizationRecoveryMemberSummary & {
|
|
3967
|
+
approvedAt: string;
|
|
3968
|
+
};
|
|
3969
|
+
export type OrganizationRecoveryOperation = {
|
|
3970
|
+
id: string;
|
|
3971
|
+
organizationId: string;
|
|
3972
|
+
policyId: string;
|
|
3973
|
+
policyRevision: number;
|
|
3974
|
+
revision: number;
|
|
3975
|
+
state: OrganizationRecoveryOperationState;
|
|
3976
|
+
target: OrganizationRecoveryMemberSummary;
|
|
3977
|
+
approvals: OrganizationRecoveryApproval[];
|
|
3978
|
+
approvalCount: number;
|
|
3979
|
+
quorumAt: string | null;
|
|
3980
|
+
executableAt: string | null;
|
|
3981
|
+
expiresAt: string;
|
|
3982
|
+
executedAt: string | null;
|
|
3983
|
+
cancelledAt: string | null;
|
|
3984
|
+
notificationJournaled: boolean;
|
|
3985
|
+
createdAt: string;
|
|
3986
|
+
updatedAt: string;
|
|
3987
|
+
};
|
|
3988
|
+
export type OrganizationRecoveryCapabilities = {
|
|
3989
|
+
configure: boolean;
|
|
3990
|
+
accept: boolean;
|
|
3991
|
+
disable: boolean;
|
|
3992
|
+
start: boolean;
|
|
3993
|
+
approve: boolean;
|
|
3994
|
+
cancel: boolean;
|
|
3995
|
+
execute: boolean;
|
|
3996
|
+
};
|
|
3997
|
+
export type OrganizationRecoveryOverview = {
|
|
3998
|
+
organizationId: string;
|
|
3999
|
+
availability: "available" | "recovery_unavailable";
|
|
4000
|
+
unavailableReason: OrganizationRecoveryUnavailableReason | null;
|
|
4001
|
+
recentReauthenticationAt: string | null;
|
|
4002
|
+
eligibleMembers: OrganizationRecoveryMemberSummary[];
|
|
4003
|
+
policy: OrganizationRecoveryPolicy | null;
|
|
4004
|
+
operation: OrganizationRecoveryOperation | null;
|
|
4005
|
+
capabilities: OrganizationRecoveryCapabilities;
|
|
4006
|
+
};
|
|
4007
|
+
export type ConfigureOrganizationRecoveryPolicyRequest = {
|
|
4008
|
+
custodianMembershipIds: [string, string, string];
|
|
4009
|
+
expectedPolicyRevision: number;
|
|
4010
|
+
operationId: string;
|
|
4011
|
+
};
|
|
4012
|
+
export type AcceptOrganizationRecoveryCustodyRequest = {
|
|
4013
|
+
expectedPolicyRevision: number;
|
|
4014
|
+
operationId: string;
|
|
4015
|
+
};
|
|
4016
|
+
export type DisableOrganizationRecoveryPolicyRequest = AcceptOrganizationRecoveryCustodyRequest;
|
|
4017
|
+
export type StartOrganizationRecoveryOperationRequest = {
|
|
4018
|
+
targetMembershipId: string;
|
|
4019
|
+
expectedPolicyRevision: number;
|
|
4020
|
+
operationId: string;
|
|
4021
|
+
};
|
|
4022
|
+
export type OrganizationRecoveryOperationCommandRequest = {
|
|
4023
|
+
expectedOperationRevision: number;
|
|
4024
|
+
operationId: string;
|
|
4025
|
+
};
|
|
4026
|
+
export type OrganizationRecoveryMutationResponse = {
|
|
4027
|
+
replay: boolean;
|
|
4028
|
+
overview: OrganizationRecoveryOverview;
|
|
4029
|
+
};
|
|
3860
4030
|
export type CreateOrganizationInvitationRequest = {
|
|
3861
4031
|
email: string;
|
|
3862
4032
|
name?: string;
|
|
@@ -4765,6 +4935,20 @@ export type VariableSet = {
|
|
|
4765
4935
|
updatedAt: string;
|
|
4766
4936
|
};
|
|
4767
4937
|
|
|
4938
|
+
/** Exact-ID attachment metadata; intentionally excludes catalog and secret metadata. */
|
|
4939
|
+
export type VariableSetAttachmentMetadata = {
|
|
4940
|
+
id: string;
|
|
4941
|
+
scope: "organization" | "workspace" | "user";
|
|
4942
|
+
};
|
|
4943
|
+
|
|
4944
|
+
export type ResolveVariableSetAttachmentsRequest = {
|
|
4945
|
+
variableSetIds: string[];
|
|
4946
|
+
};
|
|
4947
|
+
|
|
4948
|
+
export type ResolveVariableSetAttachmentsResponse = {
|
|
4949
|
+
variableSets: VariableSetAttachmentMetadata[];
|
|
4950
|
+
};
|
|
4951
|
+
|
|
4768
4952
|
/** @deprecated use VariableSetVariableMetadata */
|
|
4769
4953
|
export type WorkspaceEnvironmentVariableMetadata = VariableSetVariableMetadata;
|
|
4770
4954
|
|