devflare 1.0.0-next.39 → 1.0.0-next.40
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/_chunks/account-BtWcv3X9.js +462 -0
- package/dist/_chunks/account-resources-CsmVowJp.js +159 -0
- package/dist/_chunks/ai-CBEuLdoP.js +322 -0
- package/dist/_chunks/api-TzdliH-6.js +568 -0
- package/dist/_chunks/build-3T6O4uIg.js +24 -0
- package/dist/_chunks/build-artifacts-8TqBSQkG.js +483 -0
- package/dist/_chunks/cli-BTF1X4SG.js +1128 -0
- package/dist/_chunks/cloudflare-BaloqI3H.js +157 -0
- package/dist/_chunks/colors-DiK6wPJ5.js +13 -0
- package/dist/_chunks/command-utils-BsfkmTqh.js +45 -0
- package/dist/_chunks/compiler-uoyAQ8zW.js +424 -0
- package/dist/_chunks/config-D5u-bEkn.js +78 -0
- package/dist/_chunks/config-path-DCPto4XB.js +42 -0
- package/dist/_chunks/context-CX50Y2Kb.js +2250 -0
- package/dist/_chunks/decorators-QmV57ixr.js +19 -0
- package/dist/_chunks/dependencies-C2oxFjU_.js +57 -0
- package/dist/_chunks/deploy-DMTr6JeR.js +915 -0
- package/dist/_chunks/dev-CvRHmRFZ.js +3456 -0
- package/dist/_chunks/doctor-DIG8DoFU.js +219 -0
- package/dist/_chunks/durable-object-DMtH0XYX.js +234 -0
- package/dist/_chunks/env-S0_nMVz1.js +125 -0
- package/dist/_chunks/family-DXC5SdFK.js +143 -0
- package/dist/_chunks/generated-artifacts-dMJY4KAt.js +32 -0
- package/dist/_chunks/glob-CmQOvunB.js +56 -0
- package/dist/_chunks/init-3moXTgpb.js +165 -0
- package/dist/_chunks/loader-DLXO60RO.js +1153 -0
- package/dist/_chunks/local-dev-vars-CTSa-wvF.js +81 -0
- package/dist/_chunks/local-hyperdrive-CJ90j46O.js +119 -0
- package/dist/_chunks/local-media-bindings-DsAW4AMF.js +335 -0
- package/dist/_chunks/local-secrets-DMmEOygL.js +123 -0
- package/dist/_chunks/local-workflow-entrypoints-Wip3o1u8.js +90 -0
- package/dist/_chunks/login-BmnDzDlH.js +51 -0
- package/dist/_chunks/package-metadata-DAuCkyvK.js +39 -0
- package/dist/_chunks/preferences-BKp_7XJx.js +241 -0
- package/dist/_chunks/preview-BhqDmq8I.js +456 -0
- package/dist/_chunks/preview-registry-ClAbLTHH.js +1186 -0
- package/dist/_chunks/preview-resources-DdXj8LMM.js +358 -0
- package/dist/_chunks/previews-Dlr13x5M.js +1134 -0
- package/dist/_chunks/productions-D3AnOHac.js +411 -0
- package/dist/_chunks/ref-CYJNAAe_.js +178 -0
- package/dist/_chunks/remote-CZnP-HLJ.js +79 -0
- package/dist/_chunks/remote-config-D39BY9ji.js +132 -0
- package/dist/_chunks/resolve-package-Y84HB3Nt.js +133 -0
- package/dist/_chunks/rolldown-runtime-CvQ6eiug.js +14 -0
- package/dist/_chunks/routes-C3FqES2W.js +796 -0
- package/dist/_chunks/runtime-FvXvfuZ2.js +550 -0
- package/dist/_chunks/schema-normalization-DWVleVxo.js +477 -0
- package/dist/_chunks/secrets-70eN0Q6C.js +95 -0
- package/dist/_chunks/token-kguIDmej.js +333 -0
- package/dist/_chunks/tokens-iVcgNXi-.js +221 -0
- package/dist/_chunks/types-OrLbzv4I.js +476 -0
- package/dist/_chunks/ui-BUoZApvE.js +103 -0
- package/dist/_chunks/usage-BBTGzjon.js +272 -0
- package/dist/_chunks/vite-CsI0E-uV.js +1235 -0
- package/dist/_chunks/vite-utils-OVLMV605.js +183 -0
- package/dist/_chunks/worker-CS1jgNFE.js +410 -0
- package/dist/_chunks/worker-bundler-dTTnYU3n.js +458 -0
- package/dist/_chunks/worker-entrypoint-CQW77lG8.js +247 -0
- package/dist/_chunks/workerName-CFJsLZA-.js +23 -0
- package/dist/bridge/index.d.ts +6 -6
- package/dist/bridge/miniflare.d.ts +2 -2
- package/dist/bridge/proxy.d.ts +1 -1
- package/dist/bridge/v2/body-streams.d.ts +1 -1
- package/dist/bridge/v2/codec.d.ts +4 -4
- package/dist/bridge/v2/index.d.ts +10 -10
- package/dist/bridge/v2/serialization.d.ts +1 -1
- package/dist/bridge/v2/value-codec.d.ts +1 -1
- package/dist/bridge/v2/value-serialization.d.ts.map +1 -1
- package/dist/bridge/v2/ws-relay.d.ts +3 -3
- package/dist/browser-shim/index.d.ts +2 -2
- package/dist/browser.d.ts +70 -70
- package/dist/browser.js +74 -2462
- package/dist/bundler/do-bundler.d.ts +1 -1
- package/dist/bundler/index.d.ts +3 -3
- package/dist/bundler/rolldown-shared.d.ts +1 -1
- package/dist/bundler/worker-bundler.d.ts +1 -1
- package/dist/cli/build-manifest.d.ts +1 -1
- package/dist/cli/command-utils.d.ts +1 -1
- package/dist/cli/commands/account.d.ts +1 -1
- package/dist/cli/commands/ai.d.ts +1 -1
- package/dist/cli/commands/build-artifacts.d.ts +5 -5
- package/dist/cli/commands/build.d.ts +1 -1
- package/dist/cli/commands/config.d.ts +1 -1
- package/dist/cli/commands/deploy/prepare.d.ts +2 -2
- package/dist/cli/commands/deploy/runtime.d.ts +1 -1
- package/dist/cli/commands/deploy/verification.d.ts +1 -1
- package/dist/cli/commands/deploy.d.ts +1 -1
- package/dist/cli/commands/dev.d.ts +1 -1
- package/dist/cli/commands/doctor.d.ts +1 -1
- package/dist/cli/commands/init.d.ts +1 -1
- package/dist/cli/commands/login.d.ts +1 -1
- package/dist/cli/commands/previews-support/cleanup.d.ts +1 -1
- package/dist/cli/commands/previews-support/family.d.ts +3 -3
- package/dist/cli/commands/previews-support/render.d.ts +3 -3
- package/dist/cli/commands/previews-support/theme.d.ts +2 -2
- package/dist/cli/commands/previews-support/types.d.ts +2 -2
- package/dist/cli/commands/previews.d.ts +1 -1
- package/dist/cli/commands/productions.d.ts +1 -1
- package/dist/cli/commands/remote.d.ts +1 -1
- package/dist/cli/commands/secrets.d.ts +1 -1
- package/dist/cli/commands/token.d.ts +1 -1
- package/dist/cli/commands/type-generation/discovery.d.ts +2 -2
- package/dist/cli/commands/type-generation/generator.d.ts +3 -3
- package/dist/cli/commands/type-generation/models.d.ts +1 -1
- package/dist/cli/commands/types.d.ts +1 -1
- package/dist/cli/commands/worker.d.ts +1 -1
- package/dist/cli/deploy-strategy.d.ts +1 -1
- package/dist/cli/deploy-target.d.ts +1 -1
- package/dist/cli/help-pages/pages/account.d.ts +1 -1
- package/dist/cli/help-pages/pages/core.d.ts +1 -1
- package/dist/cli/help-pages/pages/index.d.ts +1 -1
- package/dist/cli/help-pages/pages/misc.d.ts +1 -1
- package/dist/cli/help-pages/pages/previews.d.ts +1 -1
- package/dist/cli/help-pages/pages/productions.d.ts +1 -1
- package/dist/cli/help-pages/render.d.ts +2 -2
- package/dist/cli/help-pages/shared.d.ts +1 -1
- package/dist/cli/help.d.ts +2 -2
- package/dist/cli/index.js +2 -1383
- package/dist/cli/preview-bindings.d.ts +3 -3
- package/dist/cli/preview.d.ts +1 -1
- package/dist/cli/wrangler-auth.d.ts +1 -1
- package/dist/cloudflare/account-core.d.ts +2 -2
- package/dist/cloudflare/account-resources.d.ts +2 -2
- package/dist/cloudflare/account-status.d.ts +1 -1
- package/dist/cloudflare/account-workers.d.ts +2 -2
- package/dist/cloudflare/account.d.ts +7 -7
- package/dist/cloudflare/auth.d.ts +1 -1
- package/dist/cloudflare/index.d.ts +13 -13
- package/dist/cloudflare/index.js +4 -59
- package/dist/cloudflare/kv-namespace.d.ts +1 -1
- package/dist/cloudflare/preview-registry-cache.d.ts +1 -1
- package/dist/cloudflare/preview-registry-inference.d.ts +2 -2
- package/dist/cloudflare/preview-registry-records.d.ts +3 -3
- package/dist/cloudflare/preview-registry-shape.d.ts +2 -2
- package/dist/cloudflare/preview-registry-store.d.ts +3 -3
- package/dist/cloudflare/preview-registry-transport.d.ts +2 -2
- package/dist/cloudflare/preview-registry-types.d.ts +2 -2
- package/dist/cloudflare/preview-registry.d.ts +5 -5
- package/dist/cloudflare/tokens.d.ts +2 -2
- package/dist/cloudflare/usage.d.ts +2 -2
- package/dist/config/binding-resolution-helpers.d.ts +1 -1
- package/dist/config/compiler/bindings.d.ts +2 -2
- package/dist/config/compiler/core-helpers.d.ts +2 -2
- package/dist/config/compiler/do-workers.d.ts +2 -2
- package/dist/config/compiler/paths.d.ts +1 -1
- package/dist/config/compiler.d.ts +6 -6
- package/dist/config/define.d.ts +2 -2
- package/dist/config/deploy-resources.d.ts +5 -5
- package/dist/config/env-vars.d.ts +1 -1
- package/dist/config/framework-providers.d.ts +1 -1
- package/dist/config/index.d.ts +12 -12
- package/dist/config/loader.d.ts +2 -2
- package/dist/config/local-dev-vars.d.ts +1 -1
- package/dist/config/preview-resources.d.ts +4 -4
- package/dist/config/preview.d.ts +1 -1
- package/dist/config/ref.d.ts +2 -2
- package/dist/config/resolve-phased.d.ts +4 -4
- package/dist/config/resolve.d.ts +1 -1
- package/dist/config/resource-resolution.d.ts +6 -6
- package/dist/config/schema-env.d.ts +20 -20
- package/dist/config/schema-normalization.d.ts +1 -1
- package/dist/config/schema-types-bindings.d.ts +4 -4
- package/dist/config/schema-types-build.d.ts +1 -1
- package/dist/config/schema-types.d.ts +7 -7
- package/dist/config/schema.d.ts +46 -46
- package/dist/config/service-bindings-validation.d.ts +1 -1
- package/dist/config-entry.d.ts +6 -6
- package/dist/config-entry.js +3 -8
- package/dist/decorators/index.d.ts +2 -2
- package/dist/decorators/index.js +2 -9
- package/dist/dev-server/d1-migrations.d.ts +1 -1
- package/dist/dev-server/dev-server-state.d.ts +6 -6
- package/dist/dev-server/gateway-script.d.ts +1 -1
- package/dist/dev-server/index.d.ts +1 -1
- package/dist/dev-server/miniflare-bindings.d.ts +1 -1
- package/dist/dev-server/miniflare-dev-config.d.ts +5 -5
- package/dist/dev-server/miniflare-worker-config.d.ts +3 -3
- package/dist/dev-server/server-startup-helpers.d.ts +6 -6
- package/dist/dev-server/worker-surface-paths.d.ts +2 -2
- package/dist/index.d.ts +8 -8
- package/dist/index.js +9 -22
- package/dist/runtime/context-events.d.ts +1 -1
- package/dist/runtime/context.d.ts +3 -3
- package/dist/runtime/exports.d.ts +2 -2
- package/dist/runtime/index.d.ts +10 -10
- package/dist/runtime/index.js +5 -57
- package/dist/runtime/middleware.d.ts +1 -1
- package/dist/runtime/router/index.d.ts +3 -3
- package/dist/runtime/validation.d.ts +1 -1
- package/dist/secrets/local-secrets.d.ts +1 -1
- package/dist/shims/local-media-bindings.d.ts +1 -1
- package/dist/sveltekit/index.d.ts +1 -1
- package/dist/sveltekit/index.js +327 -9
- package/dist/sveltekit/local-bindings.d.ts +1 -1
- package/dist/sveltekit/platform.d.ts +1 -1
- package/dist/test/binding-hints.d.ts +2 -2
- package/dist/test/cf.d.ts +19 -19
- package/dist/test/index.d.ts +18 -18
- package/dist/test/index.js +4495 -46
- package/dist/test/offline-bindings.d.ts +3 -3
- package/dist/test/resolve-service-bindings.d.ts +1 -1
- package/dist/test/simple-context-bindings.d.ts +1 -1
- package/dist/test/simple-context-durable-objects.d.ts +1 -1
- package/dist/test/simple-context-env.d.ts +2 -2
- package/dist/test/simple-context-handlers.d.ts +2 -2
- package/dist/test/simple-context-lifecycle.d.ts +2 -2
- package/dist/test/simple-context-mfconfig.d.ts +1 -1
- package/dist/test/simple-context-multi-worker.d.ts +2 -2
- package/dist/test/simple-context-runtime.d.ts +1 -1
- package/dist/test/simple-context-startup.d.ts +1 -1
- package/dist/test/simple-context.d.ts +1 -1
- package/dist/test/utilities/env.d.ts +3 -3
- package/dist/test/utilities.d.ts +10 -10
- package/dist/test/worker.d.ts +1 -1
- package/dist/transform/index.d.ts +2 -2
- package/dist/utils/send-email.js +163 -19
- package/dist/vite/config-file.d.ts +2 -2
- package/dist/vite/index.d.ts +3 -3
- package/dist/vite/index.js +2 -31
- package/dist/vite/plugin-config-hook.d.ts +1 -1
- package/dist/vite/plugin-context.d.ts +3 -3
- package/dist/vite/plugin-durable-objects.d.ts +2 -2
- package/dist/vite/plugin-programmatic.d.ts +1 -1
- package/dist/vite/plugin-service-bindings.d.ts +2 -2
- package/dist/vite/plugin.d.ts +3 -3
- package/dist/worker-entry/composed-worker.d.ts +1 -1
- package/dist/worker-entry/routes.d.ts +2 -2
- package/dist/worker-entry/surface-paths.d.ts +1 -1
- package/dist/workflows/local-workflow-entrypoints.d.ts +1 -1
- package/package.json +5 -3
- package/dist/account-4tgh03a8.js +0 -484
- package/dist/ai-r3zqmxan.js +0 -261
- package/dist/api-6z01z734.js +0 -33
- package/dist/build-kw625v84.js +0 -51
- package/dist/config-ghk2bxj3.js +0 -102
- package/dist/deploy-9kee65n9.js +0 -1062
- package/dist/dev-x8zr249a.js +0 -3569
- package/dist/doctor-0ng5qrr1.js +0 -258
- package/dist/durable-object-0ybmg08a.js +0 -13
- package/dist/index-04wh9bxx.js +0 -514
- package/dist/index-0cc05hzv.js +0 -74
- package/dist/index-2yv7w548.js +0 -185
- package/dist/index-37x76zdn.js +0 -4
- package/dist/index-3cpzsr47.js +0 -125
- package/dist/index-3t6rypgc.js +0 -13
- package/dist/index-4mmpccrb.js +0 -309
- package/dist/index-5dkjffqz.js +0 -25
- package/dist/index-5hy7jmv3.js +0 -890
- package/dist/index-627srx16.js +0 -45
- package/dist/index-7m557715.js +0 -283
- package/dist/index-a8pnvg3r.js +0 -52
- package/dist/index-aabgympv.js +0 -39
- package/dist/index-atwc3csp.js +0 -256
- package/dist/index-cv4cvrxe.js +0 -2046
- package/dist/index-h7r11y4a.js +0 -539
- package/dist/index-hvtd936d.js +0 -1229
- package/dist/index-kcp7y951.js +0 -136
- package/dist/index-maw0jjnn.js +0 -147
- package/dist/index-mek9msfv.js +0 -705
- package/dist/index-n4xkaymm.js +0 -236
- package/dist/index-nkk59p3y.js +0 -579
- package/dist/index-phcrvs6d.js +0 -342
- package/dist/index-se4kw8tm.js +0 -460
- package/dist/index-x8s9rwfh.js +0 -2020
- package/dist/index-y7w3x9p1.js +0 -18
- package/dist/index-z9gy8w6b.js +0 -57
- package/dist/index-zdd0d9qa.js +0 -199
- package/dist/init-tb8jqgvr.js +0 -180
- package/dist/login-4h1sfsed.js +0 -75
- package/dist/previews-qr7c5j8h.js +0 -1336
- package/dist/productions-xpmd6bw8.js +0 -505
- package/dist/remote-kqcvhnfx.js +0 -192
- package/dist/secrets-6wbdsdek.js +0 -89
- package/dist/token-yp1qa70y.js +0 -419
- package/dist/types-15yv4cj3.js +0 -701
- package/dist/worker-1yg72jxg.js +0 -510
- package/dist/worker-entrypoint-y8s9kdcx.js +0 -15
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type APIClientOptions } from '../cloudflare';
|
|
2
|
-
import type { DevflareConfig } from '../config/schema';
|
|
3
|
-
import type { ProcessRunner } from './dependencies';
|
|
1
|
+
import { type APIClientOptions } from '../cloudflare/index.js';
|
|
2
|
+
import type { DevflareConfig } from '../config/schema.js';
|
|
3
|
+
import type { ProcessRunner } from './dependencies.js';
|
|
4
4
|
export interface ParsedWranglerBindingRow {
|
|
5
5
|
type: string;
|
|
6
6
|
bindingName: string;
|
package/dist/cli/preview.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { formatWorkersDevUrl, formatVersionPreviewUrl } from '../cloudflare/preview-urls';
|
|
1
|
+
export { formatWorkersDevUrl, formatVersionPreviewUrl } from '../cloudflare/preview-urls.js';
|
|
2
2
|
export interface ParsedWranglerDeployOutput {
|
|
3
3
|
versionId?: string;
|
|
4
4
|
previewUrl?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type APIClientOptions } from './api';
|
|
2
|
-
import type { AccountInfo } from './types';
|
|
1
|
+
import { type APIClientOptions } from './api.js';
|
|
2
|
+
import type { AccountInfo } from './types.js';
|
|
3
3
|
export declare function getAccounts(options?: APIClientOptions): Promise<AccountInfo[]>;
|
|
4
4
|
export declare function getPrimaryAccount(options?: APIClientOptions): Promise<AccountInfo | null>;
|
|
5
5
|
export declare function getAccountById(accountId: string, options?: APIClientOptions): Promise<AccountInfo | null>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type APIClientOptions } from './api';
|
|
2
|
-
import type { AIModelInfo, D1DatabaseInfo, D1QueryParameter, D1QueryResult, D1RawQueryResult, HyperdriveConfigInfo, KVNamespaceInfo, QueueInfo, R2BucketInfo, VectorizeIndexInfo } from './types';
|
|
1
|
+
import { type APIClientOptions } from './api.js';
|
|
2
|
+
import type { AIModelInfo, D1DatabaseInfo, D1QueryParameter, D1QueryResult, D1RawQueryResult, HyperdriveConfigInfo, KVNamespaceInfo, QueueInfo, R2BucketInfo, VectorizeIndexInfo } from './types.js';
|
|
3
3
|
export declare function listKVNamespaces(accountId: string, options?: APIClientOptions): Promise<KVNamespaceInfo[]>;
|
|
4
4
|
export declare function createKVNamespace(accountId: string, title: string, options?: APIClientOptions): Promise<KVNamespaceInfo>;
|
|
5
5
|
export declare function deleteKVNamespace(accountId: string, namespaceId: string, options?: APIClientOptions): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AccountInfo, CloudflareService, ServiceStatus } from './types';
|
|
1
|
+
import type { AccountInfo, CloudflareService, ServiceStatus } from './types.js';
|
|
2
2
|
export declare function getServiceStatus(accountId: string, service: CloudflareService): Promise<ServiceStatus>;
|
|
3
3
|
export declare function getAllServiceStatus(accountId: string): Promise<ServiceStatus[]>;
|
|
4
4
|
export declare function checkAuth(): Promise<boolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type APIClientOptions } from './api';
|
|
2
|
-
import type { WorkerDeploymentInfo, WorkerInfo, WorkerVersionInfo } from './types';
|
|
1
|
+
import { type APIClientOptions } from './api.js';
|
|
2
|
+
import type { WorkerDeploymentInfo, WorkerInfo, WorkerVersionInfo } from './types.js';
|
|
3
3
|
export interface RenamedWorkerInfo {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { getAccounts, getPrimaryAccount, getAccountById } from './account-core';
|
|
2
|
-
export { listWorkers, renameWorker, deleteWorker, listWorkerVersions, getWorkerVersionDetail, listWorkerDeployments, getWorkersSubdomain } from './account-workers';
|
|
3
|
-
export { listKVNamespaces, createKVNamespace, deleteKVNamespace, listD1Databases, createD1Database, deleteD1Database, queryD1Database, rawD1DatabaseQuery, listQueues, createQueue, deleteQueue, listR2Buckets, createR2Bucket, deleteR2Bucket, listHyperdrives, deleteHyperdrive, listVectorizeIndexes, createVectorizeIndex, deleteVectorizeIndex, listAIModels } from './account-resources';
|
|
4
|
-
export { getServiceStatus, getAllServiceStatus, checkAuth, hasService, getAccountSummary } from './account-status';
|
|
5
|
-
export type { RenamedWorkerInfo } from './account-workers';
|
|
6
|
-
export type { AccountSummary } from './account-status';
|
|
7
|
-
export type { D1DatabaseInfo, HyperdriveConfigInfo, KVNamespaceInfo, QueueInfo, R2BucketInfo, VectorizeIndexInfo } from './types';
|
|
1
|
+
export { getAccounts, getPrimaryAccount, getAccountById } from './account-core.js';
|
|
2
|
+
export { listWorkers, renameWorker, deleteWorker, listWorkerVersions, getWorkerVersionDetail, listWorkerDeployments, getWorkersSubdomain } from './account-workers.js';
|
|
3
|
+
export { listKVNamespaces, createKVNamespace, deleteKVNamespace, listD1Databases, createD1Database, deleteD1Database, queryD1Database, rawD1DatabaseQuery, listQueues, createQueue, deleteQueue, listR2Buckets, createR2Bucket, deleteR2Bucket, listHyperdrives, deleteHyperdrive, listVectorizeIndexes, createVectorizeIndex, deleteVectorizeIndex, listAIModels } from './account-resources.js';
|
|
4
|
+
export { getServiceStatus, getAllServiceStatus, checkAuth, hasService, getAccountSummary } from './account-status.js';
|
|
5
|
+
export type { RenamedWorkerInfo } from './account-workers.js';
|
|
6
|
+
export type { AccountSummary } from './account-status.js';
|
|
7
|
+
export type { D1DatabaseInfo, HyperdriveConfigInfo, KVNamespaceInfo, QueueInfo, R2BucketInfo, VectorizeIndexInfo } from './types.js';
|
|
8
8
|
//# sourceMappingURL=account.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { createD1Database, deleteWorker, getAccountById, getAccountSummary, getAccounts, getAllServiceStatus, getPrimaryAccount, getServiceStatus, getWorkerVersionDetail, getWorkersSubdomain, hasService, listAIModels, listD1Databases, listKVNamespaces, listR2Buckets, listVectorizeIndexes, listWorkerDeployments, listWorkerVersions, listWorkers, queryD1Database, rawD1DatabaseQuery, renameWorker } from './account';
|
|
2
|
-
import { canProceedWithTest, getAllUsageSummaries, getLimits, getUsage, getUsageSummary, isWithinLimits, recordTestUsage, recordUsage, resetUsage, setLimits, setLimitsEnabled, shouldSkip } from './usage';
|
|
3
|
-
import { clearGlobalDefaultAccountId, getEffectiveAccountId, getGlobalDefaultAccountId, getWorkspaceAccountId, setGlobalDefaultAccountId, setWorkspaceAccountId } from './preferences';
|
|
4
|
-
import { type APIClientOptions, AuthenticationError, CloudflareAPIError } from './api';
|
|
5
|
-
import { getApiToken, getWranglerAuth, hasWranglerConfig, isAuthenticated } from './auth';
|
|
6
|
-
import { cleanupPreviewRegistry, ensurePreviewRegistry, getPreviewRegistryContext, listTrackedDeploymentRecords, listTrackedPreviewRecords, listTrackedPreviewScopeRecords, listTrackedRegistryState, reconcilePreviewRegistry, retirePreviewRegistry } from './preview-registry';
|
|
7
|
-
import { createAccountOwnedAPIToken, deleteAccountOwnedAPIToken, listAccountOwnedAPITokens, listAccountTokenPermissionGroups, normalizeDevflareTokenName } from './tokens';
|
|
8
|
-
export { devflareAccountRecordSchema, createDevflareAccountRecordSchema, devflareRecordSourceSchema, devflarePreviewStatusSchema, devflarePreviewScopeStatusSchema, devflareDeploymentChannelSchema, devflareDeploymentStatusSchema, devflarePreviewRecordSchema, devflarePreviewScopeRecordSchema, devflareDeploymentRecordSchema, devflareAccountLayerRecordSchema } from './registry-schema';
|
|
1
|
+
import { createD1Database, deleteWorker, getAccountById, getAccountSummary, getAccounts, getAllServiceStatus, getPrimaryAccount, getServiceStatus, getWorkerVersionDetail, getWorkersSubdomain, hasService, listAIModels, listD1Databases, listKVNamespaces, listR2Buckets, listVectorizeIndexes, listWorkerDeployments, listWorkerVersions, listWorkers, queryD1Database, rawD1DatabaseQuery, renameWorker } from './account.js';
|
|
2
|
+
import { canProceedWithTest, getAllUsageSummaries, getLimits, getUsage, getUsageSummary, isWithinLimits, recordTestUsage, recordUsage, resetUsage, setLimits, setLimitsEnabled, shouldSkip } from './usage.js';
|
|
3
|
+
import { clearGlobalDefaultAccountId, getEffectiveAccountId, getGlobalDefaultAccountId, getWorkspaceAccountId, setGlobalDefaultAccountId, setWorkspaceAccountId } from './preferences.js';
|
|
4
|
+
import { type APIClientOptions, AuthenticationError, CloudflareAPIError } from './api.js';
|
|
5
|
+
import { getApiToken, getWranglerAuth, hasWranglerConfig, isAuthenticated } from './auth.js';
|
|
6
|
+
import { cleanupPreviewRegistry, ensurePreviewRegistry, getPreviewRegistryContext, listTrackedDeploymentRecords, listTrackedPreviewRecords, listTrackedPreviewScopeRecords, listTrackedRegistryState, reconcilePreviewRegistry, retirePreviewRegistry } from './preview-registry.js';
|
|
7
|
+
import { createAccountOwnedAPIToken, deleteAccountOwnedAPIToken, listAccountOwnedAPITokens, listAccountTokenPermissionGroups, normalizeDevflareTokenName } from './tokens.js';
|
|
8
|
+
export { devflareAccountRecordSchema, createDevflareAccountRecordSchema, devflareRecordSourceSchema, devflarePreviewStatusSchema, devflarePreviewScopeStatusSchema, devflareDeploymentChannelSchema, devflareDeploymentStatusSchema, devflarePreviewRecordSchema, devflarePreviewScopeRecordSchema, devflareDeploymentRecordSchema, devflareAccountLayerRecordSchema } from './registry-schema.js';
|
|
9
9
|
/**
|
|
10
10
|
* Main account API object
|
|
11
11
|
*
|
|
@@ -152,11 +152,11 @@ export declare const account: {
|
|
|
152
152
|
/** Retire a tracked preview, scope, and preview deployment immediately */
|
|
153
153
|
readonly retirePreviewRegistry: typeof retirePreviewRegistry;
|
|
154
154
|
};
|
|
155
|
-
export type { AccountInfo, CloudflareAccount, CloudflareService, ServiceStatus, WorkerInfo, WorkerVersionInfo, WorkerDeploymentInfo, KVNamespaceInfo, D1DatabaseInfo, D1QueryParameter, D1QueryResult, D1RawQueryResult, R2BucketInfo, VectorizeIndexInfo, AIModelInfo, UsageRecord, UsageLimits, UsageSummary, WranglerAuth, AccountTokenPermissionGroup, AccountOwnedAPIToken, AccountOwnedAPITokenDeleteResult, AccountOwnedAPITokenPermissionGroup, AccountOwnedAPITokenPolicy } from './types';
|
|
156
|
-
export type { RenamedWorkerInfo } from './account';
|
|
157
|
-
export type { CloudflareUserId, DevflareAccountRecord, DevflareRecordSource, DevflarePreviewStatus, DevflarePreviewScopeStatus, DevflareDeploymentChannel, DevflareDeploymentStatus, DevflarePreviewRecord, DevflarePreviewScopeRecord, DevflareDeploymentRecord, DevflareAccountLayerRecord } from './registry-schema';
|
|
158
|
-
export type { PreviewRegistryContext, ReconcilePreviewRegistryResult, CleanupPreviewRegistryResult, RetirePreviewRegistryResult } from './preview-registry';
|
|
159
|
-
export { ensurePreviewRegistry, getPreviewRegistryContext, listTrackedRegistryState, listTrackedPreviewRecords, listTrackedPreviewScopeRecords, listTrackedDeploymentRecords, reconcilePreviewRegistry, cleanupPreviewRegistry, retirePreviewRegistry, DEVFLARE_PREVIEW_REGISTRY_DATABASE } from './preview-registry';
|
|
155
|
+
export type { AccountInfo, CloudflareAccount, CloudflareService, ServiceStatus, WorkerInfo, WorkerVersionInfo, WorkerDeploymentInfo, KVNamespaceInfo, D1DatabaseInfo, D1QueryParameter, D1QueryResult, D1RawQueryResult, R2BucketInfo, VectorizeIndexInfo, AIModelInfo, UsageRecord, UsageLimits, UsageSummary, WranglerAuth, AccountTokenPermissionGroup, AccountOwnedAPIToken, AccountOwnedAPITokenDeleteResult, AccountOwnedAPITokenPermissionGroup, AccountOwnedAPITokenPolicy } from './types.js';
|
|
156
|
+
export type { RenamedWorkerInfo } from './account.js';
|
|
157
|
+
export type { CloudflareUserId, DevflareAccountRecord, DevflareRecordSource, DevflarePreviewStatus, DevflarePreviewScopeStatus, DevflareDeploymentChannel, DevflareDeploymentStatus, DevflarePreviewRecord, DevflarePreviewScopeRecord, DevflareDeploymentRecord, DevflareAccountLayerRecord } from './registry-schema.js';
|
|
158
|
+
export type { PreviewRegistryContext, ReconcilePreviewRegistryResult, CleanupPreviewRegistryResult, RetirePreviewRegistryResult } from './preview-registry.js';
|
|
159
|
+
export { ensurePreviewRegistry, getPreviewRegistryContext, listTrackedRegistryState, listTrackedPreviewRecords, listTrackedPreviewScopeRecords, listTrackedDeploymentRecords, reconcilePreviewRegistry, cleanupPreviewRegistry, retirePreviewRegistry, DEVFLARE_PREVIEW_REGISTRY_DATABASE } from './preview-registry.js';
|
|
160
160
|
export { CloudflareAPIError, AuthenticationError };
|
|
161
161
|
export type { APIClientOptions };
|
|
162
162
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/cloudflare/index.js
CHANGED
|
@@ -1,59 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from "../
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
DEVFLARE_PREVIEW_REGISTRY_DATABASE,
|
|
7
|
-
cleanupPreviewRegistry,
|
|
8
|
-
createDevflareAccountRecordSchema,
|
|
9
|
-
devflareAccountLayerRecordSchema,
|
|
10
|
-
devflareAccountRecordSchema,
|
|
11
|
-
devflareDeploymentChannelSchema,
|
|
12
|
-
devflareDeploymentRecordSchema,
|
|
13
|
-
devflareDeploymentStatusSchema,
|
|
14
|
-
devflarePreviewRecordSchema,
|
|
15
|
-
devflarePreviewScopeRecordSchema,
|
|
16
|
-
devflarePreviewScopeStatusSchema,
|
|
17
|
-
devflarePreviewStatusSchema,
|
|
18
|
-
devflareRecordSourceSchema,
|
|
19
|
-
ensurePreviewRegistry,
|
|
20
|
-
getPreviewRegistryContext,
|
|
21
|
-
listTrackedDeploymentRecords,
|
|
22
|
-
listTrackedPreviewRecords,
|
|
23
|
-
listTrackedPreviewScopeRecords,
|
|
24
|
-
listTrackedRegistryState,
|
|
25
|
-
reconcilePreviewRegistry,
|
|
26
|
-
retirePreviewRegistry
|
|
27
|
-
} from "../index-hvtd936d.js";
|
|
28
|
-
import"../index-h7r11y4a.js";
|
|
29
|
-
import {
|
|
30
|
-
AuthenticationError,
|
|
31
|
-
CloudflareAPIError
|
|
32
|
-
} from "../index-04wh9bxx.js";
|
|
33
|
-
import"../index-37x76zdn.js";
|
|
34
|
-
export {
|
|
35
|
-
retirePreviewRegistry,
|
|
36
|
-
reconcilePreviewRegistry,
|
|
37
|
-
listTrackedRegistryState,
|
|
38
|
-
listTrackedPreviewScopeRecords,
|
|
39
|
-
listTrackedPreviewRecords,
|
|
40
|
-
listTrackedDeploymentRecords,
|
|
41
|
-
getPreviewRegistryContext,
|
|
42
|
-
ensurePreviewRegistry,
|
|
43
|
-
devflareRecordSourceSchema,
|
|
44
|
-
devflarePreviewStatusSchema,
|
|
45
|
-
devflarePreviewScopeStatusSchema,
|
|
46
|
-
devflarePreviewScopeRecordSchema,
|
|
47
|
-
devflarePreviewRecordSchema,
|
|
48
|
-
devflareDeploymentStatusSchema,
|
|
49
|
-
devflareDeploymentRecordSchema,
|
|
50
|
-
devflareDeploymentChannelSchema,
|
|
51
|
-
devflareAccountRecordSchema,
|
|
52
|
-
devflareAccountLayerRecordSchema,
|
|
53
|
-
createDevflareAccountRecordSchema,
|
|
54
|
-
cleanupPreviewRegistry,
|
|
55
|
-
account,
|
|
56
|
-
DEVFLARE_PREVIEW_REGISTRY_DATABASE,
|
|
57
|
-
CloudflareAPIError,
|
|
58
|
-
AuthenticationError
|
|
59
|
-
};
|
|
1
|
+
import { n as CloudflareAPIError, t as AuthenticationError } from "../_chunks/api-TzdliH-6.js";
|
|
2
|
+
import { S as DEVFLARE_PREVIEW_REGISTRY_DATABASE, _ as devflarePreviewScopeRecordSchema, a as listTrackedPreviewRecords, b as devflareRecordSourceSchema, c as reconcilePreviewRegistry, d as devflareAccountLayerRecordSchema, f as devflareAccountRecordSchema, g as devflarePreviewRecordSchema, h as devflareDeploymentStatusSchema, i as listTrackedDeploymentRecords, l as retirePreviewRegistry, m as devflareDeploymentRecordSchema, n as ensurePreviewRegistry, o as listTrackedPreviewScopeRecords, p as devflareDeploymentChannelSchema, r as getPreviewRegistryContext, s as listTrackedRegistryState, t as cleanupPreviewRegistry, u as createDevflareAccountRecordSchema, v as devflarePreviewScopeStatusSchema, y as devflarePreviewStatusSchema } from "../_chunks/preview-registry-ClAbLTHH.js";
|
|
3
|
+
import { t as account } from "../_chunks/cloudflare-BaloqI3H.js";
|
|
4
|
+
export { AuthenticationError, CloudflareAPIError, DEVFLARE_PREVIEW_REGISTRY_DATABASE, account, cleanupPreviewRegistry, createDevflareAccountRecordSchema, devflareAccountLayerRecordSchema, devflareAccountRecordSchema, devflareDeploymentChannelSchema, devflareDeploymentRecordSchema, devflareDeploymentStatusSchema, devflarePreviewRecordSchema, devflarePreviewScopeRecordSchema, devflarePreviewScopeStatusSchema, devflarePreviewStatusSchema, devflareRecordSourceSchema, ensurePreviewRegistry, getPreviewRegistryContext, listTrackedDeploymentRecords, listTrackedPreviewRecords, listTrackedPreviewScopeRecords, listTrackedRegistryState, reconcilePreviewRegistry, retirePreviewRegistry };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type APIClientOptions } from './api';
|
|
1
|
+
import { type APIClientOptions } from './api.js';
|
|
2
2
|
export declare const DEVFLARE_KV_NAMESPACE_TITLE = "devflare-usage";
|
|
3
3
|
export declare function getOrCreateNamedKVNamespace(accountId: string, title?: string, options?: APIClientOptions): Promise<string>;
|
|
4
4
|
//# sourceMappingURL=kv-namespace.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PreviewRegistryContext } from './preview-registry-types';
|
|
1
|
+
import { type PreviewRegistryContext } from './preview-registry-types.js';
|
|
2
2
|
export declare function getRegistryDatabaseName(databaseName?: string): string;
|
|
3
3
|
export declare function getCachedPreviewRegistryContext(accountId: string, databaseName: string): PreviewRegistryContext | null;
|
|
4
4
|
export declare function cachePreviewRegistryContext(registry: PreviewRegistryContext): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ReconcilePreviewRegistryOptions, RetirePreviewRegistryOptions } from './preview-registry-types';
|
|
2
|
-
import type { DevflareDeploymentRecord, DevflarePreviewRecord, DevflarePreviewScopeRecord, DevflareRecordSource } from './registry-schema';
|
|
1
|
+
import type { ReconcilePreviewRegistryOptions, RetirePreviewRegistryOptions } from './preview-registry-types.js';
|
|
2
|
+
import type { DevflareDeploymentRecord, DevflarePreviewRecord, DevflarePreviewScopeRecord, DevflareRecordSource } from './registry-schema.js';
|
|
3
3
|
export declare function toIsoString(date: Date | undefined): string | null;
|
|
4
4
|
export declare function inferRecordSource(explicitSource: DevflareRecordSource | undefined, fallbackSource: string | undefined): DevflareRecordSource;
|
|
5
5
|
export declare function getPreviewRecordId(workerName: string, versionId: string): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './preview-registry-inference';
|
|
2
|
-
export * from './preview-registry-shape';
|
|
3
|
-
export * from './preview-registry-transport';
|
|
1
|
+
export * from './preview-registry-inference.js';
|
|
2
|
+
export * from './preview-registry-shape.js';
|
|
3
|
+
export * from './preview-registry-transport.js';
|
|
4
4
|
//# sourceMappingURL=preview-registry-records.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type DevflareDeploymentRecord, type DevflarePreviewRecord, type DevflarePreviewScopeRecord, type DevflareRecordSource } from './registry-schema';
|
|
2
|
-
import type { WorkerDeploymentInfo, WorkerVersionInfo } from './types';
|
|
1
|
+
import { type DevflareDeploymentRecord, type DevflarePreviewRecord, type DevflarePreviewScopeRecord, type DevflareRecordSource } from './registry-schema.js';
|
|
2
|
+
import type { WorkerDeploymentInfo, WorkerVersionInfo } from './types.js';
|
|
3
3
|
export declare function buildPreviewRecord(options: {
|
|
4
4
|
accountId: string;
|
|
5
5
|
workerName: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type APIClientOptions } from './api';
|
|
2
|
-
import type { PreviewRegistryContext } from './preview-registry-types';
|
|
3
|
-
import { type DevflareDeploymentRecord, type DevflarePreviewRecord, type DevflarePreviewScopeRecord } from './registry-schema';
|
|
1
|
+
import { type APIClientOptions } from './api.js';
|
|
2
|
+
import type { PreviewRegistryContext } from './preview-registry-types.js';
|
|
3
|
+
import { type DevflareDeploymentRecord, type DevflarePreviewRecord, type DevflarePreviewScopeRecord } from './registry-schema.js';
|
|
4
4
|
export declare function ensurePreviewRegistrySchema(registry: PreviewRegistryContext, apiOptions?: APIClientOptions): Promise<void>;
|
|
5
5
|
export declare function clearPreviewRegistrySchemaCache(databaseId: string): void;
|
|
6
6
|
export declare function isMissingRegistrySchemaError(error: unknown): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { APIClientOptions } from './api';
|
|
2
|
-
import type { WorkerVersionInfo } from './types';
|
|
1
|
+
import type { APIClientOptions } from './api.js';
|
|
2
|
+
import type { WorkerVersionInfo } from './types.js';
|
|
3
3
|
export declare function getVersionInfoById(accountId: string, workerName: string, versionId: string, versionMap: Map<string, WorkerVersionInfo>, apiOptions?: APIClientOptions): Promise<WorkerVersionInfo | undefined>;
|
|
4
4
|
//# sourceMappingURL=preview-registry-transport.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ConsolaInstance } from 'consola';
|
|
2
|
-
import type { APIClientOptions } from './api';
|
|
3
|
-
import type { DevflareDeploymentRecord, DevflarePreviewRecord, DevflarePreviewScopeRecord, DevflareRecordSource } from './registry-schema';
|
|
2
|
+
import type { APIClientOptions } from './api.js';
|
|
3
|
+
import type { DevflareDeploymentRecord, DevflarePreviewRecord, DevflarePreviewScopeRecord, DevflareRecordSource } from './registry-schema.js';
|
|
4
4
|
export declare const DEVFLARE_PREVIEW_REGISTRY_DATABASE = "devflare-registry";
|
|
5
5
|
export interface StoredRecordRow {
|
|
6
6
|
payload_json: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { APIClientOptions } from './api';
|
|
2
|
-
import { readDeploymentRows, readPreviewRows, readPreviewScopeRows } from './preview-registry-store';
|
|
3
|
-
import type { CleanupPreviewRegistryOptions, CleanupPreviewRegistryResult, ListTrackedRecordsOptions, ListTrackedRegistryStateOptions, PreviewRegistryContext, ReconcilePreviewRegistryOptions, ReconcilePreviewRegistryResult, RetirePreviewRegistryOptions, RetirePreviewRegistryResult } from './preview-registry-types';
|
|
4
|
-
export { DEVFLARE_PREVIEW_REGISTRY_DATABASE } from './preview-registry-types';
|
|
5
|
-
export type { CleanupPreviewRegistryOptions, CleanupPreviewRegistryResult, ListTrackedRecordsOptions, ListTrackedRegistryStateOptions, PreviewRegistryContext, ReconcilePreviewRegistryOptions, ReconcilePreviewRegistryResult, RetirePreviewRegistryOptions, RetirePreviewRegistryResult } from './preview-registry-types';
|
|
1
|
+
import type { APIClientOptions } from './api.js';
|
|
2
|
+
import { readDeploymentRows, readPreviewRows, readPreviewScopeRows } from './preview-registry-store.js';
|
|
3
|
+
import type { CleanupPreviewRegistryOptions, CleanupPreviewRegistryResult, ListTrackedRecordsOptions, ListTrackedRegistryStateOptions, PreviewRegistryContext, ReconcilePreviewRegistryOptions, ReconcilePreviewRegistryResult, RetirePreviewRegistryOptions, RetirePreviewRegistryResult } from './preview-registry-types.js';
|
|
4
|
+
export { DEVFLARE_PREVIEW_REGISTRY_DATABASE } from './preview-registry-types.js';
|
|
5
|
+
export type { CleanupPreviewRegistryOptions, CleanupPreviewRegistryResult, ListTrackedRecordsOptions, ListTrackedRegistryStateOptions, PreviewRegistryContext, ReconcilePreviewRegistryOptions, ReconcilePreviewRegistryResult, RetirePreviewRegistryOptions, RetirePreviewRegistryResult } from './preview-registry-types.js';
|
|
6
6
|
export declare function getPreviewRegistryContext(options: {
|
|
7
7
|
accountId: string;
|
|
8
8
|
databaseName?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type APIClientOptions } from './api';
|
|
2
|
-
import type { AccountOwnedAPIToken, AccountOwnedAPITokenDeleteResult, AccountTokenPermissionGroup } from './types';
|
|
1
|
+
import { type APIClientOptions } from './api.js';
|
|
2
|
+
import type { AccountOwnedAPIToken, AccountOwnedAPITokenDeleteResult, AccountTokenPermissionGroup } from './types.js';
|
|
3
3
|
export declare const DEVFLARE_MANAGED_TOKEN_PREFIX = "devflare-";
|
|
4
4
|
export declare const KNOWN_PERMISSION_GROUP_IDS: Record<"ACCOUNT_API_TOKENS_READ" | "ACCOUNT_API_TOKENS_WRITE" | "ACCOUNT_SETTINGS_READ" | "WORKERS_KV_STORAGE_READ" | "WORKERS_KV_STORAGE_WRITE" | "WORKERS_SCRIPTS_READ" | "WORKERS_SCRIPTS_WRITE", string | undefined>;
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { kvGet, kvPut } from './api';
|
|
2
|
-
import type { CloudflareService, UsageLimits, UsageRecord, UsageSummary } from './types';
|
|
1
|
+
import { kvGet, kvPut } from './api.js';
|
|
2
|
+
import type { CloudflareService, UsageLimits, UsageRecord, UsageSummary } from './types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Get usage for a specific service on a specific date
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type D1Binding, type DevflareConfig, type HyperdriveBinding, type KVBinding } from '../schema';
|
|
2
|
-
import type { CompileConfigOptions, WranglerConfig, WranglerD1DatabaseBinding, WranglerHyperdriveBinding, WranglerKVNamespaceBinding } from './types';
|
|
1
|
+
import { type D1Binding, type DevflareConfig, type HyperdriveBinding, type KVBinding } from '../schema.js';
|
|
2
|
+
import type { CompileConfigOptions, WranglerConfig, WranglerD1DatabaseBinding, WranglerHyperdriveBinding, WranglerKVNamespaceBinding } from './types.js';
|
|
3
3
|
export declare function getWranglerD1DatabaseBinding(bindingName: string, bindingConfig: D1Binding, options?: CompileConfigOptions): WranglerD1DatabaseBinding;
|
|
4
4
|
export declare function getWranglerKVNamespaceBinding(bindingName: string, bindingConfig: KVBinding, options?: CompileConfigOptions): WranglerKVNamespaceBinding;
|
|
5
5
|
export declare function getWranglerHyperdriveBinding(bindingName: string, bindingConfig: HyperdriveBinding, options?: CompileConfigOptions): WranglerHyperdriveBinding;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DevflareConfig } from '../schema';
|
|
2
|
-
import type { WranglerConfig } from './types';
|
|
1
|
+
import type { DevflareConfig } from '../schema.js';
|
|
2
|
+
import type { WranglerConfig } from './types.js';
|
|
3
3
|
export declare function compileWranglerMigrations(migrations: NonNullable<DevflareConfig['migrations']>): NonNullable<WranglerConfig['migrations']>;
|
|
4
4
|
export declare function compileModuleOptions(config: DevflareConfig, result: WranglerConfig): void;
|
|
5
5
|
export declare function compileContainers(config: DevflareConfig, result: WranglerConfig): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { WranglerConfig } from './compiler/types';
|
|
2
|
-
import type { ResolvedConfig } from './resolve-phased';
|
|
3
|
-
import type { DevflareConfig } from './schema';
|
|
4
|
-
export { compileDOWorkerConfig } from './compiler/do-workers';
|
|
5
|
-
export { isolateViteBuildOutputPaths, readWranglerConfig, rebaseWranglerConfigPaths, stringifyConfig, writeWranglerConfig } from './compiler/paths';
|
|
6
|
-
export type { CompileConfigOptions, WranglerConfig, WranglerD1DatabaseBinding, WranglerHyperdriveBinding, WranglerKVNamespaceBinding, WranglerModuleRule } from './compiler/types';
|
|
1
|
+
import type { WranglerConfig } from './compiler/types.js';
|
|
2
|
+
import type { ResolvedConfig } from './resolve-phased.js';
|
|
3
|
+
import type { DevflareConfig } from './schema.js';
|
|
4
|
+
export { compileDOWorkerConfig } from './compiler/do-workers.js';
|
|
5
|
+
export { isolateViteBuildOutputPaths, readWranglerConfig, rebaseWranglerConfigPaths, stringifyConfig, writeWranglerConfig } from './compiler/paths.js';
|
|
6
|
+
export type { CompileConfigOptions, WranglerConfig, WranglerD1DatabaseBinding, WranglerHyperdriveBinding, WranglerKVNamespaceBinding, WranglerModuleRule } from './compiler/types.js';
|
|
7
7
|
/**
|
|
8
8
|
* Compile a phase-resolved DevflareConfig to WranglerConfig.
|
|
9
9
|
*
|
package/dist/config/define.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { InferConfigVars } from './env-vars';
|
|
2
|
-
import type { DevflareConfigInput } from './schema';
|
|
1
|
+
import type { InferConfigVars } from './env-vars.js';
|
|
2
|
+
import type { DevflareConfigInput } from './schema.js';
|
|
3
3
|
/**
|
|
4
4
|
* Input type for defineConfig - can be object, function, or async function
|
|
5
5
|
* Uses the Zod input type so optional fields with defaults are truly optional
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { createD1Database, createKVNamespace, createQueue, createR2Bucket, getPrimaryAccount, listD1Databases, listHyperdrives, listKVNamespaces, listQueues, listR2Buckets, listVectorizeIndexes } from '../cloudflare/account';
|
|
2
|
-
import { getEffectiveAccountId } from '../cloudflare/preferences';
|
|
3
|
-
import type { PreviewResolutionOptions } from './preview';
|
|
4
|
-
import { type DeployConfig } from './resolve-phased';
|
|
5
|
-
import { type DevflareConfig } from './schema';
|
|
1
|
+
import { createD1Database, createKVNamespace, createQueue, createR2Bucket, getPrimaryAccount, listD1Databases, listHyperdrives, listKVNamespaces, listQueues, listR2Buckets, listVectorizeIndexes } from '../cloudflare/account.js';
|
|
2
|
+
import { getEffectiveAccountId } from '../cloudflare/preferences.js';
|
|
3
|
+
import type { PreviewResolutionOptions } from './preview.js';
|
|
4
|
+
import { type DeployConfig } from './resolve-phased.js';
|
|
5
|
+
import { type DevflareConfig } from './schema.js';
|
|
6
6
|
interface DeployResourcePreparationApi {
|
|
7
7
|
getPrimaryAccount: typeof getPrimaryAccount;
|
|
8
8
|
getEffectiveAccountId: typeof getEffectiveAccountId;
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { defineConfig, type DefineConfigInput, type TypedConfig } from './define';
|
|
2
|
-
export { env, isEnvVarDescriptor, loadDevflareDotenv, loadDevflareDotenvIntoProcess, parseDevflareEnvFile, resolveConfigEnvVars, EnvVarResolutionError, EnvVarParseError, type DevflareVarInput, type DevflareVarsInput, type EnvResolutionMode, type EnvVarDescriptor, type InferConfigVars, type MissingEnvVar, type ResolveConfigEnvVarsOptions } from './env-vars';
|
|
3
|
-
export { preview, isPreviewScopedName, resolvePreviewIdentifier, materializePreviewScopedConfig, materializePreviewScopedString, type ResolvedPreviewIdentifier, type PreviewIdentifierSource, type PreviewScopeFn, type PreviewScopeOptions, type PreviewScopedName, type PreviewScopedNameOptions, type PreviewResolutionOptions } from './preview';
|
|
4
|
-
export { configSchema, getLocalHyperdriveConfigIdentifier, getLocalKVNamespaceIdentifier, getSingleBrowserBindingName, getLocalD1DatabaseIdentifier, normalizeHyperdriveBinding, normalizeKVBinding, normalizeD1Binding, normalizeDOBinding, normalizeMtlsCertificateBinding, normalizeDispatchNamespaceBinding, normalizeWorkflowBinding, normalizePipelineBinding, normalizeImagesBinding, normalizeMediaBinding, normalizeSecretsStoreBinding, normalizeArtifactsBinding, type BrowserBindings, type D1Binding, type HyperdriveBinding, type DevflareConfig, type DevflareConfigInput, type DevflareEnvConfig, type PreviewConfig, type DurableObjectBinding, type KVBinding, type NormalizedHyperdriveBinding, type NormalizedKVBinding, type NormalizedD1Binding, type NormalizedDOBinding, type NormalizedMtlsCertificateBinding, type NormalizedDispatchNamespaceBinding, type NormalizedWorkflowBinding, type NormalizedPipelineBinding, type NormalizedImagesBinding, type NormalizedMediaBinding, type NormalizedSecretsStoreBinding, type NormalizedArtifactsBinding, type QueueConsumer, type QueuesConfig, type RateLimitBinding, type VersionMetadataBinding, type WorkerLoaderBinding, type SecretsStoreBinding, type MtlsCertificateBinding, type DispatchNamespaceBinding, type WorkflowBinding, type PipelineBinding, type ImagesBinding, type MediaBinding, type ArtifactsBinding, type ServiceBinding, type RouteConfig, type TailConsumerConfig, type WsRouteConfig, type AssetsConfig, type ContainerConfig, type ViteConfig, type RolldownConfig, type MigrationConfig } from './schema';
|
|
5
|
-
export { compileBuildConfig, compileConfig, readWranglerConfig, stringifyConfig, writeWranglerConfig, type WranglerConfig, type WranglerD1DatabaseBinding, type WranglerHyperdriveBinding, type WranglerKVNamespaceBinding } from './compiler';
|
|
6
|
-
export { loadConfig, loadResolvedConfig, resolveConfigPath, ConfigNotFoundError, ConfigValidationError, ConfigResourceResolutionError, type LoadConfigOptions } from './loader';
|
|
7
|
-
export { resolveConfigForEnvironment } from './resolve';
|
|
8
|
-
export { resolveMaterializedConfigResources, type LoadResolvedConfigOptions, type ResolveMaterializedConfigResourcesOptions } from './resource-resolution';
|
|
9
|
-
export { prepareConfigResourcesForDeploy, prepareMaterializedConfigResourcesForDeploy, type DeployResourceNames, type PrepareConfigResourcesForDeployOptions, type PrepareConfigResourcesForDeployResult, type PrepareMaterializedConfigResourcesForDeployOptions } from './deploy-resources';
|
|
10
|
-
export { resolveResources, type BuildConfig, type LocalConfig, type DeployConfig, type Phase, type PhaseConfig, type ResolveResourcesOptions, type ResolveResourcesBuildOptions, type ResolveResourcesLocalOptions, type ResolveResourcesDeployOptions } from './resolve-phased';
|
|
11
|
-
export { collectReferencedServiceNames, validateServiceBindings, ServiceBindingValidationError, type ValidateServiceBindingsOptions } from './service-bindings-validation';
|
|
12
|
-
export { ref, type RefResult, type WorkerBinding, type WorkerBindingAccessor, type DOBindingRef } from './ref';
|
|
1
|
+
export { defineConfig, type DefineConfigInput, type TypedConfig } from './define.js';
|
|
2
|
+
export { env, isEnvVarDescriptor, loadDevflareDotenv, loadDevflareDotenvIntoProcess, parseDevflareEnvFile, resolveConfigEnvVars, EnvVarResolutionError, EnvVarParseError, type DevflareVarInput, type DevflareVarsInput, type EnvResolutionMode, type EnvVarDescriptor, type InferConfigVars, type MissingEnvVar, type ResolveConfigEnvVarsOptions } from './env-vars.js';
|
|
3
|
+
export { preview, isPreviewScopedName, resolvePreviewIdentifier, materializePreviewScopedConfig, materializePreviewScopedString, type ResolvedPreviewIdentifier, type PreviewIdentifierSource, type PreviewScopeFn, type PreviewScopeOptions, type PreviewScopedName, type PreviewScopedNameOptions, type PreviewResolutionOptions } from './preview.js';
|
|
4
|
+
export { configSchema, getLocalHyperdriveConfigIdentifier, getLocalKVNamespaceIdentifier, getSingleBrowserBindingName, getLocalD1DatabaseIdentifier, normalizeHyperdriveBinding, normalizeKVBinding, normalizeD1Binding, normalizeDOBinding, normalizeMtlsCertificateBinding, normalizeDispatchNamespaceBinding, normalizeWorkflowBinding, normalizePipelineBinding, normalizeImagesBinding, normalizeMediaBinding, normalizeSecretsStoreBinding, normalizeArtifactsBinding, type BrowserBindings, type D1Binding, type HyperdriveBinding, type DevflareConfig, type DevflareConfigInput, type DevflareEnvConfig, type PreviewConfig, type DurableObjectBinding, type KVBinding, type NormalizedHyperdriveBinding, type NormalizedKVBinding, type NormalizedD1Binding, type NormalizedDOBinding, type NormalizedMtlsCertificateBinding, type NormalizedDispatchNamespaceBinding, type NormalizedWorkflowBinding, type NormalizedPipelineBinding, type NormalizedImagesBinding, type NormalizedMediaBinding, type NormalizedSecretsStoreBinding, type NormalizedArtifactsBinding, type QueueConsumer, type QueuesConfig, type RateLimitBinding, type VersionMetadataBinding, type WorkerLoaderBinding, type SecretsStoreBinding, type MtlsCertificateBinding, type DispatchNamespaceBinding, type WorkflowBinding, type PipelineBinding, type ImagesBinding, type MediaBinding, type ArtifactsBinding, type ServiceBinding, type RouteConfig, type TailConsumerConfig, type WsRouteConfig, type AssetsConfig, type ContainerConfig, type ViteConfig, type RolldownConfig, type MigrationConfig } from './schema.js';
|
|
5
|
+
export { compileBuildConfig, compileConfig, readWranglerConfig, stringifyConfig, writeWranglerConfig, type WranglerConfig, type WranglerD1DatabaseBinding, type WranglerHyperdriveBinding, type WranglerKVNamespaceBinding } from './compiler.js';
|
|
6
|
+
export { loadConfig, loadResolvedConfig, resolveConfigPath, ConfigNotFoundError, ConfigValidationError, ConfigResourceResolutionError, type LoadConfigOptions } from './loader.js';
|
|
7
|
+
export { resolveConfigForEnvironment } from './resolve.js';
|
|
8
|
+
export { resolveMaterializedConfigResources, type LoadResolvedConfigOptions, type ResolveMaterializedConfigResourcesOptions } from './resource-resolution.js';
|
|
9
|
+
export { prepareConfigResourcesForDeploy, prepareMaterializedConfigResourcesForDeploy, type DeployResourceNames, type PrepareConfigResourcesForDeployOptions, type PrepareConfigResourcesForDeployResult, type PrepareMaterializedConfigResourcesForDeployOptions } from './deploy-resources.js';
|
|
10
|
+
export { resolveResources, type BuildConfig, type LocalConfig, type DeployConfig, type Phase, type PhaseConfig, type ResolveResourcesOptions, type ResolveResourcesBuildOptions, type ResolveResourcesLocalOptions, type ResolveResourcesDeployOptions } from './resolve-phased.js';
|
|
11
|
+
export { collectReferencedServiceNames, validateServiceBindings, ServiceBindingValidationError, type ValidateServiceBindingsOptions } from './service-bindings-validation.js';
|
|
12
|
+
export { ref, type RefResult, type WorkerBinding, type WorkerBindingAccessor, type DOBindingRef } from './ref.js';
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/config/loader.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type DevflareConfig } from './schema';
|
|
1
|
+
import { type DevflareConfig } from './schema.js';
|
|
2
2
|
/**
|
|
3
3
|
* Options for loading config
|
|
4
4
|
*/
|
|
@@ -49,5 +49,5 @@ export declare class ConfigValidationError extends Error {
|
|
|
49
49
|
message: string;
|
|
50
50
|
}>, configFile: string);
|
|
51
51
|
}
|
|
52
|
-
export { loadResolvedConfig, ConfigResourceResolutionError, type LoadResolvedConfigOptions } from './resource-resolution';
|
|
52
|
+
export { loadResolvedConfig, ConfigResourceResolutionError, type LoadResolvedConfigOptions } from './resource-resolution.js';
|
|
53
53
|
//# sourceMappingURL=loader.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createD1Database, createKVNamespace, createQueue, createR2Bucket, createVectorizeIndex, deleteD1Database, deleteHyperdrive, deleteKVNamespace, deleteQueue, deleteR2Bucket, deleteVectorizeIndex, getPrimaryAccount, listD1Databases, listHyperdrives, listKVNamespaces, listQueues, listR2Buckets, listVectorizeIndexes } from '../cloudflare/account';
|
|
2
|
-
import { getEffectiveAccountId } from '../cloudflare/preferences';
|
|
3
|
-
import { type PreviewResolutionOptions } from './preview';
|
|
4
|
-
import type { DevflareConfig } from './schema';
|
|
1
|
+
import { createD1Database, createKVNamespace, createQueue, createR2Bucket, createVectorizeIndex, deleteD1Database, deleteHyperdrive, deleteKVNamespace, deleteQueue, deleteR2Bucket, deleteVectorizeIndex, getPrimaryAccount, listD1Databases, listHyperdrives, listKVNamespaces, listQueues, listR2Buckets, listVectorizeIndexes } from '../cloudflare/account.js';
|
|
2
|
+
import { getEffectiveAccountId } from '../cloudflare/preferences.js';
|
|
3
|
+
import { type PreviewResolutionOptions } from './preview.js';
|
|
4
|
+
import type { DevflareConfig } from './schema.js';
|
|
5
5
|
export interface PreviewScopedResourceRef {
|
|
6
6
|
bindingName?: string;
|
|
7
7
|
baseName: string;
|
package/dist/config/preview.d.ts
CHANGED
package/dist/config/ref.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TypedConfig } from './define';
|
|
2
|
-
import type { DevflareConfigInput } from './schema';
|
|
1
|
+
import type { TypedConfig } from './define.js';
|
|
2
|
+
import type { DevflareConfigInput } from './schema.js';
|
|
3
3
|
/**
|
|
4
4
|
* Extract entrypoint type from a TypedConfig
|
|
5
5
|
* Falls back to string if no type parameter was provided
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type PrepareMaterializedConfigResourcesForDeployOptions } from './deploy-resources';
|
|
2
|
-
import { type PreviewResolutionOptions } from './preview';
|
|
3
|
-
import { type ResolveMaterializedConfigResourcesOptions } from './resource-resolution';
|
|
4
|
-
import type { DevflareConfig } from './schema';
|
|
1
|
+
import { type PrepareMaterializedConfigResourcesForDeployOptions } from './deploy-resources.js';
|
|
2
|
+
import { type PreviewResolutionOptions } from './preview.js';
|
|
3
|
+
import { type ResolveMaterializedConfigResourcesOptions } from './resource-resolution.js';
|
|
4
|
+
import type { DevflareConfig } from './schema.js';
|
|
5
5
|
declare const __phaseBrand: unique symbol;
|
|
6
6
|
/**
|
|
7
7
|
* `DevflareConfig` after the build-phase pipeline. KV/D1/Hyperdrive bindings
|
package/dist/config/resolve.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DevflareConfig } from './schema';
|
|
1
|
+
import type { DevflareConfig } from './schema.js';
|
|
2
2
|
export declare function mergeConfigForEnvironment(config: DevflareConfig, environment?: string): DevflareConfig;
|
|
3
3
|
/**
|
|
4
4
|
* @internal Prefer the unified `resolveResources(config, { phase: 'build' })`
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getPrimaryAccount, listD1Databases, listHyperdrives, listKVNamespaces } from '../cloudflare/account';
|
|
2
|
-
import { getEffectiveAccountId } from '../cloudflare/preferences';
|
|
3
|
-
import { type LoadConfigOptions } from './loader';
|
|
4
|
-
import type { PreviewResolutionOptions } from './preview';
|
|
5
|
-
import { type DeployConfig, type LocalConfig } from './resolve-phased';
|
|
6
|
-
import { type DevflareConfig } from './schema';
|
|
1
|
+
import { getPrimaryAccount, listD1Databases, listHyperdrives, listKVNamespaces } from '../cloudflare/account.js';
|
|
2
|
+
import { getEffectiveAccountId } from '../cloudflare/preferences.js';
|
|
3
|
+
import { type LoadConfigOptions } from './loader.js';
|
|
4
|
+
import type { PreviewResolutionOptions } from './preview.js';
|
|
5
|
+
import { type DeployConfig, type LocalConfig } from './resolve-phased.js';
|
|
6
|
+
import { type DevflareConfig } from './schema.js';
|
|
7
7
|
interface CloudflareConfigResolutionApi {
|
|
8
8
|
getPrimaryAccount: typeof getPrimaryAccount;
|
|
9
9
|
getEffectiveAccountId: typeof getEffectiveAccountId;
|