glitch-javascript-sdk 3.8.5 → 3.8.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.
- package/dist/cjs/index.js +134 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/GameShows.d.ts +46 -0
- package/dist/esm/api/ServerOperations.d.ts +29 -0
- package/dist/esm/api/Users.d.ts +39 -0
- package/dist/esm/index.js +134 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +114 -0
- package/package.json +2 -2
- package/src/api/GameShows.ts +82 -0
- package/src/api/ServerOperations.ts +45 -0
- package/src/api/Users.ts +50 -0
- package/src/routes/GameShowsRoute.ts +11 -0
- package/src/routes/ServerOperationsRoute.ts +24 -0
- package/src/routes/UserRoutes.ts +2 -0
package/dist/cjs/index.js
CHANGED
|
@@ -20933,6 +20933,8 @@ var UserRoutes = /** @class */ (function () {
|
|
|
20933
20933
|
follow: { url: '/users/{user_id}/follow', method: HTTP_METHODS.POST },
|
|
20934
20934
|
profile: { url: '/users/{user_id}/profile', method: HTTP_METHODS.GET },
|
|
20935
20935
|
me: { url: '/users/me', method: HTTP_METHODS.GET },
|
|
20936
|
+
emailDeliveryStatus: { url: '/users/me/email-delivery', method: HTTP_METHODS.GET },
|
|
20937
|
+
restoreEmailDelivery: { url: '/users/me/email-delivery/restore', method: HTTP_METHODS.POST },
|
|
20936
20938
|
syncInfluencer: { url: '/users/syncInfluencer', method: HTTP_METHODS.POST },
|
|
20937
20939
|
generateInfluencerProfile: { url: '/users/generateInfluencerProfile', method: HTTP_METHODS.POST },
|
|
20938
20940
|
oneTimeToken: { url: '/users/oneTimeToken', method: HTTP_METHODS.GET },
|
|
@@ -21029,6 +21031,20 @@ var Users = /** @class */ (function () {
|
|
|
21029
21031
|
Users.me = function (params) {
|
|
21030
21032
|
return Requests.processRoute(UserRoutes.routes.me, {}, undefined, params);
|
|
21031
21033
|
};
|
|
21034
|
+
/**
|
|
21035
|
+
* Gets the delivery and suppression state for the authenticated user's
|
|
21036
|
+
* current registered email address.
|
|
21037
|
+
*/
|
|
21038
|
+
Users.emailDeliveryStatus = function () {
|
|
21039
|
+
return Requests.processRoute(UserRoutes.routes.emailDeliveryStatus);
|
|
21040
|
+
};
|
|
21041
|
+
/**
|
|
21042
|
+
* Removes an eligible active suppression for the authenticated user's
|
|
21043
|
+
* current verified email address.
|
|
21044
|
+
*/
|
|
21045
|
+
Users.restoreEmailDelivery = function (data) {
|
|
21046
|
+
return Requests.processRoute(UserRoutes.routes.restoreEmailDelivery, data);
|
|
21047
|
+
};
|
|
21032
21048
|
/**
|
|
21033
21049
|
* Gets the campaigns the users has been invited too.
|
|
21034
21050
|
*
|
|
@@ -27058,6 +27074,7 @@ var GameShowsRoute = /** @class */ (function () {
|
|
|
27058
27074
|
updateTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.PUT },
|
|
27059
27075
|
deleteTitle: { url: '/gameshows/{show_id}/titles/{title_id}', method: HTTP_METHODS.DELETE },
|
|
27060
27076
|
listBlocks: { url: '/gameshows/{show_id}/blocks', method: HTTP_METHODS.GET },
|
|
27077
|
+
listBlockTitles: { url: '/gameshows/{show_id}/blocks/{block_id}/titles', method: HTTP_METHODS.GET },
|
|
27061
27078
|
createBlock: { url: '/gameshows/{show_id}/blocks', method: HTTP_METHODS.POST },
|
|
27062
27079
|
updateBlock: { url: '/gameshows/{show_id}/blocks/{block_id}', method: HTTP_METHODS.PUT },
|
|
27063
27080
|
deleteBlock: { url: '/gameshows/{show_id}/blocks/{block_id}', method: HTTP_METHODS.DELETE },
|
|
@@ -27067,6 +27084,16 @@ var GameShowsRoute = /** @class */ (function () {
|
|
|
27067
27084
|
createScheduleItem: { url: '/gameshows/{show_id}/schedule', method: HTTP_METHODS.POST },
|
|
27068
27085
|
updateScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.PUT },
|
|
27069
27086
|
deleteScheduleItem: { url: '/gameshows/{show_id}/schedule/{schedule_id}', method: HTTP_METHODS.DELETE },
|
|
27087
|
+
listScheduleTicketTypes: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types', method: HTTP_METHODS.GET },
|
|
27088
|
+
manageScheduleTicketTypes: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types/manage', method: HTTP_METHODS.GET },
|
|
27089
|
+
createScheduleTicketType: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types', method: HTTP_METHODS.POST },
|
|
27090
|
+
updateScheduleTicketType: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types/{ticket_type_id}', method: HTTP_METHODS.PUT },
|
|
27091
|
+
deleteScheduleTicketType: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-types/{ticket_type_id}', method: HTTP_METHODS.DELETE },
|
|
27092
|
+
purchaseScheduleTickets: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-purchases', method: HTTP_METHODS.POST },
|
|
27093
|
+
confirmScheduleTicketPurchase: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-purchases/{purchase_id}/confirm', method: HTTP_METHODS.POST },
|
|
27094
|
+
getScheduleTicketReceipt: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-purchases/{purchase_id}/receipt', method: HTTP_METHODS.GET },
|
|
27095
|
+
listScheduleTicketPurchases: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-purchases', method: HTTP_METHODS.GET },
|
|
27096
|
+
refundScheduleTicketPurchase: { url: '/gameshows/{show_id}/schedule/{schedule_id}/ticket-purchases/{purchase_id}/refund', method: HTTP_METHODS.POST },
|
|
27070
27097
|
discoveryQueue: { url: '/gameshows/{show_id}/discovery', method: HTTP_METHODS.GET },
|
|
27071
27098
|
trackAnalytics: { url: '/gameshows/{show_id}/analytics', method: HTTP_METHODS.POST },
|
|
27072
27099
|
analyticsReport: { url: '/gameshows/{show_id}/analytics/report', method: HTTP_METHODS.GET },
|
|
@@ -27315,6 +27342,10 @@ var GameShows = /** @class */ (function () {
|
|
|
27315
27342
|
GameShows.listBlocks = function (show_id, params) {
|
|
27316
27343
|
return Requests.processRoute(GameShowsRoute.routes.listBlocks, {}, { show_id: show_id }, params);
|
|
27317
27344
|
};
|
|
27345
|
+
/** Paginate one Page Builder game section without downloading its full catalog. */
|
|
27346
|
+
GameShows.listBlockTitles = function (show_id, block_id, params) {
|
|
27347
|
+
return Requests.processRoute(GameShowsRoute.routes.listBlockTitles, {}, { show_id: show_id, block_id: block_id }, params);
|
|
27348
|
+
};
|
|
27318
27349
|
/**
|
|
27319
27350
|
* Create a page-builder block for a game show. Requires organizer permissions.
|
|
27320
27351
|
*/
|
|
@@ -27367,6 +27398,46 @@ var GameShows = /** @class */ (function () {
|
|
|
27367
27398
|
GameShows.deleteScheduleItem = function (show_id, schedule_id, params) {
|
|
27368
27399
|
return Requests.processRoute(GameShowsRoute.routes.deleteScheduleItem, {}, { show_id: show_id, schedule_id: schedule_id }, params);
|
|
27369
27400
|
};
|
|
27401
|
+
/** List public early-bird, regular, and other ticket tiers for one session. */
|
|
27402
|
+
GameShows.listScheduleTicketTypes = function (show_id, schedule_id, params) {
|
|
27403
|
+
return Requests.processRoute(GameShowsRoute.routes.listScheduleTicketTypes, {}, { show_id: show_id, schedule_id: schedule_id }, params);
|
|
27404
|
+
};
|
|
27405
|
+
/** List every ticket tier, including archived tiers, for festival organizers. */
|
|
27406
|
+
GameShows.manageScheduleTicketTypes = function (show_id, schedule_id, params) {
|
|
27407
|
+
return Requests.processRoute(GameShowsRoute.routes.manageScheduleTicketTypes, {}, { show_id: show_id, schedule_id: schedule_id }, params);
|
|
27408
|
+
};
|
|
27409
|
+
/** Create one session ticket price tier. */
|
|
27410
|
+
GameShows.createScheduleTicketType = function (show_id, schedule_id, data, params) {
|
|
27411
|
+
return Requests.processRoute(GameShowsRoute.routes.createScheduleTicketType, data, { show_id: show_id, schedule_id: schedule_id }, params);
|
|
27412
|
+
};
|
|
27413
|
+
/** Update ticket price, inventory, availability window, or publication state. */
|
|
27414
|
+
GameShows.updateScheduleTicketType = function (show_id, schedule_id, ticket_type_id, data, params) {
|
|
27415
|
+
return Requests.processRoute(GameShowsRoute.routes.updateScheduleTicketType, data, { show_id: show_id, schedule_id: schedule_id, ticket_type_id: ticket_type_id }, params);
|
|
27416
|
+
};
|
|
27417
|
+
/** Archive a ticket tier while retaining historical purchases. */
|
|
27418
|
+
GameShows.deleteScheduleTicketType = function (show_id, schedule_id, ticket_type_id, params) {
|
|
27419
|
+
return Requests.processRoute(GameShowsRoute.routes.deleteScheduleTicketType, {}, { show_id: show_id, schedule_id: schedule_id, ticket_type_id: ticket_type_id }, params);
|
|
27420
|
+
};
|
|
27421
|
+
/** Reserve inventory and create/confirm the session ticket PaymentIntent. */
|
|
27422
|
+
GameShows.purchaseScheduleTickets = function (show_id, schedule_id, data, params) {
|
|
27423
|
+
return Requests.processRoute(GameShowsRoute.routes.purchaseScheduleTickets, data, { show_id: show_id, schedule_id: schedule_id }, params);
|
|
27424
|
+
};
|
|
27425
|
+
/** Synchronize the same ticket PaymentIntent after Stripe.js completes 3DS. */
|
|
27426
|
+
GameShows.confirmScheduleTicketPurchase = function (show_id, schedule_id, purchase_id, access_token, params) {
|
|
27427
|
+
return Requests.processRoute(GameShowsRoute.routes.confirmScheduleTicketPurchase, { access_token: access_token }, { show_id: show_id, schedule_id: schedule_id, purchase_id: purchase_id }, params);
|
|
27428
|
+
};
|
|
27429
|
+
/** Retrieve a token-protected customer receipt. */
|
|
27430
|
+
GameShows.getScheduleTicketReceipt = function (show_id, schedule_id, purchase_id, access_token, params) {
|
|
27431
|
+
return Requests.processRoute(GameShowsRoute.routes.getScheduleTicketReceipt, {}, { show_id: show_id, schedule_id: schedule_id, purchase_id: purchase_id }, __assign(__assign({}, params), { access_token: access_token }));
|
|
27432
|
+
};
|
|
27433
|
+
/** List ticket purchasers and refund state for festival organizers. */
|
|
27434
|
+
GameShows.listScheduleTicketPurchases = function (show_id, schedule_id, params) {
|
|
27435
|
+
return Requests.processRoute(GameShowsRoute.routes.listScheduleTicketPurchases, {}, { show_id: show_id, schedule_id: schedule_id }, params);
|
|
27436
|
+
};
|
|
27437
|
+
/** Issue a partial or full destination-charge refund at organizer discretion. */
|
|
27438
|
+
GameShows.refundScheduleTicketPurchase = function (show_id, schedule_id, purchase_id, data, params) {
|
|
27439
|
+
return Requests.processRoute(GameShowsRoute.routes.refundScheduleTicketPurchase, data, { show_id: show_id, schedule_id: schedule_id, purchase_id: purchase_id }, params);
|
|
27440
|
+
};
|
|
27370
27441
|
/**
|
|
27371
27442
|
* Get the game show discovery queue.
|
|
27372
27443
|
*/
|
|
@@ -32207,6 +32278,30 @@ var ServerOperationsRoute = /** @class */ (function () {
|
|
|
32207
32278
|
url: '/admin/server-operations/titles/{title_id}/builds/{build_id}/policy',
|
|
32208
32279
|
method: HTTP_METHODS.PUT
|
|
32209
32280
|
},
|
|
32281
|
+
updateContainerAppResources: {
|
|
32282
|
+
url: '/admin/server-operations/titles/{title_id}/builds/{build_id}/container-app',
|
|
32283
|
+
method: HTTP_METHODS.PUT
|
|
32284
|
+
},
|
|
32285
|
+
updateCapacityModel: {
|
|
32286
|
+
url: '/admin/server-operations/titles/{title_id}/builds/{build_id}/capacity-model',
|
|
32287
|
+
method: HTTP_METHODS.PUT
|
|
32288
|
+
},
|
|
32289
|
+
listRealms: {
|
|
32290
|
+
url: '/admin/server-operations/titles/{title_id}/realms',
|
|
32291
|
+
method: HTTP_METHODS.GET
|
|
32292
|
+
},
|
|
32293
|
+
createRealm: {
|
|
32294
|
+
url: '/admin/server-operations/titles/{title_id}/realms',
|
|
32295
|
+
method: HTTP_METHODS.POST
|
|
32296
|
+
},
|
|
32297
|
+
updateRealm: {
|
|
32298
|
+
url: '/admin/server-operations/titles/{title_id}/realms/{realm_id}',
|
|
32299
|
+
method: HTTP_METHODS.PUT
|
|
32300
|
+
},
|
|
32301
|
+
deleteRealm: {
|
|
32302
|
+
url: '/admin/server-operations/titles/{title_id}/realms/{realm_id}',
|
|
32303
|
+
method: HTTP_METHODS.DELETE
|
|
32304
|
+
},
|
|
32210
32305
|
};
|
|
32211
32306
|
return ServerOperationsRoute;
|
|
32212
32307
|
}());
|
|
@@ -32217,9 +32312,48 @@ var ServerOperations = /** @class */ (function () {
|
|
|
32217
32312
|
ServerOperations.listDeployments = function (params) {
|
|
32218
32313
|
return Requests.processRoute(ServerOperationsRoute.routes.listDeployments, undefined, undefined, params);
|
|
32219
32314
|
};
|
|
32315
|
+
/**
|
|
32316
|
+
* Update the warm/spare/ceiling shape of a matchmaker managed instance pool.
|
|
32317
|
+
* Rejected for any build whose capacity model is not "pooled".
|
|
32318
|
+
*/
|
|
32220
32319
|
ServerOperations.updatePolicy = function (title_id, build_id, data) {
|
|
32221
32320
|
return Requests.processRoute(ServerOperationsRoute.routes.updatePolicy, data, { title_id: title_id, build_id: build_id });
|
|
32222
32321
|
};
|
|
32322
|
+
/**
|
|
32323
|
+
* Resize the Container App behind a build. Replica bounds are enforced
|
|
32324
|
+
* server side against the build's capacity model, so a singleton world
|
|
32325
|
+
* cannot be given a second replica. Pass acknowledge_outage when
|
|
32326
|
+
* deliberately setting min replicas to 0 on a singleton or replicated
|
|
32327
|
+
* deployment, which takes the game offline.
|
|
32328
|
+
*/
|
|
32329
|
+
ServerOperations.updateContainerAppResources = function (title_id, build_id, data) {
|
|
32330
|
+
return Requests.processRoute(ServerOperationsRoute.routes.updateContainerAppResources, data, { title_id: title_id, build_id: build_id });
|
|
32331
|
+
};
|
|
32332
|
+
/**
|
|
32333
|
+
* Declare how many server processes a build may run at once: singleton,
|
|
32334
|
+
* replicated, pooled, serverless, or static. Re-clamps the stored replica
|
|
32335
|
+
* shape and is honored by the next deployment.
|
|
32336
|
+
*/
|
|
32337
|
+
ServerOperations.updateCapacityModel = function (title_id, build_id, data) {
|
|
32338
|
+
return Requests.processRoute(ServerOperationsRoute.routes.updateCapacityModel, data, { title_id: title_id, build_id: build_id });
|
|
32339
|
+
};
|
|
32340
|
+
/**
|
|
32341
|
+
* Realms are how a singleton world scales: one process per realm, all
|
|
32342
|
+
* sharing a database. These are the site-admin views of the multiplayer
|
|
32343
|
+
* realm records.
|
|
32344
|
+
*/
|
|
32345
|
+
ServerOperations.listRealms = function (title_id, params) {
|
|
32346
|
+
return Requests.processRoute(ServerOperationsRoute.routes.listRealms, undefined, { title_id: title_id }, params);
|
|
32347
|
+
};
|
|
32348
|
+
ServerOperations.createRealm = function (title_id, data) {
|
|
32349
|
+
return Requests.processRoute(ServerOperationsRoute.routes.createRealm, data, { title_id: title_id });
|
|
32350
|
+
};
|
|
32351
|
+
ServerOperations.updateRealm = function (title_id, realm_id, data) {
|
|
32352
|
+
return Requests.processRoute(ServerOperationsRoute.routes.updateRealm, data, { title_id: title_id, realm_id: realm_id });
|
|
32353
|
+
};
|
|
32354
|
+
ServerOperations.deleteRealm = function (title_id, realm_id) {
|
|
32355
|
+
return Requests.processRoute(ServerOperationsRoute.routes.deleteRealm, undefined, { title_id: title_id, realm_id: realm_id });
|
|
32356
|
+
};
|
|
32223
32357
|
return ServerOperations;
|
|
32224
32358
|
}());
|
|
32225
32359
|
|