viz-js-lib 0.17.0 → 0.18.1
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/api-frontend/app.js +3 -1
- package/api-frontend/jsonrpc-api-spec.json +17 -0
- package/dist/statistics.html +1 -1
- package/dist/viz-tests.min.js +1 -1
- package/dist/viz-tests.min.js.gz +0 -0
- package/dist/viz.min.js +2 -2
- package/dist/viz.min.js.gz +0 -0
- package/lib/api/methods.js +4 -0
- package/lib/auth/serializer/src/operations.js +14 -1
- package/lib/broadcast/operations.js +4 -0
- package/package.json +1 -1
- package/test/methods_by_version.js +1 -0
package/api-frontend/app.js
CHANGED
|
@@ -42,6 +42,7 @@ const METHODS = [
|
|
|
42
42
|
{api:"database_api",method:"get_accounts_on_sale",params:["from","limit","name_prefix"]},
|
|
43
43
|
{api:"database_api",method:"get_accounts_on_auction",params:["from","limit","name_prefix"]},
|
|
44
44
|
{api:"database_api",method:"get_subaccounts_on_sale",params:["from","limit","name_prefix"]},
|
|
45
|
+
{api:"database_api",method:"get_agent_permissions",params:["account"]},
|
|
45
46
|
{api:"account_by_key",method:"get_key_references",params:["account_name_type"]},
|
|
46
47
|
{api:"network_broadcast_api",method:"broadcast_transaction",params:["trx"]},
|
|
47
48
|
{api:"network_broadcast_api",method:"broadcast_transaction_with_callback",params:["confirmationCallback","trx"]},
|
|
@@ -420,7 +421,8 @@ const SPEC = {
|
|
|
420
421
|
get_proposed_transactions: {d:"Returns proposed transactions (proposals) associated with a given account.",p:{account:{c:"Account Name",d:"The account name whose proposals to retrieve."},from:{c:"From Offset",d:"Offset for pagination (number of results to skip)."},limit:{c:"Limit",d:"Maximum number of proposals to return (max 100)."}}},
|
|
421
422
|
get_accounts_on_sale: {d:"Returns accounts currently on sale (direct sale, not auction).",p:{from:{c:"From Offset",d:"Number of results to skip for pagination."},limit:{c:"Limit",d:"Maximum number of results (max 1000)."},name_prefix:{c:"Name Prefix",d:"Optional. Only accounts whose name starts with this prefix. Matched against the account-name index, so it searches the whole set and finds accounts past the first page. Empty or omitted returns all."}}},
|
|
422
423
|
get_accounts_on_auction: {d:"Returns accounts currently on auction (no target buyer set).",p:{from:{c:"From Offset",d:"Number of results to skip for pagination."},limit:{c:"Limit",d:"Maximum number of results (max 1000)."},name_prefix:{c:"Name Prefix",d:"Optional. Only accounts whose name starts with this prefix. Matched against the account-name index, so it searches the whole set and finds accounts past the first page. Empty or omitted returns all."}}},
|
|
423
|
-
get_subaccounts_on_sale: {d:"Returns subaccounts currently on sale.",p:{from:{c:"From Offset",d:"Number of results to skip for pagination."},limit:{c:"Limit",d:"Maximum number of results (max 1000)."},name_prefix:{c:"Name Prefix",d:"Optional. Only subaccounts whose name starts with this prefix. Matched against the account-name index, so it searches the whole set and finds subaccounts past the first page. Empty or omitted returns all."}}}
|
|
424
|
+
get_subaccounts_on_sale: {d:"Returns subaccounts currently on sale.",p:{from:{c:"From Offset",d:"Number of results to skip for pagination."},limit:{c:"Limit",d:"Maximum number of results (max 1000)."},name_prefix:{c:"Name Prefix",d:"Optional. Only subaccounts whose name starts with this prefix. Matched against the account-name index, so it searches the whole set and finds subaccounts past the first page. Empty or omitted returns all."}}},
|
|
425
|
+
get_agent_permissions: {d:"Returns the agents of a principal (HF15 agent access): name, public key, allowed operations, expiration (1970-01-01T00:00:00 = perpetual), addons (off-chain scopes such as vizhub) and an expired flag. At most 16 rows, ordered by agent name. Nodes without HF15 answer with an unknown-method error.",p:{account:{c:"Account Name",d:"The principal whose agents to return."}}}
|
|
424
426
|
},
|
|
425
427
|
account_by_key: {
|
|
426
428
|
get_key_references: {d:"Returns all account names that reference the given public keys in their authority.",p:{account_name_type:{c:"Public Keys",d:"Array of public keys to look up.",t:"array"}}}
|
|
@@ -852,6 +852,23 @@
|
|
|
852
852
|
"type": "array",
|
|
853
853
|
"description": "Array of subaccount_on_sale_api_object entries."
|
|
854
854
|
}
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"method": "get_agent_permissions",
|
|
858
|
+
"description": "Returns the agents of a principal (HF15 agent access), ordered by agent name. At most 16 rows. Expired rows are returned with expired=true: they grant nothing and are removed on the principal's next grant. Nodes without HF15 answer with an unknown-method error.",
|
|
859
|
+
"params": [
|
|
860
|
+
{
|
|
861
|
+
"name": "account",
|
|
862
|
+
"caption": "Account Name",
|
|
863
|
+
"description": "The principal whose agents to return.",
|
|
864
|
+
"type": "string",
|
|
865
|
+
"required": true
|
|
866
|
+
}
|
|
867
|
+
],
|
|
868
|
+
"returns": {
|
|
869
|
+
"type": "array",
|
|
870
|
+
"description": "Array of agent_permission_api_object: account, agent_name, agent_key, operations, expiration (1970-01-01T00:00:00 = perpetual), addons (off-chain scopes such as vizhub), expired."
|
|
871
|
+
}
|
|
855
872
|
}
|
|
856
873
|
]
|
|
857
874
|
},
|