glitch-javascript-sdk 3.5.0 → 3.5.1

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
@@ -6301,6 +6301,23 @@ declare class GameShows {
6301
6301
  * List public game shows that include a title. Useful for game-page festival banners.
6302
6302
  */
6303
6303
  static listForTitle<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6304
+ /** List organizer-visible developer claim and completion workflows. */
6305
+ static listTitleClaims<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6306
+ /** Invite or remind a developer to claim and complete a festival game. */
6307
+ static inviteTitleClaim<T>(show_id: string, title_id: string, data: {
6308
+ email: string;
6309
+ }, params?: Record<string, any>): AxiosPromise<Response<T>>;
6310
+ /** Open a private festival game claim before authentication. */
6311
+ static viewTitleClaim<T>(show_id: string, token: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6312
+ /** Bind the invited game to the current user and one administered business. */
6313
+ static claimTitle<T>(show_id: string, token: string, data: {
6314
+ community_id: string;
6315
+ }, params?: Record<string, any>): AxiosPromise<Response<T>>;
6316
+ /** Finish required game information and record the optional build choice. */
6317
+ static completeTitleClaim<T>(show_id: string, token: string, data: {
6318
+ build_choice: 'upload' | 'skip';
6319
+ build_completed?: boolean;
6320
+ }, params?: Record<string, any>): AxiosPromise<Response<T>>;
6304
6321
  /** List private sponsor workflow, contact, billing, media, and placements. */
6305
6322
  static listSponsors<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
6306
6323
  /** 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.1",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -340,6 +340,31 @@ class GameShows {
340
340
  return Requests.processRoute(GameShowsRoute.routes.listForTitle, {}, { title_id: title_id }, params);
341
341
  }
342
342
 
343
+ /** List organizer-visible developer claim and completion workflows. */
344
+ public static listTitleClaims<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
345
+ return Requests.processRoute(GameShowsRoute.routes.listTitleClaims, {}, { show_id }, params);
346
+ }
347
+
348
+ /** Invite or remind a developer to claim and complete a festival game. */
349
+ public static inviteTitleClaim<T>(show_id: string, title_id: string, data: { email: string }, params?: Record<string, any>): AxiosPromise<Response<T>> {
350
+ return Requests.processRoute(GameShowsRoute.routes.inviteTitleClaim, data, { show_id, title_id }, params);
351
+ }
352
+
353
+ /** Open a private festival game claim before authentication. */
354
+ public static viewTitleClaim<T>(show_id: string, token: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
355
+ return Requests.processRoute(GameShowsRoute.routes.viewTitleClaim, {}, { show_id, token }, params);
356
+ }
357
+
358
+ /** Bind the invited game to the current user and one administered business. */
359
+ public static claimTitle<T>(show_id: string, token: string, data: { community_id: string }, params?: Record<string, any>): AxiosPromise<Response<T>> {
360
+ return Requests.processRoute(GameShowsRoute.routes.claimTitle, data, { show_id, token }, params);
361
+ }
362
+
363
+ /** Finish required game information and record the optional build choice. */
364
+ public static completeTitleClaim<T>(show_id: string, token: string, data: { build_choice: 'upload' | 'skip'; build_completed?: boolean }, params?: Record<string, any>): AxiosPromise<Response<T>> {
365
+ return Requests.processRoute(GameShowsRoute.routes.completeTitleClaim, data, { show_id, token }, params);
366
+ }
367
+
343
368
  /** List private sponsor workflow, contact, billing, media, and placements. */
344
369
  public static listSponsors<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
345
370
  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 },