@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.
Files changed (219) 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 +42 -8
  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/client/index.js +23 -18
  37. package/dist/cjs/tdf3/src/tdf.js +5 -5
  38. package/dist/types/src/access/access-fetch.d.ts +21 -0
  39. package/dist/types/src/access/access-fetch.d.ts.map +1 -0
  40. package/dist/types/src/access/access-rpc.d.ts +22 -0
  41. package/dist/types/src/access/access-rpc.d.ts.map +1 -0
  42. package/dist/types/src/access.d.ts +19 -11
  43. package/dist/types/src/access.d.ts.map +1 -1
  44. package/dist/types/src/nanotdf/Client.d.ts +3 -1
  45. package/dist/types/src/nanotdf/Client.d.ts.map +1 -1
  46. package/dist/types/src/opentdf.d.ts +5 -1
  47. package/dist/types/src/opentdf.d.ts.map +1 -1
  48. package/dist/types/src/platform/authorization/authorization_pb.d.ts +609 -0
  49. package/dist/types/src/platform/authorization/authorization_pb.d.ts.map +1 -0
  50. package/dist/types/src/platform/buf/validate/validate_pb.d.ts +4466 -0
  51. package/dist/types/src/platform/buf/validate/validate_pb.d.ts.map +1 -0
  52. package/dist/types/src/platform/common/common_pb.d.ts +112 -0
  53. package/dist/types/src/platform/common/common_pb.d.ts.map +1 -0
  54. package/dist/types/src/platform/entityresolution/entity_resolution_pb.d.ts +199 -0
  55. package/dist/types/src/platform/entityresolution/entity_resolution_pb.d.ts.map +1 -0
  56. package/dist/types/src/platform/google/api/annotations_pb.d.ts +14 -0
  57. package/dist/types/src/platform/google/api/annotations_pb.d.ts.map +1 -0
  58. package/dist/types/src/platform/google/api/http_pb.d.ts +441 -0
  59. package/dist/types/src/platform/google/api/http_pb.d.ts.map +1 -0
  60. package/dist/types/src/platform/kas/kas_pb.d.ts +404 -0
  61. package/dist/types/src/platform/kas/kas_pb.d.ts.map +1 -0
  62. package/dist/types/src/platform/policy/actions/actions_pb.d.ts +265 -0
  63. package/dist/types/src/platform/policy/actions/actions_pb.d.ts.map +1 -0
  64. package/dist/types/src/platform/policy/attributes/attributes_pb.d.ts +1022 -0
  65. package/dist/types/src/platform/policy/attributes/attributes_pb.d.ts.map +1 -0
  66. package/dist/types/src/platform/policy/kasregistry/key_access_server_registry_pb.d.ts +1306 -0
  67. package/dist/types/src/platform/policy/kasregistry/key_access_server_registry_pb.d.ts.map +1 -0
  68. package/dist/types/src/platform/policy/keymanagement/key_management_pb.d.ts +269 -0
  69. package/dist/types/src/platform/policy/keymanagement/key_management_pb.d.ts.map +1 -0
  70. package/dist/types/src/platform/policy/namespaces/namespaces_pb.d.ts +448 -0
  71. package/dist/types/src/platform/policy/namespaces/namespaces_pb.d.ts.map +1 -0
  72. package/dist/types/src/platform/policy/objects_pb.d.ts +1112 -0
  73. package/dist/types/src/platform/policy/objects_pb.d.ts.map +1 -0
  74. package/dist/types/src/platform/policy/registeredresources/registered_resources_pb.d.ts +539 -0
  75. package/dist/types/src/platform/policy/registeredresources/registered_resources_pb.d.ts.map +1 -0
  76. package/dist/types/src/platform/policy/resourcemapping/resource_mapping_pb.d.ts +558 -0
  77. package/dist/types/src/platform/policy/resourcemapping/resource_mapping_pb.d.ts.map +1 -0
  78. package/dist/types/src/platform/policy/selectors_pb.d.ts +221 -0
  79. package/dist/types/src/platform/policy/selectors_pb.d.ts.map +1 -0
  80. package/dist/types/src/platform/policy/subjectmapping/subject_mapping_pb.d.ts +582 -0
  81. package/dist/types/src/platform/policy/subjectmapping/subject_mapping_pb.d.ts.map +1 -0
  82. package/dist/types/src/platform/policy/unsafe/unsafe_pb.d.ts +513 -0
  83. package/dist/types/src/platform/policy/unsafe/unsafe_pb.d.ts.map +1 -0
  84. package/dist/types/src/platform/protoc-gen-openapiv2/options/annotations_pb.d.ts +62 -0
  85. package/dist/types/src/platform/protoc-gen-openapiv2/options/annotations_pb.d.ts.map +1 -0
  86. package/dist/types/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +1441 -0
  87. package/dist/types/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.d.ts.map +1 -0
  88. package/dist/types/src/platform/wellknownconfiguration/wellknown_configuration_pb.d.ts +59 -0
  89. package/dist/types/src/platform/wellknownconfiguration/wellknown_configuration_pb.d.ts.map +1 -0
  90. package/dist/types/src/platform.d.ts +49 -0
  91. package/dist/types/src/platform.d.ts.map +1 -0
  92. package/dist/types/src/policy/api.d.ts +1 -1
  93. package/dist/types/src/policy/api.d.ts.map +1 -1
  94. package/dist/types/src/policy/attributes.d.ts +10 -87
  95. package/dist/types/src/policy/attributes.d.ts.map +1 -1
  96. package/dist/types/src/policy/granter.d.ts.map +1 -1
  97. package/dist/types/src/utils.d.ts +10 -0
  98. package/dist/types/src/utils.d.ts.map +1 -1
  99. package/dist/types/src/version.d.ts +1 -1
  100. package/dist/types/tdf3/src/client/index.d.ts +8 -3
  101. package/dist/types/tdf3/src/client/index.d.ts.map +1 -1
  102. package/dist/types/tdf3/src/tdf.d.ts.map +1 -1
  103. package/dist/web/src/access/access-fetch.js +150 -0
  104. package/dist/web/src/access/access-rpc.js +125 -0
  105. package/dist/web/src/access.js +82 -110
  106. package/dist/web/src/auth/oidc.js +2 -2
  107. package/dist/web/src/nanotdf/Client.js +18 -14
  108. package/dist/web/src/nanotdf/models/Header.js +2 -2
  109. package/dist/web/src/nanotdf-crypto/keyAgreement.js +2 -2
  110. package/dist/web/src/opentdf.js +43 -9
  111. package/dist/web/src/platform/authorization/authorization_pb.js +135 -0
  112. package/dist/web/src/platform/buf/validate/validate_pb.js +407 -0
  113. package/dist/web/src/platform/common/common_pb.js +76 -0
  114. package/dist/web/src/platform/entityresolution/entity_resolution_pb.js +46 -0
  115. package/dist/web/src/platform/google/api/annotations_pb.js +27 -0
  116. package/dist/web/src/platform/google/api/http_pb.js +34 -0
  117. package/dist/web/src/platform/kas/kas_pb.js +93 -0
  118. package/dist/web/src/platform/policy/actions/actions_pb.js +67 -0
  119. package/dist/web/src/platform/policy/attributes/attributes_pb.js +237 -0
  120. package/dist/web/src/platform/policy/kasregistry/key_access_server_registry_pb.js +233 -0
  121. package/dist/web/src/platform/policy/keymanagement/key_management_pb.js +67 -0
  122. package/dist/web/src/platform/policy/namespaces/namespaces_pb.js +118 -0
  123. package/dist/web/src/platform/policy/objects_pb.js +392 -0
  124. package/dist/web/src/platform/policy/registeredresources/registered_resources_pb.js +129 -0
  125. package/dist/web/src/platform/policy/resourcemapping/resource_mapping_pb.js +136 -0
  126. package/dist/web/src/platform/policy/selectors_pb.js +64 -0
  127. package/dist/web/src/platform/policy/subjectmapping/subject_mapping_pb.js +143 -0
  128. package/dist/web/src/platform/policy/unsafe/unsafe_pb.js +121 -0
  129. package/dist/web/src/platform/protoc-gen-openapiv2/options/annotations_pb.js +65 -0
  130. package/dist/web/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.js +304 -0
  131. package/dist/web/src/platform/wellknownconfiguration/wellknown_configuration_pb.js +30 -0
  132. package/dist/web/src/platform.js +87 -0
  133. package/dist/web/src/policy/api.js +23 -40
  134. package/dist/web/src/policy/attributes.js +3 -2
  135. package/dist/web/src/policy/granter.js +9 -9
  136. package/dist/web/src/utils.js +29 -1
  137. package/dist/web/src/version.js +2 -2
  138. package/dist/web/tdf3/src/client/index.js +25 -20
  139. package/dist/web/tdf3/src/tdf.js +5 -5
  140. package/package.json +17 -1
  141. package/src/access/access-fetch.ts +202 -0
  142. package/src/access/access-rpc.ts +175 -0
  143. package/src/access.ts +113 -138
  144. package/src/auth/oidc.ts +1 -1
  145. package/src/nanotdf/Client.ts +28 -18
  146. package/src/nanotdf/models/Header.ts +1 -1
  147. package/src/nanotdf-crypto/keyAgreement.ts +1 -1
  148. package/src/opentdf.ts +66 -10
  149. package/src/platform/authorization/authorization_pb.ts +689 -0
  150. package/src/platform/buf/validate/validate_pb.ts +4626 -0
  151. package/src/platform/common/common_pb.ts +135 -0
  152. package/src/platform/entityresolution/entity_resolution_pb.ts +233 -0
  153. package/src/platform/google/api/annotations_pb.ts +39 -0
  154. package/src/platform/google/api/http_pb.ts +474 -0
  155. package/src/platform/kas/kas_pb.ts +484 -0
  156. package/src/platform/policy/actions/actions_pb.ts +312 -0
  157. package/src/platform/policy/attributes/attributes_pb.ts +1181 -0
  158. package/src/platform/policy/kasregistry/key_access_server_registry_pb.ts +1482 -0
  159. package/src/platform/policy/keymanagement/key_management_pb.ts +316 -0
  160. package/src/platform/policy/namespaces/namespaces_pb.ts +528 -0
  161. package/src/platform/policy/objects_pb.ts +1319 -0
  162. package/src/platform/policy/registeredresources/registered_resources_pb.ts +623 -0
  163. package/src/platform/policy/resourcemapping/resource_mapping_pb.ts +658 -0
  164. package/src/platform/policy/selectors_pb.ts +277 -0
  165. package/src/platform/policy/subjectmapping/subject_mapping_pb.ts +687 -0
  166. package/src/platform/policy/unsafe/unsafe_pb.ts +593 -0
  167. package/src/platform/protoc-gen-openapiv2/options/annotations_pb.ts +83 -0
  168. package/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.ts +1615 -0
  169. package/src/platform/wellknownconfiguration/wellknown_configuration_pb.ts +78 -0
  170. package/src/platform.ts +122 -0
  171. package/src/policy/api.ts +29 -42
  172. package/src/policy/attributes.ts +12 -108
  173. package/src/policy/granter.ts +7 -8
  174. package/src/utils.ts +30 -0
  175. package/src/version.ts +1 -1
  176. package/tdf3/src/client/index.ts +40 -19
  177. package/tdf3/src/tdf.ts +5 -6
  178. package/src/platform/authorization/authorization_connect.d.ts +0 -44
  179. package/src/platform/authorization/authorization_connect.js +0 -44
  180. package/src/platform/authorization/authorization_pb.d.ts +0 -707
  181. package/src/platform/authorization/authorization_pb.js +0 -372
  182. package/src/platform/common/common_pb.d.ts +0 -129
  183. package/src/platform/common/common_pb.js +0 -58
  184. package/src/platform/entityresolution/entity_resolution_connect.d.ts +0 -35
  185. package/src/platform/entityresolution/entity_resolution_connect.js +0 -35
  186. package/src/platform/entityresolution/entity_resolution_pb.d.ts +0 -242
  187. package/src/platform/entityresolution/entity_resolution_pb.js +0 -139
  188. package/src/platform/kas/kas_connect.d.ts +0 -59
  189. package/src/platform/kas/kas_connect.js +0 -59
  190. package/src/platform/kas/kas_pb.d.ts +0 -200
  191. package/src/platform/kas/kas_pb.js +0 -84
  192. package/src/platform/policy/attributes/attributes_connect.d.ts +0 -168
  193. package/src/platform/policy/attributes/attributes_connect.js +0 -168
  194. package/src/platform/policy/attributes/attributes_pb.d.ts +0 -929
  195. package/src/platform/policy/attributes/attributes_pb.js +0 -363
  196. package/src/platform/policy/kasregistry/key_access_server_registry_connect.d.ts +0 -62
  197. package/src/platform/policy/kasregistry/key_access_server_registry_connect.js +0 -62
  198. package/src/platform/policy/kasregistry/key_access_server_registry_pb.d.ts +0 -283
  199. package/src/platform/policy/kasregistry/key_access_server_registry_pb.js +0 -113
  200. package/src/platform/policy/namespaces/namespaces_connect.d.ts +0 -62
  201. package/src/platform/policy/namespaces/namespaces_connect.js +0 -62
  202. package/src/platform/policy/namespaces/namespaces_pb.d.ts +0 -270
  203. package/src/platform/policy/namespaces/namespaces_pb.js +0 -110
  204. package/src/platform/policy/objects_pb.d.ts +0 -725
  205. package/src/platform/policy/objects_pb.js +0 -288
  206. package/src/platform/policy/resourcemapping/resource_mapping_connect.d.ts +0 -259
  207. package/src/platform/policy/resourcemapping/resource_mapping_connect.js +0 -259
  208. package/src/platform/policy/resourcemapping/resource_mapping_pb.d.ts +0 -314
  209. package/src/platform/policy/resourcemapping/resource_mapping_pb.js +0 -142
  210. package/src/platform/policy/selectors_pb.d.ts +0 -269
  211. package/src/platform/policy/selectors_pb.js +0 -110
  212. package/src/platform/policy/subjectmapping/subject_mapping_connect.d.ts +0 -118
  213. package/src/platform/policy/subjectmapping/subject_mapping_connect.js +0 -118
  214. package/src/platform/policy/subjectmapping/subject_mapping_pb.d.ts +0 -672
  215. package/src/platform/policy/subjectmapping/subject_mapping_pb.js +0 -260
  216. package/src/platform/wellknownconfiguration/wellknown_configuration_connect.d.ts +0 -26
  217. package/src/platform/wellknownconfiguration/wellknown_configuration_connect.js +0 -26
  218. package/src/platform/wellknownconfiguration/wellknown_configuration_pb.d.ts +0 -75
  219. package/src/platform/wellknownconfiguration/wellknown_configuration_pb.js +0 -35
