@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.
Files changed (191) hide show
  1. package/dist/lexicons/types/sh/tangled/actor/profile.d.ts +26 -0
  2. package/dist/lexicons/types/sh/tangled/actor/profile.d.ts.map +1 -1
  3. package/dist/lexicons/types/sh/tangled/actor/profile.js +26 -0
  4. package/dist/lexicons/types/sh/tangled/actor/profile.js.map +1 -1
  5. package/dist/lexicons/types/sh/tangled/git/refUpdate.d.ts +27 -0
  6. package/dist/lexicons/types/sh/tangled/git/refUpdate.d.ts.map +1 -1
  7. package/dist/lexicons/types/sh/tangled/git/refUpdate.js +27 -0
  8. package/dist/lexicons/types/sh/tangled/git/refUpdate.js.map +1 -1
  9. package/dist/lexicons/types/sh/tangled/knot/listKeys.d.ts +22 -0
  10. package/dist/lexicons/types/sh/tangled/knot/listKeys.d.ts.map +1 -1
  11. package/dist/lexicons/types/sh/tangled/knot/listKeys.js +22 -0
  12. package/dist/lexicons/types/sh/tangled/knot/listKeys.js.map +1 -1
  13. package/dist/lexicons/types/sh/tangled/knot/member.d.ts +3 -0
  14. package/dist/lexicons/types/sh/tangled/knot/member.d.ts.map +1 -1
  15. package/dist/lexicons/types/sh/tangled/knot/member.js +3 -0
  16. package/dist/lexicons/types/sh/tangled/knot/member.js.map +1 -1
  17. package/dist/lexicons/types/sh/tangled/label/definition.d.ts +26 -0
  18. package/dist/lexicons/types/sh/tangled/label/definition.d.ts.map +1 -1
  19. package/dist/lexicons/types/sh/tangled/label/definition.js +26 -0
  20. package/dist/lexicons/types/sh/tangled/label/definition.js.map +1 -1
  21. package/dist/lexicons/types/sh/tangled/label/op.d.ts +9 -0
  22. package/dist/lexicons/types/sh/tangled/label/op.d.ts.map +1 -1
  23. package/dist/lexicons/types/sh/tangled/label/op.js +9 -0
  24. package/dist/lexicons/types/sh/tangled/label/op.js.map +1 -1
  25. package/dist/lexicons/types/sh/tangled/pipeline/status.d.ts +18 -0
  26. package/dist/lexicons/types/sh/tangled/pipeline/status.d.ts.map +1 -1
  27. package/dist/lexicons/types/sh/tangled/pipeline/status.js +18 -0
  28. package/dist/lexicons/types/sh/tangled/pipeline/status.js.map +1 -1
  29. package/dist/lexicons/types/sh/tangled/pipeline.d.ts +12 -0
  30. package/dist/lexicons/types/sh/tangled/pipeline.d.ts.map +1 -1
  31. package/dist/lexicons/types/sh/tangled/pipeline.js +12 -0
  32. package/dist/lexicons/types/sh/tangled/pipeline.js.map +1 -1
  33. package/dist/lexicons/types/sh/tangled/publicKey.d.ts +10 -0
  34. package/dist/lexicons/types/sh/tangled/publicKey.d.ts.map +1 -1
  35. package/dist/lexicons/types/sh/tangled/publicKey.js +10 -0
  36. package/dist/lexicons/types/sh/tangled/publicKey.js.map +1 -1
  37. package/dist/lexicons/types/sh/tangled/repo/addSecret.d.ts +8 -0
  38. package/dist/lexicons/types/sh/tangled/repo/addSecret.d.ts.map +1 -1
  39. package/dist/lexicons/types/sh/tangled/repo/addSecret.js +8 -0
  40. package/dist/lexicons/types/sh/tangled/repo/addSecret.js.map +1 -1
  41. package/dist/lexicons/types/sh/tangled/repo/archive.d.ts +14 -1
  42. package/dist/lexicons/types/sh/tangled/repo/archive.d.ts.map +1 -1
  43. package/dist/lexicons/types/sh/tangled/repo/archive.js +15 -1
  44. package/dist/lexicons/types/sh/tangled/repo/archive.js.map +1 -1
  45. package/dist/lexicons/types/sh/tangled/repo/artifact.d.ts +19 -0
  46. package/dist/lexicons/types/sh/tangled/repo/artifact.d.ts.map +1 -1
  47. package/dist/lexicons/types/sh/tangled/repo/artifact.js +19 -0
  48. package/dist/lexicons/types/sh/tangled/repo/artifact.js.map +1 -1
  49. package/dist/lexicons/types/sh/tangled/repo/blob.d.ts +55 -0
  50. package/dist/lexicons/types/sh/tangled/repo/blob.d.ts.map +1 -1
  51. package/dist/lexicons/types/sh/tangled/repo/blob.js +55 -0
  52. package/dist/lexicons/types/sh/tangled/repo/blob.js.map +1 -1
  53. package/dist/lexicons/types/sh/tangled/repo/branch.d.ts +33 -0
  54. package/dist/lexicons/types/sh/tangled/repo/branch.d.ts.map +1 -1
  55. package/dist/lexicons/types/sh/tangled/repo/branch.js +33 -0
  56. package/dist/lexicons/types/sh/tangled/repo/branch.js.map +1 -1
  57. package/dist/lexicons/types/sh/tangled/repo/branches.d.ts +12 -0
  58. package/dist/lexicons/types/sh/tangled/repo/branches.d.ts.map +1 -1
  59. package/dist/lexicons/types/sh/tangled/repo/branches.js +12 -0
  60. package/dist/lexicons/types/sh/tangled/repo/branches.js.map +1 -1
  61. package/dist/lexicons/types/sh/tangled/repo/collaborator.d.ts +3 -0
  62. package/dist/lexicons/types/sh/tangled/repo/collaborator.d.ts.map +1 -1
  63. package/dist/lexicons/types/sh/tangled/repo/collaborator.js +3 -0
  64. package/dist/lexicons/types/sh/tangled/repo/collaborator.js.map +1 -1
  65. package/dist/lexicons/types/sh/tangled/repo/compare.d.ts +9 -0
  66. package/dist/lexicons/types/sh/tangled/repo/compare.d.ts.map +1 -1
  67. package/dist/lexicons/types/sh/tangled/repo/compare.js +9 -0
  68. package/dist/lexicons/types/sh/tangled/repo/compare.js.map +1 -1
  69. package/dist/lexicons/types/sh/tangled/repo/create.d.ts +9 -0
  70. package/dist/lexicons/types/sh/tangled/repo/create.d.ts.map +1 -1
  71. package/dist/lexicons/types/sh/tangled/repo/create.js +9 -0
  72. package/dist/lexicons/types/sh/tangled/repo/create.js.map +1 -1
  73. package/dist/lexicons/types/sh/tangled/repo/delete.d.ts +9 -0
  74. package/dist/lexicons/types/sh/tangled/repo/delete.d.ts.map +1 -1
  75. package/dist/lexicons/types/sh/tangled/repo/delete.js +9 -0
  76. package/dist/lexicons/types/sh/tangled/repo/delete.js.map +1 -1
  77. package/dist/lexicons/types/sh/tangled/repo/diff.d.ts +6 -0
  78. package/dist/lexicons/types/sh/tangled/repo/diff.d.ts.map +1 -1
  79. package/dist/lexicons/types/sh/tangled/repo/diff.js +6 -0
  80. package/dist/lexicons/types/sh/tangled/repo/diff.js.map +1 -1
  81. package/dist/lexicons/types/sh/tangled/repo/forkStatus.d.ts +18 -0
  82. package/dist/lexicons/types/sh/tangled/repo/forkStatus.d.ts.map +1 -1
  83. package/dist/lexicons/types/sh/tangled/repo/forkStatus.js +18 -0
  84. package/dist/lexicons/types/sh/tangled/repo/forkStatus.js.map +1 -1
  85. package/dist/lexicons/types/sh/tangled/repo/forkSync.d.ts +12 -0
  86. package/dist/lexicons/types/sh/tangled/repo/forkSync.d.ts.map +1 -1
  87. package/dist/lexicons/types/sh/tangled/repo/forkSync.js +12 -0
  88. package/dist/lexicons/types/sh/tangled/repo/forkSync.js.map +1 -1
  89. package/dist/lexicons/types/sh/tangled/repo/getDefaultBranch.d.ts +27 -0
  90. package/dist/lexicons/types/sh/tangled/repo/getDefaultBranch.d.ts.map +1 -1
  91. package/dist/lexicons/types/sh/tangled/repo/getDefaultBranch.js +27 -0
  92. package/dist/lexicons/types/sh/tangled/repo/getDefaultBranch.js.map +1 -1
  93. package/dist/lexicons/types/sh/tangled/repo/hiddenRef.d.ts +18 -0
  94. package/dist/lexicons/types/sh/tangled/repo/hiddenRef.d.ts.map +1 -1
  95. package/dist/lexicons/types/sh/tangled/repo/hiddenRef.js +18 -0
  96. package/dist/lexicons/types/sh/tangled/repo/hiddenRef.js.map +1 -1
  97. package/dist/lexicons/types/sh/tangled/repo/issue/state.d.ts +4 -0
  98. package/dist/lexicons/types/sh/tangled/repo/issue/state.d.ts.map +1 -1
  99. package/dist/lexicons/types/sh/tangled/repo/issue/state.js +4 -0
  100. package/dist/lexicons/types/sh/tangled/repo/issue/state.js.map +1 -1
  101. package/dist/lexicons/types/sh/tangled/repo/languages.d.ts +34 -0
  102. package/dist/lexicons/types/sh/tangled/repo/languages.d.ts.map +1 -1
  103. package/dist/lexicons/types/sh/tangled/repo/languages.js +34 -0
  104. package/dist/lexicons/types/sh/tangled/repo/languages.js.map +1 -1
  105. package/dist/lexicons/types/sh/tangled/repo/listSecrets.d.ts +4 -0
  106. package/dist/lexicons/types/sh/tangled/repo/listSecrets.d.ts.map +1 -1
  107. package/dist/lexicons/types/sh/tangled/repo/listSecrets.js +4 -0
  108. package/dist/lexicons/types/sh/tangled/repo/listSecrets.js.map +1 -1
  109. package/dist/lexicons/types/sh/tangled/repo/log.d.ts +19 -0
  110. package/dist/lexicons/types/sh/tangled/repo/log.d.ts.map +1 -1
  111. package/dist/lexicons/types/sh/tangled/repo/log.js +19 -0
  112. package/dist/lexicons/types/sh/tangled/repo/log.js.map +1 -1
  113. package/dist/lexicons/types/sh/tangled/repo/merge.d.ts +24 -0
  114. package/dist/lexicons/types/sh/tangled/repo/merge.d.ts.map +1 -1
  115. package/dist/lexicons/types/sh/tangled/repo/merge.js +24 -0
  116. package/dist/lexicons/types/sh/tangled/repo/merge.js.map +1 -1
  117. package/dist/lexicons/types/sh/tangled/repo/mergeCheck.d.ts +30 -0
  118. package/dist/lexicons/types/sh/tangled/repo/mergeCheck.d.ts.map +1 -1
  119. package/dist/lexicons/types/sh/tangled/repo/mergeCheck.js +30 -0
  120. package/dist/lexicons/types/sh/tangled/repo/mergeCheck.js.map +1 -1
  121. package/dist/lexicons/types/sh/tangled/repo/pull/status.d.ts +4 -0
  122. package/dist/lexicons/types/sh/tangled/repo/pull/status.d.ts.map +1 -1
  123. package/dist/lexicons/types/sh/tangled/repo/pull/status.js +4 -0
  124. package/dist/lexicons/types/sh/tangled/repo/pull/status.js.map +1 -1
  125. package/dist/lexicons/types/sh/tangled/repo/pull.d.ts +4 -0
  126. package/dist/lexicons/types/sh/tangled/repo/pull.d.ts.map +1 -1
  127. package/dist/lexicons/types/sh/tangled/repo/pull.js +4 -0
  128. package/dist/lexicons/types/sh/tangled/repo/pull.js.map +1 -1
  129. package/dist/lexicons/types/sh/tangled/repo/removeSecret.d.ts +4 -0
  130. package/dist/lexicons/types/sh/tangled/repo/removeSecret.d.ts.map +1 -1
  131. package/dist/lexicons/types/sh/tangled/repo/removeSecret.js +4 -0
  132. package/dist/lexicons/types/sh/tangled/repo/removeSecret.js.map +1 -1
  133. package/dist/lexicons/types/sh/tangled/repo/tags.d.ts +12 -0
  134. package/dist/lexicons/types/sh/tangled/repo/tags.d.ts.map +1 -1
  135. package/dist/lexicons/types/sh/tangled/repo/tags.js +12 -0
  136. package/dist/lexicons/types/sh/tangled/repo/tags.js.map +1 -1
  137. package/dist/lexicons/types/sh/tangled/repo/tree.d.ts +43 -0
  138. package/dist/lexicons/types/sh/tangled/repo/tree.d.ts.map +1 -1
  139. package/dist/lexicons/types/sh/tangled/repo/tree.js +43 -0
  140. package/dist/lexicons/types/sh/tangled/repo/tree.js.map +1 -1
  141. package/dist/lexicons/types/sh/tangled/repo.d.ts +19 -0
  142. package/dist/lexicons/types/sh/tangled/repo.d.ts.map +1 -1
  143. package/dist/lexicons/types/sh/tangled/repo.js +19 -0
  144. package/dist/lexicons/types/sh/tangled/repo.js.map +1 -1
  145. package/dist/lexicons/types/sh/tangled/spindle/member.d.ts +3 -0
  146. package/dist/lexicons/types/sh/tangled/spindle/member.d.ts.map +1 -1
  147. package/dist/lexicons/types/sh/tangled/spindle/member.js +3 -0
  148. package/dist/lexicons/types/sh/tangled/spindle/member.js.map +1 -1
  149. package/dist/lexicons/types/sh/tangled/string.d.ts +10 -0
  150. package/dist/lexicons/types/sh/tangled/string.d.ts.map +1 -1
  151. package/dist/lexicons/types/sh/tangled/string.js +10 -0
  152. package/dist/lexicons/types/sh/tangled/string.js.map +1 -1
  153. package/lib/lexicons/types/sh/tangled/actor/profile.ts +26 -0
  154. package/lib/lexicons/types/sh/tangled/git/refUpdate.ts +27 -0
  155. package/lib/lexicons/types/sh/tangled/knot/listKeys.ts +22 -0
  156. package/lib/lexicons/types/sh/tangled/knot/member.ts +3 -0
  157. package/lib/lexicons/types/sh/tangled/label/definition.ts +26 -0
  158. package/lib/lexicons/types/sh/tangled/label/op.ts +9 -0
  159. package/lib/lexicons/types/sh/tangled/pipeline/status.ts +18 -0
  160. package/lib/lexicons/types/sh/tangled/pipeline.ts +12 -0
  161. package/lib/lexicons/types/sh/tangled/publicKey.ts +10 -0
  162. package/lib/lexicons/types/sh/tangled/repo/addSecret.ts +8 -0
  163. package/lib/lexicons/types/sh/tangled/repo/archive.ts +17 -1
  164. package/lib/lexicons/types/sh/tangled/repo/artifact.ts +19 -0
  165. package/lib/lexicons/types/sh/tangled/repo/blob.ts +55 -0
  166. package/lib/lexicons/types/sh/tangled/repo/branch.ts +33 -0
  167. package/lib/lexicons/types/sh/tangled/repo/branches.ts +12 -0
  168. package/lib/lexicons/types/sh/tangled/repo/collaborator.ts +3 -0
  169. package/lib/lexicons/types/sh/tangled/repo/compare.ts +9 -0
  170. package/lib/lexicons/types/sh/tangled/repo/create.ts +9 -0
  171. package/lib/lexicons/types/sh/tangled/repo/delete.ts +9 -0
  172. package/lib/lexicons/types/sh/tangled/repo/diff.ts +6 -0
  173. package/lib/lexicons/types/sh/tangled/repo/forkStatus.ts +18 -0
  174. package/lib/lexicons/types/sh/tangled/repo/forkSync.ts +12 -0
  175. package/lib/lexicons/types/sh/tangled/repo/getDefaultBranch.ts +27 -0
  176. package/lib/lexicons/types/sh/tangled/repo/hiddenRef.ts +18 -0
  177. package/lib/lexicons/types/sh/tangled/repo/issue/state.ts +4 -0
  178. package/lib/lexicons/types/sh/tangled/repo/languages.ts +34 -0
  179. package/lib/lexicons/types/sh/tangled/repo/listSecrets.ts +4 -0
  180. package/lib/lexicons/types/sh/tangled/repo/log.ts +19 -0
  181. package/lib/lexicons/types/sh/tangled/repo/merge.ts +24 -0
  182. package/lib/lexicons/types/sh/tangled/repo/mergeCheck.ts +30 -0
  183. package/lib/lexicons/types/sh/tangled/repo/pull/status.ts +4 -0
  184. package/lib/lexicons/types/sh/tangled/repo/pull.ts +4 -0
  185. package/lib/lexicons/types/sh/tangled/repo/removeSecret.ts +4 -0
  186. package/lib/lexicons/types/sh/tangled/repo/tags.ts +12 -0
  187. package/lib/lexicons/types/sh/tangled/repo/tree.ts +43 -0
  188. package/lib/lexicons/types/sh/tangled/repo.ts +19 -0
  189. package/lib/lexicons/types/sh/tangled/spindle/member.ts +3 -0
  190. package/lib/lexicons/types/sh/tangled/string.ts +10 -0
  191. 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
- format: /*#__PURE__*/ v.literalEnum(['tar', 'tar.bz2', 'tar.gz', 'tar.xz', 'zip']),
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 & {})