Skip to content

Add DataSync PAM token resources and create permission - #255

Merged
jguz-pubnub merged 2 commits into
feat/data-syncfrom
feat/swift-data-sync-pam
Jul 28, 2026
Merged

Add DataSync PAM token resources and create permission#255
jguz-pubnub merged 2 commits into
feat/data-syncfrom
feat/swift-data-sync-pam

Conversation

@jguz-pubnub

@jguz-pubnub jguz-pubnub commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Support datasync:entities, datasync:memberships, and datasync:relationships
resource categories in parsed PAM tokens, plus the create (bit 16) permission,
including the KMP wrapper and parsing tests.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@pubnub pubnub deleted a comment from coderabbitai Bot Jul 23, 2026
@jguz-pubnub
jguz-pubnub marked this pull request as ready for review July 27, 2026 09:01
@pubnub pubnub deleted a comment from coderabbitai Bot Jul 27, 2026
@@ -61,11 +61,28 @@ public struct PAMTokenResource: Codable, Equatable, Hashable {
public let channels: [String: PAMPermission]
public let groups: [String: PAMPermission]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Projections will be added in separate PR, right ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Projections are part of the meta field which already exists here

…y_class_level

Wrap POST/PUT request bodies in the {"data": ...} envelope required by the
DataSync service, matching the response-side envelope the SDK already decodes.
Expose the entity_class_level query param on entity/user/channel list
endpoints and add optional entityClass/entityClassLevel to the user/channel
create bodies to match the spec's create request schemas.
@pubnub pubnub deleted a comment from coderabbitai Bot Jul 28, 2026
@jguz-pubnub
jguz-pubnub merged commit 8f2e07f into feat/data-sync Jul 28, 2026
13 checks passed
@jguz-pubnub
jguz-pubnub deleted the feat/swift-data-sync-pam branch July 28, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants