@pithy-sh/cloudflare 0.1.3 → 0.1.5
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/ai/aiManager.d.ts +2 -0
- package/dist/ai/aiManager.js +2 -0
- package/dist/ai/vectorizeManager.d.ts +2 -0
- package/dist/ai/vectorizeManager.js +2 -0
- package/dist/ai/vectorizeProvisioner.d.ts +2 -0
- package/dist/ai/vectorizeProvisioner.js +2 -0
- package/dist/client/accounts.d.ts +2 -0
- package/dist/client/accounts.js +2 -0
- package/dist/client/clients.d.ts +2 -0
- package/dist/client/clients.js +2 -0
- package/dist/client/errors.d.ts +2 -0
- package/dist/client/errors.js +2 -0
- package/dist/client/manager.d.ts +2 -0
- package/dist/client/manager.js +2 -0
- package/dist/d1/d1Manager.d.ts +2 -0
- package/dist/d1/d1Manager.js +2 -0
- package/dist/d1/d1PreparedStatement.d.ts +2 -0
- package/dist/d1/d1PreparedStatement.js +2 -0
- package/dist/d1/d1Provisioner.d.ts +2 -0
- package/dist/d1/d1Provisioner.js +2 -0
- package/dist/email/emailRoutingManager.d.ts +2 -0
- package/dist/email/emailRoutingManager.js +2 -0
- package/dist/email/emailSendManager.d.ts +2 -0
- package/dist/email/emailSendManager.js +2 -0
- package/dist/env/devVars.d.ts +2 -0
- package/dist/env/devVars.js +2 -0
- package/dist/hostnames/customHostnamesManager.d.ts +2 -0
- package/dist/hostnames/customHostnamesManager.js +2 -0
- package/dist/kv/kvManager.d.ts +2 -0
- package/dist/kv/kvManager.js +2 -0
- package/dist/kv/kvProvisioner.d.ts +2 -0
- package/dist/kv/kvProvisioner.js +2 -0
- package/dist/media/assetSeeder.d.ts +2 -0
- package/dist/media/assetSeeder.js +2 -0
- package/dist/media/imageManager.d.ts +2 -0
- package/dist/media/imageManager.js +2 -0
- package/dist/media/ownership.d.ts +2 -0
- package/dist/media/ownership.js +2 -0
- package/dist/media/streamManager.d.ts +2 -0
- package/dist/media/streamManager.js +2 -0
- package/dist/queue/queueManager.d.ts +2 -0
- package/dist/queue/queueManager.js +2 -0
- package/dist/r2/r2Credentials.d.ts +2 -0
- package/dist/r2/r2Credentials.js +2 -0
- package/dist/r2/r2Manager.d.ts +2 -0
- package/dist/r2/r2Manager.js +2 -0
- package/dist/r2/r2Provisioner.d.ts +2 -0
- package/dist/r2/r2Provisioner.js +2 -0
- package/dist/secrets/secretsStoreManager.d.ts +2 -0
- package/dist/secrets/secretsStoreManager.js +2 -0
- package/dist/secrets/secretsStores.d.ts +2 -0
- package/dist/secrets/secretsStores.js +2 -0
- package/dist/test-utils/emailRoutingRules.d.ts +2 -0
- package/dist/test-utils/emailRoutingRules.js +2 -0
- package/dist/test-utils/fixtureReportSetup.d.ts +2 -0
- package/dist/test-utils/fixtureReportSetup.js +2 -0
- package/dist/test-utils/fixtures.d.ts +2 -0
- package/dist/test-utils/fixtures.js +2 -0
- package/dist/test-utils/harness.d.ts +2 -0
- package/dist/test-utils/harness.js +2 -0
- package/dist/test-utils/inboundRecorder.d.ts +2 -0
- package/dist/test-utils/inboundRecorder.js +2 -0
- package/dist/test-utils/integrationSetup.d.ts +2 -0
- package/dist/test-utils/integrationSetup.js +2 -0
- package/dist/test-utils/reap.d.ts +2 -0
- package/dist/test-utils/reap.js +2 -0
- package/dist/tokens/accountTokensManager.d.ts +2 -0
- package/dist/tokens/accountTokensManager.js +2 -0
- package/dist/tokens/permissions.d.ts +2 -0
- package/dist/tokens/permissions.js +2 -0
- package/dist/tokens/profiles.d.ts +2 -0
- package/dist/tokens/profiles.js +2 -0
- package/dist/turnstile/turnstileManager.d.ts +2 -0
- package/dist/turnstile/turnstileManager.js +2 -0
- package/dist/user/userManager.d.ts +2 -0
- package/dist/user/userManager.js +2 -0
- package/dist/workers/buildsManager.d.ts +2 -0
- package/dist/workers/buildsManager.js +2 -0
- package/dist/workers/buildsTypes.d.ts +2 -0
- package/dist/workers/buildsTypes.js +2 -0
- package/dist/workers/workersBuildEvent.d.ts +2 -0
- package/dist/workers/workersBuildEvent.js +2 -0
- package/dist/workers/workersManager.d.ts +2 -0
- package/dist/workers/workersManager.js +2 -0
- package/dist/workers/workersProvisioner.d.ts +2 -0
- package/dist/workers/workersProvisioner.js +2 -0
- package/dist/workflows/stepFailure.d.ts +2 -0
- package/dist/workflows/stepFailure.js +2 -0
- package/dist/workflows/workflowsClient.d.ts +2 -0
- package/dist/workflows/workflowsClient.js +2 -0
- package/dist/zones/zonesManager.d.ts +2 -0
- package/dist/zones/zonesManager.js +2 -0
- package/package.json +3 -3
package/dist/ai/aiManager.d.ts
CHANGED
package/dist/ai/aiManager.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import type { IndexDeleteByIDsResponse, IndexInfoResponse, IndexInsertResponse, IndexQueryResponse, IndexUpsertResponse } from "cloudflare/resources/vectorize/indexes/indexes";
|
|
2
4
|
import { CloudflareManager, type CloudflareManagerConfig } from "../client/manager";
|
|
3
5
|
/** Config for the Vectorize manager: the shared client config plus the index it targets. */
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
import { CloudflareManager } from "../client/manager";
|
|
3
5
|
/** The distance metric an index scores nearest neighbors with. Fixed at creation — it cannot be changed later. */
|
package/dist/client/accounts.js
CHANGED
package/dist/client/clients.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import { CloudflareAIManager } from "../ai/aiManager";
|
|
2
4
|
import { CloudflareVectorizeManager } from "../ai/vectorizeManager";
|
|
3
5
|
import { CloudflareVectorizeProvisioner } from "../ai/vectorizeProvisioner";
|
package/dist/client/clients.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import { CloudflareAIManager } from "../ai/aiManager.js";
|
|
2
4
|
import { CloudflareVectorizeManager } from "../ai/vectorizeManager.js";
|
|
3
5
|
import { CloudflareVectorizeProvisioner } from "../ai/vectorizeProvisioner.js";
|
package/dist/client/errors.d.ts
CHANGED
package/dist/client/errors.js
CHANGED
package/dist/client/manager.d.ts
CHANGED
package/dist/client/manager.js
CHANGED
package/dist/d1/d1Manager.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import type { D1Database, D1PreparedStatement, D1Result } from "@cloudflare/workers-types";
|
|
2
4
|
import type { D1 } from "cloudflare/resources/d1/d1";
|
|
3
5
|
import type { QueryResult } from "cloudflare/resources/d1/database";
|
package/dist/d1/d1Manager.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import { CloudflareNotConfiguredError, cloudflareRequest, reasonOf } from "../client/errors.js";
|
|
2
4
|
import { CloudflareManager } from "../client/manager.js";
|
|
3
5
|
import { D1PreparedStatementREST } from "./d1PreparedStatement.js";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import type { D1PreparedStatement, D1Result } from "@cloudflare/workers-types";
|
|
2
4
|
import type { Cloudflare } from "cloudflare";
|
|
3
5
|
export declare class D1PreparedStatementREST<T = Record<string, unknown>> implements D1PreparedStatement {
|
package/dist/d1/d1Provisioner.js
CHANGED
package/dist/env/devVars.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
/**
|
|
2
4
|
* The Cloudflare credential keys pithy reads out-of-Worker (CLI, provisioning, live tests). These are
|
|
3
5
|
* wrangler's own env-var names plus the Secrets Store id. From this single bootstrap token
|
package/dist/env/devVars.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import type { CustomHostnameCreateResponse, CustomHostnameDeleteResponse, CustomHostnameGetResponse, CustomHostnameListResponse } from "cloudflare/resources/custom-hostnames/custom-hostnames";
|
|
2
4
|
import { CloudflareManager, type CloudflareManagerConfig } from "../client/manager";
|
|
3
5
|
/**
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import { CloudflareNotConfiguredError, cloudflareRequest } from "../client/errors.js";
|
|
2
4
|
import { CloudflareManager } from "../client/manager.js";
|
|
3
5
|
//#region src/hostnames/customHostnamesManager.ts
|
package/dist/kv/kvManager.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import type { Key } from "cloudflare/resources/kv/namespaces/keys";
|
|
2
4
|
import { CloudflareManager, type CloudflareManagerConfig } from "../client/manager";
|
|
3
5
|
/** Config for the KV manager: the shared client config plus the namespace it targets. */
|
package/dist/kv/kvManager.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import { CloudflareInvalidResponseError, CloudflareNotConfiguredError, cloudflareRequest, isNotFoundError, reasonOf } from "../client/errors.js";
|
|
2
4
|
import { CloudflareManager } from "../client/manager.js";
|
|
3
5
|
//#region src/kv/kvManager.ts
|
package/dist/kv/kvProvisioner.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import type { Image, V1CreateParams, V1EditParams } from "cloudflare/resources/images/v1/v1";
|
|
2
4
|
import type { DirectUploadCreateParams, DirectUploadCreateResponse } from "cloudflare/resources/images/v2/direct-uploads";
|
|
3
5
|
import type { V2ListParams } from "cloudflare/resources/images/v2/v2";
|
package/dist/media/ownership.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import type { DirectUploadCreateParams, DirectUploadCreateResponse } from "cloudflare/resources/stream/direct-upload";
|
|
2
4
|
import type { StreamEditParams, Video } from "cloudflare/resources/stream/stream";
|
|
3
5
|
import { z } from "zod";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import type { MessageBulkPushResponse } from "cloudflare/resources/queues/messages";
|
|
2
4
|
import { CloudflareManager, type CloudflareManagerConfig } from "../client/manager";
|
|
3
5
|
/** Config for the Queue manager: the shared client config plus the queue it targets by name. */
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import { CloudflareNotConfiguredError, cloudflareRequest, reasonOf } from "../client/errors.js";
|
|
2
4
|
import { CloudflareManager } from "../client/manager.js";
|
|
3
5
|
import { NotFoundError } from "@pithy-sh/core/src/error/pithyError";
|
package/dist/r2/r2Credentials.js
CHANGED
package/dist/r2/r2Manager.d.ts
CHANGED
package/dist/r2/r2Manager.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import { CloudflareNotConfiguredError, cloudflareRequest, decodeResponse } from "../client/errors.js";
|
|
2
4
|
import { CloudflareManager } from "../client/manager.js";
|
|
3
5
|
import { R2Credentials } from "./r2Credentials.js";
|
package/dist/r2/r2Provisioner.js
CHANGED
package/dist/test-utils/reap.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import { CloudflareClients } from "../client/clients.js";
|
|
2
4
|
import { listEmailRoutingRules, namedRules } from "./emailRoutingRules.js";
|
|
3
5
|
import { emptyTestBucket, staleTestResourceNames, testResourceAge } from "./harness.js";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import { CloudflareNotConfiguredError, CloudflareRequestError, cloudflareRequest, decodeResponse, isAuthorizationError, messageOf } from "../client/errors.js";
|
|
2
4
|
import { CloudflareManager } from "../client/manager.js";
|
|
3
5
|
import { CfTokenVerification } from "../user/userManager.js";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
/**
|
|
2
4
|
* The permission catalog: short, stable permission **keys** (`d1:read`) mapped to the Cloudflare
|
|
3
5
|
* account **permission-group display names** they grant (`"D1 Read"`). Token profiles are declared in
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import type { Capability, TokenProfileSeam } from "@pithy-sh/core/src/capability/capability";
|
|
2
4
|
import { type TokenPermission } from "./accountTokensManager";
|
|
3
5
|
import { type PermissionKey } from "./permissions";
|
package/dist/tokens/profiles.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import { CloudflareNotConfiguredError } from "../client/errors.js";
|
|
2
4
|
import { accountResource } from "./accountTokensManager.js";
|
|
3
5
|
import { isPermissionKey, resolvePermissionKeys } from "./permissions.js";
|
package/dist/user/userManager.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import { CloudflareManager } from "../client/manager";
|
|
2
4
|
import { CfBuild, CfBuildLog, CfBuildToken, CfBuildTrigger, CfRepoConnection, type CfTriggerEnvVar } from "./buildsTypes";
|
|
3
5
|
/** Arguments for `createRepoConnection`. */
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import { CloudflareInvalidResponseError, CloudflareRequestError, cloudflareRequest, decodeResponse, messageOf } from "../client/errors.js";
|
|
2
4
|
import { CloudflareManager } from "../client/manager.js";
|
|
3
5
|
import { CfBuild, CfBuildLog, CfBuildToken, CfBuildTrigger, CfRepoConnection } from "./buildsTypes.js";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import type { RouteCreateResponse, RouteListResponse } from "cloudflare/resources/workers/routes";
|
|
2
4
|
import type { Deployment } from "cloudflare/resources/workers/scripts/deployments";
|
|
3
5
|
import type { Script } from "cloudflare/resources/workers/scripts/scripts";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import { CloudflareInvalidResponseError, cloudflareRequest, messageOf } from "../client/errors.js";
|
|
2
4
|
import { CloudflareManager } from "../client/manager.js";
|
|
3
5
|
import { NotFoundError, ValidationError } from "@pithy-sh/core/src/error/pithyError";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import type { CloudflareManagerConfig } from "../client/manager";
|
|
2
4
|
import type { CfRepoConnection, CfTriggerEnvVar } from "./buildsTypes";
|
|
3
5
|
/** Describes the git repo a build trigger should clone, in provider-neutral terms. */
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
import { CloudflareManager, type CloudflareManagerConfig } from "../client/manager";
|
|
3
5
|
/** Pause `ms` milliseconds between status polls. Injectable so tests run with no real delay. */
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import { CloudflareInvalidResponseError, cloudflareRequest, isNotFoundError } from "../client/errors.js";
|
|
2
4
|
import { CloudflareManager } from "../client/manager.js";
|
|
3
5
|
import { stepFailure, terminalWorkflowError } from "./stepFailure.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pithy-sh/cloudflare",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
|
-
"build": "tsdown && tsc -p tsconfig.build.json",
|
|
27
|
+
"build": "tsdown && tsc -p tsconfig.build.json && bun ../../tooling/build/src/stampDeclarations.ts",
|
|
28
28
|
"typecheck": "tsc -p tsconfig.json",
|
|
29
29
|
"test": "vitest run",
|
|
30
30
|
"test:node": "vitest run --project=node",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@aws-sdk/client-s3": "^3.1111.0",
|
|
37
37
|
"@aws-sdk/s3-request-presigner": "^3.1111.0",
|
|
38
38
|
"@cloudflare/workers-types": "^5.20260729.1",
|
|
39
|
-
"@pithy-sh/core": "^0.
|
|
39
|
+
"@pithy-sh/core": "^0.2.0",
|
|
40
40
|
"cloudflare": "^7.0.0",
|
|
41
41
|
"js-base64": "^3.9.2"
|
|
42
42
|
},
|