@onlyworlds/sdk 1.5.0 → 2.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/dist/index.d.mts CHANGED
@@ -76,9 +76,9 @@ interface WorldInput {
76
76
  */
77
77
  interface Ability extends BaseElement {
78
78
  activation?: string;
79
- duration?: string;
80
- potency?: string;
81
- range?: string;
79
+ duration?: number;
80
+ potency?: number;
81
+ range?: number;
82
82
  effects?: ElementIds<ElementType.Phenomenon>;
83
83
  challenges?: string;
84
84
  talents?: ElementIds<ElementType.Trait>;
@@ -96,8 +96,8 @@ interface Ability extends BaseElement {
96
96
  */
97
97
  interface Object$1 extends BaseElement {
98
98
  aesthetics?: string;
99
- weight?: string;
100
- amount?: string;
99
+ weight?: number;
100
+ amount?: number;
101
101
  parent_object?: ElementId<ElementType.Object>;
102
102
  materials?: ElementIds<ElementType.Construct>;
103
103
  technology?: ElementIds<ElementType.Construct>;
@@ -117,37 +117,37 @@ interface Object$1 extends BaseElement {
117
117
  interface Character extends BaseElement {
118
118
  physicality?: string;
119
119
  mentality?: string;
120
- height?: string;
121
- weight?: string;
120
+ height?: number;
121
+ weight?: number;
122
122
  species?: ElementIds<ElementType.Species>;
123
123
  traits?: ElementIds<ElementType.Trait>;
124
124
  abilities?: ElementIds<ElementType.Ability>;
125
125
  background?: string;
126
126
  motivations?: string;
127
- birth_date?: string;
127
+ birth_date?: number;
128
128
  birthplace?: ElementId<ElementType.Location>;
129
129
  languages?: ElementIds<ElementType.Language>;
130
130
  reputation?: string;
131
131
  location?: ElementId<ElementType.Location>;
132
132
  objects?: ElementIds<ElementType.Object>;
133
133
  institutions?: ElementIds<ElementType.Institution>;
134
- charisma?: string;
135
- coercion?: string;
136
- competence?: string;
137
- compassion?: string;
138
- creativity?: string;
139
- courage?: string;
134
+ charisma?: number;
135
+ coercion?: number;
136
+ competence?: number;
137
+ compassion?: number;
138
+ creativity?: number;
139
+ courage?: number;
140
140
  family?: ElementIds<ElementType.Family>;
141
141
  friends?: ElementIds<ElementType.Character>;
142
142
  rivals?: ElementIds<ElementType.Character>;
143
- level?: string;
144
- hit_points?: string;
145
- STR?: string;
146
- DEX?: string;
147
- CON?: string;
148
- INT?: string;
149
- WIS?: string;
150
- CHA?: string;
143
+ level?: number;
144
+ hit_points?: number;
145
+ STR?: number;
146
+ DEX?: number;
147
+ CON?: number;
148
+ INT?: number;
149
+ WIS?: number;
150
+ CHA?: number;
151
151
  }
152
152
  /**
153
153
  * Collective element type
@@ -155,8 +155,8 @@ interface Character extends BaseElement {
155
155
  */
156
156
  interface Collective extends BaseElement {
157
157
  composition?: string;
158
- count?: string;
159
- formation_date?: string;
158
+ count?: number;
159
+ formation_date?: number;
160
160
  operator?: ElementId<ElementType.Institution>;
161
161
  equipment?: ElementIds<ElementType.Construct>;
162
162
  activity?: string;
@@ -178,8 +178,8 @@ interface Construct extends BaseElement {
178
178
  history?: string;
179
179
  status?: string;
180
180
  reach?: string;
181
- start_date?: string;
182
- end_date?: string;
181
+ start_date?: number;
182
+ end_date?: number;
183
183
  founder?: ElementId<ElementType.Character>;
184
184
  custodian?: ElementId<ElementType.Institution>;
185
185
  characters?: ElementIds<ElementType.Character>;
@@ -207,8 +207,8 @@ interface Construct extends BaseElement {
207
207
  */
208
208
  interface Creature extends BaseElement {
209
209
  appearance?: string;
210
- weight?: string;
211
- height?: string;
210
+ weight?: number;
211
+ height?: number;
212
212
  species?: ElementIds<ElementType.Species>;
213
213
  habits?: string;
214
214
  demeanor?: string;
@@ -216,13 +216,13 @@ interface Creature extends BaseElement {
216
216
  abilities?: ElementIds<ElementType.Ability>;
217
217
  languages?: ElementIds<ElementType.Language>;
218
218
  status?: string;
219
- birth_date?: string;
219
+ birth_date?: number;
220
220
  location?: ElementId<ElementType.Location>;
221
221
  zone?: ElementId<ElementType.Zone>;
222
- challenge_rating?: string;
223
- hit_points?: string;
224
- armor_class?: string;
225
- speed?: string;
222
+ challenge_rating?: number;
223
+ hit_points?: number;
224
+ armor_class?: number;
225
+ speed?: number;
226
226
  actions?: ElementIds<ElementType.Ability>;
227
227
  }
228
228
  /**
@@ -233,8 +233,8 @@ interface Event extends BaseElement {
233
233
  history?: string;
234
234
  challenges?: string;
235
235
  consequences?: string;
236
- start_date?: string;
237
- end_date?: string;
236
+ start_date?: number;
237
+ end_date?: number;
238
238
  triggers?: ElementIds<ElementType.Event>;
239
239
  characters?: ElementIds<ElementType.Character>;
240
240
  objects?: ElementIds<ElementType.Object>;
@@ -277,7 +277,7 @@ interface Family extends BaseElement {
277
277
  */
278
278
  interface Institution extends BaseElement {
279
279
  doctrine?: string;
280
- founding_date?: string;
280
+ founding_date?: number;
281
281
  parent_institution?: ElementId<ElementType.Institution>;
282
282
  zones?: ElementIds<ElementType.Zone>;
283
283
  objects?: ElementIds<ElementType.Object>;
@@ -308,7 +308,7 @@ interface Language extends BaseElement {
308
308
  interface Law extends BaseElement {
309
309
  declaration?: string;
310
310
  purpose?: string;
311
- date?: string;
311
+ date?: number;
312
312
  parent_law?: ElementId<ElementType.Law>;
313
313
  penalties?: ElementIds<ElementType.Construct>;
314
314
  author?: ElementId<ElementType.Institution>;
@@ -325,7 +325,7 @@ interface Law extends BaseElement {
325
325
  interface Location extends BaseElement {
326
326
  form?: string;
327
327
  function?: string;
328
- founding_date?: string;
328
+ founding_date?: number;
329
329
  parent_location?: ElementId<ElementType.Location>;
330
330
  populations?: ElementIds<ElementType.Collective>;
331
331
  political_climate?: string;
@@ -351,7 +351,7 @@ interface Location extends BaseElement {
351
351
  buildings?: ElementIds<ElementType.Object>;
352
352
  building_methods?: ElementIds<ElementType.Construct>;
353
353
  defensibility?: string;
354
- elevation?: string;
354
+ elevation?: number;
355
355
  fighters?: ElementIds<ElementType.Construct>;
356
356
  defensive_objects?: ElementIds<ElementType.Object>;
357
357
  }
@@ -362,7 +362,7 @@ interface Location extends BaseElement {
362
362
  interface Phenomenon extends BaseElement {
363
363
  expression?: string;
364
364
  effects?: string;
365
- duration?: string;
365
+ duration?: number;
366
366
  catalysts?: ElementIds<ElementType.Object>;
367
367
  empowerments?: ElementIds<ElementType.Ability>;
368
368
  mythology?: string;
@@ -377,9 +377,9 @@ interface Phenomenon extends BaseElement {
377
377
  */
378
378
  interface Relation extends BaseElement {
379
379
  background?: string;
380
- start_date?: string;
381
- end_date?: string;
382
- intensity?: string;
380
+ start_date?: number;
381
+ end_date?: number;
382
+ intensity?: number;
383
383
  actor?: ElementId<ElementType.Character>;
384
384
  events?: ElementIds<ElementType.Event>;
385
385
  characters?: ElementIds<ElementType.Character>;
@@ -405,8 +405,8 @@ interface Relation extends BaseElement {
405
405
  */
406
406
  interface Species extends BaseElement {
407
407
  appearance?: string;
408
- life_span?: string;
409
- weight?: string;
408
+ life_span?: number;
409
+ weight?: number;
410
410
  nourishment?: ElementIds<ElementType.Species>;
411
411
  reproduction?: ElementIds<ElementType.Construct>;
412
412
  adaptations?: ElementIds<ElementType.Ability>;
@@ -414,7 +414,7 @@ interface Species extends BaseElement {
414
414
  sociality?: string;
415
415
  temperament?: string;
416
416
  communication?: string;
417
- aggression?: string;
417
+ aggression?: number;
418
418
  traits?: ElementIds<ElementType.Trait>;
419
419
  role?: string;
420
420
  parent_species?: ElementId<ElementType.Species>;
@@ -428,8 +428,8 @@ interface Species extends BaseElement {
428
428
  */
429
429
  interface Zone extends BaseElement {
430
430
  role?: string;
431
- start_date?: string;
432
- end_date?: string;
431
+ start_date?: number;
432
+ end_date?: number;
433
433
  phenomena?: ElementIds<ElementType.Phenomenon>;
434
434
  linked_zones?: ElementIds<ElementType.Zone>;
435
435
  context?: string;
@@ -444,8 +444,8 @@ interface Zone extends BaseElement {
444
444
  interface Title extends BaseElement {
445
445
  authority?: string;
446
446
  eligibility?: string;
447
- grant_date?: string;
448
- revoke_date?: string;
447
+ grant_date?: number;
448
+ revoke_date?: number;
449
449
  issuer?: ElementId<ElementType.Institution>;
450
450
  body?: ElementId<ElementType.Institution>;
451
451
  superior_title?: ElementId<ElementType.Title>;
@@ -477,12 +477,12 @@ interface Trait extends BaseElement {
477
477
  functional_effects?: string;
478
478
  personality_effects?: string;
479
479
  behaviour_effects?: string;
480
- charisma?: string;
481
- coercion?: string;
482
- competence?: string;
483
- compassion?: string;
484
- creativity?: string;
485
- courage?: string;
480
+ charisma?: number;
481
+ coercion?: number;
482
+ competence?: number;
483
+ compassion?: number;
484
+ creativity?: number;
485
+ courage?: number;
486
486
  significance?: string;
487
487
  anti_trait?: ElementId<ElementType.Trait>;
488
488
  empowered_abilities?: ElementIds<ElementType.Ability>;
@@ -494,9 +494,9 @@ interface Trait extends BaseElement {
494
494
  interface Narrative extends BaseElement {
495
495
  story?: string;
496
496
  consequences?: string;
497
- start_date?: string;
498
- end_date?: string;
499
- order?: string;
497
+ start_date?: number;
498
+ end_date?: number;
499
+ order?: number;
500
500
  parent_narrative?: ElementId<ElementType.Narrative>;
501
501
  protagonist?: ElementId<ElementType.Character>;
502
502
  antagonist?: ElementId<ElementType.Character>;
@@ -527,10 +527,10 @@ interface Narrative extends BaseElement {
527
527
  */
528
528
  interface Map extends BaseElement {
529
529
  background_color?: string;
530
- hierarchy?: string;
531
- width?: string;
532
- height?: string;
533
- depth?: string;
530
+ hierarchy?: number;
531
+ width?: number;
532
+ height?: number;
533
+ depth?: number;
534
534
  parent_map?: ElementId<ElementType.Map>;
535
535
  location?: ElementId<ElementType.Location>;
536
536
  }
@@ -906,8 +906,6 @@ declare function getElementIcon(elementType: ElementType): string;
906
906
  * @returns Unicode symbol string
907
907
  */
908
908
  declare function getElementUnicodeIcon(elementType: ElementType): string;
909
- declare const ELEMENT_MATERIAL_ICONS: Record<ElementType, string>;
910
- declare const getElementMaterialIcon: typeof getElementIcon;
911
909
  /**
912
910
  * Field type definitions for OnlyWorlds elements
913
911
  */
@@ -930,17 +928,29 @@ declare const FIELD_SCHEMA: {
930
928
  readonly type: "text";
931
929
  };
932
930
  readonly duration: {
933
- readonly type: "text";
931
+ readonly type: "number";
934
932
  };
935
933
  readonly potency: {
936
- readonly type: "text";
934
+ readonly type: "number";
937
935
  };
938
936
  readonly range: {
939
- readonly type: "text";
937
+ readonly type: "number";
938
+ };
939
+ readonly effects: {
940
+ readonly type: "multi_link";
941
+ readonly target: "phenomenon";
940
942
  };
941
943
  readonly challenges: {
942
944
  readonly type: "text";
943
945
  };
946
+ readonly talents: {
947
+ readonly type: "multi_link";
948
+ readonly target: "trait";
949
+ };
950
+ readonly requisites: {
951
+ readonly type: "multi_link";
952
+ readonly target: "construct";
953
+ };
944
954
  readonly prevalence: {
945
955
  readonly type: "text";
946
956
  };
@@ -956,18 +966,6 @@ declare const FIELD_SCHEMA: {
956
966
  readonly type: "single_link";
957
967
  readonly target: "location";
958
968
  };
959
- readonly effects: {
960
- readonly type: "multi_link";
961
- readonly target: "phenomenon";
962
- };
963
- readonly talents: {
964
- readonly type: "multi_link";
965
- readonly target: "trait";
966
- };
967
- readonly requisites: {
968
- readonly type: "multi_link";
969
- readonly target: "construct";
970
- };
971
969
  readonly instruments: {
972
970
  readonly type: "multi_link";
973
971
  readonly target: "object";
@@ -985,10 +983,22 @@ declare const FIELD_SCHEMA: {
985
983
  readonly type: "text";
986
984
  };
987
985
  readonly height: {
988
- readonly type: "text";
986
+ readonly type: "number";
989
987
  };
990
988
  readonly weight: {
991
- readonly type: "text";
989
+ readonly type: "number";
990
+ };
991
+ readonly species: {
992
+ readonly type: "multi_link";
993
+ readonly target: "species";
994
+ };
995
+ readonly traits: {
996
+ readonly type: "multi_link";
997
+ readonly target: "trait";
998
+ };
999
+ readonly abilities: {
1000
+ readonly type: "multi_link";
1001
+ readonly target: "ability";
992
1002
  };
993
1003
  readonly background: {
994
1004
  readonly type: "text";
@@ -997,96 +1007,84 @@ declare const FIELD_SCHEMA: {
997
1007
  readonly type: "text";
998
1008
  };
999
1009
  readonly birth_date: {
1000
- readonly type: "text";
1010
+ readonly type: "number";
1011
+ };
1012
+ readonly birthplace: {
1013
+ readonly type: "single_link";
1014
+ readonly target: "location";
1015
+ };
1016
+ readonly languages: {
1017
+ readonly type: "multi_link";
1018
+ readonly target: "language";
1001
1019
  };
1002
1020
  readonly reputation: {
1003
1021
  readonly type: "text";
1004
1022
  };
1023
+ readonly location: {
1024
+ readonly type: "single_link";
1025
+ readonly target: "location";
1026
+ };
1027
+ readonly objects: {
1028
+ readonly type: "multi_link";
1029
+ readonly target: "object";
1030
+ };
1031
+ readonly institutions: {
1032
+ readonly type: "multi_link";
1033
+ readonly target: "institution";
1034
+ };
1005
1035
  readonly charisma: {
1006
- readonly type: "text";
1036
+ readonly type: "number";
1007
1037
  };
1008
1038
  readonly coercion: {
1009
- readonly type: "text";
1039
+ readonly type: "number";
1010
1040
  };
1011
1041
  readonly competence: {
1012
- readonly type: "text";
1042
+ readonly type: "number";
1013
1043
  };
1014
1044
  readonly compassion: {
1015
- readonly type: "text";
1045
+ readonly type: "number";
1016
1046
  };
1017
1047
  readonly creativity: {
1018
- readonly type: "text";
1048
+ readonly type: "number";
1019
1049
  };
1020
1050
  readonly courage: {
1021
- readonly type: "text";
1051
+ readonly type: "number";
1052
+ };
1053
+ readonly family: {
1054
+ readonly type: "multi_link";
1055
+ readonly target: "family";
1056
+ };
1057
+ readonly friends: {
1058
+ readonly type: "multi_link";
1059
+ readonly target: "character";
1060
+ };
1061
+ readonly rivals: {
1062
+ readonly type: "multi_link";
1063
+ readonly target: "character";
1022
1064
  };
1023
1065
  readonly level: {
1024
- readonly type: "text";
1066
+ readonly type: "number";
1025
1067
  };
1026
1068
  readonly hit_points: {
1027
- readonly type: "text";
1069
+ readonly type: "number";
1028
1070
  };
1029
1071
  readonly STR: {
1030
- readonly type: "text";
1072
+ readonly type: "number";
1031
1073
  };
1032
1074
  readonly DEX: {
1033
- readonly type: "text";
1075
+ readonly type: "number";
1034
1076
  };
1035
1077
  readonly CON: {
1036
- readonly type: "text";
1078
+ readonly type: "number";
1037
1079
  };
1038
1080
  readonly INT: {
1039
- readonly type: "text";
1081
+ readonly type: "number";
1040
1082
  };
1041
1083
  readonly WIS: {
1042
- readonly type: "text";
1084
+ readonly type: "number";
1043
1085
  };
1044
1086
  readonly CHA: {
1045
- readonly type: "text";
1046
- };
1047
- readonly birthplace: {
1048
- readonly type: "single_link";
1049
- readonly target: "location";
1050
- };
1051
- readonly location: {
1052
- readonly type: "single_link";
1053
- readonly target: "location";
1054
- };
1055
- readonly species: {
1056
- readonly type: "multi_link";
1057
- readonly target: "species";
1058
- };
1059
- readonly traits: {
1060
- readonly type: "multi_link";
1061
- readonly target: "trait";
1062
- };
1063
- readonly abilities: {
1064
- readonly type: "multi_link";
1065
- readonly target: "ability";
1066
- };
1067
- readonly languages: {
1068
- readonly type: "multi_link";
1069
- readonly target: "language";
1070
- };
1071
- readonly objects: {
1072
- readonly type: "multi_link";
1073
- readonly target: "object";
1074
- };
1075
- readonly institutions: {
1076
- readonly type: "multi_link";
1077
- readonly target: "institution";
1078
- };
1079
- readonly family: {
1080
- readonly type: "multi_link";
1081
- readonly target: "family";
1082
- };
1083
- readonly friends: {
1084
- readonly type: "multi_link";
1085
- readonly target: "character";
1086
- };
1087
- readonly rivals: {
1088
- readonly type: "multi_link";
1089
- readonly target: "character";
1087
+ readonly type: "number";
1090
1088
  };
1091
1089
  };
1092
1090
  readonly collective: {
@@ -1094,10 +1092,18 @@ declare const FIELD_SCHEMA: {
1094
1092
  readonly type: "text";
1095
1093
  };
1096
1094
  readonly count: {
1097
- readonly type: "text";
1095
+ readonly type: "number";
1098
1096
  };
1099
1097
  readonly formation_date: {
1100
- readonly type: "text";
1098
+ readonly type: "number";
1099
+ };
1100
+ readonly operator: {
1101
+ readonly type: "single_link";
1102
+ readonly target: "institution";
1103
+ };
1104
+ readonly equipment: {
1105
+ readonly type: "multi_link";
1106
+ readonly target: "construct";
1101
1107
  };
1102
1108
  readonly activity: {
1103
1109
  readonly type: "text";
@@ -1108,14 +1114,6 @@ declare const FIELD_SCHEMA: {
1108
1114
  readonly state: {
1109
1115
  readonly type: "text";
1110
1116
  };
1111
- readonly operator: {
1112
- readonly type: "single_link";
1113
- readonly target: "institution";
1114
- };
1115
- readonly equipment: {
1116
- readonly type: "multi_link";
1117
- readonly target: "construct";
1118
- };
1119
1117
  readonly abilities: {
1120
1118
  readonly type: "multi_link";
1121
1119
  readonly target: "ability";
@@ -1155,10 +1153,10 @@ declare const FIELD_SCHEMA: {
1155
1153
  readonly type: "text";
1156
1154
  };
1157
1155
  readonly start_date: {
1158
- readonly type: "text";
1156
+ readonly type: "number";
1159
1157
  };
1160
1158
  readonly end_date: {
1161
- readonly type: "text";
1159
+ readonly type: "number";
1162
1160
  };
1163
1161
  readonly founder: {
1164
1162
  readonly type: "single_link";
@@ -1246,10 +1244,14 @@ declare const FIELD_SCHEMA: {
1246
1244
  readonly type: "text";
1247
1245
  };
1248
1246
  readonly weight: {
1249
- readonly type: "text";
1247
+ readonly type: "number";
1250
1248
  };
1251
1249
  readonly height: {
1252
- readonly type: "text";
1250
+ readonly type: "number";
1251
+ };
1252
+ readonly species: {
1253
+ readonly type: "multi_link";
1254
+ readonly target: "species";
1253
1255
  };
1254
1256
  readonly habits: {
1255
1257
  readonly type: "text";
@@ -1257,23 +1259,23 @@ declare const FIELD_SCHEMA: {
1257
1259
  readonly demeanor: {
1258
1260
  readonly type: "text";
1259
1261
  };
1260
- readonly status: {
1261
- readonly type: "text";
1262
- };
1263
- readonly birth_date: {
1264
- readonly type: "text";
1262
+ readonly traits: {
1263
+ readonly type: "multi_link";
1264
+ readonly target: "trait";
1265
1265
  };
1266
- readonly challenge_rating: {
1267
- readonly type: "text";
1266
+ readonly abilities: {
1267
+ readonly type: "multi_link";
1268
+ readonly target: "ability";
1268
1269
  };
1269
- readonly hit_points: {
1270
- readonly type: "text";
1270
+ readonly languages: {
1271
+ readonly type: "multi_link";
1272
+ readonly target: "language";
1271
1273
  };
1272
- readonly armor_class: {
1274
+ readonly status: {
1273
1275
  readonly type: "text";
1274
1276
  };
1275
- readonly speed: {
1276
- readonly type: "text";
1277
+ readonly birth_date: {
1278
+ readonly type: "number";
1277
1279
  };
1278
1280
  readonly location: {
1279
1281
  readonly type: "single_link";
@@ -1283,21 +1285,17 @@ declare const FIELD_SCHEMA: {
1283
1285
  readonly type: "single_link";
1284
1286
  readonly target: "zone";
1285
1287
  };
1286
- readonly species: {
1287
- readonly type: "multi_link";
1288
- readonly target: "species";
1288
+ readonly challenge_rating: {
1289
+ readonly type: "number";
1289
1290
  };
1290
- readonly traits: {
1291
- readonly type: "multi_link";
1292
- readonly target: "trait";
1291
+ readonly hit_points: {
1292
+ readonly type: "number";
1293
1293
  };
1294
- readonly abilities: {
1295
- readonly type: "multi_link";
1296
- readonly target: "ability";
1294
+ readonly armor_class: {
1295
+ readonly type: "number";
1297
1296
  };
1298
- readonly languages: {
1299
- readonly type: "multi_link";
1300
- readonly target: "language";
1297
+ readonly speed: {
1298
+ readonly type: "number";
1301
1299
  };
1302
1300
  readonly actions: {
1303
1301
  readonly type: "multi_link";
@@ -1315,14 +1313,14 @@ declare const FIELD_SCHEMA: {
1315
1313
  readonly type: "text";
1316
1314
  };
1317
1315
  readonly start_date: {
1318
- readonly type: "text";
1316
+ readonly type: "number";
1319
1317
  };
1320
1318
  readonly end_date: {
1321
- readonly type: "text";
1319
+ readonly type: "number";
1322
1320
  };
1323
1321
  readonly triggers: {
1324
1322
  readonly type: "multi_link";
1325
- readonly target: "event";
1323
+ readonly target: "construct";
1326
1324
  };
1327
1325
  readonly characters: {
1328
1326
  readonly type: "multi_link";
@@ -1396,9 +1394,6 @@ declare const FIELD_SCHEMA: {
1396
1394
  readonly history: {
1397
1395
  readonly type: "text";
1398
1396
  };
1399
- readonly reputation: {
1400
- readonly type: "text";
1401
- };
1402
1397
  readonly traditions: {
1403
1398
  readonly type: "multi_link";
1404
1399
  readonly target: "construct";
@@ -1419,6 +1414,9 @@ declare const FIELD_SCHEMA: {
1419
1414
  readonly type: "multi_link";
1420
1415
  readonly target: "character";
1421
1416
  };
1417
+ readonly reputation: {
1418
+ readonly type: "text";
1419
+ };
1422
1420
  readonly estates: {
1423
1421
  readonly type: "multi_link";
1424
1422
  readonly target: "location";
@@ -1441,10 +1439,7 @@ declare const FIELD_SCHEMA: {
1441
1439
  readonly type: "text";
1442
1440
  };
1443
1441
  readonly founding_date: {
1444
- readonly type: "text";
1445
- };
1446
- readonly status: {
1447
- readonly type: "text";
1442
+ readonly type: "number";
1448
1443
  };
1449
1444
  readonly parent_institution: {
1450
1445
  readonly type: "single_link";
@@ -1462,6 +1457,9 @@ declare const FIELD_SCHEMA: {
1462
1457
  readonly type: "multi_link";
1463
1458
  readonly target: "creature";
1464
1459
  };
1460
+ readonly status: {
1461
+ readonly type: "text";
1462
+ };
1465
1463
  readonly allies: {
1466
1464
  readonly type: "multi_link";
1467
1465
  readonly target: "institution";
@@ -1488,13 +1486,13 @@ declare const FIELD_SCHEMA: {
1488
1486
  readonly writing: {
1489
1487
  readonly type: "text";
1490
1488
  };
1491
- readonly status: {
1492
- readonly type: "text";
1493
- };
1494
1489
  readonly classification: {
1495
1490
  readonly type: "single_link";
1496
1491
  readonly target: "construct";
1497
1492
  };
1493
+ readonly status: {
1494
+ readonly type: "text";
1495
+ };
1498
1496
  readonly spread: {
1499
1497
  readonly type: "multi_link";
1500
1498
  readonly target: "location";
@@ -1512,20 +1510,20 @@ declare const FIELD_SCHEMA: {
1512
1510
  readonly type: "text";
1513
1511
  };
1514
1512
  readonly date: {
1515
- readonly type: "text";
1513
+ readonly type: "number";
1516
1514
  };
1517
1515
  readonly parent_law: {
1518
1516
  readonly type: "single_link";
1519
1517
  readonly target: "law";
1520
1518
  };
1521
- readonly author: {
1522
- readonly type: "single_link";
1523
- readonly target: "institution";
1524
- };
1525
1519
  readonly penalties: {
1526
1520
  readonly type: "multi_link";
1527
1521
  readonly target: "construct";
1528
1522
  };
1523
+ readonly author: {
1524
+ readonly type: "single_link";
1525
+ readonly target: "institution";
1526
+ };
1529
1527
  readonly locations: {
1530
1528
  readonly type: "multi_link";
1531
1529
  readonly target: "location";
@@ -1555,30 +1553,19 @@ declare const FIELD_SCHEMA: {
1555
1553
  readonly type: "text";
1556
1554
  };
1557
1555
  readonly founding_date: {
1558
- readonly type: "text";
1559
- };
1560
- readonly political_climate: {
1561
- readonly type: "text";
1562
- };
1563
- readonly customs: {
1564
- readonly type: "text";
1565
- };
1566
- readonly infrastructure: {
1567
- readonly type: "text";
1568
- };
1569
- readonly architecture: {
1570
- readonly type: "text";
1571
- };
1572
- readonly defensibility: {
1573
- readonly type: "text";
1574
- };
1575
- readonly elevation: {
1576
- readonly type: "text";
1556
+ readonly type: "number";
1577
1557
  };
1578
1558
  readonly parent_location: {
1579
1559
  readonly type: "single_link";
1580
1560
  readonly target: "location";
1581
1561
  };
1562
+ readonly populations: {
1563
+ readonly type: "multi_link";
1564
+ readonly target: "collective";
1565
+ };
1566
+ readonly political_climate: {
1567
+ readonly type: "text";
1568
+ };
1582
1569
  readonly primary_power: {
1583
1570
  readonly type: "single_link";
1584
1571
  readonly target: "institution";
@@ -1587,6 +1574,10 @@ declare const FIELD_SCHEMA: {
1587
1574
  readonly type: "single_link";
1588
1575
  readonly target: "title";
1589
1576
  };
1577
+ readonly secondary_powers: {
1578
+ readonly type: "multi_link";
1579
+ readonly target: "institution";
1580
+ };
1590
1581
  readonly zone: {
1591
1582
  readonly type: "single_link";
1592
1583
  readonly target: "zone";
@@ -1599,13 +1590,8 @@ declare const FIELD_SCHEMA: {
1599
1590
  readonly type: "single_link";
1600
1591
  readonly target: "location";
1601
1592
  };
1602
- readonly populations: {
1603
- readonly type: "multi_link";
1604
- readonly target: "collective";
1605
- };
1606
- readonly secondary_powers: {
1607
- readonly type: "multi_link";
1608
- readonly target: "institution";
1593
+ readonly customs: {
1594
+ readonly type: "text";
1609
1595
  };
1610
1596
  readonly founders: {
1611
1597
  readonly type: "multi_link";
@@ -1635,6 +1621,9 @@ declare const FIELD_SCHEMA: {
1635
1621
  readonly type: "multi_link";
1636
1622
  readonly target: "construct";
1637
1623
  };
1624
+ readonly infrastructure: {
1625
+ readonly type: "text";
1626
+ };
1638
1627
  readonly extraction_markets: {
1639
1628
  readonly type: "multi_link";
1640
1629
  readonly target: "location";
@@ -1647,6 +1636,9 @@ declare const FIELD_SCHEMA: {
1647
1636
  readonly type: "multi_link";
1648
1637
  readonly target: "construct";
1649
1638
  };
1639
+ readonly architecture: {
1640
+ readonly type: "text";
1641
+ };
1650
1642
  readonly buildings: {
1651
1643
  readonly type: "multi_link";
1652
1644
  readonly target: "object";
@@ -1655,6 +1647,12 @@ declare const FIELD_SCHEMA: {
1655
1647
  readonly type: "multi_link";
1656
1648
  readonly target: "construct";
1657
1649
  };
1650
+ readonly defensibility: {
1651
+ readonly type: "text";
1652
+ };
1653
+ readonly elevation: {
1654
+ readonly type: "number";
1655
+ };
1658
1656
  readonly fighters: {
1659
1657
  readonly type: "multi_link";
1660
1658
  readonly target: "construct";
@@ -1669,16 +1667,16 @@ declare const FIELD_SCHEMA: {
1669
1667
  readonly type: "text";
1670
1668
  };
1671
1669
  readonly hierarchy: {
1672
- readonly type: "text";
1670
+ readonly type: "number";
1673
1671
  };
1674
1672
  readonly width: {
1675
- readonly type: "text";
1673
+ readonly type: "number";
1676
1674
  };
1677
1675
  readonly height: {
1678
- readonly type: "text";
1676
+ readonly type: "number";
1679
1677
  };
1680
1678
  readonly depth: {
1681
- readonly type: "text";
1679
+ readonly type: "number";
1682
1680
  };
1683
1681
  readonly parent_map: {
1684
1682
  readonly type: "single_link";
@@ -1690,6 +1688,14 @@ declare const FIELD_SCHEMA: {
1690
1688
  };
1691
1689
  };
1692
1690
  readonly marker: {
1691
+ readonly map: {
1692
+ readonly type: "single_link";
1693
+ readonly target: "map";
1694
+ };
1695
+ readonly zone: {
1696
+ readonly type: "single_link";
1697
+ readonly target: "zone";
1698
+ };
1693
1699
  readonly x: {
1694
1700
  readonly type: "integer";
1695
1701
  };
@@ -1699,14 +1705,6 @@ declare const FIELD_SCHEMA: {
1699
1705
  readonly z: {
1700
1706
  readonly type: "integer";
1701
1707
  };
1702
- readonly map: {
1703
- readonly type: "single_link";
1704
- readonly target: "map";
1705
- };
1706
- readonly zone: {
1707
- readonly type: "single_link";
1708
- readonly target: "zone";
1709
- };
1710
1708
  };
1711
1709
  readonly narrative: {
1712
1710
  readonly story: {
@@ -1716,13 +1714,13 @@ declare const FIELD_SCHEMA: {
1716
1714
  readonly type: "text";
1717
1715
  };
1718
1716
  readonly start_date: {
1719
- readonly type: "text";
1717
+ readonly type: "number";
1720
1718
  };
1721
1719
  readonly end_date: {
1722
- readonly type: "text";
1720
+ readonly type: "number";
1723
1721
  };
1724
1722
  readonly order: {
1725
- readonly type: "text";
1723
+ readonly type: "number";
1726
1724
  };
1727
1725
  readonly parent_narrative: {
1728
1726
  readonly type: "single_link";
@@ -1822,29 +1820,15 @@ declare const FIELD_SCHEMA: {
1822
1820
  readonly type: "text";
1823
1821
  };
1824
1822
  readonly weight: {
1825
- readonly type: "text";
1823
+ readonly type: "number";
1826
1824
  };
1827
1825
  readonly amount: {
1828
- readonly type: "text";
1829
- };
1830
- readonly utility: {
1831
- readonly type: "text";
1832
- };
1833
- readonly origins: {
1834
- readonly type: "text";
1826
+ readonly type: "number";
1835
1827
  };
1836
1828
  readonly parent_object: {
1837
1829
  readonly type: "single_link";
1838
1830
  readonly target: "object";
1839
1831
  };
1840
- readonly location: {
1841
- readonly type: "single_link";
1842
- readonly target: "location";
1843
- };
1844
- readonly language: {
1845
- readonly type: "single_link";
1846
- readonly target: "language";
1847
- };
1848
1832
  readonly materials: {
1849
1833
  readonly type: "multi_link";
1850
1834
  readonly target: "construct";
@@ -1853,6 +1837,9 @@ declare const FIELD_SCHEMA: {
1853
1837
  readonly type: "multi_link";
1854
1838
  readonly target: "construct";
1855
1839
  };
1840
+ readonly utility: {
1841
+ readonly type: "text";
1842
+ };
1856
1843
  readonly effects: {
1857
1844
  readonly type: "multi_link";
1858
1845
  readonly target: "phenomenon";
@@ -1865,6 +1852,17 @@ declare const FIELD_SCHEMA: {
1865
1852
  readonly type: "multi_link";
1866
1853
  readonly target: "construct";
1867
1854
  };
1855
+ readonly origins: {
1856
+ readonly type: "text";
1857
+ };
1858
+ readonly location: {
1859
+ readonly type: "single_link";
1860
+ readonly target: "location";
1861
+ };
1862
+ readonly language: {
1863
+ readonly type: "single_link";
1864
+ readonly target: "language";
1865
+ };
1868
1866
  readonly affinities: {
1869
1867
  readonly type: "multi_link";
1870
1868
  readonly target: "trait";
@@ -1878,14 +1876,7 @@ declare const FIELD_SCHEMA: {
1878
1876
  readonly type: "text";
1879
1877
  };
1880
1878
  readonly duration: {
1881
- readonly type: "text";
1882
- };
1883
- readonly mythology: {
1884
- readonly type: "text";
1885
- };
1886
- readonly system: {
1887
- readonly type: "single_link";
1888
- readonly target: "phenomenon";
1879
+ readonly type: "number";
1889
1880
  };
1890
1881
  readonly catalysts: {
1891
1882
  readonly type: "multi_link";
@@ -1895,6 +1886,13 @@ declare const FIELD_SCHEMA: {
1895
1886
  readonly type: "multi_link";
1896
1887
  readonly target: "ability";
1897
1888
  };
1889
+ readonly mythology: {
1890
+ readonly type: "text";
1891
+ };
1892
+ readonly system: {
1893
+ readonly type: "single_link";
1894
+ readonly target: "phenomenon";
1895
+ };
1898
1896
  readonly triggers: {
1899
1897
  readonly type: "multi_link";
1900
1898
  readonly target: "construct";
@@ -1909,9 +1907,17 @@ declare const FIELD_SCHEMA: {
1909
1907
  };
1910
1908
  };
1911
1909
  readonly pin: {
1910
+ readonly map: {
1911
+ readonly type: "single_link";
1912
+ readonly target: "map";
1913
+ };
1912
1914
  readonly element_type: {
1913
1915
  readonly type: "text";
1914
1916
  };
1917
+ readonly element_id: {
1918
+ readonly type: "single_link";
1919
+ readonly target: "any";
1920
+ };
1915
1921
  readonly x: {
1916
1922
  readonly type: "integer";
1917
1923
  };
@@ -1921,32 +1927,28 @@ declare const FIELD_SCHEMA: {
1921
1927
  readonly z: {
1922
1928
  readonly type: "integer";
1923
1929
  };
1924
- readonly map: {
1925
- readonly type: "single_link";
1926
- readonly target: "map";
1927
- };
1928
- readonly element_id: {
1929
- readonly type: "single_link";
1930
- readonly target: "any";
1931
- };
1932
1930
  };
1933
1931
  readonly relation: {
1934
1932
  readonly background: {
1935
1933
  readonly type: "text";
1936
1934
  };
1937
1935
  readonly start_date: {
1938
- readonly type: "text";
1936
+ readonly type: "number";
1939
1937
  };
1940
1938
  readonly end_date: {
1941
- readonly type: "text";
1939
+ readonly type: "number";
1942
1940
  };
1943
1941
  readonly intensity: {
1944
- readonly type: "text";
1942
+ readonly type: "number";
1945
1943
  };
1946
1944
  readonly actor: {
1947
1945
  readonly type: "single_link";
1948
1946
  readonly target: "character";
1949
1947
  };
1948
+ readonly events: {
1949
+ readonly type: "multi_link";
1950
+ readonly target: "event";
1951
+ };
1950
1952
  readonly characters: {
1951
1953
  readonly type: "multi_link";
1952
1954
  readonly target: "character";
@@ -1999,6 +2001,10 @@ declare const FIELD_SCHEMA: {
1999
2001
  readonly type: "multi_link";
2000
2002
  readonly target: "family";
2001
2003
  };
2004
+ readonly relations: {
2005
+ readonly type: "multi_link";
2006
+ readonly target: "relation";
2007
+ };
2002
2008
  readonly titles: {
2003
2009
  readonly type: "multi_link";
2004
2010
  readonly target: "title";
@@ -2007,10 +2013,6 @@ declare const FIELD_SCHEMA: {
2007
2013
  readonly type: "multi_link";
2008
2014
  readonly target: "construct";
2009
2015
  };
2010
- readonly events: {
2011
- readonly type: "multi_link";
2012
- readonly target: "event";
2013
- };
2014
2016
  readonly narratives: {
2015
2017
  readonly type: "multi_link";
2016
2018
  readonly target: "narrative";
@@ -2021,10 +2023,22 @@ declare const FIELD_SCHEMA: {
2021
2023
  readonly type: "text";
2022
2024
  };
2023
2025
  readonly life_span: {
2024
- readonly type: "text";
2026
+ readonly type: "number";
2025
2027
  };
2026
2028
  readonly weight: {
2027
- readonly type: "text";
2029
+ readonly type: "number";
2030
+ };
2031
+ readonly nourishment: {
2032
+ readonly type: "multi_link";
2033
+ readonly target: "species";
2034
+ };
2035
+ readonly reproduction: {
2036
+ readonly type: "multi_link";
2037
+ readonly target: "construct";
2038
+ };
2039
+ readonly adaptations: {
2040
+ readonly type: "multi_link";
2041
+ readonly target: "ability";
2028
2042
  };
2029
2043
  readonly instincts: {
2030
2044
  readonly type: "text";
@@ -2039,7 +2053,11 @@ declare const FIELD_SCHEMA: {
2039
2053
  readonly type: "text";
2040
2054
  };
2041
2055
  readonly aggression: {
2042
- readonly type: "text";
2056
+ readonly type: "number";
2057
+ };
2058
+ readonly traits: {
2059
+ readonly type: "multi_link";
2060
+ readonly target: "trait";
2043
2061
  };
2044
2062
  readonly role: {
2045
2063
  readonly type: "text";
@@ -2048,22 +2066,6 @@ declare const FIELD_SCHEMA: {
2048
2066
  readonly type: "single_link";
2049
2067
  readonly target: "species";
2050
2068
  };
2051
- readonly nourishment: {
2052
- readonly type: "multi_link";
2053
- readonly target: "species";
2054
- };
2055
- readonly reproduction: {
2056
- readonly type: "multi_link";
2057
- readonly target: "construct";
2058
- };
2059
- readonly adaptations: {
2060
- readonly type: "multi_link";
2061
- readonly target: "ability";
2062
- };
2063
- readonly traits: {
2064
- readonly type: "multi_link";
2065
- readonly target: "trait";
2066
- };
2067
2069
  readonly locations: {
2068
2070
  readonly type: "multi_link";
2069
2071
  readonly target: "location";
@@ -2085,16 +2087,10 @@ declare const FIELD_SCHEMA: {
2085
2087
  readonly type: "text";
2086
2088
  };
2087
2089
  readonly grant_date: {
2088
- readonly type: "text";
2090
+ readonly type: "number";
2089
2091
  };
2090
2092
  readonly revoke_date: {
2091
- readonly type: "text";
2092
- };
2093
- readonly status: {
2094
- readonly type: "text";
2095
- };
2096
- readonly history: {
2097
- readonly type: "text";
2093
+ readonly type: "number";
2098
2094
  };
2099
2095
  readonly issuer: {
2100
2096
  readonly type: "single_link";
@@ -2116,6 +2112,12 @@ declare const FIELD_SCHEMA: {
2116
2112
  readonly type: "multi_link";
2117
2113
  readonly target: "object";
2118
2114
  };
2115
+ readonly status: {
2116
+ readonly type: "text";
2117
+ };
2118
+ readonly history: {
2119
+ readonly type: "text";
2120
+ };
2119
2121
  readonly characters: {
2120
2122
  readonly type: "multi_link";
2121
2123
  readonly target: "character";
@@ -2186,22 +2188,22 @@ declare const FIELD_SCHEMA: {
2186
2188
  readonly type: "text";
2187
2189
  };
2188
2190
  readonly charisma: {
2189
- readonly type: "text";
2191
+ readonly type: "number";
2190
2192
  };
2191
2193
  readonly coercion: {
2192
- readonly type: "text";
2194
+ readonly type: "number";
2193
2195
  };
2194
2196
  readonly competence: {
2195
- readonly type: "text";
2197
+ readonly type: "number";
2196
2198
  };
2197
2199
  readonly compassion: {
2198
- readonly type: "text";
2200
+ readonly type: "number";
2199
2201
  };
2200
2202
  readonly creativity: {
2201
- readonly type: "text";
2203
+ readonly type: "number";
2202
2204
  };
2203
2205
  readonly courage: {
2204
- readonly type: "text";
2206
+ readonly type: "number";
2205
2207
  };
2206
2208
  readonly significance: {
2207
2209
  readonly type: "text";
@@ -2220,13 +2222,10 @@ declare const FIELD_SCHEMA: {
2220
2222
  readonly type: "text";
2221
2223
  };
2222
2224
  readonly start_date: {
2223
- readonly type: "text";
2225
+ readonly type: "number";
2224
2226
  };
2225
2227
  readonly end_date: {
2226
- readonly type: "text";
2227
- };
2228
- readonly context: {
2229
- readonly type: "text";
2228
+ readonly type: "number";
2230
2229
  };
2231
2230
  readonly phenomena: {
2232
2231
  readonly type: "multi_link";
@@ -2236,6 +2235,9 @@ declare const FIELD_SCHEMA: {
2236
2235
  readonly type: "multi_link";
2237
2236
  readonly target: "zone";
2238
2237
  };
2238
+ readonly context: {
2239
+ readonly type: "text";
2240
+ };
2239
2241
  readonly populations: {
2240
2242
  readonly type: "multi_link";
2241
2243
  readonly target: "collective";
@@ -2250,20 +2252,6 @@ declare const FIELD_SCHEMA: {
2250
2252
  };
2251
2253
  };
2252
2254
  };
2253
- /**
2254
- * Legacy FIELD_MAPPINGS export for backward compatibility
2255
- * @deprecated Use FIELD_SCHEMA instead for comprehensive field metadata
2256
- */
2257
- declare const FIELD_MAPPINGS: {
2258
- [k: string]: {
2259
- [k: string]: any;
2260
- };
2261
- };
2262
- /**
2263
- * Type for the field mappings - enables type-safe access to relationship metadata
2264
- * @deprecated Use FIELD_SCHEMA instead
2265
- */
2266
- type FieldMappingsType = typeof FIELD_MAPPINGS;
2267
2255
  /**
2268
2256
  * Creates a typed element ID from a string
2269
2257
  * @param id The string ID to brand
@@ -2362,4 +2350,4 @@ declare class OnlyWorldsClient {
2362
2350
  static prepareInput<T extends Record<string, any>>(data: T): any;
2363
2351
  }
2364
2352
 
2365
- 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_ICONS, ELEMENT_LABELS, ELEMENT_MATERIAL_ICONS, ELEMENT_SECTIONS, ELEMENT_UNICODE_ICONS, 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 SectionInfo, type Species, type SpeciesInput, type Title, type TitleInput, type Trait, type TraitInput, type World, type WorldInput, type Zone, type ZoneInput, createAnyElementId, createElementId, createElementIds, getElementIcon, getElementLabel, getElementMaterialIcon, getElementSections, getElementUnicodeIcon };
2353
+ 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_ICONS, ELEMENT_LABELS, ELEMENT_SECTIONS, ELEMENT_UNICODE_ICONS, type ElementId, type ElementIds, ElementType, type Event, type EventInput, FIELD_SCHEMA, type Family, type FamilyInput, type FieldInfo, 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 SectionInfo, type Species, type SpeciesInput, type Title, type TitleInput, type Trait, type TraitInput, type World, type WorldInput, type Zone, type ZoneInput, createAnyElementId, createElementId, createElementIds, getElementIcon, getElementLabel, getElementSections, getElementUnicodeIcon };