solid-logic 1.3.17-8a332867 → 1.3.17-a849582e

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 (115) hide show
  1. package/jest.config.js +1 -1
  2. package/lib/acl/aclLogic.d.ts +12 -30
  3. package/lib/acl/aclLogic.d.ts.map +1 -1
  4. package/lib/acl/aclLogic.js +151 -116
  5. package/lib/acl/aclLogic.js.map +1 -1
  6. package/lib/authn/SolidAuthnLogic.d.ts.map +1 -1
  7. package/lib/authn/SolidAuthnLogic.js +2 -2
  8. package/lib/authn/SolidAuthnLogic.js.map +1 -1
  9. package/lib/chat/chatLogic.d.ts +16 -0
  10. package/lib/chat/chatLogic.d.ts.map +1 -0
  11. package/lib/chat/{ChatLogic.js → chatLogic.js} +82 -87
  12. package/lib/chat/chatLogic.js.map +1 -0
  13. package/lib/discovery/discoveryLogic.d.ts +6 -9
  14. package/lib/discovery/discoveryLogic.d.ts.map +1 -1
  15. package/lib/discovery/discoveryLogic.js +95 -89
  16. package/lib/discovery/discoveryLogic.js.map +1 -1
  17. package/lib/inbox/inboxLogic.d.ts +7 -0
  18. package/lib/inbox/inboxLogic.d.ts.map +1 -0
  19. package/lib/inbox/{InboxLogic.js → inboxLogic.js} +58 -64
  20. package/lib/inbox/inboxLogic.js.map +1 -0
  21. package/lib/index.d.ts +10 -13
  22. package/lib/index.d.ts.map +1 -1
  23. package/lib/index.js +76 -44
  24. package/lib/index.js.map +1 -1
  25. package/lib/logic/CustomError.d.ts +4 -0
  26. package/lib/logic/CustomError.d.ts.map +1 -1
  27. package/lib/logic/CustomError.js +17 -1
  28. package/lib/logic/CustomError.js.map +1 -1
  29. package/lib/logic/solidLogicSingleton.d.ts +35 -3
  30. package/lib/logic/solidLogicSingleton.d.ts.map +1 -1
  31. package/lib/logic/solidLogicSingleton.js +87 -8
  32. package/lib/logic/solidLogicSingleton.js.map +1 -1
  33. package/lib/profile/profileLogic.d.ts +13 -0
  34. package/lib/profile/profileLogic.d.ts.map +1 -0
  35. package/lib/profile/profileLogic.js +268 -0
  36. package/lib/profile/profileLogic.js.map +1 -0
  37. package/lib/typeIndex/typeIndexLogic.d.ts +31 -21
  38. package/lib/typeIndex/typeIndexLogic.d.ts.map +1 -1
  39. package/lib/typeIndex/typeIndexLogic.js +650 -295
  40. package/lib/typeIndex/typeIndexLogic.js.map +1 -1
  41. package/lib/types.d.ts +17 -0
  42. package/lib/types.d.ts.map +1 -1
  43. package/lib/util/containerLogic.d.ts +11 -0
  44. package/lib/util/containerLogic.d.ts.map +1 -0
  45. package/lib/{profile/ProfileLogic.js → util/containerLogic.js} +53 -44
  46. package/lib/util/containerLogic.js.map +1 -0
  47. package/lib/util/utilityLogic.d.ts +15 -0
  48. package/lib/util/utilityLogic.d.ts.map +1 -0
  49. package/lib/util/utilityLogic.js +272 -0
  50. package/lib/util/utilityLogic.js.map +1 -0
  51. package/lib/util/utils.d.ts +8 -0
  52. package/lib/util/utils.d.ts.map +1 -0
  53. package/lib/util/utils.js +48 -0
  54. package/lib/util/utils.js.map +1 -0
  55. package/package.json +3 -1
  56. package/src/acl/aclLogic.ts +135 -119
  57. package/src/authn/SolidAuthnLogic.ts +3 -2
  58. package/src/chat/chatLogic.ts +225 -0
  59. package/src/discovery/discoveryLogic.ts +42 -85
  60. package/src/inbox/inboxLogic.ts +57 -0
  61. package/src/index.ts +71 -30
  62. package/src/logic/CustomError.ts +5 -1
  63. package/src/logic/solidLogicSingleton.ts +160 -7
  64. package/src/profile/profileLogic.ts +134 -0
  65. package/src/typeIndex/typeIndexLogic.ts +417 -153
  66. package/src/types.ts +7 -3
  67. package/src/util/containerLogic.ts +54 -0
  68. package/src/util/ns.js +5 -0
  69. package/src/util/utilityLogic.ts +155 -0
  70. package/src/util/utils.ts +52 -0
  71. package/test/aclLogic.test.ts +13 -4
  72. package/test/chatLogic.test.ts +70 -71
  73. package/test/container.test.ts +56 -0
  74. package/test/discoveryLogic.test.ts +503 -531
  75. package/test/helpers/dataSetup.ts +134 -0
  76. package/test/helpers/setup.ts +1 -0
  77. package/test/inboxLogic.test.ts +39 -38
  78. package/test/logic.test.ts +11 -9
  79. package/test/profileLogic.test.ts +246 -0
  80. package/test/typeIndexLogic.test.ts +49 -22
  81. package/test/typeIndexLogicPart2.test.ts +485 -0
  82. package/test/utilityLogic.test.ts +172 -126
  83. package/test/utils.test.ts +32 -0
  84. package/lib/chat/ChatLogic.d.ts +0 -26
  85. package/lib/chat/ChatLogic.d.ts.map +0 -1
  86. package/lib/chat/ChatLogic.js.map +0 -1
  87. package/lib/chat/determineChatContainer.d.ts +0 -3
  88. package/lib/chat/determineChatContainer.d.ts.map +0 -1
  89. package/lib/chat/determineChatContainer.js +0 -12
  90. package/lib/chat/determineChatContainer.js.map +0 -1
  91. package/lib/inbox/InboxLogic.d.ts +0 -18
  92. package/lib/inbox/InboxLogic.d.ts.map +0 -1
  93. package/lib/inbox/InboxLogic.js.map +0 -1
  94. package/lib/logic/SolidLogic.d.ts +0 -48
  95. package/lib/logic/SolidLogic.d.ts.map +0 -1
  96. package/lib/logic/SolidLogic.js +0 -321
  97. package/lib/logic/SolidLogic.js.map +0 -1
  98. package/lib/profile/ProfileLogic.d.ts +0 -13
  99. package/lib/profile/ProfileLogic.d.ts.map +0 -1
  100. package/lib/profile/ProfileLogic.js.map +0 -1
  101. package/lib/util/UtilityLogic.d.ts +0 -33
  102. package/lib/util/UtilityLogic.d.ts.map +0 -1
  103. package/lib/util/UtilityLogic.js +0 -240
  104. package/lib/util/UtilityLogic.js.map +0 -1
  105. package/lib/util/uri.d.ts +0 -3
  106. package/lib/util/uri.d.ts.map +0 -1
  107. package/lib/util/uri.js +0 -9
  108. package/lib/util/uri.js.map +0 -1
  109. package/src/chat/ChatLogic.ts +0 -244
  110. package/src/chat/determineChatContainer.ts +0 -14
  111. package/src/inbox/InboxLogic.ts +0 -66
  112. package/src/logic/SolidLogic.ts +0 -262
  113. package/src/profile/ProfileLogic.ts +0 -44
  114. package/src/util/UtilityLogic.ts +0 -161
  115. package/src/util/uri.ts +0 -5
