@provable-games/budokan-sdk 0.1.18 → 0.1.19

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.
@@ -100,6 +100,14 @@ interface TournamentListParams {
100
100
  sort?: "start_time" | "end_time" | "players" | "created_at";
101
101
  fromId?: string;
102
102
  excludeIds?: string[];
103
+ /**
104
+ * Restrict results to this set of tournament IDs. Used by the
105
+ * "My Tournaments" UX where the caller derives ids from currently-owned
106
+ * game tokens (denshokan-sdk) and asks Budokan only for those tournaments.
107
+ * Mutually exclusive with no-filter "show everything" semantics — an empty
108
+ * array yields zero results, not all tournaments.
109
+ */
110
+ tournamentIds?: string[];
103
111
  whitelistedExtensions?: string[];
104
112
  includePrizeSummary?: "summary" | boolean;
105
113
  }
@@ -100,6 +100,14 @@ interface TournamentListParams {
100
100
  sort?: "start_time" | "end_time" | "players" | "created_at";
101
101
  fromId?: string;
102
102
  excludeIds?: string[];
103
+ /**
104
+ * Restrict results to this set of tournament IDs. Used by the
105
+ * "My Tournaments" UX where the caller derives ids from currently-owned
106
+ * game tokens (denshokan-sdk) and asks Budokan only for those tournaments.
107
+ * Mutually exclusive with no-filter "show everything" semantics — an empty
108
+ * array yields zero results, not all tournaments.
109
+ */
110
+ tournamentIds?: string[];
103
111
  whitelistedExtensions?: string[];
104
112
  includePrizeSummary?: "summary" | boolean;
105
113
  }
package/dist/index.cjs CHANGED
@@ -233,6 +233,7 @@ async function getTournaments(baseUrl, params, ctx) {
233
233
  sort: params?.sort,
234
234
  from_id: params?.fromId,
235
235
  exclude_ids: params?.excludeIds?.join(","),
236
+ tournament_ids: params?.tournamentIds?.join(","),
236
237
  whitelisted_extensions: params?.whitelistedExtensions?.join(","),
237
238
  include_prizes: params?.includePrizeSummary
238
239
  });