@atcute/tangled 1.0.4 → 1.0.6

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 (73) hide show
  1. package/dist/lexicons/index.d.ts +14 -0
  2. package/dist/lexicons/index.js +14 -0
  3. package/dist/lexicons/index.js.map +1 -1
  4. package/dist/lexicons/types/sh/tangled/knot/listKeys.d.ts +37 -0
  5. package/dist/lexicons/types/sh/tangled/knot/listKeys.js +26 -0
  6. package/dist/lexicons/types/sh/tangled/knot/listKeys.js.map +1 -0
  7. package/dist/lexicons/types/sh/tangled/knot/version.d.ts +21 -0
  8. package/dist/lexicons/types/sh/tangled/knot/version.js +12 -0
  9. package/dist/lexicons/types/sh/tangled/knot/version.js.map +1 -0
  10. package/dist/lexicons/types/sh/tangled/owner.d.ts +21 -0
  11. package/dist/lexicons/types/sh/tangled/owner.js +12 -0
  12. package/dist/lexicons/types/sh/tangled/owner.js.map +1 -0
  13. package/dist/lexicons/types/sh/tangled/repo/archive.d.ts +22 -0
  14. package/dist/lexicons/types/sh/tangled/repo/archive.js +14 -0
  15. package/dist/lexicons/types/sh/tangled/repo/archive.js.map +1 -0
  16. package/dist/lexicons/types/sh/tangled/repo/blob.d.ts +59 -0
  17. package/dist/lexicons/types/sh/tangled/repo/blob.js +44 -0
  18. package/dist/lexicons/types/sh/tangled/repo/blob.js.map +1 -0
  19. package/dist/lexicons/types/sh/tangled/repo/branch.d.ts +42 -0
  20. package/dist/lexicons/types/sh/tangled/repo/branch.js +30 -0
  21. package/dist/lexicons/types/sh/tangled/repo/branch.js.map +1 -0
  22. package/dist/lexicons/types/sh/tangled/repo/branches.d.ts +21 -0
  23. package/dist/lexicons/types/sh/tangled/repo/branches.js +14 -0
  24. package/dist/lexicons/types/sh/tangled/repo/branches.js.map +1 -0
  25. package/dist/lexicons/types/sh/tangled/repo/compare.d.ts +21 -0
  26. package/dist/lexicons/types/sh/tangled/repo/compare.js +13 -0
  27. package/dist/lexicons/types/sh/tangled/repo/compare.js.map +1 -0
  28. package/dist/lexicons/types/sh/tangled/repo/diff.d.ts +20 -0
  29. package/dist/lexicons/types/sh/tangled/repo/diff.js +12 -0
  30. package/dist/lexicons/types/sh/tangled/repo/diff.js.map +1 -0
  31. package/dist/lexicons/types/sh/tangled/repo/getDefaultBranch.d.ts +40 -0
  32. package/dist/lexicons/types/sh/tangled/repo/getDefaultBranch.js +28 -0
  33. package/dist/lexicons/types/sh/tangled/repo/getDefaultBranch.js.map +1 -0
  34. package/dist/lexicons/types/sh/tangled/repo/issue/comment.d.ts +1 -3
  35. package/dist/lexicons/types/sh/tangled/repo/issue/comment.js +1 -3
  36. package/dist/lexicons/types/sh/tangled/repo/issue/comment.js.map +1 -1
  37. package/dist/lexicons/types/sh/tangled/repo/issue.d.ts +0 -2
  38. package/dist/lexicons/types/sh/tangled/repo/issue.js +0 -2
  39. package/dist/lexicons/types/sh/tangled/repo/issue.js.map +1 -1
  40. package/dist/lexicons/types/sh/tangled/repo/languages.d.ts +42 -0
  41. package/dist/lexicons/types/sh/tangled/repo/languages.js +30 -0
  42. package/dist/lexicons/types/sh/tangled/repo/languages.js.map +1 -0
  43. package/dist/lexicons/types/sh/tangled/repo/log.d.ts +23 -0
  44. package/dist/lexicons/types/sh/tangled/repo/log.js +16 -0
  45. package/dist/lexicons/types/sh/tangled/repo/log.js.map +1 -0
  46. package/dist/lexicons/types/sh/tangled/repo/tags.d.ts +21 -0
  47. package/dist/lexicons/types/sh/tangled/repo/tags.js +14 -0
  48. package/dist/lexicons/types/sh/tangled/repo/tags.js.map +1 -0
  49. package/dist/lexicons/types/sh/tangled/repo/tree.d.ts +55 -0
  50. package/dist/lexicons/types/sh/tangled/repo/tree.js +40 -0
  51. package/dist/lexicons/types/sh/tangled/repo/tree.js.map +1 -0
  52. package/dist/lexicons/types/sh/tangled/repo.d.ts +1 -1
  53. package/dist/lexicons/types/sh/tangled/repo.js +1 -1
  54. package/dist/lexicons/types/sh/tangled/repo.js.map +1 -1
  55. package/lib/lexicons/index.ts +14 -0
  56. package/lib/lexicons/types/sh/tangled/knot/listKeys.ts +48 -0
  57. package/lib/lexicons/types/sh/tangled/knot/version.ts +28 -0
  58. package/lib/lexicons/types/sh/tangled/owner.ts +28 -0
  59. package/lib/lexicons/types/sh/tangled/repo/archive.ts +30 -0
  60. package/lib/lexicons/types/sh/tangled/repo/blob.ts +67 -0
  61. package/lib/lexicons/types/sh/tangled/repo/branch.ts +50 -0
  62. package/lib/lexicons/types/sh/tangled/repo/branches.ts +32 -0
  63. package/lib/lexicons/types/sh/tangled/repo/compare.ts +29 -0
  64. package/lib/lexicons/types/sh/tangled/repo/diff.ts +28 -0
  65. package/lib/lexicons/types/sh/tangled/repo/getDefaultBranch.ts +48 -0
  66. package/lib/lexicons/types/sh/tangled/repo/issue/comment.ts +1 -3
  67. package/lib/lexicons/types/sh/tangled/repo/issue.ts +0 -2
  68. package/lib/lexicons/types/sh/tangled/repo/languages.ts +50 -0
  69. package/lib/lexicons/types/sh/tangled/repo/log.ts +34 -0
  70. package/lib/lexicons/types/sh/tangled/repo/tags.ts +32 -0
  71. package/lib/lexicons/types/sh/tangled/repo/tree.ts +63 -0
  72. package/lib/lexicons/types/sh/tangled/repo.ts +1 -1
  73. package/package.json +2 -2
