@opengeni/sdk 0.44.3 → 0.46.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/{chunk-UZNQOMWX.js → chunk-QKV5OCLJ.js} +163 -2
- package/dist/chunk-QKV5OCLJ.js.map +1 -0
- package/dist/client.d.ts +41 -2
- package/dist/core.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types.d.ts +80 -4
- package/package.json +1 -1
- package/src/client.ts +280 -1
- package/src/types.ts +113 -7
- package/dist/chunk-UZNQOMWX.js.map +0 -1
package/src/types.ts
CHANGED
|
@@ -2094,7 +2094,6 @@ export type FirstPartyMcpToolName =
|
|
|
2094
2094
|
| "variable_set_set_variable"
|
|
2095
2095
|
| "environment_set_variable"
|
|
2096
2096
|
| "github_connect_link"
|
|
2097
|
-
| "github_token"
|
|
2098
2097
|
| "github_repositories_list"
|
|
2099
2098
|
| "social_connections_list"
|
|
2100
2099
|
| "social_posts_recent"
|
|
@@ -2370,6 +2369,10 @@ export type CodexAccount = {
|
|
|
2370
2369
|
/** Cached authoritative summary count, never detailed redemption authority. */
|
|
2371
2370
|
resetCreditAvailableCount?: number | null;
|
|
2372
2371
|
resetCreditsCheckedAt?: string | null;
|
|
2372
|
+
/** True when this exact credential is the workspace's independent Apps credential. */
|
|
2373
|
+
appsDesignated: boolean;
|
|
2374
|
+
/** True only for the scoped managed human who connected it. */
|
|
2375
|
+
canEnableApps: boolean;
|
|
2373
2376
|
};
|
|
2374
2377
|
|
|
2375
2378
|
export type CodexResetCredit = {
|
|
@@ -2436,10 +2439,10 @@ export type CodexAllocatorUpdate = {
|
|
|
2436
2439
|
changed: boolean;
|
|
2437
2440
|
};
|
|
2438
2441
|
|
|
2439
|
-
/** Per-workspace Codex rotation/active settings.
|
|
2442
|
+
/** Per-workspace Codex rotation/active settings. New servers return `sharded`. */
|
|
2440
2443
|
export type CodexRotationSettings = {
|
|
2441
2444
|
rotationEnabled: boolean;
|
|
2442
|
-
rotationStrategy: "most_remaining" | "round_robin" | "drain_then_next";
|
|
2445
|
+
rotationStrategy: "sharded" | "most_remaining" | "round_robin" | "drain_then_next";
|
|
2443
2446
|
activeCredentialId: string | null;
|
|
2444
2447
|
};
|
|
2445
2448
|
|
|
@@ -2447,18 +2450,29 @@ export type CodexRotationSettings = {
|
|
|
2447
2450
|
export type CodexAccountsResponse = {
|
|
2448
2451
|
accounts: CodexAccount[];
|
|
2449
2452
|
activeAccountId: string | null;
|
|
2453
|
+
/** Added by Apps-aware servers; absent on older same-major deployments. */
|
|
2454
|
+
apps?: {
|
|
2455
|
+
available: boolean;
|
|
2456
|
+
credentialId: string | null;
|
|
2457
|
+
version: number;
|
|
2458
|
+
designatedAt: string | null;
|
|
2459
|
+
canDisable: boolean;
|
|
2460
|
+
};
|
|
2450
2461
|
settings: CodexRotationSettings;
|
|
2451
2462
|
};
|
|
2452
2463
|
|
|
2464
|
+
export type CodexAppsUpdate = {
|
|
2465
|
+
credentialId: string | null;
|
|
2466
|
+
version: number;
|
|
2467
|
+
designatedAt: string | null;
|
|
2468
|
+
changed: boolean;
|
|
2469
|
+
};
|
|
2470
|
+
|
|
2453
2471
|
/** Payload of a `codex.account.switched` session event. */
|
|
2454
2472
|
export type CodexAccountSwitchedPayload = {
|
|
2455
2473
|
fromAccountId: string | null;
|
|
2456
2474
|
toAccountId: string;
|
|
2457
2475
|
reason: "manual" | "exhausted" | "rotation";
|
|
2458
|
-
// P4 connector-aware rotation: the session's used connectors that the new account
|
|
2459
|
-
// does NOT cover (a prefer-not-require failover that dropped a connector). Present
|
|
2460
|
-
// only on such a switch; the UI renders a "dropped <connector>" badge on the pill.
|
|
2461
|
-
droppedConnectors?: string[];
|
|
2462
2476
|
};
|
|
2463
2477
|
|
|
2464
2478
|
/** Device-code start: show `userCode` at `verificationUri`, then poll with `state`. */
|
|
@@ -2554,6 +2568,98 @@ export type ClientVoiceInputConfig = {
|
|
|
2554
2568
|
maxDurationSeconds: number;
|
|
2555
2569
|
maxSizeBytes: number;
|
|
2556
2570
|
acceptedMimeTypes: string[];
|
|
2571
|
+
resumable?: ClientResumableVoiceInputConfig | undefined;
|
|
2572
|
+
};
|
|
2573
|
+
|
|
2574
|
+
export type ClientResumableVoiceInputConfig = {
|
|
2575
|
+
maxDurationSeconds: number;
|
|
2576
|
+
maxSizeBytes: number;
|
|
2577
|
+
maxChunkSizeBytes: number;
|
|
2578
|
+
providerSegmentSeconds: number;
|
|
2579
|
+
};
|
|
2580
|
+
|
|
2581
|
+
export type TranscriptionRecordingErrorCode =
|
|
2582
|
+
| "permission_denied"
|
|
2583
|
+
| "not_supported"
|
|
2584
|
+
| "network"
|
|
2585
|
+
| "provider"
|
|
2586
|
+
| "policy_blocked"
|
|
2587
|
+
| "timeout"
|
|
2588
|
+
| "cancelled"
|
|
2589
|
+
| "unavailable"
|
|
2590
|
+
| "too_large"
|
|
2591
|
+
| "invalid_audio"
|
|
2592
|
+
| "unknown";
|
|
2593
|
+
|
|
2594
|
+
export type TranscriptionRecordingState =
|
|
2595
|
+
| "uploading"
|
|
2596
|
+
| "segmenting"
|
|
2597
|
+
| "ready"
|
|
2598
|
+
| "transcribing"
|
|
2599
|
+
| "complete"
|
|
2600
|
+
| "failed"
|
|
2601
|
+
| "discarded";
|
|
2602
|
+
|
|
2603
|
+
export type TranscriptionRecordingSegmentState =
|
|
2604
|
+
| "preparing"
|
|
2605
|
+
| "pending"
|
|
2606
|
+
| "transcribing"
|
|
2607
|
+
| "complete"
|
|
2608
|
+
| "failed";
|
|
2609
|
+
|
|
2610
|
+
export type TranscriptionRecordingSegment = {
|
|
2611
|
+
segmentNumber: number;
|
|
2612
|
+
state: TranscriptionRecordingSegmentState;
|
|
2613
|
+
startMilliseconds: number;
|
|
2614
|
+
durationMilliseconds: number;
|
|
2615
|
+
byteLength: number;
|
|
2616
|
+
errorCode: TranscriptionRecordingErrorCode | null;
|
|
2617
|
+
retryable: boolean;
|
|
2618
|
+
};
|
|
2619
|
+
|
|
2620
|
+
export type TranscriptionRecording = {
|
|
2621
|
+
id: string;
|
|
2622
|
+
workspaceId: string;
|
|
2623
|
+
mimeType: string;
|
|
2624
|
+
state: TranscriptionRecordingState;
|
|
2625
|
+
nextChunkNumber: number;
|
|
2626
|
+
chunkCount: number;
|
|
2627
|
+
totalBytes: number;
|
|
2628
|
+
totalDurationMilliseconds: number;
|
|
2629
|
+
segmentCount: number;
|
|
2630
|
+
completedSegmentCount: number;
|
|
2631
|
+
transcriptText: string | null;
|
|
2632
|
+
languages: string[];
|
|
2633
|
+
errorCode: TranscriptionRecordingErrorCode | null;
|
|
2634
|
+
retryable: boolean;
|
|
2635
|
+
objectsCleaned: boolean;
|
|
2636
|
+
createdAt: string;
|
|
2637
|
+
updatedAt: string;
|
|
2638
|
+
expiresAt: string;
|
|
2639
|
+
};
|
|
2640
|
+
|
|
2641
|
+
export type TranscriptionRecordingResponse = {
|
|
2642
|
+
recording: TranscriptionRecording;
|
|
2643
|
+
segments: TranscriptionRecordingSegment[];
|
|
2644
|
+
retryAfterMilliseconds?: number;
|
|
2645
|
+
};
|
|
2646
|
+
|
|
2647
|
+
export type TranscriptionRecordingListResponse = {
|
|
2648
|
+
recordings: TranscriptionRecording[];
|
|
2649
|
+
};
|
|
2650
|
+
|
|
2651
|
+
export type TranscriptionRecordingChunk = {
|
|
2652
|
+
chunkNumber: number;
|
|
2653
|
+
byteLength: number;
|
|
2654
|
+
sha256: string;
|
|
2655
|
+
startMilliseconds: number;
|
|
2656
|
+
durationMilliseconds: number;
|
|
2657
|
+
deduplicated: boolean;
|
|
2658
|
+
};
|
|
2659
|
+
|
|
2660
|
+
export type UploadTranscriptionRecordingChunkResponse = {
|
|
2661
|
+
recording: TranscriptionRecording;
|
|
2662
|
+
chunk: TranscriptionRecordingChunk;
|
|
2557
2663
|
};
|
|
2558
2664
|
|
|
2559
2665
|
/** Response from POST /v1/workspaces/:workspaceId/transcriptions. */
|