@propxchain/core-client 0.4.0-canary.39 → 0.5.0-canary.42

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 +65 -18
  13. package/dist/canisters/user_management/user_management.did.js +90 -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 +62 -19
  33. package/src/canisters/user_management/user_management.did.d.ts +65 -18
  34. package/src/canisters/user_management/user_management.did.js +90 -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], []),
@@ -24,6 +24,17 @@ export interface AdminRecord {
24
24
  }
25
25
  export type AdminRole = { 'regular' : null } |
26
26
  { 'super' : null };
27
+ export interface AgentGrant {
28
+ 'status' : GrantStatus,
29
+ 'expiresAt' : [] | [Time],
30
+ 'source' : GrantSource,
31
+ 'ownerPrincipal' : [] | [Principal],
32
+ 'scopes' : Array<string>,
33
+ 'tier' : GrantTier,
34
+ 'issuedAt' : Time,
35
+ 'lastElevatedAt' : [] | [Time],
36
+ 'agentPrincipal' : Principal,
37
+ }
27
38
  export interface AuditLog {
28
39
  'id' : bigint,
29
40
  'action' : string,
@@ -59,6 +70,15 @@ export interface BotAgent {
59
70
  export type BotRole = { 'BotFirm' : null } |
60
71
  { 'BotInternal' : null } |
61
72
  { 'BotPersonal' : null };
73
+ export type GrantSource = { 'authMdEmail' : null } |
74
+ { 'authMdIdJag' : null } |
75
+ { 'invite' : null } |
76
+ { 'authMdAnonymous' : null };
77
+ export type GrantStatus = { 'active' : null } |
78
+ { 'revoked' : null } |
79
+ { 'preClaim' : null };
80
+ export type GrantTier = { 'readOnly' : null } |
81
+ { 'consequential' : null };
62
82
  export type Permission = { 'ViewTransactionProgress' : string } |
63
83
  { 'ViewSharedTransaction' : string } |
64
84
  { 'ViewDevelopmentUnits' : string } |
@@ -67,17 +87,15 @@ export type Permission = { 'ViewTransactionProgress' : string } |
67
87
  { 'AdminViewAllTransactions' : null } |
68
88
  { 'AdminManageUsers' : null } |
69
89
  { 'UpdateMemberDocuments' : [string, Principal] };
70
- export type Result = {
71
- 'ok' : { 'ownerPrincipal' : Principal, 'role' : BotRole }
72
- } |
90
+ export type Result = { 'ok' : string } |
73
91
  { 'err' : string };
74
- export type Result_1 = { 'ok' : string } |
92
+ export type Result_1 = { 'ok' : bigint } |
75
93
  { 'err' : string };
76
- export type Result_2 = { 'ok' : BotAgent } |
94
+ export type Result_2 = { 'ok' : null } |
77
95
  { 'err' : string };
78
- export type Result_3 = { 'ok' : bigint } |
96
+ export type Result_3 = { 'ok' : BotAgent } |
79
97
  { 'err' : string };
80
- export type Result_4 = { 'ok' : null } |
98
+ export type Result_4 = { 'ok' : AgentGrant } |
81
99
  { 'err' : string };
82
100
  export type Result_5 = { 'ok' : SolicitorSubmissionDetails } |
83
101
  { 'err' : string };
@@ -166,21 +184,22 @@ export interface _SERVICE {
166
184
  [string, Principal, UserType, boolean, boolean, string],
167
185
  boolean
168
186
  >,
169
- 'adminLinkPrincipals' : ActorMethod<[Principal, Principal], Result_1>,
187
+ 'adminLinkPrincipals' : ActorMethod<[Principal, Principal], Result>,
170
188
  'amIAdmin' : ActorMethod<[], boolean>,
171
189
  'bootstrapAdmin' : ActorMethod<[string, string], boolean>,
172
190
  'canUserAccessTransaction' : ActorMethod<[Principal, string], boolean>,
173
191
  'checkPermissionWithAudit' : ActorMethod<[Permission], boolean>,
174
- 'claimLinkCode' : ActorMethod<[string], Result_1>,
192
+ 'claimLinkCode' : ActorMethod<[string], Result>,
175
193
  'createUserForPrincipal' : ActorMethod<
176
194
  [Principal, string, string, string, string, string],
177
195
  boolean
178
196
  >,
179
- 'deactivateBot' : ActorMethod<[Principal], Result_4>,
197
+ 'deactivateBot' : ActorMethod<[Principal], Result_2>,
180
198
  'deleteUserByPrincipal' : ActorMethod<[Principal, string], boolean>,
181
199
  'demoteAdmin' : ActorMethod<[Principal, string], AdminMutationResult_1>,
182
200
  'generateCSRFToken' : ActorMethod<[], string>,
183
- 'generateLinkCode' : ActorMethod<[], Result_1>,
201
+ 'generateLinkCode' : ActorMethod<[], Result>,
202
+ 'getAgentGrant' : ActorMethod<[Principal], [] | [AgentGrant]>,
184
203
  'getAllBots' : ActorMethod<[], Array<BotAgent>>,
185
204
  'getAllUsers' : ActorMethod<[], Array<UserProfile>>,
186
205
  'getAuditLogs' : ActorMethod<[bigint], Array<AuditLog>>,
@@ -188,7 +207,13 @@ export interface _SERVICE {
188
207
  'getBotAgent' : ActorMethod<[Principal], [] | [BotAgent]>,
189
208
  'getCSRFToken' : ActorMethod<[], [] | [string]>,
190
209
  'getCycles' : ActorMethod<[], bigint>,
210
+ 'getGrantIssuer' : ActorMethod<[], [] | [Principal]>,
191
211
  'getLinkedPrincipals' : ActorMethod<[Principal], Array<Principal>>,
212
+ 'getMemberRoleInTransaction' : ActorMethod<
213
+ [Principal, string],
214
+ [] | [UserType]
215
+ >,
216
+ 'getMyAgentGrants' : ActorMethod<[], Array<AgentGrant>>,
192
217
  'getMyBots' : ActorMethod<[], Array<BotAgent>>,
193
218
  'getMyLinkedPrincipals' : ActorMethod<[], Array<Principal>>,
194
219
  'getMyManagingSolicitor' : ActorMethod<[], [] | [UserProfile]>,
@@ -208,14 +233,14 @@ export interface _SERVICE {
208
233
  'listAdmins' : ActorMethod<[], Array<AdminRecord>>,
209
234
  'logBotAction' : ActorMethod<
210
235
  [Principal, string, [] | [string], boolean, string],
211
- Result_4
236
+ Result_2
212
237
  >,
213
238
  'myAdminRole' : ActorMethod<[], [] | [AdminRole]>,
214
239
  'promoteAdmin' : ActorMethod<
215
240
  [Principal, AdminRole, [] | [string], string],
216
241
  AdminMutationResult
217
242
  >,
218
- 'reactivateBot' : ActorMethod<[Principal], Result_4>,
243
+ 'reactivateBot' : ActorMethod<[Principal], Result_2>,
219
244
  'recordAuditEntry' : ActorMethod<
220
245
  [
221
246
  ActorType,
@@ -226,9 +251,26 @@ export interface _SERVICE {
226
251
  boolean,
227
252
  string,
228
253
  ],
229
- Result_3
254
+ Result_1
255
+ >,
256
+ 'recordGrantElevation' : ActorMethod<
257
+ [Principal, Principal, GrantTier, Array<string>, GrantSource, [] | [Time]],
258
+ Result_4
259
+ >,
260
+ 'recordGrantIssued' : ActorMethod<
261
+ [
262
+ Principal,
263
+ [] | [Principal],
264
+ GrantTier,
265
+ Array<string>,
266
+ GrantStatus,
267
+ GrantSource,
268
+ [] | [Time],
269
+ ],
270
+ Result_4
230
271
  >,
231
- 'registerBot' : ActorMethod<[Principal, string, string, BotRole], Result_2>,
272
+ 'recordGrantRevocation' : ActorMethod<[Principal, string], Result_2>,
273
+ 'registerBot' : ActorMethod<[Principal, string, string, BotRole], Result_3>,
232
274
  'registerUser' : ActorMethod<[string, string, string, string], boolean>,
233
275
  'registerUserV2' : ActorMethod<
234
276
  [
@@ -244,20 +286,25 @@ export interface _SERVICE {
244
286
  ],
245
287
  boolean
246
288
  >,
289
+ 'repairTransactionMemberRole' : ActorMethod<
290
+ [string, Principal, UserType],
291
+ boolean
292
+ >,
247
293
  'resendVerificationEmail' : ActorMethod<[string], boolean>,
248
294
  'revokeSolicitorAccess' : ActorMethod<[Principal, string], boolean>,
249
- 'unlinkPrincipal' : ActorMethod<[Principal], Result_1>,
295
+ 'setGrantIssuer' : ActorMethod<[Principal], Result_2>,
296
+ 'sweepStaleGrants' : ActorMethod<[], Result_1>,
297
+ 'unlinkPrincipal' : ActorMethod<[Principal], Result>,
250
298
  'updateMemberDocuments' : ActorMethod<[string, string, string], boolean>,
251
299
  'updateSolicitorLRDetails' : ActorMethod<
252
300
  [[] | [string], boolean, [] | [string], [] | [string], [] | [string]],
253
- Result_1
301
+ Result
254
302
  >,
255
303
  'updateTransactionMemberRequiredDocs' : ActorMethod<
256
304
  [string, Array<string>, string],
257
305
  boolean
258
306
  >,
259
307
  'validateAdmin' : ActorMethod<[Principal], boolean>,
260
- 'validateBot' : ActorMethod<[Principal], Result>,
261
308
  'validateCSRFToken' : ActorMethod<[string], boolean>,
262
309
  'verifyEmail' : ActorMethod<[string, string], boolean>,
263
310
  'verifyUser' : ActorMethod<[Principal, string], boolean>,