@alienplatform/core 3.0.1 → 3.2.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 +822 -822
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7025,7 +7025,7 @@ var Storage = class extends ResourceBuilder {
|
|
|
7025
7025
|
* Represents a serverless worker that executes code in response to triggers or direct invocations.
|
|
7026
7026
|
* Workers are the primary compute resource in serverless applications, designed to be stateless and ephemeral.
|
|
7027
7027
|
*/
|
|
7028
|
-
var Worker = class {
|
|
7028
|
+
var Worker = class extends ResourceBuilder {
|
|
7029
7029
|
_config = {
|
|
7030
7030
|
links: [],
|
|
7031
7031
|
triggers: [],
|
|
@@ -7037,6 +7037,7 @@ var Worker = class {
|
|
|
7037
7037
|
* @param id Identifier for the worker. Must contain only alphanumeric characters, hyphens, and underscores ([A-Za-z0-9-_]). Maximum 64 characters.
|
|
7038
7038
|
*/
|
|
7039
7039
|
constructor(id) {
|
|
7040
|
+
super();
|
|
7040
7041
|
this._config.id = id;
|
|
7041
7042
|
}
|
|
7042
7043
|
/**
|
|
@@ -7211,9 +7212,10 @@ var Worker = class {
|
|
|
7211
7212
|
* @throws Error if the worker configuration is invalid (e.g., missing code).
|
|
7212
7213
|
*/
|
|
7213
7214
|
build() {
|
|
7214
|
-
|
|
7215
|
+
const config = WorkerSchema.parse(this._config);
|
|
7216
|
+
return this.resource({
|
|
7215
7217
|
type: "worker",
|
|
7216
|
-
...
|
|
7218
|
+
...config
|
|
7217
7219
|
});
|
|
7218
7220
|
}
|
|
7219
7221
|
};
|
|
@@ -7226,7 +7228,7 @@ var Worker = class {
|
|
|
7226
7228
|
* by the managed container backend. They're designed for always-on workloads
|
|
7227
7229
|
* like web services, APIs, databases, and background workers.
|
|
7228
7230
|
*/
|
|
7229
|
-
var Container = class {
|
|
7231
|
+
var Container = class extends ResourceBuilder {
|
|
7230
7232
|
_config = {
|
|
7231
7233
|
links: [],
|
|
7232
7234
|
ports: [],
|
|
@@ -7239,6 +7241,7 @@ var Container = class {
|
|
|
7239
7241
|
* @param id Identifier for the container. Must be DNS-compatible: lowercase alphanumeric with hyphens.
|
|
7240
7242
|
*/
|
|
7241
7243
|
constructor(id) {
|
|
7244
|
+
super();
|
|
7242
7245
|
this._config.id = id;
|
|
7243
7246
|
}
|
|
7244
7247
|
/**
|
|
@@ -7550,9 +7553,10 @@ var Container = class {
|
|
|
7550
7553
|
* @throws Error if the container configuration is invalid.
|
|
7551
7554
|
*/
|
|
7552
7555
|
build() {
|
|
7553
|
-
|
|
7556
|
+
const config = ContainerSchema.parse(this._config);
|
|
7557
|
+
return this.resource({
|
|
7554
7558
|
type: "container",
|
|
7555
|
-
...
|
|
7559
|
+
...config
|
|
7556
7560
|
});
|
|
7557
7561
|
}
|
|
7558
7562
|
};
|
|
@@ -7675,7 +7679,7 @@ function parseQuantityBytes(value) {
|
|
|
7675
7679
|
* Daemons are intended for long-lived background processes such as endpoint
|
|
7676
7680
|
* agents and local side services.
|
|
7677
7681
|
*/
|
|
7678
|
-
var Daemon = class {
|
|
7682
|
+
var Daemon = class extends ResourceBuilder {
|
|
7679
7683
|
_config = {
|
|
7680
7684
|
links: [],
|
|
7681
7685
|
publicEndpoints: [],
|
|
@@ -7694,6 +7698,7 @@ var Daemon = class {
|
|
|
7694
7698
|
* @param id Identifier for the daemon. Must contain only alphanumeric characters, hyphens, and underscores ([A-Za-z0-9-_]). Maximum 64 characters.
|
|
7695
7699
|
*/
|
|
7696
7700
|
constructor(id) {
|
|
7701
|
+
super();
|
|
7697
7702
|
this._config.id = id;
|
|
7698
7703
|
}
|
|
7699
7704
|
/**
|
|
@@ -7863,9 +7868,10 @@ var Daemon = class {
|
|
|
7863
7868
|
* @throws Error if the daemon configuration is invalid.
|
|
7864
7869
|
*/
|
|
7865
7870
|
build() {
|
|
7866
|
-
|
|
7871
|
+
const config = DaemonSchema.parse(this._config);
|
|
7872
|
+
return this.resource({
|
|
7867
7873
|
type: "daemon",
|
|
7868
|
-
...
|
|
7874
|
+
...config
|
|
7869
7875
|
});
|
|
7870
7876
|
}
|
|
7871
7877
|
};
|
|
@@ -8255,13 +8261,14 @@ var Queue = class extends ResourceBuilder {
|
|
|
8255
8261
|
* region, so an AWS stack may contain only one Email with inbound delivery,
|
|
8256
8262
|
* and installing it makes its rule set the account's active rule set.
|
|
8257
8263
|
*/
|
|
8258
|
-
var Email = class {
|
|
8264
|
+
var Email = class extends ResourceBuilder {
|
|
8259
8265
|
_config = { domains: [] };
|
|
8260
8266
|
/**
|
|
8261
8267
|
* Creates a new Email builder.
|
|
8262
8268
|
* @param id Identifier for the email resource. Must contain only alphanumeric characters, hyphens, and underscores ([A-Za-z0-9-_]). Maximum 64 characters.
|
|
8263
8269
|
*/
|
|
8264
8270
|
constructor(id) {
|
|
8271
|
+
super();
|
|
8265
8272
|
this._config.id = id;
|
|
8266
8273
|
}
|
|
8267
8274
|
/**
|
|
@@ -8318,9 +8325,10 @@ var Email = class {
|
|
|
8318
8325
|
* @throws Error if the email configuration is invalid.
|
|
8319
8326
|
*/
|
|
8320
8327
|
build() {
|
|
8321
|
-
|
|
8328
|
+
const config = EmailSchema.parse(this._config);
|
|
8329
|
+
return this.resource({
|
|
8322
8330
|
type: "email",
|
|
8323
|
-
...
|
|
8331
|
+
...config
|
|
8324
8332
|
});
|
|
8325
8333
|
}
|
|
8326
8334
|
};
|
|
@@ -9315,13 +9323,14 @@ function getResourceOutputs(params) {
|
|
|
9315
9323
|
* lowercase letter, contain only lowercase letters, digits, and hyphens, and
|
|
9316
9324
|
* be at most 23 characters.
|
|
9317
9325
|
*/
|
|
9318
|
-
var AwsOpenSearch = class {
|
|
9326
|
+
var AwsOpenSearch = class extends ResourceBuilder {
|
|
9319
9327
|
_config = { collectionType: "search" };
|
|
9320
9328
|
/**
|
|
9321
9329
|
* Creates a new AwsOpenSearch builder.
|
|
9322
9330
|
* @param id Identifier for the collection (lowercase letters, digits, and hyphens; max 23 characters).
|
|
9323
9331
|
*/
|
|
9324
9332
|
constructor(id) {
|
|
9333
|
+
super();
|
|
9325
9334
|
this._config.id = id;
|
|
9326
9335
|
}
|
|
9327
9336
|
/**
|
|
@@ -9363,9 +9372,10 @@ var AwsOpenSearch = class {
|
|
|
9363
9372
|
* @throws Error if the configuration is invalid.
|
|
9364
9373
|
*/
|
|
9365
9374
|
build() {
|
|
9366
|
-
|
|
9375
|
+
const config = AwsOpenSearchSchema.parse(this._config);
|
|
9376
|
+
return this.resource({
|
|
9367
9377
|
type: "experimental/aws-opensearch",
|
|
9368
|
-
...
|
|
9378
|
+
...config
|
|
9369
9379
|
});
|
|
9370
9380
|
}
|
|
9371
9381
|
};
|