glitch-javascript-sdk 3.10.2 → 3.10.4

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,43 @@
1
+ import { AxiosPromise } from 'axios';
2
+ import Response from '../util/Response';
3
+ export type GameDesignGenre = 'action' | 'adventure' | 'rpg' | 'strategy' | 'simulation' | 'puzzle' | 'survival' | 'platformer' | 'racing' | 'sports' | 'cozy' | 'horror' | 'card' | 'sandbox';
4
+ export type GameDesignPlayMode = 'single-player' | 'cooperative' | 'competitive multiplayer' | 'asynchronous multiplayer';
5
+ export type GameDesignSessionLength = '5–10 minute' | '15–30 minute' | '30–60 minute' | 'open-ended';
6
+ export interface GameDesignBlueprintInput {
7
+ gameName?: string;
8
+ genre: GameDesignGenre;
9
+ playMode: GameDesignPlayMode;
10
+ sessionLength: GameDesignSessionLength;
11
+ playerFantasy: string;
12
+ setting: string;
13
+ primaryGoal: string;
14
+ mainPressure: string;
15
+ signatureTwist: string;
16
+ progression?: string;
17
+ preferredActivities?: string;
18
+ }
19
+ export interface GameDesignBlueprintItem {
20
+ title: string;
21
+ description: string;
22
+ }
23
+ export interface GameDesignBlueprint {
24
+ gameName: string;
25
+ descriptor: string;
26
+ shortPitch: string;
27
+ coreFantasy: string;
28
+ coreVerbs: string[];
29
+ pillars: GameDesignBlueprintItem[];
30
+ mechanics: GameDesignBlueprintItem[];
31
+ coreLoop: GameDesignBlueprintItem[];
32
+ sessionLoop: string[];
33
+ coreTest: string;
34
+ scopeRules: string[];
35
+ documentationInstruction: string;
36
+ ai_used: boolean;
37
+ }
38
+ /** Public AI-assisted tools for turning an early game idea into testable design documentation. */
39
+ declare class GameDesign {
40
+ /** Generate a mechanics and core-loop blueprint without requiring authentication. */
41
+ static generateBlueprint<T = GameDesignBlueprint>(input: GameDesignBlueprintInput): AxiosPromise<Response<T>>;
42
+ }
43
+ export default GameDesign;
@@ -199,7 +199,7 @@ export interface HostingServiceDefinition {
199
199
  game_build_id?: string;
200
200
  }
201
201
  export interface HostingServiceStackRequest {
202
- preset?: 'single_server' | 'world_of_claudecraft' | 'web_and_api' | 'authoritative_world' | 'biomes_style';
202
+ preset?: 'single_server' | 'stateful_game_server' | 'web_and_api' | 'authoritative_world' | 'large_realtime_world';
203
203
  game_build_id?: string;
204
204
  builds?: Record<string, string>;
205
205
  services?: HostingServiceDefinition[];
@@ -53,6 +53,7 @@ import AdminUsers from "./AdminUsers";
53
53
  import MarketResearch from "./MarketResearch";
54
54
  import GameAdvertising from './GameAdvertising';
55
55
  import Hosting from './Hosting';
56
+ import GameDesign from './GameDesign';
56
57
  export { Ads };
57
58
  export { AccessKeys };
58
59
  export { Auth };
@@ -108,3 +109,4 @@ export { AdminUsers };
108
109
  export { MarketResearch };
109
110
  export { GameAdvertising };
110
111
  export { Hosting };
112
+ export { GameDesign };
@@ -53,6 +53,7 @@ import { AdminUsers } from './api';
53
53
  import { MarketResearch } from './api';
54
54
  import { GameAdvertising } from './api';
55
55
  import { Hosting } from './api';
56
+ import { GameDesign } from './api';
56
57
  import Requests from "./util/Requests";
57
58
  import Parser from "./util/Parser";
58
59
  import Session from "./util/Session";
@@ -127,6 +128,7 @@ declare class Glitch {
127
128
  MarketResearch: typeof MarketResearch;
128
129
  GameAdvertising: typeof GameAdvertising;
129
130
  Hosting: typeof Hosting;
131
+ GameDesign: typeof GameDesign;
130
132
  };
131
133
  static util: {
132
134
  Requests: typeof Requests;
package/dist/esm/index.js CHANGED
@@ -21508,6 +21508,23 @@ class Hosting {
21508
21508
  }
21509
21509
  }
21510
21510
 
21511
+ class GameDesignRoute {
21512
+ }
21513
+ GameDesignRoute.routes = {
21514
+ generateBlueprint: {
21515
+ url: '/tools/game-design/blueprint',
21516
+ method: HTTP_METHODS.POST,
21517
+ },
21518
+ };
21519
+
21520
+ /** Public AI-assisted tools for turning an early game idea into testable design documentation. */
21521
+ class GameDesign {
21522
+ /** Generate a mechanics and core-loop blueprint without requiring authentication. */
21523
+ static generateBlueprint(input) {
21524
+ return Requests.processRoute(GameDesignRoute.routes.generateBlueprint, input);
21525
+ }
21526
+ }
21527
+
21511
21528
  class Parser {
21512
21529
  /**
21513
21530
  * To be used inside a catch close, this function will parse out any JSON in a error response from the api.
@@ -22046,6 +22063,7 @@ Glitch.api = {
22046
22063
  MarketResearch: MarketResearch,
22047
22064
  GameAdvertising: GameAdvertising,
22048
22065
  Hosting: Hosting,
22066
+ GameDesign: GameDesign,
22049
22067
  };
22050
22068
  Glitch.util = {
22051
22069
  Requests: Requests,