@opengeni/sdk 0.28.2 → 0.29.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 +16 -5
- package/dist/index.d.ts +15 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -0
- package/src/types.ts +15 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeni/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"description": "Framework-agnostic TypeScript SDK for the OpenGeni API: typed client, session lifecycle, SSE event streaming with reconnect + replay-by-sequence, and proxy re-streaming helpers.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
package/src/index.ts
CHANGED
|
@@ -237,8 +237,10 @@ export type {
|
|
|
237
237
|
FileResourceRef,
|
|
238
238
|
FileStatus,
|
|
239
239
|
FileUploadData,
|
|
240
|
+
FirstPartyMcpToolName,
|
|
240
241
|
GetPackResponse,
|
|
241
242
|
GitHubAppInfo,
|
|
243
|
+
GitHubAppSetupMode,
|
|
242
244
|
GitHubBindingStatus,
|
|
243
245
|
GitHubInstallationBinding,
|
|
244
246
|
GitHubInstallationLifecycle,
|
package/src/types.ts
CHANGED
|
@@ -272,7 +272,7 @@ export type ToolRef = {
|
|
|
272
272
|
};
|
|
273
273
|
|
|
274
274
|
export type SessionToolPolicy = {
|
|
275
|
-
mode: "workspace_default" | "explicit" | "inherited"
|
|
275
|
+
mode: "workspace_default" | "explicit" | "inherited";
|
|
276
276
|
inheritedFromSessionId: string | null;
|
|
277
277
|
};
|
|
278
278
|
|
|
@@ -282,9 +282,9 @@ export type UpdateSessionToolPolicyRequest =
|
|
|
282
282
|
expectedVersion: number;
|
|
283
283
|
}
|
|
284
284
|
| {
|
|
285
|
-
|
|
286
|
-
mode?: "explicit" | undefined;
|
|
285
|
+
mode: "explicit";
|
|
287
286
|
tools: ToolRef[];
|
|
287
|
+
firstPartyMcpTools: FirstPartyMcpToolName[];
|
|
288
288
|
expectedVersion: number;
|
|
289
289
|
};
|
|
290
290
|
|
|
@@ -496,8 +496,8 @@ export type Session = {
|
|
|
496
496
|
resources: ResourceRef[];
|
|
497
497
|
skills: SessionSkill[];
|
|
498
498
|
tools: ToolRef[];
|
|
499
|
-
toolPolicy
|
|
500
|
-
toolPolicyVersion
|
|
499
|
+
toolPolicy: SessionToolPolicy;
|
|
500
|
+
toolPolicyVersion: number;
|
|
501
501
|
effectiveToolPolicy?: SessionEffectiveToolPolicy | undefined;
|
|
502
502
|
metadata: Record<string, unknown>;
|
|
503
503
|
/** Frozen creator fact; later turns carry their own independent initiator. */
|
|
@@ -517,7 +517,7 @@ export type Session = {
|
|
|
517
517
|
rigId: string | null;
|
|
518
518
|
rigVersionId: string | null;
|
|
519
519
|
firstPartyMcpPermissions: string[] | null;
|
|
520
|
-
firstPartyMcpTools: FirstPartyMcpToolName[]
|
|
520
|
+
firstPartyMcpTools: FirstPartyMcpToolName[];
|
|
521
521
|
mcpServers: SessionMcpServerMetadata[];
|
|
522
522
|
parentSessionId: string | null;
|
|
523
523
|
/** Immutable server-authored nested-agent lineage and policy snapshot. */
|
|
@@ -2389,9 +2389,6 @@ export type ComposerDraft = {
|
|
|
2389
2389
|
revision: number;
|
|
2390
2390
|
text: string;
|
|
2391
2391
|
resources: ResourceRef[];
|
|
2392
|
-
tools: ToolRef[];
|
|
2393
|
-
/** False inherits the session policy; true preserves an explicit array. */
|
|
2394
|
-
toolsProvided: boolean;
|
|
2395
2392
|
model: string;
|
|
2396
2393
|
reasoningEffort: ReasoningEffort;
|
|
2397
2394
|
sourceTurnId: string | null;
|
|
@@ -2407,6 +2404,7 @@ export type NewSessionDraftOptions = {
|
|
|
2407
2404
|
rigId?: string | undefined;
|
|
2408
2405
|
goal?: GoalSpec | undefined;
|
|
2409
2406
|
firstPartyMcpPermissions?: Permission[] | undefined;
|
|
2407
|
+
firstPartyMcpTools?: FirstPartyMcpToolName[] | undefined;
|
|
2410
2408
|
};
|
|
2411
2409
|
|
|
2412
2410
|
export type NewSessionDraft = {
|
|
@@ -3478,6 +3476,8 @@ export type GitHubRepositoryScope = "all" | "selected";
|
|
|
3478
3476
|
|
|
3479
3477
|
export type GitHubBindingStatus = "disabled" | "unbound" | "bound";
|
|
3480
3478
|
|
|
3479
|
+
export type GitHubAppSetupMode = "platform" | "operator";
|
|
3480
|
+
|
|
3481
3481
|
export type GitHubInstallationLifecycle = "active" | "suspended" | "deleted" | "unverified";
|
|
3482
3482
|
|
|
3483
3483
|
export type GitHubInstallationBinding = {
|
|
@@ -3488,6 +3488,8 @@ export type GitHubInstallationBinding = {
|
|
|
3488
3488
|
lifecycle: GitHubInstallationLifecycle;
|
|
3489
3489
|
repositoryScope: GitHubRepositoryScope;
|
|
3490
3490
|
repositoryCount: number;
|
|
3491
|
+
/** OpenGeni-owned entry point for changing the installation's repository allowlist. */
|
|
3492
|
+
configureUrl: string | null;
|
|
3491
3493
|
createdAt: string;
|
|
3492
3494
|
updatedAt: string;
|
|
3493
3495
|
};
|
|
@@ -3496,12 +3498,14 @@ export type GitHubAppInfo = {
|
|
|
3496
3498
|
configured: boolean;
|
|
3497
3499
|
/** Truthful workspace binding state; server App credentials alone are not a binding. */
|
|
3498
3500
|
status: GitHubBindingStatus;
|
|
3501
|
+
/** Platform deployments expose installation only; operator deployments may create an App. */
|
|
3502
|
+
setupMode: GitHubAppSetupMode;
|
|
3499
3503
|
appId: string | null;
|
|
3500
3504
|
clientId: string | null;
|
|
3501
3505
|
appSlug: string | null;
|
|
3502
|
-
/** Fresh
|
|
3506
|
+
/** Fresh OAuth-first existing-installation discovery and install entry point. */
|
|
3503
3507
|
installUrl: string | null;
|
|
3504
|
-
/** Compatibility alias for installUrl
|
|
3508
|
+
/** Compatibility alias for installUrl. */
|
|
3505
3509
|
linkUrl: string | null;
|
|
3506
3510
|
/** Installation bindings owned independently by this workspace. */
|
|
3507
3511
|
installations: GitHubInstallationBinding[];
|
|
@@ -3616,7 +3620,6 @@ export type UserMessageEventInput = {
|
|
|
3616
3620
|
text: string;
|
|
3617
3621
|
turnInstructions?: string | undefined;
|
|
3618
3622
|
resources?: ResourceRef[] | undefined;
|
|
3619
|
-
tools?: ToolRef[] | undefined;
|
|
3620
3623
|
model?: string | undefined;
|
|
3621
3624
|
reasoningEffort?: ReasoningEffort | undefined;
|
|
3622
3625
|
mcpCredentialUpdates?: SessionMcpCredentialUpdateInput[] | undefined;
|