@stackedapp/types 2.6.0 → 2.8.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.
@@ -0,0 +1,375 @@
1
+ /** these typings represent what is ingested into our data platform directly. */
2
+ export declare const reservedPixelsAnalyticsEvents: readonly ["sign_in", "sign_up", "identifier_link", "trust_score", "membership_tx", "currency_tx", "item_tx", "funnel_step", "level_up", "refer_user", "achievement_tx", "player_snapshot", "modify_tags", "blockchain_staking_staked_v2", "blockchain_staking_unstaked_v2", "call_context", "set_dynamic_field", "delete_dynamic_field", "link_user", "onchain_currency_tx", "onchain_item_tx"];
3
+ export type ReservedPixelsAnalyticsEvent = (typeof reservedPixelsAnalyticsEvents)[number];
4
+ /** Custom onchain events are dynamically generated as `onchain_${snake_case(eventName)}` */
5
+ export type OnchainCustomEvent = `onchain_${string}`;
6
+ export type PixelsAnalyticsEvent = ReservedPixelsAnalyticsEvent | OnchainCustomEvent | (string & {});
7
+ /** this is the actual payload sent to our data analytics ingestion api */
8
+ export interface PixelsEventPayload {
9
+ user_id: string;
10
+ /** int */
11
+ event_timestamp?: number;
12
+ version?: number;
13
+ event_name: PixelsAnalyticsEvent;
14
+ event_params?: any;
15
+ env?: string;
16
+ }
17
+ export interface PixelsCustomParams {
18
+ [key: `${Lowercase<string>}`]: any;
19
+ }
20
+ export interface PixelsCallContextParams {
21
+ context: string;
22
+ extra?: {
23
+ [key: `${Lowercase<string>}`]: any;
24
+ };
25
+ }
26
+ export interface PixelsSetDynamicFieldParams {
27
+ key: string;
28
+ value: string | number | boolean;
29
+ /** set by default */
30
+ operation?: 'set' | 'increment' | 'min' | 'max';
31
+ /** don't save this key into the asset library */
32
+ noAssetLib?: boolean;
33
+ /** scope this tracker update to a specific offer only */
34
+ offerId?: string;
35
+ }
36
+ export interface PixelsSnapshotParams {
37
+ username?: string;
38
+ /** the kind of entity that this user snapshot represents? leave empty for a regular user of your app */
39
+ entity_kind?: string;
40
+ linked_users?: Array<{
41
+ user_id: string;
42
+ kind?: string;
43
+ }>;
44
+ trust_score?: number;
45
+ /** Timestamp when player first signed up */
46
+ date_signed_up?: number;
47
+ currencies?: Array<{
48
+ id: string;
49
+ balance: number;
50
+ /** amount deposited */
51
+ in?: number;
52
+ /** amount withdrawn */
53
+ out?: number;
54
+ }>;
55
+ memberships?: Array<{
56
+ id: string;
57
+ /** int */
58
+ count?: number;
59
+ expiresAt?: number;
60
+ }>;
61
+ crypto_wallets?: Array<{
62
+ address: string;
63
+ }>;
64
+ quests?: Array<{
65
+ id: string;
66
+ /** int */
67
+ completions?: number;
68
+ }>;
69
+ levels?: Array<{
70
+ skill_id: string;
71
+ /** int */
72
+ level_value: number;
73
+ }>;
74
+ achievements?: Array<{
75
+ id: string;
76
+ /** int */
77
+ count?: number;
78
+ }>;
79
+ extra?: {
80
+ [key: `${Lowercase<string>}`]: any;
81
+ };
82
+ }
83
+ export interface PixelsModifyTagsParams {
84
+ kind: 'add' | 'remove';
85
+ player_ids: Array<string>;
86
+ tags: Array<string>;
87
+ }
88
+ export interface PixelsSignInParams {
89
+ username?: string;
90
+ extra?: {
91
+ [key: `${Lowercase<string>}`]: any;
92
+ };
93
+ }
94
+ export interface PixelsSignUpParams {
95
+ kind?: 'start' | 'complete';
96
+ /** Kind of sign up flow. Defaults to completed */
97
+ platform: 'wallet' | 'discord' | 'email' | 'sms' | 'x' | (string & {});
98
+ /** Identifier value of the platform. For example, for emails, this could be hi@example.com */
99
+ platform_identifier: string;
100
+ username?: string;
101
+ /** Timestamp when player first signed up */
102
+ date_signed_up?: number;
103
+ extra?: {
104
+ [key: `${Lowercase<string>}`]: any;
105
+ };
106
+ }
107
+ export interface PixelsTrustScoreParams {
108
+ score: number;
109
+ extra?: {
110
+ [key: `${Lowercase<string>}`]: any;
111
+ };
112
+ }
113
+ export interface PixelsIdentifierLinkParams {
114
+ kind?: 'link' | 'unlink' | 'update' | 'verify' | 'revoke' | 'revalidate';
115
+ platform: 'wallet' | 'discord' | 'email' | 'sms' | 'x' | (string & {});
116
+ /** Identifier value of the platform. For example, for emails, this could be hi@example.com */
117
+ platform_identifier: string;
118
+ old_platform_identifier?: string;
119
+ /** Kind of identify action. Defaults to linked */
120
+ extra?: {
121
+ [key: `${Lowercase<string>}`]: any;
122
+ };
123
+ }
124
+ export interface PixelsMembershipTxParams {
125
+ membership_id: string;
126
+ /** Defaults to gain */
127
+ kind: 'gain' | 'renew' | 'revoke';
128
+ /** int */
129
+ count?: number;
130
+ currency_id?: string;
131
+ currency_amount?: number;
132
+ /** int */
133
+ duration_ms?: number;
134
+ free_trial?: boolean;
135
+ /** int */
136
+ billing_grace_ms?: number;
137
+ /** tx_id link if there was a tx associated with this membership purchase */
138
+ tx_id?: string;
139
+ extra?: {
140
+ [key: `${Lowercase<string>}`]: any;
141
+ };
142
+ }
143
+ export type TxSourceTarget = 'player' | 'store' | 'marketplace' | 'auction' | (string & {});
144
+ export interface PixelsCurrencyTxParams {
145
+ /** tx_id of this currency transaction. If left empty, will be auto-generated */
146
+ tx_id?: string;
147
+ kind: 'spend' | 'earn' | 'withdraw' | 'deposit';
148
+ context?: string;
149
+ currency_id: string;
150
+ /** Amount of currency being spent */
151
+ currency_amount: number;
152
+ from_kind?: TxSourceTarget;
153
+ from_id?: string;
154
+ to_kind?: TxSourceTarget;
155
+ to_id?: string;
156
+ /** New in-game balance for this player after this transaction */
157
+ in_game_balance?: number;
158
+ bundle_id?: string;
159
+ extra?: {
160
+ [key: `${Lowercase<string>}`]: any;
161
+ };
162
+ }
163
+ export interface PixelsItemTxParams {
164
+ /** tx_id link if there was a tx associated with this item transaction */
165
+ tx_id?: string;
166
+ kind: 'gain' | 'lose';
167
+ context?: string;
168
+ item_id: string;
169
+ /** int */
170
+ item_amount: number;
171
+ currency_id?: string;
172
+ /** amount of currency spent for this item tx */
173
+ currency_amount?: number;
174
+ from_kind?: TxSourceTarget;
175
+ from_id?: string;
176
+ to_kind?: TxSourceTarget;
177
+ to_id?: string;
178
+ in_game_balance?: number;
179
+ bundle_id?: string;
180
+ extra?: {
181
+ [key: `${Lowercase<string>}`]: any;
182
+ };
183
+ }
184
+ export interface PixelsFunnelStepParams {
185
+ funnel_id: string;
186
+ /** int */
187
+ step_number?: number;
188
+ step_id?: string;
189
+ /** Kind of funnel step event. Defaults to in_progress */
190
+ kind?: 'start' | 'restart' | 'complete' | 'in_progress' | 'abort';
191
+ extra?: {
192
+ [key: `${Lowercase<string>}`]: any;
193
+ };
194
+ }
195
+ export interface PixelsLevelUpParams {
196
+ skill_id: string;
197
+ /** int */
198
+ level_value: number;
199
+ extra?: {
200
+ [key: `${Lowercase<string>}`]: any;
201
+ };
202
+ }
203
+ export interface PixelsReferUserParams {
204
+ /** Player who is doing the referral. Only required if NOT passing in code. */
205
+ referrer_id?: string;
206
+ /** Player who got referred */
207
+ referee_id: string;
208
+ /** If handling referral codes within your own system, pass in the referral_program_id
209
+ * associated with this referral
210
+ */
211
+ offer_id?: string;
212
+ /** If letting Pixels handle the whole referral flow including code generation, pass in the
213
+ * code instead of the referral_program_id
214
+ */
215
+ code?: string;
216
+ extra?: {
217
+ [key: `${Lowercase<string>}`]: any;
218
+ };
219
+ }
220
+ /** link the current user to another user or unlink the current user from another user */
221
+ export interface PixelsLinkUserTxParams {
222
+ link_to_id: string;
223
+ /** leave blank if linking to a default user kind entity */
224
+ link_to_entity_kind?: string;
225
+ kind: 'link' | 'unlink';
226
+ extra?: {
227
+ [key: `${Lowercase<string>}`]: any;
228
+ };
229
+ }
230
+ export interface PixelsAchievementTxParams {
231
+ achievement_id: string;
232
+ kind: 'gain' | 'lose';
233
+ /** if achievement is tied to a count param when gaining, add it here */
234
+ /** int */
235
+ count?: number;
236
+ extra?: {
237
+ [key: `${Lowercase<string>}`]: any;
238
+ };
239
+ }
240
+ export interface PixelsOfferRewardWebhook {
241
+ campaignId: string;
242
+ campaignKind: 'offer' | 'referral';
243
+ instanceId: string;
244
+ dedupeId: string;
245
+ entityKind?: string;
246
+ name: string;
247
+ description?: string;
248
+ playerId: string;
249
+ rewards: Array<{
250
+ kind: 'coins' | 'item' | 'exp' | 'trust_points' | 'loyalty_currency';
251
+ name?: string;
252
+ /** int */
253
+ amount: number;
254
+ /** reward id for reward kind coins, item, exp and loyalty_currency */
255
+ rewardId?: string;
256
+ /** @deprecated in favour of rewardId */
257
+ currencyId?: string;
258
+ /** @deprecated in favour of rewardId */
259
+ itemId?: string;
260
+ /** @deprecated in favour of rewardId */
261
+ skillId?: string;
262
+ }>;
263
+ }
264
+ export interface PixelsHeartbeatParams {
265
+ /** The number of events successfully sent since the last heartbeat. */
266
+ succeeded: number;
267
+ /** The number of events that were dropped after all retries failed. */
268
+ dropped: number;
269
+ /** The number of events currently in the queue. */
270
+ queue: number;
271
+ /** The version of the SDK. */
272
+ version: number;
273
+ }
274
+ export interface PixelsOnchainCurrencyTxParams {
275
+ kind: 'spend' | 'earn';
276
+ /** Token symbol (e.g., 'PIXEL', 'RON') */
277
+ currency_id: string;
278
+ /** Amount in human-readable units (already divided by decimals) */
279
+ currency_amount: number;
280
+ /** Transaction hash */
281
+ tx_id: string;
282
+ /** For 'spend' events - destination type */
283
+ to_kind?: 'player' | 'ZERO_ADDRESS';
284
+ /** For 'spend' events - destination wallet address */
285
+ to_id?: string;
286
+ /** For 'earn' events - source type (e.g., 'contract' for mints) */
287
+ from_kind?: 'contract';
288
+ /** For 'earn' events - source contract address (for mints) */
289
+ from_id?: string;
290
+ extra: {
291
+ block_number: number;
292
+ /** e.g., 'ronin-mainnet' */
293
+ network: string;
294
+ /** Token contract address */
295
+ contract_address: string;
296
+ contract_name?: string;
297
+ contract_kind?: 'ERC20' | 'native';
298
+ /** Sender wallet address */
299
+ from: string;
300
+ /** Recipient wallet address */
301
+ to: string;
302
+ /** Amount in raw token units (before decimals) */
303
+ raw_amount: string;
304
+ decimals: number;
305
+ /** true for native tokens (ETH, RON) */
306
+ is_native?: boolean;
307
+ };
308
+ }
309
+ export interface PixelsOnchainEventMetadata {
310
+ transactionHash: string;
311
+ blockNumber: number;
312
+ logIndex: number;
313
+ /** Contract address that emitted the event */
314
+ address: string;
315
+ /** Whether the log was removed due to chain reorganization */
316
+ removed: boolean;
317
+ /** Raw event topics */
318
+ topics: string[];
319
+ }
320
+ export interface PixelsOnchainWalletBalance {
321
+ walletAddress: string;
322
+ native_balance: string;
323
+ token_balances: Array<{
324
+ token_address: string;
325
+ symbol: string;
326
+ balance: string;
327
+ }>;
328
+ }
329
+ export interface PixelsOnchainCustomEventParams {
330
+ /** Transaction and log metadata */
331
+ metadata: PixelsOnchainEventMetadata;
332
+ /** Wallet balances fetched for involved addresses (may be empty) */
333
+ walletBalances: PixelsOnchainWalletBalance[];
334
+ /** Smart contract addresses involved in the event (may be empty) */
335
+ smartContracts: string[];
336
+ /** ABI-decoded event arguments - structure depends on contract event */
337
+ [key: string]: any;
338
+ }
339
+ export interface PixelsOnchainItemTxParams {
340
+ kind: 'gain' | 'lose';
341
+ /** Token ID */
342
+ item_id: string;
343
+ /** Amount (always 1 for ERC721, variable for ERC1155) */
344
+ item_amount: number;
345
+ /** For 'gain' events - source type */
346
+ from_kind?: 'system';
347
+ /** For 'gain' events - source identifier (e.g., 'mint') */
348
+ from_id?: string;
349
+ /** For 'lose' events - destination type */
350
+ to_kind?: 'player' | 'ZERO_ADDRESS';
351
+ /** For 'lose' events - destination wallet address */
352
+ to_id?: string;
353
+ context: 'blockchain_transfer';
354
+ /** Transaction hash */
355
+ tx_id: string;
356
+ extra: {
357
+ block_number: number;
358
+ /** e.g., 'ronin-mainnet' */
359
+ network: string;
360
+ /** NFT contract address */
361
+ contract_address: string;
362
+ contract_name?: string;
363
+ contract_kind?: 'ERC721' | 'ERC1155';
364
+ /** Sender wallet address */
365
+ from: string;
366
+ /** Recipient wallet address */
367
+ to: string;
368
+ /** Token symbol */
369
+ symbol?: string;
370
+ /** For ERC1155 batch transfers */
371
+ batch_index?: number;
372
+ batch_total?: number;
373
+ };
374
+ }
375
+ //# sourceMappingURL=analytics_events.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B,wEAAwE;IACxE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,eAAe;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,yDAAyD;IACzD,WAAW,EAAE,MAAM,CAAC;IACpB,sCAAsC;IACtC,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,QAAQ,GAAG,cAAc,CAAC;IACpC,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,qBAAqB,CAAC;IAC/B,uBAAuB;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE;QACL,YAAY,EAAE,MAAM,CAAC;QACrB,4BAA4B;QAC5B,OAAO,EAAE,MAAM,CAAC;QAChB,2BAA2B;QAC3B,gBAAgB,EAAE,MAAM,CAAC;QACzB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,aAAa,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;QACrC,4BAA4B;QAC5B,IAAI,EAAE,MAAM,CAAC;QACb,+BAA+B;QAC/B,EAAE,EAAE,MAAM,CAAC;QACX,mBAAmB;QACnB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,kCAAkC;QAClC,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;CACH"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reservedPixelsAnalyticsEvents = void 0;
4
+ /** these typings represent what is ingested into our data platform directly. */
5
+ exports.reservedPixelsAnalyticsEvents = [
6
+ 'sign_in',
7
+ 'sign_up',
8
+ 'identifier_link',
9
+ 'trust_score',
10
+ 'membership_tx',
11
+ 'currency_tx',
12
+ 'item_tx',
13
+ 'funnel_step',
14
+ 'level_up',
15
+ 'refer_user',
16
+ 'achievement_tx',
17
+ 'player_snapshot',
18
+ 'modify_tags',
19
+ 'blockchain_staking_staked_v2',
20
+ 'blockchain_staking_unstaked_v2',
21
+ 'call_context',
22
+ 'set_dynamic_field',
23
+ 'delete_dynamic_field',
24
+ 'link_user',
25
+ 'onchain_currency_tx',
26
+ 'onchain_item_tx',
27
+ ];
28
+ //# sourceMappingURL=analytics_events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics_events.js","sourceRoot":"","sources":["../analytics_events.ts"],"names":[],"mappings":";;;AAAA,gFAAgF;AACnE,QAAA,6BAA6B,GAAG;IAC3C,SAAS;IACT,SAAS;IACT,iBAAiB;IACjB,aAAa;IACb,eAAe;IACf,aAAa;IACb,SAAS;IACT,aAAa;IACb,UAAU;IACV,YAAY;IACZ,gBAAgB;IAChB,iBAAiB;IACjB,aAAa;IACb,8BAA8B;IAC9B,gCAAgC;IAChC,cAAc;IACd,mBAAmB;IACnB,sBAAsB;IACtB,WAAW;IACX,qBAAqB;IACrB,iBAAiB;CACT,CAAC"}
package/dist/index.d.ts CHANGED
@@ -8,4 +8,5 @@ export * from './stacked_response';
8
8
  export * from './stacked_content';
9
9
  export * from './stacked_app';
10
10
  export * from './stacked_currency';
11
+ export * from './analytics_events';
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC;AAG9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC;AAG9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -23,4 +23,5 @@ __exportStar(require("./stacked_response"), exports);
23
23
  __exportStar(require("./stacked_content"), exports);
24
24
  __exportStar(require("./stacked_app"), exports);
25
25
  __exportStar(require("./stacked_currency"), exports);
26
+ __exportStar(require("./analytics_events"), exports);
26
27
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAIA,6BAA6B;AAC7B,kDAAgC;AAChC,mDAAiC;AACjC,qDAAmC;AACnC,iDAA+B;AAC/B,qDAAmC;AACnC,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAIA,6BAA6B;AAC7B,kDAAgC;AAChC,mDAAiC;AACjC,qDAAmC;AACnC,iDAA+B;AAC/B,qDAAmC;AACnC,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC;AACnC,qDAAmC"}