@pacspace-io/sdk 0.9.0 → 0.15.2
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/README.md +53 -132
- package/dist/blinding-file.d.ts +13 -0
- package/dist/blinding-file.d.ts.map +1 -0
- package/dist/blinding-guard.d.ts +7 -0
- package/dist/blinding-guard.d.ts.map +1 -0
- package/dist/blinding.d.ts +32 -0
- package/dist/blinding.d.ts.map +1 -0
- package/dist/client.d.ts +28 -4
- package/dist/client.d.ts.map +1 -1
- package/dist/fingerprint.d.ts +26 -5
- package/dist/fingerprint.d.ts.map +1 -1
- package/dist/index.d.ts +35 -35
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7366 -186
- package/dist/index.js.map +7 -1
- package/dist/inputs.txt +132 -0
- package/dist/records-crypto-libraries.json +42 -0
- package/dist/records-crypto-types/proof/hiding-commitment-v1.d.ts +19 -0
- package/dist/records-crypto-types/proof/jcs.d.ts +4 -0
- package/dist/records-crypto-types/proof/layout-document-v1.d.ts +72 -0
- package/dist/records-crypto-types/proof/ledger-head-v1.d.ts +22 -0
- package/dist/records-crypto-types/proof/merkle-v2.d.ts +5 -0
- package/dist/records-crypto-types/proof/payload-ref-v1.d.ts +17 -0
- package/dist/records-crypto-types/proof/seal-input.d.ts +2 -0
- package/dist/records-crypto-types/proof/semantic-receipt-v2.d.ts +89 -0
- package/dist/records-crypto-types/proof/semantic-receipt-v3.d.ts +20 -0
- package/dist/records-crypto-types/proof/slot-encoding-v1.d.ts +169 -0
- package/dist/records-crypto-types/records/flag-threads-v1.d.ts +53 -0
- package/dist/records-crypto-types/records/labels.d.ts +37 -0
- package/dist/records-crypto-types/records/reader-crypto-v1.d.ts +198 -0
- package/dist/records-crypto-types/records/reader-link-v1.d.ts +164 -0
- package/dist/records-crypto-types/records/shared-record-ack-v2.d.ts +72 -0
- package/dist/records-crypto-types/records/signed-acknowledgment-v1.d.ts +38 -0
- package/dist/records-crypto-types/records/signed-acknowledgment-v2.d.ts +12 -0
- package/dist/records-crypto-types/records/trail-index-v1.d.ts +89 -0
- package/dist/records-crypto-types/records/trail-rule.d.ts +54 -0
- package/dist/records-crypto-types/records-crypto/asymmetric/ack-flag-notes-v1.d.ts +57 -0
- package/dist/records-crypto-types/records-crypto/asymmetric/flag-notes-v1.d.ts +55 -0
- package/dist/records-crypto-types/records-crypto/asymmetric/index.d.ts +4 -0
- package/dist/records-crypto-types/records-crypto/asymmetric/reader-wraps-v1.d.ts +83 -0
- package/dist/records-crypto-types/records-crypto/asymmetric/records-asymmetric-v1.d.ts +201 -0
- package/dist/records-crypto-types/records-crypto/base64url.d.ts +3 -0
- package/dist/records-crypto-types/records-crypto/blinding-file.d.ts +16 -0
- package/dist/records-crypto-types/records-crypto/blinding-value.d.ts +10 -0
- package/dist/records-crypto-types/records-crypto/bundle-entry.d.ts +2 -0
- package/dist/records-crypto-types/records-crypto/disclosure-envelope-v1.d.ts +42 -0
- package/dist/records-crypto-types/records-crypto/held-file.d.ts +17 -0
- package/dist/records-crypto-types/records-crypto/hmac-node.d.ts +8 -0
- package/dist/records-crypto-types/records-crypto/hmac-web.d.ts +8 -0
- package/dist/records-crypto-types/records-crypto/index.d.ts +13 -0
- package/dist/records-crypto-types/records-crypto/platform-crypto.d.ts +9 -0
- package/dist/records-crypto-types/records-crypto/record-disclosure-v1.d.ts +171 -0
- package/dist/records-crypto-types/records-crypto/record-hash-v2.d.ts +49 -0
- package/dist/records-crypto-types/records-crypto/record-hash-v3.d.ts +36 -0
- package/dist/records-crypto-types/records-crypto/records-encryption-v1.d.ts +185 -0
- package/dist/records-crypto-types/records-crypto/wrap-shapes-v1.d.ts +23 -0
- package/dist/records-crypto.d.ts +1 -0
- package/dist/records-crypto.js +16105 -0
- package/dist/records-crypto.js.map +7 -0
- package/dist/records-encryption/base64url.d.ts +5 -0
- package/dist/records-encryption/base64url.d.ts.map +1 -0
- package/dist/records-encryption/encrypted-records.d.ts +338 -0
- package/dist/records-encryption/encrypted-records.d.ts.map +1 -0
- package/dist/records-encryption/index.d.ts +14 -0
- package/dist/records-encryption/index.d.ts.map +1 -0
- package/dist/records-encryption/keys.d.ts +40 -0
- package/dist/records-encryption/keys.d.ts.map +1 -0
- package/dist/records-encryption/loader.d.ts +15 -0
- package/dist/records-encryption/loader.d.ts.map +1 -0
- package/dist/records-encryption/pin-store-file.d.ts +8 -0
- package/dist/records-encryption/pin-store-file.d.ts.map +1 -0
- package/dist/records-encryption/pin-store.d.ts +17 -0
- package/dist/records-encryption/pin-store.d.ts.map +1 -0
- package/dist/records-encryption/transport.d.ts +23 -0
- package/dist/records-encryption/transport.d.ts.map +1 -0
- package/dist/records-encryption/words.d.ts +40 -0
- package/dist/records-encryption/words.d.ts.map +1 -0
- package/dist/records-encryption/workspace-secret.d.ts +9 -0
- package/dist/records-encryption/workspace-secret.d.ts.map +1 -0
- package/dist/resources/records.d.ts +112 -2
- package/dist/resources/records.d.ts.map +1 -1
- package/dist/types/common.d.ts +0 -8
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/config.d.ts +7 -5
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/records-encryption.d.ts +136 -0
- package/dist/types/records-encryption.d.ts.map +1 -0
- package/dist/types/records.d.ts +171 -20
- package/dist/types/records.d.ts.map +1 -1
- package/dist/types/verify.d.ts +84 -0
- package/dist/types/verify.d.ts.map +1 -0
- package/dist/webhooks/index.d.ts +1 -1
- package/dist/webhooks/index.d.ts.map +1 -1
- package/dist/webhooks/index.js +229 -5
- package/dist/webhooks/index.js.map +7 -1
- package/dist/webhooks/types.d.ts +15 -7
- package/dist/webhooks/types.d.ts.map +1 -1
- package/dist/workspace-secret-file.d.ts +18 -0
- package/dist/workspace-secret-file.d.ts.map +1 -0
- package/package.json +16 -13
- package/dist/client.js +0 -553
- package/dist/client.js.map +0 -1
- package/dist/errors/index.js +0 -223
- package/dist/errors/index.js.map +0 -1
- package/dist/fingerprint.js +0 -132
- package/dist/fingerprint.js.map +0 -1
- package/dist/resources/balance.d.ts +0 -384
- package/dist/resources/balance.d.ts.map +0 -1
- package/dist/resources/balance.js +0 -1120
- package/dist/resources/balance.js.map +0 -1
- package/dist/resources/customers.d.ts +0 -33
- package/dist/resources/customers.d.ts.map +0 -1
- package/dist/resources/customers.js +0 -26
- package/dist/resources/customers.js.map +0 -1
- package/dist/resources/internal/batch-transport.d.ts +0 -65
- package/dist/resources/internal/batch-transport.d.ts.map +0 -1
- package/dist/resources/internal/batch-transport.js +0 -42
- package/dist/resources/internal/batch-transport.js.map +0 -1
- package/dist/resources/receipts.d.ts +0 -46
- package/dist/resources/receipts.d.ts.map +0 -1
- package/dist/resources/receipts.js +0 -133
- package/dist/resources/receipts.js.map +0 -1
- package/dist/resources/records.js +0 -232
- package/dist/resources/records.js.map +0 -1
- package/dist/resources/submission.d.ts +0 -79
- package/dist/resources/submission.d.ts.map +0 -1
- package/dist/resources/submission.js +0 -398
- package/dist/resources/submission.js.map +0 -1
- package/dist/types/balance.d.ts +0 -966
- package/dist/types/balance.d.ts.map +0 -1
- package/dist/types/balance.js +0 -3
- package/dist/types/balance.js.map +0 -1
- package/dist/types/common.js +0 -3
- package/dist/types/common.js.map +0 -1
- package/dist/types/config.js +0 -3
- package/dist/types/config.js.map +0 -1
- package/dist/types/records.js +0 -5
- package/dist/types/records.js.map +0 -1
- package/dist/types/submission.d.ts +0 -125
- package/dist/types/submission.d.ts.map +0 -1
- package/dist/types/submission.js +0 -3
- package/dist/types/submission.js.map +0 -1
- package/dist/utils/polling.d.ts +0 -32
- package/dist/utils/polling.d.ts.map +0 -1
- package/dist/utils/polling.js +0 -52
- package/dist/utils/polling.js.map +0 -1
- package/dist/utils/retry.js +0 -21
- package/dist/utils/retry.js.map +0 -1
- package/dist/webhooks/types.js +0 -3
- package/dist/webhooks/types.js.map +0 -1
- package/dist/webhooks/verify.js +0 -191
- package/dist/webhooks/verify.js.map +0 -1
|
@@ -1,12 +1,122 @@
|
|
|
1
1
|
import type { HttpClient } from '../client';
|
|
2
2
|
import type { RequestOptions } from '../types/config';
|
|
3
|
-
import type { RecordCheckInput, RecordEmitInput, RecordEmitResponse, RecordHistory, RecordHistoryCheck, RecordHistoryInput, RecordReceiptInput, RecordReceiptResponse } from '../types/records';
|
|
3
|
+
import type { RecordCheckInput, RecordCloseOptions, RecordCloseResponse, RecordDiscloseInput, RecordDisclosureFile, RecordEmitInput, RecordEmitResponse, RecordHistory, RecordHistoryCheck, RecordHistoryInput, RecordReceiptInput, RecordReceiptResponse } from '../types/records';
|
|
4
|
+
import type { RecordCopyFile, RecordOpenOptions, RecordOpenResult, RecordRekeyInput, RecordRekeyResult, RecordRotateResult, RecordTarget, RecordsEncryptionOptions, RecordsGrantCreateInput, RecordsHolderAddInput, RecordsHolderAddResult, RecordsHoldingResult, RecordsIdentityResult, RecordsShareKeyWrapInput } from '../types/records-encryption';
|
|
4
5
|
export declare class RecordsResource {
|
|
5
6
|
private readonly client;
|
|
6
|
-
|
|
7
|
+
private readonly encrypted;
|
|
8
|
+
/** The highest wire `seq` a write in this process was given: `recordType \0 path id` to seq. */
|
|
9
|
+
private readonly lastSeqOf;
|
|
10
|
+
/** This workspace's identity for encrypted records (ADR 0015, N14). */
|
|
11
|
+
readonly identity: {
|
|
12
|
+
/** Draws the seed, registers its public part and the seed wrapped under the current version, and every version's id. Idempotent. */
|
|
13
|
+
register(): Promise<RecordsIdentityResult>;
|
|
14
|
+
};
|
|
15
|
+
/** The workspaces this workspace's keys are wrapped to. Wraps go only to a workspace whose code you confirmed. */
|
|
16
|
+
readonly holders: {
|
|
17
|
+
add(input: RecordsHolderAddInput): Promise<RecordsHolderAddResult>;
|
|
18
|
+
list(): Promise<Record<string, unknown>>;
|
|
19
|
+
remove(holderId: string): Promise<Record<string, unknown>>;
|
|
20
|
+
};
|
|
21
|
+
/** The wraps other workspaces stored for this one. */
|
|
22
|
+
readonly holdings: {
|
|
23
|
+
list(): Promise<Record<string, unknown>>;
|
|
24
|
+
/** Opens each stored wrap, checks it, and confirms it or refuses it so the writer is told. */
|
|
25
|
+
confirm(): Promise<RecordsHoldingResult[]>;
|
|
26
|
+
};
|
|
27
|
+
/** Grants on a record. A grant to a named workspace of an encrypted record carries the record's key, wrapped to it. */
|
|
28
|
+
readonly grants: {
|
|
29
|
+
create(input: RecordsGrantCreateInput): Promise<Record<string, unknown>>;
|
|
30
|
+
list(target: RecordTarget): Promise<Record<string, unknown>>;
|
|
31
|
+
revoke(target: RecordTarget & {
|
|
32
|
+
grantId: string;
|
|
33
|
+
}): Promise<Record<string, unknown>>;
|
|
34
|
+
};
|
|
35
|
+
constructor(client: HttpClient, encryption?: RecordsEncryptionOptions);
|
|
36
|
+
private targetOf;
|
|
37
|
+
/** The wire id PacSpace knows a record by, as a webhook names it. Needs the workspace secret. */
|
|
38
|
+
wireId(input: {
|
|
39
|
+
recordType?: string;
|
|
40
|
+
record: string;
|
|
41
|
+
}): Promise<string>;
|
|
42
|
+
/** The wire id of an entry's reference id. Needs the workspace secret. */
|
|
43
|
+
wireReferenceId(referenceId: string): Promise<string>;
|
|
7
44
|
emit(input: RecordEmitInput, options?: RequestOptions): Promise<RecordEmitResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Closes a record as a fact about it (D-7): no entry is written. The close
|
|
47
|
+
* names the record's last entry, so it is refused while entries are still
|
|
48
|
+
* arriving. Left out, `lastEntry` is the last entry this process wrote to
|
|
49
|
+
* the record, or the record's own last entry, read from PacSpace.
|
|
50
|
+
*/
|
|
51
|
+
close(record: string, input?: RecordCloseOptions, options?: RequestOptions): Promise<RecordCloseResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* One entry's receipt. An encrypted entry is opened with the workspace
|
|
54
|
+
* secret, a holder wrap, a grant's wrap or a record key, and checked
|
|
55
|
+
* against its sealed record hash (`opened`).
|
|
56
|
+
*/
|
|
8
57
|
receipt(input: RecordReceiptInput, options?: RequestOptions): Promise<RecordReceiptResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* The record's history. An encrypted record's entries are opened and
|
|
60
|
+
* each checked against its sealed record hash and its stored references
|
|
61
|
+
* (`opened`); a history served for another record is refused.
|
|
62
|
+
*/
|
|
9
63
|
history(input: RecordHistoryInput, options?: RequestOptions): Promise<RecordHistory>;
|
|
64
|
+
/** The history as the downloadable file; opened as `history()` opens it. */
|
|
65
|
+
bundle(input: RecordHistoryInput, options?: RequestOptions): Promise<RecordHistory>;
|
|
66
|
+
private readHistory;
|
|
67
|
+
/**
|
|
68
|
+
* A copy of one encrypted record (pacspace-record-copy/v1): its history
|
|
69
|
+
* with its record key, for a reader with no workspace. Whoever holds the
|
|
70
|
+
* file can read the record.
|
|
71
|
+
*/
|
|
72
|
+
keepCopy(target: RecordTarget, options?: RequestOptions): Promise<RecordCopyFile>;
|
|
73
|
+
/**
|
|
74
|
+
* One record's key, base64url, for a recipient with no workspace: with a
|
|
75
|
+
* grant on the record they read it as `history({ wireRecordId, grant,
|
|
76
|
+
* recordKey })`. It opens this record only.
|
|
77
|
+
*/
|
|
78
|
+
recordKey(target: RecordTarget, options?: RequestOptions): Promise<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Stores a disclosure link's key wrapped to a reader workspace whose code
|
|
81
|
+
* you confirmed, so it opens the link without the key after #. Give them
|
|
82
|
+
* the link with `#` and the returned `fragment` (`dd=`, the disclosure's
|
|
83
|
+
* digest): their client opens only the disclosure that digest names.
|
|
84
|
+
*/
|
|
85
|
+
shareKeyWrap(input: RecordsShareKeyWrapInput, options?: RequestOptions): Promise<Record<string, unknown> & {
|
|
86
|
+
fragment: string;
|
|
87
|
+
}>;
|
|
88
|
+
/** A link's seal history and sealed disclosure, read as anyone with the link reads them. */
|
|
89
|
+
private linkDisclosure;
|
|
90
|
+
/**
|
|
91
|
+
* Opens a disclosure link: its seal history, checked, and its disclosure,
|
|
92
|
+
* opened with the key after # or, when there is none, with this
|
|
93
|
+
* workspace's wrap, then checked against batch roots read from `source`
|
|
94
|
+
* (the public mirror by default), never from PacSpace.
|
|
95
|
+
*/
|
|
96
|
+
open(link: string, input?: RecordOpenOptions): Promise<RecordOpenResult>;
|
|
97
|
+
/**
|
|
98
|
+
* Moves to the next workspace secret: registers its new version, wraps
|
|
99
|
+
* that version's key to every workspace holder whose pin is held, and
|
|
100
|
+
* wraps this workspace's seed under it. Writes under it wait for
|
|
101
|
+
* required holders to confirm.
|
|
102
|
+
*/
|
|
103
|
+
rotate(input: {
|
|
104
|
+
nextKeyring: string;
|
|
105
|
+
}): Promise<RecordRotateResult>;
|
|
106
|
+
/**
|
|
107
|
+
* Re-encrypts a record's stored entries under a newer version, latest
|
|
108
|
+
* first; seals and record hashes are unchanged. Then wraps the record's
|
|
109
|
+
* new key to its grants and record holders whose pins are held.
|
|
110
|
+
*/
|
|
111
|
+
rekey(input: RecordRekeyInput): Promise<RecordRekeyResult>;
|
|
10
112
|
check(input: RecordCheckInput): Promise<RecordHistoryCheck>;
|
|
113
|
+
/**
|
|
114
|
+
* A kept copy revealing the chosen fields of chosen entries: one read of
|
|
115
|
+
* the record's seal history and full receipts, the disclosure built from
|
|
116
|
+
* them, and the disclosure checked against batch roots read from the
|
|
117
|
+
* caller's `source`, never from PacSpace. It uploads nothing and makes no
|
|
118
|
+
* link; the bytes carry only the salts of the revealed fields.
|
|
119
|
+
*/
|
|
120
|
+
disclose(input: RecordDiscloseInput, options?: RequestOptions): Promise<RecordDisclosureFile>;
|
|
11
121
|
}
|
|
12
122
|
//# sourceMappingURL=records.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../../src/resources/records.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../../src/resources/records.ts"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAO5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAEV,gBAAgB,EAChB,kB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EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;YAI3E,WAAW;IA0BzB;;;;OAIG;IACG,QAAQ,CAAC,MAAM,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;IAUvF;;;;OAIG;IACG,SAAS,CAAC,MAAM,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;IAQhF;;;;;OAKG;IACG,YAAY,CAAC,KAAK,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAiBtI,4FAA4F;YAC9E,cAAc;IAqB5B;;;;;OAKG;IACG,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,GAAE,iBAAsB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAoClF;;;;;OAKG;IACG,MAAM,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIzE;;;;OAIG;IACG,KAAK,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAO1D,KAAK,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAsJjE;;;;;;OAMG;IACG,QAAQ,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAyDpG"}
|
package/dist/types/common.d.ts
CHANGED
|
@@ -10,12 +10,4 @@ export interface RawApiResponse<T = unknown> {
|
|
|
10
10
|
error?: string;
|
|
11
11
|
statusCode?: number;
|
|
12
12
|
}
|
|
13
|
-
/**
|
|
14
|
-
* Record verification lifecycle.
|
|
15
|
-
*/
|
|
16
|
-
export type RecordStatus = 'QUEUED' | 'PROCESSING' | 'VERIFIED' | 'FAILED';
|
|
17
|
-
/**
|
|
18
|
-
* Checkpoint type for balance derivation.
|
|
19
|
-
*/
|
|
20
|
-
export type CheckpointType = 'proofRoot' | 'recordId';
|
|
21
13
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,OAAO;IACzC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,OAAO;IACzC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
package/dist/types/config.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RecordsEncryptionOptions } from './records-encryption';
|
|
2
2
|
/**
|
|
3
3
|
* PacSpace SDK configuration options.
|
|
4
4
|
*/
|
|
5
5
|
export interface PacSpaceConfig {
|
|
6
6
|
/**
|
|
7
|
-
* Your
|
|
7
|
+
* Your PacSpace API key.
|
|
8
8
|
* Format: `pk_live_PUBLIC.SECRET` (production) or `pk_test_PUBLIC.SECRET` (sandbox).
|
|
9
9
|
*/
|
|
10
10
|
apiKey: string;
|
|
@@ -13,7 +13,7 @@ export interface PacSpaceConfig {
|
|
|
13
13
|
*/
|
|
14
14
|
webhookSecret?: string;
|
|
15
15
|
/**
|
|
16
|
-
* Base URL for the
|
|
16
|
+
* Base URL for the PacSpace API.
|
|
17
17
|
* If provided, this overrides the key-based choice.
|
|
18
18
|
* If not provided, the SDK chooses by API key prefix:
|
|
19
19
|
* - `pk_test_*` keys → `sandboxUrl` if set, else `https://app.pacspace.io`
|
|
@@ -87,9 +87,11 @@ export interface PacSpaceConfig {
|
|
|
87
87
|
*/
|
|
88
88
|
bufferMaxDelayMs?: number;
|
|
89
89
|
/**
|
|
90
|
-
*
|
|
90
|
+
* Encrypted records: the workspace secret (`secret` or `secretProvider`)
|
|
91
|
+
* and where confirmed codes are pinned. Without a secret, records are
|
|
92
|
+
* written in plaintext.
|
|
91
93
|
*/
|
|
92
|
-
|
|
94
|
+
records?: RecordsEncryptionOptions;
|
|
93
95
|
}
|
|
94
96
|
/**
|
|
95
97
|
* Per-request options that can override defaults.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACrE;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;IAErB;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,OAAO,CAAC,EAAE,wBAAwB,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uDAAuD;IACvD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4CAA4C;IAC5C,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import type { RecordsPinStore } from '../records-encryption/pin-store';
|
|
2
|
+
import type { RecordCheckSource } from './records';
|
|
3
|
+
/** The workspace secret: a pacspace-workspace-secret/v1 file's text, or the file parsed. */
|
|
4
|
+
export type RecordsSecretSource = string | {
|
|
5
|
+
schema: string;
|
|
6
|
+
secrets: Array<{
|
|
7
|
+
version: number;
|
|
8
|
+
secret: string;
|
|
9
|
+
}>;
|
|
10
|
+
};
|
|
11
|
+
export interface RecordsEncryptionOptions {
|
|
12
|
+
/** The workspace secret. It is the customer's: it stays in this process and is never sent. */
|
|
13
|
+
secret?: RecordsSecretSource;
|
|
14
|
+
/** Called once per client for the workspace secret. */
|
|
15
|
+
secretProvider?: () => RecordsSecretSource | Promise<RecordsSecretSource>;
|
|
16
|
+
/** Where confirmed codes are pinned; a memory store by default. */
|
|
17
|
+
pinStore?: RecordsPinStore;
|
|
18
|
+
}
|
|
19
|
+
/** A record by its own id (worked out to its wire id here) or, for another workspace's record, by its wire id. */
|
|
20
|
+
export interface RecordTarget {
|
|
21
|
+
recordType?: string;
|
|
22
|
+
record?: string;
|
|
23
|
+
wireRecordId?: string;
|
|
24
|
+
/** `false` names a plaintext record by its own id. */
|
|
25
|
+
encrypted?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface RecordsIdentityResult {
|
|
28
|
+
xwingPublicId: string;
|
|
29
|
+
/** The 40-digit code the other side confirms with you, outside PacSpace. */
|
|
30
|
+
code: string;
|
|
31
|
+
created: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface RecordsHolderAddInput {
|
|
34
|
+
workspaceId: string;
|
|
35
|
+
scope?: 'workspace' | 'record';
|
|
36
|
+
required?: boolean;
|
|
37
|
+
/** Record scope: the one record whose key is wrapped. */
|
|
38
|
+
record?: RecordTarget;
|
|
39
|
+
/** The code they read out to you, the first time; later wraps use the pin. */
|
|
40
|
+
confirmedCode?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface RecordsHolderAddResult {
|
|
43
|
+
holderId: string;
|
|
44
|
+
created: boolean;
|
|
45
|
+
wraps: Array<{
|
|
46
|
+
version: number | null;
|
|
47
|
+
state: string;
|
|
48
|
+
}>;
|
|
49
|
+
}
|
|
50
|
+
export interface RecordsHoldingResult {
|
|
51
|
+
holderId: string;
|
|
52
|
+
version: number | null;
|
|
53
|
+
state: string;
|
|
54
|
+
reason?: string;
|
|
55
|
+
}
|
|
56
|
+
export interface RecordsGrantCreateInput extends RecordTarget {
|
|
57
|
+
kind: 'BEARER' | 'RECIPIENT_BOUND' | 'TENANT_BOUND';
|
|
58
|
+
recipientEmail?: string;
|
|
59
|
+
counterpartyWorkspaceId?: string;
|
|
60
|
+
authorizes?: 'acknowledgment';
|
|
61
|
+
ttlHours?: number;
|
|
62
|
+
maxUses?: number;
|
|
63
|
+
label?: string;
|
|
64
|
+
/** For a grant to a named workspace on an encrypted record, the first time. */
|
|
65
|
+
confirmedCode?: string;
|
|
66
|
+
}
|
|
67
|
+
export interface RecordsShareKeyWrapInput extends RecordTarget {
|
|
68
|
+
handle: string;
|
|
69
|
+
/** The link's key: its bytes, the link, or its `#dk=` part. */
|
|
70
|
+
disclosureKey: Uint8Array | string;
|
|
71
|
+
workspaceId: string;
|
|
72
|
+
confirmedCode?: string;
|
|
73
|
+
/** The link's access code, when it has one: its disclosure is read to name it in the fragment. */
|
|
74
|
+
accessCode?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface RecordCopyFile {
|
|
77
|
+
schema: 'pacspace-record-copy/v1';
|
|
78
|
+
bytes: Uint8Array;
|
|
79
|
+
}
|
|
80
|
+
export interface RecordOpenOptions {
|
|
81
|
+
accessCode?: string;
|
|
82
|
+
/** Where batch roots are read; the public mirror by default. */
|
|
83
|
+
source?: RecordCheckSource;
|
|
84
|
+
}
|
|
85
|
+
export interface RecordOpenResult {
|
|
86
|
+
handle: string;
|
|
87
|
+
sealHistory: Record<string, unknown>;
|
|
88
|
+
/** Null when the link reveals no fields. */
|
|
89
|
+
disclosure: Record<string, unknown> | null;
|
|
90
|
+
/**
|
|
91
|
+
* The revealed entries, counted from 1, checked. `fields` holds each
|
|
92
|
+
* revealed field by its JSON pointer; `content` is the whole entry when
|
|
93
|
+
* nothing in it was withheld.
|
|
94
|
+
*/
|
|
95
|
+
entries: Array<{
|
|
96
|
+
entry: number;
|
|
97
|
+
fields: Array<{
|
|
98
|
+
pointer: string;
|
|
99
|
+
value: unknown;
|
|
100
|
+
}>;
|
|
101
|
+
content: Record<string, unknown> | null;
|
|
102
|
+
withheld: number;
|
|
103
|
+
}>;
|
|
104
|
+
}
|
|
105
|
+
export interface RecordRotateResult {
|
|
106
|
+
version: number;
|
|
107
|
+
kid: string;
|
|
108
|
+
holders: Array<{
|
|
109
|
+
holderId: string;
|
|
110
|
+
workspaceId: string;
|
|
111
|
+
wrapped: boolean;
|
|
112
|
+
code?: string;
|
|
113
|
+
}>;
|
|
114
|
+
/** Holders the new version has no wrap for yet: writes under it wait until each required one has one. */
|
|
115
|
+
holdersNeedingConfirmation: string[];
|
|
116
|
+
}
|
|
117
|
+
export interface RecordRekeyInput extends RecordTarget {
|
|
118
|
+
toVersion: number;
|
|
119
|
+
}
|
|
120
|
+
export interface RecordRekeyResult {
|
|
121
|
+
entries: Array<{
|
|
122
|
+
entry: number;
|
|
123
|
+
state: 'swapped' | 'already';
|
|
124
|
+
}>;
|
|
125
|
+
grants: Array<{
|
|
126
|
+
grantId: string;
|
|
127
|
+
wrapped: boolean;
|
|
128
|
+
code?: string;
|
|
129
|
+
}>;
|
|
130
|
+
holders: Array<{
|
|
131
|
+
holderId: string;
|
|
132
|
+
wrapped: boolean;
|
|
133
|
+
code?: string;
|
|
134
|
+
}>;
|
|
135
|
+
}
|
|
136
|
+
//# sourceMappingURL=records-encryption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"records-encryption.d.ts","sourceRoot":"","sources":["../../src/types/records-encryption.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEnD,4FAA4F;AAC5F,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,KAAK,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC;AAEnH,MAAM,WAAW,wBAAwB;IACvC,8FAA8F;IAC9F,MAAM,CAAC,EAAE,mBAAmB,CAA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E,CAAC,CAAC;CAClJ;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,KAAK,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC3F,yGAAyG;IACzG,0BAA0B,EAAE,MAAM,EAAE,CAAC;CACtC;AAED,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,SAAS,GAAG,SAAS,CAAA;KAAE,CAAC,CAAC;IAChE,MAAM,EAAE,KAAK,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACpE,OAAO,EAAE,KAAK,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACvE"}
|
package/dist/types/records.d.ts
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Blinding } from '../blinding';
|
|
2
|
+
import type { FingerprintInput, PayloadRef } from '../fingerprint';
|
|
2
3
|
export type RecordLifecycle = 'recorded' | 'amended' | 'closed';
|
|
3
4
|
export type RecordEntryStatus = 'queued' | 'committed' | 'failed';
|
|
5
|
+
/**
|
|
6
|
+
* An entry's number in its record, counted from 1 as every PacSpace page
|
|
7
|
+
* counts it: the first entry is entry 1. The HTTP API and the history file
|
|
8
|
+
* carry the same position as `seq`, counted from 0 (`seq = entry - 1`); the
|
|
9
|
+
* SDK converts at its boundary, so a caller never sends or reads a `seq`.
|
|
10
|
+
*/
|
|
11
|
+
export type EntryNumber = number;
|
|
12
|
+
/** Names a committed entry of a record: by the record's key and the entry's number. */
|
|
13
|
+
export interface RecordEntryRef {
|
|
14
|
+
recordKey: string;
|
|
15
|
+
/** Counted from 1, as the pages count. */
|
|
16
|
+
entry: EntryNumber;
|
|
17
|
+
}
|
|
4
18
|
export interface RecordEmitInput {
|
|
5
19
|
record: string;
|
|
6
20
|
recordType?: string;
|
|
@@ -11,17 +25,83 @@ export interface RecordEmitInput {
|
|
|
11
25
|
actorId: string;
|
|
12
26
|
instructedBy?: string;
|
|
13
27
|
payloads: PayloadRef[];
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
amends?: {
|
|
19
|
-
recordKey: string;
|
|
20
|
-
entry: number;
|
|
21
|
-
};
|
|
28
|
+
/** Committed entries this entry refers to, in this record or another. */
|
|
29
|
+
references?: RecordEntryRef[];
|
|
30
|
+
/** The committed entry this entry corrects. The original stays visible. */
|
|
31
|
+
amends?: RecordEntryRef;
|
|
22
32
|
description?: string;
|
|
23
33
|
note?: string;
|
|
24
34
|
idempotencyKey?: string;
|
|
35
|
+
/**
|
|
36
|
+
* With a workspace secret set, entries are encrypted by default; `false`
|
|
37
|
+
* writes plaintext, for a record that was started in plaintext.
|
|
38
|
+
*/
|
|
39
|
+
encrypt?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Labels on the record, never in the entry's content and never committed.
|
|
42
|
+
* With a workspace secret set, each is blinded before it is sent.
|
|
43
|
+
*/
|
|
44
|
+
labels?: RecordLabels;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Up to 10 `name=value` pairs: names of lowercase letters, digits, `_`, `.`
|
|
48
|
+
* and `-`, at most 32 characters; values of letters, digits and `._:/-`, at
|
|
49
|
+
* most 64. A string is read as the dashboard reads one: pairs split on `,`,
|
|
50
|
+
* `;` or a newline, each `name=value` or `name:value`, names lowercased.
|
|
51
|
+
*/
|
|
52
|
+
export type RecordLabels = Record<string, string> | string;
|
|
53
|
+
export interface RecordCloseOptions {
|
|
54
|
+
recordType?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The record's last entry, counted from 1. Left out, the SDK uses the last
|
|
57
|
+
* entry this process wrote to the record, or reads it from the record.
|
|
58
|
+
*/
|
|
59
|
+
lastEntry?: EntryNumber;
|
|
60
|
+
/** With a workspace secret set, `false` closes a plaintext record by its own id. */
|
|
61
|
+
encrypted?: boolean;
|
|
62
|
+
}
|
|
63
|
+
export interface RecordCloseResponse {
|
|
64
|
+
recordType: string;
|
|
65
|
+
entityId: string;
|
|
66
|
+
recordKey: string;
|
|
67
|
+
closed: true;
|
|
68
|
+
closedBy: 'code';
|
|
69
|
+
closedAt: string;
|
|
70
|
+
/** The record's last entry, counted from 1. */
|
|
71
|
+
lastEntry: EntryNumber;
|
|
72
|
+
lastSeal: string | null;
|
|
73
|
+
/** True when this call repeated a close already made with the same last entry. */
|
|
74
|
+
idempotent: boolean;
|
|
75
|
+
/** Encrypted records: the record's own id, as passed. */
|
|
76
|
+
recordId?: string;
|
|
77
|
+
/** Encrypted records: the id PacSpace knows the record by. */
|
|
78
|
+
wireRecordId?: string;
|
|
79
|
+
encrypted?: boolean;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* How a read reaches a record. With a workspace secret set, a record is read
|
|
83
|
+
* by its wire id, worked out here from `record`; `encrypted: false` reads a
|
|
84
|
+
* plaintext record by its own id. A holder or a grant reader, who has no way
|
|
85
|
+
* to work out another workspace's wire ids, passes `wireRecordId`.
|
|
86
|
+
*/
|
|
87
|
+
export interface RecordReadOptions {
|
|
88
|
+
encrypted?: boolean;
|
|
89
|
+
wireRecordId?: string;
|
|
90
|
+
/** A grant on the record, sent in the X-PacSpace-Grant header. */
|
|
91
|
+
grant?: string;
|
|
92
|
+
/** The owning workspace's id: required with `grant` on an encrypted record; its wrap is bound to it. */
|
|
93
|
+
owner?: string;
|
|
94
|
+
/** The record's key, as `records.recordKey()` exports it, for a reader with no workspace. */
|
|
95
|
+
recordKey?: string;
|
|
96
|
+
/** The owning workspace's id, when this workspace reads as one of its holders. */
|
|
97
|
+
holderFor?: string;
|
|
98
|
+
}
|
|
99
|
+
/** One entry of an encrypted record, opened and checked against its sealed record hash. */
|
|
100
|
+
export interface OpenedRecordEntry {
|
|
101
|
+
/** Counted from 1. */
|
|
102
|
+
entry: EntryNumber;
|
|
103
|
+
recordHash: string;
|
|
104
|
+
content: Record<string, unknown>;
|
|
25
105
|
}
|
|
26
106
|
export interface RecordEmitResponse {
|
|
27
107
|
intakeId?: string;
|
|
@@ -39,10 +119,21 @@ export interface RecordEmitResponse {
|
|
|
39
119
|
message?: string;
|
|
40
120
|
code?: string;
|
|
41
121
|
retryAfterSeconds?: number;
|
|
122
|
+
/** The number this entry will have in its record, counted from 1. */
|
|
123
|
+
entry?: EntryNumber;
|
|
124
|
+
/** Encrypted writes: the record's own id, as passed. */
|
|
125
|
+
recordId?: string;
|
|
126
|
+
/** Encrypted writes: the id PacSpace knows the record by. A webhook names this one. */
|
|
127
|
+
wireRecordId?: string;
|
|
128
|
+
/** Encrypted writes: the reference id PacSpace knows the entry by. */
|
|
129
|
+
wireReferenceId?: string;
|
|
130
|
+
encrypted?: boolean;
|
|
42
131
|
}
|
|
43
|
-
export interface RecordReceiptInput {
|
|
44
|
-
record
|
|
45
|
-
|
|
132
|
+
export interface RecordReceiptInput extends RecordReadOptions {
|
|
133
|
+
/** The record's own id; may be left out when `wireRecordId` is given. */
|
|
134
|
+
record?: string;
|
|
135
|
+
/** Counted from 1, as the pages count. */
|
|
136
|
+
entry: EntryNumber;
|
|
46
137
|
recordType?: string;
|
|
47
138
|
}
|
|
48
139
|
export interface RecordReceiptResponse {
|
|
@@ -50,13 +141,23 @@ export interface RecordReceiptResponse {
|
|
|
50
141
|
entityId: string;
|
|
51
142
|
receipt: Record<string, unknown>;
|
|
52
143
|
verify?: Record<string, unknown>;
|
|
144
|
+
/** An encrypted entry, opened. */
|
|
145
|
+
opened?: OpenedRecordEntry;
|
|
53
146
|
}
|
|
54
|
-
export interface RecordHistoryInput {
|
|
55
|
-
record
|
|
56
|
-
|
|
57
|
-
|
|
147
|
+
export interface RecordHistoryInput extends RecordReadOptions {
|
|
148
|
+
/** The record's own id; may be left out when `wireRecordId` is given. */
|
|
149
|
+
record?: string;
|
|
150
|
+
/** First entry to read, counted from 1. */
|
|
151
|
+
fromEntry?: EntryNumber;
|
|
152
|
+
/** Last entry to read, counted from 1. */
|
|
153
|
+
toEntry?: EntryNumber;
|
|
58
154
|
recordType?: string;
|
|
59
155
|
}
|
|
156
|
+
/**
|
|
157
|
+
* One line of the history as the API serves it. The history is the wire
|
|
158
|
+
* document the check verifies by its digest, so it keeps the wire's `seq`
|
|
159
|
+
* (counted from 0); the entry's number as the pages count it is `seq + 1`.
|
|
160
|
+
*/
|
|
60
161
|
export interface RecordHistoryEntry {
|
|
61
162
|
seq: number | null;
|
|
62
163
|
status: RecordEntryStatus;
|
|
@@ -71,45 +172,95 @@ export interface RecordHistory {
|
|
|
71
172
|
chainId?: number;
|
|
72
173
|
contractAddress?: string;
|
|
73
174
|
};
|
|
175
|
+
/**
|
|
176
|
+
* semantic-receipt/v2 (`recordContent`) or, for a record created with record
|
|
177
|
+
* hash v2, semantic-receipt/v3 (`leaves` and the `revealed` fields).
|
|
178
|
+
*/
|
|
74
179
|
receipts: Array<Record<string, unknown> & {
|
|
180
|
+
schema?: string;
|
|
75
181
|
status?: RecordEntryStatus;
|
|
76
182
|
seq?: number;
|
|
77
183
|
recordContent?: Record<string, unknown>;
|
|
184
|
+
leaves?: string[];
|
|
185
|
+
revealed?: Array<{
|
|
186
|
+
pointer: string;
|
|
187
|
+
value: unknown;
|
|
188
|
+
salt: string;
|
|
189
|
+
}>;
|
|
78
190
|
receiptId?: string;
|
|
79
191
|
}>;
|
|
80
192
|
pendingEntries?: RecordHistoryEntry[];
|
|
81
193
|
entries?: RecordHistoryEntry[];
|
|
82
194
|
nextFromSeq?: number | null;
|
|
83
195
|
bundleDigest?: string;
|
|
196
|
+
/** An encrypted record's entries, opened and checked; attempt and failure rows are not listed. */
|
|
197
|
+
opened?: OpenedRecordEntry[];
|
|
84
198
|
[key: string]: unknown;
|
|
85
199
|
}
|
|
200
|
+
/** A file you hold, with its blinding when the entry's fingerprint is blinded. */
|
|
201
|
+
export interface RecordCheckFile {
|
|
202
|
+
source: FingerprintInput;
|
|
203
|
+
blinding?: Blinding | null;
|
|
204
|
+
}
|
|
86
205
|
export interface RecordCheckExpect {
|
|
87
|
-
|
|
88
|
-
|
|
206
|
+
/** Counted from 1, as the pages count. */
|
|
207
|
+
entry: EntryNumber;
|
|
208
|
+
payloads?: PayloadRef[];
|
|
209
|
+
/** Files the entry should name, checked from their bytes. */
|
|
210
|
+
files?: RecordCheckFile[];
|
|
89
211
|
}
|
|
90
212
|
export interface RecordCheckSource {
|
|
91
213
|
kind: 'mirror' | 'direct';
|
|
92
214
|
url?: string;
|
|
93
215
|
address?: string;
|
|
94
216
|
}
|
|
95
|
-
|
|
217
|
+
/**
|
|
218
|
+
* An encrypted record's history is opened with the record's key before it is
|
|
219
|
+
* checked: the workspace secret's, or the one `grant` and `owner`, `recordKey`
|
|
220
|
+
* or `holderFor` name, as `records.history` took them.
|
|
221
|
+
*/
|
|
222
|
+
export interface RecordCheckInput extends Pick<RecordReadOptions, 'grant' | 'owner' | 'recordKey' | 'holderFor'> {
|
|
96
223
|
history: RecordHistory;
|
|
97
224
|
expect?: RecordCheckExpect[];
|
|
98
225
|
source?: RecordCheckSource;
|
|
99
226
|
}
|
|
100
227
|
export interface RecordCheckEntryResult {
|
|
101
|
-
|
|
228
|
+
/** Counted from 1, as the pages count; null for a queued write that has no place yet. */
|
|
229
|
+
entry: EntryNumber | null;
|
|
102
230
|
status: RecordEntryStatus;
|
|
103
231
|
expected?: boolean;
|
|
232
|
+
/** Read from the entry's verified word; null for an entry that did not verify, has no receipt, or is queued or failed. */
|
|
233
|
+
kind?: 'transition' | 'attempt' | 'failure' | null;
|
|
104
234
|
code?: string;
|
|
105
235
|
sentence?: string;
|
|
106
236
|
}
|
|
237
|
+
/** Which fields of one entry a disclosure reveals: every field, or the listed fields by their pointers. */
|
|
238
|
+
export interface RecordDiscloseEntry {
|
|
239
|
+
/** Counted from 1, as the pages count. */
|
|
240
|
+
entry: EntryNumber;
|
|
241
|
+
reveal: 'all' | string[];
|
|
242
|
+
}
|
|
243
|
+
export interface RecordDiscloseInput {
|
|
244
|
+
record: string;
|
|
245
|
+
recordType?: string;
|
|
246
|
+
entries: RecordDiscloseEntry[];
|
|
247
|
+
/** The public ledger the file is checked against, as in `records.check`. */
|
|
248
|
+
source: RecordCheckSource;
|
|
249
|
+
}
|
|
250
|
+
/** A kept copy: the record's seal history and the disclosure, for the caller to write. */
|
|
251
|
+
export interface RecordDisclosureFile {
|
|
252
|
+
bytes: Uint8Array;
|
|
253
|
+
schema: 'record-link-copy/v1';
|
|
254
|
+
}
|
|
107
255
|
export interface RecordHistoryCheck {
|
|
108
256
|
ok: boolean;
|
|
109
257
|
entries: RecordCheckEntryResult[];
|
|
110
258
|
failedCheck: string | null;
|
|
111
259
|
sourceChecked: boolean;
|
|
112
260
|
reason?: string;
|
|
261
|
+
/** Entries with a blinded fingerprint that a file was passed for without its blinding. */
|
|
262
|
+
blindingFileNeeded?: EntryNumber[];
|
|
263
|
+
note?: string;
|
|
113
264
|
}
|
|
114
265
|
export declare const DEFAULT_RECORD_TYPE = "machine-action-record";
|
|
115
266
|
//# sourceMappingURL=records.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../../src/types/records.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../../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