@opentdf/sdk 0.3.1 → 0.3.2-beta.1
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/dist/cjs/src/access/access-fetch.js +155 -0
- package/dist/cjs/src/access/access-rpc.js +131 -0
- package/dist/cjs/src/access.js +81 -107
- package/dist/cjs/src/auth/oidc.js +2 -2
- package/dist/cjs/src/nanotdf/Client.js +17 -13
- package/dist/cjs/src/nanotdf/models/Header.js +2 -2
- package/dist/cjs/src/nanotdf-crypto/keyAgreement.js +2 -2
- package/dist/cjs/src/opentdf.js +42 -8
- package/dist/cjs/src/platform/authorization/authorization_pb.js +138 -0
- package/dist/cjs/src/platform/buf/validate/validate_pb.js +410 -0
- package/dist/cjs/src/platform/common/common_pb.js +79 -0
- package/dist/cjs/src/platform/entityresolution/entity_resolution_pb.js +49 -0
- package/dist/cjs/src/platform/google/api/annotations_pb.js +30 -0
- package/dist/cjs/src/platform/google/api/http_pb.js +37 -0
- package/dist/cjs/src/platform/kas/kas_pb.js +96 -0
- package/dist/cjs/src/platform/policy/actions/actions_pb.js +70 -0
- package/dist/cjs/src/platform/policy/attributes/attributes_pb.js +240 -0
- package/dist/cjs/src/platform/policy/kasregistry/key_access_server_registry_pb.js +236 -0
- package/dist/cjs/src/platform/policy/keymanagement/key_management_pb.js +70 -0
- package/dist/cjs/src/platform/policy/namespaces/namespaces_pb.js +121 -0
- package/dist/cjs/src/platform/policy/objects_pb.js +395 -0
- package/dist/cjs/src/platform/policy/registeredresources/registered_resources_pb.js +132 -0
- package/dist/cjs/src/platform/policy/resourcemapping/resource_mapping_pb.js +139 -0
- package/dist/cjs/src/platform/policy/selectors_pb.js +67 -0
- package/dist/cjs/src/platform/policy/subjectmapping/subject_mapping_pb.js +146 -0
- package/dist/cjs/src/platform/policy/unsafe/unsafe_pb.js +124 -0
- package/dist/cjs/src/platform/protoc-gen-openapiv2/options/annotations_pb.js +68 -0
- package/dist/cjs/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.js +307 -0
- package/dist/cjs/src/platform/wellknownconfiguration/wellknown_configuration_pb.js +33 -0
- package/dist/cjs/src/platform.js +124 -0
- package/dist/cjs/src/policy/api.js +21 -38
- package/dist/cjs/src/policy/attributes.js +4 -1
- package/dist/cjs/src/policy/granter.js +9 -9
- package/dist/cjs/src/utils.js +31 -1
- package/dist/cjs/src/version.js +2 -2
- package/dist/cjs/tdf3/src/client/index.js +23 -18
- package/dist/cjs/tdf3/src/tdf.js +5 -5
- package/dist/types/src/access/access-fetch.d.ts +21 -0
- package/dist/types/src/access/access-fetch.d.ts.map +1 -0
- package/dist/types/src/access/access-rpc.d.ts +22 -0
- package/dist/types/src/access/access-rpc.d.ts.map +1 -0
- package/dist/types/src/access.d.ts +19 -11
- package/dist/types/src/access.d.ts.map +1 -1
- package/dist/types/src/nanotdf/Client.d.ts +3 -1
- package/dist/types/src/nanotdf/Client.d.ts.map +1 -1
- package/dist/types/src/opentdf.d.ts +5 -1
- package/dist/types/src/opentdf.d.ts.map +1 -1
- package/dist/types/src/platform/authorization/authorization_pb.d.ts +609 -0
- package/dist/types/src/platform/authorization/authorization_pb.d.ts.map +1 -0
- package/dist/types/src/platform/buf/validate/validate_pb.d.ts +4466 -0
- package/dist/types/src/platform/buf/validate/validate_pb.d.ts.map +1 -0
- package/dist/types/src/platform/common/common_pb.d.ts +112 -0
- package/dist/types/src/platform/common/common_pb.d.ts.map +1 -0
- package/dist/types/src/platform/entityresolution/entity_resolution_pb.d.ts +199 -0
- package/dist/types/src/platform/entityresolution/entity_resolution_pb.d.ts.map +1 -0
- package/dist/types/src/platform/google/api/annotations_pb.d.ts +14 -0
- package/dist/types/src/platform/google/api/annotations_pb.d.ts.map +1 -0
- package/dist/types/src/platform/google/api/http_pb.d.ts +441 -0
- package/dist/types/src/platform/google/api/http_pb.d.ts.map +1 -0
- package/dist/types/src/platform/kas/kas_pb.d.ts +404 -0
- package/dist/types/src/platform/kas/kas_pb.d.ts.map +1 -0
- package/dist/types/src/platform/policy/actions/actions_pb.d.ts +265 -0
- package/dist/types/src/platform/policy/actions/actions_pb.d.ts.map +1 -0
- package/dist/types/src/platform/policy/attributes/attributes_pb.d.ts +1022 -0
- package/dist/types/src/platform/policy/attributes/attributes_pb.d.ts.map +1 -0
- package/dist/types/src/platform/policy/kasregistry/key_access_server_registry_pb.d.ts +1306 -0
- package/dist/types/src/platform/policy/kasregistry/key_access_server_registry_pb.d.ts.map +1 -0
- package/dist/types/src/platform/policy/keymanagement/key_management_pb.d.ts +269 -0
- package/dist/types/src/platform/policy/keymanagement/key_management_pb.d.ts.map +1 -0
- package/dist/types/src/platform/policy/namespaces/namespaces_pb.d.ts +448 -0
- package/dist/types/src/platform/policy/namespaces/namespaces_pb.d.ts.map +1 -0
- package/dist/types/src/platform/policy/objects_pb.d.ts +1112 -0
- package/dist/types/src/platform/policy/objects_pb.d.ts.map +1 -0
- package/dist/types/src/platform/policy/registeredresources/registered_resources_pb.d.ts +539 -0
- package/dist/types/src/platform/policy/registeredresources/registered_resources_pb.d.ts.map +1 -0
- package/dist/types/src/platform/policy/resourcemapping/resource_mapping_pb.d.ts +558 -0
- package/dist/types/src/platform/policy/resourcemapping/resource_mapping_pb.d.ts.map +1 -0
- package/dist/types/src/platform/policy/selectors_pb.d.ts +221 -0
- package/dist/types/src/platform/policy/selectors_pb.d.ts.map +1 -0
- package/dist/types/src/platform/policy/subjectmapping/subject_mapping_pb.d.ts +582 -0
- package/dist/types/src/platform/policy/subjectmapping/subject_mapping_pb.d.ts.map +1 -0
- package/dist/types/src/platform/policy/unsafe/unsafe_pb.d.ts +513 -0
- package/dist/types/src/platform/policy/unsafe/unsafe_pb.d.ts.map +1 -0
- package/dist/types/src/platform/protoc-gen-openapiv2/options/annotations_pb.d.ts +62 -0
- package/dist/types/src/platform/protoc-gen-openapiv2/options/annotations_pb.d.ts.map +1 -0
- package/dist/types/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +1441 -0
- package/dist/types/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.d.ts.map +1 -0
- package/dist/types/src/platform/wellknownconfiguration/wellknown_configuration_pb.d.ts +59 -0
- package/dist/types/src/platform/wellknownconfiguration/wellknown_configuration_pb.d.ts.map +1 -0
- package/dist/types/src/platform.d.ts +49 -0
- package/dist/types/src/platform.d.ts.map +1 -0
- package/dist/types/src/policy/api.d.ts +1 -1
- package/dist/types/src/policy/api.d.ts.map +1 -1
- package/dist/types/src/policy/attributes.d.ts +10 -87
- package/dist/types/src/policy/attributes.d.ts.map +1 -1
- package/dist/types/src/policy/granter.d.ts.map +1 -1
- package/dist/types/src/utils.d.ts +10 -0
- package/dist/types/src/utils.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/dist/types/tdf3/src/client/index.d.ts +8 -3
- package/dist/types/tdf3/src/client/index.d.ts.map +1 -1
- package/dist/types/tdf3/src/tdf.d.ts.map +1 -1
- package/dist/web/src/access/access-fetch.js +150 -0
- package/dist/web/src/access/access-rpc.js +125 -0
- package/dist/web/src/access.js +82 -110
- package/dist/web/src/auth/oidc.js +2 -2
- package/dist/web/src/nanotdf/Client.js +18 -14
- package/dist/web/src/nanotdf/models/Header.js +2 -2
- package/dist/web/src/nanotdf-crypto/keyAgreement.js +2 -2
- package/dist/web/src/opentdf.js +43 -9
- package/dist/web/src/platform/authorization/authorization_pb.js +135 -0
- package/dist/web/src/platform/buf/validate/validate_pb.js +407 -0
- package/dist/web/src/platform/common/common_pb.js +76 -0
- package/dist/web/src/platform/entityresolution/entity_resolution_pb.js +46 -0
- package/dist/web/src/platform/google/api/annotations_pb.js +27 -0
- package/dist/web/src/platform/google/api/http_pb.js +34 -0
- package/dist/web/src/platform/kas/kas_pb.js +93 -0
- package/dist/web/src/platform/policy/actions/actions_pb.js +67 -0
- package/dist/web/src/platform/policy/attributes/attributes_pb.js +237 -0
- package/dist/web/src/platform/policy/kasregistry/key_access_server_registry_pb.js +233 -0
- package/dist/web/src/platform/policy/keymanagement/key_management_pb.js +67 -0
- package/dist/web/src/platform/policy/namespaces/namespaces_pb.js +118 -0
- package/dist/web/src/platform/policy/objects_pb.js +392 -0
- package/dist/web/src/platform/policy/registeredresources/registered_resources_pb.js +129 -0
- package/dist/web/src/platform/policy/resourcemapping/resource_mapping_pb.js +136 -0
- package/dist/web/src/platform/policy/selectors_pb.js +64 -0
- package/dist/web/src/platform/policy/subjectmapping/subject_mapping_pb.js +143 -0
- package/dist/web/src/platform/policy/unsafe/unsafe_pb.js +121 -0
- package/dist/web/src/platform/protoc-gen-openapiv2/options/annotations_pb.js +65 -0
- package/dist/web/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.js +304 -0
- package/dist/web/src/platform/wellknownconfiguration/wellknown_configuration_pb.js +30 -0
- package/dist/web/src/platform.js +87 -0
- package/dist/web/src/policy/api.js +23 -40
- package/dist/web/src/policy/attributes.js +3 -2
- package/dist/web/src/policy/granter.js +9 -9
- package/dist/web/src/utils.js +29 -1
- package/dist/web/src/version.js +2 -2
- package/dist/web/tdf3/src/client/index.js +25 -20
- package/dist/web/tdf3/src/tdf.js +5 -5
- package/package.json +17 -1
- package/src/access/access-fetch.ts +202 -0
- package/src/access/access-rpc.ts +175 -0
- package/src/access.ts +113 -138
- package/src/auth/oidc.ts +1 -1
- package/src/nanotdf/Client.ts +28 -18
- package/src/nanotdf/models/Header.ts +1 -1
- package/src/nanotdf-crypto/keyAgreement.ts +1 -1
- package/src/opentdf.ts +66 -10
- package/src/platform/authorization/authorization_pb.ts +689 -0
- package/src/platform/buf/validate/validate_pb.ts +4626 -0
- package/src/platform/common/common_pb.ts +135 -0
- package/src/platform/entityresolution/entity_resolution_pb.ts +233 -0
- package/src/platform/google/api/annotations_pb.ts +39 -0
- package/src/platform/google/api/http_pb.ts +474 -0
- package/src/platform/kas/kas_pb.ts +484 -0
- package/src/platform/policy/actions/actions_pb.ts +312 -0
- package/src/platform/policy/attributes/attributes_pb.ts +1181 -0
- package/src/platform/policy/kasregistry/key_access_server_registry_pb.ts +1482 -0
- package/src/platform/policy/keymanagement/key_management_pb.ts +316 -0
- package/src/platform/policy/namespaces/namespaces_pb.ts +528 -0
- package/src/platform/policy/objects_pb.ts +1319 -0
- package/src/platform/policy/registeredresources/registered_resources_pb.ts +623 -0
- package/src/platform/policy/resourcemapping/resource_mapping_pb.ts +658 -0
- package/src/platform/policy/selectors_pb.ts +277 -0
- package/src/platform/policy/subjectmapping/subject_mapping_pb.ts +687 -0
- package/src/platform/policy/unsafe/unsafe_pb.ts +593 -0
- package/src/platform/protoc-gen-openapiv2/options/annotations_pb.ts +83 -0
- package/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.ts +1615 -0
- package/src/platform/wellknownconfiguration/wellknown_configuration_pb.ts +78 -0
- package/src/platform.ts +122 -0
- package/src/policy/api.ts +29 -42
- package/src/policy/attributes.ts +12 -108
- package/src/policy/granter.ts +7 -8
- package/src/utils.ts +30 -0
- package/src/version.ts +1 -1
- package/tdf3/src/client/index.ts +40 -19
- package/tdf3/src/tdf.ts +5 -6
- package/src/platform/authorization/authorization_connect.d.ts +0 -44
- package/src/platform/authorization/authorization_connect.js +0 -44
- package/src/platform/authorization/authorization_pb.d.ts +0 -707
- package/src/platform/authorization/authorization_pb.js +0 -372
- package/src/platform/common/common_pb.d.ts +0 -129
- package/src/platform/common/common_pb.js +0 -58
- package/src/platform/entityresolution/entity_resolution_connect.d.ts +0 -35
- package/src/platform/entityresolution/entity_resolution_connect.js +0 -35
- package/src/platform/entityresolution/entity_resolution_pb.d.ts +0 -242
- package/src/platform/entityresolution/entity_resolution_pb.js +0 -139
- package/src/platform/kas/kas_connect.d.ts +0 -59
- package/src/platform/kas/kas_connect.js +0 -59
- package/src/platform/kas/kas_pb.d.ts +0 -200
- package/src/platform/kas/kas_pb.js +0 -84
- package/src/platform/policy/attributes/attributes_connect.d.ts +0 -168
- package/src/platform/policy/attributes/attributes_connect.js +0 -168
- package/src/platform/policy/attributes/attributes_pb.d.ts +0 -929
- package/src/platform/policy/attributes/attributes_pb.js +0 -363
- package/src/platform/policy/kasregistry/key_access_server_registry_connect.d.ts +0 -62
- package/src/platform/policy/kasregistry/key_access_server_registry_connect.js +0 -62
- package/src/platform/policy/kasregistry/key_access_server_registry_pb.d.ts +0 -283
- package/src/platform/policy/kasregistry/key_access_server_registry_pb.js +0 -113
- package/src/platform/policy/namespaces/namespaces_connect.d.ts +0 -62
- package/src/platform/policy/namespaces/namespaces_connect.js +0 -62
- package/src/platform/policy/namespaces/namespaces_pb.d.ts +0 -270
- package/src/platform/policy/namespaces/namespaces_pb.js +0 -110
- package/src/platform/policy/objects_pb.d.ts +0 -725
- package/src/platform/policy/objects_pb.js +0 -288
- package/src/platform/policy/resourcemapping/resource_mapping_connect.d.ts +0 -259
- package/src/platform/policy/resourcemapping/resource_mapping_connect.js +0 -259
- package/src/platform/policy/resourcemapping/resource_mapping_pb.d.ts +0 -314
- package/src/platform/policy/resourcemapping/resource_mapping_pb.js +0 -142
- package/src/platform/policy/selectors_pb.d.ts +0 -269
- package/src/platform/policy/selectors_pb.js +0 -110
- package/src/platform/policy/subjectmapping/subject_mapping_connect.d.ts +0 -118
- package/src/platform/policy/subjectmapping/subject_mapping_connect.js +0 -118
- package/src/platform/policy/subjectmapping/subject_mapping_pb.d.ts +0 -672
- package/src/platform/policy/subjectmapping/subject_mapping_pb.js +0 -260
- package/src/platform/wellknownconfiguration/wellknown_configuration_connect.d.ts +0 -26
- package/src/platform/wellknownconfiguration/wellknown_configuration_connect.js +0 -26
- package/src/platform/wellknownconfiguration/wellknown_configuration_pb.d.ts +0 -75
- package/src/platform/wellknownconfiguration/wellknown_configuration_pb.js +0 -35
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.5 with parameter "target=ts,import_extension=.js"
|
|
2
|
+
// @generated from file common/common.proto (package common, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
6
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
7
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
9
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Describes the file common/common.proto.
|
|
13
|
+
*/
|
|
14
|
+
export const file_common_common: GenFile = /*@__PURE__*/
|
|
15
|
+
fileDesc("ChNjb21tb24vY29tbW9uLnByb3RvEgZjb21tb24ixwEKCE1ldGFkYXRhEi4KCmNyZWF0ZWRfYXQYASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEiwKBmxhYmVscxgDIAMoCzIcLmNvbW1vbi5NZXRhZGF0YS5MYWJlbHNFbnRyeRotCgtMYWJlbHNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBInUKD01ldGFkYXRhTXV0YWJsZRIzCgZsYWJlbHMYAyADKAsyIy5jb21tb24uTWV0YWRhdGFNdXRhYmxlLkxhYmVsc0VudHJ5Gi0KC0xhYmVsc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEqfQoSTWV0YWRhdGFVcGRhdGVFbnVtEiQKIE1FVEFEQVRBX1VQREFURV9FTlVNX1VOU1BFQ0lGSUVEEAASHwobTUVUQURBVEFfVVBEQVRFX0VOVU1fRVhURU5EEAESIAocTUVUQURBVEFfVVBEQVRFX0VOVU1fUkVQTEFDRRACKo0BCg9BY3RpdmVTdGF0ZUVudW0SIQodQUNUSVZFX1NUQVRFX0VOVU1fVU5TUEVDSUZJRUQQABIcChhBQ1RJVkVfU1RBVEVfRU5VTV9BQ1RJVkUQARIeChpBQ1RJVkVfU1RBVEVfRU5VTV9JTkFDVElWRRACEhkKFUFDVElWRV9TVEFURV9FTlVNX0FOWRADYgZwcm90bzM", [file_google_protobuf_timestamp]);
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Struct to uniquely identify a resource with optional additional metadata
|
|
19
|
+
*
|
|
20
|
+
* @generated from message common.Metadata
|
|
21
|
+
*/
|
|
22
|
+
export type Metadata = Message<"common.Metadata"> & {
|
|
23
|
+
/**
|
|
24
|
+
* created_at set by server (entity who created will recorded in an audit event)
|
|
25
|
+
*
|
|
26
|
+
* @generated from field: google.protobuf.Timestamp created_at = 1;
|
|
27
|
+
*/
|
|
28
|
+
createdAt?: Timestamp;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* updated_at set by server (entity who updated will recorded in an audit event)
|
|
32
|
+
*
|
|
33
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 2;
|
|
34
|
+
*/
|
|
35
|
+
updatedAt?: Timestamp;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* optional short description
|
|
39
|
+
*
|
|
40
|
+
* @generated from field: map<string, string> labels = 3;
|
|
41
|
+
*/
|
|
42
|
+
labels: { [key: string]: string };
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Describes the message common.Metadata.
|
|
47
|
+
* Use `create(MetadataSchema)` to create a new message.
|
|
48
|
+
*/
|
|
49
|
+
export const MetadataSchema: GenMessage<Metadata> = /*@__PURE__*/
|
|
50
|
+
messageDesc(file_common_common, 0);
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @generated from message common.MetadataMutable
|
|
54
|
+
*/
|
|
55
|
+
export type MetadataMutable = Message<"common.MetadataMutable"> & {
|
|
56
|
+
/**
|
|
57
|
+
* optional labels
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: map<string, string> labels = 3;
|
|
60
|
+
*/
|
|
61
|
+
labels: { [key: string]: string };
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Describes the message common.MetadataMutable.
|
|
66
|
+
* Use `create(MetadataMutableSchema)` to create a new message.
|
|
67
|
+
*/
|
|
68
|
+
export const MetadataMutableSchema: GenMessage<MetadataMutable> = /*@__PURE__*/
|
|
69
|
+
messageDesc(file_common_common, 1);
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @generated from enum common.MetadataUpdateEnum
|
|
73
|
+
*/
|
|
74
|
+
export enum MetadataUpdateEnum {
|
|
75
|
+
/**
|
|
76
|
+
* unspecified update type
|
|
77
|
+
*
|
|
78
|
+
* @generated from enum value: METADATA_UPDATE_ENUM_UNSPECIFIED = 0;
|
|
79
|
+
*/
|
|
80
|
+
UNSPECIFIED = 0,
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* only update the fields that are provided
|
|
84
|
+
*
|
|
85
|
+
* @generated from enum value: METADATA_UPDATE_ENUM_EXTEND = 1;
|
|
86
|
+
*/
|
|
87
|
+
EXTEND = 1,
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* replace the entire metadata with the provided metadata
|
|
91
|
+
*
|
|
92
|
+
* @generated from enum value: METADATA_UPDATE_ENUM_REPLACE = 2;
|
|
93
|
+
*/
|
|
94
|
+
REPLACE = 2,
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Describes the enum common.MetadataUpdateEnum.
|
|
99
|
+
*/
|
|
100
|
+
export const MetadataUpdateEnumSchema: GenEnum<MetadataUpdateEnum> = /*@__PURE__*/
|
|
101
|
+
enumDesc(file_common_common, 0);
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* 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
|
|
105
|
+
*
|
|
106
|
+
* @generated from enum common.ActiveStateEnum
|
|
107
|
+
*/
|
|
108
|
+
export enum ActiveStateEnum {
|
|
109
|
+
/**
|
|
110
|
+
* @generated from enum value: ACTIVE_STATE_ENUM_UNSPECIFIED = 0;
|
|
111
|
+
*/
|
|
112
|
+
UNSPECIFIED = 0,
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @generated from enum value: ACTIVE_STATE_ENUM_ACTIVE = 1;
|
|
116
|
+
*/
|
|
117
|
+
ACTIVE = 1,
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @generated from enum value: ACTIVE_STATE_ENUM_INACTIVE = 2;
|
|
121
|
+
*/
|
|
122
|
+
INACTIVE = 2,
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @generated from enum value: ACTIVE_STATE_ENUM_ANY = 3;
|
|
126
|
+
*/
|
|
127
|
+
ANY = 3,
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Describes the enum common.ActiveStateEnum.
|
|
132
|
+
*/
|
|
133
|
+
export const ActiveStateEnumSchema: GenEnum<ActiveStateEnum> = /*@__PURE__*/
|
|
134
|
+
enumDesc(file_common_common, 1);
|
|
135
|
+
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.5 with parameter "target=ts,import_extension=.js"
|
|
2
|
+
// @generated from file entityresolution/entity_resolution.proto (package entityresolution, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
6
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
|
|
7
|
+
import type { Entity, EntityChain, Token } from "../authorization/authorization_pb.js";
|
|
8
|
+
import { file_authorization_authorization } from "../authorization/authorization_pb.js";
|
|
9
|
+
import type { Any } from "@bufbuild/protobuf/wkt";
|
|
10
|
+
import { file_google_protobuf_any, file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
|
|
11
|
+
import { file_google_api_annotations } from "../google/api/annotations_pb.js";
|
|
12
|
+
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Describes the file entityresolution/entity_resolution.proto.
|
|
16
|
+
*/
|
|
17
|
+
export const file_entityresolution_entity_resolution: GenFile = /*@__PURE__*/
|
|
18
|
+
fileDesc("CihlbnRpdHlyZXNvbHV0aW9uL2VudGl0eV9yZXNvbHV0aW9uLnByb3RvEhBlbnRpdHlyZXNvbHV0aW9uIkEKFlJlc29sdmVFbnRpdGllc1JlcXVlc3QSJwoIZW50aXRpZXMYASADKAsyFS5hdXRob3JpemF0aW9uLkVudGl0eSJeChRFbnRpdHlSZXByZXNlbnRhdGlvbhIxChBhZGRpdGlvbmFsX3Byb3BzGAEgAygLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdBITCgtvcmlnaW5hbF9pZBgCIAEoCSJhChdSZXNvbHZlRW50aXRpZXNSZXNwb25zZRJGChZlbnRpdHlfcmVwcmVzZW50YXRpb25zGAEgAygLMiYuZW50aXR5cmVzb2x1dGlvbi5FbnRpdHlSZXByZXNlbnRhdGlvbiJrChNFbnRpdHlOb3RGb3VuZEVycm9yEgwKBGNvZGUYASABKAUSDwoHbWVzc2FnZRgCIAEoCRIlCgdkZXRhaWxzGAMgAygLMhQuZ29vZ2xlLnByb3RvYnVmLkFueRIOCgZlbnRpdHkYBCABKAkiRwofQ3JlYXRlRW50aXR5Q2hhaW5Gcm9tSnd0UmVxdWVzdBIkCgZ0b2tlbnMYASADKAsyFC5hdXRob3JpemF0aW9uLlRva2VuIlUKIENyZWF0ZUVudGl0eUNoYWluRnJvbUp3dFJlc3BvbnNlEjEKDWVudGl0eV9jaGFpbnMYASADKAsyGi5hdXRob3JpemF0aW9uLkVudGl0eUNoYWluMtYCChdFbnRpdHlSZXNvbHV0aW9uU2VydmljZRKMAQoPUmVzb2x2ZUVudGl0aWVzEiguZW50aXR5cmVzb2x1dGlvbi5SZXNvbHZlRW50aXRpZXNSZXF1ZXN0GikuZW50aXR5cmVzb2x1dGlvbi5SZXNvbHZlRW50aXRpZXNSZXNwb25zZSIkgtPkkwIeOgEqIhkvZW50aXR5cmVzb2x1dGlvbi9yZXNvbHZlEqsBChhDcmVhdGVFbnRpdHlDaGFpbkZyb21Kd3QSMS5lbnRpdHlyZXNvbHV0aW9uLkNyZWF0ZUVudGl0eUNoYWluRnJvbUp3dFJlcXVlc3QaMi5lbnRpdHlyZXNvbHV0aW9uLkNyZWF0ZUVudGl0eUNoYWluRnJvbUp3dFJlc3BvbnNlIiiC0+STAiI6ASoiHS9lbnRpdHlyZXNvbHV0aW9uL2VudGl0eWNoYWluYgZwcm90bzM", [file_authorization_authorization, file_google_protobuf_struct, file_google_protobuf_any, file_google_api_annotations]);
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* Example: Get idp attributes for bob and alice (both represented using an email address
|
|
23
|
+
* {
|
|
24
|
+
* "entities": [
|
|
25
|
+
* {
|
|
26
|
+
* "id": "e1",
|
|
27
|
+
* "emailAddress": "bob@example.org"
|
|
28
|
+
* },
|
|
29
|
+
* {
|
|
30
|
+
* "id": "e2",
|
|
31
|
+
* "emailAddress": "alice@example.org"
|
|
32
|
+
* }
|
|
33
|
+
* ]
|
|
34
|
+
* }
|
|
35
|
+
*
|
|
36
|
+
*
|
|
37
|
+
* @generated from message entityresolution.ResolveEntitiesRequest
|
|
38
|
+
*/
|
|
39
|
+
export type ResolveEntitiesRequest = Message<"entityresolution.ResolveEntitiesRequest"> & {
|
|
40
|
+
/**
|
|
41
|
+
* @generated from field: repeated authorization.Entity entities = 1;
|
|
42
|
+
*/
|
|
43
|
+
entities: Entity[];
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Describes the message entityresolution.ResolveEntitiesRequest.
|
|
48
|
+
* Use `create(ResolveEntitiesRequestSchema)` to create a new message.
|
|
49
|
+
*/
|
|
50
|
+
export const ResolveEntitiesRequestSchema: GenMessage<ResolveEntitiesRequest> = /*@__PURE__*/
|
|
51
|
+
messageDesc(file_entityresolution_entity_resolution, 0);
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @generated from message entityresolution.EntityRepresentation
|
|
55
|
+
*/
|
|
56
|
+
export type EntityRepresentation = Message<"entityresolution.EntityRepresentation"> & {
|
|
57
|
+
/**
|
|
58
|
+
* @generated from field: repeated google.protobuf.Struct additional_props = 1;
|
|
59
|
+
*/
|
|
60
|
+
additionalProps: JsonObject[];
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* ephemeral entity id from the request
|
|
64
|
+
*
|
|
65
|
+
* @generated from field: string original_id = 2;
|
|
66
|
+
*/
|
|
67
|
+
originalId: string;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Describes the message entityresolution.EntityRepresentation.
|
|
72
|
+
* Use `create(EntityRepresentationSchema)` to create a new message.
|
|
73
|
+
*/
|
|
74
|
+
export const EntityRepresentationSchema: GenMessage<EntityRepresentation> = /*@__PURE__*/
|
|
75
|
+
messageDesc(file_entityresolution_entity_resolution, 1);
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* Example: Get idp attributes for bob and alice
|
|
80
|
+
* {
|
|
81
|
+
* "entity_representations": [
|
|
82
|
+
* {
|
|
83
|
+
* "idp_entity_id": "e1",
|
|
84
|
+
* "additional_props": {"someAttr1":"someValue1"}
|
|
85
|
+
* },
|
|
86
|
+
* {
|
|
87
|
+
* "idp_entity_id": "e2",
|
|
88
|
+
* "additional_props": {"someAttr2":"someValue2"}
|
|
89
|
+
* }
|
|
90
|
+
* ]
|
|
91
|
+
* }
|
|
92
|
+
*
|
|
93
|
+
*
|
|
94
|
+
* @generated from message entityresolution.ResolveEntitiesResponse
|
|
95
|
+
*/
|
|
96
|
+
export type ResolveEntitiesResponse = Message<"entityresolution.ResolveEntitiesResponse"> & {
|
|
97
|
+
/**
|
|
98
|
+
* @generated from field: repeated entityresolution.EntityRepresentation entity_representations = 1;
|
|
99
|
+
*/
|
|
100
|
+
entityRepresentations: EntityRepresentation[];
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Describes the message entityresolution.ResolveEntitiesResponse.
|
|
105
|
+
* Use `create(ResolveEntitiesResponseSchema)` to create a new message.
|
|
106
|
+
*/
|
|
107
|
+
export const ResolveEntitiesResponseSchema: GenMessage<ResolveEntitiesResponse> = /*@__PURE__*/
|
|
108
|
+
messageDesc(file_entityresolution_entity_resolution, 2);
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @generated from message entityresolution.EntityNotFoundError
|
|
112
|
+
*/
|
|
113
|
+
export type EntityNotFoundError = Message<"entityresolution.EntityNotFoundError"> & {
|
|
114
|
+
/**
|
|
115
|
+
* @generated from field: int32 code = 1;
|
|
116
|
+
*/
|
|
117
|
+
code: number;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @generated from field: string message = 2;
|
|
121
|
+
*/
|
|
122
|
+
message: string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @generated from field: repeated google.protobuf.Any details = 3;
|
|
126
|
+
*/
|
|
127
|
+
details: Any[];
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @generated from field: string entity = 4;
|
|
131
|
+
*/
|
|
132
|
+
entity: string;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Describes the message entityresolution.EntityNotFoundError.
|
|
137
|
+
* Use `create(EntityNotFoundErrorSchema)` to create a new message.
|
|
138
|
+
*/
|
|
139
|
+
export const EntityNotFoundErrorSchema: GenMessage<EntityNotFoundError> = /*@__PURE__*/
|
|
140
|
+
messageDesc(file_entityresolution_entity_resolution, 3);
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* Example: Get Entity chains for tokens aaaaaa and bbbbbb
|
|
145
|
+
* {
|
|
146
|
+
* "tokens": [
|
|
147
|
+
* "aaaaaaa",
|
|
148
|
+
* "bbbbbbbb"
|
|
149
|
+
* ]
|
|
150
|
+
* }
|
|
151
|
+
*
|
|
152
|
+
*
|
|
153
|
+
* @generated from message entityresolution.CreateEntityChainFromJwtRequest
|
|
154
|
+
*/
|
|
155
|
+
export type CreateEntityChainFromJwtRequest = Message<"entityresolution.CreateEntityChainFromJwtRequest"> & {
|
|
156
|
+
/**
|
|
157
|
+
* @generated from field: repeated authorization.Token tokens = 1;
|
|
158
|
+
*/
|
|
159
|
+
tokens: Token[];
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Describes the message entityresolution.CreateEntityChainFromJwtRequest.
|
|
164
|
+
* Use `create(CreateEntityChainFromJwtRequestSchema)` to create a new message.
|
|
165
|
+
*/
|
|
166
|
+
export const CreateEntityChainFromJwtRequestSchema: GenMessage<CreateEntityChainFromJwtRequest> = /*@__PURE__*/
|
|
167
|
+
messageDesc(file_entityresolution_entity_resolution, 4);
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* Example: Return the entity chains from the provided tokens
|
|
172
|
+
* {
|
|
173
|
+
* "entity_chains": [
|
|
174
|
+
* {
|
|
175
|
+
* "id": "tok1",
|
|
176
|
+
* "entities": [
|
|
177
|
+
* {
|
|
178
|
+
* "clientId": "client1"
|
|
179
|
+
* }
|
|
180
|
+
* ]
|
|
181
|
+
* },
|
|
182
|
+
* {
|
|
183
|
+
* "id": "tok2",
|
|
184
|
+
* "entities": [
|
|
185
|
+
* {
|
|
186
|
+
* "userName": "alice",
|
|
187
|
+
* "clientId": "client2"
|
|
188
|
+
* }
|
|
189
|
+
* ]
|
|
190
|
+
* }
|
|
191
|
+
* ]
|
|
192
|
+
* }
|
|
193
|
+
*
|
|
194
|
+
*
|
|
195
|
+
* @generated from message entityresolution.CreateEntityChainFromJwtResponse
|
|
196
|
+
*/
|
|
197
|
+
export type CreateEntityChainFromJwtResponse = Message<"entityresolution.CreateEntityChainFromJwtResponse"> & {
|
|
198
|
+
/**
|
|
199
|
+
* @generated from field: repeated authorization.EntityChain entity_chains = 1;
|
|
200
|
+
*/
|
|
201
|
+
entityChains: EntityChain[];
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Describes the message entityresolution.CreateEntityChainFromJwtResponse.
|
|
206
|
+
* Use `create(CreateEntityChainFromJwtResponseSchema)` to create a new message.
|
|
207
|
+
*/
|
|
208
|
+
export const CreateEntityChainFromJwtResponseSchema: GenMessage<CreateEntityChainFromJwtResponse> = /*@__PURE__*/
|
|
209
|
+
messageDesc(file_entityresolution_entity_resolution, 5);
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* @generated from service entityresolution.EntityResolutionService
|
|
213
|
+
*/
|
|
214
|
+
export const EntityResolutionService: GenService<{
|
|
215
|
+
/**
|
|
216
|
+
* @generated from rpc entityresolution.EntityResolutionService.ResolveEntities
|
|
217
|
+
*/
|
|
218
|
+
resolveEntities: {
|
|
219
|
+
methodKind: "unary";
|
|
220
|
+
input: typeof ResolveEntitiesRequestSchema;
|
|
221
|
+
output: typeof ResolveEntitiesResponseSchema;
|
|
222
|
+
},
|
|
223
|
+
/**
|
|
224
|
+
* @generated from rpc entityresolution.EntityResolutionService.CreateEntityChainFromJwt
|
|
225
|
+
*/
|
|
226
|
+
createEntityChainFromJwt: {
|
|
227
|
+
methodKind: "unary";
|
|
228
|
+
input: typeof CreateEntityChainFromJwtRequestSchema;
|
|
229
|
+
output: typeof CreateEntityChainFromJwtResponseSchema;
|
|
230
|
+
},
|
|
231
|
+
}> = /*@__PURE__*/
|
|
232
|
+
serviceDesc(file_entityresolution_entity_resolution, 0);
|
|
233
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
// @generated by protoc-gen-es v2.2.5 with parameter "target=ts,import_extension=.js"
|
|
16
|
+
// @generated from file google/api/annotations.proto (package google.api, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
|
|
19
|
+
import type { GenExtension, GenFile } from "@bufbuild/protobuf/codegenv1";
|
|
20
|
+
import { extDesc, fileDesc } from "@bufbuild/protobuf/codegenv1";
|
|
21
|
+
import type { HttpRule } from "./http_pb.js";
|
|
22
|
+
import { file_google_api_http } from "./http_pb.js";
|
|
23
|
+
import type { MethodOptions } from "@bufbuild/protobuf/wkt";
|
|
24
|
+
import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Describes the file google/api/annotations.proto.
|
|
28
|
+
*/
|
|
29
|
+
export const file_google_api_annotations: GenFile = /*@__PURE__*/
|
|
30
|
+
fileDesc("Chxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvEgpnb29nbGUuYXBpOksKBGh0dHASHi5nb29nbGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxiwyrwiIAEoCzIULmdvb2dsZS5hcGkuSHR0cFJ1bGVSBGh0dHBCbgoOY29tLmdvb2dsZS5hcGlCEEFubm90YXRpb25zUHJvdG9QAVpBZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkvYW5ub3RhdGlvbnM7YW5ub3RhdGlvbnOiAgRHQVBJYgZwcm90bzM", [file_google_api_http, file_google_protobuf_descriptor]);
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* See `HttpRule`.
|
|
34
|
+
*
|
|
35
|
+
* @generated from extension: google.api.HttpRule http = 72295728;
|
|
36
|
+
*/
|
|
37
|
+
export const http: GenExtension<MethodOptions, HttpRule> = /*@__PURE__*/
|
|
38
|
+
extDesc(file_google_api_annotations, 0);
|
|
39
|
+
|