@gooddata/sdk-pluggable-application-model 11.62.0-alpha.0 → 11.62.0-alpha.2
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/esm/__version.js +1 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -1
- package/esm/mount.d.ts +48 -18
- package/esm/mount.d.ts.map +1 -1
- package/esm/mount.js +54 -20
- package/esm/sdk-pluggable-application-model.d.ts +51 -18
- package/package.json +4 -4
package/esm/__version.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
// DO NOT CHANGE THIS FILE, IT IS RE-GENERATED ON EVERY BUILD
|
|
3
3
|
/** @alpha */
|
|
4
|
-
export const LIB_VERSION = "11.62.0-alpha.
|
|
4
|
+
export const LIB_VERSION = "11.62.0-alpha.2";
|
|
5
5
|
/** @alpha */
|
|
6
6
|
export const LIB_DESCRIPTION = "GoodData SDK model contracts for pluggable applications";
|
|
7
7
|
/** @alpha */
|
package/esm/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { DefaultApplicationId } from "./defaultPlatformApplications.js";
|
|
|
7
7
|
export { LIB_VERSION, LIB_DESCRIPTION, LIB_NAME } from "./__version.js";
|
|
8
8
|
export { type EmbeddingMode, type IApiTokenAuthCredentials, type IAuthCredentials, type IContextDeferredAuthCredentials, type IEffectiveSettings, type IJwtAuthCredentials, type IOrganization, type IOrganizationPermissions, type IPlatformContext, type IPlatformContextV1, type IPluggableApplicationNavigation, PantherTier, isPlatformContextV1, isWorkspaceScopedSettings, } from "./platformContext.js";
|
|
9
9
|
export { type ILocale } from "@gooddata/sdk-model";
|
|
10
|
-
export { type IAppHeaderOptions, type IAppInstance, type KnownPluggableAppEventTypeName, type IDocumentTitleChangedEvent, type IOpenAiAssistantRequestedEvent, type ICloseAiAssistantRequestedEvent, type IAiAssistantContextChangedEvent, type
|
|
10
|
+
export { type IAppHeaderOptions, type IAppInstance, type KnownPluggableAppEventTypeName, type IDocumentTitleChangedEvent, type IOpenAiAssistantRequestedEvent, type ICloseAiAssistantRequestedEvent, type IAiAssistantContextChangedEvent, type IAiAssistantPublisherDocumentSavedEvent, type IHostNavigationRequest, type IPluggableApp, type IPluggableApplicationMountHandle, type IPluggableApplicationMountOptions, type IPluggableAppEvent, type IPluggableAppLogRecord, type IPluggableAppTelemetryCallbacks, type IPluggableAppTelemetryEventData, type IReloadPlatformContextRequestedEvent, type ITelemetryEventOptions, documentTitleChanged, isDocumentTitleChangedEvent, isOpenAiAssistantRequestedEvent, isCloseAiAssistantRequestedEvent, isAiAssistantContextChangedEvent, isAiAssistantPublisherDocumentSavedEvent, isReloadPlatformContextRequestedEvent, openAiAssistantRequested, closeAiAssistantRequested, aiAssistantContextChanged, aiAssistantPublisherDocumentSaved, aiAssistantDashboardSaved, isAiAssistantDashboardSavedEvent, type IAiAssistantDashboardSavedEvent, type PluggableApplicationMount, PluggableAppEventType, type PluggableAppEventTypeName, reloadPlatformContextRequested, type TelemetryChannel, } from "./mount.js";
|
|
11
11
|
export { type ITelemetryPropertySlot, type TelemetryPropertyScope, TELEMETRY_PROPERTIES, } from "./telemetry/telemetryProperties.js";
|
|
12
12
|
export { type IHostUiModule, type IHostUiMountHandle, type IHostUiMountOptions, type IHostUiNotification, type INewDeploymentAvailableHostUiNotification, type HostUiMount, } from "./hostUi.js";
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAExE,OAAO,EACH,KAAK,aAAa,EAClB,KA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AAuC,EAC5C,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,oBAAoB,EACpB,2BAA2B,EAC3B,+BAA+B,EAC/B,gCAAgC,EAChC,gCAAgC,EAChC,wCAAwC,EACxC,qCAAqC,EACrC,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EACzB,iCAAiC,EACjC,yBAAyB,EACzB,gCAAgC,EAChC,KAAK,+BAA+B,EACpC,KAAK,yBAAyB,EAC9B,qBAAqB,EACrB,KAAK,yBAAyB,EAC9B,8BAA8B,EAC9B,KAAK,gBAAgB,GACxB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACH,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,oBAAoB,GACvB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,yCAAyC,EAC9C,KAAK,WAAW,GACnB,MAAM,aAAa,CAAC"}
|
package/esm/index.js
CHANGED
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
export { DefaultApplicationId } from "./defaultPlatformApplications.js";
|
|
9
9
|
export { LIB_VERSION, LIB_DESCRIPTION, LIB_NAME } from "./__version.js";
|
|
10
10
|
export { PantherTier, isPlatformContextV1, isWorkspaceScopedSettings, } from "./platformContext.js";
|
|
11
|
-
export { documentTitleChanged, isDocumentTitleChangedEvent, isOpenAiAssistantRequestedEvent, isCloseAiAssistantRequestedEvent, isAiAssistantContextChangedEvent,
|
|
11
|
+
export { documentTitleChanged, isDocumentTitleChangedEvent, isOpenAiAssistantRequestedEvent, isCloseAiAssistantRequestedEvent, isAiAssistantContextChangedEvent, isAiAssistantPublisherDocumentSavedEvent, isReloadPlatformContextRequestedEvent, openAiAssistantRequested, closeAiAssistantRequested, aiAssistantContextChanged, aiAssistantPublisherDocumentSaved, aiAssistantDashboardSaved, isAiAssistantDashboardSavedEvent, PluggableAppEventType, reloadPlatformContextRequested, } from "./mount.js";
|
|
12
12
|
export { TELEMETRY_PROPERTIES, } from "./telemetry/telemetryProperties.js";
|
package/esm/mount.d.ts
CHANGED
|
@@ -11,7 +11,8 @@ export declare const PluggableAppEventType: {
|
|
|
11
11
|
readonly AI_ASSISTANT_OPEN_REQUESTED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.OPEN_REQUESTED";
|
|
12
12
|
readonly AI_ASSISTANT_CLOSE_REQUESTED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.CLOSE_REQUESTED";
|
|
13
13
|
readonly AI_ASSISTANT_CONTEXT_CHANGED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.CONTEXT_CHANGED";
|
|
14
|
-
readonly
|
|
14
|
+
readonly AI_ASSISTANT_PUBLISHER_DOCUMENT_SAVED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.PUBLISHER_DOCUMENT_SAVED";
|
|
15
|
+
readonly AI_ASSISTANT_DASHBOARD_SAVED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.DASHBOARD_SAVED";
|
|
15
16
|
};
|
|
16
17
|
/**
|
|
17
18
|
* Union of known pluggable application event type names.
|
|
@@ -258,45 +259,45 @@ export declare function aiAssistantContextChanged(payload?: {
|
|
|
258
259
|
*/
|
|
259
260
|
export declare function isAiAssistantContextChangedEvent(obj: unknown): obj is IAiAssistantContextChangedEvent;
|
|
260
261
|
/**
|
|
261
|
-
* Event telling the host assistant that a
|
|
262
|
+
* Event telling the host assistant that a document it drafted was saved.
|
|
262
263
|
*
|
|
263
264
|
* @remarks
|
|
264
265
|
* The assistant keeps its own copy of the conversation, which only learns about a save when the
|
|
265
|
-
* thread is loaded again. The application that saved the
|
|
266
|
-
*
|
|
266
|
+
* thread is loaded again. The application that saved the document emits this once per save, so the
|
|
267
|
+
* document in the chat reads as saved and links to the saved document right away.
|
|
267
268
|
*
|
|
268
269
|
* @alpha
|
|
269
270
|
*/
|
|
270
|
-
export interface
|
|
271
|
-
readonly type: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.
|
|
271
|
+
export interface IAiAssistantPublisherDocumentSavedEvent extends IPluggableAppEvent {
|
|
272
|
+
readonly type: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.PUBLISHER_DOCUMENT_SAVED";
|
|
272
273
|
readonly payload: {
|
|
273
274
|
/**
|
|
274
|
-
* Conversation the
|
|
275
|
+
* Conversation the document was drafted in.
|
|
275
276
|
*/
|
|
276
277
|
readonly conversationId: string;
|
|
277
278
|
/**
|
|
278
|
-
* Conversation item that holds the drafted
|
|
279
|
+
* Conversation item that holds the drafted document.
|
|
279
280
|
*/
|
|
280
281
|
readonly itemId: string;
|
|
281
282
|
/**
|
|
282
|
-
* Name of the
|
|
283
|
-
*
|
|
283
|
+
* Name of the document within the item. Omitted when the draft carries none; the item's only
|
|
284
|
+
* document is meant then.
|
|
284
285
|
*/
|
|
285
|
-
readonly
|
|
286
|
+
readonly documentRef?: string;
|
|
286
287
|
/**
|
|
287
|
-
* Identifier of the
|
|
288
|
+
* Identifier of the document the draft was saved as.
|
|
288
289
|
*/
|
|
289
|
-
readonly
|
|
290
|
+
readonly savedDocumentId: string;
|
|
290
291
|
};
|
|
291
292
|
}
|
|
292
293
|
/**
|
|
293
|
-
* Creates an {@link
|
|
294
|
+
* Creates an {@link IAiAssistantPublisherDocumentSavedEvent}.
|
|
294
295
|
*
|
|
295
296
|
* @alpha
|
|
296
297
|
*/
|
|
297
|
-
export declare function
|
|
298
|
+
export declare function aiAssistantPublisherDocumentSaved(payload: IAiAssistantPublisherDocumentSavedEvent["payload"]): IAiAssistantPublisherDocumentSavedEvent;
|
|
298
299
|
/**
|
|
299
|
-
* Type guard for {@link
|
|
300
|
+
* Type guard for {@link IAiAssistantPublisherDocumentSavedEvent}.
|
|
300
301
|
*
|
|
301
302
|
* @remarks
|
|
302
303
|
* Validates the payload shape too, so a malformed event is rejected rather than narrowed to a type
|
|
@@ -304,7 +305,36 @@ export declare function aiAssistantReportSaved(payload: IAiAssistantReportSavedE
|
|
|
304
305
|
*
|
|
305
306
|
* @alpha
|
|
306
307
|
*/
|
|
307
|
-
export declare function
|
|
308
|
+
export declare function isAiAssistantPublisherDocumentSavedEvent(obj: unknown): obj is IAiAssistantPublisherDocumentSavedEvent;
|
|
309
|
+
/**
|
|
310
|
+
* Event telling the host assistant that a dashboard and its draft insights were saved.
|
|
311
|
+
*
|
|
312
|
+
* @alpha
|
|
313
|
+
*/
|
|
314
|
+
export interface IAiAssistantDashboardSavedEvent extends IPluggableAppEvent {
|
|
315
|
+
readonly type: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.DASHBOARD_SAVED";
|
|
316
|
+
readonly payload: {
|
|
317
|
+
readonly conversationId: string;
|
|
318
|
+
readonly originalDashboardId: string;
|
|
319
|
+
readonly savedDashboardId: string;
|
|
320
|
+
readonly savedInsights: ReadonlyArray<{
|
|
321
|
+
readonly originalInsightId: string;
|
|
322
|
+
readonly savedInsightId: string;
|
|
323
|
+
}>;
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Creates an {@link IAiAssistantDashboardSavedEvent}.
|
|
328
|
+
*
|
|
329
|
+
* @alpha
|
|
330
|
+
*/
|
|
331
|
+
export declare function aiAssistantDashboardSaved(payload: IAiAssistantDashboardSavedEvent["payload"]): IAiAssistantDashboardSavedEvent;
|
|
332
|
+
/**
|
|
333
|
+
* Type guard for {@link IAiAssistantDashboardSavedEvent}.
|
|
334
|
+
*
|
|
335
|
+
* @alpha
|
|
336
|
+
*/
|
|
337
|
+
export declare function isAiAssistantDashboardSavedEvent(obj: unknown): obj is IAiAssistantDashboardSavedEvent;
|
|
308
338
|
/**
|
|
309
339
|
* Telemetry channel determines which analytics pipeline receives the event.
|
|
310
340
|
*
|
|
@@ -356,7 +386,7 @@ export interface IPluggableAppLogRecord {
|
|
|
356
386
|
* @remarks
|
|
357
387
|
* Pluggable applications describe an event with these neutral groups and must NOT assume any particular
|
|
358
388
|
* analytics backend (Matomo, …) — the host shell decides how to record them. `identifiers` are
|
|
359
|
-
* sensitive entity ids (workspace, dashboard,
|
|
389
|
+
* sensitive entity ids (workspace, dashboard, document, …) the shell may hash and aggregate; `stats` are
|
|
360
390
|
* contextual metrics (counts, types, …). Any other key is a free-form event property. Passed as the `data`
|
|
361
391
|
* argument of {@link IPluggableAppTelemetryCallbacks.trackEvent}.
|
|
362
392
|
*
|
package/esm/mount.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mount.d.ts","sourceRoot":"","sources":["../src/mount.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;aAC9B,iCAAiC,EAAE,yDAAyD;aAC5F,sBAAsB,EAAE,8CAA8C;aACtE,2BAA2B,EAAE,mDAAmD;aAChF,4BAA4B,EAAE,oDAAoD;aAClF,4BAA4B,EAAE,oDAAoD;aAClF,
|
|
1
|
+
{"version":3,"file":"mount.d.ts","sourceRoot":"","sources":["../src/mount.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;aAC9B,iCAAiC,EAAE,yDAAyD;aAC5F,sBAAsB,EAAE,8CAA8C;aACtE,2BAA2B,EAAE,mDAAmD;aAChF,4BAA4B,EAAE,oDAA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B,MAAM,CAAC,EAAE,OAAO,CAAC;KACpB,KAAK,OAAO,CAAC;IAEd;;;;;;;;;;OAUG;IACH,yBAAyB,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,KAAK,IAAI,CAAC;CACnG;AAED;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG,CACpC,OAAO,EAAE,iCAAiC,KACzC,gCAAgC,CAAC;AAEtC;;;;GAIG;AACH,MAAM,WAAW,YAAa,SAAQ,gCAAgC;IAClE,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B,KAAK,EAAE,yBAAyB,CAAC;IAEjC;;;;;;;;;;;OAWG;IACH,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhC;;;;;;;;;;OAUG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B"}
|
package/esm/mount.js
CHANGED
|
@@ -10,7 +10,8 @@ export const PluggableAppEventType = {
|
|
|
10
10
|
AI_ASSISTANT_OPEN_REQUESTED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.OPEN_REQUESTED",
|
|
11
11
|
AI_ASSISTANT_CLOSE_REQUESTED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.CLOSE_REQUESTED",
|
|
12
12
|
AI_ASSISTANT_CONTEXT_CHANGED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.CONTEXT_CHANGED",
|
|
13
|
-
|
|
13
|
+
AI_ASSISTANT_PUBLISHER_DOCUMENT_SAVED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.PUBLISHER_DOCUMENT_SAVED",
|
|
14
|
+
AI_ASSISTANT_DASHBOARD_SAVED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.DASHBOARD_SAVED",
|
|
14
15
|
};
|
|
15
16
|
/**
|
|
16
17
|
* Creates an {@link IReloadPlatformContextRequestedEvent}.
|
|
@@ -18,7 +19,7 @@ export const PluggableAppEventType = {
|
|
|
18
19
|
* @alpha
|
|
19
20
|
*/
|
|
20
21
|
export function reloadPlatformContextRequested() {
|
|
21
|
-
return { type:
|
|
22
|
+
return { type: PluggableAppEventType.RELOAD_PLATFORM_CONTEXT_REQUESTED };
|
|
22
23
|
}
|
|
23
24
|
/**
|
|
24
25
|
* Type guard for {@link IReloadPlatformContextRequestedEvent}.
|
|
@@ -29,7 +30,7 @@ export function isReloadPlatformContextRequestedEvent(obj) {
|
|
|
29
30
|
return (typeof obj === "object" &&
|
|
30
31
|
obj !== null &&
|
|
31
32
|
"type" in obj &&
|
|
32
|
-
obj.type ===
|
|
33
|
+
obj.type === PluggableAppEventType.RELOAD_PLATFORM_CONTEXT_REQUESTED);
|
|
33
34
|
}
|
|
34
35
|
/**
|
|
35
36
|
* Creates an {@link IDocumentTitleChangedEvent}.
|
|
@@ -37,7 +38,7 @@ export function isReloadPlatformContextRequestedEvent(obj) {
|
|
|
37
38
|
* @alpha
|
|
38
39
|
*/
|
|
39
40
|
export function documentTitleChanged(pageTitle) {
|
|
40
|
-
return { type:
|
|
41
|
+
return { type: PluggableAppEventType.DOCUMENT_TITLE_CHANGED, payload: { pageTitle } };
|
|
41
42
|
}
|
|
42
43
|
/**
|
|
43
44
|
* Type guard for {@link IDocumentTitleChangedEvent}.
|
|
@@ -52,7 +53,7 @@ export function documentTitleChanged(pageTitle) {
|
|
|
52
53
|
export function isDocumentTitleChangedEvent(obj) {
|
|
53
54
|
if (typeof obj !== "object" ||
|
|
54
55
|
obj === null ||
|
|
55
|
-
obj.type !==
|
|
56
|
+
obj.type !== PluggableAppEventType.DOCUMENT_TITLE_CHANGED) {
|
|
56
57
|
return false;
|
|
57
58
|
}
|
|
58
59
|
const payload = obj.payload;
|
|
@@ -68,7 +69,7 @@ export function isDocumentTitleChangedEvent(obj) {
|
|
|
68
69
|
* @alpha
|
|
69
70
|
*/
|
|
70
71
|
export function openAiAssistantRequested(payload) {
|
|
71
|
-
return { type:
|
|
72
|
+
return { type: PluggableAppEventType.AI_ASSISTANT_OPEN_REQUESTED, payload: payload ?? {} };
|
|
72
73
|
}
|
|
73
74
|
/**
|
|
74
75
|
* Type guard for {@link IOpenAiAssistantRequestedEvent}.
|
|
@@ -83,7 +84,7 @@ export function openAiAssistantRequested(payload) {
|
|
|
83
84
|
export function isOpenAiAssistantRequestedEvent(obj) {
|
|
84
85
|
if (typeof obj !== "object" ||
|
|
85
86
|
obj === null ||
|
|
86
|
-
obj.type !==
|
|
87
|
+
obj.type !== PluggableAppEventType.AI_ASSISTANT_OPEN_REQUESTED) {
|
|
87
88
|
return false;
|
|
88
89
|
}
|
|
89
90
|
const payload = obj.payload;
|
|
@@ -103,7 +104,7 @@ export function isOpenAiAssistantRequestedEvent(obj) {
|
|
|
103
104
|
* @alpha
|
|
104
105
|
*/
|
|
105
106
|
export function closeAiAssistantRequested() {
|
|
106
|
-
return { type:
|
|
107
|
+
return { type: PluggableAppEventType.AI_ASSISTANT_CLOSE_REQUESTED };
|
|
107
108
|
}
|
|
108
109
|
/**
|
|
109
110
|
* Type guard for {@link ICloseAiAssistantRequestedEvent}.
|
|
@@ -112,7 +113,7 @@ export function closeAiAssistantRequested() {
|
|
|
112
113
|
*/
|
|
113
114
|
export function isCloseAiAssistantRequestedEvent(obj) {
|
|
114
115
|
return (typeof obj === "object" &&
|
|
115
|
-
obj?.type ===
|
|
116
|
+
obj?.type === PluggableAppEventType.AI_ASSISTANT_CLOSE_REQUESTED);
|
|
116
117
|
}
|
|
117
118
|
/**
|
|
118
119
|
* Creates an {@link IAiAssistantContextChangedEvent}.
|
|
@@ -120,7 +121,7 @@ export function isCloseAiAssistantRequestedEvent(obj) {
|
|
|
120
121
|
* @alpha
|
|
121
122
|
*/
|
|
122
123
|
export function aiAssistantContextChanged(payload) {
|
|
123
|
-
return { type:
|
|
124
|
+
return { type: PluggableAppEventType.AI_ASSISTANT_CONTEXT_CHANGED, payload: payload ?? {} };
|
|
124
125
|
}
|
|
125
126
|
/**
|
|
126
127
|
* Type guard for {@link IAiAssistantContextChangedEvent}.
|
|
@@ -130,7 +131,7 @@ export function aiAssistantContextChanged(payload) {
|
|
|
130
131
|
export function isAiAssistantContextChangedEvent(obj) {
|
|
131
132
|
if (typeof obj !== "object" ||
|
|
132
133
|
obj === null ||
|
|
133
|
-
obj.type !==
|
|
134
|
+
obj.type !== PluggableAppEventType.AI_ASSISTANT_CONTEXT_CHANGED) {
|
|
134
135
|
return false;
|
|
135
136
|
}
|
|
136
137
|
const payload = obj.payload;
|
|
@@ -150,15 +151,15 @@ export function isAiAssistantContextChangedEvent(obj) {
|
|
|
150
151
|
(userContext === undefined || (typeof userContext === "object" && userContext !== null)));
|
|
151
152
|
}
|
|
152
153
|
/**
|
|
153
|
-
* Creates an {@link
|
|
154
|
+
* Creates an {@link IAiAssistantPublisherDocumentSavedEvent}.
|
|
154
155
|
*
|
|
155
156
|
* @alpha
|
|
156
157
|
*/
|
|
157
|
-
export function
|
|
158
|
-
return { type:
|
|
158
|
+
export function aiAssistantPublisherDocumentSaved(payload) {
|
|
159
|
+
return { type: PluggableAppEventType.AI_ASSISTANT_PUBLISHER_DOCUMENT_SAVED, payload };
|
|
159
160
|
}
|
|
160
161
|
/**
|
|
161
|
-
* Type guard for {@link
|
|
162
|
+
* Type guard for {@link IAiAssistantPublisherDocumentSavedEvent}.
|
|
162
163
|
*
|
|
163
164
|
* @remarks
|
|
164
165
|
* Validates the payload shape too, so a malformed event is rejected rather than narrowed to a type
|
|
@@ -166,19 +167,52 @@ export function aiAssistantReportSaved(payload) {
|
|
|
166
167
|
*
|
|
167
168
|
* @alpha
|
|
168
169
|
*/
|
|
169
|
-
export function
|
|
170
|
+
export function isAiAssistantPublisherDocumentSavedEvent(obj) {
|
|
170
171
|
if (typeof obj !== "object" ||
|
|
171
172
|
obj === null ||
|
|
172
|
-
obj.type !==
|
|
173
|
+
obj.type !== PluggableAppEventType.AI_ASSISTANT_PUBLISHER_DOCUMENT_SAVED) {
|
|
173
174
|
return false;
|
|
174
175
|
}
|
|
175
176
|
const payload = obj.payload;
|
|
176
177
|
if (typeof payload !== "object" || payload === null || Array.isArray(payload)) {
|
|
177
178
|
return false;
|
|
178
179
|
}
|
|
179
|
-
const { conversationId, itemId,
|
|
180
|
+
const { conversationId, itemId, documentRef, savedDocumentId } = payload;
|
|
180
181
|
return (typeof conversationId === "string" &&
|
|
181
182
|
typeof itemId === "string" &&
|
|
182
|
-
(
|
|
183
|
-
typeof
|
|
183
|
+
(documentRef === undefined || typeof documentRef === "string") &&
|
|
184
|
+
typeof savedDocumentId === "string");
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Creates an {@link IAiAssistantDashboardSavedEvent}.
|
|
188
|
+
*
|
|
189
|
+
* @alpha
|
|
190
|
+
*/
|
|
191
|
+
export function aiAssistantDashboardSaved(payload) {
|
|
192
|
+
return { type: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.DASHBOARD_SAVED", payload };
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Type guard for {@link IAiAssistantDashboardSavedEvent}.
|
|
196
|
+
*
|
|
197
|
+
* @alpha
|
|
198
|
+
*/
|
|
199
|
+
export function isAiAssistantDashboardSavedEvent(obj) {
|
|
200
|
+
if (typeof obj !== "object" ||
|
|
201
|
+
obj === null ||
|
|
202
|
+
obj.type !== "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.DASHBOARD_SAVED") {
|
|
203
|
+
return false;
|
|
204
|
+
}
|
|
205
|
+
const payload = obj.payload;
|
|
206
|
+
if (typeof payload !== "object" || payload === null || Array.isArray(payload)) {
|
|
207
|
+
return false;
|
|
208
|
+
}
|
|
209
|
+
const { conversationId, originalDashboardId, savedDashboardId, savedInsights } = payload;
|
|
210
|
+
return (typeof conversationId === "string" &&
|
|
211
|
+
typeof originalDashboardId === "string" &&
|
|
212
|
+
typeof savedDashboardId === "string" &&
|
|
213
|
+
Array.isArray(savedInsights) &&
|
|
214
|
+
savedInsights.every((insight) => typeof insight === "object" &&
|
|
215
|
+
insight !== null &&
|
|
216
|
+
typeof insight.originalInsightId === "string" &&
|
|
217
|
+
typeof insight.savedInsightId === "string"));
|
|
184
218
|
}
|
|
@@ -34,11 +34,18 @@ export declare function aiAssistantContextChanged(payload?: {
|
|
|
34
34
|
}): IAiAssistantContextChangedEvent;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
* Creates an {@link
|
|
37
|
+
* Creates an {@link IAiAssistantDashboardSavedEvent}.
|
|
38
38
|
*
|
|
39
39
|
* @alpha
|
|
40
40
|
*/
|
|
41
|
-
export declare function
|
|
41
|
+
export declare function aiAssistantDashboardSaved(payload: IAiAssistantDashboardSavedEvent["payload"]): IAiAssistantDashboardSavedEvent;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Creates an {@link IAiAssistantPublisherDocumentSavedEvent}.
|
|
45
|
+
*
|
|
46
|
+
* @alpha
|
|
47
|
+
*/
|
|
48
|
+
export declare function aiAssistantPublisherDocumentSaved(payload: IAiAssistantPublisherDocumentSavedEvent["payload"]): IAiAssistantPublisherDocumentSavedEvent;
|
|
42
49
|
|
|
43
50
|
/**
|
|
44
51
|
* Creates an {@link ICloseAiAssistantRequestedEvent}.
|
|
@@ -150,35 +157,53 @@ export declare interface IAiAssistantContextChangedEvent extends IPluggableAppEv
|
|
|
150
157
|
}
|
|
151
158
|
|
|
152
159
|
/**
|
|
153
|
-
* Event telling the host assistant that a
|
|
160
|
+
* Event telling the host assistant that a dashboard and its draft insights were saved.
|
|
161
|
+
*
|
|
162
|
+
* @alpha
|
|
163
|
+
*/
|
|
164
|
+
export declare interface IAiAssistantDashboardSavedEvent extends IPluggableAppEvent {
|
|
165
|
+
readonly type: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.DASHBOARD_SAVED";
|
|
166
|
+
readonly payload: {
|
|
167
|
+
readonly conversationId: string;
|
|
168
|
+
readonly originalDashboardId: string;
|
|
169
|
+
readonly savedDashboardId: string;
|
|
170
|
+
readonly savedInsights: ReadonlyArray<{
|
|
171
|
+
readonly originalInsightId: string;
|
|
172
|
+
readonly savedInsightId: string;
|
|
173
|
+
}>;
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Event telling the host assistant that a document it drafted was saved.
|
|
154
179
|
*
|
|
155
180
|
* @remarks
|
|
156
181
|
* The assistant keeps its own copy of the conversation, which only learns about a save when the
|
|
157
|
-
* thread is loaded again. The application that saved the
|
|
158
|
-
*
|
|
182
|
+
* thread is loaded again. The application that saved the document emits this once per save, so the
|
|
183
|
+
* document in the chat reads as saved and links to the saved document right away.
|
|
159
184
|
*
|
|
160
185
|
* @alpha
|
|
161
186
|
*/
|
|
162
|
-
export declare interface
|
|
163
|
-
readonly type: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.
|
|
187
|
+
export declare interface IAiAssistantPublisherDocumentSavedEvent extends IPluggableAppEvent {
|
|
188
|
+
readonly type: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.PUBLISHER_DOCUMENT_SAVED";
|
|
164
189
|
readonly payload: {
|
|
165
190
|
/**
|
|
166
|
-
* Conversation the
|
|
191
|
+
* Conversation the document was drafted in.
|
|
167
192
|
*/
|
|
168
193
|
readonly conversationId: string;
|
|
169
194
|
/**
|
|
170
|
-
* Conversation item that holds the drafted
|
|
195
|
+
* Conversation item that holds the drafted document.
|
|
171
196
|
*/
|
|
172
197
|
readonly itemId: string;
|
|
173
198
|
/**
|
|
174
|
-
* Name of the
|
|
175
|
-
*
|
|
199
|
+
* Name of the document within the item. Omitted when the draft carries none; the item's only
|
|
200
|
+
* document is meant then.
|
|
176
201
|
*/
|
|
177
|
-
readonly
|
|
202
|
+
readonly documentRef?: string;
|
|
178
203
|
/**
|
|
179
|
-
* Identifier of the
|
|
204
|
+
* Identifier of the document the draft was saved as.
|
|
180
205
|
*/
|
|
181
|
-
readonly
|
|
206
|
+
readonly savedDocumentId: string;
|
|
182
207
|
};
|
|
183
208
|
}
|
|
184
209
|
|
|
@@ -988,7 +1013,7 @@ export declare interface IPluggableAppTelemetryCallbacks {
|
|
|
988
1013
|
* @remarks
|
|
989
1014
|
* Pluggable applications describe an event with these neutral groups and must NOT assume any particular
|
|
990
1015
|
* analytics backend (Matomo, …) — the host shell decides how to record them. `identifiers` are
|
|
991
|
-
* sensitive entity ids (workspace, dashboard,
|
|
1016
|
+
* sensitive entity ids (workspace, dashboard, document, …) the shell may hash and aggregate; `stats` are
|
|
992
1017
|
* contextual metrics (counts, types, …). Any other key is a free-form event property. Passed as the `data`
|
|
993
1018
|
* argument of {@link IPluggableAppTelemetryCallbacks.trackEvent}.
|
|
994
1019
|
*
|
|
@@ -1024,7 +1049,14 @@ export declare interface IReloadPlatformContextRequestedEvent extends IPluggable
|
|
|
1024
1049
|
export declare function isAiAssistantContextChangedEvent(obj: unknown): obj is IAiAssistantContextChangedEvent;
|
|
1025
1050
|
|
|
1026
1051
|
/**
|
|
1027
|
-
* Type guard for {@link
|
|
1052
|
+
* Type guard for {@link IAiAssistantDashboardSavedEvent}.
|
|
1053
|
+
*
|
|
1054
|
+
* @alpha
|
|
1055
|
+
*/
|
|
1056
|
+
export declare function isAiAssistantDashboardSavedEvent(obj: unknown): obj is IAiAssistantDashboardSavedEvent;
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* Type guard for {@link IAiAssistantPublisherDocumentSavedEvent}.
|
|
1028
1060
|
*
|
|
1029
1061
|
* @remarks
|
|
1030
1062
|
* Validates the payload shape too, so a malformed event is rejected rather than narrowed to a type
|
|
@@ -1032,7 +1064,7 @@ export declare function isAiAssistantContextChangedEvent(obj: unknown): obj is I
|
|
|
1032
1064
|
*
|
|
1033
1065
|
* @alpha
|
|
1034
1066
|
*/
|
|
1035
|
-
export declare function
|
|
1067
|
+
export declare function isAiAssistantPublisherDocumentSavedEvent(obj: unknown): obj is IAiAssistantPublisherDocumentSavedEvent;
|
|
1036
1068
|
|
|
1037
1069
|
/**
|
|
1038
1070
|
* Type guard for {@link ICloseAiAssistantRequestedEvent}.
|
|
@@ -1168,7 +1200,8 @@ export declare const PluggableAppEventType: {
|
|
|
1168
1200
|
readonly AI_ASSISTANT_OPEN_REQUESTED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.OPEN_REQUESTED";
|
|
1169
1201
|
readonly AI_ASSISTANT_CLOSE_REQUESTED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.CLOSE_REQUESTED";
|
|
1170
1202
|
readonly AI_ASSISTANT_CONTEXT_CHANGED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.CONTEXT_CHANGED";
|
|
1171
|
-
readonly
|
|
1203
|
+
readonly AI_ASSISTANT_PUBLISHER_DOCUMENT_SAVED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.PUBLISHER_DOCUMENT_SAVED";
|
|
1204
|
+
readonly AI_ASSISTANT_DASHBOARD_SAVED: "GDC.PLUGGABLE_APP/EVT.AI_ASSISTANT.DASHBOARD_SAVED";
|
|
1172
1205
|
};
|
|
1173
1206
|
|
|
1174
1207
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-pluggable-application-model",
|
|
3
|
-
"version": "11.62.0-alpha.
|
|
3
|
+
"version": "11.62.0-alpha.2",
|
|
4
4
|
"description": "GoodData SDK model contracts for pluggable applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"ts-invariant": "0.10.3",
|
|
25
25
|
"tslib": "2.8.1",
|
|
26
|
-
"@gooddata/sdk-model": "11.62.0-alpha.
|
|
26
|
+
"@gooddata/sdk-model": "11.62.0-alpha.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@microsoft/api-documenter": "7.30.16",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"oxlint-plugin-eslint": "1.82.0",
|
|
45
45
|
"oxlint-tsgolint": "7.0.2001",
|
|
46
46
|
"typescript": "7.0.2",
|
|
47
|
-
"@gooddata/eslint-config": "11.62.0-alpha.
|
|
48
|
-
"@gooddata/oxlint-config": "11.62.0-alpha.
|
|
47
|
+
"@gooddata/eslint-config": "11.62.0-alpha.2",
|
|
48
|
+
"@gooddata/oxlint-config": "11.62.0-alpha.2"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"_phase:build": "npm run build",
|