@propxchain/core-client 0.4.0-canary.39 → 0.6.0-canary.43

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 (35) hide show
  1. package/dist/canisters/document_storage/document_storage.did.d.ts +31 -21
  2. package/dist/canisters/document_storage/document_storage.did.js +31 -21
  3. package/dist/canisters/document_verification/document_verification.did.d.ts +9 -9
  4. package/dist/canisters/document_verification/document_verification.did.js +28 -28
  5. package/dist/canisters/land_registry_integration/land_registry_integration.did.js +23 -139
  6. package/dist/canisters/ledger_manager/ledger_manager.did.d.ts +1 -0
  7. package/dist/canisters/ledger_manager/ledger_manager.did.js +2 -5
  8. package/dist/canisters/property_registry/property_registry.did.d.ts +7 -3
  9. package/dist/canisters/property_registry/property_registry.did.js +12 -4
  10. package/dist/canisters/transaction_manager/transaction_manager.did.d.ts +90 -42
  11. package/dist/canisters/transaction_manager/transaction_manager.did.js +117 -40
  12. package/dist/canisters/user_management/user_management.did.d.ts +75 -18
  13. package/dist/canisters/user_management/user_management.did.js +93 -19
  14. package/dist/mock.js +1 -1
  15. package/package.json +1 -1
  16. package/src/canisters/document_storage/document_storage.did +32 -21
  17. package/src/canisters/document_storage/document_storage.did.d.ts +31 -21
  18. package/src/canisters/document_storage/document_storage.did.js +31 -21
  19. package/src/canisters/document_verification/document_verification.did +6 -6
  20. package/src/canisters/document_verification/document_verification.did.d.ts +9 -9
  21. package/src/canisters/document_verification/document_verification.did.js +28 -28
  22. package/src/canisters/land_registry_integration/land_registry_integration.did.js +23 -139
  23. package/src/canisters/ledger_manager/ledger_manager.did +2 -1
  24. package/src/canisters/ledger_manager/ledger_manager.did.d.ts +1 -0
  25. package/src/canisters/ledger_manager/ledger_manager.did.js +2 -5
  26. package/src/canisters/property_registry/property_registry.did +7 -3
  27. package/src/canisters/property_registry/property_registry.did.d.ts +7 -3
  28. package/src/canisters/property_registry/property_registry.did.js +12 -4
  29. package/src/canisters/transaction_manager/transaction_manager.did +104 -48
  30. package/src/canisters/transaction_manager/transaction_manager.did.d.ts +90 -42
  31. package/src/canisters/transaction_manager/transaction_manager.did.js +117 -40
  32. package/src/canisters/user_management/user_management.did +64 -19
  33. package/src/canisters/user_management/user_management.did.d.ts +75 -18
  34. package/src/canisters/user_management/user_management.did.js +93 -19
  35. package/src/mock.ts +1 -1
@@ -72,11 +72,11 @@ export const idlFactory = ({ IDL }) => {
72
72
  'removalRequested' : IDL.Bool,
73
73
  'regulatoryBody' : RegulatoryBody,
74
74
  });
