@helpai/elements 0.68.4 → 0.69.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/index.d.ts CHANGED
@@ -535,7 +535,7 @@ interface FormDef {
535
535
  * answers. Default `true`. Set `false` to keep the marker plain — e.g.
536
536
  * sensitive answers that shouldn't linger on screen (pairs with
537
537
  * `mirrorToContext: false`; the backend should also omit `values` from the
538
- * `/activity` records for such forms).
538
+ * `bootstrap` `formSubmissions` records for such forms).
539
539
  */
540
540
  reviewable?: boolean;
541
541
  /** BCP-47 locale the top-level strings (title / fields copy) are authored in. */
@@ -1098,8 +1098,8 @@ interface ChatWidgetOptions {
1098
1098
  agentApiBaseUrl?: string;
1099
1099
  /**
1100
1100
  * Data-API base (no trailing slash) — the `module-help-ai-data-api`
1101
- * service serving content, form definitions, and form submissions at
1102
- * root-level paths (`/content`, `/forms`, `/activity`, `/submit-form`).
1101
+ * service serving content, form definitions, and form submissions under
1102
+ * `/pai/*` (`content`, `bootstrap`, `submit-form`).
1103
1103
  * Set it for a standalone local module (e.g. `http://localhost:3106`).
1104
1104
  * Precedence: this option > server-pushed `config.dataApiBaseUrl` > derived
1105
1105
  * from the main origin (`${baseUrl}/api/data`, e.g.
@@ -1263,7 +1263,7 @@ interface ResolvedOptions {
1263
1263
  * and the public key are deliberately excluded — those are client concerns.
1264
1264
  *
1265
1265
  * Form definitions no longer ride this config: the widget fetches them from
1266
- * the data-API (`GET /forms`). A stale backend still pushing
1266
+ * the data-API (`GET /pai/bootstrap`). A stale backend still pushing
1267
1267
  * `config.forms` is ignored.
1268
1268
  */
1269
1269
  interface ServerConfig$1 {
@@ -1800,9 +1800,9 @@ declare const widgetSettingsSchema: z.ZodObject<{
1800
1800
  label: z.ZodString;
1801
1801
  type: z.ZodEnum<{
1802
1802
  number: "number";
1803
- url: "url";
1804
1803
  email: "email";
1805
1804
  date: "date";
1805
+ url: "url";
1806
1806
  text: "text";
1807
1807
  tel: "tel";
1808
1808
  time: "time";
@@ -2139,9 +2139,9 @@ declare const widgetConfigSchema: z.ZodObject<{
2139
2139
  label: z.ZodString;
2140
2140
  type: z.ZodEnum<{
2141
2141
  number: "number";
2142
- url: "url";
2143
2142
  email: "email";
2144
2143
  date: "date";
2144
+ url: "url";
2145
2145
  text: "text";
2146
2146
  tel: "tel";
2147
2147
  time: "time";
@@ -2477,9 +2477,9 @@ declare const widgetConfigPartialSchema: z.ZodObject<{
2477
2477
  label: z.ZodString;
2478
2478
  type: z.ZodEnum<{
2479
2479
  number: "number";
2480
- url: "url";
2481
2480
  email: "email";
2482
2481
  date: "date";
2482
+ url: "url";
2483
2483
  text: "text";
2484
2484
  tel: "tel";
2485
2485
  time: "time";
@@ -2775,9 +2775,9 @@ declare const widgetSettingsPartialSchema: z.ZodObject<{
2775
2775
  label: z.ZodString;
2776
2776
  type: z.ZodEnum<{
2777
2777
  number: "number";
2778
- url: "url";
2779
2778
  email: "email";
2780
2779
  date: "date";
2780
+ url: "url";
2781
2781
  text: "text";
2782
2782
  tel: "tel";
2783
2783
  time: "time";
@@ -2920,7 +2920,7 @@ type ConnectionConfigPartial = z.infer<typeof connectionConfigPartialSchema>;
2920
2920
  *
2921
2921
  * Two deltas vs the editable surface:
2922
2922
  * - `forms` is omitted — resolved form definitions are served by the
2923
- * data-API (`GET /forms`), not pushed on the handshake. A stale
2923
+ * data-API (`GET /pai/bootstrap`), not pushed on the handshake. A stale
2924
2924
  * backend still sending `config.forms` passes through `.loose()` and is
2925
2925
  * ignored by the runtime merge.
2926
2926
  * - `dataApiBaseUrl` is pushable — lets a deployment point the widget at its