@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.
- 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 +43 -9
- 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/assertions.js +5 -5
- package/dist/cjs/tdf3/src/client/index.js +24 -18
- package/dist/cjs/tdf3/src/tdf.js +16 -10
- 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/assertions.d.ts +1 -1
- package/dist/types/tdf3/src/assertions.d.ts.map +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/models/manifest.d.ts +1 -1
- package/dist/types/tdf3/src/models/manifest.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 +44 -10
- 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/assertions.js +5 -5
- package/dist/web/tdf3/src/client/index.js +26 -20
- package/dist/web/tdf3/src/tdf.js +16 -10
- 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 +67 -11
- 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/assertions.ts +4 -4
- package/tdf3/src/client/index.ts +42 -19
- package/tdf3/src/models/manifest.ts +2 -1
- package/tdf3/src/tdf.ts +25 -16
- 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
|
@@ -1,707 +0,0 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v1.9.0 with parameter "target=js+dts,import_extension=none"
|
|
2
|
-
// @generated from file authorization/authorization.proto (package authorization, syntax proto3)
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
// @ts-nocheck
|
|
5
|
-
|
|
6
|
-
import type { Any, BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
-
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
|
-
import type { Action } from "../policy/objects_pb";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @generated from message authorization.Token
|
|
12
|
-
*/
|
|
13
|
-
export declare class Token extends Message<Token> {
|
|
14
|
-
/**
|
|
15
|
-
* ephemeral id for tracking between request and response
|
|
16
|
-
*
|
|
17
|
-
* @generated from field: string id = 1;
|
|
18
|
-
*/
|
|
19
|
-
id: string;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* the token
|
|
23
|
-
*
|
|
24
|
-
* @generated from field: string jwt = 2;
|
|
25
|
-
*/
|
|
26
|
-
jwt: string;
|
|
27
|
-
|
|
28
|
-
constructor(data?: PartialMessage<Token>);
|
|
29
|
-
|
|
30
|
-
static readonly runtime: typeof proto3;
|
|
31
|
-
static readonly typeName = "authorization.Token";
|
|
32
|
-
static readonly fields: FieldList;
|
|
33
|
-
|
|
34
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Token;
|
|
35
|
-
|
|
36
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Token;
|
|
37
|
-
|
|
38
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Token;
|
|
39
|
-
|
|
40
|
-
static equals(a: Token | PlainMessage<Token> | undefined, b: Token | PlainMessage<Token> | undefined): boolean;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* PE (Person Entity) or NPE (Non-Person Entity)
|
|
45
|
-
*
|
|
46
|
-
* @generated from message authorization.Entity
|
|
47
|
-
*/
|
|
48
|
-
export declare class Entity extends Message<Entity> {
|
|
49
|
-
/**
|
|
50
|
-
* ephemeral id for tracking between request and response
|
|
51
|
-
*
|
|
52
|
-
* @generated from field: string id = 1;
|
|
53
|
-
*/
|
|
54
|
-
id: string;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Standard entity types supported by the platform
|
|
58
|
-
*
|
|
59
|
-
* @generated from oneof authorization.Entity.entity_type
|
|
60
|
-
*/
|
|
61
|
-
entityType: {
|
|
62
|
-
/**
|
|
63
|
-
* @generated from field: string email_address = 2;
|
|
64
|
-
*/
|
|
65
|
-
value: string;
|
|
66
|
-
case: "emailAddress";
|
|
67
|
-
} | {
|
|
68
|
-
/**
|
|
69
|
-
* @generated from field: string user_name = 3;
|
|
70
|
-
*/
|
|
71
|
-
value: string;
|
|
72
|
-
case: "userName";
|
|
73
|
-
} | {
|
|
74
|
-
/**
|
|
75
|
-
* @generated from field: string remote_claims_url = 4;
|
|
76
|
-
*/
|
|
77
|
-
value: string;
|
|
78
|
-
case: "remoteClaimsUrl";
|
|
79
|
-
} | {
|
|
80
|
-
/**
|
|
81
|
-
* @generated from field: string uuid = 5;
|
|
82
|
-
*/
|
|
83
|
-
value: string;
|
|
84
|
-
case: "uuid";
|
|
85
|
-
} | {
|
|
86
|
-
/**
|
|
87
|
-
* @generated from field: google.protobuf.Any claims = 6;
|
|
88
|
-
*/
|
|
89
|
-
value: Any;
|
|
90
|
-
case: "claims";
|
|
91
|
-
} | {
|
|
92
|
-
/**
|
|
93
|
-
* @generated from field: authorization.EntityCustom custom = 7;
|
|
94
|
-
*/
|
|
95
|
-
value: EntityCustom;
|
|
96
|
-
case: "custom";
|
|
97
|
-
} | {
|
|
98
|
-
/**
|
|
99
|
-
* @generated from field: string client_id = 8;
|
|
100
|
-
*/
|
|
101
|
-
value: string;
|
|
102
|
-
case: "clientId";
|
|
103
|
-
} | { case: undefined; value?: undefined };
|
|
104
|
-
|
|
105
|
-
constructor(data?: PartialMessage<Entity>);
|
|
106
|
-
|
|
107
|
-
static readonly runtime: typeof proto3;
|
|
108
|
-
static readonly typeName = "authorization.Entity";
|
|
109
|
-
static readonly fields: FieldList;
|
|
110
|
-
|
|
111
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Entity;
|
|
112
|
-
|
|
113
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Entity;
|
|
114
|
-
|
|
115
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Entity;
|
|
116
|
-
|
|
117
|
-
static equals(a: Entity | PlainMessage<Entity> | undefined, b: Entity | PlainMessage<Entity> | undefined): boolean;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Entity type for custom entities beyond the standard types
|
|
122
|
-
*
|
|
123
|
-
* @generated from message authorization.EntityCustom
|
|
124
|
-
*/
|
|
125
|
-
export declare class EntityCustom extends Message<EntityCustom> {
|
|
126
|
-
/**
|
|
127
|
-
* @generated from field: google.protobuf.Any extension = 1;
|
|
128
|
-
*/
|
|
129
|
-
extension?: Any;
|
|
130
|
-
|
|
131
|
-
constructor(data?: PartialMessage<EntityCustom>);
|
|
132
|
-
|
|
133
|
-
static readonly runtime: typeof proto3;
|
|
134
|
-
static readonly typeName = "authorization.EntityCustom";
|
|
135
|
-
static readonly fields: FieldList;
|
|
136
|
-
|
|
137
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EntityCustom;
|
|
138
|
-
|
|
139
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EntityCustom;
|
|
140
|
-
|
|
141
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EntityCustom;
|
|
142
|
-
|
|
143
|
-
static equals(a: EntityCustom | PlainMessage<EntityCustom> | undefined, b: EntityCustom | PlainMessage<EntityCustom> | undefined): boolean;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* A set of related PE and NPE
|
|
148
|
-
*
|
|
149
|
-
* @generated from message authorization.EntityChain
|
|
150
|
-
*/
|
|
151
|
-
export declare class EntityChain extends Message<EntityChain> {
|
|
152
|
-
/**
|
|
153
|
-
* ephemeral id for tracking between request and response
|
|
154
|
-
*
|
|
155
|
-
* @generated from field: string id = 1;
|
|
156
|
-
*/
|
|
157
|
-
id: string;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* @generated from field: repeated authorization.Entity entities = 2;
|
|
161
|
-
*/
|
|
162
|
-
entities: Entity[];
|
|
163
|
-
|
|
164
|
-
constructor(data?: PartialMessage<EntityChain>);
|
|
165
|
-
|
|
166
|
-
static readonly runtime: typeof proto3;
|
|
167
|
-
static readonly typeName = "authorization.EntityChain";
|
|
168
|
-
static readonly fields: FieldList;
|
|
169
|
-
|
|
170
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EntityChain;
|
|
171
|
-
|
|
172
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EntityChain;
|
|
173
|
-
|
|
174
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EntityChain;
|
|
175
|
-
|
|
176
|
-
static equals(a: EntityChain | PlainMessage<EntityChain> | undefined, b: EntityChain | PlainMessage<EntityChain> | undefined): boolean;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
*
|
|
181
|
-
* Example Request Get Decisions to answer the question - Do Bob (represented by entity chain ec1)
|
|
182
|
-
* and Alice (represented by entity chain ec2) have TRANSMIT authorization for
|
|
183
|
-
* 2 resources; resource1 (attr-set-1) defined by attributes foo:bar resource2 (attr-set-2) defined by attribute foo:bar, color:red ?
|
|
184
|
-
*
|
|
185
|
-
* {
|
|
186
|
-
* "actions": [
|
|
187
|
-
* {
|
|
188
|
-
* "standard": "STANDARD_ACTION_TRANSMIT"
|
|
189
|
-
* }
|
|
190
|
-
* ],
|
|
191
|
-
* "entityChains": [
|
|
192
|
-
* {
|
|
193
|
-
* "id": "ec1",
|
|
194
|
-
* "entities": [
|
|
195
|
-
* {
|
|
196
|
-
* "emailAddress": "bob@example.org"
|
|
197
|
-
* }
|
|
198
|
-
* ]
|
|
199
|
-
* },
|
|
200
|
-
* {
|
|
201
|
-
* "id": "ec2",
|
|
202
|
-
* "entities": [
|
|
203
|
-
* {
|
|
204
|
-
* "userName": "alice@example.org"
|
|
205
|
-
* }
|
|
206
|
-
* ]
|
|
207
|
-
* }
|
|
208
|
-
* ],
|
|
209
|
-
* "resourceAttributes": [
|
|
210
|
-
* {
|
|
211
|
-
* "resourceAttributeId": "attr-set-1",
|
|
212
|
-
* "attributeFqns": [
|
|
213
|
-
* "https://www.example.org/attr/foo/value/value1"
|
|
214
|
-
* ]
|
|
215
|
-
* },
|
|
216
|
-
* {
|
|
217
|
-
* "resourceAttributeId": "attr-set-2",
|
|
218
|
-
* "attributeFqns": [
|
|
219
|
-
* "https://example.net/attr/attr1/value/value1",
|
|
220
|
-
* "https://example.net/attr/attr1/value/value2"
|
|
221
|
-
* ]
|
|
222
|
-
* }
|
|
223
|
-
* ]
|
|
224
|
-
* }
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
* @generated from message authorization.DecisionRequest
|
|
228
|
-
*/
|
|
229
|
-
export declare class DecisionRequest extends Message<DecisionRequest> {
|
|
230
|
-
/**
|
|
231
|
-
* @generated from field: repeated policy.Action actions = 1;
|
|
232
|
-
*/
|
|
233
|
-
actions: Action[];
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* @generated from field: repeated authorization.EntityChain entity_chains = 2;
|
|
237
|
-
*/
|
|
238
|
-
entityChains: EntityChain[];
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* @generated from field: repeated authorization.ResourceAttribute resource_attributes = 3;
|
|
242
|
-
*/
|
|
243
|
-
resourceAttributes: ResourceAttribute[];
|
|
244
|
-
|
|
245
|
-
constructor(data?: PartialMessage<DecisionRequest>);
|
|
246
|
-
|
|
247
|
-
static readonly runtime: typeof proto3;
|
|
248
|
-
static readonly typeName = "authorization.DecisionRequest";
|
|
249
|
-
static readonly fields: FieldList;
|
|
250
|
-
|
|
251
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DecisionRequest;
|
|
252
|
-
|
|
253
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DecisionRequest;
|
|
254
|
-
|
|
255
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DecisionRequest;
|
|
256
|
-
|
|
257
|
-
static equals(a: DecisionRequest | PlainMessage<DecisionRequest> | undefined, b: DecisionRequest | PlainMessage<DecisionRequest> | undefined): boolean;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
*
|
|
262
|
-
*
|
|
263
|
-
* Example response for a Decision Request - Do Bob (represented by entity chain ec1)
|
|
264
|
-
* and Alice (represented by entity chain ec2) have TRANSMIT authorization for
|
|
265
|
-
* 2 resources; resource1 (attr-set-1) defined by attributes foo:bar resource2 (attr-set-2) defined by attribute foo:bar, color:red ?
|
|
266
|
-
*
|
|
267
|
-
* Results:
|
|
268
|
-
* - bob has permitted authorization to transmit for a resource defined by attr-set-1 attributes and has a watermark obligation
|
|
269
|
-
* - bob has denied authorization to transmit a for a resource defined by attr-set-2 attributes
|
|
270
|
-
* - alice has permitted authorization to transmit for a resource defined by attr-set-1 attributes
|
|
271
|
-
* - alice has denied authorization to transmit a for a resource defined by attr-set-2 attributes
|
|
272
|
-
*
|
|
273
|
-
* {
|
|
274
|
-
* "entityChainId": "ec1",
|
|
275
|
-
* "resourceAttributesId": "attr-set-1",
|
|
276
|
-
* "decision": "DECISION_PERMIT",
|
|
277
|
-
* "obligations": [
|
|
278
|
-
* "http://www.example.org/obligation/watermark"
|
|
279
|
-
* ]
|
|
280
|
-
* },
|
|
281
|
-
* {
|
|
282
|
-
* "entityChainId": "ec1",
|
|
283
|
-
* "resourceAttributesId": "attr-set-2",
|
|
284
|
-
* "decision": "DECISION_PERMIT"
|
|
285
|
-
* },
|
|
286
|
-
* {
|
|
287
|
-
* "entityChainId": "ec2",
|
|
288
|
-
* "resourceAttributesId": "attr-set-1",
|
|
289
|
-
* "decision": "DECISION_PERMIT"
|
|
290
|
-
* },
|
|
291
|
-
* {
|
|
292
|
-
* "entityChainId": "ec2",
|
|
293
|
-
* "resourceAttributesId": "attr-set-2",
|
|
294
|
-
* "decision": "DECISION_DENY"
|
|
295
|
-
* }
|
|
296
|
-
*
|
|
297
|
-
*
|
|
298
|
-
*
|
|
299
|
-
* @generated from message authorization.DecisionResponse
|
|
300
|
-
*/
|
|
301
|
-
export declare class DecisionResponse extends Message<DecisionResponse> {
|
|
302
|
-
/**
|
|
303
|
-
* ephemeral entity chain id from the request
|
|
304
|
-
*
|
|
305
|
-
* @generated from field: string entity_chain_id = 1;
|
|
306
|
-
*/
|
|
307
|
-
entityChainId: string;
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* ephemeral resource attributes id from the request
|
|
311
|
-
*
|
|
312
|
-
* @generated from field: string resource_attributes_id = 2;
|
|
313
|
-
*/
|
|
314
|
-
resourceAttributesId: string;
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* Action of the decision response
|
|
318
|
-
*
|
|
319
|
-
* @generated from field: policy.Action action = 3;
|
|
320
|
-
*/
|
|
321
|
-
action?: Action;
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* The decision response
|
|
325
|
-
*
|
|
326
|
-
* @generated from field: authorization.DecisionResponse.Decision decision = 4;
|
|
327
|
-
*/
|
|
328
|
-
decision: DecisionResponse_Decision;
|
|
329
|
-
|
|
330
|
-
/**
|
|
331
|
-
* optional list of obligations represented in URI format
|
|
332
|
-
*
|
|
333
|
-
* @generated from field: repeated string obligations = 5;
|
|
334
|
-
*/
|
|
335
|
-
obligations: string[];
|
|
336
|
-
|
|
337
|
-
constructor(data?: PartialMessage<DecisionResponse>);
|
|
338
|
-
|
|
339
|
-
static readonly runtime: typeof proto3;
|
|
340
|
-
static readonly typeName = "authorization.DecisionResponse";
|
|
341
|
-
static readonly fields: FieldList;
|
|
342
|
-
|
|
343
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DecisionResponse;
|
|
344
|
-
|
|
345
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DecisionResponse;
|
|
346
|
-
|
|
347
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DecisionResponse;
|
|
348
|
-
|
|
349
|
-
static equals(a: DecisionResponse | PlainMessage<DecisionResponse> | undefined, b: DecisionResponse | PlainMessage<DecisionResponse> | undefined): boolean;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* @generated from enum authorization.DecisionResponse.Decision
|
|
354
|
-
*/
|
|
355
|
-
export declare enum DecisionResponse_Decision {
|
|
356
|
-
/**
|
|
357
|
-
* @generated from enum value: DECISION_UNSPECIFIED = 0;
|
|
358
|
-
*/
|
|
359
|
-
UNSPECIFIED = 0,
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* @generated from enum value: DECISION_DENY = 1;
|
|
363
|
-
*/
|
|
364
|
-
DENY = 1,
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* @generated from enum value: DECISION_PERMIT = 2;
|
|
368
|
-
*/
|
|
369
|
-
PERMIT = 2,
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* @generated from message authorization.GetDecisionsRequest
|
|
374
|
-
*/
|
|
375
|
-
export declare class GetDecisionsRequest extends Message<GetDecisionsRequest> {
|
|
376
|
-
/**
|
|
377
|
-
* @generated from field: repeated authorization.DecisionRequest decision_requests = 1;
|
|
378
|
-
*/
|
|
379
|
-
decisionRequests: DecisionRequest[];
|
|
380
|
-
|
|
381
|
-
constructor(data?: PartialMessage<GetDecisionsRequest>);
|
|
382
|
-
|
|
383
|
-
static readonly runtime: typeof proto3;
|
|
384
|
-
static readonly typeName = "authorization.GetDecisionsRequest";
|
|
385
|
-
static readonly fields: FieldList;
|
|
386
|
-
|
|
387
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetDecisionsRequest;
|
|
388
|
-
|
|
389
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetDecisionsRequest;
|
|
390
|
-
|
|
391
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetDecisionsRequest;
|
|
392
|
-
|
|
393
|
-
static equals(a: GetDecisionsRequest | PlainMessage<GetDecisionsRequest> | undefined, b: GetDecisionsRequest | PlainMessage<GetDecisionsRequest> | undefined): boolean;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
/**
|
|
397
|
-
* @generated from message authorization.GetDecisionsResponse
|
|
398
|
-
*/
|
|
399
|
-
export declare class GetDecisionsResponse extends Message<GetDecisionsResponse> {
|
|
400
|
-
/**
|
|
401
|
-
* @generated from field: repeated authorization.DecisionResponse decision_responses = 1;
|
|
402
|
-
*/
|
|
403
|
-
decisionResponses: DecisionResponse[];
|
|
404
|
-
|
|
405
|
-
constructor(data?: PartialMessage<GetDecisionsResponse>);
|
|
406
|
-
|
|
407
|
-
static readonly runtime: typeof proto3;
|
|
408
|
-
static readonly typeName = "authorization.GetDecisionsResponse";
|
|
409
|
-
static readonly fields: FieldList;
|
|
410
|
-
|
|
411
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetDecisionsResponse;
|
|
412
|
-
|
|
413
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetDecisionsResponse;
|
|
414
|
-
|
|
415
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetDecisionsResponse;
|
|
416
|
-
|
|
417
|
-
static equals(a: GetDecisionsResponse | PlainMessage<GetDecisionsResponse> | undefined, b: GetDecisionsResponse | PlainMessage<GetDecisionsResponse> | undefined): boolean;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
/**
|
|
421
|
-
*
|
|
422
|
-
* Request to get entitlements for one or more entities for an optional attribute scope
|
|
423
|
-
*
|
|
424
|
-
* Example: Get entitlements for bob and alice (both represented using an email address
|
|
425
|
-
*
|
|
426
|
-
* {
|
|
427
|
-
* "entities": [
|
|
428
|
-
* {
|
|
429
|
-
* "id": "e1",
|
|
430
|
-
* "emailAddress": "bob@example.org"
|
|
431
|
-
* },
|
|
432
|
-
* {
|
|
433
|
-
* "id": "e2",
|
|
434
|
-
* "emailAddress": "alice@example.org"
|
|
435
|
-
* }
|
|
436
|
-
* ],
|
|
437
|
-
* "scope": {
|
|
438
|
-
* "attributeFqns": [
|
|
439
|
-
* "https://example.net/attr/attr1/value/value1",
|
|
440
|
-
* "https://example.net/attr/attr1/value/value2"
|
|
441
|
-
* ]
|
|
442
|
-
* }
|
|
443
|
-
* }
|
|
444
|
-
*
|
|
445
|
-
*
|
|
446
|
-
* @generated from message authorization.GetEntitlementsRequest
|
|
447
|
-
*/
|
|
448
|
-
export declare class GetEntitlementsRequest extends Message<GetEntitlementsRequest> {
|
|
449
|
-
/**
|
|
450
|
-
* list of requested entities
|
|
451
|
-
*
|
|
452
|
-
* @generated from field: repeated authorization.Entity entities = 1;
|
|
453
|
-
*/
|
|
454
|
-
entities: Entity[];
|
|
455
|
-
|
|
456
|
-
/**
|
|
457
|
-
* optional attribute fqn as a scope
|
|
458
|
-
*
|
|
459
|
-
* @generated from field: optional authorization.ResourceAttribute scope = 2;
|
|
460
|
-
*/
|
|
461
|
-
scope?: ResourceAttribute;
|
|
462
|
-
|
|
463
|
-
constructor(data?: PartialMessage<GetEntitlementsRequest>);
|
|
464
|
-
|
|
465
|
-
static readonly runtime: typeof proto3;
|
|
466
|
-
static readonly typeName = "authorization.GetEntitlementsRequest";
|
|
467
|
-
static readonly fields: FieldList;
|
|
468
|
-
|
|
469
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetEntitlementsRequest;
|
|
470
|
-
|
|
471
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetEntitlementsRequest;
|
|
472
|
-
|
|
473
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetEntitlementsRequest;
|
|
474
|
-
|
|
475
|
-
static equals(a: GetEntitlementsRequest | PlainMessage<GetEntitlementsRequest> | undefined, b: GetEntitlementsRequest | PlainMessage<GetEntitlementsRequest> | undefined): boolean;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
/**
|
|
479
|
-
* @generated from message authorization.EntityEntitlements
|
|
480
|
-
*/
|
|
481
|
-
export declare class EntityEntitlements extends Message<EntityEntitlements> {
|
|
482
|
-
/**
|
|
483
|
-
* @generated from field: string entity_id = 1;
|
|
484
|
-
*/
|
|
485
|
-
entityId: string;
|
|
486
|
-
|
|
487
|
-
/**
|
|
488
|
-
* @generated from field: repeated string attribute_value_fqns = 2;
|
|
489
|
-
*/
|
|
490
|
-
attributeValueFqns: string[];
|
|
491
|
-
|
|
492
|
-
constructor(data?: PartialMessage<EntityEntitlements>);
|
|
493
|
-
|
|
494
|
-
static readonly runtime: typeof proto3;
|
|
495
|
-
static readonly typeName = "authorization.EntityEntitlements";
|
|
496
|
-
static readonly fields: FieldList;
|
|
497
|
-
|
|
498
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EntityEntitlements;
|
|
499
|
-
|
|
500
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EntityEntitlements;
|
|
501
|
-
|
|
502
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EntityEntitlements;
|
|
503
|
-
|
|
504
|
-
static equals(a: EntityEntitlements | PlainMessage<EntityEntitlements> | undefined, b: EntityEntitlements | PlainMessage<EntityEntitlements> | undefined): boolean;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
/**
|
|
508
|
-
* A logical bucket of attributes belonging to a "Resource"
|
|
509
|
-
*
|
|
510
|
-
* @generated from message authorization.ResourceAttribute
|
|
511
|
-
*/
|
|
512
|
-
export declare class ResourceAttribute extends Message<ResourceAttribute> {
|
|
513
|
-
/**
|
|
514
|
-
* @generated from field: string resource_attributes_id = 1;
|
|
515
|
-
*/
|
|
516
|
-
resourceAttributesId: string;
|
|
517
|
-
|
|
518
|
-
/**
|
|
519
|
-
* @generated from field: repeated string attribute_value_fqns = 2;
|
|
520
|
-
*/
|
|
521
|
-
attributeValueFqns: string[];
|
|
522
|
-
|
|
523
|
-
constructor(data?: PartialMessage<ResourceAttribute>);
|
|
524
|
-
|
|
525
|
-
static readonly runtime: typeof proto3;
|
|
526
|
-
static readonly typeName = "authorization.ResourceAttribute";
|
|
527
|
-
static readonly fields: FieldList;
|
|
528
|
-
|
|
529
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResourceAttribute;
|
|
530
|
-
|
|
531
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResourceAttribute;
|
|
532
|
-
|
|
533
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResourceAttribute;
|
|
534
|
-
|
|
535
|
-
static equals(a: ResourceAttribute | PlainMessage<ResourceAttribute> | undefined, b: ResourceAttribute | PlainMessage<ResourceAttribute> | undefined): boolean;
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
/**
|
|
539
|
-
*
|
|
540
|
-
*
|
|
541
|
-
* Example Response for a request of : Get entitlements for bob and alice (both represented using an email address
|
|
542
|
-
*
|
|
543
|
-
* {
|
|
544
|
-
* "entitlements": [
|
|
545
|
-
* {
|
|
546
|
-
* "entityId": "e1",
|
|
547
|
-
* "attributeValueReferences": [
|
|
548
|
-
* {
|
|
549
|
-
* "attributeFqn": "http://www.example.org/attr/foo/value/bar"
|
|
550
|
-
* }
|
|
551
|
-
* ]
|
|
552
|
-
* },
|
|
553
|
-
* {
|
|
554
|
-
* "entityId": "e2",
|
|
555
|
-
* "attributeValueReferences": [
|
|
556
|
-
* {
|
|
557
|
-
* "attributeFqn": "http://www.example.org/attr/color/value/red"
|
|
558
|
-
* }
|
|
559
|
-
* ]
|
|
560
|
-
* }
|
|
561
|
-
* ]
|
|
562
|
-
* }
|
|
563
|
-
*
|
|
564
|
-
*
|
|
565
|
-
*
|
|
566
|
-
* @generated from message authorization.GetEntitlementsResponse
|
|
567
|
-
*/
|
|
568
|
-
export declare class GetEntitlementsResponse extends Message<GetEntitlementsResponse> {
|
|
569
|
-
/**
|
|
570
|
-
* @generated from field: repeated authorization.EntityEntitlements entitlements = 1;
|
|
571
|
-
*/
|
|
572
|
-
entitlements: EntityEntitlements[];
|
|
573
|
-
|
|
574
|
-
constructor(data?: PartialMessage<GetEntitlementsResponse>);
|
|
575
|
-
|
|
576
|
-
static readonly runtime: typeof proto3;
|
|
577
|
-
static readonly typeName = "authorization.GetEntitlementsResponse";
|
|
578
|
-
static readonly fields: FieldList;
|
|
579
|
-
|
|
580
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetEntitlementsResponse;
|
|
581
|
-
|
|
582
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetEntitlementsResponse;
|
|
583
|
-
|
|
584
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetEntitlementsResponse;
|
|
585
|
-
|
|
586
|
-
static equals(a: GetEntitlementsResponse | PlainMessage<GetEntitlementsResponse> | undefined, b: GetEntitlementsResponse | PlainMessage<GetEntitlementsResponse> | undefined): boolean;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
/**
|
|
590
|
-
*
|
|
591
|
-
* Example Request Get Decisions by Token to answer the question - Do Bob and client1 (represented by token tok1)
|
|
592
|
-
* and Alice and client2 (represented by token tok2) have TRANSMIT authorization for
|
|
593
|
-
* 2 resources; resource1 (attr-set-1) defined by attributes foo:bar resource2 (attr-set-2) defined by attribute foo:bar, color:red ?
|
|
594
|
-
*
|
|
595
|
-
* {
|
|
596
|
-
* "actions": [
|
|
597
|
-
* {
|
|
598
|
-
* "standard": "STANDARD_ACTION_TRANSMIT"
|
|
599
|
-
* }
|
|
600
|
-
* ],
|
|
601
|
-
* "tokens": [
|
|
602
|
-
* {
|
|
603
|
-
* "id": "tok1",
|
|
604
|
-
* "jwt": ....
|
|
605
|
-
* },
|
|
606
|
-
* {
|
|
607
|
-
* "id": "tok2",
|
|
608
|
-
* "jwt": .....
|
|
609
|
-
* }
|
|
610
|
-
* ],
|
|
611
|
-
* "resourceAttributes": [
|
|
612
|
-
* {
|
|
613
|
-
* "attributeFqns": [
|
|
614
|
-
* "https://www.example.org/attr/foo/value/value1"
|
|
615
|
-
* ]
|
|
616
|
-
* },
|
|
617
|
-
* {
|
|
618
|
-
* "attributeFqns": [
|
|
619
|
-
* "https://example.net/attr/attr1/value/value1",
|
|
620
|
-
* "https://example.net/attr/attr1/value/value2"
|
|
621
|
-
* ]
|
|
622
|
-
* }
|
|
623
|
-
* ]
|
|
624
|
-
* }
|
|
625
|
-
*
|
|
626
|
-
*
|
|
627
|
-
* @generated from message authorization.TokenDecisionRequest
|
|
628
|
-
*/
|
|
629
|
-
export declare class TokenDecisionRequest extends Message<TokenDecisionRequest> {
|
|
630
|
-
/**
|
|
631
|
-
* @generated from field: repeated policy.Action actions = 1;
|
|
632
|
-
*/
|
|
633
|
-
actions: Action[];
|
|
634
|
-
|
|
635
|
-
/**
|
|
636
|
-
* @generated from field: repeated authorization.Token tokens = 2;
|
|
637
|
-
*/
|
|
638
|
-
tokens: Token[];
|
|
639
|
-
|
|
640
|
-
/**
|
|
641
|
-
* @generated from field: repeated authorization.ResourceAttribute resource_attributes = 3;
|
|
642
|
-
*/
|
|
643
|
-
resourceAttributes: ResourceAttribute[];
|
|
644
|
-
|
|
645
|
-
constructor(data?: PartialMessage<TokenDecisionRequest>);
|
|
646
|
-
|
|
647
|
-
static readonly runtime: typeof proto3;
|
|
648
|
-
static readonly typeName = "authorization.TokenDecisionRequest";
|
|
649
|
-
static readonly fields: FieldList;
|
|
650
|
-
|
|
651
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenDecisionRequest;
|
|
652
|
-
|
|
653
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenDecisionRequest;
|
|
654
|
-
|
|
655
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenDecisionRequest;
|
|
656
|
-
|
|
657
|
-
static equals(a: TokenDecisionRequest | PlainMessage<TokenDecisionRequest> | undefined, b: TokenDecisionRequest | PlainMessage<TokenDecisionRequest> | undefined): boolean;
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
/**
|
|
661
|
-
* @generated from message authorization.GetDecisionsByTokenRequest
|
|
662
|
-
*/
|
|
663
|
-
export declare class GetDecisionsByTokenRequest extends Message<GetDecisionsByTokenRequest> {
|
|
664
|
-
/**
|
|
665
|
-
* @generated from field: repeated authorization.TokenDecisionRequest decision_requests = 1;
|
|
666
|
-
*/
|
|
667
|
-
decisionRequests: TokenDecisionRequest[];
|
|
668
|
-
|
|
669
|
-
constructor(data?: PartialMessage<GetDecisionsByTokenRequest>);
|
|
670
|
-
|
|
671
|
-
static readonly runtime: typeof proto3;
|
|
672
|
-
static readonly typeName = "authorization.GetDecisionsByTokenRequest";
|
|
673
|
-
static readonly fields: FieldList;
|
|
674
|
-
|
|
675
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetDecisionsByTokenRequest;
|
|
676
|
-
|
|
677
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetDecisionsByTokenRequest;
|
|
678
|
-
|
|
679
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetDecisionsByTokenRequest;
|
|
680
|
-
|
|
681
|
-
static equals(a: GetDecisionsByTokenRequest | PlainMessage<GetDecisionsByTokenRequest> | undefined, b: GetDecisionsByTokenRequest | PlainMessage<GetDecisionsByTokenRequest> | undefined): boolean;
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
/**
|
|
685
|
-
* @generated from message authorization.GetDecisionsByTokenResponse
|
|
686
|
-
*/
|
|
687
|
-
export declare class GetDecisionsByTokenResponse extends Message<GetDecisionsByTokenResponse> {
|
|
688
|
-
/**
|
|
689
|
-
* @generated from field: repeated authorization.DecisionResponse decision_responses = 1;
|
|
690
|
-
*/
|
|
691
|
-
decisionResponses: DecisionResponse[];
|
|
692
|
-
|
|
693
|
-
constructor(data?: PartialMessage<GetDecisionsByTokenResponse>);
|
|
694
|
-
|
|
695
|
-
static readonly runtime: typeof proto3;
|
|
696
|
-
static readonly typeName = "authorization.GetDecisionsByTokenResponse";
|
|
697
|
-
static readonly fields: FieldList;
|
|
698
|
-
|
|
699
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetDecisionsByTokenResponse;
|
|
700
|
-
|
|
701
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetDecisionsByTokenResponse;
|
|
702
|
-
|
|
703
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetDecisionsByTokenResponse;
|
|
704
|
-
|
|
705
|
-
static equals(a: GetDecisionsByTokenResponse | PlainMessage<GetDecisionsByTokenResponse> | undefined, b: GetDecisionsByTokenResponse | PlainMessage<GetDecisionsByTokenResponse> | undefined): boolean;
|
|
706
|
-
}
|
|
707
|
-
|