@bikefinder/sdk 0.27.2 → 0.28.0

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
@@ -1,6 +1,8 @@
1
1
  # @bikefinder/sdk
2
2
 
3
- Version 0.27.2 uses the canonical API contracts directly for HTTP and WebSocket
3
+ Version 0.28.0 adds live photo metadata pages through
4
+ `client.api.trackers.photos.watchPage`. Deploy this API endpoint before updating
5
+ consumers that subscribe to photos. The SDK uses the canonical API contracts directly for HTTP and WebSocket
4
6
  responses. Deploy the API's availability-state contract before updating consumers;
5
7
  retired nullable response formats are rejected rather than translated.
6
8
 
@@ -47,7 +49,10 @@ Full reconnects end existing subscriptions. Use `onReconnect` to explicitly
47
49
  subscribe again. The SDK does not replay events or retry writes automatically.
48
50
  Retain the original request ID when explicitly retrying an uncertain mutation.
49
51
 
50
- Photos use the normal typed HTTP API for authorization and metadata. The upload
52
+ Photo metadata supports HTTP `list` and WebSocket `watchPage`, with the same
53
+ cursor pagination and current-member authorization. Each watch ends if membership
54
+ is revoked, credentials expire, or the tracker is recreated. Use small pages
55
+ (e.g. `limit: 20`) to stay within the encoded realtime frame limit. The upload
51
56
  helper sends JPEG bytes directly to private staging storage, then asks the API
52
57
  to sanitize and publish the image:
53
58
 
@@ -789,7 +789,11 @@ var trackerContract = {
789
789
  subscription: subscriptionAllocationContract,
790
790
  theft: theftContract,
791
791
  lookup: trackerLookupContract,
792
- photos: { ...trackerPhotoContract, uploads: photoUploadContract },
792
+ photos: {
793
+ ...trackerPhotoContract,
794
+ uploads: photoUploadContract,
795
+ watchPage: oc15.meta({ operation: "read" }).errors(apiErrors).input(photoPageInput).output(eventIterator3(photoPage))
796
+ },
793
797
  invitations: trackerInvitationContract,
794
798
  ...trackerChangeContract,
795
799
  claim: oc15.errors(apiErrors).input(trackerClaimInput).output(z18.void()),