@opentdf/sdk 0.3.0 → 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.
Files changed (227) hide show
  1. package/dist/cjs/src/access/access-fetch.js +155 -0
  2. package/dist/cjs/src/access/access-rpc.js +131 -0
  3. package/dist/cjs/src/access.js +81 -107
  4. package/dist/cjs/src/auth/oidc.js +2 -2
  5. package/dist/cjs/src/nanotdf/Client.js +17 -13
  6. package/dist/cjs/src/nanotdf/models/Header.js +2 -2
  7. package/dist/cjs/src/nanotdf-crypto/keyAgreement.js +2 -2
  8. package/dist/cjs/src/opentdf.js +43 -9
  9. package/dist/cjs/src/platform/authorization/authorization_pb.js +138 -0
  10. package/dist/cjs/src/platform/buf/validate/validate_pb.js +410 -0
  11. package/dist/cjs/src/platform/common/common_pb.js +79 -0
  12. package/dist/cjs/src/platform/entityresolution/entity_resolution_pb.js +49 -0
  13. package/dist/cjs/src/platform/google/api/annotations_pb.js +30 -0
  14. package/dist/cjs/src/platform/google/api/http_pb.js +37 -0
  15. package/dist/cjs/src/platform/kas/kas_pb.js +96 -0
  16. package/dist/cjs/src/platform/policy/actions/actions_pb.js +70 -0
  17. package/dist/cjs/src/platform/policy/attributes/attributes_pb.js +240 -0
  18. package/dist/cjs/src/platform/policy/kasregistry/key_access_server_registry_pb.js +236 -0
  19. package/dist/cjs/src/platform/policy/keymanagement/key_management_pb.js +70 -0
  20. package/dist/cjs/src/platform/policy/namespaces/namespaces_pb.js +121 -0
  21. package/dist/cjs/src/platform/policy/objects_pb.js +395 -0
  22. package/dist/cjs/src/platform/policy/registeredresources/registered_resources_pb.js +132 -0
  23. package/dist/cjs/src/platform/policy/resourcemapping/resource_mapping_pb.js +139 -0
  24. package/dist/cjs/src/platform/policy/selectors_pb.js +67 -0
  25. package/dist/cjs/src/platform/policy/subjectmapping/subject_mapping_pb.js +146 -0
  26. package/dist/cjs/src/platform/policy/unsafe/unsafe_pb.js +124 -0
  27. package/dist/cjs/src/platform/protoc-gen-openapiv2/options/annotations_pb.js +68 -0
  28. package/dist/cjs/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.js +307 -0
  29. package/dist/cjs/src/platform/wellknownconfiguration/wellknown_configuration_pb.js +33 -0
  30. package/dist/cjs/src/platform.js +124 -0
  31. package/dist/cjs/src/policy/api.js +21 -38
  32. package/dist/cjs/src/policy/attributes.js +4 -1
  33. package/dist/cjs/src/policy/granter.js +9 -9
  34. package/dist/cjs/src/utils.js +31 -1
  35. package/dist/cjs/src/version.js +2 -2
  36. package/dist/cjs/tdf3/src/assertions.js +5 -5
  37. package/dist/cjs/tdf3/src/client/index.js +24 -18
  38. package/dist/cjs/tdf3/src/tdf.js +16 -10
  39. package/dist/types/src/access/access-fetch.d.ts +21 -0
  40. package/dist/types/src/access/access-fetch.d.ts.map +1 -0
  41. package/dist/types/src/access/access-rpc.d.ts +22 -0
  42. package/dist/types/src/access/access-rpc.d.ts.map +1 -0
  43. package/dist/types/src/access.d.ts +19 -11
  44. package/dist/types/src/access.d.ts.map +1 -1
  45. package/dist/types/src/nanotdf/Client.d.ts +3 -1
  46. package/dist/types/src/nanotdf/Client.d.ts.map +1 -1
  47. package/dist/types/src/opentdf.d.ts +5 -1
  48. package/dist/types/src/opentdf.d.ts.map +1 -1
  49. package/dist/types/src/platform/authorization/authorization_pb.d.ts +609 -0
  50. package/dist/types/src/platform/authorization/authorization_pb.d.ts.map +1 -0
  51. package/dist/types/src/platform/buf/validate/validate_pb.d.ts +4466 -0
  52. package/dist/types/src/platform/buf/validate/validate_pb.d.ts.map +1 -0
  53. package/dist/types/src/platform/common/common_pb.d.ts +112 -0
  54. package/dist/types/src/platform/common/common_pb.d.ts.map +1 -0
  55. package/dist/types/src/platform/entityresolution/entity_resolution_pb.d.ts +199 -0
  56. package/dist/types/src/platform/entityresolution/entity_resolution_pb.d.ts.map +1 -0
  57. package/dist/types/src/platform/google/api/annotations_pb.d.ts +14 -0
  58. package/dist/types/src/platform/google/api/annotations_pb.d.ts.map +1 -0
  59. package/dist/types/src/platform/google/api/http_pb.d.ts +441 -0
  60. package/dist/types/src/platform/google/api/http_pb.d.ts.map +1 -0
  61. package/dist/types/src/platform/kas/kas_pb.d.ts +404 -0
  62. package/dist/types/src/platform/kas/kas_pb.d.ts.map +1 -0
  63. package/dist/types/src/platform/policy/actions/actions_pb.d.ts +265 -0
  64. package/dist/types/src/platform/policy/actions/actions_pb.d.ts.map +1 -0
  65. package/dist/types/src/platform/policy/attributes/attributes_pb.d.ts +1022 -0
  66. package/dist/types/src/platform/policy/attributes/attributes_pb.d.ts.map +1 -0
  67. package/dist/types/src/platform/policy/kasregistry/key_access_server_registry_pb.d.ts +1306 -0
  68. package/dist/types/src/platform/policy/kasregistry/key_access_server_registry_pb.d.ts.map +1 -0
  69. package/dist/types/src/platform/policy/keymanagement/key_management_pb.d.ts +269 -0
  70. package/dist/types/src/platform/policy/keymanagement/key_management_pb.d.ts.map +1 -0
  71. package/dist/types/src/platform/policy/namespaces/namespaces_pb.d.ts +448 -0
  72. package/dist/types/src/platform/policy/namespaces/namespaces_pb.d.ts.map +1 -0
  73. package/dist/types/src/platform/policy/objects_pb.d.ts +1112 -0
  74. package/dist/types/src/platform/policy/objects_pb.d.ts.map +1 -0
  75. package/dist/types/src/platform/policy/registeredresources/registered_resources_pb.d.ts +539 -0
  76. package/dist/types/src/platform/policy/registeredresources/registered_resources_pb.d.ts.map +1 -0
  77. package/dist/types/src/platform/policy/resourcemapping/resource_mapping_pb.d.ts +558 -0
  78. package/dist/types/src/platform/policy/resourcemapping/resource_mapping_pb.d.ts.map +1 -0
  79. package/dist/types/src/platform/policy/selectors_pb.d.ts +221 -0
  80. package/dist/types/src/platform/policy/selectors_pb.d.ts.map +1 -0
  81. package/dist/types/src/platform/policy/subjectmapping/subject_mapping_pb.d.ts +582 -0
  82. package/dist/types/src/platform/policy/subjectmapping/subject_mapping_pb.d.ts.map +1 -0
  83. package/dist/types/src/platform/policy/unsafe/unsafe_pb.d.ts +513 -0
  84. package/dist/types/src/platform/policy/unsafe/unsafe_pb.d.ts.map +1 -0
  85. package/dist/types/src/platform/protoc-gen-openapiv2/options/annotations_pb.d.ts +62 -0
  86. package/dist/types/src/platform/protoc-gen-openapiv2/options/annotations_pb.d.ts.map +1 -0
  87. package/dist/types/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +1441 -0
  88. package/dist/types/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.d.ts.map +1 -0
  89. package/dist/types/src/platform/wellknownconfiguration/wellknown_configuration_pb.d.ts +59 -0
  90. package/dist/types/src/platform/wellknownconfiguration/wellknown_configuration_pb.d.ts.map +1 -0
  91. package/dist/types/src/platform.d.ts +49 -0
  92. package/dist/types/src/platform.d.ts.map +1 -0
  93. package/dist/types/src/policy/api.d.ts +1 -1
  94. package/dist/types/src/policy/api.d.ts.map +1 -1
  95. package/dist/types/src/policy/attributes.d.ts +10 -87
  96. package/dist/types/src/policy/attributes.d.ts.map +1 -1
  97. package/dist/types/src/policy/granter.d.ts.map +1 -1
  98. package/dist/types/src/utils.d.ts +10 -0
  99. package/dist/types/src/utils.d.ts.map +1 -1
  100. package/dist/types/src/version.d.ts +1 -1
  101. package/dist/types/tdf3/src/assertions.d.ts +1 -1
  102. package/dist/types/tdf3/src/assertions.d.ts.map +1 -1
  103. package/dist/types/tdf3/src/client/index.d.ts +8 -3
  104. package/dist/types/tdf3/src/client/index.d.ts.map +1 -1
  105. package/dist/types/tdf3/src/models/manifest.d.ts +1 -1
  106. package/dist/types/tdf3/src/models/manifest.d.ts.map +1 -1
  107. package/dist/types/tdf3/src/tdf.d.ts.map +1 -1
  108. package/dist/web/src/access/access-fetch.js +150 -0
  109. package/dist/web/src/access/access-rpc.js +125 -0
  110. package/dist/web/src/access.js +82 -110
  111. package/dist/web/src/auth/oidc.js +2 -2
  112. package/dist/web/src/nanotdf/Client.js +18 -14
  113. package/dist/web/src/nanotdf/models/Header.js +2 -2
  114. package/dist/web/src/nanotdf-crypto/keyAgreement.js +2 -2
  115. package/dist/web/src/opentdf.js +44 -10
  116. package/dist/web/src/platform/authorization/authorization_pb.js +135 -0
  117. package/dist/web/src/platform/buf/validate/validate_pb.js +407 -0
  118. package/dist/web/src/platform/common/common_pb.js +76 -0
  119. package/dist/web/src/platform/entityresolution/entity_resolution_pb.js +46 -0
  120. package/dist/web/src/platform/google/api/annotations_pb.js +27 -0
  121. package/dist/web/src/platform/google/api/http_pb.js +34 -0
  122. package/dist/web/src/platform/kas/kas_pb.js +93 -0
  123. package/dist/web/src/platform/policy/actions/actions_pb.js +67 -0
  124. package/dist/web/src/platform/policy/attributes/attributes_pb.js +237 -0
  125. package/dist/web/src/platform/policy/kasregistry/key_access_server_registry_pb.js +233 -0
  126. package/dist/web/src/platform/policy/keymanagement/key_management_pb.js +67 -0
  127. package/dist/web/src/platform/policy/namespaces/namespaces_pb.js +118 -0
  128. package/dist/web/src/platform/policy/objects_pb.js +392 -0
  129. package/dist/web/src/platform/policy/registeredresources/registered_resources_pb.js +129 -0
  130. package/dist/web/src/platform/policy/resourcemapping/resource_mapping_pb.js +136 -0
  131. package/dist/web/src/platform/policy/selectors_pb.js +64 -0
  132. package/dist/web/src/platform/policy/subjectmapping/subject_mapping_pb.js +143 -0
  133. package/dist/web/src/platform/policy/unsafe/unsafe_pb.js +121 -0
  134. package/dist/web/src/platform/protoc-gen-openapiv2/options/annotations_pb.js +65 -0
  135. package/dist/web/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.js +304 -0
  136. package/dist/web/src/platform/wellknownconfiguration/wellknown_configuration_pb.js +30 -0
  137. package/dist/web/src/platform.js +87 -0
  138. package/dist/web/src/policy/api.js +23 -40
  139. package/dist/web/src/policy/attributes.js +3 -2
  140. package/dist/web/src/policy/granter.js +9 -9
  141. package/dist/web/src/utils.js +29 -1
  142. package/dist/web/src/version.js +2 -2
  143. package/dist/web/tdf3/src/assertions.js +5 -5
  144. package/dist/web/tdf3/src/client/index.js +26 -20
  145. package/dist/web/tdf3/src/tdf.js +16 -10
  146. package/package.json +17 -1
  147. package/src/access/access-fetch.ts +202 -0
  148. package/src/access/access-rpc.ts +175 -0
  149. package/src/access.ts +113 -138
  150. package/src/auth/oidc.ts +1 -1
  151. package/src/nanotdf/Client.ts +28 -18
  152. package/src/nanotdf/models/Header.ts +1 -1
  153. package/src/nanotdf-crypto/keyAgreement.ts +1 -1
  154. package/src/opentdf.ts +67 -11
  155. package/src/platform/authorization/authorization_pb.ts +689 -0
  156. package/src/platform/buf/validate/validate_pb.ts +4626 -0
  157. package/src/platform/common/common_pb.ts +135 -0
  158. package/src/platform/entityresolution/entity_resolution_pb.ts +233 -0
  159. package/src/platform/google/api/annotations_pb.ts +39 -0
  160. package/src/platform/google/api/http_pb.ts +474 -0
  161. package/src/platform/kas/kas_pb.ts +484 -0
  162. package/src/platform/policy/actions/actions_pb.ts +312 -0
  163. package/src/platform/policy/attributes/attributes_pb.ts +1181 -0
  164. package/src/platform/policy/kasregistry/key_access_server_registry_pb.ts +1482 -0
  165. package/src/platform/policy/keymanagement/key_management_pb.ts +316 -0
  166. package/src/platform/policy/namespaces/namespaces_pb.ts +528 -0
  167. package/src/platform/policy/objects_pb.ts +1319 -0
  168. package/src/platform/policy/registeredresources/registered_resources_pb.ts +623 -0
  169. package/src/platform/policy/resourcemapping/resource_mapping_pb.ts +658 -0
  170. package/src/platform/policy/selectors_pb.ts +277 -0
  171. package/src/platform/policy/subjectmapping/subject_mapping_pb.ts +687 -0
  172. package/src/platform/policy/unsafe/unsafe_pb.ts +593 -0
  173. package/src/platform/protoc-gen-openapiv2/options/annotations_pb.ts +83 -0
  174. package/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.ts +1615 -0
  175. package/src/platform/wellknownconfiguration/wellknown_configuration_pb.ts +78 -0
  176. package/src/platform.ts +122 -0
  177. package/src/policy/api.ts +29 -42
  178. package/src/policy/attributes.ts +12 -108
  179. package/src/policy/granter.ts +7 -8
  180. package/src/utils.ts +30 -0
  181. package/src/version.ts +1 -1
  182. package/tdf3/src/assertions.ts +4 -4
  183. package/tdf3/src/client/index.ts +42 -19
  184. package/tdf3/src/models/manifest.ts +2 -1
  185. package/tdf3/src/tdf.ts +25 -16
  186. package/src/platform/authorization/authorization_connect.d.ts +0 -44
  187. package/src/platform/authorization/authorization_connect.js +0 -44
  188. package/src/platform/authorization/authorization_pb.d.ts +0 -707
  189. package/src/platform/authorization/authorization_pb.js +0 -372
  190. package/src/platform/common/common_pb.d.ts +0 -129
  191. package/src/platform/common/common_pb.js +0 -58
  192. package/src/platform/entityresolution/entity_resolution_connect.d.ts +0 -35
  193. package/src/platform/entityresolution/entity_resolution_connect.js +0 -35
  194. package/src/platform/entityresolution/entity_resolution_pb.d.ts +0 -242
  195. package/src/platform/entityresolution/entity_resolution_pb.js +0 -139
  196. package/src/platform/kas/kas_connect.d.ts +0 -59
  197. package/src/platform/kas/kas_connect.js +0 -59
  198. package/src/platform/kas/kas_pb.d.ts +0 -200
  199. package/src/platform/kas/kas_pb.js +0 -84
  200. package/src/platform/policy/attributes/attributes_connect.d.ts +0 -168
  201. package/src/platform/policy/attributes/attributes_connect.js +0 -168
  202. package/src/platform/policy/attributes/attributes_pb.d.ts +0 -929
  203. package/src/platform/policy/attributes/attributes_pb.js +0 -363
  204. package/src/platform/policy/kasregistry/key_access_server_registry_connect.d.ts +0 -62
  205. package/src/platform/policy/kasregistry/key_access_server_registry_connect.js +0 -62
  206. package/src/platform/policy/kasregistry/key_access_server_registry_pb.d.ts +0 -283
  207. package/src/platform/policy/kasregistry/key_access_server_registry_pb.js +0 -113
  208. package/src/platform/policy/namespaces/namespaces_connect.d.ts +0 -62
  209. package/src/platform/policy/namespaces/namespaces_connect.js +0 -62
  210. package/src/platform/policy/namespaces/namespaces_pb.d.ts +0 -270
  211. package/src/platform/policy/namespaces/namespaces_pb.js +0 -110
  212. package/src/platform/policy/objects_pb.d.ts +0 -725
  213. package/src/platform/policy/objects_pb.js +0 -288
  214. package/src/platform/policy/resourcemapping/resource_mapping_connect.d.ts +0 -259
  215. package/src/platform/policy/resourcemapping/resource_mapping_connect.js +0 -259
  216. package/src/platform/policy/resourcemapping/resource_mapping_pb.d.ts +0 -314
  217. package/src/platform/policy/resourcemapping/resource_mapping_pb.js +0 -142
  218. package/src/platform/policy/selectors_pb.d.ts +0 -269
  219. package/src/platform/policy/selectors_pb.js +0 -110
  220. package/src/platform/policy/subjectmapping/subject_mapping_connect.d.ts +0 -118
  221. package/src/platform/policy/subjectmapping/subject_mapping_connect.js +0 -118
  222. package/src/platform/policy/subjectmapping/subject_mapping_pb.d.ts +0 -672
  223. package/src/platform/policy/subjectmapping/subject_mapping_pb.js +0 -260
  224. package/src/platform/wellknownconfiguration/wellknown_configuration_connect.d.ts +0 -26
  225. package/src/platform/wellknownconfiguration/wellknown_configuration_connect.js +0 -26
  226. package/src/platform/wellknownconfiguration/wellknown_configuration_pb.d.ts +0 -75
  227. package/src/platform/wellknownconfiguration/wellknown_configuration_pb.js +0 -35
