glitch-javascript-sdk 4.1.0 → 4.2.0
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/browser/hosting-runtime.js +5840 -5627
- package/dist/browser/hosting-runtime.js.map +1 -1
- package/dist/cjs/index.js +200 -17
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Campaigns.d.ts +5 -0
- package/dist/esm/api/Mcp.d.ts +8 -0
- package/dist/esm/api/Preorders.d.ts +79 -2
- package/dist/esm/api/Scheduler.d.ts +3 -1
- package/dist/esm/api/Titles.d.ts +127 -2
- package/dist/esm/hosting-runtime.d.ts +13 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +186 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +223 -6
- package/guides/game-license-validation.md +54 -0
- package/package.json +2 -2
- package/src/api/Campaigns.ts +8 -0
- package/src/api/Mcp.ts +23 -0
- package/src/api/Preorders.ts +110 -2
- package/src/api/Scheduler.ts +3 -1
- package/src/api/Titles.ts +246 -99
- package/src/hosting-runtime.ts +277 -2
- package/src/index.ts +1 -0
- package/src/routes/CampaignsRoute.ts +1 -0
- package/src/routes/McpRoute.ts +5 -0
- package/src/routes/PreordersRoute.ts +12 -0
- package/src/routes/TitlesRoute.ts +13 -0
|
@@ -607,6 +607,11 @@ declare class Campaigns {
|
|
|
607
607
|
* @returns promise
|
|
608
608
|
*/
|
|
609
609
|
static sourcingGetSimilarIgdbGames<T>(campaign_id: string, params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
610
|
+
/**
|
|
611
|
+
* Discover recently streamed look-alikes for Easy Create (minimum five).
|
|
612
|
+
* Never treat older Twitch activity as currently streaming.
|
|
613
|
+
*/
|
|
614
|
+
static sourcingGetActiveStreamLookalikes<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
610
615
|
/**
|
|
611
616
|
* Find content creators for selected games. This does not save them to the database.
|
|
612
617
|
* @param campaign_id The UUID of the campaign.
|
package/dist/esm/api/Mcp.d.ts
CHANGED
|
@@ -27,6 +27,14 @@ declare class Mcp {
|
|
|
27
27
|
static titleContext<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
28
28
|
/** Check subscription, trial, plan, and credit state for a title. */
|
|
29
29
|
static billing<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
30
|
+
/** Discover title-scoped social operations for ordinary and eligible Agent subscriptions. */
|
|
31
|
+
static socialCapabilities<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
32
|
+
static socialOperation<T>(title_id: string, operation: string, args: Record<string, unknown>, confirm?: boolean, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
33
|
+
/** Discover full advertising and conversion tracking operations. */
|
|
34
|
+
static marketingCapabilities<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
35
|
+
/** Run a title-scoped advertising or conversion operation; mutations require confirmation. */
|
|
36
|
+
static marketingOperation<T>(title_id: string, operation: string, args: Record<string, unknown>, confirm?: boolean, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
37
|
+
static influencerCampaignOperation<T>(title_id: string, operation: string, fields?: Record<string, unknown>, campaign_id?: string, confirm?: boolean, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
30
38
|
/** Start a paid Glitch Agent run for a title. */
|
|
31
39
|
static startRun<T>(title_id: string, data?: McpStartRunRequest, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
32
40
|
/** Fetch a durable run with status, actions, guidance, events, files, and report. */
|
|
@@ -5,7 +5,7 @@ export type PreorderOfferStatus = 'draft' | 'active' | 'paused' | 'ended' | 'arc
|
|
|
5
5
|
export type PreorderDerivedState = 'draft' | 'available' | 'scheduled' | 'sold_out' | 'paused' | 'ended' | 'released' | 'archived';
|
|
6
6
|
export type PreorderPaymentStatus = 'created' | 'requires_action' | 'processing' | 'paid' | 'failed' | 'canceled' | 'refunded' | 'disputed' | 'unknown';
|
|
7
7
|
export type PreorderFulfillmentStatus = 'waiting_for_release' | 'ready' | 'processing' | 'fulfilled' | 'blocked_missing_build' | 'blocked_missing_key' | 'canceled' | 'failed';
|
|
8
|
-
export interface PreorderRequestOptions extends Pick<AxiosRequestConfig, 'signal' | 'timeout'> {
|
|
8
|
+
export interface PreorderRequestOptions extends Pick<AxiosRequestConfig, 'signal' | 'timeout' | 'headers'> {
|
|
9
9
|
}
|
|
10
10
|
export interface PreorderPrice {
|
|
11
11
|
country: string;
|
|
@@ -49,6 +49,7 @@ export interface PreorderOffer extends Omit<PreorderOfferInput, 'status'> {
|
|
|
49
49
|
}
|
|
50
50
|
export interface PreorderSettings {
|
|
51
51
|
enabled: boolean;
|
|
52
|
+
hosted_checkout_enabled: boolean;
|
|
52
53
|
timezone: string;
|
|
53
54
|
readiness?: PreorderReadiness;
|
|
54
55
|
}
|
|
@@ -64,6 +65,64 @@ export interface PreorderPurchaseInput {
|
|
|
64
65
|
payment_method_id?: string;
|
|
65
66
|
payment_intent_id?: string;
|
|
66
67
|
}
|
|
68
|
+
export interface HostedPreorderCatalog extends PreorderCatalog {
|
|
69
|
+
hosted_checkout_enabled: boolean;
|
|
70
|
+
title: {
|
|
71
|
+
id: string;
|
|
72
|
+
name: string;
|
|
73
|
+
};
|
|
74
|
+
hosting: {
|
|
75
|
+
site_id: string;
|
|
76
|
+
hostname: string;
|
|
77
|
+
origin: string;
|
|
78
|
+
};
|
|
79
|
+
checkout_origin: string;
|
|
80
|
+
embed_script_url: string;
|
|
81
|
+
version: number;
|
|
82
|
+
}
|
|
83
|
+
export interface HostedPreorderSessionInput {
|
|
84
|
+
offer_id: string;
|
|
85
|
+
return_origin: string;
|
|
86
|
+
nonce: string;
|
|
87
|
+
country?: string;
|
|
88
|
+
currency?: string;
|
|
89
|
+
}
|
|
90
|
+
export interface HostedPreorderRestoreInput {
|
|
91
|
+
return_origin: string;
|
|
92
|
+
nonce: string;
|
|
93
|
+
country?: string;
|
|
94
|
+
currency?: string;
|
|
95
|
+
}
|
|
96
|
+
export interface HostedPreorderPaymentState {
|
|
97
|
+
status: string;
|
|
98
|
+
requires_action?: boolean;
|
|
99
|
+
client_secret?: string | null;
|
|
100
|
+
payment_intent_id?: string | null;
|
|
101
|
+
retryable_same_request?: boolean;
|
|
102
|
+
}
|
|
103
|
+
export interface HostedPreorderSession {
|
|
104
|
+
id: string;
|
|
105
|
+
checkout_session_id: string;
|
|
106
|
+
intent: 'preorder' | 'preorder_restore';
|
|
107
|
+
title: {
|
|
108
|
+
id: string;
|
|
109
|
+
name: string;
|
|
110
|
+
};
|
|
111
|
+
hosting_site_id: string;
|
|
112
|
+
offer?: PreorderOffer | null;
|
|
113
|
+
country: string;
|
|
114
|
+
currency: string;
|
|
115
|
+
return_origin: string;
|
|
116
|
+
nonce: string;
|
|
117
|
+
expires_at: string;
|
|
118
|
+
authenticated: boolean;
|
|
119
|
+
status: string;
|
|
120
|
+
order?: PreorderOrder | null;
|
|
121
|
+
orders?: PreorderOrder[];
|
|
122
|
+
payment?: HostedPreorderPaymentState | null;
|
|
123
|
+
session_token?: string;
|
|
124
|
+
hosted_url?: string;
|
|
125
|
+
}
|
|
67
126
|
export interface PreorderOrder {
|
|
68
127
|
id: string;
|
|
69
128
|
title_id: string;
|
|
@@ -115,6 +174,24 @@ export interface PreorderAdminOrderFilters {
|
|
|
115
174
|
}
|
|
116
175
|
export type PreorderAdminOrderAction = 'refund' | 'reconcile' | 'fulfill' | 'resend_receipt' | 'resend_access';
|
|
117
176
|
declare class Preorders {
|
|
177
|
+
private static hostedOptions;
|
|
178
|
+
static hostedCatalog(options?: PreorderRequestOptions): AxiosPromise<Response<HostedPreorderCatalog>>;
|
|
179
|
+
static createHostedSession(data: HostedPreorderSessionInput, options?: PreorderRequestOptions): AxiosPromise<Response<HostedPreorderSession>>;
|
|
180
|
+
static createHostedRestoreSession(data: HostedPreorderRestoreInput, options?: PreorderRequestOptions): AxiosPromise<Response<HostedPreorderSession>>;
|
|
181
|
+
static hostedSession(title_id: string, session_id: string, checkoutToken: string, options?: PreorderRequestOptions): AxiosPromise<Response<HostedPreorderSession>>;
|
|
182
|
+
static hostedMine(title_id: string, session_id: string, checkoutToken: string, options?: PreorderRequestOptions): AxiosPromise<Response<HostedPreorderSession>>;
|
|
183
|
+
static authenticateHostedSession(title_id: string, session_id: string, checkoutToken: string, options?: PreorderRequestOptions): AxiosPromise<Response<HostedPreorderSession>>;
|
|
184
|
+
static checkoutHostedSession(title_id: string, session_id: string, checkoutToken: string, data: {
|
|
185
|
+
accept_terms: boolean;
|
|
186
|
+
payment_method_id?: string;
|
|
187
|
+
payment_intent_id?: string;
|
|
188
|
+
}, options?: PreorderRequestOptions): AxiosPromise<Response<HostedPreorderSession>>;
|
|
189
|
+
static reconcileHostedSession(title_id: string, session_id: string, checkoutToken: string, options?: PreorderRequestOptions): AxiosPromise<Response<HostedPreorderSession>>;
|
|
190
|
+
static retryHostedSession(title_id: string, session_id: string, checkoutToken: string, options?: PreorderRequestOptions): AxiosPromise<Response<HostedPreorderSession>>;
|
|
191
|
+
static refundHostedOrder(title_id: string, session_id: string, checkoutToken: string, order_id: string, options?: PreorderRequestOptions): AxiosPromise<Response<HostedPreorderSession>>;
|
|
192
|
+
static resendHostedAccess(title_id: string, session_id: string, checkoutToken: string, order_id: string, options?: PreorderRequestOptions): AxiosPromise<Response<{
|
|
193
|
+
resent: boolean;
|
|
194
|
+
}>>;
|
|
118
195
|
static catalog(title_id: string, options?: PreorderRequestOptions): AxiosPromise<Response<PreorderCatalog>>;
|
|
119
196
|
static purchase(title_id: string, offer_id: string, data: PreorderPurchaseInput, options?: PreorderRequestOptions): AxiosPromise<Response<PreorderOrder>>;
|
|
120
197
|
static myOrders(title_id: string, options?: PreorderRequestOptions): AxiosPromise<Response<{
|
|
@@ -126,7 +203,7 @@ declare class Preorders {
|
|
|
126
203
|
resent: boolean;
|
|
127
204
|
}>>;
|
|
128
205
|
static settings(title_id: string, options?: PreorderRequestOptions): AxiosPromise<Response<PreorderSettings>>;
|
|
129
|
-
static updateSettings(title_id: string, data: Partial<Pick<PreorderSettings, 'enabled' | 'timezone'>>, options?: PreorderRequestOptions): AxiosPromise<Response<PreorderSettings>>;
|
|
206
|
+
static updateSettings(title_id: string, data: Partial<Pick<PreorderSettings, 'enabled' | 'hosted_checkout_enabled' | 'timezone'>>, options?: PreorderRequestOptions): AxiosPromise<Response<PreorderSettings>>;
|
|
130
207
|
static offers(title_id: string, options?: PreorderRequestOptions): AxiosPromise<Response<{
|
|
131
208
|
offers: PreorderOffer[];
|
|
132
209
|
}>>;
|
|
@@ -646,7 +646,9 @@ declare class Scheduler {
|
|
|
646
646
|
*/
|
|
647
647
|
static listCampaignFundingInstruments<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
648
648
|
/**
|
|
649
|
-
* List
|
|
649
|
+
* List provider conversion actions (Google), Pixel sources (Meta, TikTok, Reddit), or X website-event tags
|
|
650
|
+
* for the scheduler's connected advertising account. The Reddit result
|
|
651
|
+
* does not establish delivery of conversion events.
|
|
650
652
|
* GET /schedulers/{scheduler_id}/conversion-actions
|
|
651
653
|
*/
|
|
652
654
|
static listConversionActions<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
package/dist/esm/api/Titles.d.ts
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
import Response from "../util/Response";
|
|
2
2
|
import { AxiosPromise } from "axios";
|
|
3
|
+
export type AegisLicenseType = 'premium' | 'rental' | 'subscription' | 'sponsored' | 'admin' | 'trial' | 'free' | 'demo' | 'playtest' | 'none';
|
|
4
|
+
export interface AegisLicenseDetail {
|
|
5
|
+
id: string | null;
|
|
6
|
+
type: AegisLicenseType;
|
|
7
|
+
source: string | null;
|
|
8
|
+
status: string;
|
|
9
|
+
acquired_at: string | null;
|
|
10
|
+
purchased_at: string | null;
|
|
11
|
+
expires_at: string | null;
|
|
12
|
+
is_permanent: boolean;
|
|
13
|
+
price_paid: {
|
|
14
|
+
amount: string;
|
|
15
|
+
currency: string;
|
|
16
|
+
} | null;
|
|
17
|
+
}
|
|
18
|
+
export interface AegisInstallValidation {
|
|
19
|
+
valid: boolean;
|
|
20
|
+
reason?: string;
|
|
21
|
+
code?: string;
|
|
22
|
+
user_id?: string | null;
|
|
23
|
+
user_name?: string;
|
|
24
|
+
/** Kept for backward compatibility; inspect license.type for the exact category. */
|
|
25
|
+
license_type?: string;
|
|
26
|
+
license?: AegisLicenseDetail;
|
|
27
|
+
access?: {
|
|
28
|
+
premium_purchase_required: boolean;
|
|
29
|
+
subscription_alone_sufficient: boolean;
|
|
30
|
+
};
|
|
31
|
+
build_type?: 'production' | 'demo' | 'playtest';
|
|
32
|
+
has_full_access?: boolean;
|
|
33
|
+
non_revenue_build?: boolean;
|
|
34
|
+
trial_time_remaining?: number | null;
|
|
35
|
+
rental_time_remaining?: number | null;
|
|
36
|
+
server_time?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface GameMonetizationSettings {
|
|
39
|
+
is_premium: boolean;
|
|
40
|
+
premium_price: string | number | null;
|
|
41
|
+
is_rental: boolean;
|
|
42
|
+
rental_price: string | number | null;
|
|
43
|
+
rental_duration_hours: number;
|
|
44
|
+
is_subscription_eligible: boolean;
|
|
45
|
+
premium_purchase_required_for_full_game: boolean;
|
|
46
|
+
}
|
|
3
47
|
export type GameReviewRecommendation = 'recommended' | 'not_recommended' | 'neutral';
|
|
4
48
|
export type GameReviewSentiment = 'positive' | 'mixed' | 'negative';
|
|
5
49
|
export type GameReviewVoteType = 'helpful' | 'funny' | 'detailed' | 'not_helpful';
|
|
@@ -90,6 +134,13 @@ declare class Titles {
|
|
|
90
134
|
* @returns promise
|
|
91
135
|
*/
|
|
92
136
|
static update<T>(title_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
137
|
+
/** View public title monetization settings. For mutation use authenticated title admin. */
|
|
138
|
+
static getGameMonetization<T = GameMonetizationSettings>(title_id: string): AxiosPromise<Response<T>>;
|
|
139
|
+
/**
|
|
140
|
+
* Update publisher monetization including premium_purchase_required_for_full_game.
|
|
141
|
+
* Requires a title administrator JWT; backend validates premium/subscription/rental compatibility.
|
|
142
|
+
*/
|
|
143
|
+
static updateGameMonetization<T = GameMonetizationSettings>(title_id: string, settings: Partial<GameMonetizationSettings>): AxiosPromise<Response<T>>;
|
|
93
144
|
/**
|
|
94
145
|
* Retrieve the information for a single title.
|
|
95
146
|
*
|
|
@@ -585,9 +636,13 @@ declare class Titles {
|
|
|
585
636
|
*
|
|
586
637
|
* @param title_id The UUID of the game title.
|
|
587
638
|
* @param install_id The UUID of the specific install/session.
|
|
588
|
-
* @returns
|
|
639
|
+
* @returns Access result with a backward-compatible license_type and exact license
|
|
640
|
+
* metadata: type, status, source, acquired_at, purchased_at, expires_at and
|
|
641
|
+
* verified price_paid (null when no authoritative historical price exists).
|
|
642
|
+
* Production requests may return PREMIUM_PURCHASE_REQUIRED (403).
|
|
643
|
+
* The caller must block gameplay when valid is false.
|
|
589
644
|
*/
|
|
590
|
-
static validateInstall<T>(title_id: string, install_id: string): AxiosPromise<Response<T>>;
|
|
645
|
+
static validateInstall<T = AegisInstallValidation>(title_id: string, install_id: string): AxiosPromise<Response<T>>;
|
|
591
646
|
/**
|
|
592
647
|
* List all builds/deployments for a specific title.
|
|
593
648
|
* @param title_id The UUID of the title.
|
|
@@ -834,5 +889,75 @@ declare class Titles {
|
|
|
834
889
|
linked_patch_note_id?: string;
|
|
835
890
|
issue_marked_fixed?: boolean;
|
|
836
891
|
}): AxiosPromise<Response<T>>;
|
|
892
|
+
/**
|
|
893
|
+
* Steam Financial API connection and sync status for a title: masked key, partner,
|
|
894
|
+
* last sync times, stored sales/wishlist date ranges and pending dates.
|
|
895
|
+
*/
|
|
896
|
+
static steamFinancialsStatus<T>(title_id: string): AxiosPromise<Response<T>>;
|
|
897
|
+
/**
|
|
898
|
+
* Verify a Steamworks Financial API Group key with Steam and store it (encrypted) on the title.
|
|
899
|
+
* Queues a full sync unless `sync: false` is passed.
|
|
900
|
+
*
|
|
901
|
+
* @param data { api_key: string, sync?: boolean }
|
|
902
|
+
*/
|
|
903
|
+
static steamFinancialsConnect<T>(title_id: string, data: {
|
|
904
|
+
api_key: string;
|
|
905
|
+
sync?: boolean;
|
|
906
|
+
}): AxiosPromise<Response<T>>;
|
|
907
|
+
/** Check a key (or the stored key when api_key is omitted) with Steam without saving anything. */
|
|
908
|
+
static steamFinancialsTestKey<T>(title_id: string, data?: {
|
|
909
|
+
api_key?: string;
|
|
910
|
+
}): AxiosPromise<Response<T>>;
|
|
911
|
+
/** Remove the stored key. Pass { purge_data: true } to also delete synced Steam financial data. */
|
|
912
|
+
static steamFinancialsDisconnect<T>(title_id: string, params?: {
|
|
913
|
+
purge_data?: boolean;
|
|
914
|
+
}): AxiosPromise<Response<T>>;
|
|
915
|
+
/**
|
|
916
|
+
* Sync sales and/or wishlists from Steam. Queued by default; pass `wait: true` for a short inline run.
|
|
917
|
+
*
|
|
918
|
+
* @param data { datasets?: ('sales'|'wishlists')[], full?: boolean, wait?: boolean, max_dates?: number, max_days?: number, from?: string, to?: string, include_view_grants?: boolean }
|
|
919
|
+
*/
|
|
920
|
+
static steamFinancialsSync<T>(title_id: string, data?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
921
|
+
/**
|
|
922
|
+
* Report bundle built from synced Steam data: summary, sales over time and by country, region,
|
|
923
|
+
* product, platform, sale type, discount and price point, key activations, revenue-share tiers,
|
|
924
|
+
* wishlists over time and by country, region, language and platform, and the wishlist-to-sales funnel.
|
|
925
|
+
*
|
|
926
|
+
* @param params { from?: 'YYYY-MM-DD', to?: 'YYYY-MM-DD', report_keys?: string (comma separated), app_scope?: 'title'|'partner', app_id?: number, limit?: number }
|
|
927
|
+
*/
|
|
928
|
+
static steamFinancialsReports<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
929
|
+
/**
|
|
930
|
+
* Paginated Steam sales line items (every GetDetailedSales field) with product, country,
|
|
931
|
+
* discount and key-request names attached.
|
|
932
|
+
*
|
|
933
|
+
* @param params { from?, to?, app_scope?, app_id?, page?, per_page?, country_code?, platform?, line_item_type?, package_sale_type?, currency?, packageid?, bundleid?, key_request_id?, combined_discount_id? }
|
|
934
|
+
*/
|
|
935
|
+
static steamFinancialsSales<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
936
|
+
/**
|
|
937
|
+
* Daily Steam wishlist rows; pass dimension 'country' or 'language' for the breakdown rows.
|
|
938
|
+
*
|
|
939
|
+
* @param params { from?, to?, app_id?, dimension?: 'country'|'language' }
|
|
940
|
+
*/
|
|
941
|
+
static steamFinancialsWishlists<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
942
|
+
/** Names Steam returned with sales: package, app, bundle, discount, combined_discount, key_request, game_item, country, partner. */
|
|
943
|
+
static steamFinancialsLookups<T>(title_id: string, params?: {
|
|
944
|
+
kind?: string;
|
|
945
|
+
}): AxiosPromise<Response<T>>;
|
|
946
|
+
/** Live GetChangedDatesForPartner (nothing stored). */
|
|
947
|
+
static steamFinancialsLiveChangedDates<T>(title_id: string, params?: {
|
|
948
|
+
highwatermark?: string;
|
|
949
|
+
include_view_grants?: boolean;
|
|
950
|
+
}): AxiosPromise<Response<T>>;
|
|
951
|
+
/** Live GetDetailedSales for one date and page (nothing stored). */
|
|
952
|
+
static steamFinancialsLiveDetailedSales<T>(title_id: string, params: {
|
|
953
|
+
date: string;
|
|
954
|
+
highwatermark_id?: string;
|
|
955
|
+
include_view_grants?: boolean;
|
|
956
|
+
}): AxiosPromise<Response<T>>;
|
|
957
|
+
/** Live GetAppWishlistReporting for one date (nothing stored). */
|
|
958
|
+
static steamFinancialsLiveWishlist<T>(title_id: string, params: {
|
|
959
|
+
date: string;
|
|
960
|
+
app_id?: number;
|
|
961
|
+
}): AxiosPromise<Response<T>>;
|
|
837
962
|
}
|
|
838
963
|
export default Titles;
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
type HostedPreorderClient = {
|
|
2
|
+
open: (options: {
|
|
3
|
+
offerId: string;
|
|
4
|
+
onComplete?: (order: Record<string, any>) => void;
|
|
5
|
+
onClose?: (reason?: string) => void;
|
|
6
|
+
onError?: (error: any) => void;
|
|
7
|
+
}) => Promise<any>;
|
|
8
|
+
restore?: (options?: {
|
|
9
|
+
onClose?: (reason?: string) => void;
|
|
10
|
+
onError?: (error: any) => void;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
};
|
|
1
13
|
declare global {
|
|
2
14
|
interface Window {
|
|
3
15
|
GlitchHosting?: {
|
|
@@ -5,6 +17,7 @@ declare global {
|
|
|
5
17
|
session?: Record<string, any>;
|
|
6
18
|
getContext: () => Record<string, any> | null;
|
|
7
19
|
};
|
|
20
|
+
GlitchPreorders?: HostedPreorderClient;
|
|
8
21
|
}
|
|
9
22
|
}
|
|
10
23
|
export {};
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ import { Publications } from "./api";
|
|
|
27
27
|
import { GameShows } from "./api";
|
|
28
28
|
import FestivalNetworking from './api/FestivalNetworking';
|
|
29
29
|
export * from './api/FestivalNetworking';
|
|
30
|
+
export type { AegisLicenseType, AegisLicenseDetail, AegisInstallValidation, GameMonetizationSettings } from './api/Titles';
|
|
30
31
|
import { Newsletters } from "./api";
|
|
31
32
|
import { PlayTests } from "./api";
|
|
32
33
|
import { Media } from "./api";
|
package/dist/esm/index.js
CHANGED
|
@@ -12450,6 +12450,19 @@ TitlesRoute.routes = {
|
|
|
12450
12450
|
reviewsVote: { url: '/reviews/{review_id}/vote', method: HTTP_METHODS.POST },
|
|
12451
12451
|
reviewsReport: { url: '/reviews/{review_id}/report', method: HTTP_METHODS.POST },
|
|
12452
12452
|
reviewsDeveloperResponse: { url: '/reviews/{review_id}/developer-response', method: HTTP_METHODS.POST },
|
|
12453
|
+
// Steamworks Financial API (IPartnerFinancialsService): key, sync, stored data, live read-through.
|
|
12454
|
+
steamFinancialsStatus: { url: '/titles/{title_id}/steam/financials', method: HTTP_METHODS.GET },
|
|
12455
|
+
steamFinancialsConnect: { url: '/titles/{title_id}/steam/financials/key', method: HTTP_METHODS.PUT },
|
|
12456
|
+
steamFinancialsTestKey: { url: '/titles/{title_id}/steam/financials/key/test', method: HTTP_METHODS.POST },
|
|
12457
|
+
steamFinancialsDisconnect: { url: '/titles/{title_id}/steam/financials/key', method: HTTP_METHODS.DELETE },
|
|
12458
|
+
steamFinancialsSync: { url: '/titles/{title_id}/steam/financials/sync', method: HTTP_METHODS.POST },
|
|
12459
|
+
steamFinancialsReports: { url: '/titles/{title_id}/steam/financials/reports', method: HTTP_METHODS.GET },
|
|
12460
|
+
steamFinancialsSales: { url: '/titles/{title_id}/steam/financials/sales', method: HTTP_METHODS.GET },
|
|
12461
|
+
steamFinancialsWishlists: { url: '/titles/{title_id}/steam/financials/wishlists', method: HTTP_METHODS.GET },
|
|
12462
|
+
steamFinancialsLookups: { url: '/titles/{title_id}/steam/financials/lookups', method: HTTP_METHODS.GET },
|
|
12463
|
+
steamFinancialsLiveChangedDates: { url: '/titles/{title_id}/steam/financials/live/changed-dates', method: HTTP_METHODS.GET },
|
|
12464
|
+
steamFinancialsLiveDetailedSales: { url: '/titles/{title_id}/steam/financials/live/detailed-sales', method: HTTP_METHODS.GET },
|
|
12465
|
+
steamFinancialsLiveWishlist: { url: '/titles/{title_id}/steam/financials/live/wishlist', method: HTTP_METHODS.GET },
|
|
12453
12466
|
};
|
|
12454
12467
|
|
|
12455
12468
|
class Titles {
|
|
@@ -12488,6 +12501,17 @@ class Titles {
|
|
|
12488
12501
|
static update(title_id, data, params) {
|
|
12489
12502
|
return Requests.processRoute(TitlesRoute.routes.update, data, { title_id: title_id }, params);
|
|
12490
12503
|
}
|
|
12504
|
+
/** View public title monetization settings. For mutation use authenticated title admin. */
|
|
12505
|
+
static getGameMonetization(title_id) {
|
|
12506
|
+
return Titles.view(title_id);
|
|
12507
|
+
}
|
|
12508
|
+
/**
|
|
12509
|
+
* Update publisher monetization including premium_purchase_required_for_full_game.
|
|
12510
|
+
* Requires a title administrator JWT; backend validates premium/subscription/rental compatibility.
|
|
12511
|
+
*/
|
|
12512
|
+
static updateGameMonetization(title_id, settings) {
|
|
12513
|
+
return Titles.update(title_id, settings);
|
|
12514
|
+
}
|
|
12491
12515
|
/**
|
|
12492
12516
|
* Retrieve the information for a single title.
|
|
12493
12517
|
*
|
|
@@ -13129,7 +13153,11 @@ class Titles {
|
|
|
13129
13153
|
*
|
|
13130
13154
|
* @param title_id The UUID of the game title.
|
|
13131
13155
|
* @param install_id The UUID of the specific install/session.
|
|
13132
|
-
* @returns
|
|
13156
|
+
* @returns Access result with a backward-compatible license_type and exact license
|
|
13157
|
+
* metadata: type, status, source, acquired_at, purchased_at, expires_at and
|
|
13158
|
+
* verified price_paid (null when no authoritative historical price exists).
|
|
13159
|
+
* Production requests may return PREMIUM_PURCHASE_REQUIRED (403).
|
|
13160
|
+
* The caller must block gameplay when valid is false.
|
|
13133
13161
|
*/
|
|
13134
13162
|
static validateInstall(title_id, install_id) {
|
|
13135
13163
|
return Requests.processRoute(TitlesRoute.routes.validateInstall, {}, { title_id: title_id, install_id: install_id });
|
|
@@ -13462,6 +13490,82 @@ class Titles {
|
|
|
13462
13490
|
static respondToReview(review_id, data) {
|
|
13463
13491
|
return Requests.processRoute(TitlesRoute.routes.reviewsDeveloperResponse, data, { review_id });
|
|
13464
13492
|
}
|
|
13493
|
+
// ----- Steamworks Financial API -----------------------------------------------------
|
|
13494
|
+
/**
|
|
13495
|
+
* Steam Financial API connection and sync status for a title: masked key, partner,
|
|
13496
|
+
* last sync times, stored sales/wishlist date ranges and pending dates.
|
|
13497
|
+
*/
|
|
13498
|
+
static steamFinancialsStatus(title_id) {
|
|
13499
|
+
return Requests.processRoute(TitlesRoute.routes.steamFinancialsStatus, undefined, { title_id });
|
|
13500
|
+
}
|
|
13501
|
+
/**
|
|
13502
|
+
* Verify a Steamworks Financial API Group key with Steam and store it (encrypted) on the title.
|
|
13503
|
+
* Queues a full sync unless `sync: false` is passed.
|
|
13504
|
+
*
|
|
13505
|
+
* @param data { api_key: string, sync?: boolean }
|
|
13506
|
+
*/
|
|
13507
|
+
static steamFinancialsConnect(title_id, data) {
|
|
13508
|
+
return Requests.processRoute(TitlesRoute.routes.steamFinancialsConnect, data, { title_id });
|
|
13509
|
+
}
|
|
13510
|
+
/** Check a key (or the stored key when api_key is omitted) with Steam without saving anything. */
|
|
13511
|
+
static steamFinancialsTestKey(title_id, data) {
|
|
13512
|
+
return Requests.processRoute(TitlesRoute.routes.steamFinancialsTestKey, data || {}, { title_id });
|
|
13513
|
+
}
|
|
13514
|
+
/** Remove the stored key. Pass { purge_data: true } to also delete synced Steam financial data. */
|
|
13515
|
+
static steamFinancialsDisconnect(title_id, params) {
|
|
13516
|
+
return Requests.processRoute(TitlesRoute.routes.steamFinancialsDisconnect, undefined, { title_id }, params);
|
|
13517
|
+
}
|
|
13518
|
+
/**
|
|
13519
|
+
* Sync sales and/or wishlists from Steam. Queued by default; pass `wait: true` for a short inline run.
|
|
13520
|
+
*
|
|
13521
|
+
* @param data { datasets?: ('sales'|'wishlists')[], full?: boolean, wait?: boolean, max_dates?: number, max_days?: number, from?: string, to?: string, include_view_grants?: boolean }
|
|
13522
|
+
*/
|
|
13523
|
+
static steamFinancialsSync(title_id, data) {
|
|
13524
|
+
return Requests.processRoute(TitlesRoute.routes.steamFinancialsSync, data || {}, { title_id });
|
|
13525
|
+
}
|
|
13526
|
+
/**
|
|
13527
|
+
* Report bundle built from synced Steam data: summary, sales over time and by country, region,
|
|
13528
|
+
* product, platform, sale type, discount and price point, key activations, revenue-share tiers,
|
|
13529
|
+
* wishlists over time and by country, region, language and platform, and the wishlist-to-sales funnel.
|
|
13530
|
+
*
|
|
13531
|
+
* @param params { from?: 'YYYY-MM-DD', to?: 'YYYY-MM-DD', report_keys?: string (comma separated), app_scope?: 'title'|'partner', app_id?: number, limit?: number }
|
|
13532
|
+
*/
|
|
13533
|
+
static steamFinancialsReports(title_id, params) {
|
|
13534
|
+
return Requests.processRoute(TitlesRoute.routes.steamFinancialsReports, undefined, { title_id }, params);
|
|
13535
|
+
}
|
|
13536
|
+
/**
|
|
13537
|
+
* Paginated Steam sales line items (every GetDetailedSales field) with product, country,
|
|
13538
|
+
* discount and key-request names attached.
|
|
13539
|
+
*
|
|
13540
|
+
* @param params { from?, to?, app_scope?, app_id?, page?, per_page?, country_code?, platform?, line_item_type?, package_sale_type?, currency?, packageid?, bundleid?, key_request_id?, combined_discount_id? }
|
|
13541
|
+
*/
|
|
13542
|
+
static steamFinancialsSales(title_id, params) {
|
|
13543
|
+
return Requests.processRoute(TitlesRoute.routes.steamFinancialsSales, undefined, { title_id }, params);
|
|
13544
|
+
}
|
|
13545
|
+
/**
|
|
13546
|
+
* Daily Steam wishlist rows; pass dimension 'country' or 'language' for the breakdown rows.
|
|
13547
|
+
*
|
|
13548
|
+
* @param params { from?, to?, app_id?, dimension?: 'country'|'language' }
|
|
13549
|
+
*/
|
|
13550
|
+
static steamFinancialsWishlists(title_id, params) {
|
|
13551
|
+
return Requests.processRoute(TitlesRoute.routes.steamFinancialsWishlists, undefined, { title_id }, params);
|
|
13552
|
+
}
|
|
13553
|
+
/** Names Steam returned with sales: package, app, bundle, discount, combined_discount, key_request, game_item, country, partner. */
|
|
13554
|
+
static steamFinancialsLookups(title_id, params) {
|
|
13555
|
+
return Requests.processRoute(TitlesRoute.routes.steamFinancialsLookups, undefined, { title_id }, params);
|
|
13556
|
+
}
|
|
13557
|
+
/** Live GetChangedDatesForPartner (nothing stored). */
|
|
13558
|
+
static steamFinancialsLiveChangedDates(title_id, params) {
|
|
13559
|
+
return Requests.processRoute(TitlesRoute.routes.steamFinancialsLiveChangedDates, undefined, { title_id }, params);
|
|
13560
|
+
}
|
|
13561
|
+
/** Live GetDetailedSales for one date and page (nothing stored). */
|
|
13562
|
+
static steamFinancialsLiveDetailedSales(title_id, params) {
|
|
13563
|
+
return Requests.processRoute(TitlesRoute.routes.steamFinancialsLiveDetailedSales, undefined, { title_id }, params);
|
|
13564
|
+
}
|
|
13565
|
+
/** Live GetAppWishlistReporting for one date (nothing stored). */
|
|
13566
|
+
static steamFinancialsLiveWishlist(title_id, params) {
|
|
13567
|
+
return Requests.processRoute(TitlesRoute.routes.steamFinancialsLiveWishlist, undefined, { title_id }, params);
|
|
13568
|
+
}
|
|
13465
13569
|
}
|
|
13466
13570
|
|
|
13467
13571
|
class CampaignsRoute {
|
|
@@ -13534,6 +13638,7 @@ CampaignsRoute.routes = {
|
|
|
13534
13638
|
sendCampaignContractWithDocusign: { url: '/campaigns/{campaign_id}/influencers/{user_id}/docusign', method: HTTP_METHODS.POST },
|
|
13535
13639
|
sourcingSearchIgdbForCampaignGame: { url: '/campaigns/{campaign_id}/sourcing/search-game', method: HTTP_METHODS.GET },
|
|
13536
13640
|
sourcingGetSimilarIgdbGames: { url: '/campaigns/{campaign_id}/sourcing/similar-games', method: HTTP_METHODS.GET },
|
|
13641
|
+
sourcingGetActiveStreamLookalikes: { url: '/campaigns/{campaign_id}/sourcing/active-stream-lookalikes', method: HTTP_METHODS.POST },
|
|
13537
13642
|
sourcingFindCreators: { url: '/campaigns/{campaign_id}/sourcing/find-creators', method: HTTP_METHODS.POST },
|
|
13538
13643
|
updateSourcingSettings: { url: '/campaigns/{campaign_id}/sourcing/settings', method: HTTP_METHODS.PUT },
|
|
13539
13644
|
sourcingFindAndSaveCreators: { url: '/campaigns/{campaign_id}/sourcing/find-save-creators', method: HTTP_METHODS.POST },
|
|
@@ -14320,6 +14425,13 @@ class Campaigns {
|
|
|
14320
14425
|
static sourcingGetSimilarIgdbGames(campaign_id, params) {
|
|
14321
14426
|
return Requests.processRoute(CampaignsRoute.routes.sourcingGetSimilarIgdbGames, undefined, { campaign_id }, params);
|
|
14322
14427
|
}
|
|
14428
|
+
/**
|
|
14429
|
+
* Discover recently streamed look-alikes for Easy Create (minimum five).
|
|
14430
|
+
* Never treat older Twitch activity as currently streaming.
|
|
14431
|
+
*/
|
|
14432
|
+
static sourcingGetActiveStreamLookalikes(campaign_id, params = {}) {
|
|
14433
|
+
return Requests.processRoute(CampaignsRoute.routes.sourcingGetActiveStreamLookalikes, params, { campaign_id });
|
|
14434
|
+
}
|
|
14323
14435
|
/**
|
|
14324
14436
|
* Find content creators for selected games. This does not save them to the database.
|
|
14325
14437
|
* @param campaign_id The UUID of the campaign.
|
|
@@ -17295,7 +17407,9 @@ class Scheduler {
|
|
|
17295
17407
|
return Requests.processRoute(SchedulerRoute.routes.getCampaignFundingInstruments, undefined, { scheduler_id }, params);
|
|
17296
17408
|
}
|
|
17297
17409
|
/**
|
|
17298
|
-
* List
|
|
17410
|
+
* List provider conversion actions (Google), Pixel sources (Meta, TikTok, Reddit), or X website-event tags
|
|
17411
|
+
* for the scheduler's connected advertising account. The Reddit result
|
|
17412
|
+
* does not establish delivery of conversion events.
|
|
17299
17413
|
* GET /schedulers/{scheduler_id}/conversion-actions
|
|
17300
17414
|
*/
|
|
17301
17415
|
static listConversionActions(scheduler_id, params) {
|
|
@@ -20878,6 +20992,11 @@ McpRoute.routes = {
|
|
|
20878
20992
|
listTitles: { url: "/mcp/v1/titles", method: HTTP_METHODS.GET },
|
|
20879
20993
|
titleContext: { url: "/mcp/v1/titles/{title_id}/context", method: HTTP_METHODS.GET },
|
|
20880
20994
|
billing: { url: "/mcp/v1/titles/{title_id}/billing", method: HTTP_METHODS.GET },
|
|
20995
|
+
socialCapabilities: { url: "/mcp/v1/titles/{title_id}/social/capabilities", method: HTTP_METHODS.GET },
|
|
20996
|
+
socialOperation: { url: "/mcp/v1/titles/{title_id}/social/operations/{operation}", method: HTTP_METHODS.POST },
|
|
20997
|
+
marketingCapabilities: { url: "/mcp/v1/titles/{title_id}/marketing/capabilities", method: HTTP_METHODS.GET },
|
|
20998
|
+
marketingOperation: { url: "/mcp/v1/titles/{title_id}/marketing/operations/{operation}", method: HTTP_METHODS.POST },
|
|
20999
|
+
influencerCampaignOperation: { url: "/mcp/v1/titles/{title_id}/influencer-campaigns/{operation}", method: HTTP_METHODS.POST },
|
|
20881
21000
|
startRun: { url: "/mcp/v1/titles/{title_id}/runs", method: HTTP_METHODS.POST },
|
|
20882
21001
|
viewRun: { url: "/mcp/v1/titles/{title_id}/runs/{run_id}", method: HTTP_METHODS.GET },
|
|
20883
21002
|
runEvents: { url: "/mcp/v1/titles/{title_id}/runs/{run_id}/events", method: HTTP_METHODS.GET },
|
|
@@ -20921,6 +21040,24 @@ class Mcp {
|
|
|
20921
21040
|
static billing(title_id, params) {
|
|
20922
21041
|
return Requests.processRoute(McpRoute.routes.billing, {}, { title_id }, params);
|
|
20923
21042
|
}
|
|
21043
|
+
/** Discover title-scoped social operations for ordinary and eligible Agent subscriptions. */
|
|
21044
|
+
static socialCapabilities(title_id, params) {
|
|
21045
|
+
return Requests.processRoute(McpRoute.routes.socialCapabilities, {}, { title_id }, params);
|
|
21046
|
+
}
|
|
21047
|
+
static socialOperation(title_id, operation, args, confirm = false, params) {
|
|
21048
|
+
return Requests.processRoute(McpRoute.routes.socialOperation, { arguments: args, confirm }, { title_id, operation }, params);
|
|
21049
|
+
}
|
|
21050
|
+
/** Discover full advertising and conversion tracking operations. */
|
|
21051
|
+
static marketingCapabilities(title_id, params) {
|
|
21052
|
+
return Requests.processRoute(McpRoute.routes.marketingCapabilities, {}, { title_id }, params);
|
|
21053
|
+
}
|
|
21054
|
+
/** Run a title-scoped advertising or conversion operation; mutations require confirmation. */
|
|
21055
|
+
static marketingOperation(title_id, operation, args, confirm = false, params) {
|
|
21056
|
+
return Requests.processRoute(McpRoute.routes.marketingOperation, { arguments: args, confirm }, { title_id, operation }, params);
|
|
21057
|
+
}
|
|
21058
|
+
static influencerCampaignOperation(title_id, operation, fields, campaign_id, confirm = false, params) {
|
|
21059
|
+
return Requests.processRoute(McpRoute.routes.influencerCampaignOperation, { fields, campaign_id, confirm }, { title_id, operation }, params);
|
|
21060
|
+
}
|
|
20924
21061
|
/** Start a paid Glitch Agent run for a title. */
|
|
20925
21062
|
static startRun(title_id, data, params) {
|
|
20926
21063
|
return Requests.processRoute(McpRoute.routes.startRun, data !== null && data !== void 0 ? data : {}, { title_id }, params);
|
|
@@ -21930,6 +22067,17 @@ class Microtransactions {
|
|
|
21930
22067
|
class PreordersRoute {
|
|
21931
22068
|
}
|
|
21932
22069
|
PreordersRoute.routes = {
|
|
22070
|
+
hostedCatalog: { url: '/hosting/preorders/catalog', method: HTTP_METHODS.GET },
|
|
22071
|
+
createHostedSession: { url: '/hosting/preorders/checkout-sessions', method: HTTP_METHODS.POST },
|
|
22072
|
+
createHostedRestoreSession: { url: '/hosting/preorders/restore-sessions', method: HTTP_METHODS.POST },
|
|
22073
|
+
hostedSession: { url: '/titles/{title_id}/preorders/hosted/checkout-sessions/{session_id}', method: HTTP_METHODS.GET },
|
|
22074
|
+
hostedMine: { url: '/titles/{title_id}/preorders/hosted/checkout-sessions/{session_id}/me', method: HTTP_METHODS.GET },
|
|
22075
|
+
hostedAuthenticate: { url: '/titles/{title_id}/preorders/hosted/checkout-sessions/{session_id}/authenticate', method: HTTP_METHODS.POST },
|
|
22076
|
+
hostedCheckout: { url: '/titles/{title_id}/preorders/hosted/checkout-sessions/{session_id}/checkout', method: HTTP_METHODS.POST },
|
|
22077
|
+
hostedReconcile: { url: '/titles/{title_id}/preorders/hosted/checkout-sessions/{session_id}/reconcile', method: HTTP_METHODS.POST },
|
|
22078
|
+
hostedRetry: { url: '/titles/{title_id}/preorders/hosted/checkout-sessions/{session_id}/retry', method: HTTP_METHODS.POST },
|
|
22079
|
+
hostedRefund: { url: '/titles/{title_id}/preorders/hosted/checkout-sessions/{session_id}/refund', method: HTTP_METHODS.POST },
|
|
22080
|
+
hostedResendAccess: { url: '/titles/{title_id}/preorders/hosted/checkout-sessions/{session_id}/resend-access', method: HTTP_METHODS.POST },
|
|
21933
22081
|
catalog: { url: '/titles/{title_id}/preorders', method: HTTP_METHODS.GET },
|
|
21934
22082
|
purchase: { url: '/titles/{title_id}/preorders/{offer_id}/purchase', method: HTTP_METHODS.POST },
|
|
21935
22083
|
myOrders: { url: '/titles/{title_id}/preorders/me/orders', method: HTTP_METHODS.GET },
|
|
@@ -21956,6 +22104,42 @@ PreordersRoute.routes = {
|
|
|
21956
22104
|
};
|
|
21957
22105
|
|
|
21958
22106
|
class Preorders {
|
|
22107
|
+
static hostedOptions(checkoutToken, options) {
|
|
22108
|
+
return Object.assign(Object.assign({}, options), { headers: Object.assign(Object.assign({}, ((options === null || options === void 0 ? void 0 : options.headers) || {})), { 'X-Checkout-Token': checkoutToken }) });
|
|
22109
|
+
}
|
|
22110
|
+
static hostedCatalog(options) {
|
|
22111
|
+
return Requests.processRoute(PreordersRoute.routes.hostedCatalog, undefined, undefined, undefined, options);
|
|
22112
|
+
}
|
|
22113
|
+
static createHostedSession(data, options) {
|
|
22114
|
+
return Requests.processRoute(PreordersRoute.routes.createHostedSession, data, undefined, undefined, options);
|
|
22115
|
+
}
|
|
22116
|
+
static createHostedRestoreSession(data, options) {
|
|
22117
|
+
return Requests.processRoute(PreordersRoute.routes.createHostedRestoreSession, data, undefined, undefined, options);
|
|
22118
|
+
}
|
|
22119
|
+
static hostedSession(title_id, session_id, checkoutToken, options) {
|
|
22120
|
+
return Requests.processRoute(PreordersRoute.routes.hostedSession, undefined, { title_id, session_id }, undefined, this.hostedOptions(checkoutToken, options));
|
|
22121
|
+
}
|
|
22122
|
+
static hostedMine(title_id, session_id, checkoutToken, options) {
|
|
22123
|
+
return Requests.processRoute(PreordersRoute.routes.hostedMine, undefined, { title_id, session_id }, undefined, this.hostedOptions(checkoutToken, options));
|
|
22124
|
+
}
|
|
22125
|
+
static authenticateHostedSession(title_id, session_id, checkoutToken, options) {
|
|
22126
|
+
return Requests.processRoute(PreordersRoute.routes.hostedAuthenticate, {}, { title_id, session_id }, undefined, this.hostedOptions(checkoutToken, options));
|
|
22127
|
+
}
|
|
22128
|
+
static checkoutHostedSession(title_id, session_id, checkoutToken, data, options) {
|
|
22129
|
+
return Requests.processRoute(PreordersRoute.routes.hostedCheckout, data, { title_id, session_id }, undefined, this.hostedOptions(checkoutToken, options));
|
|
22130
|
+
}
|
|
22131
|
+
static reconcileHostedSession(title_id, session_id, checkoutToken, options) {
|
|
22132
|
+
return Requests.processRoute(PreordersRoute.routes.hostedReconcile, {}, { title_id, session_id }, undefined, this.hostedOptions(checkoutToken, options));
|
|
22133
|
+
}
|
|
22134
|
+
static retryHostedSession(title_id, session_id, checkoutToken, options) {
|
|
22135
|
+
return Requests.processRoute(PreordersRoute.routes.hostedRetry, {}, { title_id, session_id }, undefined, this.hostedOptions(checkoutToken, options));
|
|
22136
|
+
}
|
|
22137
|
+
static refundHostedOrder(title_id, session_id, checkoutToken, order_id, options) {
|
|
22138
|
+
return Requests.processRoute(PreordersRoute.routes.hostedRefund, { order_id }, { title_id, session_id }, undefined, this.hostedOptions(checkoutToken, options));
|
|
22139
|
+
}
|
|
22140
|
+
static resendHostedAccess(title_id, session_id, checkoutToken, order_id, options) {
|
|
22141
|
+
return Requests.processRoute(PreordersRoute.routes.hostedResendAccess, { order_id }, { title_id, session_id }, undefined, this.hostedOptions(checkoutToken, options));
|
|
22142
|
+
}
|
|
21959
22143
|
static catalog(title_id, options) {
|
|
21960
22144
|
return Requests.processRoute(PreordersRoute.routes.catalog, undefined, { title_id }, undefined, options);
|
|
21961
22145
|
}
|