@unboundcx/sdk 4.13.91 → 4.13.92

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unboundcx/sdk",
3
- "version": "4.13.91",
3
+ "version": "4.13.92",
4
4
  "description": "Official JavaScript SDK for the Unbound API - A comprehensive toolkit for integrating with Unbound's communication, AI, and data management services",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -11,8 +11,8 @@ import { internalRequest } from '../../base.js';
11
11
  // forms-v2-precheck.md §4.1): plain form fields go at the top level of the
12
12
  // body (fieldKey -> value, arrays allowed), and everything the server
13
13
  // treats as a *control* field (not a form value) is sent with a leading
14
- // underscore -- the same convention formSubmit.js/formSubmitPublicKey.js
15
- // already split on for the legacy `_token` field. `context` is NOT a
14
+ // underscore, e.g. `_idempotencyKey`/`_captchaToken` below --
15
+ // formSubmitPublicKey.js splits on that same convention. `context` is NOT a
16
16
  // control field: app1-api's captureContext.js builds the submission's
17
17
  // context column by scanning the body's TOP-LEVEL keys against an
18
18
  // allowlist (utm_*, gclid, fbclid, referrer, landingUrl, pageUrl,
@@ -26,9 +26,8 @@ export class FormsPublicService {
26
26
 
27
27
  /**
28
28
  * Submit a public form by its publicKey (D1 -- every form has its own
29
- * publicKey; no tracking-code/_token needed for this path). Legacy
30
- * hosted-fields forms keep using the `/webhooks/form/:formId` +
31
- * `_token` path (unchanged, not exposed here).
29
+ * publicKey; no tracking-code/_token needed -- publicKey + origin/
30
+ * domainAllowlist is the only auth for a public form submit).
32
31
  * @param {string} publicKey
33
32
  * @param {Object} fields - fieldKey -> value (arrays kept as arrays).
34
33
  * @param {Object} [options]