attio 0.0.1-experimental.20240719 → 0.0.1-experimental.20240723.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.
Files changed (37) hide show
  1. package/lib/api/complete-bundle-upload.d.ts +2 -2
  2. package/lib/api/complete-bundle-upload.d.ts.map +1 -1
  3. package/lib/api/complete-bundle-upload.js +2 -2
  4. package/lib/api/complete-bundle-upload.js.map +1 -1
  5. package/lib/api/create-integration.d.ts +3 -3
  6. package/lib/api/create-integration.d.ts.map +1 -1
  7. package/lib/api/create-integration.js +11 -11
  8. package/lib/api/create-integration.js.map +1 -1
  9. package/lib/api/is-integration-slug-valid.d.ts +2 -2
  10. package/lib/api/is-integration-slug-valid.d.ts.map +1 -1
  11. package/lib/api/is-integration-slug-valid.js +4 -4
  12. package/lib/api/is-integration-slug-valid.js.map +1 -1
  13. package/lib/components/InitialInstructions.d.ts.map +1 -1
  14. package/lib/components/InitialInstructions.js +6 -2
  15. package/lib/components/InitialInstructions.js.map +1 -1
  16. package/lib/machines/build-machine.d.ts +11 -1060
  17. package/lib/machines/build-machine.d.ts.map +1 -1
  18. package/lib/machines/create-machine.d.ts +6 -162
  19. package/lib/machines/create-machine.d.ts.map +1 -1
  20. package/lib/machines/create-machine.js +7 -7
  21. package/lib/machines/create-machine.js.map +1 -1
  22. package/lib/machines/dev-machine.d.ts +16 -1154
  23. package/lib/machines/dev-machine.d.ts.map +1 -1
  24. package/lib/machines/dev-machine.js +1 -1
  25. package/lib/machines/dev-machine.js.map +1 -1
  26. package/lib/machines/js-machine.d.ts +3 -101
  27. package/lib/machines/js-machine.d.ts.map +1 -1
  28. package/lib/machines/ts-machine.d.ts +2 -70
  29. package/lib/machines/ts-machine.d.ts.map +1 -1
  30. package/lib/util/load-config.d.ts +1 -1
  31. package/lib/util/load-config.d.ts.map +1 -1
  32. package/lib/util/load-config.js +39 -17
  33. package/lib/util/load-config.js.map +1 -1
  34. package/lib/util/load-extension-config.d.ts.map +1 -1
  35. package/lib/util/load-extension-config.js +14 -3
  36. package/lib/util/load-extension-config.js.map +1 -1
  37. package/package.json +6 -4
@@ -666,7 +666,7 @@ export declare const devMachine: import("xstate").StateMachine<Context, {
666
666
  message: string;
667
667
  }, {
668
668
  write: boolean;
669
- }>;
669
+ }, import("xstate").EventObject>;
670
670
  id: string | undefined;
671
671
  };
672
672
  build: {
@@ -717,7 +717,7 @@ export declare const devMachine: import("xstate").StateMachine<Context, {
717
717
  }, {
718
718
  buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
719
719
  write: boolean;
720
- }>;
720
+ }, import("xstate").EventObject>;
721
721
  id: string | undefined;
722
722
  };