75
- const Result_22 = IDL.Variant({
75
+ const Result_25 = IDL.Variant({
76
76
  'ok' : IDL.Record({ 'registrations' : IDL.Nat, 'transactions' : IDL.Nat }),
77
77
  'err' : IDL.Text,
78
78
  });
79
- const Result_21 = IDL.Variant({
79
+ const Result_24 = IDL.Variant({
80
80
  'ok' : IDL.Tuple(IDL.Text, IDL.Text),
81
81
  'err' : IDL.Text,
82
82
  });
@@ -201,7 +201,7 @@ export const idlFactory = ({ IDL }) => {
201
201
  'sources' : IDL.Vec(IDL.Text),
202
202
  'severity' : Severity,
203
203
  });
204
- const Result_20 = IDL.Variant({ 'ok' : IDL.Vec(Anomaly), 'err' : IDL.Text });
204
+ const Result_23 = IDL.Variant({ 'ok' : IDL.Vec(Anomaly), 'err' : IDL.Text });
205
205
  const Phase = IDL.Variant({
206
206
  'buyerSetup' : IDL.Null,
207
207
  'preContract' : IDL.Null,
@@ -210,14 +210,27 @@ export const idlFactory = ({ IDL }) => {
210
210
  'preCompletion' : IDL.Null,
211
211
  'searches' : IDL.Null,
212
212
  });
213
- const Result_19 = IDL.Variant({ 'ok' : Phase, 'err' : IDL.Text });
213
+ const Result_22 = IDL.Variant({ 'ok' : Phase, 'err' : IDL.Text });
214
+ const FormAnswer = IDL.Record({
215
+ 'id' : IDL.Text,
216
+ 'answer' : IDL.Text,
217
+ 'details' : IDL.Opt(IDL.Text),
218
+ });
219
+ const Result_21 = IDL.Variant({
220
+ 'ok' : IDL.Record({
221
+ 'ta6' : IDL.Vec(FormAnswer),
222
+ 'ta7' : IDL.Vec(FormAnswer),
223
+ 'ta10' : IDL.Vec(FormAnswer),
224
+ }),
225
+ 'err' : IDL.Text,
226
+ });
214
227
  const HmlrFetchRecord = IDL.Record({
215
228
  'fetchedAt' : IDL.Int,
216
229
  'fetchedBy' : IDL.Principal,
217
230
  'titleNumber' : IDL.Text,
218
231
  'responseHash' : IDL.Text,
219
232
  });
220
- const Result_18 = IDL.Variant({
233
+ const Result_20 = IDL.Variant({
221
234
  'ok' : IDL.Opt(HmlrFetchRecord),
222
235
  'err' : IDL.Text,
223
236
  });
@@ -251,10 +264,18 @@ export const idlFactory = ({ IDL }) => {
251
264
  'options' : IDL.Vec(NextStepOption),
252
265
  'partial' : IDL.Bool,
253
266
  });
254
- const Result_17 = IDL.Variant({
267
+ const Result_19 = IDL.Variant({
255
268
  'ok' : NextStepRecommendation,
256
269
  'err' : IDL.Text,
257
270
  });
271
+ const Result_18 = IDL.Variant({
272
+ 'ok' : IDL.Record({
273
+ 'mode' : IDL.Text,
274
+ 'seller' : IDL.Principal,
275
+ 'buyer' : IDL.Principal,
276
+ }),
277
+ 'err' : IDL.Text,
278
+ });
258
279
  const PartyProgress = IDL.Record({
259
280
  'completedParties' : IDL.Nat,
260
281
  'overallProgress' : IDL.Nat,
@@ -267,7 +288,7 @@ export const idlFactory = ({ IDL }) => {
267
288
  'sellers' : PartyProgress,
268
289
  'buyers' : PartyProgress,
269
290
  });
270
- const Result_16 = IDL.Variant({
291
+ const Result_17 = IDL.Variant({
271
292
  'ok' : TransactionPartyProgress,
272
293
  'err' : IDL.Text,
273
294
  });
@@ -275,8 +296,8 @@ export const idlFactory = ({ IDL }) => {
275
296
  'contractDraftedAt' : IDL.Opt(IDL.Int),
276
297
  'searchesOrderedAt' : IDL.Opt(IDL.Int),
277
298
  });
278
- const Result_15 = IDL.Variant({ 'ok' : PhaseMilestones, 'err' : IDL.Text });
279
- const Result_14 = IDL.Variant({
299
+ const Result_16 = IDL.Variant({ 'ok' : PhaseMilestones, 'err' : IDL.Text });
300
+ const Result_15 = IDL.Variant({
280
301
  'ok' : IDL.Record({
281
302
  'sellerSolicitor' : IDL.Opt(SolicitorRecord),
282
303
  'buyerSolicitor' : IDL.Opt(SolicitorRecord),
@@ -301,7 +322,7 @@ export const idlFactory = ({ IDL }) => {
301
322
  'lastModifiedBy' : IDL.Principal,
302
323
  'rooms' : IDL.Vec(TA10Room),
303
324
  });
304
- const Result_13 = IDL.Variant({
325
+ const Result_14 = IDL.Variant({
305
326
  'ok' : IDL.Opt(TA10FittingsAndContents),
306
327
  'err' : IDL.Text,
307
328
  });
@@ -632,7 +653,7 @@ export const idlFactory = ({ IDL }) => {
632
653
  'section8' : Section8Environmental,
633
654
  'section9' : Section9Rights,
634
655
  });
635
- const Result_12 = IDL.Variant({
656
+ const Result_13 = IDL.Variant({
636
657
  'ok' : IDL.Opt(TA6PropertyInformation),
637
658
  'err' : IDL.Text,
638
659
  });
@@ -655,7 +676,7 @@ export const idlFactory = ({ IDL }) => {
655
676
  'leaseStartDate' : IDL.Text,
656
677
  'alterationsAllowed' : IDL.Bool,
657
678
  });
658
- const Result_11 = IDL.Variant({
679
+ const Result_12 = IDL.Variant({
659
680
  'ok' : IDL.Opt(TA7LeaseholdInformation),
660
681
  'err' : IDL.Text,
661
682
  });
@@ -665,19 +686,19 @@ export const idlFactory = ({ IDL }) => {
665
686
  'addedAt' : IDL.Int,
666
687
  'addedBy' : IDL.Principal,
667
688
  });
668
- const Result_10 = IDL.Variant({
689
+ const Result_11 = IDL.Variant({
669
690
  'ok' : IDL.Vec(BotConnection),
670
691
  'err' : IDL.Text,
671
692
  });
672
- const Result_9 = IDL.Variant({
693
+ const Result_10 = IDL.Variant({
673
694
  'ok' : IDL.Vec(Transaction),
674
695
  'err' : IDL.Text,
675
696
  });
676
- const Result_8 = IDL.Variant({
697
+ const Result_9 = IDL.Variant({
677
698
  'ok' : IDL.Vec(Notification),
678
699
  'err' : IDL.Text,
679
700
  });
680
- const Result_7 = IDL.Variant({
701
+ const Result_8 = IDL.Variant({
681
702
  'ok' : IDL.Record({
682
703
  'sellers' : IDL.Vec(TransactionParty),
683
704
  'buyers' : IDL.Vec(TransactionParty),
@@ -693,7 +714,7 @@ export const idlFactory = ({ IDL }) => {
693
714
  'totalTimeToCompletion' : IDL.Nat,
694
715
  'totalTimeIncludingLR' : IDL.Nat,
695
716
  });
696
- const Result_6 = IDL.Variant({ 'ok' : Transaction, 'err' : IDL.Text });
717
+ const Result_7 = IDL.Variant({ 'ok' : Transaction, 'err' : IDL.Text });
697
718
  const Result_3 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
698
719
  const ApplicationStatusUpdate = IDL.Record({
699
720
  'lastUpdated' : IDL.Text,
@@ -703,10 +724,14 @@ export const idlFactory = ({ IDL }) => {
703
724
  'currentStatus' : LandRegistryStatus,
704
725
  'previousStatus' : LandRegistryStatus,
705
726
  });
706
- const Result_5 = IDL.Variant({
727
+ const Result_6 = IDL.Variant({
707
728
  'ok' : ApplicationStatusUpdate,
708
729
  'err' : IDL.Text,
709
730
  });
731
+ const Result_5 = IDL.Variant({
732
+ 'ok' : IDL.Record({ 'repairs' : IDL.Nat, 'transactions' : IDL.Nat }),
733
+ 'err' : IDL.Text,
734
+ });
710
735
  const OfficialSearchResult = IDL.Record({
711
736
  'officialCopyTimestamp' : IDL.Opt(IDL.Text),
712
737
  'advisoryEntries' : IDL.Vec(IDL.Text),
@@ -728,13 +753,26 @@ export const idlFactory = ({ IDL }) => {
728
753
  ),
729
754
  'adminForceDeleteTransaction' : IDL.Func([IDL.Text], [Result], []),
730
755
  'assignBuyer' : IDL.Func([IDL.Text, IDL.Principal], [Result], []),
756
+ 'assignConveyancerFromPlatform' : IDL.Func(
757
+ [
758
+ IDL.Text,
759
+ IDL.Principal,
760
+ IDL.Text,
761
+ IDL.Text,
762
+ IDL.Text,
763
+ IDL.Text,
764
+ IDL.Variant({ 'seller' : IDL.Null, 'buyer' : IDL.Null }),
765
+ ],
766
+ [Result_1],
767
+ [],
768
+ ),
731
769
  'assignSolicitor' : IDL.Func([IDL.Text, IDL.Principal], [Result], []),
732
770
  'assignSolicitorRecord' : IDL.Func(
733
771
  [IDL.Text, SolicitorRecord],
734
772
  [Result_1],
735
773
  [],
736
774
  ),
737
- 'backfillTransactionMembers' : IDL.Func([], [Result_22], []),
775
+ 'backfillTransactionMembers' : IDL.Func([], [Result_25], []),
738
776
  'bootstrapDocumentStorageCanister' : IDL.Func(
739
777
  [IDL.Principal],
740
778
  [Result],
@@ -796,7 +834,7 @@ export const idlFactory = ({ IDL }) => {
796
834
  IDL.Nat64,
797
835
  IDL.Text,
798
836
  ],
799
- [Result_21],
837
+ [Result_24],
800
838
  [],
801
839
  ),
802
840
  'deleteTransaction' : IDL.Func([IDL.Text], [Result], []),
@@ -808,9 +846,14 @@ export const idlFactory = ({ IDL }) => {
808
846
  ['query'],
809
847
  ),
810
848
  'getAllTransactions' : IDL.Func([], [IDL.Vec(Transaction)], ['query']),
811
- 'getAnomalies' : IDL.Func([IDL.Text], [Result_20], ['query']),
812
- 'getCurrentPhase' : IDL.Func([IDL.Text], [Result_19], ['query']),
849
+ 'getAnomalies' : IDL.Func([IDL.Text], [Result_23], ['query']),
850
+ 'getCurrentPhase' : IDL.Func([IDL.Text], [Result_22], ['query']),
813
851
  'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
852
+ 'getDelegates' : IDL.Func(
853
+ [IDL.Text],
854
+ [IDL.Vec(IDL.Tuple(IDL.Principal, IDL.Principal))],
855
+ ['query'],
856
+ ),
814
857
  'getDocumentStorageCanister' : IDL.Func(
815
858
  [],
816
859
  [IDL.Opt(IDL.Principal)],
@@ -822,7 +865,8 @@ export const idlFactory = ({ IDL }) => {
822
865
  ['query'],
823
866
  ),
824
867
  'getFlowState' : IDL.Func([IDL.Text], [IDL.Opt(IDL.Text)], ['query']),
825
- 'getHmlrFetch' : IDL.Func([IDL.Text], [Result_18], ['query']),
868
+ 'getFormAnswersForPlatform' : IDL.Func([IDL.Text], [Result_21], ['query']),
869
+ 'getHmlrFetch' : IDL.Func([IDL.Text], [Result_20], ['query']),
826
870
  'getInviteCode' : IDL.Func([IDL.Text], [Result], ['query']),
827
871
  'getLandRegistryCanister' : IDL.Func([], [IDL.Text], ['query']),
828
872
  'getLandRegistryDetail' : IDL.Func(
@@ -832,36 +876,43 @@ export const idlFactory = ({ IDL }) => {
832
876
  ),
833
877
  'getLedgerManagerCanister' : IDL.Func([], [IDL.Text], ['query']),
834
878
  'getListingData' : IDL.Func([IDL.Text], [IDL.Opt(IDL.Text)], ['query']),
879
+ 'getMonitorTransactionIds' : IDL.Func([], [IDL.Vec(IDL.Text)], ['query']),
835
880
  'getMyNotifications' : IDL.Func([], [IDL.Vec(Notification)], ['query']),
836
881
  'getMyTransactions' : IDL.Func([], [IDL.Vec(Transaction)], ['query']),
837
- 'getNextStep' : IDL.Func([IDL.Text], [Result_17], ['composite_query']),
882
+ 'getNextStep' : IDL.Func([IDL.Text], [Result_19], ['composite_query']),
838
883
  'getOutstandingRequisitions' : IDL.Func(
839
884
  [],
840
885
  [IDL.Vec(IDL.Tuple(IDL.Text, Requisition))],
841
886
  ['query'],
842
887
  ),
843
- 'getPartyProgress' : IDL.Func([IDL.Text], [Result_16], ['query']),
888
+ 'getPartyPrincipalsForPlatform' : IDL.Func(
889
+ [IDL.Text],
890
+ [Result_18],
891
+ ['query'],
892
+ ),
893
+ 'getPartyProgress' : IDL.Func([IDL.Text], [Result_17], ['query']),
844
894
  'getPendingLRApplications' : IDL.Func(
845
895
  [],
846
896
  [IDL.Vec(Transaction)],
847
897
  ['query'],
848
898
  ),
849
- 'getPhaseMilestones' : IDL.Func([IDL.Text], [Result_15], ['query']),
899
+ 'getPhaseMilestones' : IDL.Func([IDL.Text], [Result_16], ['query']),
900
+ 'getPropertyLogbookCanister' : IDL.Func([], [IDL.Text], ['query']),
850
901
  'getPropertyRegistryCanister' : IDL.Func([], [IDL.Text], ['query']),
851
- 'getSolicitorStatus' : IDL.Func([IDL.Text], [Result_14], ['query']),
852
- 'getTA10' : IDL.Func([IDL.Text], [Result_13], ['query']),
853
- 'getTA6' : IDL.Func([IDL.Text], [Result_12], ['query']),
854
- 'getTA7' : IDL.Func([IDL.Text], [Result_11], ['query']),
902
+ 'getSolicitorStatus' : IDL.Func([IDL.Text], [Result_15], ['query']),
903
+ 'getTA10' : IDL.Func([IDL.Text], [Result_14], ['query']),
904
+ 'getTA6' : IDL.Func([IDL.Text], [Result_13], ['query']),
905
+ 'getTA7' : IDL.Func([IDL.Text], [Result_12], ['query']),
855
906
  'getTransaction' : IDL.Func([IDL.Text], [IDL.Opt(Transaction)], ['query']),
856
- 'getTransactionBots' : IDL.Func([IDL.Text], [Result_10], ['query']),
907
+ 'getTransactionBots' : IDL.Func([IDL.Text], [Result_11], ['query']),
857
908
  'getTransactionByInviteCode' : IDL.Func(
858
909
  [IDL.Text],
859
910
  [IDL.Opt(Transaction)],
860
911
  [],
861
912
  ),
862
- 'getTransactionChain' : IDL.Func([IDL.Text], [Result_9], ['query']),
863
- 'getTransactionNotifications' : IDL.Func([IDL.Text], [Result_8], ['query']),
864
- 'getTransactionParties' : IDL.Func([IDL.Text], [Result_7], ['query']),
913
+ 'getTransactionChain' : IDL.Func([IDL.Text], [Result_10], ['query']),
914
+ 'getTransactionNotifications' : IDL.Func([IDL.Text], [Result_9], ['query']),
915
+ 'getTransactionParties' : IDL.Func([IDL.Text], [Result_8], ['query']),
865
916
  'getTransactionsByStatus' : IDL.Func(
866
917
  [TransactionStatus],
867
918
  [IDL.Vec(Transaction)],
@@ -895,9 +946,19 @@ export const idlFactory = ({ IDL }) => {
895
946
  [Result],
896
947
  [],
897
948
  ),
898
- 'joinAsBotByInviteCode' : IDL.Func([IDL.Text, IDL.Text], [Result_6], []),
899
- 'joinTransactionByInviteCode' : IDL.Func([IDL.Text], [Result_6], []),
900
- 'joinTransactionByInviteCodeAsBuyer' : IDL.Func([IDL.Text], [Result_6], []),
949
+ 'isDelegateOf' : IDL.Func(
950
+ [IDL.Text, IDL.Principal, IDL.Principal],
951
+ [IDL.Bool],
952
+ ['query'],
953
+ ),
954
+ 'isTransactionMember' : IDL.Func(
955
+ [IDL.Text, IDL.Principal],
956
+ [IDL.Bool],
957
+ ['query'],
958
+ ),
959
+ 'joinAsBotByInviteCode' : IDL.Func([IDL.Text, IDL.Text], [Result_7], []),
960
+ 'joinTransactionByInviteCode' : IDL.Func([IDL.Text], [Result_7], []),
961
+ 'joinTransactionByInviteCodeAsBuyer' : IDL.Func([IDL.Text], [Result_7], []),
901
962
  'leaveTransaction' : IDL.Func([IDL.Text], [Result], []),
902
963
  'linkTransactionToChain' : IDL.Func([IDL.Text, IDL.Text], [Result_1], []),
903
964
  'markAllNotificationsRead' : IDL.Func([], [IDL.Nat], []),
@@ -912,7 +973,7 @@ export const idlFactory = ({ IDL }) => {
912
973
  ),
913
974
  'on_blockchain_completion_success' : IDL.Func([IDL.Text], [Result], []),
914
975
  'pollAllPendingApplications' : IDL.Func([], [Result_3], []),
915
- 'pollApplicationStatus' : IDL.Func([IDL.Text], [Result_5], []),
976
+ 'pollApplicationStatus' : IDL.Func([IDL.Text], [Result_6], []),
916
977
  'recordContractExchange' : IDL.Func(
917
978
  [IDL.Text, IDL.Text, IDL.Text],
918
979
  [Result],
@@ -923,6 +984,16 @@ export const idlFactory = ({ IDL }) => {
923
984
  [Result_1],
924
985
  [],
925
986
  ),
987
+ 'recordDocShareRevoked' : IDL.Func(
988
+ [IDL.Text, IDL.Text, IDL.Text],
989
+ [Result_1],
990
+ [],
991
+ ),
992
+ 'recordDocShared' : IDL.Func(
993
+ [IDL.Text, IDL.Text, IDL.Text],
994
+ [Result_1],
995
+ [],
996
+ ),
926
997
  'recordFormUpload' : IDL.Func(
927
998
  [IDL.Text, IDL.Text, IDL.Text, IDL.Text],
928
999
  [Result_1],
@@ -943,8 +1014,6 @@ export const idlFactory = ({ IDL }) => {
943
1014
  [Result_1],
944
1015
  [],
945
1016
  ),
946
- 'recordDocShared' : IDL.Func([IDL.Text, IDL.Text, IDL.Text], [Result_1], []),
947
- 'recordDocShareRevoked' : IDL.Func([IDL.Text, IDL.Text, IDL.Text], [Result_1], []),
948
1017
  'recordQuoteRequested' : IDL.Func([IDL.Text, IDL.Text], [Result_1], []),
949
1018
  'recordRequisition' : IDL.Func([IDL.Text, Requisition], [Result_1], []),
950
1019
  'removeParty' : IDL.Func([IDL.Text, IDL.Principal], [Result_1], []),
@@ -953,6 +1022,7 @@ export const idlFactory = ({ IDL }) => {
953
1022
  [Result_1],
954
1023
  [],
955
1024
  ),
1025
+ 'repairTransactionMemberRoles' : IDL.Func([], [Result_5], []),
956
1026
  'requestOfficialSearch' : IDL.Func([IDL.Text], [Result_4], []),
957
1027
  'respondToRequisition' : IDL.Func(
958
1028
  [IDL.Text, IDL.Text, IDL.Text, IDL.Vec(IDL.Text)],
@@ -961,11 +1031,18 @@ export const idlFactory = ({ IDL }) => {
961
1031
  ),
962
1032
  'revokeBuyer' : IDL.Func([IDL.Text, IDL.Principal], [Result], []),
963
1033
  'runCrossReference' : IDL.Func([IDL.Text], [Result_3], []),
1034
+ 'setDelegateFromPlatform' : IDL.Func(
1035
+ [IDL.Text, IDL.Principal, IDL.Principal, IDL.Bool],
1036
+ [Result],
1037
+ [],
1038
+ ),
964
1039
  'setDocumentStorageCanister' : IDL.Func([IDL.Principal], [Result], []),
965
1040
  'setFlowState' : IDL.Func([IDL.Text, IDL.Text], [Result], []),
966
1041
  'setLandRegistryCanister' : IDL.Func([IDL.Text], [Result], []),
967
1042
  'setLedgerManagerCanister' : IDL.Func([IDL.Text], [Result], []),
968
1043
  'setListingData' : IDL.Func([IDL.Text, IDL.Text], [Result], []),
1044
+ 'setMonitorPrincipal' : IDL.Func([IDL.Principal], [Result], []),
1045
+ 'setPropertyLogbookCanister' : IDL.Func([IDL.Text], [Result], []),
969
1046
  'setPropertyRegistryCanister' : IDL.Func([IDL.Text], [Result], []),
970
1047
  'setUserManagementCanister' : IDL.Func([IDL.Text], [Result], []),
971
1048
  'trigger_land_registry_submission' : IDL.Func([IDL.Text], [Result], []),
@@ -96,30 +96,27 @@ type Result_5 =
96
96
  type Result_4 =
97
97
  variant {
98
98
  err: text;
99
- ok;
99
+ ok: AgentGrant;
100
100
  };
101
101
  type Result_3 =
102
102
  variant {
103
103
  err: text;
104
- ok: nat;
104
+ ok: BotAgent;
105
105
  };
106
106
  type Result_2 =
107
107
  variant {
108
108
  err: text;
109
- ok: BotAgent;
109
+ ok;
110
110
  };
111
111
  type Result_1 =
112
112
  variant {
113
113
  err: text;
114
- ok: text;
114
+ ok: nat;
115
115
  };
116
116
  type Result =
117
117
  variant {
118
118
  err: text;
119
- ok: record {
120
- ownerPrincipal: principal;
121
- role: BotRole;
122
- };
119
+ ok: text;
123
120
  };
124
121
  type Permission =
125
122
  variant {
@@ -135,6 +132,25 @@ type Permission =
135
132
  ViewSharedTransaction: text;
136
133
  ViewTransactionProgress: text;
137
134
  };
135
+ type GrantTier =
136
+ variant {
137
+ consequential;
138
+ readOnly;
139
+ };
140
+ type GrantStatus =
141
+ variant {
142
+ active;
143
+ preClaim;
144
+ revoked;
145
+ };
146
+ type GrantSource =
147
+ variant {
148
+ authMdAnonymous;
149
+ authMdEmail;
150
+ authMdIdJag;
151
+ invite;
152
+ oauth;
153
+ };
138
154
  type BotRole =
139
155
  variant {
140
156
  BotFirm;
@@ -176,6 +192,19 @@ type AuditLog =
176
192
  timestamp: Time;
177
193
  transactionId: opt text;
178
194
  };
195
+ type AgentGrant =
196
+ record {
197
+ agentPrincipal: principal;
198
+ clientId: opt text;
199
+ expiresAt: opt Time;
200
+ issuedAt: Time;
201
+ lastElevatedAt: opt Time;
202
+ ownerPrincipal: opt principal;
203
+ scopes: vec text;
204
+ source: GrantSource;
205
+ status: GrantStatus;
206
+ tier: GrantTier;
207
+ };
179
208
  type AdminRole =
180
209
  variant {
181
210
  regular;
@@ -218,21 +247,22 @@ service : {
218
247
  addTransactionMember: (transactionId: text, memberPrincipal: principal,
219
248
  role: UserType, canViewProgress: bool, canInviteOthers: bool, csrfToken:
220
249
  text) -> (bool);
221
- adminLinkPrincipals: (primary: principal, alias: principal) -> (Result_1);
250
+ adminLinkPrincipals: (primary: principal, alias: principal) -> (Result);
222
251
  amIAdmin: () -> (bool) query;
223
252
  bootstrapAdmin: (name: text, email: text) -> (bool);
224
253
  canUserAccessTransaction: (user: principal, txId: text) -> (bool) query;
225
254
  checkPermissionWithAudit: (permission: Permission) -> (bool);
226
- claimLinkCode: (code: text) -> (Result_1);
255
+ claimLinkCode: (code: text) -> (Result);
227
256
  createUserForPrincipal: (targetPrincipal: principal, name: text, email:
228
257
  text, mobile: text, userTypeText: text, csrfToken: text) -> (bool);
229
- deactivateBot: (botPrincipal: principal) -> (Result_4);
258
+ deactivateBot: (botPrincipal: principal) -> (Result_2);
230
259
  deleteUserByPrincipal: (targetPrincipal: principal, csrfToken: text) ->
231
260
  (bool);
232
261
  demoteAdmin: (target: principal, csrfToken: text) ->
233
262
  (AdminMutationResult_1);
234
263
  generateCSRFToken: () -> (text);
235
- generateLinkCode: () -> (Result_1);
264
+ generateLinkCode: () -> (Result);
265
+ getAgentGrant: (agentPrincipal: principal) -> (opt AgentGrant) query;
236
266
  getAllBots: () -> (vec BotAgent) query;
237
267
  getAllUsers: () -> (vec UserProfile) query;
238
268
  getAuditLogs: (limit: nat) -> (vec AuditLog) query;
@@ -241,7 +271,11 @@ service : {
241
271
  getBotAgent: (botPrincipal: principal) -> (opt BotAgent) query;
242
272
  getCSRFToken: () -> (opt text) query;
243
273
  getCycles: () -> (nat) query;
274
+ getGrantIssuer: () -> (opt principal) query;
244
275
  getLinkedPrincipals: ("principal": principal) -> (vec principal) query;
276
+ getMemberRoleInTransaction: (user: principal, txId: text) ->
277
+ (opt UserType) query;
278
+ getMyAgentGrants: () -> (vec AgentGrant) query;
245
279
  getMyBots: () -> (vec BotAgent) query;
246
280
  getMyLinkedPrincipals: () -> (vec principal) query;
247
281
  getMyManagingSolicitor: () -> (opt UserProfile) query;
@@ -262,34 +296,45 @@ service : {
262
296
  bool, csrfToken: text) -> (bool);
263
297
  listAdmins: () -> (vec AdminRecord) query;
264
298
  logBotAction: (botPrincipal: principal, action: text, transactionId:
265
- opt text, success: bool, metadata: text) -> (Result_4);
299
+ opt text, success: bool, metadata: text) -> (Result_2);
266
300
  myAdminRole: () -> (opt AdminRole) query;
267
301
  promoteAdmin: (target: principal, role: AdminRole, note: opt text,
268
302
  csrfToken: text) -> (AdminMutationResult);
269
- reactivateBot: (botPrincipal: principal) -> (Result_4);
303
+ reactivateBot: (botPrincipal: principal) -> (Result_2);
270
304
  recordAuditEntry: (actorType: ActorType, delegatedBy: opt principal,
271
305
  action: text, targetPrincipal: opt principal, transactionId: opt text,
272
- success: bool, metadata: text) -> (Result_3);
306
+ success: bool, metadata: text) -> (Result_1);
307
+ recordGrantElevation: (agentPrincipal: principal, ownerPrincipal:
308
+ principal, tier: GrantTier, scopes: vec text, source: GrantSource,
309
+ expiresAt: opt Time, clientId: opt text) -> (Result_4);
310
+ recordGrantIssued: (agentPrincipal: principal, ownerPrincipal:
311
+ opt principal, tier: GrantTier, scopes: vec text, status: GrantStatus,
312
+ source: GrantSource, expiresAt: opt Time) -> (Result_4);
313
+ recordGrantRevocation: (agentPrincipal: principal, reason: text) ->
314
+ (Result_2);
273
315
  registerBot: (botPrincipal: principal, name: text, description: text, role:
274
- BotRole) -> (Result_2);
316
+ BotRole) -> (Result_3);
275
317
  registerUser: (name: text, email: text, mobile: text, userType: text) ->
276
318
  (bool);
277
319
  registerUserV2: (name: text, email: text, mobile: text, userType: UserType,
278
320
  solicitorLicenseNumber: opt text, lawFirmName: opt text, lawFirmAddress:
279
321
  opt text, sraNumber: opt text, csrfToken: text) -> (bool);
322
+ repairTransactionMemberRole: (transactionId: text, memberPrincipal:
323
+ principal, role: UserType) -> (bool);
280
324
  resendVerificationEmail: (csrfToken: text) -> (bool);
281
325
  revokeSolicitorAccess: (solicitorPrincipal: principal, csrfToken: text) ->
282
326
  (bool);
283
- unlinkPrincipal: (alias: principal) -> (Result_1);
327
+ setGrantIssuer: (issuer: principal) -> (Result_2);
328
+ sweepStaleGrants: () -> (Result_1);
329
+ unlinkPrincipal: (alias: principal) -> (Result);
284
330
  updateMemberDocuments: (transactionId: text, uploadedDocumentName:
285
331
  text, csrfToken: text) -> (bool);
286
332
  updateSolicitorLRDetails: (sraNumber: opt text, businessGatewayEnabled:
287
333
  bool, businessGatewayUsername: opt text, firmSRANumber: opt text,
288
- conveyancerReference: opt text) -> (Result_1);
334
+ conveyancerReference: opt text) -> (Result);
289
335
  updateTransactionMemberRequiredDocs: (transactionId: text,
290
336
  documentsToRemove: vec text, csrfToken: text) -> (bool);
291
337
  validateAdmin: ("principal": principal) -> (bool) query;
292
- validateBot: (botPrincipal: principal) -> (Result) query;
293
338
  validateCSRFToken: (token: text) -> (bool);
294
339
  verifyEmail: (token: text, csrfToken: text) -> (bool);
295
340
  verifyUser: (userPrincipal: principal, csrfToken: text) -> (bool);