@spoketech/hub-client 0.1.23 → 0.1.24

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 CHANGED
@@ -293,6 +293,7 @@ All routes below are relative to `/api/v1`. The promise client and the Effect cl
293
293
  | --- | --- | --- | --- |
294
294
  | `client.members.listOrganizationMembers({ params, query })` | `GET /organizations/:organizationId/members` | `params.organizationId`, optional paging and search `query` | `OrganizationMembersListResponse` |
295
295
  | `client.members.getOrganizationMember({ params, query })` | `GET /organizations/:organizationId/members/:memberId` | `params.organizationId`, `params.memberId`, optional `responseMode` | `MemberResponse` |
296
+ | `client.members.getOrganizationMemberByExternalSystemId({ params, query })` | `GET /organizations/:organizationId/members/by-external-system-id/:externalSystemMemberId` | `params.organizationId`, `params.externalSystemMemberId`, optional `responseMode` | One `MemberResponse`; 404 when missing |
296
297
  | `client.members.listOrganizationMemberMembershipTypes({ params, query })` | `GET /organizations/:organizationId/members/membership-types` | `params.organizationId`, optional `page`, `pageSize` | `PaginatedOrganizationMemberMembershipTypes` |
297
298
  | `client.members.listOrganizationMemberRatingGrades({ params, query })` | `GET /organizations/:organizationId/members/rating-grades` | `params.organizationId`, optional `page`, `pageSize` | `PaginatedOrganizationMemberRatingGrades` |
298
299
  | `client.members.createOrganizationMember({ params, payload })` | `POST /organizations/:organizationId/members` | `params.organizationId`, `CreateMemberInput` for local-member creation | `Member` |
@@ -414,3 +415,14 @@ This is configuration discovery: it does not probe onsite connectivity or grant
414
415
  operation permissions. An enabled capability can still fail at runtime. No
415
416
  provider configuration, credentials, or agent metadata are returned. Missing
416
417
  organizations return 404; callers without organization access are rejected.
418
+
419
+ Look up one member by its external system ID within an organization:
420
+
421
+ ```ts
422
+ const [member, error] = await client.members.getByExternalSystemId({
423
+ organizationId: "org_123",
424
+ externalSystemMemberId: "EXT-1001",
425
+ });
426
+ ```
427
+
428
+ This lookup excludes deleted members, returns a 404 when no member matches, and returns a 409 conflict if multiple members match. The database enforces external system ID uniqueness within each organization; the conflict check guards against a missing constraint.