package/lib/index.d.ts CHANGED
@@ -1,17 +1,14 @@
1
- declare const authn: import("./types").AuthnLogic;
2
- declare const authSession: import("@inrupt/solid-client-authn-browser").Session;
3
- declare const store: import("rdflib").LiveStore;
4
- declare const chat: import("./chat/ChatLogic").ChatLogic;
5
- declare const profile: import("./profile/ProfileLogic").ProfileLogic;
6
- export { setACLUserPublic, genACLText } from './acl/aclLogic';
7
- export { ensureTypeIndexes, loadTypeIndexes, registerInTypeIndex, loadIndex } from './typeIndex/typeIndexLogic';
8
- export { followOrCreateLink, getAppInstances, getScopedAppInstances, getScopedAppsFromIndex, loadAllTypeIndexes, loadCommunityTypeIndexes, loadOrCreateIfNotExists, loadPreferences, loadProfile, loadTypeIndexesFor, registerInstanceInTypeIndex, suggestPreferencesFile, suggestPrivateTypeIndex, suggestPublicTypeIndex, uniqueNodes } from './discovery/discoveryLogic';
9
- export { SolidLogic } from './logic/SolidLogic';
1
+ export { ACL_LINK } from './acl/aclLogic';
2
+ export { findAclDocUrl, setACLUserPublic, genACLText, } from './logic/solidLogicSingleton';
3
+ export { ensureTypeIndexes, loadTypeIndexes, registerInTypeIndex, loadIndex, ensureOneTypeIndex, putIndex, makeIndexIfNecessary, loadIndexes, getTypeIndex, getRegistrations, loadTypeIndexesFor, loadCommunityTypeIndexes, loadAllTypeIndexes, getScopedAppInstances, getAppInstances, suggestPublicTypeIndex, suggestPrivateTypeIndex, registerInstanceInTypeIndex, deleteTypeIndexRegistration, getScopedAppsFromIndex } from './logic/solidLogicSingleton';
4
+ export { setAcl, addToPrivateTypeIndex, findChat, createChatThing, getChat, sendInvite, mintNew } from './logic/solidLogicSingleton';
10
5
  export { offlineTestID, appContext } from './authn/authUtil';
11
- export { ACL_LINK } from './util/UtilityLogic';
6
+ export { createInboxFor, getNewMessages, markAsRead } from './logic/solidLogicSingleton';
7
+ export { recursiveDelete, setSinglePeerAccess, createEmptyRdfDoc, followOrCreateLink, loadOrCreateIfNotExists, } from './logic/solidLogicSingleton';
8
+ export { ensureLoadedPreferences, loadMe, getPodRoot, getMainInbox, findStorage, loadPreferences, loadProfile, silencedLoadPreferences } from './logic/solidLogicSingleton';
12
9
  export { getSuggestedIssuers } from './issuer/issuerLogic';
10
+ export { isContainer, createContainer, getContainerElements, getContainerMembers } from './logic/solidLogicSingleton';
11
+ export { authn, authSession, store } from './logic/solidLogicSingleton';
13
12
  export { AppDetails, SolidNamespace, AuthenticationContext } from './types';
14
- export { solidLogicSingleton } from './logic/solidLogicSingleton';
15
- export { UnauthorizedError, CrossOriginForbiddenError, SameOriginForbiddenError, NotFoundError, FetchError } from './logic/CustomError';
16
- export { authn, authSession, store, chat, profile };
13
+ export { UnauthorizedError, CrossOriginForbiddenError, SameOriginForbiddenError, NotFoundError, FetchError, NotEditableError, WebOperationError } from './logic/CustomError';
17
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,KAAK,8BAA4B,CAAA;AACvC,QAAA,MAAM,WAAW,sDAAwC,CAAA;AACzD,QAAA,MAAM,KAAK,4BAA4B,CAAA;AAEvC,QAAA,MAAM,IAAI,sCAA2B,CAAA;AACrC,QAAA,MAAM,OAAO,+CAA8B,CAAA;AAE3C,OAAO,EACL,gBAAgB,EAChB,UAAU,EACX,MAAM,gBAAgB,CAAA;AAEvB,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,SAAS,EACV,MAAM,4BAA4B,CAAA;AAInC,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAClB,wBAAwB,EACxB,uBAAuB,EACvB,eAAe,EACf,WAAW,EACX,kBAAkB,EAClB,2BAA2B,EAC3B,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,EACtB,WAAW,EACZ,MAAM,4BAA4B,C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;AAC5D,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AACxF,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EAEjB,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EACL,uBAAuB,EACvB,MAAM,EACN,UAAU,EACV,YAAY,EACZ,WAAW,EAEX,eAAe,EACf,WAAW,EAEX,uBAAuB,EACxB,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE1D,OAAO,EACH,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACtB,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAA;AAGvE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAG3E,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,aAAa,EAAE,UAAU,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA"}
package/lib/index.js CHANGED
@@ -1,61 +1,93 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.profile = exports.chat = exports.store = exports.authSession = exports.authn = exports.FetchError = exports.NotFoundError = exports.SameOriginForbiddenError = exports.CrossOriginForbiddenError = exports.UnauthorizedError = exports.solidLogicSingleton = exports.getSuggestedIssuers = exports.ACL_LINK = exports.appContext = exports.offlineTestID = exports.SolidLogic = exports.uniqueNodes = exports.suggestPublicTypeIndex = exports.suggestPrivateTypeIndex = exports.suggestPreferencesFile = exports.registerInstanceInTypeIndex = exports.loadTypeIndexesFor = exports.loadProfile = exports.loadPreferences = exports.loadOrCreateIfNotExists = exports.loadCommunityTypeIndexes = exports.loadAllTypeIndexes = exports.getScopedAppsFromIndex = exports.getScopedAppInstances = exports.getAppInstances = exports.followOrCreateLink = exports.loadIndex = exports.registerInTypeIndex = exports.loadTypeIndexes = exports.ensureTypeIndexes = exports.genACLText = exports.setACLUserPublic = void 0;
4
2
  // Make these variables directly accessible as it is what you need most of the time
5
3
  // This also makes these variable globaly accesible in mashlib
6
- var solidLogicSingleton_1 = require("./logic/solidLogicSingleton");
7
- var authn = solidLogicSingleton_1.solidLogicSingleton.authn;
8
- exports.authn = authn;
9
- var authSession = solidLogicSingleton_1.solidLogicSingleton.authn.authSession;
10
- exports.authSession = authSession;
11
- var store = solidLogicSingleton_1.solidLogicSingleton.store;
12
- exports.store = store;
13
- var chat = solidLogicSingleton_1.solidLogicSingleton.chat;
14
- exports.chat = chat;
15
- var profile = solidLogicSingleton_1.solidLogicSingleton.profile;
16
- exports.profile = profile;
4
+ //import { solidLogicSingleton } from './logic/solidLogicSingleton'
5
+ //const authn = solidLogicSingleton.authn
6
+ //const authSession = solidLogicSingleton.authn.authSession
7
+ //const store = solidLogicSingleton.store
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.getSuggestedIssuers = exports.silencedLoadPreferences = exports.loadProfile = exports.loadPreferences = exports.findStorage = exports.getMainInbox = exports.getPodRoot = exports.loadMe = exports.ensureLoadedPreferences = exports.loadOrCreateIfNotExists = exports.followOrCreateLink = exports.createEmptyRdfDoc = exports.setSinglePeerAccess = exports.recursiveDelete = exports.markAsRead = exports.getNewMessages = exports.createInboxFor = exports.appContext = exports.offlineTestID = exports.mintNew = exports.sendInvite = exports.getChat = exports.createChatThing = exports.findChat = exports.addToPrivateTypeIndex = exports.setAcl = exports.getScopedAppsFromIndex = exports.deleteTypeIndexRegistration = exports.registerInstanceInTypeIndex = exports.suggestPrivateTypeIndex = exports.suggestPublicTypeIndex = exports.getAppInstances = exports.getScopedAppInstances = exports.loadAllTypeIndexes = exports.loadCommunityTypeIndexes = exports.loadTypeIndexesFor = exports.getRegistrations = exports.getTypeIndex = exports.loadIndexes = exports.makeIndexIfNecessary = exports.putIndex = exports.ensureOneTypeIndex = exports.loadIndex = exports.registerInTypeIndex = exports.loadTypeIndexes = exports.ensureTypeIndexes = exports.genACLText = exports.setACLUserPublic = exports.findAclDocUrl = exports.ACL_LINK = void 0;
10
+ exports.WebOperationError = exports.NotEditableError = exports.FetchError = exports.NotFoundError = exports.SameOriginForbiddenError = exports.CrossOriginForbiddenError = exports.UnauthorizedError = exports.store = exports.authSession = exports.authn = exports.getContainerMembers = exports.getContainerElements = exports.createContainer = exports.isContainer = void 0;
17
11
  var aclLogic_1 = require("./acl/aclLogic");
