@propxchain/core-client 0.5.0-canary.42 → 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.
- package/dist/canisters/user_management/user_management.did.d.ts +11 -1
- package/dist/canisters/user_management/user_management.did.js +3 -0
- package/package.json +1 -1
- package/src/canisters/user_management/user_management.did +3 -1
- package/src/canisters/user_management/user_management.did.d.ts +11 -1
- package/src/canisters/user_management/user_management.did.js +3 -0
|
@@ -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
|
-
[
|
|
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.
|
|
3
|
+
"version": "0.6.0-canary.43",
|
|
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",
|
|
@@ -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
|
-
[
|
|
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
|
[],
|