@alienplatform/sdk 3.3.58 → 3.3.60

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 CHANGED
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * It provides the Worker handler APIs (`command`, `onStorageEvent`,
5
5
  * `onCronEvent`, `onQueueMessage`, `waitUntil`) and re-exports the app-facing
6
- * binding factories (`storage`, `kv`, `queue`, `vault`, `container`, `postgres`,
6
+ * binding factories (`storage`, `kv`, `queue`, `vault`, `container`, `postgres`, `redis`,
7
7
  * `sandbox`) from
8
8
  * `@alienplatform/bindings`, so a Worker author installs one package.
9
9
  *
@@ -29,8 +29,8 @@
29
29
  export { storageEventFromMessage } from "./storage-events.js";
30
30
  export type { CronEvent, QueueBatchEvent, QueueDelivery, QueueDeliveryOutcome, QueueMessage, QueueMessageEvent, ScheduledEvent, StandardSchema, StandardSchemaOutput, StorageEvent, StorageEventType, WorkerCommandContext, } from "./worker-runtime/registry.js";
31
31
  export { command, onCronEvent, onQueueBatch, onQueueMessage, onStorageEvent, waitUntil, } from "./worker-runtime/registry.js";
32
- export type { CommandFrame, Container, CreateSandboxOptions, JobError, JobExit, JobPoll, Kv, Postgres, PostgresConnection, PostgresSslMode, Queue, ResolvedSandbox, RunCommandOptions, Sandbox, SandboxInstance, Storage, Vault, } from "@alienplatform/bindings";
33
- export { container, kv, postgres, queue, sandbox, storage, vault } from "@alienplatform/bindings";
32
+ export type { CommandFrame, Container, CreateSandboxOptions, JobError, JobExit, JobPoll, Kv, Postgres, PostgresConnection, PostgresSslMode, Queue, Redis, RedisConnection, RedisTlsOptions, ResolvedSandbox, RunCommandOptions, Sandbox, SandboxInstance, Storage, Vault, } from "@alienplatform/bindings";
33
+ export { container, kv, postgres, queue, redis, sandbox, storage, vault, } from "@alienplatform/bindings";
34
34
  export type { AiBinding, AiConnection, AiModel, AmbientAiBinding, ChatCompletionCreateParams, ExternalAiBinding, ResponseCreateParams, } from "@alienplatform/ai-gateway";
35
35
  export { Ai, ai, getAiConnection, isExternalAiBinding, parseAiBinding, startAiGateway, } from "@alienplatform/ai-gateway";
36
36
  export { AiTransportError, AiUpstreamError } from "@alienplatform/ai-gateway";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAO7D,YAAY,EACV,SAAS,EACT,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EACL,OAAO,EACP,WAAW,EACX,YAAY,EACZ,cAAc,EACd,cAAc,EACd,SAAS,GACV,MAAM,8BAA8B,CAAA;AAMrC,YAAY,EACV,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,QAAQ,EACR,OAAO,EACP,OAAO,EACP,EAAE,EACF,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,KAAK,EACL,eAAe,EACf,iBAAiB,EACjB,OAAO,EACP,eAAe,EACf,OAAO,EACP,KAAK,GACN,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAMjG,YAAY,EACV,SAAS,EACT,YAAY,EACZ,OAAO,EACP,gBAAgB,EAChB,0BAA0B,EAC1B,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,EAAE,EACF,EAAE,EACF,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,cAAc,GACf,MAAM,2BAA2B,CAAA;AAMlC,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAA;AACnE,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAO7D,YAAY,EACV,SAAS,EACT,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EACL,OAAO,EACP,WAAW,EACX,YAAY,EACZ,cAAc,EACd,cAAc,EACd,SAAS,GACV,MAAM,8BAA8B,CAAA;AAMrC,YAAY,EACV,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,QAAQ,EACR,OAAO,EACP,OAAO,EACP,EAAE,EACF,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,KAAK,EACL,KAAK,EACL,eAAe,EACf,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,OAAO,EACP,eAAe,EACf,OAAO,EACP,KAAK,GACN,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,SAAS,EACT,EAAE,EACF,QAAQ,EACR,KAAK,EACL,KAAK,EACL,OAAO,EACP,OAAO,EACP,KAAK,GACN,MAAM,yBAAyB,CAAA;AAMhC,YAAY,EACV,SAAS,EACT,YAAY,EACZ,OAAO,EACP,gBAAgB,EAChB,0BAA0B,EAC1B,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,EAAE,EACF,EAAE,EACF,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,cAAc,GACf,MAAM,2BAA2B,CAAA;AAMlC,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAA;AACnE,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAA"}
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { _ as defineError, a as onQueueBatch, g as StorageEventSchema, h as InvalidBindingConfigError, i as onCronEvent, m as BindingNotFoundError, o as onQueueMessage, p as AlienError, s as onStorageEvent, t as command, u as waitUntil, v as object, y as string } from "./registry.js";
2
- import { BindingNotConfiguredError, container, kv, postgres, queue, sandbox, storage, vault } from "@alienplatform/bindings";
2
+ import { BindingNotConfiguredError, container, kv, postgres, queue, redis, sandbox, storage, vault } from "@alienplatform/bindings";
3
3
  import { Ai, AiTransportError, AiUpstreamError, ai, getAiConnection, isExternalAiBinding, parseAiBinding, startAiGateway } from "@alienplatform/ai-gateway";
4
4
  // src/storage-events.ts
5
5
  /** A queue payload cannot be decoded as the portable storage event. */
@@ -24,4 +24,4 @@ async function storageEventFromMessage(message) {
24
24
  throw (await AlienError.from(error)).withContext(InvalidStorageEventMessage.create({ messageId: message.id }));
25
25
  }
26
26
  }
