@parall/sdk 1.50.0 → 1.51.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/browser-viewer.d.ts +11 -0
- package/dist/browser-viewer.d.ts.map +1 -0
- package/dist/browser-viewer.js +14 -0
- package/dist/client.d.ts +17 -18
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +26 -9
- package/dist/constants.d.ts +2 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +3 -0
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/types.d.ts +69 -4
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/browser-viewer.ts +22 -0
- package/src/client.ts +44 -12
- package/src/constants.ts +4 -0
- package/src/index.ts +7 -6
- package/src/types.ts +68 -4
package/src/types.ts
CHANGED
|
@@ -408,6 +408,8 @@ export interface Organization {
|
|
|
408
408
|
/** Agent ID for strategy='agent'. NULL when strategy is 'llm' or unset. */
|
|
409
409
|
smart_routing_agent_id: string | null;
|
|
410
410
|
onboarding_agent_id: string | null;
|
|
411
|
+
/** Org-level IANA timezone (e.g. "America/New_York"). Defaults to "UTC". */
|
|
412
|
+
timezone: string;
|
|
411
413
|
created_at: string;
|
|
412
414
|
/** Per-member flag: true when the user has dismissed the onboarding popup for this org. */
|
|
413
415
|
onboarding_dismissed: boolean;
|
|
@@ -746,6 +748,46 @@ export interface DeployTemplateRequest {
|
|
|
746
748
|
template_id: string;
|
|
747
749
|
template_revision: string;
|
|
748
750
|
parameter_values?: Record<string, TemplateParameterValue>;
|
|
751
|
+
/** Hire-time per-agent adjustments (onboarding wizard S2). Keys are the
|
|
752
|
+
* template's agent keys; omitted agents keep template defaults. */
|
|
753
|
+
agent_overrides?: Record<string, DeployAgentOverride>;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
/** Per-agent hire-time override. Substitutes values within the platform-legal
|
|
757
|
+
* surface; never adds capability. Dependencies may only disable (false)
|
|
758
|
+
* declared optional deps — required deps and undeclared refs are rejected. */
|
|
759
|
+
export interface DeployAgentOverride {
|
|
760
|
+
runtime_type?: string;
|
|
761
|
+
/** Model catalog id. Empty string clears the template's pin (platform default). */
|
|
762
|
+
model?: string;
|
|
763
|
+
compute?: { machine_type: 'cloud'; machine_label?: string };
|
|
764
|
+
dependencies?: Record<string, boolean>;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
/** Pre-deploy dependency connection state (wizard S3 poll target). Same
|
|
768
|
+
* checker as the deployment report, so the two surfaces cannot disagree. */
|
|
769
|
+
export interface DependencyCheckResult {
|
|
770
|
+
ref: string;
|
|
771
|
+
connected: boolean;
|
|
772
|
+
name?: string;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
/** Onboarding wizard progress (self-scoped). A member who never started
|
|
776
|
+
* reads step='s1', state={}, version=0 (missing-row semantics). */
|
|
777
|
+
export interface OnboardingProgress {
|
|
778
|
+
step: string;
|
|
779
|
+
state: Record<string, unknown>;
|
|
780
|
+
completed_at?: string;
|
|
781
|
+
version: number;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
export interface UpdateOnboardingProgressRequest {
|
|
785
|
+
step: string;
|
|
786
|
+
state: Record<string, unknown>;
|
|
787
|
+
/** Stamps completed_at server-side (idempotent, never un-completes). */
|
|
788
|
+
completed?: boolean;
|
|
789
|
+
/** 0 = first write (no row yet). */
|
|
790
|
+
expected_version: number;
|
|
749
791
|
}
|
|
750
792
|
|
|
751
793
|
export type TemplateDeploymentAgentState = 'up' | 'provisioning' | 'error';
|
|
@@ -1343,6 +1385,12 @@ export interface MachineBrowserProfileViewerData {
|
|
|
1343
1385
|
turn?: { url: string; username?: string; credential?: string };
|
|
1344
1386
|
}
|
|
1345
1387
|
|
|
1388
|
+
/** Daemon reply body for one machine.browser_profile.viewer request. */
|
|
1389
|
+
export interface MachineBrowserProfileViewerResponse {
|
|
1390
|
+
result?: Record<string, unknown>;
|
|
1391
|
+
error?: { code?: string; message: string };
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1346
1394
|
export interface AgentNewSessionData {
|
|
1347
1395
|
previous_session_id?: string;
|
|
1348
1396
|
}
|
|
@@ -4152,15 +4200,31 @@ export type BrowserProfileStatus = 'pending' | 'running' | 'stopped' | 'error' |
|
|
|
4152
4200
|
/**
|
|
4153
4201
|
* Routing/identity discriminant: `byoc` runs on a user machine (machine_id
|
|
4154
4202
|
* required), `hosted` runs on the platform pool (machine_id null).
|
|
4203
|
+
*
|
|
4204
|
+
* NOTE: `hosted` is RETIRED — its compute plane was removed, so creating a profile
|
|
4205
|
+
* with it is rejected (400 `HOSTED_PLACEMENT_RETIRED`) and existing hosted rows are
|
|
4206
|
+
* read-only (readable, proxy-editable, deletable; never startable). The value stays
|
|
4207
|
+
* in the union because those preserved rows still report it. For a platform-run
|
|
4208
|
+
* browser use a v3 Cloud Profile (`POST /orgs/{org}/edge`).
|
|
4155
4209
|
*/
|
|
4156
4210
|
export type BrowserPlacement = 'byoc' | 'hosted';
|
|
4157
4211
|
|
|
4158
|
-
/**
|
|
4159
|
-
*
|
|
4160
|
-
*
|
|
4161
|
-
*
|
|
4212
|
+
/** Platform-hosted browser runtime availability.
|
|
4213
|
+
*
|
|
4214
|
+
* This now always reports `available: false`: the v2 hosted compute plane is
|
|
4215
|
+
* retired, so the answer is a constant rather than a probe of a controller that no
|
|
4216
|
+
* longer exists. Clients that already treat `available: false` as "offer BYOC
|
|
4217
|
+
* instead" degrade correctly with no change.
|
|
4218
|
+
*
|
|
4219
|
+
* `code` distinguishes PERMANENT retirement (`HOSTED_PLACEMENT_RETIRED`) from the
|
|
4220
|
+
* transient outage the old flag could also mean — do not retry on it. It is
|
|
4221
|
+
* optional so older servers, which sent only `{available, reason}`, still typecheck. */
|
|
4162
4222
|
export interface BrowserRuntimeStatus {
|
|
4163
4223
|
available: boolean;
|
|
4224
|
+
/** Present when `available` is false for a structural reason. Currently only
|
|
4225
|
+
* `HOSTED_PLACEMENT_RETIRED`; typed as string so a new server code is not a
|
|
4226
|
+
* breaking SDK change. */
|
|
4227
|
+
code?: string;
|
|
4164
4228
|
reason?: string;
|
|
4165
4229
|
}
|
|
4166
4230
|
|