Skip to content

Commit

Permalink
Add getActiveSubscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelbsky committed Dec 1, 2024
1 parent 0b75704 commit 04d4712
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions lexicons/app/bsky/subscription/getActiveSubscriptions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"lexicon": 1,
"id": "app.bsky.subscription.getActiveSubscriptions",
"defs": {
"main": {
"type": "query",
"description": "Enumerate active subscriptions for the requesting account. Requires auth.",
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [ "subscriptions" ],
"properties": {
"subscriptions": {
"type": "array",
"items": {
"type": "ref",
"ref": "#subscription"
}
}
}
}
}
},
"subscription": {
"type": "object",
"required": [
"status",
"renewalStatus",
"group",
"platform",
"offering",
"periodEndsAt",
"periodStartsAt",
"purchasedAt"
],
"properties": {
"status": { "type": "string" },
"renewalStatus": { "type": "string" },
"group": { "type": "string" },
"platform": { "type": "string" },
"offering": { "type": "string" },
"periodEndsAt": { "type": "string", "format": "datetime" },
"periodStartsAt": { "type": "string", "format": "datetime" },
"purchasedAt": { "type": "string", "format": "datetime" }
}
}
}
}

0 comments on commit 04d4712

Please sign in to comment.