27
- export { Ai, AiTransportError, AiUpstreamError, AlienError, BindingNotConfiguredError, BindingNotFoundError, InvalidBindingConfigError, ai, command, container, getAiConnection, isExternalAiBinding, kv, onCronEvent, onQueueBatch, onQueueMessage, onStorageEvent, parseAiBinding, postgres, queue, sandbox, startAiGateway, storage, storageEventFromMessage, vault, waitUntil };
27
+ export { Ai, AiTransportError, AiUpstreamError, AlienError, BindingNotConfiguredError, BindingNotFoundError, InvalidBindingConfigError, ai, command, container, getAiConnection, isExternalAiBinding, kv, onCronEvent, onQueueBatch, onQueueMessage, onStorageEvent, parseAiBinding, postgres, queue, redis, sandbox, startAiGateway, storage, storageEventFromMessage, vault, waitUntil };
package/dist/registry.js CHANGED
@@ -7115,6 +7115,18 @@ object({
7115
7115
  "queueName": string().describe("SQS queue name."),
7116
7116
  "queueUrl": string().describe("SQS queue URL.")
7117
7117
  }).describe("AWS Queue ImportData.");
7118
+ object({
7119
+ "authSecretArn": string().describe("Secrets Manager ARN of the AUTH token (never the token itself)."),
7120
+ "endpoint": string().describe("Primary endpoint (the binding host)."),
7121
+ "engineVersion": string().describe("Engine version the group reports."),
7122
+ "highAvailability": optional(boolean().describe("Whether the group has a replica.")),
7123
+ "nodeType": string().describe("Node type the group runs."),
7124
+ "parameterGroupName": string().describe("Cache parameter group holding `maxmemory-policy`."),
7125
+ "port": int().min(0).describe("Listening port."),
7126
+ "replicationGroupId": string().describe("Replication group id."),
7127
+ "securityGroupId": string().describe("Dedicated security group admitting 6379 from the workload security groups."),
7128
+ "subnetGroupName": string().describe("Cache subnet group.")
7129
+ }).describe("AWS Redis (ElastiCache for Valkey) registration data: the handles by which a\nsetup-created replication group is registered as a Frozen Redis resource. Setup owns\nthe group, Alien refreshes and heartbeats it. Carries the AUTH token's Secrets Manager\nARN, never the token.");
7118
7130
  object({
7119
7131
  "roleArn": string(),
7120
7132
  "roleName": string()
@@ -7650,6 +7662,107 @@ const AzureManagedIdentityServiceAccountHeartbeatDataSchema = object({
7650
7662
  * Do not edit manually.
7651
7663
  */
7652
7664
  /**
7665
+ * @description Azure Managed Redis binding.
7666
+ */
7667
+ const AzureManagedRedisBindingSchema = object({
7668
+ get "databaseResourceId"() {
7669
+ return BindingValueStringSchema.describe("Represents a value that can be either a concrete value, a template expression,\nor a reference to a Kubernetes Secret");
7670
+ },
7671
+ get "host"() {
7672
+ return BindingValueStringSchema.describe("Represents a value that can be either a concrete value, a template expression,\nor a reference to a Kubernetes Secret");
7673
+ },
7674
+ get "port"() {
7675
+ return BindingValueU16Schema.describe("Represents a value that can be either a concrete value, a template expression,\nor a reference to a Kubernetes Secret");
7676
+ },
7677
+ get "username"() {
7678
+ return BindingValueStringSchema.describe("Represents a value that can be either a concrete value, a template expression,\nor a reference to a Kubernetes Secret");
7679
+ }
7680
+ }).describe("Azure Managed Redis binding.");
7681
+ /**
7682
+ * Generated by Kubb (https://kubb.dev/).
7683
+ * Do not edit manually.
7684
+ */
7685
+ /**
7686
+ * @description Same fields as every other resource heartbeat status.
7687
+ */
7688
+ const RedisHeartbeatStatusSchema = object({
7689
+ get "collectionIssues"() {
7690
+ return array(HeartbeatCollectionIssueSchema);
7691
+ },
7692
+ get "health"() {
7693
+ return ObservedHealthSchema;
7694
+ },
7695
+ get "lifecycle"() {
7696
+ return ProviderLifecycleStateSchema;
7697
+ },
7698
+ "message": string().nullish(),
7699
+ "partial": boolean(),
7700
+ "stale": boolean()
7701
+ }).describe("Same fields as every other resource heartbeat status.");
7702
+ /**
7703
+ * Generated by Kubb (https://kubb.dev/).
7704
+ * Do not edit manually.
7705
+ */
7706
+ /**
7707
+ * @description One sample of the numbers that matter for a Redis server. A field is `None`\nwhen the cloud did not return that metric in the window.
7708
+ */
7709
+ const RedisMetricsSampleSchema = object({
7710
+ "connectedClients": number().describe("Connected clients at the end of the window.").nullish(),
7711
+ "evictions": number().describe("Keys evicted during the sampled window.").nullish(),
7712
+ "memoryUsedPercent": number().describe("Memory used as a percentage of the configured maximum (0-100).").nullish(),
7713
+ "replicationLagSeconds": number().describe("Replication lag in seconds, when a replica exists.").nullish()
7714
+ }).describe("One sample of the numbers that matter for a Redis server. A field is `None`\nwhen the cloud did not return that metric in the window.");
7715
+ /**
7716
+ * Generated by Kubb (https://kubb.dev/).
7717
+ * Do not edit manually.
7718
+ */
7719
+ /**
7720
+ * @description Configuration the controller reads back from the cloud, to compare with the\ndesired configuration.
7721
+ */
7722
+ const RedisObservedConfigSchema = object({
7723
+ "authEnabled": boolean().nullish(),
7724
+ "endpoint": string().nullish(),
7725
+ "engineVersion": string().describe("Engine name and version as the cloud reports it.").nullish(),
7726
+ "evictionPolicy": string().nullish(),
7727
+ "nodeType": string().describe("Node type or SKU name.").nullish(),
7728
+ "persistenceEnabled": boolean().nullish(),
7729
+ "port": int().min(0).nullish(),
7730
+ "publicNetworkAccess": boolean().describe("Azure only: true when the server accepts connections from the public internet.").nullish(),
7731
+ "replicaCount": int().min(0).describe("Replicas behind the primary.").nullish(),
7732
+ "tlsEnabled": boolean().nullish()
7733
+ }).describe("Configuration the controller reads back from the cloud, to compare with the\ndesired configuration.");
7734
+ /**
7735
+ * Generated by Kubb (https://kubb.dev/).
7736
+ * Do not edit manually.
7737
+ */
7738
+ const AzureManagedRedisHeartbeatDataSchema = object({
7739
+ "clusterName": string(),
7740
+ get "config"() {
7741
+ return RedisObservedConfigSchema.describe("Configuration the controller reads back from the cloud, to compare with the\ndesired configuration.");
7742
+ },
7743
+ get "metrics"() {
7744
+ return RedisMetricsSampleSchema.describe("One sample of the numbers that matter for a Redis server. A field is `None`\nwhen the cloud did not return that metric in the window.");
7745
+ },
7746
+ "state": string().nullish(),
7747
+ get "status"() {
7748
+ return RedisHeartbeatStatusSchema.describe("Same fields as every other resource heartbeat status.");
7749
+ }
7750
+ });
7751
+ object({
7752
+ "clusterName": string().describe("Cluster name."),
7753
+ "clusterResourceId": string().describe("Full ARM resource ID of the cluster."),
7754
+ "highAvailability": optional(boolean().describe("Whether high availability is on.")),
7755
+ "host": string().describe("Endpoint host name (resolves to the private endpoint inside the VNet)."),
7756
+ "port": int().min(0).describe("Listening port."),
7757
+ "privateEndpointName": string().describe("Private endpoint that fronts the cluster."),
7758
+ "resourceGroup": string().describe("Resource group of the cluster."),
7759
+ "sku": string().describe("SKU the cluster runs, such as `Balanced_B1`.")
7760
+ }).describe("Azure Managed Redis registration data: the handles by which a setup-created cluster is\nregistered as a Frozen Redis resource. Setup owns the cluster, Alien refreshes and\nheartbeats it. The access key is never carried; workloads list it from the database.");
7761
+ /**
7762
+ * Generated by Kubb (https://kubb.dev/).
7763
+ * Do not edit manually.
7764
+ */
7765
+ /**
7653
7766
  * @description Azure management configuration extracted from stack settings
7654
7767
  */
7655
7768
  const AzureManagementConfigSchema = object({
@@ -10097,6 +10210,44 @@ const EgressPolicySchema = union([object({ "allow": array(string()).min(0).max(4
10097
10210
  * Do not edit manually.
10098
10211
  */
10099
10212
  /**
10213
+ * @description AWS ElastiCache binding.
10214
+ */
10215
+ const ElastiCacheRedisBindingSchema = object({
10216
+ get "host"() {
10217
+ return BindingValueStringSchema.describe("Represents a value that can be either a concrete value, a template expression,\nor a reference to a Kubernetes Secret");
10218
+ },
10219
+ get "passwordSecretArn"() {
10220
+ return BindingValueStringSchema.describe("Represents a value that can be either a concrete value, a template expression,\nor a reference to a Kubernetes Secret");
10221
+ },
10222
+ get "port"() {
10223
+ return BindingValueU16Schema.describe("Represents a value that can be either a concrete value, a template expression,\nor a reference to a Kubernetes Secret");
10224
+ },
10225
+ get "username"() {
10226
+ return BindingValueStringSchema.describe("Represents a value that can be either a concrete value, a template expression,\nor a reference to a Kubernetes Secret");
10227
+ }
10228
+ }).describe("AWS ElastiCache binding.");
10229
+ /**
10230
+ * Generated by Kubb (https://kubb.dev/).
10231
+ * Do not edit manually.
10232
+ */
10233
+ const ElasticacheRedisHeartbeatDataSchema = object({
10234
+ get "config"() {
10235
+ return RedisObservedConfigSchema.describe("Configuration the controller reads back from the cloud, to compare with the\ndesired configuration.");
10236
+ },
10237
+ get "metrics"() {
10238
+ return RedisMetricsSampleSchema.describe("One sample of the numbers that matter for a Redis server. A field is `None`\nwhen the cloud did not return that metric in the window.");
10239
+ },
10240
+ "replicationGroupId": string(),
10241
+ "state": string().nullish(),
10242
+ get "status"() {
10243
+ return RedisHeartbeatStatusSchema.describe("Same fields as every other resource heartbeat status.");
10244
+ }
10245
+ });
10246
+ /**
10247
+ * Generated by Kubb (https://kubb.dev/).
10248
+ * Do not edit manually.
10249
+ */
10250
+ /**
10100
10251
  * @description A single DKIM CNAME record the operator must create in DNS.
10101
10252
  */
10102
10253
  const EmailDkimTokenSchema = object({
@@ -10545,6 +10696,85 @@ const QueueBindingSchema = union([
10545
10696
  * Do not edit manually.
10546
10697
  */
10547
10698
  /**
10699
+ * @description Operator-provided server binding.
10700
+ */
10701
+ const ExternalRedisBindingSchema = object({
10702
+ get "host"() {
10703
+ return BindingValueStringSchema.describe("Represents a value that can be either a concrete value, a template expression,\nor a reference to a Kubernetes Secret");
10704
+ },
10705
+ get "password"() {
10706
+ return union([ExternalPasswordSecretKeyRefSchema, string()]).describe("Password literal or a `secretKeyRef` to a Kubernetes Secret. Kubernetes workloads get the\npassword from the Secret as an environment variable, which the SDK inserts after it\nparses the binding, so any character is safe.");
10707
+ },
10708
+ get "port"() {
10709
+ return BindingValueU16Schema.describe("Represents a value that can be either a concrete value, a template expression,\nor a reference to a Kubernetes Secret");
10710
+ },
10711
+ "tls": optional(boolean().describe("Connect over TLS. Defaults to true.")),
10712
+ get "username"() {
10713
+ return BindingValueStringSchema.describe("Represents a value that can be either a concrete value, a template expression,\nor a reference to a Kubernetes Secret");
10714
+ }
10715
+ }).describe("Operator-provided server binding.");
10716
+ /**
10717
+ * Generated by Kubb (https://kubb.dev/).
10718
+ * Do not edit manually.
10719
+ */
10720
+ /**
10721
+ * @description Local Valkey binding.
10722
+ */
10723
+ const LocalRedisBindingSchema = object({
10724
+ get "host"() {
10725
+ return BindingValueStringSchema.describe("Represents a value that can be either a concrete value, a template expression,\nor a reference to a Kubernetes Secret");
10726
+ },
10727
+ "password": string(),
10728
+ get "port"() {
10729
+ return BindingValueU16Schema.describe("Represents a value that can be either a concrete value, a template expression,\nor a reference to a Kubernetes Secret");
10730
+ },
10731
+ get "username"() {
10732
+ return BindingValueStringSchema.describe("Represents a value that can be either a concrete value, a template expression,\nor a reference to a Kubernetes Secret");
10733
+ }
10734
+ }).describe("Local Valkey binding.");
10735
+ /**
10736
+ * Generated by Kubb (https://kubb.dev/).
10737
+ * Do not edit manually.
10738
+ */
10739
+ /**
10740
+ * @description GCP Memorystore binding.
10741
+ */
10742
+ const MemorystoreRedisBindingSchema = object({
10743
+ get "host"() {
10744
+ return BindingValueStringSchema.describe("Represents a value that can be either a concrete value, a template expression,\nor a reference to a Kubernetes Secret");
10745
+ },
10746
+ get "instanceName"() {
10747
+ return BindingValueStringSchema.describe("Represents a value that can be either a concrete value, a template expression,\nor a reference to a Kubernetes Secret");
10748
+ },
10749
+ get "port"() {
10750
+ return BindingValueU16Schema.describe("Represents a value that can be either a concrete value, a template expression,\nor a reference to a Kubernetes Secret");
10751
+ },
10752
+ get "serverCaCertificates"() {
10753
+ return BindingValueVecStringSchema.describe("Represents a value that can be either a concrete value, a template expression,\nor a reference to a Kubernetes Secret");
10754
+ },
10755
+ get "username"() {
10756
+ return BindingValueStringSchema.describe("Represents a value that can be either a concrete value, a template expression,\nor a reference to a Kubernetes Secret");
10757
+ }
10758
+ }).describe("GCP Memorystore binding.");
10759
+ /**
10760
+ * Generated by Kubb (https://kubb.dev/).
10761
+ * Do not edit manually.
10762
+ */
10763
+ /**
10764
+ * @description Connection details for a Redis-compatible server, one variant per backend.\n\nService tags are unique across all binding enums (serde dispatches on\n`service` alone), so the key-value store\'s `redis` tag is not reused.
10765
+ */
10766
+ const RedisBindingSchema = union([
10767
+ lazy(() => ElastiCacheRedisBindingSchema).and(object({ "service": _enum(["elasticache"]) })).describe("AWS ElastiCache binding."),
10768
+ lazy(() => MemorystoreRedisBindingSchema).and(object({ "service": _enum(["memorystore"]) })).describe("GCP Memorystore binding."),
10769
+ lazy(() => AzureManagedRedisBindingSchema).and(object({ "service": _enum(["azure-managed-redis"]) })).describe("Azure Managed Redis binding."),
10770
+ lazy(() => ExternalRedisBindingSchema).and(object({ "service": _enum(["external"]) })).describe("Operator-provided server binding."),
10771
+ lazy(() => LocalRedisBindingSchema).and(object({ "service": _enum(["local-redis"]) })).describe("Local Valkey binding.")
10772
+ ]).describe("Connection details for a Redis-compatible server, one variant per backend.\n\nService tags are unique across all binding enums (serde dispatches on\n`service` alone), so the key-value store's `redis` tag is not reused.");
10773
+ /**
10774
+ * Generated by Kubb (https://kubb.dev/).
10775
+ * Do not edit manually.
10776
+ */
10777
+ /**
10548
10778
  * @description Google Cloud Storage binding configuration
10549
10779
  */
10550
10780
  const GcsStorageBindingSchema = object({ get "bucketName"() {
@@ -10685,6 +10915,7 @@ const ExternalBindingSchema = union([
10685
10915
  lazy(() => VaultBindingSchema).and(object({ "type": _enum(["vault"]) })).describe("Represents a vault binding for secure secret management"),
10686
10916
  lazy(() => ContainerAppsEnvironmentBindingSchema).and(object({ "type": _enum(["container_apps_environment"]) })).describe("Binding configuration for a pre-existing Azure Container Apps Environment.\n\nUsed when deploying to an existing environment instead of having Alien provision one.\nThis is useful for shared environments (e.g., test infrastructure) or enterprise\nsetups where environments are managed by a separate team."),
10687
10917
  lazy(() => PostgresBindingSchema).and(object({ "type": _enum(["postgres"]) })).describe("Connection details for a Postgres database, one variant per backend."),
10918
+ lazy(() => RedisBindingSchema).and(object({ "type": _enum(["redis"]) })).describe("Connection details for a Redis-compatible server, one variant per backend.\n\nService tags are unique across all binding enums (serde dispatches on\n`service` alone), so the key-value store's `redis` tag is not reused."),
10688
10919
  lazy(() => ExternalAiBindingSchema).and(object({ "type": _enum(["ai"]) })).describe("External AI provider binding configuration (BYO-key).\n\nThe operator-supplied secret rides inside the binding via\n`BindingValue<String>`, so it is a literal on cloud platforms and gains\nKubernetes SecretRef resolution for free (`extract_binding_secrets` walks\nthe binding JSON for `secretRef`).")
10689
10920
  ]).describe("Represents a binding to pre-existing infrastructure.\n\nThe binding type must match the resource type it's applied to.\nValidated at runtime by the executor.");
10690
10921
  /**
@@ -10884,6 +11115,17 @@ const GcpManagementConfigSchema = object({
10884
11115
  },
10885
11116
  "serviceAccountEmail": string().describe("Linked source account metadata; never a direct target trust grant.")
10886
11117
  }).describe("GCP management configuration extracted from stack settings");
11118
+ object({
11119
+ "endpointIp": string().describe("Private Service Connect endpoint IP (the binding host)."),
11120
+ "engineVersion": string().describe("Engine version the instance reports."),
11121
+ "highAvailability": optional(boolean().describe("Whether the instance has a replica.")),
11122
+ "instanceName": string().describe("Instance id."),
11123
+ "nodeType": string().describe("Node type, such as `shared-core-nano`."),
11124
+ "persistence": optional(boolean().describe("Whether RDB persistence is on.")),
11125
+ "port": int().min(0).describe("Listening port."),
11126
+ "projectId": string().describe("Project ID (not the number) that owns the instance. The workload's token grant is\nconditioned on the ID form of the instance name."),
11127
+ "region": string().describe("Region the instance runs in.")
11128
+ }).describe("GCP Memorystore for Valkey registration data: the handles by which a setup-created\ninstance is registered as a Frozen Redis resource. Setup owns the instance; Alien refreshes\nand heartbeats it. The auth token is never carried or copied: workloads read it from\nMemorystore.");
10887
11129
  object({
10888
11130
  "cidrBlock": string().describe("Primary subnetwork CIDR block used for internal firewall rules.").nullish(),
10889
11131
  "isByoVpc": boolean().describe("True when the VPC is owned outside this stack."),
@@ -11653,6 +11895,19 @@ const LocalQueueHeartbeatDataSchema = object({
11653
11895
  * Generated by Kubb (https://kubb.dev/).
11654
11896
  * Do not edit manually.
11655
11897
  */
11898
+ const LocalRedisHeartbeatDataSchema = object({
11899
+ "name": string(),
11900
+ "port": int().min(0).nullish(),
11901
+ "processRunning": boolean(),
11902
+ get "status"() {
11903
+ return RedisHeartbeatStatusSchema.describe("Same fields as every other resource heartbeat status.");
11904
+ },
11905
+ "version": string()
11906
+ });
11907
+ /**
11908
+ * Generated by Kubb (https://kubb.dev/).
11909
+ * Do not edit manually.
11910
+ */
11656
11911
  /**
11657
11912
  * @description Local: containers Docker still holds for this sandbox.
11658
11913
  */
@@ -11762,6 +12017,23 @@ const ManagementPermissionsSchema = union([
11762
12017
  * Generated by Kubb (https://kubb.dev/).
11763
12018
  * Do not edit manually.
11764
12019
  */
12020
+ const MemorystoreRedisHeartbeatDataSchema = object({
12021
+ get "config"() {
12022
+ return RedisObservedConfigSchema.describe("Configuration the controller reads back from the cloud, to compare with the\ndesired configuration.");
12023
+ },
12024
+ "instanceName": string(),
12025
+ get "metrics"() {
12026
+ return RedisMetricsSampleSchema.describe("One sample of the numbers that matter for a Redis server. A field is `None`\nwhen the cloud did not return that metric in the window.");
12027
+ },
12028
+ "state": string().nullish(),
12029
+ get "status"() {
12030
+ return RedisHeartbeatStatusSchema.describe("Same fields as every other resource heartbeat status.");
12031
+ }
12032
+ });
12033
+ /**
12034
+ * Generated by Kubb (https://kubb.dev/).
12035
+ * Do not edit manually.
12036
+ */
11765
12037
  /**
11766
12038
  * @description JSON-first message payload that supports both structured JSON and UTF-8 text
11767
12039
  */
@@ -11804,7 +12076,7 @@ const NetworkSettingsSchema = union([
11804
12076
  }),
11805
12077
  object({
11806
12078
  "application_gateway_subnet_name": string().describe("Name of the dedicated classic Application Gateway subnet within the VNet.").nullish(),
11807
- "private_endpoint_subnet_name": string().describe("Name of the dedicated subnet that hosts Private Endpoints (e.g. for a\nPostgres Flexible Server). A Private Endpoint must not share the private\nsubnet, which is already claimed by the Container Apps environment's\n`infrastructure_subnet_id`. Required only when the stack contains a\nPostgres resource; otherwise unused.").nullish(),
12079
+ "private_endpoint_subnet_name": string().describe("Name of the dedicated subnet that hosts Private Endpoints (e.g. for a\nPostgres Flexible Server or Azure Managed Redis). A Private Endpoint must not share the private\nsubnet, which is already claimed by the Container Apps environment's\n`infrastructure_subnet_id`. Required only when the stack contains a\nPostgres or Redis resource; otherwise unused.").nullish(),
11808
12080
  "private_subnet_name": string().describe("Name of the private subnet within the VNet"),
11809
12081
  "public_subnet_name": string().describe("Name of the public subnet within the VNet"),
11810
12082
  "type": _enum(["byo-vnet-azure"]),
@@ -12083,6 +12355,52 @@ const ReadinessProbeSchema = object({
12083
12355
  },
12084
12356
  "path": optional(string().describe("Path to request for the probe (e.g., \"/health\", \"/ready\").\nDefault: \"/\""))
12085
12357
  }).describe("Configuration for HTTP-based readiness probe.\nThis probe is executed after worker provisioning/update to verify the worker is ready to serve traffic.\nOnly works with workers that have Public ingress.");
12358
+ /**
12359
+ * Generated by Kubb (https://kubb.dev/).
12360
+ * Do not edit manually.
12361
+ */
12362
+ /**
12363
+ * @description What a Redis server does when it reaches its memory limit.
12364
+ */
12365
+ const RedisEvictionPolicySchema = _enum([
12366
+ "noeviction",
12367
+ "allkeys-lru",
12368
+ "allkeys-lfu",
12369
+ "allkeys-random",
12370
+ "volatile-lru",
12371
+ "volatile-lfu",
12372
+ "volatile-random",
12373
+ "volatile-ttl"
12374
+ ]).describe("What a Redis server does when it reaches its memory limit.");
12375
+ /**
12376
+ * Generated by Kubb (https://kubb.dev/).
12377
+ * Do not edit manually.
12378
+ */
12379
+ /**
12380
+ * @description Heartbeat data for a Redis resource. Everything comes from the cloud\'s\nmanagement and metrics APIs; the manager never opens a Redis connection.
12381
+ */
12382
+ const RedisHeartbeatDataSchema = union([
12383
+ lazy(() => ElasticacheRedisHeartbeatDataSchema).and(object({ "backend": _enum(["elasticache"]) })).describe("AWS ElastiCache for Valkey."),
12384
+ lazy(() => MemorystoreRedisHeartbeatDataSchema).and(object({ "backend": _enum(["memorystore"]) })).describe("GCP Memorystore for Valkey."),
12385
+ lazy(() => AzureManagedRedisHeartbeatDataSchema).and(object({ "backend": _enum(["azureManagedRedis"]) })).describe("Azure Managed Redis."),
12386
+ lazy(() => LocalRedisHeartbeatDataSchema).and(object({ "backend": _enum(["local"]) })).describe("Local Valkey container.")
12387
+ ]).describe("Heartbeat data for a Redis resource. Everything comes from the cloud's\nmanagement and metrics APIs; the manager never opens a Redis connection.");
12388
+ object({
12389
+ "endpoint": string().describe("Host the server listens on; never publicly reachable."),
12390
+ "port": int().min(0).describe("Listening port.")
12391
+ }).describe("Outputs generated by a successfully provisioned Redis server.");
12392
+ object({
12393
+ get "encryptionKey"() {
12394
+ return union([ResourceRefSchema, _null()]).optional();
12395
+ },
12396
+ get "evictionPolicy"() {
12397
+ return RedisEvictionPolicySchema.describe("What a Redis server does when it reaches its memory limit.").optional();
12398
+ },
12399
+ "highAvailability": optional(boolean().describe("One replica in another zone with automatic failover. Default false.")),
12400
+ "id": string(),
12401
+ "memory": string().describe("Memory available for data (e.g. \"512Mi\", \"4Gi\"). None = the smallest\nproduction tier. The smallest tier that fits is used; a request larger\nthan the biggest single-shard tier on the platform is rejected.").nullish(),
12402
+ "persistence": optional(boolean().describe("Keep data across a server restart or maintenance. Default false (a\ncache). On AWS, GCP and Azure this needs `high_availability`, because the\nclouds only persist data from a replicated deployment. Local always\npersists with an append-only file when this is on."))
12403
+ }).describe("A managed, Redis-compatible in-memory store on a private network. The target\nplatform decides the backend (AWS ElastiCache for Valkey, GCP Memorystore for\nValkey, Azure Managed Redis, or the official Valkey image in Docker on Local). It is\nnever publicly reachable, and it is a single endpoint (not cluster mode), so\nplain clients and multi-key scripts work.");
12086
12404
  object({ "leaseId": string().describe("Lease identifier to release") }).describe("Request to release a lease");
12087
12405
  /**
12088
12406
  * Generated by Kubb (https://kubb.dev/).
@@ -12256,6 +12574,12 @@ const ResourceHeartbeatDataSchema = union([
12256
12574
  },
12257
12575
  "resourceType": _enum(["postgres"])
12258
12576
  }),
12577
+ object({
12578
+ get "data"() {
12579
+ return RedisHeartbeatDataSchema.describe("Heartbeat data for a Redis resource. Everything comes from the cloud's\nmanagement and metrics APIs; the manager never opens a Redis connection.");
12580
+ },
12581
+ "resourceType": _enum(["redis"])
12582
+ }),
12259
12583
  object({
12260
12584
  get "data"() {
12261
12585
  return VaultHeartbeatDataSchema;
@@ -12366,6 +12690,7 @@ object({
12366
12690
  "egressDeny": boolean().describe("Whether a declared `deny` is actually enforced, rather than accepted and dropped.\nIt covers routed traffic; the `deny` mode says where DNS still resolves."),
12367
12691
  "enforcedLimits": boolean().describe("The platform enforces the declared cpu, memory and disk ceilings"),
12368
12692
  "files": boolean().describe("Files can be moved in and out of a sandbox"),
12693
+ "interactiveCommands": boolean().describe("A running command takes input on stdin, can be signalled, and streams its output as it is\nwritten, so a caller can drive a REPL, a language server or a tool protocol over it."),
12369
12694
  "jobs": boolean().describe("A command can be started, polled and cancelled across separate calls, so it outlives the\none that started it. False where nothing inside the sandbox owns the process in between."),
12370
12695
  "pauseResume": boolean().describe("Sandbox state can be paused and resumed"),
12371
12696
  "preview": boolean().describe("An authenticated, port-scoped capability to reach a service inside the sandbox"),
@@ -12380,6 +12705,7 @@ _enum([
12380
12705
  "files",
12381
12706
  "reconnect",
12382
12707
  "jobs",
12708
+ "interactiveCommands",
12383
12709
  "preview",
12384
12710
  "pauseResume",
12385
12711
  "snapshot",
@@ -12847,6 +13173,7 @@ const StorageNotificationSchema = object({
12847
13173
  object({ "bucketName": string().describe("The globally unique name of the bucket.") }).describe("Outputs generated by a successfully provisioned Storage bucket.");
12848
13174
  object({
12849
13175
  "corsAllowedOrigins": optional(array(string()).describe("Browser origins allowed to read objects through signed URLs.\n\nWhen non-empty, providers configure CORS for `GET` and `HEAD` requests.\nAn origin of `*` is appropriate for private buckets whose signed URLs\nare bearer credentials and do not use browser cookies.\nDefault: `[]` (CORS disabled).")),
13176
+ "corsUploadOrigins": optional(array(string()).describe("Browser origins allowed to upload objects through signed URLs.\n\nWhen non-empty, providers also configure CORS for single-request `PUT` uploads from\nthese origins (a presigned or SAS URL, or one presigned multipart part) and expose\n`ETag`. Allowed request headers: `Content-Type` and `Content-MD5` everywhere;\n`Content-Disposition`, `Content-Encoding`, `Cache-Control` and `x-amz-*` on S3;\nthe same content headers and `x-goog-content-length-range` on Cloud Storage, which\ncan't allow `x-goog-meta-*`; `x-ms-*` on Azure. Uploads that start with `POST`, such\nas multipart create and complete or resumable uploads, are not covered.\n\nEach origin is `*` or `scheme://host[:port]`; S3 also accepts one `*` wildcard, such\nas `https://*.example.com`.\nOmitted when empty to preserve existing serialized configurations and setup digests.")),
12850
13177
  get "encryptionKey"() {
12851
13178
  return union([ResourceRefSchema, _null()]).optional();
12852
13179
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alienplatform/sdk",
3
- "version": "3.3.58",
3
+ "version": "3.3.60",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -57,9 +57,9 @@
57
57
  "nice-grpc": "^2.1.11",
58
58
  "nice-grpc-common": "^2.0.2",
59
59
  "zod": "^4.5.2",
60
- "@alienplatform/ai-gateway": "^3.3.58",
61
- "@alienplatform/bindings": "^3.3.58",
62
- "@alienplatform/core": "^3.3.58"
60
+ "@alienplatform/ai-gateway": "^3.3.60",
61
+ "@alienplatform/bindings": "^3.3.60",
62
+ "@alienplatform/core": "^3.3.60"
63
63
  },
64
64
  "scripts": {
65
65
  "build": "tsdown && tsc --emitDeclarationOnly",