Skip to content

Commit d4693e4

Browse files
committed
clean up
1 parent b983fb2 commit d4693e4

File tree

13 files changed

+6488
-8
lines changed

13 files changed

+6488
-8
lines changed

lib/src/platform/authorization/authorization_pb.ts

Lines changed: 707 additions & 0 deletions
Large diffs are not rendered by default.

lib/src/platform/common/common_pb.ts

Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
// @generated by protoc-gen-es v1.9.0 with parameter "target=ts"
2+
// @generated from file common/common.proto (package common, syntax proto3)
3+
/* eslint-disable */
4+
// @ts-nocheck
5+
6+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7+
import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
8+
9+
/**
10+
* @generated from enum common.MetadataUpdateEnum
11+
*/
12+
export enum MetadataUpdateEnum {
13+
/**
14+
* unspecified update type
15+
*
16+
* @generated from enum value: METADATA_UPDATE_ENUM_UNSPECIFIED = 0;
17+
*/
18+
UNSPECIFIED = 0,
19+
20+
/**
21+
* only update the fields that are provided
22+
*
23+
* @generated from enum value: METADATA_UPDATE_ENUM_EXTEND = 1;
24+
*/
25+
EXTEND = 1,
26+
27+
/**
28+
* replace the entire metadata with the provided metadata
29+
*
30+
* @generated from enum value: METADATA_UPDATE_ENUM_REPLACE = 2;
31+
*/
32+
REPLACE = 2,
33+
}
34+
// Retrieve enum metadata with: proto3.getEnumType(MetadataUpdateEnum)
35+
proto3.util.setEnumType(MetadataUpdateEnum, "common.MetadataUpdateEnum", [
36+
{ no: 0, name: "METADATA_UPDATE_ENUM_UNSPECIFIED" },
37+
{ no: 1, name: "METADATA_UPDATE_ENUM_EXTEND" },
38+
{ no: 2, name: "METADATA_UPDATE_ENUM_REPLACE" },
39+
]);
40+
41+
/**
42+
* buflint ENUM_VALUE_PREFIX: to make sure that C++ scoping rules aren't violated when users add new enum values to an enum in a given package
43+
*
44+
* @generated from enum common.ActiveStateEnum
45+
*/
46+
export enum ActiveStateEnum {
47+
/**
48+
* @generated from enum value: ACTIVE_STATE_ENUM_UNSPECIFIED = 0;
49+
*/
50+
UNSPECIFIED = 0,
51+
52+
/**
53+
* @generated from enum value: ACTIVE_STATE_ENUM_ACTIVE = 1;
54+
*/
55+
ACTIVE = 1,
56+
57+
/**
58+
* @generated from enum value: ACTIVE_STATE_ENUM_INACTIVE = 2;
59+
*/
60+
INACTIVE = 2,
61+
62+
/**
63+
* @generated from enum value: ACTIVE_STATE_ENUM_ANY = 3;
64+
*/
65+
ANY = 3,
66+
}
67+
// Retrieve enum metadata with: proto3.getEnumType(ActiveStateEnum)
68+
proto3.util.setEnumType(ActiveStateEnum, "common.ActiveStateEnum", [
69+
{ no: 0, name: "ACTIVE_STATE_ENUM_UNSPECIFIED" },
70+
{ no: 1, name: "ACTIVE_STATE_ENUM_ACTIVE" },
71+
{ no: 2, name: "ACTIVE_STATE_ENUM_INACTIVE" },
72+
{ no: 3, name: "ACTIVE_STATE_ENUM_ANY" },
73+
]);
74+
75+
/**
76+
* Struct to uniquely identify a resource with optional additional metadata
77+
*
78+
* @generated from message common.Metadata
79+
*/
80+
export class Metadata extends Message<Metadata> {
81+
/**
82+
* created_at set by server (entity who created will recorded in an audit event)
83+
*
84+
* @generated from field: google.protobuf.Timestamp created_at = 1;
85+
*/
86+
createdAt?: Timestamp;
87+
88+
/**
89+
* updated_at set by server (entity who updated will recorded in an audit event)
90+
*
91+
* @generated from field: google.protobuf.Timestamp updated_at = 2;
92+
*/
93+
updatedAt?: Timestamp;
94+
95+
/**
96+
* optional short description
97+
*
98+
* @generated from field: map<string, string> labels = 3;
99+
*/
100+
labels: { [key: string]: string } = {};
101+
102+
constructor(data?: PartialMessage<Metadata>) {
103+
super();
104+
proto3.util.initPartial(data, this);
105+
}
106+
107+
static readonly runtime: typeof proto3 = proto3;
108+
static readonly typeName = "common.Metadata";
109+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
110+
{ no: 1, name: "created_at", kind: "message", T: Timestamp },
111+
{ no: 2, name: "updated_at", kind: "message", T: Timestamp },
112+
{ no: 3, name: "labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
113+
]);
114+
115+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Metadata {
116+
return new Metadata().fromBinary(bytes, options);
117+
}
118+
119+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Metadata {
120+
return new Metadata().fromJson(jsonValue, options);
121+
}
122+
123+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Metadata {
124+
return new Metadata().fromJsonString(jsonString, options);
125+
}
126+
127+
static equals(a: Metadata | PlainMessage<Metadata> | undefined, b: Metadata | PlainMessage<Metadata> | undefined): boolean {
128+
return proto3.util.equals(Metadata, a, b);
129+
}
130+
}
131+
132+
/**
133+
* @generated from message common.MetadataMutable
134+
*/
135+
export class MetadataMutable extends Message<MetadataMutable> {
136+
/**
137+
* optional labels
138+
*
139+
* @generated from field: map<string, string> labels = 3;
140+
*/
141+
labels: { [key: string]: string } = {};
142+
143+
constructor(data?: PartialMessage<MetadataMutable>) {
144+
super();
145+
proto3.util.initPartial(data, this);
146+
}
147+
148+
static readonly runtime: typeof proto3 = proto3;
149+
static readonly typeName = "common.MetadataMutable";
150+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
151+
{ no: 3, name: "labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
152+
]);
153+
154+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MetadataMutable {
155+
return new MetadataMutable().fromBinary(bytes, options);
156+
}
157+
158+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MetadataMutable {
159+
return new MetadataMutable().fromJson(jsonValue, options);
160+
}
161+
162+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MetadataMutable {
163+
return new MetadataMutable().fromJsonString(jsonString, options);
164+
}
165+
166+
static equals(a: MetadataMutable | PlainMessage<MetadataMutable> | undefined, b: MetadataMutable | PlainMessage<MetadataMutable> | undefined): boolean {
167+
return proto3.util.equals(MetadataMutable, a, b);
168+
}
169+
}
170+
Lines changed: 215 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,215 @@
1+
// @generated by protoc-gen-es v1.9.0 with parameter "target=ts"
2+
// @generated from file entityresolution/entity_resolution.proto (package entityresolution, syntax proto3)
3+
/* eslint-disable */
4+
// @ts-nocheck
5+
6+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7+
import { Any, Message, proto3, Struct } from "@bufbuild/protobuf";
8+
import { Entity } from "../authorization/authorization_pb.js";
9+
10+
/**
11+
*
12+
* Example: Get idp attributes for bob and alice (both represented using an email address
13+
* {
14+
* "entities": [
15+
* {
16+
* "id": "e1",
17+
* "emailAddress": "bob@example.org"
18+
* },
19+
* {
20+
* "id": "e2",
21+
* "emailAddress": "alice@example.org"
22+
* }
23+
* ]
24+
* }
25+
*
26+
*
27+
* @generated from message entityresolution.ResolveEntitiesRequest
28+
*/
29+
export class ResolveEntitiesRequest extends Message<ResolveEntitiesRequest> {
30+
/**
31+
* @generated from field: repeated authorization.Entity entities = 1;
32+
*/
33+
entities: Entity[] = [];
34+
35+
constructor(data?: PartialMessage<ResolveEntitiesRequest>) {
36+
super();
37+
proto3.util.initPartial(data, this);
38+
}
39+
40+
static readonly runtime: typeof proto3 = proto3;
41+
static readonly typeName = "entityresolution.ResolveEntitiesRequest";
42+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
43+
{ no: 1, name: "entities", kind: "message", T: Entity, repeated: true },
44+
]);
45+
46+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResolveEntitiesRequest {
47+
return new ResolveEntitiesRequest().fromBinary(bytes, options);
48+
}
49+
50+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResolveEntitiesRequest {
51+
return new ResolveEntitiesRequest().fromJson(jsonValue, options);
52+
}
53+
54+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResolveEntitiesRequest {
55+
return new ResolveEntitiesRequest().fromJsonString(jsonString, options);
56+
}
57+
58+
static equals(a: ResolveEntitiesRequest | PlainMessage<ResolveEntitiesRequest> | undefined, b: ResolveEntitiesRequest | PlainMessage<ResolveEntitiesRequest> | undefined): boolean {
59+
return proto3.util.equals(ResolveEntitiesRequest, a, b);
60+
}
61+
}
62+
63+
/**
64+
* @generated from message entityresolution.EntityRepresentation
65+
*/
66+
export class EntityRepresentation extends Message<EntityRepresentation> {
67+
/**
68+
* @generated from field: repeated google.protobuf.Struct additional_props = 1;
69+
*/
70+
additionalProps: Struct[] = [];
71+
72+
/**
73+
* ephemeral entity id from the request
74+
*
75+
* @generated from field: string original_id = 2;
76+
*/
77+
originalId = "";
78+
79+
constructor(data?: PartialMessage<EntityRepresentation>) {
80+
super();
81+
proto3.util.initPartial(data, this);
82+
}
83+
84+
static readonly runtime: typeof proto3 = proto3;
85+
static readonly typeName = "entityresolution.EntityRepresentation";
86+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
87+
{ no: 1, name: "additional_props", kind: "message", T: Struct, repeated: true },
88+
{ no: 2, name: "original_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
89+
]);
90+
91+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EntityRepresentation {
92+
return new EntityRepresentation().fromBinary(bytes, options);
93+
}
94+
95+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EntityRepresentation {
96+
return new EntityRepresentation().fromJson(jsonValue, options);
97+
}
98+
99+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EntityRepresentation {
100+
return new EntityRepresentation().fromJsonString(jsonString, options);
101+
}
102+
103+
static equals(a: EntityRepresentation | PlainMessage<EntityRepresentation> | undefined, b: EntityRepresentation | PlainMessage<EntityRepresentation> | undefined): boolean {
104+
return proto3.util.equals(EntityRepresentation, a, b);
105+
}
106+
}
107+
108+
/**
109+
*
110+
* Example: Get idp attributes for bob and alice
111+
* {
112+
* "entity_representations": [
113+
* {
114+
* "idp_entity_id": "e1",
115+
* "additional_props": {"someAttr1":"someValue1"}
116+
* },
117+
* {
118+
* "idp_entity_id": "e2",
119+
* "additional_props": {"someAttr2":"someValue2"}
120+
* }
121+
* ]
122+
* }
123+
*
124+
*
125+
* @generated from message entityresolution.ResolveEntitiesResponse
126+
*/
127+
export class ResolveEntitiesResponse extends Message<ResolveEntitiesResponse> {
128+
/**
129+
* @generated from field: repeated entityresolution.EntityRepresentation entity_representations = 1;
130+
*/
131+
entityRepresentations: EntityRepresentation[] = [];
132+
133+
constructor(data?: PartialMessage<ResolveEntitiesResponse>) {
134+
super();
135+
proto3.util.initPartial(data, this);
136+
}
137+
138+
static readonly runtime: typeof proto3 = proto3;
139+
static readonly typeName = "entityresolution.ResolveEntitiesResponse";
140+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
141+
{ no: 1, name: "entity_representations", kind: "message", T: EntityRepresentation, repeated: true },
142+
]);
143+
144+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResolveEntitiesResponse {
145+
return new ResolveEntitiesResponse().fromBinary(bytes, options);
146+
}
147+
148+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResolveEntitiesResponse {
149+
return new ResolveEntitiesResponse().fromJson(jsonValue, options);
150+
}
151+
152+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResolveEntitiesResponse {
153+
return new ResolveEntitiesResponse().fromJsonString(jsonString, options);
154+
}
155+
156+
static equals(a: ResolveEntitiesResponse | PlainMessage<ResolveEntitiesResponse> | undefined, b: ResolveEntitiesResponse | PlainMessage<ResolveEntitiesResponse> | undefined): boolean {
157+
return proto3.util.equals(ResolveEntitiesResponse, a, b);
158+
}
159+
}
160+
161+
/**
162+
* @generated from message entityresolution.EntityNotFoundError
163+
*/
164+
export class EntityNotFoundError extends Message<EntityNotFoundError> {
165+
/**
166+
* @generated from field: int32 code = 1;
167+
*/
168+
code = 0;
169+
170+
/**
171+
* @generated from field: string message = 2;
172+
*/
173+
message = "";
174+
175+
/**
176+
* @generated from field: repeated google.protobuf.Any details = 3;
177+
*/
178+
details: Any[] = [];
179+
180+
/**
181+
* @generated from field: string entity = 4;
182+
*/
183+
entity = "";
184+
185+
constructor(data?: PartialMessage<EntityNotFoundError>) {
186+
super();
187+
proto3.util.initPartial(data, this);
188+
}
189+
190+
static readonly runtime: typeof proto3 = proto3;
191+
static readonly typeName = "entityresolution.EntityNotFoundError";
192+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
193+
{ no: 1, name: "code", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
194+
{ no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
195+
{ no: 3, name: "details", kind: "message", T: Any, repeated: true },
196+
{ no: 4, name: "entity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
197+
]);
198+
199+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EntityNotFoundError {
200+
return new EntityNotFoundError().fromBinary(bytes, options);
201+
}
202+
203+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EntityNotFoundError {
204+
return new EntityNotFoundError().fromJson(jsonValue, options);
205+
}
206+
207+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EntityNotFoundError {
208+
return new EntityNotFoundError().fromJsonString(jsonString, options);
209+
}
210+
211+
static equals(a: EntityNotFoundError | PlainMessage<EntityNotFoundError> | undefined, b: EntityNotFoundError | PlainMessage<EntityNotFoundError> | undefined): boolean {
212+
return proto3.util.equals(EntityNotFoundError, a, b);
213+
}
214+
}
215+

0 commit comments

Comments
 (0)