723
723
  }>, import("xstate").Values<{
@@ -814,1082 +814,7 @@ export declare const devMachine: import("xstate").StateMachine<Context, {
814
814
  }, string, {
815
815
  parentRef: import("./build-orchestrator.js").JavaScriptOrchestrator;
816
816
  write: boolean;
817
- }, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, {
818
- type: "Build Contexts Prepared";
819
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
820
- } | {
821
- type: "Change";
822
- } | {
823
- type: "Result";
824
- contents: [string, string];
825
- error?: undefined;
826
- time: Date;
827
- } | {
828
- type: "Result";
829
- contents?: undefined;
830
- error: {
831
- errors: {
832
- text: string;
833
- location: {
834
- length: number;
835
- column: number;
836
- file: string;
837
- line: number;
838
- lineText: string;
839
- namespace: string;
840
- suggestion: string;
841
- };
842
- }[];
843
- warnings: {
844
- text: string;
845
- location: {
846
- length: number;
847
- column: number;
848
- file: string;
849
- line: number;
850
- lineText: string;
851
- namespace: string;
852
- suggestion: string;
853
- };
854
- }[];
855
- };
856
- time: Date;
857
- } | {
858
- type: "Log";
859
- message: string;
860
- }, import("xstate").Values<{
861
- prepareBuildContext: {
862
- src: "prepareBuildContext";
863
- logic: import("xstate").CallbackActorLogic<{
864
- type: "Build Contexts Prepared";
865
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
866
- } | {
867
- type: "Change";
868
- } | {
869
- type: "Result";
870
- contents: [string, string];
871
- error?: undefined;
872
- time: Date;
873
- } | {
874
- type: "Result";
875
- contents?: undefined;
876
- error: {
877
- errors: {
878
- text: string;
879
- location: {
880
- length: number;
881
- column: number;
882
- file: string;
883
- line: number;
884
- lineText: string;
885
- namespace: string;
886
- suggestion: string;
887
- };
888
- }[];
889
- warnings: {
890
- text: string;
891
- location: {
892
- length: number;
893
- column: number;
894
- file: string;
895
- line: number;
896
- lineText: string;
897
- namespace: string;
898
- suggestion: string;
899
- };
900
- }[];
901
- };
902
- time: Date;
903
- } | {
904
- type: "Log";
905
- message: string;
906
- }, {
907
- write: boolean;
908
- }>;
909
- id: string | undefined;
910
- };
911
- build: {
912
- src: "build";
913
- logic: import("xstate").CallbackActorLogic<{
914
- type: "Build Contexts Prepared";
915
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
916
- } | {
917
- type: "Change";
918
- } | {
919
- type: "Result";
920
- contents: [string, string];
921
- error?: undefined;
922
- time: Date;
923
- } | {
924
- type: "Result";
925
- contents?: undefined;
926
- error: {
927
- errors: {
928
- text: string;
929
- location: {
930
- length: number;
931
- column: number;
932
- file: string;
933
- line: number;
934
- lineText: string;
935
- namespace: string;
936
- suggestion: string;
937
- };
938
- }[];
939
- warnings: {
940
- text: string;
941
- location: {
942
- length: number;
943
- column: number;
944
- file: string;
945
- line: number;
946
- lineText: string;
947
- namespace: string;
948
- suggestion: string;
949
- };
950
- }[];
951
- };
952
- time: Date;
953
- } | {
954
- type: "Log";
955
- message: string;
956
- }, {
957
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
958
- write: boolean;
959
- }>;
960
- id: string | undefined;
961
- };
962
- }>, import("xstate").Values<{
963
- clearError: {
964
- type: "clearError";
965
- params: import("xstate").NonReducibleUnknown;
966
- };
967
- raiseErrored: {
968
- type: "raiseErrored";
969
- params: import("xstate").NonReducibleUnknown;
970
- };
971
- raiseSuccess: {
972
- type: "raiseSuccess";
973
- params: {
974
- contents: [string, string];
975
- time: Date;
976
- };
977
- };
978
- setBuildContexts: {
979
- type: "setBuildContexts";
980
- params: {
981
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
982
- };
983
- };
984
- setError: {
985
- type: "setError";
986
- params: {
987
- error: {
988
- errors: {
989
- text: string;
990
- location: {
991
- length: number;
992
- column: number;
993
- file: string;
994
- line: number;
995
- lineText: string;
996
- namespace: string;
997
- suggestion: string;
998
- };
999
- }[];
1000
- warnings: {
1001
- text: string;
1002
- location: {
1003
- length: number;
1004
- column: number;
1005
- file: string;
1006
- line: number;
1007
- lineText: string;
1008
- namespace: string;
1009
- suggestion: string;
1010
- };
1011
- }[];
1012
- };
1013
- };
1014
- };
1015
- setTime: {
1016
- type: "setTime";
1017
- params: {
1018
- time: Date;
1019
- };
1020
- };
1021
- }>, {
1022
- type: "has errors";
1023
- params: {
1024
- error?: {
1025
- errors: {
1026
- text: string;
1027
- location: {
1028
- length: number;
1029
- column: number;
1030
- file: string;
1031
- line: number;
1032
- lineText: string;
1033
- namespace: string;
1034
- suggestion: string;
1035
- };
1036
- }[];
1037
- warnings: {
1038
- text: string;
1039
- location: {
1040
- length: number;
1041
- column: number;
1042
- file: string;
1043
- line: number;
1044
- lineText: string;
1045
- namespace: string;
1046
- suggestion: string;
1047
- };
1048
- }[];
1049
- } | undefined;
1050
- };
1051
- }, never, string, import("xstate").EventObject>>;
1052
- id: "javascript";
1053
- };
1054
- typescript: {
1055
- src: "typescript";
1056
- logic: import("xstate").StateMachine<import("./ts-machine.js").Context, {
1057
- type: "Change";
1058
- } | {
1059
- type: "Result";
1060
- errors?: {
1061
- text: string;
1062
- location?: {
1063
- file: string;
1064
- line: number;
1065
- lineText: string;
1066
- character: number;
1067
- } | undefined;
1068
- }[] | undefined;
1069
- time: Date;
1070
- }, {
1071
- [x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<import("xstate").NonReducibleUnknown>, import("xstate").EventObject, import("xstate").EventObject> | undefined;
1072
- }, {
1073
- src: "validate";
1074
- logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown>;
1075
- id: string | undefined;
1076
- }, import("xstate").Values<{
1077
- clearError: {
1078
- type: "clearError";
1079
- params: import("xstate").NonReducibleUnknown;
1080
- };
1081
- raiseErrored: {
1082
- type: "raiseErrored";
1083
- params: import("xstate").NonReducibleUnknown;
1084
- };
1085
- raiseSuccess: {
1086
- type: "raiseSuccess";
1087
- params: import("xstate").NonReducibleUnknown;
1088
- };
1089
- setTime: {
1090
- type: "setTime";
1091
- params: {
1092
- time: Date;
1093
- };
1094
- };
1095
- clearTime: {
1096
- type: "clearTime";
1097
- params: import("xstate").NonReducibleUnknown;
1098
- };
1099
- setErrors: {
1100
- type: "setErrors";
1101
- params: {
1102
- errors?: {
1103
- text: string;
1104
- location?: {
1105
- file: string;
1106
- line: number;
1107
- lineText: string;
1108
- character: number;
1109
- } | undefined;
1110
- }[] | undefined;
1111
- };
1112
- };
1113
- }>, {
1114
- type: "has errors";
1115
- params: {
1116
- errors?: {
1117
- text: string;
1118
- location?: {
1119
- file: string;
1120
- line: number;
1121
- lineText: string;
1122
- character: number;
1123
- } | undefined;
1124
- }[] | undefined;
1125
- };
1126
- }, never, "Success" | "Errored" | "Validating", string, {
1127
- parentRef: import("./build-orchestrator.js").TypeScriptOrchestrator;
1128
- }, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, {
1129
- type: "Change";
1130
- } | {
1131
- type: "Result";
1132
- errors?: {
1133
- text: string;
1134
- location?: {
1135
- file: string;
1136
- line: number;
1137
- lineText: string;
1138
- character: number;
1139
- } | undefined;
1140
- }[] | undefined;
1141
- time: Date;
1142
- }, {
1143
- src: "validate";
1144
- logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown>;
1145
- id: string | undefined;
1146
- }, import("xstate").Values<{
1147
- clearError: {
1148
- type: "clearError";
1149
- params: import("xstate").NonReducibleUnknown;
1150
- };
1151
- raiseErrored: {
1152
- type: "raiseErrored";
1153
- params: import("xstate").NonReducibleUnknown;
1154
- };
1155
- raiseSuccess: {
1156
- type: "raiseSuccess";
1157
- params: import("xstate").NonReducibleUnknown;
1158
- };
1159
- setTime: {
1160
- type: "setTime";
1161
- params: {
1162
- time: Date;
1163
- };
1164
- };
1165
- clearTime: {
1166
- type: "clearTime";
1167
- params: import("xstate").NonReducibleUnknown;
1168
- };
1169
- setErrors: {
1170
- type: "setErrors";
1171
- params: {
1172
- errors?: {
1173
- text: string;
1174
- location?: {
1175
- file: string;
1176
- line: number;
1177
- lineText: string;
1178
- character: number;
1179
- } | undefined;
1180
- }[] | undefined;
1181
- };
1182
- };
1183
- }>, {
1184
- type: "has errors";
1185
- params: {
1186
- errors?: {
1187
- text: string;
1188
- location?: {
1189
- file: string;
1190
- line: number;
1191
- lineText: string;
1192
- character: number;
1193
- } | undefined;
1194
- }[] | undefined;
1195
- };
1196
- }, never, string, import("xstate").EventObject>>;
1197
- id: "typescript";
1198
- };
1199
- loadConfig: {
1200
- src: "loadConfig";
1201
- logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown>;
1202
- id: string | undefined;
1203
- };
1204
- ping: {
1205
- src: "ping";
1206
- logic: import("xstate").CallbackActorLogic<any, Pick<Context, "config" | "devVersion">>;
1207
- id: string | undefined;
1208
- };
1209
- prepareUpload: {
1210
- src: "prepareUpload";
1211
- logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown>;
1212
- id: string | undefined;
1213
- };
1214
- upload: {
1215
- src: "upload";
1216
- logic: import("xstate").CallbackActorLogic<any, {
1217
- devVersion: IntegrationAndDevVersion;
1218
- config: InitialConfig;
1219
- contents: [string, string];
1220
- }>;
1221
- id: string | undefined;
1222
- };
1223
- watch: {
1224
- src: "watch";
1225
- logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown>;
1226
- id: string | undefined;
1227
- };
1228
- }>, import("xstate").Values<{
1229
- setSuccess: {
1230
- type: "setSuccess";
1231
- params: {
1232
- contents: [string, string];
1233
- time: Date;
1234
- };
1235
- };
1236
- setConfig: {
1237
- type: "setConfig";
1238
- params: {
1239
- config?: {
1240
- token: string;
1241
- developer_slug: string;
1242
- target_workspace_id: string;
1243
- } | undefined;
1244
- };
1245
- };
1246
- setConfigError: {
1247
- type: "setConfigError";
1248
- params: {
1249
- error: InitialConfigError;
1250
- };
1251
- };
1252
- clearUploadError: {
1253
- type: "clearUploadError";
1254
- params: import("xstate").NonReducibleUnknown;
1255
- };
1256
- sendChange: {
1257
- type: "sendChange";
1258
- params: import("xstate").NonReducibleUnknown;
1259
- };
1260
- setDevVersion: {
1261
- type: "setDevVersion";
1262
- params: {
1263
- devVersion: IntegrationAndDevVersion;
1264
- };
1265
- };
1266
- setLastPing: {
1267
- type: "setLastPing";
1268
- params: {
1269
- time: Date;
1270
- };
1271
- };
1272
- setUploadError: {
1273
- type: "setUploadError";
1274
- params: {
1275
- error: Error;
1276
- };
1277
- };
1278
- }>, {
1279
- type: "have dev version";
1280
- params: unknown;
1281
- }, never, "No Config" | "Read Config" | {
1282
- Watching?: Required<{
1283
- JavaScript?: "Watching" | "Building" | "Upload Error" | "Upload When Ready" | "Uploading" | undefined;
1284
- TypeScript?: "Watching" | "Validating" | undefined;
1285
- }> | undefined;
1286
- }, string, import("xstate").NonReducibleUnknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, {
1287
- type: "Change";
1288
- } | {
1289
- type: "JavaScript Error";
1290
- } | {
1291
- type: "JavaScript Success";
1292
- contents: [string, string];
1293
- time: Date;
1294
- } | {
1295
- type: "TypeScript Error";
1296
- } | {
1297
- type: "TypeScript Success";
1298
- } | {
1299
- type: "Error";
1300
- } | {
1301
- type: "Ping";
1302
- time: Date;
1303
- } | {
1304
- type: "Success";
1305
- } | {
1306
- type: "Upload Complete";
1307
- } | {
1308
- type: "Upload Error";
1309
- error: Error;
1310
- } | {
1311
- type: "Upload Prepared";
1312
- devVersion: IntegrationAndDevVersion;
1313
- } | {
1314
- type: "Initialized";
1315
- config?: {
1316
- token: string;
1317
- developer_slug: string;
1318
- target_workspace_id: string;
1319
- } | undefined;
1320
- } | {
1321
- type: "Initialization Error";
1322
- error: InitialConfigError;
1323
- }, import("xstate").Values<{
1324
- javascript: {
1325
- src: "javascript";
1326
- logic: import("xstate").StateMachine<import("./js-machine.js").Context, {
1327
- type: "Build Contexts Prepared";
1328
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1329
- } | {
1330
- type: "Change";
1331
- } | {
1332
- type: "Result";
1333
- contents: [string, string];
1334
- error?: undefined;
1335
- time: Date;
1336
- } | {
1337
- type: "Result";
1338
- contents?: undefined;
1339
- error: {
1340
- errors: {
1341
- text: string;
1342
- location: {
1343
- length: number;
1344
- column: number;
1345
- file: string;
1346
- line: number;
1347
- lineText: string;
1348
- namespace: string;
1349
- suggestion: string;
1350
- };
1351
- }[];
1352
- warnings: {
1353
- text: string;
1354
- location: {
1355
- length: number;
1356
- column: number;
1357
- file: string;
1358
- line: number;
1359
- lineText: string;
1360
- namespace: string;
1361
- suggestion: string;
1362
- };
1363
- }[];
1364
- };
1365
- time: Date;
1366
- } | {
1367
- type: "Log";
1368
- message: string;
1369
- }, {
1370
- [x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
1371
- write: boolean;
1372
- }>, {
1373
- type: "Build Contexts Prepared";
1374
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1375
- } | {
1376
- type: "Change";
1377
- } | {
1378
- type: "Result";
1379
- contents: [string, string];
1380
- error?: undefined;
1381
- time: Date;
1382
- } | {
1383
- type: "Result";
1384
- contents?: undefined;
1385
- error: {
1386
- errors: {
1387
- text: string;
1388
- location: {
1389
- length: number;
1390
- column: number;
1391
- file: string;
1392
- line: number;
1393
- lineText: string;
1394
- namespace: string;
1395
- suggestion: string;
1396
- };
1397
- }[];
1398
- warnings: {
1399
- text: string;
1400
- location: {
1401
- length: number;
1402
- column: number;
1403
- file: string;
1404
- line: number;
1405
- lineText: string;
1406
- namespace: string;
1407
- suggestion: string;
1408
- };
1409
- }[];
1410
- };
1411
- time: Date;
1412
- } | {
1413
- type: "Log";
1414
- message: string;
1415
- }, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
1416
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1417
- write: boolean;
1418
- }>, {
1419
- type: "Build Contexts Prepared";
1420
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1421
- } | {
1422
- type: "Change";
1423
- } | {
1424
- type: "Result";
1425
- contents: [string, string];
1426
- error?: undefined;
1427
- time: Date;
1428
- } | {
1429
- type: "Result";
1430
- contents?: undefined;
1431
- error: {
1432
- errors: {
1433
- text: string;
1434
- location: {
1435
- length: number;
1436
- column: number;
1437
- file: string;
1438
- line: number;
1439
- lineText: string;
1440
- namespace: string;
1441
- suggestion: string;
1442
- };
1443
- }[];
1444
- warnings: {
1445
- text: string;
1446
- location: {
1447
- length: number;
1448
- column: number;
1449
- file: string;
1450
- line: number;
1451
- lineText: string;
1452
- namespace: string;
1453
- suggestion: string;
1454
- };
1455
- }[];
1456
- };
1457
- time: Date;
1458
- } | {
1459
- type: "Log";
1460
- message: string;
1461
- }, import("xstate").EventObject> | undefined;
1462
- }, import("xstate").Values<{
1463
- prepareBuildContext: {
1464
- src: "prepareBuildContext";
1465
- logic: import("xstate").CallbackActorLogic<{
1466
- type: "Build Contexts Prepared";
1467
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1468
- } | {
1469
- type: "Change";
1470
- } | {
1471
- type: "Result";
1472
- contents: [string, string];
1473
- error?: undefined;
1474
- time: Date;
1475
- } | {
1476
- type: "Result";
1477
- contents?: undefined;
1478
- error: {
1479
- errors: {
1480
- text: string;
1481
- location: {
1482
- length: number;
1483
- column: number;
1484
- file: string;
1485
- line: number;
1486
- lineText: string;
1487
- namespace: string;
1488
- suggestion: string;
1489
- };
1490
- }[];
1491
- warnings: {
1492
- text: string;
1493
- location: {
1494
- length: number;
1495
- column: number;
1496
- file: string;
1497
- line: number;
1498
- lineText: string;
1499
- namespace: string;
1500
- suggestion: string;
1501
- };
1502
- }[];
1503
- };
1504
- time: Date;
1505
- } | {
1506
- type: "Log";
1507
- message: string;
1508
- }, {
1509
- write: boolean;
1510
- }>;
1511
- id: string | undefined;
1512
- };
1513
- build: {
1514
- src: "build";
1515
- logic: import("xstate").CallbackActorLogic<{
1516
- type: "Build Contexts Prepared";
1517
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1518
- } | {
1519
- type: "Change";
1520
- } | {
1521
- type: "Result";
1522
- contents: [string, string];
1523
- error?: undefined;
1524
- time: Date;
1525
- } | {
1526
- type: "Result";
1527
- contents?: undefined;
1528
- error: {
1529
- errors: {
1530
- text: string;
1531
- location: {
1532
- length: number;
1533
- column: number;
1534
- file: string;
1535
- line: number;
1536
- lineText: string;
1537
- namespace: string;
1538
- suggestion: string;
1539
- };
1540
- }[];
1541
- warnings: {
1542
- text: string;
1543
- location: {
1544
- length: number;
1545
- column: number;
1546
- file: string;
1547
- line: number;
1548
- lineText: string;
1549
- namespace: string;
1550
- suggestion: string;
1551
- };
1552
- }[];
1553
- };
1554
- time: Date;
1555
- } | {
1556
- type: "Log";
1557
- message: string;
1558
- }, {
1559
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1560
- write: boolean;
1561
- }>;
1562
- id: string | undefined;
1563
- };
1564
- }>, import("xstate").Values<{
1565
- clearError: {
1566
- type: "clearError";
1567
- params: import("xstate").NonReducibleUnknown;
1568
- };
1569
- raiseErrored: {
1570
- type: "raiseErrored";
1571
- params: import("xstate").NonReducibleUnknown;
1572
- };
1573
- raiseSuccess: {
1574
- type: "raiseSuccess";
1575
- params: {
1576
- contents: [string, string];
1577
- time: Date;
1578
- };
1579
- };
1580
- setBuildContexts: {
1581
- type: "setBuildContexts";
1582
- params: {
1583
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1584
- };
1585
- };
1586
- setError: {
1587
- type: "setError";
1588
- params: {
1589
- error: {
1590
- errors: {
1591
- text: string;
1592
- location: {
1593
- length: number;
1594
- column: number;
1595
- file: string;
1596
- line: number;
1597
- lineText: string;
1598
- namespace: string;
1599
- suggestion: string;
1600
- };
1601
- }[];
1602
- warnings: {
1603
- text: string;
1604
- location: {
1605
- length: number;
1606
- column: number;
1607
- file: string;
1608
- line: number;
1609
- lineText: string;
1610
- namespace: string;
1611
- suggestion: string;
1612
- };
1613
- }[];
1614
- };
1615
- };
1616
- };
1617
- setTime: {
1618
- type: "setTime";
1619
- params: {
1620
- time: Date;
1621
- };
1622
- };
1623
- }>, {
1624
- type: "has errors";
1625
- params: {
1626
- error?: {
1627
- errors: {
1628
- text: string;
1629
- location: {
1630
- length: number;
1631
- column: number;
1632
- file: string;
1633
- line: number;
1634
- lineText: string;
1635
- namespace: string;
1636
- suggestion: string;
1637
- };
1638
- }[];
1639
- warnings: {
1640
- text: string;
1641
- location: {
1642
- length: number;
1643
- column: number;
1644
- file: string;
1645
- line: number;
1646
- lineText: string;
1647
- namespace: string;
1648
- suggestion: string;
1649
- };
1650
- }[];
1651
- } | undefined;
1652
- };
1653
- }, never, "Preparing" | {
1654
- Watching?: "Success" | "Building" | "Errored" | undefined;
1655
- }, string, {
1656
- parentRef: import("./build-orchestrator.js").JavaScriptOrchestrator;
1657
- write: boolean;
1658
- }, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, {
1659
- type: "Build Contexts Prepared";
1660
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1661
- } | {
1662
- type: "Change";
1663
- } | {
1664
- type: "Result";
1665
- contents: [string, string];
1666
- error?: undefined;
1667
- time: Date;
1668
- } | {
1669
- type: "Result";
1670
- contents?: undefined;
1671
- error: {
1672
- errors: {
1673
- text: string;
1674
- location: {
1675
- length: number;
1676
- column: number;
1677
- file: string;
1678
- line: number;
1679
- lineText: string;
1680
- namespace: string;
1681
- suggestion: string;
1682
- };
1683
- }[];
1684
- warnings: {
1685
- text: string;
1686
- location: {
1687
- length: number;
1688
- column: number;
1689
- file: string;
1690
- line: number;
1691
- lineText: string;
1692
- namespace: string;
1693
- suggestion: string;
1694
- };
1695
- }[];
1696
- };
1697
- time: Date;
1698
- } | {
1699
- type: "Log";
1700
- message: string;
1701
- }, import("xstate").Values<{
1702
- prepareBuildContext: {
1703
- src: "prepareBuildContext";
1704
- logic: import("xstate").CallbackActorLogic<{
1705
- type: "Build Contexts Prepared";
1706
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1707
- } | {
1708
- type: "Change";
1709
- } | {
1710
- type: "Result";
1711
- contents: [string, string];
1712
- error?: undefined;
1713
- time: Date;
1714
- } | {
1715
- type: "Result";
1716
- contents?: undefined;
1717
- error: {
1718
- errors: {
1719
- text: string;
1720
- location: {
1721
- length: number;
1722
- column: number;
1723
- file: string;
1724
- line: number;
1725
- lineText: string;
1726
- namespace: string;
1727
- suggestion: string;
1728
- };
1729
- }[];
1730
- warnings: {
1731
- text: string;
1732
- location: {
1733
- length: number;
1734
- column: number;
1735
- file: string;
1736
- line: number;
1737
- lineText: string;
1738
- namespace: string;
1739
- suggestion: string;
1740
- };
1741
- }[];
1742
- };
1743
- time: Date;
1744
- } | {
1745
- type: "Log";
1746
- message: string;
1747
- }, {
1748
- write: boolean;
1749
- }>;
1750
- id: string | undefined;
1751
- };
1752
- build: {
1753
- src: "build";
1754
- logic: import("xstate").CallbackActorLogic<{
1755
- type: "Build Contexts Prepared";
1756
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1757
- } | {
1758
- type: "Change";
1759
- } | {
1760
- type: "Result";
1761
- contents: [string, string];
1762
- error?: undefined;
1763
- time: Date;
1764
- } | {
1765
- type: "Result";
1766
- contents?: undefined;
1767
- error: {
1768
- errors: {
1769
- text: string;
1770
- location: {
1771
- length: number;
1772
- column: number;
1773
- file: string;
1774
- line: number;
1775
- lineText: string;
1776
- namespace: string;
1777
- suggestion: string;
1778
- };
1779
- }[];
1780
- warnings: {
1781
- text: string;
1782
- location: {
1783
- length: number;
1784
- column: number;
1785
- file: string;
1786
- line: number;
1787
- lineText: string;
1788
- namespace: string;
1789
- suggestion: string;
1790
- };
1791
- }[];
1792
- };
1793
- time: Date;
1794
- } | {
1795
- type: "Log";
1796
- message: string;
1797
- }, {
1798
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1799
- write: boolean;
1800
- }>;
1801
- id: string | undefined;
1802
- };
1803
- }>, import("xstate").Values<{
1804
- clearError: {
1805
- type: "clearError";
1806
- params: import("xstate").NonReducibleUnknown;
1807
- };
1808
- raiseErrored: {
1809
- type: "raiseErrored";
1810
- params: import("xstate").NonReducibleUnknown;
1811
- };
1812
- raiseSuccess: {
1813
- type: "raiseSuccess";
1814
- params: {
1815
- contents: [string, string];
1816
- time: Date;
1817
- };
1818
- };
1819
- setBuildContexts: {
1820
- type: "setBuildContexts";
1821
- params: {
1822
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
1823
- };
1824
- };
1825
- setError: {
1826
- type: "setError";
1827
- params: {
1828
- error: {
1829
- errors: {
1830
- text: string;
1831
- location: {
1832
- length: number;
1833
- column: number;
1834
- file: string;
1835
- line: number;
1836
- lineText: string;
1837
- namespace: string;
1838
- suggestion: string;
1839
- };
1840
- }[];
1841
- warnings: {
1842
- text: string;
1843
- location: {
1844
- length: number;
1845
- column: number;
1846
- file: string;
1847
- line: number;
1848
- lineText: string;
1849
- namespace: string;
1850
- suggestion: string;
1851
- };
1852
- }[];
1853
- };
1854
- };
1855
- };
1856
- setTime: {
1857
- type: "setTime";
1858
- params: {
1859
- time: Date;
1860
- };
1861
- };
1862
- }>, {
1863
- type: "has errors";
1864
- params: {
1865
- error?: {
1866
- errors: {
1867
- text: string;
1868
- location: {
1869
- length: number;
1870
- column: number;
1871
- file: string;
1872
- line: number;
1873
- lineText: string;
1874
- namespace: string;
1875
- suggestion: string;
1876
- };
1877
- }[];
1878
- warnings: {
1879
- text: string;
1880
- location: {
1881
- length: number;
1882
- column: number;
1883
- file: string;
1884
- line: number;
1885
- lineText: string;
1886
- namespace: string;
1887
- suggestion: string;
1888
- };
1889
- }[];
1890
- } | undefined;
1891
- };
1892
- }, never, string, import("xstate").EventObject>>;
817
+ }, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject>;
1893
818
  id: "javascript";
