@openvtc/trust-tasks 0.19.15 → 0.19.17
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/CHANGELOG.md +4 -0
- package/dist/_shared/components.d.ts +314 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/messaging/_shared/0.1/mediator-ops.d.ts +16 -0
- package/dist/messaging/_shared/0.1/mediator-ops.d.ts.map +1 -0
- package/dist/messaging/_shared/0.1/mediator-ops.js +6 -0
- package/dist/messaging/_shared/0.1/mediator-ops.js.map +1 -0
- package/dist/messaging/message/delete/0.1/payload.d.ts +370 -0
- package/dist/messaging/message/delete/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/message/delete/0.1/payload.js +206 -0
- package/dist/messaging/message/delete/0.1/payload.js.map +1 -0
- package/dist/messaging/message/get/0.1/payload.d.ts +568 -0
- package/dist/messaging/message/get/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/message/get/0.1/payload.js +332 -0
- package/dist/messaging/message/get/0.1/payload.js.map +1 -0
- package/dist/messaging/message/list/0.1/payload.d.ts +627 -0
- package/dist/messaging/message/list/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/message/list/0.1/payload.js +352 -0
- package/dist/messaging/message/list/0.1/payload.js.map +1 -0
- package/dist/messaging/monitor/event/0.1/payload.d.ts +385 -0
- package/dist/messaging/monitor/event/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/monitor/event/0.1/payload.js +230 -0
- package/dist/messaging/monitor/event/0.1/payload.js.map +1 -0
- package/dist/messaging/monitor/subscribe/0.1/payload.d.ts +719 -0
- package/dist/messaging/monitor/subscribe/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/monitor/subscribe/0.1/payload.js +417 -0
- package/dist/messaging/monitor/subscribe/0.1/payload.js.map +1 -0
- package/dist/messaging/monitor/unsubscribe/0.1/payload.d.ts +245 -0
- package/dist/messaging/monitor/unsubscribe/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/monitor/unsubscribe/0.1/payload.js +136 -0
- package/dist/messaging/monitor/unsubscribe/0.1/payload.js.map +1 -0
- package/dist/messaging/queue/list/0.1/payload.d.ts +679 -0
- package/dist/messaging/queue/list/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/queue/list/0.1/payload.js +377 -0
- package/dist/messaging/queue/list/0.1/payload.js.map +1 -0
- package/dist/messaging/queue/purge/0.1/payload.d.ts +389 -0
- package/dist/messaging/queue/purge/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/queue/purge/0.1/payload.js +210 -0
- package/dist/messaging/queue/purge/0.1/payload.js.map +1 -0
- package/dist/messaging/queue/status/0.1/payload.d.ts +697 -0
- package/dist/messaging/queue/status/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/queue/status/0.1/payload.js +389 -0
- package/dist/messaging/queue/status/0.1/payload.js.map +1 -0
- package/dist/messaging/stats/show/0.1/payload.d.ts +963 -0
- package/dist/messaging/stats/show/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/stats/show/0.1/payload.js +515 -0
- package/dist/messaging/stats/show/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +342 -0
- package/src/index.ts +11 -0
- package/src/messaging/_shared/0.1/mediator-ops.ts +17 -0
- package/src/messaging/message/delete/0.1/payload.ts +259 -0
- package/src/messaging/message/get/0.1/payload.ts +375 -0
- package/src/messaging/message/list/0.1/payload.ts +410 -0
- package/src/messaging/monitor/event/0.1/payload.ts +267 -0
- package/src/messaging/monitor/subscribe/0.1/payload.ts +473 -0
- package/src/messaging/monitor/unsubscribe/0.1/payload.ts +172 -0
- package/src/messaging/queue/list/0.1/payload.ts +443 -0
- package/src/messaging/queue/purge/0.1/payload.ts +270 -0
- package/src/messaging/queue/status/0.1/payload.ts +439 -0
- package/src/messaging/stats/show/0.1/payload.ts +611 -0
|
@@ -155,6 +155,10 @@ export type DataCommitment = DigestMultibase;
|
|
|
155
155
|
* The approver's answer. `deny` aborts the pending request; a subsequent submit of the same task starts a fresh one.
|
|
156
156
|
*/
|
|
157
157
|
export type Decision = "approve" | "deny";
|
|
158
|
+
/**
|
|
159
|
+
* `queued`: stored and not yet handed to the recipient. `delivered`: handed to the recipient (pickup or live stream) but not yet deleted by it — the recipient has not acknowledged it.
|
|
160
|
+
*/
|
|
161
|
+
export type DeliveryState = "queued" | "delivered";
|
|
158
162
|
/**
|
|
159
163
|
* Producer-supplied attestation at registration time, verifiable by the maintainer against the platform's attestation infrastructure. Tagged union over the discriminator `kind`.
|
|
160
164
|
*/
|
|
@@ -364,6 +368,10 @@ export type Provenance =
|
|
|
364
368
|
* A device's platform push channel — the body the device registers with its push GATEWAY (push wake-up binding, https://trusttasks.org/binding/push/0.1; modeled on Aries RFC 0699/0734). The gateway holds this token and returns an opaque WakeHandle in exchange; the token is held by the gateway ONLY, never by the mediator or the maintainer/VTA. The gateway uses it to send a contentless wake-up when an authorized trigger asks — the push payload never carries Trust Task content. Tagged union over the discriminator `platform`.
|
|
365
369
|
*/
|
|
366
370
|
export type PushRegistration = Apns | Fcm | WebPush;
|
|
371
|
+
/**
|
|
372
|
+
* Which of an account's two queues. `receive` holds messages addressed to the account awaiting its pickup. `send` holds messages the account sent that are still held against it until their recipient deletes them — so a stalled recipient fills its senders' send queues.
|
|
373
|
+
*/
|
|
374
|
+
export type Queue = "receive" | "send";
|
|
367
375
|
/**
|
|
368
376
|
* How many records the room held when `DataCommitment` was computed — the number of leaves in that tree, tombstones included, since a tombstone is a record.
|
|
369
377
|
*
|
|
@@ -534,6 +542,26 @@ export type SyncEvent_SyncV0_2 =
|
|
|
534
542
|
| VaultDeletedEvent_SyncV0_2
|
|
535
543
|
| AclChangedEvent_SyncV0_2
|
|
536
544
|
| PolicyChangedEvent_SyncV0_2;
|
|
545
|
+
/**
|
|
546
|
+
* How the traffic reached or left the mediator. `peerMediator` is mediator-to-mediator forwarding.
|
|
547
|
+
*/
|
|
548
|
+
export type TrafficChannel = "websocket" | "rest" | "peerMediator" | "internal";
|
|
549
|
+
/**
|
|
550
|
+
* `inbound`: arriving at the mediator. `outbound`: leaving it (delivery to a recipient, or a forward to another mediator). `internal`: a state change with no wire traffic (expiry, deletion, purge).
|
|
551
|
+
*/
|
|
552
|
+
export type TrafficDirection = "inbound" | "outbound" | "internal";
|
|
553
|
+
/**
|
|
554
|
+
* What happened. `received`: a frame arrived. `stored`: it was queued for a local account. `delivered`: handed to its recipient. `forwarded`: relayed to another mediator. `refused`: rejected (see the event's `outcome`). `deleted`: removed by its recipient or an administrator. `expired`: removed by expiry. `purged`: removed by a queue purge.
|
|
555
|
+
*/
|
|
556
|
+
export type TrafficStage =
|
|
557
|
+
| "received"
|
|
558
|
+
| "stored"
|
|
559
|
+
| "delivered"
|
|
560
|
+
| "forwarded"
|
|
561
|
+
| "refused"
|
|
562
|
+
| "deleted"
|
|
563
|
+
| "expired"
|
|
564
|
+
| "purged";
|
|
537
565
|
/**
|
|
538
566
|
* A ULID in Crockford base32, uppercase. Used for `attributeId` and `profileId`. Chosen over a UUID because the leading 48 bits are a timestamp, so a key-ordered scan of the store is also creation-ordered and a `list` needs no secondary sort. Server-assigned on create; a producer MAY supply one to make a create idempotent, and a maintainer MUST reject a supplied value that already exists rather than silently overwriting.
|
|
539
567
|
*/
|
|
@@ -755,6 +783,10 @@ export type Vid = string;
|
|
|
755
783
|
* How much of a room its host can see, fixed at creation and immutable thereafter. `open`: records are cleartext, searchable and fully audited. `attributed`: record content is sealed, and the host still learns which member acted. `private`: content is sealed and membership is presented in zero knowledge, so the host verifies that a member acted without learning which. Immutable because a downgrade cannot un-see cleartext and an upgrade would protect only what came after while presenting as though it protected everything.
|
|
756
784
|
*/
|
|
757
785
|
export type Visibility = "open" | "attributed" | "private";
|
|
786
|
+
/**
|
|
787
|
+
* The protocol a message travelled in, as the mediator detected it from the wire form. `didcomm` is DIDComm v2 (JWE/JWS); `didcommV1` is a DIDComm v1 envelope; `tsp` is a Trust Spanning Protocol message; `other` is anything the mediator could not classify.
|
|
788
|
+
*/
|
|
789
|
+
export type WireProtocol = "didcomm" | "didcommV1" | "tsp" | "other";
|
|
758
790
|
|
|
759
791
|
/**
|
|
760
792
|
* The mediator's view of one served account.
|
|
@@ -2790,6 +2822,253 @@ export interface MemberResponse {
|
|
|
2790
2822
|
*/
|
|
2791
2823
|
extensions: {};
|
|
2792
2824
|
}
|
|
2825
|
+
/**
|
|
2826
|
+
* Metadata of one stored message. Never carries the message body.
|
|
2827
|
+
*/
|
|
2828
|
+
export interface MessageMeta {
|
|
2829
|
+
/**
|
|
2830
|
+
* The mediator's identifier for the stored message; the handle messaging/message/get and messaging/message/delete accept.
|
|
2831
|
+
*/
|
|
2832
|
+
msgId: string;
|
|
2833
|
+
queue: Queue;
|
|
2834
|
+
/**
|
|
2835
|
+
* Stored size in bytes.
|
|
2836
|
+
*/
|
|
2837
|
+
size: number;
|
|
2838
|
+
/**
|
|
2839
|
+
* When the mediator stored the message.
|
|
2840
|
+
*/
|
|
2841
|
+
receivedAt: string;
|
|
2842
|
+
/**
|
|
2843
|
+
* When the mediator will expire the message if it is not deleted first.
|
|
2844
|
+
*/
|
|
2845
|
+
expiresAt?: string;
|
|
2846
|
+
/**
|
|
2847
|
+
* The sender, where the mediator knows it. Absent for anonymous messages.
|
|
2848
|
+
*/
|
|
2849
|
+
from?: Vid;
|
|
2850
|
+
/**
|
|
2851
|
+
* The recipient account.
|
|
2852
|
+
*/
|
|
2853
|
+
to?: Vid;
|
|
2854
|
+
protocol?: WireProtocol;
|
|
2855
|
+
deliveryState?: DeliveryState;
|
|
2856
|
+
/**
|
|
2857
|
+
* When the message was first handed to the recipient. Present only when deliveryState is `delivered`.
|
|
2858
|
+
*/
|
|
2859
|
+
deliveredAt?: string;
|
|
2860
|
+
}
|
|
2861
|
+
/**
|
|
2862
|
+
* One observed step in the life of one message at the mediator. Carries metadata only — never a message body.
|
|
2863
|
+
*/
|
|
2864
|
+
export interface MonitorEvent {
|
|
2865
|
+
/**
|
|
2866
|
+
* When the step happened, with sub-second precision where the mediator has it.
|
|
2867
|
+
*/
|
|
2868
|
+
at: string;
|
|
2869
|
+
direction: TrafficDirection;
|
|
2870
|
+
stage: TrafficStage;
|
|
2871
|
+
channel: TrafficChannel;
|
|
2872
|
+
protocol: WireProtocol;
|
|
2873
|
+
/**
|
|
2874
|
+
* The stored message's identifier, once it has one; correlates the events of one message and matches MessageMeta.msgId.
|
|
2875
|
+
*/
|
|
2876
|
+
msgId?: string;
|
|
2877
|
+
/**
|
|
2878
|
+
* The sender, where the mediator knows it.
|
|
2879
|
+
*/
|
|
2880
|
+
from?: Vid;
|
|
2881
|
+
/**
|
|
2882
|
+
* The recipient, where the mediator knows it.
|
|
2883
|
+
*/
|
|
2884
|
+
to?: Vid;
|
|
2885
|
+
/**
|
|
2886
|
+
* Frame size in bytes.
|
|
2887
|
+
*/
|
|
2888
|
+
size?: number;
|
|
2889
|
+
/**
|
|
2890
|
+
* The plaintext message type, present only when the mediator itself was the addressee and read it (a routing forward, a pickup request, a trust-task type URI, a trust ping). Absent for end-to-end-encrypted traffic the mediator only relays.
|
|
2891
|
+
*/
|
|
2892
|
+
messageType?: string;
|
|
2893
|
+
/**
|
|
2894
|
+
* Present when stage is `refused`, and on any other stage that failed.
|
|
2895
|
+
*/
|
|
2896
|
+
outcome?: TrafficOutcome;
|
|
2897
|
+
/**
|
|
2898
|
+
* For `delivered` and `forwarded`: milliseconds since the message was stored.
|
|
2899
|
+
*/
|
|
2900
|
+
latencyMs?: number;
|
|
2901
|
+
}
|
|
2902
|
+
/**
|
|
2903
|
+
* Selects which events a monitor subscription receives. Every member present narrows the selection (members are ANDed; values within one member are ORed). An empty filter selects everything the requester is entitled to see.
|
|
2904
|
+
*/
|
|
2905
|
+
export interface MonitorFilter {
|
|
2906
|
+
/**
|
|
2907
|
+
* Only events whose `from` or `to` is one of these accounts.
|
|
2908
|
+
*
|
|
2909
|
+
* @minItems 1
|
|
2910
|
+
* @maxItems 100
|
|
2911
|
+
*/
|
|
2912
|
+
dids?: [Vid, ...Vid[]];
|
|
2913
|
+
/**
|
|
2914
|
+
* @minItems 1
|
|
2915
|
+
*/
|
|
2916
|
+
directions?: [TrafficDirection, ...TrafficDirection[]];
|
|
2917
|
+
/**
|
|
2918
|
+
* @minItems 1
|
|
2919
|
+
*/
|
|
2920
|
+
stages?: [TrafficStage, ...TrafficStage[]];
|
|
2921
|
+
/**
|
|
2922
|
+
* @minItems 1
|
|
2923
|
+
*/
|
|
2924
|
+
protocols?: [WireProtocol, ...WireProtocol[]];
|
|
2925
|
+
/**
|
|
2926
|
+
* @minItems 1
|
|
2927
|
+
*/
|
|
2928
|
+
channels?: [TrafficChannel, ...TrafficChannel[]];
|
|
2929
|
+
/**
|
|
2930
|
+
* Only events whose `messageType` starts with one of these strings. Events with no `messageType` never match when this member is present.
|
|
2931
|
+
*
|
|
2932
|
+
* @minItems 1
|
|
2933
|
+
* @maxItems 20
|
|
2934
|
+
*/
|
|
2935
|
+
messageTypePrefixes?:
|
|
2936
|
+
| [string]
|
|
2937
|
+
| [string, string]
|
|
2938
|
+
| [string, string, string]
|
|
2939
|
+
| [string, string, string, string]
|
|
2940
|
+
| [string, string, string, string, string]
|
|
2941
|
+
| [string, string, string, string, string, string]
|
|
2942
|
+
| [string, string, string, string, string, string, string]
|
|
2943
|
+
| [string, string, string, string, string, string, string, string]
|
|
2944
|
+
| [string, string, string, string, string, string, string, string, string]
|
|
2945
|
+
| [string, string, string, string, string, string, string, string, string, string]
|
|
2946
|
+
| [string, string, string, string, string, string, string, string, string, string, string]
|
|
2947
|
+
| [string, string, string, string, string, string, string, string, string, string, string, string]
|
|
2948
|
+
| [string, string, string, string, string, string, string, string, string, string, string, string, string]
|
|
2949
|
+
| [string, string, string, string, string, string, string, string, string, string, string, string, string, string]
|
|
2950
|
+
| [
|
|
2951
|
+
string,
|
|
2952
|
+
string,
|
|
2953
|
+
string,
|
|
2954
|
+
string,
|
|
2955
|
+
string,
|
|
2956
|
+
string,
|
|
2957
|
+
string,
|
|
2958
|
+
string,
|
|
2959
|
+
string,
|
|
2960
|
+
string,
|
|
2961
|
+
string,
|
|
2962
|
+
string,
|
|
2963
|
+
string,
|
|
2964
|
+
string,
|
|
2965
|
+
string
|
|
2966
|
+
]
|
|
2967
|
+
| [
|
|
2968
|
+
string,
|
|
2969
|
+
string,
|
|
2970
|
+
string,
|
|
2971
|
+
string,
|
|
2972
|
+
string,
|
|
2973
|
+
string,
|
|
2974
|
+
string,
|
|
2975
|
+
string,
|
|
2976
|
+
string,
|
|
2977
|
+
string,
|
|
2978
|
+
string,
|
|
2979
|
+
string,
|
|
2980
|
+
string,
|
|
2981
|
+
string,
|
|
2982
|
+
string,
|
|
2983
|
+
string
|
|
2984
|
+
]
|
|
2985
|
+
| [
|
|
2986
|
+
string,
|
|
2987
|
+
string,
|
|
2988
|
+
string,
|
|
2989
|
+
string,
|
|
2990
|
+
string,
|
|
2991
|
+
string,
|
|
2992
|
+
string,
|
|
2993
|
+
string,
|
|
2994
|
+
string,
|
|
2995
|
+
string,
|
|
2996
|
+
string,
|
|
2997
|
+
string,
|
|
2998
|
+
string,
|
|
2999
|
+
string,
|
|
3000
|
+
string,
|
|
3001
|
+
string,
|
|
3002
|
+
string
|
|
3003
|
+
]
|
|
3004
|
+
| [
|
|
3005
|
+
string,
|
|
3006
|
+
string,
|
|
3007
|
+
string,
|
|
3008
|
+
string,
|
|
3009
|
+
string,
|
|
3010
|
+
string,
|
|
3011
|
+
string,
|
|
3012
|
+
string,
|
|
3013
|
+
string,
|
|
3014
|
+
string,
|
|
3015
|
+
string,
|
|
3016
|
+
string,
|
|
3017
|
+
string,
|
|
3018
|
+
string,
|
|
3019
|
+
string,
|
|
3020
|
+
string,
|
|
3021
|
+
string,
|
|
3022
|
+
string
|
|
3023
|
+
]
|
|
3024
|
+
| [
|
|
3025
|
+
string,
|
|
3026
|
+
string,
|
|
3027
|
+
string,
|
|
3028
|
+
string,
|
|
3029
|
+
string,
|
|
3030
|
+
string,
|
|
3031
|
+
string,
|
|
3032
|
+
string,
|
|
3033
|
+
string,
|
|
3034
|
+
string,
|
|
3035
|
+
string,
|
|
3036
|
+
string,
|
|
3037
|
+
string,
|
|
3038
|
+
string,
|
|
3039
|
+
string,
|
|
3040
|
+
string,
|
|
3041
|
+
string,
|
|
3042
|
+
string,
|
|
3043
|
+
string
|
|
3044
|
+
]
|
|
3045
|
+
| [
|
|
3046
|
+
string,
|
|
3047
|
+
string,
|
|
3048
|
+
string,
|
|
3049
|
+
string,
|
|
3050
|
+
string,
|
|
3051
|
+
string,
|
|
3052
|
+
string,
|
|
3053
|
+
string,
|
|
3054
|
+
string,
|
|
3055
|
+
string,
|
|
3056
|
+
string,
|
|
3057
|
+
string,
|
|
3058
|
+
string,
|
|
3059
|
+
string,
|
|
3060
|
+
string,
|
|
3061
|
+
string,
|
|
3062
|
+
string,
|
|
3063
|
+
string,
|
|
3064
|
+
string,
|
|
3065
|
+
string
|
|
3066
|
+
];
|
|
3067
|
+
/**
|
|
3068
|
+
* Only events that carry an `outcome`.
|
|
3069
|
+
*/
|
|
3070
|
+
failuresOnly?: boolean;
|
|
3071
|
+
}
|
|
2793
3072
|
export interface PasskeyVerificationMethod {
|
|
2794
3073
|
/**
|
|
2795
3074
|
* The verificationMethod id as it appears in the DID document: `<did>#passkey-<base64url(sha256(credentialId))>`. The fragment is content-derived so a verifier can locate this VM by recomputing `sha256(credential.id)`.
|
|
@@ -2820,6 +3099,18 @@ export interface PasskeyVerificationMethod {
|
|
|
2820
3099
|
*/
|
|
2821
3100
|
label?: string;
|
|
2822
3101
|
}
|
|
3102
|
+
/**
|
|
3103
|
+
* The share of one queue attributable to one counterparty: in a send queue, the recipient; in a receive queue, the sender.
|
|
3104
|
+
*/
|
|
3105
|
+
export interface PeerDepth {
|
|
3106
|
+
/**
|
|
3107
|
+
* The counterparty's identifier, in the same form the mediator uses for accounts.
|
|
3108
|
+
*/
|
|
3109
|
+
peer: Vid;
|
|
3110
|
+
count: number;
|
|
3111
|
+
bytes: number;
|
|
3112
|
+
oldestAgeSeconds?: number;
|
|
3113
|
+
}
|
|
2823
3114
|
/**
|
|
2824
3115
|
* A community's published position on personhood.
|
|
2825
3116
|
*
|
|
@@ -3209,6 +3500,35 @@ export interface QueryContext {
|
|
|
3209
3500
|
locator?: string;
|
|
3210
3501
|
[k: string]: string | undefined;
|
|
3211
3502
|
}
|
|
3503
|
+
/**
|
|
3504
|
+
* The depth of one queue and its effective limit.
|
|
3505
|
+
*/
|
|
3506
|
+
export interface QueueDepth {
|
|
3507
|
+
/**
|
|
3508
|
+
* Messages currently in the queue.
|
|
3509
|
+
*/
|
|
3510
|
+
count: number;
|
|
3511
|
+
/**
|
|
3512
|
+
* Total stored size of those messages, in bytes.
|
|
3513
|
+
*/
|
|
3514
|
+
bytes: number;
|
|
3515
|
+
/**
|
|
3516
|
+
* The effective message-count limit for this queue after account overrides and mediator defaults are applied; -1 = unlimited.
|
|
3517
|
+
*/
|
|
3518
|
+
limit?: number;
|
|
3519
|
+
/**
|
|
3520
|
+
* count ÷ limit. Absent when the limit is unlimited. May exceed 1 when a limit was lowered below the current depth.
|
|
3521
|
+
*/
|
|
3522
|
+
saturation?: number;
|
|
3523
|
+
/**
|
|
3524
|
+
* Age of the oldest message in the queue, in seconds. Absent when the queue is empty or the mediator did not measure it.
|
|
3525
|
+
*/
|
|
3526
|
+
oldestAgeSeconds?: number;
|
|
3527
|
+
/**
|
|
3528
|
+
* Messages in the queue whose state is `delivered` — handed out but not yet deleted by the recipient. Absent when the mediator did not measure it.
|
|
3529
|
+
*/
|
|
3530
|
+
deliveredUnacked?: number;
|
|
3531
|
+
}
|
|
3212
3532
|
/**
|
|
3213
3533
|
* Per-account queued-message limits. A value of -1 means unlimited; a member omitted on a change request leaves that limit unchanged.
|
|
3214
3534
|
*/
|
|
@@ -3222,6 +3542,15 @@ export interface QueueLimits {
|
|
|
3222
3542
|
*/
|
|
3223
3543
|
receiveQueueLimit?: number;
|
|
3224
3544
|
}
|
|
3545
|
+
/**
|
|
3546
|
+
* Both queues of one account.
|
|
3547
|
+
*/
|
|
3548
|
+
export interface QueueSummary {
|
|
3549
|
+
did: Vid;
|
|
3550
|
+
accountType?: AccountType;
|
|
3551
|
+
receive: QueueDepth;
|
|
3552
|
+
send: QueueDepth;
|
|
3553
|
+
}
|
|
3225
3554
|
/**
|
|
3226
3555
|
* What the agent checked on the member's behalf, and what it found.
|
|
3227
3556
|
*
|
|
@@ -3757,6 +4086,19 @@ export interface TokenBundle {
|
|
|
3757
4086
|
*/
|
|
3758
4087
|
ext?: Ext;
|
|
3759
4088
|
}
|
|
4089
|
+
/**
|
|
4090
|
+
* Why a frame was refused or failed.
|
|
4091
|
+
*/
|
|
4092
|
+
export interface TrafficOutcome {
|
|
4093
|
+
/**
|
|
4094
|
+
* The stable error code the mediator returned to the sender (a trust-task-error or problem-report code).
|
|
4095
|
+
*/
|
|
4096
|
+
code: string;
|
|
4097
|
+
/**
|
|
4098
|
+
* Short human-readable explanation. Not machine-parsed.
|
|
4099
|
+
*/
|
|
4100
|
+
detail?: string;
|
|
4101
|
+
}
|
|
3760
4102
|
export interface TrustRecord {
|
|
3761
4103
|
entity_id: string;
|
|
3762
4104
|
authority_id: string;
|
package/src/index.ts
CHANGED
|
@@ -149,6 +149,7 @@ export * as KeysRevoke_v0_1 from "./keys/revoke/0.1/payload.js";
|
|
|
149
149
|
export * as KeysSetExportability_v0_1 from "./keys/set-exportability/0.1/payload.js";
|
|
150
150
|
export * as KeysShow_v0_1 from "./keys/show/0.1/payload.js";
|
|
151
151
|
export * as KeysSign_v0_1 from "./keys/sign/0.1/payload.js";
|
|
152
|
+
export * as MediatorOpsShared_v0_1 from "./messaging/_shared/0.1/mediator-ops.js";
|
|
152
153
|
export * as MessagingShared_v0_1 from "./messaging/_shared/0.1/messaging.js";
|
|
153
154
|
export * as MessagingAccessListAdd_v0_1 from "./messaging/access-list/add/0.1/payload.js";
|
|
154
155
|
export * as MessagingAccessListClear_v0_1 from "./messaging/access-list/clear/0.1/payload.js";
|
|
@@ -170,7 +171,17 @@ export * as MessagingAdminAuditLog_v0_1 from "./messaging/admin/audit-log/0.1/pa
|
|
|
170
171
|
export * as MessagingAdminConfig_v0_1 from "./messaging/admin/config/0.1/payload.js";
|
|
171
172
|
export * as MessagingAdminList_v0_1 from "./messaging/admin/list/0.1/payload.js";
|
|
172
173
|
export * as MessagingAdminStrip_v0_1 from "./messaging/admin/strip/0.1/payload.js";
|
|
174
|
+
export * as MessagingMessageDelete_v0_1 from "./messaging/message/delete/0.1/payload.js";
|
|
175
|
+
export * as MessagingMessageGet_v0_1 from "./messaging/message/get/0.1/payload.js";
|
|
176
|
+
export * as MessagingMessageList_v0_1 from "./messaging/message/list/0.1/payload.js";
|
|
177
|
+
export * as MessagingMonitorEvent_v0_1 from "./messaging/monitor/event/0.1/payload.js";
|
|
178
|
+
export * as MessagingMonitorSubscribe_v0_1 from "./messaging/monitor/subscribe/0.1/payload.js";
|
|
179
|
+
export * as MessagingMonitorUnsubscribe_v0_1 from "./messaging/monitor/unsubscribe/0.1/payload.js";
|
|
173
180
|
export * as MessagingPing_v0_1 from "./messaging/ping/0.1/payload.js";
|
|
181
|
+
export * as MessagingQueueList_v0_1 from "./messaging/queue/list/0.1/payload.js";
|
|
182
|
+
export * as MessagingQueuePurge_v0_1 from "./messaging/queue/purge/0.1/payload.js";
|
|
183
|
+
export * as MessagingQueueStatus_v0_1 from "./messaging/queue/status/0.1/payload.js";
|
|
184
|
+
export * as MessagingStatsShow_v0_1 from "./messaging/stats/show/0.1/payload.js";
|
|
174
185
|
export * as PersonaRecordShared_v0_1 from "./persona/_shared/0.1/persona-record.js";
|
|
175
186
|
export * as PersonaAttributeDelete_v1_0 from "./persona/attribute/delete/1.0/payload.js";
|
|
176
187
|
export * as PersonaAttributeList_v1_0 from "./persona/attribute/list/1.0/payload.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/messaging/_shared/0.1/mediator-ops.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Shared $def objects referenced by the messaging/queue/*, messaging/message/*, messaging/stats/*, and messaging/monitor/* specifications: queue depth views, stored-message metadata, the wire-protocol vocabulary, and the traffic-monitor event and filter shapes. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build). Account identifiers reuse `Vid` from the sibling messaging.schema.json component, so an identifier returned by one family is accepted verbatim by the other.
|
|
8
|
+
*/
|
|
9
|
+
export interface MessagingOperationsSharedDefinitionsForMediatorQueueMessageStatisticsAndTrafficMonitorTasks {
|
|
10
|
+
[k: string]: unknown | undefined;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
15
|
+
* See "../../../_shared/components.js".
|
|
16
|
+
*/
|
|
17
|
+
export type { DeliveryState, MessageMeta, MonitorEvent, MonitorFilter, PeerDepth, Queue, QueueDepth, QueueSummary, TrafficChannel, TrafficDirection, TrafficOutcome, TrafficStage, WireProtocol } from "../../../_shared/components.js";
|