Skip to content

feat: add PackageTrustLink.list for Public Secure PBO requests - #917

Open
btrn11 wants to merge 5 commits into
packaging-distribution/spifrom
t/packaging-distribution/link-list
Open

feat: add PackageTrustLink.list for Public Secure PBO requests#917
btrn11 wants to merge 5 commits into
packaging-distribution/spifrom
t/packaging-distribution/link-list

Conversation

@btrn11

@btrn11 btrn11 commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds PackageTrustLink.list(connection, status?) on the class from #918 (already merged). Does not reimplement request.
  • Lists inbound VerifiedDev trust links for the connected PBO (OrganizationType = Verified, exclude self-trust, newest first).
  • Maps CLI --status values pending|approved|declined|revoked to Tooling Pending|Accepted|Declined|Revoked.
  • Requires API 68.0+ (numeric comparison). List messages live in package_trust_link.md next 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)
  • Rebased onto packaging-distribution/spi after feat: add PackageLink.request for auth org trust link (W-23970567) #918; no duplicate PackageLink class
  • CI unit tests on this PR
  • Merge this before plugin #1269
  • sf package trust link list against a verified org after the plugin PR lands

sshyamala-sfdc and others added 2 commits August 25, 2026 23:35
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.
btrn11 added 3 commits August 26, 2026 11:07
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.
@btrn11 btrn11 changed the title feat: add PackageLink.list for Public Secure PBO requests feat: add PackageTrustLink.list for Public Secure PBO requests Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants