@onlyworlds/sdk 1.3.1 → 1.3.2

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
@@ -835,6 +835,11 @@ declare const ELEMENT_LABELS: Record<ElementType, string>;
835
835
  * @returns The plural label string
836
836
  */
837
837
  declare function getElementLabel(elementType: ElementType): string;
838
+ /**
839
+ * Current OnlyWorlds version
840
+ * Synced with https://github.com/OnlyWorlds/OnlyWorlds/blob/main/VERSION
841
+ */
842
+ declare const ONLYWORLDS_VERSION: "00.30.00";
838
843
  /**
839
844
  * Field type definitions for OnlyWorlds elements
840
845
  */
@@ -2289,4 +2294,4 @@ declare class OnlyWorldsClient {
2289
2294
  static prepareInput<T extends Record<string, any>>(data: T): any;
2290
2295
  }
2291
2296
 
2292
- export { type Ability, type AbilityInput, type AnyElementId, type ApiResponse, type BaseElement, type Character, type CharacterInput, type Collective, type CollectiveInput, type Construct, type ConstructInput, type Creature, type CreatureInput, ELEMENT_LABELS, type ElementId, type ElementIds, ElementType, type Event, type EventInput, FIELD_MAPPINGS, FIELD_SCHEMA, type Family, type FamilyInput, type FieldInfo, type FieldMappingsType, type FieldType, type Institution, type InstitutionInput, type Language, type LanguageInput, type Law, type LawInput, type ListOptions, type Location, type LocationInput, type Map, type MapInput, type Marker, type MarkerInput, type Narrative, type NarrativeInput, type Object$1 as Object, type ObjectInput, OnlyWorldsClient, type OnlyWorldsConfig, type Phenomenon, type PhenomenonInput, type Pin, type PinInput, type Relation, type RelationInput, type Species, type SpeciesInput, type Title, type TitleInput, type Trait, type TraitInput, type World, type WorldInput, type Zone, type ZoneInput, createAnyElementId, createElementId, createElementIds, getElementLabel };
2297
+ export { type Ability, type AbilityInput, type AnyElementId, type ApiResponse, type BaseElement, type Character, type CharacterInput, type Collective, type CollectiveInput, type Construct, type ConstructInput, type Creature, type CreatureInput, ELEMENT_LABELS, type ElementId, type ElementIds, ElementType, type Event, type EventInput, FIELD_MAPPINGS, FIELD_SCHEMA, type Family, type FamilyInput, type FieldInfo, type FieldMappingsType, type FieldType, type Institution, type InstitutionInput, type Language, type LanguageInput, type Law, type LawInput, type ListOptions, type Location, type LocationInput, type Map, type MapInput, type Marker, type MarkerInput, type Narrative, type NarrativeInput, ONLYWORLDS_VERSION, type Object$1 as Object, type ObjectInput, OnlyWorldsClient, type OnlyWorldsConfig, type Phenomenon, type PhenomenonInput, type Pin, type PinInput, type Relation, type RelationInput, type Species, type SpeciesInput, type Title, type TitleInput, type Trait, type TraitInput, type World, type WorldInput, type Zone, type ZoneInput, createAnyElementId, createElementId, createElementIds, getElementLabel };
package/dist/index.d.ts CHANGED
@@ -835,6 +835,11 @@ declare const ELEMENT_LABELS: Record<ElementType, string>;
835
835
  * @returns The plural label string
836
836
  */
837
837
  declare function getElementLabel(elementType: ElementType): string;
838
+ /**
839
+ * Current OnlyWorlds version
840
+ * Synced with https://github.com/OnlyWorlds/OnlyWorlds/blob/main/VERSION
841
+ */
842
+ declare const ONLYWORLDS_VERSION: "00.30.00";
838
843
  /**
839
844
  * Field type definitions for OnlyWorlds elements
840
845
  */
@@ -2289,4 +2294,4 @@ declare class OnlyWorldsClient {
2289
2294
  static prepareInput<T extends Record<string, any>>(data: T): any;
2290
2295
  }
2291
2296
 
2292
- export { type Ability, type AbilityInput, type AnyElementId, type ApiResponse, type BaseElement, type Character, type CharacterInput, type Collective, type CollectiveInput, type Construct, type ConstructInput, type Creature, type CreatureInput, ELEMENT_LABELS, type ElementId, type ElementIds, ElementType, type Event, type EventInput, FIELD_MAPPINGS, FIELD_SCHEMA, type Family, type FamilyInput, type FieldInfo, type FieldMappingsType, type FieldType, type Institution, type InstitutionInput, type Language, type LanguageInput, type Law, type LawInput, type ListOptions, type Location, type LocationInput, type Map, type MapInput, type Marker, type MarkerInput, type Narrative, type NarrativeInput, type Object$1 as Object, type ObjectInput, OnlyWorldsClient, type OnlyWorldsConfig, type Phenomenon, type PhenomenonInput, type Pin, type PinInput, type Relation, type RelationInput, type Species, type SpeciesInput, type Title, type TitleInput, type Trait, type TraitInput, type World, type WorldInput, type Zone, type ZoneInput, createAnyElementId, createElementId, createElementIds, getElementLabel };
2297
+ export { type Ability, type AbilityInput, type AnyElementId, type ApiResponse, type BaseElement, type Character, type CharacterInput, type Collective, type CollectiveInput, type Construct, type ConstructInput, type Creature, type CreatureInput, ELEMENT_LABELS, type ElementId, type ElementIds, ElementType, type Event, type EventInput, FIELD_MAPPINGS, FIELD_SCHEMA, type Family, type FamilyInput, type FieldInfo, type FieldMappingsType, type FieldType, type Institution, type InstitutionInput, type Language, type LanguageInput, type Law, type LawInput, type ListOptions, type Location, type LocationInput, type Map, type MapInput, type Marker, type MarkerInput, type Narrative, type NarrativeInput, ONLYWORLDS_VERSION, type Object$1 as Object, type ObjectInput, OnlyWorldsClient, type OnlyWorldsConfig, type Phenomenon, type PhenomenonInput, type Pin, type PinInput, type Relation, type RelationInput, type Species, type SpeciesInput, type Title, type TitleInput, type Trait, type TraitInput, type World, type WorldInput, type Zone, type ZoneInput, createAnyElementId, createElementId, createElementIds, getElementLabel };
package/dist/index.js CHANGED
@@ -24,6 +24,7 @@ __export(index_exports, {
24
24
  ElementType: () => ElementType,
25
25
  FIELD_MAPPINGS: () => FIELD_MAPPINGS,
26
26
  FIELD_SCHEMA: () => FIELD_SCHEMA,
27
+ ONLYWORLDS_VERSION: () => ONLYWORLDS_VERSION,
27
28
  OnlyWorldsClient: () => OnlyWorldsClient,
28
29
  createAnyElementId: () => createAnyElementId,
29
30
  createElementId: () => createElementId,
@@ -205,6 +206,7 @@ var ELEMENT_LABELS = {
205
206
  function getElementLabel(elementType) {
206
207
  return ELEMENT_LABELS[elementType];
207
208
  }
209
+ var ONLYWORLDS_VERSION = "00.30.00";
208
210
  var FIELD_SCHEMA = {
209
211
  ability: {
210
212
  // Text fields
@@ -676,6 +678,7 @@ function createAnyElementId(id) {
676
678
  ElementType,
677
679
  FIELD_MAPPINGS,
678
680
  FIELD_SCHEMA,
681
+ ONLYWORLDS_VERSION,
679
682
  OnlyWorldsClient,
680
683
  createAnyElementId,
681
684
  createElementId,
package/dist/index.mjs CHANGED
@@ -171,6 +171,7 @@ var ELEMENT_LABELS = {
171
171
  function getElementLabel(elementType) {
172
172
  return ELEMENT_LABELS[elementType];
173
173
  }
174
+ var ONLYWORLDS_VERSION = "00.30.00";
174
175
  var FIELD_SCHEMA = {
175
176
  ability: {
176
177
  // Text fields
@@ -641,6 +642,7 @@ export {
641
642
  ElementType,
642
643
  FIELD_MAPPINGS,
643
644
  FIELD_SCHEMA,
645
+ ONLYWORLDS_VERSION,
644
646
  OnlyWorldsClient,
645
647
  createAnyElementId,
646
648
  createElementId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlyworlds/sdk",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "TypeScript SDK for the OnlyWorlds API - build world-building applications with type safety",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",