@wvdsh/api 0.1.41 → 0.1.43
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.
|
@@ -49,6 +49,23 @@ export declare const LOBBY_VISIBILITY: {
|
|
|
49
49
|
readonly PRIVATE: 2;
|
|
50
50
|
};
|
|
51
51
|
export declare const LOBBY_MESSAGE_MAX_LENGTH = 500;
|
|
52
|
+
export declare const EDGEGAP_LOBBY_METADATA_KEYS: {
|
|
53
|
+
readonly STATUS: "edgegapServerStatus";
|
|
54
|
+
readonly DEPLOYMENT_ID: "edgegapDeploymentId";
|
|
55
|
+
readonly IP: "edgegapServerIp";
|
|
56
|
+
readonly PORT: "edgegapServerPort";
|
|
57
|
+
readonly FQDN: "edgegapServerFqdn";
|
|
58
|
+
};
|
|
59
|
+
export declare const EDGEGAP_SERVER_STATUS: {
|
|
60
|
+
readonly DEPLOYING: "deploying";
|
|
61
|
+
readonly READY: "ready";
|
|
62
|
+
readonly ERROR: "error";
|
|
63
|
+
};
|
|
64
|
+
export declare const EDGEGAP_STATUS_POLL: {
|
|
65
|
+
readonly INITIAL_DELAY_MS: 60000;
|
|
66
|
+
readonly INTERVAL_MS: 15000;
|
|
67
|
+
readonly MAX_ATTEMPTS: 20;
|
|
68
|
+
};
|
|
52
69
|
export declare const LEADERBOARD_SORT_ORDER: {
|
|
53
70
|
readonly ASC: 0;
|
|
54
71
|
readonly DESC: 1;
|
|
@@ -23,6 +23,27 @@ export const LOBBY_VISIBILITY = {
|
|
|
23
23
|
PRIVATE: 2
|
|
24
24
|
};
|
|
25
25
|
export const LOBBY_MESSAGE_MAX_LENGTH = 500;
|
|
26
|
+
// ========== DEDICATED SERVERS (EDGEGAP) ==========
|
|
27
|
+
// Dedicated-server connection info is surfaced to game clients through lobby
|
|
28
|
+
// metadata under these keys, so the SDK can read them like any other metadata.
|
|
29
|
+
export const EDGEGAP_LOBBY_METADATA_KEYS = {
|
|
30
|
+
STATUS: 'edgegapServerStatus',
|
|
31
|
+
DEPLOYMENT_ID: 'edgegapDeploymentId',
|
|
32
|
+
IP: 'edgegapServerIp',
|
|
33
|
+
PORT: 'edgegapServerPort',
|
|
34
|
+
FQDN: 'edgegapServerFqdn'
|
|
35
|
+
};
|
|
36
|
+
export const EDGEGAP_SERVER_STATUS = {
|
|
37
|
+
DEPLOYING: 'deploying',
|
|
38
|
+
READY: 'ready',
|
|
39
|
+
ERROR: 'error'
|
|
40
|
+
};
|
|
41
|
+
// Webhooks are not retried; fall back to Status API if still deploying.
|
|
42
|
+
export const EDGEGAP_STATUS_POLL = {
|
|
43
|
+
INITIAL_DELAY_MS: 60_000,
|
|
44
|
+
INTERVAL_MS: 15_000,
|
|
45
|
+
MAX_ATTEMPTS: 20
|
|
46
|
+
};
|
|
26
47
|
// ========== LEADERBOARDS ==========
|
|
27
48
|
export const LEADERBOARD_SORT_ORDER = {
|
|
28
49
|
ASC: 0,
|
|
@@ -340,6 +340,13 @@ export type PublicApiType = {
|
|
|
340
340
|
username: string;
|
|
341
341
|
}>>;
|
|
342
342
|
};
|
|
343
|
+
paidContent: {
|
|
344
|
+
mockPurchase: FunctionReference<"mutation", "public", {
|
|
345
|
+
contentIdentifier: string;
|
|
346
|
+
}, {
|
|
347
|
+
granted: boolean;
|
|
348
|
+
}>;
|
|
349
|
+
};
|
|
343
350
|
};
|
|
344
351
|
};
|
|
345
352
|
export type InternalApiType = {};
|