CipherStashDocs
IntegrationsPrisma ORMAPI reference

pack

pack is a module in @cipherstash/stack-prisma. TypeScript API reference with its signature, parameters, and usage.

@cipherstash/stack-prisma


pack

Variables

default

const default: {
  kind: "extension";
  id: "cipherstash";
  familyId: "sql";
  targetId: "postgres";
  version: "0.0.1";
  authoring: {
     type: AuthoringTypeNamespace;
  };
  types: {
     codecTypes: {
        codecInstances: readonly CipherstashCodecMetadata[];
        import: {
           package: "@prisma-next/extension-cipherstash/codec-types";
           named: "CodecTypes";
           alias: "CipherstashTypes";
        };
        typeImports: readonly [{
           package: "@prisma-next/extension-cipherstash/runtime";
           named: "EncryptedString";
           alias: "EncryptedString";
         }, {
           package: "@prisma-next/extension-cipherstash/runtime";
           named: "EncryptedBigInt";
           alias: "EncryptedBigInt";
         }, {
           package: "@prisma-next/extension-cipherstash/runtime";
           named: "EncryptedDate";
           alias: "EncryptedDate";
         }, {
           package: "@prisma-next/extension-cipherstash/runtime";
           named: "EncryptedBoolean";
           alias: "EncryptedBoolean";
         }, {
           package: "@prisma-next/extension-cipherstash/runtime";
           named: "EncryptedJson";
           alias: "EncryptedJson";
         }, {
           package: "@prisma-next/extension-cipherstash/runtime";
           named: "EncryptedNumber";
           alias: "EncryptedNumber";
        }];
     };
     queryOperationTypes: {
        import: {
           package: "@prisma-next/extension-cipherstash/operation-types";
           named: "QueryOperationTypes";
           alias: "CipherstashQueryOperationTypes";
        };
     };
     storage: readonly {
        typeId: string;
        familyId: "sql";
        targetId: "postgres";
        nativeType: string;
     }[];
  };
};

Defined in: ../extension-metadata/descriptor-meta.ts:35

Pack entry point for the cipherstash extension.

Re-exports the SDK-free pack metadata so TS contract authoring (defineContract({ extensionPacks: { cipherstash: cipherstashPack } })) can enable the cipherstash.* PSL/TS namespace and the storage type registration without pulling in any runtime code (envelope, SDK, codec runtime, middleware).

Type Declaration

