@volter/twin-hubspot 0.1.37 → 1.0.0
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/README.md +9 -193
- package/dist/generated/pack-facts.json +42 -0
- package/dist/journeys/coverage.json +60 -0
- package/dist/journeys/customer-life.json +7 -0
- package/dist/journeys/customer-life.outline.md +6 -0
- package/dist/journeys/decisions.json +623 -0
- package/dist/journeys/demand.json +171 -0
- package/dist/journeys/score.json +82 -0
- package/dist/journeys/unreachable.json +12 -0
- package/dist/journeys/vendor-examples.json +7 -0
- package/dist/spec/SOURCE.md +40 -0
- package/dist/spec/openapi/associations.json.gz +0 -0
- package/dist/spec/openapi/companies.json.gz +0 -0
- package/dist/spec/openapi/contacts.json.gz +0 -0
- package/dist/spec/openapi/deals.json.gz +0 -0
- package/dist/spec/openapi/meetings.json.gz +0 -0
- package/dist/spec/openapi/oauth.json.gz +0 -0
- package/dist/spec/openapi/owners.json.gz +0 -0
- package/dist/spec/openapi/pipelines.json.gz +0 -0
- package/dist/spec/openapi/properties.json.gz +0 -0
- package/dist/spec/openapi/tickets.json.gz +0 -0
- package/dist/spec/patches.json +235 -0
- package/dist/spec/sources.json +32 -0
- package/dist/src/cli.js +10 -22
- package/dist/src/fetch.d.ts +2 -0
- package/dist/src/fetch.js +13 -0
- package/dist/src/generated/surface.gen.json +1 -1
- package/dist/src/index.d.ts +5 -11
- package/dist/src/index.js +10 -94
- package/dist/src/manifest.js +32 -66
- package/dist/src/semantics/index.d.ts +2 -0
- package/dist/src/semantics/index.js +1 -0
- package/dist/src/semantics/states.d.ts +1 -0
- package/dist/src/semantics/states.js +2 -0
- package/dist/src/server.d.ts +7 -0
- package/dist/src/server.js +7 -0
- package/generated/pack-facts.json +42 -0
- package/journeys/coverage.json +60 -0
- package/journeys/customer-life.json +7 -0
- package/journeys/customer-life.outline.md +6 -0
- package/journeys/decisions.json +623 -0
- package/journeys/demand.json +171 -0
- package/journeys/score.json +82 -0
- package/journeys/unreachable.json +12 -0
- package/journeys/vendor-examples.json +7 -0
- package/package.json +10 -23
- package/spec/SOURCE.md +40 -0
- package/spec/openapi/associations.json.gz +0 -0
- package/spec/openapi/companies.json.gz +0 -0
- package/spec/openapi/contacts.json.gz +0 -0
- package/spec/openapi/deals.json.gz +0 -0
- package/spec/openapi/meetings.json.gz +0 -0
- package/spec/openapi/oauth.json.gz +0 -0
- package/spec/openapi/owners.json.gz +0 -0
- package/spec/openapi/pipelines.json.gz +0 -0
- package/spec/openapi/properties.json.gz +0 -0
- package/spec/openapi/tickets.json.gz +0 -0
- package/spec/patches.json +235 -0
- package/spec/sources.json +32 -0
- package/src/cli.ts +10 -19
- package/src/fetch.ts +14 -0
- package/src/generated/surface.gen.json +1 -1
- package/src/index.ts +12 -152
- package/src/manifest.ts +33 -92
- package/src/semantics/index.ts +6 -0
- package/src/semantics/states.ts +2 -0
- package/src/server.ts +8 -0
- package/client/hubspot-mirror.css +0 -43
- package/client/hubspot-mirror.tsx +0 -132
- package/dist/client/hubspot-mirror.bundle.js +0 -516
- package/dist/client/hubspot-mirror.css +0 -43
- package/dist/client/hubspot-mirror.d.ts +0 -15
- package/dist/client/hubspot-mirror.js +0 -59
- package/dist/client/hubspot-mirror.tsx +0 -132
- package/dist/src/accounts.d.ts +0 -30
- package/dist/src/accounts.js +0 -122
- package/dist/src/hubspot-areas.d.ts +0 -10
- package/dist/src/hubspot-areas.js +0 -114
- package/dist/src/hubspot-budget.d.ts +0 -58
- package/dist/src/hubspot-budget.js +0 -176
- package/dist/src/hubspot-capabilities.d.ts +0 -3
- package/dist/src/hubspot-capabilities.js +0 -1588
- package/dist/src/hubspot-conformance.d.ts +0 -16
- package/dist/src/hubspot-conformance.js +0 -523
- package/dist/src/hubspot-connector.d.ts +0 -125
- package/dist/src/hubspot-connector.js +0 -390
- package/dist/src/hubspot-deferred-capabilities.d.ts +0 -6
- package/dist/src/hubspot-deferred-capabilities.js +0 -64
- package/dist/src/hubspot-mirror-ui.d.ts +0 -62
- package/dist/src/hubspot-mirror-ui.js +0 -152
- package/dist/src/hubspot-oauth.d.ts +0 -8
- package/dist/src/hubspot-oauth.js +0 -291
- package/dist/src/hubspot-server.d.ts +0 -24
- package/dist/src/hubspot-server.js +0 -116
- package/dist/src/hubspot-twin.d.ts +0 -65
- package/dist/src/hubspot-twin.js +0 -1558
- package/dist/src/portal.d.ts +0 -20
- package/dist/src/portal.js +0 -30
- package/dist/src/screens/account.d.ts +0 -1
- package/dist/src/screens/account.js +0 -139
- package/dist/src/screens/crm.d.ts +0 -2
- package/dist/src/screens/crm.js +0 -153
- package/dist/src/screens/developer.d.ts +0 -4
- package/dist/src/screens/developer.js +0 -191
- package/dist/src/screens/forms.d.ts +0 -5
- package/dist/src/screens/forms.js +0 -126
- package/dist/src/screens/page.d.ts +0 -21
- package/dist/src/screens/page.js +0 -49
- package/dist/src/screens/session.d.ts +0 -1
- package/dist/src/screens/session.js +0 -32
- package/dist/src/semantics/crm.d.ts +0 -8
- package/dist/src/semantics/crm.js +0 -101
- package/dist/src/webhooks.d.ts +0 -12
- package/dist/src/webhooks.js +0 -79
- package/src/accounts.ts +0 -127
- package/src/hubspot-areas.ts +0 -155
- package/src/hubspot-budget.ts +0 -202
- package/src/hubspot-capabilities.ts +0 -1523
- package/src/hubspot-conformance.ts +0 -537
- package/src/hubspot-connector.ts +0 -419
- package/src/hubspot-deferred-capabilities.ts +0 -99
- package/src/hubspot-journey.uitest.ts +0 -104
- package/src/hubspot-mirror-ui.ts +0 -166
- package/src/hubspot-oauth.tsx +0 -296
- package/src/hubspot-server.ts +0 -115
- package/src/hubspot-twin.ts +0 -1534
- package/src/portal.ts +0 -40
- package/src/screens/account.tsx +0 -129
- package/src/screens/crm.tsx +0 -154
- package/src/screens/developer.tsx +0 -181
- package/src/screens/forms.tsx +0 -117
- package/src/screens/page.tsx +0 -55
- package/src/screens/session.tsx +0 -36
- package/src/semantics/crm.ts +0 -116
- package/src/webhooks.ts +0 -82
package/README.md
CHANGED
|
@@ -1,197 +1,13 @@
|
|
|
1
1
|
# @volter/twin-hubspot
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
with its own public `basePath` option, or routed by the world injector's `api.hubapi.com`
|
|
7
|
-
interception — talks to it and gets vendor-correct responses.
|
|
3
|
+
Protocol 3 twin of HubSpot's CRM, Meetings and OAuth v1 APIs. Every spec operation
|
|
4
|
+
answers the documented not-found class (`404`) in HubSpot's JSON error envelope.
|
|
5
|
+
No vendor resources, credential doors, screens, webhooks or refresh operations are served.
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
refresh exchanges at POST /oauth/v1/token, token metadata at GET /oauth/v1/access-tokens/{token}). There is **NO
|
|
14
|
-
signature verification**.
|
|
7
|
+
Cal.com and Dub enable these integrations only with operator-supplied credentials
|
|
8
|
+
absent from their shipped defaults. The pinned gates and evidence remain under
|
|
9
|
+
`optional` in `journeys/demand.json`. The customer life has no acts. Published
|
|
10
|
+
examples remain unchanged in the vendored spec and count as unserved.
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
bun run src/cli.ts serve # the HubSpot CRM API twin (writable)
|
|
20
|
-
bun run src/cli.ts serve --read-only
|
|
21
|
-
bun run src/cli.ts mirror # the React CRM mirror (records + the deal pipeline board)
|
|
22
|
-
bun run src/cli.ts conformance # offline, failable endpoint probe over the live router
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Collections use HubSpot's envelope — `{ results, paging: { next: { after } } }` — and errors use
|
|
26
|
-
the documented `{ status: "error", message, correlationId, category }` shape (with `errors[]`
|
|
27
|
-
where the vendor carries per-field detail).
|
|
28
|
-
|
|
29
|
-
Two deliberate departures from the live vendor, both required by **serve-path determinism**
|
|
30
|
-
(CLAUDE.md — a served response must be a pure function of `(request, stored state)` and
|
|
31
|
-
byte-identical on replay):
|
|
32
|
-
|
|
33
|
-
- **`correlationId` is DERIVED, not random.** It is a hash of `(method, pathname, status,
|
|
34
|
-
category, message)` rendered in HubSpot's UUID shape. Real HubSpot mints a fresh one per
|
|
35
|
-
request; a twin that did the same could not be replayed.
|
|
36
|
-
- **The rate-limit `-Remaining` COUNTERS are not served.** Every response carries HubSpot's
|
|
37
|
-
documented *policy* headers with the real Professional-tier figures —
|
|
38
|
-
`X-HubSpot-RateLimit-Max: 190`, `X-HubSpot-RateLimit-Interval-Milliseconds: 10000`,
|
|
39
|
-
`X-HubSpot-RateLimit-Daily: 625000` — and deliberately **not**
|
|
40
|
-
`X-HubSpot-RateLimit-Remaining` / `-Daily-Remaining`: a truthful remaining count is a
|
|
41
|
-
wall-clock-metered, account-wide number no local twin observes, and fabricating one would both
|
|
42
|
-
break replayability and tell the caller something untrue. Filed as
|
|
43
|
-
`hubspot.protocol.rate_limit_remaining_headers`.
|
|
44
|
-
|
|
45
|
-
## Coverage
|
|
46
|
-
|
|
47
|
-
The capability manifest (`src/hubspot-capabilities.ts`) is the **real HubSpot surface as the
|
|
48
|
-
denominator** — coverage is honest and partial. Run `bun scripts/manifest-baseline-one.ts hubspot`
|
|
49
|
-
for the live count. As of writing: **done=105 / total=231**, regressions=0.
|
|
50
|
-
|
|
51
|
-
The denominator's source is `@hubspot/api-client` 14.0.1's own generated client — **936 operations
|
|
52
|
-
across eleven top-level API families**, enumerated from every `lib/codegen/**/apis/*Api.js` request
|
|
53
|
-
factory. Those eleven families are censused in `src/hubspot-areas.ts`; the generated request
|
|
54
|
-
factories, response processors and models are also the **oracle** for this twin's paths, status
|
|
55
|
-
codes and response shapes (HubSpot publishes no first-party OpenAPI document this repo can vendor,
|
|
56
|
-
which is why `spec-sources.json` records `kind: "none"` with that as the reason).
|
|
57
|
-
|
|
58
|
-
### Scope: this is the CRM
|
|
59
|
-
|
|
60
|
-
`api.hubapi.com` fronts eleven separate HubSpot products. **This twin models the CRM** — records,
|
|
61
|
-
properties, associations, pipelines, owners and the CRM Search API. Two different things follow
|
|
62
|
-
from that, and they get different treatment (the §9 round-one ruling):
|
|
63
|
-
|
|
64
|
-
- **Surface INSIDE the CRM that is not built yet is a plain `todo`**, however much work it is —
|
|
65
|
-
engagements, commerce, custom-object schemas, lists, imports/exports and CRM extensions all ride
|
|
66
|
-
the same `/crm/` routes this twin already serves, so carving them out would be shrinking the
|
|
67
|
-
denominator rather than describing it (`HUBSPOT_UNMODELED_CRM_CAPABILITIES`).
|
|
68
|
-
- **A separate HubSpot PRODUCT behind the same host is a deferred area**, whose capabilities are
|
|
69
|
-
`todo` and whose area records why it is a separate product
|
|
70
|
-
(`HUBSPOT_DEFERRED_AREA_CAPABILITIES`). `hubspot.deferred.area_routes_refused` drives a real request at one route per
|
|
71
|
-
deferred area — and asserts that route table **bijects with the area census** — proving the twin
|
|
72
|
-
**refuses** each in HubSpot's own error envelope, never a fabricated success.
|
|
73
|
-
|
|
74
|
-
Deferred (9 areas, all non-CRM): CMS · Marketing · Automation · Conversations · Files · Events ·
|
|
75
|
-
Communication preferences · Settings · Webhooks.
|
|
76
|
-
|
|
77
|
-
A CRM object type HubSpot really has but this twin does not model — `notes`, `line_items`, a
|
|
78
|
-
custom object — is refused **honestly** (`404`, "does not model"), never with HubSpot's own
|
|
79
|
-
`Unable to infer object type from` wording, which the vendor uses only for a segment it genuinely
|
|
80
|
-
cannot resolve. All three spellings are covered: the plural name, the `objectTypeId` form
|
|
81
|
-
(`0-46`, `2-3453932`) and the `fullyQualifiedName` form (`p2953265_car`).
|
|
82
|
-
|
|
83
|
-
**Modeled (proven `done`, each with a failable offline verify):**
|
|
84
|
-
|
|
85
|
-
- **CRM objects** — contacts / companies / deals / tickets: create, read (with `?properties=` and
|
|
86
|
-
`?associations=`), list (with the documented 100-per-page cap, `?archived=`, and
|
|
87
|
-
`paging.next.after` cursor paging), update, archive, and merge. Record ids are minted as
|
|
88
|
-
`max + 1` over the **id set already in state**, archived rows included, from a **namespaced base**
|
|
89
|
-
(`HUBSPOT_LOCAL_ID_BASE`, 9e11 — an order of magnitude above the largest HubSpot record id this
|
|
90
|
-
repo has observed). That covers both collision directions: an archived id is never reused, a
|
|
91
|
-
local mint never lands on an id a pull observed, and — the direction §9 round one found live — a
|
|
92
|
-
pull arriving LATER cannot land on a locally minted subject either. `mapCrmObject` additionally
|
|
93
|
-
stamps `hsLocalMint: false`, so an observed row always wins the addressability question.
|
|
94
|
-
- **Batch** — `batch/create` (201), `batch/read` (200, or **207** with `errors[]` when an id is
|
|
95
|
-
missing, and `idProperty` lookups), `batch/update`, `batch/upsert` (`new: true|false`),
|
|
96
|
-
`batch/archive` (204).
|
|
97
|
-
- **CRM Search** — `filterGroups` (AND within a group, OR across groups) over exactly the 13
|
|
98
|
-
documented `FilterOperatorEnum` values (an operator outside that closed set is a 400), numeric
|
|
99
|
-
comparison for `LT/LTE/GT/GTE/BETWEEN`, `IN`/`NOT_IN`, presence operators, tokenized
|
|
100
|
-
`CONTAINS_TOKEN` with a trailing-`*` wildcard, free-text `query`, `sorts`, `properties`
|
|
101
|
-
projection, offset paging, and the documented 200-per-page / 10 000-result / 5-group /
|
|
102
|
-
6-filter / 18-filter caps.
|
|
103
|
-
- **Properties + property groups** — the HubSpot-defined property set per object type, plus
|
|
104
|
-
create / read / update / archive for both, a 409 on a duplicate name, and a custom property that
|
|
105
|
-
round-trips on a record and is searchable.
|
|
106
|
-
- **Pipelines + stages** — HubSpot's out-of-the-box deal pipeline (`default`, seven stages) and
|
|
107
|
-
ticket pipeline (`0`, four stages), create / read / update / **replace (PUT, full body
|
|
108
|
-
required)** / archive, and full stage CRUD. Stage ids come from a persisted monotonic counter,
|
|
109
|
-
so removing a stage never frees its id for the next one.
|
|
110
|
-
- **Owners** — list, read, `?email=` filter, and owners observed by a connector pull.
|
|
111
|
-
- **Associations (v4)** — the `PUT` with an `AssociationSpec[]` body (201 `LabelsBetweenObjectPair`
|
|
112
|
-
carrying the NUMERIC objectTypeIds). `AssociationSpec` is a closed **two-key** shape: there is no
|
|
113
|
-
`label` on the request — HubSpot resolves labels from the association-type *definition*, which
|
|
114
|
-
this twin does not model, so `labels` is empty and a caller-supplied label is never echoed back.
|
|
115
|
-
Also the `default` PUT
|
|
116
|
-
using HubSpot's documented type ids (contact→company 279 / company→contact 280 / …),
|
|
117
|
-
bidirectional readback, archive from both directions, the `associations` block on a create, the
|
|
118
|
-
closed `AssociationSpec` category set, and batch create/read/archive.
|
|
119
|
-
- **Protocol** — the documented error envelope, unmodeled ops failing like the vendor (404),
|
|
120
|
-
read-only rejecting writes (405), the rate-limit policy headers, deterministic replay, and the
|
|
121
|
-
three kernel-reserved field names (`id`/`createdAt`/`updatedAt`) surviving the projection.
|
|
122
|
-
- **Connector** — pull the four object types plus owners, following `paging.next.after`;
|
|
123
|
-
idempotent re-pull; a **refused** pull throws rather than folding an empty account over real
|
|
124
|
-
state (including a failure delivered as HTTP 200 with an error envelope); push confirms only on
|
|
125
|
-
a genuine success, and **never addresses a locally minted record id at a real portal**.
|
|
126
|
-
- **UI mirror** — the contacts list, the **deal pipeline board** (grouping asserted per column,
|
|
127
|
-
not just card counts), the stage pills, the record property sheet, the nav (bijected against
|
|
128
|
-
`MIRROR_SECTIONS`, so deleting a destination reddens it), the empty state, and the **write
|
|
129
|
-
path** — a UI write goes through the vendor's own endpoint on the same handler, and an
|
|
130
|
-
A→B→A revert through it still lands. All **data-coupled** (seed through the twin's write
|
|
131
|
-
path → fetch the SAME vendor endpoint the screen reads → render the mirror's OWN component →
|
|
132
|
-
assert the seeded value survives), plus two Playwright journeys.
|
|
133
|
-
|
|
134
|
-
**Todo (real surface, not yet modeled):** the six unbuilt CRM families above (engagements,
|
|
135
|
-
commerce, custom-object schemas, lists, imports/exports, extensions), `?idProperty=` reads,
|
|
136
|
-
`propertiesWithHistory`,
|
|
137
|
-
GDPR delete, per-object required-property and enumeration validation, unique-value conflicts,
|
|
138
|
-
HubSpot's automatic de-duplication, batch size caps and partial-207 creates, search sort direction
|
|
139
|
-
and association filters, calculated properties, pipeline audit trails
|
|
140
|
-
and stage validation on records, association label definitions and cardinality limits, 401/403
|
|
141
|
-
auth refusals, the 429 body, connector pulls of properties/pipelines/associations and push id
|
|
142
|
-
reconciliation, and the board drag-to-stage / saved-views / search-bar / inline-edit UI screens.
|
|
143
|
-
|
|
144
|
-
Also planned: **Breeze / AI content assistant endpoints** — the documented request/response
|
|
145
|
-
envelope with a deterministic, labeled twin-stub result — plus the deferred product areas above.
|
|
146
|
-
|
|
147
|
-
### The human surface: this vendor gets a mirror
|
|
148
|
-
|
|
149
|
-
Settled with the recipe's rule, not by "does a UI exist": **when someone does HubSpot's core job,
|
|
150
|
-
do they open a browser or write code?** A sales rep works a deal by dragging it across the pipeline
|
|
151
|
-
board and a support agent works a ticket in the ticket view — the CRM screen *is* the product, the
|
|
152
|
-
same shape as Jira's board. So this pack ships a mirror, and it is **archetype A (API
|
|
153
|
-
passthrough)**: non-asset requests fall through to `handleHubspotTwinRequest` and the browser
|
|
154
|
-
client fetches HubSpot's real API paths, so API↔UI parity cannot drift — there is only one code
|
|
155
|
-
path.
|
|
156
|
-
|
|
157
|
-
## Files
|
|
158
|
-
|
|
159
|
-
- `src/hubspot-twin.ts` — the CRM v3/v4 request handler (routes → kernel writes/reads) and the
|
|
160
|
-
hand-authored endpoint census.
|
|
161
|
-
- `src/hubspot-server.ts` — `createHubspotTwinServer({ root?, port?, readOnly? })`.
|
|
162
|
-
- `src/hubspot-mirror-ui.ts` + `client/hubspot-mirror.tsx` — the React CRM mirror.
|
|
163
|
-
- `src/hubspot-connector.ts` — pull/push over an injected executor (`liveHubspotExecute` for real I/O).
|
|
164
|
-
- `src/hubspot-conformance.ts` — one live request per claimed endpoint, plus a router census
|
|
165
|
-
checked in both directions (dev-only; lazy-imported by the CLI).
|
|
166
|
-
- `src/hubspot-areas.ts` / `src/hubspot-deferred-capabilities.ts` — the top-down product-area
|
|
167
|
-
census and the deferred areas' todos.
|
|
168
|
-
- `src/hubspot-capabilities.ts` — the capability manifest (the real vendor surface).
|
|
169
|
-
- `src/hubspot-sdk.integration.test.ts` — the **unmodified `@hubspot/api-client` 14.0.1** driving
|
|
170
|
-
the twin over its own public `basePath` option (a devDependency; never in the runtime graph).
|
|
171
|
-
|
|
172
|
-
## Rate budget — the fail-closed backstop on live calls
|
|
173
|
-
|
|
174
|
-
`liveHubspotExecute` is the **one place** this pack issues a live request, so every call it makes
|
|
175
|
-
is charged against a persistent, fail-closed spend ledger **before** the request goes out. Past the
|
|
176
|
-
ceiling, or while a `Retry-After`/429 cooldown is armed, it **throws instead of calling**. The
|
|
177
|
-
ledger is keyed by vendor and a hash of the credential (limits are per app/token, so it is
|
|
178
|
-
deliberately *not* cwd-scoped) and persists across processes, so a fresh process does not get a
|
|
179
|
-
fresh allowance; a corrupt ledger counts as a **full** window rather than zero spend. There is no
|
|
180
|
-
option to disable it, and no value you can pass for `budget` that yields an unguarded client — an
|
|
181
|
-
injected budget is validated by *method identity*, so a subclass or a `Proxy` that replaces
|
|
182
|
-
`checkBudget` is refused.
|
|
183
|
-
|
|
184
|
-
The declared numbers: **30 weighted units / 10 s** — HubSpot's own 10-second interval, at under a
|
|
185
|
-
third of its tightest published tier (Free/Starter: 100 requests per 10 seconds for a privately
|
|
186
|
-
distributed app; Professional and Enterprise get 190, the API-add-on 250, a public OAuth app 110).
|
|
187
|
-
CRM **search** costs 3, anchored in HubSpot's own separate five-requests-per-second search limit;
|
|
188
|
-
**batch object writes** cost 5 and **batch association writes** 3 — judgement calls, because one
|
|
189
|
-
batch call mutates up to 100 real CRM records.
|
|
190
|
-
|
|
191
|
-
The mechanism is **shared and vendor-agnostic** — it lives in the kernel (`@volter/world-core` →
|
|
192
|
-
`packages/world-core/src/rateBudget.ts`); what lives here in
|
|
193
|
-
[`src/hubspot-budget.ts`](src/hubspot-budget.ts) is this vendor's **declaration** (window, ceiling,
|
|
194
|
-
per-endpoint weights, and a `reason` citing the limits above) plus the vendor-bound
|
|
195
|
-
`HubspotBudget`. The rule is ratified as [../../../docs/contributing/architecture.md](../../../docs/contributing/architecture.md) **D8**, and
|
|
196
|
-
the kernel module's header documents what the guard does *not* guarantee — read that before
|
|
197
|
-
trusting it.
|
|
12
|
+
The gap and error-envelope citations are in `src/manifest.ts`; the unchanged
|
|
13
|
+
vendor documents, their hashes and scope-union patches are recorded in `spec/SOURCE.md`.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"//": "GENERATED by scripts/pack-facts.ts — current pack descriptors and explicit world-runtime server backings; no prior-artifact entries are retained.",
|
|
3
|
+
"packs": {
|
|
4
|
+
"hubspot": {
|
|
5
|
+
"adoption": {
|
|
6
|
+
"sdks": [
|
|
7
|
+
"@hubspot/api-client"
|
|
8
|
+
],
|
|
9
|
+
"pypi": [
|
|
10
|
+
"hubspot-api-client"
|
|
11
|
+
],
|
|
12
|
+
"envStems": [
|
|
13
|
+
"HUBSPOT",
|
|
14
|
+
"HUBSPOTPRIVATEAPP"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"hosts": [
|
|
18
|
+
{
|
|
19
|
+
"host": "api.hubapi.com"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"host": "app.hubspot.com",
|
|
23
|
+
"demandPathPattern": false
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"host": "api.hsforms.com"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"archetype": "crud",
|
|
30
|
+
"protocol": {
|
|
31
|
+
"declared": "3",
|
|
32
|
+
"major": 3,
|
|
33
|
+
"standing": "current"
|
|
34
|
+
},
|
|
35
|
+
"transport": "rest",
|
|
36
|
+
"resources": [],
|
|
37
|
+
"endpointEnvNone": "The optional integrations address HubSpot hosts; no SDK base-URL environment variable is injected.",
|
|
38
|
+
"serveExport": "createHubspotTwinServer"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"undeclared": []
|
|
42
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"vendor": "hubspot",
|
|
3
|
+
"missing": 0,
|
|
4
|
+
"stale": [],
|
|
5
|
+
"code": {
|
|
6
|
+
"lines": 49,
|
|
7
|
+
"run": 47,
|
|
8
|
+
"recorded": 2,
|
|
9
|
+
"missing": 0
|
|
10
|
+
},
|
|
11
|
+
"state": {
|
|
12
|
+
"declared": 0,
|
|
13
|
+
"reached": 0,
|
|
14
|
+
"recorded": 0,
|
|
15
|
+
"missing": [],
|
|
16
|
+
"undeclared": []
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
{
|
|
20
|
+
"file": "semantics/index.ts",
|
|
21
|
+
"lines": {
|
|
22
|
+
"found": 2,
|
|
23
|
+
"hit": 2
|
|
24
|
+
},
|
|
25
|
+
"missing": []
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"file": "manifest.ts",
|
|
29
|
+
"lines": {
|
|
30
|
+
"found": 26,
|
|
31
|
+
"hit": 26
|
|
32
|
+
},
|
|
33
|
+
"missing": []
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"file": "index.ts",
|
|
37
|
+
"lines": {
|
|
38
|
+
"found": 7,
|
|
39
|
+
"hit": 7
|
|
40
|
+
},
|
|
41
|
+
"missing": []
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"file": "server.ts",
|
|
45
|
+
"lines": {
|
|
46
|
+
"found": 4,
|
|
47
|
+
"hit": 2
|
|
48
|
+
},
|
|
49
|
+
"missing": []
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"file": "fetch.ts",
|
|
53
|
+
"lines": {
|
|
54
|
+
"found": 10,
|
|
55
|
+
"hit": 10
|
|
56
|
+
},
|
|
57
|
+
"missing": []
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"vendor": "hubspot",
|
|
3
|
+
"host": "api.hubapi.com",
|
|
4
|
+
"author": "Codex",
|
|
5
|
+
"about": "Demanded calls are recorded in demand.json and remain unserved in the retained gap. Scope is unchanged pending a separate implementation; supplying credentials is not opt-in.",
|
|
6
|
+
"steps": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# HubSpot customer life
|
|
2
|
+
|
|
3
|
+
Author: `Codex`.
|
|
4
|
+
|
|
5
|
+
Cal.com’s shipped CRM app is demand; Dub’s additional integration installation is optional. Pinned evidence for both is in `demand.json`.
|
|
6
|
+
Demanded calls are recorded in demand.json and remain unserved in the retained gap. Scope is unchanged pending a separate implementation; supplying credentials is not opt-in.
|