@ibgib/core-gib 0.0.65 → 0.0.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@ import {
14
14
  GetIbGibOpts, GetIbGibResult,
15
15
  PutIbGibOpts, PutIbGibResult
16
16
  } from '../../../common/other/other-types.mjs';
17
- import { SyncSagaInfo, } from '../../../witness/space/outer-space/outer-space-types.mjs';
17
+ import { SyncSagaInfo, SyncSpaceIbGib, } from '../../../witness/space/outer-space/outer-space-types.mjs';
18
18
  import { SpaceId } from '../../../witness/space/space-types.mjs';
19
19
  import { IbGibSpaceAny } from '../../../witness/space/space-base-v1.mjs';
20
20
  import { IbGibTimelineUpdateInfo, SpecialIbGibType } from '../../../common/other/other-types.mjs';
@@ -544,24 +544,24 @@ export interface MetaspaceService {
544
544
  dontPrompt?: boolean,
545
545
  space: IbGibSpaceAny,
546
546
  }): Promise<string>;
547
- unwrapEncryptedSyncSpace(arg: {
548
- encryptedSpace: IbGibSpaceAny,
549
- fnPromptPassword: (title: string, msg: string) => Promise<string | null>,
550
- dontPrompt?: boolean,
551
- space?: IbGibSpaceAny,
552
- }): Promise<IbGibSpaceAny>;
553
- getSyncSpaces(arg: {
554
- unwrapEncrypted: boolean,
555
- createIfNone: boolean,
556
- /**
557
- * If true, don't prompt the user if we don't have it already cached.
558
- *
559
- * We don't want the user to hit the page and then always have to type in
560
- * the password, just because my password code sucks atow.
561
- */
562
- dontPrompt?: boolean,
563
- space?: IbGibSpaceAny,
564
- }): Promise<IbGibSpaceAny[]>;
547
+ // unwrapEncryptedSyncSpace(arg: {
548
+ // encryptedSpace: IbGibSpaceAny,
549
+ // fnPromptPassword: (title: string, msg: string) => Promise<string | null>,
550
+ // dontPrompt?: boolean,
551
+ // space?: IbGibSpaceAny,
552
+ // }): Promise<IbGibSpaceAny>;
553
+ // getSyncSpaces(arg: {
554
+ // // unwrapEncrypted: boolean,
555
+ // createIfNone: boolean,
556
+ // /**
557
+ // * If true, don't prompt the user if we don't have it already cached.
558
+ // *
559
+ // * We don't want the user to hit the page and then always have to type in
560
+ // * the password, just because my password code sucks atow.
561
+ // */
562
+ // dontPrompt?: boolean,
563
+ // space?: IbGibSpaceAny,
564
+ // }): Promise<SyncSpaceIbGib[]>;
565
565
  getAppRobbotIbGibs(arg: {
566
566
  createIfNone: boolean,
567
567
  fnPromptRobbot: (space: IbGibSpaceAny, ibGib: RobbotIbGib_V1 | null) => Promise<RobbotPromptResult | undefined>;
@@ -581,55 +581,20 @@ export interface MetaspaceService {
581
581
  * ibgibs to be synced.
582
582
  */
583
583
  dependencyGraphIbGibs?: IbGib_V1[],
584
- // confirm?: boolean,
584
+ /**
585
+ * sync space witnesses that we are going to send a put+sync cmd with
586
+ * the given {@link dependencyGraphIbGibs}.
587
+ *
588
+ * Note these are witnesses ({@link IbGibSpaceAny}) and not just the
589
+ * {@link SyncSpaceIbGib} interface, which is itself only an ibgib shape.
590
+ */
591
+ syncSpaceIbGibs: IbGibSpaceAny[],
585
592
  // /**
586
593
  // * If true, will watch ibgibs in dependency graph that have timelines
587
594
  // * (tjps) to keep in sync going forward.
588
595
  // */
589
596
  // watch?: boolean,
590
- /**
591
- * if provided, these will determine which outerspace(s) we will sync
592
- * the {@link dependencyGraphIbGibs} with.
593
- */
594
- outerspaceIds?: SpaceId[],
595
- /**
596
- * The meat of the sync process is tracked via a status within the sync
597
- * spaces themselves. I'm addign this fn to track the pre and post progress
598
- * stuff, since decrypting takes some time, and building the dependency
599
- * graphs takes time. Both of these happen before the actual syncing occurs
600
- * in the spaces.
601
- */
602
- fnPreSyncProgress?: (msg: string) => Promise<void>,
603
597
  }): Promise<SyncSagaInfo[] | undefined>;
604
- // /**
605
- // * Prompts the user to select a new picture for the given `picIbGib`.
606
- // *
607
- // * If the user does select one, this creates the appropriate ibgibs (pic,
608
- // * binary, dependencies), saves them, registers the new pic (but not the bin)
609
- // * in the given `space` if specified, else in the current `localUserSpace`.
610
- // */
611
- // updatePic(arg: {
612
- // /**
613
- // * picIbGib to update with a new image.
614
- // */
615
- // picIbGib: PicIbGib_V1,
616
- // /**
617
- // * space within which we are working, i.e., where the incoming `picIbGib` is
618
- // * and where we will save any new ibgibs.
619
- // */
620
- // space?: IbGibSpaceAny,
621
- // }): Promise<void>;
622
- // updateComment(arg: {
623
- // /**
624
- // * commentIbGib to update with a new text
625
- // */
626
- // commentIbGib: CommentIbGib_V1,
627
- // /**
628
- // * space within which we are working, i.e., where the incoming `commentIbGib` is
629
- // * and where we will save any new ibgibs.
630
- // */
631
- // space?: IbGibSpaceAny,
632
- // }): Promise<void>;
633
598
 
634
599
  /**
635
600
  * creates a new local space with the given `fnLocalSpaceFactory` function
@@ -125,9 +125,16 @@ export interface OuterSpaceData extends IbGibSpaceData {
125
125
  }
126
126
 
127
127
  export interface OuterSpaceRel8ns extends IbGibSpaceRel8ns {
128
+ /**
129
+ * the ciphertext will contain private data that is typed per use case (per
130
+ * concrete implementation).
131
+ */
128
132
  [CIPHERTEXT_REL8N_NAME]?: IbGibAddr[];
129
133
  }
130
134
 
135
+ /**
136
+ *
137
+ */
131
138
  export interface OuterSpaceIbGib
132
139
  extends IbGib_V1<OuterSpaceData, OuterSpaceRel8ns> {
133
140
  }
@@ -567,6 +574,9 @@ export interface SagaInfo<
567
574
  sagaId: string;
568
575
  /**
569
576
  * Reference to the space with which we're communicating.
577
+ *
578
+ * Note that this is a witness not just an ibgib data shape. so you will be
579
+ * able to pass in args to witness to this space.
570
580
  */
571
581
  outerSpace: IbGibSpaceAny;
572
582
  spaceId: string;