@pillar-ai/sdk 0.1.22 → 0.1.24
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 +1 -1
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/types.d.ts +89 -0
- package/dist/api/client.d.ts +4 -0
- package/dist/cli/sync.js +34 -4
- package/dist/components/PagePilot/styles.d.ts +1 -1
- package/dist/components/Panel/styles.d.ts +1 -1
- package/dist/core/Pillar.d.ts +7 -13
- package/dist/core/config.d.ts +29 -29
- package/dist/pillar.esm.js +1 -1
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/types.d.ts +54 -7
- package/dist/utils/tracing.d.ts +43 -0
- package/package.json +6 -3
- package/dist/actions/definitions/analytics.d.ts +0 -18
- package/dist/actions/definitions/content.d.ts +0 -40
- package/dist/actions/definitions/index.d.ts +0 -26
- package/dist/actions/definitions/navigation.d.ts +0 -65
- package/dist/actions/definitions/settings.d.ts +0 -162
- package/dist/actions/definitions/sources.d.ts +0 -44
- package/dist/actions/definitions/support.d.ts +0 -15
- package/dist/actions/definitions/team.d.ts +0 -120
- package/dist/api/ag-ui-adapter.d.ts +0 -76
- package/dist/api/ag-ui-bridge.d.ts +0 -49
- package/dist/api/ag-ui-client.d.ts +0 -102
- package/dist/api/ag-ui-handler.d.ts +0 -89
- package/dist/components/Button/FloatingButton.d.ts +0 -46
- package/dist/components/Panel/TabNavigation.d.ts +0 -16
- package/dist/components/Progress/AGUIProgress.d.ts +0 -15
- package/dist/components/Tooltips/Tooltip.d.ts +0 -46
- package/dist/components/Tooltips/TooltipManager.d.ts +0 -41
- package/dist/components/Tooltips/index.d.ts +0 -6
- package/dist/components/Tooltips/styles.d.ts +0 -5
- package/dist/components/Views/ArticleChatView.d.ts +0 -10
- package/dist/components/Views/ArticleView.d.ts +0 -10
- package/dist/components/Views/CategoryView.d.ts +0 -11
- package/dist/components/Views/HelpCenterArticles.d.ts +0 -17
- package/dist/components/Views/SearchView.d.ts +0 -10
- package/dist/components/Views/SupportView.d.ts +0 -15
- package/dist/components/shared/ArticleCard.d.ts +0 -17
- package/dist/components/shared/CategoryCard.d.ts +0 -17
- package/dist/content/extensions/AccordionNode.d.ts +0 -10
- package/dist/content/extensions/CalloutNode.d.ts +0 -11
- package/dist/content/extensions/index.d.ts +0 -5
- package/dist/content/index.d.ts +0 -5
- package/dist/content/renderer.d.ts +0 -24
- package/dist/store/tooltips.d.ts +0 -21
- package/dist/utils/helpdesk.d.ts +0 -33
- package/dist/utils/markdown.d.ts +0 -9
package/dist/core/config.d.ts
CHANGED
|
@@ -186,41 +186,24 @@ export interface InteractionHighlightConfig {
|
|
|
186
186
|
*/
|
|
187
187
|
scrollBehavior?: ScrollBehavior;
|
|
188
188
|
}
|
|
189
|
+
/**
|
|
190
|
+
* DOM scanning configuration.
|
|
191
|
+
* @internal DOM scanning is currently disabled and not available for configuration.
|
|
192
|
+
*/
|
|
189
193
|
export interface DOMScanningConfig {
|
|
190
|
-
/**
|
|
191
|
-
* Whether DOM scanning is enabled.
|
|
192
|
-
* When enabled, page structure is captured and sent with messages.
|
|
193
|
-
* @default false
|
|
194
|
-
*/
|
|
194
|
+
/** @internal DOM scanning is disabled */
|
|
195
195
|
enabled?: boolean;
|
|
196
|
-
/**
|
|
197
|
-
* Whether to include text content in the scan.
|
|
198
|
-
* @default true
|
|
199
|
-
*/
|
|
196
|
+
/** @internal */
|
|
200
197
|
includeText?: boolean;
|
|
201
|
-
/**
|
|
202
|
-
* Maximum depth to traverse the DOM tree.
|
|
203
|
-
* @default 20
|
|
204
|
-
*/
|
|
198
|
+
/** @internal */
|
|
205
199
|
maxDepth?: number;
|
|
206
|
-
/**
|
|
207
|
-
* Whether to only include visible elements.
|
|
208
|
-
* @default true
|
|
209
|
-
*/
|
|
200
|
+
/** @internal */
|
|
210
201
|
visibleOnly?: boolean;
|
|
211
|
-
/**
|
|
212
|
-
* CSS selector for elements to exclude from scanning.
|
|
213
|
-
* @example '.sidebar, .footer, [data-no-scan]'
|
|
214
|
-
*/
|
|
202
|
+
/** @internal */
|
|
215
203
|
excludeSelector?: string;
|
|
216
|
-
/**
|
|
217
|
-
* Maximum text length before truncation.
|
|
218
|
-
* @default 500
|
|
219
|
-
*/
|
|
204
|
+
/** @internal */
|
|
220
205
|
maxTextLength?: number;
|
|
221
|
-
/**
|
|
222
|
-
* Configuration for highlighting elements during AI interactions.
|
|
223
|
-
*/
|
|
206
|
+
/** Configuration for highlighting elements during AI interactions. */
|
|
224
207
|
interactionHighlight?: InteractionHighlightConfig;
|
|
225
208
|
}
|
|
226
209
|
export interface SuggestionsConfig {
|
|
@@ -356,7 +339,11 @@ export interface PillarConfig {
|
|
|
356
339
|
urlParams?: UrlParamsConfig;
|
|
357
340
|
/** Text selection "Ask AI" popover. */
|
|
358
341
|
textSelection?: TextSelectionConfig;
|
|
359
|
-
/**
|
|
342
|
+
/**
|
|
343
|
+
* DOM scanning for page context.
|
|
344
|
+
* @internal DOM scanning is currently disabled.
|
|
345
|
+
* @deprecated This feature is not available.
|
|
346
|
+
*/
|
|
360
347
|
domScanning?: DOMScanningConfig;
|
|
361
348
|
/** Page-aware suggestions. */
|
|
362
349
|
suggestions?: SuggestionsConfig;
|
|
@@ -364,6 +351,13 @@ export interface PillarConfig {
|
|
|
364
351
|
sidebarTabs?: SidebarTabConfig[];
|
|
365
352
|
/** API base URL. Defaults to Pillar's production API. */
|
|
366
353
|
apiBaseUrl?: string;
|
|
354
|
+
/**
|
|
355
|
+
* Enable OpenTelemetry tracing. Browser spans are exported to the server's
|
|
356
|
+
* Cloud Trace project via the OTLP proxy endpoint. Also enabled when debug
|
|
357
|
+
* is true.
|
|
358
|
+
* @default false
|
|
359
|
+
*/
|
|
360
|
+
tracing?: boolean;
|
|
367
361
|
/** Theme customization. */
|
|
368
362
|
theme?: ThemeConfig;
|
|
369
363
|
/**
|
|
@@ -451,6 +445,8 @@ export interface ResolvedConfig {
|
|
|
451
445
|
version?: string;
|
|
452
446
|
/** Debug mode enabled */
|
|
453
447
|
debug: boolean;
|
|
448
|
+
/** OpenTelemetry tracing enabled */
|
|
449
|
+
tracing: boolean;
|
|
454
450
|
panel: ResolvedPanelConfig;
|
|
455
451
|
edgeTrigger: Required<EdgeTriggerConfig>;
|
|
456
452
|
mobileTrigger: ResolvedMobileTriggerConfig;
|
|
@@ -485,6 +481,10 @@ export interface ServerEmbedConfig {
|
|
|
485
481
|
primary?: string;
|
|
486
482
|
};
|
|
487
483
|
};
|
|
484
|
+
security?: {
|
|
485
|
+
/** False when the requesting origin is not in the product's allowed domains list. */
|
|
486
|
+
originAllowed?: boolean;
|
|
487
|
+
};
|
|
488
488
|
}
|
|
489
489
|
/**
|
|
490
490
|
* Merge server config with local config.
|