glitch-javascript-sdk 3.5.0 → 3.5.2

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.
@@ -189,6 +189,13 @@ declare class GameShows {
189
189
  * Join or update a public notification signup for a game show.
190
190
  */
191
191
  static joinWishlist<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
192
+ /**
193
+ * Confirm the double-opt-in token from a festival reminder email.
194
+ * The response contains confirmation state and festival identity only.
195
+ *
196
+ * @see https://api.glitch.fun/api/documentation#/GameShows/confirmGameShowWishlist
197
+ */
198
+ static confirmWishlist<T>(token: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
192
199
  /**
193
200
  * List notification signups for a game show. Requires organizer permissions.
194
201
  */
@@ -197,6 +204,23 @@ declare class GameShows {
197
204
  * List public game shows that include a title. Useful for game-page festival banners.
198
205
  */
199
206
  static listForTitle<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
207
+ /** List organizer-visible developer claim and completion workflows. */
208
+ static listTitleClaims<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
209
+ /** Invite or remind a developer to claim and complete a festival game. */
210
+ static inviteTitleClaim<T>(show_id: string, title_id: string, data: {
211
+ email: string;
212
+ }, params?: Record<string, any>): AxiosPromise<Response<T>>;
213
+ /** Open a private festival game claim before authentication. */
214
+ static viewTitleClaim<T>(show_id: string, token: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
215
+ /** Bind the invited game to the current user and one administered business. */
216
+ static claimTitle<T>(show_id: string, token: string, data: {
217
+ community_id: string;
218
+ }, params?: Record<string, any>): AxiosPromise<Response<T>>;
219
+ /** Finish required game information and record the optional build choice. */
220
+ static completeTitleClaim<T>(show_id: string, token: string, data: {
221
+ build_choice: 'upload' | 'skip';
222
+ build_completed?: boolean;
223
+ }, params?: Record<string, any>): AxiosPromise<Response<T>>;
200
224
  /** List private sponsor workflow, contact, billing, media, and placements. */
201
225
  static listSponsors<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
202
226
  /** Create a manual sponsor or send a self-service invitation. */
package/dist/esm/index.js CHANGED
@@ -15034,6 +15034,11 @@ var GameShowsRoute = /** @class */ (function () {
15034
15034
  // External registration file preview/import endpoints.
15035
15035
  previewExternalTitles: { url: '/gameshows/{show_id}/external-titles/preview', method: HTTP_METHODS.POST },
15036
15036
  importExternalTitles: { url: '/gameshows/{show_id}/external-titles/import', method: HTTP_METHODS.POST },
15037
+ listTitleClaims: { url: '/gameshows/{show_id}/title-claims', method: HTTP_METHODS.GET },
15038
+ inviteTitleClaim: { url: '/gameshows/{show_id}/titles/{title_id}/claim-invitation', method: HTTP_METHODS.POST },
15039
+ viewTitleClaim: { url: '/gameshows/{show_id}/title-claims/{token}', method: HTTP_METHODS.GET },
15040
+ claimTitle: { url: '/gameshows/{show_id}/title-claims/{token}/claim', method: HTTP_METHODS.POST },
15041
+ completeTitleClaim: { url: '/gameshows/{show_id}/title-claims/{token}/complete', method: HTTP_METHODS.POST },
15037
15042
  viewTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.GET },
15038
15043
  updateTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.PUT },
15039
15044
  deleteTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.DELETE },
@@ -15050,6 +15055,7 @@ var GameShowsRoute = /** @class */ (function () {
15050
15055
  trackAnalytics: { url: '/gameshows/{show_id}/analytics', method: HTTP_METHODS.POST },
15051
15056
  analyticsReport: { url: '/gameshows/{show_id}/analytics/report', method: HTTP_METHODS.GET },
15052
15057
  joinWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.POST },
15058
+ confirmWishlist: { url: '/gameshows/wishlist/confirm/{token}', method: HTTP_METHODS.GET },
15053
15059
  listWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.GET },
15054
15060
  listForTitle: { url: '/titles/{title_id}/gameshows', method: HTTP_METHODS.GET },
15055
15061
  // Organizer sponsor lifecycle and placement administration.
@@ -15348,6 +15354,15 @@ var GameShows = /** @class */ (function () {
15348
15354
  GameShows.joinWishlist = function (show_id, data, params) {
15349
15355
  return Requests.processRoute(GameShowsRoute.routes.joinWishlist, data, { show_id: show_id }, params);
15350
15356
  };
15357
+ /**
15358
+ * Confirm the double-opt-in token from a festival reminder email.
15359
+ * The response contains confirmation state and festival identity only.
15360
+ *
15361
+ * @see https://api.glitch.fun/api/documentation#/GameShows/confirmGameShowWishlist
15362
+ */
15363
+ GameShows.confirmWishlist = function (token, params) {
15364
+ return Requests.processRoute(GameShowsRoute.routes.confirmWishlist, {}, { token: token }, params);
15365
+ };
15351
15366
  /**
15352
15367
  * List notification signups for a game show. Requires organizer permissions.
15353
15368
  */
@@ -15360,6 +15375,26 @@ var GameShows = /** @class */ (function () {
15360
15375
  GameShows.listForTitle = function (title_id, params) {
15361
15376
  return Requests.processRoute(GameShowsRoute.routes.listForTitle, {}, { title_id: title_id }, params);
15362
15377
  };
15378
+ /** List organizer-visible developer claim and completion workflows. */
15379
+ GameShows.listTitleClaims = function (show_id, params) {
15380
+ return Requests.processRoute(GameShowsRoute.routes.listTitleClaims, {}, { show_id: show_id }, params);
15381
+ };
15382
+ /** Invite or remind a developer to claim and complete a festival game. */
15383
+ GameShows.inviteTitleClaim = function (show_id, title_id, data, params) {
15384
+ return Requests.processRoute(GameShowsRoute.routes.inviteTitleClaim, data, { show_id: show_id, title_id: title_id }, params);
15385
+ };
15386
+ /** Open a private festival game claim before authentication. */
15387
+ GameShows.viewTitleClaim = function (show_id, token, params) {
15388
+ return Requests.processRoute(GameShowsRoute.routes.viewTitleClaim, {}, { show_id: show_id, token: token }, params);
15389
+ };
15390
+ /** Bind the invited game to the current user and one administered business. */
15391
+ GameShows.claimTitle = function (show_id, token, data, params) {
15392
+ return Requests.processRoute(GameShowsRoute.routes.claimTitle, data, { show_id: show_id, token: token }, params);
15393
+ };
15394
+ /** Finish required game information and record the optional build choice. */
15395
+ GameShows.completeTitleClaim = function (show_id, token, data, params) {
15396
+ return Requests.processRoute(GameShowsRoute.routes.completeTitleClaim, data, { show_id: show_id, token: token }, params);
15397
+ };
15363
15398
  /** List private sponsor workflow, contact, billing, media, and placements. */
15364
15399
  GameShows.listSponsors = function (show_id, params) {
15365
15400
  return Requests.processRoute(GameShowsRoute.routes.listSponsors, {}, { show_id: show_id }, params);