@openvtc/trust-tasks 0.2.0 → 0.2.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/dist/_framework/0.2/framework.d.ts +11 -0
- package/dist/_framework/0.2/framework.d.ts.map +1 -0
- package/dist/_framework/0.2/framework.js +6 -0
- package/dist/_framework/0.2/framework.js.map +1 -0
- package/dist/acl/grant/0.1/payload.d.ts +13 -0
- package/dist/acl/grant/0.1/payload.d.ts.map +1 -1
- package/dist/acl/grant/0.1/payload.js.map +1 -1
- package/dist/auth/passkey/login/finish/0.2/payload.d.ts +42 -0
- package/dist/auth/passkey/login/finish/0.2/payload.d.ts.map +1 -0
- package/dist/auth/passkey/login/finish/0.2/payload.js +9 -0
- package/dist/auth/passkey/login/finish/0.2/payload.js.map +1 -0
- package/dist/auth/passkey/login/start/0.2/payload.d.ts +29 -0
- package/dist/auth/passkey/login/start/0.2/payload.d.ts.map +1 -0
- package/dist/auth/passkey/login/start/0.2/payload.js +9 -0
- package/dist/auth/passkey/login/start/0.2/payload.js.map +1 -0
- package/dist/auth/step-up/approve-request/0.2/payload.d.ts +73 -0
- package/dist/auth/step-up/approve-request/0.2/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approve-request/0.2/payload.js +9 -0
- package/dist/auth/step-up/approve-request/0.2/payload.js.map +1 -0
- package/dist/auth/step-up/approve-response/0.2/payload.d.ts +76 -0
- package/dist/auth/step-up/approve-response/0.2/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approve-response/0.2/payload.js +9 -0
- package/dist/auth/step-up/approve-response/0.2/payload.js.map +1 -0
- package/dist/auth/step-up/policy/0.1/payload.d.ts +43 -0
- package/dist/auth/step-up/policy/0.1/payload.d.ts.map +1 -0
- package/dist/auth/step-up/policy/0.1/payload.js +9 -0
- package/dist/auth/step-up/policy/0.1/payload.js.map +1 -0
- package/dist/auth/step-up/policy/0.2/payload.d.ts +43 -0
- package/dist/auth/step-up/policy/0.2/payload.d.ts.map +1 -0
- package/dist/auth/step-up/policy/0.2/payload.js +9 -0
- package/dist/auth/step-up/policy/0.2/payload.js.map +1 -0
- package/dist/device/_shared/0.2/device-binding.d.ts +11 -0
- package/dist/device/_shared/0.2/device-binding.d.ts.map +1 -0
- package/dist/device/_shared/0.2/device-binding.js +6 -0
- package/dist/device/_shared/0.2/device-binding.js.map +1 -0
- package/dist/device/heartbeat/0.2/payload.d.ts +29 -0
- package/dist/device/heartbeat/0.2/payload.d.ts.map +1 -0
- package/dist/device/heartbeat/0.2/payload.js +9 -0
- package/dist/device/heartbeat/0.2/payload.js.map +1 -0
- package/dist/device/list/0.2/payload.d.ts +37 -0
- package/dist/device/list/0.2/payload.d.ts.map +1 -0
- package/dist/device/list/0.2/payload.js +9 -0
- package/dist/device/list/0.2/payload.js.map +1 -0
- package/dist/device/register/0.1/payload.d.ts +18 -0
- package/dist/device/register/0.1/payload.d.ts.map +1 -1
- package/dist/device/register/0.1/payload.js.map +1 -1
- package/dist/device/register/0.2/payload.d.ts +97 -0
- package/dist/device/register/0.2/payload.d.ts.map +1 -0
- package/dist/device/register/0.2/payload.js +9 -0
- package/dist/device/register/0.2/payload.js.map +1 -0
- package/dist/device/set-wake/0.1/payload.d.ts +43 -0
- package/dist/device/set-wake/0.1/payload.d.ts.map +1 -0
- package/dist/device/set-wake/0.1/payload.js +9 -0
- package/dist/device/set-wake/0.1/payload.js.map +1 -0
- package/dist/device/set-wake/0.2/payload.d.ts +43 -0
- package/dist/device/set-wake/0.2/payload.d.ts.map +1 -0
- package/dist/device/set-wake/0.2/payload.js +9 -0
- package/dist/device/set-wake/0.2/payload.js.map +1 -0
- package/dist/device/wipe/0.2/payload.d.ts +37 -0
- package/dist/device/wipe/0.2/payload.d.ts.map +1 -0
- package/dist/device/wipe/0.2/payload.js +9 -0
- package/dist/device/wipe/0.2/payload.js.map +1 -0
- package/dist/did-management/did/check-name/0.1/payload.d.ts +5 -2
- package/dist/did-management/did/check-name/0.1/payload.d.ts.map +1 -1
- package/dist/did-management/did/check-name/0.1/payload.js.map +1 -1
- package/dist/index.d.ts +63 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +63 -17
- package/dist/index.js.map +1 -1
- package/dist/policy/_shared/0.2/policy.d.ts +11 -0
- package/dist/policy/_shared/0.2/policy.d.ts.map +1 -0
- package/dist/policy/_shared/0.2/policy.js +6 -0
- package/dist/policy/_shared/0.2/policy.js.map +1 -0
- package/dist/policy/evaluate/0.2/payload.d.ts +99 -0
- package/dist/policy/evaluate/0.2/payload.d.ts.map +1 -0
- package/dist/policy/evaluate/0.2/payload.js +9 -0
- package/dist/policy/evaluate/0.2/payload.js.map +1 -0
- package/dist/policy/list/0.2/payload.d.ts +22 -0
- package/dist/policy/list/0.2/payload.d.ts.map +1 -0
- package/dist/policy/list/0.2/payload.js +9 -0
- package/dist/policy/list/0.2/payload.js.map +1 -0
- package/dist/policy/upsert/0.2/payload.d.ts +29 -0
- package/dist/policy/upsert/0.2/payload.d.ts.map +1 -0
- package/dist/policy/upsert/0.2/payload.js +9 -0
- package/dist/policy/upsert/0.2/payload.js.map +1 -0
- package/dist/provision/integration/0.2/payload.d.ts +178 -0
- package/dist/provision/integration/0.2/payload.d.ts.map +1 -0
- package/dist/provision/integration/0.2/payload.js +9 -0
- package/dist/provision/integration/0.2/payload.js.map +1 -0
- package/dist/push/provision/0.1/payload.d.ts +35 -0
- package/dist/push/provision/0.1/payload.d.ts.map +1 -0
- package/dist/push/provision/0.1/payload.js +9 -0
- package/dist/push/provision/0.1/payload.js.map +1 -0
- package/dist/push/provision/0.2/payload.d.ts +35 -0
- package/dist/push/provision/0.2/payload.d.ts.map +1 -0
- package/dist/push/provision/0.2/payload.js +9 -0
- package/dist/push/provision/0.2/payload.js.map +1 -0
- package/dist/push/register/0.1/payload.d.ts +72 -0
- package/dist/push/register/0.1/payload.d.ts.map +1 -0
- package/dist/push/register/0.1/payload.js +9 -0
- package/dist/push/register/0.1/payload.js.map +1 -0
- package/dist/push/register/0.2/payload.d.ts +72 -0
- package/dist/push/register/0.2/payload.d.ts.map +1 -0
- package/dist/push/register/0.2/payload.js +9 -0
- package/dist/push/register/0.2/payload.js.map +1 -0
- package/dist/push/wake/0.1/payload.d.ts +41 -0
- package/dist/push/wake/0.1/payload.d.ts.map +1 -0
- package/dist/push/wake/0.1/payload.js +9 -0
- package/dist/push/wake/0.1/payload.js.map +1 -0
- package/dist/push/wake/0.2/payload.d.ts +41 -0
- package/dist/push/wake/0.2/payload.d.ts.map +1 -0
- package/dist/push/wake/0.2/payload.js +9 -0
- package/dist/push/wake/0.2/payload.js.map +1 -0
- package/dist/sync/_shared/0.2/sync-event.d.ts +11 -0
- package/dist/sync/_shared/0.2/sync-event.d.ts.map +1 -0
- package/dist/sync/_shared/0.2/sync-event.js +6 -0
- package/dist/sync/_shared/0.2/sync-event.js.map +1 -0
- package/dist/sync/event/0.2/payload.d.ts +208 -0
- package/dist/sync/event/0.2/payload.d.ts.map +1 -0
- package/dist/sync/event/0.2/payload.js +9 -0
- package/dist/sync/event/0.2/payload.js.map +1 -0
- package/dist/trust-task-error/0.2/payload.d.ts +36 -0
- package/dist/trust-task-error/0.2/payload.d.ts.map +1 -0
- package/dist/trust-task-error/0.2/payload.js +9 -0
- package/dist/trust-task-error/0.2/payload.js.map +1 -0
- package/dist/vault/_shared/0.2/consumer-context.d.ts +11 -0
- package/dist/vault/_shared/0.2/consumer-context.d.ts.map +1 -0
- package/dist/vault/_shared/0.2/consumer-context.js +6 -0
- package/dist/vault/_shared/0.2/consumer-context.js.map +1 -0
- package/dist/vault/_shared/0.2/sealed-envelope.d.ts +15 -0
- package/dist/vault/_shared/0.2/sealed-envelope.d.ts.map +1 -0
- package/dist/vault/_shared/0.2/sealed-envelope.js +6 -0
- package/dist/vault/_shared/0.2/sealed-envelope.js.map +1 -0
- package/dist/vault/_shared/0.2/session-blob.d.ts +13 -0
- package/dist/vault/_shared/0.2/session-blob.d.ts.map +1 -0
- package/dist/vault/_shared/0.2/session-blob.js +6 -0
- package/dist/vault/_shared/0.2/session-blob.js.map +1 -0
- package/dist/vault/_shared/0.2/vault-entry.d.ts +13 -0
- package/dist/vault/_shared/0.2/vault-entry.d.ts.map +1 -0
- package/dist/vault/_shared/0.2/vault-entry.js +6 -0
- package/dist/vault/_shared/0.2/vault-entry.js.map +1 -0
- package/dist/vault/_shared/0.2/vault-secret.d.ts +15 -0
- package/dist/vault/_shared/0.2/vault-secret.d.ts.map +1 -0
- package/dist/vault/_shared/0.2/vault-secret.js +6 -0
- package/dist/vault/_shared/0.2/vault-secret.js.map +1 -0
- package/dist/vault/get/0.2/payload.d.ts +25 -0
- package/dist/vault/get/0.2/payload.d.ts.map +1 -0
- package/dist/vault/get/0.2/payload.js +9 -0
- package/dist/vault/get/0.2/payload.js.map +1 -0
- package/dist/vault/list/0.2/payload.d.ts +74 -0
- package/dist/vault/list/0.2/payload.d.ts.map +1 -0
- package/dist/vault/list/0.2/payload.js +9 -0
- package/dist/vault/list/0.2/payload.js.map +1 -0
- package/dist/vault/proxy-login/0.2/payload.d.ts +109 -0
- package/dist/vault/proxy-login/0.2/payload.d.ts.map +1 -0
- package/dist/vault/proxy-login/0.2/payload.js +9 -0
- package/dist/vault/proxy-login/0.2/payload.js.map +1 -0
- package/dist/vault/release/0.2/payload.d.ts +102 -0
- package/dist/vault/release/0.2/payload.d.ts.map +1 -0
- package/dist/vault/release/0.2/payload.js +9 -0
- package/dist/vault/release/0.2/payload.js.map +1 -0
- package/dist/vault/sign-trust-task/0.2/payload.d.ts +99 -0
- package/dist/vault/sign-trust-task/0.2/payload.d.ts.map +1 -0
- package/dist/vault/sign-trust-task/0.2/payload.js +9 -0
- package/dist/vault/sign-trust-task/0.2/payload.js.map +1 -0
- package/dist/vault/sync/0.2/payload.d.ts +33 -0
- package/dist/vault/sync/0.2/payload.d.ts.map +1 -0
- package/dist/vault/sync/0.2/payload.js +9 -0
- package/dist/vault/sync/0.2/payload.js.map +1 -0
- package/dist/vault/upsert/0.2/payload.d.ts +150 -0
- package/dist/vault/upsert/0.2/payload.d.ts.map +1 -0
- package/dist/vault/upsert/0.2/payload.js +9 -0
- package/dist/vault/upsert/0.2/payload.js.map +1 -0
- package/dist/vault/usage/0.2/payload.d.ts +38 -0
- package/dist/vault/usage/0.2/payload.d.ts.map +1 -0
- package/dist/vault/usage/0.2/payload.js +9 -0
- package/dist/vault/usage/0.2/payload.js.map +1 -0
- package/dist/vta/_shared/0.1/passkey-vm.d.ts +11 -0
- package/dist/vta/_shared/0.1/passkey-vm.d.ts.map +1 -0
- package/dist/vta/_shared/0.1/passkey-vm.js +6 -0
- package/dist/vta/_shared/0.1/passkey-vm.js.map +1 -0
- package/dist/vta/passkey-vms/enroll-challenge/0.1/payload.d.ts +29 -0
- package/dist/vta/passkey-vms/enroll-challenge/0.1/payload.d.ts.map +1 -0
- package/dist/vta/passkey-vms/enroll-challenge/0.1/payload.js +9 -0
- package/dist/vta/passkey-vms/enroll-challenge/0.1/payload.js.map +1 -0
- package/dist/vta/passkey-vms/enroll-submit/0.1/payload.d.ts +61 -0
- package/dist/vta/passkey-vms/enroll-submit/0.1/payload.d.ts.map +1 -0
- package/dist/vta/passkey-vms/enroll-submit/0.1/payload.js +9 -0
- package/dist/vta/passkey-vms/enroll-submit/0.1/payload.js.map +1 -0
- package/dist/vta/passkey-vms/list/0.1/payload.d.ts +25 -0
- package/dist/vta/passkey-vms/list/0.1/payload.d.ts.map +1 -0
- package/dist/vta/passkey-vms/list/0.1/payload.js +9 -0
- package/dist/vta/passkey-vms/list/0.1/payload.js.map +1 -0
- package/dist/vta/passkey-vms/revoke/0.1/payload.d.ts +29 -0
- package/dist/vta/passkey-vms/revoke/0.1/payload.d.ts.map +1 -0
- package/dist/vta/passkey-vms/revoke/0.1/payload.js +9 -0
- package/dist/vta/passkey-vms/revoke/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +31 -26
- package/src/vta/_shared/0.1/passkey-vm.ts +11 -0
- package/src/vta/passkey-vms/enroll-challenge/0.1/payload.ts +31 -0
- package/src/vta/passkey-vms/enroll-submit/0.1/payload.ts +63 -0
- package/src/vta/passkey-vms/list/0.1/payload.ts +27 -0
- package/src/vta/passkey-vms/revoke/0.1/payload.ts +31 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/sync/event/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
export type SyncEvent = VaultUpsertedEvent | VaultDeletedEvent | AclChangedEvent | PolicyChangedEvent;
|
|
6
|
+
/**
|
|
7
|
+
* A single binding target for a vault entry. Tagged union over the discriminator `kind`. A VaultEntry's `targets` array MAY mix any number of these.
|
|
8
|
+
*/
|
|
9
|
+
export type SiteTarget = WebOrigin | Did | IosApp | AndroidApp;
|
|
10
|
+
/**
|
|
11
|
+
* Discriminator for the kind of secret this entry holds. The secret material itself is NEVER returned in metadata views; the kind is exposed so consumers can render an appropriate UI affordance and so policy decisions can route by kind.
|
|
12
|
+
*/
|
|
13
|
+
export type SecretKind = "password" | "passkey" | "oauthTokens" | "didSelfIssued" | "didcommPeer" | "bearerToken" | "sshKey" | "custom";
|
|
14
|
+
/**
|
|
15
|
+
* One-way push notification from the maintainer to a subscribing consumer. Carries a single SyncEvent (vault.upserted, vault.deleted, acl.changed, policy.changed). The consumer updates its cache and does NOT respond — there is no #response form. For offline catch-up the consumer uses vault/sync/0.1 to pull missed events.
|
|
16
|
+
*/
|
|
17
|
+
export interface SyncEventPayload {
|
|
18
|
+
event: SyncEvent;
|
|
19
|
+
ext?: Ext1;
|
|
20
|
+
}
|
|
21
|
+
export interface VaultUpsertedEvent {
|
|
22
|
+
kind: "vaultUpserted";
|
|
23
|
+
seq: number;
|
|
24
|
+
occurredAt: string;
|
|
25
|
+
entry: VaultEntry;
|
|
26
|
+
}
|
|
27
|
+
export interface VaultEntry {
|
|
28
|
+
/**
|
|
29
|
+
* Opaque vault-maintainer-assigned identifier for the entry. ULID/UUID/base32 are common; the wire spec only requires non-empty string equality.
|
|
30
|
+
*/
|
|
31
|
+
id: string;
|
|
32
|
+
/**
|
|
33
|
+
* Identifier of the trust context (persona) the entry belongs to. Opaque string interpreted by the vault maintainer; corresponds to a single ContextRecord on the VTA side.
|
|
34
|
+
*/
|
|
35
|
+
contextId: string;
|
|
36
|
+
/**
|
|
37
|
+
* One or more binding targets — web origins, mobile app identifiers, and/or DIDs — that this credential applies to. A request from any matching target uses this entry. A typical entry for a service that exists as both a website and mobile apps will list a web origin, an iOS bundle id, and an Android package id; passkeys for that service typically list only the origin (because iOS Associated Domains and Android Asset Links bind apps to the domain at the OS level).
|
|
38
|
+
*
|
|
39
|
+
* @minItems 1
|
|
40
|
+
*/
|
|
41
|
+
targets: [SiteTarget, ...SiteTarget[]];
|
|
42
|
+
/**
|
|
43
|
+
* Human-readable display name (e.g. "Work GitHub", "Personal bank — checking"). Maintainers MAY enforce a maximum length; the wire spec does not.
|
|
44
|
+
*/
|
|
45
|
+
label: string;
|
|
46
|
+
secretKind: SecretKind;
|
|
47
|
+
/**
|
|
48
|
+
* User-defined tags for organisation and filtering (e.g. ["family", "finance"]). Maintainers MAY enforce a maximum count; the wire spec does not.
|
|
49
|
+
*/
|
|
50
|
+
tags?: string[];
|
|
51
|
+
/**
|
|
52
|
+
* Non-sensitive notes the user attached to the entry. Visible in metadata view (suitable for support contact, account number, expiry policy memos). SENSITIVE notes belong in the secret payload as a `secureNotes` field — those are only released by vault/release/0.1.
|
|
53
|
+
*/
|
|
54
|
+
notes?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Optional URI of an icon to display in the consumer UI. Maintainers MAY fetch and cache; consumers SHOULD treat as untrusted content and fetch via a sandboxed pipeline.
|
|
57
|
+
*/
|
|
58
|
+
favicon?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Opaque maintainer-defined selector strings fed to the policy engine when this entry is requested (e.g. "recent_uv_required", "network_class=corp", "step_up_push"). Consumers MUST treat selectors as opaque; they exist for policy authoring on the maintainer side.
|
|
61
|
+
*/
|
|
62
|
+
selectors?: string[];
|
|
63
|
+
/**
|
|
64
|
+
* Names of additional fields the user has attached (e.g. ["security-question-1", "account-number"]). The VALUES live in the secret payload and are only delivered by vault/release/0.1. Exposing names in metadata lets the consumer render the right form layout before requesting release.
|
|
65
|
+
*/
|
|
66
|
+
customFieldNames?: string[];
|
|
67
|
+
/**
|
|
68
|
+
* References to encrypted blobs associated with the entry (recovery codes, PEM files, screenshots of authenticator setup). The blobs themselves are fetched via a separate mechanism the maintainer documents; metadata view exposes only the descriptor.
|
|
69
|
+
*/
|
|
70
|
+
attachments?: AttachmentRef[];
|
|
71
|
+
/**
|
|
72
|
+
* Optional time after which the credential is no longer expected to be valid (e.g. an OAuth refresh token's known expiry, a time-limited API token, an enterprise password rotation policy). Maintainers MAY surface this in the consumer UI as a warning.
|
|
73
|
+
*/
|
|
74
|
+
expiresAt?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Set by the maintainer (via HIBP integration or equivalent) when the password material associated with this entry is known to appear in a public breach. Consumers SHOULD surface this prominently. Cleared when the user rotates the password and the new password is not in any known breach.
|
|
77
|
+
*/
|
|
78
|
+
breachedAt?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Set whenever the password component of the secret payload is rotated. Maintainers MUST update this on every secret-material change for entries of kind `password` (or any kind that carries a password component). Used by consumers to surface rotation-overdue warnings.
|
|
81
|
+
*/
|
|
82
|
+
passwordChangedAt?: string;
|
|
83
|
+
createdAt: string;
|
|
84
|
+
/**
|
|
85
|
+
* VID of the consumer that originally created the entry.
|
|
86
|
+
*/
|
|
87
|
+
createdBy?: string;
|
|
88
|
+
updatedAt: string;
|
|
89
|
+
/**
|
|
90
|
+
* VID of the consumer that last modified the entry.
|
|
91
|
+
*/
|
|
92
|
+
updatedBy?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Most recent time the entry was used (either released or proxy-login performed). Maintainers MAY return this with reduced precision (e.g. hour-floored) when releasing to a less-trusted consumer.
|
|
95
|
+
*/
|
|
96
|
+
lastUsedAt?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Monotonic version counter incremented on every mutation. Used by consumers for optimistic-concurrency checks on vault/upsert and as the seq baseline for vault/sync.
|
|
99
|
+
*/
|
|
100
|
+
version: number;
|
|
101
|
+
/**
|
|
102
|
+
* Optional cached DID the entry will act AS for DID-shaped flows — mirrors the `did` field of the entry's secret payload when `secretKind` carries one (`didSelfIssued`, `didcommPeer`). Absent for kinds that have no DID concept (`password`, `passkey`, `oauthTokens`, `bearerToken`, `sshKey`, `custom`). MAINTAINER-DERIVED, NOT CONSUMER-SUPPLIED: the maintainer MUST recompute this from the canonical secret at every upsert / secret rotation; a producer-supplied value on `vault/upsert/0.1` MUST be ignored (no error, but no honour). Read-only on the wire, present in metadata views so consumers can drive RP-side flows (e.g. fetch `/auth/challenge` keyed on the principal DID before requesting a proxy-login) without releasing the secret.
|
|
103
|
+
*/
|
|
104
|
+
principalDid?: string;
|
|
105
|
+
ext?: Ext;
|
|
106
|
+
}
|
|
107
|
+
export interface WebOrigin {
|
|
108
|
+
kind: "webOrigin";
|
|
109
|
+
/**
|
|
110
|
+
* Web origin per RFC 6454 (scheme + host + optional port), e.g. "https://github.com". Compared by exact string equality after canonicalisation (lowercase host, default port elided). Consumers wanting subdomain coverage SHOULD add multiple targets, not encode a wildcard.
|
|
111
|
+
*/
|
|
112
|
+
origin: string;
|
|
113
|
+
}
|
|
114
|
+
export interface Did {
|
|
115
|
+
kind: "did";
|
|
116
|
+
/**
|
|
117
|
+
* DID identifying the relying party (e.g. did:web:rp.example). The vault maintainer is responsible for any DID resolution required to act on this entry.
|
|
118
|
+
*/
|
|
119
|
+
did: string;
|
|
120
|
+
}
|
|
121
|
+
export interface IosApp {
|
|
122
|
+
kind: "iosApp";
|
|
123
|
+
/**
|
|
124
|
+
* iOS bundle identifier in reverse-DNS form (e.g. "com.github.stwalkerster.codehub"). Compared by exact string equality. Matches when an iOS Companion identifies the requesting app via its bundle id (typically via the OS Credential Manager integration).
|
|
125
|
+
*/
|
|
126
|
+
bundleId: string;
|
|
127
|
+
/**
|
|
128
|
+
* Optional Apple Developer Team identifier (10-character alphanumeric). When supplied, the maintainer SHOULD also verify the team id of the requesting app before matching — defense in depth against bundle-id squatting on jailbroken devices.
|
|
129
|
+
*/
|
|
130
|
+
teamId?: string;
|
|
131
|
+
}
|
|
132
|
+
export interface AndroidApp {
|
|
133
|
+
kind: "androidApp";
|
|
134
|
+
/**
|
|
135
|
+
* Android package name in reverse-DNS form (e.g. "com.github.android").
|
|
136
|
+
*/
|
|
137
|
+
packageName: string;
|
|
138
|
+
/**
|
|
139
|
+
* SHA-256 fingerprints of the app's signing certificates, in colon-separated hex (the format `apksigner` and the Play Console emit). At least one fingerprint MUST be present. The maintainer matches when ANY of the provided fingerprints matches the requesting app's signature — this supports apps signed by multiple keys (e.g. during certificate rotation via Play App Signing).
|
|
140
|
+
*
|
|
141
|
+
* @minItems 1
|
|
142
|
+
*/
|
|
143
|
+
sha256CertFingerprints: [string, ...string[]];
|
|
144
|
+
}
|
|
145
|
+
export interface AttachmentRef {
|
|
146
|
+
/**
|
|
147
|
+
* Opaque maintainer-assigned id for this attachment; used to fetch the blob via a separate mechanism.
|
|
148
|
+
*/
|
|
149
|
+
id: string;
|
|
150
|
+
/**
|
|
151
|
+
* User-supplied filename (e.g. "recovery-codes.txt").
|
|
152
|
+
*/
|
|
153
|
+
name: string;
|
|
154
|
+
/**
|
|
155
|
+
* Size of the encrypted blob in bytes. Maintainers MAY enforce a maximum per attachment and per entry.
|
|
156
|
+
*/
|
|
157
|
+
sizeBytes: number;
|
|
158
|
+
/**
|
|
159
|
+
* Hex-encoded SHA-256 of the encrypted blob bytes (post-encryption). Lets the consumer verify integrity after fetch.
|
|
160
|
+
*/
|
|
161
|
+
sha256: string;
|
|
162
|
+
/**
|
|
163
|
+
* Optional MIME type hint for the consumer UI (e.g. "text/plain", "application/x-pem-file").
|
|
164
|
+
*/
|
|
165
|
+
contentType?: string;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1. Reverse-DNS-namespaced; consumers MUST ignore unrecognized namespaces.
|
|
169
|
+
*/
|
|
170
|
+
export interface Ext {
|
|
171
|
+
[k: string]: unknown | undefined;
|
|
172
|
+
}
|
|
173
|
+
export interface VaultDeletedEvent {
|
|
174
|
+
kind: "vaultDeleted";
|
|
175
|
+
seq: number;
|
|
176
|
+
occurredAt: string;
|
|
177
|
+
id: string;
|
|
178
|
+
contextId: string;
|
|
179
|
+
graceUntil: string;
|
|
180
|
+
}
|
|
181
|
+
export interface AclChangedEvent {
|
|
182
|
+
kind: "aclChanged";
|
|
183
|
+
seq: number;
|
|
184
|
+
occurredAt: string;
|
|
185
|
+
/**
|
|
186
|
+
* DID of the consumer whose ACL entry changed.
|
|
187
|
+
*/
|
|
188
|
+
subject: string;
|
|
189
|
+
change: "granted" | "revoked" | "roleChanged" | "swapped" | "deviceDisabled" | "deviceWiped";
|
|
190
|
+
}
|
|
191
|
+
export interface PolicyChangedEvent {
|
|
192
|
+
kind: "policyChanged";
|
|
193
|
+
seq: number;
|
|
194
|
+
occurredAt: string;
|
|
195
|
+
policyId: string;
|
|
196
|
+
change: "created" | "updated" | "deleted";
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.
|
|
200
|
+
*/
|
|
201
|
+
export interface Ext1 {
|
|
202
|
+
[k: string]: unknown | undefined;
|
|
203
|
+
}
|
|
204
|
+
/** Trust Task type URI. */
|
|
205
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/sync/event/0.2";
|
|
206
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
207
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/sync/event/0.2#response";
|
|
208
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/sync/event/0.2/payload.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/sync/event/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/sync/event/0.2";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/sync/event/0.2#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/sync/event/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAmNH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,4CAAqD,CAAC;AAE9E,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,qDAA8D,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/trust-task-error/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The canonical error-response payload per SPEC.md §8.2.
|
|
7
|
+
*/
|
|
8
|
+
export interface TrustTaskErrorPayload {
|
|
9
|
+
/**
|
|
10
|
+
* Short identifier for the failure category. MUST be either a framework standard code (SPEC.md §8.3) or an extended code namespaced by the originating spec's slug (SPEC.md §8.5, e.g. 'acl/grant:role_not_recognized').
|
|
11
|
+
*/
|
|
12
|
+
code: (("malformedRequest" | "unsupportedType" | "unsupportedVersion" | "expired" | "proofRequired" | "proofInvalid" | "permissionDenied" | "wrongRecipient" | "identityMismatch" | "taskFailed" | "unavailable" | "internalError") | {
|
|
13
|
+
[k: string]: unknown | undefined;
|
|
14
|
+
}) & string;
|
|
15
|
+
/**
|
|
16
|
+
* Human-readable description of the error. Non-normative; intended for logs and operator UI.
|
|
17
|
+
*/
|
|
18
|
+
message?: string;
|
|
19
|
+
/**
|
|
20
|
+
* true if the producer of the original document MAY retry; false if retrying with the same document is not expected to succeed.
|
|
21
|
+
*/
|
|
22
|
+
retryable: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* RFC 3339 timestamp before which the producer SHOULD NOT retry. Meaningful only when retryable is true.
|
|
25
|
+
*/
|
|
26
|
+
retryAfter?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Optional task-specific extension data. Per-spec error code declarations may pin the shape via a JSON Schema fragment.
|
|
29
|
+
*/
|
|
30
|
+
details?: {};
|
|
31
|
+
}
|
|
32
|
+
/** Trust Task type URI. */
|
|
33
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/trust-task-error/0.2";
|
|
34
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
35
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/trust-task-error/0.2#response";
|
|
36
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/trust-task-error/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,EAAE,CACF,CACI,kBAAkB,GAClB,iBAAiB,GACjB,oBAAoB,GACpB,SAAS,GACT,eAAe,GACf,cAAc,GACd,kBAAkB,GAClB,gBAAgB,GAChB,kBAAkB,GAClB,YAAY,GACZ,aAAa,GACb,eAAe,CAClB,GACD;QACE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;KAClC,CACJ,GACC,MAAM,CAAC;IACT;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,EAAE,CAAC;CACd;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,kDAA2D,CAAC;AAEpF,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,2DAAoE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/trust-task-error/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/trust-task-error/0.2";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/trust-task-error/0.2#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../src/trust-task-error/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA+CH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,kDAA2D,CAAC;AAEpF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,2DAAoE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vault/_shared/0.2/consumer-context.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Reused by vault/proxy-login, vault/release, and any future vault task that needs to feed situational context to the maintainer's policy engine or carry the response to a step-up demand. Producer-supplied fields are advisory — the maintainer cross-checks anything security-relevant against its own state.
|
|
7
|
+
*/
|
|
8
|
+
export interface ConsumerContextStepUpProofSharedDefinitionsUsedByVaultTasksThatHitThePolicyEngine {
|
|
9
|
+
[k: string]: unknown | undefined;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=consumer-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumer-context.d.ts","sourceRoot":"","sources":["../../../../src/vault/_shared/0.2/consumer-context.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,iFAAiF;IAChG,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumer-context.js","sourceRoot":"","sources":["../../../../src/vault/_shared/0.2/consumer-context.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vault/_shared/0.2/sealed-envelope.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Discriminated union over `envelope` kind, used by every vault task that ships secret material across the wire (vault/upsert/0.1 → SealedSecret, vault/release/0.1 → SealedSecret in the response, vault/proxy-login/0.1 → SealedSessionBlob in the response). The cleartext shape sitting INSIDE the envelope is task-specific — VaultSecret for the secret variants, SessionBlob for the proxy-login variant — and is referenced from each task's spec.
|
|
7
|
+
*
|
|
8
|
+
* Consumers dispatch on `envelope`. An unknown envelope kind MUST be rejected (`<task>:envelope_unsupported` error code) rather than silently accepted — there is no fallback to "try parsing as DIDComm". Producers SHOULD advertise the envelope kinds they emit via `trust-task-discovery/0.1`.
|
|
9
|
+
*
|
|
10
|
+
* Forward compatibility: this union starts with three variants for the OpenVTC stack today. New variants (KERI/ACDC envelopes, a future TSP successor, hardware-attested envelopes for TEE-to-TEE transfer, etc.) land as additional `oneOf` entries — never as silent schema relaxations on an existing variant.
|
|
11
|
+
*/
|
|
12
|
+
export interface SealedEnvelopePluggableCipherBearingEnvelopeForVaultPayloads {
|
|
13
|
+
[k: string]: unknown | undefined;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=sealed-envelope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sealed-envelope.d.ts","sourceRoot":"","sources":["../../../../src/vault/_shared/0.2/sealed-envelope.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,4DAA4D;IAC3E,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sealed-envelope.js","sourceRoot":"","sources":["../../../../src/vault/_shared/0.2/sealed-envelope.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vault/_shared/0.2/session-blob.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Cleartext shape of the session material returned by vault/proxy-login/0.1. Like VaultSecret, this is documented for both sides to code-generate against; the wire-form is carried inside an HPKE-sealed envelope.
|
|
7
|
+
*
|
|
8
|
+
* A SessionBlob represents an active session at the third-party service the VTA logged in to on the holder's behalf. The Companion uses it to operate the session (e.g. inject cookies into the browser, set an Authorization header) without ever seeing the long-term credential. The session has a finite TTL; the Companion MUST discard the blob when `expiresAt` passes.
|
|
9
|
+
*/
|
|
10
|
+
export interface SessionBlobSharedDefinitionForTheResultOfAProxyLogin {
|
|
11
|
+
[k: string]: unknown | undefined;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=session-blob.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-blob.d.ts","sourceRoot":"","sources":["../../../../src/vault/_shared/0.2/session-blob.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AACH,MAAM,WAAW,oDAAoD;IACnE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-blob.js","sourceRoot":"","sources":["../../../../src/vault/_shared/0.2/session-blob.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vault/_shared/0.2/vault-entry.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Canonical metadata view of a single vault entry — a credential the holder has stored for use against a third-party site, mobile app, or DID-identified relying party. Referenced by every vault/* specification that returns entry metadata (vault/list, vault/get, vault/upsert response, vault/sync, vault/usage). This definition is the metadata-only view: it deliberately does NOT include secret material. Secrets are released only via vault/release/0.1, and even then are carried inside HPKE-sealed envelopes that the vault Trust Task itself does not parse. The `_shared` folder is skipped by the registry build and by the codegen.
|
|
7
|
+
*
|
|
8
|
+
* Timestamp invariants (SHOULD-level, prose — not expressible in JSON Schema): when both `createdAt` and `updatedAt` are present, `updatedAt >= createdAt`; when `lastUsedAt` is present, `lastUsedAt >= createdAt`; when `expiresAt` is present, `expiresAt > createdAt`. Consumers SHOULD reject documents that violate any of these.
|
|
9
|
+
*/
|
|
10
|
+
export interface VaultEntrySharedDefinitionForTheVaultSpecFamily {
|
|
11
|
+
[k: string]: unknown | undefined;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=vault-entry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vault-entry.d.ts","sourceRoot":"","sources":["../../../../src/vault/_shared/0.2/vault-entry.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AACH,MAAM,WAAW,+CAA+C;IAC9D,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vault-entry.js","sourceRoot":"","sources":["../../../../src/vault/_shared/0.2/vault-entry.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vault/_shared/0.2/vault-secret.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Schema for the cleartext secret payload of a vault entry. Documents the shape both sides of a vault/release/0.1 transfer code-generate against. The secret payload is NEVER transmitted as plaintext JSON on the wire: vault/release/0.1 returns it inside an HPKE-sealed envelope (see SealedSecret in the vault/release payload schema). This shared schema is the authoritative description of the bytes inside that envelope.
|
|
7
|
+
*
|
|
8
|
+
* Sensitive fields (`password`, `privateKey`, `refreshToken`, `secureNotes`, etc.) MUST be zeroised by consumers as soon as their use is complete. Consumers MUST NOT log, persist beyond cache lifetime, or transmit the cleartext outside the release-time scope.
|
|
9
|
+
*
|
|
10
|
+
* Discriminated by `kind`, which mirrors VaultEntry.secretKind on the metadata side. The `kind` value MUST equal the metadata view's `secretKind` for the same entry.
|
|
11
|
+
*/
|
|
12
|
+
export interface VaultSecretSharedDefinitionForVaultSecretMaterial {
|
|
13
|
+
[k: string]: unknown | undefined;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=vault-secret.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vault-secret.d.ts","sourceRoot":"","sources":["../../../../src/vault/_shared/0.2/vault-secret.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,iDAAiD;IAChE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vault-secret.js","sourceRoot":"","sources":["../../../../src/vault/_shared/0.2/vault-secret.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vault/get/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Fetch the metadata view of a single vault entry by id. Returns the same VaultEntry shape vault/list does, but for one specific entry. Secret material is NEVER returned by this task; use vault/release/0.1 to obtain secret bytes.
|
|
7
|
+
*/
|
|
8
|
+
export interface VaultGetPayload {
|
|
9
|
+
/**
|
|
10
|
+
* Vault entry id (as returned in a prior vault/list or vault/sync response).
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
ext?: Ext;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.
|
|
17
|
+
*/
|
|
18
|
+
export interface Ext {
|
|
19
|
+
[k: string]: unknown | undefined;
|
|
20
|
+
}
|
|
21
|
+
/** Trust Task type URI. */
|
|
22
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vault/get/0.2";
|
|
23
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
24
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vault/get/0.2#response";
|
|
25
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/vault/get/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,2CAAoD,CAAC;AAE7E,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,oDAA6D,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vault/get/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vault/get/0.2";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vault/get/0.2#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/vault/get/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAmBH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,2CAAoD,CAAC;AAE7E,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,oDAA6D,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vault/list/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Optional filter — only entries of this secret kind are returned.
|
|
7
|
+
*/
|
|
8
|
+
export type SecretKind = "password" | "passkey" | "oauthTokens" | "didSelfIssued" | "didcommPeer" | "bearerToken" | "sshKey" | "custom";
|
|
9
|
+
/**
|
|
10
|
+
* Query a vault maintainer for the metadata view of stored entries. All filters are AND-combined. Pagination is opaque-cursor based; the maintainer chooses page size within the caller's bound and its own ceiling. Secret material is NEVER returned by this task — even when the requesting consumer has VaultRead capability for the entry, the secret is only released via vault/release/0.1.
|
|
11
|
+
*/
|
|
12
|
+
export interface VaultListPayload {
|
|
13
|
+
/**
|
|
14
|
+
* Optional filter — only entries belonging to this trust context (persona) are returned. Omit to query across all contexts the requesting consumer has VaultRead on.
|
|
15
|
+
*/
|
|
16
|
+
contextId?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Optional filter — only entries with at least one `targets[]` entry of kind `webOrigin` whose origin starts with this prefix. Useful for "all my github.* logins". Maintainers MUST canonicalise (lowercase host) before comparison.
|
|
19
|
+
*/
|
|
20
|
+
targetOriginPrefix?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Optional filter — only entries with at least one `targets[]` entry of kind `did` exactly equal to this value.
|
|
23
|
+
*/
|
|
24
|
+
targetDid?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Optional filter — only entries with at least one `targets[]` entry of kind `iosApp` whose `bundleId` exactly equals this value. The typical iOS Companion lookup.
|
|
27
|
+
*/
|
|
28
|
+
targetIosBundleId?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Optional filter — only entries with at least one `targets[]` entry of kind `androidApp` whose `packageName` exactly equals this value. The typical Android Companion lookup.
|
|
31
|
+
*/
|
|
32
|
+
targetAndroidPackage?: string;
|
|
33
|
+
secretKind?: SecretKind;
|
|
34
|
+
/**
|
|
35
|
+
* Optional filter — only entries whose `tags` array contains this tag.
|
|
36
|
+
*/
|
|
37
|
+
tag?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Optional filter — only entries whose `lastUsedAt` is greater than or equal to this timestamp are returned. Entries that have never been used are excluded when this filter is present.
|
|
40
|
+
*/
|
|
41
|
+
usedSince?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Optional filter — when true, only entries with no `lastUsedAt` are returned. Mutually exclusive with `usedSince`; maintainers MUST reject documents that supply both.
|
|
44
|
+
*/
|
|
45
|
+
neverUsed?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Optional filter — only entries whose `expiresAt` is less than this timestamp are returned. Useful for "what's about to expire" panels.
|
|
48
|
+
*/
|
|
49
|
+
expiresBefore?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Optional filter — when true, only entries with `breachedAt` set are returned; when false, only entries with `breachedAt` absent are returned.
|
|
52
|
+
*/
|
|
53
|
+
breached?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Maximum number of entries to return. Maintainer-defined default and ceiling; the maintainer MAY return fewer.
|
|
56
|
+
*/
|
|
57
|
+
pageSize?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Opaque continuation token returned by the maintainer in a previous response. Consumers MUST treat the cursor as opaque and re-send it verbatim.
|
|
60
|
+
*/
|
|
61
|
+
cursor?: string;
|
|
62
|
+
ext?: Ext;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
66
|
+
*/
|
|
67
|
+
export interface Ext {
|
|
68
|
+
[k: string]: unknown | undefined;
|
|
69
|
+
}
|
|
70
|
+
/** Trust Task type URI. */
|
|
71
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vault/list/0.2";
|
|
72
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
73
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vault/list/0.2#response";
|
|
74
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/vault/list/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,UAAU,GACV,SAAS,GACT,aAAa,GACb,eAAe,GACf,aAAa,GACb,aAAa,GACb,QAAQ,GACR,QAAQ,CAAC;AAEb;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,4CAAqD,CAAC;AAE9E,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,qDAA8D,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vault/list/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vault/list/0.2";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vault/list/0.2#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/vault/list/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA6EH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,4CAAqD,CAAC;AAE9E,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,qDAA8D,CAAC"}
|