@pptb/types 1.2.8-beta.1 → 1.2.8
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 +7 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -832,9 +832,9 @@ Core platform features organized into namespaces:
|
|
|
832
832
|
- Events available:
|
|
833
833
|
- `tool:loaded` - A tool has been loaded
|
|
834
834
|
- `tool:unloaded` - A tool has been unloaded
|
|
835
|
-
- `connection:created` - A new connection was created
|
|
836
|
-
- `connection:updated` - An existing connection was updated
|
|
837
|
-
- `connection:deleted` - A connection was deleted
|
|
835
|
+
- `connection:created` - A new connection was created; data contains allowlisted connection metadata only
|
|
836
|
+
- `connection:updated` - An existing connection was updated; data contains `id` and optional `updates` (allowlisted metadata), `isActive`, or `tokenRefreshed`
|
|
837
|
+
- `connection:deleted` - A connection was deleted; data contains `id` only
|
|
838
838
|
- `notification:shown` - A notification was displayed
|
|
839
839
|
- `terminal:created` - A new terminal was created
|
|
840
840
|
- `terminal:closed` - A terminal was closed
|
|
@@ -842,6 +842,10 @@ Core platform features organized into namespaces:
|
|
|
842
842
|
- `terminal:command:completed` - A terminal command finished executing
|
|
843
843
|
- `terminal:error` - A terminal error occurred
|
|
844
844
|
|
|
845
|
+
Connection events are sanitized before broadcasting or retention in event history. Connection metadata is limited to `id`, `name`, `url`, `environment`, `createdAt`, `lastUsedAt`,
|
|
846
|
+
`isActive`, `category`, `environmentColor`, `categoryColor`, `enabledForPowerPlatformAPI`, and `scopesForPowerPlatformAPI`. Credentials, tokens, authentication details, and unknown fields
|
|
847
|
+
are not included. An update that changes only credentials still emits an event with an empty `updates` object.
|
|
848
|
+
|
|
845
849
|
- **off(callback: (event: any, payload: ToolBoxEventPayload) => void)**: void
|
|
846
850
|
- Removes a previously registered event listener
|
|
847
851
|
|