-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3196 from bluesky-social/bsky-bsync-subscription-…
…endpoints
- Loading branch information
Showing
70 changed files
with
5,385 additions
and
144 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "app.bsky.purchase.getFeatures", | ||
"defs": { | ||
"main": { | ||
"type": "query", | ||
"description": "Enumerate unlocked paid feature flags for the requesting account. Requires auth.", | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["features"], | ||
"properties": { | ||
"features": { | ||
"type": "ref", | ||
"ref": "#features" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"features": { | ||
"type": "object", | ||
"required": [], | ||
"properties": { | ||
"customProfileColor": { | ||
"type": "boolean", | ||
"description": "Indicates to client apps to allow the requesting account to customize the profile color." | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "app.bsky.purchase.getSubscriptionGroup", | ||
"defs": { | ||
"main": { | ||
"type": "query", | ||
"description": "Gets a subscription group and its offerings for the target platform. Requires auth.", | ||
"parameters": { | ||
"type": "params", | ||
"required": ["group", "platform"], | ||
"properties": { | ||
"group": { "type": "string", "knownValues": ["core"] }, | ||
"platform": { | ||
"type": "string", | ||
"knownValues": ["android", "ios", "web"] | ||
} | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": [], | ||
"properties": { | ||
"group": { "type": "string", "knownValues": ["core"] }, | ||
"offerings": { | ||
"type": "array", | ||
"items": { | ||
"type": "ref", | ||
"ref": "#offering" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"offering": { | ||
"type": "object", | ||
"required": [], | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"knownValues": ["core:annual", "core:monthly"] | ||
}, | ||
"platform": { | ||
"type": "string", | ||
"knownValues": ["android", "ios", "web"] | ||
}, | ||
"product": { "type": "string" } | ||
} | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "app.bsky.purchase.getSubscriptions", | ||
"defs": { | ||
"main": { | ||
"type": "query", | ||
"description": "Enumerate subscriptions for the requesting account, and the email used in the purchase. Requires auth.", | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["subscriptions"], | ||
"properties": { | ||
"email": { "type": "string" }, | ||
"subscriptions": { | ||
"type": "array", | ||
"items": { | ||
"type": "ref", | ||
"ref": "#subscription" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"subscription": { | ||
"type": "object", | ||
"required": [], | ||
"properties": { | ||
"status": { | ||
"type": "string", | ||
"knownValues": ["active", "expired", "paused", "unknown"] | ||
}, | ||
"renewalStatus": { | ||
"type": "string", | ||
"knownValues": [ | ||
"unknown", | ||
"will_not_renew", | ||
"will_pause", | ||
"will_renew" | ||
] | ||
}, | ||
"group": { "type": "string", "knownValues": ["core"] }, | ||
"platform": { | ||
"type": "string", | ||
"knownValues": ["android", "ios", "web"] | ||
}, | ||
"offering": { | ||
"type": "string", | ||
"knownValues": ["core:annual", "core:monthly"] | ||
}, | ||
"periodEndsAt": { "type": "string", "format": "datetime" }, | ||
"periodStartsAt": { "type": "string", "format": "datetime" }, | ||
"purchasedAt": { "type": "string", "format": "datetime" } | ||
} | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "app.bsky.purchase.refreshCache", | ||
"defs": { | ||
"main": { | ||
"type": "procedure", | ||
"description": "Refresh the purchase cache for the requesting account or for another account if the role authorizes it. Requires auth.", | ||
"input": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["did"], | ||
"properties": { | ||
"did": { "type": "string", "format": "did" } | ||
} | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"properties": {} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains 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
Oops, something went wrong.