18
- Object.defineProperty(exports, "setACLUserPublic", { enumerable: true, get: function () { return aclLogic_1.setACLUserPublic; } });
19
- Object.defineProperty(exports, "genACLText", { enumerable: true, get: function () { return aclLogic_1.genACLText; } });
20
- var typeIndexLogic_1 = require("./typeIndex/typeIndexLogic");
21
- Object.defineProperty(exports, "ensureTypeIndexes", { enumerable: true, get: function () { return typeIndexLogic_1.ensureTypeIndexes; } });
22
- Object.defineProperty(exports, "loadTypeIndexes", { enumerable: true, get: function () { return typeIndexLogic_1.loadTypeIndexes; } });
23
- Object.defineProperty(exports, "registerInTypeIndex", { enumerable: true, get: function () { return typeIndexLogic_1.registerInTypeIndex; } });
24
- Object.defineProperty(exports, "loadIndex", { enumerable: true, get: function () { return typeIndexLogic_1.loadIndex; } });
25
- // Generate by
26
- // grep export src/discovery/discoveryLogic.ts | sed -e 's/export //g' | sed -e 's/async //g'| sed -e 's/function //g' | sed -e 's/ .*/,/g' | sort
27
- var discoveryLogic_1 = require("./discovery/discoveryLogic");
28
- Object.defineProperty(exports, "followOrCreateLink", { enumerable: true, get: function () { return discoveryLogic_1.followOrCreateLink; } });
29
- Object.defineProperty(exports, "getAppInstances", { enumerable: true, get: function () { return discoveryLogic_1.getAppInstances; } });
30
- Object.defineProperty(exports, "getScopedAppInstances", { enumerable: true, get: function () { return discoveryLogic_1.getScopedAppInstances; } });
31
- Object.defineProperty(exports, "getScopedAppsFromIndex", { enumerable: true, get: function () { return discoveryLogic_1.getScopedAppsFromIndex; } });
32
- Object.defineProperty(exports, "loadAllTypeIndexes", { enumerable: true, get: function () { return discoveryLogic_1.loadAllTypeIndexes; } });
33
- Object.defineProperty(exports, "loadCommunityTypeIndexes", { enumerable: true, get: function () { return discoveryLogic_1.loadCommunityTypeIndexes; } });
34
- Object.defineProperty(exports, "loadOrCreateIfNotExists", { enumerable: true, get: function () { return discoveryLogic_1.loadOrCreateIfNotExists; } });
35
- Object.defineProperty(exports, "loadPreferences", { enumerable: true, get: function () { return discoveryLogic_1.loadPreferences; } });
36
- Object.defineProperty(exports, "loadProfile", { enumerable: true, get: function () { return discoveryLogic_1.loadProfile; } });
37
- Object.defineProperty(exports, "loadTypeIndexesFor", { enumerable: true, get: function () { return discoveryLogic_1.loadTypeIndexesFor; } });
38
- Object.defineProperty(exports, "registerInstanceInTypeIndex", { enumerable: true, get: function () { return discoveryLogic_1.registerInstanceInTypeIndex; } });
39
- Object.defineProperty(exports, "suggestPreferencesFile", { enumerable: true, get: function () { return discoveryLogic_1.suggestPreferencesFile; } });
40
- Object.defineProperty(exports, "suggestPrivateTypeIndex", { enumerable: true, get: function () { return discoveryLogic_1.suggestPrivateTypeIndex; } });
41
- Object.defineProperty(exports, "suggestPublicTypeIndex", { enumerable: true, get: function () { return discoveryLogic_1.suggestPublicTypeIndex; } });
42
- Object.defineProperty(exports, "uniqueNodes", { enumerable: true, get: function () { return discoveryLogic_1.uniqueNodes; } });
43
- var SolidLogic_1 = require("./logic/SolidLogic");
44
- Object.defineProperty(exports, "SolidLogic", { enumerable: true, get: function () { return SolidLogic_1.SolidLogic; } });
12
+ Object.defineProperty(exports, "ACL_LINK", { enumerable: true, get: function () { return aclLogic_1.ACL_LINK; } });
13
+ var solidLogicSingleton_1 = require("./logic/solidLogicSingleton");
14
+ Object.defineProperty(exports, "findAclDocUrl", { enumerable: true, get: function () { return solidLogicSingleton_1.findAclDocUrl; } });
15
+ Object.defineProperty(exports, "setACLUserPublic", { enumerable: true, get: function () { return solidLogicSingleton_1.setACLUserPublic; } });
16
+ Object.defineProperty(exports, "genACLText", { enumerable: true, get: function () { return solidLogicSingleton_1.genACLText; } });
17
+ var solidLogicSingleton_2 = require("./logic/solidLogicSingleton");
18
+ Object.defineProperty(exports, "ensureTypeIndexes", { enumerable: true, get: function () { return solidLogicSingleton_2.ensureTypeIndexes; } });
19
+ Object.defineProperty(exports, "loadTypeIndexes", { enumerable: true, get: function () { return solidLogicSingleton_2.loadTypeIndexes; } });
20
+ Object.defineProperty(exports, "registerInTypeIndex", { enumerable: true, get: function () { return solidLogicSingleton_2.registerInTypeIndex; } });
21
+ Object.defineProperty(exports, "loadIndex", { enumerable: true, get: function () { return solidLogicSingleton_2.loadIndex; } });
22
+ Object.defineProperty(exports, "ensureOneTypeIndex", { enumerable: true, get: function () { return solidLogicSingleton_2.ensureOneTypeIndex; } });
23
+ Object.defineProperty(exports, "putIndex", { enumerable: true, get: function () { return solidLogicSingleton_2.putIndex; } });
24
+ Object.defineProperty(exports, "makeIndexIfNecessary", { enumerable: true, get: function () { return solidLogicSingleton_2.makeIndexIfNecessary; } });
25
+ Object.defineProperty(exports, "loadIndexes", { enumerable: true, get: function () { return solidLogicSingleton_2.loadIndexes; } });
26
+ Object.defineProperty(exports, "getTypeIndex", { enumerable: true, get: function () { return solidLogicSingleton_2.getTypeIndex; } });
27
+ Object.defineProperty(exports, "getRegistrations", { enumerable: true, get: function () { return solidLogicSingleton_2.getRegistrations; } });
28
+ //NEW function for discovery
29
+ Object.defineProperty(exports, "loadTypeIndexesFor", { enumerable: true, get: function () { return solidLogicSingleton_2.loadTypeIndexesFor; } });
30
+ Object.defineProperty(exports, "loadCommunityTypeIndexes", { enumerable: true, get: function () { return solidLogicSingleton_2.loadCommunityTypeIndexes; } });
31
+ Object.defineProperty(exports, "loadAllTypeIndexes", { enumerable: true, get: function () { return solidLogicSingleton_2.loadAllTypeIndexes; } });
32
+ Object.defineProperty(exports, "getScopedAppInstances", { enumerable: true, get: function () { return solidLogicSingleton_2.getScopedAppInstances; } });
33
+ Object.defineProperty(exports, "getAppInstances", { enumerable: true, get: function () { return solidLogicSingleton_2.getAppInstances; } });
34
+ Object.defineProperty(exports, "suggestPublicTypeIndex", { enumerable: true, get: function () { return solidLogicSingleton_2.suggestPublicTypeIndex; } });
35
+ Object.defineProperty(exports, "suggestPrivateTypeIndex", { enumerable: true, get: function () { return solidLogicSingleton_2.suggestPrivateTypeIndex; } });
36
+ Object.defineProperty(exports, "registerInstanceInTypeIndex", { enumerable: true, get: function () { return solidLogicSingleton_2.registerInstanceInTypeIndex; } });
37
+ Object.defineProperty(exports, "deleteTypeIndexRegistration", { enumerable: true, get: function () { return solidLogicSingleton_2.deleteTypeIndexRegistration; } });
38
+ Object.defineProperty(exports, "getScopedAppsFromIndex", { enumerable: true, get: function () { return solidLogicSingleton_2.getScopedAppsFromIndex; } });
39
+ var solidLogicSingleton_3 = require("./logic/solidLogicSingleton");
40
+ Object.defineProperty(exports, "setAcl", { enumerable: true, get: function () { return solidLogicSingleton_3.setAcl; } });
41
+ Object.defineProperty(exports, "addToPrivateTypeIndex", { enumerable: true, get: function () { return solidLogicSingleton_3.addToPrivateTypeIndex; } });
42
+ Object.defineProperty(exports, "findChat", { enumerable: true, get: function () { return solidLogicSingleton_3.findChat; } });
43
+ Object.defineProperty(exports, "createChatThing", { enumerable: true, get: function () { return solidLogicSingleton_3.createChatThing; } });
44
+ Object.defineProperty(exports, "getChat", { enumerable: true, get: function () { return solidLogicSingleton_3.getChat; } });
45
+ Object.defineProperty(exports, "sendInvite", { enumerable: true, get: function () { return solidLogicSingleton_3.sendInvite; } });
46
+ Object.defineProperty(exports, "mintNew", { enumerable: true, get: function () { return solidLogicSingleton_3.mintNew; } });
45
47
  var authUtil_1 = require("./authn/authUtil");
