From 04d471224200fe11c27b916fad389a232c6dca36 Mon Sep 17 00:00:00 2001 From: rafael Date: Sun, 1 Dec 2024 19:51:39 -0300 Subject: [PATCH] Add getActiveSubscriptions --- .../subscription/getActiveSubscriptions.json | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 lexicons/app/bsky/subscription/getActiveSubscriptions.json diff --git a/lexicons/app/bsky/subscription/getActiveSubscriptions.json b/lexicons/app/bsky/subscription/getActiveSubscriptions.json new file mode 100644 index 00000000000..bab22738955 --- /dev/null +++ b/lexicons/app/bsky/subscription/getActiveSubscriptions.json @@ -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" } + } + } + } +}