@opentdf/sdk 0.3.1 → 0.3.2-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/access/access-fetch.js +155 -0
- package/dist/cjs/src/access/access-rpc.js +131 -0
- package/dist/cjs/src/access.js +81 -107
- package/dist/cjs/src/auth/oidc.js +2 -2
- package/dist/cjs/src/nanotdf/Client.js +17 -13
- package/dist/cjs/src/nanotdf/models/Header.js +2 -2
- package/dist/cjs/src/nanotdf-crypto/keyAgreement.js +2 -2
- package/dist/cjs/src/opentdf.js +42 -8
- package/dist/cjs/src/platform/authorization/authorization_pb.js +138 -0
- package/dist/cjs/src/platform/buf/validate/validate_pb.js +410 -0
- package/dist/cjs/src/platform/common/common_pb.js +79 -0
- package/dist/cjs/src/platform/entityresolution/entity_resolution_pb.js +49 -0
- package/dist/cjs/src/platform/google/api/annotations_pb.js +30 -0
- package/dist/cjs/src/platform/google/api/http_pb.js +37 -0
- package/dist/cjs/src/platform/kas/kas_pb.js +96 -0
- package/dist/cjs/src/platform/policy/actions/actions_pb.js +70 -0
- package/dist/cjs/src/platform/policy/attributes/attributes_pb.js +240 -0
- package/dist/cjs/src/platform/policy/kasregistry/key_access_server_registry_pb.js +236 -0
- package/dist/cjs/src/platform/policy/keymanagement/key_management_pb.js +70 -0
- package/dist/cjs/src/platform/policy/namespaces/namespaces_pb.js +121 -0
- package/dist/cjs/src/platform/policy/objects_pb.js +395 -0
- package/dist/cjs/src/platform/policy/registeredresources/registered_resources_pb.js +132 -0
- package/dist/cjs/src/platform/policy/resourcemapping/resource_mapping_pb.js +139 -0
- package/dist/cjs/src/platform/policy/selectors_pb.js +67 -0
- package/dist/cjs/src/platform/policy/subjectmapping/subject_mapping_pb.js +146 -0
- package/dist/cjs/src/platform/policy/unsafe/unsafe_pb.js +124 -0
- package/dist/cjs/src/platform/protoc-gen-openapiv2/options/annotations_pb.js +68 -0
- package/dist/cjs/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.js +307 -0
- package/dist/cjs/src/platform/wellknownconfiguration/wellknown_configuration_pb.js +33 -0
- package/dist/cjs/src/platform.js +124 -0
- package/dist/cjs/src/policy/api.js +21 -38
- package/dist/cjs/src/policy/attributes.js +4 -1
- package/dist/cjs/src/policy/granter.js +9 -9
- package/dist/cjs/src/utils.js +31 -1
- package/dist/cjs/src/version.js +2 -2
- package/dist/cjs/tdf3/src/client/index.js +23 -18
- package/dist/cjs/tdf3/src/tdf.js +5 -5
- package/dist/types/src/access/access-fetch.d.ts +21 -0
- package/dist/types/src/access/access-fetch.d.ts.map +1 -0
- package/dist/types/src/access/access-rpc.d.ts +22 -0
- package/dist/types/src/access/access-rpc.d.ts.map +1 -0
- package/dist/types/src/access.d.ts +19 -11
- package/dist/types/src/access.d.ts.map +1 -1
- package/dist/types/src/nanotdf/Client.d.ts +3 -1
- package/dist/types/src/nanotdf/Client.d.ts.map +1 -1
- package/dist/types/src/opentdf.d.ts +5 -1
- package/dist/types/src/opentdf.d.ts.map +1 -1
- package/dist/types/src/platform/authorization/authorization_pb.d.ts +609 -0
- package/dist/types/src/platform/authorization/authorization_pb.d.ts.map +1 -0
- package/dist/types/src/platform/buf/validate/validate_pb.d.ts +4466 -0
- package/dist/types/src/platform/buf/validate/validate_pb.d.ts.map +1 -0
- package/dist/types/src/platform/common/common_pb.d.ts +112 -0
- package/dist/types/src/platform/common/common_pb.d.ts.map +1 -0
- package/dist/types/src/platform/entityresolution/entity_resolution_pb.d.ts +199 -0
- package/dist/types/src/platform/entityresolution/entity_resolution_pb.d.ts.map +1 -0
- package/dist/types/src/platform/google/api/annotations_pb.d.ts +14 -0
- package/dist/types/src/platform/google/api/annotations_pb.d.ts.map +1 -0
- package/dist/types/src/platform/google/api/http_pb.d.ts +441 -0
- package/dist/types/src/platform/google/api/http_pb.d.ts.map +1 -0
- package/dist/types/src/platform/kas/kas_pb.d.ts +404 -0
- package/dist/types/src/platform/kas/kas_pb.d.ts.map +1 -0
- package/dist/types/src/platform/policy/actions/actions_pb.d.ts +265 -0
- package/dist/types/src/platform/policy/actions/actions_pb.d.ts.map +1 -0
- package/dist/types/src/platform/policy/attributes/attributes_pb.d.ts +1022 -0
- package/dist/types/src/platform/policy/attributes/attributes_pb.d.ts.map +1 -0
- package/dist/types/src/platform/policy/kasregistry/key_access_server_registry_pb.d.ts +1306 -0
- package/dist/types/src/platform/policy/kasregistry/key_access_server_registry_pb.d.ts.map +1 -0
- package/dist/types/src/platform/policy/keymanagement/key_management_pb.d.ts +269 -0
- package/dist/types/src/platform/policy/keymanagement/key_management_pb.d.ts.map +1 -0
- package/dist/types/src/platform/policy/namespaces/namespaces_pb.d.ts +448 -0
- package/dist/types/src/platform/policy/namespaces/namespaces_pb.d.ts.map +1 -0
- package/dist/types/src/platform/policy/objects_pb.d.ts +1112 -0
- package/dist/types/src/platform/policy/objects_pb.d.ts.map +1 -0
- package/dist/types/src/platform/policy/registeredresources/registered_resources_pb.d.ts +539 -0
- package/dist/types/src/platform/policy/registeredresources/registered_resources_pb.d.ts.map +1 -0
- package/dist/types/src/platform/policy/resourcemapping/resource_mapping_pb.d.ts +558 -0
- package/dist/types/src/platform/policy/resourcemapping/resource_mapping_pb.d.ts.map +1 -0
- package/dist/types/src/platform/policy/selectors_pb.d.ts +221 -0
- package/dist/types/src/platform/policy/selectors_pb.d.ts.map +1 -0
- package/dist/types/src/platform/policy/subjectmapping/subject_mapping_pb.d.ts +582 -0
- package/dist/types/src/platform/policy/subjectmapping/subject_mapping_pb.d.ts.map +1 -0
- package/dist/types/src/platform/policy/unsafe/unsafe_pb.d.ts +513 -0
- package/dist/types/src/platform/policy/unsafe/unsafe_pb.d.ts.map +1 -0
- package/dist/types/src/platform/protoc-gen-openapiv2/options/annotations_pb.d.ts +62 -0
- package/dist/types/src/platform/protoc-gen-openapiv2/options/annotations_pb.d.ts.map +1 -0
- package/dist/types/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +1441 -0
- package/dist/types/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.d.ts.map +1 -0
- package/dist/types/src/platform/wellknownconfiguration/wellknown_configuration_pb.d.ts +59 -0
- package/dist/types/src/platform/wellknownconfiguration/wellknown_configuration_pb.d.ts.map +1 -0
- package/dist/types/src/platform.d.ts +49 -0
- package/dist/types/src/platform.d.ts.map +1 -0
- package/dist/types/src/policy/api.d.ts +1 -1
- package/dist/types/src/policy/api.d.ts.map +1 -1
- package/dist/types/src/policy/attributes.d.ts +10 -87
- package/dist/types/src/policy/attributes.d.ts.map +1 -1
- package/dist/types/src/policy/granter.d.ts.map +1 -1
- package/dist/types/src/utils.d.ts +10 -0
- package/dist/types/src/utils.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/dist/types/tdf3/src/client/index.d.ts +8 -3
- package/dist/types/tdf3/src/client/index.d.ts.map +1 -1
- package/dist/types/tdf3/src/tdf.d.ts.map +1 -1
- package/dist/web/src/access/access-fetch.js +150 -0
- package/dist/web/src/access/access-rpc.js +125 -0
- package/dist/web/src/access.js +82 -110
- package/dist/web/src/auth/oidc.js +2 -2
- package/dist/web/src/nanotdf/Client.js +18 -14
- package/dist/web/src/nanotdf/models/Header.js +2 -2
- package/dist/web/src/nanotdf-crypto/keyAgreement.js +2 -2
- package/dist/web/src/opentdf.js +43 -9
- package/dist/web/src/platform/authorization/authorization_pb.js +135 -0
- package/dist/web/src/platform/buf/validate/validate_pb.js +407 -0
- package/dist/web/src/platform/common/common_pb.js +76 -0
- package/dist/web/src/platform/entityresolution/entity_resolution_pb.js +46 -0
- package/dist/web/src/platform/google/api/annotations_pb.js +27 -0
- package/dist/web/src/platform/google/api/http_pb.js +34 -0
- package/dist/web/src/platform/kas/kas_pb.js +93 -0
- package/dist/web/src/platform/policy/actions/actions_pb.js +67 -0
- package/dist/web/src/platform/policy/attributes/attributes_pb.js +237 -0
- package/dist/web/src/platform/policy/kasregistry/key_access_server_registry_pb.js +233 -0
- package/dist/web/src/platform/policy/keymanagement/key_management_pb.js +67 -0
- package/dist/web/src/platform/policy/namespaces/namespaces_pb.js +118 -0
- package/dist/web/src/platform/policy/objects_pb.js +392 -0
- package/dist/web/src/platform/policy/registeredresources/registered_resources_pb.js +129 -0
- package/dist/web/src/platform/policy/resourcemapping/resource_mapping_pb.js +136 -0
- package/dist/web/src/platform/policy/selectors_pb.js +64 -0
- package/dist/web/src/platform/policy/subjectmapping/subject_mapping_pb.js +143 -0
- package/dist/web/src/platform/policy/unsafe/unsafe_pb.js +121 -0
- package/dist/web/src/platform/protoc-gen-openapiv2/options/annotations_pb.js +65 -0
- package/dist/web/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.js +304 -0
- package/dist/web/src/platform/wellknownconfiguration/wellknown_configuration_pb.js +30 -0
- package/dist/web/src/platform.js +87 -0
- package/dist/web/src/policy/api.js +23 -40
- package/dist/web/src/policy/attributes.js +3 -2
- package/dist/web/src/policy/granter.js +9 -9
- package/dist/web/src/utils.js +29 -1
- package/dist/web/src/version.js +2 -2
- package/dist/web/tdf3/src/client/index.js +25 -20
- package/dist/web/tdf3/src/tdf.js +5 -5
- package/package.json +17 -1
- package/src/access/access-fetch.ts +202 -0
- package/src/access/access-rpc.ts +175 -0
- package/src/access.ts +113 -138
- package/src/auth/oidc.ts +1 -1
- package/src/nanotdf/Client.ts +28 -18
- package/src/nanotdf/models/Header.ts +1 -1
- package/src/nanotdf-crypto/keyAgreement.ts +1 -1
- package/src/opentdf.ts +66 -10
- package/src/platform/authorization/authorization_pb.ts +689 -0
- package/src/platform/buf/validate/validate_pb.ts +4626 -0
- package/src/platform/common/common_pb.ts +135 -0
- package/src/platform/entityresolution/entity_resolution_pb.ts +233 -0
- package/src/platform/google/api/annotations_pb.ts +39 -0
- package/src/platform/google/api/http_pb.ts +474 -0
- package/src/platform/kas/kas_pb.ts +484 -0
- package/src/platform/policy/actions/actions_pb.ts +312 -0
- package/src/platform/policy/attributes/attributes_pb.ts +1181 -0
- package/src/platform/policy/kasregistry/key_access_server_registry_pb.ts +1482 -0
- package/src/platform/policy/keymanagement/key_management_pb.ts +316 -0
- package/src/platform/policy/namespaces/namespaces_pb.ts +528 -0
- package/src/platform/policy/objects_pb.ts +1319 -0
- package/src/platform/policy/registeredresources/registered_resources_pb.ts +623 -0
- package/src/platform/policy/resourcemapping/resource_mapping_pb.ts +658 -0
- package/src/platform/policy/selectors_pb.ts +277 -0
- package/src/platform/policy/subjectmapping/subject_mapping_pb.ts +687 -0
- package/src/platform/policy/unsafe/unsafe_pb.ts +593 -0
- package/src/platform/protoc-gen-openapiv2/options/annotations_pb.ts +83 -0
- package/src/platform/protoc-gen-openapiv2/options/openapiv2_pb.ts +1615 -0
- package/src/platform/wellknownconfiguration/wellknown_configuration_pb.ts +78 -0
- package/src/platform.ts +122 -0
- package/src/policy/api.ts +29 -42
- package/src/policy/attributes.ts +12 -108
- package/src/policy/granter.ts +7 -8
- package/src/utils.ts +30 -0
- package/src/version.ts +1 -1
- package/tdf3/src/client/index.ts +40 -19
- package/tdf3/src/tdf.ts +5 -6
- package/src/platform/authorization/authorization_connect.d.ts +0 -44
- package/src/platform/authorization/authorization_connect.js +0 -44
- package/src/platform/authorization/authorization_pb.d.ts +0 -707
- package/src/platform/authorization/authorization_pb.js +0 -372
- package/src/platform/common/common_pb.d.ts +0 -129
- package/src/platform/common/common_pb.js +0 -58
- package/src/platform/entityresolution/entity_resolution_connect.d.ts +0 -35
- package/src/platform/entityresolution/entity_resolution_connect.js +0 -35
- package/src/platform/entityresolution/entity_resolution_pb.d.ts +0 -242
- package/src/platform/entityresolution/entity_resolution_pb.js +0 -139
- package/src/platform/kas/kas_connect.d.ts +0 -59
- package/src/platform/kas/kas_connect.js +0 -59
- package/src/platform/kas/kas_pb.d.ts +0 -200
- package/src/platform/kas/kas_pb.js +0 -84
- package/src/platform/policy/attributes/attributes_connect.d.ts +0 -168
- package/src/platform/policy/attributes/attributes_connect.js +0 -168
- package/src/platform/policy/attributes/attributes_pb.d.ts +0 -929
- package/src/platform/policy/attributes/attributes_pb.js +0 -363
- package/src/platform/policy/kasregistry/key_access_server_registry_connect.d.ts +0 -62
- package/src/platform/policy/kasregistry/key_access_server_registry_connect.js +0 -62
- package/src/platform/policy/kasregistry/key_access_server_registry_pb.d.ts +0 -283
- package/src/platform/policy/kasregistry/key_access_server_registry_pb.js +0 -113
- package/src/platform/policy/namespaces/namespaces_connect.d.ts +0 -62
- package/src/platform/policy/namespaces/namespaces_connect.js +0 -62
- package/src/platform/policy/namespaces/namespaces_pb.d.ts +0 -270
- package/src/platform/policy/namespaces/namespaces_pb.js +0 -110
- package/src/platform/policy/objects_pb.d.ts +0 -725
- package/src/platform/policy/objects_pb.js +0 -288
- package/src/platform/policy/resourcemapping/resource_mapping_connect.d.ts +0 -259
- package/src/platform/policy/resourcemapping/resource_mapping_connect.js +0 -259
- package/src/platform/policy/resourcemapping/resource_mapping_pb.d.ts +0 -314
- package/src/platform/policy/resourcemapping/resource_mapping_pb.js +0 -142
- package/src/platform/policy/selectors_pb.d.ts +0 -269
- package/src/platform/policy/selectors_pb.js +0 -110
- package/src/platform/policy/subjectmapping/subject_mapping_connect.d.ts +0 -118
- package/src/platform/policy/subjectmapping/subject_mapping_connect.js +0 -118
- package/src/platform/policy/subjectmapping/subject_mapping_pb.d.ts +0 -672
- package/src/platform/policy/subjectmapping/subject_mapping_pb.js +0 -260
- package/src/platform/wellknownconfiguration/wellknown_configuration_connect.d.ts +0 -26
- package/src/platform/wellknownconfiguration/wellknown_configuration_connect.js +0 -26
- package/src/platform/wellknownconfiguration/wellknown_configuration_pb.d.ts +0 -75
- package/src/platform/wellknownconfiguration/wellknown_configuration_pb.js +0 -35
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { StringValueSchema, Value } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file kas/kas.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_kas_kas: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* Intentionally empty. May include features later.
|
|
10
|
+
*
|
|
11
|
+
* @generated from message kas.InfoRequest
|
|
12
|
+
*/
|
|
13
|
+
export type InfoRequest = Message<"kas.InfoRequest"> & {};
|
|
14
|
+
/**
|
|
15
|
+
* Describes the message kas.InfoRequest.
|
|
16
|
+
* Use `create(InfoRequestSchema)` to create a new message.
|
|
17
|
+
*/
|
|
18
|
+
export declare const InfoRequestSchema: GenMessage<InfoRequest>;
|
|
19
|
+
/**
|
|
20
|
+
* Service application level metadata
|
|
21
|
+
*
|
|
22
|
+
* @generated from message kas.InfoResponse
|
|
23
|
+
*/
|
|
24
|
+
export type InfoResponse = Message<"kas.InfoResponse"> & {
|
|
25
|
+
/**
|
|
26
|
+
* @generated from field: string version = 1;
|
|
27
|
+
*/
|
|
28
|
+
version: string;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Describes the message kas.InfoResponse.
|
|
32
|
+
* Use `create(InfoResponseSchema)` to create a new message.
|
|
33
|
+
*/
|
|
34
|
+
export declare const InfoResponseSchema: GenMessage<InfoResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* @generated from message kas.LegacyPublicKeyRequest
|
|
37
|
+
*/
|
|
38
|
+
export type LegacyPublicKeyRequest = Message<"kas.LegacyPublicKeyRequest"> & {
|
|
39
|
+
/**
|
|
40
|
+
* @generated from field: string algorithm = 1;
|
|
41
|
+
*/
|
|
42
|
+
algorithm: string;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Describes the message kas.LegacyPublicKeyRequest.
|
|
46
|
+
* Use `create(LegacyPublicKeyRequestSchema)` to create a new message.
|
|
47
|
+
*/
|
|
48
|
+
export declare const LegacyPublicKeyRequestSchema: GenMessage<LegacyPublicKeyRequest>;
|
|
49
|
+
/**
|
|
50
|
+
* @generated from message kas.PolicyBinding
|
|
51
|
+
*/
|
|
52
|
+
export type PolicyBinding = Message<"kas.PolicyBinding"> & {
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: string algorithm = 1 [json_name = "alg"];
|
|
55
|
+
*/
|
|
56
|
+
algorithm: string;
|
|
57
|
+
/**
|
|
58
|
+
* @generated from field: string hash = 2;
|
|
59
|
+
*/
|
|
60
|
+
hash: string;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Describes the message kas.PolicyBinding.
|
|
64
|
+
* Use `create(PolicyBindingSchema)` to create a new message.
|
|
65
|
+
*/
|
|
66
|
+
export declare const PolicyBindingSchema: GenMessage<PolicyBinding>;
|
|
67
|
+
/**
|
|
68
|
+
* @generated from message kas.KeyAccess
|
|
69
|
+
*/
|
|
70
|
+
export type KeyAccess = Message<"kas.KeyAccess"> & {
|
|
71
|
+
/**
|
|
72
|
+
* @generated from field: string encrypted_metadata = 1;
|
|
73
|
+
*/
|
|
74
|
+
encryptedMetadata: string;
|
|
75
|
+
/**
|
|
76
|
+
* @generated from field: kas.PolicyBinding policy_binding = 2;
|
|
77
|
+
*/
|
|
78
|
+
policyBinding?: PolicyBinding;
|
|
79
|
+
/**
|
|
80
|
+
* @generated from field: string protocol = 3;
|
|
81
|
+
*/
|
|
82
|
+
protocol: string;
|
|
83
|
+
/**
|
|
84
|
+
* @generated from field: string key_type = 4 [json_name = "type"];
|
|
85
|
+
*/
|
|
86
|
+
keyType: string;
|
|
87
|
+
/**
|
|
88
|
+
* @generated from field: string kas_url = 5 [json_name = "url"];
|
|
89
|
+
*/
|
|
90
|
+
kasUrl: string;
|
|
91
|
+
/**
|
|
92
|
+
* @generated from field: string kid = 6;
|
|
93
|
+
*/
|
|
94
|
+
kid: string;
|
|
95
|
+
/**
|
|
96
|
+
* @generated from field: string split_id = 7 [json_name = "sid"];
|
|
97
|
+
*/
|
|
98
|
+
splitId: string;
|
|
99
|
+
/**
|
|
100
|
+
* @generated from field: bytes wrapped_key = 8;
|
|
101
|
+
*/
|
|
102
|
+
wrappedKey: Uint8Array;
|
|
103
|
+
/**
|
|
104
|
+
* header is only used for NanoTDFs
|
|
105
|
+
*
|
|
106
|
+
* @generated from field: bytes header = 9;
|
|
107
|
+
*/
|
|
108
|
+
header: Uint8Array;
|
|
109
|
+
/**
|
|
110
|
+
* For wrapping with an ECDH derived key, when type=ec-wrapped.
|
|
111
|
+
* Should be a PEM-encoded PKCS#8 (asn.1) value.
|
|
112
|
+
*
|
|
113
|
+
* @generated from field: string ephemeral_public_key = 10;
|
|
114
|
+
*/
|
|
115
|
+
ephemeralPublicKey: string;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Describes the message kas.KeyAccess.
|
|
119
|
+
* Use `create(KeyAccessSchema)` to create a new message.
|
|
120
|
+
*/
|
|
121
|
+
export declare const KeyAccessSchema: GenMessage<KeyAccess>;
|
|
122
|
+
/**
|
|
123
|
+
* @generated from message kas.UnsignedRewrapRequest
|
|
124
|
+
*/
|
|
125
|
+
export type UnsignedRewrapRequest = Message<"kas.UnsignedRewrapRequest"> & {
|
|
126
|
+
/**
|
|
127
|
+
* @generated from field: string client_public_key = 1;
|
|
128
|
+
*/
|
|
129
|
+
clientPublicKey: string;
|
|
130
|
+
/**
|
|
131
|
+
* @generated from field: repeated kas.UnsignedRewrapRequest.WithPolicyRequest requests = 2;
|
|
132
|
+
*/
|
|
133
|
+
requests: UnsignedRewrapRequest_WithPolicyRequest[];
|
|
134
|
+
/**
|
|
135
|
+
* Used for legacy non-bulk requests
|
|
136
|
+
*
|
|
137
|
+
* @generated from field: kas.KeyAccess key_access = 3 [deprecated = true];
|
|
138
|
+
* @deprecated
|
|
139
|
+
*/
|
|
140
|
+
keyAccess?: KeyAccess;
|
|
141
|
+
/**
|
|
142
|
+
* Used for legacy non-bulk requests
|
|
143
|
+
*
|
|
144
|
+
* @generated from field: string policy = 4 [deprecated = true];
|
|
145
|
+
* @deprecated
|
|
146
|
+
*/
|
|
147
|
+
policy: string;
|
|
148
|
+
/**
|
|
149
|
+
* Used for legacy non-bulk requests
|
|
150
|
+
*
|
|
151
|
+
* @generated from field: string algorithm = 5 [deprecated = true];
|
|
152
|
+
* @deprecated
|
|
153
|
+
*/
|
|
154
|
+
algorithm: string;
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* Describes the message kas.UnsignedRewrapRequest.
|
|
158
|
+
* Use `create(UnsignedRewrapRequestSchema)` to create a new message.
|
|
159
|
+
*/
|
|
160
|
+
export declare const UnsignedRewrapRequestSchema: GenMessage<UnsignedRewrapRequest>;
|
|
161
|
+
/**
|
|
162
|
+
* @generated from message kas.UnsignedRewrapRequest.WithPolicy
|
|
163
|
+
*/
|
|
164
|
+
export type UnsignedRewrapRequest_WithPolicy = Message<"kas.UnsignedRewrapRequest.WithPolicy"> & {
|
|
165
|
+
/**
|
|
166
|
+
* @generated from field: string id = 1;
|
|
167
|
+
*/
|
|
168
|
+
id: string;
|
|
169
|
+
/**
|
|
170
|
+
* @generated from field: string body = 2;
|
|
171
|
+
*/
|
|
172
|
+
body: string;
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Describes the message kas.UnsignedRewrapRequest.WithPolicy.
|
|
176
|
+
* Use `create(UnsignedRewrapRequest_WithPolicySchema)` to create a new message.
|
|
177
|
+
*/
|
|
178
|
+
export declare const UnsignedRewrapRequest_WithPolicySchema: GenMessage<UnsignedRewrapRequest_WithPolicy>;
|
|
179
|
+
/**
|
|
180
|
+
* @generated from message kas.UnsignedRewrapRequest.WithKeyAccessObject
|
|
181
|
+
*/
|
|
182
|
+
export type UnsignedRewrapRequest_WithKeyAccessObject = Message<"kas.UnsignedRewrapRequest.WithKeyAccessObject"> & {
|
|
183
|
+
/**
|
|
184
|
+
* @generated from field: string key_access_object_id = 1;
|
|
185
|
+
*/
|
|
186
|
+
keyAccessObjectId: string;
|
|
187
|
+
/**
|
|
188
|
+
* @generated from field: kas.KeyAccess key_access_object = 2;
|
|
189
|
+
*/
|
|
190
|
+
keyAccessObject?: KeyAccess;
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* Describes the message kas.UnsignedRewrapRequest.WithKeyAccessObject.
|
|
194
|
+
* Use `create(UnsignedRewrapRequest_WithKeyAccessObjectSchema)` to create a new message.
|
|
195
|
+
*/
|
|
196
|
+
export declare const UnsignedRewrapRequest_WithKeyAccessObjectSchema: GenMessage<UnsignedRewrapRequest_WithKeyAccessObject>;
|
|
197
|
+
/**
|
|
198
|
+
* @generated from message kas.UnsignedRewrapRequest.WithPolicyRequest
|
|
199
|
+
*/
|
|
200
|
+
export type UnsignedRewrapRequest_WithPolicyRequest = Message<"kas.UnsignedRewrapRequest.WithPolicyRequest"> & {
|
|
201
|
+
/**
|
|
202
|
+
* @generated from field: repeated kas.UnsignedRewrapRequest.WithKeyAccessObject key_access_objects = 1;
|
|
203
|
+
*/
|
|
204
|
+
keyAccessObjects: UnsignedRewrapRequest_WithKeyAccessObject[];
|
|
205
|
+
/**
|
|
206
|
+
* @generated from field: kas.UnsignedRewrapRequest.WithPolicy policy = 2;
|
|
207
|
+
*/
|
|
208
|
+
policy?: UnsignedRewrapRequest_WithPolicy;
|
|
209
|
+
/**
|
|
210
|
+
* @generated from field: string algorithm = 3;
|
|
211
|
+
*/
|
|
212
|
+
algorithm: string;
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* Describes the message kas.UnsignedRewrapRequest.WithPolicyRequest.
|
|
216
|
+
* Use `create(UnsignedRewrapRequest_WithPolicyRequestSchema)` to create a new message.
|
|
217
|
+
*/
|
|
218
|
+
export declare const UnsignedRewrapRequest_WithPolicyRequestSchema: GenMessage<UnsignedRewrapRequest_WithPolicyRequest>;
|
|
219
|
+
/**
|
|
220
|
+
* @generated from message kas.PublicKeyRequest
|
|
221
|
+
*/
|
|
222
|
+
export type PublicKeyRequest = Message<"kas.PublicKeyRequest"> & {
|
|
223
|
+
/**
|
|
224
|
+
* @generated from field: string algorithm = 1;
|
|
225
|
+
*/
|
|
226
|
+
algorithm: string;
|
|
227
|
+
/**
|
|
228
|
+
* @generated from field: string fmt = 2;
|
|
229
|
+
*/
|
|
230
|
+
fmt: string;
|
|
231
|
+
/**
|
|
232
|
+
* @generated from field: string v = 3;
|
|
233
|
+
*/
|
|
234
|
+
v: string;
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* Describes the message kas.PublicKeyRequest.
|
|
238
|
+
* Use `create(PublicKeyRequestSchema)` to create a new message.
|
|
239
|
+
*/
|
|
240
|
+
export declare const PublicKeyRequestSchema: GenMessage<PublicKeyRequest>;
|
|
241
|
+
/**
|
|
242
|
+
* @generated from message kas.PublicKeyResponse
|
|
243
|
+
*/
|
|
244
|
+
export type PublicKeyResponse = Message<"kas.PublicKeyResponse"> & {
|
|
245
|
+
/**
|
|
246
|
+
* @generated from field: string public_key = 1;
|
|
247
|
+
*/
|
|
248
|
+
publicKey: string;
|
|
249
|
+
/**
|
|
250
|
+
* @generated from field: string kid = 2;
|
|
251
|
+
*/
|
|
252
|
+
kid: string;
|
|
253
|
+
};
|
|
254
|
+
/**
|
|
255
|
+
* Describes the message kas.PublicKeyResponse.
|
|
256
|
+
* Use `create(PublicKeyResponseSchema)` to create a new message.
|
|
257
|
+
*/
|
|
258
|
+
export declare const PublicKeyResponseSchema: GenMessage<PublicKeyResponse>;
|
|
259
|
+
/**
|
|
260
|
+
* @generated from message kas.RewrapRequest
|
|
261
|
+
*/
|
|
262
|
+
export type RewrapRequest = Message<"kas.RewrapRequest"> & {
|
|
263
|
+
/**
|
|
264
|
+
* @generated from field: string signed_request_token = 1;
|
|
265
|
+
*/
|
|
266
|
+
signedRequestToken: string;
|
|
267
|
+
};
|
|
268
|
+
/**
|
|
269
|
+
* Describes the message kas.RewrapRequest.
|
|
270
|
+
* Use `create(RewrapRequestSchema)` to create a new message.
|
|
271
|
+
*/
|
|
272
|
+
export declare const RewrapRequestSchema: GenMessage<RewrapRequest>;
|
|
273
|
+
/**
|
|
274
|
+
* @generated from message kas.KeyAccessRewrapResult
|
|
275
|
+
*/
|
|
276
|
+
export type KeyAccessRewrapResult = Message<"kas.KeyAccessRewrapResult"> & {
|
|
277
|
+
/**
|
|
278
|
+
* @generated from field: map<string, google.protobuf.Value> metadata = 1;
|
|
279
|
+
*/
|
|
280
|
+
metadata: {
|
|
281
|
+
[key: string]: Value;
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* @generated from field: string key_access_object_id = 2;
|
|
285
|
+
*/
|
|
286
|
+
keyAccessObjectId: string;
|
|
287
|
+
/**
|
|
288
|
+
* @generated from field: string status = 3;
|
|
289
|
+
*/
|
|
290
|
+
status: string;
|
|
291
|
+
/**
|
|
292
|
+
* @generated from oneof kas.KeyAccessRewrapResult.result
|
|
293
|
+
*/
|
|
294
|
+
result: {
|
|
295
|
+
/**
|
|
296
|
+
* @generated from field: bytes kas_wrapped_key = 4;
|
|
297
|
+
*/
|
|
298
|
+
value: Uint8Array;
|
|
299
|
+
case: "kasWrappedKey";
|
|
300
|
+
} | {
|
|
301
|
+
/**
|
|
302
|
+
* @generated from field: string error = 5;
|
|
303
|
+
*/
|
|
304
|
+
value: string;
|
|
305
|
+
case: "error";
|
|
306
|
+
} | {
|
|
307
|
+
case: undefined;
|
|
308
|
+
value?: undefined;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
/**
|
|
312
|
+
* Describes the message kas.KeyAccessRewrapResult.
|
|
313
|
+
* Use `create(KeyAccessRewrapResultSchema)` to create a new message.
|
|
314
|
+
*/
|
|
315
|
+
export declare const KeyAccessRewrapResultSchema: GenMessage<KeyAccessRewrapResult>;
|
|
316
|
+
/**
|
|
317
|
+
* @generated from message kas.PolicyRewrapResult
|
|
318
|
+
*/
|
|
319
|
+
export type PolicyRewrapResult = Message<"kas.PolicyRewrapResult"> & {
|
|
320
|
+
/**
|
|
321
|
+
* @generated from field: string policy_id = 1;
|
|
322
|
+
*/
|
|
323
|
+
policyId: string;
|
|
324
|
+
/**
|
|
325
|
+
* @generated from field: repeated kas.KeyAccessRewrapResult results = 2;
|
|
326
|
+
*/
|
|
327
|
+
results: KeyAccessRewrapResult[];
|
|
328
|
+
};
|
|
329
|
+
/**
|
|
330
|
+
* Describes the message kas.PolicyRewrapResult.
|
|
331
|
+
* Use `create(PolicyRewrapResultSchema)` to create a new message.
|
|
332
|
+
*/
|
|
333
|
+
export declare const PolicyRewrapResultSchema: GenMessage<PolicyRewrapResult>;
|
|
334
|
+
/**
|
|
335
|
+
* @generated from message kas.RewrapResponse
|
|
336
|
+
*/
|
|
337
|
+
export type RewrapResponse = Message<"kas.RewrapResponse"> & {
|
|
338
|
+
/**
|
|
339
|
+
* @generated from field: map<string, google.protobuf.Value> metadata = 1 [deprecated = true];
|
|
340
|
+
* @deprecated
|
|
341
|
+
*/
|
|
342
|
+
metadata: {
|
|
343
|
+
[key: string]: Value;
|
|
344
|
+
};
|
|
345
|
+
/**
|
|
346
|
+
* @generated from field: bytes entity_wrapped_key = 2 [deprecated = true];
|
|
347
|
+
* @deprecated
|
|
348
|
+
*/
|
|
349
|
+
entityWrappedKey: Uint8Array;
|
|
350
|
+
/**
|
|
351
|
+
* @generated from field: string session_public_key = 3;
|
|
352
|
+
*/
|
|
353
|
+
sessionPublicKey: string;
|
|
354
|
+
/**
|
|
355
|
+
* @generated from field: string schema_version = 4 [deprecated = true];
|
|
356
|
+
* @deprecated
|
|
357
|
+
*/
|
|
358
|
+
schemaVersion: string;
|
|
359
|
+
/**
|
|
360
|
+
* New Rewrap API changes
|
|
361
|
+
*
|
|
362
|
+
* @generated from field: repeated kas.PolicyRewrapResult responses = 5;
|
|
363
|
+
*/
|
|
364
|
+
responses: PolicyRewrapResult[];
|
|
365
|
+
};
|
|
366
|
+
/**
|
|
367
|
+
* Describes the message kas.RewrapResponse.
|
|
368
|
+
* Use `create(RewrapResponseSchema)` to create a new message.
|
|
369
|
+
*/
|
|
370
|
+
export declare const RewrapResponseSchema: GenMessage<RewrapResponse>;
|
|
371
|
+
/**
|
|
372
|
+
* Get app info from the root path
|
|
373
|
+
*
|
|
374
|
+
* @generated from service kas.AccessService
|
|
375
|
+
*/
|
|
376
|
+
export declare const AccessService: GenService<{
|
|
377
|
+
/**
|
|
378
|
+
* @generated from rpc kas.AccessService.PublicKey
|
|
379
|
+
*/
|
|
380
|
+
publicKey: {
|
|
381
|
+
methodKind: "unary";
|
|
382
|
+
input: typeof PublicKeyRequestSchema;
|
|
383
|
+
output: typeof PublicKeyResponseSchema;
|
|
384
|
+
};
|
|
385
|
+
/**
|
|
386
|
+
* buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
|
|
387
|
+
*
|
|
388
|
+
* @generated from rpc kas.AccessService.LegacyPublicKey
|
|
389
|
+
*/
|
|
390
|
+
legacyPublicKey: {
|
|
391
|
+
methodKind: "unary";
|
|
392
|
+
input: typeof LegacyPublicKeyRequestSchema;
|
|
393
|
+
output: typeof StringValueSchema;
|
|
394
|
+
};
|
|
395
|
+
/**
|
|
396
|
+
* @generated from rpc kas.AccessService.Rewrap
|
|
397
|
+
*/
|
|
398
|
+
rewrap: {
|
|
399
|
+
methodKind: "unary";
|
|
400
|
+
input: typeof RewrapRequestSchema;
|
|
401
|
+
output: typeof RewrapResponseSchema;
|
|
402
|
+
};
|
|
403
|
+
}>;
|
|
404
|
+
//# sourceMappingURL=kas_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kas_pb.d.ts","sourceRoot":"","sources":["../../../../../src/platform/kas/kas_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGpF,OAAO,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAGvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,OACmnG,CAAC;AAE/oG;;;;GAIG;AAC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,EAAE,OAAO,uBAAuB,CAAC;KACxC,CAAC;IACF;;;;OAIG;IACH,eAAe,EAAE;QACf,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,OAAO,4BAA4B,CAAC;QAC3C,MAAM,EAAE,OAAO,iBAAiB,CAAC;KAClC,CAAC;IACF;;OAEG;IACH,MAAM,EAAE;QACN,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,OAAO,mBAAmB,CAAC;QAClC,MAAM,EAAE,OAAO,oBAAoB,CAAC;KACrC,CAAC;CACH,CAC6B,CAAC"}
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { MetadataMutable, MetadataUpdateEnum } from "../../common/common_pb.js";
|
|
3
|
+
import type { Action, SubjectMapping } 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/actions/actions.proto.
|
|
8
|
+
*/
|
|
9
|
+
export declare const file_policy_actions_actions: GenFile;
|
|
10
|
+
/**
|
|
11
|
+
* @generated from message policy.actions.GetActionRequest
|
|
12
|
+
*/
|
|
13
|
+
export type GetActionRequest = Message<"policy.actions.GetActionRequest"> & {
|
|
14
|
+
/**
|
|
15
|
+
* Required
|
|
16
|
+
*
|
|
17
|
+
* @generated from oneof policy.actions.GetActionRequest.identifier
|
|
18
|
+
*/
|
|
19
|
+
identifier: {
|
|
20
|
+
/**
|
|
21
|
+
* @generated from field: string id = 1;
|
|
22
|
+
*/
|
|
23
|
+
value: string;
|
|
24
|
+
case: "id";
|
|
25
|
+
} | {
|
|
26
|
+
/**
|
|
27
|
+
* @generated from field: string name = 2;
|
|
28
|
+
*/
|
|
29
|
+
value: string;
|
|
30
|
+
case: "name";
|
|
31
|
+
} | {
|
|
32
|
+
case: undefined;
|
|
33
|
+
value?: undefined;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Describes the message policy.actions.GetActionRequest.
|
|
38
|
+
* Use `create(GetActionRequestSchema)` to create a new message.
|
|
39
|
+
*/
|
|
40
|
+
export declare const GetActionRequestSchema: GenMessage<GetActionRequest>;
|
|
41
|
+
/**
|
|
42
|
+
* @generated from message policy.actions.GetActionResponse
|
|
43
|
+
*/
|
|
44
|
+
export type GetActionResponse = Message<"policy.actions.GetActionResponse"> & {
|
|
45
|
+
/**
|
|
46
|
+
* @generated from field: policy.Action action = 1;
|
|
47
|
+
*/
|
|
48
|
+
action?: Action;
|
|
49
|
+
/**
|
|
50
|
+
* Subject Mappings driving entitlement to the action
|
|
51
|
+
*
|
|
52
|
+
* @generated from field: repeated policy.SubjectMapping subject_mappings = 2;
|
|
53
|
+
*/
|
|
54
|
+
subjectMappings: SubjectMapping[];
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Describes the message policy.actions.GetActionResponse.
|
|
58
|
+
* Use `create(GetActionResponseSchema)` to create a new message.
|
|
59
|
+
*/
|
|
60
|
+
export declare const GetActionResponseSchema: GenMessage<GetActionResponse>;
|
|
61
|
+
/**
|
|
62
|
+
* @generated from message policy.actions.ListActionsRequest
|
|
63
|
+
*/
|
|
64
|
+
export type ListActionsRequest = Message<"policy.actions.ListActionsRequest"> & {
|
|
65
|
+
/**
|
|
66
|
+
* Optional
|
|
67
|
+
*
|
|
68
|
+
* @generated from field: policy.PageRequest pagination = 10;
|
|
69
|
+
*/
|
|
70
|
+
pagination?: PageRequest;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Describes the message policy.actions.ListActionsRequest.
|
|
74
|
+
* Use `create(ListActionsRequestSchema)` to create a new message.
|
|
75
|
+
*/
|
|
76
|
+
export declare const ListActionsRequestSchema: GenMessage<ListActionsRequest>;
|
|
77
|
+
/**
|
|
78
|
+
* @generated from message policy.actions.ListActionsResponse
|
|
79
|
+
*/
|
|
80
|
+
export type ListActionsResponse = Message<"policy.actions.ListActionsResponse"> & {
|
|
81
|
+
/**
|
|
82
|
+
* @generated from field: repeated policy.Action actions_standard = 1;
|
|
83
|
+
*/
|
|
84
|
+
actionsStandard: Action[];
|
|
85
|
+
/**
|
|
86
|
+
* @generated from field: repeated policy.Action actions_custom = 2;
|
|
87
|
+
*/
|
|
88
|
+
actionsCustom: Action[];
|
|
89
|
+
/**
|
|
90
|
+
* @generated from field: policy.PageResponse pagination = 10;
|
|
91
|
+
*/
|
|
92
|
+
pagination?: PageResponse;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Describes the message policy.actions.ListActionsResponse.
|
|
96
|
+
* Use `create(ListActionsResponseSchema)` to create a new message.
|
|
97
|
+
*/
|
|
98
|
+
export declare const ListActionsResponseSchema: GenMessage<ListActionsResponse>;
|
|
99
|
+
/**
|
|
100
|
+
* Create a new Custom action name with optional metadata.
|
|
101
|
+
* Creation of Standard actions is not supported.
|
|
102
|
+
*
|
|
103
|
+
* @generated from message policy.actions.CreateActionRequest
|
|
104
|
+
*/
|
|
105
|
+
export type CreateActionRequest = Message<"policy.actions.CreateActionRequest"> & {
|
|
106
|
+
/**
|
|
107
|
+
* Required
|
|
108
|
+
*
|
|
109
|
+
* @generated from field: string name = 1;
|
|
110
|
+
*/
|
|
111
|
+
name: string;
|
|
112
|
+
/**
|
|
113
|
+
* Optional
|
|
114
|
+
*
|
|
115
|
+
* @generated from field: common.MetadataMutable metadata = 100;
|
|
116
|
+
*/
|
|
117
|
+
metadata?: MetadataMutable;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Describes the message policy.actions.CreateActionRequest.
|
|
121
|
+
* Use `create(CreateActionRequestSchema)` to create a new message.
|
|
122
|
+
*/
|
|
123
|
+
export declare const CreateActionRequestSchema: GenMessage<CreateActionRequest>;
|
|
124
|
+
/**
|
|
125
|
+
* @generated from message policy.actions.CreateActionResponse
|
|
126
|
+
*/
|
|
127
|
+
export type CreateActionResponse = Message<"policy.actions.CreateActionResponse"> & {
|
|
128
|
+
/**
|
|
129
|
+
* @generated from field: policy.Action action = 1;
|
|
130
|
+
*/
|
|
131
|
+
action?: Action;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Describes the message policy.actions.CreateActionResponse.
|
|
135
|
+
* Use `create(CreateActionResponseSchema)` to create a new message.
|
|
136
|
+
*/
|
|
137
|
+
export declare const CreateActionResponseSchema: GenMessage<CreateActionResponse>;
|
|
138
|
+
/**
|
|
139
|
+
* Metadata may be updated for either Custom or Standard actions.
|
|
140
|
+
* Names may only be updated for Custom actions.
|
|
141
|
+
*
|
|
142
|
+
* @generated from message policy.actions.UpdateActionRequest
|
|
143
|
+
*/
|
|
144
|
+
export type UpdateActionRequest = Message<"policy.actions.UpdateActionRequest"> & {
|
|
145
|
+
/**
|
|
146
|
+
* Required
|
|
147
|
+
*
|
|
148
|
+
* @generated from field: string id = 1;
|
|
149
|
+
*/
|
|
150
|
+
id: string;
|
|
151
|
+
/**
|
|
152
|
+
* Optional
|
|
153
|
+
* Custom actions only: replaces the existing action name
|
|
154
|
+
*
|
|
155
|
+
* @generated from field: string name = 2;
|
|
156
|
+
*/
|
|
157
|
+
name: string;
|
|
158
|
+
/**
|
|
159
|
+
* Common metadata
|
|
160
|
+
*
|
|
161
|
+
* @generated from field: common.MetadataMutable metadata = 100;
|
|
162
|
+
*/
|
|
163
|
+
metadata?: MetadataMutable;
|
|
164
|
+
/**
|
|
165
|
+
* @generated from field: common.MetadataUpdateEnum metadata_update_behavior = 101;
|
|
166
|
+
*/
|
|
167
|
+
metadataUpdateBehavior: MetadataUpdateEnum;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Describes the message policy.actions.UpdateActionRequest.
|
|
171
|
+
* Use `create(UpdateActionRequestSchema)` to create a new message.
|
|
172
|
+
*/
|
|
173
|
+
export declare const UpdateActionRequestSchema: GenMessage<UpdateActionRequest>;
|
|
174
|
+
/**
|
|
175
|
+
* @generated from message policy.actions.UpdateActionResponse
|
|
176
|
+
*/
|
|
177
|
+
export type UpdateActionResponse = Message<"policy.actions.UpdateActionResponse"> & {
|
|
178
|
+
/**
|
|
179
|
+
* @generated from field: policy.Action action = 1;
|
|
180
|
+
*/
|
|
181
|
+
action?: Action;
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Describes the message policy.actions.UpdateActionResponse.
|
|
185
|
+
* Use `create(UpdateActionResponseSchema)` to create a new message.
|
|
186
|
+
*/
|
|
187
|
+
export declare const UpdateActionResponseSchema: GenMessage<UpdateActionResponse>;
|
|
188
|
+
/**
|
|
189
|
+
* Custom only: deletion of Standard actions is not supported.
|
|
190
|
+
*
|
|
191
|
+
* @generated from message policy.actions.DeleteActionRequest
|
|
192
|
+
*/
|
|
193
|
+
export type DeleteActionRequest = Message<"policy.actions.DeleteActionRequest"> & {
|
|
194
|
+
/**
|
|
195
|
+
* Required
|
|
196
|
+
*
|
|
197
|
+
* @generated from field: string id = 1;
|
|
198
|
+
*/
|
|
199
|
+
id: string;
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* Describes the message policy.actions.DeleteActionRequest.
|
|
203
|
+
* Use `create(DeleteActionRequestSchema)` to create a new message.
|
|
204
|
+
*/
|
|
205
|
+
export declare const DeleteActionRequestSchema: GenMessage<DeleteActionRequest>;
|
|
206
|
+
/**
|
|
207
|
+
* @generated from message policy.actions.DeleteActionResponse
|
|
208
|
+
*/
|
|
209
|
+
export type DeleteActionResponse = Message<"policy.actions.DeleteActionResponse"> & {
|
|
210
|
+
/**
|
|
211
|
+
* @generated from field: policy.Action action = 1;
|
|
212
|
+
*/
|
|
213
|
+
action?: Action;
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* Describes the message policy.actions.DeleteActionResponse.
|
|
217
|
+
* Use `create(DeleteActionResponseSchema)` to create a new message.
|
|
218
|
+
*/
|
|
219
|
+
export declare const DeleteActionResponseSchema: GenMessage<DeleteActionResponse>;
|
|
220
|
+
/**
|
|
221
|
+
* @generated from service policy.actions.ActionService
|
|
222
|
+
*/
|
|
223
|
+
export declare const ActionService: GenService<{
|
|
224
|
+
/**
|
|
225
|
+
* @generated from rpc policy.actions.ActionService.GetAction
|
|
226
|
+
*/
|
|
227
|
+
getAction: {
|
|
228
|
+
methodKind: "unary";
|
|
229
|
+
input: typeof GetActionRequestSchema;
|
|
230
|
+
output: typeof GetActionResponseSchema;
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* @generated from rpc policy.actions.ActionService.ListActions
|
|
234
|
+
*/
|
|
235
|
+
listActions: {
|
|
236
|
+
methodKind: "unary";
|
|
237
|
+
input: typeof ListActionsRequestSchema;
|
|
238
|
+
output: typeof ListActionsResponseSchema;
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* @generated from rpc policy.actions.ActionService.CreateAction
|
|
242
|
+
*/
|
|
243
|
+
createAction: {
|
|
244
|
+
methodKind: "unary";
|
|
245
|
+
input: typeof CreateActionRequestSchema;
|
|
246
|
+
output: typeof CreateActionResponseSchema;
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* @generated from rpc policy.actions.ActionService.UpdateAction
|
|
250
|
+
*/
|
|
251
|
+
updateAction: {
|
|
252
|
+
methodKind: "unary";
|
|
253
|
+
input: typeof UpdateActionRequestSchema;
|
|
254
|
+
output: typeof UpdateActionResponseSchema;
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* @generated from rpc policy.actions.ActionService.DeleteAction
|
|
258
|
+
*/
|
|
259
|
+
deleteAction: {
|
|
260
|
+
methodKind: "unary";
|
|
261
|
+
input: typeof DeleteActionRequestSchema;
|
|
262
|
+
output: typeof DeleteActionResponseSchema;
|
|
263
|
+
};
|
|
264
|
+
}>;
|
|
265
|
+
//# sourceMappingURL=actions_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions_pb.d.ts","source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