@spacemolt/lib 4.6.0 → 8.0.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/COMMANDS.md +20 -14
- package/README.md +61 -6
- package/dist/account.d.ts +44 -15
- package/dist/auth/clerk.d.ts +45 -18
- package/dist/auth/credentials.d.ts +1 -0
- package/dist/auth/file-store.d.ts +1 -1
- package/dist/client.d.ts +22 -2
- package/dist/data/catalog.d.ts +37 -4
- package/dist/events/emitter.d.ts +1 -2
- package/dist/generated/actions.gen.d.ts +2 -2
- package/dist/generated/commands.gen.d.ts +119 -39
- package/dist/generated/notifications.gen.d.ts +4 -3
- package/dist/generated/openapi/types.gen.d.ts +1813 -270
- package/dist/index.d.ts +4 -4
- package/dist/index.js +460 -162
- package/dist/node.js +66 -4
- package/dist/protocol.d.ts +7 -0
- package/dist/transport/correlator.d.ts +2 -1
- package/dist/transport/socket.d.ts +10 -8
- package/dist/validation.d.ts +4 -0
- package/package.json +15 -4
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
export * from './protocol.js';
|
|
13
13
|
export { Account, type AccountOptions, type ReconnectOptions, type RegisterParams, type RegisterResult, type LoggedInPayload, } from './account.js';
|
|
14
14
|
export { SpacemoltClient, type SpacemoltClientOptions } from './client.js';
|
|
15
|
-
export { ClerkSource, mintWsToken, type ClerkPlayer, type ClerkSourceOptions, } from './auth/clerk.js';
|
|
15
|
+
export { ClerkSource, mintWsToken, type ClerkAuth, type ClerkAuthHeaders, type ClerkPlayer, type ClerkRegistration, type ClerkSourceOptions, } from './auth/clerk.js';
|
|
16
16
|
export { type CredentialStore, type StoredAccount, type AuthCredentials, MemoryCredentialStore, } from './auth/credentials.js';
|
|
17
17
|
export { SpacemoltError, ConnectionClosedError, CLOSE_CODE, retryAfterMsFromClose } from './errors.js';
|
|
18
18
|
export { StateCache } from './state/cache.js';
|
|
@@ -20,11 +20,11 @@ export { MarketCache, type MarketBook, type MarketItem } from './state/market.js
|
|
|
20
20
|
export { ObservationCache, type ObservationView, type ObservedPlayer, type CloakedContact, } from './state/observation.js';
|
|
21
21
|
export { TypedEmitter, EventStream } from './events/emitter.js';
|
|
22
22
|
export { type Commands, type CommandDispatch, buildCommands } from './generated/commands.gen.js';
|
|
23
|
-
export { CatalogCache, fetchCatalog, type Catalog, type CatalogEntry } from './data/catalog.js';
|
|
23
|
+
export { CatalogCache, fetchCatalog, fetchCatalogConditional, type Catalog, type CatalogEntry, type CatalogFetchResult, } from './data/catalog.js';
|
|
24
24
|
export { MapCache, fetchMap, httpBaseFromWs, type GalaxyMap, type MapSystem } from './data/map.js';
|
|
25
|
-
export { Socket, type SocketOptions, type WebSocketLike, type WebSocketFactory, } from './transport/socket.js';
|
|
25
|
+
export { Socket, type SocketOptions, type WebSocketLike, type WebSocketFactory, type MessageEventLike, type CloseEventLike, } from './transport/socket.js';
|
|
26
26
|
export { ACTIONS, GENERATED_SPEC_VERSION } from './generated/actions.gen.js';
|
|
27
27
|
export type { ToolName, ActionName, ActionDef, ActionParam } from './generated/actions.gen.js';
|
|
28
28
|
export type * from './generated/openapi/types.gen.js';
|
|
29
|
-
export { TYPED_NOTIFICATION_TYPES
|
|
29
|
+
export { TYPED_NOTIFICATION_TYPES } from './generated/notifications.gen.js';
|
|
30
30
|
export type { NotificationPayloads, TypedNotificationType, } from './generated/notifications.gen.js';
|