@atcute/tangled 1.0.7 → 1.0.9
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/lexicons/index.d.ts +1 -0
- package/dist/lexicons/index.d.ts.map +1 -1
- package/dist/lexicons/index.js +1 -0
- package/dist/lexicons/index.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/actor/profile.d.ts +26 -0
- package/dist/lexicons/types/sh/tangled/actor/profile.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/actor/profile.js +26 -0
- package/dist/lexicons/types/sh/tangled/actor/profile.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/git/refUpdate.d.ts +27 -0
- package/dist/lexicons/types/sh/tangled/git/refUpdate.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/git/refUpdate.js +27 -0
- package/dist/lexicons/types/sh/tangled/git/refUpdate.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/knot/listKeys.d.ts +22 -0
- package/dist/lexicons/types/sh/tangled/knot/listKeys.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/knot/listKeys.js +22 -0
- package/dist/lexicons/types/sh/tangled/knot/listKeys.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/knot/member.d.ts +3 -0
- package/dist/lexicons/types/sh/tangled/knot/member.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/knot/member.js +3 -0
- package/dist/lexicons/types/sh/tangled/knot/member.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/label/definition.d.ts +26 -0
- package/dist/lexicons/types/sh/tangled/label/definition.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/label/definition.js +26 -0
- package/dist/lexicons/types/sh/tangled/label/definition.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/label/op.d.ts +9 -0
- package/dist/lexicons/types/sh/tangled/label/op.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/label/op.js +9 -0
- package/dist/lexicons/types/sh/tangled/label/op.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/pipeline/status.d.ts +18 -0
- package/dist/lexicons/types/sh/tangled/pipeline/status.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/pipeline/status.js +18 -0
- package/dist/lexicons/types/sh/tangled/pipeline/status.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/pipeline.d.ts +12 -0
- package/dist/lexicons/types/sh/tangled/pipeline.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/pipeline.js +12 -0
- package/dist/lexicons/types/sh/tangled/pipeline.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/publicKey.d.ts +10 -0
- package/dist/lexicons/types/sh/tangled/publicKey.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/publicKey.js +10 -0
- package/dist/lexicons/types/sh/tangled/publicKey.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/addSecret.d.ts +8 -0
- package/dist/lexicons/types/sh/tangled/repo/addSecret.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/addSecret.js +8 -0
- package/dist/lexicons/types/sh/tangled/repo/addSecret.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/archive.d.ts +14 -1
- package/dist/lexicons/types/sh/tangled/repo/archive.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/archive.js +15 -1
- package/dist/lexicons/types/sh/tangled/repo/archive.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/artifact.d.ts +19 -0
- package/dist/lexicons/types/sh/tangled/repo/artifact.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/artifact.js +19 -0
- package/dist/lexicons/types/sh/tangled/repo/artifact.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/blob.d.ts +55 -0
- package/dist/lexicons/types/sh/tangled/repo/blob.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/blob.js +55 -0
- package/dist/lexicons/types/sh/tangled/repo/blob.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/branch.d.ts +33 -0
- package/dist/lexicons/types/sh/tangled/repo/branch.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/branch.js +33 -0
- package/dist/lexicons/types/sh/tangled/repo/branch.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/branches.d.ts +12 -0
- package/dist/lexicons/types/sh/tangled/repo/branches.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/branches.js +12 -0
- package/dist/lexicons/types/sh/tangled/repo/branches.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/collaborator.d.ts +3 -0
- package/dist/lexicons/types/sh/tangled/repo/collaborator.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/collaborator.js +3 -0
- package/dist/lexicons/types/sh/tangled/repo/collaborator.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/compare.d.ts +9 -0
- package/dist/lexicons/types/sh/tangled/repo/compare.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/compare.js +9 -0
- package/dist/lexicons/types/sh/tangled/repo/compare.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/create.d.ts +9 -0
- package/dist/lexicons/types/sh/tangled/repo/create.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/create.js +9 -0
- package/dist/lexicons/types/sh/tangled/repo/create.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/delete.d.ts +9 -0
- package/dist/lexicons/types/sh/tangled/repo/delete.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/delete.js +9 -0
- package/dist/lexicons/types/sh/tangled/repo/delete.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/deleteBranch.d.ts +23 -0
- package/dist/lexicons/types/sh/tangled/repo/deleteBranch.d.ts.map +1 -0
- package/dist/lexicons/types/sh/tangled/repo/deleteBranch.js +14 -0
- package/dist/lexicons/types/sh/tangled/repo/deleteBranch.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/repo/diff.d.ts +6 -0
- package/dist/lexicons/types/sh/tangled/repo/diff.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/diff.js +6 -0
- package/dist/lexicons/types/sh/tangled/repo/diff.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/forkStatus.d.ts +18 -0
- package/dist/lexicons/types/sh/tangled/repo/forkStatus.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/forkStatus.js +18 -0
- package/dist/lexicons/types/sh/tangled/repo/forkStatus.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/forkSync.d.ts +12 -0
- package/dist/lexicons/types/sh/tangled/repo/forkSync.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/forkSync.js +12 -0
- package/dist/lexicons/types/sh/tangled/repo/forkSync.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/getDefaultBranch.d.ts +27 -0
- package/dist/lexicons/types/sh/tangled/repo/getDefaultBranch.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/getDefaultBranch.js +27 -0
- package/dist/lexicons/types/sh/tangled/repo/getDefaultBranch.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/hiddenRef.d.ts +18 -0
- package/dist/lexicons/types/sh/tangled/repo/hiddenRef.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/hiddenRef.js +18 -0
- package/dist/lexicons/types/sh/tangled/repo/hiddenRef.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/issue/state.d.ts +4 -0
- package/dist/lexicons/types/sh/tangled/repo/issue/state.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/issue/state.js +4 -0
- package/dist/lexicons/types/sh/tangled/repo/issue/state.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/languages.d.ts +34 -0
- package/dist/lexicons/types/sh/tangled/repo/languages.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/languages.js +34 -0
- package/dist/lexicons/types/sh/tangled/repo/languages.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/listSecrets.d.ts +4 -0
- package/dist/lexicons/types/sh/tangled/repo/listSecrets.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/listSecrets.js +4 -0
- package/dist/lexicons/types/sh/tangled/repo/listSecrets.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/log.d.ts +19 -0
- package/dist/lexicons/types/sh/tangled/repo/log.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/log.js +19 -0
- package/dist/lexicons/types/sh/tangled/repo/log.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/merge.d.ts +24 -0
- package/dist/lexicons/types/sh/tangled/repo/merge.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/merge.js +24 -0
- package/dist/lexicons/types/sh/tangled/repo/merge.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/mergeCheck.d.ts +30 -0
- package/dist/lexicons/types/sh/tangled/repo/mergeCheck.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/mergeCheck.js +30 -0
- package/dist/lexicons/types/sh/tangled/repo/mergeCheck.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/pull/status.d.ts +4 -0
- package/dist/lexicons/types/sh/tangled/repo/pull/status.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/pull/status.js +4 -0
- package/dist/lexicons/types/sh/tangled/repo/pull/status.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/pull.d.ts +4 -0
- package/dist/lexicons/types/sh/tangled/repo/pull.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/pull.js +4 -0
- package/dist/lexicons/types/sh/tangled/repo/pull.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/removeSecret.d.ts +4 -0
- package/dist/lexicons/types/sh/tangled/repo/removeSecret.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/removeSecret.js +4 -0
- package/dist/lexicons/types/sh/tangled/repo/removeSecret.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/tags.d.ts +12 -0
- package/dist/lexicons/types/sh/tangled/repo/tags.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/tags.js +12 -0
- package/dist/lexicons/types/sh/tangled/repo/tags.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/tree.d.ts +64 -0
- package/dist/lexicons/types/sh/tangled/repo/tree.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/tree.js +61 -0
- package/dist/lexicons/types/sh/tangled/repo/tree.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo.d.ts +19 -0
- package/dist/lexicons/types/sh/tangled/repo.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo.js +19 -0
- package/dist/lexicons/types/sh/tangled/repo.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/spindle/member.d.ts +3 -0
- package/dist/lexicons/types/sh/tangled/spindle/member.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/spindle/member.js +3 -0
- package/dist/lexicons/types/sh/tangled/spindle/member.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/string.d.ts +10 -0
- package/dist/lexicons/types/sh/tangled/string.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/string.js +10 -0
- package/dist/lexicons/types/sh/tangled/string.js.map +1 -1
- package/lib/lexicons/index.ts +1 -0
- package/lib/lexicons/types/sh/tangled/actor/profile.ts +26 -0
- package/lib/lexicons/types/sh/tangled/git/refUpdate.ts +27 -0
- package/lib/lexicons/types/sh/tangled/knot/listKeys.ts +22 -0
- package/lib/lexicons/types/sh/tangled/knot/member.ts +3 -0
- package/lib/lexicons/types/sh/tangled/label/definition.ts +26 -0
- package/lib/lexicons/types/sh/tangled/label/op.ts +9 -0
- package/lib/lexicons/types/sh/tangled/pipeline/status.ts +18 -0
- package/lib/lexicons/types/sh/tangled/pipeline.ts +12 -0
- package/lib/lexicons/types/sh/tangled/publicKey.ts +10 -0
- package/lib/lexicons/types/sh/tangled/repo/addSecret.ts +8 -0
- package/lib/lexicons/types/sh/tangled/repo/archive.ts +17 -1
- package/lib/lexicons/types/sh/tangled/repo/artifact.ts +19 -0
- package/lib/lexicons/types/sh/tangled/repo/blob.ts +55 -0
- package/lib/lexicons/types/sh/tangled/repo/branch.ts +33 -0
- package/lib/lexicons/types/sh/tangled/repo/branches.ts +12 -0
- package/lib/lexicons/types/sh/tangled/repo/collaborator.ts +3 -0
- package/lib/lexicons/types/sh/tangled/repo/compare.ts +9 -0
- package/lib/lexicons/types/sh/tangled/repo/create.ts +9 -0
- package/lib/lexicons/types/sh/tangled/repo/delete.ts +9 -0
- package/lib/lexicons/types/sh/tangled/repo/deleteBranch.ts +30 -0
- package/lib/lexicons/types/sh/tangled/repo/diff.ts +6 -0
- package/lib/lexicons/types/sh/tangled/repo/forkStatus.ts +18 -0
- package/lib/lexicons/types/sh/tangled/repo/forkSync.ts +12 -0
- package/lib/lexicons/types/sh/tangled/repo/getDefaultBranch.ts +27 -0
- package/lib/lexicons/types/sh/tangled/repo/hiddenRef.ts +18 -0
- package/lib/lexicons/types/sh/tangled/repo/issue/state.ts +4 -0
- package/lib/lexicons/types/sh/tangled/repo/languages.ts +34 -0
- package/lib/lexicons/types/sh/tangled/repo/listSecrets.ts +4 -0
- package/lib/lexicons/types/sh/tangled/repo/log.ts +19 -0
- package/lib/lexicons/types/sh/tangled/repo/merge.ts +24 -0
- package/lib/lexicons/types/sh/tangled/repo/mergeCheck.ts +30 -0
- package/lib/lexicons/types/sh/tangled/repo/pull/status.ts +4 -0
- package/lib/lexicons/types/sh/tangled/repo/pull.ts +4 -0
- package/lib/lexicons/types/sh/tangled/repo/removeSecret.ts +4 -0
- package/lib/lexicons/types/sh/tangled/repo/tags.ts +12 -0
- package/lib/lexicons/types/sh/tangled/repo/tree.ts +64 -0
- package/lib/lexicons/types/sh/tangled/repo.ts +19 -0
- package/lib/lexicons/types/sh/tangled/spindle/member.ts +3 -0
- package/lib/lexicons/types/sh/tangled/string.ts +10 -0
- package/package.json +3 -3
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.deleteBranch', {
|
|
6
|
+
params: null,
|
|
7
|
+
input: {
|
|
8
|
+
type: 'lex',
|
|
9
|
+
schema: /*#__PURE__*/ v.object({
|
|
10
|
+
branch: /*#__PURE__*/ v.string(),
|
|
11
|
+
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
12
|
+
}),
|
|
13
|
+
},
|
|
14
|
+
output: null,
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
type main$schematype = typeof _mainSchema;
|
|
18
|
+
|
|
19
|
+
export interface mainSchema extends main$schematype {}
|
|
20
|
+
|
|
21
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
22
|
+
|
|
23
|
+
export interface $params {}
|
|
24
|
+
export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
|
|
25
|
+
|
|
26
|
+
declare module '@atcute/lexicons/ambient' {
|
|
27
|
+
interface XRPCProcedures {
|
|
28
|
+
'sh.tangled.repo.deleteBranch': mainSchema;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -4,7 +4,13 @@ import type {} from '@atcute/lexicons/ambient';
|
|
|
4
4
|
|
|
5
5
|
const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.repo.diff', {
|
|
6
6
|
params: /*#__PURE__*/ v.object({
|
|
7
|
+
/**
|
|
8
|
+
* Git reference (branch, tag, or commit SHA)
|
|
9
|
+
*/
|
|
7
10
|
ref: /*#__PURE__*/ v.string(),
|
|
11
|
+
/**
|
|
12
|
+
* Repository identifier in format 'did:plc:.../repoName'
|
|
13
|
+
*/
|
|
8
14
|
repo: /*#__PURE__*/ v.string(),
|
|
9
15
|
}),
|
|
10
16
|
output: {
|
|
@@ -7,16 +7,34 @@ const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.forkStatus', {
|
|
|
7
7
|
input: {
|
|
8
8
|
type: 'lex',
|
|
9
9
|
schema: /*#__PURE__*/ v.object({
|
|
10
|
+
/**
|
|
11
|
+
* Branch to check status for
|
|
12
|
+
*/
|
|
10
13
|
branch: /*#__PURE__*/ v.string(),
|
|
14
|
+
/**
|
|
15
|
+
* DID of the fork owner
|
|
16
|
+
*/
|
|
11
17
|
did: /*#__PURE__*/ v.didString(),
|
|
18
|
+
/**
|
|
19
|
+
* Hidden ref to use for comparison
|
|
20
|
+
*/
|
|
12
21
|
hiddenRef: /*#__PURE__*/ v.string(),
|
|
22
|
+
/**
|
|
23
|
+
* Name of the forked repository
|
|
24
|
+
*/
|
|
13
25
|
name: /*#__PURE__*/ v.string(),
|
|
26
|
+
/**
|
|
27
|
+
* Source repository URL
|
|
28
|
+
*/
|
|
14
29
|
source: /*#__PURE__*/ v.string(),
|
|
15
30
|
}),
|
|
16
31
|
},
|
|
17
32
|
output: {
|
|
18
33
|
type: 'lex',
|
|
19
34
|
schema: /*#__PURE__*/ v.object({
|
|
35
|
+
/**
|
|
36
|
+
* Fork status: 0=UpToDate, 1=FastForwardable, 2=Conflict, 3=MissingBranch
|
|
37
|
+
*/
|
|
20
38
|
status: /*#__PURE__*/ v.integer(),
|
|
21
39
|
}),
|
|
22
40
|
},
|
|
@@ -7,9 +7,21 @@ const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.forkSync', {
|
|
|
7
7
|
input: {
|
|
8
8
|
type: 'lex',
|
|
9
9
|
schema: /*#__PURE__*/ v.object({
|
|
10
|
+
/**
|
|
11
|
+
* Branch to sync
|
|
12
|
+
*/
|
|
10
13
|
branch: /*#__PURE__*/ v.string(),
|
|
14
|
+
/**
|
|
15
|
+
* DID of the fork owner
|
|
16
|
+
*/
|
|
11
17
|
did: /*#__PURE__*/ v.didString(),
|
|
18
|
+
/**
|
|
19
|
+
* Name of the forked repository
|
|
20
|
+
*/
|
|
12
21
|
name: /*#__PURE__*/ v.string(),
|
|
22
|
+
/**
|
|
23
|
+
* AT-URI of the source repository
|
|
24
|
+
*/
|
|
13
25
|
source: /*#__PURE__*/ v.resourceUriString(),
|
|
14
26
|
}),
|
|
15
27
|
},
|
|
@@ -4,6 +4,9 @@ import type {} from '@atcute/lexicons/ambient';
|
|
|
4
4
|
|
|
5
5
|
const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.repo.getDefaultBranch', {
|
|
6
6
|
params: /*#__PURE__*/ v.object({
|
|
7
|
+
/**
|
|
8
|
+
* Repository identifier in format 'did:plc:.../repoName'
|
|
9
|
+
*/
|
|
7
10
|
repo: /*#__PURE__*/ v.string(),
|
|
8
11
|
}),
|
|
9
12
|
output: {
|
|
@@ -12,18 +15,42 @@ const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.repo.getDefaultBranch', {
|
|
|
12
15
|
get author() {
|
|
13
16
|
return /*#__PURE__*/ v.optional(signatureSchema);
|
|
14
17
|
},
|
|
18
|
+
/**
|
|
19
|
+
* Latest commit hash on default branch
|
|
20
|
+
*/
|
|
15
21
|
hash: /*#__PURE__*/ v.string(),
|
|
22
|
+
/**
|
|
23
|
+
* Latest commit message
|
|
24
|
+
*/
|
|
16
25
|
message: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
26
|
+
/**
|
|
27
|
+
* Default branch name
|
|
28
|
+
*/
|
|
17
29
|
name: /*#__PURE__*/ v.string(),
|
|
30
|
+
/**
|
|
31
|
+
* Short commit hash
|
|
32
|
+
*/
|
|
18
33
|
shortHash: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
34
|
+
/**
|
|
35
|
+
* Timestamp of latest commit
|
|
36
|
+
*/
|
|
19
37
|
when: /*#__PURE__*/ v.datetimeString(),
|
|
20
38
|
}),
|
|
21
39
|
},
|
|
22
40
|
});
|
|
23
41
|
const _signatureSchema = /*#__PURE__*/ v.object({
|
|
24
42
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.getDefaultBranch#signature')),
|
|
43
|
+
/**
|
|
44
|
+
* Author email
|
|
45
|
+
*/
|
|
25
46
|
email: /*#__PURE__*/ v.string(),
|
|
47
|
+
/**
|
|
48
|
+
* Author name
|
|
49
|
+
*/
|
|
26
50
|
name: /*#__PURE__*/ v.string(),
|
|
51
|
+
/**
|
|
52
|
+
* Author timestamp
|
|
53
|
+
*/
|
|
27
54
|
when: /*#__PURE__*/ v.datetimeString(),
|
|
28
55
|
});
|
|
29
56
|
|
|
@@ -7,16 +7,34 @@ const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.hiddenRef', {
|
|
|
7
7
|
input: {
|
|
8
8
|
type: 'lex',
|
|
9
9
|
schema: /*#__PURE__*/ v.object({
|
|
10
|
+
/**
|
|
11
|
+
* Fork reference name
|
|
12
|
+
*/
|
|
10
13
|
forkRef: /*#__PURE__*/ v.string(),
|
|
14
|
+
/**
|
|
15
|
+
* Remote reference name
|
|
16
|
+
*/
|
|
11
17
|
remoteRef: /*#__PURE__*/ v.string(),
|
|
18
|
+
/**
|
|
19
|
+
* AT-URI of the repository
|
|
20
|
+
*/
|
|
12
21
|
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
13
22
|
}),
|
|
14
23
|
},
|
|
15
24
|
output: {
|
|
16
25
|
type: 'lex',
|
|
17
26
|
schema: /*#__PURE__*/ v.object({
|
|
27
|
+
/**
|
|
28
|
+
* Error message if creation failed
|
|
29
|
+
*/
|
|
18
30
|
error: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
31
|
+
/**
|
|
32
|
+
* The created hidden ref name
|
|
33
|
+
*/
|
|
19
34
|
ref: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
35
|
+
/**
|
|
36
|
+
* Whether the hidden ref was created successfully
|
|
37
|
+
*/
|
|
20
38
|
success: /*#__PURE__*/ v.boolean(),
|
|
21
39
|
}),
|
|
22
40
|
},
|
|
@@ -7,6 +7,10 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
7
7
|
/*#__PURE__*/ v.object({
|
|
8
8
|
$type: /*#__PURE__*/ v.literal('sh.tangled.repo.issue.state'),
|
|
9
9
|
issue: /*#__PURE__*/ v.resourceUriString(),
|
|
10
|
+
/**
|
|
11
|
+
* state of the issue
|
|
12
|
+
* @default "sh.tangled.repo.issue.state.open"
|
|
13
|
+
*/
|
|
10
14
|
state: /*#__PURE__*/ v.optional(
|
|
11
15
|
/*#__PURE__*/ v.string<
|
|
12
16
|
'sh.tangled.repo.issue.state.closed' | 'sh.tangled.repo.issue.state.open' | (string & {})
|
|
@@ -4,16 +4,41 @@ import type {} from '@atcute/lexicons/ambient';
|
|
|
4
4
|
|
|
5
5
|
const _languageSchema = /*#__PURE__*/ v.object({
|
|
6
6
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.languages#language')),
|
|
7
|
+
/**
|
|
8
|
+
* Hex color code for this language
|
|
9
|
+
*/
|
|
7
10
|
color: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
11
|
+
/**
|
|
12
|
+
* File extensions associated with this language
|
|
13
|
+
*/
|
|
8
14
|
extensions: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())),
|
|
15
|
+
/**
|
|
16
|
+
* Number of files in this language
|
|
17
|
+
*/
|
|
9
18
|
fileCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
|
|
19
|
+
/**
|
|
20
|
+
* Programming language name
|
|
21
|
+
*/
|
|
10
22
|
name: /*#__PURE__*/ v.string(),
|
|
23
|
+
/**
|
|
24
|
+
* Percentage of total codebase (0-100)
|
|
25
|
+
*/
|
|
11
26
|
percentage: /*#__PURE__*/ v.integer(),
|
|
27
|
+
/**
|
|
28
|
+
* Total size of files in this language (bytes)
|
|
29
|
+
*/
|
|
12
30
|
size: /*#__PURE__*/ v.integer(),
|
|
13
31
|
});
|
|
14
32
|
const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.repo.languages', {
|
|
15
33
|
params: /*#__PURE__*/ v.object({
|
|
34
|
+
/**
|
|
35
|
+
* Git reference (branch, tag, or commit SHA)
|
|
36
|
+
* @default "HEAD"
|
|
37
|
+
*/
|
|
16
38
|
ref: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string(), 'HEAD'),
|
|
39
|
+
/**
|
|
40
|
+
* Repository identifier in format 'did:plc:.../repoName'
|
|
41
|
+
*/
|
|
17
42
|
repo: /*#__PURE__*/ v.string(),
|
|
18
43
|
}),
|
|
19
44
|
output: {
|
|
@@ -22,8 +47,17 @@ const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.repo.languages', {
|
|
|
22
47
|
get languages() {
|
|
23
48
|
return /*#__PURE__*/ v.array(languageSchema);
|
|
24
49
|
},
|
|
50
|
+
/**
|
|
51
|
+
* The git reference used
|
|
52
|
+
*/
|
|
25
53
|
ref: /*#__PURE__*/ v.string(),
|
|
54
|
+
/**
|
|
55
|
+
* Total number of files analyzed
|
|
56
|
+
*/
|
|
26
57
|
totalFiles: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
|
|
58
|
+
/**
|
|
59
|
+
* Total size of all analyzed files in bytes
|
|
60
|
+
*/
|
|
27
61
|
totalSize: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
|
|
28
62
|
}),
|
|
29
63
|
},
|
|
@@ -19,6 +19,10 @@ const _secretSchema = /*#__PURE__*/ v.object({
|
|
|
19
19
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.listSecrets#secret')),
|
|
20
20
|
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
21
21
|
createdBy: /*#__PURE__*/ v.didString(),
|
|
22
|
+
/**
|
|
23
|
+
* @minLength 1
|
|
24
|
+
* @maxLength 50
|
|
25
|
+
*/
|
|
22
26
|
key: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 50)]),
|
|
23
27
|
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
24
28
|
});
|
|
@@ -4,13 +4,32 @@ import type {} from '@atcute/lexicons/ambient';
|
|
|
4
4
|
|
|
5
5
|
const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.repo.log', {
|
|
6
6
|
params: /*#__PURE__*/ v.object({
|
|
7
|
+
/**
|
|
8
|
+
* Pagination cursor (commit SHA)
|
|
9
|
+
*/
|
|
7
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
|
+
*/
|
|
8
17
|
limit: /*#__PURE__*/ v.optional(
|
|
9
18
|
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]),
|
|
10
19
|
50,
|
|
11
20
|
),
|
|
21
|
+
/**
|
|
22
|
+
* Path to filter commits by
|
|
23
|
+
* @default ""
|
|
24
|
+
*/
|
|
12
25
|
path: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string(), ''),
|
|
26
|
+
/**
|
|
27
|
+
* Git reference (branch, tag, or commit SHA)
|
|
28
|
+
*/
|
|
13
29
|
ref: /*#__PURE__*/ v.string(),
|
|
30
|
+
/**
|
|
31
|
+
* Repository identifier in format 'did:plc:.../repoName'
|
|
32
|
+
*/
|
|
14
33
|
repo: /*#__PURE__*/ v.string(),
|
|
15
34
|
}),
|
|
16
35
|
output: {
|
|
@@ -7,13 +7,37 @@ const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.merge', {
|
|
|
7
7
|
input: {
|
|
8
8
|
type: 'lex',
|
|
9
9
|
schema: /*#__PURE__*/ v.object({
|
|
10
|
+
/**
|
|
11
|
+
* Author email for the merge commit
|
|
12
|
+
*/
|
|
10
13
|
authorEmail: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
14
|
+
/**
|
|
15
|
+
* Author name for the merge commit
|
|
16
|
+
*/
|
|
11
17
|
authorName: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
18
|
+
/**
|
|
19
|
+
* Target branch to merge into
|
|
20
|
+
*/
|
|
12
21
|
branch: /*#__PURE__*/ v.string(),
|
|
22
|
+
/**
|
|
23
|
+
* Additional commit message body
|
|
24
|
+
*/
|
|
13
25
|
commitBody: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
26
|
+
/**
|
|
27
|
+
* Merge commit message
|
|
28
|
+
*/
|
|
14
29
|
commitMessage: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
30
|
+
/**
|
|
31
|
+
* DID of the repository owner
|
|
32
|
+
*/
|
|
15
33
|
did: /*#__PURE__*/ v.didString(),
|
|
34
|
+
/**
|
|
35
|
+
* Name of the repository
|
|
36
|
+
*/
|
|
16
37
|
name: /*#__PURE__*/ v.string(),
|
|
38
|
+
/**
|
|
39
|
+
* Patch content to merge
|
|
40
|
+
*/
|
|
17
41
|
patch: /*#__PURE__*/ v.string(),
|
|
18
42
|
}),
|
|
19
43
|
},
|
|
@@ -4,7 +4,13 @@ import type {} from '@atcute/lexicons/ambient';
|
|
|
4
4
|
|
|
5
5
|
const _conflictInfoSchema = /*#__PURE__*/ v.object({
|
|
6
6
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.mergeCheck#conflictInfo')),
|
|
7
|
+
/**
|
|
8
|
+
* Name of the conflicted file
|
|
9
|
+
*/
|
|
7
10
|
filename: /*#__PURE__*/ v.string(),
|
|
11
|
+
/**
|
|
12
|
+
* Reason for the conflict
|
|
13
|
+
*/
|
|
8
14
|
reason: /*#__PURE__*/ v.string(),
|
|
9
15
|
});
|
|
10
16
|
const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.mergeCheck', {
|
|
@@ -12,20 +18,44 @@ const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.mergeCheck', {
|
|
|
12
18
|
input: {
|
|
13
19
|
type: 'lex',
|
|
14
20
|
schema: /*#__PURE__*/ v.object({
|
|
21
|
+
/**
|
|
22
|
+
* Target branch to merge into
|
|
23
|
+
*/
|
|
15
24
|
branch: /*#__PURE__*/ v.string(),
|
|
25
|
+
/**
|
|
26
|
+
* DID of the repository owner
|
|
27
|
+
*/
|
|
16
28
|
did: /*#__PURE__*/ v.didString(),
|
|
29
|
+
/**
|
|
30
|
+
* Name of the repository
|
|
31
|
+
*/
|
|
17
32
|
name: /*#__PURE__*/ v.string(),
|
|
33
|
+
/**
|
|
34
|
+
* Patch or pull request to check for merge conflicts
|
|
35
|
+
*/
|
|
18
36
|
patch: /*#__PURE__*/ v.string(),
|
|
19
37
|
}),
|
|
20
38
|
},
|
|
21
39
|
output: {
|
|
22
40
|
type: 'lex',
|
|
23
41
|
schema: /*#__PURE__*/ v.object({
|
|
42
|
+
/**
|
|
43
|
+
* List of files with merge conflicts
|
|
44
|
+
*/
|
|
24
45
|
get conflicts() {
|
|
25
46
|
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(conflictInfoSchema));
|
|
26
47
|
},
|
|
48
|
+
/**
|
|
49
|
+
* Error message if check failed
|
|
50
|
+
*/
|
|
27
51
|
error: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
52
|
+
/**
|
|
53
|
+
* Whether the merge has conflicts
|
|
54
|
+
*/
|
|
28
55
|
is_conflicted: /*#__PURE__*/ v.boolean(),
|
|
56
|
+
/**
|
|
57
|
+
* Additional message about the merge check
|
|
58
|
+
*/
|
|
29
59
|
message: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
30
60
|
}),
|
|
31
61
|
},
|
|
@@ -7,6 +7,10 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
7
7
|
/*#__PURE__*/ v.object({
|
|
8
8
|
$type: /*#__PURE__*/ v.literal('sh.tangled.repo.pull.status'),
|
|
9
9
|
pull: /*#__PURE__*/ v.resourceUriString(),
|
|
10
|
+
/**
|
|
11
|
+
* status of the pull request
|
|
12
|
+
* @default "sh.tangled.repo.pull.status.open"
|
|
13
|
+
*/
|
|
10
14
|
status: /*#__PURE__*/ v.optional(
|
|
11
15
|
/*#__PURE__*/ v.string<
|
|
12
16
|
| 'sh.tangled.repo.pull.status.closed'
|
|
@@ -22,6 +22,10 @@ const _sourceSchema = /*#__PURE__*/ v.object({
|
|
|
22
22
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.pull#source')),
|
|
23
23
|
branch: /*#__PURE__*/ v.string(),
|
|
24
24
|
repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()),
|
|
25
|
+
/**
|
|
26
|
+
* @minLength 40
|
|
27
|
+
* @maxLength 40
|
|
28
|
+
*/
|
|
25
29
|
sha: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(40, 40)]),
|
|
26
30
|
});
|
|
27
31
|
const _targetSchema = /*#__PURE__*/ v.object({
|
|
@@ -7,6 +7,10 @@ const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.removeSecret', {
|
|
|
7
7
|
input: {
|
|
8
8
|
type: 'lex',
|
|
9
9
|
schema: /*#__PURE__*/ v.object({
|
|
10
|
+
/**
|
|
11
|
+
* @minLength 1
|
|
12
|
+
* @maxLength 50
|
|
13
|
+
*/
|
|
10
14
|
key: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 50)]),
|
|
11
15
|
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
12
16
|
}),
|
|
@@ -4,11 +4,23 @@ import type {} from '@atcute/lexicons/ambient';
|
|
|
4
4
|
|
|
5
5
|
const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.repo.tags', {
|
|
6
6
|
params: /*#__PURE__*/ v.object({
|
|
7
|
+
/**
|
|
8
|
+
* Pagination cursor
|
|
9
|
+
*/
|
|
7
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
|
+
*/
|
|
8
17
|
limit: /*#__PURE__*/ v.optional(
|
|
9
18
|
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]),
|
|
10
19
|
50,
|
|
11
20
|
),
|
|
21
|
+
/**
|
|
22
|
+
* Repository identifier in format 'did:plc:.../repoName'
|
|
23
|
+
*/
|
|
12
24
|
repo: /*#__PURE__*/ v.string(),
|
|
13
25
|
}),
|
|
14
26
|
output: {
|
|
@@ -4,53 +4,117 @@ import type {} from '@atcute/lexicons/ambient';
|
|
|
4
4
|
|
|
5
5
|
const _lastCommitSchema = /*#__PURE__*/ v.object({
|
|
6
6
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.tree#lastCommit')),
|
|
7
|
+
/**
|
|
8
|
+
* Commit hash
|
|
9
|
+
*/
|
|
7
10
|
hash: /*#__PURE__*/ v.string(),
|
|
11
|
+
/**
|
|
12
|
+
* Commit message
|
|
13
|
+
*/
|
|
8
14
|
message: /*#__PURE__*/ v.string(),
|
|
15
|
+
/**
|
|
16
|
+
* Commit timestamp
|
|
17
|
+
*/
|
|
9
18
|
when: /*#__PURE__*/ v.datetimeString(),
|
|
10
19
|
});
|
|
11
20
|
const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.repo.tree', {
|
|
12
21
|
params: /*#__PURE__*/ v.object({
|
|
22
|
+
/**
|
|
23
|
+
* Path within the repository tree
|
|
24
|
+
* @default ""
|
|
25
|
+
*/
|
|
13
26
|
path: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string(), ''),
|
|
27
|
+
/**
|
|
28
|
+
* Git reference (branch, tag, or commit SHA)
|
|
29
|
+
*/
|
|
14
30
|
ref: /*#__PURE__*/ v.string(),
|
|
31
|
+
/**
|
|
32
|
+
* Repository identifier in format 'did:plc:.../repoName'
|
|
33
|
+
*/
|
|
15
34
|
repo: /*#__PURE__*/ v.string(),
|
|
16
35
|
}),
|
|
17
36
|
output: {
|
|
18
37
|
type: 'lex',
|
|
19
38
|
schema: /*#__PURE__*/ v.object({
|
|
39
|
+
/**
|
|
40
|
+
* Parent directory path
|
|
41
|
+
*/
|
|
20
42
|
dotdot: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
21
43
|
get files() {
|
|
22
44
|
return /*#__PURE__*/ v.array(treeEntrySchema);
|
|
23
45
|
},
|
|
46
|
+
/**
|
|
47
|
+
* The parent path in the tree
|
|
48
|
+
*/
|
|
24
49
|
parent: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
50
|
+
/**
|
|
51
|
+
* Readme for this file tree
|
|
52
|
+
*/
|
|
53
|
+
get readme() {
|
|
54
|
+
return /*#__PURE__*/ v.optional(readmeSchema);
|
|
55
|
+
},
|
|
56
|
+
/**
|
|
57
|
+
* The git reference used
|
|
58
|
+
*/
|
|
25
59
|
ref: /*#__PURE__*/ v.string(),
|
|
26
60
|
}),
|
|
27
61
|
},
|
|
28
62
|
});
|
|
63
|
+
const _readmeSchema = /*#__PURE__*/ v.object({
|
|
64
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.tree#readme')),
|
|
65
|
+
/**
|
|
66
|
+
* Contents of the readme file
|
|
67
|
+
*/
|
|
68
|
+
contents: /*#__PURE__*/ v.string(),
|
|
69
|
+
/**
|
|
70
|
+
* Name of the readme file
|
|
71
|
+
*/
|
|
72
|
+
filename: /*#__PURE__*/ v.string(),
|
|
73
|
+
});
|
|
29
74
|
const _treeEntrySchema = /*#__PURE__*/ v.object({
|
|
30
75
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.tree#treeEntry')),
|
|
76
|
+
/**
|
|
77
|
+
* Whether this entry is a file
|
|
78
|
+
*/
|
|
31
79
|
is_file: /*#__PURE__*/ v.boolean(),
|
|
80
|
+
/**
|
|
81
|
+
* Whether this entry is a directory/subtree
|
|
82
|
+
*/
|
|
32
83
|
is_subtree: /*#__PURE__*/ v.boolean(),
|
|
33
84
|
get last_commit() {
|
|
34
85
|
return /*#__PURE__*/ v.optional(lastCommitSchema);
|
|
35
86
|
},
|
|
87
|
+
/**
|
|
88
|
+
* File mode
|
|
89
|
+
*/
|
|
36
90
|
mode: /*#__PURE__*/ v.string(),
|
|
91
|
+
/**
|
|
92
|
+
* Relative file or directory name
|
|
93
|
+
*/
|
|
37
94
|
name: /*#__PURE__*/ v.string(),
|
|
95
|
+
/**
|
|
96
|
+
* File size in bytes
|
|
97
|
+
*/
|
|
38
98
|
size: /*#__PURE__*/ v.integer(),
|
|
39
99
|
});
|
|
40
100
|
|
|
41
101
|
type lastCommit$schematype = typeof _lastCommitSchema;
|
|
42
102
|
type main$schematype = typeof _mainSchema;
|
|
103
|
+
type readme$schematype = typeof _readmeSchema;
|
|
43
104
|
type treeEntry$schematype = typeof _treeEntrySchema;
|
|
44
105
|
|
|
45
106
|
export interface lastCommitSchema extends lastCommit$schematype {}
|
|
46
107
|
export interface mainSchema extends main$schematype {}
|
|
108
|
+
export interface readmeSchema extends readme$schematype {}
|
|
47
109
|
export interface treeEntrySchema extends treeEntry$schematype {}
|
|
48
110
|
|
|
49
111
|
export const lastCommitSchema = _lastCommitSchema as lastCommitSchema;
|
|
50
112
|
export const mainSchema = _mainSchema as mainSchema;
|
|
113
|
+
export const readmeSchema = _readmeSchema as readmeSchema;
|
|
51
114
|
export const treeEntrySchema = _treeEntrySchema as treeEntrySchema;
|
|
52
115
|
|
|
53
116
|
export interface LastCommit extends v.InferInput<typeof lastCommitSchema> {}
|
|
117
|
+
export interface Readme extends v.InferInput<typeof readmeSchema> {}
|
|
54
118
|
export interface TreeEntry extends v.InferInput<typeof treeEntrySchema> {}
|
|
55
119
|
|
|
56
120
|
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
@@ -7,13 +7,32 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
7
7
|
/*#__PURE__*/ v.object({
|
|
8
8
|
$type: /*#__PURE__*/ v.literal('sh.tangled.repo'),
|
|
9
9
|
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
10
|
+
/**
|
|
11
|
+
* @minGraphemes 1
|
|
12
|
+
* @maxGraphemes 140
|
|
13
|
+
*/
|
|
10
14
|
description: /*#__PURE__*/ v.optional(
|
|
11
15
|
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringGraphemes(1, 140)]),
|
|
12
16
|
),
|
|
17
|
+
/**
|
|
18
|
+
* knot where the repo was created
|
|
19
|
+
*/
|
|
13
20
|
knot: /*#__PURE__*/ v.string(),
|
|
21
|
+
/**
|
|
22
|
+
* List of labels that this repo subscribes to
|
|
23
|
+
*/
|
|
14
24
|
labels: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString())),
|
|
25
|
+
/**
|
|
26
|
+
* name of the repo
|
|
27
|
+
*/
|
|
15
28
|
name: /*#__PURE__*/ v.string(),
|
|
29
|
+
/**
|
|
30
|
+
* source of the repo
|
|
31
|
+
*/
|
|
16
32
|
source: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()),
|
|
33
|
+
/**
|
|
34
|
+
* CI runner to send jobs to and receive results from
|
|
35
|
+
*/
|
|
17
36
|
spindle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
18
37
|
}),
|
|
19
38
|
);
|
|
@@ -7,6 +7,9 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
7
7
|
/*#__PURE__*/ v.object({
|
|
8
8
|
$type: /*#__PURE__*/ v.literal('sh.tangled.spindle.member'),
|
|
9
9
|
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
10
|
+
/**
|
|
11
|
+
* spindle instance that the subject is now a member of
|
|
12
|
+
*/
|
|
10
13
|
instance: /*#__PURE__*/ v.string(),
|
|
11
14
|
subject: /*#__PURE__*/ v.didString(),
|
|
12
15
|
}),
|
|
@@ -6,11 +6,21 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
6
6
|
/*#__PURE__*/ v.tidString(),
|
|
7
7
|
/*#__PURE__*/ v.object({
|
|
8
8
|
$type: /*#__PURE__*/ v.literal('sh.tangled.string'),
|
|
9
|
+
/**
|
|
10
|
+
* @minGraphemes 1
|
|
11
|
+
*/
|
|
9
12
|
contents: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringGraphemes(1)]),
|
|
10
13
|
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
14
|
+
/**
|
|
15
|
+
* @maxGraphemes 280
|
|
16
|
+
*/
|
|
11
17
|
description: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
12
18
|
/*#__PURE__*/ v.stringGraphemes(0, 280),
|
|
13
19
|
]),
|
|
20
|
+
/**
|
|
21
|
+
* @minGraphemes 1
|
|
22
|
+
* @maxGraphemes 140
|
|
23
|
+
*/
|
|
14
24
|
filename: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringGraphemes(1, 140)]),
|
|
15
25
|
}),
|
|
16
26
|
);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@atcute/tangled",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.9",
|
|
5
5
|
"description": "Tangled (sh.tangled.*) schema definitions",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"atcute",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"./types/*": "./dist/lexicons/types/sh/tangled/*.js"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atcute/atproto": "^3.1.
|
|
27
|
+
"@atcute/atproto": "^3.1.7",
|
|
28
28
|
"@atcute/lexicons": "^1.2.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@atcute/tangled": "file:",
|
|
32
32
|
"vitest": "^3.2.4",
|
|
33
|
-
"@atcute/lex-cli": "^2.2.
|
|
33
|
+
"@atcute/lex-cli": "^2.2.2"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsc",
|