@blaxel/core 0.2.39-preview.86 → 0.2.39

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.
@@ -116,6 +116,10 @@ export type Configuration = {
116
116
  * Private locations managed with blaxel operator
117
117
  */
118
118
  privateLocations?: Array<unknown>;
119
+ /**
120
+ * Regions
121
+ */
122
+ regions?: Array<unknown>;
119
123
  };
120
124
  /**
121
125
  * Continent
@@ -279,6 +283,23 @@ export type Entrypoint = {
279
283
  */
280
284
  superGatewayArgs?: Array<unknown>;
281
285
  };
286
+ /**
287
+ * Expiration policy for sandbox lifecycle management
288
+ */
289
+ export type ExpirationPolicy = {
290
+ /**
291
+ * Action to take when policy is triggered
292
+ */
293
+ action?: string;
294
+ /**
295
+ * Type of expiration policy
296
+ */
297
+ type?: string;
298
+ /**
299
+ * Duration value (e.g., '1h', '24h', '7d')
300
+ */
301
+ value?: string;
302
+ };
282
303
  /**
283
304
  * A type of hardware available for deployments
284
305
  */
@@ -890,6 +911,10 @@ export type LocationResponse = {
890
911
  * Name of the location
891
912
  */
892
913
  location?: string;
914
+ /**
915
+ * Region of the location
916
+ */
917
+ region?: string;
893
918
  /**
894
919
  * Status of the location
895
920
  */
@@ -1580,6 +1605,35 @@ export type PublicIp = {
1580
1605
  export type PublicIps = {
1581
1606
  [key: string]: PublicIp;
1582
1607
  };
1608
+ /**
1609
+ * Region
1610
+ */
1611
+ export type Region = {
1612
+ /**
1613
+ * Region display name
1614
+ */
1615
+ allowed?: string;
1616
+ /**
1617
+ * Region display name
1618
+ */
1619
+ continent?: string;
1620
+ /**
1621
+ * Region display name
1622
+ */
1623
+ country?: string;
1624
+ /**
1625
+ * Region display name
1626
+ */
1627
+ infoGeneration?: string;
1628
+ /**
1629
+ * Region display name
1630
+ */
1631
+ location?: string;
1632
+ /**
1633
+ * Region name
1634
+ */
1635
+ name?: string;
1636
+ };
1583
1637
  /**
1584
1638
  * Repository
1585
1639
  */
@@ -2097,10 +2151,20 @@ export type SandboxDefinition = {
2097
2151
  */
2098
2152
  url?: string;
2099
2153
  };
2154
+ /**
2155
+ * Lifecycle configuration for sandbox management
2156
+ */
2157
+ export type SandboxLifecycle = {
2158
+ /**
2159
+ * List of expiration policies
2160
+ */
2161
+ expirationPolicies?: Array<ExpirationPolicy>;
2162
+ };
2100
2163
  /**
2101
2164
  * Sandbox specification
2102
2165
  */
2103
2166
  export type SandboxSpec = CoreSpec & {
2167
+ lifecycle?: SandboxLifecycle;
2104
2168
  /**
2105
2169
  * Region where the sandbox should be created (e.g. us-pdx-1, eu-lon-1)
2106
2170
  */
@@ -1,4 +1,4 @@
1
- import { Port, Sandbox, VolumeAttachment } from "../client/types.gen";
1
+ import { Port, Sandbox, SandboxLifecycle, VolumeAttachment } from "../client/types.gen";
2
2
  import { PostProcessResponse, ProcessRequest } from "./client";
3
3
  export interface SessionCreateOptions {
4
4
  expiresAt?: Date;
@@ -39,6 +39,7 @@ export type SandboxCreateConfiguration = {
39
39
  ttl?: string;
40
40
  expires?: Date;
41
41
  region?: string;
42
+ lifecycle?: SandboxLifecycle;
42
43
  };
43
44
  export declare function normalizePorts(ports?: (Port | Record<string, any>)[]): Port[] | undefined;
44
45
  export declare function normalizeEnvs(envs?: EnvVar[]): EnvVar[] | undefined;