1894
819
  };
1895
820
  typescript: {
@@ -1912,7 +837,7 @@ export declare const devMachine: import("xstate").StateMachine<Context, {
1912
837
  [x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<import("xstate").NonReducibleUnknown>, import("xstate").EventObject, import("xstate").EventObject> | undefined;
1913
838
  }, {
1914
839
  src: "validate";
1915
- logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown>;
840
+ logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1916
841
  id: string | undefined;
1917
842
  }, import("xstate").Values<{
1918
843
  clearError: {
@@ -1966,90 +891,22 @@ export declare const devMachine: import("xstate").StateMachine<Context, {
1966
891
  };
1967
892
  }, never, "Success" | "Errored" | "Validating", string, {
1968
893
  parentRef: import("./build-orchestrator.js").TypeScriptOrchestrator;
1969
- }, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, {
1970
- type: "Change";
1971
- } | {
1972
- type: "Result";
1973
- errors?: {
1974
- text: string;
1975
- location?: {
1976
- file: string;
1977
- line: number;
1978
- lineText: string;
1979
- character: number;
1980
- } | undefined;
1981
- }[] | undefined;
1982
- time: Date;
1983
- }, {
1984
- src: "validate";
1985
- logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown>;
1986
- id: string | undefined;
1987
- }, import("xstate").Values<{
1988
- clearError: {
1989
- type: "clearError";
1990
- params: import("xstate").NonReducibleUnknown;
1991
- };
1992
- raiseErrored: {
1993
- type: "raiseErrored";
1994
- params: import("xstate").NonReducibleUnknown;
1995
- };
1996
- raiseSuccess: {
1997
- type: "raiseSuccess";
1998
- params: import("xstate").NonReducibleUnknown;
1999
- };
2000
- setTime: {
2001
- type: "setTime";
2002
- params: {
2003
- time: Date;
2004
- };
2005
- };
2006
- clearTime: {
2007
- type: "clearTime";
2008
- params: import("xstate").NonReducibleUnknown;
2009
- };
2010
- setErrors: {
2011
- type: "setErrors";
2012
- params: {
2013
- errors?: {
2014
- text: string;
2015
- location?: {
2016
- file: string;
2017
- line: number;
2018
- lineText: string;
2019
- character: number;
2020
- } | undefined;
2021
- }[] | undefined;
2022
- };
2023
- };
2024
- }>, {
2025
- type: "has errors";
2026
- params: {
2027
- errors?: {
2028
- text: string;
2029
- location?: {
2030
- file: string;
2031
- line: number;
2032
- lineText: string;
2033
- character: number;
2034
- } | undefined;
2035
- }[] | undefined;
2036
- };
2037
- }, never, string, import("xstate").EventObject>>;
894
+ }, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject>;
2038
895
  id: "typescript";
2039
896
  };
2040
897
  loadConfig: {
2041
898
  src: "loadConfig";
2042
- logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown>;
899
+ logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
2043
900
  id: string | undefined;
2044
901
  };
2045
902
  ping: {
2046
903
  src: "ping";
2047
- logic: import("xstate").CallbackActorLogic<any, Pick<Context, "config" | "devVersion">>;
904
+ logic: import("xstate").CallbackActorLogic<any, Pick<Context, "config" | "devVersion">, import("xstate").EventObject>;
2048
905
  id: string | undefined;
2049
906
  };
2050
907
  prepareUpload: {
2051
908
  src: "prepareUpload";
2052
- logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown>;
909
+ logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
2053
910
  id: string | undefined;
2054
911
  };
2055
912
  upload: {
@@ -2058,12 +915,12 @@ export declare const devMachine: import("xstate").StateMachine<Context, {
2058
915
  devVersion: IntegrationAndDevVersion;
2059
916
  config: InitialConfig;
2060
917
  contents: [string, string];
2061
- }>;
918
+ }, import("xstate").EventObject>;
2062
919
  id: string | undefined;
2063
920
  };
2064
921
  watch: {
2065
922
  src: "watch";
2066
- logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown>;
923
+ logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
2067
924
  id: string | undefined;
2068
925
  };
2069
926
  }>, import("xstate").Values<{
@@ -2119,6 +976,11 @@ export declare const devMachine: import("xstate").StateMachine<Context, {
2119
976
  }>, {
2120
977
  type: "have dev version";
2121
978
  params: unknown;
2122
- }, never, string, import("xstate").EventObject>>;
979
+ }, never, "No Config" | "Read Config" | {
980
+ Watching?: Required<{
981
+ JavaScript?: "Watching" | "Building" | "Upload Error" | "Upload When Ready" | "Uploading" | undefined;
982
+ TypeScript?: "Watching" | "Validating" | undefined;
983
+ }> | undefined;
984
+ }, string, import("xstate").NonReducibleUnknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject>;
2123
985
  export {};
2124
986
  //# sourceMappingURL=dev-machine.d.ts.map