@curviate/sdk 0.15.0 → 0.16.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/CHANGELOG.md CHANGED
@@ -7,6 +7,107 @@ Versioning: semantic — minor for additive changes, patch for bug fixes; no sta
7
7
 
8
8
  ---
9
9
 
10
+ ## [Unreleased]
11
+
12
+ ## [0.16.0] — 2026-07-17
13
+
14
+ Mostly additive, plus one breaking removal on the connect/reconnect body.
15
+
16
+ ### Breaking
17
+
18
+ - **`disabled_features` is removed from `auth.intent()`'s request body**
19
+ (`AuthIntentBody`). The negative-list model could not express the `company`
20
+ product or the one-Premium-per-profile XOR. Connection scope (which
21
+ LinkedIn products get synced) is now **seat-derived**: there is no products
22
+ input on connect/reconnect at all. Drop any `disabled_features` you were
23
+ passing: a body still carrying it is now rejected 400 by the server. The
24
+ scope actually recorded for an account reads back as the new
25
+ `requested_products` field (see Added, below). A reconnect that changes
26
+ scope must use `auth_method: "credentials"`, since a cookie replay cannot
27
+ change scope and now throws `CurviateError(code: "REAUTH_REQUIRED")`.
28
+
29
+ ### Added
30
+
31
+ - **New account-scoped `inboxes` namespace (2 methods, Beta), the reply-as-a-page
32
+ surface.** `inboxes.list(query?)` discovers the account's personal inbox
33
+ plus, when the company product is attached, one entry per company page (id
34
+ like `"COMPANY_83734124_PRIMARY"`). `inboxes.listChats(inboxId, query?)`
35
+ lists a single inbox's conversations, cursor-paginated. Every returned chat
36
+ `id` is send-ready: pass it straight to the existing `messaging.sendMessage()`
37
+ to reply, no separate start/send endpoint. Company pages are reply-only
38
+ (`reply_only: true`) and cannot start a new conversation. **Beta:**
39
+ single-page listing is verified; deep pagination against a busier inbox is
40
+ still being validated.
41
+ - **`sendMessage()` echoes the acting identity as `sent_as`,** additive on
42
+ the existing send-message response. A `COMPANY_` chat id (from
43
+ `inboxes.listChats()`) sends AS THE PAGE and echoes
44
+ `sent_as: { kind: "company", company_id, name }` (`company_id` is `null`
45
+ when the page could not be correlated to a managed page). Any other chat id
46
+ sends as the connected member and echoes `sent_as: { kind: "personal" }`.
47
+ Never infer the acting identity from a message's `sender` field, only from
48
+ `sent_as`.
49
+ - **`accounts.list()` / `accounts.get()` gain `requested_products`,** the
50
+ seat-derived connection scope (e.g. `["classic", "company",
51
+ "sales_navigator"]`) the account was last connected with. `null` for
52
+ accounts connected before this was recorded, and not attachment truth for
53
+ Company Pages (that is decidable only via `inboxes.list()`).
54
+ - **Two new error codes:** `PREMIUM_CONFLICT` (a seat resolving to both
55
+ individual-Premium tiers at once, since LinkedIn permits only one per
56
+ profile; `user_fixable`, never retryable) and `REAUTH_REQUIRED` (a
57
+ scope-changing reconnect attempted with a cookie instead of credentials;
58
+ `user_fixable`, never retryable).
59
+ - **New account-scoped `profile` namespace (4 methods)** — the connected
60
+ account's own insight surface: `profile.subscription()`, `profile.analytics()`,
61
+ `profile.visitors(query?)`, `profile.ssi()`. Distinct from the retired
62
+ `profiles` namespace (renamed to `users` in 0.15.0).
63
+ - **New account-scoped `groups` namespace (3 methods)** — `groups.list(query?)`
64
+ (own groups by default, or another member's via `{ profile }`),
65
+ `groups.get(group)`, and `groups.members(group, query?)` (with the folded-in
66
+ `{ name }` member search).
67
+ - **New account-scoped `feed` namespace (1 method)** — `feed.home(query?)` reads
68
+ the connected account's home feed as agent-actionable posts, with `relevant`
69
+ or `recent` sort orders.
70
+ - **`companies` gains 3 company-insights methods** — `companies.managed(query?)`
71
+ lists the pages the connected account administers; `companies.followers(identifier,
72
+ query?)` lists a page's followers (**re-added** under a different item shape —
73
+ `company_follower`, carrying `degree`/`followed_at` — than the pre-0.15.0
74
+ method of the same name); `companies.invitableFollowers(identifier, query?)`
75
+ lists connections invitable to follow the page. All three require the
76
+ connected account to administer the target page.
77
+ - **`companies` gains 5 Beta company-inbox methods** — `companies.chats(identifier,
78
+ query?)`, `companies.chat(identifier, chatId)`, `companies.messages(identifier,
79
+ chatId, query?)`, `companies.message(identifier, chatId, messageId)`, and
80
+ `companies.searchChats(identifier, query?)` (exactly one of `query`/`topic`/
81
+ `unread` per call). A distinct conversation surface from the account's own
82
+ `messaging` namespace, scoped to one administered company page. **Beta:**
83
+ single-page listing and termination are verified; deep pagination (many
84
+ pages / large cursor round-trips) is still being validated against a busier
85
+ inbox. `companies` is now 12 methods (was 4).
86
+ - **`search` gains 3 methods** — `search.groups(query)` searches LinkedIn
87
+ groups by keyword; `search.services(body & query)` searches Services
88
+ Marketplace providers with structured filters; `search.getServiceParameters(query)`
89
+ resolves human-readable service-category/location terms into the opaque
90
+ filter ids `services()` accepts. `search` is now 9 methods (was 6).
91
+ - **`messaging` gains 1 method** — `messaging.searchChats(params)` free-text
92
+ searches the account's own inbox (participant names and message content).
93
+ `messaging` is now 13 methods (was 12).
94
+ - **`posts` gains 3 saved-posts methods** — `posts.listSaved(query?)` lists the
95
+ connected account's own saved posts (a self resource — previews only,
96
+ `snippet` capped at ≤140 chars, never the full body); `posts.save(postId)`
97
+ and `posts.unsave(postId)` add/remove a bookmark, both idempotent and
98
+ accepting either `urn:li:activity:<id>` or a bare numeric id. `posts` is now
99
+ 12 methods (was 9).
100
+ - **New account-scoped `notifications` namespace (3 methods)** — the connected
101
+ account's own notification centre: `notifications.list(query?)` (cards +
102
+ the account-level `unread_count`/`latest_published_at`);
103
+ `notifications.delete(cardUrn)` and `notifications.showLess(cardUrn)`, two
104
+ self-action writes on the account's own cards. Both writes are idempotent
105
+ and take effect within a few seconds — a list read immediately after may
106
+ still show the card for a moment, which is not a failure signal. The SDK
107
+ percent-encodes `cardUrn` (which embeds `(`, `)`, `:`, `,`) into the path.
108
+ - **Parity pin: 143 methods across 18 namespaces** (was 135 / 16 at the start
109
+ of this release cycle). The `inboxes` namespace is the final addition.
110
+
10
111
  ## [0.15.0] — 2026-07-11
11
112
 
12
113
  Full v2 parity. The SDK is re-aligned 1:1 to the served API surface: every
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  The official TypeScript SDK for the [Curviate API](https://docs.curviate.com) — agent-native
4
4
  LinkedIn infrastructure for AI engineers and agent builders.
5
5
 
6
- > **Status:** `0.15.0` — pre-1.0. Full v2 API parity; the surface is public but not yet stability-promised.
6
+ > **Status:** `0.16.0` — pre-1.0. Full v2 API parity; the surface is public but not yet stability-promised.
7
7
 
8
8
  ---
9
9