@brimble/models 3.8.10 → 3.8.11

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.
@@ -234,5 +234,6 @@ export declare enum SANDBOX_DESTROY_REASON {
234
234
  USER = "user",
235
235
  IDLE_TTL = "idle_ttl",
236
236
  MAX_LIFETIME = "max_lifetime",
237
- FAILED = "failed"
237
+ FAILED = "failed",
238
+ ONE_SHOT_STOPPED = "one_shot_stopped"
238
239
  }
@@ -277,4 +277,5 @@ var SANDBOX_DESTROY_REASON;
277
277
  SANDBOX_DESTROY_REASON["IDLE_TTL"] = "idle_ttl";
278
278
  SANDBOX_DESTROY_REASON["MAX_LIFETIME"] = "max_lifetime";
279
279
  SANDBOX_DESTROY_REASON["FAILED"] = "failed";
280
+ SANDBOX_DESTROY_REASON["ONE_SHOT_STOPPED"] = "one_shot_stopped";
280
281
  })(SANDBOX_DESTROY_REASON = exports.SANDBOX_DESTROY_REASON || (exports.SANDBOX_DESTROY_REASON = {}));
package/dist/sandbox.js CHANGED
@@ -78,6 +78,22 @@ const sandboxSchema = new mongoose_1.Schema({
78
78
  enum: Object.values(enum_1.SANDBOX_DESTROY_REASON),
79
79
  default: null,
80
80
  },
81
+ auto_destroy: {
82
+ type: Boolean,
83
+ default: false,
84
+ },
85
+ destroy_timeout: {
86
+ type: String,
87
+ default: null,
88
+ },
89
+ one_shot: {
90
+ type: Boolean,
91
+ default: false,
92
+ },
93
+ block_outbound: {
94
+ type: Boolean,
95
+ default: false,
96
+ },
81
97
  isDeleted: {
82
98
  type: Boolean,
83
99
  default: false,
@@ -26,5 +26,9 @@ export interface ISandbox extends Document {
26
26
  expires_at: Date;
27
27
  destroyed_at: Date | null;
28
28
  destroy_reason: SANDBOX_DESTROY_REASON | null;
29
+ auto_destroy: boolean;
30
+ destroy_timeout: string | null;
31
+ one_shot: boolean;
32
+ block_outbound: boolean;
29
33
  isDeleted: boolean;
30
34
  }
package/enum/index.ts CHANGED
@@ -273,4 +273,5 @@ export enum SANDBOX_DESTROY_REASON {
273
273
  IDLE_TTL = "idle_ttl",
274
274
  MAX_LIFETIME = "max_lifetime",
275
275
  FAILED = "failed",
276
+ ONE_SHOT_STOPPED = "one_shot_stopped",
276
277
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "3.8.10",
3
+ "version": "3.8.11",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/sandbox.ts CHANGED
@@ -78,6 +78,22 @@ const sandboxSchema: Schema = new Schema({
78
78
  enum: Object.values(SANDBOX_DESTROY_REASON),
79
79
  default: null,
80
80
  },
81
+ auto_destroy: {
82
+ type: Boolean,
83
+ default: false,
84
+ },
85
+ destroy_timeout: {
86
+ type: String,
87
+ default: null,
88
+ },
89
+ one_shot: {
90
+ type: Boolean,
91
+ default: false,
92
+ },
93
+ block_outbound: {
94
+ type: Boolean,
95
+ default: false,
96
+ },
81
97
  isDeleted: {
82
98
  type: Boolean,
83
99
  default: false,
package/types/sandbox.ts CHANGED
@@ -28,5 +28,9 @@ export interface ISandbox extends Document {
28
28
  expires_at: Date;
29
29
  destroyed_at: Date | null;
30
30
  destroy_reason: SANDBOX_DESTROY_REASON | null;
31
+ auto_destroy: boolean;
32
+ destroy_timeout: string | null;
33
+ one_shot: boolean;
34
+ block_outbound: boolean;
31
35
  isDeleted: boolean;
32
36
  }