@pstdio/pocketcoder-sdk 0.7.0 → 0.8.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/index.d.ts +57 -56
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -565,15 +565,15 @@ type ScreenshotResource = z.infer<typeof ScreenshotResourceSchema>;
|
|
|
565
565
|
//#endregion
|
|
566
566
|
//#region ../contracts/src/network/network.d.ts
|
|
567
567
|
declare const NetworkEventSchema: z.ZodObject<{
|
|
568
|
-
method: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
569
568
|
path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
570
|
-
|
|
569
|
+
method: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
571
570
|
occurred_at: z.ZodISODateTime;
|
|
572
571
|
transport: z.ZodEnum<{
|
|
573
572
|
http: "http";
|
|
574
573
|
https: "https";
|
|
575
574
|
}>;
|
|
576
575
|
port: z.ZodNumber;
|
|
576
|
+
reason: z.ZodString;
|
|
577
577
|
decision: z.ZodEnum<{
|
|
578
578
|
allow: "allow";
|
|
579
579
|
deny: "deny";
|
|
@@ -647,9 +647,9 @@ declare const CheckpointResourceSchema: z.ZodObject<{
|
|
|
647
647
|
workspace_id: z.ZodUUID;
|
|
648
648
|
state: z.ZodEnum<{
|
|
649
649
|
deleted: "deleted";
|
|
650
|
+
failed: "failed";
|
|
650
651
|
creating: "creating";
|
|
651
652
|
ready: "ready";
|
|
652
|
-
failed: "failed";
|
|
653
653
|
deleting: "deleting";
|
|
654
654
|
}>;
|
|
655
655
|
reason_code: z.ZodNullable<z.ZodString>;
|
|
@@ -684,10 +684,10 @@ declare const OperationResourceSchema: z.ZodObject<{
|
|
|
684
684
|
purge: "purge";
|
|
685
685
|
}>;
|
|
686
686
|
state: z.ZodEnum<{
|
|
687
|
-
failed: "failed";
|
|
688
687
|
pending: "pending";
|
|
689
688
|
running: "running";
|
|
690
689
|
succeeded: "succeeded";
|
|
690
|
+
failed: "failed";
|
|
691
691
|
}>;
|
|
692
692
|
workspace_id: z.ZodNullable<z.ZodUUID>;
|
|
693
693
|
checkpoint_id: z.ZodNullable<z.ZodUUID>;
|
|
@@ -707,6 +707,7 @@ declare const RestoreRequestSchema: z.ZodObject<{
|
|
|
707
707
|
external_id: z.ZodString;
|
|
708
708
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
709
709
|
launch_input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
710
|
+
template_version: z.ZodOptional<z.ZodString>;
|
|
710
711
|
}, z.core.$strip>;
|
|
711
712
|
type RestoreRequest = z.infer<typeof RestoreRequestSchema>;
|
|
712
713
|
//#endregion
|
|
@@ -770,9 +771,9 @@ declare const WorkspaceResourceSchema: z.ZodObject<{
|
|
|
770
771
|
model: z.ZodNullable<z.ZodString>;
|
|
771
772
|
}, z.core.$strip>>;
|
|
772
773
|
state: z.ZodEnum<{
|
|
773
|
-
ready: "ready";
|
|
774
|
-
failed: "failed";
|
|
775
774
|
succeeded: "succeeded";
|
|
775
|
+
failed: "failed";
|
|
776
|
+
ready: "ready";
|
|
776
777
|
queued: "queued";
|
|
777
778
|
provisioning: "provisioning";
|
|
778
779
|
connected: "connected";
|
|
@@ -832,8 +833,8 @@ declare const WorkspaceResourceSchema: z.ZodObject<{
|
|
|
832
833
|
}>>;
|
|
833
834
|
network: z.ZodObject<{
|
|
834
835
|
state: z.ZodEnum<{
|
|
835
|
-
ready: "ready";
|
|
836
836
|
disabled: "disabled";
|
|
837
|
+
ready: "ready";
|
|
837
838
|
starting: "starting";
|
|
838
839
|
degraded: "degraded";
|
|
839
840
|
}>;
|
|
@@ -1058,9 +1059,9 @@ declare const WorkloadTemplateBaseSchema: z.ZodObject<{
|
|
|
1058
1059
|
method: z.ZodEnum<{
|
|
1059
1060
|
POST: "POST";
|
|
1060
1061
|
DELETE: "DELETE";
|
|
1061
|
-
GET: "GET";
|
|
1062
|
-
PUT: "PUT";
|
|
1063
1062
|
PATCH: "PATCH";
|
|
1063
|
+
PUT: "PUT";
|
|
1064
|
+
GET: "GET";
|
|
1064
1065
|
}>;
|
|
1065
1066
|
path: z.ZodString;
|
|
1066
1067
|
query: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -1261,9 +1262,9 @@ declare const WorkloadTemplateSnapshotSchema: z.ZodObject<{
|
|
|
1261
1262
|
method: z.ZodEnum<{
|
|
1262
1263
|
POST: "POST";
|
|
1263
1264
|
DELETE: "DELETE";
|
|
1264
|
-
GET: "GET";
|
|
1265
|
-
PUT: "PUT";
|
|
1266
1265
|
PATCH: "PATCH";
|
|
1266
|
+
PUT: "PUT";
|
|
1267
|
+
GET: "GET";
|
|
1267
1268
|
}>;
|
|
1268
1269
|
path: z.ZodString;
|
|
1269
1270
|
query: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -1469,9 +1470,9 @@ declare const ServiceSchema: z.ZodObject<{
|
|
|
1469
1470
|
method: z.ZodEnum<{
|
|
1470
1471
|
POST: "POST";
|
|
1471
1472
|
DELETE: "DELETE";
|
|
1472
|
-
GET: "GET";
|
|
1473
|
-
PUT: "PUT";
|
|
1474
1473
|
PATCH: "PATCH";
|
|
1474
|
+
PUT: "PUT";
|
|
1475
|
+
GET: "GET";
|
|
1475
1476
|
}>;
|
|
1476
1477
|
path: z.ZodString;
|
|
1477
1478
|
query: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -1562,9 +1563,9 @@ declare const TemplateSpecInputSchema: z.ZodObject<{
|
|
|
1562
1563
|
method: z.ZodEnum<{
|
|
1563
1564
|
POST: "POST";
|
|
1564
1565
|
DELETE: "DELETE";
|
|
1565
|
-
GET: "GET";
|
|
1566
|
-
PUT: "PUT";
|
|
1567
1566
|
PATCH: "PATCH";
|
|
1567
|
+
PUT: "PUT";
|
|
1568
|
+
GET: "GET";
|
|
1568
1569
|
}>;
|
|
1569
1570
|
path: z.ZodString;
|
|
1570
1571
|
query: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -1751,9 +1752,9 @@ declare const TemplateManifestBaseSchema: z.ZodObject<{
|
|
|
1751
1752
|
method: z.ZodEnum<{
|
|
1752
1753
|
POST: "POST";
|
|
1753
1754
|
DELETE: "DELETE";
|
|
1754
|
-
GET: "GET";
|
|
1755
|
-
PUT: "PUT";
|
|
1756
1755
|
PATCH: "PATCH";
|
|
1756
|
+
PUT: "PUT";
|
|
1757
|
+
GET: "GET";
|
|
1757
1758
|
}>;
|
|
1758
1759
|
path: z.ZodString;
|
|
1759
1760
|
query: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -1991,7 +1992,7 @@ declare const TemplateManifestBaseSchema: z.ZodObject<{
|
|
|
1991
1992
|
required: boolean;
|
|
1992
1993
|
healthPath: string;
|
|
1993
1994
|
routes: {
|
|
1994
|
-
method: "POST" | "DELETE" | "
|
|
1995
|
+
method: "POST" | "DELETE" | "PATCH" | "PUT" | "GET";
|
|
1995
1996
|
path: string;
|
|
1996
1997
|
query: string[];
|
|
1997
1998
|
responseMode: "buffered" | "stream";
|
|
@@ -2407,14 +2408,14 @@ declare class WorkspacesApi {
|
|
|
2407
2408
|
type: string;
|
|
2408
2409
|
model: string | null;
|
|
2409
2410
|
} | null;
|
|
2410
|
-
state: "
|
|
2411
|
+
state: "succeeded" | "failed" | "ready" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
|
|
2411
2412
|
reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
|
|
2412
2413
|
agent_state: "unknown" | "running" | "stable";
|
|
2413
2414
|
change_cursor: number;
|
|
2414
2415
|
provider_kind: string | null;
|
|
2415
2416
|
provisioning_mode: "cold" | "warm" | null;
|
|
2416
2417
|
network: {
|
|
2417
|
-
state: "
|
|
2418
|
+
state: "disabled" | "ready" | "starting" | "degraded";
|
|
2418
2419
|
};
|
|
2419
2420
|
health: Record<string, string>;
|
|
2420
2421
|
created_at: string;
|
|
@@ -2461,14 +2462,14 @@ declare class WorkspacesApi {
|
|
|
2461
2462
|
type: string;
|
|
2462
2463
|
model: string | null;
|
|
2463
2464
|
} | null;
|
|
2464
|
-
state: "
|
|
2465
|
+
state: "succeeded" | "failed" | "ready" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
|
|
2465
2466
|
reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
|
|
2466
2467
|
agent_state: "unknown" | "running" | "stable";
|
|
2467
2468
|
change_cursor: number;
|
|
2468
2469
|
provider_kind: string | null;
|
|
2469
2470
|
provisioning_mode: "cold" | "warm" | null;
|
|
2470
2471
|
network: {
|
|
2471
|
-
state: "
|
|
2472
|
+
state: "disabled" | "ready" | "starting" | "degraded";
|
|
2472
2473
|
};
|
|
2473
2474
|
health: Record<string, string>;
|
|
2474
2475
|
created_at: string;
|
|
@@ -2515,14 +2516,14 @@ declare class WorkspacesApi {
|
|
|
2515
2516
|
type: string;
|
|
2516
2517
|
model: string | null;
|
|
2517
2518
|
} | null;
|
|
2518
|
-
state: "
|
|
2519
|
+
state: "succeeded" | "failed" | "ready" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
|
|
2519
2520
|
reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
|
|
2520
2521
|
agent_state: "unknown" | "running" | "stable";
|
|
2521
2522
|
change_cursor: number;
|
|
2522
2523
|
provider_kind: string | null;
|
|
2523
2524
|
provisioning_mode: "cold" | "warm" | null;
|
|
2524
2525
|
network: {
|
|
2525
|
-
state: "
|
|
2526
|
+
state: "disabled" | "ready" | "starting" | "degraded";
|
|
2526
2527
|
};
|
|
2527
2528
|
health: Record<string, string>;
|
|
2528
2529
|
created_at: string;
|
|
@@ -2569,14 +2570,14 @@ declare class WorkspacesApi {
|
|
|
2569
2570
|
type: string;
|
|
2570
2571
|
model: string | null;
|
|
2571
2572
|
} | null;
|
|
2572
|
-
state: "
|
|
2573
|
+
state: "succeeded" | "failed" | "ready" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
|
|
2573
2574
|
reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
|
|
2574
2575
|
agent_state: "unknown" | "running" | "stable";
|
|
2575
2576
|
change_cursor: number;
|
|
2576
2577
|
provider_kind: string | null;
|
|
2577
2578
|
provisioning_mode: "cold" | "warm" | null;
|
|
2578
2579
|
network: {
|
|
2579
|
-
state: "
|
|
2580
|
+
state: "disabled" | "ready" | "starting" | "degraded";
|
|
2580
2581
|
};
|
|
2581
2582
|
health: Record<string, string>;
|
|
2582
2583
|
created_at: string;
|
|
@@ -2623,14 +2624,14 @@ declare class WorkspacesApi {
|
|
|
2623
2624
|
type: string;
|
|
2624
2625
|
model: string | null;
|
|
2625
2626
|
} | null;
|
|
2626
|
-
state: "
|
|
2627
|
+
state: "succeeded" | "failed" | "ready" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
|
|
2627
2628
|
reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
|
|
2628
2629
|
agent_state: "unknown" | "running" | "stable";
|
|
2629
2630
|
change_cursor: number;
|
|
2630
2631
|
provider_kind: string | null;
|
|
2631
2632
|
provisioning_mode: "cold" | "warm" | null;
|
|
2632
2633
|
network: {
|
|
2633
|
-
state: "
|
|
2634
|
+
state: "disabled" | "ready" | "starting" | "degraded";
|
|
2634
2635
|
};
|
|
2635
2636
|
health: Record<string, string>;
|
|
2636
2637
|
created_at: string;
|
|
@@ -2680,14 +2681,14 @@ declare class WorkspacesApi {
|
|
|
2680
2681
|
type: string;
|
|
2681
2682
|
model: string | null;
|
|
2682
2683
|
} | null;
|
|
2683
|
-
state: "
|
|
2684
|
+
state: "succeeded" | "failed" | "ready" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
|
|
2684
2685
|
reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
|
|
2685
2686
|
agent_state: "unknown" | "running" | "stable";
|
|
2686
2687
|
change_cursor: number;
|
|
2687
2688
|
provider_kind: string | null;
|
|
2688
2689
|
provisioning_mode: "cold" | "warm" | null;
|
|
2689
2690
|
network: {
|
|
2690
|
-
state: "
|
|
2691
|
+
state: "disabled" | "ready" | "starting" | "degraded";
|
|
2691
2692
|
};
|
|
2692
2693
|
health: Record<string, string>;
|
|
2693
2694
|
created_at: string;
|
|
@@ -2737,14 +2738,14 @@ declare class WorkspacesApi {
|
|
|
2737
2738
|
type: string;
|
|
2738
2739
|
model: string | null;
|
|
2739
2740
|
} | null;
|
|
2740
|
-
state: "
|
|
2741
|
+
state: "succeeded" | "failed" | "ready" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
|
|
2741
2742
|
reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
|
|
2742
2743
|
agent_state: "unknown" | "running" | "stable";
|
|
2743
2744
|
change_cursor: number;
|
|
2744
2745
|
provider_kind: string | null;
|
|
2745
2746
|
provisioning_mode: "cold" | "warm" | null;
|
|
2746
2747
|
network: {
|
|
2747
|
-
state: "
|
|
2748
|
+
state: "disabled" | "ready" | "starting" | "degraded";
|
|
2748
2749
|
};
|
|
2749
2750
|
health: Record<string, string>;
|
|
2750
2751
|
created_at: string;
|
|
@@ -2791,14 +2792,14 @@ declare class WorkspacesApi {
|
|
|
2791
2792
|
type: string;
|
|
2792
2793
|
model: string | null;
|
|
2793
2794
|
} | null;
|
|
2794
|
-
state: "
|
|
2795
|
+
state: "succeeded" | "failed" | "ready" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
|
|
2795
2796
|
reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
|
|
2796
2797
|
agent_state: "unknown" | "running" | "stable";
|
|
2797
2798
|
change_cursor: number;
|
|
2798
2799
|
provider_kind: string | null;
|
|
2799
2800
|
provisioning_mode: "cold" | "warm" | null;
|
|
2800
2801
|
network: {
|
|
2801
|
-
state: "
|
|
2802
|
+
state: "disabled" | "ready" | "starting" | "degraded";
|
|
2802
2803
|
};
|
|
2803
2804
|
health: Record<string, string>;
|
|
2804
2805
|
created_at: string;
|
|
@@ -2846,14 +2847,14 @@ declare class WorkspacesApi {
|
|
|
2846
2847
|
type: string;
|
|
2847
2848
|
model: string | null;
|
|
2848
2849
|
} | null;
|
|
2849
|
-
state: "
|
|
2850
|
+
state: "succeeded" | "failed" | "ready" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
|
|
2850
2851
|
reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
|
|
2851
2852
|
agent_state: "unknown" | "running" | "stable";
|
|
2852
2853
|
change_cursor: number;
|
|
2853
2854
|
provider_kind: string | null;
|
|
2854
2855
|
provisioning_mode: "cold" | "warm" | null;
|
|
2855
2856
|
network: {
|
|
2856
|
-
state: "
|
|
2857
|
+
state: "disabled" | "ready" | "starting" | "degraded";
|
|
2857
2858
|
};
|
|
2858
2859
|
health: Record<string, string>;
|
|
2859
2860
|
created_at: string;
|
|
@@ -2891,7 +2892,7 @@ declare class WorkspacesApi {
|
|
|
2891
2892
|
checkpoint: {
|
|
2892
2893
|
id: string;
|
|
2893
2894
|
workspace_id: string;
|
|
2894
|
-
state: "deleted" | "
|
|
2895
|
+
state: "deleted" | "failed" | "creating" | "ready" | "deleting";
|
|
2895
2896
|
reason_code: string | null;
|
|
2896
2897
|
template: {
|
|
2897
2898
|
name: string;
|
|
@@ -2912,7 +2913,7 @@ declare class WorkspacesApi {
|
|
|
2912
2913
|
operation: {
|
|
2913
2914
|
id: string;
|
|
2914
2915
|
kind: "preserve" | "restore" | "verify" | "delete" | "purge";
|
|
2915
|
-
state: "
|
|
2916
|
+
state: "pending" | "running" | "succeeded" | "failed";
|
|
2916
2917
|
workspace_id: string | null;
|
|
2917
2918
|
checkpoint_id: string | null;
|
|
2918
2919
|
result_workspace_id: string | null;
|
|
@@ -2925,7 +2926,7 @@ declare class WorkspacesApi {
|
|
|
2925
2926
|
purge(id: string, key: string, options?: RequestOptions): Promise<{
|
|
2926
2927
|
id: string;
|
|
2927
2928
|
kind: "preserve" | "restore" | "verify" | "delete" | "purge";
|
|
2928
|
-
state: "
|
|
2929
|
+
state: "pending" | "running" | "succeeded" | "failed";
|
|
2929
2930
|
workspace_id: string | null;
|
|
2930
2931
|
checkpoint_id: string | null;
|
|
2931
2932
|
result_workspace_id: string | null;
|
|
@@ -2947,14 +2948,14 @@ declare class WorkspacesApi {
|
|
|
2947
2948
|
type: string;
|
|
2948
2949
|
model: string | null;
|
|
2949
2950
|
} | null;
|
|
2950
|
-
state: "
|
|
2951
|
+
state: "succeeded" | "failed" | "ready" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
|
|
2951
2952
|
reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
|
|
2952
2953
|
agent_state: "unknown" | "running" | "stable";
|
|
2953
2954
|
change_cursor: number;
|
|
2954
2955
|
provider_kind: string | null;
|
|
2955
2956
|
provisioning_mode: "cold" | "warm" | null;
|
|
2956
2957
|
network: {
|
|
2957
|
-
state: "
|
|
2958
|
+
state: "disabled" | "ready" | "starting" | "degraded";
|
|
2958
2959
|
};
|
|
2959
2960
|
health: Record<string, string>;
|
|
2960
2961
|
created_at: string;
|
|
@@ -2992,7 +2993,7 @@ declare class WorkspacesApi {
|
|
|
2992
2993
|
operation: {
|
|
2993
2994
|
id: string;
|
|
2994
2995
|
kind: "preserve" | "restore" | "verify" | "delete" | "purge";
|
|
2995
|
-
state: "
|
|
2996
|
+
state: "pending" | "running" | "succeeded" | "failed";
|
|
2996
2997
|
workspace_id: string | null;
|
|
2997
2998
|
checkpoint_id: string | null;
|
|
2998
2999
|
result_workspace_id: string | null;
|
|
@@ -3015,14 +3016,14 @@ declare class WorkspacesApi {
|
|
|
3015
3016
|
type: string;
|
|
3016
3017
|
model: string | null;
|
|
3017
3018
|
} | null;
|
|
3018
|
-
state: "
|
|
3019
|
+
state: "succeeded" | "failed" | "ready" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
|
|
3019
3020
|
reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
|
|
3020
3021
|
agent_state: "unknown" | "running" | "stable";
|
|
3021
3022
|
change_cursor: number;
|
|
3022
3023
|
provider_kind: string | null;
|
|
3023
3024
|
provisioning_mode: "cold" | "warm" | null;
|
|
3024
3025
|
network: {
|
|
3025
|
-
state: "
|
|
3026
|
+
state: "disabled" | "ready" | "starting" | "degraded";
|
|
3026
3027
|
};
|
|
3027
3028
|
health: Record<string, string>;
|
|
3028
3029
|
created_at: string;
|
|
@@ -3060,7 +3061,7 @@ declare class WorkspacesApi {
|
|
|
3060
3061
|
operation: {
|
|
3061
3062
|
id: string;
|
|
3062
3063
|
kind: "preserve" | "restore" | "verify" | "delete" | "purge";
|
|
3063
|
-
state: "
|
|
3064
|
+
state: "pending" | "running" | "succeeded" | "failed";
|
|
3064
3065
|
workspace_id: string | null;
|
|
3065
3066
|
checkpoint_id: string | null;
|
|
3066
3067
|
result_workspace_id: string | null;
|
|
@@ -3133,7 +3134,7 @@ declare class CheckpointsApi {
|
|
|
3133
3134
|
}, options?: RequestOptions): Promise<Page<{
|
|
3134
3135
|
id: string;
|
|
3135
3136
|
workspace_id: string;
|
|
3136
|
-
state: "deleted" | "
|
|
3137
|
+
state: "deleted" | "failed" | "creating" | "ready" | "deleting";
|
|
3137
3138
|
reason_code: string | null;
|
|
3138
3139
|
template: {
|
|
3139
3140
|
name: string;
|
|
@@ -3154,7 +3155,7 @@ declare class CheckpointsApi {
|
|
|
3154
3155
|
get(id: string, options?: RequestOptions): Promise<{
|
|
3155
3156
|
id: string;
|
|
3156
3157
|
workspace_id: string;
|
|
3157
|
-
state: "deleted" | "
|
|
3158
|
+
state: "deleted" | "failed" | "creating" | "ready" | "deleting";
|
|
3158
3159
|
reason_code: string | null;
|
|
3159
3160
|
template: {
|
|
3160
3161
|
name: string;
|
|
@@ -3175,7 +3176,7 @@ declare class CheckpointsApi {
|
|
|
3175
3176
|
verify(id: string, key: string, options?: RequestOptions): Promise<{
|
|
3176
3177
|
id: string;
|
|
3177
3178
|
kind: "preserve" | "restore" | "verify" | "delete" | "purge";
|
|
3178
|
-
state: "
|
|
3179
|
+
state: "pending" | "running" | "succeeded" | "failed";
|
|
3179
3180
|
workspace_id: string | null;
|
|
3180
3181
|
checkpoint_id: string | null;
|
|
3181
3182
|
result_workspace_id: string | null;
|
|
@@ -3187,7 +3188,7 @@ declare class CheckpointsApi {
|
|
|
3187
3188
|
delete(id: string, key: string, options?: RequestOptions): Promise<{
|
|
3188
3189
|
id: string;
|
|
3189
3190
|
kind: "preserve" | "restore" | "verify" | "delete" | "purge";
|
|
3190
|
-
state: "
|
|
3191
|
+
state: "pending" | "running" | "succeeded" | "failed";
|
|
3191
3192
|
workspace_id: string | null;
|
|
3192
3193
|
checkpoint_id: string | null;
|
|
3193
3194
|
result_workspace_id: string | null;
|
|
@@ -3209,14 +3210,14 @@ declare class CheckpointsApi {
|
|
|
3209
3210
|
type: string;
|
|
3210
3211
|
model: string | null;
|
|
3211
3212
|
} | null;
|
|
3212
|
-
state: "
|
|
3213
|
+
state: "succeeded" | "failed" | "ready" | "queued" | "provisioning" | "connected" | "preserving" | "terminating" | "canceled" | "expired" | "preserved";
|
|
3213
3214
|
reason_code: "admission_global_capacity" | "admission_principal_capacity" | "admission_template_capacity" | "admission_policy_global_capacity" | "admission_actor_capacity" | "admission_denied" | "admission_unavailable" | "child_exit_success" | "child_exit_failure" | "setup_failed" | "bootstrap_failed" | "registration_timeout" | "health_failed" | "child_crash" | "provider_lost" | "disconnect_timeout" | "canceled_by_caller" | "deadline_expired" | "idle_expired" | "queue_timeout" | "launch_failed" | "preserve_requested" | "preserved_by_policy" | "checkpoint_created" | "checkpoint_failed" | "checkpoint_corrupt" | "checkpoint_quota_exceeded" | "checkpoint_storage_lost" | "restore_requested" | "restore_failed" | "image_unavailable" | "source_resolution_failed" | "secret_resolution_failed" | "operation_conflict" | "network_policy_failed" | null;
|
|
3214
3215
|
agent_state: "unknown" | "running" | "stable";
|
|
3215
3216
|
change_cursor: number;
|
|
3216
3217
|
provider_kind: string | null;
|
|
3217
3218
|
provisioning_mode: "cold" | "warm" | null;
|
|
3218
3219
|
network: {
|
|
3219
|
-
state: "
|
|
3220
|
+
state: "disabled" | "ready" | "starting" | "degraded";
|
|
3220
3221
|
};
|
|
3221
3222
|
health: Record<string, string>;
|
|
3222
3223
|
created_at: string;
|
|
@@ -3254,7 +3255,7 @@ declare class CheckpointsApi {
|
|
|
3254
3255
|
operation: {
|
|
3255
3256
|
id: string;
|
|
3256
3257
|
kind: "preserve" | "restore" | "verify" | "delete" | "purge";
|
|
3257
|
-
state: "
|
|
3258
|
+
state: "pending" | "running" | "succeeded" | "failed";
|
|
3258
3259
|
workspace_id: string | null;
|
|
3259
3260
|
checkpoint_id: string | null;
|
|
3260
3261
|
result_workspace_id: string | null;
|
|
@@ -3272,7 +3273,7 @@ declare class OperationsApi {
|
|
|
3272
3273
|
get(id: string, options?: RequestOptions): Promise<{
|
|
3273
3274
|
id: string;
|
|
3274
3275
|
kind: "preserve" | "restore" | "verify" | "delete" | "purge";
|
|
3275
|
-
state: "
|
|
3276
|
+
state: "pending" | "running" | "succeeded" | "failed";
|
|
3276
3277
|
workspace_id: string | null;
|
|
3277
3278
|
checkpoint_id: string | null;
|
|
3278
3279
|
result_workspace_id: string | null;
|
|
@@ -3439,10 +3440,10 @@ declare class ConversationsApi {
|
|
|
3439
3440
|
turn_id: string;
|
|
3440
3441
|
messages: {
|
|
3441
3442
|
metadata: Record<string, string>;
|
|
3443
|
+
occurred_at: string;
|
|
3442
3444
|
message_id: string;
|
|
3443
3445
|
role: "user" | "assistant" | "system" | "tool";
|
|
3444
3446
|
content: string;
|
|
3445
|
-
occurred_at: string;
|
|
3446
3447
|
identity: {
|
|
3447
3448
|
schema: "pocketcoder.conversation/v2";
|
|
3448
3449
|
authority: "external" | "generic";
|
|
@@ -3639,7 +3640,7 @@ declare class RecoveryApi {
|
|
|
3639
3640
|
purge(principalId: string, workspaceId: string, executionKey: string, options?: RequestOptions): Promise<{
|
|
3640
3641
|
id: string;
|
|
3641
3642
|
kind: "preserve" | "restore" | "verify" | "delete" | "purge";
|
|
3642
|
-
state: "
|
|
3643
|
+
state: "pending" | "running" | "succeeded" | "failed";
|
|
3643
3644
|
workspace_id: string | null;
|
|
3644
3645
|
checkpoint_id: string | null;
|
|
3645
3646
|
result_workspace_id: string | null;
|
|
@@ -3651,7 +3652,7 @@ declare class RecoveryApi {
|
|
|
3651
3652
|
operation(principalId: string, operationId: string, options?: RequestOptions): Promise<{
|
|
3652
3653
|
id: string;
|
|
3653
3654
|
kind: "preserve" | "restore" | "verify" | "delete" | "purge";
|
|
3654
|
-
state: "
|
|
3655
|
+
state: "pending" | "running" | "succeeded" | "failed";
|
|
3655
3656
|
workspace_id: string | null;
|
|
3656
3657
|
checkpoint_id: string | null;
|
|
3657
3658
|
result_workspace_id: string | null;
|
package/dist/index.js
CHANGED
|
@@ -472,7 +472,8 @@ z.object({
|
|
|
472
472
|
z.object({
|
|
473
473
|
external_id: z.string().min(1).max(256),
|
|
474
474
|
metadata: z.record(z.string().max(64), z.string().max(512)).optional(),
|
|
475
|
-
launch_input: z.record(z.string(), z.unknown()).optional()
|
|
475
|
+
launch_input: z.record(z.string(), z.unknown()).optional(),
|
|
476
|
+
template_version: z.string().min(1).max(256).optional()
|
|
476
477
|
});
|
|
477
478
|
const CheckpointManifestEntrySchema = z.object({
|
|
478
479
|
path: z.string(),
|