@gooddata/sdk-pluggable-application-model 11.63.0-alpha.0 → 11.63.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 +44 -1
- package/esm/mount.d.ts.map +1 -1
- package/esm/mount.js +21 -0
- package/esm/sdk-pluggable-application-model.d.ts +46 -0
- 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.63.0-alpha.
|
|
4
|
+
export const LIB_VERSION = "11.63.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 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";
|
|
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, type IAiAssistantPublisherDocumentDefinition, isAiAssistantPublisherDocumentDefinition, 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,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,+BAA+B,EACpC,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,EACpC,WAAW,EACX,mBAAmB,EACnB,yBAAyB,GAC5B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAEnD,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,uCAAuC,EAC5C,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,+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D,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,uCAAuC,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,KAAK,uCAAuC,EAC5C,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, isAiAssistantPublisherDocumentSavedEvent, isReloadPlatformContextRequestedEvent, openAiAssistantRequested, closeAiAssistantRequested, aiAssistantContextChanged, aiAssistantPublisherDocumentSaved, aiAssistantDashboardSaved, isAiAssistantDashboardSavedEvent, PluggableAppEventType, reloadPlatformContextRequested, } from "./mount.js";
|
|
11
|
+
export { documentTitleChanged, isDocumentTitleChangedEvent, isOpenAiAssistantRequestedEvent, isCloseAiAssistantRequestedEvent, isAiAssistantContextChangedEvent, isAiAssistantPublisherDocumentSavedEvent, isAiAssistantPublisherDocumentDefinition, 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IGenAIUserContext } from "@gooddata/sdk-model";
|
|
1
|
+
import { type IGenAIUserContext, type IPublisherDocumentDefinition } from "@gooddata/sdk-model";
|
|
2
2
|
import { type IPlatformContext } from "./platformContext.js";
|
|
3
3
|
/**
|
|
4
4
|
* Known generic pluggable application event types.
|
|
@@ -306,6 +306,49 @@ export declare function aiAssistantPublisherDocumentSaved(payload: IAiAssistantP
|
|
|
306
306
|
* @alpha
|
|
307
307
|
*/
|
|
308
308
|
export declare function isAiAssistantPublisherDocumentSavedEvent(obj: unknown): obj is IAiAssistantPublisherDocumentSavedEvent;
|
|
309
|
+
/**
|
|
310
|
+
* A document version the host assistant drafted, carried by the `chat.definition-received` event an
|
|
311
|
+
* application receives through {@link IPluggableApplicationMountHandle.onAiAssistantEventReceive}.
|
|
312
|
+
*
|
|
313
|
+
* @remarks
|
|
314
|
+
* The assistant writes these fields and the editor applies the version from them, so both type them
|
|
315
|
+
* from here.
|
|
316
|
+
*
|
|
317
|
+
* @alpha
|
|
318
|
+
*/
|
|
319
|
+
export interface IAiAssistantPublisherDocumentDefinition {
|
|
320
|
+
/**
|
|
321
|
+
* The whole document version.
|
|
322
|
+
*/
|
|
323
|
+
readonly publisherDocument: IPublisherDocumentDefinition;
|
|
324
|
+
/**
|
|
325
|
+
* Name of the document version in the conversation, the one its save is recorded under.
|
|
326
|
+
*/
|
|
327
|
+
readonly documentRef?: string;
|
|
328
|
+
/**
|
|
329
|
+
* Name of the document version this one reworks.
|
|
330
|
+
*/
|
|
331
|
+
readonly refines?: string;
|
|
332
|
+
/**
|
|
333
|
+
* Whether the version was written from the document open in the editor.
|
|
334
|
+
*/
|
|
335
|
+
readonly reworksOpenDocument?: boolean;
|
|
336
|
+
/**
|
|
337
|
+
* Identifier of the saved document this version edits.
|
|
338
|
+
*/
|
|
339
|
+
readonly baseDocumentId?: string;
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* Type guard for the fields of {@link IAiAssistantPublisherDocumentDefinition}.
|
|
343
|
+
*
|
|
344
|
+
* @remarks
|
|
345
|
+
* The document itself stays `unknown`: whoever applies it validates it.
|
|
346
|
+
*
|
|
347
|
+
* @alpha
|
|
348
|
+
*/
|
|
349
|
+
export declare function isAiAssistantPublisherDocumentDefinition(obj: unknown): obj is Omit<IAiAssistantPublisherDocumentDefinition, "publisherDocument"> & {
|
|
350
|
+
readonly publisherDocument: unknown;
|
|
351
|
+
};
|
|
309
352
|
/**
|
|
310
353
|
* Event telling the host assistant that a dashboard and its draft insights were saved.
|
|
311
354
|
*
|
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;
|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iC,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
|
@@ -183,6 +183,27 @@ export function isAiAssistantPublisherDocumentSavedEvent(obj) {
|
|
|
183
183
|
(documentRef === undefined || typeof documentRef === "string") &&
|
|
184
184
|
typeof savedDocumentId === "string");
|
|
185
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
* Type guard for the fields of {@link IAiAssistantPublisherDocumentDefinition}.
|
|
188
|
+
*
|
|
189
|
+
* @remarks
|
|
190
|
+
* The document itself stays `unknown`: whoever applies it validates it.
|
|
191
|
+
*
|
|
192
|
+
* @alpha
|
|
193
|
+
*/
|
|
194
|
+
export function isAiAssistantPublisherDocumentDefinition(obj) {
|
|
195
|
+
if (typeof obj !== "object" || obj === null) {
|
|
196
|
+
return false;
|
|
197
|
+
}
|
|
198
|
+
const { publisherDocument, documentRef, refines, reworksOpenDocument, baseDocumentId } = obj;
|
|
199
|
+
return (typeof publisherDocument === "object" &&
|
|
200
|
+
publisherDocument !== null &&
|
|
201
|
+
!Array.isArray(publisherDocument) &&
|
|
202
|
+
(documentRef === undefined || typeof documentRef === "string") &&
|
|
203
|
+
(refines === undefined || typeof refines === "string") &&
|
|
204
|
+
(reworksOpenDocument === undefined || typeof reworksOpenDocument === "boolean") &&
|
|
205
|
+
(baseDocumentId === undefined || typeof baseDocumentId === "string"));
|
|
206
|
+
}
|
|
186
207
|
/**
|
|
187
208
|
* Creates an {@link IAiAssistantDashboardSavedEvent}.
|
|
188
209
|
*
|
|
@@ -9,6 +9,7 @@ import { IColorPalette } from '@gooddata/sdk-model';
|
|
|
9
9
|
import { IEntitlementDescriptor } from '@gooddata/sdk-model';
|
|
10
10
|
import { IGenAIUserContext } from '@gooddata/sdk-model';
|
|
11
11
|
import { ILocale } from '@gooddata/sdk-model';
|
|
12
|
+
import { IPublisherDocumentDefinition } from '@gooddata/sdk-model';
|
|
12
13
|
import { ITheme } from '@gooddata/sdk-model';
|
|
13
14
|
import { IUser } from '@gooddata/sdk-model';
|
|
14
15
|
import { IUserSettings } from '@gooddata/sdk-model';
|
|
@@ -174,6 +175,39 @@ export declare interface IAiAssistantDashboardSavedEvent extends IPluggableAppEv
|
|
|
174
175
|
};
|
|
175
176
|
}
|
|
176
177
|
|
|
178
|
+
/**
|
|
179
|
+
* A document version the host assistant drafted, carried by the `chat.definition-received` event an
|
|
180
|
+
* application receives through {@link IPluggableApplicationMountHandle.onAiAssistantEventReceive}.
|
|
181
|
+
*
|
|
182
|
+
* @remarks
|
|
183
|
+
* The assistant writes these fields and the editor applies the version from them, so both type them
|
|
184
|
+
* from here.
|
|
185
|
+
*
|
|
186
|
+
* @alpha
|
|
187
|
+
*/
|
|
188
|
+
export declare interface IAiAssistantPublisherDocumentDefinition {
|
|
189
|
+
/**
|
|
190
|
+
* The whole document version.
|
|
191
|
+
*/
|
|
192
|
+
readonly publisherDocument: IPublisherDocumentDefinition;
|
|
193
|
+
/**
|
|
194
|
+
* Name of the document version in the conversation, the one its save is recorded under.
|
|
195
|
+
*/
|
|
196
|
+
readonly documentRef?: string;
|
|
197
|
+
/**
|
|
198
|
+
* Name of the document version this one reworks.
|
|
199
|
+
*/
|
|
200
|
+
readonly refines?: string;
|
|
201
|
+
/**
|
|
202
|
+
* Whether the version was written from the document open in the editor.
|
|
203
|
+
*/
|
|
204
|
+
readonly reworksOpenDocument?: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Identifier of the saved document this version edits.
|
|
207
|
+
*/
|
|
208
|
+
readonly baseDocumentId?: string;
|
|
209
|
+
}
|
|
210
|
+
|
|
177
211
|
/**
|
|
178
212
|
* Event telling the host assistant that a document it drafted was saved.
|
|
179
213
|
*
|
|
@@ -1055,6 +1089,18 @@ export declare function isAiAssistantContextChangedEvent(obj: unknown): obj is I
|
|
|
1055
1089
|
*/
|
|
1056
1090
|
export declare function isAiAssistantDashboardSavedEvent(obj: unknown): obj is IAiAssistantDashboardSavedEvent;
|
|
1057
1091
|
|
|
1092
|
+
/**
|
|
1093
|
+
* Type guard for the fields of {@link IAiAssistantPublisherDocumentDefinition}.
|
|
1094
|
+
*
|
|
1095
|
+
* @remarks
|
|
1096
|
+
* The document itself stays `unknown`: whoever applies it validates it.
|
|
1097
|
+
*
|
|
1098
|
+
* @alpha
|
|
1099
|
+
*/
|
|
1100
|
+
export declare function isAiAssistantPublisherDocumentDefinition(obj: unknown): obj is Omit<IAiAssistantPublisherDocumentDefinition, "publisherDocument"> & {
|
|
1101
|
+
readonly publisherDocument: unknown;
|
|
1102
|
+
};
|
|
1103
|
+
|
|
1058
1104
|
/**
|
|
1059
1105
|
* Type guard for {@link IAiAssistantPublisherDocumentSavedEvent}.
|
|
1060
1106
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-pluggable-application-model",
|
|
3
|
-
"version": "11.63.0-alpha.
|
|
3
|
+
"version": "11.63.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.63.0-alpha.
|
|
26
|
+
"@gooddata/sdk-model": "11.63.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.63.0-alpha.
|
|
48
|
-
"@gooddata/oxlint-config": "11.63.0-alpha.
|
|
47
|
+
"@gooddata/eslint-config": "11.63.0-alpha.2",
|
|
48
|
+
"@gooddata/oxlint-config": "11.63.0-alpha.2"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"_phase:build": "npm run build",
|