@structured-id/proto 0.18.0 → 0.20.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 +15 -0
- package/dist/generated/sid/v1/account/account.client.d.ts +14 -2
- package/dist/generated/sid/v1/account/account.client.js +7 -1
- package/dist/generated/sid/v1/account/account.client.js.map +1 -1
- package/dist/generated/sid/v1/account/account.js +28 -28
- package/dist/generated/sid/v1/account/account.js.map +1 -1
- package/dist/generated/sid/v1/admin/admin.client.d.ts +2 -0
- package/dist/generated/sid/v1/admin/admin.client.js +1 -0
- package/dist/generated/sid/v1/admin/admin.client.js.map +1 -1
- package/dist/generated/sid/v1/admin/admin.js +7 -7
- package/dist/generated/sid/v1/admin/admin.js.map +1 -1
- package/dist/generated/sid/v1/admin/admin_roles.js +11 -11
- package/dist/generated/sid/v1/admin/admin_roles.js.map +1 -1
- package/dist/generated/sid/v1/admin/analytics.js +5 -5
- package/dist/generated/sid/v1/admin/analytics.js.map +1 -1
- package/dist/generated/sid/v1/admin/branding.js +8 -8
- package/dist/generated/sid/v1/admin/branding.js.map +1 -1
- package/dist/generated/sid/v1/admin/enrollment.client.js +3 -0
- package/dist/generated/sid/v1/admin/enrollment.client.js.map +1 -1
- package/dist/generated/sid/v1/admin/enrollment.js +10 -10
- package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
- package/dist/generated/sid/v1/admin/events.js +10 -10
- package/dist/generated/sid/v1/admin/events.js.map +1 -1
- package/dist/generated/sid/v1/admin/flow.js +8 -8
- package/dist/generated/sid/v1/admin/flow.js.map +1 -1
- package/dist/generated/sid/v1/admin/keys.js +6 -6
- package/dist/generated/sid/v1/admin/keys.js.map +1 -1
- package/dist/generated/sid/v1/admin/login_experience.js +7 -7
- package/dist/generated/sid/v1/admin/login_experience.js.map +1 -1
- package/dist/generated/sid/v1/admin/migration.js +7 -7
- package/dist/generated/sid/v1/admin/migration.js.map +1 -1
- package/dist/generated/sid/v1/admin/notifications.client.d.ts +6 -0
- package/dist/generated/sid/v1/admin/notifications.client.js +3 -0
- package/dist/generated/sid/v1/admin/notifications.client.js.map +1 -1
- package/dist/generated/sid/v1/admin/notifications.js +6 -6
- package/dist/generated/sid/v1/admin/notifications.js.map +1 -1
- package/dist/generated/sid/v1/admin/operations.js +14 -14
- package/dist/generated/sid/v1/admin/operations.js.map +1 -1
- package/dist/generated/sid/v1/admin/organizations.js +2 -2
- package/dist/generated/sid/v1/admin/organizations.js.map +1 -1
- package/dist/generated/sid/v1/admin/provisioning.js +10 -10
- package/dist/generated/sid/v1/admin/provisioning.js.map +1 -1
- package/dist/generated/sid/v1/admin/scopes.js +11 -11
- package/dist/generated/sid/v1/admin/scopes.js.map +1 -1
- package/dist/generated/sid/v1/admin/security.js +25 -25
- package/dist/generated/sid/v1/admin/security.js.map +1 -1
- package/dist/generated/sid/v1/admin/sessions.js +5 -5
- package/dist/generated/sid/v1/admin/sessions.js.map +1 -1
- package/dist/generated/sid/v1/admin/settings.d.ts +269 -12
- package/dist/generated/sid/v1/admin/settings.js +315 -53
- package/dist/generated/sid/v1/admin/settings.js.map +1 -1
- package/dist/generated/sid/v1/admin/user_profile.js +2 -2
- package/dist/generated/sid/v1/admin/user_profile.js.map +1 -1
- package/dist/generated/sid/v1/admin/webhooks.js +16 -16
- package/dist/generated/sid/v1/admin/webhooks.js.map +1 -1
- package/dist/generated/sid/v1/attestation/attestation.client.d.ts +12 -0
- package/dist/generated/sid/v1/attestation/attestation.client.js +6 -0
- package/dist/generated/sid/v1/attestation/attestation.client.js.map +1 -1
- package/dist/generated/sid/v1/attestation/attestation.js +6 -6
- package/dist/generated/sid/v1/attestation/attestation.js.map +1 -1
- package/dist/generated/sid/v1/authn/application_session.js +5 -5
- package/dist/generated/sid/v1/authn/application_session.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.client.d.ts +124 -10
- package/dist/generated/sid/v1/authn/auth.client.js +99 -26
- package/dist/generated/sid/v1/authn/auth.client.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.d.ts +306 -13
- package/dist/generated/sid/v1/authn/auth.js +597 -59
- package/dist/generated/sid/v1/authn/auth.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth_flow.client.d.ts +140 -0
- package/dist/generated/sid/v1/authn/auth_flow.client.js +81 -0
- package/dist/generated/sid/v1/authn/auth_flow.client.js.map +1 -0
- package/dist/generated/sid/v1/authn/auth_flow.d.ts +418 -0
- package/dist/generated/sid/v1/authn/auth_flow.js +623 -0
- package/dist/generated/sid/v1/authn/auth_flow.js.map +1 -0
- package/dist/generated/sid/v1/authn/flows.js +26 -26
- package/dist/generated/sid/v1/authn/flows.js.map +1 -1
- package/dist/generated/sid/v1/authn/issuer.client.d.ts +8 -2
- package/dist/generated/sid/v1/authn/issuer.client.js +4 -1
- package/dist/generated/sid/v1/authn/issuer.client.js.map +1 -1
- package/dist/generated/sid/v1/authn/issuer.d.ts +13 -6
- package/dist/generated/sid/v1/authn/issuer.js +19 -19
- package/dist/generated/sid/v1/authn/issuer.js.map +1 -1
- package/dist/generated/sid/v1/authn/password_history.client.d.ts +2 -2
- package/dist/generated/sid/v1/authn/password_history.client.js +1 -1
- package/dist/generated/sid/v1/authn/password_history.client.js.map +1 -1
- package/dist/generated/sid/v1/authn/password_history.d.ts +15 -0
- package/dist/generated/sid/v1/authn/password_history.js +11 -3
- package/dist/generated/sid/v1/authn/password_history.js.map +1 -1
- package/dist/generated/sid/v1/authn/system_integration.js +1 -1
- package/dist/generated/sid/v1/authn/system_integration.js.map +1 -1
- package/dist/generated/sid/v1/authz/authz.client.d.ts +60 -0
- package/dist/generated/sid/v1/authz/authz.client.js +49 -17
- package/dist/generated/sid/v1/authz/authz.client.js.map +1 -1
- package/dist/generated/sid/v1/authz/authz.d.ts +195 -2
- package/dist/generated/sid/v1/authz/authz.js +322 -29
- package/dist/generated/sid/v1/authz/authz.js.map +1 -1
- package/dist/generated/sid/v1/authz/forward_auth.js +1 -1
- package/dist/generated/sid/v1/authz/forward_auth.js.map +1 -1
- package/dist/generated/sid/v1/authz/governance.js +4 -4
- package/dist/generated/sid/v1/authz/governance.js.map +1 -1
- package/dist/generated/sid/v1/common/access.d.ts +219 -0
- package/dist/generated/sid/v1/common/access.js +285 -0
- package/dist/generated/sid/v1/common/access.js.map +1 -0
- package/dist/generated/sid/v1/common/claims.d.ts +138 -0
- package/dist/generated/sid/v1/common/claims.js +168 -0
- package/dist/generated/sid/v1/common/claims.js.map +1 -0
- package/dist/generated/sid/v1/common/errors.d.ts +45 -0
- package/dist/generated/sid/v1/common/errors.js +45 -0
- package/dist/generated/sid/v1/common/errors.js.map +1 -1
- package/dist/generated/sid/v1/common/maintenance.d.ts +50 -0
- package/dist/generated/sid/v1/common/maintenance.js +56 -0
- package/dist/generated/sid/v1/common/maintenance.js.map +1 -0
- package/dist/generated/sid/v1/common/operation.js +1 -1
- package/dist/generated/sid/v1/common/operation.js.map +1 -1
- package/dist/generated/sid/v1/events/event_stream.js +2 -2
- package/dist/generated/sid/v1/events/event_stream.js.map +1 -1
- package/dist/generated/sid/v1/federation/entry.client.d.ts +190 -0
- package/dist/generated/sid/v1/federation/entry.client.js +123 -0
- package/dist/generated/sid/v1/federation/entry.client.js.map +1 -0
- package/dist/generated/sid/v1/federation/entry.d.ts +490 -0
- package/dist/generated/sid/v1/federation/entry.js +795 -0
- package/dist/generated/sid/v1/federation/entry.js.map +1 -0
- package/dist/generated/sid/v1/federation/platform_ca.client.d.ts +77 -0
- package/dist/generated/sid/v1/federation/platform_ca.client.js +47 -0
- package/dist/generated/sid/v1/federation/platform_ca.client.js.map +1 -0
- package/dist/generated/sid/v1/federation/platform_ca.d.ts +186 -0
- package/dist/generated/sid/v1/federation/platform_ca.js +285 -0
- package/dist/generated/sid/v1/federation/platform_ca.js.map +1 -0
- package/dist/generated/sid/v1/federation/site.client.d.ts +99 -0
- package/dist/generated/sid/v1/federation/site.client.js +62 -0
- package/dist/generated/sid/v1/federation/site.client.js.map +1 -0
- package/dist/generated/sid/v1/federation/site.d.ts +219 -0
- package/dist/generated/sid/v1/federation/site.js +416 -0
- package/dist/generated/sid/v1/federation/site.js.map +1 -0
- package/dist/generated/sid/v1/federation/site_admission.client.d.ts +71 -0
- package/dist/generated/sid/v1/federation/site_admission.client.js +42 -0
- package/dist/generated/sid/v1/federation/site_admission.client.js.map +1 -0
- package/dist/generated/sid/v1/federation/site_admission.d.ts +36 -0
- package/dist/generated/sid/v1/federation/site_admission.js +64 -0
- package/dist/generated/sid/v1/federation/site_admission.js.map +1 -0
- package/dist/generated/sid/v1/federation/upstream.js +8 -8
- package/dist/generated/sid/v1/federation/upstream.js.map +1 -1
- package/dist/generated/sid/v1/identity/identity.client.d.ts +6 -0
- package/dist/generated/sid/v1/identity/identity.client.js +3 -0
- package/dist/generated/sid/v1/identity/identity.client.js.map +1 -1
- package/dist/generated/sid/v1/identity/identity.d.ts +19 -1
- package/dist/generated/sid/v1/identity/identity.js +49 -31
- package/dist/generated/sid/v1/identity/identity.js.map +1 -1
- package/dist/generated/sid/v1/ids/ids.d.ts +2 -0
- package/dist/generated/sid/v1/ids/ids.js +1 -0
- package/dist/generated/sid/v1/ids/ids.js.map +1 -1
- package/dist/generated/sid/v1/machine/machine_user.js +14 -14
- package/dist/generated/sid/v1/machine/machine_user.js.map +1 -1
- package/dist/generated/sid/v1/machine/pat.js +7 -7
- package/dist/generated/sid/v1/machine/pat.js.map +1 -1
- package/dist/generated/sid/v1/projects/projects.d.ts +78 -6
- package/dist/generated/sid/v1/projects/projects.js +107 -29
- package/dist/generated/sid/v1/projects/projects.js.map +1 -1
- package/dist/generated/sid/v1/scim/scim.js +28 -28
- package/dist/generated/sid/v1/scim/scim.js.map +1 -1
- package/dist/generated/sid/v1/test/test.client.d.ts +2 -0
- package/dist/generated/sid/v1/test/test.client.js +1 -0
- package/dist/generated/sid/v1/test/test.client.js.map +1 -1
- package/dist/generated/sid/v1/test/test.js +12 -12
- package/dist/generated/sid/v1/test/test.js.map +1 -1
- package/dist/generated/sid/v1/ui/public_settings.js +2 -2
- package/dist/generated/sid/v1/ui/public_settings.js.map +1 -1
- package/package.json +7 -7
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck
|
|
2
|
+
// @generated from protobuf file "sid/v1/federation/platform_ca.proto" (package "sid.v1.federation", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { HttpBody } from "../../../google/api/httpbody.js";
|
|
6
|
+
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
7
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
8
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
9
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
10
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
11
|
+
import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
12
|
+
/**
|
|
13
|
+
* The admitted state of a platform intermediate generation.
|
|
14
|
+
*
|
|
15
|
+
* @generated from protobuf enum sid.v1.federation.PlatformCaState
|
|
16
|
+
*/
|
|
17
|
+
export var PlatformCaState;
|
|
18
|
+
(function (PlatformCaState) {
|
|
19
|
+
/**
|
|
20
|
+
* Not a valid state; a verifier refuses a generation that carries it.
|
|
21
|
+
*
|
|
22
|
+
* @generated from protobuf enum value: PLATFORM_CA_STATE_UNSPECIFIED = 0;
|
|
23
|
+
*/
|
|
24
|
+
PlatformCaState[PlatformCaState["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
25
|
+
/**
|
|
26
|
+
* The generation currently issuing; paths through it are accepted.
|
|
27
|
+
*
|
|
28
|
+
* @generated from protobuf enum value: PLATFORM_CA_STATE_ACTIVE = 1;
|
|
29
|
+
*/
|
|
30
|
+
PlatformCaState[PlatformCaState["ACTIVE"] = 1] = "ACTIVE";
|
|
31
|
+
/**
|
|
32
|
+
* Replaced by a newer generation; paths through it are accepted only until
|
|
33
|
+
* its overlap end.
|
|
34
|
+
*
|
|
35
|
+
* @generated from protobuf enum value: PLATFORM_CA_STATE_VERIFICATION_ONLY = 2;
|
|
36
|
+
*/
|
|
37
|
+
PlatformCaState[PlatformCaState["VERIFICATION_ONLY"] = 2] = "VERIFICATION_ONLY";
|
|
38
|
+
/**
|
|
39
|
+
* Withdrawn; no path through it is accepted, including descendants a
|
|
40
|
+
* verifier has never seen.
|
|
41
|
+
*
|
|
42
|
+
* @generated from protobuf enum value: PLATFORM_CA_STATE_WITHDRAWN = 3;
|
|
43
|
+
*/
|
|
44
|
+
PlatformCaState[PlatformCaState["WITHDRAWN"] = 3] = "WITHDRAWN";
|
|
45
|
+
})(PlatformCaState || (PlatformCaState = {}));
|
|
46
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
47
|
+
class GetPlatformCasRequest$Type extends MessageType {
|
|
48
|
+
constructor() {
|
|
49
|
+
super("sid.v1.federation.GetPlatformCasRequest", []);
|
|
50
|
+
}
|
|
51
|
+
create(value) {
|
|
52
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
53
|
+
if (value !== undefined)
|
|
54
|
+
reflectionMergePartial(this, message, value);
|
|
55
|
+
return message;
|
|
56
|
+
}
|
|
57
|
+
internalBinaryRead(reader, length, options, target) {
|
|
58
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
59
|
+
while (reader.pos < end) {
|
|
60
|
+
let [fieldNo, wireType] = reader.tag();
|
|
61
|
+
switch (fieldNo) {
|
|
62
|
+
default:
|
|
63
|
+
let u = options.readUnknownField;
|
|
64
|
+
if (u === "throw")
|
|
65
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
66
|
+
let d = reader.skip(wireType);
|
|
67
|
+
if (u !== false)
|
|
68
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return message;
|
|
72
|
+
}
|
|
73
|
+
internalBinaryWrite(message, writer, options) {
|
|
74
|
+
let u = options.writeUnknownFields;
|
|
75
|
+
if (u !== false)
|
|
76
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
77
|
+
return writer;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @generated MessageType for protobuf message sid.v1.federation.GetPlatformCasRequest
|
|
82
|
+
*/
|
|
83
|
+
export const GetPlatformCasRequest = new GetPlatformCasRequest$Type();
|
|
84
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
85
|
+
class GetPlatformCaCrlRequest$Type extends MessageType {
|
|
86
|
+
constructor() {
|
|
87
|
+
super("sid.v1.federation.GetPlatformCaCrlRequest", [
|
|
88
|
+
{ no: 1, name: "generation", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
89
|
+
]);
|
|
90
|
+
}
|
|
91
|
+
create(value) {
|
|
92
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
93
|
+
message.generation = 0;
|
|
94
|
+
if (value !== undefined)
|
|
95
|
+
reflectionMergePartial(this, message, value);
|
|
96
|
+
return message;
|
|
97
|
+
}
|
|
98
|
+
internalBinaryRead(reader, length, options, target) {
|
|
99
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
100
|
+
while (reader.pos < end) {
|
|
101
|
+
let [fieldNo, wireType] = reader.tag();
|
|
102
|
+
switch (fieldNo) {
|
|
103
|
+
case /* uint32 generation */ 1:
|
|
104
|
+
message.generation = reader.uint32();
|
|
105
|
+
break;
|
|
106
|
+
default:
|
|
107
|
+
let u = options.readUnknownField;
|
|
108
|
+
if (u === "throw")
|
|
109
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
110
|
+
let d = reader.skip(wireType);
|
|
111
|
+
if (u !== false)
|
|
112
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return message;
|
|
116
|
+
}
|
|
117
|
+
internalBinaryWrite(message, writer, options) {
|
|
118
|
+
/* uint32 generation = 1; */
|
|
119
|
+
if (message.generation !== 0)
|
|
120
|
+
writer.tag(1, WireType.Varint).uint32(message.generation);
|
|
121
|
+
let u = options.writeUnknownFields;
|
|
122
|
+
if (u !== false)
|
|
123
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
124
|
+
return writer;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @generated MessageType for protobuf message sid.v1.federation.GetPlatformCaCrlRequest
|
|
129
|
+
*/
|
|
130
|
+
export const GetPlatformCaCrlRequest = new GetPlatformCaCrlRequest$Type();
|
|
131
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
132
|
+
class PlatformCas$Type extends MessageType {
|
|
133
|
+
constructor() {
|
|
134
|
+
super("sid.v1.federation.PlatformCas", [
|
|
135
|
+
{ no: 1, name: "revision", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
136
|
+
{ no: 2, name: "generations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PlatformCa },
|
|
137
|
+
{ no: 3, name: "roots", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/ },
|
|
138
|
+
{ no: 4, name: "issued_at", kind: "message", T: () => Timestamp },
|
|
139
|
+
{ no: 5, name: "next_update", kind: "message", T: () => Timestamp }
|
|
140
|
+
]);
|
|
141
|
+
}
|
|
142
|
+
create(value) {
|
|
143
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
144
|
+
message.revision = 0n;
|
|
145
|
+
message.generations = [];
|
|
146
|
+
message.roots = [];
|
|
147
|
+
if (value !== undefined)
|
|
148
|
+
reflectionMergePartial(this, message, value);
|
|
149
|
+
return message;
|
|
150
|
+
}
|
|
151
|
+
internalBinaryRead(reader, length, options, target) {
|
|
152
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
153
|
+
while (reader.pos < end) {
|
|
154
|
+
let [fieldNo, wireType] = reader.tag();
|
|
155
|
+
switch (fieldNo) {
|
|
156
|
+
case /* uint64 revision */ 1:
|
|
157
|
+
message.revision = reader.uint64().toBigInt();
|
|
158
|
+
break;
|
|
159
|
+
case /* repeated sid.v1.federation.PlatformCa generations */ 2:
|
|
160
|
+
message.generations.push(PlatformCa.internalBinaryRead(reader, reader.uint32(), options));
|
|
161
|
+
break;
|
|
162
|
+
case /* repeated bytes roots */ 3:
|
|
163
|
+
message.roots.push(reader.bytes());
|
|
164
|
+
break;
|
|
165
|
+
case /* google.protobuf.Timestamp issued_at */ 4:
|
|
166
|
+
message.issuedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.issuedAt);
|
|
167
|
+
break;
|
|
168
|
+
case /* google.protobuf.Timestamp next_update */ 5:
|
|
169
|
+
message.nextUpdate = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.nextUpdate);
|
|
170
|
+
break;
|
|
171
|
+
default:
|
|
172
|
+
let u = options.readUnknownField;
|
|
173
|
+
if (u === "throw")
|
|
174
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
175
|
+
let d = reader.skip(wireType);
|
|
176
|
+
if (u !== false)
|
|
177
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
return message;
|
|
181
|
+
}
|
|
182
|
+
internalBinaryWrite(message, writer, options) {
|
|
183
|
+
/* uint64 revision = 1; */
|
|
184
|
+
if (message.revision !== 0n)
|
|
185
|
+
writer.tag(1, WireType.Varint).uint64(message.revision);
|
|
186
|
+
/* repeated sid.v1.federation.PlatformCa generations = 2; */
|
|
187
|
+
for (let i = 0; i < message.generations.length; i++)
|
|
188
|
+
PlatformCa.internalBinaryWrite(message.generations[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
189
|
+
/* repeated bytes roots = 3; */
|
|
190
|
+
for (let i = 0; i < message.roots.length; i++)
|
|
191
|
+
writer.tag(3, WireType.LengthDelimited).bytes(message.roots[i]);
|
|
192
|
+
/* google.protobuf.Timestamp issued_at = 4; */
|
|
193
|
+
if (message.issuedAt)
|
|
194
|
+
Timestamp.internalBinaryWrite(message.issuedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
195
|
+
/* google.protobuf.Timestamp next_update = 5; */
|
|
196
|
+
if (message.nextUpdate)
|
|
197
|
+
Timestamp.internalBinaryWrite(message.nextUpdate, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
198
|
+
let u = options.writeUnknownFields;
|
|
199
|
+
if (u !== false)
|
|
200
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
201
|
+
return writer;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* @generated MessageType for protobuf message sid.v1.federation.PlatformCas
|
|
206
|
+
*/
|
|
207
|
+
export const PlatformCas = new PlatformCas$Type();
|
|
208
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
209
|
+
class PlatformCa$Type extends MessageType {
|
|
210
|
+
constructor() {
|
|
211
|
+
super("sid.v1.federation.PlatformCa", [
|
|
212
|
+
{ no: 1, name: "generation", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
213
|
+
{ no: 2, name: "certificate", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
214
|
+
{ no: 3, name: "state", kind: "enum", T: () => ["sid.v1.federation.PlatformCaState", PlatformCaState, "PLATFORM_CA_STATE_"] },
|
|
215
|
+
{ no: 4, name: "overlap_end", kind: "message", T: () => Timestamp }
|
|
216
|
+
]);
|
|
217
|
+
}
|
|
218
|
+
create(value) {
|
|
219
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
220
|
+
message.generation = 0;
|
|
221
|
+
message.certificate = new Uint8Array(0);
|
|
222
|
+
message.state = 0;
|
|
223
|
+
if (value !== undefined)
|
|
224
|
+
reflectionMergePartial(this, message, value);
|
|
225
|
+
return message;
|
|
226
|
+
}
|
|
227
|
+
internalBinaryRead(reader, length, options, target) {
|
|
228
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
229
|
+
while (reader.pos < end) {
|
|
230
|
+
let [fieldNo, wireType] = reader.tag();
|
|
231
|
+
switch (fieldNo) {
|
|
232
|
+
case /* uint32 generation */ 1:
|
|
233
|
+
message.generation = reader.uint32();
|
|
234
|
+
break;
|
|
235
|
+
case /* bytes certificate */ 2:
|
|
236
|
+
message.certificate = reader.bytes();
|
|
237
|
+
break;
|
|
238
|
+
case /* sid.v1.federation.PlatformCaState state */ 3:
|
|
239
|
+
message.state = reader.int32();
|
|
240
|
+
break;
|
|
241
|
+
case /* google.protobuf.Timestamp overlap_end */ 4:
|
|
242
|
+
message.overlapEnd = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.overlapEnd);
|
|
243
|
+
break;
|
|
244
|
+
default:
|
|
245
|
+
let u = options.readUnknownField;
|
|
246
|
+
if (u === "throw")
|
|
247
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
248
|
+
let d = reader.skip(wireType);
|
|
249
|
+
if (u !== false)
|
|
250
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
return message;
|
|
254
|
+
}
|
|
255
|
+
internalBinaryWrite(message, writer, options) {
|
|
256
|
+
/* uint32 generation = 1; */
|
|
257
|
+
if (message.generation !== 0)
|
|
258
|
+
writer.tag(1, WireType.Varint).uint32(message.generation);
|
|
259
|
+
/* bytes certificate = 2; */
|
|
260
|
+
if (message.certificate.length)
|
|
261
|
+
writer.tag(2, WireType.LengthDelimited).bytes(message.certificate);
|
|
262
|
+
/* sid.v1.federation.PlatformCaState state = 3; */
|
|
263
|
+
if (message.state !== 0)
|
|
264
|
+
writer.tag(3, WireType.Varint).int32(message.state);
|
|
265
|
+
/* google.protobuf.Timestamp overlap_end = 4; */
|
|
266
|
+
if (message.overlapEnd)
|
|
267
|
+
Timestamp.internalBinaryWrite(message.overlapEnd, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
268
|
+
let u = options.writeUnknownFields;
|
|
269
|
+
if (u !== false)
|
|
270
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
271
|
+
return writer;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* @generated MessageType for protobuf message sid.v1.federation.PlatformCa
|
|
276
|
+
*/
|
|
277
|
+
export const PlatformCa = new PlatformCa$Type();
|
|
278
|
+
/**
|
|
279
|
+
* @generated ServiceType for protobuf service sid.v1.federation.PlatformCaService
|
|
280
|
+
*/
|
|
281
|
+
export const PlatformCaService = new ServiceType("sid.v1.federation.PlatformCaService", [
|
|
282
|
+
{ name: "GetPlatformCas", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/.well-known/sid-ca/index.json" }, "sid.v1.common.access": { open: "public trust material: the platform CA set and its revocation list" } }, I: GetPlatformCasRequest, O: PlatformCas },
|
|
283
|
+
{ name: "GetPlatformCaCrl", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/.well-known/sid-ca/{generation}/crl" }, "sid.v1.common.access": { open: "public trust material: the platform CA set and its revocation list" } }, I: GetPlatformCaCrlRequest, O: HttpBody }
|
|
284
|
+
]);
|
|
285
|
+
//# sourceMappingURL=platform_ca.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform_ca.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/federation/platform_ca.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,mHAAmH;AACnH,iBAAiB;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C,KAAK,KAAK;YACX,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAClF,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AACD;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,eAAe,EAAE,CAAC;AAChD;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,WAAW,CAAC,qCAAqC,EAAE;IACpF,EAAE,IAAI,EAAE,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,EAAE,OAAO,EAAE,EAAE,iBAAiB,EAAE,EAAE,GAAG,EAAE,gCAAgC,EAAE,EAAE,sBAAsB,EAAE,EAAE,IAAI,EAAE,oEAAoE,EAAE,EAAE,EAAE,CAAC,EAAE,qBAAqB,EAAE,CAAC,EAAE,WAAW,EAAE;IACvR,EAAE,IAAI,EAAE,kBAAkB,EAAE,WAAW,EAAE,iBAAiB,EAAE,OAAO,EAAE,EAAE,iBAAiB,EAAE,EAAE,GAAG,EAAE,sCAAsC,EAAE,EAAE,sBAAsB,EAAE,EAAE,IAAI,EAAE,oEAAoE,EAAE,EAAE,EAAE,CAAC,EAAE,uBAAuB,EAAE,CAAC,EAAE,QAAQ,EAAE;CACjS,CAAC,CAAC","sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck\n// @generated from protobuf file \"sid/v1/federation/platform_ca.proto\" (package \"sid.v1.federation\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\nimport { HttpBody } from \"../../../google/api/httpbody.js\";\nimport { ServiceType } from \"@protobuf-ts/runtime-rpc\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\nimport { Timestamp } from \"../../../google/protobuf/timestamp.js\";\n/**\n * The admitted set takes no input: the platform publishes one statement.\n *\n * @generated from protobuf message sid.v1.federation.GetPlatformCasRequest\n */\nexport interface GetPlatformCasRequest {\n}\n/**\n * Which generation's CRL is read.\n *\n * @generated from protobuf message sid.v1.federation.GetPlatformCaCrlRequest\n */\nexport interface GetPlatformCaCrlRequest {\n /**\n * The generation's number, as PlatformCa.generation states it.\n *\n * @generated from protobuf field: uint32 generation = 1\n */\n generation: number;\n}\n/**\n * The admitted platform CA set at one revision.\n *\n * @generated from protobuf message sid.v1.federation.PlatformCas\n */\nexport interface PlatformCas {\n /**\n * Monotonic revision of the set, advanced by every lifecycle transition of\n * a published generation. A verifier never accepts a revision lower than\n * one it has already accepted.\n *\n * @generated from protobuf field: uint64 revision = 1\n */\n revision: bigint;\n /**\n * Every published platform intermediate generation, including withdrawn\n * ones, so a withdrawal reaches a verifier and an older copy cannot erase\n * it. A generation that was never activated is not published.\n *\n * @generated from protobuf field: repeated sid.v1.federation.PlatformCa generations = 2\n */\n generations: PlatformCa[];\n /**\n * Root certificates (DER) above the generations, for chain continuity and\n * status evidence. A verifier may ignore them: accepting a credential under\n * an admitted generation does not require its Root.\n *\n * @generated from protobuf field: repeated bytes roots = 3\n */\n roots: Uint8Array[];\n /**\n * When the platform made this statement.\n *\n * @generated from protobuf field: google.protobuf.Timestamp issued_at = 4\n */\n issuedAt?: Timestamp;\n /**\n * The time by which a verifier must obtain a newer statement; after it the\n * states below are not current evidence and the verifier refreshes or\n * reports the status unavailable, never assumes it unchanged.\n *\n * @generated from protobuf field: google.protobuf.Timestamp next_update = 5\n */\n nextUpdate?: Timestamp;\n}\n/**\n * One platform intermediate generation and what a verifier may do with it.\n *\n * @generated from protobuf message sid.v1.federation.PlatformCa\n */\nexport interface PlatformCa {\n /**\n * The generation's number, monotonic from 1 across the platform's\n * intermediates.\n *\n * @generated from protobuf field: uint32 generation = 1\n */\n generation: number;\n /**\n * The intermediate's certificate (DER), with its ECDSA P-256 key and, for\n * a PQ verifier, its ML-DSA-65 key in subjectAltPublicKeyInfo.\n *\n * @generated from protobuf field: bytes certificate = 2\n */\n certificate: Uint8Array;\n /**\n * What a verifier may anchor on this generation for.\n *\n * @generated from protobuf field: sid.v1.federation.PlatformCaState state = 3\n */\n state: PlatformCaState;\n /**\n * For a verification-only generation, the end of its overlap: paths through\n * it are not accepted after this time even while its certificate is valid.\n * Absent for the other states.\n *\n * @generated from protobuf field: google.protobuf.Timestamp overlap_end = 4\n */\n overlapEnd?: Timestamp;\n}\n/**\n * The admitted state of a platform intermediate generation.\n *\n * @generated from protobuf enum sid.v1.federation.PlatformCaState\n */\nexport enum PlatformCaState {\n /**\n * Not a valid state; a verifier refuses a generation that carries it.\n *\n * @generated from protobuf enum value: PLATFORM_CA_STATE_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n /**\n * The generation currently issuing; paths through it are accepted.\n *\n * @generated from protobuf enum value: PLATFORM_CA_STATE_ACTIVE = 1;\n */\n ACTIVE = 1,\n /**\n * Replaced by a newer generation; paths through it are accepted only until\n * its overlap end.\n *\n * @generated from protobuf enum value: PLATFORM_CA_STATE_VERIFICATION_ONLY = 2;\n */\n VERIFICATION_ONLY = 2,\n /**\n * Withdrawn; no path through it is accepted, including descendants a\n * verifier has never seen.\n *\n * @generated from protobuf enum value: PLATFORM_CA_STATE_WITHDRAWN = 3;\n */\n WITHDRAWN = 3\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass GetPlatformCasRequest$Type extends MessageType<GetPlatformCasRequest> {\n constructor() {\n super(\"sid.v1.federation.GetPlatformCasRequest\", []);\n }\n create(value?: PartialMessage<GetPlatformCasRequest>): GetPlatformCasRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n if (value !== undefined)\n reflectionMergePartial<GetPlatformCasRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetPlatformCasRequest): GetPlatformCasRequest {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: GetPlatformCasRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.federation.GetPlatformCasRequest\n */\nexport const GetPlatformCasRequest = new GetPlatformCasRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass GetPlatformCaCrlRequest$Type extends MessageType<GetPlatformCaCrlRequest> {\n constructor() {\n super(\"sid.v1.federation.GetPlatformCaCrlRequest\", [\n { no: 1, name: \"generation\", kind: \"scalar\", T: 13 /*ScalarType.UINT32*/ }\n ]);\n }\n create(value?: PartialMessage<GetPlatformCaCrlRequest>): GetPlatformCaCrlRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.generation = 0;\n if (value !== undefined)\n reflectionMergePartial<GetPlatformCaCrlRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetPlatformCaCrlRequest): GetPlatformCaCrlRequest {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint32 generation */ 1:\n message.generation = reader.uint32();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: GetPlatformCaCrlRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint32 generation = 1; */\n if (message.generation !== 0)\n writer.tag(1, WireType.Varint).uint32(message.generation);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.federation.GetPlatformCaCrlRequest\n */\nexport const GetPlatformCaCrlRequest = new GetPlatformCaCrlRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass PlatformCas$Type extends MessageType<PlatformCas> {\n constructor() {\n super(\"sid.v1.federation.PlatformCas\", [\n { no: 1, name: \"revision\", kind: \"scalar\", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 2, name: \"generations\", kind: \"message\", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PlatformCa },\n { no: 3, name: \"roots\", kind: \"scalar\", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/ },\n { no: 4, name: \"issued_at\", kind: \"message\", T: () => Timestamp },\n { no: 5, name: \"next_update\", kind: \"message\", T: () => Timestamp }\n ]);\n }\n create(value?: PartialMessage<PlatformCas>): PlatformCas {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.revision = 0n;\n message.generations = [];\n message.roots = [];\n if (value !== undefined)\n reflectionMergePartial<PlatformCas>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PlatformCas): PlatformCas {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint64 revision */ 1:\n message.revision = reader.uint64().toBigInt();\n break;\n case /* repeated sid.v1.federation.PlatformCa generations */ 2:\n message.generations.push(PlatformCa.internalBinaryRead(reader, reader.uint32(), options));\n break;\n case /* repeated bytes roots */ 3:\n message.roots.push(reader.bytes());\n break;\n case /* google.protobuf.Timestamp issued_at */ 4:\n message.issuedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.issuedAt);\n break;\n case /* google.protobuf.Timestamp next_update */ 5:\n message.nextUpdate = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.nextUpdate);\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: PlatformCas, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint64 revision = 1; */\n if (message.revision !== 0n)\n writer.tag(1, WireType.Varint).uint64(message.revision);\n /* repeated sid.v1.federation.PlatformCa generations = 2; */\n for (let i = 0; i < message.generations.length; i++)\n PlatformCa.internalBinaryWrite(message.generations[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();\n /* repeated bytes roots = 3; */\n for (let i = 0; i < message.roots.length; i++)\n writer.tag(3, WireType.LengthDelimited).bytes(message.roots[i]);\n /* google.protobuf.Timestamp issued_at = 4; */\n if (message.issuedAt)\n Timestamp.internalBinaryWrite(message.issuedAt, writer.tag(4, WireType.LengthDelimited).fork(), options).join();\n /* google.protobuf.Timestamp next_update = 5; */\n if (message.nextUpdate)\n Timestamp.internalBinaryWrite(message.nextUpdate, writer.tag(5, WireType.LengthDelimited).fork(), options).join();\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.federation.PlatformCas\n */\nexport const PlatformCas = new PlatformCas$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass PlatformCa$Type extends MessageType<PlatformCa> {\n constructor() {\n super(\"sid.v1.federation.PlatformCa\", [\n { no: 1, name: \"generation\", kind: \"scalar\", T: 13 /*ScalarType.UINT32*/ },\n { no: 2, name: \"certificate\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 3, name: \"state\", kind: \"enum\", T: () => [\"sid.v1.federation.PlatformCaState\", PlatformCaState, \"PLATFORM_CA_STATE_\"] },\n { no: 4, name: \"overlap_end\", kind: \"message\", T: () => Timestamp }\n ]);\n }\n create(value?: PartialMessage<PlatformCa>): PlatformCa {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.generation = 0;\n message.certificate = new Uint8Array(0);\n message.state = 0;\n if (value !== undefined)\n reflectionMergePartial<PlatformCa>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PlatformCa): PlatformCa {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* uint32 generation */ 1:\n message.generation = reader.uint32();\n break;\n case /* bytes certificate */ 2:\n message.certificate = reader.bytes();\n break;\n case /* sid.v1.federation.PlatformCaState state */ 3:\n message.state = reader.int32();\n break;\n case /* google.protobuf.Timestamp overlap_end */ 4:\n message.overlapEnd = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.overlapEnd);\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: PlatformCa, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* uint32 generation = 1; */\n if (message.generation !== 0)\n writer.tag(1, WireType.Varint).uint32(message.generation);\n /* bytes certificate = 2; */\n if (message.certificate.length)\n writer.tag(2, WireType.LengthDelimited).bytes(message.certificate);\n /* sid.v1.federation.PlatformCaState state = 3; */\n if (message.state !== 0)\n writer.tag(3, WireType.Varint).int32(message.state);\n /* google.protobuf.Timestamp overlap_end = 4; */\n if (message.overlapEnd)\n Timestamp.internalBinaryWrite(message.overlapEnd, writer.tag(4, WireType.LengthDelimited).fork(), options).join();\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.federation.PlatformCa\n */\nexport const PlatformCa = new PlatformCa$Type();\n/**\n * @generated ServiceType for protobuf service sid.v1.federation.PlatformCaService\n */\nexport const PlatformCaService = new ServiceType(\"sid.v1.federation.PlatformCaService\", [\n { name: \"GetPlatformCas\", idempotency: \"NO_SIDE_EFFECTS\", options: { \"google.api.http\": { get: \"/.well-known/sid-ca/index.json\" }, \"sid.v1.common.access\": { open: \"public trust material: the platform CA set and its revocation list\" } }, I: GetPlatformCasRequest, O: PlatformCas },\n { name: \"GetPlatformCaCrl\", idempotency: \"NO_SIDE_EFFECTS\", options: { \"google.api.http\": { get: \"/.well-known/sid-ca/{generation}/crl\" }, \"sid.v1.common.access\": { open: \"public trust material: the platform CA set and its revocation list\" } }, I: GetPlatformCaCrlRequest, O: HttpBody }\n]);\n"]}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
2
|
+
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
3
|
+
import type { SiteAdmission } from "./site.js";
|
|
4
|
+
import type { SignSiteAdmissionRequest } from "./site.js";
|
|
5
|
+
import type { FederationSiteState } from "./site.js";
|
|
6
|
+
import type { GetFederationSiteRequest } from "./site.js";
|
|
7
|
+
import type { FederationSite } from "./site.js";
|
|
8
|
+
import type { HoldSiteCertificateRequest } from "./site.js";
|
|
9
|
+
import type { SiteEnrollmentRequest } from "./site.js";
|
|
10
|
+
import type { PrepareSiteEnrollmentRequest } from "./site.js";
|
|
11
|
+
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
12
|
+
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
13
|
+
/**
|
|
14
|
+
* FederationSiteService manages the installation's enrollment as a site.
|
|
15
|
+
* Every RPC requires the administrator role.
|
|
16
|
+
*
|
|
17
|
+
* @generated from protobuf service sid.v1.federation.FederationSiteService
|
|
18
|
+
*/
|
|
19
|
+
export interface IFederationSiteServiceClient {
|
|
20
|
+
/**
|
|
21
|
+
* What to take to the platform to have this installation enrolled.
|
|
22
|
+
*
|
|
23
|
+
* @generated from protobuf rpc: PrepareSiteEnrollment
|
|
24
|
+
*/
|
|
25
|
+
prepareSiteEnrollment(input: PrepareSiteEnrollmentRequest, options?: RpcOptions): UnaryCall<PrepareSiteEnrollmentRequest, SiteEnrollmentRequest>;
|
|
26
|
+
/**
|
|
27
|
+
* Hold the certificate the platform issued for this site. It is held only
|
|
28
|
+
* when it is an enrolled site's certificate on a path this installation
|
|
29
|
+
* admits, for this site's key, this installation's organization and only
|
|
30
|
+
* addresses the installation is entered at. A renewal replaces the one
|
|
31
|
+
* held.
|
|
32
|
+
*
|
|
33
|
+
* @generated from protobuf rpc: HoldSiteCertificate
|
|
34
|
+
*/
|
|
35
|
+
holdSiteCertificate(input: HoldSiteCertificateRequest, options?: RpcOptions): UnaryCall<HoldSiteCertificateRequest, FederationSite>;
|
|
36
|
+
/**
|
|
37
|
+
* The site this installation is enrolled as. The held certificate is
|
|
38
|
+
* verified again on every call: one the platform withdrew is refused
|
|
39
|
+
* (FAILED_PRECONDITION), not answered as a site.
|
|
40
|
+
*
|
|
41
|
+
* @generated from protobuf rpc: GetFederationSite
|
|
42
|
+
*/
|
|
43
|
+
getFederationSite(input: GetFederationSiteRequest, options?: RpcOptions): UnaryCall<GetFederationSiteRequest, FederationSiteState>;
|
|
44
|
+
/**
|
|
45
|
+
* The site's signed statement of whom this installation admits at one of
|
|
46
|
+
* its entries, as the login settings stand now. Nothing is stored: each
|
|
47
|
+
* call signs the settings in force at that moment.
|
|
48
|
+
*
|
|
49
|
+
* @generated from protobuf rpc: SignSiteAdmission
|
|
50
|
+
*/
|
|
51
|
+
signSiteAdmission(input: SignSiteAdmissionRequest, options?: RpcOptions): UnaryCall<SignSiteAdmissionRequest, SiteAdmission>;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* FederationSiteService manages the installation's enrollment as a site.
|
|
55
|
+
* Every RPC requires the administrator role.
|
|
56
|
+
*
|
|
57
|
+
* @generated from protobuf service sid.v1.federation.FederationSiteService
|
|
58
|
+
*/
|
|
59
|
+
export declare class FederationSiteServiceClient implements IFederationSiteServiceClient, ServiceInfo {
|
|
60
|
+
private readonly _transport;
|
|
61
|
+
typeName: string;
|
|
62
|
+
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
|
|
63
|
+
options: {
|
|
64
|
+
[extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
|
|
65
|
+
};
|
|
66
|
+
constructor(_transport: RpcTransport);
|
|
67
|
+
/**
|
|
68
|
+
* What to take to the platform to have this installation enrolled.
|
|
69
|
+
*
|
|
70
|
+
* @generated from protobuf rpc: PrepareSiteEnrollment
|
|
71
|
+
*/
|
|
72
|
+
prepareSiteEnrollment(input: PrepareSiteEnrollmentRequest, options?: RpcOptions): UnaryCall<PrepareSiteEnrollmentRequest, SiteEnrollmentRequest>;
|
|
73
|
+
/**
|
|
74
|
+
* Hold the certificate the platform issued for this site. It is held only
|
|
75
|
+
* when it is an enrolled site's certificate on a path this installation
|
|
76
|
+
* admits, for this site's key, this installation's organization and only
|
|
77
|
+
* addresses the installation is entered at. A renewal replaces the one
|
|
78
|
+
* held.
|
|
79
|
+
*
|
|
80
|
+
* @generated from protobuf rpc: HoldSiteCertificate
|
|
81
|
+
*/
|
|
82
|
+
holdSiteCertificate(input: HoldSiteCertificateRequest, options?: RpcOptions): UnaryCall<HoldSiteCertificateRequest, FederationSite>;
|
|
83
|
+
/**
|
|
84
|
+
* The site this installation is enrolled as. The held certificate is
|
|
85
|
+
* verified again on every call: one the platform withdrew is refused
|
|
86
|
+
* (FAILED_PRECONDITION), not answered as a site.
|
|
87
|
+
*
|
|
88
|
+
* @generated from protobuf rpc: GetFederationSite
|
|
89
|
+
*/
|
|
90
|
+
getFederationSite(input: GetFederationSiteRequest, options?: RpcOptions): UnaryCall<GetFederationSiteRequest, FederationSiteState>;
|
|
91
|
+
/**
|
|
92
|
+
* The site's signed statement of whom this installation admits at one of
|
|
93
|
+
* its entries, as the login settings stand now. Nothing is stored: each
|
|
94
|
+
* call signs the settings in force at that moment.
|
|
95
|
+
*
|
|
96
|
+
* @generated from protobuf rpc: SignSiteAdmission
|
|
97
|
+
*/
|
|
98
|
+
signSiteAdmission(input: SignSiteAdmissionRequest, options?: RpcOptions): UnaryCall<SignSiteAdmissionRequest, SiteAdmission>;
|
|
99
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { FederationSiteService } from "./site.js";
|
|
2
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
3
|
+
/**
|
|
4
|
+
* FederationSiteService manages the installation's enrollment as a site.
|
|
5
|
+
* Every RPC requires the administrator role.
|
|
6
|
+
*
|
|
7
|
+
* @generated from protobuf service sid.v1.federation.FederationSiteService
|
|
8
|
+
*/
|
|
9
|
+
export class FederationSiteServiceClient {
|
|
10
|
+
_transport;
|
|
11
|
+
typeName = FederationSiteService.typeName;
|
|
12
|
+
methods = FederationSiteService.methods;
|
|
13
|
+
options = FederationSiteService.options;
|
|
14
|
+
constructor(_transport) {
|
|
15
|
+
this._transport = _transport;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* What to take to the platform to have this installation enrolled.
|
|
19
|
+
*
|
|
20
|
+
* @generated from protobuf rpc: PrepareSiteEnrollment
|
|
21
|
+
*/
|
|
22
|
+
prepareSiteEnrollment(input, options) {
|
|
23
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
24
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Hold the certificate the platform issued for this site. It is held only
|
|
28
|
+
* when it is an enrolled site's certificate on a path this installation
|
|
29
|
+
* admits, for this site's key, this installation's organization and only
|
|
30
|
+
* addresses the installation is entered at. A renewal replaces the one
|
|
31
|
+
* held.
|
|
32
|
+
*
|
|
33
|
+
* @generated from protobuf rpc: HoldSiteCertificate
|
|
34
|
+
*/
|
|
35
|
+
holdSiteCertificate(input, options) {
|
|
36
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
37
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The site this installation is enrolled as. The held certificate is
|
|
41
|
+
* verified again on every call: one the platform withdrew is refused
|
|
42
|
+
* (FAILED_PRECONDITION), not answered as a site.
|
|
43
|
+
*
|
|
44
|
+
* @generated from protobuf rpc: GetFederationSite
|
|
45
|
+
*/
|
|
46
|
+
getFederationSite(input, options) {
|
|
47
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
48
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The site's signed statement of whom this installation admits at one of
|
|
52
|
+
* its entries, as the login settings stand now. Nothing is stored: each
|
|
53
|
+
* call signs the settings in force at that moment.
|
|
54
|
+
*
|
|
55
|
+
* @generated from protobuf rpc: SignSiteAdmission
|
|
56
|
+
*/
|
|
57
|
+
signSiteAdmission(input, options) {
|
|
58
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
59
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=site.client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"site.client.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/federation/site.client.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAOlD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AA6C1D;;;;;GAKG;AACH,MAAM,OAAO,2BAA2B;IAIP;IAH7B,QAAQ,GAAG,qBAAqB,CAAC,QAAQ,CAAC;IAC1C,OAAO,GAAG,qBAAqB,CAAC,OAAO,CAAC;IACxC,OAAO,GAAG,qBAAqB,CAAC,OAAO,CAAC;IACxC,YAA6B,UAAwB;QAAxB,eAAU,GAAV,UAAU,CAAc;IACrD,CAAC;IACD;;;;OAIG;IACH,qBAAqB,CAAC,KAAmC,EAAE,OAAoB;QAC3E,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAAsD,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IAC7H,CAAC;IACD;;;;;;;;OAQG;IACH,mBAAmB,CAAC,KAAiC,EAAE,OAAoB;QACvE,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAA6C,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACpH,CAAC;IACD;;;;;;OAMG;IACH,iBAAiB,CAAC,KAA+B,EAAE,OAAoB;QACnE,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAAgD,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACvH,CAAC;IACD;;;;;;OAMG;IACH,iBAAiB,CAAC,KAA+B,EAAE,OAAoB;QACnE,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAA0C,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACjH,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/federation/site.proto\" (package \"sid.v1.federation\", 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 { FederationSiteService } from \"./site.js\";\nimport type { SiteAdmission } from \"./site.js\";\nimport type { SignSiteAdmissionRequest } from \"./site.js\";\nimport type { FederationSiteState } from \"./site.js\";\nimport type { GetFederationSiteRequest } from \"./site.js\";\nimport type { FederationSite } from \"./site.js\";\nimport type { HoldSiteCertificateRequest } from \"./site.js\";\nimport { stackIntercept } from \"@protobuf-ts/runtime-rpc\";\nimport type { SiteEnrollmentRequest } from \"./site.js\";\nimport type { PrepareSiteEnrollmentRequest } from \"./site.js\";\nimport type { UnaryCall } from \"@protobuf-ts/runtime-rpc\";\nimport type { RpcOptions } from \"@protobuf-ts/runtime-rpc\";\n/**\n * FederationSiteService manages the installation's enrollment as a site.\n * Every RPC requires the administrator role.\n *\n * @generated from protobuf service sid.v1.federation.FederationSiteService\n */\nexport interface IFederationSiteServiceClient {\n /**\n * What to take to the platform to have this installation enrolled.\n *\n * @generated from protobuf rpc: PrepareSiteEnrollment\n */\n prepareSiteEnrollment(input: PrepareSiteEnrollmentRequest, options?: RpcOptions): UnaryCall<PrepareSiteEnrollmentRequest, SiteEnrollmentRequest>;\n /**\n * Hold the certificate the platform issued for this site. It is held only\n * when it is an enrolled site's certificate on a path this installation\n * admits, for this site's key, this installation's organization and only\n * addresses the installation is entered at. A renewal replaces the one\n * held.\n *\n * @generated from protobuf rpc: HoldSiteCertificate\n */\n holdSiteCertificate(input: HoldSiteCertificateRequest, options?: RpcOptions): UnaryCall<HoldSiteCertificateRequest, FederationSite>;\n /**\n * The site this installation is enrolled as. The held certificate is\n * verified again on every call: one the platform withdrew is refused\n * (FAILED_PRECONDITION), not answered as a site.\n *\n * @generated from protobuf rpc: GetFederationSite\n */\n getFederationSite(input: GetFederationSiteRequest, options?: RpcOptions): UnaryCall<GetFederationSiteRequest, FederationSiteState>;\n /**\n * The site's signed statement of whom this installation admits at one of\n * its entries, as the login settings stand now. Nothing is stored: each\n * call signs the settings in force at that moment.\n *\n * @generated from protobuf rpc: SignSiteAdmission\n */\n signSiteAdmission(input: SignSiteAdmissionRequest, options?: RpcOptions): UnaryCall<SignSiteAdmissionRequest, SiteAdmission>;\n}\n/**\n * FederationSiteService manages the installation's enrollment as a site.\n * Every RPC requires the administrator role.\n *\n * @generated from protobuf service sid.v1.federation.FederationSiteService\n */\nexport class FederationSiteServiceClient implements IFederationSiteServiceClient, ServiceInfo {\n typeName = FederationSiteService.typeName;\n methods = FederationSiteService.methods;\n options = FederationSiteService.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * What to take to the platform to have this installation enrolled.\n *\n * @generated from protobuf rpc: PrepareSiteEnrollment\n */\n prepareSiteEnrollment(input: PrepareSiteEnrollmentRequest, options?: RpcOptions): UnaryCall<PrepareSiteEnrollmentRequest, SiteEnrollmentRequest> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<PrepareSiteEnrollmentRequest, SiteEnrollmentRequest>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * Hold the certificate the platform issued for this site. It is held only\n * when it is an enrolled site's certificate on a path this installation\n * admits, for this site's key, this installation's organization and only\n * addresses the installation is entered at. A renewal replaces the one\n * held.\n *\n * @generated from protobuf rpc: HoldSiteCertificate\n */\n holdSiteCertificate(input: HoldSiteCertificateRequest, options?: RpcOptions): UnaryCall<HoldSiteCertificateRequest, FederationSite> {\n const method = this.methods[1], opt = this._transport.mergeOptions(options);\n return stackIntercept<HoldSiteCertificateRequest, FederationSite>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * The site this installation is enrolled as. The held certificate is\n * verified again on every call: one the platform withdrew is refused\n * (FAILED_PRECONDITION), not answered as a site.\n *\n * @generated from protobuf rpc: GetFederationSite\n */\n getFederationSite(input: GetFederationSiteRequest, options?: RpcOptions): UnaryCall<GetFederationSiteRequest, FederationSiteState> {\n const method = this.methods[2], opt = this._transport.mergeOptions(options);\n return stackIntercept<GetFederationSiteRequest, FederationSiteState>(\"unary\", this._transport, method, opt, input);\n }\n /**\n * The site's signed statement of whom this installation admits at one of\n * its entries, as the login settings stand now. Nothing is stored: each\n * call signs the settings in force at that moment.\n *\n * @generated from protobuf rpc: SignSiteAdmission\n */\n signSiteAdmission(input: SignSiteAdmissionRequest, options?: RpcOptions): UnaryCall<SignSiteAdmissionRequest, SiteAdmission> {\n const method = this.methods[3], opt = this._transport.mergeOptions(options);\n return stackIntercept<SignSiteAdmissionRequest, SiteAdmission>(\"unary\", this._transport, method, opt, input);\n }\n}\n"]}
|