@atcute/tangled 1.0.7 → 1.0.8
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/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/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 +43 -0
- package/dist/lexicons/types/sh/tangled/repo/tree.d.ts.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/tree.js +43 -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/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/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 +43 -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
|
@@ -7,6 +7,9 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
7
7
|
/*#__PURE__*/ v.object({
|
|
8
8
|
$type: /*#__PURE__*/ v.literal('sh.tangled.knot.member'),
|
|
9
9
|
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
10
|
+
/**
|
|
11
|
+
* domain that this member now belongs to
|
|
12
|
+
*/
|
|
10
13
|
domain: /*#__PURE__*/ v.string(),
|
|
11
14
|
subject: /*#__PURE__*/ v.didString(),
|
|
12
15
|
}),
|
|
@@ -6,11 +6,28 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
6
6
|
/*#__PURE__*/ v.string(),
|
|
7
7
|
/*#__PURE__*/ v.object({
|
|
8
8
|
$type: /*#__PURE__*/ v.literal('sh.tangled.label.definition'),
|
|
9
|
+
/**
|
|
10
|
+
* The hex value for the background color for the label. Appviews may choose to respect this.
|
|
11
|
+
*/
|
|
9
12
|
color: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
10
13
|
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
14
|
+
/**
|
|
15
|
+
* Whether this label can be repeated for a given entity, eg.: [reviewer:foo, reviewer:bar]
|
|
16
|
+
*/
|
|
11
17
|
multiple: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
18
|
+
/**
|
|
19
|
+
* The display name of this label.
|
|
20
|
+
* @minGraphemes 1
|
|
21
|
+
* @maxGraphemes 40
|
|
22
|
+
*/
|
|
12
23
|
name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringGraphemes(1, 40)]),
|
|
24
|
+
/**
|
|
25
|
+
* The areas of the repo this label may apply to, eg.: sh.tangled.repo.issue. Appviews may choose to respect this.
|
|
26
|
+
*/
|
|
13
27
|
scope: /*#__PURE__*/ v.array(/*#__PURE__*/ v.nsidString()),
|
|
28
|
+
/**
|
|
29
|
+
* The type definition of this label. Appviews may allow sorting for certain types.
|
|
30
|
+
*/
|
|
14
31
|
get valueType() {
|
|
15
32
|
return valueTypeSchema;
|
|
16
33
|
},
|
|
@@ -18,8 +35,17 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
18
35
|
);
|
|
19
36
|
const _valueTypeSchema = /*#__PURE__*/ v.object({
|
|
20
37
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.label.definition#valueType')),
|
|
38
|
+
/**
|
|
39
|
+
* Closed set of values that this label can take.
|
|
40
|
+
*/
|
|
21
41
|
enum: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())),
|
|
42
|
+
/**
|
|
43
|
+
* An optional constraint that can be applied on string concrete types.
|
|
44
|
+
*/
|
|
22
45
|
format: /*#__PURE__*/ v.literalEnum(['any', 'did', 'nsid']),
|
|
46
|
+
/**
|
|
47
|
+
* The concrete type of this label's value.
|
|
48
|
+
*/
|
|
23
49
|
type: /*#__PURE__*/ v.literalEnum(['boolean', 'integer', 'null', 'string']),
|
|
24
50
|
});
|
|
25
51
|
|
|
@@ -13,12 +13,21 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
13
13
|
return /*#__PURE__*/ v.array(operandSchema);
|
|
14
14
|
},
|
|
15
15
|
performedAt: /*#__PURE__*/ v.datetimeString(),
|
|
16
|
+
/**
|
|
17
|
+
* The subject (task, pull or discussion) of this label. Appviews may apply a `scope` check and refuse this op.
|
|
18
|
+
*/
|
|
16
19
|
subject: /*#__PURE__*/ v.resourceUriString(),
|
|
17
20
|
}),
|
|
18
21
|
);
|
|
19
22
|
const _operandSchema = /*#__PURE__*/ v.object({
|
|
20
23
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.label.op#operand')),
|
|
24
|
+
/**
|
|
25
|
+
* ATURI to the label definition
|
|
26
|
+
*/
|
|
21
27
|
key: /*#__PURE__*/ v.resourceUriString(),
|
|
28
|
+
/**
|
|
29
|
+
* Stringified value of the label. This is first unstringed by appviews and then interpreted as a concrete value.
|
|
30
|
+
*/
|
|
22
31
|
value: /*#__PURE__*/ v.string(),
|
|
23
32
|
});
|
|
24
33
|
|
|
@@ -6,11 +6,29 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
6
6
|
/*#__PURE__*/ v.tidString(),
|
|
7
7
|
/*#__PURE__*/ v.object({
|
|
8
8
|
$type: /*#__PURE__*/ v.literal('sh.tangled.pipeline.status'),
|
|
9
|
+
/**
|
|
10
|
+
* time of creation of this status update
|
|
11
|
+
*/
|
|
9
12
|
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
13
|
+
/**
|
|
14
|
+
* error message if failed
|
|
15
|
+
*/
|
|
10
16
|
error: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
17
|
+
/**
|
|
18
|
+
* exit code if failed
|
|
19
|
+
*/
|
|
11
20
|
exitCode: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
|
|
21
|
+
/**
|
|
22
|
+
* ATURI of the pipeline
|
|
23
|
+
*/
|
|
12
24
|
pipeline: /*#__PURE__*/ v.resourceUriString(),
|
|
25
|
+
/**
|
|
26
|
+
* status of the workflow
|
|
27
|
+
*/
|
|
13
28
|
status: /*#__PURE__*/ v.literalEnum(['cancelled', 'failed', 'pending', 'running', 'success', 'timeout']),
|
|
29
|
+
/**
|
|
30
|
+
* name of the workflow within this pipeline
|
|
31
|
+
*/
|
|
14
32
|
workflow: /*#__PURE__*/ v.resourceUriString(),
|
|
15
33
|
}),
|
|
16
34
|
);
|
|
@@ -35,12 +35,24 @@ const _pullRequestTriggerDataSchema = /*#__PURE__*/ v.object({
|
|
|
35
35
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.pipeline#pullRequestTriggerData')),
|
|
36
36
|
action: /*#__PURE__*/ v.string(),
|
|
37
37
|
sourceBranch: /*#__PURE__*/ v.string(),
|
|
38
|
+
/**
|
|
39
|
+
* @minLength 40
|
|
40
|
+
* @maxLength 40
|
|
41
|
+
*/
|
|
38
42
|
sourceSha: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(40, 40)]),
|
|
39
43
|
targetBranch: /*#__PURE__*/ v.string(),
|
|
40
44
|
});
|
|
41
45
|
const _pushTriggerDataSchema = /*#__PURE__*/ v.object({
|
|
42
46
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.pipeline#pushTriggerData')),
|
|
47
|
+
/**
|
|
48
|
+
* @minLength 40
|
|
49
|
+
* @maxLength 40
|
|
50
|
+
*/
|
|
43
51
|
newSha: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(40, 40)]),
|
|
52
|
+
/**
|
|
53
|
+
* @minLength 40
|
|
54
|
+
* @maxLength 40
|
|
55
|
+
*/
|
|
44
56
|
oldSha: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(40, 40)]),
|
|
45
57
|
ref: /*#__PURE__*/ v.string(),
|
|
46
58
|
});
|
|
@@ -6,8 +6,18 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
6
6
|
/*#__PURE__*/ v.tidString(),
|
|
7
7
|
/*#__PURE__*/ v.object({
|
|
8
8
|
$type: /*#__PURE__*/ v.literal('sh.tangled.publicKey'),
|
|
9
|
+
/**
|
|
10
|
+
* key upload timestamp
|
|
11
|
+
*/
|
|
9
12
|
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
13
|
+
/**
|
|
14
|
+
* public key contents
|
|
15
|
+
* @maxLength 4096
|
|
16
|
+
*/
|
|
10
17
|
key: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 4096)]),
|
|
18
|
+
/**
|
|
19
|
+
* human-readable name for this key
|
|
20
|
+
*/
|
|
11
21
|
name: /*#__PURE__*/ v.string(),
|
|
12
22
|
}),
|
|
13
23
|
);
|
|
@@ -7,8 +7,16 @@ const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.addSecret', {
|
|
|
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(),
|
|
16
|
+
/**
|
|
17
|
+
* @minLength 1
|
|
18
|
+
* @maxLength 200
|
|
19
|
+
*/
|
|
12
20
|
value: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 200)]),
|
|
13
21
|
}),
|
|
14
22
|
},
|
|
@@ -4,9 +4,25 @@ import type {} from '@atcute/lexicons/ambient';
|
|
|
4
4
|
|
|
5
5
|
const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.repo.archive', {
|
|
6
6
|
params: /*#__PURE__*/ v.object({
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Archive format
|
|
9
|
+
* @default "tar.gz"
|
|
10
|
+
*/
|
|
11
|
+
format: /*#__PURE__*/ v.optional(
|
|
12
|
+
/*#__PURE__*/ v.literalEnum(['tar', 'tar.bz2', 'tar.gz', 'tar.xz', 'zip']),
|
|
13
|
+
'tar.gz',
|
|
14
|
+
),
|
|
15
|
+
/**
|
|
16
|
+
* Prefix for files in the archive
|
|
17
|
+
*/
|
|
8
18
|
prefix: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
19
|
+
/**
|
|
20
|
+
* Git reference (branch, tag, or commit SHA)
|
|
21
|
+
*/
|
|
9
22
|
ref: /*#__PURE__*/ v.string(),
|
|
23
|
+
/**
|
|
24
|
+
* Repository identifier in format 'did:plc:.../repoName'
|
|
25
|
+
*/
|
|
10
26
|
repo: /*#__PURE__*/ v.string(),
|
|
11
27
|
}),
|
|
12
28
|
output: {
|
|
@@ -6,10 +6,29 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
6
6
|
/*#__PURE__*/ v.tidString(),
|
|
7
7
|
/*#__PURE__*/ v.object({
|
|
8
8
|
$type: /*#__PURE__*/ v.literal('sh.tangled.repo.artifact'),
|
|
9
|
+
/**
|
|
10
|
+
* the artifact
|
|
11
|
+
* @accept *\/*
|
|
12
|
+
* @maxSize 52428800
|
|
13
|
+
*/
|
|
9
14
|
artifact: /*#__PURE__*/ v.blob(),
|
|
15
|
+
/**
|
|
16
|
+
* time of creation of this artifact
|
|
17
|
+
*/
|
|
10
18
|
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
19
|
+
/**
|
|
20
|
+
* name of the artifact
|
|
21
|
+
*/
|
|
11
22
|
name: /*#__PURE__*/ v.string(),
|
|
23
|
+
/**
|
|
24
|
+
* repo that this artifact is being uploaded to
|
|
25
|
+
*/
|
|
12
26
|
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
27
|
+
/**
|
|
28
|
+
* hash of the tag object that this artifact is attached to (only annotated tags are supported)
|
|
29
|
+
* @minLength 20
|
|
30
|
+
* @maxLength 20
|
|
31
|
+
*/
|
|
13
32
|
tag: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.bytes(), [/*#__PURE__*/ v.bytesSize(20, 20)]),
|
|
14
33
|
}),
|
|
15
34
|
);
|
|
@@ -7,38 +7,93 @@ const _lastCommitSchema = /*#__PURE__*/ v.object({
|
|
|
7
7
|
get author() {
|
|
8
8
|
return /*#__PURE__*/ v.optional(signatureSchema);
|
|
9
9
|
},
|
|
10
|
+
/**
|
|
11
|
+
* Commit hash
|
|
12
|
+
*/
|
|
10
13
|
hash: /*#__PURE__*/ v.string(),
|
|
14
|
+
/**
|
|
15
|
+
* Commit message
|
|
16
|
+
*/
|
|
11
17
|
message: /*#__PURE__*/ v.string(),
|
|
18
|
+
/**
|
|
19
|
+
* Short commit hash
|
|
20
|
+
*/
|
|
12
21
|
shortHash: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
22
|
+
/**
|
|
23
|
+
* Commit timestamp
|
|
24
|
+
*/
|
|
13
25
|
when: /*#__PURE__*/ v.datetimeString(),
|
|
14
26
|
});
|
|
15
27
|
const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.repo.blob', {
|
|
16
28
|
params: /*#__PURE__*/ v.object({
|
|
29
|
+
/**
|
|
30
|
+
* Path to the file within the repository
|
|
31
|
+
*/
|
|
17
32
|
path: /*#__PURE__*/ v.string(),
|
|
33
|
+
/**
|
|
34
|
+
* Return raw file content instead of JSON response
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
18
37
|
raw: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false),
|
|
38
|
+
/**
|
|
39
|
+
* Git reference (branch, tag, or commit SHA)
|
|
40
|
+
*/
|
|
19
41
|
ref: /*#__PURE__*/ v.string(),
|
|
42
|
+
/**
|
|
43
|
+
* Repository identifier in format 'did:plc:.../repoName'
|
|
44
|
+
*/
|
|
20
45
|
repo: /*#__PURE__*/ v.string(),
|
|
21
46
|
}),
|
|
22
47
|
output: {
|
|
23
48
|
type: 'lex',
|
|
24
49
|
schema: /*#__PURE__*/ v.object({
|
|
50
|
+
/**
|
|
51
|
+
* File content (base64 encoded for binary files)
|
|
52
|
+
*/
|
|
25
53
|
content: /*#__PURE__*/ v.string(),
|
|
54
|
+
/**
|
|
55
|
+
* Content encoding
|
|
56
|
+
*/
|
|
26
57
|
encoding: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literalEnum(['base64', 'utf-8'])),
|
|
58
|
+
/**
|
|
59
|
+
* Whether the file is binary
|
|
60
|
+
*/
|
|
27
61
|
isBinary: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
28
62
|
get lastCommit() {
|
|
29
63
|
return /*#__PURE__*/ v.optional(lastCommitSchema);
|
|
30
64
|
},
|
|
65
|
+
/**
|
|
66
|
+
* MIME type of the file
|
|
67
|
+
*/
|
|
31
68
|
mimeType: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
69
|
+
/**
|
|
70
|
+
* The file path
|
|
71
|
+
*/
|
|
32
72
|
path: /*#__PURE__*/ v.string(),
|
|
73
|
+
/**
|
|
74
|
+
* The git reference used
|
|
75
|
+
*/
|
|
33
76
|
ref: /*#__PURE__*/ v.string(),
|
|
77
|
+
/**
|
|
78
|
+
* File size in bytes
|
|
79
|
+
*/
|
|
34
80
|
size: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
|
|
35
81
|
}),
|
|
36
82
|
},
|
|
37
83
|
});
|
|
38
84
|
const _signatureSchema = /*#__PURE__*/ v.object({
|
|
39
85
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.blob#signature')),
|
|
86
|
+
/**
|
|
87
|
+
* Author email
|
|
88
|
+
*/
|
|
40
89
|
email: /*#__PURE__*/ v.string(),
|
|
90
|
+
/**
|
|
91
|
+
* Author name
|
|
92
|
+
*/
|
|
41
93
|
name: /*#__PURE__*/ v.string(),
|
|
94
|
+
/**
|
|
95
|
+
* Author timestamp
|
|
96
|
+
*/
|
|
42
97
|
when: /*#__PURE__*/ v.datetimeString(),
|
|
43
98
|
});
|
|
44
99
|
|
|
@@ -4,7 +4,13 @@ import type {} from '@atcute/lexicons/ambient';
|
|
|
4
4
|
|
|
5
5
|
const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.repo.branch', {
|
|
6
6
|
params: /*#__PURE__*/ v.object({
|
|
7
|
+
/**
|
|
8
|
+
* Branch name to get information for
|
|
9
|
+
*/
|
|
7
10
|
name: /*#__PURE__*/ v.string(),
|
|
11
|
+
/**
|
|
12
|
+
* Repository identifier in format 'did:plc:.../repoName'
|
|
13
|
+
*/
|
|
8
14
|
repo: /*#__PURE__*/ v.string(),
|
|
9
15
|
}),
|
|
10
16
|
output: {
|
|
@@ -13,19 +19,46 @@ const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.repo.branch', {
|
|
|
13
19
|
get author() {
|
|
14
20
|
return /*#__PURE__*/ v.optional(signatureSchema);
|
|
15
21
|
},
|
|
22
|
+
/**
|
|
23
|
+
* Latest commit hash on this branch
|
|
24
|
+
*/
|
|
16
25
|
hash: /*#__PURE__*/ v.string(),
|
|
26
|
+
/**
|
|
27
|
+
* Whether this is the default branch
|
|
28
|
+
*/
|
|
17
29
|
isDefault: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
30
|
+
/**
|
|
31
|
+
* Latest commit message
|
|
32
|
+
*/
|
|
18
33
|
message: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
34
|
+
/**
|
|
35
|
+
* Branch name
|
|
36
|
+
*/
|
|
19
37
|
name: /*#__PURE__*/ v.string(),
|
|
38
|
+
/**
|
|
39
|
+
* Short commit hash
|
|
40
|
+
*/
|
|
20
41
|
shortHash: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
42
|
+
/**
|
|
43
|
+
* Timestamp of latest commit
|
|
44
|
+
*/
|
|
21
45
|
when: /*#__PURE__*/ v.datetimeString(),
|
|
22
46
|
}),
|
|
23
47
|
},
|
|
24
48
|
});
|
|
25
49
|
const _signatureSchema = /*#__PURE__*/ v.object({
|
|
26
50
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.branch#signature')),
|
|
51
|
+
/**
|
|
52
|
+
* Author email
|
|
53
|
+
*/
|
|
27
54
|
email: /*#__PURE__*/ v.string(),
|
|
55
|
+
/**
|
|
56
|
+
* Author name
|
|
57
|
+
*/
|
|
28
58
|
name: /*#__PURE__*/ v.string(),
|
|
59
|
+
/**
|
|
60
|
+
* Author timestamp
|
|
61
|
+
*/
|
|
29
62
|
when: /*#__PURE__*/ v.datetimeString(),
|
|
30
63
|
});
|
|
31
64
|
|
|
@@ -4,11 +4,23 @@ import type {} from '@atcute/lexicons/ambient';
|
|
|
4
4
|
|
|
5
5
|
const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.repo.branches', {
|
|
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 branches 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: {
|
|
@@ -7,6 +7,9 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
7
7
|
/*#__PURE__*/ v.object({
|
|
8
8
|
$type: /*#__PURE__*/ v.literal('sh.tangled.repo.collaborator'),
|
|
9
9
|
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
10
|
+
/**
|
|
11
|
+
* repo to add this user to
|
|
12
|
+
*/
|
|
10
13
|
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
11
14
|
subject: /*#__PURE__*/ v.didString(),
|
|
12
15
|
}),
|
|
@@ -4,8 +4,17 @@ import type {} from '@atcute/lexicons/ambient';
|
|
|
4
4
|
|
|
5
5
|
const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.repo.compare', {
|
|
6
6
|
params: /*#__PURE__*/ v.object({
|
|
7
|
+
/**
|
|
8
|
+
* Repository identifier in format 'did:plc:.../repoName'
|
|
9
|
+
*/
|
|
7
10
|
repo: /*#__PURE__*/ v.string(),
|
|
11
|
+
/**
|
|
12
|
+
* First revision (commit, branch, or tag)
|
|
13
|
+
*/
|
|
8
14
|
rev1: /*#__PURE__*/ v.string(),
|
|
15
|
+
/**
|
|
16
|
+
* Second revision (commit, branch, or tag)
|
|
17
|
+
*/
|
|
9
18
|
rev2: /*#__PURE__*/ v.string(),
|
|
10
19
|
}),
|
|
11
20
|
output: {
|
|
@@ -7,8 +7,17 @@ const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.create', {
|
|
|
7
7
|
input: {
|
|
8
8
|
type: 'lex',
|
|
9
9
|
schema: /*#__PURE__*/ v.object({
|
|
10
|
+
/**
|
|
11
|
+
* Default branch to push to
|
|
12
|
+
*/
|
|
10
13
|
defaultBranch: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
14
|
+
/**
|
|
15
|
+
* Rkey of the repository record
|
|
16
|
+
*/
|
|
11
17
|
rkey: /*#__PURE__*/ v.string(),
|
|
18
|
+
/**
|
|
19
|
+
* A source URL to clone from, populate this when forking or importing a repository.
|
|
20
|
+
*/
|
|
12
21
|
source: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
13
22
|
}),
|
|
14
23
|
},
|
|
@@ -7,8 +7,17 @@ const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.delete', {
|
|
|
7
7
|
input: {
|
|
8
8
|
type: 'lex',
|
|
9
9
|
schema: /*#__PURE__*/ v.object({
|
|
10
|
+
/**
|
|
11
|
+
* DID of the repository owner
|
|
12
|
+
*/
|
|
10
13
|
did: /*#__PURE__*/ v.didString(),
|
|
14
|
+
/**
|
|
15
|
+
* Name of the repository to delete
|
|
16
|
+
*/
|
|
11
17
|
name: /*#__PURE__*/ v.string(),
|
|
18
|
+
/**
|
|
19
|
+
* Rkey of the repository record
|
|
20
|
+
*/
|
|
12
21
|
rkey: /*#__PURE__*/ v.string(),
|
|
13
22
|
}),
|
|
14
23
|
},
|
|
@@ -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 & {})
|