Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

types/capability: allow wildcard capability when presented in object form, add privileged-headers capability #1765

Merged
merged 2 commits into from
May 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ably.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,7 @@
| 'channel-metadata'
| 'push-subscribe'
| 'push-admin';

/**
* Capabilities which are available for use within {@link TokenParams}.
*/
Expand All @@ -698,7 +699,7 @@
*
* @defaultValue `'{"*":["*"]}'`
*/
capability?: { [key: string]: capabilityOp[] } | string;
capability?: { [key: string]: capabilityOp[] | ['*'] } | string;
VeskeR marked this conversation as resolved.
Show resolved Hide resolved
/**
* A client ID, used for identifying this client when publishing messages or for presence purposes. The `clientId` can be any non-empty string, except it cannot contain a `*`. This option is primarily intended to be used in situations where the library is instantiated with a key. Note that a `clientId` may also be implicit in a token used to instantiate the library. An error is raised if a `clientId` specified here conflicts with the `clientId` implicit in the token. Find out more about [identified clients](https://ably.com/docs/core-features/authentication#identified-clients).
*/
Expand Down Expand Up @@ -2179,7 +2180,7 @@
* and {@link ChannelOptions}, or returns the existing channel object.
*
* @experimental This is a preview feature and may change in a future non-major release.
* This experimental method allows you to create custom realtime data feeds by selectively subscribing

Check warning on line 2183 in ably.d.ts

View workflow job for this annotation

GitHub Actions / lint

Expected no lines between tags
* to receive only part of the data from the channel.
* See the [announcement post](https://pages.ably.com/subscription-filters-preview) for more information.
*
Expand Down
Loading