@wvdsh/api 0.1.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/LICENSE +191 -0
- package/dist/_generated/constants.d.ts +164 -0
- package/dist/_generated/constants.d.ts.map +1 -0
- package/dist/_generated/constants.js +112 -0
- package/dist/_generated/convex_api.d.ts +326 -0
- package/dist/_generated/convex_api.d.ts.map +1 -0
- package/dist/_generated/convex_api.js +3 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/package.json +41 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding any notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
Copyright 2025-present Wavedash
|
|
180
|
+
|
|
181
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
182
|
+
you may not use this file except in compliance with the License.
|
|
183
|
+
You may obtain a copy of the License at
|
|
184
|
+
|
|
185
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
186
|
+
|
|
187
|
+
Unless required by applicable law or agreed to in writing, software
|
|
188
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
189
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
190
|
+
See the License for the specific language governing permissions and
|
|
191
|
+
limitations under the License.
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
export type DeviceFingerprint = {
|
|
2
|
+
country?: string | undefined;
|
|
3
|
+
browser?: string | undefined;
|
|
4
|
+
browserVersion?: string | undefined;
|
|
5
|
+
os?: string | undefined;
|
|
6
|
+
deviceType?: string | undefined;
|
|
7
|
+
language?: string | undefined;
|
|
8
|
+
gpu?: {
|
|
9
|
+
adapter?: {
|
|
10
|
+
vendor?: string | undefined;
|
|
11
|
+
architecture?: string | undefined;
|
|
12
|
+
device?: string | undefined;
|
|
13
|
+
description?: string | undefined;
|
|
14
|
+
} | undefined;
|
|
15
|
+
tier?: {
|
|
16
|
+
gpu?: string | undefined;
|
|
17
|
+
device?: string | undefined;
|
|
18
|
+
isMobile?: boolean | undefined;
|
|
19
|
+
fps?: number | undefined;
|
|
20
|
+
type: string;
|
|
21
|
+
tier: number;
|
|
22
|
+
} | undefined;
|
|
23
|
+
} | undefined;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Default values used by Game SDKs
|
|
27
|
+
* These values are used externally, any changes need to be reflected in the Wavedash SDKs
|
|
28
|
+
*
|
|
29
|
+
* We use int values here rather than strings to speed up data marshalling in SDK calls
|
|
30
|
+
*/
|
|
31
|
+
import type { GenericId } from 'convex/values';
|
|
32
|
+
export declare const GAME_ENGINE: {
|
|
33
|
+
readonly GODOT: "GODOT";
|
|
34
|
+
readonly UNITY: "UNITY";
|
|
35
|
+
readonly UNREAL: "UNREAL";
|
|
36
|
+
readonly JSDOS: "JSDOS";
|
|
37
|
+
readonly RUFFLE: "RUFFLE";
|
|
38
|
+
readonly CUSTOM: "CUSTOM";
|
|
39
|
+
};
|
|
40
|
+
export declare const LOBBY_DEFAULTS: {
|
|
41
|
+
readonly MAX_PLAYERS: 100;
|
|
42
|
+
readonly EXPIRY_HOURS: 24;
|
|
43
|
+
readonly EXPIRY_MS: number;
|
|
44
|
+
};
|
|
45
|
+
export declare const LOBBY_VISIBILITY: {
|
|
46
|
+
readonly PUBLIC: 0;
|
|
47
|
+
readonly FRIENDS_ONLY: 1;
|
|
48
|
+
readonly PRIVATE: 2;
|
|
49
|
+
};
|
|
50
|
+
export declare const LOBBY_MESSAGE_MAX_LENGTH = 500;
|
|
51
|
+
export declare const LEADERBOARD_SORT_ORDER: {
|
|
52
|
+
readonly ASC: 0;
|
|
53
|
+
readonly DESC: 1;
|
|
54
|
+
};
|
|
55
|
+
export declare const LEADERBOARD_DISPLAY_TYPE: {
|
|
56
|
+
readonly NUMERIC: 0;
|
|
57
|
+
readonly TIME_SECONDS: 1;
|
|
58
|
+
readonly TIME_MILLISECONDS: 2;
|
|
59
|
+
readonly TIME_GAME_TICKS: 3;
|
|
60
|
+
};
|
|
61
|
+
export declare const UGC_TYPE: {
|
|
62
|
+
readonly SCREENSHOT: 0;
|
|
63
|
+
readonly VIDEO: 1;
|
|
64
|
+
readonly COMMUNITY: 2;
|
|
65
|
+
readonly GAME_MANAGED: 3;
|
|
66
|
+
readonly OTHER: 4;
|
|
67
|
+
};
|
|
68
|
+
export declare const UGC_VISIBILITY: {
|
|
69
|
+
readonly PUBLIC: 0;
|
|
70
|
+
readonly FRIENDS_ONLY: 1;
|
|
71
|
+
readonly PRIVATE: 2;
|
|
72
|
+
};
|
|
73
|
+
export declare const UGC_UPLOAD_STATUS: {
|
|
74
|
+
readonly NOT_STARTED: 0;
|
|
75
|
+
readonly UPLOADING: 1;
|
|
76
|
+
readonly FAILED: 2;
|
|
77
|
+
readonly COMPLETED: 3;
|
|
78
|
+
};
|
|
79
|
+
export declare const REMOTE_STORAGE: {
|
|
80
|
+
readonly DEFAULT_LIMIT_BYTES: number;
|
|
81
|
+
readonly UPLOADS_PER_MINUTE: 30;
|
|
82
|
+
readonly UPLOADS_PER_HOUR: 300;
|
|
83
|
+
};
|
|
84
|
+
export declare const P2P_SIGNALING_MESSAGE_TYPE: {
|
|
85
|
+
readonly OFFER: "offer";
|
|
86
|
+
readonly ANSWER: "answer";
|
|
87
|
+
readonly ICE_CANDIDATE: "ice-candidate";
|
|
88
|
+
};
|
|
89
|
+
export declare const GAME_AUTHORITY: {
|
|
90
|
+
readonly CLIENT: 0;
|
|
91
|
+
readonly SERVER: 1;
|
|
92
|
+
};
|
|
93
|
+
export declare const IFRAME_MESSAGE_TYPE: {
|
|
94
|
+
readonly PROGRESS_UPDATE: "ProgressUpdate";
|
|
95
|
+
readonly LOADING_COMPLETE: "LoadingComplete";
|
|
96
|
+
readonly TOGGLE_OVERLAY: "ToggleOverlay";
|
|
97
|
+
readonly TAKE_FOCUS: "TakeFocus";
|
|
98
|
+
readonly LOBBY_JOINED: "LobbyJoined";
|
|
99
|
+
readonly LOBBY_LEFT: "LobbyLeft";
|
|
100
|
+
readonly INITIAL_INTERACTION: "InitialInteraction";
|
|
101
|
+
readonly GET_LOBBY_INVITE_LINK: "GetLobbyInviteLink";
|
|
102
|
+
readonly GET_DEVICE_FINGERPRINT: "GetDeviceFingerprint";
|
|
103
|
+
readonly SET_FULLSCREEN: "SetFullscreen";
|
|
104
|
+
readonly TOGGLE_FULLSCREEN: "ToggleFullscreen";
|
|
105
|
+
readonly FULLSCREEN_CHANGED: "FullscreenChanged";
|
|
106
|
+
};
|
|
107
|
+
export interface IFrameResponse<T> {
|
|
108
|
+
requestId: string;
|
|
109
|
+
requestType: (typeof IFRAME_MESSAGE_TYPE)[keyof typeof IFRAME_MESSAGE_TYPE];
|
|
110
|
+
data: T;
|
|
111
|
+
}
|
|
112
|
+
export interface SDKUser {
|
|
113
|
+
id: GenericId<'users'>;
|
|
114
|
+
username: string;
|
|
115
|
+
avatarUrl: string | undefined;
|
|
116
|
+
}
|
|
117
|
+
export interface SDKConfig {
|
|
118
|
+
convexCloudUrl: string;
|
|
119
|
+
convexHttpUrl: string;
|
|
120
|
+
wavedashUser: SDKUser;
|
|
121
|
+
gameCloudId: GenericId<'gameClouds'>;
|
|
122
|
+
ugcHost: string;
|
|
123
|
+
uploadsHost: string;
|
|
124
|
+
launchParams: GameLaunchParams;
|
|
125
|
+
}
|
|
126
|
+
export type IframeResponseMessageTypes = typeof IFRAME_MESSAGE_TYPE.GET_LOBBY_INVITE_LINK | typeof IFRAME_MESSAGE_TYPE.GET_DEVICE_FINGERPRINT;
|
|
127
|
+
export type IFrameEventPayloadMap = {
|
|
128
|
+
[IFRAME_MESSAGE_TYPE.FULLSCREEN_CHANGED]: {
|
|
129
|
+
isFullscreen: boolean;
|
|
130
|
+
};
|
|
131
|
+
[IFRAME_MESSAGE_TYPE.TAKE_FOCUS]: void;
|
|
132
|
+
[IFRAME_MESSAGE_TYPE.GET_LOBBY_INVITE_LINK]: string;
|
|
133
|
+
[IFRAME_MESSAGE_TYPE.GET_DEVICE_FINGERPRINT]: DeviceFingerprint;
|
|
134
|
+
};
|
|
135
|
+
export interface GameLaunchParams {
|
|
136
|
+
lobby?: GenericId<'lobbies'>;
|
|
137
|
+
[key: string]: string | undefined;
|
|
138
|
+
}
|
|
139
|
+
export declare const UrlParams: {
|
|
140
|
+
readonly GameCloudId: "gcid";
|
|
141
|
+
readonly RedirectUrl: "rdurl";
|
|
142
|
+
readonly LocalOrigin: "localorigin";
|
|
143
|
+
readonly EntrypointParams: "entrypointparams";
|
|
144
|
+
readonly Entrypoint: "entrypoint";
|
|
145
|
+
readonly Engine: "engine";
|
|
146
|
+
readonly EngineVersion: "engineversion";
|
|
147
|
+
readonly SdkConfig: "sdkconfig";
|
|
148
|
+
};
|
|
149
|
+
export declare const HEARTBEAT: {
|
|
150
|
+
/** Client sends heartbeat every 30 seconds when tab is visible */
|
|
151
|
+
readonly CLIENT_INTERVAL_MS: 30000;
|
|
152
|
+
/**
|
|
153
|
+
* Client force re-establishes presence at 2.5x interval (75 seconds).
|
|
154
|
+
* If client tab comes alive and has missed 2 heartbeats, it will force re-establish presence.
|
|
155
|
+
* Gives 15s margin before timeout without triggering on single missed heartbeat.
|
|
156
|
+
*/
|
|
157
|
+
readonly CLIENT_REESTABLISH_THRESHOLD_MS: number;
|
|
158
|
+
/**
|
|
159
|
+
* Grace period for regular heartbeats to prevent spam on tab switches.
|
|
160
|
+
* New heartbeat is only sent from a tab-switch if it's been at least CLIENT_INTERVAL_MS - CLIENT_GRACE_MS since last heartbeat.
|
|
161
|
+
* Effective minimum between heartbeats = 25s
|
|
162
|
+
*/
|
|
163
|
+
readonly CLIENT_GRACE_MS: number;
|
|
164
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/_generated/constants.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG/C,eAAO,MAAM,WAAW;;;;;;;CAOd,CAAC;AAKX,eAAO,MAAM,cAAc;;;;CAIjB,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AAEX,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAG5C,eAAO,MAAM,sBAAsB;;;CAGzB,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;;CAK3B,CAAC;AAGX,eAAO,MAAM,QAAQ;;;;;;CAMX,CAAC;AAEX,eAAO,MAAM,cAAc;;;;CAIjB,CAAC;AAEX,eAAO,MAAM,iBAAiB;;;;;CAKpB,CAAC;AAEX,eAAO,MAAM,cAAc;;;;CAMjB,CAAC;AAEX,eAAO,MAAM,0BAA0B;;;;CAI7B,CAAC;AAEX,eA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C;CAClB,CAAC;AAKF,eAAO,MAAM,SAAS;IACrB,kEAAkE;;IAElE;;;;OAIG;;IAEH;;;;OAIG;;CAEM,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
// THIS FILE IS AUTOGENERATED — DO NOT EDIT
|
|
2
|
+
// Source: wavedash/src/convex/constants/sharedConstants.ts
|
|
3
|
+
// ========== GAME ENGINE ==========
|
|
4
|
+
export const GAME_ENGINE = {
|
|
5
|
+
GODOT: 'GODOT',
|
|
6
|
+
UNITY: 'UNITY',
|
|
7
|
+
UNREAL: 'UNREAL',
|
|
8
|
+
JSDOS: 'JSDOS',
|
|
9
|
+
RUFFLE: 'RUFFLE',
|
|
10
|
+
CUSTOM: 'CUSTOM'
|
|
11
|
+
};
|
|
12
|
+
// ========== LOBBIES ==========
|
|
13
|
+
const LOBBY_EXPIRY_HOURS = 24;
|
|
14
|
+
export const LOBBY_DEFAULTS = {
|
|
15
|
+
MAX_PLAYERS: 100,
|
|
16
|
+
EXPIRY_HOURS: LOBBY_EXPIRY_HOURS,
|
|
17
|
+
EXPIRY_MS: LOBBY_EXPIRY_HOURS * 60 * 60 * 1000
|
|
18
|
+
};
|
|
19
|
+
export const LOBBY_VISIBILITY = {
|
|
20
|
+
PUBLIC: 0,
|
|
21
|
+
FRIENDS_ONLY: 1,
|
|
22
|
+
PRIVATE: 2
|
|
23
|
+
};
|
|
24
|
+
export const LOBBY_MESSAGE_MAX_LENGTH = 500;
|
|
25
|
+
// ========== LEADERBOARDS ==========
|
|
26
|
+
export const LEADERBOARD_SORT_ORDER = {
|
|
27
|
+
ASC: 0,
|
|
28
|
+
DESC: 1
|
|
29
|
+
};
|
|
30
|
+
export const LEADERBOARD_DISPLAY_TYPE = {
|
|
31
|
+
NUMERIC: 0,
|
|
32
|
+
TIME_SECONDS: 1,
|
|
33
|
+
TIME_MILLISECONDS: 2,
|
|
34
|
+
TIME_GAME_TICKS: 3 // Added for PGRC, assumes 60fps game ticks for proper display, probably don't want to let other games do this
|
|
35
|
+
};
|
|
36
|
+
// ========== USER GENERATED CONTENT ==========
|
|
37
|
+
export const UGC_TYPE = {
|
|
38
|
+
SCREENSHOT: 0,
|
|
39
|
+
VIDEO: 1,
|
|
40
|
+
COMMUNITY: 2,
|
|
41
|
+
GAME_MANAGED: 3, // Managed completely by the game, user doesn't edit
|
|
42
|
+
OTHER: 4
|
|
43
|
+
};
|
|
44
|
+
export const UGC_VISIBILITY = {
|
|
45
|
+
PUBLIC: 0,
|
|
46
|
+
FRIENDS_ONLY: 1,
|
|
47
|
+
PRIVATE: 2
|
|
48
|
+
};
|
|
49
|
+
export const UGC_UPLOAD_STATUS = {
|
|
50
|
+
NOT_STARTED: 0,
|
|
51
|
+
UPLOADING: 1,
|
|
52
|
+
FAILED: 2,
|
|
53
|
+
COMPLETED: 3
|
|
54
|
+
};
|
|
55
|
+
export const REMOTE_STORAGE = {
|
|
56
|
+
DEFAULT_LIMIT_BYTES: 1024 * 1024 * 1024, // 1GB default limit
|
|
57
|
+
// Rate limiting configuration
|
|
58
|
+
UPLOADS_PER_MINUTE: 30, // Max uploads per minute (burst protection)
|
|
59
|
+
UPLOADS_PER_HOUR: 300 // Max uploads per hour (sustained usage)
|
|
60
|
+
};
|
|
61
|
+
export const P2P_SIGNALING_MESSAGE_TYPE = {
|
|
62
|
+
OFFER: 'offer',
|
|
63
|
+
ANSWER: 'answer',
|
|
64
|
+
ICE_CANDIDATE: 'ice-candidate'
|
|
65
|
+
};
|
|
66
|
+
export const GAME_AUTHORITY = {
|
|
67
|
+
CLIENT: 0,
|
|
68
|
+
SERVER: 1
|
|
69
|
+
};
|
|
70
|
+
export const IFRAME_MESSAGE_TYPE = {
|
|
71
|
+
PROGRESS_UPDATE: 'ProgressUpdate',
|
|
72
|
+
LOADING_COMPLETE: 'LoadingComplete',
|
|
73
|
+
TOGGLE_OVERLAY: 'ToggleOverlay',
|
|
74
|
+
TAKE_FOCUS: 'TakeFocus',
|
|
75
|
+
LOBBY_JOINED: 'LobbyJoined',
|
|
76
|
+
LOBBY_LEFT: 'LobbyLeft',
|
|
77
|
+
INITIAL_INTERACTION: 'InitialInteraction',
|
|
78
|
+
GET_LOBBY_INVITE_LINK: 'GetLobbyInviteLink',
|
|
79
|
+
GET_DEVICE_FINGERPRINT: 'GetDeviceFingerprint',
|
|
80
|
+
SET_FULLSCREEN: 'SetFullscreen',
|
|
81
|
+
TOGGLE_FULLSCREEN: 'ToggleFullscreen',
|
|
82
|
+
FULLSCREEN_CHANGED: 'FullscreenChanged'
|
|
83
|
+
};
|
|
84
|
+
// URL params referenced by external consumers
|
|
85
|
+
export const UrlParams = {
|
|
86
|
+
GameCloudId: 'gcid',
|
|
87
|
+
RedirectUrl: 'rdurl',
|
|
88
|
+
LocalOrigin: 'localorigin',
|
|
89
|
+
EntrypointParams: 'entrypointparams',
|
|
90
|
+
Entrypoint: 'entrypoint',
|
|
91
|
+
Engine: 'engine',
|
|
92
|
+
EngineVersion: 'engineversion',
|
|
93
|
+
SdkConfig: 'sdkconfig'
|
|
94
|
+
};
|
|
95
|
+
// ========== HEARTBEAT (client-side constants) ==========
|
|
96
|
+
const HEARTBEAT_CLIENT_INTERVAL_MS = 30_000;
|
|
97
|
+
export const HEARTBEAT = {
|
|
98
|
+
/** Client sends heartbeat every 30 seconds when tab is visible */
|
|
99
|
+
CLIENT_INTERVAL_MS: HEARTBEAT_CLIENT_INTERVAL_MS,
|
|
100
|
+
/**
|
|
101
|
+
* Client force re-establishes presence at 2.5x interval (75 seconds).
|
|
102
|
+
* If client tab comes alive and has missed 2 heartbeats, it will force re-establish presence.
|
|
103
|
+
* Gives 15s margin before timeout without triggering on single missed heartbeat.
|
|
104
|
+
*/
|
|
105
|
+
CLIENT_REESTABLISH_THRESHOLD_MS: HEARTBEAT_CLIENT_INTERVAL_MS * 2.5,
|
|
106
|
+
/**
|
|
107
|
+
* Grace period for regular heartbeats to prevent spam on tab switches.
|
|
108
|
+
* New heartbeat is only sent from a tab-switch if it's been at least CLIENT_INTERVAL_MS - CLIENT_GRACE_MS since last heartbeat.
|
|
109
|
+
* Effective minimum between heartbeats = 25s
|
|
110
|
+
*/
|
|
111
|
+
CLIENT_GRACE_MS: HEARTBEAT_CLIENT_INTERVAL_MS / 6
|
|
112
|
+
};
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
import { type FunctionReference } from "convex/server";
|
|
2
|
+
import { type GenericId as Id } from "convex/values";
|
|
3
|
+
export declare const api: PublicApiType;
|
|
4
|
+
export declare const internal: InternalApiType;
|
|
5
|
+
export type PublicApiType = {
|
|
6
|
+
sdk: {
|
|
7
|
+
gameAchievements: {
|
|
8
|
+
getMyAchievementsForGame: FunctionReference<"query", "public", Record<string, never>, Array<{
|
|
9
|
+
achievement: {
|
|
10
|
+
_creationTime: number;
|
|
11
|
+
_id: Id<"gameAchievements">;
|
|
12
|
+
description: string;
|
|
13
|
+
displayName: string;
|
|
14
|
+
identifier: string;
|
|
15
|
+
image: string;
|
|
16
|
+
};
|
|
17
|
+
completedAt: number;
|
|
18
|
+
}>>;
|
|
19
|
+
getMyStatsForGame: FunctionReference<"query", "public", Record<string, never>, Array<{
|
|
20
|
+
identifier: string;
|
|
21
|
+
value: number;
|
|
22
|
+
}>>;
|
|
23
|
+
listAchievementIdentifiers: FunctionReference<"query", "public", Record<string, never>, Array<string>>;
|
|
24
|
+
listStatIdentifiers: FunctionReference<"query", "public", Record<string, never>, Array<string>>;
|
|
25
|
+
setUserGameAchievements: FunctionReference<"mutation", "public", {
|
|
26
|
+
achievements: Array<string>;
|
|
27
|
+
}, null>;
|
|
28
|
+
setUserGameStats: FunctionReference<"mutation", "public", {
|
|
29
|
+
stats: Array<{
|
|
30
|
+
identifier: string;
|
|
31
|
+
value: number;
|
|
32
|
+
}>;
|
|
33
|
+
}, null>;
|
|
34
|
+
};
|
|
35
|
+
gameLobby: {
|
|
36
|
+
createAndJoinLobby: FunctionReference<"mutation", "public", {
|
|
37
|
+
maxPlayers?: number;
|
|
38
|
+
visibility: 0 | 1 | 2;
|
|
39
|
+
}, {
|
|
40
|
+
hostId: Id<"users">;
|
|
41
|
+
lobbyId: Id<"lobbies">;
|
|
42
|
+
metadata: Record<string, number | string>;
|
|
43
|
+
users: Array<{
|
|
44
|
+
isHost: boolean;
|
|
45
|
+
lobbyId: Id<"lobbies">;
|
|
46
|
+
userAvatarUrl?: string;
|
|
47
|
+
userId: Id<"users">;
|
|
48
|
+
username: string;
|
|
49
|
+
}>;
|
|
50
|
+
}>;
|
|
51
|
+
getLobbyInvites: FunctionReference<"query", "public", Record<string, never>, Array<{
|
|
52
|
+
_creationTime: number;
|
|
53
|
+
lobbyId: Id<"lobbies">;
|
|
54
|
+
notificationId: Id<"notifications">;
|
|
55
|
+
sender: {
|
|
56
|
+
_id: Id<"users">;
|
|
57
|
+
avatarUrl?: string;
|
|
58
|
+
username: string;
|
|
59
|
+
};
|
|
60
|
+
}>>;
|
|
61
|
+
getLobbyMetadata: FunctionReference<"query", "public", {
|
|
62
|
+
lobbyId: Id<"lobbies">;
|
|
63
|
+
}, Record<string, number | string>>;
|
|
64
|
+
inviteToLobby: FunctionReference<"mutation", "public", {
|
|
65
|
+
lobbyId: Id<"lobbies">;
|
|
66
|
+
targetUserId: Id<"users">;
|
|
67
|
+
}, Id<"notifications">>;
|
|
68
|
+
joinLobby: FunctionReference<"mutation", "public", {
|
|
69
|
+
lobbyId: Id<"lobbies">;
|
|
70
|
+
}, {
|
|
71
|
+
hostId: Id<"users">;
|
|
72
|
+
lobbyId: Id<"lobbies">;
|
|
73
|
+
metadata: Record<string, number | string>;
|
|
74
|
+
users: Array<{
|
|
75
|
+
isHost: boolean;
|
|
76
|
+
lobbyId: Id<"lobbies">;
|
|
77
|
+
userAvatarUrl?: string;
|
|
78
|
+
userId: Id<"users">;
|
|
79
|
+
username: string;
|
|
80
|
+
}>;
|
|
81
|
+
}>;
|
|
82
|
+
leaveLobby: FunctionReference<"mutation", "public", {
|
|
83
|
+
lobbyId: Id<"lobbies">;
|
|
84
|
+
}, boolean>;
|
|
85
|
+
listAvailable: FunctionReference<"query", "public", {
|
|
86
|
+
filters?: Record<string, any>;
|
|
87
|
+
}, Array<{
|
|
88
|
+
lobbyId: Id<"lobbies">;
|
|
89
|
+
maxPlayers: number;
|
|
90
|
+
metadata: Record<string, number | string>;
|
|
91
|
+
playerCount: number;
|
|
92
|
+
visibility: 0 | 1 | 2;
|
|
93
|
+
}>>;
|
|
94
|
+
lobbyMessages: FunctionReference<"query", "public", {
|
|
95
|
+
lobbyId: Id<"lobbies">;
|
|
96
|
+
}, Array<{
|
|
97
|
+
lobbyId: Id<"lobbies">;
|
|
98
|
+
message: string;
|
|
99
|
+
messageId: Id<"lobbyMessages">;
|
|
100
|
+
timestamp: number;
|
|
101
|
+
userId: Id<"users">;
|
|
102
|
+
username: string;
|
|
103
|
+
}>>;
|
|
104
|
+
lobbyUsers: FunctionReference<"query", "public", {
|
|
105
|
+
lobbyId: Id<"lobbies">;
|
|
106
|
+
}, Array<{
|
|
107
|
+
isHost: boolean;
|
|
108
|
+
lobbyId: Id<"lobbies">;
|
|
109
|
+
userAvatarUrl?: string;
|
|
110
|
+
userId: Id<"users">;
|
|
111
|
+
username: string;
|
|
112
|
+
}>>;
|
|
113
|
+
sendMessage: FunctionReference<"mutation", "public", {
|
|
114
|
+
lobbyId: Id<"lobbies">;
|
|
115
|
+
message: string;
|
|
116
|
+
}, string>;
|
|
117
|
+
setLobbyMetadata: FunctionReference<"mutation", "public", {
|
|
118
|
+
lobbyId: Id<"lobbies">;
|
|
119
|
+
updates: Record<string, number | string | null>;
|
|
120
|
+
}, boolean>;
|
|
121
|
+
};
|
|
122
|
+
leaderboards: {
|
|
123
|
+
attachLeaderboardUGC: FunctionReference<"mutation", "public", {
|
|
124
|
+
leaderboardId: Id<"leaderboards">;
|
|
125
|
+
ugcId: Id<"userGeneratedContent">;
|
|
126
|
+
}, boolean>;
|
|
127
|
+
getLeaderboard: FunctionReference<"query", "public", {
|
|
128
|
+
name: string;
|
|
129
|
+
}, {
|
|
130
|
+
id: Id<"leaderboards">;
|
|
131
|
+
name: string;
|
|
132
|
+
totalEntries: number;
|
|
133
|
+
}>;
|
|
134
|
+
getMyLeaderboardEntry: FunctionReference<"query", "public", {
|
|
135
|
+
leaderboardId: Id<"leaderboards">;
|
|
136
|
+
}, {
|
|
137
|
+
entry: null | {
|
|
138
|
+
globalRank: number;
|
|
139
|
+
metadata?: ArrayBuffer;
|
|
140
|
+
score: number;
|
|
141
|
+
timestamp: number;
|
|
142
|
+
ugcId?: Id<"userGeneratedContent">;
|
|
143
|
+
};
|
|
144
|
+
totalEntries: number;
|
|
145
|
+
}>;
|
|
146
|
+
getOrCreateLeaderboard: FunctionReference<"mutation", "public", {
|
|
147
|
+
displayType?: 0 | 1 | 2 | 3;
|
|
148
|
+
name: string;
|
|
149
|
+
sortOrder?: 0 | 1;
|
|
150
|
+
}, {
|
|
151
|
+
created: boolean;
|
|
152
|
+
id: Id<"leaderboards">;
|
|
153
|
+
name: string;
|
|
154
|
+
totalEntries: number;
|
|
155
|
+
}>;
|
|
156
|
+
listEntries: FunctionReference<"query", "public", {
|
|
157
|
+
friendsOnly?: boolean;
|
|
158
|
+
leaderboardId: Id<"leaderboards">;
|
|
159
|
+
limit: number;
|
|
160
|
+
offset: number;
|
|
161
|
+
}, {
|
|
162
|
+
entries: Array<{
|
|
163
|
+
globalRank: number;
|
|
164
|
+
metadata?: ArrayBuffer;
|
|
165
|
+
score: number;
|
|
166
|
+
timestamp: number;
|
|
167
|
+
ugcId?: Id<"userGeneratedContent">;
|
|
168
|
+
userId: Id<"users">;
|
|
169
|
+
username?: string;
|
|
170
|
+
}>;
|
|
171
|
+
totalEntries: number;
|
|
172
|
+
}>;
|
|
173
|
+
listEntriesAroundUser: FunctionReference<"query", "public", {
|
|
174
|
+
countAhead: number;
|
|
175
|
+
countBehind: number;
|
|
176
|
+
friendsOnly?: boolean;
|
|
177
|
+
leaderboardId: Id<"leaderboards">;
|
|
178
|
+
}, {
|
|
179
|
+
entries: Array<{
|
|
180
|
+
globalRank: number;
|
|
181
|
+
metadata?: ArrayBuffer;
|
|
182
|
+
score: number;
|
|
183
|
+
timestamp: number;
|
|
184
|
+
ugcId?: Id<"userGeneratedContent">;
|
|
185
|
+
userId: Id<"users">;
|
|
186
|
+
username?: string;
|
|
187
|
+
}>;
|
|
188
|
+
totalEntries: number;
|
|
189
|
+
}>;
|
|
190
|
+
upsertLeaderboardEntry: FunctionReference<"mutation", "public", {
|
|
191
|
+
keepBest: boolean;
|
|
192
|
+
leaderboardId: Id<"leaderboards">;
|
|
193
|
+
score: number;
|
|
194
|
+
ugcId?: Id<"userGeneratedContent">;
|
|
195
|
+
}, {
|
|
196
|
+
entry: {
|
|
197
|
+
entryId: Id<"leaderboardEntries">;
|
|
198
|
+
globalRank: number;
|
|
199
|
+
score: number;
|
|
200
|
+
scoreChanged: boolean;
|
|
201
|
+
};
|
|
202
|
+
totalEntries: number;
|
|
203
|
+
}>;
|
|
204
|
+
};
|
|
205
|
+
p2pSignaling: {
|
|
206
|
+
getSignalingMessages: FunctionReference<"query", "public", {
|
|
207
|
+
lobbyId: Id<"lobbies">;
|
|
208
|
+
}, Array<{
|
|
209
|
+
_creationTime: number;
|
|
210
|
+
_id: Id<"p2pSignalingMessages">;
|
|
211
|
+
data: any;
|
|
212
|
+
fromUserId: Id<"users">;
|
|
213
|
+
lobbyId: Id<"lobbies">;
|
|
214
|
+
messageType: "offer" | "answer" | "ice-candidate";
|
|
215
|
+
processed: boolean;
|
|
216
|
+
toUserId: Id<"users">;
|
|
217
|
+
}>>;
|
|
218
|
+
markSignalingMessagesProcessed: FunctionReference<"mutation", "public", {
|
|
219
|
+
messageIds: Array<Id<"p2pSignalingMessages">>;
|
|
220
|
+
}, {
|
|
221
|
+
processed: number;
|
|
222
|
+
}>;
|
|
223
|
+
sendSignalingMessage: FunctionReference<"mutation", "public", {
|
|
224
|
+
data: any;
|
|
225
|
+
lobbyId: Id<"lobbies">;
|
|
226
|
+
messageType: "offer" | "answer" | "ice-candidate";
|
|
227
|
+
toUserId: Id<"users">;
|
|
228
|
+
}, {
|
|
229
|
+
sent: boolean;
|
|
230
|
+
}>;
|
|
231
|
+
};
|
|
232
|
+
presence: {
|
|
233
|
+
endGameplaySession: FunctionReference<"mutation", "public", {
|
|
234
|
+
achievements?: Array<string>;
|
|
235
|
+
stats?: Array<{
|
|
236
|
+
identifier: string;
|
|
237
|
+
value: number;
|
|
238
|
+
}>;
|
|
239
|
+
}, null>;
|
|
240
|
+
heartbeat: FunctionReference<"mutation", "public", {
|
|
241
|
+
data?: Record<string, any>;
|
|
242
|
+
deviceFingerprint?: {
|
|
243
|
+
browser?: string;
|
|
244
|
+
browserVersion?: string;
|
|
245
|
+
country?: string;
|
|
246
|
+
deviceType?: string;
|
|
247
|
+
gpu?: {
|
|
248
|
+
adapter?: {
|
|
249
|
+
architecture?: string;
|
|
250
|
+
description?: string;
|
|
251
|
+
device?: string;
|
|
252
|
+
vendor?: string;
|
|
253
|
+
};
|
|
254
|
+
tier?: {
|
|
255
|
+
device?: string;
|
|
256
|
+
fps?: number;
|
|
257
|
+
gpu?: string;
|
|
258
|
+
isMobile?: boolean;
|
|
259
|
+
tier: number;
|
|
260
|
+
type: string;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
language?: string;
|
|
264
|
+
os?: string;
|
|
265
|
+
};
|
|
266
|
+
}, boolean>;
|
|
267
|
+
};
|
|
268
|
+
remoteFileStorage: {
|
|
269
|
+
deleteFile: FunctionReference<"action", "public", {
|
|
270
|
+
path: string;
|
|
271
|
+
}, null>;
|
|
272
|
+
getUploadUrl: FunctionReference<"mutation", "public", {
|
|
273
|
+
path: string;
|
|
274
|
+
}, string>;
|
|
275
|
+
};
|
|
276
|
+
turnCredentials: {
|
|
277
|
+
getOrCreate: FunctionReference<"action", "public", Record<string, never>, {
|
|
278
|
+
expiresAt: number;
|
|
279
|
+
iceServers: Array<{
|
|
280
|
+
credential?: string;
|
|
281
|
+
url?: string;
|
|
282
|
+
urls: string | Array<string>;
|
|
283
|
+
username?: string;
|
|
284
|
+
}>;
|
|
285
|
+
}>;
|
|
286
|
+
};
|
|
287
|
+
userGeneratedContent: {
|
|
288
|
+
createUGCItem: FunctionReference<"mutation", "public", {
|
|
289
|
+
createPresignedUploadUrl?: boolean;
|
|
290
|
+
description?: string;
|
|
291
|
+
title?: string;
|
|
292
|
+
ugcType: 0 | 1 | 2 | 3 | 4;
|
|
293
|
+
visibility?: 0 | 1 | 2;
|
|
294
|
+
}, {
|
|
295
|
+
ugcId: Id<"userGeneratedContent">;
|
|
296
|
+
uploadUrl?: string;
|
|
297
|
+
}>;
|
|
298
|
+
finishUGCUpload: FunctionReference<"mutation", "public", {
|
|
299
|
+
success: boolean;
|
|
300
|
+
ugcId: Id<"userGeneratedContent">;
|
|
301
|
+
}, boolean>;
|
|
302
|
+
getUGCItemDownloadUrl: FunctionReference<"query", "public", {
|
|
303
|
+
ugcId: Id<"userGeneratedContent">;
|
|
304
|
+
}, string>;
|
|
305
|
+
updateUGCItem: FunctionReference<"mutation", "public", {
|
|
306
|
+
createPresignedUploadUrl?: boolean;
|
|
307
|
+
description?: string;
|
|
308
|
+
title?: string;
|
|
309
|
+
ugcId: Id<"userGeneratedContent">;
|
|
310
|
+
visibility?: 0 | 1 | 2;
|
|
311
|
+
}, {
|
|
312
|
+
ugcId: Id<"userGeneratedContent">;
|
|
313
|
+
uploadUrl?: string;
|
|
314
|
+
}>;
|
|
315
|
+
};
|
|
316
|
+
friends: {
|
|
317
|
+
listFriends: FunctionReference<"query", "public", Record<string, never>, Array<{
|
|
318
|
+
avatarUrl?: string;
|
|
319
|
+
isOnline: boolean;
|
|
320
|
+
userId: Id<"users">;
|
|
321
|
+
username: string;
|
|
322
|
+
}>>;
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
export type InternalApiType = {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convex_api.d.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AE,iBAAiB,CAC5B,OAAO,EACP,QAAQ,EACR,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EACrB,KAAK,CAAC;gBACJ,SAAS,CAAC,EAAE,MAAM,CAAC;gBACnB,QAAQ,EAAE,OAAO,CAAC;gBAClB,MAAM,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;gBACpB,QAAQ,EAAE,MAAM,CAAC;aAClB,CAAC,CACH,CAAC;SACH,CAAC;KACH,CAAC;CACH,CAAC;AACF,MAAM,MAAM,eAAe,GAAG,EAAE,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC"}
|
package/dist/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wvdsh/api",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Public API types and shared constants for the Wavedash platform",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"generate": "./scripts/generate.sh",
|
|
13
|
+
"build": "npm run generate && tsc -p tsconfig.json"
|
|
14
|
+
},
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=18"
|
|
17
|
+
},
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/wvdsh/sdk-js.git"
|
|
24
|
+
},
|
|
25
|
+
"homepage": "https://wavedash.com",
|
|
26
|
+
"license": "Apache-2.0",
|
|
27
|
+
"keywords": [
|
|
28
|
+
"wavedash",
|
|
29
|
+
"sdk",
|
|
30
|
+
"api",
|
|
31
|
+
"types",
|
|
32
|
+
"convex"
|
|
33
|
+
],
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"convex": "^1.28.2",
|
|
36
|
+
"typescript": "^5.0.0"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"convex": "^1.28.2"
|
|
40
|
+
}
|
|
41
|
+
}
|