import { createIs } from 'typia';
export const isKeetaStorageAnchorPutResponse = (() => { const _io0 = input => false === input.ok && "string" === typeof input.error; const _io1 = input => true === input.ok && ("object" === typeof input.object && null !== input.object && _io2(input.object)); const _io2 = input => "string" === typeof input.path && "string" === typeof input.owner && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && ("public" === input.visibility || "private" === input.visibility) && "number" === typeof input.size && "string" === typeof input.createdAt && (undefined === input.updatedAt || "string" === typeof input.updatedAt); const _iu0 = input => (() => {
    if (false === input.ok)
        return _io0(input);
    else if (true === input.ok)
        return _io1(input);
    else
        return false;
})(); return input => "object" === typeof input && null !== input && _iu0(input); })();
export const isKeetaStorageAnchorGetResponse = (() => { const _io0 = input => false === input.ok && "string" === typeof input.error; const _io1 = input => true === input.ok && "string" === typeof input.data && ("object" === typeof input.object && null !== input.object && _io2(input.object)); const _io2 = input => "string" === typeof input.path && "string" === typeof input.owner && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && ("public" === input.visibility || "private" === input.visibility) && "number" === typeof input.size && "string" === typeof input.createdAt && (undefined === input.updatedAt || "string" === typeof input.updatedAt); const _iu0 = input => (() => {
    if (false === input.ok)
        return _io0(input);
    else if (true === input.ok)
        return _io1(input);
    else
        return false;
})(); return input => "object" === typeof input && null !== input && _iu0(input); })();
export const isKeetaStorageAnchorDeleteResponse = (() => { const _io0 = input => false === input.ok && "string" === typeof input.error; const _io1 = input => true === input.ok && "boolean" === typeof input.deleted; const _iu0 = input => (() => {
    if (false === input.ok)
        return _io0(input);
    else if (true === input.ok)
        return _io1(input);
    else
        return false;
})(); return input => "object" === typeof input && null !== input && _iu0(input); })();
export const isKeetaStorageAnchorSearchResponse = (() => { const _io0 = input => false === input.ok && "string" === typeof input.error; const _io1 = input => true === input.ok && (Array.isArray(input.results) && input.results.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.nextCursor || "string" === typeof input.nextCursor); const _io2 = input => "string" === typeof input.path && "string" === typeof input.owner && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && ("public" === input.visibility || "private" === input.visibility) && "number" === typeof input.size && "string" === typeof input.createdAt && (undefined === input.updatedAt || "string" === typeof input.updatedAt); const _iu0 = input => (() => {
    if (false === input.ok)
        return _io0(input);
    else if (true === input.ok)
        return _io1(input);
    else
        return false;
})(); return input => "object" === typeof input && null !== input && _iu0(input); })();
export const isKeetaStorageAnchorQuotaResponse = (() => { const _io0 = input => false === input.ok && "string" === typeof input.error; const _io1 = input => true === input.ok && ("object" === typeof input.quota && null !== input.quota && _io2(input.quota)); const _io2 = input => "number" === typeof input.objectCount && "number" === typeof input.totalSize && (undefined === input.remainingObjects || "number" === typeof input.remainingObjects) && (undefined === input.remainingSize || "number" === typeof input.remainingSize); const _iu0 = input => (() => {
    if (false === input.ok)
        return _io0(input);
    else if (true === input.ok)
        return _io1(input);
    else
        return false;
})(); return input => "object" === typeof input && null !== input && _iu0(input); })();
// Back-compat: server-only request/response validators were moved to
// common.server.generated.ts to keep them out of client bundles. Re-exported here
// (named, tree-shakeable) so existing './common.generated.js' imports keep resolving.
export { assertKeetaStorageAnchorPutRequest, assertKeetaStorageAnchorPutResponse, assertKeetaStorageAnchorGetRequest, assertKeetaStorageAnchorGetResponse, assertKeetaStorageAnchorDeleteRequest, assertKeetaStorageAnchorDeleteResponse, assertKeetaStorageAnchorSearchRequest, assertKeetaStorageAnchorSearchResponse, assertKeetaStorageAnchorQuotaRequest, assertKeetaStorageAnchorQuotaResponse, assertKeetaStorageAnchorUpdateMetadataRequest } from './common.server.generated.js';
//# sourceMappingURL=common.generated.js.map