@archildata/api-types 0.0.73 → 0.0.74

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.
Files changed (2) hide show
  1. package/index.d.ts +100 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -588,6 +588,30 @@ export interface paths {
588
588
  patch?: never;
589
589
  trace?: never;
590
590
  };
591
+ "/api/disks/{id}/sandbox-mount": {
592
+ parameters: {
593
+ query?: never;
594
+ header?: never;
595
+ path?: never;
596
+ cookie?: never;
597
+ };
598
+ /**
599
+ * Get sandbox mount setting
600
+ * @description Returns whether sandboxes and exec commands may mount a disk.
601
+ */
602
+ get: operations["getSandboxMount"];
603
+ /**
604
+ * Set sandbox mount setting
605
+ * @description Sets whether sandboxes and exec commands may mount a disk. Disks allow sandbox mounts by default. While disallowed, running an exec command against the disk or creating or starting a sandbox that mounts it fails; sandboxes already running keep their mounts. Disallowing it on a root disk also covers the root's branches.
606
+ */
607
+ put: operations["setSandboxMount"];
608
+ post?: never;
609
+ delete?: never;
610
+ options?: never;
611
+ head?: never;
612
+ patch?: never;
613
+ trace?: never;
614
+ };
591
615
  "/api/disks/{id}/delegations": {
592
616
  parameters: {
593
617
  query?: never;
@@ -2665,6 +2689,11 @@ export interface components {
2665
2689
  * ]
2666
2690
  */
2667
2691
  allowedIps?: string[];
2692
+ /**
2693
+ * @description Whether sandboxes and exec commands may mount the disk. A branch is mountable only when both it and its root disk allow it.
2694
+ * @example true
2695
+ */
2696
+ allowSandboxMount: boolean;
2668
2697
  /**
2669
2698
  * @description Capabilities supported by this disk. Determined at creation
2670
2699
  * time and immutable thereafter. Defined values:
@@ -2831,6 +2860,14 @@ export interface components {
2831
2860
  allowedIps: string[];
2832
2861
  };
2833
2862
  };
2863
+ ApiResponse_SandboxMount: {
2864
+ /** @example true */
2865
+ success: boolean;
2866
+ data: {
2867
+ /** @example true */
2868
+ allowSandboxMount: boolean;
2869
+ };
2870
+ };
2834
2871
  DelegationEntry: {
2835
2872
  /**
2836
2873
  * @description ID of the client holding the delegation.
@@ -4622,6 +4659,69 @@ export interface operations {
4622
4659
  500: components["responses"]["InternalError"];
4623
4660
  };
4624
4661
  };
4662
+ getSandboxMount: {
4663
+ parameters: {
4664
+ query?: never;
4665
+ header?: never;
4666
+ path: {
4667
+ /** @description Disk ID (format `dsk-{16 hex chars}`) */
4668
+ id: components["parameters"]["DiskId"];
4669
+ };
4670
+ cookie?: never;
4671
+ };
4672
+ requestBody?: never;
4673
+ responses: {
4674
+ /** @description Current sandbox mount setting */
4675
+ 200: {
4676
+ headers: {
4677
+ [name: string]: unknown;
4678
+ };
4679
+ content: {
4680
+ "application/json": components["schemas"]["ApiResponse_SandboxMount"];
4681
+ };
4682
+ };
4683
+ 401: components["responses"]["Unauthorized"];
4684
+ 404: components["responses"]["NotFound"];
4685
+ 500: components["responses"]["InternalError"];
4686
+ };
4687
+ };
4688
+ setSandboxMount: {
4689
+ parameters: {
4690
+ query?: never;
4691
+ header?: never;
4692
+ path: {
4693
+ /** @description Disk ID (format `dsk-{16 hex chars}`) */
4694
+ id: components["parameters"]["DiskId"];
4695
+ };
4696
+ cookie?: never;
4697
+ };
4698
+ requestBody: {
4699
+ content: {
4700
+ "application/json": {
4701
+ /**
4702
+ * @description Whether sandboxes and exec commands may mount the disk.
4703
+ * @example false
4704
+ */
4705
+ allowSandboxMount: boolean;
4706
+ };
4707
+ };
4708
+ };
4709
+ responses: {
4710
+ /** @description Sandbox mount setting updated */
4711
+ 200: {
4712
+ headers: {
4713
+ [name: string]: unknown;
4714
+ };
4715
+ content: {
4716
+ "application/json": components["schemas"]["ApiResponse_SandboxMount"];
4717
+ };
4718
+ };
4719
+ 400: components["responses"]["ValidationError"];
4720
+ 401: components["responses"]["Unauthorized"];
4721
+ 404: components["responses"]["NotFound"];
4722
+ 500: components["responses"]["InternalError"];
4723
+ };
4724
+ };
4625
4725
  listDelegations: {
4626
4726
  parameters: {
4627
4727
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.73",
3
+ "version": "0.0.74",
4
4
  "description": "API types for the Archil control plane",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",