@propxchain/core-client 0.5.0-canary.42 → 0.7.0-canary.44

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.
@@ -896,6 +896,10 @@ export interface _SERVICE {
896
896
  * / (buyer + seller racing to sign) while canModifyTransaction await is in flight.
897
897
  */
898
898
  'recordPartySignature' : ActorMethod<[string, string, string], Result>,
899
+ 'recordPdtfExchange' : ActorMethod<
900
+ [string, { 'exported' : null } | { 'imported' : null }, string, string, bigint, bigint],
901
+ Result_1
902
+ >,
899
903
  'recordQuoteReceived' : ActorMethod<
900
904
  [string, string, string, bigint],
901
905
  Result_1
@@ -1009,6 +1009,18 @@ export const idlFactory = ({ IDL }) => {
1009
1009
  [Result],
1010
1010
  [],
1011
1011
  ),
1012
+ 'recordPdtfExchange' : IDL.Func(
1013
+ [
1014
+ IDL.Text,
1015
+ IDL.Variant({ 'exported' : IDL.Null, 'imported' : IDL.Null }),
1016
+ IDL.Text,
1017
+ IDL.Text,
1018
+ IDL.Nat,
1019
+ IDL.Nat,
1020
+ ],
1021
+ [Result_1],
1022
+ [],
1023
+ ),
1012
1024
  'recordQuoteReceived' : IDL.Func(
1013
1025
  [IDL.Text, IDL.Text, IDL.Text, IDL.Nat],
1014
1026
  [Result_1],
@@ -26,6 +26,7 @@ export type AdminRole = { 'regular' : null } |
26
26
  { 'super' : null };
27
27
  export interface AgentGrant {
28
28
  'status' : GrantStatus,
29
+ 'clientId' : [] | [string],
29
30
  'expiresAt' : [] | [Time],
30
31
  'source' : GrantSource,
31
32
  'ownerPrincipal' : [] | [Principal],
@@ -71,6 +72,7 @@ export type BotRole = { 'BotFirm' : null } |
71
72
  { 'BotInternal' : null } |
72
73
  { 'BotPersonal' : null };
73
74
  export type GrantSource = { 'authMdEmail' : null } |
75
+ { 'oauth' : null } |
74
76
  { 'authMdIdJag' : null } |
75
77
  { 'invite' : null } |
76
78
  { 'authMdAnonymous' : null };
@@ -254,7 +256,15 @@ export interface _SERVICE {
254
256
  Result_1
255
257
  >,
256
258
  'recordGrantElevation' : ActorMethod<
257
- [Principal, Principal, GrantTier, Array<string>, GrantSource, [] | [Time]],
259
+ [
260
+ Principal,
261
+ Principal,
262
+ GrantTier,
263
+ Array<string>,
264
+ GrantSource,
265
+ [] | [Time],
266
+ [] | [string],
267
+ ],
258
268
  Result_4
259
269
  >,
260
270
  'recordGrantIssued' : ActorMethod<
@@ -51,6 +51,7 @@ export const idlFactory = ({ IDL }) => {
51
51
  const Time = IDL.Int;
52
52
  const GrantSource = IDL.Variant({
53
53
  'authMdEmail' : IDL.Null,
54
+ 'oauth' : IDL.Null,
54
55
  'authMdIdJag' : IDL.Null,
55
56
  'invite' : IDL.Null,
56
57
  'authMdAnonymous' : IDL.Null,
@@ -61,6 +62,7 @@ export const idlFactory = ({ IDL }) => {
61
62
  });
62
63
  const AgentGrant = IDL.Record({
63
64
  'status' : GrantStatus,
65
+ 'clientId' : IDL.Opt(IDL.Text),
64
66
  'expiresAt' : IDL.Opt(Time),
65
67
  'source' : GrantSource,
66
68
  'ownerPrincipal' : IDL.Opt(IDL.Principal),
@@ -331,6 +333,7 @@ export const idlFactory = ({ IDL }) => {
331
333
  IDL.Vec(IDL.Text),
332
334
  GrantSource,
333
335
  IDL.Opt(Time),
336
+ IDL.Opt(IDL.Text),
334
337
  ],
335
338
  [Result_4],
336
339
  [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@propxchain/core-client",
3
- "version": "0.5.0-canary.42",
3
+ "version": "0.7.0-canary.44",
4
4
  "description": "Typed TypeScript client for the PropXchain core canisters on the Internet Computer. Includes a deterministic mock mode for local development and tests.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -1062,6 +1062,12 @@ service : {
1062
1062
  /// (buyer + seller racing to sign) while canModifyTransaction await is in flight.
1063
1063
  recordPartySignature: (transactionID: text, signatureHash: text,
1064
1064
  signingRole: text) -> (Result);
1065
+ recordPdtfExchange: (transactionId: text, direction:
1066
+ variant {
1067
+ exported;
1068
+ imported;
1069
+ }, claimSetHash: text, counterparty: text, acceptedClaims: nat,
1070
+ rejectedClaims: nat) -> (Result_1);
1065
1071
  recordQuoteReceived: (txId: text, conveyancerId: text, quoteHash: text,
1066
1072
  quotedAmountPence: nat) -> (Result_1);
1067
1073
  recordQuoteRequested: (txId: text, conveyancerId: text) -> (Result_1);
@@ -896,6 +896,10 @@ export interface _SERVICE {
896
896
  * / (buyer + seller racing to sign) while canModifyTransaction await is in flight.
897
897
  */
898
898
  'recordPartySignature' : ActorMethod<[string, string, string], Result>,
899
+ 'recordPdtfExchange' : ActorMethod<
900
+ [string, { 'exported' : null } | { 'imported' : null }, string, string, bigint, bigint],
901
+ Result_1
902
+ >,
899
903
  'recordQuoteReceived' : ActorMethod<
900
904
  [string, string, string, bigint],
901
905
  Result_1
@@ -1009,6 +1009,18 @@ export const idlFactory = ({ IDL }) => {
1009
1009
  [Result],
1010
1010
  [],
1011
1011
  ),
1012
+ 'recordPdtfExchange' : IDL.Func(
1013
+ [
1014
+ IDL.Text,
1015
+ IDL.Variant({ 'exported' : IDL.Null, 'imported' : IDL.Null }),
1016
+ IDL.Text,
1017
+ IDL.Text,
1018
+ IDL.Nat,
1019
+ IDL.Nat,
1020
+ ],
1021
+ [Result_1],
1022
+ [],
1023
+ ),
1012
1024
  'recordQuoteReceived' : IDL.Func(
1013
1025
  [IDL.Text, IDL.Text, IDL.Text, IDL.Nat],
1014
1026
  [Result_1],
@@ -149,6 +149,7 @@ type GrantSource =
149
149
  authMdEmail;
150
150
  authMdIdJag;
151
151
  invite;
152
+ oauth;
152
153
  };
153
154
  type BotRole =
154
155
  variant {
@@ -194,6 +195,7 @@ type AuditLog =
194
195
  type AgentGrant =
195
196
  record {
196
197
  agentPrincipal: principal;
198
+ clientId: opt text;
197
199
  expiresAt: opt Time;
198
200
  issuedAt: Time;
199
201
  lastElevatedAt: opt Time;
@@ -304,7 +306,7 @@ service : {
304
306
  success: bool, metadata: text) -> (Result_1);
305
307
  recordGrantElevation: (agentPrincipal: principal, ownerPrincipal:
306
308
  principal, tier: GrantTier, scopes: vec text, source: GrantSource,
307
- expiresAt: opt Time) -> (Result_4);
309
+ expiresAt: opt Time, clientId: opt text) -> (Result_4);
308
310
  recordGrantIssued: (agentPrincipal: principal, ownerPrincipal:
309
311
  opt principal, tier: GrantTier, scopes: vec text, status: GrantStatus,
310
312
  source: GrantSource, expiresAt: opt Time) -> (Result_4);
@@ -26,6 +26,7 @@ export type AdminRole = { 'regular' : null } |
26
26
  { 'super' : null };
27
27
  export interface AgentGrant {
28
28
  'status' : GrantStatus,
29
+ 'clientId' : [] | [string],
29
30
  'expiresAt' : [] | [Time],
30
31
  'source' : GrantSource,
31
32
  'ownerPrincipal' : [] | [Principal],
@@ -71,6 +72,7 @@ export type BotRole = { 'BotFirm' : null } |
71
72
  { 'BotInternal' : null } |
72
73
  { 'BotPersonal' : null };
73
74
  export type GrantSource = { 'authMdEmail' : null } |
75
+ { 'oauth' : null } |
74
76
  { 'authMdIdJag' : null } |
75
77
  { 'invite' : null } |
76
78
  { 'authMdAnonymous' : null };
@@ -254,7 +256,15 @@ export interface _SERVICE {
254
256
  Result_1
255
257
  >,
256
258
  'recordGrantElevation' : ActorMethod<
257
- [Principal, Principal, GrantTier, Array<string>, GrantSource, [] | [Time]],
259
+ [
260
+ Principal,
261
+ Principal,
262
+ GrantTier,
263
+ Array<string>,
264
+ GrantSource,
265
+ [] | [Time],
266
+ [] | [string],
267
+ ],
258
268
  Result_4
259
269
  >,
260
270
  'recordGrantIssued' : ActorMethod<
@@ -51,6 +51,7 @@ export const idlFactory = ({ IDL }) => {
51
51
  const Time = IDL.Int;
52
52
  const GrantSource = IDL.Variant({
53
53
  'authMdEmail' : IDL.Null,
54
+ 'oauth' : IDL.Null,
54
55
  'authMdIdJag' : IDL.Null,
55
56
  'invite' : IDL.Null,
56
57
  'authMdAnonymous' : IDL.Null,
@@ -61,6 +62,7 @@ export const idlFactory = ({ IDL }) => {
61
62
  });
62
63
  const AgentGrant = IDL.Record({
63
64
  'status' : GrantStatus,
65
+ 'clientId' : IDL.Opt(IDL.Text),
64
66
  'expiresAt' : IDL.Opt(Time),
65
67
  'source' : GrantSource,
66
68
  'ownerPrincipal' : IDL.Opt(IDL.Principal),
@@ -331,6 +333,7 @@ export const idlFactory = ({ IDL }) => {
331
333
  IDL.Vec(IDL.Text),
332
334
  GrantSource,
333
335
  IDL.Opt(Time),
336
+ IDL.Opt(IDL.Text),
334
337
  ],
335
338
  [Result_4],
336
339
  [],