@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.
Files changed (73) hide show
  1. package/AGENTS.md +6 -6
  2. package/CHANGELOG.md +229 -0
  3. package/README.md +23 -24
  4. package/bin/connecta.mjs +1 -5
  5. package/dist/activity.d.ts +5 -4
  6. package/dist/activity.js +1 -10
  7. package/dist/artifacts/connector.js +1 -1
  8. package/dist/artifacts/json.js +10 -0
  9. package/dist/artifacts/operations.js +1 -1
  10. package/dist/artifacts/validate.js +1 -2
  11. package/dist/auth/downstream-oauth.js +147 -28
  12. package/dist/auth/static-oauth.js +504 -0
  13. package/dist/catalog-service.js +1 -1
  14. package/dist/connectors/api-connector.d.ts +168 -0
  15. package/dist/connectors/api-connector.js +127 -0
  16. package/dist/connectors/api.d.ts +8 -71
  17. package/dist/connectors/api.js +10 -99
  18. package/dist/connectors/guarded-fetch.js +37 -3
  19. package/dist/connectors/remote-mcp.js +7 -32
  20. package/dist/execute.js +92 -368
  21. package/dist/executors/quickjs.js +1 -1
  22. package/dist/exempt-writes.js +162 -0
  23. package/dist/index.d.ts +13 -32
  24. package/dist/index.js +14 -47
  25. package/dist/invocation.js +6 -19
  26. package/dist/meta-tools.js +1 -2
  27. package/dist/oauth-partition.js +17 -0
  28. package/dist/operator-ui/generated.js +1 -1
  29. package/dist/operator-ui/model.d.ts +3 -3
  30. package/dist/operator-ui/view.js +6 -4
  31. package/dist/providers/basecamp.d.ts +65 -0
  32. package/dist/providers/basecamp.js +445 -0
  33. package/dist/providers/breeze.d.ts +34 -0
  34. package/dist/providers/breeze.js +1402 -0
  35. package/dist/providers/ccb.d.ts +103 -0
  36. package/dist/providers/ccb.js +1570 -0
  37. package/dist/providers/cloudflare.js +1 -1
  38. package/dist/providers/linear.js +1 -1
  39. package/dist/providers/mixpanel.js +1 -1
  40. package/dist/providers/notion.js +1 -1
  41. package/dist/providers/overflow.d.ts +60 -0
  42. package/dist/providers/overflow.js +1572 -0
  43. package/dist/providers/planning-center.d.ts +59 -0
  44. package/dist/providers/planning-center.js +2039 -0
  45. package/dist/providers/revenuecat.js +1 -1
  46. package/dist/providers/stripe.js +1 -1
  47. package/dist/providers/tithely.d.ts +49 -0
  48. package/dist/providers/tithely.js +1034 -0
  49. package/dist/providers/vercel.js +1 -1
  50. package/dist/routes/mcp.js +5 -21
  51. package/dist/routes/oauth.js +29 -3
  52. package/dist/routes/shared.d.ts +1 -6
  53. package/dist/server.js +0 -4
  54. package/dist/skills.js +8 -23
  55. package/dist/tool-safety.d.ts +1 -1
  56. package/dist/tool-safety.js +1 -1
  57. package/dist/types.d.ts +2 -2
  58. package/dist/version.d.ts +1 -1
  59. package/dist/version.js +1 -1
  60. package/documentation/architecture.md +15 -17
  61. package/documentation/auth.md +120 -6
  62. package/documentation/code-mode.md +91 -194
  63. package/documentation/meta-tools.md +38 -41
  64. package/ethos.md +8 -9
  65. package/examples/worker/README.md +10 -14
  66. package/examples/worker/src/d1-activity-row.ts +4 -1
  67. package/examples/worker/src/index.ts +1 -9
  68. package/package.json +26 -2
  69. package/templates/node/AGENTS.md +4 -3
  70. package/templates/node/README.md +3 -4
  71. package/templates/node/package.json +1 -1
  72. package/dist/resumable.js +0 -1323
  73. 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;