@spawnco/sdk-types 0.0.50 → 0.0.51

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/index.d.mts CHANGED
@@ -266,6 +266,21 @@ interface SpawnServerSDK__V1<TConfig = any> {
266
266
  version(): Promise<string>;
267
267
  effectiveVersion(): Promise<string>;
268
268
  };
269
+ dew: {
270
+ /** Get today's plant claims for a user in this variant */
271
+ getClaimsToday(userId: string): Promise<{
272
+ claimedIds: ('A' | 'B' | 'C')[];
273
+ }>;
274
+ /** Claim a dew plant for a user. Returns random 10-20 dew amount. */
275
+ claim(userId: string, plantId: 'A' | 'B' | 'C'): Promise<{
276
+ success: boolean;
277
+ amount?: number;
278
+ new_balance?: number;
279
+ duplicate?: boolean;
280
+ claim_id?: string;
281
+ error?: string;
282
+ }>;
283
+ };
269
284
  economy: {
270
285
  redeemPurchase<T extends Record<string, any>>(token: string): Promise<{
271
286
  success: boolean;
package/dist/index.d.ts CHANGED
@@ -266,6 +266,21 @@ interface SpawnServerSDK__V1<TConfig = any> {
266
266
  version(): Promise<string>;
267
267
  effectiveVersion(): Promise<string>;
268
268
  };
269
+ dew: {
270
+ /** Get today's plant claims for a user in this variant */
271
+ getClaimsToday(userId: string): Promise<{
272
+ claimedIds: ('A' | 'B' | 'C')[];
273
+ }>;
274
+ /** Claim a dew plant for a user. Returns random 10-20 dew amount. */
275
+ claim(userId: string, plantId: 'A' | 'B' | 'C'): Promise<{
276
+ success: boolean;
277
+ amount?: number;
278
+ new_balance?: number;
279
+ duplicate?: boolean;
280
+ claim_id?: string;
281
+ error?: string;
282
+ }>;
283
+ };
269
284
  economy: {
270
285
  redeemPurchase<T extends Record<string, any>>(token: string): Promise<{
271
286
  success: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spawnco/sdk-types",
3
- "version": "0.0.50",
3
+ "version": "0.0.51",
4
4
  "description": "TypeScript type definitions for Spawn SDK",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
package/src/v1.ts CHANGED
@@ -297,6 +297,24 @@ export interface SpawnServerSDK__V1<TConfig = any> {
297
297
  effectiveVersion(): Promise<string>;
298
298
  };
299
299
 
300
+ dew: {
301
+ /** Get today's plant claims for a user in this variant */
302
+ getClaimsToday(userId: string): Promise<{ claimedIds: ('A' | 'B' | 'C')[] }>;
303
+
304
+ /** Claim a dew plant for a user. Returns random 10-20 dew amount. */
305
+ claim(
306
+ userId: string,
307
+ plantId: 'A' | 'B' | 'C'
308
+ ): Promise<{
309
+ success: boolean;
310
+ amount?: number;
311
+ new_balance?: number;
312
+ duplicate?: boolean;
313
+ claim_id?: string;
314
+ error?: string;
315
+ }>;
316
+ };
317
+
300
318
  economy: {
301
319
  // Redeem a purchase token from client
302
320
  redeemPurchase<T extends Record<string, any>>(