@portalshq/nap-sdk 0.5.18 → 0.5.20

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.
package/index.d.ts CHANGED
@@ -4,9 +4,63 @@
4
4
  /* auto-generated by NAPI-RS */
5
5
 
6
6
  export declare function parseUri(uriStr: string): string
7
+ export declare function uriNew(repository: string, entityType: string, entityId: string, fragment?: string | undefined | null): string
8
+ export declare function uriIdentity(uriStr: string): string
9
+ export declare function uriManifestPath(uriStr: string): string
10
+ export declare function uriFormat(repository: string, entityType: string, entityId: string, fragment?: string | undefined | null): string
11
+ export declare function entityTypeParse(s: string): string
12
+ export declare function entityTypeDirectoryName(entityType: string): string
13
+ export declare function entityTypeList(basePath: string, repository: string): string
7
14
  export declare function parseManifest(yamlStr: string): string
15
+ export declare function manifestNew(repository: string, entityType: string, entityId: string, name: string): string
16
+ export declare function manifestToYaml(jsonStr: string): string
17
+ export declare function manifestFromYaml(yamlStr: string): string
18
+ export declare function manifestContentHash(jsonStr: string): string
19
+ export declare function manifestSetProperty(jsonStr: string, key: string, value: string): string
20
+ export declare function manifestAddReference(jsonStr: string, key: string, value: string): string
21
+ export declare function manifestSetRepresentation(jsonStr: string, key: string, hash: string, format: string, uri?: string | undefined | null, tier?: string | undefined | null): string
22
+ export declare function manifestBumpVersion(jsonStr: string): string
23
+ export declare function contentHashFromBytes(data: Buffer): string
24
+ export declare function contentHashFromString(s: string): string
25
+ export declare function contentHashParse(s: string): string
26
+ export declare function contentHashVerify(hashStr: string, data: Buffer): boolean
27
+ export declare function contentHashHexDigest(hashStr: string): string
28
+ export declare function changeSet(path: string, oldValue: string | undefined | null, newValue: string): string
29
+ export declare function changeDelete(path: string, oldValue: string): string
30
+ export declare function changeAppend(path: string, newValue: string): string
31
+ export declare function commitNew(parent: string | undefined | null, author: string, message: string, manifestHash: string, changesJson: string): string
32
+ export declare function commitVerifyId(jsonStr: string): boolean
33
+ export declare function repoInit(basePath: string, repository: string): string
34
+ export declare function repoOpen(basePath: string, repository: string): string
35
+ export declare function repoCreateEntity(basePath: string, repository: string, entityType: string, entityId: string, name: string, author: string): string
36
+ export declare function repoReadManifest(basePath: string, repository: string, entityType: string, entityId: string): string
37
+ export declare function repoReadManifestAtRef(basePath: string, repository: string, entityType: string, entityId: string, reference: string): string
38
+ export declare function repoWriteManifest(basePath: string, repository: string, manifestJson: string): string
39
+ export declare function repoCommitManifest(basePath: string, repository: string, entityType: string, entityId: string, message: string, author: string, changesJson: string): string
40
+ export declare function repoDeleteEntity(basePath: string, repository: string, entityType: string, entityId: string, author: string): string
41
+ export declare function repoHistory(basePath: string, repository: string, entityType: string, entityId: string, limit: number): string
42
+ export declare function repoListEntities(basePath: string, repository: string, entityType: string): string
43
+ export declare function repoCreateBranch(basePath: string, repository: string, name: string): string
44
+ export declare function repoSwitchBranch(basePath: string, repository: string, name: string): string
45
+ export declare function repoListBranches(basePath: string, repository: string): string
46
+ export declare function repoHeadHash(basePath: string, repository: string): string
47
+ export declare function repoRevertCommit(basePath: string, repository: string, commitHash: string, author: string): string
48
+ export declare function repoAddRemote(basePath: string, repository: string, name: string, url: string): string
49
+ export declare function repoRemoveRemote(basePath: string, repository: string, name: string): string
50
+ export declare function repoListRemotes(basePath: string, repository: string): string
51
+ export declare function repoPush(basePath: string, repository: string, remote?: string | undefined | null, branch?: string | undefined | null): string
52
+ export declare function repoPull(basePath: string, repository: string, remote?: string | undefined | null, branch?: string | undefined | null): string
8
53
  export declare function resolve(uriStr: string, repoBasePath: string): string
9
- export declare function version(): string
54
+ export declare function resolveWithOptions(uriStr: string, repoBasePath: string, branch?: string | undefined | null, commit?: string | undefined | null, path?: string | undefined | null): string
55
+ export declare function resolveQuery(uriStr: string, repoBasePath: string, path: string): string
56
+ export declare function listRepositories(repoBasePath: string): string
57
+ export declare function manifestSchema(): string
58
+ export declare function commitSchema(): string
59
+ export declare function validateManifest(jsonStr: string): string
60
+ export declare function validateCommit(jsonStr: string): string
61
+ export declare function mergeMerge(schemaJson: string, base: string, current: string, proposed: string): string
62
+ export declare function mergeDiff(schemaJson: string, base: string, candidate: string): string
63
+ export declare function storageConfig(): string
10
64
  /**
11
65
  * Ingest raw media bytes into the content-addressed storage engine.
12
66
  *
@@ -34,3 +88,5 @@ export declare function version(): string
34
88
  * A Promise resolving to the content-addressed hash `sha256:<hex>`.
35
89
  */
36
90
  export declare function ingestMedia(data: Buffer, format: string): Promise<string>
91
+ export declare function loreClone(url: string, destPath: string): string
92
+ export declare function version(): string
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portalshq/nap-sdk",
3
- "version": "0.5.18",
3
+ "version": "0.5.20",
4
4
  "description": "TypeScript SDK for NAP (Narrative Addressing Protocol), powered by Rust and NAPI-RS.",
5
5
  "publishConfig": {
6
6
  "access": "public"