|
| 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