Skip to content

Commit

Permalink
Fix bsync and bsky proto casing
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelbsky committed Jan 3, 2025
1 parent b6b2281 commit 22204d1
Show file tree
Hide file tree
Showing 6 changed files with 350 additions and 135 deletions.
3 changes: 2 additions & 1 deletion packages/bsky/proto/bsky.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,7 @@ message GetFollowsFollowingResponse {
repeated FollowsFollowing results = 1;
}

// Purchase
message PurchaseEntitlement {
repeated string entitlements = 1;
google.protobuf.Timestamp created_at = 2;
Expand All @@ -1101,7 +1102,7 @@ message GetPurchaseEntitlementsRequest {
}

message GetPurchaseEntitlementsResponse {
repeated PurchaseEntitlement purchaseEntitlements = 1;
repeated PurchaseEntitlement purchase_entitlements = 1;
}

// Ping
Expand Down
6 changes: 4 additions & 2 deletions packages/bsky/src/proto/bsky_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11247,6 +11247,8 @@ export class GetFollowsFollowingResponse extends Message<GetFollowsFollowingResp
}

/**
* Purchase
*
* @generated from message bsky.PurchaseEntitlement
*/
export class PurchaseEntitlement extends Message<PurchaseEntitlement> {
Expand Down Expand Up @@ -11376,7 +11378,7 @@ export class GetPurchaseEntitlementsRequest extends Message<GetPurchaseEntitleme
*/
export class GetPurchaseEntitlementsResponse extends Message<GetPurchaseEntitlementsResponse> {
/**
* @generated from field: repeated bsky.PurchaseEntitlement purchaseEntitlements = 1;
* @generated from field: repeated bsky.PurchaseEntitlement purchase_entitlements = 1;
*/
purchaseEntitlements: PurchaseEntitlement[] = []

Expand All @@ -11390,7 +11392,7 @@ export class GetPurchaseEntitlementsResponse extends Message<GetPurchaseEntitlem
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{
no: 1,
name: 'purchaseEntitlements',
name: 'purchase_entitlements',
kind: 'message',
T: PurchaseEntitlement,
repeated: true,
Expand Down
29 changes: 20 additions & 9 deletions packages/bsky/src/proto/bsync_connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import {
ScanMuteOperationsResponse,
ScanNotifOperationsRequest,
ScanNotifOperationsResponse,
ScanPurchaseOperationsRequest,
ScanPurchaseOperationsResponse,
} from './bsync_pb'
import { MethodKind } from '@bufbuild/protobuf'

Expand Down Expand Up @@ -70,15 +72,6 @@ export const Service = {
/**
* Purchase
*
* @generated from rpc bsync.Service.RefreshPurchases
*/
refreshPurchases: {
name: 'RefreshPurchases',
I: RefreshPurchasesRequest,
O: RefreshPurchasesResponse,
kind: MethodKind.Unary,
},
/**
* @generated from rpc bsync.Service.GetSubscriptions
*/
getSubscriptions: {
Expand All @@ -96,6 +89,24 @@ export const Service = {
O: GetSubscriptionGroupResponse,
kind: MethodKind.Unary,
},
/**
* @generated from rpc bsync.Service.RefreshPurchases
*/
refreshPurchases: {
name: 'RefreshPurchases',
I: RefreshPurchasesRequest,
O: RefreshPurchasesResponse,
kind: MethodKind.Unary,
},
/**
* @generated from rpc bsync.Service.ScanPurchaseOperations
*/
scanPurchaseOperations: {
name: 'ScanPurchaseOperations',
I: ScanPurchaseOperationsRequest,
O: ScanPurchaseOperationsResponse,
kind: MethodKind.Unary,
},
/**
* Ping
*
Expand Down
Loading

0 comments on commit 22204d1

Please sign in to comment.