@terminal3/t3n-sdk 5.23.0 → 5.24.0
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/cli/index.js +1 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2500,6 +2500,13 @@ interface ActivityEntry {
|
|
|
2500
2500
|
* validated one.
|
|
2501
2501
|
*/
|
|
2502
2502
|
roles?: string[];
|
|
2503
|
+
/**
|
|
2504
|
+
* Labels the contract chose for this call — the `custom` object it returned
|
|
2505
|
+
* in its response, which the node removes from the response and stores on
|
|
2506
|
+
* the entry. Flat string → string, capped node-side. Omitted when the
|
|
2507
|
+
* contract returned none, and always on `denied` / `error`.
|
|
2508
|
+
*/
|
|
2509
|
+
custom?: Record<string, string>;
|
|
2503
2510
|
}
|
|
2504
2511
|
/**
|
|
2505
2512
|
* One page of the organisation's activity report — **newest first**, i.e.
|
|
@@ -2576,6 +2583,17 @@ interface GetActivityLogOptions {
|
|
|
2576
2583
|
* substring, compared case-insensitively. Must not be empty.
|
|
2577
2584
|
*/
|
|
2578
2585
|
function?: string;
|
|
2586
|
+
/**
|
|
2587
|
+
* Keep only calls whose {@link ActivityEntry.custom} labels carry every one
|
|
2588
|
+
* of these pairs, compared exactly. A call without labels never matches.
|
|
2589
|
+
* Must name at least one key; keys and values must not be empty.
|
|
2590
|
+
*/
|
|
2591
|
+
custom?: Record<string, string>;
|
|
2592
|
+
/**
|
|
2593
|
+
* `true` keeps only calls carrying at least one `custom` label, `false` only
|
|
2594
|
+
* those carrying none.
|
|
2595
|
+
*/
|
|
2596
|
+
has_custom?: boolean;
|
|
2579
2597
|
}
|
|
2580
2598
|
/**
|
|
2581
2599
|
* Params for a CSV export of the activity log (`exportActivityLog`).
|
|
@@ -2610,7 +2628,8 @@ interface ActivityExportFile {
|
|
|
2610
2628
|
/**
|
|
2611
2629
|
* The CSV text, header row first. Columns are fixed: `seq_no`, `timestamp_ms`,
|
|
2612
2630
|
* `caller_type`, `actor`, `on_behalf_of`, `org`, `contract`, `function`,
|
|
2613
|
-
* `outcome
|
|
2631
|
+
* `outcome`, `custom` (the entry's labels as one JSON object, empty when
|
|
2632
|
+
* none). For a browser download, wrap it in a `Blob` and click
|
|
2614
2633
|
* an `<a download>` — the response is sealed, so there is no URL to navigate.
|
|
2615
2634
|
*/
|
|
2616
2635
|
csv: string;
|