@zackbart/connecta 0.27.0 → 0.28.1
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/AGENTS.md +6 -6
- package/CHANGELOG.md +229 -0
- package/README.md +23 -24
- package/bin/connecta.mjs +1 -5
- package/dist/activity.d.ts +5 -4
- package/dist/activity.js +1 -10
- package/dist/artifacts/connector.js +1 -1
- package/dist/artifacts/json.js +10 -0
- package/dist/artifacts/operations.js +1 -1
- package/dist/artifacts/validate.js +1 -2
- package/dist/auth/downstream-oauth.js +147 -28
- package/dist/auth/static-oauth.js +504 -0
- package/dist/catalog-service.js +1 -1
- package/dist/connectors/api-connector.d.ts +168 -0
- package/dist/connectors/api-connector.js +127 -0
- package/dist/connectors/api.d.ts +8 -71
- package/dist/connectors/api.js +10 -99
- package/dist/connectors/guarded-fetch.js +37 -3
- package/dist/connectors/remote-mcp.js +7 -32
- package/dist/execute.js +92 -368
- package/dist/executors/quickjs.js +1 -1
- package/dist/exempt-writes.js +162 -0
- package/dist/index.d.ts +13 -32
- package/dist/index.js +14 -47
- package/dist/invocation.js +6 -19
- package/dist/meta-tools.js +1 -2
- package/dist/oauth-partition.js +17 -0
- package/dist/operator-ui/generated.js +1 -1
- package/dist/operator-ui/model.d.ts +3 -3
- package/dist/operator-ui/view.js +6 -4
- package/dist/providers/basecamp.d.ts +65 -0
- package/dist/providers/basecamp.js +445 -0
- package/dist/providers/breeze.d.ts +34 -0
- package/dist/providers/breeze.js +1402 -0
- package/dist/providers/ccb.d.ts +103 -0
- package/dist/providers/ccb.js +1570 -0
- package/dist/providers/cloudflare.js +1 -1
- package/dist/providers/linear.js +1 -1
- package/dist/providers/mixpanel.js +1 -1
- package/dist/providers/notion.js +1 -1
- package/dist/providers/overflow.d.ts +60 -0
- package/dist/providers/overflow.js +1572 -0
- package/dist/providers/planning-center.d.ts +59 -0
- package/dist/providers/planning-center.js +2039 -0
- package/dist/providers/revenuecat.js +1 -1
- package/dist/providers/stripe.js +1 -1
- package/dist/providers/tithely.d.ts +49 -0
- package/dist/providers/tithely.js +1034 -0
- package/dist/providers/vercel.js +1 -1
- package/dist/routes/mcp.js +5 -21
- package/dist/routes/oauth.js +29 -3
- package/dist/routes/shared.d.ts +1 -6
- package/dist/server.js +0 -4
- package/dist/skills.js +8 -23
- package/dist/tool-safety.d.ts +1 -1
- package/dist/tool-safety.js +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/documentation/architecture.md +15 -17
- package/documentation/auth.md +120 -6
- package/documentation/code-mode.md +91 -194
- package/documentation/meta-tools.md +38 -41
- package/ethos.md +8 -9
- package/examples/worker/README.md +10 -14
- package/examples/worker/src/d1-activity-row.ts +4 -1
- package/examples/worker/src/index.ts +1 -9
- package/package.json +26 -2
- package/templates/node/AGENTS.md +4 -3
- package/templates/node/README.md +3 -4
- package/templates/node/package.json +1 -1
- package/dist/resumable.js +0 -1323
- package/dist/run-journal.js +0 -347
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { Connector, ConnectorCallAdmissionPolicy } from "../types.js";
|
|
2
|
+
/** Planning Center's REST origin. Override only for a proxy or test double. */
|
|
3
|
+
export declare const PLANNING_CENTER_API_BASE_URL = "https://api.planningcenteronline.com";
|
|
4
|
+
/** The products behind `/<app>/v2`, in the order their guides list them. */
|
|
5
|
+
export declare const PLANNING_CENTER_APPS: readonly ["people", "services", "groups", "check-ins", "calendar", "registrations", "giving", "publishing", "webhooks", "api"];
|
|
6
|
+
export type PlanningCenterApp = (typeof PLANNING_CENTER_APPS)[number];
|
|
7
|
+
/**
|
|
8
|
+
* One reviewed `X-PCO-API-Version` per product, sent on every request.
|
|
9
|
+
*
|
|
10
|
+
* The header is optional, and omitting it is the trap: Planning Center then
|
|
11
|
+
* applies a per-application default chosen in a web dashboard, so behavior
|
|
12
|
+
* would follow whoever last clicked there rather than this file. Each date is
|
|
13
|
+
* the newest non-beta version in the product's documentation graph on
|
|
14
|
+
* 2026-10-05, and every projection below is written against it. A breaking
|
|
15
|
+
* change arrives as a new dated version, never inside this one, so moving a
|
|
16
|
+
* pin is a reviewed change to this table, its drift manifest, and whatever
|
|
17
|
+
* projection the version's change list touches. Notes worth keeping:
|
|
18
|
+
*
|
|
19
|
+
* - groups `2023-07-10` removed every person attribute from `Membership`, so a
|
|
20
|
+
* membership is nameless without `include=person`.
|
|
21
|
+
* - calendar `2026-06-22` may return `BookedEvent*` stubs in place of events on
|
|
22
|
+
* booking and conflict traversals for users without access to the event.
|
|
23
|
+
* - webhooks `2022-10-20` renamed `Subscription` to `WebhookSubscription`.
|
|
24
|
+
* - services `2018-11-01` and giving `2019-10-18` are simply the newest there is.
|
|
25
|
+
*
|
|
26
|
+
* The hatches send the same pin for the app their path names and accept a
|
|
27
|
+
* per-call `version` override for an endpoint only a newer version serves.
|
|
28
|
+
*/
|
|
29
|
+
export declare const PLANNING_CENTER_API_VERSIONS: Readonly<Record<PlanningCenterApp, string>>;
|
|
30
|
+
export interface PlanningCenterOptions {
|
|
31
|
+
/** Which organization this is and what it should be used for. Required. */
|
|
32
|
+
purpose: string;
|
|
33
|
+
/** Human-readable display name. Defaults to "Planning Center". */
|
|
34
|
+
title?: string;
|
|
35
|
+
/** Organization-specific conventions appended to the maintained guide. */
|
|
36
|
+
instructions?: string;
|
|
37
|
+
/** Downstream auth ownership. Defaults to one shared deployment grant. */
|
|
38
|
+
authScope?: "shared" | "personal";
|
|
39
|
+
/** Connector-specific inline result limit; omit to inherit the deployment. */
|
|
40
|
+
maxResultBytes?: number;
|
|
41
|
+
/**
|
|
42
|
+
* The `User-Agent` Planning Center sees. It asks integrations to identify
|
|
43
|
+
* themselves and refuses a request without one; name your deployment and a
|
|
44
|
+
* contact. Defaults to one naming connecta.
|
|
45
|
+
*/
|
|
46
|
+
userAgent?: string;
|
|
47
|
+
/** Default `per_page` for list tools. Defaults to 25; Planning Center's maximum is 100. */
|
|
48
|
+
defaultPageSize?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Replaces the default per-runtime budget (100 calls per 20 seconds, five at
|
|
51
|
+
* a time). Split it when two connections share one token's user, because
|
|
52
|
+
* Planning Center meters that user once.
|
|
53
|
+
*/
|
|
54
|
+
callAdmission?: ConnectorCallAdmissionPolicy;
|
|
55
|
+
/** API origin override for a proxy or test double. */
|
|
56
|
+
baseUrl?: string;
|
|
57
|
+
}
|
|
58
|
+
/** A maintained Planning Center Online connection over the REST API. */
|
|
59
|
+
export declare function planningCenter(id: string, options: PlanningCenterOptions): Connector;
|