@atcute/tangled 1.0.17 → 1.0.19
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/dist/index.d.ts +1 -1
- package/dist/lexicons/index.d.ts +74 -57
- package/dist/lexicons/index.d.ts.map +1 -1
- package/dist/lexicons/index.js +17 -0
- package/dist/lexicons/index.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/actor/profile.d.ts +8 -3
- package/dist/lexicons/types/sh/tangled/actor/profile.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/actor/profile.js +13 -3
- package/dist/lexicons/types/sh/tangled/actor/profile.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/feed/reaction.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/feed/reaction.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/feed/star.d.ts +2 -1
- package/dist/lexicons/types/sh/tangled/feed/star.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/feed/star.js +2 -1
- package/dist/lexicons/types/sh/tangled/feed/star.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/git/refUpdate.d.ts +6 -2
- package/dist/lexicons/types/sh/tangled/git/refUpdate.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/git/refUpdate.js +6 -2
- package/dist/lexicons/types/sh/tangled/git/refUpdate.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/git/temp/analyzeMerge.d.ts +59 -0
- package/dist/lexicons/types/sh/tangled/git/temp/analyzeMerge.d.ts.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/analyzeMerge.js +46 -0
- package/dist/lexicons/types/sh/tangled/git/temp/analyzeMerge.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/defs.d.ts +121 -0
- package/dist/lexicons/types/sh/tangled/git/temp/defs.d.ts.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/defs.js +102 -0
- package/dist/lexicons/types/sh/tangled/git/temp/defs.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getArchive.d.ts +36 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getArchive.d.ts.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getArchive.js +28 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getArchive.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getBlob.d.ts +32 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getBlob.d.ts.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getBlob.js +23 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getBlob.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getBranch.d.ts +48 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getBranch.d.ts.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getBranch.js +40 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getBranch.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getCommit.d.ts +29 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getCommit.d.ts.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getCommit.js +22 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getCommit.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getDiff.d.ts +31 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getDiff.d.ts.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getDiff.js +22 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getDiff.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getEntity.d.ts +34 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getEntity.d.ts.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getEntity.js +27 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getEntity.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getHead.d.ts +25 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getHead.d.ts.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getHead.js +18 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getHead.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getTag.d.ts +27 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getTag.d.ts.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getTag.js +18 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getTag.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getTree.d.ts +135 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getTree.d.ts.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getTree.js +115 -0
- package/dist/lexicons/types/sh/tangled/git/temp/getTree.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/listBranches.d.ts +34 -0
- package/dist/lexicons/types/sh/tangled/git/temp/listBranches.d.ts.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/listBranches.js +26 -0
- package/dist/lexicons/types/sh/tangled/git/temp/listBranches.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/listCommits.d.ts +38 -0
- package/dist/lexicons/types/sh/tangled/git/temp/listCommits.d.ts.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/listCommits.js +30 -0
- package/dist/lexicons/types/sh/tangled/git/temp/listCommits.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/listLanguages.d.ts +77 -0
- package/dist/lexicons/types/sh/tangled/git/temp/listLanguages.d.ts.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/listLanguages.js +64 -0
- package/dist/lexicons/types/sh/tangled/git/temp/listLanguages.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/listTags.d.ts +34 -0
- package/dist/lexicons/types/sh/tangled/git/temp/listTags.d.ts.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/temp/listTags.js +26 -0
- package/dist/lexicons/types/sh/tangled/git/temp/listTags.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/graph/follow.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/knot/listKeys.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/knot/listKeys.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/knot/member.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/knot/subscribeRepos.d.ts +74 -0
- package/dist/lexicons/types/sh/tangled/knot/subscribeRepos.d.ts.map +1 -0
- package/dist/lexicons/types/sh/tangled/knot/subscribeRepos.js +52 -0
- package/dist/lexicons/types/sh/tangled/knot/subscribeRepos.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/knot/version.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/knot.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/label/definition.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/label/definition.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/label/op.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/label/op.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/owner.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/pipeline/cancelPipeline.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/pipeline/status.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/pipeline.d.ts +5 -1
- package/dist/lexicons/types/sh/tangled/pipeline.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/pipeline.js +5 -1
- package/dist/lexicons/types/sh/tangled/pipeline.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/publicKey.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/addSecret.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/archive.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/artifact.d.ts +3 -2
- package/dist/lexicons/types/sh/tangled/repo/artifact.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/artifact.js +3 -2
- package/dist/lexicons/types/sh/tangled/repo/artifact.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/blob.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/blob.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/branch.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/branch.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/branches.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/collaborator.d.ts +2 -1
- package/dist/lexicons/types/sh/tangled/repo/collaborator.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/collaborator.js +2 -1
- package/dist/lexicons/types/sh/tangled/repo/collaborator.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/compare.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/create.d.ts +16 -1
- package/dist/lexicons/types/sh/tangled/repo/create.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/create.js +14 -1
- package/dist/lexicons/types/sh/tangled/repo/create.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/delete.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/deleteBranch.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/diff.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/forkStatus.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/forkSync.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/getDefaultBranch.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/getDefaultBranch.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/hiddenRef.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/issue/comment.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/issue/state/closed.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/issue/state/open.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/issue/state.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/issue.d.ts +2 -1
- package/dist/lexicons/types/sh/tangled/repo/issue.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/issue.js +2 -1
- package/dist/lexicons/types/sh/tangled/repo/issue.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/languages.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/languages.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/listSecrets.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/listSecrets.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/log.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/merge.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/mergeCheck.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/mergeCheck.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/pull/comment.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/pull/status/closed.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/pull/status/merged.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/pull/status/open.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/pull/status.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/pull.d.ts +4 -2
- package/dist/lexicons/types/sh/tangled/repo/pull.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/pull.js +6 -2
- package/dist/lexicons/types/sh/tangled/repo/pull.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/removeSecret.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/setDefaultBranch.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/tag.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/tags.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/tree.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/tree.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo.d.ts +4 -0
- package/dist/lexicons/types/sh/tangled/repo.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo.js +4 -0
- package/dist/lexicons/types/sh/tangled/repo.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/spindle/member.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/spindle.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/string.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/sync/requestCrawl.d.ts +29 -0
- package/dist/lexicons/types/sh/tangled/sync/requestCrawl.d.ts.map +1 -0
- package/dist/lexicons/types/sh/tangled/sync/requestCrawl.js +20 -0
- package/dist/lexicons/types/sh/tangled/sync/requestCrawl.js.map +1 -0
- package/lib/index.ts +1 -1
- package/lib/lexicons/index.ts +74 -57
- package/lib/lexicons/types/sh/tangled/actor/profile.ts +15 -3
- package/lib/lexicons/types/sh/tangled/feed/star.ts +2 -1
- package/lib/lexicons/types/sh/tangled/git/refUpdate.ts +6 -2
- package/lib/lexicons/types/sh/tangled/git/temp/analyzeMerge.ts +66 -0
- package/lib/lexicons/types/sh/tangled/git/temp/defs.ts +128 -0
- package/lib/lexicons/types/sh/tangled/git/temp/getArchive.ts +46 -0
- package/lib/lexicons/types/sh/tangled/git/temp/getBlob.ts +39 -0
- package/lib/lexicons/types/sh/tangled/git/temp/getBranch.ts +57 -0
- package/lib/lexicons/types/sh/tangled/git/temp/getCommit.ts +39 -0
- package/lib/lexicons/types/sh/tangled/git/temp/getDiff.ts +38 -0
- package/lib/lexicons/types/sh/tangled/git/temp/getEntity.ts +44 -0
- package/lib/lexicons/types/sh/tangled/git/temp/getHead.ts +35 -0
- package/lib/lexicons/types/sh/tangled/git/temp/getTag.ts +34 -0
- package/lib/lexicons/types/sh/tangled/git/temp/getTree.ts +144 -0
- package/lib/lexicons/types/sh/tangled/git/temp/listBranches.ts +44 -0
- package/lib/lexicons/types/sh/tangled/git/temp/listCommits.ts +48 -0
- package/lib/lexicons/types/sh/tangled/git/temp/listLanguages.ts +84 -0
- package/lib/lexicons/types/sh/tangled/git/temp/listTags.ts +44 -0
- package/lib/lexicons/types/sh/tangled/knot/subscribeRepos.ts +79 -0
- package/lib/lexicons/types/sh/tangled/pipeline.ts +5 -1
- package/lib/lexicons/types/sh/tangled/repo/artifact.ts +3 -2
- package/lib/lexicons/types/sh/tangled/repo/collaborator.ts +2 -1
- package/lib/lexicons/types/sh/tangled/repo/create.ts +15 -1
- package/lib/lexicons/types/sh/tangled/repo/issue.ts +2 -1
- package/lib/lexicons/types/sh/tangled/repo/pull.ts +6 -2
- package/lib/lexicons/types/sh/tangled/repo.ts +4 -0
- package/lib/lexicons/types/sh/tangled/sync/requestCrawl.ts +36 -0
- package/package.json +4 -4
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
3
|
+
import * as v from '@atcute/lexicons/validations';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.getDiff', {
|
|
6
|
+
params: /*#__PURE__*/ v.object({
|
|
7
|
+
/**
|
|
8
|
+
* AT-URI of the repository
|
|
9
|
+
*/
|
|
10
|
+
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
11
|
+
/**
|
|
12
|
+
* First revision (commit, branch, or tag)
|
|
13
|
+
*/
|
|
14
|
+
rev1: /*#__PURE__*/ v.string(),
|
|
15
|
+
/**
|
|
16
|
+
* Second revision (commit, branch, or tag)
|
|
17
|
+
*/
|
|
18
|
+
rev2: /*#__PURE__*/ v.string(),
|
|
19
|
+
}),
|
|
20
|
+
output: {
|
|
21
|
+
type: 'blob',
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
type main$schematype = typeof _mainSchema;
|
|
26
|
+
|
|
27
|
+
export interface mainSchema extends main$schematype {}
|
|
28
|
+
|
|
29
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
30
|
+
|
|
31
|
+
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
32
|
+
export type $output = v.InferXRPCBodyInput<mainSchema['output']>;
|
|
33
|
+
|
|
34
|
+
declare module '@atcute/lexicons/ambient' {
|
|
35
|
+
interface XRPCQueries {
|
|
36
|
+
'sh.tangled.git.temp.getDiff': mainSchema;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
3
|
+
import * as v from '@atcute/lexicons/validations';
|
|
4
|
+
|
|
5
|
+
import * as ShTangledGitTempDefs from './defs.ts';
|
|
6
|
+
|
|
7
|
+
const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.getEntity', {
|
|
8
|
+
params: /*#__PURE__*/ v.object({
|
|
9
|
+
/**
|
|
10
|
+
* path of the entity
|
|
11
|
+
*/
|
|
12
|
+
path: /*#__PURE__*/ v.string(),
|
|
13
|
+
/**
|
|
14
|
+
* Git reference (branch, tag, or commit SHA)
|
|
15
|
+
* @default "HEAD"
|
|
16
|
+
*/
|
|
17
|
+
ref: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string(), 'HEAD'),
|
|
18
|
+
/**
|
|
19
|
+
* AT-URI of the repository
|
|
20
|
+
*/
|
|
21
|
+
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
22
|
+
}),
|
|
23
|
+
output: {
|
|
24
|
+
type: 'lex',
|
|
25
|
+
get schema() {
|
|
26
|
+
return ShTangledGitTempDefs.blobSchema;
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
type main$schematype = typeof _mainSchema;
|
|
32
|
+
|
|
33
|
+
export interface mainSchema extends main$schematype {}
|
|
34
|
+
|
|
35
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
36
|
+
|
|
37
|
+
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
38
|
+
export type $output = v.InferXRPCBodyInput<mainSchema['output']>;
|
|
39
|
+
|
|
40
|
+
declare module '@atcute/lexicons/ambient' {
|
|
41
|
+
interface XRPCQueries {
|
|
42
|
+
'sh.tangled.git.temp.getEntity': mainSchema;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
3
|
+
import * as v from '@atcute/lexicons/validations';
|
|
4
|
+
|
|
5
|
+
import * as ShTangledGitTempDefs from './defs.ts';
|
|
6
|
+
|
|
7
|
+
const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.getHead', {
|
|
8
|
+
params: /*#__PURE__*/ v.object({
|
|
9
|
+
/**
|
|
10
|
+
* AT-URI of the repository
|
|
11
|
+
*/
|
|
12
|
+
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
13
|
+
}),
|
|
14
|
+
output: {
|
|
15
|
+
type: 'lex',
|
|
16
|
+
get schema() {
|
|
17
|
+
return ShTangledGitTempDefs.branchSchema;
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
type main$schematype = typeof _mainSchema;
|
|
23
|
+
|
|
24
|
+
export interface mainSchema extends main$schematype {}
|
|
25
|
+
|
|
26
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
27
|
+
|
|
28
|
+
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
29
|
+
export type $output = v.InferXRPCBodyInput<mainSchema['output']>;
|
|
30
|
+
|
|
31
|
+
declare module '@atcute/lexicons/ambient' {
|
|
32
|
+
interface XRPCQueries {
|
|
33
|
+
'sh.tangled.git.temp.getHead': mainSchema;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
3
|
+
import * as v from '@atcute/lexicons/validations';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.getTag', {
|
|
6
|
+
params: /*#__PURE__*/ v.object({
|
|
7
|
+
/**
|
|
8
|
+
* AT-URI of the repository
|
|
9
|
+
*/
|
|
10
|
+
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
11
|
+
/**
|
|
12
|
+
* Name of tag, such as v1.3.0
|
|
13
|
+
*/
|
|
14
|
+
tag: /*#__PURE__*/ v.string(),
|
|
15
|
+
}),
|
|
16
|
+
output: {
|
|
17
|
+
type: 'blob',
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
type main$schematype = typeof _mainSchema;
|
|
22
|
+
|
|
23
|
+
export interface mainSchema extends main$schematype {}
|
|
24
|
+
|
|
25
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
26
|
+
|
|
27
|
+
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
28
|
+
export type $output = v.InferXRPCBodyInput<mainSchema['output']>;
|
|
29
|
+
|
|
30
|
+
declare module '@atcute/lexicons/ambient' {
|
|
31
|
+
interface XRPCQueries {
|
|
32
|
+
'sh.tangled.git.temp.getTag': mainSchema;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
3
|
+
import * as v from '@atcute/lexicons/validations';
|
|
4
|
+
|
|
5
|
+
const _lastCommitSchema = /*#__PURE__*/ v.object({
|
|
6
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.git.temp.getTree#lastCommit')),
|
|
7
|
+
get author() {
|
|
8
|
+
return /*#__PURE__*/ v.optional(signatureSchema);
|
|
9
|
+
},
|
|
10
|
+
/**
|
|
11
|
+
* Commit hash
|
|
12
|
+
*/
|
|
13
|
+
hash: /*#__PURE__*/ v.string(),
|
|
14
|
+
/**
|
|
15
|
+
* Commit message
|
|
16
|
+
*/
|
|
17
|
+
message: /*#__PURE__*/ v.string(),
|
|
18
|
+
/**
|
|
19
|
+
* Commit timestamp
|
|
20
|
+
*/
|
|
21
|
+
when: /*#__PURE__*/ v.datetimeString(),
|
|
22
|
+
});
|
|
23
|
+
const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.getTree', {
|
|
24
|
+
params: /*#__PURE__*/ v.object({
|
|
25
|
+
/**
|
|
26
|
+
* Path within the repository tree
|
|
27
|
+
* @default ""
|
|
28
|
+
*/
|
|
29
|
+
path: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string(), ''),
|
|
30
|
+
/**
|
|
31
|
+
* Git reference (branch, tag, or commit SHA)
|
|
32
|
+
*/
|
|
33
|
+
ref: /*#__PURE__*/ v.string(),
|
|
34
|
+
/**
|
|
35
|
+
* AT-URI of the repository
|
|
36
|
+
*/
|
|
37
|
+
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
38
|
+
}),
|
|
39
|
+
output: {
|
|
40
|
+
type: 'lex',
|
|
41
|
+
schema: /*#__PURE__*/ v.object({
|
|
42
|
+
/**
|
|
43
|
+
* Parent directory path
|
|
44
|
+
*/
|
|
45
|
+
dotdot: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
46
|
+
get files() {
|
|
47
|
+
return /*#__PURE__*/ v.array(treeEntrySchema);
|
|
48
|
+
},
|
|
49
|
+
get lastCommit() {
|
|
50
|
+
return /*#__PURE__*/ v.optional(lastCommitSchema);
|
|
51
|
+
},
|
|
52
|
+
/**
|
|
53
|
+
* The parent path in the tree
|
|
54
|
+
*/
|
|
55
|
+
parent: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
56
|
+
/**
|
|
57
|
+
* Readme for this file tree
|
|
58
|
+
*/
|
|
59
|
+
get readme() {
|
|
60
|
+
return /*#__PURE__*/ v.optional(readmeSchema);
|
|
61
|
+
},
|
|
62
|
+
/**
|
|
63
|
+
* The git reference used
|
|
64
|
+
*/
|
|
65
|
+
ref: /*#__PURE__*/ v.string(),
|
|
66
|
+
}),
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
const _readmeSchema = /*#__PURE__*/ v.object({
|
|
70
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.git.temp.getTree#readme')),
|
|
71
|
+
/**
|
|
72
|
+
* Contents of the readme file
|
|
73
|
+
*/
|
|
74
|
+
contents: /*#__PURE__*/ v.string(),
|
|
75
|
+
/**
|
|
76
|
+
* Name of the readme file
|
|
77
|
+
*/
|
|
78
|
+
filename: /*#__PURE__*/ v.string(),
|
|
79
|
+
});
|
|
80
|
+
const _signatureSchema = /*#__PURE__*/ v.object({
|
|
81
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.git.temp.getTree#signature')),
|
|
82
|
+
/**
|
|
83
|
+
* Author email
|
|
84
|
+
*/
|
|
85
|
+
email: /*#__PURE__*/ v.string(),
|
|
86
|
+
/**
|
|
87
|
+
* Author name
|
|
88
|
+
*/
|
|
89
|
+
name: /*#__PURE__*/ v.string(),
|
|
90
|
+
/**
|
|
91
|
+
* Author timestamp
|
|
92
|
+
*/
|
|
93
|
+
when: /*#__PURE__*/ v.datetimeString(),
|
|
94
|
+
});
|
|
95
|
+
const _treeEntrySchema = /*#__PURE__*/ v.object({
|
|
96
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.git.temp.getTree#treeEntry')),
|
|
97
|
+
get last_commit() {
|
|
98
|
+
return /*#__PURE__*/ v.optional(lastCommitSchema);
|
|
99
|
+
},
|
|
100
|
+
/**
|
|
101
|
+
* File mode
|
|
102
|
+
*/
|
|
103
|
+
mode: /*#__PURE__*/ v.string(),
|
|
104
|
+
/**
|
|
105
|
+
* Relative file or directory name
|
|
106
|
+
*/
|
|
107
|
+
name: /*#__PURE__*/ v.string(),
|
|
108
|
+
/**
|
|
109
|
+
* File size in bytes
|
|
110
|
+
*/
|
|
111
|
+
size: /*#__PURE__*/ v.integer(),
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
type lastCommit$schematype = typeof _lastCommitSchema;
|
|
115
|
+
type main$schematype = typeof _mainSchema;
|
|
116
|
+
type readme$schematype = typeof _readmeSchema;
|
|
117
|
+
type signature$schematype = typeof _signatureSchema;
|
|
118
|
+
type treeEntry$schematype = typeof _treeEntrySchema;
|
|
119
|
+
|
|
120
|
+
export interface lastCommitSchema extends lastCommit$schematype {}
|
|
121
|
+
export interface mainSchema extends main$schematype {}
|
|
122
|
+
export interface readmeSchema extends readme$schematype {}
|
|
123
|
+
export interface signatureSchema extends signature$schematype {}
|
|
124
|
+
export interface treeEntrySchema extends treeEntry$schematype {}
|
|
125
|
+
|
|
126
|
+
export const lastCommitSchema = _lastCommitSchema as lastCommitSchema;
|
|
127
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
128
|
+
export const readmeSchema = _readmeSchema as readmeSchema;
|
|
129
|
+
export const signatureSchema = _signatureSchema as signatureSchema;
|
|
130
|
+
export const treeEntrySchema = _treeEntrySchema as treeEntrySchema;
|
|
131
|
+
|
|
132
|
+
export interface LastCommit extends v.InferInput<typeof lastCommitSchema> {}
|
|
133
|
+
export interface Readme extends v.InferInput<typeof readmeSchema> {}
|
|
134
|
+
export interface Signature extends v.InferInput<typeof signatureSchema> {}
|
|
135
|
+
export interface TreeEntry extends v.InferInput<typeof treeEntrySchema> {}
|
|
136
|
+
|
|
137
|
+
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
138
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
|
|
139
|
+
|
|
140
|
+
declare module '@atcute/lexicons/ambient' {
|
|
141
|
+
interface XRPCQueries {
|
|
142
|
+
'sh.tangled.git.temp.getTree': mainSchema;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
3
|
+
import * as v from '@atcute/lexicons/validations';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.listBranches', {
|
|
6
|
+
params: /*#__PURE__*/ v.object({
|
|
7
|
+
/**
|
|
8
|
+
* Pagination cursor
|
|
9
|
+
*/
|
|
10
|
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
11
|
+
/**
|
|
12
|
+
* Maximum number of branches to return
|
|
13
|
+
* @minimum 1
|
|
14
|
+
* @maximum 100
|
|
15
|
+
* @default 50
|
|
16
|
+
*/
|
|
17
|
+
limit: /*#__PURE__*/ v.optional(
|
|
18
|
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]),
|
|
19
|
+
50,
|
|
20
|
+
),
|
|
21
|
+
/**
|
|
22
|
+
* AT-URI of the repository
|
|
23
|
+
*/
|
|
24
|
+
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
25
|
+
}),
|
|
26
|
+
output: {
|
|
27
|
+
type: 'blob',
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
type main$schematype = typeof _mainSchema;
|
|
32
|
+
|
|
33
|
+
export interface mainSchema extends main$schematype {}
|
|
34
|
+
|
|
35
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
36
|
+
|
|
37
|
+
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
38
|
+
export type $output = v.InferXRPCBodyInput<mainSchema['output']>;
|
|
39
|
+
|
|
40
|
+
declare module '@atcute/lexicons/ambient' {
|
|
41
|
+
interface XRPCQueries {
|
|
42
|
+
'sh.tangled.git.temp.listBranches': mainSchema;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
3
|
+
import * as v from '@atcute/lexicons/validations';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.listCommits', {
|
|
6
|
+
params: /*#__PURE__*/ v.object({
|
|
7
|
+
/**
|
|
8
|
+
* Pagination cursor (commit SHA)
|
|
9
|
+
*/
|
|
10
|
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
11
|
+
/**
|
|
12
|
+
* Maximum number of commits to return
|
|
13
|
+
* @minimum 1
|
|
14
|
+
* @maximum 100
|
|
15
|
+
* @default 50
|
|
16
|
+
*/
|
|
17
|
+
limit: /*#__PURE__*/ v.optional(
|
|
18
|
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]),
|
|
19
|
+
50,
|
|
20
|
+
),
|
|
21
|
+
/**
|
|
22
|
+
* Git reference (branch, tag, or commit SHA)
|
|
23
|
+
*/
|
|
24
|
+
ref: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
25
|
+
/**
|
|
26
|
+
* AT-URI of the repository
|
|
27
|
+
*/
|
|
28
|
+
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
29
|
+
}),
|
|
30
|
+
output: {
|
|
31
|
+
type: 'blob',
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
type main$schematype = typeof _mainSchema;
|
|
36
|
+
|
|
37
|
+
export interface mainSchema extends main$schematype {}
|
|
38
|
+
|
|
39
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
40
|
+
|
|
41
|
+
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
42
|
+
export type $output = v.InferXRPCBodyInput<mainSchema['output']>;
|
|
43
|
+
|
|
44
|
+
declare module '@atcute/lexicons/ambient' {
|
|
45
|
+
interface XRPCQueries {
|
|
46
|
+
'sh.tangled.git.temp.listCommits': mainSchema;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
3
|
+
import * as v from '@atcute/lexicons/validations';
|
|
4
|
+
|
|
5
|
+
const _languageSchema = /*#__PURE__*/ v.object({
|
|
6
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.git.temp.listLanguages#language')),
|
|
7
|
+
/**
|
|
8
|
+
* Hex color code for this language
|
|
9
|
+
*/
|
|
10
|
+
color: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
11
|
+
/**
|
|
12
|
+
* File extensions associated with this language
|
|
13
|
+
*/
|
|
14
|
+
extensions: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())),
|
|
15
|
+
/**
|
|
16
|
+
* Number of files in this language
|
|
17
|
+
*/
|
|
18
|
+
fileCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
|
|
19
|
+
/**
|
|
20
|
+
* Programming language name
|
|
21
|
+
*/
|
|
22
|
+
name: /*#__PURE__*/ v.string(),
|
|
23
|
+
/**
|
|
24
|
+
* Percentage of total codebase (0-100)
|
|
25
|
+
*/
|
|
26
|
+
percentage: /*#__PURE__*/ v.integer(),
|
|
27
|
+
/**
|
|
28
|
+
* Total size of files in this language (bytes)
|
|
29
|
+
*/
|
|
30
|
+
size: /*#__PURE__*/ v.integer(),
|
|
31
|
+
});
|
|
32
|
+
const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.listLanguages', {
|
|
33
|
+
params: /*#__PURE__*/ v.object({
|
|
34
|
+
/**
|
|
35
|
+
* Git reference (branch, tag, or commit SHA)
|
|
36
|
+
* @default "HEAD"
|
|
37
|
+
*/
|
|
38
|
+
ref: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string(), 'HEAD'),
|
|
39
|
+
/**
|
|
40
|
+
* AT-URI of the repository
|
|
41
|
+
*/
|
|
42
|
+
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
43
|
+
}),
|
|
44
|
+
output: {
|
|
45
|
+
type: 'lex',
|
|
46
|
+
schema: /*#__PURE__*/ v.object({
|
|
47
|
+
get languages() {
|
|
48
|
+
return /*#__PURE__*/ v.array(languageSchema);
|
|
49
|
+
},
|
|
50
|
+
/**
|
|
51
|
+
* The git reference used
|
|
52
|
+
*/
|
|
53
|
+
ref: /*#__PURE__*/ v.string(),
|
|
54
|
+
/**
|
|
55
|
+
* Total number of files analyzed
|
|
56
|
+
*/
|
|
57
|
+
totalFiles: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
|
|
58
|
+
/**
|
|
59
|
+
* Total size of all analyzed files in bytes
|
|
60
|
+
*/
|
|
61
|
+
totalSize: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
|
|
62
|
+
}),
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
type language$schematype = typeof _languageSchema;
|
|
67
|
+
type main$schematype = typeof _mainSchema;
|
|
68
|
+
|
|
69
|
+
export interface languageSchema extends language$schematype {}
|
|
70
|
+
export interface mainSchema extends main$schematype {}
|
|
71
|
+
|
|
72
|
+
export const languageSchema = _languageSchema as languageSchema;
|
|
73
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
74
|
+
|
|
75
|
+
export interface Language extends v.InferInput<typeof languageSchema> {}
|
|
76
|
+
|
|
77
|
+
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
78
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
|
|
79
|
+
|
|
80
|
+
declare module '@atcute/lexicons/ambient' {
|
|
81
|
+
interface XRPCQueries {
|
|
82
|
+
'sh.tangled.git.temp.listLanguages': mainSchema;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
3
|
+
import * as v from '@atcute/lexicons/validations';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.listTags', {
|
|
6
|
+
params: /*#__PURE__*/ v.object({
|
|
7
|
+
/**
|
|
8
|
+
* Pagination cursor
|
|
9
|
+
*/
|
|
10
|
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
11
|
+
/**
|
|
12
|
+
* Maximum number of tags to return
|
|
13
|
+
* @minimum 1
|
|
14
|
+
* @maximum 100
|
|
15
|
+
* @default 50
|
|
16
|
+
*/
|
|
17
|
+
limit: /*#__PURE__*/ v.optional(
|
|
18
|
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]),
|
|
19
|
+
50,
|
|
20
|
+
),
|
|
21
|
+
/**
|
|
22
|
+
* AT-URI of the repository
|
|
23
|
+
*/
|
|
24
|
+
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
25
|
+
}),
|
|
26
|
+
output: {
|
|
27
|
+
type: 'blob',
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
type main$schematype = typeof _mainSchema;
|
|
32
|
+
|
|
33
|
+
export interface mainSchema extends main$schematype {}
|
|
34
|
+
|
|
35
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
36
|
+
|
|
37
|
+
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
38
|
+
export type $output = v.InferXRPCBodyInput<mainSchema['output']>;
|
|
39
|
+
|
|
40
|
+
declare module '@atcute/lexicons/ambient' {
|
|
41
|
+
interface XRPCQueries {
|
|
42
|
+
'sh.tangled.git.temp.listTags': mainSchema;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
3
|
+
import * as v from '@atcute/lexicons/validations';
|
|
4
|
+
|
|
5
|
+
import * as ShTangledGitRefUpdate from '../git/refUpdate.ts';
|
|
6
|
+
|
|
7
|
+
const _gitSync1Schema = /*#__PURE__*/ v.object({
|
|
8
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.knot.subscribeRepos#gitSync1')),
|
|
9
|
+
/**
|
|
10
|
+
* Repository DID identifier
|
|
11
|
+
*/
|
|
12
|
+
did: /*#__PURE__*/ v.didString(),
|
|
13
|
+
/**
|
|
14
|
+
* The stream sequence number of this message.
|
|
15
|
+
*/
|
|
16
|
+
seq: /*#__PURE__*/ v.integer(),
|
|
17
|
+
});
|
|
18
|
+
const _gitSync2Schema = /*#__PURE__*/ v.object({
|
|
19
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.knot.subscribeRepos#gitSync2')),
|
|
20
|
+
/**
|
|
21
|
+
* Repository AT-URI identifier
|
|
22
|
+
*/
|
|
23
|
+
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
24
|
+
/**
|
|
25
|
+
* The stream sequence number of this message.
|
|
26
|
+
*/
|
|
27
|
+
seq: /*#__PURE__*/ v.integer(),
|
|
28
|
+
});
|
|
29
|
+
const _identitySchema = /*#__PURE__*/ v.object({
|
|
30
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.knot.subscribeRepos#identity')),
|
|
31
|
+
/**
|
|
32
|
+
* Repository DID identifier
|
|
33
|
+
*/
|
|
34
|
+
did: /*#__PURE__*/ v.didString(),
|
|
35
|
+
/**
|
|
36
|
+
* The stream sequence number of this message.
|
|
37
|
+
*/
|
|
38
|
+
seq: /*#__PURE__*/ v.integer(),
|
|
39
|
+
time: /*#__PURE__*/ v.datetimeString(),
|
|
40
|
+
});
|
|
41
|
+
const _mainSchema = /*#__PURE__*/ v.subscription('sh.tangled.knot.subscribeRepos', {
|
|
42
|
+
params: /*#__PURE__*/ v.object({
|
|
43
|
+
/**
|
|
44
|
+
* The last known event seq number to backfill from.
|
|
45
|
+
*/
|
|
46
|
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
|
|
47
|
+
}),
|
|
48
|
+
get message() {
|
|
49
|
+
return /*#__PURE__*/ v.variant([ShTangledGitRefUpdate.mainSchema, identitySchema]);
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
type gitSync1$schematype = typeof _gitSync1Schema;
|
|
54
|
+
type gitSync2$schematype = typeof _gitSync2Schema;
|
|
55
|
+
type identity$schematype = typeof _identitySchema;
|
|
56
|
+
type main$schematype = typeof _mainSchema;
|
|
57
|
+
|
|
58
|
+
export interface gitSync1Schema extends gitSync1$schematype {}
|
|
59
|
+
export interface gitSync2Schema extends gitSync2$schematype {}
|
|
60
|
+
export interface identitySchema extends identity$schematype {}
|
|
61
|
+
export interface mainSchema extends main$schematype {}
|
|
62
|
+
|
|
63
|
+
export const gitSync1Schema = _gitSync1Schema as gitSync1Schema;
|
|
64
|
+
export const gitSync2Schema = _gitSync2Schema as gitSync2Schema;
|
|
65
|
+
export const identitySchema = _identitySchema as identitySchema;
|
|
66
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
67
|
+
|
|
68
|
+
export interface GitSync1 extends v.InferInput<typeof gitSync1Schema> {}
|
|
69
|
+
export interface GitSync2 extends v.InferInput<typeof gitSync2Schema> {}
|
|
70
|
+
export interface Identity extends v.InferInput<typeof identitySchema> {}
|
|
71
|
+
|
|
72
|
+
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
73
|
+
export type $message = v.InferInput<mainSchema['message']>;
|
|
74
|
+
|
|
75
|
+
declare module '@atcute/lexicons/ambient' {
|
|
76
|
+
interface XRPCSubscriptions {
|
|
77
|
+
'sh.tangled.knot.subscribeRepos': mainSchema;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -77,7 +77,11 @@ const _triggerRepoSchema = /*#__PURE__*/ v.object({
|
|
|
77
77
|
defaultBranch: /*#__PURE__*/ v.string(),
|
|
78
78
|
did: /*#__PURE__*/ v.didString(),
|
|
79
79
|
knot: /*#__PURE__*/ v.string(),
|
|
80
|
-
repo: /*#__PURE__*/ v.string(),
|
|
80
|
+
repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
81
|
+
/**
|
|
82
|
+
* DID of the repo itself
|
|
83
|
+
*/
|
|
84
|
+
repoDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()),
|
|
81
85
|
});
|
|
82
86
|
const _workflowSchema = /*#__PURE__*/ v.object({
|
|
83
87
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.pipeline#workflow')),
|
|
@@ -11,7 +11,7 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
11
11
|
* @accept *\/*
|
|
12
12
|
* @maxSize 52428800
|
|
13
13
|
*/
|
|
14
|
-
artifact: /*#__PURE__*/ v.blob(),
|
|
14
|
+
artifact: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [/*#__PURE__*/ v.blobSize(52428800)]),
|
|
15
15
|
/**
|
|
16
16
|
* time of creation of this artifact
|
|
17
17
|
*/
|
|
@@ -23,7 +23,8 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
23
23
|
/**
|
|
24
24
|
* repo that this artifact is being uploaded to
|
|
25
25
|
*/
|
|
26
|
-
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
26
|
+
repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()),
|
|
27
|
+
repoDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()),
|
|
27
28
|
/**
|
|
28
29
|
* hash of the tag object that this artifact is attached to (only annotated tags are supported)
|
|
29
30
|
* @minLength 20
|
|
@@ -10,7 +10,8 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
10
10
|
/**
|
|
11
11
|
* repo to add this user to
|
|
12
12
|
*/
|
|
13
|
-
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
13
|
+
repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()),
|
|
14
|
+
repoDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()),
|
|
14
15
|
subject: /*#__PURE__*/ v.didString(),
|
|
15
16
|
}),
|
|
16
17
|
);
|
|
@@ -11,6 +11,14 @@ const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.create', {
|
|
|
11
11
|
* Default branch to push to
|
|
12
12
|
*/
|
|
13
13
|
defaultBranch: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
14
|
+
/**
|
|
15
|
+
* Name of the repository
|
|
16
|
+
*/
|
|
17
|
+
name: /*#__PURE__*/ v.string(),
|
|
18
|
+
/**
|
|
19
|
+
* Optional user-provided did:web to use as the repo identity instead of minting a did:plc.
|
|
20
|
+
*/
|
|
21
|
+
repoDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()),
|
|
14
22
|
/**
|
|
15
23
|
* Rkey of the repository record
|
|
16
24
|
*/
|
|
@@ -21,7 +29,12 @@ const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.create', {
|
|
|
21
29
|
source: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
22
30
|
}),
|
|
23
31
|
},
|
|
24
|
-
output:
|
|
32
|
+
output: {
|
|
33
|
+
type: 'lex',
|
|
34
|
+
schema: /*#__PURE__*/ v.object({
|
|
35
|
+
repoDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()),
|
|
36
|
+
}),
|
|
37
|
+
},
|
|
25
38
|
});
|
|
26
39
|
|
|
27
40
|
type main$schematype = typeof _mainSchema;
|
|
@@ -32,6 +45,7 @@ export const mainSchema = _mainSchema as mainSchema;
|
|
|
32
45
|
|
|
33
46
|
export interface $params {}
|
|
34
47
|
export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
|
|
48
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
|
|
35
49
|
|
|
36
50
|
declare module '@atcute/lexicons/ambient' {
|
|
37
51
|
interface XRPCProcedures {
|