46
48
  Object.defineProperty(exports, "offlineTestID", { enumerable: true, get: function () { return authUtil_1.offlineTestID; } });
47
49
  Object.defineProperty(exports, "appContext", { enumerable: true, get: function () { return authUtil_1.appContext; } });
48
- var UtilityLogic_1 = require("./util/UtilityLogic");
49
- Object.defineProperty(exports, "ACL_LINK", { enumerable: true, get: function () { return UtilityLogic_1.ACL_LINK; } });
50
+ var solidLogicSingleton_4 = require("./logic/solidLogicSingleton");
51
+ Object.defineProperty(exports, "createInboxFor", { enumerable: true, get: function () { return solidLogicSingleton_4.createInboxFor; } });
52
+ Object.defineProperty(exports, "getNewMessages", { enumerable: true, get: function () { return solidLogicSingleton_4.getNewMessages; } });
53
+ Object.defineProperty(exports, "markAsRead", { enumerable: true, get: function () { return solidLogicSingleton_4.markAsRead; } });
54
+ var solidLogicSingleton_5 = require("./logic/solidLogicSingleton");
55
+ Object.defineProperty(exports, "recursiveDelete", { enumerable: true, get: function () { return solidLogicSingleton_5.recursiveDelete; } });
56
+ Object.defineProperty(exports, "setSinglePeerAccess", { enumerable: true, get: function () { return solidLogicSingleton_5.setSinglePeerAccess; } });
57
+ Object.defineProperty(exports, "createEmptyRdfDoc", { enumerable: true, get: function () { return solidLogicSingleton_5.createEmptyRdfDoc; } });
58
+ //NEW function for discovery
59
+ Object.defineProperty(exports, "followOrCreateLink", { enumerable: true, get: function () { return solidLogicSingleton_5.followOrCreateLink; } });
60
+ Object.defineProperty(exports, "loadOrCreateIfNotExists", { enumerable: true, get: function () { return solidLogicSingleton_5.loadOrCreateIfNotExists; } });
61
+ var solidLogicSingleton_6 = require("./logic/solidLogicSingleton");
62
+ Object.defineProperty(exports, "ensureLoadedPreferences", { enumerable: true, get: function () { return solidLogicSingleton_6.ensureLoadedPreferences; } });
63
+ Object.defineProperty(exports, "loadMe", { enumerable: true, get: function () { return solidLogicSingleton_6.loadMe; } });
64
+ Object.defineProperty(exports, "getPodRoot", { enumerable: true, get: function () { return solidLogicSingleton_6.getPodRoot; } });
65
+ Object.defineProperty(exports, "getMainInbox", { enumerable: true, get: function () { return solidLogicSingleton_6.getMainInbox; } });
66
+ Object.defineProperty(exports, "findStorage", { enumerable: true, get: function () { return solidLogicSingleton_6.findStorage; } });
67
+ //NEW content from discovery
68
+ Object.defineProperty(exports, "loadPreferences", { enumerable: true, get: function () { return solidLogicSingleton_6.loadPreferences; } });
69
+ Object.defineProperty(exports, "loadProfile", { enumerable: true, get: function () { return solidLogicSingleton_6.loadProfile; } });
70
+ //NEW function for discovery
71
+ Object.defineProperty(exports, "silencedLoadPreferences", { enumerable: true, get: function () { return solidLogicSingleton_6.silencedLoadPreferences; } });
50
72
  var issuerLogic_1 = require("./issuer/issuerLogic");
51
73
  Object.defineProperty(exports, "getSuggestedIssuers", { enumerable: true, get: function () { return issuerLogic_1.getSuggestedIssuers; } });
74
+ var solidLogicSingleton_7 = require("./logic/solidLogicSingleton");
75
+ Object.defineProperty(exports, "isContainer", { enumerable: true, get: function () { return solidLogicSingleton_7.isContainer; } });
76
+ Object.defineProperty(exports, "createContainer", { enumerable: true, get: function () { return solidLogicSingleton_7.createContainer; } });
77
+ Object.defineProperty(exports, "getContainerElements", { enumerable: true, get: function () { return solidLogicSingleton_7.getContainerElements; } });
78
+ Object.defineProperty(exports, "getContainerMembers", { enumerable: true, get: function () { return solidLogicSingleton_7.getContainerMembers; } });
79
+ var solidLogicSingleton_8 = require("./logic/solidLogicSingleton");
80
+ Object.defineProperty(exports, "authn", { enumerable: true, get: function () { return solidLogicSingleton_8.authn; } });
81
+ Object.defineProperty(exports, "authSession", { enumerable: true, get: function () { return solidLogicSingleton_8.authSession; } });
82
+ Object.defineProperty(exports, "store", { enumerable: true, get: function () { return solidLogicSingleton_8.store; } });
52
83
  // solidLogicSingleton is exported entirely because it is used in solid-panes
53
- var solidLogicSingleton_2 = require("./logic/solidLogicSingleton");
54
- Object.defineProperty(exports, "solidLogicSingleton", { enumerable: true, get: function () { return solidLogicSingleton_2.solidLogicSingleton; } });
84
+ //export { solidLogicSingleton } from './logic/solidLogicSingleton'
55
85
  var CustomError_1 = require("./logic/CustomError");
56
86
  Object.defineProperty(exports, "UnauthorizedError", { enumerable: true, get: function () { return CustomError_1.UnauthorizedError; } });
57
87
  Object.defineProperty(exports, "CrossOriginForbiddenError", { enumerable: true, get: function () { return CustomError_1.CrossOriginForbiddenError; } });
58
88
  Object.defineProperty(exports, "SameOriginForbiddenError", { enumerable: true, get: function () { return CustomError_1.SameOriginForbiddenError; } });
59
89
  Object.defineProperty(exports, "NotFoundError", { enumerable: true, get: function () { return CustomError_1.NotFoundError; } });
60
90
  Object.defineProperty(exports, "FetchError", { enumerable: true, get: function () { return CustomError_1.FetchError; } });
91
+ Object.defineProperty(exports, "NotEditableError", { enumerable: true, get: function () { return CustomError_1.NotEditableError; } });
92
+ Object.defineProperty(exports, "WebOperationError", { enumerable: true, get: function () { return CustomError_1.WebOperationError; } });
61
93
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mFAAmF;AACnF,8DAA8D;AAC9D,mEAAiE;AACjE,IAAM,KAAK,GAAG,yCAAmB,CAAC,KAAK,CAAA;AA+C9B,sBAAK;AA9Cd,IAAM,WAAW,GAAG,yCAAmB,CAAC,KAAK,CAAC,WAAW,CAAA;AA8CzC,kCAAW;AA7C3B,IAAM,KAAK,GAAG,yCAAmB,CAAC,KAAK,CAAA;AA6CV,sBAAK;AA3ClC,IAAM,IAAI,GAAG,yCAAmB,CAAC,IAAI,CAAA;AA2CD,oBAAI;AA1CxC,IAAM,OAAO,GAAG,yCAAmB,CAAC,OAAO,CAAA;AA0CD,0BAAO;AAxCjD,2CAGuB;AAFrB,4GAAA,gBAAgB,OAAA;AAChB,sGAAA,UAAU,OAAA;AAGZ,6DAKmC;AAJjC,mHAAA,iBAAiB,OAAA;AACjB,iHAAA,eAAe,OAAA;AACf,qHAAA,mBAAmB,OAAA;AACnB,2GAAA,SAAS,OAAA;AAGX,cAAc;AACd,oJAAoJ;AACpJ,6DAgBmC;AAfjC,oHAAA,kBAAkB,OA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;AAJhC,kHAAA,WAAW,OAAA;AACX,sHAAA,eAAe,OAAA;AACf,2HAAA,oBAAoB,OAAA;AACpB,0HAAA,mBAAmB,OAAA;AAGvB,mEAAuE;AAA9D,4GAAA,KAAK,OAAA;AAAE,kHAAA,WAAW,OAAA;AAAE,4GAAA,KAAK,OAAA;AAIlC,6EAA6E;AAC7E,mEAAmE;AACnE,mDAA4K;AAAnK,gHAAA,iBAAiB,OAAA;AAAE,wHAAA,yBAAyB,OAAA;AAAE,uHAAA,wBAAwB,OAAA;AAAE,4GAAA,aAAa,OAAA;AAAE,yGAAA,UAAU,OAAA;AAAE,+GAAA,gBAAgB,OAAA;AAAE,gHAAA,iBAAiB,OAAA"}
@@ -9,6 +9,10 @@ export declare class SameOriginForbiddenError extends CustomError {
9
9
  }
