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.
package/dist/index.d.ts CHANGED
@@ -6293,6 +6293,13 @@ declare class GameShows {
6293
6293
  * Join or update a public notification signup for a game show.
6294
6294
  */
6295
6295
  static joinWishlist<T>(show_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
6296
+ /**
6297
+ * Confirm the double-opt-in token from a festival reminder email.
6298
+ * The response contains confirmation state and festival identity only.
6299
+ *
6300
+ * @see https://api.glitch.fun/api/documentation#/GameShows/confirmGameShowWishlist
6301
+ */
6302
+ static confirmWishlist<T>(token: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6296
6303
  /**
6297
6304
  * List notification signups for a game show. Requires organizer permissions.
6298
6305
  */
@@ -6301,6 +6308,23 @@ declare class GameShows {
6301
6308
  * List public game shows that include a title. Useful for game-page festival banners.
6302
6309
  */
6303
6310
  static listForTitle<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6311
+ /** List organizer-visible developer claim and completion workflows. */
6312
+ static listTitleClaims<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6313
+ /** Invite or remind a developer to claim and complete a festival game. */
6314
+ static inviteTitleClaim<T>(show_id: string, title_id: string, data: {
6315
+ email: string;
6316
+ }, params?: Record<string, any>): AxiosPromise<Response<T>>;
6317
+ /** Open a private festival game claim before authentication. */
6318
+ static viewTitleClaim<T>(show_id: string, token: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6319
+ /** Bind the invited game to the current user and one administered business. */
6320
+ static claimTitle<T>(show_id: string, token: string, data: {
6321
+ community_id: string;
6322
+ }, params?: Record<string, any>): AxiosPromise<Response<T>>;
6323
+ /** Finish required game information and record the optional build choice. */
6324
+ static completeTitleClaim<T>(show_id: string, token: string, data: {
6325
+ build_choice: 'upload' | 'skip';
6326
+ build_completed?: boolean;
6327
+ }, params?: Record<string, any>): AxiosPromise<Response<T>>;
6304
6328
  /** List private sponsor workflow, contact, billing, media, and placements. */
6305
6329
  static listSponsors<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6306
6330
  /** Create a manual sponsor or send a self-service invitation. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "3.5.0",
3
+ "version": "3.5.2",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -326,6 +326,16 @@ class GameShows {
326
326
  return Requests.processRoute(GameShowsRoute.routes.joinWishlist, data, { show_id: show_id }, params);
327
327
  }
328
328
 
329
+ /**
330
+ * Confirm the double-opt-in token from a festival reminder email.
331
+ * The response contains confirmation state and festival identity only.
332
+ *
333
+ * @see https://api.glitch.fun/api/documentation#/GameShows/confirmGameShowWishlist
334
+ */
335
+ public static confirmWishlist<T>(token: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
336
+ return Requests.processRoute(GameShowsRoute.routes.confirmWishlist, {}, { token }, params);
337
+ }
338
+
329
339
  /**
330
340
  * List notification signups for a game show. Requires organizer permissions.
331
341
  */
@@ -340,6 +350,31 @@ class GameShows {
340
350
  return Requests.processRoute(GameShowsRoute.routes.listForTitle, {}, { title_id: title_id }, params);
341
351
  }
342
352
 
353
+ /** List organizer-visible developer claim and completion workflows. */
354
+ public static listTitleClaims<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
355
+ return Requests.processRoute(GameShowsRoute.routes.listTitleClaims, {}, { show_id }, params);
356
+ }
357
+
358
+ /** Invite or remind a developer to claim and complete a festival game. */
359
+ public static inviteTitleClaim<T>(show_id: string, title_id: string, data: { email: string }, params?: Record<string, any>): AxiosPromise<Response<T>> {
360
+ return Requests.processRoute(GameShowsRoute.routes.inviteTitleClaim, data, { show_id, title_id }, params);
361
+ }
362
+
363
+ /** Open a private festival game claim before authentication. */
364
+ public static viewTitleClaim<T>(show_id: string, token: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
365
+ return Requests.processRoute(GameShowsRoute.routes.viewTitleClaim, {}, { show_id, token }, params);
366
+ }
367
+
368
+ /** Bind the invited game to the current user and one administered business. */
369
+ public static claimTitle<T>(show_id: string, token: string, data: { community_id: string }, params?: Record<string, any>): AxiosPromise<Response<T>> {
370
+ return Requests.processRoute(GameShowsRoute.routes.claimTitle, data, { show_id, token }, params);
371
+ }
372
+
373
+ /** Finish required game information and record the optional build choice. */
374
+ public static completeTitleClaim<T>(show_id: string, token: string, data: { build_choice: 'upload' | 'skip'; build_completed?: boolean }, params?: Record<string, any>): AxiosPromise<Response<T>> {
375
+ return Requests.processRoute(GameShowsRoute.routes.completeTitleClaim, data, { show_id, token }, params);
376
+ }
377
+
343
378
  /** List private sponsor workflow, contact, billing, media, and placements. */
344
379
  public static listSponsors<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
345
380
  return Requests.processRoute(GameShowsRoute.routes.listSponsors, {}, { show_id }, params);
@@ -29,6 +29,11 @@ class GameShowsRoute {
29
29
  // External registration file preview/import endpoints.
30
30
  previewExternalTitles: { url: '/gameshows/{show_id}/external-titles/preview', method: HTTP_METHODS.POST },
31
31
  importExternalTitles: { url: '/gameshows/{show_id}/external-titles/import', method: HTTP_METHODS.POST },
32
+ listTitleClaims: { url: '/gameshows/{show_id}/title-claims', method: HTTP_METHODS.GET },
33
+ inviteTitleClaim: { url: '/gameshows/{show_id}/titles/{title_id}/claim-invitation', method: HTTP_METHODS.POST },
34
+ viewTitleClaim: { url: '/gameshows/{show_id}/title-claims/{token}', method: HTTP_METHODS.GET },
35
+ claimTitle: { url: '/gameshows/{show_id}/title-claims/{token}/claim', method: HTTP_METHODS.POST },
36
+ completeTitleClaim: { url: '/gameshows/{show_id}/title-claims/{token}/complete', method: HTTP_METHODS.POST },
32
37
  viewTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.GET },
33
38
  updateTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.PUT },
34
39
  deleteTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.DELETE },
@@ -45,6 +50,7 @@ class GameShowsRoute {
45
50
  trackAnalytics: { url: '/gameshows/{show_id}/analytics', method: HTTP_METHODS.POST },
46
51
  analyticsReport: { url: '/gameshows/{show_id}/analytics/report', method: HTTP_METHODS.GET },
47
52
  joinWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.POST },
53
+ confirmWishlist: { url: '/gameshows/wishlist/confirm/{token}', method: HTTP_METHODS.GET },
48
54
  listWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.GET },
49
55
  listForTitle: { url: '/titles/{title_id}/gameshows', method: HTTP_METHODS.GET },
50
56
  // Organizer sponsor lifecycle and placement administration.