@@ -0,0 +1,67 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import * as v from '@atcute/lexicons/validations';
3
+ import type {} from '@atcute/lexicons/ambient';
4
+
5
+ const _lastCommitSchema = /*#__PURE__*/ v.object({
6
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.blob#lastCommit')),
7
+ get author() {
8
+ return /*#__PURE__*/ v.optional(signatureSchema);
9
+ },
10
+ hash: /*#__PURE__*/ v.string(),
11
+ message: /*#__PURE__*/ v.string(),
12
+ shortHash: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
13
+ when: /*#__PURE__*/ v.datetimeString(),
14
+ });
15
+ const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.repo.blob', {
16
+ params: /*#__PURE__*/ v.object({
17
+ path: /*#__PURE__*/ v.string(),
18
+ raw: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false),
19
+ ref: /*#__PURE__*/ v.string(),
20
+ repo: /*#__PURE__*/ v.string(),
21
+ }),
22
+ output: {
23
+ type: 'lex',
24
+ schema: /*#__PURE__*/ v.object({
25
+ content: /*#__PURE__*/ v.string(),
26
+ encoding: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literalEnum(['base64', 'utf-8'])),
27
+ isBinary: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
28
+ get lastCommit() {
29
+ return /*#__PURE__*/ v.optional(lastCommitSchema);
30
+ },
31
+ mimeType: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
32
+ path: /*#__PURE__*/ v.string(),
33
+ ref: /*#__PURE__*/ v.string(),
34
+ size: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
35
+ }),
36
+ },
37
+ });
38
+ const _signatureSchema = /*#__PURE__*/ v.object({
39
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.blob#signature')),
40
+ email: /*#__PURE__*/ v.string(),
41
+ name: /*#__PURE__*/ v.string(),
42
+ when: /*#__PURE__*/ v.datetimeString(),
43
+ });
44
+
45
+ type lastCommit$schematype = typeof _lastCommitSchema;
46
+ type main$schematype = typeof _mainSchema;
47
+ type signature$schematype = typeof _signatureSchema;
48
+
49
+ export interface lastCommitSchema extends lastCommit$schematype {}
50
+ export interface mainSchema extends main$schematype {}
51
+ export interface signatureSchema extends signature$schematype {}
52
+
53
+ export const lastCommitSchema = _lastCommitSchema as lastCommitSchema;
54
+ export const mainSchema = _mainSchema as mainSchema;
55
+ export const signatureSchema = _signatureSchema as signatureSchema;
56
+
57
+ export interface LastCommit extends v.InferInput<typeof lastCommitSchema> {}
58
+ export interface Signature extends v.InferInput<typeof signatureSchema> {}
59
+
60
+ export interface $params extends v.InferInput<mainSchema['params']> {}
61
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
62
+
63
+ declare module '@atcute/lexicons/ambient' {
64
+ interface XRPCQueries {
65
+ 'sh.tangled.repo.blob': mainSchema;
66
+ }
67
+ }
@@ -0,0 +1,50 @@
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.query('sh.tangled.repo.branch', {
6
+ params: /*#__PURE__*/ v.object({
7
+ name: /*#__PURE__*/ v.string(),
8
+ repo: /*#__PURE__*/ v.string(),
9
+ }),
10
+ output: {
11
+ type: 'lex',
12
+ schema: /*#__PURE__*/ v.object({
13
+ get author() {
14
+ return /*#__PURE__*/ v.optional(signatureSchema);
15
+ },
16
+ hash: /*#__PURE__*/ v.string(),
17
+ isDefault: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
18
+ message: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
19
+ name: /*#__PURE__*/ v.string(),
20
+ shortHash: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
21
+ when: /*#__PURE__*/ v.datetimeString(),
22
+ }),
23
+ },
24
+ });
25
+ const _signatureSchema = /*#__PURE__*/ v.object({
26
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.branch#signature')),
27
+ email: /*#__PURE__*/ v.string(),
28
+ name: /*#__PURE__*/ v.string(),
29
+ when: /*#__PURE__*/ v.datetimeString(),
30
+ });
31
+
32
+ type main$schematype = typeof _mainSchema;
33
+ type signature$schematype = typeof _signatureSchema;
34
+
35
+ export interface mainSchema extends main$schematype {}
36
+ export interface signatureSchema extends signature$schematype {}
37
+
38
+ export const mainSchema = _mainSchema as mainSchema;
39
+ export const signatureSchema = _signatureSchema as signatureSchema;
40
+
41
+ export interface Signature extends v.InferInput<typeof signatureSchema> {}
42
+
43
+ export interface $params extends v.InferInput<mainSchema['params']> {}
44
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
45
+
46
+ declare module '@atcute/lexicons/ambient' {
47
+ interface XRPCQueries {
48
+ 'sh.tangled.repo.branch': mainSchema;
49
+ }
50
+ }
@@ -0,0 +1,32 @@
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.query('sh.tangled.repo.branches', {
6
+ params: /*#__PURE__*/ v.object({
7
+ cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
8
+ limit: /*#__PURE__*/ v.optional(
9
+ /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]),
10
+ 50,
11
+ ),
12
+ repo: /*#__PURE__*/ v.string(),
13
+ }),
14
+ output: {
15
+ type: 'blob',
16
+ },
17
+ });
18
+
19
+ type main$schematype = typeof _mainSchema;
20
+
21
+ export interface mainSchema extends main$schematype {}
22
+
23
+ export const mainSchema = _mainSchema as mainSchema;
24
+
25
+ export interface $params extends v.InferInput<mainSchema['params']> {}
26
+ export type $output = v.InferXRPCBodyInput<mainSchema['output']>;
27
+
28
+ declare module '@atcute/lexicons/ambient' {
29
+ interface XRPCQueries {
30
+ 'sh.tangled.repo.branches': mainSchema;
31
+ }
32
+ }
@@ -0,0 +1,29 @@
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.query('sh.tangled.repo.compare', {
6
+ params: /*#__PURE__*/ v.object({
7
+ repo: /*#__PURE__*/ v.string(),
8
+ rev1: /*#__PURE__*/ v.string(),
9
+ rev2: /*#__PURE__*/ v.string(),
10
+ }),
11
+ output: {
12
+ type: 'blob',
13
+ },
14
+ });
15
+
16
+ type main$schematype = typeof _mainSchema;
17
+
18
+ export interface mainSchema extends main$schematype {}
19
+
20
+ export const mainSchema = _mainSchema as mainSchema;
21
+
22
+ export interface $params extends v.InferInput<mainSchema['params']> {}
23
+ export type $output = v.InferXRPCBodyInput<mainSchema['output']>;
24
+
25
+ declare module '@atcute/lexicons/ambient' {
26
+ interface XRPCQueries {
27
+ 'sh.tangled.repo.compare': mainSchema;
28
+ }
29
+ }
@@ -0,0 +1,28 @@
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.query('sh.tangled.repo.diff', {
6
+ params: /*#__PURE__*/ v.object({
7
+ ref: /*#__PURE__*/ v.string(),
8
+ repo: /*#__PURE__*/ v.string(),
9
+ }),
10
+ output: {
11
+ type: 'blob',
12
+ },
13
+ });
14
+
15
+ type main$schematype = typeof _mainSchema;
16
+
17
+ export interface mainSchema extends main$schematype {}
18
+
19
+ export const mainSchema = _mainSchema as mainSchema;
20
+
21
+ export interface $params extends v.InferInput<mainSchema['params']> {}
22
+ export type $output = v.InferXRPCBodyInput<mainSchema['output']>;
23
+
24
+ declare module '@atcute/lexicons/ambient' {
25
+ interface XRPCQueries {
26
+ 'sh.tangled.repo.diff': mainSchema;
27
+ }
28
+ }
@@ -0,0 +1,48 @@
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.query('sh.tangled.repo.getDefaultBranch', {
6
+ params: /*#__PURE__*/ v.object({
7
+ repo: /*#__PURE__*/ v.string(),
8
+ }),
9
+ output: {
10
+ type: 'lex',
11
+ schema: /*#__PURE__*/ v.object({
12
+ get author() {
13
+ return /*#__PURE__*/ v.optional(signatureSchema);
14
+ },
15
+ hash: /*#__PURE__*/ v.string(),
16
+ message: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
17
+ name: /*#__PURE__*/ v.string(),
18
+ shortHash: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
19
+ when: /*#__PURE__*/ v.datetimeString(),
20
+ }),
21
+ },
22
+ });
23
+ const _signatureSchema = /*#__PURE__*/ v.object({
24
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.getDefaultBranch#signature')),
25
+ email: /*#__PURE__*/ v.string(),
26
+ name: /*#__PURE__*/ v.string(),
27
+ when: /*#__PURE__*/ v.datetimeString(),
28
+ });
29
+
30
+ type main$schematype = typeof _mainSchema;
31
+ type signature$schematype = typeof _signatureSchema;
32
+
33
+ export interface mainSchema extends main$schematype {}
34
+ export interface signatureSchema extends signature$schematype {}
35
+
36
+ export const mainSchema = _mainSchema as mainSchema;
37
+ export const signatureSchema = _signatureSchema as signatureSchema;
38
+
39
+ export interface Signature extends v.InferInput<typeof signatureSchema> {}
40
+
41
+ export interface $params extends v.InferInput<mainSchema['params']> {}
42
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
43
+
44
+ declare module '@atcute/lexicons/ambient' {
45
+ interface XRPCQueries {
46
+ 'sh.tangled.repo.getDefaultBranch': mainSchema;
47
+ }
48
+ }
@@ -7,11 +7,9 @@ const _mainSchema = /*#__PURE__*/ v.record(
7
7
  /*#__PURE__*/ v.object({
8
8
  $type: /*#__PURE__*/ v.literal('sh.tangled.repo.issue.comment'),
9
9
  body: /*#__PURE__*/ v.string(),
10
- commentId: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
11
10
  createdAt: /*#__PURE__*/ v.datetimeString(),
12
11
  issue: /*#__PURE__*/ v.resourceUriString(),
13
- owner: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()),
14
- repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()),
12
+ replyTo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()),
15
13
  }),
