@prisma/composer-prisma-cloud 0.1.0-dev.2 → 0.1.0-dev.4

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.
@@ -12,12 +12,12 @@ import postgres from "postgres";
12
12
  import { State, StateStoreError } from "alchemy/State";
13
13
  import * as Output from "alchemy/Output";
14
14
  import { ExtensionDescriptor } from "@prisma/composer/config";
15
- //#region ../../1-prisma-cloud/0-lowering/lowering/dist/compute/index.d.mts
15
+ //#region ../../1-prisma-cloud/0-lowering/lowering/dist/compute.d.mts
16
16
  /** Every region Prisma Compute serves — the runtime source of truth; `ComputeRegion` is derived from it so the two can never drift. */
17
17
  declare const COMPUTE_REGIONS: readonly ["us-east-1", "us-west-1", "eu-west-3", "eu-central-1", "ap-northeast-1", "ap-southeast-1"];
18
18
  type ComputeRegion = (typeof COMPUTE_REGIONS)[number];
19
19
  //#endregion
20
- //#region ../../1-prisma-cloud/0-lowering/lowering/dist/state/index.d.mts
20
+ //#region ../../1-prisma-cloud/0-lowering/lowering/dist/state.d.mts
21
21
  //#endregion
22
22
  //#region src/state/layer.d.ts
23
23
  /**
@@ -68,7 +68,7 @@ interface ProviderParam extends ProviderParamEntry {
68
68
  readonly value: (refs: readonly unknown[]) => Output.Output<unknown> | unknown | undefined;
69
69
  }
70
70
  //#endregion
71
- //#region src/control.d.ts
71
+ //#region src/exports/control.d.ts
72
72
  interface PrismaCloudOptions {
73
73
  /** Defaults to the PRISMA_WORKSPACE_ID environment variable. */
74
74
  workspaceId?: string;
package/dist/control.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { a as encodeParamPointer, c as secretName, i as encode, l as secretPointerRows, s as paramEntries, t as configKey } from "./serializer-CX4VYdf_-KKGoAxfx.mjs";
2
2
  import { a as isEnvParamSource, c as provisionedEdges, n as STREAMS_API_KEY, o as paramBindingFor, s as paramName, t as RESERVED_PROVIDER_PARAMS } from "./provisioned-edges-Bb7WiV49-DeSPi3Ax.mjs";
3
- import { a as normalizeSslMode, n as isPnPostgresResourceNode, o as withConnectionRetry } from "./prisma-next-COrwlg3N.mjs";
3
+ import { a as normalizeSslMode, n as isPnPostgresResourceNode, o as withConnectionRetry } from "./prisma-next-qPB8_Az6.mjs";
4
4
  import { isParamSource, paramManifest, provisionManifest } from "@prisma/composer";
5
5
  import { blindCast } from "@prisma/composer/casts";
6
6
  import { RPC_PEER_KEY } from "@prisma/composer/rpc";
@@ -68,7 +68,7 @@ const callOptional = (f) => attempt$1(f).pipe(Effect.flatMap((r) => r.response.s
68
68
  /** Fire-and-forget a call, tolerating a 404 (already deleted). */
69
69
  const callVoid = (f) => attempt$1(f).pipe(Effect.flatMap((r) => r.response.status === 404 || r.error === void 0 ? Effect.void : fail(r)));
70
70
  //#endregion
71
- //#region ../../1-prisma-cloud/0-lowering/lowering/dist/compute/index.mjs
71
+ //#region ../../1-prisma-cloud/0-lowering/lowering/dist/compute.mjs
72
72
  /**
73
73
  * Stopping a deployment before the app that owns it can be
74
74
  * deleted is asynchronous on the platform's side: DELETE can 409 with this
@@ -431,7 +431,7 @@ const serviceKeyProviderService = {
431
431
  /** The `ServiceKey` provider layer — merged into the Prisma Cloud extension's `providers()`. */
432
432
  const ServiceKeyProvider = () => Provider.effect(ServiceKey, Effect.succeed(serviceKeyProviderService));
433
433
  //#endregion
434
- //#region ../../1-prisma-cloud/0-lowering/lowering/dist/postgres/index.mjs
434
+ //#region ../../1-prisma-cloud/0-lowering/lowering/dist/postgres.mjs
435
435
  /** A **connection** to a Prisma Postgres database — yields the connection string. */
436
436
  const Connection = Resource("Prisma.Connection");
437
437
  const ConnectionProvider = () => Provider.effect(Connection, Effect.gen(function* () {
@@ -563,7 +563,7 @@ const providers = () => Layer.effect(Providers, Provider.collection([
563
563
  EnvironmentVariable
564
564
  ])).pipe(Layer.provide(Layer.mergeAll(ProjectProvider(), DatabaseProvider(), ConnectionProvider(), ComputeServiceProvider(), DeploymentProvider(), EnvironmentVariableProvider())), Layer.provideMerge(layer()), Layer.provideMerge(fromEnv()), Layer.orDie);
565
565
  //#endregion
566
- //#region ../../1-prisma-cloud/0-lowering/lowering/dist/state/index.mjs
566
+ //#region ../../1-prisma-cloud/0-lowering/lowering/dist/state.mjs
567
567
  /** The framework-owned database a stage's deploy state lives in — a child of that stage's Branch (ADR-0034). */
568
568
  const STATE_DATABASE_NAME = "prisma-composer-state";
569
569
  /** Every connection created against a state database carries this prefix — see `cleanupAgedConnections`. */