@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,1306 @@
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
2
+ import type { Metadata, MetadataMutable, MetadataUpdateEnum } from "../../common/common_pb.js";
3
+ import type { Algorithm, KasKey, KasPublicKey, Key, KeyAccessServer, KeyMode, KeyStatus, PublicKey, SourceType } from "../objects_pb.js";
4
+ import type { PageRequest, PageResponse } from "../selectors_pb.js";
5
+ import type { Message } from "@bufbuild/protobuf";
6
+ /**
7
+ * Describes the file policy/kasregistry/key_access_server_registry.proto.
8
+ */
9
+ export declare const file_policy_kasregistry_key_access_server_registry: GenFile;
10
+ /**
11
+ * @generated from message policy.kasregistry.GetKeyAccessServerRequest
12
+ */
13
+ export type GetKeyAccessServerRequest = Message<"policy.kasregistry.GetKeyAccessServerRequest"> & {
14
+ /**
15
+ * Deprecated
16
+ *
17
+ * @generated from field: string id = 1 [deprecated = true];
18
+ * @deprecated
19
+ */
20
+ id: string;
21
+ /**
22
+ * @generated from oneof policy.kasregistry.GetKeyAccessServerRequest.identifier
23
+ */
24
+ identifier: {
25
+ /**
26
+ * option (buf.validate.oneof).required = true; // TODO: enable this when we remove the deprecated field
27
+ *
28
+ * @generated from field: string kas_id = 2;
29
+ */
30
+ value: string;
31
+ case: "kasId";
32
+ } | {
33
+ /**
34
+ * @generated from field: string name = 3;
35
+ */
36
+ value: string;
37
+ case: "name";
38
+ } | {
39
+ /**
40
+ * @generated from field: string uri = 4;
41
+ */
42
+ value: string;
43
+ case: "uri";
44
+ } | {
45
+ case: undefined;
46
+ value?: undefined;
47
+ };
48
+ };
49
+ /**
50
+ * Describes the message policy.kasregistry.GetKeyAccessServerRequest.
51
+ * Use `create(GetKeyAccessServerRequestSchema)` to create a new message.
52
+ */
53
+ export declare const GetKeyAccessServerRequestSchema: GenMessage<GetKeyAccessServerRequest>;
54
+ /**
55
+ * @generated from message policy.kasregistry.GetKeyAccessServerResponse
56
+ */
57
+ export type GetKeyAccessServerResponse = Message<"policy.kasregistry.GetKeyAccessServerResponse"> & {
58
+ /**
59
+ * @generated from field: policy.KeyAccessServer key_access_server = 1;
60
+ */
61
+ keyAccessServer?: KeyAccessServer;
62
+ };
63
+ /**
64
+ * Describes the message policy.kasregistry.GetKeyAccessServerResponse.
65
+ * Use `create(GetKeyAccessServerResponseSchema)` to create a new message.
66
+ */
67
+ export declare const GetKeyAccessServerResponseSchema: GenMessage<GetKeyAccessServerResponse>;
68
+ /**
69
+ * @generated from message policy.kasregistry.ListKeyAccessServersRequest
70
+ */
71
+ export type ListKeyAccessServersRequest = Message<"policy.kasregistry.ListKeyAccessServersRequest"> & {
72
+ /**
73
+ * Optional
74
+ *
75
+ * @generated from field: policy.PageRequest pagination = 10;
76
+ */
77
+ pagination?: PageRequest;
78
+ };
79
+ /**
80
+ * Describes the message policy.kasregistry.ListKeyAccessServersRequest.
81
+ * Use `create(ListKeyAccessServersRequestSchema)` to create a new message.
82
+ */
83
+ export declare const ListKeyAccessServersRequestSchema: GenMessage<ListKeyAccessServersRequest>;
84
+ /**
85
+ * @generated from message policy.kasregistry.ListKeyAccessServersResponse
86
+ */
87
+ export type ListKeyAccessServersResponse = Message<"policy.kasregistry.ListKeyAccessServersResponse"> & {
88
+ /**
89
+ * @generated from field: repeated policy.KeyAccessServer key_access_servers = 1;
90
+ */
91
+ keyAccessServers: KeyAccessServer[];
92
+ /**
93
+ * @generated from field: policy.PageResponse pagination = 10;
94
+ */
95
+ pagination?: PageResponse;
96
+ };
97
+ /**
98
+ * Describes the message policy.kasregistry.ListKeyAccessServersResponse.
99
+ * Use `create(ListKeyAccessServersResponseSchema)` to create a new message.
100
+ */
101
+ export declare const ListKeyAccessServersResponseSchema: GenMessage<ListKeyAccessServersResponse>;
102
+ /**
103
+ * @generated from message policy.kasregistry.CreateKeyAccessServerRequest
104
+ */
105
+ export type CreateKeyAccessServerRequest = Message<"policy.kasregistry.CreateKeyAccessServerRequest"> & {
106
+ /**
107
+ * Required
108
+ *
109
+ * @generated from field: string uri = 1;
110
+ */
111
+ uri: string;
112
+ /**
113
+ * Deprecated
114
+ *
115
+ * @generated from field: policy.PublicKey public_key = 2;
116
+ */
117
+ publicKey?: PublicKey;
118
+ /**
119
+ * Optional
120
+ *
121
+ * @generated from field: policy.SourceType source_type = 3;
122
+ */
123
+ sourceType: SourceType;
124
+ /**
125
+ * Optional
126
+ *
127
+ * @generated from field: string name = 20;
128
+ */
129
+ name: string;
130
+ /**
131
+ * Common metadata
132
+ *
133
+ * @generated from field: common.MetadataMutable metadata = 100;
134
+ */
135
+ metadata?: MetadataMutable;
136
+ };
137
+ /**
138
+ * Describes the message policy.kasregistry.CreateKeyAccessServerRequest.
139
+ * Use `create(CreateKeyAccessServerRequestSchema)` to create a new message.
140
+ */
141
+ export declare const CreateKeyAccessServerRequestSchema: GenMessage<CreateKeyAccessServerRequest>;
142
+ /**
143
+ * @generated from message policy.kasregistry.CreateKeyAccessServerResponse
144
+ */
145
+ export type CreateKeyAccessServerResponse = Message<"policy.kasregistry.CreateKeyAccessServerResponse"> & {
146
+ /**
147
+ * @generated from field: policy.KeyAccessServer key_access_server = 1;
148
+ */
149
+ keyAccessServer?: KeyAccessServer;
150
+ };
151
+ /**
152
+ * Describes the message policy.kasregistry.CreateKeyAccessServerResponse.
153
+ * Use `create(CreateKeyAccessServerResponseSchema)` to create a new message.
154
+ */
155
+ export declare const CreateKeyAccessServerResponseSchema: GenMessage<CreateKeyAccessServerResponse>;
156
+ /**
157
+ * @generated from message policy.kasregistry.UpdateKeyAccessServerRequest
158
+ */
159
+ export type UpdateKeyAccessServerRequest = Message<"policy.kasregistry.UpdateKeyAccessServerRequest"> & {
160
+ /**
161
+ * Required
162
+ *
163
+ * @generated from field: string id = 1;
164
+ */
165
+ id: string;
166
+ /**
167
+ * Optional
168
+ *
169
+ * @generated from field: string uri = 2;
170
+ */
171
+ uri: string;
172
+ /**
173
+ * Deprecated
174
+ * Optional
175
+ *
176
+ * @generated from field: policy.PublicKey public_key = 3;
177
+ */
178
+ publicKey?: PublicKey;
179
+ /**
180
+ * Optional
181
+ * Using UNSPECIFIED will result in a successful update,
182
+ * but will not actually update the underlying source.
183
+ * You should not update KAS's from INTERNAL/EXTERNAL
184
+ * to unspecified.
185
+ *
186
+ * @generated from field: policy.SourceType source_type = 4;
187
+ */
188
+ sourceType: SourceType;
189
+ /**
190
+ * Optional
191
+ *
192
+ * @generated from field: string name = 20;
193
+ */
194
+ name: string;
195
+ /**
196
+ * Optional
197
+ * Common metadata
198
+ *
199
+ * @generated from field: common.MetadataMutable metadata = 100;
200
+ */
201
+ metadata?: MetadataMutable;
202
+ /**
203
+ * @generated from field: common.MetadataUpdateEnum metadata_update_behavior = 101;
204
+ */
205
+ metadataUpdateBehavior: MetadataUpdateEnum;
206
+ };
207
+ /**
208
+ * Describes the message policy.kasregistry.UpdateKeyAccessServerRequest.
209
+ * Use `create(UpdateKeyAccessServerRequestSchema)` to create a new message.
210
+ */
211
+ export declare const UpdateKeyAccessServerRequestSchema: GenMessage<UpdateKeyAccessServerRequest>;
212
+ /**
213
+ * @generated from message policy.kasregistry.UpdateKeyAccessServerResponse
214
+ */
215
+ export type UpdateKeyAccessServerResponse = Message<"policy.kasregistry.UpdateKeyAccessServerResponse"> & {
216
+ /**
217
+ * @generated from field: policy.KeyAccessServer key_access_server = 1;
218
+ */
219
+ keyAccessServer?: KeyAccessServer;
220
+ };
221
+ /**
222
+ * Describes the message policy.kasregistry.UpdateKeyAccessServerResponse.
223
+ * Use `create(UpdateKeyAccessServerResponseSchema)` to create a new message.
224
+ */
225
+ export declare const UpdateKeyAccessServerResponseSchema: GenMessage<UpdateKeyAccessServerResponse>;
226
+ /**
227
+ * @generated from message policy.kasregistry.DeleteKeyAccessServerRequest
228
+ */
229
+ export type DeleteKeyAccessServerRequest = Message<"policy.kasregistry.DeleteKeyAccessServerRequest"> & {
230
+ /**
231
+ * Required
232
+ *
233
+ * @generated from field: string id = 1;
234
+ */
235
+ id: string;
236
+ };
237
+ /**
238
+ * Describes the message policy.kasregistry.DeleteKeyAccessServerRequest.
239
+ * Use `create(DeleteKeyAccessServerRequestSchema)` to create a new message.
240
+ */
241
+ export declare const DeleteKeyAccessServerRequestSchema: GenMessage<DeleteKeyAccessServerRequest>;
242
+ /**
243
+ * @generated from message policy.kasregistry.DeleteKeyAccessServerResponse
244
+ */
245
+ export type DeleteKeyAccessServerResponse = Message<"policy.kasregistry.DeleteKeyAccessServerResponse"> & {
246
+ /**
247
+ * @generated from field: policy.KeyAccessServer key_access_server = 1;
248
+ */
249
+ keyAccessServer?: KeyAccessServer;
250
+ };
251
+ /**
252
+ * Describes the message policy.kasregistry.DeleteKeyAccessServerResponse.
253
+ * Use `create(DeleteKeyAccessServerResponseSchema)` to create a new message.
254
+ */
255
+ export declare const DeleteKeyAccessServerResponseSchema: GenMessage<DeleteKeyAccessServerResponse>;
256
+ /**
257
+ * Can be namespace, attribute definition, or value
258
+ *
259
+ * @generated from message policy.kasregistry.GrantedPolicyObject
260
+ */
261
+ export type GrantedPolicyObject = Message<"policy.kasregistry.GrantedPolicyObject"> & {
262
+ /**
263
+ * @generated from field: string id = 1;
264
+ */
265
+ id: string;
266
+ /**
267
+ * @generated from field: string fqn = 2;
268
+ */
269
+ fqn: string;
270
+ };
271
+ /**
272
+ * Describes the message policy.kasregistry.GrantedPolicyObject.
273
+ * Use `create(GrantedPolicyObjectSchema)` to create a new message.
274
+ */
275
+ export declare const GrantedPolicyObjectSchema: GenMessage<GrantedPolicyObject>;
276
+ /**
277
+ * Deprecated
278
+ *
279
+ * @generated from message policy.kasregistry.KeyAccessServerGrants
280
+ */
281
+ export type KeyAccessServerGrants = Message<"policy.kasregistry.KeyAccessServerGrants"> & {
282
+ /**
283
+ * @generated from field: policy.KeyAccessServer key_access_server = 1;
284
+ */
285
+ keyAccessServer?: KeyAccessServer;
286
+ /**
287
+ * @generated from field: repeated policy.kasregistry.GrantedPolicyObject namespace_grants = 2;
288
+ */
289
+ namespaceGrants: GrantedPolicyObject[];
290
+ /**
291
+ * @generated from field: repeated policy.kasregistry.GrantedPolicyObject attribute_grants = 3;
292
+ */
293
+ attributeGrants: GrantedPolicyObject[];
294
+ /**
295
+ * @generated from field: repeated policy.kasregistry.GrantedPolicyObject value_grants = 4;
296
+ */
297
+ valueGrants: GrantedPolicyObject[];
298
+ };
299
+ /**
300
+ * Describes the message policy.kasregistry.KeyAccessServerGrants.
301
+ * Use `create(KeyAccessServerGrantsSchema)` to create a new message.
302
+ */
303
+ export declare const KeyAccessServerGrantsSchema: GenMessage<KeyAccessServerGrants>;
304
+ /**
305
+ * @generated from message policy.kasregistry.CreatePublicKeyRequest
306
+ */
307
+ export type CreatePublicKeyRequest = Message<"policy.kasregistry.CreatePublicKeyRequest"> & {
308
+ /**
309
+ * Required
310
+ *
311
+ * @generated from field: string kas_id = 1;
312
+ */
313
+ kasId: string;
314
+ /**
315
+ * Required
316
+ *
317
+ * @generated from field: policy.KasPublicKey key = 2;
318
+ */
319
+ key?: KasPublicKey;
320
+ /**
321
+ * Common metadata
322
+ *
323
+ * @generated from field: common.MetadataMutable metadata = 100;
324
+ */
325
+ metadata?: MetadataMutable;
326
+ };
327
+ /**
328
+ * Describes the message policy.kasregistry.CreatePublicKeyRequest.
329
+ * Use `create(CreatePublicKeyRequestSchema)` to create a new message.
330
+ */
331
+ export declare const CreatePublicKeyRequestSchema: GenMessage<CreatePublicKeyRequest>;
332
+ /**
333
+ * @generated from message policy.kasregistry.CreatePublicKeyResponse
334
+ */
335
+ export type CreatePublicKeyResponse = Message<"policy.kasregistry.CreatePublicKeyResponse"> & {
336
+ /**
337
+ * @generated from field: policy.Key key = 1;
338
+ */
339
+ key?: Key;
340
+ };
341
+ /**
342
+ * Describes the message policy.kasregistry.CreatePublicKeyResponse.
343
+ * Use `create(CreatePublicKeyResponseSchema)` to create a new message.
344
+ */
345
+ export declare const CreatePublicKeyResponseSchema: GenMessage<CreatePublicKeyResponse>;
346
+ /**
347
+ * @generated from message policy.kasregistry.GetPublicKeyRequest
348
+ */
349
+ export type GetPublicKeyRequest = Message<"policy.kasregistry.GetPublicKeyRequest"> & {
350
+ /**
351
+ * @generated from oneof policy.kasregistry.GetPublicKeyRequest.identifier
352
+ */
353
+ identifier: {
354
+ /**
355
+ * @generated from field: string id = 1;
356
+ */
357
+ value: string;
358
+ case: "id";
359
+ } | {
360
+ case: undefined;
361
+ value?: undefined;
362
+ };
363
+ };
364
+ /**
365
+ * Describes the message policy.kasregistry.GetPublicKeyRequest.
366
+ * Use `create(GetPublicKeyRequestSchema)` to create a new message.
367
+ */
368
+ export declare const GetPublicKeyRequestSchema: GenMessage<GetPublicKeyRequest>;
369
+ /**
370
+ * @generated from message policy.kasregistry.GetPublicKeyResponse
371
+ */
372
+ export type GetPublicKeyResponse = Message<"policy.kasregistry.GetPublicKeyResponse"> & {
373
+ /**
374
+ * @generated from field: policy.Key key = 1;
375
+ */
376
+ key?: Key;
377
+ };
378
+ /**
379
+ * Describes the message policy.kasregistry.GetPublicKeyResponse.
380
+ * Use `create(GetPublicKeyResponseSchema)` to create a new message.
381
+ */
382
+ export declare const GetPublicKeyResponseSchema: GenMessage<GetPublicKeyResponse>;
383
+ /**
384
+ * @generated from message policy.kasregistry.ListPublicKeysRequest
385
+ */
386
+ export type ListPublicKeysRequest = Message<"policy.kasregistry.ListPublicKeysRequest"> & {
387
+ /**
388
+ * @generated from oneof policy.kasregistry.ListPublicKeysRequest.kas_filter
389
+ */
390
+ kasFilter: {
391
+ /**
392
+ * Optional
393
+ *
394
+ * @generated from field: string kas_id = 1;
395
+ */
396
+ value: string;
397
+ case: "kasId";
398
+ } | {
399
+ /**
400
+ * Optional
401
+ *
402
+ * @generated from field: string kas_name = 2;
403
+ */
404
+ value: string;
405
+ case: "kasName";
406
+ } | {
407
+ /**
408
+ * Optional
409
+ *
410
+ * @generated from field: string kas_uri = 3;
411
+ */
412
+ value: string;
413
+ case: "kasUri";
414
+ } | {
415
+ case: undefined;
416
+ value?: undefined;
417
+ };
418
+ /**
419
+ * Optional
420
+ *
421
+ * @generated from field: policy.PageRequest pagination = 10;
422
+ */
423
+ pagination?: PageRequest;
424
+ };
425
+ /**
426
+ * Describes the message policy.kasregistry.ListPublicKeysRequest.
427
+ * Use `create(ListPublicKeysRequestSchema)` to create a new message.
428
+ */
429
+ export declare const ListPublicKeysRequestSchema: GenMessage<ListPublicKeysRequest>;
430
+ /**
431
+ * @generated from message policy.kasregistry.ListPublicKeysResponse
432
+ */
433
+ export type ListPublicKeysResponse = Message<"policy.kasregistry.ListPublicKeysResponse"> & {
434
+ /**
435
+ * @generated from field: repeated policy.Key keys = 1;
436
+ */
437
+ keys: Key[];
438
+ /**
439
+ * @generated from field: policy.PageResponse pagination = 10;
440
+ */
441
+ pagination?: PageResponse;
442
+ };
443
+ /**
444
+ * Describes the message policy.kasregistry.ListPublicKeysResponse.
445
+ * Use `create(ListPublicKeysResponseSchema)` to create a new message.
446
+ */
447
+ export declare const ListPublicKeysResponseSchema: GenMessage<ListPublicKeysResponse>;
448
+ /**
449
+ * @generated from message policy.kasregistry.ListPublicKeyMappingRequest
450
+ */
451
+ export type ListPublicKeyMappingRequest = Message<"policy.kasregistry.ListPublicKeyMappingRequest"> & {
452
+ /**
453
+ * @generated from oneof policy.kasregistry.ListPublicKeyMappingRequest.kas_filter
454
+ */
455
+ kasFilter: {
456
+ /**
457
+ * Optional
458
+ *
459
+ * @generated from field: string kas_id = 1;
460
+ */
461
+ value: string;
462
+ case: "kasId";
463
+ } | {
464
+ /**
465
+ * Optional
466
+ *
467
+ * @generated from field: string kas_name = 2;
468
+ */
469
+ value: string;
470
+ case: "kasName";
471
+ } | {
472
+ /**
473
+ * Optional
474
+ *
475
+ * @generated from field: string kas_uri = 3;
476
+ */
477
+ value: string;
478
+ case: "kasUri";
479
+ } | {
480
+ case: undefined;
481
+ value?: undefined;
482
+ };
483
+ /**
484
+ * Optional Public Key ID
485
+ *
486
+ * @generated from field: string public_key_id = 4;
487
+ */
488
+ publicKeyId: string;
489
+ /**
490
+ * Optional
491
+ *
492
+ * @generated from field: policy.PageRequest pagination = 10;
493
+ */
494
+ pagination?: PageRequest;
495
+ };
496
+ /**
497
+ * Describes the message policy.kasregistry.ListPublicKeyMappingRequest.
498
+ * Use `create(ListPublicKeyMappingRequestSchema)` to create a new message.
499
+ */
500
+ export declare const ListPublicKeyMappingRequestSchema: GenMessage<ListPublicKeyMappingRequest>;
501
+ /**
502
+ * @generated from message policy.kasregistry.ListPublicKeyMappingResponse
503
+ */
504
+ export type ListPublicKeyMappingResponse = Message<"policy.kasregistry.ListPublicKeyMappingResponse"> & {
505
+ /**
506
+ * @generated from field: repeated policy.kasregistry.ListPublicKeyMappingResponse.PublicKeyMapping public_key_mappings = 1;
507
+ */
508
+ publicKeyMappings: ListPublicKeyMappingResponse_PublicKeyMapping[];
509
+ /**
510
+ * @generated from field: policy.PageResponse pagination = 10;
511
+ */
512
+ pagination?: PageResponse;
513
+ };
514
+ /**
515
+ * Describes the message policy.kasregistry.ListPublicKeyMappingResponse.
516
+ * Use `create(ListPublicKeyMappingResponseSchema)` to create a new message.
517
+ */
518
+ export declare const ListPublicKeyMappingResponseSchema: GenMessage<ListPublicKeyMappingResponse>;
519
+ /**
520
+ * @generated from message policy.kasregistry.ListPublicKeyMappingResponse.PublicKeyMapping
521
+ */
522
+ export type ListPublicKeyMappingResponse_PublicKeyMapping = Message<"policy.kasregistry.ListPublicKeyMappingResponse.PublicKeyMapping"> & {
523
+ /**
524
+ * @generated from field: string kas_id = 2;
525
+ */
526
+ kasId: string;
527
+ /**
528
+ * @generated from field: string kas_name = 3;
529
+ */
530
+ kasName: string;
531
+ /**
532
+ * @generated from field: string kas_uri = 4;
533
+ */
534
+ kasUri: string;
535
+ /**
536
+ * @generated from field: repeated policy.kasregistry.ListPublicKeyMappingResponse.PublicKey public_keys = 5;
537
+ */
538
+ publicKeys: ListPublicKeyMappingResponse_PublicKey[];
539
+ };
540
+ /**
541
+ * Describes the message policy.kasregistry.ListPublicKeyMappingResponse.PublicKeyMapping.
542
+ * Use `create(ListPublicKeyMappingResponse_PublicKeyMappingSchema)` to create a new message.
543
+ */
544
+ export declare const ListPublicKeyMappingResponse_PublicKeyMappingSchema: GenMessage<ListPublicKeyMappingResponse_PublicKeyMapping>;
545
+ /**
546
+ * @generated from message policy.kasregistry.ListPublicKeyMappingResponse.PublicKey
547
+ */
548
+ export type ListPublicKeyMappingResponse_PublicKey = Message<"policy.kasregistry.ListPublicKeyMappingResponse.PublicKey"> & {
549
+ /**
550
+ * @generated from field: policy.Key key = 1;
551
+ */
552
+ key?: Key;
553
+ /**
554
+ * @generated from field: repeated policy.kasregistry.ListPublicKeyMappingResponse.Association values = 6;
555
+ */
556
+ values: ListPublicKeyMappingResponse_Association[];
557
+ /**
558
+ * @generated from field: repeated policy.kasregistry.ListPublicKeyMappingResponse.Association definitions = 7;
559
+ */
560
+ definitions: ListPublicKeyMappingResponse_Association[];
561
+ /**
562
+ * @generated from field: repeated policy.kasregistry.ListPublicKeyMappingResponse.Association namespaces = 8;
563
+ */
564
+ namespaces: ListPublicKeyMappingResponse_Association[];
565
+ };
566
+ /**
567
+ * Describes the message policy.kasregistry.ListPublicKeyMappingResponse.PublicKey.
568
+ * Use `create(ListPublicKeyMappingResponse_PublicKeySchema)` to create a new message.
569
+ */
570
+ export declare const ListPublicKeyMappingResponse_PublicKeySchema: GenMessage<ListPublicKeyMappingResponse_PublicKey>;
571
+ /**
572
+ * @generated from message policy.kasregistry.ListPublicKeyMappingResponse.Association
573
+ */
574
+ export type ListPublicKeyMappingResponse_Association = Message<"policy.kasregistry.ListPublicKeyMappingResponse.Association"> & {
575
+ /**
576
+ * @generated from field: string id = 1;
577
+ */
578
+ id: string;
579
+ /**
580
+ * @generated from field: string fqn = 2;
581
+ */
582
+ fqn: string;
583
+ };
584
+ /**
585
+ * Describes the message policy.kasregistry.ListPublicKeyMappingResponse.Association.
586
+ * Use `create(ListPublicKeyMappingResponse_AssociationSchema)` to create a new message.
587
+ */
588
+ export declare const ListPublicKeyMappingResponse_AssociationSchema: GenMessage<ListPublicKeyMappingResponse_Association>;
589
+ /**
590
+ * @generated from message policy.kasregistry.UpdatePublicKeyRequest
591
+ */
592
+ export type UpdatePublicKeyRequest = Message<"policy.kasregistry.UpdatePublicKeyRequest"> & {
593
+ /**
594
+ * Required
595
+ *
596
+ * @generated from field: string id = 1;
597
+ */
598
+ id: string;
599
+ /**
600
+ * Optional
601
+ * Common metadata
602
+ *
603
+ * @generated from field: common.MetadataMutable metadata = 100;
604
+ */
605
+ metadata?: MetadataMutable;
606
+ /**
607
+ * @generated from field: common.MetadataUpdateEnum metadata_update_behavior = 101;
608
+ */
609
+ metadataUpdateBehavior: MetadataUpdateEnum;
610
+ };
611
+ /**
612
+ * Describes the message policy.kasregistry.UpdatePublicKeyRequest.
613
+ * Use `create(UpdatePublicKeyRequestSchema)` to create a new message.
614
+ */
615
+ export declare const UpdatePublicKeyRequestSchema: GenMessage<UpdatePublicKeyRequest>;
616
+ /**
617
+ * @generated from message policy.kasregistry.UpdatePublicKeyResponse
618
+ */
619
+ export type UpdatePublicKeyResponse = Message<"policy.kasregistry.UpdatePublicKeyResponse"> & {
620
+ /**
621
+ * @generated from field: policy.Key key = 1;
622
+ */
623
+ key?: Key;
624
+ };
625
+ /**
626
+ * Describes the message policy.kasregistry.UpdatePublicKeyResponse.
627
+ * Use `create(UpdatePublicKeyResponseSchema)` to create a new message.
628
+ */
629
+ export declare const UpdatePublicKeyResponseSchema: GenMessage<UpdatePublicKeyResponse>;
630
+ /**
631
+ * @generated from message policy.kasregistry.DeactivatePublicKeyRequest
632
+ */
633
+ export type DeactivatePublicKeyRequest = Message<"policy.kasregistry.DeactivatePublicKeyRequest"> & {
634
+ /**
635
+ * @generated from field: string id = 1;
636
+ */
637
+ id: string;
638
+ };
639
+ /**
640
+ * Describes the message policy.kasregistry.DeactivatePublicKeyRequest.
641
+ * Use `create(DeactivatePublicKeyRequestSchema)` to create a new message.
642
+ */
643
+ export declare const DeactivatePublicKeyRequestSchema: GenMessage<DeactivatePublicKeyRequest>;
644
+ /**
645
+ * @generated from message policy.kasregistry.DeactivatePublicKeyResponse
646
+ */
647
+ export type DeactivatePublicKeyResponse = Message<"policy.kasregistry.DeactivatePublicKeyResponse"> & {
648
+ /**
649
+ * @generated from field: policy.Key key = 1;
650
+ */
651
+ key?: Key;
652
+ };
653
+ /**
654
+ * Describes the message policy.kasregistry.DeactivatePublicKeyResponse.
655
+ * Use `create(DeactivatePublicKeyResponseSchema)` to create a new message.
656
+ */
657
+ export declare const DeactivatePublicKeyResponseSchema: GenMessage<DeactivatePublicKeyResponse>;
658
+ /**
659
+ * @generated from message policy.kasregistry.ActivatePublicKeyRequest
660
+ */
661
+ export type ActivatePublicKeyRequest = Message<"policy.kasregistry.ActivatePublicKeyRequest"> & {
662
+ /**
663
+ * @generated from field: string id = 1;
664
+ */
665
+ id: string;
666
+ };
667
+ /**
668
+ * Describes the message policy.kasregistry.ActivatePublicKeyRequest.
669
+ * Use `create(ActivatePublicKeyRequestSchema)` to create a new message.
670
+ */
671
+ export declare const ActivatePublicKeyRequestSchema: GenMessage<ActivatePublicKeyRequest>;
672
+ /**
673
+ * @generated from message policy.kasregistry.ActivatePublicKeyResponse
674
+ */
675
+ export type ActivatePublicKeyResponse = Message<"policy.kasregistry.ActivatePublicKeyResponse"> & {
676
+ /**
677
+ * @generated from field: policy.Key key = 1;
678
+ */
679
+ key?: Key;
680
+ };
681
+ /**
682
+ * Describes the message policy.kasregistry.ActivatePublicKeyResponse.
683
+ * Use `create(ActivatePublicKeyResponseSchema)` to create a new message.
684
+ */
685
+ export declare const ActivatePublicKeyResponseSchema: GenMessage<ActivatePublicKeyResponse>;
686
+ /**
687
+ * LIST of KAS Grants returns flat response of grants to all policy objects. It
688
+ * does not employ selectors for grants to specific policy objects or build the
689
+ * attribute tree relation. If grants to a known namespace, attribute, or value
690
+ * are needed, use the respective GET request to the specific policy object.
691
+ *
692
+ * @generated from message policy.kasregistry.ListKeyAccessServerGrantsRequest
693
+ */
694
+ export type ListKeyAccessServerGrantsRequest = Message<"policy.kasregistry.ListKeyAccessServerGrantsRequest"> & {
695
+ /**
696
+ * Optional
697
+ * Filter LIST by ID of a registered Key Access Server.
698
+ * If neither is provided, grants from all registered KASs to policy attribute
699
+ * objects are returned.
700
+ *
701
+ * @generated from field: string kas_id = 1;
702
+ */
703
+ kasId: string;
704
+ /**
705
+ * Optional
706
+ * Filter LIST by URI of a registered Key Access Server.
707
+ * If none is provided, grants from all registered KASs to policy attribute
708
+ * objects are returned.
709
+ *
710
+ * @generated from field: string kas_uri = 2;
711
+ */
712
+ kasUri: string;
713
+ /**
714
+ * Optional
715
+ * Filter LIST by name of a registered Key Access Server.
716
+ * If none are provided, grants from all registered KASs to policy attribute
717
+ * objects are returned.
718
+ *
719
+ * @generated from field: string kas_name = 3;
720
+ */
721
+ kasName: string;
722
+ /**
723
+ * Optional
724
+ *
725
+ * @generated from field: policy.PageRequest pagination = 10;
726
+ */
727
+ pagination?: PageRequest;
728
+ };
729
+ /**
730
+ * Describes the message policy.kasregistry.ListKeyAccessServerGrantsRequest.
731
+ * Use `create(ListKeyAccessServerGrantsRequestSchema)` to create a new message.
732
+ */
733
+ export declare const ListKeyAccessServerGrantsRequestSchema: GenMessage<ListKeyAccessServerGrantsRequest>;
734
+ /**
735
+ * Deprecated
736
+ *
737
+ * @generated from message policy.kasregistry.ListKeyAccessServerGrantsResponse
738
+ */
739
+ export type ListKeyAccessServerGrantsResponse = Message<"policy.kasregistry.ListKeyAccessServerGrantsResponse"> & {
740
+ /**
741
+ * @generated from field: repeated policy.kasregistry.KeyAccessServerGrants grants = 1 [deprecated = true];
742
+ * @deprecated
743
+ */
744
+ grants: KeyAccessServerGrants[];
745
+ /**
746
+ * @generated from field: policy.PageResponse pagination = 10;
747
+ */
748
+ pagination?: PageResponse;
749
+ };
750
+ /**
751
+ * Describes the message policy.kasregistry.ListKeyAccessServerGrantsResponse.
752
+ * Use `create(ListKeyAccessServerGrantsResponseSchema)` to create a new message.
753
+ */
754
+ export declare const ListKeyAccessServerGrantsResponseSchema: GenMessage<ListKeyAccessServerGrantsResponse>;
755
+ /**
756
+ * Create a new asymmetric key for the specified Key Access Server (KAS)
757
+ *
758
+ * @generated from message policy.kasregistry.CreateKeyRequest
759
+ */
760
+ export type CreateKeyRequest = Message<"policy.kasregistry.CreateKeyRequest"> & {
761
+ /**
762
+ * Required
763
+ *
764
+ * The unique identifier of the Key Access Server
765
+ *
766
+ * @generated from field: string kas_id = 1;
767
+ */
768
+ kasId: string;
769
+ /**
770
+ * Required
771
+ *
772
+ * A user-defined identifier for the key
773
+ *
774
+ * @generated from field: string key_id = 2;
775
+ */
776
+ keyId: string;
777
+ /**
778
+ * Required
779
+ *
780
+ * The algorithm to be used for the key
781
+ *
782
+ * @generated from field: policy.Algorithm key_algorithm = 3;
783
+ */
784
+ keyAlgorithm: Algorithm;
785
+ /**
786
+ * Required
787
+ *
788
+ * The mode of the key (e.g., local or external)
789
+ *
790
+ * @generated from field: policy.KeyMode key_mode = 4;
791
+ */
792
+ keyMode: KeyMode;
793
+ /**
794
+ * Required
795
+ *
796
+ * Context or additional data specific to the public key, based on the key provider implementation
797
+ *
798
+ * @generated from field: bytes public_key_ctx = 5;
799
+ */
800
+ publicKeyCtx: Uint8Array;
801
+ /**
802
+ * Optional
803
+ *
804
+ * Context or additional data specific to the private key, based on the key provider implementation
805
+ *
806
+ * @generated from field: bytes private_key_ctx = 6;
807
+ */
808
+ privateKeyCtx: Uint8Array;
809
+ /**
810
+ * Optional
811
+ *
812
+ * Configuration ID for the key provider, if applicable
813
+ *
814
+ * @generated from field: string provider_config_id = 7;
815
+ */
816
+ providerConfigId: string;
817
+ /**
818
+ * Common metadata
819
+ *
820
+ * Mutable metadata for the key
821
+ *
822
+ * @generated from field: common.MetadataMutable metadata = 100;
823
+ */
824
+ metadata?: MetadataMutable;
825
+ };
826
+ /**
827
+ * Describes the message policy.kasregistry.CreateKeyRequest.
828
+ * Use `create(CreateKeyRequestSchema)` to create a new message.
829
+ */
830
+ export declare const CreateKeyRequestSchema: GenMessage<CreateKeyRequest>;
831
+ /**
832
+ * Response to a CreateKeyRequest, containing the created asymmetric key
833
+ *
834
+ * @generated from message policy.kasregistry.CreateKeyResponse
835
+ */
836
+ export type CreateKeyResponse = Message<"policy.kasregistry.CreateKeyResponse"> & {
837
+ /**
838
+ * The created asymmetric key for a KAS.
839
+ *
840
+ * @generated from field: policy.KasKey kas_key = 1;
841
+ */
842
+ kasKey?: KasKey;
843
+ };
844
+ /**
845
+ * Describes the message policy.kasregistry.CreateKeyResponse.
846
+ * Use `create(CreateKeyResponseSchema)` to create a new message.
847
+ */
848
+ export declare const CreateKeyResponseSchema: GenMessage<CreateKeyResponse>;
849
+ /**
850
+ * Retrieve an existing asymmetric key from the Key Management System
851
+ *
852
+ * @generated from message policy.kasregistry.GetKeyRequest
853
+ */
854
+ export type GetKeyRequest = Message<"policy.kasregistry.GetKeyRequest"> & {
855
+ /**
856
+ * @generated from oneof policy.kasregistry.GetKeyRequest.identifier
857
+ */
858
+ identifier: {
859
+ /**
860
+ * The unique identifier of the key to retrieve
861
+ *
862
+ * @generated from field: string id = 2;
863
+ */
864
+ value: string;
865
+ case: "id";
866
+ } | {
867
+ /**
868
+ * @generated from field: policy.kasregistry.KasKeyIdentifier key = 3;
869
+ */
870
+ value: KasKeyIdentifier;
871
+ case: "key";
872
+ } | {
873
+ case: undefined;
874
+ value?: undefined;
875
+ };
876
+ };
877
+ /**
878
+ * Describes the message policy.kasregistry.GetKeyRequest.
879
+ * Use `create(GetKeyRequestSchema)` to create a new message.
880
+ */
881
+ export declare const GetKeyRequestSchema: GenMessage<GetKeyRequest>;
882
+ /**
883
+ * Response to a GetKeyRequest, containing the requested asymmetric key
884
+ *
885
+ * @generated from message policy.kasregistry.GetKeyResponse
886
+ */
887
+ export type GetKeyResponse = Message<"policy.kasregistry.GetKeyResponse"> & {
888
+ /**
889
+ * The requested asymmetric key for a KAS.
890
+ *
891
+ * @generated from field: policy.KasKey kas_key = 1;
892
+ */
893
+ kasKey?: KasKey;
894
+ };
895
+ /**
896
+ * Describes the message policy.kasregistry.GetKeyResponse.
897
+ * Use `create(GetKeyResponseSchema)` to create a new message.
898
+ */
899
+ export declare const GetKeyResponseSchema: GenMessage<GetKeyResponse>;
900
+ /**
901
+ * List all asymmetric keys managed by a specific Key Access Server or with a given algorithm
902
+ *
903
+ * @generated from message policy.kasregistry.ListKeysRequest
904
+ */
905
+ export type ListKeysRequest = Message<"policy.kasregistry.ListKeysRequest"> & {
906
+ /**
907
+ * Filter keys by algorithm
908
+ *
909
+ * @generated from field: policy.Algorithm key_algorithm = 1;
910
+ */
911
+ keyAlgorithm: Algorithm;
912
+ /**
913
+ * @generated from oneof policy.kasregistry.ListKeysRequest.kas_filter
914
+ */
915
+ kasFilter: {
916
+ /**
917
+ * Filter keys by the KAS ID
918
+ *
919
+ * @generated from field: string kas_id = 2;
920
+ */
921
+ value: string;
922
+ case: "kasId";
923
+ } | {
924
+ /**
925
+ * Filter keys by the KAS name
926
+ *
927
+ * @generated from field: string kas_name = 3;
928
+ */
929
+ value: string;
930
+ case: "kasName";
931
+ } | {
932
+ /**
933
+ * Filter keys by the KAS URI
934
+ *
935
+ * @generated from field: string kas_uri = 4;
936
+ */
937
+ value: string;
938
+ case: "kasUri";
939
+ } | {
940
+ case: undefined;
941
+ value?: undefined;
942
+ };
943
+ /**
944
+ * Optional
945
+ *
946
+ * Pagination request for the list of keys
947
+ *
948
+ * @generated from field: policy.PageRequest pagination = 10;
949
+ */
950
+ pagination?: PageRequest;
951
+ };
952
+ /**
953
+ * Describes the message policy.kasregistry.ListKeysRequest.
954
+ * Use `create(ListKeysRequestSchema)` to create a new message.
955
+ */
956
+ export declare const ListKeysRequestSchema: GenMessage<ListKeysRequest>;
957
+ /**
958
+ * Response to a ListKeysRequest, containing the list of asymmetric keys and pagination information
959
+ *
960
+ * @generated from message policy.kasregistry.ListKeysResponse
961
+ */
962
+ export type ListKeysResponse = Message<"policy.kasregistry.ListKeysResponse"> & {
963
+ /**
964
+ * The list of kas keys
965
+ *
966
+ * @generated from field: repeated policy.KasKey kas_keys = 1;
967
+ */
968
+ kasKeys: KasKey[];
969
+ /**
970
+ * Pagination response for the list of keys
971
+ *
972
+ * @generated from field: policy.PageResponse pagination = 10;
973
+ */
974
+ pagination?: PageResponse;
975
+ };
976
+ /**
977
+ * Describes the message policy.kasregistry.ListKeysResponse.
978
+ * Use `create(ListKeysResponseSchema)` to create a new message.
979
+ */
980
+ export declare const ListKeysResponseSchema: GenMessage<ListKeysResponse>;
981
+ /**
982
+ * Update an existing asymmetric key in the Key Management System
983
+ *
984
+ * @generated from message policy.kasregistry.UpdateKeyRequest
985
+ */
986
+ export type UpdateKeyRequest = Message<"policy.kasregistry.UpdateKeyRequest"> & {
987
+ /**
988
+ * Required
989
+ *
990
+ * The unique identifier of the key to update
991
+ *
992
+ * @generated from field: string id = 1;
993
+ */
994
+ id: string;
995
+ /**
996
+ * Optional
997
+ *
998
+ * The new status of the key (e.g., active, inactive)
999
+ *
1000
+ * @generated from field: policy.KeyStatus key_status = 2;
1001
+ */
1002
+ keyStatus: KeyStatus;
1003
+ /**
1004
+ * Optional
1005
+ * Common metadata
1006
+ *
1007
+ * Mutable metadata for the key
1008
+ *
1009
+ * @generated from field: common.MetadataMutable metadata = 100;
1010
+ */
1011
+ metadata?: MetadataMutable;
1012
+ /**
1013
+ * The behavior for updating the metadata
1014
+ *
1015
+ * @generated from field: common.MetadataUpdateEnum metadata_update_behavior = 101;
1016
+ */
1017
+ metadataUpdateBehavior: MetadataUpdateEnum;
1018
+ };
1019
+ /**
1020
+ * Describes the message policy.kasregistry.UpdateKeyRequest.
1021
+ * Use `create(UpdateKeyRequestSchema)` to create a new message.
1022
+ */
1023
+ export declare const UpdateKeyRequestSchema: GenMessage<UpdateKeyRequest>;
1024
+ /**
1025
+ * Response to an UpdateKeyRequest, containing the updated asymmetric key
1026
+ *
1027
+ * @generated from message policy.kasregistry.UpdateKeyResponse
1028
+ */
1029
+ export type UpdateKeyResponse = Message<"policy.kasregistry.UpdateKeyResponse"> & {
1030
+ /**
1031
+ * The updated kas key
1032
+ *
1033
+ * @generated from field: policy.KasKey kas_key = 1;
1034
+ */
1035
+ kasKey?: KasKey;
1036
+ };
1037
+ /**
1038
+ * Describes the message policy.kasregistry.UpdateKeyResponse.
1039
+ * Use `create(UpdateKeyResponseSchema)` to create a new message.
1040
+ */
1041
+ export declare const UpdateKeyResponseSchema: GenMessage<UpdateKeyResponse>;
1042
+ /**
1043
+ * Nested message for specifying the active key using KAS ID and Key ID
1044
+ *
1045
+ * @generated from message policy.kasregistry.KasKeyIdentifier
1046
+ */
1047
+ export type KasKeyIdentifier = Message<"policy.kasregistry.KasKeyIdentifier"> & {
1048
+ /**
1049
+ * Required UUID of the Key Access Server
1050
+ *
1051
+ * @generated from oneof policy.kasregistry.KasKeyIdentifier.identifier
1052
+ */
1053
+ identifier: {
1054
+ /**
1055
+ * @generated from field: string kas_id = 2;
1056
+ */
1057
+ value: string;
1058
+ case: "kasId";
1059
+ } | {
1060
+ /**
1061
+ * @generated from field: string name = 3;
1062
+ */
1063
+ value: string;
1064
+ case: "name";
1065
+ } | {
1066
+ /**
1067
+ * @generated from field: string uri = 4;
1068
+ */
1069
+ value: string;
1070
+ case: "uri";
1071
+ } | {
1072
+ case: undefined;
1073
+ value?: undefined;
1074
+ };
1075
+ /**
1076
+ * Required Key ID of the key in question
1077
+ *
1078
+ * @generated from field: string kid = 5;
1079
+ */
1080
+ kid: string;
1081
+ };
1082
+ /**
1083
+ * Describes the message policy.kasregistry.KasKeyIdentifier.
1084
+ * Use `create(KasKeyIdentifierSchema)` to create a new message.
1085
+ */
1086
+ export declare const KasKeyIdentifierSchema: GenMessage<KasKeyIdentifier>;
1087
+ /**
1088
+ * @generated from message policy.kasregistry.RotateKeyRequest
1089
+ */
1090
+ export type RotateKeyRequest = Message<"policy.kasregistry.RotateKeyRequest"> & {
1091
+ /**
1092
+ * Required (Current Active Key ID)
1093
+ *
1094
+ * @generated from oneof policy.kasregistry.RotateKeyRequest.active_key
1095
+ */
1096
+ activeKey: {
1097
+ /**
1098
+ * Current Active Key UUID
1099
+ *
1100
+ * @generated from field: string id = 1;
1101
+ */
1102
+ value: string;
1103
+ case: "id";
1104
+ } | {
1105
+ /**
1106
+ * Alternative way to specify the active key using KAS ID and Key ID
1107
+ *
1108
+ * @generated from field: policy.kasregistry.KasKeyIdentifier key = 2;
1109
+ */
1110
+ value: KasKeyIdentifier;
1111
+ case: "key";
1112
+ } | {
1113
+ case: undefined;
1114
+ value?: undefined;
1115
+ };
1116
+ /**
1117
+ * Information about the new key to be rotated in
1118
+ *
1119
+ * @generated from field: policy.kasregistry.RotateKeyRequest.NewKey new_key = 3;
1120
+ */
1121
+ newKey?: RotateKeyRequest_NewKey;
1122
+ };
1123
+ /**
1124
+ * Describes the message policy.kasregistry.RotateKeyRequest.
1125
+ * Use `create(RotateKeyRequestSchema)` to create a new message.
1126
+ */
1127
+ export declare const RotateKeyRequestSchema: GenMessage<RotateKeyRequest>;
1128
+ /**
1129
+ * Nested message for specifying the new key details
1130
+ *
1131
+ * @generated from message policy.kasregistry.RotateKeyRequest.NewKey
1132
+ */
1133
+ export type RotateKeyRequest_NewKey = Message<"policy.kasregistry.RotateKeyRequest.NewKey"> & {
1134
+ /**
1135
+ * Required
1136
+ *
1137
+ * @generated from field: string key_id = 1;
1138
+ */
1139
+ keyId: string;
1140
+ /**
1141
+ * Required
1142
+ *
1143
+ * @generated from field: policy.Algorithm algorithm = 2;
1144
+ */
1145
+ algorithm: Algorithm;
1146
+ /**
1147
+ * Required
1148
+ *
1149
+ * @generated from field: policy.KeyMode key_mode = 3;
1150
+ */
1151
+ keyMode: KeyMode;
1152
+ /**
1153
+ * Required
1154
+ *
1155
+ * Specific structure based on key provider implementation
1156
+ *
1157
+ * @generated from field: bytes private_key_ctx = 4;
1158
+ */
1159
+ privateKeyCtx: Uint8Array;
1160
+ /**
1161
+ * Optional
1162
+ *
1163
+ * @generated from field: bytes public_key_ctx = 5;
1164
+ */
1165
+ publicKeyCtx: Uint8Array;
1166
+ /**
1167
+ * @generated from field: string provider_config_id = 6;
1168
+ */
1169
+ providerConfigId: string;
1170
+ /**
1171
+ * Common metadata fields
1172
+ *
1173
+ * @generated from field: common.Metadata metadata = 100;
1174
+ */
1175
+ metadata?: Metadata;
1176
+ };
1177
+ /**
1178
+ * Describes the message policy.kasregistry.RotateKeyRequest.NewKey.
1179
+ * Use `create(RotateKeyRequest_NewKeySchema)` to create a new message.
1180
+ */
1181
+ export declare const RotateKeyRequest_NewKeySchema: GenMessage<RotateKeyRequest_NewKey>;
1182
+ /**
1183
+ * Response message for the RotateKey request
1184
+ *
1185
+ * @generated from message policy.kasregistry.RotateKeyResponse
1186
+ */
1187
+ export type RotateKeyResponse = Message<"policy.kasregistry.RotateKeyResponse"> & {
1188
+ /**
1189
+ * The newly rotated Kas Key
1190
+ *
1191
+ * @generated from field: policy.KasKey kas_key = 1;
1192
+ */
1193
+ kasKey?: KasKey;
1194
+ };
1195
+ /**
1196
+ * Describes the message policy.kasregistry.RotateKeyResponse.
1197
+ * Use `create(RotateKeyResponseSchema)` to create a new message.
1198
+ */
1199
+ export declare const RotateKeyResponseSchema: GenMessage<RotateKeyResponse>;
1200
+ /**
1201
+ * @generated from service policy.kasregistry.KeyAccessServerRegistryService
1202
+ */
1203
+ export declare const KeyAccessServerRegistryService: GenService<{
1204
+ /**
1205
+ * @generated from rpc policy.kasregistry.KeyAccessServerRegistryService.ListKeyAccessServers
1206
+ */
1207
+ listKeyAccessServers: {
1208
+ methodKind: "unary";
1209
+ input: typeof ListKeyAccessServersRequestSchema;
1210
+ output: typeof ListKeyAccessServersResponseSchema;
1211
+ };
1212
+ /**
1213
+ * @generated from rpc policy.kasregistry.KeyAccessServerRegistryService.GetKeyAccessServer
1214
+ */
1215
+ getKeyAccessServer: {
1216
+ methodKind: "unary";
1217
+ input: typeof GetKeyAccessServerRequestSchema;
1218
+ output: typeof GetKeyAccessServerResponseSchema;
1219
+ };
1220
+ /**
1221
+ * @generated from rpc policy.kasregistry.KeyAccessServerRegistryService.CreateKeyAccessServer
1222
+ */
1223
+ createKeyAccessServer: {
1224
+ methodKind: "unary";
1225
+ input: typeof CreateKeyAccessServerRequestSchema;
1226
+ output: typeof CreateKeyAccessServerResponseSchema;
1227
+ };
1228
+ /**
1229
+ * @generated from rpc policy.kasregistry.KeyAccessServerRegistryService.UpdateKeyAccessServer
1230
+ */
1231
+ updateKeyAccessServer: {
1232
+ methodKind: "unary";
1233
+ input: typeof UpdateKeyAccessServerRequestSchema;
1234
+ output: typeof UpdateKeyAccessServerResponseSchema;
1235
+ };
1236
+ /**
1237
+ * @generated from rpc policy.kasregistry.KeyAccessServerRegistryService.DeleteKeyAccessServer
1238
+ */
1239
+ deleteKeyAccessServer: {
1240
+ methodKind: "unary";
1241
+ input: typeof DeleteKeyAccessServerRequestSchema;
1242
+ output: typeof DeleteKeyAccessServerResponseSchema;
1243
+ };
1244
+ /**
1245
+ * Deprecated
1246
+ *
1247
+ * @generated from rpc policy.kasregistry.KeyAccessServerRegistryService.ListKeyAccessServerGrants
1248
+ */
1249
+ listKeyAccessServerGrants: {
1250
+ methodKind: "unary";
1251
+ input: typeof ListKeyAccessServerGrantsRequestSchema;
1252
+ output: typeof ListKeyAccessServerGrantsResponseSchema;
1253
+ };
1254
+ /**
1255
+ * KAS Key Management
1256
+ * Request to create a new key in the Key Access Service.
1257
+ *
1258
+ * @generated from rpc policy.kasregistry.KeyAccessServerRegistryService.CreateKey
1259
+ */
1260
+ createKey: {
1261
+ methodKind: "unary";
1262
+ input: typeof CreateKeyRequestSchema;
1263
+ output: typeof CreateKeyResponseSchema;
1264
+ };
1265
+ /**
1266
+ * Request to retrieve a key from the Key Access Service.
1267
+ *
1268
+ * @generated from rpc policy.kasregistry.KeyAccessServerRegistryService.GetKey
1269
+ */
1270
+ getKey: {
1271
+ methodKind: "unary";
1272
+ input: typeof GetKeyRequestSchema;
1273
+ output: typeof GetKeyResponseSchema;
1274
+ };
1275
+ /**
1276
+ * Request to list keys in the Key Access Service.
1277
+ *
1278
+ * @generated from rpc policy.kasregistry.KeyAccessServerRegistryService.ListKeys
1279
+ */
1280
+ listKeys: {
1281
+ methodKind: "unary";
1282
+ input: typeof ListKeysRequestSchema;
1283
+ output: typeof ListKeysResponseSchema;
1284
+ };
1285
+ /**
1286
+ * Request to update a key in the Key Access Service.
1287
+ *
1288
+ * @generated from rpc policy.kasregistry.KeyAccessServerRegistryService.UpdateKey
1289
+ */
1290
+ updateKey: {
1291
+ methodKind: "unary";
1292
+ input: typeof UpdateKeyRequestSchema;
1293
+ output: typeof UpdateKeyResponseSchema;
1294
+ };
1295
+ /**
1296
+ * Request to rotate a key in the Key Access Service.
1297
+ *
1298
+ * @generated from rpc policy.kasregistry.KeyAccessServerRegistryService.RotateKey
1299
+ */
1300
+ rotateKey: {
1301
+ methodKind: "unary";
1302
+ input: typeof RotateKeyRequestSchema;
1303
+ output: typeof RotateKeyResponseSchema;
1304
+ };
1305
+ }>;
1306
+ //# sourceMappingURL=key_access_server_registry_pb.d.ts.map