@structured-id/proto 0.1.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/generated/sid/v1/admin/enrollment.client.d.ts +6 -4
- package/dist/generated/sid/v1/admin/enrollment.client.js +3 -2
- package/dist/generated/sid/v1/admin/enrollment.client.js.map +1 -1
- package/dist/generated/sid/v1/admin/enrollment.d.ts +39 -6
- package/dist/generated/sid/v1/admin/enrollment.js +42 -7
- package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.client.d.ts +46 -3
- package/dist/generated/sid/v1/authn/auth.client.js +73 -49
- package/dist/generated/sid/v1/authn/auth.client.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.d.ts +42 -27
- package/dist/generated/sid/v1/authn/auth.js +39 -50
- package/dist/generated/sid/v1/authn/auth.js.map +1 -1
- package/dist/generated/sid/v1/authn/password_history.client.d.ts +68 -0
- package/dist/generated/sid/v1/authn/password_history.client.js +36 -0
- package/dist/generated/sid/v1/authn/password_history.client.js.map +1 -1
- package/dist/generated/sid/v1/authn/password_history.d.ts +254 -0
- package/dist/generated/sid/v1/authn/password_history.js +348 -2
- package/dist/generated/sid/v1/authn/password_history.js.map +1 -1
- package/dist/generated/sid/v1/identity/identity.d.ts +118 -0
- package/dist/generated/sid/v1/identity/identity.js +143 -1
- package/dist/generated/sid/v1/identity/identity.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
2
2
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
3
|
+
import type { PreparePasswordHistoryResponse } from "./password_history.js";
|
|
4
|
+
import type { PreparePasswordHistoryRequest } from "./password_history.js";
|
|
3
5
|
import type { EvaluatePasswordHistoryResponse } from "./password_history.js";
|
|
4
6
|
import type { EvaluatePasswordHistoryRequest } from "./password_history.js";
|
|
5
7
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
@@ -22,6 +24,39 @@ export interface IPasswordHistoryEvaluatorServiceClient {
|
|
|
22
24
|
* @generated from protobuf rpc: EvaluatePasswordHistory
|
|
23
25
|
*/
|
|
24
26
|
evaluatePasswordHistory(input: EvaluatePasswordHistoryRequest, options?: RpcOptions): UnaryCall<EvaluatePasswordHistoryRequest, EvaluatePasswordHistoryResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Admit a password operation the credential service has just stored and
|
|
29
|
+
* select its comparison domains: the owner's current history key, created
|
|
30
|
+
* or replaced here when it has none or a stale one (keys are made, sealed,
|
|
31
|
+
* stored and used only by the evaluator, durably before the first
|
|
32
|
+
* evaluation), followed by every replaced key whose domain the request names
|
|
33
|
+
* as still holding a retained password. The evaluator keeps its own record
|
|
34
|
+
* of the operation from this admission; it never reads the credential
|
|
35
|
+
* service's record. Called only by the credential service, under its own
|
|
36
|
+
* service identity; deliberately not exposed over HTTP. Repeating the call
|
|
37
|
+
* for the same operation with the same admission returns the same domains;
|
|
38
|
+
* a repeat with any admission field changed fails.
|
|
39
|
+
*
|
|
40
|
+
* The request is also how the evaluator learns the owner's history
|
|
41
|
+
* lifecycle without seeing an entry or a tag. It keeps, durably and shared
|
|
42
|
+
* by every replica, the newest revision and live set it has accepted per
|
|
43
|
+
* owner; one revision has exactly one live set, and a request naming
|
|
44
|
+
* another set for an accepted revision fails. A replaced key is retired
|
|
45
|
+
* only when it is absent from the live set of the newest accepted revision
|
|
46
|
+
* and no operation that used it is still pending: an operation's pin is
|
|
47
|
+
* released when an accepted revision names it as settled, or once the
|
|
48
|
+
* operation's own lifetime has ended (an expired operation can never
|
|
49
|
+
* commit), so a commit not yet announced never loses its key; a lost reply
|
|
50
|
+
* or a call timeout settles nothing.
|
|
51
|
+
* No call is needed after the last operation: its pin ends with its
|
|
52
|
+
* lifetime, and a later revision (retention, a commit) takes effect at the
|
|
53
|
+
* owner's next operation, the only point where the evaluator selects keys.
|
|
54
|
+
* Retirement stops new use; destroying the retired key follows the
|
|
55
|
+
* history's recovery custody and restore points, never earlier.
|
|
56
|
+
*
|
|
57
|
+
* @generated from protobuf rpc: PreparePasswordHistory
|
|
58
|
+
*/
|
|
59
|
+
preparePasswordHistory(input: PreparePasswordHistoryRequest, options?: RpcOptions): UnaryCall<PreparePasswordHistoryRequest, PreparePasswordHistoryResponse>;
|
|
25
60
|
}
|
|
26
61
|
/**
|
|
27
62
|
* The VOPRF evaluator of password history. Deployed with its own service
|
|
@@ -48,4 +83,37 @@ export declare class PasswordHistoryEvaluatorServiceClient implements IPasswordH
|
|
|
48
83
|
* @generated from protobuf rpc: EvaluatePasswordHistory
|
|
49
84
|
*/
|
|
50
85
|
evaluatePasswordHistory(input: EvaluatePasswordHistoryRequest, options?: RpcOptions): UnaryCall<EvaluatePasswordHistoryRequest, EvaluatePasswordHistoryResponse>;
|
|
86
|
+
/**
|
|
87
|
+
* Admit a password operation the credential service has just stored and
|
|
88
|
+
* select its comparison domains: the owner's current history key, created
|
|
89
|
+
* or replaced here when it has none or a stale one (keys are made, sealed,
|
|
90
|
+
* stored and used only by the evaluator, durably before the first
|
|
91
|
+
* evaluation), followed by every replaced key whose domain the request names
|
|
92
|
+
* as still holding a retained password. The evaluator keeps its own record
|
|
93
|
+
* of the operation from this admission; it never reads the credential
|
|
94
|
+
* service's record. Called only by the credential service, under its own
|
|
95
|
+
* service identity; deliberately not exposed over HTTP. Repeating the call
|
|
96
|
+
* for the same operation with the same admission returns the same domains;
|
|
97
|
+
* a repeat with any admission field changed fails.
|
|
98
|
+
*
|
|
99
|
+
* The request is also how the evaluator learns the owner's history
|
|
100
|
+
* lifecycle without seeing an entry or a tag. It keeps, durably and shared
|
|
101
|
+
* by every replica, the newest revision and live set it has accepted per
|
|
102
|
+
* owner; one revision has exactly one live set, and a request naming
|
|
103
|
+
* another set for an accepted revision fails. A replaced key is retired
|
|
104
|
+
* only when it is absent from the live set of the newest accepted revision
|
|
105
|
+
* and no operation that used it is still pending: an operation's pin is
|
|
106
|
+
* released when an accepted revision names it as settled, or once the
|
|
107
|
+
* operation's own lifetime has ended (an expired operation can never
|
|
108
|
+
* commit), so a commit not yet announced never loses its key; a lost reply
|
|
109
|
+
* or a call timeout settles nothing.
|
|
110
|
+
* No call is needed after the last operation: its pin ends with its
|
|
111
|
+
* lifetime, and a later revision (retention, a commit) takes effect at the
|
|
112
|
+
* owner's next operation, the only point where the evaluator selects keys.
|
|
113
|
+
* Retirement stops new use; destroying the retired key follows the
|
|
114
|
+
* history's recovery custody and restore points, never earlier.
|
|
115
|
+
*
|
|
116
|
+
* @generated from protobuf rpc: PreparePasswordHistory
|
|
117
|
+
*/
|
|
118
|
+
preparePasswordHistory(input: PreparePasswordHistoryRequest, options?: RpcOptions): UnaryCall<PreparePasswordHistoryRequest, PreparePasswordHistoryResponse>;
|
|
51
119
|
}
|
|
@@ -28,5 +28,41 @@ export class PasswordHistoryEvaluatorServiceClient {
|
|
|
28
28
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
29
29
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Admit a password operation the credential service has just stored and
|
|
33
|
+
* select its comparison domains: the owner's current history key, created
|
|
34
|
+
* or replaced here when it has none or a stale one (keys are made, sealed,
|
|
35
|
+
* stored and used only by the evaluator, durably before the first
|
|
36
|
+
* evaluation), followed by every replaced key whose domain the request names
|
|
37
|
+
* as still holding a retained password. The evaluator keeps its own record
|
|
38
|
+
* of the operation from this admission; it never reads the credential
|
|
39
|
+
* service's record. Called only by the credential service, under its own
|
|
40
|
+
* service identity; deliberately not exposed over HTTP. Repeating the call
|
|
41
|
+
* for the same operation with the same admission returns the same domains;
|
|
42
|
+
* a repeat with any admission field changed fails.
|
|
43
|
+
*
|
|
44
|
+
* The request is also how the evaluator learns the owner's history
|
|
45
|
+
* lifecycle without seeing an entry or a tag. It keeps, durably and shared
|
|
46
|
+
* by every replica, the newest revision and live set it has accepted per
|
|
47
|
+
* owner; one revision has exactly one live set, and a request naming
|
|
48
|
+
* another set for an accepted revision fails. A replaced key is retired
|
|
49
|
+
* only when it is absent from the live set of the newest accepted revision
|
|
50
|
+
* and no operation that used it is still pending: an operation's pin is
|
|
51
|
+
* released when an accepted revision names it as settled, or once the
|
|
52
|
+
* operation's own lifetime has ended (an expired operation can never
|
|
53
|
+
* commit), so a commit not yet announced never loses its key; a lost reply
|
|
54
|
+
* or a call timeout settles nothing.
|
|
55
|
+
* No call is needed after the last operation: its pin ends with its
|
|
56
|
+
* lifetime, and a later revision (retention, a commit) takes effect at the
|
|
57
|
+
* owner's next operation, the only point where the evaluator selects keys.
|
|
58
|
+
* Retirement stops new use; destroying the retired key follows the
|
|
59
|
+
* history's recovery custody and restore points, never earlier.
|
|
60
|
+
*
|
|
61
|
+
* @generated from protobuf rpc: PreparePasswordHistory
|
|
62
|
+
*/
|
|
63
|
+
preparePasswordHistory(input, options) {
|
|
64
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
65
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
66
|
+
}
|
|
31
67
|
}
|
|
32
68
|
//# sourceMappingURL=password_history.client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password_history.client.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/authn/password_history.client.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"password_history.client.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/authn/password_history.client.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AAGxE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAyD1D;;;;;;GAMG;AACH,MAAM,OAAO,qCAAqC;IAIjB;IAH7B,QAAQ,GAAG,+BAA+B,CAAC,QAAQ,CAAC;IACpD,OAAO,GAAG,+BAA+B,CAAC,OAAO,CAAC;IAClD,OAAO,GAAG,+BAA+B,CAAC,OAAO,CAAC;IAClD,YAA6B,UAAwB;QAAxB,eAAU,GAAV,UAAU,CAAc;IACrD,CAAC;IACD;;;;;;;;OAQG;IACH,uBAAuB,CAAC,KAAqC,EAAE,OAAoB;QAC/E,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAAkE,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACzI,CAAC;IACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,sBAAsB,CAAC,KAAoC,EAAE,OAAoB;QAC7E,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAAgE,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACvI,CAAC;CACJ","sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck\n// @generated from protobuf file \"sid/v1/authn/password_history.proto\" (package \"sid.v1.authn\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\nimport type { RpcTransport } from \"@protobuf-ts/runtime-rpc\";\nimport type { ServiceInfo } from \"@protobuf-ts/runtime-rpc\";\nimport { PasswordHistoryEvaluatorService } from \"./password_history.js\";\nimport type { PreparePasswordHistoryResponse } from \"./password_history.js\";\nimport type { PreparePasswordHistoryRequest } from \"./password_history.js\";\nimport { stackIntercept } from \"@protobuf-ts/runtime-rpc\";\nimport type { EvaluatePasswordHistoryResponse } from \"./password_history.js\";\nimport type { EvaluatePasswordHistoryRequest } from \"./password_history.js\";\nimport type { UnaryCall } from \"@protobuf-ts/runtime-rpc\";\nimport type { RpcOptions } from \"@protobuf-ts/runtime-rpc\";\n/**\n * The VOPRF evaluator of password history. Deployed with its own service\n * identity and key access, separate from the credential service that runs the\n * history checker.\n *\n * @generated from protobuf service sid.v1.authn.PasswordHistoryEvaluatorService\n */\nexport interface IPasswordHistoryEvaluatorServiceClient {\n /**\n * Evaluate the blinded history input of a pending password operation under\n * every history key the operation requires, in one bounded request. The\n * operation, not the caller, decides which keys; the work is charged to the\n * operation and its owner before any key is used, and an exact retry returns\n * the same charged evaluations.\n *\n * @generated from protobuf rpc: EvaluatePasswordHistory\n */\n evaluatePasswordHistory(input: EvaluatePasswordHistoryRequest, options?: RpcOptions): UnaryCall<EvaluatePasswordHistoryRequest, EvaluatePasswordHistoryResponse>;\n /**\n * Admit a password operation the credential service has just stored and\n * select its comparison domains: the owner's current history key, created\n * or replaced here when it has none or a stale one (keys are made, sealed,\n * stored and used only by the evaluator, durably before the first\n * evaluation), followed by every replaced key whose domain the request names\n * as still holding a retained password. The evaluator keeps its own record\n * of the operation from this admission; it never reads the credential\n * service's record. Called only by the credential service, under its own\n * service identity; deliberately not exposed over HTTP. Repeating the call\n * for the same operation with the same admission returns the same domains;\n * a repeat with any admission field changed fails.\n *\n * The request is also how the evaluator learns the owner's history\n * lifecycle without seeing an entry or a tag. It keeps, durably and shared\n * by every replica, the newest revision and live set it has accepted per\n * owner; one revision has exactly one live set, and a request naming\n * another set for an accepted revision fails. A replaced key is retired\n * only when it is absent from the live set of the newest accepted revision\n * and no operation that used it is still pending: an operation's pin is\n * released when an accepted revision names it as settled, or once the\n * operation's own lifetime has ended (an expired operation can never\n * commit), so a commit not yet announced never loses its key; a lost reply\n * or a call timeout settles nothing.\n * No call is needed after the last operation: its pin ends with its\n * lifetime, and a later revision (retention, a commit) takes effect at the\n * owner's next operation, the only point where the evaluator selects keys.\n * Retirement stops new use; destroying the retired key follows the\n * history's recovery custody and restore points, never earlier.\n *\n * @generated from protobuf rpc: PreparePasswordHistory\n */\n preparePasswordHistory(input: PreparePasswordHistoryRequest, options?: RpcOptions): UnaryCall<PreparePasswordHistoryRequest, PreparePasswordHistoryResponse>;\n}\n/**\n * The VOPRF evaluator of password history. Deployed with its own service\n * identity and key access, separate from the credential service that runs the\n * history checker.\n *\n * @generated from protobuf service sid.v1.authn.PasswordHistoryEvaluatorService\n */\nexport class PasswordHistoryEvaluatorServiceClient implements IPasswordHistoryEvaluatorServiceClient, ServiceInfo {\n typeName = PasswordHistoryEvaluatorService.typeName;\n methods = PasswordHistoryEvaluatorService.methods;\n options = PasswordHistoryEvaluatorService.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * Evaluate the blinded history input of a pending password operation under\n * every history key the operation requires, in one bounded request. The\n * operation, not the caller, decides which keys; the work is charged to the\n * operation and its owner before any key is used, and an exact retry returns\n * the same charged evaluations.\n *\n * @generated from protobuf rpc: EvaluatePasswordHistory\n */\n evaluatePasswordHistory(input: EvaluatePasswordHistoryRequest, options?: RpcOptions): UnaryCall<EvaluatePasswordHistoryRequest, EvaluatePasswordHistoryResponse> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<EvaluatePasswordHistoryRequest, EvaluatePasswordHistoryResponse>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Admit a password operation the credential service has just stored and\n * select its comparison domains: the owner's current history key, created\n * or replaced here when it has none or a stale one (keys are made, sealed,\n * stored and used only by the evaluator, durably before the first\n * evaluation), followed by every replaced key whose domain the request names\n * as still holding a retained password. The evaluator keeps its own record\n * of the operation from this admission; it never reads the credential\n * service's record. Called only by the credential service, under its own\n * service identity; deliberately not exposed over HTTP. Repeating the call\n * for the same operation with the same admission returns the same domains;\n * a repeat with any admission field changed fails.\n *\n * The request is also how the evaluator learns the owner's history\n * lifecycle without seeing an entry or a tag. It keeps, durably and shared\n * by every replica, the newest revision and live set it has accepted per\n * owner; one revision has exactly one live set, and a request naming\n * another set for an accepted revision fails. A replaced key is retired\n * only when it is absent from the live set of the newest accepted revision\n * and no operation that used it is still pending: an operation's pin is\n * released when an accepted revision names it as settled, or once the\n * operation's own lifetime has ended (an expired operation can never\n * commit), so a commit not yet announced never loses its key; a lost reply\n * or a call timeout settles nothing.\n * No call is needed after the last operation: its pin ends with its\n * lifetime, and a later revision (retention, a commit) takes effect at the\n * owner's next operation, the only point where the evaluator selects keys.\n * Retirement stops new use; destroying the retired key follows the\n * history's recovery custody and restore points, never earlier.\n *\n * @generated from protobuf rpc: PreparePasswordHistory\n */\n preparePasswordHistory(input: PreparePasswordHistoryRequest, options?: RpcOptions): UnaryCall<PreparePasswordHistoryRequest, PreparePasswordHistoryResponse> {\n const method = this.methods[1], opt = this._transport.mergeOptions(options);\n return stackIntercept<PreparePasswordHistoryRequest, PreparePasswordHistoryResponse>(\"unary\", this._transport, method, opt, input);\n }\n}\n"]}
|
|
@@ -5,7 +5,180 @@ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
|
5
5
|
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
6
6
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
7
7
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
8
|
+
import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
8
9
|
import { PasswordOperationId } from "../ids/ids.js";
|
|
10
|
+
/**
|
|
11
|
+
* @generated from protobuf message sid.v1.authn.PreparePasswordHistoryRequest
|
|
12
|
+
*/
|
|
13
|
+
export interface PreparePasswordHistoryRequest {
|
|
14
|
+
/**
|
|
15
|
+
* The pending operation whose domains are selected, as the credential
|
|
16
|
+
* service stored it.
|
|
17
|
+
*
|
|
18
|
+
* @generated from protobuf field: sid.v1.ids.PasswordOperationId operation_id = 1
|
|
19
|
+
*/
|
|
20
|
+
operationId?: PasswordOperationId;
|
|
21
|
+
/**
|
|
22
|
+
* The owner, as the credential service resolved it from the authorized
|
|
23
|
+
* ceremony: its history input domain (PasswordHistoryContext.owner_domain,
|
|
24
|
+
* 32 bytes). The one owner reference the evaluator keys its history keys
|
|
25
|
+
* by; it never receives the owner's account identifier. An end-user client
|
|
26
|
+
* cannot supply it.
|
|
27
|
+
*
|
|
28
|
+
* @generated from protobuf field: bytes owner_domain = 5
|
|
29
|
+
*/
|
|
30
|
+
ownerDomain: Uint8Array;
|
|
31
|
+
/**
|
|
32
|
+
* What the operation does to the owner's history.
|
|
33
|
+
*
|
|
34
|
+
* @generated from protobuf field: sid.v1.authn.PasswordHistoryOwnerKind owner_kind = 6
|
|
35
|
+
*/
|
|
36
|
+
ownerKind: PasswordHistoryOwnerKind;
|
|
37
|
+
/**
|
|
38
|
+
* When the operation stops being able to commit, as the credential service
|
|
39
|
+
* stored it. The evaluator admits no evaluation after it, and a repeat must
|
|
40
|
+
* name the same instant.
|
|
41
|
+
*
|
|
42
|
+
* @generated from protobuf field: google.protobuf.Timestamp expires_at = 7
|
|
43
|
+
*/
|
|
44
|
+
expiresAt?: Timestamp;
|
|
45
|
+
/**
|
|
46
|
+
* Who the operation's evaluations are charged to: an opaque key the
|
|
47
|
+
* credential service derives from the authorized actor (at most 128
|
|
48
|
+
* bytes), never a value an end-user client chooses.
|
|
49
|
+
*
|
|
50
|
+
* @generated from protobuf field: string charge_key = 8
|
|
51
|
+
*/
|
|
52
|
+
chargeKey: string;
|
|
53
|
+
/**
|
|
54
|
+
* The comparison domains (PasswordHistoryDomain.comparison_domain, 32 bytes
|
|
55
|
+
* each) in which the owner still retains at least one entry, as of
|
|
56
|
+
* history_revision. Only the credential service, which holds the entries,
|
|
57
|
+
* knows this; it commits the set with the entries it describes. Each must be
|
|
58
|
+
* a domain the evaluator issued for this owner; an unknown one fails the call.
|
|
59
|
+
*
|
|
60
|
+
* @generated from protobuf field: repeated bytes live_comparison_domains = 2
|
|
61
|
+
*/
|
|
62
|
+
liveComparisonDomains: Uint8Array[];
|
|
63
|
+
/**
|
|
64
|
+
* The owner's history revision the live domains belong to: increases with
|
|
65
|
+
* every committed change of the owner's entries or retention, committed with
|
|
66
|
+
* them. The evaluator acts on the newest revision it has accepted for the
|
|
67
|
+
* owner and never retires a key on an older one, so a delayed or retried
|
|
68
|
+
* request cannot retire a key a newer revision still needs.
|
|
69
|
+
*
|
|
70
|
+
* @generated from protobuf field: uint64 history_revision = 3
|
|
71
|
+
*/
|
|
72
|
+
historyRevision: bigint;
|
|
73
|
+
/**
|
|
74
|
+
* The owner's earlier operations this revision settles: each one committed
|
|
75
|
+
* (its entries are in the live set) or can no longer commit (aborted or
|
|
76
|
+
* expired), as the credential service, which runs the commit, recorded with
|
|
77
|
+
* the revision. The evaluator releases their pins; an operation not named
|
|
78
|
+
* stays pinned until a later accepted revision names it or its lifetime
|
|
79
|
+
* ends.
|
|
80
|
+
*
|
|
81
|
+
* @generated from protobuf field: repeated sid.v1.ids.PasswordOperationId settled_operations = 4
|
|
82
|
+
*/
|
|
83
|
+
settledOperations: PasswordOperationId[];
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @generated from protobuf message sid.v1.authn.PreparePasswordHistoryResponse
|
|
87
|
+
*/
|
|
88
|
+
export interface PreparePasswordHistoryResponse {
|
|
89
|
+
/**
|
|
90
|
+
* The operation's comparison domains, in the order its evaluations and
|
|
91
|
+
* proof follow; the credential service returns them to the client in
|
|
92
|
+
* PasswordHistoryContext.domains.
|
|
93
|
+
*
|
|
94
|
+
* @generated from protobuf field: repeated sid.v1.authn.PasswordHistoryDomain domains = 1
|
|
95
|
+
*/
|
|
96
|
+
domains: PasswordHistoryDomain[];
|
|
97
|
+
/**
|
|
98
|
+
* The public description of each domain's epoch, in the same order: what
|
|
99
|
+
* the credential service keeps with the operation and, once committed,
|
|
100
|
+
* with the owner's history, so the history checker compares without asking
|
|
101
|
+
* the evaluator again. Never sent to an end-user client.
|
|
102
|
+
*
|
|
103
|
+
* @generated from protobuf field: repeated sid.v1.authn.PasswordHistoryEpochDescriptor epochs = 2
|
|
104
|
+
*/
|
|
105
|
+
epochs: PasswordHistoryEpochDescriptor[];
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* The immutable public description of one history epoch: everything the
|
|
109
|
+
* history checker needs to recompute the comparison domain and stretch a tag,
|
|
110
|
+
* and nothing that evaluates one. The credential service rejects a
|
|
111
|
+
* descriptor that differs from one it already holds for the same epoch.
|
|
112
|
+
*
|
|
113
|
+
* @generated from protobuf message sid.v1.authn.PasswordHistoryEpochDescriptor
|
|
114
|
+
*/
|
|
115
|
+
export interface PasswordHistoryEpochDescriptor {
|
|
116
|
+
/**
|
|
117
|
+
* The epoch: a UUIDv7, 16 bytes.
|
|
118
|
+
*
|
|
119
|
+
* @generated from protobuf field: bytes epoch_id = 1
|
|
120
|
+
*/
|
|
121
|
+
epochId: Uint8Array;
|
|
122
|
+
/**
|
|
123
|
+
* The evaluator's public key k·G: a compressed Pallas point, 32 bytes.
|
|
124
|
+
*
|
|
125
|
+
* @generated from protobuf field: bytes public_key = 2
|
|
126
|
+
*/
|
|
127
|
+
publicKey: Uint8Array;
|
|
128
|
+
/**
|
|
129
|
+
* The relation suite the epoch's tags follow ("pallas-poseidon-v1").
|
|
130
|
+
*
|
|
131
|
+
* @generated from protobuf field: string suite = 3
|
|
132
|
+
*/
|
|
133
|
+
suite: string;
|
|
134
|
+
/**
|
|
135
|
+
* The history KSF of the epoch's entries: Argon2id v1.3 (RFC 9106) with
|
|
136
|
+
* a 32-byte output.
|
|
137
|
+
*
|
|
138
|
+
* @generated from protobuf field: sid.v1.authn.PasswordHistoryKsf ksf = 4
|
|
139
|
+
*/
|
|
140
|
+
ksf?: PasswordHistoryKsf;
|
|
141
|
+
/**
|
|
142
|
+
* The KSF salt of every entry under the epoch: 32 bytes.
|
|
143
|
+
*
|
|
144
|
+
* @generated from protobuf field: bytes ksf_salt = 5
|
|
145
|
+
*/
|
|
146
|
+
ksfSalt: Uint8Array;
|
|
147
|
+
/**
|
|
148
|
+
* When the evaluator created the epoch's key, before sealing or first use.
|
|
149
|
+
* A history-key write cutoff bars new entries under every epoch created
|
|
150
|
+
* before it; the credential service checks this instant when it commits.
|
|
151
|
+
*
|
|
152
|
+
* @generated from protobuf field: google.protobuf.Timestamp created_at = 6
|
|
153
|
+
*/
|
|
154
|
+
createdAt?: Timestamp;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Argon2id v1.3 (RFC 9106 §3.1) parameters of one epoch's history KSF; the
|
|
158
|
+
* output is 32 bytes.
|
|
159
|
+
*
|
|
160
|
+
* @generated from protobuf message sid.v1.authn.PasswordHistoryKsf
|
|
161
|
+
*/
|
|
162
|
+
export interface PasswordHistoryKsf {
|
|
163
|
+
/**
|
|
164
|
+
* Memory, KiB.
|
|
165
|
+
*
|
|
166
|
+
* @generated from protobuf field: uint32 memory_kib = 1
|
|
167
|
+
*/
|
|
168
|
+
memoryKib: number;
|
|
169
|
+
/**
|
|
170
|
+
* Passes.
|
|
171
|
+
*
|
|
172
|
+
* @generated from protobuf field: uint32 passes = 2
|
|
173
|
+
*/
|
|
174
|
+
passes: number;
|
|
175
|
+
/**
|
|
176
|
+
* Lanes.
|
|
177
|
+
*
|
|
178
|
+
* @generated from protobuf field: uint32 lanes = 3
|
|
179
|
+
*/
|
|
180
|
+
lanes: number;
|
|
181
|
+
}
|
|
9
182
|
/**
|
|
10
183
|
* What a client needs to build its history request and proof for one
|
|
11
184
|
* password operation. Returned by the step that prepares the operation
|
|
@@ -173,7 +346,88 @@ export interface PasswordRegistrationProof {
|
|
|
173
346
|
* @generated from protobuf field: repeated bytes instances = 2
|
|
174
347
|
*/
|
|
175
348
|
instances: Uint8Array[];
|
|
349
|
+
/**
|
|
350
|
+
* The evaluator's proofs (EvaluatePasswordHistoryResponse), one per
|
|
351
|
+
* comparison domain in the order of PasswordHistoryContext.domains, relayed
|
|
352
|
+
* unchanged. The history checker verifies each against the blinded input
|
|
353
|
+
* and evaluated element among `instances` and the domain key it prepared;
|
|
354
|
+
* a missing, reordered or substituted proof fails the finish.
|
|
355
|
+
*
|
|
356
|
+
* @generated from protobuf field: repeated sid.v1.authn.PasswordHistoryEvaluationProof evaluation_proofs = 4
|
|
357
|
+
*/
|
|
358
|
+
evaluationProofs: PasswordHistoryEvaluationProof[];
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* What a password operation does to its owner's history.
|
|
362
|
+
*
|
|
363
|
+
* @generated from protobuf enum sid.v1.authn.PasswordHistoryOwnerKind
|
|
364
|
+
*/
|
|
365
|
+
export declare enum PasswordHistoryOwnerKind {
|
|
366
|
+
/**
|
|
367
|
+
* @generated from protobuf enum value: PASSWORD_HISTORY_OWNER_KIND_UNSPECIFIED = 0;
|
|
368
|
+
*/
|
|
369
|
+
UNSPECIFIED = 0,
|
|
370
|
+
/**
|
|
371
|
+
* An owner with an account: its existing history keys apply.
|
|
372
|
+
*
|
|
373
|
+
* @generated from protobuf enum value: PASSWORD_HISTORY_OWNER_KIND_EXISTING = 1;
|
|
374
|
+
*/
|
|
375
|
+
EXISTING = 1,
|
|
376
|
+
/**
|
|
377
|
+
* An owner the operation creates: it gets its first history key. Fails for
|
|
378
|
+
* an owner that already has one, so it never resets a history.
|
|
379
|
+
*
|
|
380
|
+
* @generated from protobuf enum value: PASSWORD_HISTORY_OWNER_KIND_NEW = 2;
|
|
381
|
+
*/
|
|
382
|
+
NEW = 2,
|
|
383
|
+
/**
|
|
384
|
+
* A registration start for an identifier someone holds: answered like any
|
|
385
|
+
* other with throwaway keys, and never committed.
|
|
386
|
+
*
|
|
387
|
+
* @generated from protobuf enum value: PASSWORD_HISTORY_OWNER_KIND_DECOY = 3;
|
|
388
|
+
*/
|
|
389
|
+
DECOY = 3
|
|
176
390
|
}
|
|
391
|
+
declare class PreparePasswordHistoryRequest$Type extends MessageType<PreparePasswordHistoryRequest> {
|
|
392
|
+
constructor();
|
|
393
|
+
create(value?: PartialMessage<PreparePasswordHistoryRequest>): PreparePasswordHistoryRequest;
|
|
394
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PreparePasswordHistoryRequest): PreparePasswordHistoryRequest;
|
|
395
|
+
internalBinaryWrite(message: PreparePasswordHistoryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* @generated MessageType for protobuf message sid.v1.authn.PreparePasswordHistoryRequest
|
|
399
|
+
*/
|
|
400
|
+
export declare const PreparePasswordHistoryRequest: PreparePasswordHistoryRequest$Type;
|
|
401
|
+
declare class PreparePasswordHistoryResponse$Type extends MessageType<PreparePasswordHistoryResponse> {
|
|
402
|
+
constructor();
|
|
403
|
+
create(value?: PartialMessage<PreparePasswordHistoryResponse>): PreparePasswordHistoryResponse;
|
|
404
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PreparePasswordHistoryResponse): PreparePasswordHistoryResponse;
|
|
405
|
+
internalBinaryWrite(message: PreparePasswordHistoryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* @generated MessageType for protobuf message sid.v1.authn.PreparePasswordHistoryResponse
|
|
409
|
+
*/
|
|
410
|
+
export declare const PreparePasswordHistoryResponse: PreparePasswordHistoryResponse$Type;
|
|
411
|
+
declare class PasswordHistoryEpochDescriptor$Type extends MessageType<PasswordHistoryEpochDescriptor> {
|
|
412
|
+
constructor();
|
|
413
|
+
create(value?: PartialMessage<PasswordHistoryEpochDescriptor>): PasswordHistoryEpochDescriptor;
|
|
414
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordHistoryEpochDescriptor): PasswordHistoryEpochDescriptor;
|
|
415
|
+
internalBinaryWrite(message: PasswordHistoryEpochDescriptor, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* @generated MessageType for protobuf message sid.v1.authn.PasswordHistoryEpochDescriptor
|
|
419
|
+
*/
|
|
420
|
+
export declare const PasswordHistoryEpochDescriptor: PasswordHistoryEpochDescriptor$Type;
|
|
421
|
+
declare class PasswordHistoryKsf$Type extends MessageType<PasswordHistoryKsf> {
|
|
422
|
+
constructor();
|
|
423
|
+
create(value?: PartialMessage<PasswordHistoryKsf>): PasswordHistoryKsf;
|
|
424
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordHistoryKsf): PasswordHistoryKsf;
|
|
425
|
+
internalBinaryWrite(message: PasswordHistoryKsf, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* @generated MessageType for protobuf message sid.v1.authn.PasswordHistoryKsf
|
|
429
|
+
*/
|
|
430
|
+
export declare const PasswordHistoryKsf: PasswordHistoryKsf$Type;
|
|
177
431
|
declare class PasswordHistoryContext$Type extends MessageType<PasswordHistoryContext> {
|
|
178
432
|
constructor();
|
|
179
433
|
create(value?: PartialMessage<PasswordHistoryContext>): PasswordHistoryContext;
|