@casual-simulation/aux-records 3.4.6-alpha.14668890889 → 3.5.0-alpha.15119114602
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/AIController.js +835 -890
- package/AIController.js.map +1 -1
- package/AIHumeInterface.js +43 -54
- package/AIHumeInterface.js.map +1 -1
- package/AIOpenAIRealtimeInterface.js +60 -71
- package/AIOpenAIRealtimeInterface.js.map +1 -1
- package/AnthropicAIChatInterface.js +96 -142
- package/AnthropicAIChatInterface.js.map +1 -1
- package/AuthController.d.ts +3 -2
- package/AuthController.js +1907 -1933
- package/AuthController.js.map +1 -1
- package/AuthStore.d.ts +1 -10
- package/BlockadeLabsGenerateSkyboxInterface.js +57 -72
- package/BlockadeLabsGenerateSkyboxInterface.js.map +1 -1
- package/CachingConfigStore.js +30 -45
- package/CachingConfigStore.js.map +1 -1
- package/CachingPolicyStore.d.ts +8 -2
- package/CachingPolicyStore.js +108 -135
- package/CachingPolicyStore.js.map +1 -1
- package/ComIdConfig.d.ts +18 -18
- package/ComIdConfig.js.map +1 -1
- package/ConsoleAuthMessenger.js +7 -20
- package/ConsoleAuthMessenger.js.map +1 -1
- package/DataRecordsController.d.ts +2 -2
- package/DataRecordsController.js +369 -377
- package/DataRecordsController.js.map +1 -1
- package/DataRecordsStore.d.ts +1 -1
- package/DataRecordsStore.js +1 -1
- package/DataRecordsStore.js.map +1 -1
- package/EventRecordsController.js +226 -240
- package/EventRecordsController.js.map +1 -1
- package/FileRecordsController.d.ts +13 -2
- package/FileRecordsController.js +458 -450
- package/FileRecordsController.js.map +1 -1
- package/GoogleAIChatInterface.js +133 -179
- package/GoogleAIChatInterface.js.map +1 -1
- package/LivekitController.js +43 -54
- package/LivekitController.js.map +1 -1
- package/LoomController.js +64 -75
- package/LoomController.js.map +1 -1
- package/MemoryAuthMessenger.js +10 -23
- package/MemoryAuthMessenger.js.map +1 -1
- package/MemoryCache.js +18 -35
- package/MemoryCache.js.map +1 -1
- package/MemoryFileRecordsLookup.js +105 -125
- package/MemoryFileRecordsLookup.js.map +1 -1
- package/MemoryModerationJobProvider.js +17 -30
- package/MemoryModerationJobProvider.js.map +1 -1
- package/MemoryRateLimiter.js +12 -27
- package/MemoryRateLimiter.js.map +1 -1
- package/MemoryStore.d.ts +18 -6
- package/MemoryStore.js +1879 -1997
- package/MemoryStore.js.map +1 -1
- package/MetricsStore.d.ts +2 -2
- package/ModerationController.js +186 -200
- package/ModerationController.js.map +1 -1
- package/OpenAIChatInterface.js +105 -135
- package/OpenAIChatInterface.js.map +1 -1
- package/OpenAIImageInterface.js +57 -51
- package/OpenAIImageInterface.js.map +1 -1
- package/PolicyController.d.ts +150 -10
- package/PolicyController.js +1546 -1299
- package/PolicyController.js.map +1 -1
- package/PolicyStore.d.ts +110 -2
- package/PolicyStore.js +36 -1
- package/PolicyStore.js.map +1 -1
- package/PrivoClient.js +398 -435
- package/PrivoClient.js.map +1 -1
- package/RateLimitController.js +25 -36
- package/RateLimitController.js.map +1 -1
- package/RecordsClient.js +51 -74
- package/RecordsClient.js.map +1 -1
- package/RecordsController.d.ts +2 -42
- package/RecordsController.js +1026 -1182
- package/RecordsController.js.map +1 -1
- package/RecordsServer.d.ts +196 -27
- package/RecordsServer.js +1701 -1343
- package/RecordsServer.js.map +1 -1
- package/RecordsStore.d.ts +1 -10
- package/RecordsStore.js.map +1 -1
- package/ServerConfig.d.ts +339 -195
- package/ServerConfig.js +13 -0
- package/ServerConfig.js.map +1 -1
- package/SloydInterface.js +62 -75
- package/SloydInterface.js.map +1 -1
- package/StabilityAIImageInterface.js +150 -167
- package/StabilityAIImageInterface.js.map +1 -1
- package/SubscriptionConfigBuilder.d.ts +6 -1
- package/SubscriptionConfigBuilder.js +22 -0
- package/SubscriptionConfigBuilder.js.map +1 -1
- package/SubscriptionConfiguration.d.ts +266 -169
- package/SubscriptionConfiguration.js +101 -79
- package/SubscriptionConfiguration.js.map +1 -1
- package/SubscriptionController.d.ts +2 -1
- package/SubscriptionController.js +643 -650
- package/SubscriptionController.js.map +1 -1
- package/SystemNotificationMessenger.d.ts +21 -4
- package/SystemNotificationMessenger.js +36 -30
- package/SystemNotificationMessenger.js.map +1 -1
- package/TestUtils.d.ts +9 -1
- package/TestUtils.js +105 -129
- package/TestUtils.js.map +1 -1
- package/Utils.d.ts +2 -16
- package/Utils.js +21 -22
- package/Utils.js.map +1 -1
- package/crud/CrudHelpers.js +17 -26
- package/crud/CrudHelpers.js.map +1 -1
- package/crud/CrudRecordsController.d.ts +1 -1
- package/crud/CrudRecordsController.js +259 -267
- package/crud/CrudRecordsController.js.map +1 -1
- package/crud/CrudRecordsControllerTests.js +174 -185
- package/crud/CrudRecordsControllerTests.js.map +1 -1
- package/crud/CrudRecordsStore.d.ts +7 -3
- package/crud/MemoryCrudRecordsStore.d.ts +4 -4
- package/crud/MemoryCrudRecordsStore.js +98 -118
- package/crud/MemoryCrudRecordsStore.js.map +1 -1
- package/crud/sub/MemorySubCrudRecordsStore.d.ts +24 -0
- package/crud/sub/MemorySubCrudRecordsStore.js +146 -0
- package/crud/sub/MemorySubCrudRecordsStore.js.map +1 -0
- package/crud/sub/SubCrudRecordsController.d.ts +182 -0
- package/crud/sub/SubCrudRecordsController.js +360 -0
- package/crud/sub/SubCrudRecordsController.js.map +1 -0
- package/crud/sub/SubCrudRecordsControllerTests.d.ts +39 -0
- package/crud/sub/SubCrudRecordsControllerTests.js +821 -0
- package/crud/sub/SubCrudRecordsControllerTests.js.map +1 -0
- package/crud/sub/SubCrudRecordsStore.d.ts +95 -0
- package/{forms/index.js → crud/sub/SubCrudRecordsStore.js} +2 -2
- package/crud/sub/SubCrudRecordsStore.js.map +1 -0
- package/crud/sub/index.d.ts +3 -0
- package/crud/sub/index.js +20 -0
- package/{forms → crud/sub}/index.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/notifications/MemoryNotificationRecordsStore.js +189 -198
- package/notifications/MemoryNotificationRecordsStore.js.map +1 -1
- package/notifications/NotificationRecordsController.js +438 -460
- package/notifications/NotificationRecordsController.js.map +1 -1
- package/notifications/NotificationRecordsStore.d.ts +2 -1
- package/notifications/WebPushInterface.d.ts +0 -1
- package/notifications/WebPushInterface.js +0 -1
- package/notifications/WebPushInterface.js.map +1 -1
- package/package.json +6 -6
- package/packages/MemoryPackageRecordsStore.d.ts +10 -0
- package/packages/MemoryPackageRecordsStore.js +38 -0
- package/packages/MemoryPackageRecordsStore.js.map +1 -0
- package/packages/PackageRecordsController.d.ts +26 -0
- package/packages/PackageRecordsController.js +49 -0
- package/packages/PackageRecordsController.js.map +1 -0
- package/packages/PackageRecordsStore.d.ts +32 -0
- package/packages/PackageRecordsStore.js +19 -0
- package/packages/PackageRecordsStore.js.map +1 -0
- package/packages/index.d.ts +4 -0
- package/packages/index.js +21 -0
- package/packages/index.js.map +1 -0
- package/packages/version/MemoryPackageVersionRecordsStore.d.ts +21 -0
- package/packages/version/MemoryPackageVersionRecordsStore.js +177 -0
- package/packages/version/MemoryPackageVersionRecordsStore.js.map +1 -0
- package/packages/version/PackageVersionRecordsController.d.ts +144 -0
- package/packages/version/PackageVersionRecordsController.js +656 -0
- package/packages/version/PackageVersionRecordsController.js.map +1 -0
- package/packages/version/PackageVersionRecordsStore.d.ts +342 -0
- package/packages/version/PackageVersionRecordsStore.js +126 -0
- package/packages/version/PackageVersionRecordsStore.js.map +1 -0
- package/packages/version/index.d.ts +4 -0
- package/packages/version/index.js +21 -0
- package/packages/version/index.js.map +1 -0
- package/tracing/TracingDecorators.js +31 -40
- package/tracing/TracingDecorators.js.map +1 -1
- package/webhooks/MemoryWebhookRecordsStore.js +56 -72
- package/webhooks/MemoryWebhookRecordsStore.js.map +1 -1
- package/webhooks/WebhookEnvironment.d.ts +3 -3
- package/webhooks/WebhookRecordsController.d.ts +2 -1
- package/webhooks/WebhookRecordsController.js +389 -382
- package/webhooks/WebhookRecordsController.js.map +1 -1
- package/webhooks/WebhookRecordsStore.d.ts +2 -1
- package/websockets/InstRecordsStore.d.ts +50 -0
- package/websockets/InstRecordsStore.js +17 -0
- package/websockets/InstRecordsStore.js.map +1 -1
- package/websockets/MemoryTempInstRecordsStore.d.ts +5 -0
- package/websockets/MemoryTempInstRecordsStore.js +168 -179
- package/websockets/MemoryTempInstRecordsStore.js.map +1 -1
- package/websockets/MemoryWebsocketConnectionStore.js +98 -135
- package/websockets/MemoryWebsocketConnectionStore.js.map +1 -1
- package/websockets/MemoryWebsocketMessenger.js +29 -48
- package/websockets/MemoryWebsocketMessenger.js.map +1 -1
- package/websockets/SplitInstRecordsStore.d.ts +4 -1
- package/websockets/SplitInstRecordsStore.js +167 -185
- package/websockets/SplitInstRecordsStore.js.map +1 -1
- package/websockets/TemporaryInstRecordsStore.d.ts +19 -1
- package/websockets/TemporaryInstRecordsStore.js +17 -0
- package/websockets/TemporaryInstRecordsStore.js.map +1 -1
- package/websockets/WebsocketController.d.ts +147 -3
- package/websockets/WebsocketController.js +1735 -1391
- package/websockets/WebsocketController.js.map +1 -1
- package/websockets/index.d.ts +0 -1
- package/websockets/index.js +0 -1
- package/websockets/index.js.map +1 -1
- package/AAGUID.d.ts +0 -11
- package/AAGUID.js +0 -116
- package/AAGUID.js.map +0 -1
- package/AuthUtils.d.ts +0 -162
- package/AuthUtils.js +0 -327
- package/AuthUtils.js.map +0 -1
- package/forms/FormError.d.ts +0 -43
- package/forms/FormError.js +0 -56
- package/forms/FormError.js.map +0 -1
- package/forms/index.d.ts +0 -2
- package/websockets/Utils.d.ts +0 -33
- package/websockets/Utils.js +0 -82
- package/websockets/Utils.js.map +0 -1
package/PolicyController.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { AuthController } from './AuthController';
|
|
2
2
|
import type { RecordsController, ValidatePublicRecordKeyFailure, ValidatePublicRecordKeyResult } from './RecordsController';
|
|
3
3
|
import type { NotSupportedError, ServerError, SubscriptionLimitReached } from '@casual-simulation/aux-common/Errors';
|
|
4
|
-
import type { AvailablePermissions, ResourceKinds, ActionKinds, SubjectType, DenialReason, PrivacyFeatures, PermissionOptions } from '@casual-simulation/aux-common';
|
|
5
|
-
import type { ListedStudioAssignment
|
|
6
|
-
import type { AssignedRole, AssignPermissionToSubjectAndMarkerFailure, MarkerPermissionAssignment, PolicyStore, ResourcePermissionAssignment, RoleAssignment, UpdateUserRolesFailure } from './PolicyStore';
|
|
7
|
-
import type {
|
|
4
|
+
import type { AvailablePermissions, ResourceKinds, ActionKinds, SubjectType, DenialReason, PrivacyFeatures, PermissionOptions, KnownErrorCodes, GrantedEntitlementScope, EntitlementFeature, PublicRecordKeyPolicy, UserRole } from '@casual-simulation/aux-common';
|
|
5
|
+
import type { ListedStudioAssignment } from './RecordsStore';
|
|
6
|
+
import type { AssignedRole, AssignPermissionToSubjectAndMarkerFailure, GrantedPackageEntitlement, MarkerPermissionAssignment, PolicyStore, ResourcePermissionAssignment, RoleAssignment, UpdateUserRolesFailure } from './PolicyStore';
|
|
7
|
+
import type { InstRecordsStore, LoadedPackage } from './websockets/InstRecordsStore';
|
|
8
|
+
import type { PackageVersionRecordsStore } from './packages/version';
|
|
8
9
|
/**
|
|
9
10
|
* The maximum number of instances that can be authorized at once.
|
|
10
11
|
*/
|
|
@@ -31,7 +32,9 @@ export declare class PolicyController {
|
|
|
31
32
|
private _auth;
|
|
32
33
|
private _records;
|
|
33
34
|
private _policies;
|
|
34
|
-
|
|
35
|
+
private _insts;
|
|
36
|
+
private _packageVersions;
|
|
37
|
+
constructor(auth: AuthController, records: RecordsController, policies: PolicyStore, insts?: InstRecordsStore, packageVersions?: PackageVersionRecordsStore);
|
|
35
38
|
/**
|
|
36
39
|
* Constructs the authorization context that is needed for the given request.
|
|
37
40
|
* @param request The request that will be authorized.
|
|
@@ -174,6 +177,13 @@ export declare class PolicyController {
|
|
|
174
177
|
* @param instances The instances that the request is being made from.
|
|
175
178
|
*/
|
|
176
179
|
revokeRole(recordKeyOrRecordName: string, userId: string, request: RevokeRoleRequest, instances?: string[]): Promise<RevokeRoleResult>;
|
|
180
|
+
/**
|
|
181
|
+
* Attempts to grant an entitlement to a package.
|
|
182
|
+
* @param request
|
|
183
|
+
*/
|
|
184
|
+
grantEntitlement(request: GrantEntitlementRequest): Promise<GrantEntitlementResult>;
|
|
185
|
+
revokeEntitlement(request: RevokeEntitlementRequest): Promise<RevokeEntitlementResult>;
|
|
186
|
+
listGrantedEntitlements(request: ListGrantedEntitlementsRequest): Promise<ListGrantedEntitlementsResult>;
|
|
177
187
|
}
|
|
178
188
|
/**
|
|
179
189
|
* Determines if any markers will be remaining after the removal and addition of the specified markers.
|
|
@@ -243,10 +253,11 @@ export interface AuthorizationContext {
|
|
|
243
253
|
userPrivacyFeatures: PrivacyFeatures;
|
|
244
254
|
/**
|
|
245
255
|
* The ID of the user that is currently logged in.
|
|
256
|
+
* Null if the user is not logged in.
|
|
246
257
|
*/
|
|
247
|
-
userId: string;
|
|
258
|
+
userId: string | null;
|
|
248
259
|
/**
|
|
249
|
-
* The role of the user.
|
|
260
|
+
* The role of the user that is currently logged in.
|
|
250
261
|
*/
|
|
251
262
|
userRole: UserRole;
|
|
252
263
|
/**
|
|
@@ -261,8 +272,15 @@ export interface ConstructAuthorizationContextRequest {
|
|
|
261
272
|
recordKeyOrRecordName: string;
|
|
262
273
|
/**
|
|
263
274
|
* The ID of the user that is currently logged in.
|
|
275
|
+
* Null or undefined if the user is not logged in.
|
|
264
276
|
*/
|
|
265
277
|
userId?: string | null;
|
|
278
|
+
/**
|
|
279
|
+
* The role of the user.
|
|
280
|
+
* Null if the user is not logged in.
|
|
281
|
+
* Null or undefined if the user is not logged in.
|
|
282
|
+
*/
|
|
283
|
+
userRole?: UserRole | null;
|
|
266
284
|
/**
|
|
267
285
|
* Whether to return not_logged_in results when the user has not provided any authentication mechanism, but needs to.
|
|
268
286
|
*/
|
|
@@ -659,11 +677,11 @@ export interface AuthorizeUserAndInstancesRequest {
|
|
|
659
677
|
/**
|
|
660
678
|
* The ID of the user that should be authorized.
|
|
661
679
|
*/
|
|
662
|
-
userId: string;
|
|
680
|
+
userId: string | null | undefined;
|
|
663
681
|
/**
|
|
664
682
|
* The instances that should be authorized.
|
|
665
683
|
*/
|
|
666
|
-
instances: string[];
|
|
684
|
+
instances: string[] | null | undefined;
|
|
667
685
|
/**
|
|
668
686
|
* The kind of resource that the action is being performed on.
|
|
669
687
|
*/
|
|
@@ -699,7 +717,7 @@ export interface AuthorizeUserAndInstancesForResources {
|
|
|
699
717
|
/**
|
|
700
718
|
* The ID of the user that should be authorized.
|
|
701
719
|
*/
|
|
702
|
-
userId: string;
|
|
720
|
+
userId: string | null;
|
|
703
721
|
/**
|
|
704
722
|
* The instances that should be authorized.
|
|
705
723
|
*/
|
|
@@ -747,6 +765,7 @@ export interface AuthorizeSubjectRequest {
|
|
|
747
765
|
subjectType: SubjectType;
|
|
748
766
|
/**
|
|
749
767
|
* The ID of the subject that should be authorized.
|
|
768
|
+
* If null, then the currently logged in user will be used if available.
|
|
750
769
|
*/
|
|
751
770
|
subjectId: string | null;
|
|
752
771
|
/**
|
|
@@ -791,6 +810,16 @@ export interface AuthorizeSubjectSuccess {
|
|
|
791
810
|
* The explaination for the authorization.
|
|
792
811
|
*/
|
|
793
812
|
explanation: string;
|
|
813
|
+
/**
|
|
814
|
+
* The entitlement that was able to grant access to the resource.
|
|
815
|
+
*/
|
|
816
|
+
entitlementGrant?: EntitlementGrant;
|
|
817
|
+
}
|
|
818
|
+
export interface EntitlementGrant extends GrantedPackageEntitlement {
|
|
819
|
+
/**
|
|
820
|
+
* The package that the entitlement is granted through.
|
|
821
|
+
*/
|
|
822
|
+
loadedPackage: LoadedPackage;
|
|
794
823
|
}
|
|
795
824
|
export interface AuthorizedSubject extends AuthorizeSubjectSuccess {
|
|
796
825
|
/**
|
|
@@ -816,6 +845,15 @@ export interface AuthorizeSubjectFailure {
|
|
|
816
845
|
* The denial reason.
|
|
817
846
|
*/
|
|
818
847
|
reason?: DenialReason;
|
|
848
|
+
/**
|
|
849
|
+
* If the error was rejected because the inst has not been granted an entitlement,
|
|
850
|
+
* this will contain the entitlement that is recommended to be granted.
|
|
851
|
+
*
|
|
852
|
+
* Note that this recommended entitlement may not actually be able to be granted to one of the loaded packages in an inst.
|
|
853
|
+
* Instead, it is just a suggestion for what entitlement would be best to grant if possible.
|
|
854
|
+
* It should be used by the client to help determine what entitlement to grant, but should not be used on its own.
|
|
855
|
+
*/
|
|
856
|
+
recommendedEntitlement?: RecommendedPackageEntitlement;
|
|
819
857
|
}
|
|
820
858
|
export type ListPermissionsResult = ListPermissionsSuccess | ListPermissionsFailure;
|
|
821
859
|
export interface ListPermissionsSuccess {
|
|
@@ -914,4 +952,106 @@ export interface ListedMarkerPermission extends ListedPermission {
|
|
|
914
952
|
*/
|
|
915
953
|
resourceKind: ResourceKinds | null;
|
|
916
954
|
}
|
|
955
|
+
export interface GrantEntitlementRequest {
|
|
956
|
+
/**
|
|
957
|
+
* The ID of the currently logged in user.
|
|
958
|
+
*/
|
|
959
|
+
userId: string | null;
|
|
960
|
+
/**
|
|
961
|
+
* The role of the currently logged in user.
|
|
962
|
+
* If omitted, then the user will be treated as a normal user.
|
|
963
|
+
*/
|
|
964
|
+
userRole?: UserRole;
|
|
965
|
+
/**
|
|
966
|
+
* The ID of the user that is granting the entitlement.
|
|
967
|
+
*/
|
|
968
|
+
grantingUserId: string;
|
|
969
|
+
/**
|
|
970
|
+
* The ID of the package that the entitlement grant is for.
|
|
971
|
+
*/
|
|
972
|
+
packageId: string;
|
|
973
|
+
/**
|
|
974
|
+
* The feature that is being granted.
|
|
975
|
+
*/
|
|
976
|
+
feature: EntitlementFeature;
|
|
977
|
+
/**
|
|
978
|
+
* The scope that is being granted.
|
|
979
|
+
*/
|
|
980
|
+
scope: GrantedEntitlementScope;
|
|
981
|
+
/**
|
|
982
|
+
* The record that the entitlement grant covers.
|
|
983
|
+
*/
|
|
984
|
+
recordName: string;
|
|
985
|
+
/**
|
|
986
|
+
* The unix time in miliseconds that the entitlement grant will expire.
|
|
987
|
+
*/
|
|
988
|
+
expireTimeMs: number;
|
|
989
|
+
}
|
|
990
|
+
export type GrantEntitlementResult = GrantEntitlementSuccess | GrantEntitlementFailure;
|
|
991
|
+
export interface GrantEntitlementSuccess {
|
|
992
|
+
success: true;
|
|
993
|
+
/**
|
|
994
|
+
* The ID of the entitlement grant.
|
|
995
|
+
*/
|
|
996
|
+
grantId: string;
|
|
997
|
+
/**
|
|
998
|
+
* The feature that was granted.
|
|
999
|
+
*/
|
|
1000
|
+
feature: EntitlementFeature;
|
|
1001
|
+
}
|
|
1002
|
+
export interface GrantEntitlementFailure {
|
|
1003
|
+
success: false;
|
|
1004
|
+
errorCode: KnownErrorCodes;
|
|
1005
|
+
errorMessage: string;
|
|
1006
|
+
}
|
|
1007
|
+
export interface RecommendedPackageEntitlement {
|
|
1008
|
+
packageId: string;
|
|
1009
|
+
feature: EntitlementFeature;
|
|
1010
|
+
scope: GrantedEntitlementScope;
|
|
1011
|
+
recordName?: string;
|
|
1012
|
+
}
|
|
1013
|
+
export interface RevokeEntitlementRequest {
|
|
1014
|
+
/**
|
|
1015
|
+
* The ID of the user that is currently logged in.
|
|
1016
|
+
*/
|
|
1017
|
+
userId: string | null;
|
|
1018
|
+
/**
|
|
1019
|
+
* The role of the currently logged in user.
|
|
1020
|
+
*/
|
|
1021
|
+
userRole?: UserRole;
|
|
1022
|
+
/**
|
|
1023
|
+
* The ID of the entitlement grant that should be revoked.
|
|
1024
|
+
*/
|
|
1025
|
+
grantId: string;
|
|
1026
|
+
}
|
|
1027
|
+
export type RevokeEntitlementResult = RevokeEntitlementSuccess | RevokeEntitlementFailure;
|
|
1028
|
+
export interface RevokeEntitlementSuccess {
|
|
1029
|
+
success: true;
|
|
1030
|
+
}
|
|
1031
|
+
export interface RevokeEntitlementFailure {
|
|
1032
|
+
success: false;
|
|
1033
|
+
errorCode: KnownErrorCodes;
|
|
1034
|
+
errorMessage: string;
|
|
1035
|
+
}
|
|
1036
|
+
export interface ListGrantedEntitlementsRequest {
|
|
1037
|
+
/**
|
|
1038
|
+
* The ID of the user that is currently logged in.
|
|
1039
|
+
*/
|
|
1040
|
+
userId: string;
|
|
1041
|
+
/**
|
|
1042
|
+
* The ID of the package that the entitlements should be listed for.
|
|
1043
|
+
* If omitted, then all granted entitlements will be listed for the user.
|
|
1044
|
+
*/
|
|
1045
|
+
packageId?: string | null;
|
|
1046
|
+
}
|
|
1047
|
+
export type ListGrantedEntitlementsResult = ListGrantedEntitlementsSuccess | ListGrantedEntitlementsFailure;
|
|
1048
|
+
export interface ListGrantedEntitlementsSuccess {
|
|
1049
|
+
success: true;
|
|
1050
|
+
grants: GrantedPackageEntitlement[];
|
|
1051
|
+
}
|
|
1052
|
+
export interface ListGrantedEntitlementsFailure {
|
|
1053
|
+
success: false;
|
|
1054
|
+
errorCode: KnownErrorCodes;
|
|
1055
|
+
errorMessage: string;
|
|
1056
|
+
}
|
|
917
1057
|
//# sourceMappingURL=PolicyController.d.ts.map
|