@atcute/tangled 1.0.1 → 1.0.3
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 +12 -0
- package/dist/lexicons/index.js +12 -0
- package/dist/lexicons/index.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/actor/profile.d.ts +2 -2
- package/dist/lexicons/types/sh/tangled/actor/profile.js +12 -12
- package/dist/lexicons/types/sh/tangled/actor/profile.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/feed/star.d.ts +1 -1
- package/dist/lexicons/types/sh/tangled/feed/star.js +1 -1
- package/dist/lexicons/types/sh/tangled/feed/star.js.map +1 -1
- 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/graph/follow.d.ts +1 -1
- package/dist/lexicons/types/sh/tangled/graph/follow.js +1 -1
- package/dist/lexicons/types/sh/tangled/graph/follow.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/knot/member.d.ts +2 -2
- package/dist/lexicons/types/sh/tangled/knot/member.js +2 -2
- package/dist/lexicons/types/sh/tangled/knot/member.js.map +1 -1
- 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/publicKey.d.ts +1 -1
- package/dist/lexicons/types/sh/tangled/publicKey.js +1 -1
- package/dist/lexicons/types/sh/tangled/publicKey.js.map +1 -1
- 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/artifact.d.ts +2 -2
- package/dist/lexicons/types/sh/tangled/repo/artifact.js +2 -2
- package/dist/lexicons/types/sh/tangled/repo/artifact.js.map +1 -1
- 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/issue/comment.d.ts +4 -4
- package/dist/lexicons/types/sh/tangled/repo/issue/comment.js +4 -4
- package/dist/lexicons/types/sh/tangled/repo/issue/comment.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/issue/state.d.ts +1 -1
- package/dist/lexicons/types/sh/tangled/repo/issue.d.ts +3 -3
- package/dist/lexicons/types/sh/tangled/repo/issue.js +3 -3
- package/dist/lexicons/types/sh/tangled/repo/issue.js.map +1 -1
- 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/pull/comment.d.ts +4 -4
- package/dist/lexicons/types/sh/tangled/repo/pull/comment.js +4 -4
- package/dist/lexicons/types/sh/tangled/repo/pull/comment.js.map +1 -1
- package/dist/lexicons/types/sh/tangled/repo/pull/status.d.ts +1 -1
- package/dist/lexicons/types/sh/tangled/repo/pull.d.ts +6 -5
- package/dist/lexicons/types/sh/tangled/repo/pull.js +6 -5
- 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 +4 -3
- package/dist/lexicons/types/sh/tangled/repo.js +5 -4
- 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 +12 -0
- package/lib/lexicons/types/sh/tangled/actor/profile.ts +15 -15
- package/lib/lexicons/types/sh/tangled/feed/reaction.ts +27 -0
- package/lib/lexicons/types/sh/tangled/feed/star.ts +1 -1
- package/lib/lexicons/types/sh/tangled/git/refUpdate.ts +91 -0
- package/lib/lexicons/types/sh/tangled/graph/follow.ts +1 -1
- package/lib/lexicons/types/sh/tangled/knot/member.ts +2 -2
- 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/publicKey.ts +1 -1
- package/lib/lexicons/types/sh/tangled/repo/addSecret.ts +31 -0
- package/lib/lexicons/types/sh/tangled/repo/artifact.ts +2 -2
- package/lib/lexicons/types/sh/tangled/repo/collaborator.ts +27 -0
- package/lib/lexicons/types/sh/tangled/repo/issue/comment.ts +4 -4
- package/lib/lexicons/types/sh/tangled/repo/issue/state.ts +1 -1
- package/lib/lexicons/types/sh/tangled/repo/issue.ts +3 -3
- package/lib/lexicons/types/sh/tangled/repo/listSecrets.ts +44 -0
- package/lib/lexicons/types/sh/tangled/repo/pull/comment.ts +4 -4
- package/lib/lexicons/types/sh/tangled/repo/pull/status.ts +1 -1
- package/lib/lexicons/types/sh/tangled/repo/pull.ts +6 -5
- 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 +5 -4
- 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,124 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
|
|
5
|
+
const _cloneOptsSchema = /*#__PURE__*/ v.object({
|
|
6
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.pipeline#cloneOpts')),
|
|
7
|
+
depth: /*#__PURE__*/ v.integer(),
|
|
8
|
+
skip: /*#__PURE__*/ v.boolean(),
|
|
9
|
+
submodules: /*#__PURE__*/ v.boolean(),
|
|
10
|
+
});
|
|
11
|
+
const _mainSchema = /*#__PURE__*/ v.record(
|
|
12
|
+
/*#__PURE__*/ v.tidString(),
|
|
13
|
+
/*#__PURE__*/ v.object({
|
|
14
|
+
$type: /*#__PURE__*/ v.literal('sh.tangled.pipeline'),
|
|
15
|
+
get triggerMetadata() {
|
|
16
|
+
return triggerMetadataSchema;
|
|
17
|
+
},
|
|
18
|
+
get workflows() {
|
|
19
|
+
return /*#__PURE__*/ v.array(workflowSchema);
|
|
20
|
+
},
|
|
21
|
+
}),
|
|
22
|
+
);
|
|
23
|
+
const _manualTriggerDataSchema = /*#__PURE__*/ v.object({
|
|
24
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.pipeline#manualTriggerData')),
|
|
25
|
+
get inputs() {
|
|
26
|
+
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(pairSchema));
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
const _pairSchema = /*#__PURE__*/ v.object({
|
|
30
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.pipeline#pair')),
|
|
31
|
+
key: /*#__PURE__*/ v.string(),
|
|
32
|
+
value: /*#__PURE__*/ v.string(),
|
|
33
|
+
});
|
|
34
|
+
const _pullRequestTriggerDataSchema = /*#__PURE__*/ v.object({
|
|
35
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.pipeline#pullRequestTriggerData')),
|
|
36
|
+
action: /*#__PURE__*/ v.string(),
|
|
37
|
+
sourceBranch: /*#__PURE__*/ v.string(),
|
|
38
|
+
sourceSha: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(40, 40)]),
|
|
39
|
+
targetBranch: /*#__PURE__*/ v.string(),
|
|
40
|
+
});
|
|
41
|
+
const _pushTriggerDataSchema = /*#__PURE__*/ v.object({
|
|
42
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.pipeline#pushTriggerData')),
|
|
43
|
+
newSha: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(40, 40)]),
|
|
44
|
+
oldSha: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(40, 40)]),
|
|
45
|
+
ref: /*#__PURE__*/ v.string(),
|
|
46
|
+
});
|
|
47
|
+
const _triggerMetadataSchema = /*#__PURE__*/ v.object({
|
|
48
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.pipeline#triggerMetadata')),
|
|
49
|
+
kind: /*#__PURE__*/ v.literalEnum(['manual', 'pull_request', 'push']),
|
|
50
|
+
get manual() {
|
|
51
|
+
return /*#__PURE__*/ v.optional(manualTriggerDataSchema);
|
|
52
|
+
},
|
|
53
|
+
get pullRequest() {
|
|
54
|
+
return /*#__PURE__*/ v.optional(pullRequestTriggerDataSchema);
|
|
55
|
+
},
|
|
56
|
+
get push() {
|
|
57
|
+
return /*#__PURE__*/ v.optional(pushTriggerDataSchema);
|
|
58
|
+
},
|
|
59
|
+
get repo() {
|
|
60
|
+
return triggerRepoSchema;
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
const _triggerRepoSchema = /*#__PURE__*/ v.object({
|
|
64
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.pipeline#triggerRepo')),
|
|
65
|
+
defaultBranch: /*#__PURE__*/ v.string(),
|
|
66
|
+
did: /*#__PURE__*/ v.didString(),
|
|
67
|
+
knot: /*#__PURE__*/ v.string(),
|
|
68
|
+
repo: /*#__PURE__*/ v.string(),
|
|
69
|
+
});
|
|
70
|
+
const _workflowSchema = /*#__PURE__*/ v.object({
|
|
71
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.pipeline#workflow')),
|
|
72
|
+
get clone() {
|
|
73
|
+
return cloneOptsSchema;
|
|
74
|
+
},
|
|
75
|
+
engine: /*#__PURE__*/ v.string(),
|
|
76
|
+
name: /*#__PURE__*/ v.string(),
|
|
77
|
+
raw: /*#__PURE__*/ v.string(),
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
type cloneOpts$schematype = typeof _cloneOptsSchema;
|
|
81
|
+
type main$schematype = typeof _mainSchema;
|
|
82
|
+
type manualTriggerData$schematype = typeof _manualTriggerDataSchema;
|
|
83
|
+
type pair$schematype = typeof _pairSchema;
|
|
84
|
+
type pullRequestTriggerData$schematype = typeof _pullRequestTriggerDataSchema;
|
|
85
|
+
type pushTriggerData$schematype = typeof _pushTriggerDataSchema;
|
|
86
|
+
type triggerMetadata$schematype = typeof _triggerMetadataSchema;
|
|
87
|
+
type triggerRepo$schematype = typeof _triggerRepoSchema;
|
|
88
|
+
type workflow$schematype = typeof _workflowSchema;
|
|
89
|
+
|
|
90
|
+
export interface cloneOptsSchema extends cloneOpts$schematype {}
|
|
91
|
+
export interface mainSchema extends main$schematype {}
|
|
92
|
+
export interface manualTriggerDataSchema extends manualTriggerData$schematype {}
|
|
93
|
+
export interface pairSchema extends pair$schematype {}
|
|
94
|
+
export interface pullRequestTriggerDataSchema extends pullRequestTriggerData$schematype {}
|
|
95
|
+
export interface pushTriggerDataSchema extends pushTriggerData$schematype {}
|
|
96
|
+
export interface triggerMetadataSchema extends triggerMetadata$schematype {}
|
|
97
|
+
export interface triggerRepoSchema extends triggerRepo$schematype {}
|
|
98
|
+
export interface workflowSchema extends workflow$schematype {}
|
|
99
|
+
|
|
100
|
+
export const cloneOptsSchema = _cloneOptsSchema as cloneOptsSchema;
|
|
101
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
102
|
+
export const manualTriggerDataSchema = _manualTriggerDataSchema as manualTriggerDataSchema;
|
|
103
|
+
export const pairSchema = _pairSchema as pairSchema;
|
|
104
|
+
export const pullRequestTriggerDataSchema = _pullRequestTriggerDataSchema as pullRequestTriggerDataSchema;
|
|
105
|
+
export const pushTriggerDataSchema = _pushTriggerDataSchema as pushTriggerDataSchema;
|
|
106
|
+
export const triggerMetadataSchema = _triggerMetadataSchema as triggerMetadataSchema;
|
|
107
|
+
export const triggerRepoSchema = _triggerRepoSchema as triggerRepoSchema;
|
|
108
|
+
export const workflowSchema = _workflowSchema as workflowSchema;
|
|
109
|
+
|
|
110
|
+
export interface CloneOpts extends v.InferInput<typeof cloneOptsSchema> {}
|
|
111
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
112
|
+
export interface ManualTriggerData extends v.InferInput<typeof manualTriggerDataSchema> {}
|
|
113
|
+
export interface Pair extends v.InferInput<typeof pairSchema> {}
|
|
114
|
+
export interface PullRequestTriggerData extends v.InferInput<typeof pullRequestTriggerDataSchema> {}
|
|
115
|
+
export interface PushTriggerData extends v.InferInput<typeof pushTriggerDataSchema> {}
|
|
116
|
+
export interface TriggerMetadata extends v.InferInput<typeof triggerMetadataSchema> {}
|
|
117
|
+
export interface TriggerRepo extends v.InferInput<typeof triggerRepoSchema> {}
|
|
118
|
+
export interface Workflow extends v.InferInput<typeof workflowSchema> {}
|
|
119
|
+
|
|
120
|
+
declare module '@atcute/lexicons/ambient' {
|
|
121
|
+
interface Records {
|
|
122
|
+
'sh.tangled.pipeline': mainSchema;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -6,9 +6,9 @@ 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
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
9
10
|
key: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 4096)]),
|
|
10
11
|
name: /*#__PURE__*/ v.string(),
|
|
11
|
-
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
12
12
|
}),
|
|
13
13
|
);
|
|
14
14
|
|
|
@@ -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.addSecret', {
|
|
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
|
+
value: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 200)]),
|
|
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.addSecret': mainSchema;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -6,11 +6,11 @@ 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
|
+
artifact: /*#__PURE__*/ v.blob(),
|
|
10
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
9
11
|
name: /*#__PURE__*/ v.string(),
|
|
10
12
|
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
11
13
|
tag: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.bytes(), [/*#__PURE__*/ v.bytesSize(20, 20)]),
|
|
12
|
-
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
13
|
-
artifact: /*#__PURE__*/ v.blob(),
|
|
14
14
|
}),
|
|
15
15
|
);
|
|
16
16
|
|
|
@@ -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
|
+
}
|
|
@@ -6,12 +6,12 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
6
6
|
/*#__PURE__*/ v.tidString(),
|
|
7
7
|
/*#__PURE__*/ v.object({
|
|
8
8
|
$type: /*#__PURE__*/ v.literal('sh.tangled.repo.issue.comment'),
|
|
9
|
-
issue: /*#__PURE__*/ v.resourceUriString(),
|
|
10
|
-
repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()),
|
|
11
|
-
commentId: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
|
|
12
|
-
owner: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()),
|
|
13
9
|
body: /*#__PURE__*/ v.string(),
|
|
10
|
+
commentId: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
|
|
14
11
|
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
12
|
+
issue: /*#__PURE__*/ v.resourceUriString(),
|
|
13
|
+
owner: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()),
|
|
14
|
+
repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()),
|
|
15
15
|
}),
|
|
16
16
|
);
|
|
17
17
|
|
|
@@ -9,7 +9,7 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
9
9
|
issue: /*#__PURE__*/ v.resourceUriString(),
|
|
10
10
|
state: /*#__PURE__*/ v.optional(
|
|
11
11
|
/*#__PURE__*/ v.string<
|
|
12
|
-
'sh.tangled.repo.issue.state.
|
|
12
|
+
'sh.tangled.repo.issue.state.closed' | 'sh.tangled.repo.issue.state.open' | (string & {})
|
|
13
13
|
>(),
|
|
14
14
|
'sh.tangled.repo.issue.state.open',
|
|
15
15
|
),
|
|
@@ -6,12 +6,12 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
6
6
|
/*#__PURE__*/ v.tidString(),
|
|
7
7
|
/*#__PURE__*/ v.object({
|
|
8
8
|
$type: /*#__PURE__*/ v.literal('sh.tangled.repo.issue'),
|
|
9
|
-
|
|
9
|
+
body: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
10
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
10
11
|
issueId: /*#__PURE__*/ v.integer(),
|
|
11
12
|
owner: /*#__PURE__*/ v.didString(),
|
|
13
|
+
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
12
14
|
title: /*#__PURE__*/ v.string(),
|
|
13
|
-
body: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
14
|
-
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
15
15
|
}),
|
|
16
16
|
);
|
|
17
17
|
|
|
@@ -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
|
+
}
|
|
@@ -6,12 +6,12 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
6
6
|
/*#__PURE__*/ v.tidString(),
|
|
7
7
|
/*#__PURE__*/ v.object({
|
|
8
8
|
$type: /*#__PURE__*/ v.literal('sh.tangled.repo.pull.comment'),
|
|
9
|
-
pull: /*#__PURE__*/ v.resourceUriString(),
|
|
10
|
-
repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()),
|
|
11
|
-
commentId: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
|
|
12
|
-
owner: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()),
|
|
13
9
|
body: /*#__PURE__*/ v.string(),
|
|
10
|
+
commentId: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
|
|
14
11
|
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
12
|
+
owner: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()),
|
|
13
|
+
pull: /*#__PURE__*/ v.resourceUriString(),
|
|
14
|
+
repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()),
|
|
15
15
|
}),
|
|
16
16
|
);
|
|
17
17
|
|
|
@@ -9,9 +9,9 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
9
9
|
pull: /*#__PURE__*/ v.resourceUriString(),
|
|
10
10
|
status: /*#__PURE__*/ v.optional(
|
|
11
11
|
/*#__PURE__*/ v.string<
|
|
12
|
-
| 'sh.tangled.repo.pull.status.open'
|
|
13
12
|
| 'sh.tangled.repo.pull.status.closed'
|
|
14
13
|
| 'sh.tangled.repo.pull.status.merged'
|
|
14
|
+
| 'sh.tangled.repo.pull.status.open'
|
|
15
15
|
| (string & {})
|
|
16
16
|
>(),
|
|
17
17
|
'sh.tangled.repo.pull.status.open',
|
|
@@ -6,22 +6,23 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
6
6
|
/*#__PURE__*/ v.tidString(),
|
|
7
7
|
/*#__PURE__*/ v.object({
|
|
8
8
|
$type: /*#__PURE__*/ v.literal('sh.tangled.repo.pull'),
|
|
9
|
-
targetRepo: /*#__PURE__*/ v.resourceUriString(),
|
|
10
|
-
targetBranch: /*#__PURE__*/ v.string(),
|
|
11
|
-
pullId: /*#__PURE__*/ v.integer(),
|
|
12
|
-
title: /*#__PURE__*/ v.string(),
|
|
13
9
|
body: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
10
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
14
11
|
patch: /*#__PURE__*/ v.string(),
|
|
12
|
+
pullId: /*#__PURE__*/ v.integer(),
|
|
15
13
|
get source() {
|
|
16
14
|
return /*#__PURE__*/ v.optional(sourceSchema);
|
|
17
15
|
},
|
|
18
|
-
|
|
16
|
+
targetBranch: /*#__PURE__*/ v.string(),
|
|
17
|
+
targetRepo: /*#__PURE__*/ v.resourceUriString(),
|
|
18
|
+
title: /*#__PURE__*/ v.string(),
|
|
19
19
|
}),
|
|
20
20
|
);
|
|
21
21
|
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)]),
|
|
25
26
|
});
|
|
26
27
|
|
|
27
28
|
type main$schematype = typeof _mainSchema;
|
|
@@ -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
|
+
}
|
|
@@ -6,14 +6,15 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
6
6
|
/*#__PURE__*/ v.tidString(),
|
|
7
7
|
/*#__PURE__*/ v.object({
|
|
8
8
|
$type: /*#__PURE__*/ v.literal('sh.tangled.repo'),
|
|
9
|
-
|
|
10
|
-
owner: /*#__PURE__*/ v.didString(),
|
|
11
|
-
knot: /*#__PURE__*/ v.string(),
|
|
9
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
12
10
|
description: /*#__PURE__*/ v.optional(
|
|
13
11
|
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.datetimeString(), [/*#__PURE__*/ v.stringGraphemes(1, 140)]),
|
|
14
12
|
),
|
|
13
|
+
knot: /*#__PURE__*/ v.string(),
|
|
14
|
+
name: /*#__PURE__*/ v.string(),
|
|
15
|
+
owner: /*#__PURE__*/ v.didString(),
|
|
15
16
|
source: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()),
|
|
16
|
-
|
|
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.3",
|
|
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/
|
|
28
|
-
"@atcute/
|
|
27
|
+
"@atcute/lexicons": "^1.1.1",
|
|
28
|
+
"@atcute/atproto": "^3.1.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@atcute/tangled": "file:",
|
|
32
|
-
"vitest": "^3.
|
|
33
|
-
"@atcute/lex-cli": "^2.
|
|
32
|
+
"vitest": "^3.2.4",
|
|
33
|
+
"@atcute/lex-cli": "^2.1.1"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsc",
|