@@ -0,0 +1,1112 @@
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
+ import type { Metadata } from "../common/common_pb.js";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file policy/objects.proto.
6
+ */
7
+ export declare const file_policy_objects: GenFile;
8
+ /**
9
+ * @generated from message policy.KeyProviderConfig
10
+ */
11
+ export type KeyProviderConfig = Message<"policy.KeyProviderConfig"> & {
12
+ /**
13
+ * @generated from field: string id = 1;
14
+ */
15
+ id: string;
16
+ /**
17
+ * @generated from field: string name = 2;
18
+ */
19
+ name: string;
20
+ /**
21
+ * @generated from field: bytes config_json = 3;
22
+ */
23
+ configJson: Uint8Array;
24
+ /**
25
+ * Common metadata
26
+ *
27
+ * @generated from field: common.Metadata metadata = 100;
28
+ */
29
+ metadata?: Metadata;
30
+ };
31
+ /**
32
+ * Describes the message policy.KeyProviderConfig.
33
+ * Use `create(KeyProviderConfigSchema)` to create a new message.
34
+ */
35
+ export declare const KeyProviderConfigSchema: GenMessage<KeyProviderConfig>;
36
+ /**
37
+ * @generated from message policy.Namespace
38
+ */
39
+ export type Namespace = Message<"policy.Namespace"> & {
40
+ /**
41
+ * generated uuid in database
42
+ *
43
+ * @generated from field: string id = 1;
44
+ */
45
+ id: string;
46
+ /**
47
+ * used to partition Attribute Definitions, support by namespace AuthN and
48
+ * enable federation
49
+ *
50
+ * @generated from field: string name = 2;
51
+ */
52
+ name: string;
53
+ /**
54
+ * @generated from field: string fqn = 3;
55
+ */
56
+ fqn: string;
57
+ /**
58
+ * active by default until explicitly deactivated
59
+ *
60
+ * @generated from field: google.protobuf.BoolValue active = 4;
61
+ */
62
+ active?: boolean;
63
+ /**
64
+ * @generated from field: common.Metadata metadata = 5;
65
+ */
66
+ metadata?: Metadata;
67
+ /**
68
+ * KAS grants for the namespace
69
+ *
70
+ * @generated from field: repeated policy.KeyAccessServer grants = 6;
71
+ */
72
+ grants: KeyAccessServer[];
73
+ /**
74
+ * Keys for the namespace
75
+ *
76
+ * @generated from field: repeated policy.KasKey kas_keys = 7;
77
+ */
78
+ kasKeys: KasKey[];
79
+ };
80
+ /**
81
+ * Describes the message policy.Namespace.
82
+ * Use `create(NamespaceSchema)` to create a new message.
83
+ */
84
+ export declare const NamespaceSchema: GenMessage<Namespace>;
85
+ /**
86
+ * @generated from message policy.Attribute
87
+ */
88
+ export type Attribute = Message<"policy.Attribute"> & {
89
+ /**
90
+ * @generated from field: string id = 1;
91
+ */
92
+ id: string;
93
+ /**
94
+ * namespace of the attribute
95
+ *
96
+ * @generated from field: policy.Namespace namespace = 2;
97
+ */
98
+ namespace?: Namespace;
99
+ /**
100
+ * attribute name
101
+ *
102
+ * @generated from field: string name = 3;
103
+ */
104
+ name: string;
105
+ /**
106
+ * attribute rule enum
107
+ *
108
+ * @generated from field: policy.AttributeRuleTypeEnum rule = 4;
109
+ */
110
+ rule: AttributeRuleTypeEnum;
111
+ /**
112
+ * @generated from field: repeated policy.Value values = 5;
113
+ */
114
+ values: Value[];
115
+ /**
116
+ * Deprecated
117
+ *
118
+ * @generated from field: repeated policy.KeyAccessServer grants = 6;
119
+ */
120
+ grants: KeyAccessServer[];
121
+ /**
122
+ * @generated from field: string fqn = 7;
123
+ */
124
+ fqn: string;
125
+ /**
126
+ * active by default until explicitly deactivated
127
+ *
128
+ * @generated from field: google.protobuf.BoolValue active = 8;
129
+ */
130
+ active?: boolean;
131
+ /**
132
+ * Keys associated with the attribute
133
+ *
134
+ * @generated from field: repeated policy.KasKey kas_keys = 9;
135
+ */
136
+ kasKeys: KasKey[];
137
+ /**
138
+ * Common metadata
139
+ *
140
+ * @generated from field: common.Metadata metadata = 100;
141
+ */
142
+ metadata?: Metadata;
143
+ };
144
+ /**
145
+ * Describes the message policy.Attribute.
146
+ * Use `create(AttributeSchema)` to create a new message.
147
+ */
148
+ export declare const AttributeSchema: GenMessage<Attribute>;
149
+ /**
150
+ * @generated from message policy.Value
151
+ */
152
+ export type Value = Message<"policy.Value"> & {
153
+ /**
154
+ * generated uuid in database
155
+ *
156
+ * @generated from field: string id = 1;
157
+ */
158
+ id: string;
159
+ /**
160
+ * @generated from field: policy.Attribute attribute = 2;
161
+ */
162
+ attribute?: Attribute;
163
+ /**
164
+ * @generated from field: string value = 3;
165
+ */
166
+ value: string;
167
+ /**
168
+ * Deprecated
169
+ * list of key access servers
170
+ *
171
+ * @generated from field: repeated policy.KeyAccessServer grants = 5;
172
+ */
173
+ grants: KeyAccessServer[];
174
+ /**
175
+ * @generated from field: string fqn = 6;
176
+ */
177
+ fqn: string;
178
+ /**
179
+ * active by default until explicitly deactivated
180
+ *
181
+ * @generated from field: google.protobuf.BoolValue active = 7;
182
+ */
183
+ active?: boolean;
184
+ /**
185
+ * subject mapping
186
+ *
187
+ * @generated from field: repeated policy.SubjectMapping subject_mappings = 8;
188
+ */
189
+ subjectMappings: SubjectMapping[];
190
+ /**
191
+ * @generated from field: repeated policy.KasKey kas_keys = 9;
192
+ */
193
+ kasKeys: KasKey[];
194
+ /**
195
+ * Common metadata
196
+ *
197
+ * @generated from field: common.Metadata metadata = 100;
198
+ */
199
+ metadata?: Metadata;
200
+ };
201
+ /**
202
+ * Describes the message policy.Value.
203
+ * Use `create(ValueSchema)` to create a new message.
204
+ */
205
+ export declare const ValueSchema: GenMessage<Value>;
206
+ /**
207
+ * An action an entity can take
208
+ *
209
+ * @generated from message policy.Action
210
+ */
211
+ export type Action = Message<"policy.Action"> & {
212
+ /**
213
+ * Generated uuid in database
214
+ *
215
+ * @generated from field: string id = 3;
216
+ */
217
+ id: string;
218
+ /**
219
+ * Deprecated
220
+ *
221
+ * @generated from oneof policy.Action.value
222
+ */
223
+ value: {
224
+ /**
225
+ * Deprecated
226
+ *
227
+ * @generated from field: policy.Action.StandardAction standard = 1;
228
+ */
229
+ value: Action_StandardAction;
230
+ case: "standard";
231
+ } | {
232
+ /**
233
+ * Deprecated
234
+ *
235
+ * @generated from field: string custom = 2;
236
+ */
237
+ value: string;
238
+ case: "custom";
239
+ } | {
240
+ case: undefined;
241
+ value?: undefined;
242
+ };
243
+ /**
244
+ * @generated from field: string name = 4;
245
+ */
246
+ name: string;
247
+ /**
248
+ * @generated from field: common.Metadata metadata = 100;
249
+ */
250
+ metadata?: Metadata;
251
+ };
252
+ /**
253
+ * Describes the message policy.Action.
254
+ * Use `create(ActionSchema)` to create a new message.
255
+ */
256
+ export declare const ActionSchema: GenMessage<Action>;
257
+ /**
258
+ * @generated from enum policy.Action.StandardAction
259
+ */
260
+ export declare enum Action_StandardAction {
261
+ /**
262
+ * @generated from enum value: STANDARD_ACTION_UNSPECIFIED = 0;
263
+ */
264
+ UNSPECIFIED = 0,
265
+ /**
266
+ * Deprecated
267
+ * Migrate to 'read' action name
268
+ *
269
+ * @generated from enum value: STANDARD_ACTION_DECRYPT = 1;
270
+ */
271
+ DECRYPT = 1,
272
+ /**
273
+ * Deprecated
274
+ * Migrate to 'create' action name
275
+ *
276
+ * @generated from enum value: STANDARD_ACTION_TRANSMIT = 2;
277
+ */
278
+ TRANSMIT = 2
279
+ }
280
+ /**
281
+ * Describes the enum policy.Action.StandardAction.
282
+ */
283
+ export declare const Action_StandardActionSchema: GenEnum<Action_StandardAction>;
284
+ /**
285
+ *
286
+ * Subject Mapping: A Policy assigning Subject Set(s) to a permitted attribute
287
+ * value + action(s) combination
288
+ *
289
+ * @generated from message policy.SubjectMapping
290
+ */
291
+ export type SubjectMapping = Message<"policy.SubjectMapping"> & {
292
+ /**
293
+ * @generated from field: string id = 1;
294
+ */
295
+ id: string;
296
+ /**
297
+ * the Attribute Value mapped to; aka: "The Entity Entitlement Attribute"
298
+ *
299
+ * @generated from field: policy.Value attribute_value = 2;
300
+ */
301
+ attributeValue?: Value;
302
+ /**
303
+ * the reusable SubjectConditionSet mapped to the given Attribute Value
304
+ *
305
+ * @generated from field: policy.SubjectConditionSet subject_condition_set = 3;
306
+ */
307
+ subjectConditionSet?: SubjectConditionSet;
308
+ /**
309
+ * The actions permitted by subjects in this mapping
310
+ *
311
+ * @generated from field: repeated policy.Action actions = 4;
312
+ */
313
+ actions: Action[];
314
+ /**
315
+ * @generated from field: common.Metadata metadata = 100;
316
+ */
317
+ metadata?: Metadata;
318
+ };
319
+ /**
320
+ * Describes the message policy.SubjectMapping.
321
+ * Use `create(SubjectMappingSchema)` to create a new message.
322
+ */
323
+ export declare const SubjectMappingSchema: GenMessage<SubjectMapping>;
324
+ /**
325
+ * *
326
+ * A Condition defines a rule of <the value at the flattened 'selector value'
327
+ * location> <operator> <subject external values>
328
+ *
329
+ * @generated from message policy.Condition
330
+ */
331
+ export type Condition = Message<"policy.Condition"> & {
332
+ /**
333
+ * a selector for a field value on a flattened Entity Representation (such as
334
+ * from idP/LDAP)
335
+ *
336
+ * @generated from field: string subject_external_selector_value = 1;
337
+ */
338
+ subjectExternalSelectorValue: string;
339
+ /**
340
+ * the evaluation operator of relation
341
+ *
342
+ * @generated from field: policy.SubjectMappingOperatorEnum operator = 2;
343
+ */
344
+ operator: SubjectMappingOperatorEnum;
345
+ /**
346
+ * list of comparison values for the result of applying the
347
+ * subject_external_selector_value on a flattened Entity Representation
348
+ * (Subject), evaluated by the operator
349
+ *
350
+ * @generated from field: repeated string subject_external_values = 3;
351
+ */
352
+ subjectExternalValues: string[];
353
+ };
354
+ /**
355
+ * Describes the message policy.Condition.
356
+ * Use `create(ConditionSchema)` to create a new message.
357
+ */
358
+ export declare const ConditionSchema: GenMessage<Condition>;
359
+ /**
360
+ * A collection of Conditions evaluated by the boolean_operator provided
361
+ *
362
+ * @generated from message policy.ConditionGroup
363
+ */
364
+ export type ConditionGroup = Message<"policy.ConditionGroup"> & {
365
+ /**
366
+ * @generated from field: repeated policy.Condition conditions = 1;
367
+ */
368
+ conditions: Condition[];
369
+ /**
370
+ * the boolean evaluation type across the conditions
371
+ *
372
+ * @generated from field: policy.ConditionBooleanTypeEnum boolean_operator = 2;
373
+ */
374
+ booleanOperator: ConditionBooleanTypeEnum;
375
+ };
376
+ /**
377
+ * Describes the message policy.ConditionGroup.
378
+ * Use `create(ConditionGroupSchema)` to create a new message.
379
+ */
380
+ export declare const ConditionGroupSchema: GenMessage<ConditionGroup>;
381
+ /**
382
+ * A collection of Condition Groups
383
+ *
384
+ * @generated from message policy.SubjectSet
385
+ */
386
+ export type SubjectSet = Message<"policy.SubjectSet"> & {
387
+ /**
388
+ * multiple Condition Groups are evaluated with AND logic
389
+ *
390
+ * @generated from field: repeated policy.ConditionGroup condition_groups = 1;
391
+ */
392
+ conditionGroups: ConditionGroup[];
393
+ };
394
+ /**
395
+ * Describes the message policy.SubjectSet.
396
+ * Use `create(SubjectSetSchema)` to create a new message.
397
+ */
398
+ export declare const SubjectSetSchema: GenMessage<SubjectSet>;
399
+ /**
400
+ *
401
+ * A container for multiple Subject Sets, each containing Condition Groups, each
402
+ * containing Conditions. Multiple Subject Sets in a SubjectConditionSet are
403
+ * evaluated with AND logic. As each Subject Mapping has only one Attribute
404
+ * Value, the SubjectConditionSet is reusable across multiple Subject Mappings /
405
+ * Attribute Values and is an independent unit.
406
+ *
407
+ * @generated from message policy.SubjectConditionSet
408
+ */
409
+ export type SubjectConditionSet = Message<"policy.SubjectConditionSet"> & {
410
+ /**
411
+ * @generated from field: string id = 1;
412
+ */
413
+ id: string;
414
+ /**
415
+ * @generated from field: repeated policy.SubjectSet subject_sets = 3;
416
+ */
417
+ subjectSets: SubjectSet[];
418
+ /**
419
+ * @generated from field: common.Metadata metadata = 100;
420
+ */
421
+ metadata?: Metadata;
422
+ };
423
+ /**
424
+ * Describes the message policy.SubjectConditionSet.
425
+ * Use `create(SubjectConditionSetSchema)` to create a new message.
426
+ */
427
+ export declare const SubjectConditionSetSchema: GenMessage<SubjectConditionSet>;
428
+ /**
429
+ *
430
+ *
431
+ * A property of a Subject/Entity as its selector expression -> value result
432
+ * pair. This would mirror external user attributes retrieved from an
433
+ * authoritative source such as an IDP (Identity Provider) or User Store.
434
+ * Examples include such ADFS/LDAP, OKTA, etc. For now, a valid property must
435
+ * contain both a selector expression & a resulting value.
436
+ *
437
+ * The external_selector_value is a specifier to select a value from a flattened
438
+ * external representation of an Entity (such as from idP/LDAP), and the
439
+ * external_value is the value selected by the external_selector_value on that
440
+ * Entity Representation (Subject Context). These mirror the Condition.
441
+ *
442
+ * @generated from message policy.SubjectProperty
443
+ */
444
+ export type SubjectProperty = Message<"policy.SubjectProperty"> & {
445
+ /**
446
+ * @generated from field: string external_selector_value = 1;
447
+ */
448
+ externalSelectorValue: string;
449
+ /**
450
+ * @generated from field: string external_value = 2;
451
+ */
452
+ externalValue: string;
453
+ };
454
+ /**
455
+ * Describes the message policy.SubjectProperty.
456
+ * Use `create(SubjectPropertySchema)` to create a new message.
457
+ */
458
+ export declare const SubjectPropertySchema: GenMessage<SubjectProperty>;
459
+ /**
460
+ *
461
+ * Resource Mapping Groups are namespaced collections of Resource Mappings
462
+ * associated under a common group name.
463
+ *
464
+ * @generated from message policy.ResourceMappingGroup
465
+ */
466
+ export type ResourceMappingGroup = Message<"policy.ResourceMappingGroup"> & {
467
+ /**
468
+ * @generated from field: string id = 1;
469
+ */
470
+ id: string;
471
+ /**
472
+ * the namespace containing the group of resource mappings
473
+ *
474
+ * @generated from field: string namespace_id = 2;
475
+ */
476
+ namespaceId: string;
477
+ /**
478
+ * the common name for the group of resource mappings, which must be unique
479
+ * per namespace
480
+ *
481
+ * @generated from field: string name = 3;
482
+ */
483
+ name: string;
484
+ /**
485
+ * Common metadata
486
+ *
487
+ * @generated from field: common.Metadata metadata = 100;
488
+ */
489
+ metadata?: Metadata;
490
+ };
491
+ /**
492
+ * Describes the message policy.ResourceMappingGroup.
493
+ * Use `create(ResourceMappingGroupSchema)` to create a new message.
494
+ */
495
+ export declare const ResourceMappingGroupSchema: GenMessage<ResourceMappingGroup>;
496
+ /**
497
+ *
498
+ * Resource Mappings (aka Access Control Resource Encodings aka ACRE) are
499
+ * structures supporting the mapping of Resources and Attribute Values
500
+ *
501
+ * @generated from message policy.ResourceMapping
502
+ */
503
+ export type ResourceMapping = Message<"policy.ResourceMapping"> & {
504
+ /**
505
+ * @generated from field: string id = 1;
506
+ */
507
+ id: string;
508
+ /**
509
+ * @generated from field: common.Metadata metadata = 2;
510
+ */
511
+ metadata?: Metadata;
512
+ /**
513
+ * @generated from field: policy.Value attribute_value = 3;
514
+ */
515
+ attributeValue?: Value;
516
+ /**
517
+ * @generated from field: repeated string terms = 4;
518
+ */
519
+ terms: string[];
520
+ /**
521
+ * @generated from field: policy.ResourceMappingGroup group = 5;
522
+ */
523
+ group?: ResourceMappingGroup;
524
+ };
525
+ /**
526
+ * Describes the message policy.ResourceMapping.
527
+ * Use `create(ResourceMappingSchema)` to create a new message.
528
+ */
529
+ export declare const ResourceMappingSchema: GenMessage<ResourceMapping>;
530
+ /**
531
+ *
532
+ * Key Access Server Registry
533
+ *
534
+ * @generated from message policy.KeyAccessServer
535
+ */
536
+ export type KeyAccessServer = Message<"policy.KeyAccessServer"> & {
537
+ /**
538
+ * @generated from field: string id = 1;
539
+ */
540
+ id: string;
541
+ /**
542
+ * Address of a KAS instance
543
+ *
544
+ * @generated from field: string uri = 2;
545
+ */
546
+ uri: string;
547
+ /**
548
+ * Deprecated
549
+ *
550
+ * @generated from field: policy.PublicKey public_key = 3;
551
+ */
552
+ publicKey?: PublicKey;
553
+ /**
554
+ * The source of the KAS: (INTERNAL, EXTERNAL)
555
+ *
556
+ * @generated from field: policy.SourceType source_type = 4;
557
+ */
558
+ sourceType: SourceType;
559
+ /**
560
+ * Kas keys associated with this KAS
561
+ *
562
+ * @generated from field: repeated policy.KasKey kas_keys = 5;
563
+ */
564
+ kasKeys: KasKey[];
565
+ /**
566
+ * Optional
567
+ * Unique name of the KAS instance
568
+ *
569
+ * @generated from field: string name = 20;
570
+ */
571
+ name: string;
572
+ /**
573
+ * Common metadata
574
+ *
575
+ * @generated from field: common.Metadata metadata = 100;
576
+ */
577
+ metadata?: Metadata;
578
+ };
579
+ /**
580
+ * Describes the message policy.KeyAccessServer.
581
+ * Use `create(KeyAccessServerSchema)` to create a new message.
582
+ */
583
+ export declare const KeyAccessServerSchema: GenMessage<KeyAccessServer>;
584
+ /**
585
+ * @generated from message policy.Key
586
+ */
587
+ export type Key = Message<"policy.Key"> & {
588
+ /**
589
+ * the database record ID, not the key ID (`kid`)
590
+ *
591
+ * @generated from field: string id = 1;
592
+ */
593
+ id: string;
594
+ /**
595
+ * @generated from field: google.protobuf.BoolValue is_active = 2;
596
+ */
597
+ isActive?: boolean;
598
+ /**
599
+ * @generated from field: google.protobuf.BoolValue was_mapped = 3;
600
+ */
601
+ wasMapped?: boolean;
602
+ /**
603
+ * @generated from field: policy.KasPublicKey public_key = 4;
604
+ */
605
+ publicKey?: KasPublicKey;
606
+ /**
607
+ * @generated from field: policy.KeyAccessServer kas = 5;
608
+ */
609
+ kas?: KeyAccessServer;
610
+ /**
611
+ * Common metadata
612
+ *
613
+ * @generated from field: common.Metadata metadata = 100;
614
+ */
615
+ metadata?: Metadata;
616
+ };
617
+ /**
618
+ * Describes the message policy.Key.
619
+ * Use `create(KeySchema)` to create a new message.
620
+ */
621
+ export declare const KeySchema: GenMessage<Key>;
622
+ /**
623
+ * Deprecated
624
+ * A KAS public key and some associated metadata for further identifcation
625
+ *
626
+ * @generated from message policy.KasPublicKey
627
+ */
628
+ export type KasPublicKey = Message<"policy.KasPublicKey"> & {
629
+ /**
630
+ * x509 ASN.1 content in PEM envelope, usually
631
+ *
632
+ * @generated from field: string pem = 1;
633
+ */
634
+ pem: string;
635
+ /**
636
+ * A unique string identifier for this key
637
+ *
638
+ * @generated from field: string kid = 2;
639
+ */
640
+ kid: string;
641
+ /**
642
+ * A known algorithm type with any additional parameters encoded.
643
+ * To start, these may be `rsa:2048` for encrypting ZTDF files and
644
+ * `ec:secp256r1` for nanoTDF, but more formats may be added as needed.
645
+ *
646
+ * @generated from field: policy.KasPublicKeyAlgEnum alg = 3;
647
+ */
648
+ alg: KasPublicKeyAlgEnum;
649
+ };
650
+ /**
651
+ * Describes the message policy.KasPublicKey.
652
+ * Use `create(KasPublicKeySchema)` to create a new message.
653
+ */
654
+ export declare const KasPublicKeySchema: GenMessage<KasPublicKey>;
655
+ /**
656
+ * Deprecated
657
+ * A list of known KAS public keys
658
+ *
659
+ * @generated from message policy.KasPublicKeySet
660
+ */
661
+ export type KasPublicKeySet = Message<"policy.KasPublicKeySet"> & {
662
+ /**
663
+ * @generated from field: repeated policy.KasPublicKey keys = 1;
664
+ */
665
+ keys: KasPublicKey[];
666
+ };
667
+ /**
668
+ * Describes the message policy.KasPublicKeySet.
669
+ * Use `create(KasPublicKeySetSchema)` to create a new message.
670
+ */
671
+ export declare const KasPublicKeySetSchema: GenMessage<KasPublicKeySet>;
672
+ /**
673
+ * Deprecated
674
+ *
675
+ * @generated from message policy.PublicKey
676
+ */
677
+ export type PublicKey = Message<"policy.PublicKey"> & {
678
+ /**
679
+ * @generated from oneof policy.PublicKey.public_key
680
+ */
681
+ publicKey: {
682
+ /**
683
+ * kas public key url - optional since can also be retrieved via public key
684
+ *
685
+ * @generated from field: string remote = 1;
686
+ */
687
+ value: string;
688
+ case: "remote";
689
+ } | {
690
+ /**
691
+ * public key with additional information. Current preferred version
692
+ *
693
+ * @generated from field: policy.KasPublicKeySet cached = 3;
694
+ */
695
+ value: KasPublicKeySet;
696
+ case: "cached";
697
+ } | {
698
+ case: undefined;
699
+ value?: undefined;
700
+ };
701
+ };
702
+ /**
703
+ * Describes the message policy.PublicKey.
704
+ * Use `create(PublicKeySchema)` to create a new message.
705
+ */
706
+ export declare const PublicKeySchema: GenMessage<PublicKey>;
707
+ /**
708
+ * @generated from message policy.RegisteredResource
709
+ */
710
+ export type RegisteredResource = Message<"policy.RegisteredResource"> & {
711
+ /**
712
+ * @generated from field: string id = 1;
713
+ */
714
+ id: string;
715
+ /**
716
+ * @generated from field: string name = 2;
717
+ */
718
+ name: string;
719
+ /**
720
+ * @generated from field: repeated policy.RegisteredResourceValue values = 3;
721
+ */
722
+ values: RegisteredResourceValue[];
723
+ /**
724
+ * Common metadata
725
+ *
726
+ * @generated from field: common.Metadata metadata = 100;
727
+ */
728
+ metadata?: Metadata;
729
+ };
730
+ /**
731
+ * Describes the message policy.RegisteredResource.
732
+ * Use `create(RegisteredResourceSchema)` to create a new message.
733
+ */
734
+ export declare const RegisteredResourceSchema: GenMessage<RegisteredResource>;
735
+ /**
736
+ * @generated from message policy.RegisteredResourceValue
737
+ */
738
+ export type RegisteredResourceValue = Message<"policy.RegisteredResourceValue"> & {
739
+ /**
740
+ * @generated from field: string id = 1;
741
+ */
742
+ id: string;
743
+ /**
744
+ * @generated from field: string value = 2;
745
+ */
746
+ value: string;
747
+ /**
748
+ * @generated from field: policy.RegisteredResource resource = 3;
749
+ */
750
+ resource?: RegisteredResource;
751
+ /**
752
+ * Common metadata
753
+ *
754
+ * @generated from field: common.Metadata metadata = 100;
755
+ */
756
+ metadata?: Metadata;
757
+ };
758
+ /**
759
+ * Describes the message policy.RegisteredResourceValue.
760
+ * Use `create(RegisteredResourceValueSchema)` to create a new message.
761
+ */
762
+ export declare const RegisteredResourceValueSchema: GenMessage<RegisteredResourceValue>;
763
+ /**
764
+ * @generated from message policy.KasKey
765
+ */
766
+ export type KasKey = Message<"policy.KasKey"> & {
767
+ /**
768
+ * @generated from field: string kas_id = 1;
769
+ */
770
+ kasId: string;
771
+ /**
772
+ * @generated from field: policy.AsymmetricKey key = 2;
773
+ */
774
+ key?: AsymmetricKey;
775
+ };
776
+ /**
777
+ * Describes the message policy.KasKey.
778
+ * Use `create(KasKeySchema)` to create a new message.
779
+ */
780
+ export declare const KasKeySchema: GenMessage<KasKey>;
781
+ /**
782
+ * @generated from message policy.AsymmetricKey
783
+ */
784
+ export type AsymmetricKey = Message<"policy.AsymmetricKey"> & {
785
+ /**
786
+ * @generated from field: string id = 1;
787
+ */
788
+ id: string;
789
+ /**
790
+ * @generated from field: string key_id = 2;
791
+ */
792
+ keyId: string;
793
+ /**
794
+ * @generated from field: policy.Algorithm key_algorithm = 3;
795
+ */
796
+ keyAlgorithm: Algorithm;
797
+ /**
798
+ * @generated from field: policy.KeyStatus key_status = 4;
799
+ */
800
+ keyStatus: KeyStatus;
801
+ /**
802
+ * Specifies how the key is managed (local or remote)
803
+ *
804
+ * @generated from field: policy.KeyMode key_mode = 5;
805
+ */
806
+ keyMode: KeyMode;
807
+ /**
808
+ * Specific structure based on key provider implementation
809
+ *
810
+ * @generated from field: bytes public_key_ctx = 6;
811
+ */
812
+ publicKeyCtx: Uint8Array;
813
+ /**
814
+ * Specific structure based on key provider implementation
815
+ *
816
+ * @generated from field: bytes private_key_ctx = 7;
817
+ */
818
+ privateKeyCtx: Uint8Array;
819
+ /**
820
+ * Configuration for the key provider
821
+ *
822
+ * @generated from field: policy.KeyProviderConfig provider_config = 8;
823
+ */
824
+ providerConfig?: KeyProviderConfig;
825
+ /**
826
+ * Common metadata fields
827
+ *
828
+ * @generated from field: common.Metadata metadata = 100;
829
+ */
830
+ metadata?: Metadata;
831
+ };
832
+ /**
833
+ * Describes the message policy.AsymmetricKey.
834
+ * Use `create(AsymmetricKeySchema)` to create a new message.
835
+ */
836
+ export declare const AsymmetricKeySchema: GenMessage<AsymmetricKey>;
837
+ /**
838
+ * @generated from message policy.SymmetricKey
839
+ */
840
+ export type SymmetricKey = Message<"policy.SymmetricKey"> & {
841
+ /**
842
+ * @generated from field: string id = 1;
843
+ */
844
+ id: string;
845
+ /**
846
+ * @generated from field: string key_id = 2;
847
+ */
848
+ keyId: string;
849
+ /**
850
+ * @generated from field: policy.KeyStatus key_status = 3;
851
+ */
852
+ keyStatus: KeyStatus;
853
+ /**
854
+ * Specifies how the key is managed (local or remote)
855
+ *
856
+ * @generated from field: policy.KeyMode key_mode = 4;
857
+ */
858
+ keyMode: KeyMode;
859
+ /**
860
+ * Specific structure based on key provider implementation
861
+ *
862
+ * @generated from field: bytes key_ctx = 5;
863
+ */
864
+ keyCtx: Uint8Array;
865
+ /**
866
+ * Configuration for the key provider
867
+ *
868
+ * @generated from field: policy.KeyProviderConfig provider_config = 6;
869
+ */
870
+ providerConfig?: KeyProviderConfig;
871
+ /**
872
+ * Common metadata fields
873
+ *
874
+ * @generated from field: common.Metadata metadata = 100;
875
+ */
876
+ metadata?: Metadata;
877
+ };
878
+ /**
879
+ * Describes the message policy.SymmetricKey.
880
+ * Use `create(SymmetricKeySchema)` to create a new message.
881
+ */
882
+ export declare const SymmetricKeySchema: GenMessage<SymmetricKey>;
883
+ /**
884
+ * @generated from enum policy.AttributeRuleTypeEnum
885
+ */
886
+ export declare enum AttributeRuleTypeEnum {
887
+ /**
888
+ * @generated from enum value: ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED = 0;
889
+ */
890
+ UNSPECIFIED = 0,
891
+ /**
892
+ * @generated from enum value: ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF = 1;
893
+ */
894
+ ALL_OF = 1,
895
+ /**
896
+ * @generated from enum value: ATTRIBUTE_RULE_TYPE_ENUM_ANY_OF = 2;
897
+ */
898
+ ANY_OF = 2,
899
+ /**
900
+ * @generated from enum value: ATTRIBUTE_RULE_TYPE_ENUM_HIERARCHY = 3;
901
+ */
902
+ HIERARCHY = 3
903
+ }
904
+ /**
905
+ * Describes the enum policy.AttributeRuleTypeEnum.
906
+ */
907
+ export declare const AttributeRuleTypeEnumSchema: GenEnum<AttributeRuleTypeEnum>;
908
+ /**
909
+ * @generated from enum policy.SubjectMappingOperatorEnum
910
+ */
911
+ export declare enum SubjectMappingOperatorEnum {
912
+ /**
913
+ * @generated from enum value: SUBJECT_MAPPING_OPERATOR_ENUM_UNSPECIFIED = 0;
914
+ */
915
+ UNSPECIFIED = 0,
916
+ /**
917
+ * operator that returns true if a value in a list matches the string
918
+ *
919
+ * @generated from enum value: SUBJECT_MAPPING_OPERATOR_ENUM_IN = 1;
920
+ */
921
+ IN = 1,
922
+ /**
923
+ * operator that returns true if a value is not in a list that is matched by
924
+ * string
925
+ *
926
+ * @generated from enum value: SUBJECT_MAPPING_OPERATOR_ENUM_NOT_IN = 2;
927
+ */
928
+ NOT_IN = 2,
929
+ /**
930
+ * operator that returns true if a value in a list contains the substring
931
+ *
932
+ * @generated from enum value: SUBJECT_MAPPING_OPERATOR_ENUM_IN_CONTAINS = 3;
933
+ */
934
+ IN_CONTAINS = 3
935
+ }
936
+ /**
937
+ * Describes the enum policy.SubjectMappingOperatorEnum.
938
+ */
939
+ export declare const SubjectMappingOperatorEnumSchema: GenEnum<SubjectMappingOperatorEnum>;
940
+ /**
941
+ * @generated from enum policy.ConditionBooleanTypeEnum
942
+ */
943
+ export declare enum ConditionBooleanTypeEnum {
944
+ /**
945
+ * @generated from enum value: CONDITION_BOOLEAN_TYPE_ENUM_UNSPECIFIED = 0;
946
+ */
947
+ UNSPECIFIED = 0,
948
+ /**
949
+ * @generated from enum value: CONDITION_BOOLEAN_TYPE_ENUM_AND = 1;
950
+ */
951
+ AND = 1,
952
+ /**
953
+ * @generated from enum value: CONDITION_BOOLEAN_TYPE_ENUM_OR = 2;
954
+ */
955
+ OR = 2
956
+ }
957
+ /**
958
+ * Describes the enum policy.ConditionBooleanTypeEnum.
959
+ */
960
+ export declare const ConditionBooleanTypeEnumSchema: GenEnum<ConditionBooleanTypeEnum>;
961
+ /**
962
+ * Describes whether this kas is managed by the organization or if they imported
963
+ * the kas information from an external party. These two modes are necessary in order
964
+ * to encrypt a tdf dek with an external parties kas public key.
965
+ *
966
+ * @generated from enum policy.SourceType
967
+ */
968
+ export declare enum SourceType {
969
+ /**
970
+ * @generated from enum value: SOURCE_TYPE_UNSPECIFIED = 0;
971
+ */
972
+ UNSPECIFIED = 0,
973
+ /**
974
+ * The kas is managed by the organization.
975
+ *
976
+ * @generated from enum value: SOURCE_TYPE_INTERNAL = 1;
977
+ */
978
+ INTERNAL = 1,
979
+ /**
980
+ * The kas is managed by an external party.
981
+ *
982
+ * @generated from enum value: SOURCE_TYPE_EXTERNAL = 2;
983
+ */
984
+ EXTERNAL = 2
985
+ }
986
+ /**
987
+ * Describes the enum policy.SourceType.
988
+ */
989
+ export declare const SourceTypeSchema: GenEnum<SourceType>;
990
+ /**
991
+ * @generated from enum policy.KasPublicKeyAlgEnum
992
+ */
993
+ export declare enum KasPublicKeyAlgEnum {
994
+ /**
995
+ * @generated from enum value: KAS_PUBLIC_KEY_ALG_ENUM_UNSPECIFIED = 0;
996
+ */
997
+ UNSPECIFIED = 0,
998
+ /**
999
+ * @generated from enum value: KAS_PUBLIC_KEY_ALG_ENUM_RSA_2048 = 1;
1000
+ */
1001
+ RSA_2048 = 1,
1002
+ /**
1003
+ * @generated from enum value: KAS_PUBLIC_KEY_ALG_ENUM_RSA_4096 = 2;
1004
+ */
1005
+ RSA_4096 = 2,
1006
+ /**
1007
+ * @generated from enum value: KAS_PUBLIC_KEY_ALG_ENUM_EC_SECP256R1 = 5;
1008
+ */
1009
+ EC_SECP256R1 = 5,
1010
+ /**
1011
+ * @generated from enum value: KAS_PUBLIC_KEY_ALG_ENUM_EC_SECP384R1 = 6;
1012
+ */
1013
+ EC_SECP384R1 = 6,
1014
+ /**
1015
+ * @generated from enum value: KAS_PUBLIC_KEY_ALG_ENUM_EC_SECP521R1 = 7;
1016
+ */
1017
+ EC_SECP521R1 = 7
1018
+ }
1019
+ /**
1020
+ * Describes the enum policy.KasPublicKeyAlgEnum.
1021
+ */
1022
+ export declare const KasPublicKeyAlgEnumSchema: GenEnum<KasPublicKeyAlgEnum>;
1023
+ /**
1024
+ * Supported key algorithms.
1025
+ *
1026
+ * @generated from enum policy.Algorithm
1027
+ */
1028
+ export declare enum Algorithm {
1029
+ /**
1030
+ * @generated from enum value: ALGORITHM_UNSPECIFIED = 0;
1031
+ */
1032
+ UNSPECIFIED = 0,
1033
+ /**
1034
+ * @generated from enum value: ALGORITHM_RSA_2048 = 1;
1035
+ */
1036
+ RSA_2048 = 1,
1037
+ /**
1038
+ * @generated from enum value: ALGORITHM_RSA_4096 = 2;
1039
+ */
1040
+ RSA_4096 = 2,
1041
+ /**
1042
+ * @generated from enum value: ALGORITHM_EC_P256 = 3;
1043
+ */
1044
+ EC_P256 = 3,
1045
+ /**
1046
+ * @generated from enum value: ALGORITHM_EC_P384 = 4;
1047
+ */
1048
+ EC_P384 = 4,
1049
+ /**
1050
+ * @generated from enum value: ALGORITHM_EC_P521 = 5;
1051
+ */
1052
+ EC_P521 = 5
1053
+ }
1054
+ /**
1055
+ * Describes the enum policy.Algorithm.
1056
+ */
1057
+ export declare const AlgorithmSchema: GenEnum<Algorithm>;
1058
+ /**
1059
+ * The status of the key
1060
+ *
1061
+ * @generated from enum policy.KeyStatus
1062
+ */
1063
+ export declare enum KeyStatus {
1064
+ /**
1065
+ * @generated from enum value: KEY_STATUS_UNSPECIFIED = 0;
1066
+ */
1067
+ UNSPECIFIED = 0,
1068
+ /**
1069
+ * @generated from enum value: KEY_STATUS_ACTIVE = 1;
1070
+ */
1071
+ ACTIVE = 1,
1072
+ /**
1073
+ * @generated from enum value: KEY_STATUS_INACTIVE = 2;
1074
+ */
1075
+ INACTIVE = 2,
1076
+ /**
1077
+ * @generated from enum value: KEY_STATUS_COMPROMISED = 3;
1078
+ */
1079
+ COMPROMISED = 3
1080
+ }
1081
+ /**
1082
+ * Describes the enum policy.KeyStatus.
1083
+ */
1084
+ export declare const KeyStatusSchema: GenEnum<KeyStatus>;
1085
+ /**
1086
+ * Describe how the kas private key is managed.
1087
+ * If the key mode is LOCAL, then the kas private key is stored in the database.
1088
+ * This could be encrypted or unencrypted.
1089
+ * Remote means that the kas private key is stored in a remote key system like KMS or HSM
1090
+ * and all operations are done by the remote key system.
1091
+ *
1092
+ * @generated from enum policy.KeyMode
1093
+ */
1094
+ export declare enum KeyMode {
1095
+ /**
1096
+ * @generated from enum value: KEY_MODE_UNSPECIFIED = 0;
1097
+ */
1098
+ UNSPECIFIED = 0,
1099
+ /**
1100
+ * @generated from enum value: KEY_MODE_LOCAL = 1;
1101
+ */
1102
+ LOCAL = 1,
1103
+ /**
1104
+ * @generated from enum value: KEY_MODE_REMOTE = 2;
1105
+ */
1106
+ REMOTE = 2
1107
+ }
1108
+ /**
1109
+ * Describes the enum policy.KeyMode.
1110
+ */
1111
+ export declare const KeyModeSchema: GenEnum<KeyMode>;
1112
+ //# sourceMappingURL=objects_pb.d.ts.map