@curviate/sdk 0.45.0-next.0 → 0.45.0-next.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/dist/index.js CHANGED
@@ -472,7 +472,7 @@ function isCurviateError(err) {
472
472
  }
473
473
 
474
474
  // package.json
475
- var version = "0.45.0-next.0";
475
+ var version = "0.45.0-next.1";
476
476
 
477
477
  // src/config.ts
478
478
  var DEFAULT_BASE_URL = "https://api.curviate.com";
@@ -851,7 +851,8 @@ var AccountsResource = class {
851
851
  * with the first 20 Motions in `motion_refs`, and `quotas`: three of the
852
852
  * account's safety rows (`connection_requests_no_note`,
853
853
  * `messages_first_degree`, `inmail`) with `remaining`, absent on an account
854
- * you can see but not operate. `get` carries every row. Reading the list
854
+ * you can see but not operate. `connection_requests_no_note` now counts
855
+ * every invitation, noted or not: read it as "Invitations". `get` carries every row. Reading the list
855
856
  * never calls LinkedIn.
856
857
  *
857
858
  * Each item also carries `external_id` (your own id for the account's end
@@ -915,6 +916,26 @@ var AccountsResource = class {
915
916
  * `total_actions` (`tally`) and `pending_invites` (`gauge`, whose `used` is
916
917
  * `null` until something has observed it).
917
918
  *
919
+ * **Same name, new meaning:** `connection_requests_no_note` counts all
920
+ * invitations, so its `used` is the invitation total (a noted one also
921
+ * counts on `connection_requests_with_note` where that row has a ceiling:
922
+ * Free profiles, 3 a month). The strict rows (invitations, `inmail`,
923
+ * `profile_views`) also carry `target` (what the account aims at per
924
+ * window, below the ceiling; `green` is now this target) and
925
+ * `effective_target` (target times warm-up times health), both `null` on
926
+ * other rows and read-only. Aim at the target, not the ceiling.
927
+ *
928
+ * `health` is Curviate's inference of how LinkedIn sees the account:
929
+ * `{ state, factor, reasons, until }`, `state` one of `healthy`, `watch`,
930
+ * `slowed` or `stopped`. It multiplies with warm-up. `health` is absent on
931
+ * an account you can see but not operate.
932
+ *
933
+ * Curviate sees only what it sends. Invitations or messages sent by hand on
934
+ * LinkedIn, or through another automation tool on the same account, are
935
+ * invisible to it and to every limit here; LinkedIn's refusal is the only
936
+ * way they show up. Do not run another automation tool on a connected
937
+ * account.
938
+ *
918
939
  * The per-minute REQUEST ceiling is a different thing and is deliberately
919
940
  * NOT in this array: it protects Curviate's own servers rather than the
920
941
  * LinkedIn account, and it is answered with `429 RATE_LIMIT_ACCOUNT`.
@@ -1147,7 +1168,10 @@ var AccountsResource = class {
1147
1168
  * budget row, and where each value was inherited from. Also carries the
1148
1169
  * derived `warm_up` (`enabled`, `dormant`, `state`, `factor`, `triggers`)
1149
1170
  * and `activity_window` (the zone the hours are read in, from where the
1150
- * account connects). Limits are always enforced.
1171
+ * account connects) and `auto_withdraw` (default `true`: Curviate withdraws
1172
+ * its own invitations older than 14 days once more than 400 are pending;
1173
+ * hand-sent ones are never touched). Rows carry `target` and
1174
+ * `effective_target` (read-only). Limits are always enforced.
1151
1175
  * `GET /v1/{account_id}/safety-policy`
1152
1176
  *
1153
1177
  * @example
@@ -1165,7 +1189,9 @@ var AccountsResource = class {
1165
1189
  * always enforced: to send more, raise the limit. Returns the policy as
1166
1190
  * `getSafetyPolicy` reads it.
1167
1191
  *
1168
- * `warm_up: { enabled }` turns the account's warm-up ramp on or off (default
1192
+ * `auto_withdraw` (boolean) switches the automatic withdrawal of old
1193
+ * Curviate-sent invitations; a change is ledgered. A row's `green` is its
1194
+ * target. `warm_up: { enabled }` turns the account's warm-up ramp on or off (default
1169
1195
  * on; off skips the connect and quiet ramps, recovery after a LinkedIn
1170
1196
  * restriction still applies). `active_hours` sets the account's own days and
1171
1197
  * local hours; a row's own `activity_window_start` / `activity_window_end`
@@ -7180,6 +7206,16 @@ var MotionsResource = class {
7180
7206
  * and `account_gap` (`1d` to `30d`), served only in that mode;
7181
7207
  * `accounts_per_contact` is locked once the Motion has started.
7182
7208
  *
7209
+ * `settings.priority` (`normal`, the default, or `prioritized`) is the
7210
+ * Motion's share of each sending account's daily allowance: a prioritized
7211
+ * Motion gets twice a normal one's share, and a share nobody uses flows to
7212
+ * the others. Curviate paces all Motions on an account against one budget,
7213
+ * so there is no per-Motion start cap. `settings.new_enrollments_per_account_per_day`
7214
+ * and `settings.assign: "even"` are retired: accepted and ignored until
7215
+ * 2027-01-28 with a `SETTING_REMOVED` entry in `notices[]` and
7216
+ * `Deprecation: true`, never returned, then a `400`. A pending Enrollment
7217
+ * waits unassigned (`account_id: null`) until an account with room takes it.
7218
+ *
7183
7219
  * @example
7184
7220
  * const motion = await curviate.motions.create({
7185
7221
  * name: "Q4 webinar follow-up",
@@ -7308,7 +7344,11 @@ var MotionsResource = class {
7308
7344
  * `projection.audience` is `{ total, skipped, to_enroll }`, `skipped`
7309
7345
  * counted per reason (`do_not_contact`, `excluded`, `other_motion`,
7310
7346
  * `known_chat`, `filtered`; a Contact counts under the first that applies);
7311
- * `projection.contacts` equals `to_enroll`. In
7347
+ * `projection.contacts` equals `to_enroll`. `projection.accounts[]` names the
7348
+ * pool that binds each account's pace (`binding`), its
7349
+ * `expected_actions_per_day` (an upper estimate) and `projection.warnings[]`
7350
+ * (`hours_below_share`, `no_sending_account`: no account of the Motion can
7351
+ * send its InMail step). There is no `daily_cap`. In
7312
7352
  * Several mode `accounts[].contacts` counts Enrollments, not people, and
7313
7353
  * `projection.fits_before_end_at` is counted per account zone.
7314
7354
  * `GET /v1/motions/{id}/preview`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curviate/sdk",
3
- "version": "0.45.0-next.0",
3
+ "version": "0.45.0-next.1",
4
4
  "private": false,
5
5
  "description": "TypeScript SDK for the Curviate API.",
6
6
  "license": "MIT",