@microsoft/useragent-sdk
Version:
SDK for building decentralized identity wallets and enterprise agents.
25 lines (19 loc) • 957 B
text/typescript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { IHubObjectQueryOptions } from '@decentralized-identity/hub-common-js';
import HubRequest from './HubRequest';
/**
* Represents a request to a Hub to query the available objects.
*/
export default class HubObjectQueryRequest extends HubRequest {
// Needed for correctly determining type of HubSession#send(), to ensure
// the different request classes aren't structurally compatible.
private readonly _isObjectQueryRequest = true;
constructor(queryOptions: IHubObjectQueryOptions) {
super('ObjectQueryRequest', {
query: queryOptions,
});
}
}