glitch-javascript-sdk 3.10.5 → 3.10.7

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.
@@ -12,6 +12,12 @@ export interface GameShowScheduleTicketTypeInput {
12
12
  sort_order?: number;
13
13
  is_active?: boolean;
14
14
  }
15
+ export interface GameShowFestivalTicketTypeInput extends GameShowScheduleTicketTypeInput {
16
+ scope: 'session' | 'festival' | 'track' | 'bundle';
17
+ schedule_item_id?: string | null;
18
+ track_block_id?: string | null;
19
+ schedule_item_ids?: string[] | null;
20
+ }
15
21
  export interface GameShowScheduleTicketPurchaseInput {
16
22
  ticket_type_id: string;
17
23
  email: string;
@@ -201,6 +207,26 @@ declare class GameShows {
201
207
  * Delete a schedule item from a game show. Requires organizer permissions.
202
208
  */
203
209
  static deleteScheduleItem<T>(show_id: string, schedule_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
210
+ /** List public festival, track, bundle, and single-session ticket products. */
211
+ static listFestivalTicketTypes<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
212
+ /** List all festival ticket products, including archived products, for organizers. */
213
+ static manageFestivalTicketTypes<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
214
+ /** Create a whole-festival pass, track pass, event bundle, or session ticket. */
215
+ static createFestivalTicketType<T>(show_id: string, data: GameShowFestivalTicketTypeInput, params?: Record<string, any>): AxiosPromise<Response<T>>;
216
+ /** Update the coverage, price, inventory, sales window, or visibility of a festival ticket product. */
217
+ static updateFestivalTicketType<T>(show_id: string, ticket_type_id: string, data: Partial<GameShowFestivalTicketTypeInput>, params?: Record<string, any>): AxiosPromise<Response<T>>;
218
+ /** Archive a festival ticket product while retaining purchase history. */
219
+ static deleteFestivalTicketType<T>(show_id: string, ticket_type_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
220
+ /** Reserve inventory and create or confirm a festival-level ticket payment. */
221
+ static purchaseFestivalTickets<T>(show_id: string, data: GameShowScheduleTicketPurchaseInput, params?: Record<string, any>): AxiosPromise<Response<T>>;
222
+ /** Synchronize a festival-level ticket purchase after Stripe.js completes 3DS. */
223
+ static confirmFestivalTicketPurchase<T>(show_id: string, purchase_id: string, access_token: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
224
+ /** Retrieve a token-protected receipt for any festival ticket scope. */
225
+ static getFestivalTicketReceipt<T>(show_id: string, purchase_id: string, access_token: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
226
+ /** List purchasers across festival, track, bundle, and session ticket products. */
227
+ static listFestivalTicketPurchases<T>(show_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
228
+ /** Issue a partial or full refund for a festival ticket purchase. */
229
+ static refundFestivalTicketPurchase<T>(show_id: string, purchase_id: string, data: GameShowScheduleTicketRefundInput, params?: Record<string, any>): AxiosPromise<Response<T>>;
204
230
  /** List public early-bird, regular, and other ticket tiers for one session. */
205
231
  static listScheduleTicketTypes<T>(show_id: string, schedule_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
206
232
  /** List every ticket tier, including archived tiers, for festival organizers. */
@@ -47,6 +47,9 @@ export interface HostingDomain {
47
47
  verification_record_name?: string | null;
48
48
  verification_record_value?: string | null;
49
49
  certificate_status?: string | null;
50
+ error_code?: string | null;
51
+ incident_id?: string | null;
52
+ last_error?: string | null;
50
53
  billing_status?: 'active' | 'past_due' | 'unpaid' | 'cancelled' | null;
51
54
  annual_price_cents?: number | null;
52
55
  auto_renew: boolean;
@@ -108,6 +111,7 @@ export interface HostingSite {
108
111
  status: 'draft' | 'provisioning' | 'live' | 'limited' | 'failed' | 'disabled';
109
112
  server_mode_enabled: boolean;
110
113
  azure_region?: string | null;
114
+ active_release_id?: string | null;
111
115
  active_release?: HostingRelease | null;
112
116
  domains?: HostingDomain[];
113
117
  databases?: HostingDatabase[];
@@ -239,6 +243,26 @@ export interface CreateHostingReleaseRequest {
239
243
  source_type: 'upload' | 'cli' | 'game_build';
240
244
  blob_path?: string;
241
245
  game_build_id?: string;
246
+ /** Proven relative path in the finished artifact. Never guess index.html or package.json. */
247
+ entry_point: string;
248
+ }
249
+ export interface HostingCheckoutResult {
250
+ database?: HostingDatabase;
251
+ action?: string;
252
+ checkout_url?: string | null;
253
+ /** Stripe Embedded Checkout client secret for same-page card collection and 3DS. */
254
+ checkout_client_secret?: string | null;
255
+ checkout_mode?: 'embedded' | 'hosted' | null;
256
+ checkout_session_id?: string | null;
257
+ billing_provider?: HostingBillingProvider;
258
+ message?: string;
259
+ }
260
+ export interface HostingAiInstructionsRequest extends HostingServiceStackRequest {
261
+ framework?: string;
262
+ custom_domain?: string;
263
+ databases?: Array<Pick<HostingDatabase, 'name' | 'engine' | 'plan'>>;
264
+ version?: string;
265
+ /** Candidate only; the generated instructions require proof from the finished artifact. */
242
266
  entry_point?: string;
243
267
  }
244
268
  export interface CreateHostingDatabaseRequest {
@@ -281,7 +305,7 @@ export interface HostingAwsMarketplaceSubscription {
281
305
  manage_url: string;
282
306
  }
283
307
  /**
284
- * Typed SDK for game website hosting, Azure database add-ons, domains, usage,
308
+ * Typed SDK for game website hosting, managed database add-ons, domains, usage,
285
309
  * deployment instructions, and hosted-play attribution.
286
310
  */
287
311
  declare class Hosting {
@@ -290,7 +314,7 @@ declare class Hosting {
290
314
  static channelAnalytics<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
291
315
  /** Start or apply a bandwidth-based Hosting plan, separate from Store distribution. */
292
316
  static billingCheckout<T>(title_id: string, plan: HostingPlanKey): AxiosPromise<Response<T>>;
293
- /** Confirm a paid Stripe Checkout session before provisioning its Azure resource. */
317
+ /** Confirm a paid Stripe Checkout session before provisioning its add-on. */
294
318
  static confirmBillingCheckout<T>(title_id: string, checkout_session_id: string): AxiosPromise<Response<T>>;
295
319
  /** Resolve the one-hour purchase token passed to Glitch by Microsoft Marketplace. */
296
320
  static resolveMarketplacePurchase<T>(token: string): AxiosPromise<Response<T>>;
@@ -307,7 +331,7 @@ declare class Hosting {
307
331
  static createSite<T>(title_id: string, data: CreateHostingSiteRequest): AxiosPromise<Response<T>>;
308
332
  static updateSite<T>(title_id: string, site_id: string, data: Partial<CreateHostingSiteRequest> & Record<string, any>): AxiosPromise<Response<T>>;
309
333
  static createUploadUrl<T>(title_id: string, site_id: string): AxiosPromise<Response<T>>;
310
- /** Upload directly to the short-lived Azure URL returned by createUploadUrl. */
334
+ /** Upload directly to the short-lived signed URL returned by createUploadUrl. */
311
335
  static uploadBuild(uploadUrl: string, file: Blob, requiredHeaders?: Record<string, string>, onUploadProgress?: (event: AxiosProgressEvent) => void): AxiosPromise<void>;
312
336
  static releases<T>(title_id: string, site_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
313
337
  static createRelease<T>(title_id: string, site_id: string, data: CreateHostingReleaseRequest): AxiosPromise<Response<T>>;
@@ -316,7 +340,7 @@ declare class Hosting {
316
340
  static verifyDomain<T>(title_id: string, site_id: string, domain_id: string): AxiosPromise<Response<T>>;
317
341
  static checkDomain<T>(hostname: string): AxiosPromise<Response<T>>;
318
342
  static purchaseDomain<T>(title_id: string, site_id: string, data: Record<string, any>): AxiosPromise<Response<T>>;
319
- static aiInstructions<T>(title_id: string, site_id: string, data?: Record<string, any>): AxiosPromise<Response<T>>;
343
+ static aiInstructions<T>(title_id: string, site_id: string, data?: HostingAiInstructionsRequest): AxiosPromise<Response<T>>;
320
344
  static services<T = HostingService[]>(title_id: string, site_id: string): AxiosPromise<Response<T>>;
321
345
  /** Calculate the always-on floor without creating resources or charges. */
322
346
  static estimateServices<T = HostingServiceEstimate>(title_id: string, site_id: string, data: HostingServiceStackRequest): AxiosPromise<Response<T>>;
@@ -329,7 +353,7 @@ declare class Hosting {
329
353
  static startPlaySession<T>(data: Record<string, any>): AxiosPromise<Response<T>>;
330
354
  static heartbeatPlaySession<T>(session_id: string, sessionToken: string): AxiosPromise<Response<T>>;
331
355
  static databases<T>(title_id: string, site_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
332
- static createDatabase<T>(title_id: string, site_id: string, data: CreateHostingDatabaseRequest): AxiosPromise<Response<T>>;
356
+ static createDatabase<T = HostingCheckoutResult>(title_id: string, site_id: string, data: CreateHostingDatabaseRequest): AxiosPromise<Response<T>>;
333
357
  static database<T>(title_id: string, site_id: string, database_id: string): AxiosPromise<Response<T>>;
334
358
  /**
335
359
  * Reveal credentials to a signed-in business billing administrator after an
@@ -337,7 +361,7 @@ declare class Hosting {
337
361
  */
338
362
  static databaseCredentials<T = HostingDatabaseCredentials>(title_id: string, site_id: string, database_id: string, confirmation: string): AxiosPromise<Response<T>>;
339
363
  static updateDatabase<T>(title_id: string, site_id: string, database_id: string, data: Record<string, any>): AxiosPromise<Response<T>>;
340
- static retryDatabase<T>(title_id: string, site_id: string, database_id: string): AxiosPromise<Response<T>>;
364
+ static retryDatabase<T = HostingCheckoutResult>(title_id: string, site_id: string, database_id: string): AxiosPromise<Response<T>>;
341
365
  static deleteDatabase<T>(title_id: string, site_id: string, database_id: string, confirmation: string): AxiosPromise<Response<T>>;
342
366
  }
343
367
  export default Hosting;
@@ -628,6 +628,8 @@ declare class Titles {
628
628
  * @param params Optional pagination parameters (?page=1&per_page=25)
629
629
  */
630
630
  static myWishlists<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
631
+ /** Look up the current user's wishlist rows for up to 100 title UUIDs. */
632
+ static lookupMyWishlists<T>(title_ids: string[]): AxiosPromise<Response<T>>;
631
633
  /**
632
634
  * Get Wishlist Intelligence statistics for a title.
633
635
  * Includes funnel data and predictive revenue forecasting.
package/dist/esm/index.js CHANGED
@@ -12366,6 +12366,10 @@ TitlesRoute.routes = {
12366
12366
  url: '/users/me/wishlists',
12367
12367
  method: HTTP_METHODS.GET
12368
12368
  },
12369
+ lookupMyWishlists: {
12370
+ url: '/users/me/wishlists/lookup',
12371
+ method: HTTP_METHODS.POST
12372
+ },
12369
12373
  wishlistMe: {
12370
12374
  url: '/titles/{title_id}/wishlist/me',
12371
12375
  method: HTTP_METHODS.GET
@@ -13172,6 +13176,10 @@ class Titles {
13172
13176
  static myWishlists(params) {
13173
13177
  return Requests.processRoute(TitlesRoute.routes.myWishlists, undefined, undefined, params);
13174
13178
  }
13179
+ /** Look up the current user's wishlist rows for up to 100 title UUIDs. */
13180
+ static lookupMyWishlists(title_ids) {
13181
+ return Requests.processRoute(TitlesRoute.routes.lookupMyWishlists, { title_ids });
13182
+ }
13175
13183
  /**
13176
13184
  * Get Wishlist Intelligence statistics for a title.
13177
13185
  * Includes funnel data and predictive revenue forecasting.
@@ -15246,6 +15254,16 @@ GameShowsRoute.routes = {
15246
15254
  createScheduleItem: { url: '/gameshows/{show_id}/schedule', method: HTTP_METHODS.POST },
15247
15255
  updateScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.PUT },
15248
15256
  deleteScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.DELETE },
15257
+ listFestivalTicketTypes: { url: '/gameshows/{show_id}/ticket-types', method: HTTP_METHODS.GET },
15258
+ manageFestivalTicketTypes: { url: '/gameshows/{show_id}/ticket-types/manage', method: HTTP_METHODS.GET },
15259
+ createFestivalTicketType: { url: '/gameshows/{show_id}/ticket-types', method: HTTP_METHODS.POST },
15260
+ updateFestivalTicketType: { url: '/gameshows/{show_id}/ticket-types/{ticket_type_id}', method: HTTP_METHODS.PUT },
15261
+ deleteFestivalTicketType: { url: '/gameshows/{show_id}/ticket-types/{ticket_type_id}', method: HTTP_METHODS.DELETE },
15262
+ purchaseFestivalTickets: { url: '/gameshows/{show_id}/ticket-purchases', method: HTTP_METHODS.POST },
15263
+ confirmFestivalTicketPurchase: { url: '/gameshows/{show_id}/ticket-purchases/{purchase_id}/confirm', method: HTTP_METHODS.POST },
15264
+ getFestivalTicketReceipt: { url: '/gameshows/{show_id}/ticket-purchases/{purchase_id}/receipt', method: HTTP_METHODS.GET },
15265
+ listFestivalTicketPurchases: { url: '/gameshows/{show_id}/ticket-purchases', method: HTTP_METHODS.GET },
15266
+ refundFestivalTicketPurchase: { url: '/gameshows/{show_id}/ticket-purchases/{purchase_id}/refund', method: HTTP_METHODS.POST },
15249
15267
  listScheduleTicketTypes: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types', method: HTTP_METHODS.GET },
15250
15268
  manageScheduleTicketTypes: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types/manage', method: HTTP_METHODS.GET },
15251
15269
  createScheduleTicketType: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types', method: HTTP_METHODS.POST },
@@ -15556,6 +15574,46 @@ class GameShows {
15556
15574
  static deleteScheduleItem(show_id, schedule_id, params) {
15557
15575
  return Requests.processRoute(GameShowsRoute.routes.deleteScheduleItem, {}, { show_id: show_id, schedule_id: schedule_id }, params);
15558
15576
  }
15577
+ /** List public festival, track, bundle, and single-session ticket products. */
15578
+ static listFestivalTicketTypes(show_id, params) {
15579
+ return Requests.processRoute(GameShowsRoute.routes.listFestivalTicketTypes, {}, { show_id }, params);
15580
+ }
15581
+ /** List all festival ticket products, including archived products, for organizers. */
15582
+ static manageFestivalTicketTypes(show_id, params) {
15583
+ return Requests.processRoute(GameShowsRoute.routes.manageFestivalTicketTypes, {}, { show_id }, params);
15584
+ }
15585
+ /** Create a whole-festival pass, track pass, event bundle, or session ticket. */
15586
+ static createFestivalTicketType(show_id, data, params) {
15587
+ return Requests.processRoute(GameShowsRoute.routes.createFestivalTicketType, data, { show_id }, params);
15588
+ }
15589
+ /** Update the coverage, price, inventory, sales window, or visibility of a festival ticket product. */
15590
+ static updateFestivalTicketType(show_id, ticket_type_id, data, params) {
15591
+ return Requests.processRoute(GameShowsRoute.routes.updateFestivalTicketType, data, { show_id, ticket_type_id }, params);
15592
+ }
15593
+ /** Archive a festival ticket product while retaining purchase history. */
15594
+ static deleteFestivalTicketType(show_id, ticket_type_id, params) {
15595
+ return Requests.processRoute(GameShowsRoute.routes.deleteFestivalTicketType, {}, { show_id, ticket_type_id }, params);
15596
+ }
15597
+ /** Reserve inventory and create or confirm a festival-level ticket payment. */
15598
+ static purchaseFestivalTickets(show_id, data, params) {
15599
+ return Requests.processRoute(GameShowsRoute.routes.purchaseFestivalTickets, data, { show_id }, params);
15600
+ }
15601
+ /** Synchronize a festival-level ticket purchase after Stripe.js completes 3DS. */
15602
+ static confirmFestivalTicketPurchase(show_id, purchase_id, access_token, params) {
15603
+ return Requests.processRoute(GameShowsRoute.routes.confirmFestivalTicketPurchase, { access_token }, { show_id, purchase_id }, params);
15604
+ }
15605
+ /** Retrieve a token-protected receipt for any festival ticket scope. */
15606
+ static getFestivalTicketReceipt(show_id, purchase_id, access_token, params) {
15607
+ return Requests.processRoute(GameShowsRoute.routes.getFestivalTicketReceipt, {}, { show_id, purchase_id }, Object.assign(Object.assign({}, params), { access_token }));
15608
+ }
15609
+ /** List purchasers across festival, track, bundle, and session ticket products. */
15610
+ static listFestivalTicketPurchases(show_id, params) {
15611
+ return Requests.processRoute(GameShowsRoute.routes.listFestivalTicketPurchases, {}, { show_id }, params);
15612
+ }
15613
+ /** Issue a partial or full refund for a festival ticket purchase. */
15614
+ static refundFestivalTicketPurchase(show_id, purchase_id, data, params) {
15615
+ return Requests.processRoute(GameShowsRoute.routes.refundFestivalTicketPurchase, data, { show_id, purchase_id }, params);
15616
+ }
15559
15617
  /** List public early-bird, regular, and other ticket tiers for one session. */
15560
15618
  static listScheduleTicketTypes(show_id, schedule_id, params) {
15561
15619
  return Requests.processRoute(GameShowsRoute.routes.listScheduleTicketTypes, {}, { show_id, schedule_id }, params);
@@ -21359,7 +21417,7 @@ HostingRoute.routes = {
21359
21417
  };
21360
21418
 
21361
21419
  /**
21362
- * Typed SDK for game website hosting, Azure database add-ons, domains, usage,
21420
+ * Typed SDK for game website hosting, managed database add-ons, domains, usage,
21363
21421
  * deployment instructions, and hosted-play attribution.
21364
21422
  */
21365
21423
  class Hosting {
@@ -21376,7 +21434,7 @@ class Hosting {
21376
21434
  static billingCheckout(title_id, plan) {
21377
21435
  return Requests.processRoute(HostingRoute.routes.billingCheckout, { plan }, { title_id });
21378
21436
  }
21379
- /** Confirm a paid Stripe Checkout session before provisioning its Azure resource. */
21437
+ /** Confirm a paid Stripe Checkout session before provisioning its add-on. */
21380
21438
  static confirmBillingCheckout(title_id, checkout_session_id) {
21381
21439
  return Requests.processRoute(HostingRoute.routes.confirmBillingCheckout, { checkout_session_id }, { title_id });
21382
21440
  }
@@ -21413,7 +21471,7 @@ class Hosting {
21413
21471
  static createUploadUrl(title_id, site_id) {
21414
21472
  return Requests.processRoute(HostingRoute.routes.uploadUrl, {}, { title_id, site_id });
21415
21473
  }
21416
- /** Upload directly to the short-lived Azure URL returned by createUploadUrl. */
21474
+ /** Upload directly to the short-lived signed URL returned by createUploadUrl. */
21417
21475
  static uploadBuild(uploadUrl, file, requiredHeaders = {}, onUploadProgress) {
21418
21476
  return axios.put(uploadUrl, file, {
21419
21477
  headers: Object.assign({ 'x-ms-blob-type': 'BlockBlob', 'Content-Type': 'application/zip' }, requiredHeaders),