kind
readonly kind: "extension" = 'extension';
id
readonly id: "cipherstash" = CIPHERSTASH_SPACE_ID;
familyId
readonly familyId: "sql" = 'sql';
targetId
readonly targetId: "postgres" = 'postgres';
version
readonly version: "0.0.1" = CIPHERSTASH_EXTENSION_VERSION;
authoring
readonly authoring: {
  type: AuthoringTypeNamespace;
};
authoring.type
readonly type: AuthoringTypeNamespace = cipherstashAuthoringTypes;
types
readonly types: {
  codecTypes: {
     codecInstances: readonly CipherstashCodecMetadata[];
     import: {
        package: "@prisma-next/extension-cipherstash/codec-types";
        named: "CodecTypes";
        alias: "CipherstashTypes";
     };
     typeImports: readonly [{
        package: "@prisma-next/extension-cipherstash/runtime";
        named: "EncryptedString";
        alias: "EncryptedString";
      }, {
        package: "@prisma-next/extension-cipherstash/runtime";
        named: "EncryptedBigInt";
        alias: "EncryptedBigInt";
      }, {
        package: "@prisma-next/extension-cipherstash/runtime";
        named: "EncryptedDate";
        alias: "EncryptedDate";
      }, {
        package: "@prisma-next/extension-cipherstash/runtime";
        named: "EncryptedBoolean";
        alias: "EncryptedBoolean";
      }, {
        package: "@prisma-next/extension-cipherstash/runtime";
        named: "EncryptedJson";
        alias: "EncryptedJson";
      }, {
        package: "@prisma-next/extension-cipherstash/runtime";
        named: "EncryptedNumber";
        alias: "EncryptedNumber";
     }];
  };
  queryOperationTypes: {
     import: {
        package: "@prisma-next/extension-cipherstash/operation-types";
        named: "QueryOperationTypes";
        alias: "CipherstashQueryOperationTypes";
     };
  };
  storage: readonly {
     typeId: string;
     familyId: "sql";
     targetId: "postgres";
     nativeType: string;
  }[];
};
types.codecTypes
readonly codecTypes: {
  codecInstances: readonly CipherstashCodecMetadata[];
  import: {
     package: "@prisma-next/extension-cipherstash/codec-types";
     named: "CodecTypes";
     alias: "CipherstashTypes";
  };
  typeImports: readonly [{
     package: "@prisma-next/extension-cipherstash/runtime";
     named: "EncryptedString";
     alias: "EncryptedString";
   }, {
     package: "@prisma-next/extension-cipherstash/runtime";
     named: "EncryptedBigInt";
     alias: "EncryptedBigInt";
   }, {
     package: "@prisma-next/extension-cipherstash/runtime";
     named: "EncryptedDate";
     alias: "EncryptedDate";
   }, {
     package: "@prisma-next/extension-cipherstash/runtime";
     named: "EncryptedBoolean";
     alias: "EncryptedBoolean";
   }, {
     package: "@prisma-next/extension-cipherstash/runtime";
     named: "EncryptedJson";
     alias: "EncryptedJson";
   }, {
     package: "@prisma-next/extension-cipherstash/runtime";
     named: "EncryptedNumber";
     alias: "EncryptedNumber";
  }];
};
types.codecTypes.codecInstances
readonly codecInstances: readonly CipherstashCodecMetadata[];
types.codecTypes.import
readonly import: {
  package: "@prisma-next/extension-cipherstash/codec-types";
  named: "CodecTypes";
  alias: "CipherstashTypes";
};
types.codecTypes.import.package
readonly package: "@prisma-next/extension-cipherstash/codec-types" = '@prisma-next/extension-cipherstash/codec-types';
types.codecTypes.import.named
readonly named: "CodecTypes" = 'CodecTypes';
types.codecTypes.import.alias
readonly alias: "CipherstashTypes" = 'CipherstashTypes';
types.codecTypes.typeImports
readonly typeImports: readonly [{
  package: "@prisma-next/extension-cipherstash/runtime";
  named: "EncryptedString";
  alias: "EncryptedString";
}, {
  package: "@prisma-next/extension-cipherstash/runtime";
  named: "EncryptedBigInt";
  alias: "EncryptedBigInt";
}, {
  package: "@prisma-next/extension-cipherstash/runtime";
  named: "EncryptedDate";
  alias: "EncryptedDate";
}, {
  package: "@prisma-next/extension-cipherstash/runtime";
  named: "EncryptedBoolean";
  alias: "EncryptedBoolean";
}, {
  package: "@prisma-next/extension-cipherstash/runtime";
  named: "EncryptedJson";
  alias: "EncryptedJson";
}, {
  package: "@prisma-next/extension-cipherstash/runtime";
  named: "EncryptedNumber";
  alias: "EncryptedNumber";
}];
types.queryOperationTypes
readonly queryOperationTypes: {
  import: {
     package: "@prisma-next/extension-cipherstash/operation-types";
     named: "QueryOperationTypes";
     alias: "CipherstashQueryOperationTypes";
  };
};
types.queryOperationTypes.import
readonly import: {
  package: "@prisma-next/extension-cipherstash/operation-types";
  named: "QueryOperationTypes";
  alias: "CipherstashQueryOperationTypes";
};
types.queryOperationTypes.import.package
readonly package: "@prisma-next/extension-cipherstash/operation-types" = '@prisma-next/extension-cipherstash/operation-types';
types.queryOperationTypes.import.named
readonly named: "QueryOperationTypes" = 'QueryOperationTypes';
types.queryOperationTypes.import.alias
readonly alias: "CipherstashQueryOperationTypes" = 'CipherstashQueryOperationTypes';
types.storage
readonly storage: readonly {
  typeId: string;
  familyId: "sql";
  targetId: "postgres";
  nativeType: string;
}[];

On this page