@spawnco/sdk-types 0.0.35 → 0.0.36

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
@@ -81,7 +81,7 @@ interface SpawnClientSDK__V1<TConfig = any> {
81
81
  }>;
82
82
  };
83
83
  sparks: {
84
- buyItem(itemConfig: {
84
+ purchase(itemConfig: {
85
85
  id: string;
86
86
  name: string;
87
87
  description?: string;
package/dist/index.d.ts CHANGED
@@ -81,7 +81,7 @@ interface SpawnClientSDK__V1<TConfig = any> {
81
81
  }>;
82
82
  };
83
83
  sparks: {
84
- buyItem(itemConfig: {
84
+ purchase(itemConfig: {
85
85
  id: string;
86
86
  name: string;
87
87
  description?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spawnco/sdk-types",
3
- "version": "0.0.35",
3
+ "version": "0.0.36",
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
@@ -106,7 +106,7 @@ export interface SpawnClientSDK__V1<TConfig = any> {
106
106
  };
107
107
 
108
108
  sparks: {
109
- buyItem(itemConfig: { id: string; name: string; description?: string; price: number; amount?: number; data?: Record<string, unknown>; imageUrl?: string }): Promise<{
109
+ purchase(itemConfig: { id: string; name: string; description?: string; price: number; amount?: number; data?: Record<string, unknown>; imageUrl?: string }): Promise<{
110
110
  success: boolean;
111
111
  transactionId?: string;
112
112
  cancelled?: boolean;