@@ -1,725 +0,0 @@
1
- // @generated by protoc-gen-es v1.9.0 with parameter "target=js+dts,import_extension=none"
2
- // @generated from file policy/objects.proto (package policy, syntax proto3)
3
- /* eslint-disable */
4
- // @ts-nocheck
5
-
6
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
- import { Message, proto3 } from "@bufbuild/protobuf";
8
- import type { Metadata } from "../common/common_pb";
9
-
10
- /**
11
- * 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
12
- *
13
- * @generated from enum policy.AttributeRuleTypeEnum
14
- */
15
- export declare enum AttributeRuleTypeEnum {
16
- /**
17
- * @generated from enum value: ATTRIBUTE_RULE_TYPE_ENUM_UNSPECIFIED = 0;
18
- */
19
- UNSPECIFIED = 0,
20
-
21
- /**
22
- * @generated from enum value: ATTRIBUTE_RULE_TYPE_ENUM_ALL_OF = 1;
23
- */
24
- ALL_OF = 1,
25
-
26
- /**
27
- * @generated from enum value: ATTRIBUTE_RULE_TYPE_ENUM_ANY_OF = 2;
28
- */
29
- ANY_OF = 2,
30
-
31
- /**
32
- * @generated from enum value: ATTRIBUTE_RULE_TYPE_ENUM_HIERARCHY = 3;
33
- */
34
- HIERARCHY = 3,
35
- }
36
-
37
- /**
38
- * 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
39
- *
40
- * @generated from enum policy.SubjectMappingOperatorEnum
41
- */
42
- export declare enum SubjectMappingOperatorEnum {
43
- /**
44
- * @generated from enum value: SUBJECT_MAPPING_OPERATOR_ENUM_UNSPECIFIED = 0;
45
- */
46
- UNSPECIFIED = 0,
47
-
48
- /**
49
- * @generated from enum value: SUBJECT_MAPPING_OPERATOR_ENUM_IN = 1;
50
- */
51
- IN = 1,
52
-
53
- /**
54
- * @generated from enum value: SUBJECT_MAPPING_OPERATOR_ENUM_NOT_IN = 2;
55
- */
56
- NOT_IN = 2,
57
- }
58
-
59
- /**
60
- * 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
61
- *
62
- * @generated from enum policy.ConditionBooleanTypeEnum
63
- */
64
- export declare enum ConditionBooleanTypeEnum {
65
- /**
66
- * @generated from enum value: CONDITION_BOOLEAN_TYPE_ENUM_UNSPECIFIED = 0;
67
- */
68
- UNSPECIFIED = 0,
69
-
70
- /**
71
- * @generated from enum value: CONDITION_BOOLEAN_TYPE_ENUM_AND = 1;
72
- */
73
- AND = 1,
74
-
75
- /**
76
- * @generated from enum value: CONDITION_BOOLEAN_TYPE_ENUM_OR = 2;
77
- */
78
- OR = 2,
79
- }
80
-
81
- /**
82
- * @generated from message policy.Namespace
83
- */
84
- export declare class Namespace extends Message<Namespace> {
85
- /**
86
- * generated uuid in database
87
- *
88
- * @generated from field: string id = 1;
89
- */
90
- id: string;
91
-
92
- /**
93
- * used to partition Attribute Definitions, support by namespace AuthN and enable federation
94
- *
95
- * @generated from field: string name = 2;
96
- */
97
- name: string;
98
-
99
- /**
100
- * @generated from field: string fqn = 3;
101
- */
102
- fqn: string;
103
-
104
- /**
105
- * active by default until explicitly deactivated
106
- *
107
- * @generated from field: google.protobuf.BoolValue active = 4;
108
- */
109
- active?: boolean;
110
-
111
- /**
112
- * @generated from field: common.Metadata metadata = 5;
113
- */
114
- metadata?: Metadata;
115
-
116
- constructor(data?: PartialMessage<Namespace>);
117
-
118
- static readonly runtime: typeof proto3;
119
- static readonly typeName = "policy.Namespace";
120
- static readonly fields: FieldList;
121
-
122
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Namespace;
123
-
124
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Namespace;
125
-
126
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Namespace;
127
-
128
- static equals(a: Namespace | PlainMessage<Namespace> | undefined, b: Namespace | PlainMessage<Namespace> | undefined): boolean;
129
- }
130
-
131
- /**
132
- * @generated from message policy.Attribute
133
- */
134
- export declare class Attribute extends Message<Attribute> {
135
- /**
136
- * @generated from field: string id = 1;
137
- */
138
- id: string;
139
-
140
- /**
141
- * namespace of the attribute
142
- *
143
- * @generated from field: policy.Namespace namespace = 2;
144
- */
145
- namespace?: Namespace;
146
-
147
- /**
148
- * attribute name
149
- *
150
- * @generated from field: string name = 3;
151
- */
152
- name: string;
153
-
154
- /**
155
- * attribute rule enum
156
- *
157
- * @generated from field: policy.AttributeRuleTypeEnum rule = 4;
158
- */
159
- rule: AttributeRuleTypeEnum;
160
-
161
- /**
162
- * @generated from field: repeated policy.Value values = 5;
163
- */
164
- values: Value[];
165
-
166
- /**
167
- * @generated from field: repeated policy.KeyAccessServer grants = 6;
168
- */
169
- grants: KeyAccessServer[];
170
-
171
- /**
172
- * @generated from field: string fqn = 7;
173
- */
174
- fqn: string;
175
-
176
- /**
177
- * active by default until explicitly deactivated
178
- *
179
- * @generated from field: google.protobuf.BoolValue active = 8;
180
- */
181
- active?: boolean;
182
-
183
- /**
184
- * Common metadata
185
- *
186
- * @generated from field: common.Metadata metadata = 100;
187
- */
188
- metadata?: Metadata;
189
-
190
- constructor(data?: PartialMessage<Attribute>);
191
-
192
- static readonly runtime: typeof proto3;
193
- static readonly typeName = "policy.Attribute";
194
- static readonly fields: FieldList;
195
-
196
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Attribute;
197
-
198
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Attribute;
199
-
200
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Attribute;
201
-
202
- static equals(a: Attribute | PlainMessage<Attribute> | undefined, b: Attribute | PlainMessage<Attribute> | undefined): boolean;
203
- }
204
-
205
- /**
206
- * @generated from message policy.Value
207
- */
208
- export declare class Value extends Message<Value> {
209
- /**
210
- * generated uuid in database
211
- *
212
- * @generated from field: string id = 1;
213
- */
214
- id: string;
215
-
216
- /**
217
- * @generated from field: policy.Attribute attribute = 2;
218
- */
219
- attribute?: Attribute;
220
-
221
- /**
222
- * @generated from field: string value = 3;
223
- */
224
- value: string;
225
-
226
- /**
227
- * list of attribute values that this value is related to (attribute group)
228
- *
229
- * @generated from field: repeated policy.Value members = 4;
230
- */
231
- members: Value[];
232
-
233
- /**
234
- * list of key access servers
235
- *
236
- * @generated from field: repeated policy.KeyAccessServer grants = 5;
237
- */
238
- grants: KeyAccessServer[];
239
-
240
- /**
241
- * @generated from field: string fqn = 6;
242
- */
243
- fqn: string;
244
-
245
- /**
246
- * active by default until explicitly deactivated
247
- *
248
- * @generated from field: google.protobuf.BoolValue active = 7;
249
- */
250
- active?: boolean;
251
-
252
- /**
253
- * subject mapping
254
- *
255
- * @generated from field: repeated policy.SubjectMapping subject_mappings = 8;
256
- */
257
- subjectMappings: SubjectMapping[];
258
-
259
- /**
260
- * Common metadata
261
- *
262
- * @generated from field: common.Metadata metadata = 100;
263
- */
264
- metadata?: Metadata;
265
-
266
- constructor(data?: PartialMessage<Value>);
267
-
268
- static readonly runtime: typeof proto3;
269
- static readonly typeName = "policy.Value";
270
- static readonly fields: FieldList;
271
-
272
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Value;
273
-
274
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Value;
275
-
276
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Value;
277
-
278
- static equals(a: Value | PlainMessage<Value> | undefined, b: Value | PlainMessage<Value> | undefined): boolean;
279
- }
280
-
281
- /**
282
- * An action an entity can take
283
- *
284
- * @generated from message policy.Action
285
- */
286
- export declare class Action extends Message<Action> {
287
- /**
288
- * @generated from oneof policy.Action.value
289
- */
290
- value: {
291
- /**
292
- * @generated from field: policy.Action.StandardAction standard = 1;
293
- */
294
- value: Action_StandardAction;
295
- case: "standard";
296
- } | {
297
- /**
298
- * @generated from field: string custom = 2;
299
- */
300
- value: string;
301
- case: "custom";
302
- } | { case: undefined; value?: undefined };
303
-
304
- constructor(data?: PartialMessage<Action>);
305
-
306
- static readonly runtime: typeof proto3;
307
- static readonly typeName = "policy.Action";
308
- static readonly fields: FieldList;
309
-
310
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Action;
311
-
312
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Action;
313
-
314
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Action;
315
-
316
- static equals(a: Action | PlainMessage<Action> | undefined, b: Action | PlainMessage<Action> | undefined): boolean;
317
- }
318
-
319
- /**
320
- * Standard actions supported by the platform
321
- *
322
- * @generated from enum policy.Action.StandardAction
323
- */
324
- export declare enum Action_StandardAction {
325
- /**
326
- * @generated from enum value: STANDARD_ACTION_UNSPECIFIED = 0;
327
- */
328
- UNSPECIFIED = 0,
329
-
330
- /**
331
- * @generated from enum value: STANDARD_ACTION_DECRYPT = 1;
332
- */
333
- DECRYPT = 1,
334
-
335
- /**
336
- * @generated from enum value: STANDARD_ACTION_TRANSMIT = 2;
337
- */
338
- TRANSMIT = 2,
339
- }
340
-
341
- /**
342
- *
343
- * Subject Mapping: A Policy assigning Subject Set(s) to a permitted attribute value + action(s) combination
344
- *
345
- * Example: Subjects in sets 1 and 2 are entitled attribute value http://wwww.example.org/attr/example/value/one
346
- * with permitted actions TRANSMIT and DECRYPT
347
- * {
348
- * "id": "someid",
349
- * "attribute_value": {example_one_attribute_value...},
350
- * "subject_condition_set": {"subject_sets":[{subject_set_1},{subject_set_2}]...},
351
- * "actions": [{"standard": "STANDARD_ACTION_DECRYPT"}", {"standard": "STANDARD_ACTION_TRANSMIT"}]
352
- * }
353
- *
354
- * @generated from message policy.SubjectMapping
355
- */
356
- export declare class SubjectMapping extends Message<SubjectMapping> {
357
- /**
358
- * @generated from field: string id = 1;
359
- */
360
- id: string;
361
-
362
- /**
363
- * the Attribute Value mapped to; aka: "The Entity Entitlement Attribute"
364
- *
365
- * @generated from field: policy.Value attribute_value = 2;
366
- */
367
- attributeValue?: Value;
368
-
369
- /**
370
- * the reusable SubjectConditionSet mapped to the given Attribute Value
371
- *
372
- * @generated from field: policy.SubjectConditionSet subject_condition_set = 3;
373
- */
374
- subjectConditionSet?: SubjectConditionSet;
375
-
376
- /**
377
- * The actions permitted by subjects in this mapping
378
- *
379
- * @generated from field: repeated policy.Action actions = 4;
380
- */
381
- actions: Action[];
382
-
383
- /**
384
- * @generated from field: common.Metadata metadata = 100;
385
- */
386
- metadata?: Metadata;
387
-
388
- constructor(data?: PartialMessage<SubjectMapping>);
389
-
390
- static readonly runtime: typeof proto3;
391
- static readonly typeName = "policy.SubjectMapping";
392
- static readonly fields: FieldList;
393
-
394
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubjectMapping;
395
-
396
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubjectMapping;
397
-
398
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubjectMapping;
399
-
400
- static equals(a: SubjectMapping | PlainMessage<SubjectMapping> | undefined, b: SubjectMapping | PlainMessage<SubjectMapping> | undefined): boolean;
401
- }
402
-
403
- /**
404
- * *
405
- * A Condition defines a rule of <the value at the flattened 'selector value' location> <operator> <subject external values>
406
- *
407
- * Example: Subjects with a field selected by the flattened selector "'.division'" and a value of "Accounting" or "Marketing":
408
- * {
409
- * "subject_external_selector_value": "'.division'",
410
- * "operator": "SUBJECT_MAPPING_OPERATOR_ENUM_IN",
411
- * "subject_external_values" : ["Accounting", "Marketing"]
412
- * }
413
- *
414
- * Example: Subjects that are not part of the Fantastic Four according to their alias field:
415
- * {
416
- * "subject_external_selector_value": "'.data[0].alias'",
417
- * "operator": "SUBJECT_MAPPING_OPERATOR_ENUM_NOT_IN",
418
- * "subject_external_values" : ["mister_fantastic", "the_thing", "human_torch", "invisible_woman"]
419
- * }
420
- *
421
- * @generated from message policy.Condition
422
- */
423
- export declare class Condition extends Message<Condition> {
424
- /**
425
- * a selector for a field value on a flattened Entity Representation (such as from idP/LDAP)
426
- *
427
- * @generated from field: string subject_external_selector_value = 1;
428
- */
429
- subjectExternalSelectorValue: string;
430
-
431
- /**
432
- * the evaluation operator of relation
433
- *
434
- * @generated from field: policy.SubjectMappingOperatorEnum operator = 2;
435
- */
436
- operator: SubjectMappingOperatorEnum;
437
-
438
- /**
439
- * list of comparison values for the result of applying the subject_external_selector_value on a flattened Entity Representation (Subject), evaluated by the operator
440
- *
441
- * @generated from field: repeated string subject_external_values = 3;
442
- */
443
- subjectExternalValues: string[];
444
-
445
- constructor(data?: PartialMessage<Condition>);
446
-
447
- static readonly runtime: typeof proto3;
448
- static readonly typeName = "policy.Condition";
449
- static readonly fields: FieldList;
450
-
451
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Condition;
452
-
453
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Condition;
454
-
455
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Condition;
456
-
457
- static equals(a: Condition | PlainMessage<Condition> | undefined, b: Condition | PlainMessage<Condition> | undefined): boolean;
458
- }
459
-
460
- /**
461
- * A collection of Conditions evaluated by the boolean_operator provided
462
- *
463
- * @generated from message policy.ConditionGroup
464
- */
465
- export declare class ConditionGroup extends Message<ConditionGroup> {
466
- /**
467
- * @generated from field: repeated policy.Condition conditions = 1;
468
- */
469
- conditions: Condition[];
470
-
471
- /**
472
- * the boolean evaluation type across the conditions
473
- *
474
- * @generated from field: policy.ConditionBooleanTypeEnum boolean_operator = 2;
475
- */
476
- booleanOperator: ConditionBooleanTypeEnum;
477
-
478
- constructor(data?: PartialMessage<ConditionGroup>);
479
-
480
- static readonly runtime: typeof proto3;
481
- static readonly typeName = "policy.ConditionGroup";
482
- static readonly fields: FieldList;
483
-
484
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConditionGroup;
485
-
486
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConditionGroup;
487
-
488
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConditionGroup;
489
-
490
- static equals(a: ConditionGroup | PlainMessage<ConditionGroup> | undefined, b: ConditionGroup | PlainMessage<ConditionGroup> | undefined): boolean;
491
- }
492
-
493
- /**
494
- * A collection of Condition Groups
495
- *
496
- * @generated from message policy.SubjectSet
497
- */
498
- export declare class SubjectSet extends Message<SubjectSet> {
499
- /**
500
- * multiple Condition Groups are evaluated with AND logic
501
- *
502
- * @generated from field: repeated policy.ConditionGroup condition_groups = 1;
503
- */
504
- conditionGroups: ConditionGroup[];
505
-
506
- constructor(data?: PartialMessage<SubjectSet>);
507
-
508
- static readonly runtime: typeof proto3;
509
- static readonly typeName = "policy.SubjectSet";
510
- static readonly fields: FieldList;
511
-
512
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubjectSet;
513
-
514
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubjectSet;
515
-
516
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubjectSet;
517
-
518
- static equals(a: SubjectSet | PlainMessage<SubjectSet> | undefined, b: SubjectSet | PlainMessage<SubjectSet> | undefined): boolean;
519
- }
520
-
521
- /**
522
- *
523
- * A container for multiple Subject Sets, each containing Condition Groups, each containing Conditions. Multiple Subject Sets in a SubjectConditionSet
524
- * are evaluated with AND logic. As each Subject Mapping has only one Attribute Value, the SubjectConditionSet is reusable across multiple
525
- * Subject Mappings / Attribute Values and is an independent unit.
526
- *
527
- * @generated from message policy.SubjectConditionSet
528
- */
529
- export declare class SubjectConditionSet extends Message<SubjectConditionSet> {
530
- /**
531
- * @generated from field: string id = 1;
532
- */
533
- id: string;
534
-
535
- /**
536
- * @generated from field: repeated policy.SubjectSet subject_sets = 3;
537
- */
538
- subjectSets: SubjectSet[];
539
-
540
- /**
541
- * @generated from field: common.Metadata metadata = 100;
542
- */
543
- metadata?: Metadata;
544
-
545
- constructor(data?: PartialMessage<SubjectConditionSet>);
546
-
547
- static readonly runtime: typeof proto3;
548
- static readonly typeName = "policy.SubjectConditionSet";
549
- static readonly fields: FieldList;
550
-
551
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubjectConditionSet;
552
-
553
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubjectConditionSet;
554
-
555
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubjectConditionSet;
556
-
557
- static equals(a: SubjectConditionSet | PlainMessage<SubjectConditionSet> | undefined, b: SubjectConditionSet | PlainMessage<SubjectConditionSet> | undefined): boolean;
558
- }
559
-
560
- /**
561
- *
562
- *
563
- * A property of a Subject/Entity as its selector expression -> value result pair. This would mirror external user attributes retrieved
564
- * from an authoritative source such as an IDP (Identity Provider) or User Store. Examples include such ADFS/LDAP, OKTA, etc.
565
- * For now, a valid property must contain both a selector expression & a resulting value.
566
- *
567
- * The external_selector_value is a specifier to select a value from a flattened external representation of an Entity (such as from idP/LDAP),
568
- * and the external_value is the value selected by the external_selector_value on that Entity Representation (Subject Context). These mirror the Condition.
569
- *
570
- * @generated from message policy.SubjectProperty
571
- */
572
- export declare class SubjectProperty extends Message<SubjectProperty> {
573
- /**
574
- * @generated from field: string external_selector_value = 1;
575
- */
576
- externalSelectorValue: string;
577
-
578
- /**
579
- * @generated from field: string external_value = 2;
580
- */
581
- externalValue: string;
582
-
583
- constructor(data?: PartialMessage<SubjectProperty>);
584
-
585
- static readonly runtime: typeof proto3;
586
- static readonly typeName = "policy.SubjectProperty";
587
- static readonly fields: FieldList;
588
-
589
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubjectProperty;
590
-
591
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubjectProperty;
592
-
593
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubjectProperty;
594
-
595
- static equals(a: SubjectProperty | PlainMessage<SubjectProperty> | undefined, b: SubjectProperty | PlainMessage<SubjectProperty> | undefined): boolean;
596
- }
597
-
598
- /**
599
- *
600
- * Resource Mappings (aka Access Control Resource Encodings aka ACRE) are structures supporting the mapping of Resources and Attribute Values
601
- *
602
- * @generated from message policy.ResourceMapping
603
- */
604
- export declare class ResourceMapping extends Message<ResourceMapping> {
605
- /**
606
- * @generated from field: string id = 1;
607
- */
608
- id: string;
609
-
610
- /**
611
- * @generated from field: common.Metadata metadata = 2;
612
- */
613
- metadata?: Metadata;
614
-
615
- /**
616
- * @generated from field: policy.Value attribute_value = 3;
617
- */
618
- attributeValue?: Value;
619
-
620
- /**
621
- * @generated from field: repeated string terms = 4;
622
- */
623
- terms: string[];
624
-
625
- constructor(data?: PartialMessage<ResourceMapping>);
626
-
627
- static readonly runtime: typeof proto3;
628
- static readonly typeName = "policy.ResourceMapping";
629
- static readonly fields: FieldList;
630
-
631
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResourceMapping;
632
-
633
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResourceMapping;
634
-
635
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResourceMapping;
636
-
637
- static equals(a: ResourceMapping | PlainMessage<ResourceMapping> | undefined, b: ResourceMapping | PlainMessage<ResourceMapping> | undefined): boolean;
638
- }
639
-
640
- /**
641
- *
642
- * Key Access Server Registry
643
- *
644
- * @generated from message policy.KeyAccessServer
645
- */
646
- export declare class KeyAccessServer extends Message<KeyAccessServer> {
647
- /**
648
- * @generated from field: string id = 1;
649
- */
650
- id: string;
651
-
652
- /**
653
- * Address of a KAS instance
654
- *
655
- * @generated from field: string uri = 2;
656
- */
657
- uri: string;
658
-
659
- /**
660
- * @generated from field: policy.PublicKey public_key = 3;
661
- */
662
- publicKey?: PublicKey;
663
-
664
- /**
665
- * Common metadata
666
- *
667
- * @generated from field: common.Metadata metadata = 100;
668
- */
669
- metadata?: Metadata;
670
-
671
- constructor(data?: PartialMessage<KeyAccessServer>);
672
-
673
- static readonly runtime: typeof proto3;
674
- static readonly typeName = "policy.KeyAccessServer";
675
- static readonly fields: FieldList;
676
-
677
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): KeyAccessServer;
678
-
679
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): KeyAccessServer;
680
-
681
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): KeyAccessServer;
682
-
683
- static equals(a: KeyAccessServer | PlainMessage<KeyAccessServer> | undefined, b: KeyAccessServer | PlainMessage<KeyAccessServer> | undefined): boolean;
684
- }
685
-
686
- /**
687
- * @generated from message policy.PublicKey
688
- */
689
- export declare class PublicKey extends Message<PublicKey> {
690
- /**
691
- * @generated from oneof policy.PublicKey.public_key
692
- */
693
- publicKey: {
694
- /**
695
- * kas public key url - optional since can also be retrieved via public key
696
- *
697
- * @generated from field: string remote = 1;
698
- */
699
- value: string;
700
- case: "remote";
701
- } | {
702
- /**
703
- * public key - optional since can also be retrieved via url
704
- *
705
- * @generated from field: string local = 2;
706
- */
707
- value: string;
708
- case: "local";
709
- } | { case: undefined; value?: undefined };
710
-
711
- constructor(data?: PartialMessage<PublicKey>);
712
-
713
- static readonly runtime: typeof proto3;
714
- static readonly typeName = "policy.PublicKey";
715
- static readonly fields: FieldList;
716
-
717
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublicKey;
718
-
719
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublicKey;
720
-
721
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublicKey;
722
-
723
- static equals(a: PublicKey | PlainMessage<PublicKey> | undefined, b: PublicKey | PlainMessage<PublicKey> | undefined): boolean;
724
- }
725
-