@refinio/one.models
    Preparing search index...

    Function createLocalInstanceIfNoneExists

    • Creates a local instance if none already exists.

      This means that the instance will also have a complete set of keys associated with it. This function will assert that only one local instance for this owner exists.

      Parameters

      • owner: SHA256IdHash<Person>
      • OptionalinstanceName: string

      Returns Promise<
          {
              exists: boolean;
              instanceId: SHA256IdHash<Instance>;
              instanceKeys: SHA256Hash<Keys>;
          },
      >