import { BulkPublishStatus, Operation, Platform, StreamingStatus } from "./enums"; export interface BulkPublishRequest { IdentityPoolId: string | undefined; } export interface BulkPublishResponse { IdentityPoolId?: string | undefined; } export interface DeleteDatasetRequest { IdentityPoolId: string | undefined; IdentityId: string | undefined; DatasetName: string | undefined; } export interface Dataset { IdentityId?: string | undefined; DatasetName?: string | undefined; CreationDate?: Date | undefined; LastModifiedDate?: Date | undefined; LastModifiedBy?: string | undefined; DataStorage?: number | undefined; NumRecords?: number | undefined; } export interface DeleteDatasetResponse { Dataset?: Dataset | undefined; } export interface DescribeDatasetRequest { IdentityPoolId: string | undefined; IdentityId: string | undefined; DatasetName: string | undefined; } export interface DescribeDatasetResponse { Dataset?: Dataset | undefined; } export interface DescribeIdentityPoolUsageRequest { IdentityPoolId: string | undefined; } export interface IdentityPoolUsage { IdentityPoolId?: string | undefined; SyncSessionsCount?: number | undefined; DataStorage?: number | undefined; LastModifiedDate?: Date | undefined; } export interface DescribeIdentityPoolUsageResponse { IdentityPoolUsage?: IdentityPoolUsage | undefined; } export interface DescribeIdentityUsageRequest { IdentityPoolId: string | undefined; IdentityId: string | undefined; } export interface IdentityUsage { IdentityId?: string | undefined; IdentityPoolId?: string | undefined; LastModifiedDate?: Date | undefined; DatasetCount?: number | undefined; DataStorage?: number | undefined; } export interface DescribeIdentityUsageResponse { IdentityUsage?: IdentityUsage | undefined; } export interface GetBulkPublishDetailsRequest { IdentityPoolId: string | undefined; } export interface GetBulkPublishDetailsResponse { IdentityPoolId?: string | undefined; BulkPublishStartTime?: Date | undefined; BulkPublishCompleteTime?: Date | undefined; BulkPublishStatus?: BulkPublishStatus | undefined; FailureMessage?: string | undefined; } export interface GetCognitoEventsRequest { IdentityPoolId: string | undefined; } export interface GetCognitoEventsResponse { Events?: Record | undefined; } export interface GetIdentityPoolConfigurationRequest { IdentityPoolId: string | undefined; } export interface CognitoStreams { StreamName?: string | undefined; RoleArn?: string | undefined; StreamingStatus?: StreamingStatus | undefined; } export interface PushSync { ApplicationArns?: string[] | undefined; RoleArn?: string | undefined; } export interface GetIdentityPoolConfigurationResponse { IdentityPoolId?: string | undefined; PushSync?: PushSync | undefined; CognitoStreams?: CognitoStreams | undefined; } export interface ListDatasetsRequest { IdentityPoolId: string | undefined; IdentityId: string | undefined; NextToken?: string | undefined; MaxResults?: number | undefined; } export interface ListDatasetsResponse { Datasets?: Dataset[] | undefined; Count?: number | undefined; NextToken?: string | undefined; } export interface ListIdentityPoolUsageRequest { NextToken?: string | undefined; MaxResults?: number | undefined; } export interface ListIdentityPoolUsageResponse { IdentityPoolUsages?: IdentityPoolUsage[] | undefined; MaxResults?: number | undefined; Count?: number | undefined; NextToken?: string | undefined; } export interface ListRecordsRequest { IdentityPoolId: string | undefined; IdentityId: string | undefined; DatasetName: string | undefined; LastSyncCount?: number | undefined; NextToken?: string | undefined; MaxResults?: number | undefined; SyncSessionToken?: string | undefined; } export interface _Record { Key?: string | undefined; Value?: string | undefined; SyncCount?: number | undefined; LastModifiedDate?: Date | undefined; LastModifiedBy?: string | undefined; DeviceLastModifiedDate?: Date | undefined; } export interface ListRecordsResponse { Records?: _Record[] | undefined; NextToken?: string | undefined; Count?: number | undefined; DatasetSyncCount?: number | undefined; LastModifiedBy?: string | undefined; MergedDatasetNames?: string[] | undefined; DatasetExists?: boolean | undefined; DatasetDeletedAfterRequestedSyncCount?: boolean | undefined; SyncSessionToken?: string | undefined; } export interface RegisterDeviceRequest { IdentityPoolId: string | undefined; IdentityId: string | undefined; Platform: Platform | undefined; Token: string | undefined; } export interface RegisterDeviceResponse { DeviceId?: string | undefined; } export interface SetCognitoEventsRequest { IdentityPoolId: string | undefined; Events: Record | undefined; } export interface SetIdentityPoolConfigurationRequest { IdentityPoolId: string | undefined; PushSync?: PushSync | undefined; CognitoStreams?: CognitoStreams | undefined; } export interface SetIdentityPoolConfigurationResponse { IdentityPoolId?: string | undefined; PushSync?: PushSync | undefined; CognitoStreams?: CognitoStreams | undefined; } export interface SubscribeToDatasetRequest { IdentityPoolId: string | undefined; IdentityId: string | undefined; DatasetName: string | undefined; DeviceId: string | undefined; } export interface SubscribeToDatasetResponse {} export interface UnsubscribeFromDatasetRequest { IdentityPoolId: string | undefined; IdentityId: string | undefined; DatasetName: string | undefined; DeviceId: string | undefined; } export interface UnsubscribeFromDatasetResponse {} export interface RecordPatch { Op: Operation | undefined; Key: string | undefined; Value?: string | undefined; SyncCount: number | undefined; DeviceLastModifiedDate?: Date | undefined; } export interface UpdateRecordsRequest { IdentityPoolId: string | undefined; IdentityId: string | undefined; DatasetName: string | undefined; DeviceId?: string | undefined; RecordPatches?: RecordPatch[] | undefined; SyncSessionToken: string | undefined; ClientContext?: string | undefined; } export interface UpdateRecordsResponse { Records?: _Record[] | undefined; }