10
10
  export declare class NotFoundError extends CustomError {
11
11
  }
12
+ export declare class NotEditableError extends CustomError {
13
+ }
14
+ export declare class WebOperationError extends CustomError {
15
+ }
12
16
  export declare class FetchError extends CustomError {
13
17
  status: number;
14
18
  constructor(status: number, message?: string);
@@ -1 +1 @@
1
- {"version":3,"file":"CustomError.d.ts","sourceRoot":"","sources":["../../src/logic/CustomError.ts"],"names":[],"mappings":"AAAA,cAAM,WAAY,SAAQ,KAAK;gBACf,OAAO,CAAC,EAAE,MAAM;CAM/B;AAED,qBAAa,iBAAkB,SAAQ,WAAW;CAAG;AAErD,qBAAa,yBAA0B,SAAQ,WAAW;CAAG;AAE7D,qBAAa,wBAAyB,SAAQ,WAAW;CAAG;AAE5D,qBAAa,aAAc,SAAQ,WAAW;CAAG;AAEjD,qBAAa,UAAW,SAAQ,WAAW;IACvC,MAAM,EAAE,MAAM,CAAC;gBAEH,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CAI/C"}
1
+ {"version":3,"file":"CustomError.d.ts","sourceRoot":"","sources":["../../src/logic/CustomError.ts"],"names":[],"mappings":"AAAA,cAAM,WAAY,SAAQ,KAAK;gBACf,OAAO,CAAC,EAAE,MAAM;CAM/B;AAED,qBAAa,iBAAkB,SAAQ,WAAW;CAAG;AAErD,qBAAa,yBAA0B,SAAQ,WAAW;CAAG;AAE7D,qBAAa,wBAAyB,SAAQ,WAAW;CAAG;AAE5D,qBAAa,aAAc,SAAQ,WAAW;CAAG;AAEjD,qBAAa,gBAAiB,SAAQ,WAAW;CAAI;AAErD,qBAAa,iBAAkB,SAAQ,WAAW;CAAG;AAErD,qBAAa,UAAW,SAAQ,WAAW;IACvC,MAAM,EAAE,MAAM,CAAC;gBAEH,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CAI/C"}
@@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
15
15
  };
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.FetchError = exports.NotFoundError = exports.SameOriginForbiddenError = exports.CrossOriginForbiddenError = exports.UnauthorizedError = void 0;
18
+ exports.FetchError = exports.WebOperationError = exports.NotEditableError = exports.NotFoundError = exports.SameOriginForbiddenError = exports.CrossOriginForbiddenError = exports.UnauthorizedError = void 0;
19
19
  var CustomError = /** @class */ (function (_super) {
20
20
  __extends(CustomError, _super);
21
21
  function CustomError(message) {
@@ -60,6 +60,22 @@ var NotFoundError = /** @class */ (function (_super) {
60
60
  return NotFoundError;
61
61
  }(CustomError));
62
62
  exports.NotFoundError = NotFoundError;
63
+ var NotEditableError = /** @class */ (function (_super) {
64
+ __extends(NotEditableError, _super);
65
+ function NotEditableError() {
66
+ return _super !== null && _super.apply(this, arguments) || this;
67
+ }
68
+ return NotEditableError;
69
+ }(CustomError));
70
+ exports.NotEditableError = NotEditableError;
71
+ var WebOperationError = /** @class */ (function (_super) {
72
+ __extends(WebOperationError, _super);
73
+ function WebOperationError() {
74
+ return _super !== null && _super.apply(this, arguments) || this;
75
+ }
76
+ return WebOperationError;
77
+ }(CustomError));
78
+ exports.WebOperationError = WebOperationError;
63
79
  var FetchError = /** @class */ (function (_super) {
64
80
  __extends(FetchError, _super);
65
81
  function FetchError(status, message) {
@@ -1 +1 @@
1
- {"version":3,"file":"CustomError.js","sourceRoot":"","sources":["../../src/logic/CustomError.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;IAA0B,+BAAK;IAC3B,qBAAY,OAAgB;;QAA5B,YACI,kBAAM,OAAO,CAAC,SAIjB;QAHG,0EAA0E;QAC1E,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,WAAW,SAAS,CAAC,CAAC,CAAC,0BAA0B;QAC7E,KAAI,CAAC,IAAI,GAAG,WAAW,IAAI,CAAC,CAAC,qCAAqC;;IACtE,CAAC;IACL,kBAAC;AAAD,CAAC,AAPD,CAA0B,KAAK,GAO9B;AAED;IAAuC,qCAAW;IAAlD;;IAAoD,CAAC;IAAD,wBAAC;AAAD,CAAC,AAArD,CAAuC,WAAW,GAAG;AAAxC,8CAAiB;AAE9B;IAA+C,6CAAW;IAA1D;;IAA4D,CAAC;IAAD,gCAAC;AAAD,CAAC,AAA7D,CAA+C,WAAW,GAAG;AAAhD,8DAAyB;AAEtC;IAA8C,4CAAW;IAAzD;;IAA2D,CAAC;IAAD,+BAAC;AAAD,CAAC,AAA5D,CAA8C,WAAW,GAAG;AAA/C,4DAAwB;AAErC;IAAmC,iCAAW;IAA9C;;IAAgD,CAAC;IAAD,oBAAC;AAAD,CAAC,AAAjD,CAAmC,WAAW,GAAG;AAApC,sCAAa;AAE1B;IAAgC,8BAAW;IAGvC,oBAAY,MAAc,EAAE,OAAgB;QAA5C,YACI,kBAAM,OAAO,CAAC,SAEjB;QADG,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;;IACzB,CAAC;IACL,iBAAC;AAAD,CAAC,AAPD,CAAgC,WAAW,GAO1C;AAPY,gCAAU"}
1
+ {"version":3,"file":"CustomError.js","sourceRoot":"","sources":["../../src/logic/CustomError.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;IAA0B,+BAAK;IAC3B,qBAAY,OAAgB;;QA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rdf from "rdflib";
2
+ import { SolidAuthnLogic } from "../authn/SolidAuthnLogic";
3
+ import { authSession } from "../authSession/authSession";
4
+ declare const store: rdf.LiveStore;
5
+ declare const authn: SolidAuthnLogic;
6
+ declare const findAclDocUrl: (url: string) => Promise<any>, setACLUserPublic: (docURI: string, me: rdf.NamedNode, options: {
7
+ defaultForNew?: boolean | undefined;
8
+ public?: [] | undefined;
9
+ }) => Promise<rdf.NamedNode>, genACLText: (docURI: string, me: rdf.NamedNode, aclURI: string, options?: {
10
+ defaultForNew?: boolean | undefined;
11
+ public?: [] | undefined;
12
+ }) => string | undefined;
13
+ declare const isContainer: (url: string) => boolean, createContainer: (url: string) => Promise<void>, getContainerElements: (containerNode: rdf.NamedNode) => rdf.NamedNode[], getContainerMembers: (containerUrl: string) => Promise<string[]>;
14
+ declare const recursiveDelete: (url: string) => Promise<any>, setSinglePeerAccess: (options: {
15
+ ownerWebId: string;
16
+ peerWebId: string;
17
+ accessToModes?: string | undefined;
18
+ defaultModes?: string | undefined;
19
+ target: string;
20
+ }) => Promise<any>, createEmptyRdfDoc: (doc: rdf.NamedNode, comment: string) => Promise<void>, followOrCreateLink: (subject: rdf.NamedNode, predicate: rdf.NamedNode, object: rdf.NamedNode, doc: rdf.NamedNode) => Promise<rdf.NamedNode | null>, loadOrCreateIfNotExists: (doc: rdf.NamedNode) => Promise<any>;
21
+ declare const ensureLoadedPreferences: (context: import("..").AuthenticationContext) => Promise<import("..").AuthenticationContext>, loadMe: () => Promise<rdf.NamedNode>, getPodRoot: (user: rdf.NamedNode) => rdf.NamedNode, getMainInbox: (user: rdf.NamedNode) => Promise<rdf.NamedNode>, findStorage: (me: rdf.NamedNode) => any, loadPreferences: (user: rdf.NamedNode) => Promise<rdf.NamedNode>, loadProfile: (user: rdf.NamedNode) => Promise<rdf.NamedNode>, silencedLoadPreferences: (user: rdf.NamedNode) => Promise<rdf.NamedNode | undefined>;
22
+ declare const setAcl: (chatContainer: rdf.NamedNode, me: rdf.NamedNode, invitee: rdf.NamedNode) => Promise<void>, addToPrivateTypeIndex: (chatThing: any, me: any) => Promise<void>, findChat: (invitee: rdf.NamedNode) => Promise<{
23
+ me: any;
24
+ chatContainer: rdf.NamedNode;
25
+ exists: boolean;
26
+ }>, createChatThing: (chatContainer: rdf.NamedNode, me: rdf.NamedNode) => Promise<rdf.NamedNode>, getChat: (invitee: rdf.NamedNode, createIfMissing?: boolean) => Promise<rdf.NamedNode | null>, sendInvite: (invitee: rdf.NamedNode, chatThing: rdf.NamedNode) => Promise<void>, mintNew: (newPaneOptions: import("../types").NewPaneOptions) => Promise<import("../types").CreatedPaneOptions>;
27
+ declare const createInboxFor: (peerWebId: string, nick: string) => Promise<string>, getNewMessages: (user?: rdf.NamedNode | undefined) => Promise<string[]>, markAsRead: (url: string, date: Date) => Promise<void>;
28
+ declare const ensureTypeIndexes: (context: import("..").AuthenticationContext, agent?: rdf.NamedNode | undefined) => Promise<import("..").AuthenticationContext>, loadTypeIndexes: (context: import("..").AuthenticationContext) => Promise<import("..").AuthenticationContext | undefined>, registerInTypeIndex: (context: import("..").AuthenticationContext, instance: rdf.NamedNode, theClass: rdf.NamedNode, isPublic: boolean, agent?: rdf.NamedNode | undefined) => Promise<import("..").AuthenticationContext>, loadIndex: (context: import("..").AuthenticationContext, isPublic: boolean) => Promise<import("..").AuthenticationContext>, ensureOneTypeIndex: (context: import("..").AuthenticationContext, isPublic: boolean, agent?: rdf.NamedNode | undefined) => Promise<void | import("..").AuthenticationContext>, putIndex: (newIndex: any, context: any) => Promise<any>, makeIndexIfNecessary: (context: any, isPublic: any, store: any, ns: any) => Promise<any>, loadIndexes: (me: string | rdf.NamedNode, publicProfile: string | rdf.NamedNode | null, preferencesFile: string | rdf.NamedNode | null, onWarning?: (_err: Error) => Promise<undefined>) => Promise<{
29
+ private: any;
30
+ public: any;
31
+ }>, getTypeIndex: (me: string | rdf.NamedNode, preferencesFile: string | rdf.NamedNode, isPublic: boolean) => rdf.NamedNode[], getRegistrations: (instance: any, theClass: any) => any, loadTypeIndexesFor: (user: rdf.NamedNode) => Promise<import("../types").TypeIndexScope[]>, loadCommunityTypeIndexes: (user: rdf.NamedNode) => Promise<import("../types").TypeIndexScope[][]>, loadAllTypeIndexes: (user: rdf.NamedNode) => Promise<import("../types").TypeIndexScope[]>, getScopedAppInstances: (klass: rdf.NamedNode, user: rdf.NamedNode) => Promise<import("../types").ScopedApp[]>, getAppInstances: (klass: rdf.NamedNode) => Promise<rdf.NamedNode[]>, suggestPublicTypeIndex: (me: rdf.NamedNode) => rdf.NamedNode, suggestPrivateTypeIndex: (preferencesFile: rdf.NamedNode) => rdf.NamedNode, registerInstanceInTypeIndex: (instance: rdf.NamedNode, index: rdf.NamedNode, theClass: rdf.NamedNode) => Promise<rdf.NamedNode | null>, deleteTypeIndexRegistration: (item: any) => Promise<void>, getScopedAppsFromIndex: (scope: any, theClass: rdf.NamedNode | null) => Promise<{
32
+ instance: rdf.NamedNode;
33
+ scope: any;
34
+ }[]>;
35
+ export { store, authn, authSession, recursiveDelete, setSinglePeerAccess, createEmptyRdfDoc, followOrCreateLink, loadOrCreateIfNotExists, isContainer, createContainer, getContainerElements, getContainerMembers, ensureTypeIndexes, loadTypeIndexes, registerInTypeIndex, loadIndex, ensureOneTypeIndex, putIndex, makeIndexIfNecessary, loadIndexes, getTypeIndex, getRegistrations, loadTypeIndexesFor, loadCommunityTypeIndexes, loadAllTypeIndexes, getScopedAppInstances, getAppInstances, suggestPublicTypeIndex, suggestPrivateTypeIndex, registerInstanceInTypeIndex, deleteTypeIndexRegistration, getScopedAppsFromIndex, ensureLoadedPreferences, loadMe, getPodRoot, getMainInbox, findStorage, loadPreferences, loadProfile, silencedLoadPreferences, createInboxFor, getNewMessages, markAsRead, setAcl, addToPrivateTypeIndex, findChat, createChatThing, getChat, sendInvite, mintNew, findAclDocUrl, setACLUserPublic, genACLText };
4
36
  //# sourceMappingURL=solidLogicSingleton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"solidLogicSingleton.d.ts","sourceRoot":"","sources":["../../src/logic/solidLogicSingleton.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAazC,QAAA,MAAM,mBAAmB,YAAiD,CAAA;AAI1E,OAAO,EAAE,mBAAmB,EAAE,CAAA"}
1
+ {"version":3,"file":"solidLogicSingleton.d.ts","sourceRoot":"","sources":["../../src/logic/solidLogicSingleton.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAsBxD,QAAA,MAAM,KAAK,eAA+B,CAAC;AAM3C,QAAA,MAAM,KAAK,iBAAmC,CAAA;AAG9C,QAAA,MACI,aAAa,iCACb,gBAAgB;;;8BAChB,UAAU;;;wBACF,CAAA;AAGZ,QAAA,MACI,WAAW,4BACX,eAAe,kCACf,oBAAoB,qDACpB,mBAAmB,6CACL,CAAA;AAGlB,QAAA,MACI,eAAe,iCACf,mBAAmB;;;;;;oBACnB,iBAAiB,0DACjB,kBAAkB,kIAClB,uBAAuB,sCACX,CAAA;AAGhB,QAAA,MACI,uBAAuB,gGACvB,MAAM,gCACN,UAAU,0CACV,YAAY,mDACZ,WAAW,8BACX,eAAe,mDACf,WAAW,mDACX,uBAAuB,6DACX,CAAA;AAGhB,QAAA,MACI,MAAM,8FACN,qBAAqB,8CACrB,QAAQ;;;;IACR,eAAe,+EACf,OAAO,wFACP,UAAU,uEACV,OAAO,uGACE,CAAA;AAGb,QAAA,MACI,cAAc,wDACd,cAAc,2DACd,UAAU,4CACA,CAAA;AAGd,QAAA,MACI,iBAAiB,mIACjB,eAAe,4GACf,mBAAmB,wMACnB,SAAS,mHACT,kBAAkB,6JAClB,QAAQ,iDACR,oBAAoB,sEACpB,WAAW;;;IACX,YAAY,+GACZ,gBAAgB,yCAChB,kBAAkB,yEAClB,wBAAwB,2EACxB,kBAAkB,yEAClB,qBAAqB,0FACrB,eAAe,sDACf,sBAAsB,wCACtB,uBAAuB,qDACvB,2BAA2B,6GAC3B,2BAA2B,gCAC3B,sBAAsB;;;IACR,CAAA;AAElB,OAAO,EACH,KAAK,EACL,KAAK,EACL,WAAW,EAEX,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EAEvB,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EAEnB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,SAAS,EACT,kBAAkB,EAClB,QAAQ,EACR,oBAAoB,EACpB,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,wBAAwB,EACxB,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,sBAAsB,EACtB,uBAAuB,EACvB,2BAA2B,EAC3B,2BAA2B,EAC3B,sBAAsB,EAEtB,uBAAuB,EACvB,MAAM,EACN,UAAU,EACV,YAAY,EACZ,WAAW,EACX,eAAe,EACf,WAAW,EACX,uBAAuB,EAEvB,cAAc,EACd,cAAc,EACd,UAAU,EAEV,MAAM,EACN,qBAAqB,EACrB,QAAQ,EACR,eAAe,EACf,OAAO,EACP,UAAU,EACV,OAAO,EAEP,aAAa,EACb,gBAAgB,EAChB,UAAU,EACb,CAAA"}
@@ -59,16 +59,26 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
59
59
  }
60
60
  };
61
61
  Object.defineProperty(exports, "__esModule", { value: true });
62
- exports.solidLogicSingleton = void 0;
63
- var debug = __importStar(require("../util/debug"));
62
+ exports.mintNew = exports.sendInvite = exports.getChat = exports.createChatThing = exports.findChat = exports.addToPrivateTypeIndex = exports.setAcl = exports.markAsRead = exports.getNewMessages = exports.createInboxFor = exports.silencedLoadPreferences = exports.loadProfile = exports.loadPreferences = exports.findStorage = exports.getMainInbox = exports.getPodRoot = exports.loadMe = exports.ensureLoadedPreferences = exports.getScopedAppsFromIndex = exports.deleteTypeIndexRegistration = exports.registerInstanceInTypeIndex = exports.suggestPrivateTypeIndex = exports.suggestPublicTypeIndex = exports.getAppInstances = exports.getScopedAppInstances = exports.loadAllTypeIndexes = exports.loadCommunityTypeIndexes = exports.loadTypeIndexesFor = exports.getRegistrations = exports.getTypeIndex = exports.loadIndexes = exports.makeIndexIfNecessary = exports.putIndex = exports.ensureOneTypeIndex = exports.loadIndex = exports.registerInTypeIndex = exports.loadTypeIndexes = exports.ensureTypeIndexes = exports.getContainerMembers = exports.getContainerElements = exports.createContainer = exports.isContainer = exports.loadOrCreateIfNotExists = exports.followOrCreateLink = exports.createEmptyRdfDoc = exports.setSinglePeerAccess = exports.recursiveDelete = exports.authSession = exports.authn = exports.store = void 0;
63
+ exports.genACLText = exports.setACLUserPublic = exports.findAclDocUrl = void 0;
64
+ var rdf = __importStar(require("rdflib"));
65
+ var SolidAuthnLogic_1 = require("../authn/SolidAuthnLogic");
64
66
  var authSession_1 = require("../authSession/authSession");
65
- var SolidLogic_1 = require("./SolidLogic");
67
+ Object.defineProperty(exports, "authSession", { enumerable: true, get: function () { return authSession_1.authSession; } });
68
+ var containerLogic_1 = require("../util/containerLogic");
69
+ var typeIndexLogic_1 = require("../typeIndex/typeIndexLogic");
70
+ var debug = __importStar(require("../util/debug"));
71
+ var utilityLogic_1 = require("../util/utilityLogic");
72
+ var profileLogic_1 = require("../profile/profileLogic");
73
+ var inboxLogic_1 = require("../inbox/inboxLogic");
74
+ var chatLogic_1 = require("../chat/chatLogic");
75
+ var aclLogic_1 = require("../acl/aclLogic");
66
76
  var _fetch = function (url, requestInit) { return __awaiter(void 0, void 0, void 0, function () {
67
77
  var omitCreds;
68
78
  return __generator(this, function (_a) {
69
79
  omitCreds = requestInit && requestInit.credentials && requestInit.credentials == 'omit';
70
80
  if (authSession_1.authSession.info.webId && !omitCreds) { // see https://github.com/solidos/solidos/issues/114
71
- // In fact ftech should respect crentials omit itself
81
+ // In fact fetch should respect credentials omit itself
72
82
  return [2 /*return*/, authSession_1.authSession.fetch(url, requestInit)];
73
83
  }
74
84
  else {
@@ -77,8 +87,77 @@ var _fetch = function (url, requestInit) { return __awaiter(void 0, void 0, void
77
87
  return [2 /*return*/];
78
88
  });
79
89
  }); };
80
- //this const makes solidLogicSingleton global accessible in mashlib
81
- var solidLogicSingleton = new SolidLogic_1.SolidLogic({ fetch: _fetch }, authSession_1.authSession);
82
- exports.solidLogicSingleton = solidLogicSingleton;
83
- debug.log('Unique quadstore initialized.');
90
+ debug.log("SolidLogicSingleton: Unique instance created. There should only be one of these.");
91
+ var store = rdf.graph(); // Make a Quad store
92
+ exports.store = store;
93
+ rdf.fetcher(store, { fetch: _fetch }); // Attach a web I/O module, store.fetcher
94
+ store.updater = new rdf.UpdateManager(store); // Add real-time live updates store.updater
95
+ store.features = []; // disable automatic node merging on store load
96
+ debug.log('SolidAuthnLogic initialized');
97
+ var authn = new SolidAuthnLogic_1.SolidAuthnLogic(authSession_1.authSession);
98
+ exports.authn = authn;
99
+ var aclLogic = (0, aclLogic_1.createAclLogic)(store);
100
+ var findAclDocUrl = aclLogic.findAclDocUrl, setACLUserPublic = aclLogic.setACLUserPublic, genACLText = aclLogic.genACLText;
101
+ exports.findAclDocUrl = findAclDocUrl;
102
+ exports.setACLUserPublic = setACLUserPublic;
103
+ exports.genACLText = genACLText;
104
+ var containerLogic = (0, containerLogic_1.createContainerLogic)(store);
105
+ var isContainer = containerLogic.isContainer, createContainer = containerLogic.createContainer, getContainerElements = containerLogic.getContainerElements, getContainerMembers = containerLogic.getContainerMembers;
106
+ exports.isContainer = isContainer;
107
+ exports.createContainer = createContainer;
108
+ exports.getContainerElements = getContainerElements;
109
+ exports.getContainerMembers = getContainerMembers;
110
+ var utilityLogic = (0, utilityLogic_1.createUtilityLogic)(store, aclLogic, containerLogic);
111
+ var recursiveDelete = utilityLogic.recursiveDelete, setSinglePeerAccess = utilityLogic.setSinglePeerAccess, createEmptyRdfDoc = utilityLogic.createEmptyRdfDoc, followOrCreateLink = utilityLogic.followOrCreateLink, loadOrCreateIfNotExists = utilityLogic.loadOrCreateIfNotExists;
112
+ exports.recursiveDelete = recursiveDelete;
113
+ exports.setSinglePeerAccess = setSinglePeerAccess;
114
+ exports.createEmptyRdfDoc = createEmptyRdfDoc;
115
+ exports.followOrCreateLink = followOrCreateLink;
116
+ exports.loadOrCreateIfNotExists = loadOrCreateIfNotExists;
117
+ var profileLogic = (0, profileLogic_1.createProfileLogic)(store, authn, utilityLogic);
118
+ var ensureLoadedPreferences = profileLogic.ensureLoadedPreferences, loadMe = profileLogic.loadMe, getPodRoot = profileLogic.getPodRoot, getMainInbox = profileLogic.getMainInbox, findStorage = profileLogic.findStorage, loadPreferences = profileLogic.loadPreferences, loadProfile = profileLogic.loadProfile, silencedLoadPreferences = profileLogic.silencedLoadPreferences;
119
+ exports.ensureLoadedPreferences = ensureLoadedPreferences;
120
+ exports.loadMe = loadMe;
121
+ exports.getPodRoot = getPodRoot;
122
+ exports.getMainInbox = getMainInbox;
123
+ exports.findStorage = findStorage;
124
+ exports.loadPreferences = loadPreferences;
125
+ exports.loadProfile = loadProfile;
126
+ exports.silencedLoadPreferences = silencedLoadPreferences;
127
+ var chatLogic = (0, chatLogic_1.createChatLogic)(store, profileLogic);
128
+ var setAcl = chatLogic.setAcl, addToPrivateTypeIndex = chatLogic.addToPrivateTypeIndex, findChat = chatLogic.findChat, createChatThing = chatLogic.createChatThing, getChat = chatLogic.getChat, sendInvite = chatLogic.sendInvite, mintNew = chatLogic.mintNew;
129
+ exports.setAcl = setAcl;
130
+ exports.addToPrivateTypeIndex = addToPrivateTypeIndex;
131
+ exports.findChat = findChat;
132
+ exports.createChatThing = createChatThing;
133
+ exports.getChat = getChat;
134
+ exports.sendInvite = sendInvite;
135
+ exports.mintNew = mintNew;
136
+ var inboxLogic = (0, inboxLogic_1.createInboxLogic)(store, profileLogic, utilityLogic, containerLogic, aclLogic);
137
+ var createInboxFor = inboxLogic.createInboxFor, getNewMessages = inboxLogic.getNewMessages, markAsRead = inboxLogic.markAsRead;
138
+ exports.createInboxFor = createInboxFor;
139
+ exports.getNewMessages = getNewMessages;
140
+ exports.markAsRead = markAsRead;
141
+ var typeIndexLogic = (0, typeIndexLogic_1.createTypeIndexLogic)(store, authn, profileLogic, utilityLogic);
142
+ var ensureTypeIndexes = typeIndexLogic.ensureTypeIndexes, loadTypeIndexes = typeIndexLogic.loadTypeIndexes, registerInTypeIndex = typeIndexLogic.registerInTypeIndex, loadIndex = typeIndexLogic.loadIndex, ensureOneTypeIndex = typeIndexLogic.ensureOneTypeIndex, putIndex = typeIndexLogic.putIndex, makeIndexIfNecessary = typeIndexLogic.makeIndexIfNecessary, loadIndexes = typeIndexLogic.loadIndexes, getTypeIndex = typeIndexLogic.getTypeIndex, getRegistrations = typeIndexLogic.getRegistrations, loadTypeIndexesFor = typeIndexLogic.loadTypeIndexesFor, loadCommunityTypeIndexes = typeIndexLogic.loadCommunityTypeIndexes, loadAllTypeIndexes = typeIndexLogic.loadAllTypeIndexes, getScopedAppInstances = typeIndexLogic.getScopedAppInstances, getAppInstances = typeIndexLogic.getAppInstances, suggestPublicTypeIndex = typeIndexLogic.suggestPublicTypeIndex, suggestPrivateTypeIndex = typeIndexLogic.suggestPrivateTypeIndex, registerInstanceInTypeIndex = typeIndexLogic.registerInstanceInTypeIndex, deleteTypeIndexRegistration = typeIndexLogic.deleteTypeIndexRegistration, getScopedAppsFromIndex = typeIndexLogic.getScopedAppsFromIndex;
143
+ exports.ensureTypeIndexes = ensureTypeIndexes;
144
+ exports.loadTypeIndexes = loadTypeIndexes;
145
+ exports.registerInTypeIndex = registerInTypeIndex;
146
+ exports.loadIndex = loadIndex;
147
+ exports.ensureOneTypeIndex = ensureOneTypeIndex;
148
+ exports.putIndex = putIndex;
149
+ exports.makeIndexIfNecessary = makeIndexIfNecessary;
150
+ exports.loadIndexes = loadIndexes;
151
+ exports.getTypeIndex = getTypeIndex;
152
+ exports.getRegistrations = getRegistrations;
153
+ exports.loadTypeIndexesFor = loadTypeIndexesFor;
154
+ exports.loadCommunityTypeIndexes = loadCommunityTypeIndexes;
155
+ exports.loadAllTypeIndexes = loadAllTypeIndexes;
156
+ exports.getScopedAppInstances = getScopedAppInstances;
157
+ exports.getAppInstances = getAppInstances;
158
+ exports.suggestPublicTypeIndex = suggestPublicTypeIndex;
159
+ exports.suggestPrivateTypeIndex = suggestPrivateTypeIndex;
160
+ exports.registerInstanceInTypeIndex = registerInstanceInTypeIndex;
161
+ exports.deleteTypeIndexRegistration = deleteTypeIndexRegistration;
162
+ exports.getScopedAppsFromIndex = getScopedAppsFromIndex;
84
163
  //# sourceMappingURL=solidLogicSingleton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"solidLogicSingleton.js","sourceRoot":"","sources":["../../src/logic/solidLogicSingleton.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAsC;AACtC,0DAAwD;AACxD,2CAAyC;AAEzC,IAAM,MAAM,GAAG,UAAO,GAAG,EAAE,WAAW;;;QAC5B,SAAS,GAAG,WAAW,IAAI,WAAW,CAAC,WAAW,IAAI,WAAW,CAAC,WAAW,IAAI,MAAM,CAAA;QAC7F,IAAI,yBAAW,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,EAAE,EAAE,oDAAoD;YAC5F,qDAAqD;YACrD,sBAAO,yBAAW,CAAC,KAAK,CAAC,GAAG,EAAE,WAAW,CAAC,EAAA;SAC7C;aAAM;YACH,sBAAO,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,WAAW,CAAC,EAAA;SACxC;;;KACJ,CAAA;AAED,mEAAmE;AACnE,IAAM,mBAAmB,GAAG,IAAI,uBAAU,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,yBAAW,CAAC,CAAA;AAIjE,kDAAmB;AAF5B,KAAK,CAAC,GAAG,CAAC,+BAA+B,CAAC,CA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,GAQlB,cAAc,mBARI,EAClB,qBAAqB,GAOrB,cAAc,sBAPO,EACrB,eAAe,GAMf,cAAc,gBANC,EACf,sBAAsB,GAKtB,cAAc,uBALQ,EACtB,uBAAuB,GAIvB,cAAc,wBAJS,EACvB,2BAA2B,GAG3B,cAAc,4BAHa,EAC3B,2BAA2B,GAE3B,cAAc,4BAFa,EAC3B,sBAAsB,GACtB,cAAc,uBADQ,CACR;AAkBd,8CAAiB;AACjB,0CAAe;AACf,kDAAmB;AACnB,8BAAS;AACT,gDAAkB;AAClB,4BAAQ;AACR,oDAAoB;AACpB,kCAAW;AACX,oCAAY;AACZ,4CAAgB;AAChB,gDAAkB;AAClB,4DAAwB;AACxB,gDAAkB;AAClB,sDAAqB;AACrB,0CAAe;AACf,wDAAsB;AACtB,0DAAuB;AACvB,kEAA2B;AAC3B,kEAA2B;AAC3B,wDAAsB"}
@@ -0,0 +1,13 @@
1
+ import { NamedNode } from "rdflib";
2
+ import { AuthenticationContext } from "../types";
3
+ export declare function createProfileLogic(store: any, authn: any, utilityLogic: any): {
4
+ ensureLoadedPreferences: (context: AuthenticationContext) => Promise<AuthenticationContext>;
5
+ loadMe: () => Promise<NamedNode>;
6
+ getPodRoot: (user: NamedNode) => NamedNode;
7
+ getMainInbox: (user: NamedNode) => Promise<NamedNode>;
8
+ findStorage: (me: NamedNode) => any;
9
+ loadPreferences: (user: NamedNode) => Promise<NamedNode>;
10
+ loadProfile: (user: NamedNode) => Promise<NamedNode>;
11
+ silencedLoadPreferences: (user: NamedNode) => Promise<NamedNode | undefined>;
12
+ };
13
+ //# sourceMappingURL=profileLogic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profileLogic.d.ts","sourceRoot":"","sources":["../../src/profile/profileLogic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAKjD,wBAAgB,kBAAkB,CAAC,KAAK,KAAA,EAAE,KAAK,KAAA,EAAE,YAAY,KAAA;uCAGR,qBAAqB;kBAkF7C,QAAQ,SAAS,CAAC;uBASjB,SAAS,KAAG,SAAS;yBAQb,SAAS,KAAG,QAAQ,SAAS,CAAC;sBASvC,SAAS;4BAjFI,SAAS,KAAG,QAAS,SAAS,CAAC;wBA2CnC,SAAS,KAAE,QAAS,SAAS,CAAC;oCAzDnB,SAAS,KAAG,QAAS,SAAS,GAAG,SAAS,CAAC;EA6G3F"}