glitch-javascript-sdk 3.2.13 → 3.2.15
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 +91 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/AdminReports.d.ts +10 -0
- package/dist/esm/api/Agents.d.ts +8 -0
- package/dist/esm/api/Feedback.d.ts +24 -0
- package/dist/esm/api/index.d.ts +2 -0
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +91 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/routes/AdminReportsRoute.d.ts +7 -0
- package/dist/index.d.ts +41 -0
- package/package.json +1 -1
- package/src/api/AdminReports.ts +16 -0
- package/src/api/Agents.ts +14 -0
- package/src/api/Feedback.ts +52 -1
- package/src/api/index.ts +2 -0
- package/src/index.ts +2 -0
- package/src/routes/AdminReportsRoute.ts +13 -0
- package/src/routes/AgentsRoute.ts +2 -0
- package/src/routes/FeedbackRoute.ts +10 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Response from "../util/Response";
|
|
2
|
+
import { AxiosPromise } from "axios";
|
|
3
|
+
declare class AdminReports {
|
|
4
|
+
/**
|
|
5
|
+
* Returns aggregate site-admin reporting for user growth, churn, acquisition,
|
|
6
|
+
* engagement, and user-generated revenue.
|
|
7
|
+
*/
|
|
8
|
+
static usersRevenue<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
9
|
+
}
|
|
10
|
+
export default AdminReports;
|
package/dist/esm/api/Agents.d.ts
CHANGED
|
@@ -16,6 +16,14 @@ declare class Agents {
|
|
|
16
16
|
* List game titles that can be managed in the Agents section.
|
|
17
17
|
*/
|
|
18
18
|
static listTitles<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
19
|
+
/**
|
|
20
|
+
* List title-agent subscriptions linked to titles in a community.
|
|
21
|
+
*/
|
|
22
|
+
static listCommunitySubscriptions<T>(community_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
23
|
+
/**
|
|
24
|
+
* Cancel a title-agent subscription linked to a community title.
|
|
25
|
+
*/
|
|
26
|
+
static cancelCommunitySubscription<T>(community_id: string, stripe_subscription_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
19
27
|
/**
|
|
20
28
|
* Return the full Laravel API route catalog agents use for route-aware planning.
|
|
21
29
|
*/
|
|
@@ -17,6 +17,30 @@ declare class Feedback {
|
|
|
17
17
|
* @returns promise
|
|
18
18
|
*/
|
|
19
19
|
static viewFeedback<T>(feedback_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
20
|
+
/**
|
|
21
|
+
* List support tickets owned by the logged-in user.
|
|
22
|
+
*/
|
|
23
|
+
static listSupportTickets<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
24
|
+
/**
|
|
25
|
+
* Create a support ticket for the logged-in user.
|
|
26
|
+
*/
|
|
27
|
+
static createSupportTicket<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
28
|
+
/**
|
|
29
|
+
* View a support ticket owned by the logged-in user.
|
|
30
|
+
*/
|
|
31
|
+
static viewSupportTicket<T>(feedback_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
32
|
+
/**
|
|
33
|
+
* Reply to a support ticket owned by the logged-in user.
|
|
34
|
+
*/
|
|
35
|
+
static replySupportTicket<T>(feedback_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
36
|
+
/**
|
|
37
|
+
* Admin support inbox covering support tickets and feedback.
|
|
38
|
+
*/
|
|
39
|
+
static adminListFeedback<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
40
|
+
static adminViewFeedback<T>(feedback_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
41
|
+
static adminUpdateFeedback<T>(feedback_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
42
|
+
static adminReplyFeedback<T>(feedback_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
43
|
+
static adminRewardFeedback<T>(feedback_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
20
44
|
/**
|
|
21
45
|
* Submit feedback.
|
|
22
46
|
*
|
package/dist/esm/api/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ import ServerOperations from "./ServerOperations";
|
|
|
48
48
|
import Agents from "./Agents";
|
|
49
49
|
import Mcp from "./Mcp";
|
|
50
50
|
import PrDirectory from "./PrDirectory";
|
|
51
|
+
import AdminReports from "./AdminReports";
|
|
51
52
|
export { Ads };
|
|
52
53
|
export { AccessKeys };
|
|
53
54
|
export { Auth };
|
|
@@ -98,3 +99,4 @@ export { ServerOperations };
|
|
|
98
99
|
export { Agents };
|
|
99
100
|
export { Mcp };
|
|
100
101
|
export { PrDirectory };
|
|
102
|
+
export { AdminReports };
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ import { ServerOperations } from './api';
|
|
|
48
48
|
import { Agents } from './api';
|
|
49
49
|
import { Mcp } from './api';
|
|
50
50
|
import { PrDirectory } from './api';
|
|
51
|
+
import { AdminReports } from './api';
|
|
51
52
|
import Requests from "./util/Requests";
|
|
52
53
|
import Parser from "./util/Parser";
|
|
53
54
|
import Session from "./util/Session";
|
|
@@ -117,6 +118,7 @@ declare class Glitch {
|
|
|
117
118
|
Agents: typeof Agents;
|
|
118
119
|
Mcp: typeof Mcp;
|
|
119
120
|
PrDirectory: typeof PrDirectory;
|
|
121
|
+
AdminReports: typeof AdminReports;
|
|
120
122
|
};
|
|
121
123
|
static util: {
|
|
122
124
|
Requests: typeof Requests;
|
package/dist/esm/index.js
CHANGED
|
@@ -14457,6 +14457,15 @@ var FeedbackRoute = /** @class */ (function () {
|
|
|
14457
14457
|
listFeedback: { url: '/feedback', method: HTTP_METHODS.GET },
|
|
14458
14458
|
sendFeedback: { url: '/feedback', method: HTTP_METHODS.POST },
|
|
14459
14459
|
viewFeedback: { url: '/feedback/{feedback_id}', method: HTTP_METHODS.GET },
|
|
14460
|
+
listSupportTickets: { url: '/support/tickets', method: HTTP_METHODS.GET },
|
|
14461
|
+
createSupportTicket: { url: '/support/tickets', method: HTTP_METHODS.POST },
|
|
14462
|
+
viewSupportTicket: { url: '/support/tickets/{feedback_id}', method: HTTP_METHODS.GET },
|
|
14463
|
+
replySupportTicket: { url: '/support/tickets/{feedback_id}/replies', method: HTTP_METHODS.POST },
|
|
14464
|
+
adminListFeedback: { url: '/admin/support/feedback', method: HTTP_METHODS.GET },
|
|
14465
|
+
adminViewFeedback: { url: '/admin/support/feedback/{feedback_id}', method: HTTP_METHODS.GET },
|
|
14466
|
+
adminUpdateFeedback: { url: '/admin/support/feedback/{feedback_id}', method: HTTP_METHODS.PUT },
|
|
14467
|
+
adminReplyFeedback: { url: '/admin/support/feedback/{feedback_id}/reply', method: HTTP_METHODS.POST },
|
|
14468
|
+
adminRewardFeedback: { url: '/admin/support/feedback/{feedback_id}/reward', method: HTTP_METHODS.POST },
|
|
14460
14469
|
};
|
|
14461
14470
|
return FeedbackRoute;
|
|
14462
14471
|
}());
|
|
@@ -14484,6 +14493,48 @@ var Feedback = /** @class */ (function () {
|
|
|
14484
14493
|
Feedback.viewFeedback = function (feedback_id, params) {
|
|
14485
14494
|
return Requests.processRoute(FeedbackRoute.routes.viewFeedback, undefined, { feedback_id: feedback_id }, params);
|
|
14486
14495
|
};
|
|
14496
|
+
/**
|
|
14497
|
+
* List support tickets owned by the logged-in user.
|
|
14498
|
+
*/
|
|
14499
|
+
Feedback.listSupportTickets = function (params) {
|
|
14500
|
+
return Requests.processRoute(FeedbackRoute.routes.listSupportTickets, undefined, undefined, params);
|
|
14501
|
+
};
|
|
14502
|
+
/**
|
|
14503
|
+
* Create a support ticket for the logged-in user.
|
|
14504
|
+
*/
|
|
14505
|
+
Feedback.createSupportTicket = function (data, params) {
|
|
14506
|
+
return Requests.processRoute(FeedbackRoute.routes.createSupportTicket, data, {}, params);
|
|
14507
|
+
};
|
|
14508
|
+
/**
|
|
14509
|
+
* View a support ticket owned by the logged-in user.
|
|
14510
|
+
*/
|
|
14511
|
+
Feedback.viewSupportTicket = function (feedback_id, params) {
|
|
14512
|
+
return Requests.processRoute(FeedbackRoute.routes.viewSupportTicket, undefined, { feedback_id: feedback_id }, params);
|
|
14513
|
+
};
|
|
14514
|
+
/**
|
|
14515
|
+
* Reply to a support ticket owned by the logged-in user.
|
|
14516
|
+
*/
|
|
14517
|
+
Feedback.replySupportTicket = function (feedback_id, data, params) {
|
|
14518
|
+
return Requests.processRoute(FeedbackRoute.routes.replySupportTicket, data, { feedback_id: feedback_id }, params);
|
|
14519
|
+
};
|
|
14520
|
+
/**
|
|
14521
|
+
* Admin support inbox covering support tickets and feedback.
|
|
14522
|
+
*/
|
|
14523
|
+
Feedback.adminListFeedback = function (params) {
|
|
14524
|
+
return Requests.processRoute(FeedbackRoute.routes.adminListFeedback, undefined, undefined, params);
|
|
14525
|
+
};
|
|
14526
|
+
Feedback.adminViewFeedback = function (feedback_id, params) {
|
|
14527
|
+
return Requests.processRoute(FeedbackRoute.routes.adminViewFeedback, undefined, { feedback_id: feedback_id }, params);
|
|
14528
|
+
};
|
|
14529
|
+
Feedback.adminUpdateFeedback = function (feedback_id, data, params) {
|
|
14530
|
+
return Requests.processRoute(FeedbackRoute.routes.adminUpdateFeedback, data, { feedback_id: feedback_id }, params);
|
|
14531
|
+
};
|
|
14532
|
+
Feedback.adminReplyFeedback = function (feedback_id, data, params) {
|
|
14533
|
+
return Requests.processRoute(FeedbackRoute.routes.adminReplyFeedback, data, { feedback_id: feedback_id }, params);
|
|
14534
|
+
};
|
|
14535
|
+
Feedback.adminRewardFeedback = function (feedback_id, data, params) {
|
|
14536
|
+
return Requests.processRoute(FeedbackRoute.routes.adminRewardFeedback, data, { feedback_id: feedback_id }, params);
|
|
14537
|
+
};
|
|
14487
14538
|
/**
|
|
14488
14539
|
* Submit feedback.
|
|
14489
14540
|
*
|
|
@@ -19085,6 +19136,8 @@ var AgentsRoute = /** @class */ (function () {
|
|
|
19085
19136
|
}
|
|
19086
19137
|
AgentsRoute.routes = {
|
|
19087
19138
|
listTitles: { url: "/agents/titles", method: HTTP_METHODS.GET },
|
|
19139
|
+
listCommunitySubscriptions: { url: "/agents/communities/{community_id}/subscriptions", method: HTTP_METHODS.GET },
|
|
19140
|
+
cancelCommunitySubscription: { url: "/agents/communities/{community_id}/subscriptions/{stripe_subscription_id}", method: HTTP_METHODS.DELETE },
|
|
19088
19141
|
routeCatalog: { url: "/agents/routes/catalog", method: HTTP_METHODS.GET },
|
|
19089
19142
|
workspace: { url: "/agents/titles/{title_id}/workspace", method: HTTP_METHODS.GET },
|
|
19090
19143
|
listAgents: { url: "/agents/titles/{title_id}/agents", method: HTTP_METHODS.GET },
|
|
@@ -19130,6 +19183,18 @@ var Agents = /** @class */ (function () {
|
|
|
19130
19183
|
Agents.listTitles = function (params) {
|
|
19131
19184
|
return Requests.processRoute(AgentsRoute.routes.listTitles, {}, {}, params);
|
|
19132
19185
|
};
|
|
19186
|
+
/**
|
|
19187
|
+
* List title-agent subscriptions linked to titles in a community.
|
|
19188
|
+
*/
|
|
19189
|
+
Agents.listCommunitySubscriptions = function (community_id, params) {
|
|
19190
|
+
return Requests.processRoute(AgentsRoute.routes.listCommunitySubscriptions, {}, { community_id: community_id }, params);
|
|
19191
|
+
};
|
|
19192
|
+
/**
|
|
19193
|
+
* Cancel a title-agent subscription linked to a community title.
|
|
19194
|
+
*/
|
|
19195
|
+
Agents.cancelCommunitySubscription = function (community_id, stripe_subscription_id, params) {
|
|
19196
|
+
return Requests.processRoute(AgentsRoute.routes.cancelCommunitySubscription, {}, { community_id: community_id, stripe_subscription_id: stripe_subscription_id }, params);
|
|
19197
|
+
};
|
|
19133
19198
|
/**
|
|
19134
19199
|
* Return the full Laravel API route catalog agents use for route-aware planning.
|
|
19135
19200
|
*/
|
|
@@ -19598,6 +19663,31 @@ var PrDirectory = /** @class */ (function () {
|
|
|
19598
19663
|
return PrDirectory;
|
|
19599
19664
|
}());
|
|
19600
19665
|
|
|
19666
|
+
var AdminReportsRoute = /** @class */ (function () {
|
|
19667
|
+
function AdminReportsRoute() {
|
|
19668
|
+
}
|
|
19669
|
+
AdminReportsRoute.routes = {
|
|
19670
|
+
usersRevenue: {
|
|
19671
|
+
url: '/admin/reports/users-revenue',
|
|
19672
|
+
method: HTTP_METHODS.GET
|
|
19673
|
+
},
|
|
19674
|
+
};
|
|
19675
|
+
return AdminReportsRoute;
|
|
19676
|
+
}());
|
|
19677
|
+
|
|
19678
|
+
var AdminReports = /** @class */ (function () {
|
|
19679
|
+
function AdminReports() {
|
|
19680
|
+
}
|
|
19681
|
+
/**
|
|
19682
|
+
* Returns aggregate site-admin reporting for user growth, churn, acquisition,
|
|
19683
|
+
* engagement, and user-generated revenue.
|
|
19684
|
+
*/
|
|
19685
|
+
AdminReports.usersRevenue = function (params) {
|
|
19686
|
+
return Requests.processRoute(AdminReportsRoute.routes.usersRevenue, undefined, undefined, params);
|
|
19687
|
+
};
|
|
19688
|
+
return AdminReports;
|
|
19689
|
+
}());
|
|
19690
|
+
|
|
19601
19691
|
var Parser = /** @class */ (function () {
|
|
19602
19692
|
function Parser() {
|
|
19603
19693
|
}
|
|
@@ -20144,6 +20234,7 @@ var Glitch = /** @class */ (function () {
|
|
|
20144
20234
|
Agents: Agents,
|
|
20145
20235
|
Mcp: Mcp,
|
|
20146
20236
|
PrDirectory: PrDirectory,
|
|
20237
|
+
AdminReports: AdminReports,
|
|
20147
20238
|
};
|
|
20148
20239
|
Glitch.util = {
|
|
20149
20240
|
Requests: Requests,
|