@atcute/tangled 1.0.2 → 1.0.4
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/LICENSE +12 -15
- package/README.md +24 -0
- package/dist/lexicons/index.d.ts +20 -0
- package/dist/lexicons/index.js +20 -0
- package/dist/lexicons/index.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/feed/reaction.d.ts +19 -0
- package/dist/lexicons/types/sh/tangled/feed/reaction.js +11 -0
- package/dist/lexicons/types/sh/tangled/feed/reaction.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/git/refUpdate.d.ts +77 -0
- package/dist/lexicons/types/sh/tangled/git/refUpdate.js +58 -0
- package/dist/lexicons/types/sh/tangled/git/refUpdate.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/knot.d.ts +17 -0
- package/dist/lexicons/types/sh/tangled/knot.js +9 -0
- package/dist/lexicons/types/sh/tangled/knot.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/pipeline/status.d.ts +22 -0
- package/dist/lexicons/types/sh/tangled/pipeline/status.js +14 -0
- package/dist/lexicons/types/sh/tangled/pipeline/status.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/pipeline.d.ts +116 -0
- package/dist/lexicons/types/sh/tangled/pipeline.js +84 -0
- package/dist/lexicons/types/sh/tangled/pipeline.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/repo/addSecret.d.ts +23 -0
- package/dist/lexicons/types/sh/tangled/repo/addSecret.js +15 -0
- package/dist/lexicons/types/sh/tangled/repo/addSecret.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/repo/collaborator.d.ts +19 -0
- package/dist/lexicons/types/sh/tangled/repo/collaborator.js +11 -0
- package/dist/lexicons/types/sh/tangled/repo/collaborator.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/repo/create.d.ts +23 -0
- package/dist/lexicons/types/sh/tangled/repo/create.js +15 -0
- package/dist/lexicons/types/sh/tangled/repo/create.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/repo/delete.d.ts +23 -0
- package/dist/lexicons/types/sh/tangled/repo/delete.js +15 -0
- package/dist/lexicons/types/sh/tangled/repo/delete.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/repo/forkStatus.d.ts +32 -0
- package/dist/lexicons/types/sh/tangled/repo/forkStatus.js +22 -0
- package/dist/lexicons/types/sh/tangled/repo/forkStatus.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/repo/forkSync.d.ts +24 -0
- package/dist/lexicons/types/sh/tangled/repo/forkSync.js +16 -0
- package/dist/lexicons/types/sh/tangled/repo/forkSync.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/repo/hiddenRef.d.ts +32 -0
- package/dist/lexicons/types/sh/tangled/repo/hiddenRef.js +22 -0
- package/dist/lexicons/types/sh/tangled/repo/hiddenRef.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/repo/listSecrets.d.ts +36 -0
- package/dist/lexicons/types/sh/tangled/repo/listSecrets.js +24 -0
- package/dist/lexicons/types/sh/tangled/repo/listSecrets.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/repo/merge.d.ts +28 -0
- package/dist/lexicons/types/sh/tangled/repo/merge.js +20 -0
- package/dist/lexicons/types/sh/tangled/repo/merge.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/repo/mergeCheck.d.ts +45 -0
- package/dist/lexicons/types/sh/tangled/repo/mergeCheck.js +32 -0
- package/dist/lexicons/types/sh/tangled/repo/mergeCheck.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/repo/pull/comment.d.ts +0 -3
- package/dist/lexicons/types/sh/tangled/repo/pull/comment.js +0 -3
- package/dist/lexicons/types/sh/tangled/repo/pull/comment.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/pull.d.ts +13 -3
- package/dist/lexicons/types/sh/tangled/repo/pull.js +10 -3
- package/dist/lexicons/types/sh/tangled/repo/pull.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/removeSecret.d.ts +22 -0
- package/dist/lexicons/types/sh/tangled/repo/removeSecret.js +14 -0
- package/dist/lexicons/types/sh/tangled/repo/removeSecret.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/repo/setDefaultBranch.d.ts +22 -0
- package/dist/lexicons/types/sh/tangled/repo/setDefaultBranch.js +14 -0
- package/dist/lexicons/types/sh/tangled/repo/setDefaultBranch.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/repo.d.ts +1 -0
- package/dist/lexicons/types/sh/tangled/repo.js +1 -0
- package/dist/lexicons/types/sh/tangled/repo.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/spindle/member.d.ts +19 -0
- package/dist/lexicons/types/sh/tangled/spindle/member.js +11 -0
- package/dist/lexicons/types/sh/tangled/spindle/member.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/spindle.d.ts +17 -0
- package/dist/lexicons/types/sh/tangled/spindle.js +9 -0
- package/dist/lexicons/types/sh/tangled/spindle.js.map +1 -0
- package/dist/lexicons/types/sh/tangled/string.d.ts +20 -0
- package/dist/lexicons/types/sh/tangled/string.js +14 -0
- package/dist/lexicons/types/sh/tangled/string.js.map +1 -0
- package/lib/lexicons/index.ts +20 -0
- package/lib/lexicons/types/sh/tangled/feed/reaction.ts +27 -0
- package/lib/lexicons/types/sh/tangled/git/refUpdate.ts +91 -0
- package/lib/lexicons/types/sh/tangled/knot.ts +25 -0
- package/lib/lexicons/types/sh/tangled/pipeline/status.ts +30 -0
- package/lib/lexicons/types/sh/tangled/pipeline.ts +124 -0
- package/lib/lexicons/types/sh/tangled/repo/addSecret.ts +31 -0
- package/lib/lexicons/types/sh/tangled/repo/collaborator.ts +27 -0
- package/lib/lexicons/types/sh/tangled/repo/create.ts +31 -0
- package/lib/lexicons/types/sh/tangled/repo/delete.ts +31 -0
- package/lib/lexicons/types/sh/tangled/repo/forkStatus.ts +39 -0
- package/lib/lexicons/types/sh/tangled/repo/forkSync.ts +32 -0
- package/lib/lexicons/types/sh/tangled/repo/hiddenRef.ts +39 -0
- package/lib/lexicons/types/sh/tangled/repo/listSecrets.ts +44 -0
- package/lib/lexicons/types/sh/tangled/repo/merge.ts +36 -0
- package/lib/lexicons/types/sh/tangled/repo/mergeCheck.ts +53 -0
- package/lib/lexicons/types/sh/tangled/repo/pull/comment.ts +0 -3
- package/lib/lexicons/types/sh/tangled/repo/pull.ts +13 -3
- package/lib/lexicons/types/sh/tangled/repo/removeSecret.ts +30 -0
- package/lib/lexicons/types/sh/tangled/repo/setDefaultBranch.ts +30 -0
- package/lib/lexicons/types/sh/tangled/repo.ts +1 -0
- package/lib/lexicons/types/sh/tangled/spindle/member.ts +27 -0
- package/lib/lexicons/types/sh/tangled/spindle.ts +25 -0
- package/lib/lexicons/types/sh/tangled/string.ts +30 -0
- package/package.json +6 -6
|
@@ -0,0 +1,27 @@
|
|
|
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.record(
|
|
6
|
+
/*#__PURE__*/ v.tidString(),
|
|
7
|
+
/*#__PURE__*/ v.object({
|
|
8
|
+
$type: /*#__PURE__*/ v.literal('sh.tangled.repo.collaborator'),
|
|
9
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
10
|
+
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
11
|
+
subject: /*#__PURE__*/ v.didString(),
|
|
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 Main extends v.InferInput<typeof mainSchema> {}
|
|
22
|
+
|
|
23
|
+
declare module '@atcute/lexicons/ambient' {
|
|
24
|
+
interface Records {
|
|
25
|
+
'sh.tangled.repo.collaborator': mainSchema;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.create', {
|
|
6
|
+
params: null,
|
|
7
|
+
input: {
|
|
8
|
+
type: 'lex',
|
|
9
|
+
schema: /*#__PURE__*/ v.object({
|
|
10
|
+
defaultBranch: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
11
|
+
rkey: /*#__PURE__*/ v.string(),
|
|
12
|
+
source: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
13
|
+
}),
|
|
14
|
+
},
|
|
15
|
+
output: null,
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
type main$schematype = typeof _mainSchema;
|
|
19
|
+
|
|
20
|
+
export interface mainSchema extends main$schematype {}
|
|
21
|
+
|
|
22
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
23
|
+
|
|
24
|
+
export interface $params {}
|
|
25
|
+
export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
|
|
26
|
+
|
|
27
|
+
declare module '@atcute/lexicons/ambient' {
|
|
28
|
+
interface XRPCProcedures {
|
|
29
|
+
'sh.tangled.repo.create': mainSchema;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.delete', {
|
|
6
|
+
params: null,
|
|
7
|
+
input: {
|
|
8
|
+
type: 'lex',
|
|
9
|
+
schema: /*#__PURE__*/ v.object({
|
|
10
|
+
did: /*#__PURE__*/ v.didString(),
|
|
11
|
+
name: /*#__PURE__*/ v.string(),
|
|
12
|
+
rkey: /*#__PURE__*/ v.string(),
|
|
13
|
+
}),
|
|
14
|
+
},
|
|
15
|
+
output: null,
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
type main$schematype = typeof _mainSchema;
|
|
19
|
+
|
|
20
|
+
export interface mainSchema extends main$schematype {}
|
|
21
|
+
|
|
22
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
23
|
+
|
|
24
|
+
export interface $params {}
|
|
25
|
+
export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
|
|
26
|
+
|
|
27
|
+
declare module '@atcute/lexicons/ambient' {
|
|
28
|
+
interface XRPCProcedures {
|
|
29
|
+
'sh.tangled.repo.delete': mainSchema;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.forkStatus', {
|
|
6
|
+
params: null,
|
|
7
|
+
input: {
|
|
8
|
+
type: 'lex',
|
|
9
|
+
schema: /*#__PURE__*/ v.object({
|
|
10
|
+
branch: /*#__PURE__*/ v.string(),
|
|
11
|
+
did: /*#__PURE__*/ v.didString(),
|
|
12
|
+
hiddenRef: /*#__PURE__*/ v.string(),
|
|
13
|
+
name: /*#__PURE__*/ v.string(),
|
|
14
|
+
source: /*#__PURE__*/ v.string(),
|
|
15
|
+
}),
|
|
16
|
+
},
|
|
17
|
+
output: {
|
|
18
|
+
type: 'lex',
|
|
19
|
+
schema: /*#__PURE__*/ v.object({
|
|
20
|
+
status: /*#__PURE__*/ v.integer(),
|
|
21
|
+
}),
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
type main$schematype = typeof _mainSchema;
|
|
26
|
+
|
|
27
|
+
export interface mainSchema extends main$schematype {}
|
|
28
|
+
|
|
29
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
30
|
+
|
|
31
|
+
export interface $params {}
|
|
32
|
+
export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
|
|
33
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
|
|
34
|
+
|
|
35
|
+
declare module '@atcute/lexicons/ambient' {
|
|
36
|
+
interface XRPCProcedures {
|
|
37
|
+
'sh.tangled.repo.forkStatus': mainSchema;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -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.procedure('sh.tangled.repo.forkSync', {
|
|
6
|
+
params: null,
|
|
7
|
+
input: {
|
|
8
|
+
type: 'lex',
|
|
9
|
+
schema: /*#__PURE__*/ v.object({
|
|
10
|
+
branch: /*#__PURE__*/ v.string(),
|
|
11
|
+
did: /*#__PURE__*/ v.didString(),
|
|
12
|
+
name: /*#__PURE__*/ v.string(),
|
|
13
|
+
source: /*#__PURE__*/ v.resourceUriString(),
|
|
14
|
+
}),
|
|
15
|
+
},
|
|
16
|
+
output: null,
|
|
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 {}
|
|
26
|
+
export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
|
|
27
|
+
|
|
28
|
+
declare module '@atcute/lexicons/ambient' {
|
|
29
|
+
interface XRPCProcedures {
|
|
30
|
+
'sh.tangled.repo.forkSync': mainSchema;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.hiddenRef', {
|
|
6
|
+
params: null,
|
|
7
|
+
input: {
|
|
8
|
+
type: 'lex',
|
|
9
|
+
schema: /*#__PURE__*/ v.object({
|
|
10
|
+
forkRef: /*#__PURE__*/ v.string(),
|
|
11
|
+
remoteRef: /*#__PURE__*/ v.string(),
|
|
12
|
+
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
13
|
+
}),
|
|
14
|
+
},
|
|
15
|
+
output: {
|
|
16
|
+
type: 'lex',
|
|
17
|
+
schema: /*#__PURE__*/ v.object({
|
|
18
|
+
error: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
19
|
+
ref: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
20
|
+
success: /*#__PURE__*/ v.boolean(),
|
|
21
|
+
}),
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
type main$schematype = typeof _mainSchema;
|
|
26
|
+
|
|
27
|
+
export interface mainSchema extends main$schematype {}
|
|
28
|
+
|
|
29
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
30
|
+
|
|
31
|
+
export interface $params {}
|
|
32
|
+
export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
|
|
33
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
|
|
34
|
+
|
|
35
|
+
declare module '@atcute/lexicons/ambient' {
|
|
36
|
+
interface XRPCProcedures {
|
|
37
|
+
'sh.tangled.repo.hiddenRef': mainSchema;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.listSecrets', {
|
|
6
|
+
params: /*#__PURE__*/ v.object({
|
|
7
|
+
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
8
|
+
}),
|
|
9
|
+
output: {
|
|
10
|
+
type: 'lex',
|
|
11
|
+
schema: /*#__PURE__*/ v.object({
|
|
12
|
+
get secrets() {
|
|
13
|
+
return /*#__PURE__*/ v.array(secretSchema);
|
|
14
|
+
},
|
|
15
|
+
}),
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
const _secretSchema = /*#__PURE__*/ v.object({
|
|
19
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.listSecrets#secret')),
|
|
20
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
21
|
+
createdBy: /*#__PURE__*/ v.didString(),
|
|
22
|
+
key: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 50)]),
|
|
23
|
+
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
type main$schematype = typeof _mainSchema;
|
|
27
|
+
type secret$schematype = typeof _secretSchema;
|
|
28
|
+
|
|
29
|
+
export interface mainSchema extends main$schematype {}
|
|
30
|
+
export interface secretSchema extends secret$schematype {}
|
|
31
|
+
|
|
32
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
33
|
+
export const secretSchema = _secretSchema as secretSchema;
|
|
34
|
+
|
|
35
|
+
export interface Secret extends v.InferInput<typeof secretSchema> {}
|
|
36
|
+
|
|
37
|
+
export interface $params extends v.InferInput<mainSchema['params']> {}
|
|
38
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
|
|
39
|
+
|
|
40
|
+
declare module '@atcute/lexicons/ambient' {
|
|
41
|
+
interface XRPCQueries {
|
|
42
|
+
'sh.tangled.repo.listSecrets': mainSchema;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.merge', {
|
|
6
|
+
params: null,
|
|
7
|
+
input: {
|
|
8
|
+
type: 'lex',
|
|
9
|
+
schema: /*#__PURE__*/ v.object({
|
|
10
|
+
authorEmail: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
11
|
+
authorName: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
12
|
+
branch: /*#__PURE__*/ v.string(),
|
|
13
|
+
commitBody: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
14
|
+
commitMessage: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
15
|
+
did: /*#__PURE__*/ v.didString(),
|
|
16
|
+
name: /*#__PURE__*/ v.string(),
|
|
17
|
+
patch: /*#__PURE__*/ v.string(),
|
|
18
|
+
}),
|
|
19
|
+
},
|
|
20
|
+
output: null,
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
type main$schematype = typeof _mainSchema;
|
|
24
|
+
|
|
25
|
+
export interface mainSchema extends main$schematype {}
|
|
26
|
+
|
|
27
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
28
|
+
|
|
29
|
+
export interface $params {}
|
|
30
|
+
export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
|
|
31
|
+
|
|
32
|
+
declare module '@atcute/lexicons/ambient' {
|
|
33
|
+
interface XRPCProcedures {
|
|
34
|
+
'sh.tangled.repo.merge': mainSchema;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
|
|
5
|
+
const _conflictInfoSchema = /*#__PURE__*/ v.object({
|
|
6
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.mergeCheck#conflictInfo')),
|
|
7
|
+
filename: /*#__PURE__*/ v.string(),
|
|
8
|
+
reason: /*#__PURE__*/ v.string(),
|
|
9
|
+
});
|
|
10
|
+
const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.mergeCheck', {
|
|
11
|
+
params: null,
|
|
12
|
+
input: {
|
|
13
|
+
type: 'lex',
|
|
14
|
+
schema: /*#__PURE__*/ v.object({
|
|
15
|
+
branch: /*#__PURE__*/ v.string(),
|
|
16
|
+
did: /*#__PURE__*/ v.didString(),
|
|
17
|
+
name: /*#__PURE__*/ v.string(),
|
|
18
|
+
patch: /*#__PURE__*/ v.string(),
|
|
19
|
+
}),
|
|
20
|
+
},
|
|
21
|
+
output: {
|
|
22
|
+
type: 'lex',
|
|
23
|
+
schema: /*#__PURE__*/ v.object({
|
|
24
|
+
get conflicts() {
|
|
25
|
+
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(conflictInfoSchema));
|
|
26
|
+
},
|
|
27
|
+
error: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
28
|
+
is_conflicted: /*#__PURE__*/ v.boolean(),
|
|
29
|
+
message: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
30
|
+
}),
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
type conflictInfo$schematype = typeof _conflictInfoSchema;
|
|
35
|
+
type main$schematype = typeof _mainSchema;
|
|
36
|
+
|
|
37
|
+
export interface conflictInfoSchema extends conflictInfo$schematype {}
|
|
38
|
+
export interface mainSchema extends main$schematype {}
|
|
39
|
+
|
|
40
|
+
export const conflictInfoSchema = _conflictInfoSchema as conflictInfoSchema;
|
|
41
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
42
|
+
|
|
43
|
+
export interface ConflictInfo extends v.InferInput<typeof conflictInfoSchema> {}
|
|
44
|
+
|
|
45
|
+
export interface $params {}
|
|
46
|
+
export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
|
|
47
|
+
export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
|
|
48
|
+
|
|
49
|
+
declare module '@atcute/lexicons/ambient' {
|
|
50
|
+
interface XRPCProcedures {
|
|
51
|
+
'sh.tangled.repo.mergeCheck': mainSchema;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -7,11 +7,8 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
7
7
|
/*#__PURE__*/ v.object({
|
|
8
8
|
$type: /*#__PURE__*/ v.literal('sh.tangled.repo.pull.comment'),
|
|
9
9
|
body: /*#__PURE__*/ v.string(),
|
|
10
|
-
commentId: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
|
|
11
10
|
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
12
|
-
owner: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()),
|
|
13
11
|
pull: /*#__PURE__*/ v.resourceUriString(),
|
|
14
|
-
repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()),
|
|
15
12
|
}),
|
|
16
13
|
);
|
|
17
14
|
|
|
@@ -9,12 +9,12 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
9
9
|
body: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
10
10
|
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
11
11
|
patch: /*#__PURE__*/ v.string(),
|
|
12
|
-
pullId: /*#__PURE__*/ v.integer(),
|
|
13
12
|
get source() {
|
|
14
13
|
return /*#__PURE__*/ v.optional(sourceSchema);
|
|
15
14
|
},
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
get target() {
|
|
16
|
+
return targetSchema;
|
|
17
|
+
},
|
|
18
18
|
title: /*#__PURE__*/ v.string(),
|
|
19
19
|
}),
|
|
20
20
|
);
|
|
@@ -22,19 +22,29 @@ const _sourceSchema = /*#__PURE__*/ v.object({
|
|
|
22
22
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.pull#source')),
|
|
23
23
|
branch: /*#__PURE__*/ v.string(),
|
|
24
24
|
repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()),
|
|
25
|
+
sha: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(40, 40)]),
|
|
26
|
+
});
|
|
27
|
+
const _targetSchema = /*#__PURE__*/ v.object({
|
|
28
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.pull#target')),
|
|
29
|
+
branch: /*#__PURE__*/ v.string(),
|
|
30
|
+
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
25
31
|
});
|
|
26
32
|
|
|
27
33
|
type main$schematype = typeof _mainSchema;
|
|
28
34
|
type source$schematype = typeof _sourceSchema;
|
|
35
|
+
type target$schematype = typeof _targetSchema;
|
|
29
36
|
|
|
30
37
|
export interface mainSchema extends main$schematype {}
|
|
31
38
|
export interface sourceSchema extends source$schematype {}
|
|
39
|
+
export interface targetSchema extends target$schematype {}
|
|
32
40
|
|
|
33
41
|
export const mainSchema = _mainSchema as mainSchema;
|
|
34
42
|
export const sourceSchema = _sourceSchema as sourceSchema;
|
|
43
|
+
export const targetSchema = _targetSchema as targetSchema;
|
|
35
44
|
|
|
36
45
|
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
37
46
|
export interface Source extends v.InferInput<typeof sourceSchema> {}
|
|
47
|
+
export interface Target extends v.InferInput<typeof targetSchema> {}
|
|
38
48
|
|
|
39
49
|
declare module '@atcute/lexicons/ambient' {
|
|
40
50
|
interface Records {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.removeSecret', {
|
|
6
|
+
params: null,
|
|
7
|
+
input: {
|
|
8
|
+
type: 'lex',
|
|
9
|
+
schema: /*#__PURE__*/ v.object({
|
|
10
|
+
key: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 50)]),
|
|
11
|
+
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
12
|
+
}),
|
|
13
|
+
},
|
|
14
|
+
output: null,
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
type main$schematype = typeof _mainSchema;
|
|
18
|
+
|
|
19
|
+
export interface mainSchema extends main$schematype {}
|
|
20
|
+
|
|
21
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
22
|
+
|
|
23
|
+
export interface $params {}
|
|
24
|
+
export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
|
|
25
|
+
|
|
26
|
+
declare module '@atcute/lexicons/ambient' {
|
|
27
|
+
interface XRPCProcedures {
|
|
28
|
+
'sh.tangled.repo.removeSecret': mainSchema;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.setDefaultBranch', {
|
|
6
|
+
params: null,
|
|
7
|
+
input: {
|
|
8
|
+
type: 'lex',
|
|
9
|
+
schema: /*#__PURE__*/ v.object({
|
|
10
|
+
defaultBranch: /*#__PURE__*/ v.string(),
|
|
11
|
+
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
12
|
+
}),
|
|
13
|
+
},
|
|
14
|
+
output: null,
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
type main$schematype = typeof _mainSchema;
|
|
18
|
+
|
|
19
|
+
export interface mainSchema extends main$schematype {}
|
|
20
|
+
|
|
21
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
22
|
+
|
|
23
|
+
export interface $params {}
|
|
24
|
+
export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
|
|
25
|
+
|
|
26
|
+
declare module '@atcute/lexicons/ambient' {
|
|
27
|
+
interface XRPCProcedures {
|
|
28
|
+
'sh.tangled.repo.setDefaultBranch': mainSchema;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -14,6 +14,7 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
14
14
|
name: /*#__PURE__*/ v.string(),
|
|
15
15
|
owner: /*#__PURE__*/ v.didString(),
|
|
16
16
|
source: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()),
|
|
17
|
+
spindle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
17
18
|
}),
|
|
18
19
|
);
|
|
19
20
|
|
|
@@ -0,0 +1,27 @@
|
|
|
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.record(
|
|
6
|
+
/*#__PURE__*/ v.tidString(),
|
|
7
|
+
/*#__PURE__*/ v.object({
|
|
8
|
+
$type: /*#__PURE__*/ v.literal('sh.tangled.spindle.member'),
|
|
9
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
10
|
+
instance: /*#__PURE__*/ v.string(),
|
|
11
|
+
subject: /*#__PURE__*/ v.didString(),
|
|
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 Main extends v.InferInput<typeof mainSchema> {}
|
|
22
|
+
|
|
23
|
+
declare module '@atcute/lexicons/ambient' {
|
|
24
|
+
interface Records {
|
|
25
|
+
'sh.tangled.spindle.member': mainSchema;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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.record(
|
|
6
|
+
/*#__PURE__*/ v.string(),
|
|
7
|
+
/*#__PURE__*/ v.object({
|
|
8
|
+
$type: /*#__PURE__*/ v.literal('sh.tangled.spindle'),
|
|
9
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
10
|
+
}),
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
type main$schematype = typeof _mainSchema;
|
|
14
|
+
|
|
15
|
+
export interface mainSchema extends main$schematype {}
|
|
16
|
+
|
|
17
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
18
|
+
|
|
19
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
20
|
+
|
|
21
|
+
declare module '@atcute/lexicons/ambient' {
|
|
22
|
+
interface Records {
|
|
23
|
+
'sh.tangled.spindle': mainSchema;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.record(
|
|
6
|
+
/*#__PURE__*/ v.tidString(),
|
|
7
|
+
/*#__PURE__*/ v.object({
|
|
8
|
+
$type: /*#__PURE__*/ v.literal('sh.tangled.string'),
|
|
9
|
+
contents: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringGraphemes(1)]),
|
|
10
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
11
|
+
description: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
12
|
+
/*#__PURE__*/ v.stringGraphemes(0, 280),
|
|
13
|
+
]),
|
|
14
|
+
filename: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringGraphemes(1, 140)]),
|
|
15
|
+
}),
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
type main$schematype = typeof _mainSchema;
|
|
19
|
+
|
|
20
|
+
export interface mainSchema extends main$schematype {}
|
|
21
|
+
|
|
22
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
23
|
+
|
|
24
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
25
|
+
|
|
26
|
+
declare module '@atcute/lexicons/ambient' {
|
|
27
|
+
interface Records {
|
|
28
|
+
'sh.tangled.string': mainSchema;
|
|
29
|
+
}
|
|
30
|
+
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@atcute/tangled",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"description": "Tangled (sh.tangled.*) schema definitions",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"atcute",
|
|
8
8
|
"atproto",
|
|
9
9
|
"tangled"
|
|
10
10
|
],
|
|
11
|
-
"license": "
|
|
11
|
+
"license": "0BSD",
|
|
12
12
|
"repository": {
|
|
13
13
|
"url": "https://github.com/mary-ext/atcute",
|
|
14
14
|
"directory": "packages/definitions/tangled"
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"./types/*": "./dist/lexicons/types/sh/tangled/*.js"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atcute/atproto": "^3.
|
|
28
|
-
"@atcute/lexicons": "^1.
|
|
27
|
+
"@atcute/atproto": "^3.1.2",
|
|
28
|
+
"@atcute/lexicons": "^1.1.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@atcute/tangled": "file:",
|
|
32
|
-
"vitest": "^3.
|
|
33
|
-
"@atcute/lex-cli": "^2.0
|
|
32
|
+
"vitest": "^3.2.4",
|
|
33
|
+
"@atcute/lex-cli": "^2.2.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsc",
|