@terminal3/t3n-sdk 5.10.0 → 5.11.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 +22 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5638,6 +5638,28 @@ declare class SessionUsageReportClient {
|
|
|
5638
5638
|
* the partial count the node reports. The year forms cannot reach that.
|
|
5639
5639
|
*/
|
|
5640
5640
|
getOrgCallCountForWindow(orgDid: string, fromMs: number, toMs: number): Promise<number>;
|
|
5641
|
+
/**
|
|
5642
|
+
* How many calls the organisation's agents made over `[fromMs, toMs)` in
|
|
5643
|
+
* milliseconds — **including the ones that were refused or failed**, since
|
|
5644
|
+
* reviewing agents means seeing what they attempted.
|
|
5645
|
+
*
|
|
5646
|
+
* That makes this figure independent of {@link getOrgCallCountForWindow}
|
|
5647
|
+
* rather than a share of it: a window of nothing but refused agent calls
|
|
5648
|
+
* reads non-zero here and zero there, so do not render one as a percentage
|
|
5649
|
+
* of the other. The node keeps them as two contract exports for that reason,
|
|
5650
|
+
* and each reply carries only its own number — asking for both is two reads.
|
|
5651
|
+
* Both do exclude administrative dispatches, this read included.
|
|
5652
|
+
*
|
|
5653
|
+
* Agent or person comes from the actor classification stamped on each call
|
|
5654
|
+
* when it happened — a call an agent made before its DID was classified as
|
|
5655
|
+
* one stays in the human share for ever.
|
|
5656
|
+
*
|
|
5657
|
+
* Same window rules, same `not_org_admin: ...` refusal, and the same throw
|
|
5658
|
+
* on a window too wide to read in one call as
|
|
5659
|
+
* {@link getOrgCallCountForWindow}. There is no calendar-year form: pass the
|
|
5660
|
+
* window you want, on whole UTC days.
|
|
5661
|
+
*/
|
|
5662
|
+
getOrgAgentCallCountForWindow(orgDid: string, fromMs: number, toMs: number): Promise<number>;
|
|
5641
5663
|
}
|
|
5642
5664
|
/**
|
|
5643
5665
|
* Construct a {@link SessionUsageReportClient} from a caller-owned
|