feat: add PackageTrustLink.list for Public Secure PBO requests - #917
Open
btrn11 wants to merge 5 commits into
Open
feat: add PackageTrustLink.list for Public Secure PBO requests#917btrn11 wants to merge 5 commits into
btrn11 wants to merge 5 commits into
Conversation
Add the PackageLink library class that creates a Public Secure trust relationship (PkgVrfyAuthOrgTrustRela) from a connected authoring org to a Verified Partner Business Org via the Tooling API. Includes the PackageLinkRequestOptions/Result types, an Organization Id (00D) entry in the ID registry, messages, and unit tests. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Query PkgVrfyAuthOrgTrustRela over Tooling, matching core inbound VerifiedDev lists, so the CLI can list PBO link requests.
4 tasks
Keep PackageLink.request from W-23970567 as the library surface and add PBO-admin list as a static method so the two commands share one class.
Keep PackageTrustLink.request from #918 and add PBO list on that class.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PackageTrustLink.list(connection, status?)on the class from #918 (already merged). Does not reimplementrequest.OrganizationType = Verified, exclude self-trust, newest first).--statusvaluespending|approved|declined|revokedto ToolingPending|Accepted|Declined|Revoked.package_trust_link.mdnext to the request messages.Companion CLI: salesforcecli/plugin-packaging#1269 (
sf package trust link list).Test plan
yarn mocha test/package/packageTrustLink.test.ts(13 passing: 5 request + 8 list)packaging-distribution/spiafter feat: add PackageLink.request for auth org trust link (W-23970567) #918; no duplicatePackageLinkclasssf package trust link listagainst a verified org after the plugin PR lands