@botpress/sdk 4.7.0 → 4.8.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.
@@ -13,6 +13,7 @@ export type IntegrationDefinitionProps<TName extends string = string, TVersion e
13
13
  description?: string;
14
14
  icon?: string;
15
15
  readme?: string;
16
+ attributes?: Record<string, string>;
16
17
  identifier?: {
17
18
  extractScript?: string;
18
19
  fallbackHandlerScript?: string;
@@ -107,6 +108,7 @@ export declare class IntegrationDefinition<TName extends string = string, TVersi
107
108
  readonly entities: this['props']['entities'];
108
109
  readonly interfaces: this['props']['interfaces'];
109
110
  readonly __advanced: this['props']['__advanced'];
111
+ readonly attributes: this['props']['attributes'];
110
112
  constructor(props: IntegrationDefinitionProps<TName, TVersion, TConfig, TConfigs, TEvents, TActions, TChannels, TStates, TEntities>);
111
113
  extend<P extends InterfacePackage>(interfacePkg: P, builder: ExtensionBuilder<TEntities, TActions, TEvents, TChannels, EntitiesOfPackage<P>, ActionsOfPackage<P>, EventsOfPackage<P>, ChannelsOfPackage<P>>): this;
112
114
  private _callBuilder;
@@ -39,6 +39,7 @@ export type InterfaceDefinitionProps<TName extends string = string, TVersion ext
39
39
  description?: string;
40
40
  icon?: string;
41
41
  readme?: string;
42
+ attributes?: Record<string, string>;
42
43
  entities?: {
43
44
  [K in keyof TEntities]: EntityDefinition<TEntities[K]>;
44
45
  };
@@ -60,6 +61,7 @@ export declare class InterfaceDefinition<TName extends string = string, TVersion
60
61
  readonly description: this['props']['description'];
61
62
  readonly icon: this['props']['icon'];
62
63
  readonly readme: this['props']['readme'];
64
+ readonly attributes: this['props']['attributes'];
63
65
  readonly entities: {
64
66
  [K in keyof TEntities]: EntityDefinition<TEntities[K]>;
65
67
  };
package/dist/package.d.ts CHANGED
@@ -9,8 +9,11 @@ type PackageReference = NameVersion & {
9
9
  id?: string;
10
10
  uri?: string;
11
11
  };
12
+ type Attributes = {
13
+ attributes?: Record<string, string>;
14
+ };
12
15
  type IntegrationPackageDefinitionInterface = utils.Merge<PackageReference, integration.InterfaceExtension>;
13
- type IntegrationPackageDefinition = NameVersion & {
16
+ type IntegrationPackageDefinition = NameVersion & Attributes & {
14
17
  configuration?: integration.ConfigurationDefinition;
15
18
  configurations?: Record<string, integration.AdditionalConfigurationDefinition>;
16
19
  events?: Record<string, integration.EventDefinition>;
@@ -22,13 +25,13 @@ type IntegrationPackageDefinition = NameVersion & {
22
25
  entities?: Record<string, integration.EntityDefinition>;
23
26
  interfaces?: Record<string, IntegrationPackageDefinitionInterface>;
24
27
  };
25
- type InterfacePackageDefinition = NameVersion & {
28
+ type InterfacePackageDefinition = NameVersion & Attributes & {
26
29
  entities?: Record<string, integration.EntityDefinition>;
27
30
  events?: Record<string, integration.EventDefinition>;
28
31
  actions?: Record<string, integration.ActionDefinition>;
29
32
  channels?: Record<string, integration.ChannelDefinition>;
30
33
  };
31
- type PluginPackageDefinition = NameVersion & {
34
+ type PluginPackageDefinition = NameVersion & Attributes & {
32
35
  integrations?: Record<string, PackageReference>;
33
36
  interfaces?: Record<string, PackageReference>;
34
37
  user?: plugin.UserDefinition;
@@ -17,6 +17,7 @@ export type PluginDefinitionProps<TName extends string = string, TVersion extend
17
17
  description?: string;
18
18
  icon?: string;
19
19
  readme?: string;
20
+ attributes?: Record<string, string>;
20
21
  integrations?: {
21
22
  [K in keyof TIntegrations]: IntegrationPackage;
22
23
  };
@@ -56,6 +57,7 @@ export declare class PluginDefinition<TName extends string = string, TVersion ex
56
57
  readonly description: this['props']['description'];
57
58
  readonly icon: this['props']['icon'];
58
59
  readonly readme: this['props']['readme'];
60
+ readonly attributes: this['props']['attributes'];
59
61
  readonly integrations: this['props']['integrations'];
60
62
  readonly interfaces: this['props']['interfaces'];
61
63
  readonly user: this['props']['user'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/sdk",
3
- "version": "4.7.0",
3
+ "version": "4.8.0",
4
4
  "description": "Botpress SDK",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -16,7 +16,7 @@
16
16
  "author": "",
17
17
  "license": "MIT",
18
18
  "dependencies": {
19
- "@botpress/client": "1.12.0",
19
+ "@botpress/client": "1.14.0",
20
20
  "browser-or-node": "^2.1.1"
21
21
  },
22
22
  "devDependencies": {