16
14
  );
17
15
 
@@ -8,8 +8,6 @@ const _mainSchema = /*#__PURE__*/ v.record(
8
8
  $type: /*#__PURE__*/ v.literal('sh.tangled.repo.issue'),
9
9
  body: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
10
10
  createdAt: /*#__PURE__*/ v.datetimeString(),
11
- issueId: /*#__PURE__*/ v.integer(),
12
- owner: /*#__PURE__*/ v.didString(),
13
11
  repo: /*#__PURE__*/ v.resourceUriString(),
14
12
  title: /*#__PURE__*/ v.string(),
15
13
  }),
@@ -0,0 +1,50 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import * as v from '@atcute/lexicons/validations';
3
+ import type {} from '@atcute/lexicons/ambient';
4
+
5
+ const _languageSchema = /*#__PURE__*/ v.object({
6
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.languages#language')),
7
+ color: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
8
+ extensions: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())),
9
+ fileCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
10
+ name: /*#__PURE__*/ v.string(),
11
+ percentage: /*#__PURE__*/ v.integer(),
12
+ size: /*#__PURE__*/ v.integer(),
13
+ });
14
+ const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.repo.languages', {
15
+ params: /*#__PURE__*/ v.object({
16
+ ref: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string(), 'HEAD'),
17
+ repo: /*#__PURE__*/ v.string(),
18
+ }),
19
+ output: {
20
+ type: 'lex',
21
+ schema: /*#__PURE__*/ v.object({
22
+ get languages() {
23
+ return /*#__PURE__*/ v.array(languageSchema);
24
+ },
25
+ ref: /*#__PURE__*/ v.string(),
26
+ totalFiles: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
27
+ totalSize: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
28
+ }),
29
+ },
30
+ });
31
+
32
+ type language$schematype = typeof _languageSchema;
33
+ type main$schematype = typeof _mainSchema;
34
+
35
+ export interface languageSchema extends language$schematype {}
36
+ export interface mainSchema extends main$schematype {}
37
+
38
+ export const languageSchema = _languageSchema as languageSchema;
39
+ export const mainSchema = _mainSchema as mainSchema;
40
+
41
+ export interface Language extends v.InferInput<typeof languageSchema> {}
42
+
43
+ export interface $params extends v.InferInput<mainSchema['params']> {}
44
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
45
+
46
+ declare module '@atcute/lexicons/ambient' {
47
+ interface XRPCQueries {
48
+ 'sh.tangled.repo.languages': mainSchema;
49
+ }
50
+ }
@@ -0,0 +1,34 @@
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.query('sh.tangled.repo.log', {
6
+ params: /*#__PURE__*/ v.object({
7
+ cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
8
+ limit: /*#__PURE__*/ v.optional(
9
+ /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]),
10
+ 50,
11
+ ),
12
+ path: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string(), ''),
13
+ ref: /*#__PURE__*/ v.string(),
14
+ repo: /*#__PURE__*/ v.string(),
15
+ }),
16
+ output: {
17
+ type: 'blob',
18
+ },
19
+ });
20
+
21
+ type main$schematype = typeof _mainSchema;
22
+
23
+ export interface mainSchema extends main$schematype {}
24
+
25
+ export const mainSchema = _mainSchema as mainSchema;
26
+
27
+ export interface $params extends v.InferInput<mainSchema['params']> {}
28
+ export type $output = v.InferXRPCBodyInput<mainSchema['output']>;
29
+
30
+ declare module '@atcute/lexicons/ambient' {
31
+ interface XRPCQueries {
32
+ 'sh.tangled.repo.log': mainSchema;
33
+ }
34
+ }
@@ -0,0 +1,32 @@
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.query('sh.tangled.repo.tags', {
6
+ params: /*#__PURE__*/ v.object({
7
+ cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
8
+ limit: /*#__PURE__*/ v.optional(
9
+ /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]),
10
+ 50,
11
+ ),
12
+ repo: /*#__PURE__*/ v.string(),
13
+ }),
14
+ output: {
15
+ type: 'blob',
16
+ },
17
+ });
18
+
19
+ type main$schematype = typeof _mainSchema;
20
+
21
+ export interface mainSchema extends main$schematype {}
22
+
23
+ export const mainSchema = _mainSchema as mainSchema;
24
+
25
+ export interface $params extends v.InferInput<mainSchema['params']> {}
26
+ export type $output = v.InferXRPCBodyInput<mainSchema['output']>;
27
+
28
+ declare module '@atcute/lexicons/ambient' {
29
+ interface XRPCQueries {
30
+ 'sh.tangled.repo.tags': mainSchema;
31
+ }
32
+ }
@@ -0,0 +1,63 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import * as v from '@atcute/lexicons/validations';
3
+ import type {} from '@atcute/lexicons/ambient';
4
+
5
+ const _lastCommitSchema = /*#__PURE__*/ v.object({
6
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.tree#lastCommit')),
7
+ hash: /*#__PURE__*/ v.string(),
8
+ message: /*#__PURE__*/ v.string(),
9
+ when: /*#__PURE__*/ v.datetimeString(),
10
+ });
11
+ const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.repo.tree', {
12
+ params: /*#__PURE__*/ v.object({
13
+ path: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string(), ''),
14
+ ref: /*#__PURE__*/ v.string(),
15
+ repo: /*#__PURE__*/ v.string(),
16
+ }),
17
+ output: {
18
+ type: 'lex',
19
+ schema: /*#__PURE__*/ v.object({
20
+ dotdot: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
21
+ get files() {
22
+ return /*#__PURE__*/ v.array(treeEntrySchema);
23
+ },
24
+ parent: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
25
+ ref: /*#__PURE__*/ v.string(),
26
+ }),
27
+ },
28
+ });
29
+ const _treeEntrySchema = /*#__PURE__*/ v.object({
30
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.tree#treeEntry')),
31
+ is_file: /*#__PURE__*/ v.boolean(),
32
+ is_subtree: /*#__PURE__*/ v.boolean(),
33
+ get last_commit() {
34
+ return /*#__PURE__*/ v.optional(lastCommitSchema);
35
+ },
36
+ mode: /*#__PURE__*/ v.string(),
37
+ name: /*#__PURE__*/ v.string(),
38
+ size: /*#__PURE__*/ v.integer(),
39
+ });
40
+
41
+ type lastCommit$schematype = typeof _lastCommitSchema;
42
+ type main$schematype = typeof _mainSchema;
43
+ type treeEntry$schematype = typeof _treeEntrySchema;
44
+
45
+ export interface lastCommitSchema extends lastCommit$schematype {}
46
+ export interface mainSchema extends main$schematype {}
47
+ export interface treeEntrySchema extends treeEntry$schematype {}
48
+
49
+ export const lastCommitSchema = _lastCommitSchema as lastCommitSchema;
50
+ export const mainSchema = _mainSchema as mainSchema;
51
+ export const treeEntrySchema = _treeEntrySchema as treeEntrySchema;
52
+
53
+ export interface LastCommit extends v.InferInput<typeof lastCommitSchema> {}
54
+ export interface TreeEntry extends v.InferInput<typeof treeEntrySchema> {}
55
+
56
+ export interface $params extends v.InferInput<mainSchema['params']> {}
57
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
58
+
59
+ declare module '@atcute/lexicons/ambient' {
60
+ interface XRPCQueries {
61
+ 'sh.tangled.repo.tree': mainSchema;
62
+ }
63
+ }
@@ -8,7 +8,7 @@ const _mainSchema = /*#__PURE__*/ v.record(
8
8
  $type: /*#__PURE__*/ v.literal('sh.tangled.repo'),
9
9
  createdAt: /*#__PURE__*/ v.datetimeString(),
10
10
  description: /*#__PURE__*/ v.optional(
11
- /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.datetimeString(), [/*#__PURE__*/ v.stringGraphemes(1, 140)]),
11
+ /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringGraphemes(1, 140)]),
12
12
  ),
13
13
  knot: /*#__PURE__*/ v.string(),
14
14
  name: /*#__PURE__*/ v.string(),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@atcute/tangled",
4
- "version": "1.0.4",
4
+ "version": "1.0.6",
5
5
  "description": "Tangled (sh.tangled.*) schema definitions",
6
6
  "keywords": [
7
7
  "atcute",
@@ -24,7 +24,7 @@
24
24
  "./types/*": "./dist/lexicons/types/sh/tangled/*.js"
25
25
  },
26
26
  "dependencies": {
27
- "@atcute/atproto": "^3.1.2",
27
+ "@atcute/atproto": "^3.1.4",
28
28
  "@atcute/lexicons": "^1.1.1"
29
29
  },
30
30
  "devDependencies": {