@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
|
@@ -6,19 +6,26 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
6
6
|
body: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
7
7
|
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
8
8
|
patch: /*#__PURE__*/ v.string(),
|
|
9
|
-
pullId: /*#__PURE__*/ v.integer(),
|
|
10
9
|
get source() {
|
|
11
10
|
return /*#__PURE__*/ v.optional(sourceSchema);
|
|
12
11
|
},
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
get target() {
|
|
13
|
+
return targetSchema;
|
|
14
|
+
},
|
|
15
15
|
title: /*#__PURE__*/ v.string(),
|
|
16
16
|
}));
|
|
17
17
|
const _sourceSchema = /*#__PURE__*/ v.object({
|
|
18
18
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.pull#source')),
|
|
19
19
|
branch: /*#__PURE__*/ v.string(),
|
|
20
20
|
repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()),
|
|
21
|
+
sha: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(40, 40)]),
|
|
22
|
+
});
|
|
23
|
+
const _targetSchema = /*#__PURE__*/ v.object({
|
|
24
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.pull#target')),
|
|
25
|
+
branch: /*#__PURE__*/ v.string(),
|
|
26
|
+
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
21
27
|
});
|
|
22
28
|
export const mainSchema = _mainSchema;
|
|
23
29
|
export const sourceSchema = _sourceSchema;
|
|
30
|
+
export const targetSchema = _targetSchema;
|
|
24
31
|
//# sourceMappingURL=pull.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pull.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/sh/tangled/repo/pull.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM;AACzC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;AAC3B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;IACtD,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACxD,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;IAC3C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;IAC/B,MAAM,
|
|
1
|
+
{"version":3,"file":"pull.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/sh/tangled/repo/pull.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM;AACzC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;AAC3B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;IACtD,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACxD,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;IAC3C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;IAC/B,IAAI,MAAM;QACT,OAAO,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;IAC/C,CAAC;IACD,IAAI,MAAM;QACT,OAAO,YAAY,CAAC;IACrB,CAAC;IACD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;CAC/B,CAAC,CACF,CAAC;AACF,MAAM,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC5C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,6BAA6B,CAAC,CAAC;IACvF,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;IAChC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;IACnE,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;CAChG,CAAC,CAAC;AACH,MAAM,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC5C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,6BAA6B,CAAC,CAAC;IACvF,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;IAChC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,iBAAiB,EAAE;CACzC,CAAC,CAAC;AAUH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC;AACpD,MAAM,CAAC,MAAM,YAAY,GAAG,aAA6B,CAAC;AAC1D,MAAM,CAAC,MAAM,YAAY,GAAG,aAA6B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
declare const _mainSchema: v.XRPCProcedureMetadata<null, {
|
|
3
|
+
type: "lex";
|
|
4
|
+
schema: v.ObjectSchema<{
|
|
5
|
+
key: v.SchemaWithConstraint<v.StringSchema<string>, readonly [v.StringLengthConstraint<1, 50>]>;
|
|
6
|
+
repo: v.FormattedStringSchema<"at-uri">;
|
|
7
|
+
}>;
|
|
8
|
+
}, null, "sh.tangled.repo.removeSecret">;
|
|
9
|
+
type main$schematype = typeof _mainSchema;
|
|
10
|
+
export interface mainSchema extends main$schematype {
|
|
11
|
+
}
|
|
12
|
+
export declare const mainSchema: mainSchema;
|
|
13
|
+
export interface $params {
|
|
14
|
+
}
|
|
15
|
+
export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {
|
|
16
|
+
}
|
|
17
|
+
declare module '@atcute/lexicons/ambient' {
|
|
18
|
+
interface XRPCProcedures {
|
|
19
|
+
'sh.tangled.repo.removeSecret': mainSchema;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.removeSecret', {
|
|
3
|
+
params: null,
|
|
4
|
+
input: {
|
|
5
|
+
type: 'lex',
|
|
6
|
+
schema: /*#__PURE__*/ v.object({
|
|
7
|
+
key: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 50)]),
|
|
8
|
+
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
9
|
+
}),
|
|
10
|
+
},
|
|
11
|
+
output: null,
|
|
12
|
+
});
|
|
13
|
+
export const mainSchema = _mainSchema;
|
|
14
|
+
//# sourceMappingURL=removeSecret.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removeSecret.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/sh/tangled/repo/removeSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,8BAA8B,EAAE;IAC7E,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE;QACN,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;YAC9B,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;YAC/F,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,iBAAiB,EAAE;SACzC,CAAC;KACF;IACD,MAAM,EAAE,IAAI;CACZ,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
declare const _mainSchema: v.XRPCProcedureMetadata<null, {
|
|
3
|
+
type: "lex";
|
|
4
|
+
schema: v.ObjectSchema<{
|
|
5
|
+
defaultBranch: v.StringSchema<string>;
|
|
6
|
+
repo: v.FormattedStringSchema<"at-uri">;
|
|
7
|
+
}>;
|
|
8
|
+
}, null, "sh.tangled.repo.setDefaultBranch">;
|
|
9
|
+
type main$schematype = typeof _mainSchema;
|
|
10
|
+
export interface mainSchema extends main$schematype {
|
|
11
|
+
}
|
|
12
|
+
export declare const mainSchema: mainSchema;
|
|
13
|
+
export interface $params {
|
|
14
|
+
}
|
|
15
|
+
export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {
|
|
16
|
+
}
|
|
17
|
+
declare module '@atcute/lexicons/ambient' {
|
|
18
|
+
interface XRPCProcedures {
|
|
19
|
+
'sh.tangled.repo.setDefaultBranch': mainSchema;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.repo.setDefaultBranch', {
|
|
3
|
+
params: null,
|
|
4
|
+
input: {
|
|
5
|
+
type: 'lex',
|
|
6
|
+
schema: /*#__PURE__*/ v.object({
|
|
7
|
+
defaultBranch: /*#__PURE__*/ v.string(),
|
|
8
|
+
repo: /*#__PURE__*/ v.resourceUriString(),
|
|
9
|
+
}),
|
|
10
|
+
},
|
|
11
|
+
output: null,
|
|
12
|
+
});
|
|
13
|
+
export const mainSchema = _mainSchema;
|
|
14
|
+
//# sourceMappingURL=setDefaultBranch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setDefaultBranch.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/sh/tangled/repo/setDefaultBranch.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,kCAAkC,EAAE;IACjF,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE;QACN,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;YAC9B,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;YACvC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,iBAAiB,EAAE;SACzC,CAAC;KACF;IACD,MAAM,EAAE,IAAI;CACZ,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -7,6 +7,7 @@ declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
|
|
|
7
7
|
name: v.StringSchema<string>;
|
|
8
8
|
owner: v.FormattedStringSchema<"did">;
|
|
9
9
|
source: v.OptionalSchema<v.FormattedStringSchema<"uri">, undefined>;
|
|
10
|
+
spindle: v.OptionalSchema<v.StringSchema<string>, undefined>;
|
|
10
11
|
}>, v.FormattedStringSchema<"tid">>;
|
|
11
12
|
type main$schematype = typeof _mainSchema;
|
|
12
13
|
export interface mainSchema extends main$schematype {
|
|
@@ -10,6 +10,7 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
10
10
|
name: /*#__PURE__*/ v.string(),
|
|
11
11
|
owner: /*#__PURE__*/ v.didString(),
|
|
12
12
|
source: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()),
|
|
13
|
+
spindle: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
13
14
|
}));
|
|
14
15
|
export const mainSchema = _mainSchema;
|
|
15
16
|
//# sourceMappingURL=repo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repo.js","sourceRoot":"","sources":["../../../../../lib/lexicons/types/sh/tangled/repo.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM;AACzC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;AAC3B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC;IACjD,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;IAC3C,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IACpC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CACtG;IACD,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;IAC9B,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;IAC9B,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;IAClC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"repo.js","sourceRoot":"","sources":["../../../../../lib/lexicons/types/sh/tangled/repo.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM;AACzC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;AAC3B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC;IACjD,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;IAC3C,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IACpC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CACtG;IACD,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;IAC9B,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;IAC9B,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;IAClC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACpE,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC3D,CAAC,CACF,CAAC;AAMF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
|
|
3
|
+
$type: v.LiteralSchema<"sh.tangled.spindle.member">;
|
|
4
|
+
createdAt: v.FormattedStringSchema<"datetime">;
|
|
5
|
+
instance: v.StringSchema<string>;
|
|
6
|
+
subject: v.FormattedStringSchema<"did">;
|
|
7
|
+
}>, v.FormattedStringSchema<"tid">>;
|
|
8
|
+
type main$schematype = typeof _mainSchema;
|
|
9
|
+
export interface mainSchema extends main$schematype {
|
|
10
|
+
}
|
|
11
|
+
export declare const mainSchema: mainSchema;
|
|
12
|
+
export interface Main extends v.InferInput<typeof mainSchema> {
|
|
13
|
+
}
|
|
14
|
+
declare module '@atcute/lexicons/ambient' {
|
|
15
|
+
interface Records {
|
|
16
|
+
'sh.tangled.spindle.member': mainSchema;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
const _mainSchema = /*#__PURE__*/ v.record(
|
|
3
|
+
/*#__PURE__*/ v.tidString(),
|
|
4
|
+
/*#__PURE__*/ v.object({
|
|
5
|
+
$type: /*#__PURE__*/ v.literal('sh.tangled.spindle.member'),
|
|
6
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
7
|
+
instance: /*#__PURE__*/ v.string(),
|
|
8
|
+
subject: /*#__PURE__*/ v.didString(),
|
|
9
|
+
}));
|
|
10
|
+
export const mainSchema = _mainSchema;
|
|
11
|
+
//# sourceMappingURL=member.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"member.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/sh/tangled/spindle/member.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM;AACzC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;AAC3B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC;IAC3D,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;IAC3C,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;IAClC,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;CACpC,CAAC,CACF,CAAC;AAMF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
|
|
3
|
+
$type: v.LiteralSchema<"sh.tangled.spindle">;
|
|
4
|
+
createdAt: v.FormattedStringSchema<"datetime">;
|
|
5
|
+
}>, v.StringSchema<string>>;
|
|
6
|
+
type main$schematype = typeof _mainSchema;
|
|
7
|
+
export interface mainSchema extends main$schematype {
|
|
8
|
+
}
|
|
9
|
+
export declare const mainSchema: mainSchema;
|
|
10
|
+
export interface Main extends v.InferInput<typeof mainSchema> {
|
|
11
|
+
}
|
|
12
|
+
declare module '@atcute/lexicons/ambient' {
|
|
13
|
+
interface Records {
|
|
14
|
+
'sh.tangled.spindle': mainSchema;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
const _mainSchema = /*#__PURE__*/ v.record(
|
|
3
|
+
/*#__PURE__*/ v.string(),
|
|
4
|
+
/*#__PURE__*/ v.object({
|
|
5
|
+
$type: /*#__PURE__*/ v.literal('sh.tangled.spindle'),
|
|
6
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
7
|
+
}));
|
|
8
|
+
export const mainSchema = _mainSchema;
|
|
9
|
+
//# sourceMappingURL=spindle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spindle.js","sourceRoot":"","sources":["../../../../../lib/lexicons/types/sh/tangled/spindle.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM;AACzC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;AACxB,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;IACpD,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;CAC3C,CAAC,CACF,CAAC;AAMF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
|
|
3
|
+
$type: v.LiteralSchema<"sh.tangled.string">;
|
|
4
|
+
contents: v.SchemaWithConstraint<v.StringSchema<string>, readonly [v.StringGraphemesConstraint<1, number>]>;
|
|
5
|
+
createdAt: v.FormattedStringSchema<"datetime">;
|
|
6
|
+
description: v.SchemaWithConstraint<v.StringSchema<string>, readonly [v.StringGraphemesConstraint<0, 280>]>;
|
|
7
|
+
filename: v.SchemaWithConstraint<v.StringSchema<string>, readonly [v.StringGraphemesConstraint<1, 140>]>;
|
|
8
|
+
}>, v.FormattedStringSchema<"tid">>;
|
|
9
|
+
type main$schematype = typeof _mainSchema;
|
|
10
|
+
export interface mainSchema extends main$schematype {
|
|
11
|
+
}
|
|
12
|
+
export declare const mainSchema: mainSchema;
|
|
13
|
+
export interface Main extends v.InferInput<typeof mainSchema> {
|
|
14
|
+
}
|
|
15
|
+
declare module '@atcute/lexicons/ambient' {
|
|
16
|
+
interface Records {
|
|
17
|
+
'sh.tangled.string': mainSchema;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
const _mainSchema = /*#__PURE__*/ v.record(
|
|
3
|
+
/*#__PURE__*/ v.tidString(),
|
|
4
|
+
/*#__PURE__*/ v.object({
|
|
5
|
+
$type: /*#__PURE__*/ v.literal('sh.tangled.string'),
|
|
6
|
+
contents: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringGraphemes(1)]),
|
|
7
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
8
|
+
description: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
9
|
+
/*#__PURE__*/ v.stringGraphemes(0, 280),
|
|
10
|
+
]),
|
|
11
|
+
filename: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringGraphemes(1, 140)]),
|
|
12
|
+
}));
|
|
13
|
+
export const mainSchema = _mainSchema;
|
|
14
|
+
//# sourceMappingURL=string.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string.js","sourceRoot":"","sources":["../../../../../lib/lexicons/types/sh/tangled/string.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM;AACzC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;AAC3B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC;IACnD,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IACnG,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;IAC3C,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE;QAChE,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,EAAE,GAAG,CAAC;KACvC,CAAC;IACF,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;CACxG,CAAC,CACF,CAAC;AAMF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
package/lib/lexicons/index.ts
CHANGED
|
@@ -1,18 +1,38 @@
|
|
|
1
1
|
export * as ShTangledActorProfile from './types/sh/tangled/actor/profile.js';
|
|
2
|
+
export * as ShTangledFeedReaction from './types/sh/tangled/feed/reaction.js';
|
|
2
3
|
export * as ShTangledFeedStar from './types/sh/tangled/feed/star.js';
|
|
4
|
+
export * as ShTangledGitRefUpdate from './types/sh/tangled/git/refUpdate.js';
|
|
3
5
|
export * as ShTangledGraphFollow from './types/sh/tangled/graph/follow.js';
|
|
6
|
+
export * as ShTangledKnot from './types/sh/tangled/knot.js';
|
|
4
7
|
export * as ShTangledKnotMember from './types/sh/tangled/knot/member.js';
|
|
8
|
+
export * as ShTangledPipeline from './types/sh/tangled/pipeline.js';
|
|
9
|
+
export * as ShTangledPipelineStatus from './types/sh/tangled/pipeline/status.js';
|
|
5
10
|
export * as ShTangledPublicKey from './types/sh/tangled/publicKey.js';
|
|
6
11
|
export * as ShTangledRepo from './types/sh/tangled/repo.js';
|
|
12
|
+
export * as ShTangledRepoAddSecret from './types/sh/tangled/repo/addSecret.js';
|
|
7
13
|
export * as ShTangledRepoArtifact from './types/sh/tangled/repo/artifact.js';
|
|
14
|
+
export * as ShTangledRepoCollaborator from './types/sh/tangled/repo/collaborator.js';
|
|
15
|
+
export * as ShTangledRepoCreate from './types/sh/tangled/repo/create.js';
|
|
16
|
+
export * as ShTangledRepoDelete from './types/sh/tangled/repo/delete.js';
|
|
17
|
+
export * as ShTangledRepoForkStatus from './types/sh/tangled/repo/forkStatus.js';
|
|
18
|
+
export * as ShTangledRepoForkSync from './types/sh/tangled/repo/forkSync.js';
|
|
19
|
+
export * as ShTangledRepoHiddenRef from './types/sh/tangled/repo/hiddenRef.js';
|
|
8
20
|
export * as ShTangledRepoIssue from './types/sh/tangled/repo/issue.js';
|
|
9
21
|
export * as ShTangledRepoIssueComment from './types/sh/tangled/repo/issue/comment.js';
|
|
10
22
|
export * as ShTangledRepoIssueState from './types/sh/tangled/repo/issue/state.js';
|
|
11
23
|
export * as ShTangledRepoIssueStateClosed from './types/sh/tangled/repo/issue/state/closed.js';
|
|
12
24
|
export * as ShTangledRepoIssueStateOpen from './types/sh/tangled/repo/issue/state/open.js';
|
|
25
|
+
export * as ShTangledRepoListSecrets from './types/sh/tangled/repo/listSecrets.js';
|
|
26
|
+
export * as ShTangledRepoMerge from './types/sh/tangled/repo/merge.js';
|
|
27
|
+
export * as ShTangledRepoMergeCheck from './types/sh/tangled/repo/mergeCheck.js';
|
|
13
28
|
export * as ShTangledRepoPull from './types/sh/tangled/repo/pull.js';
|
|
14
29
|
export * as ShTangledRepoPullComment from './types/sh/tangled/repo/pull/comment.js';
|
|
15
30
|
export * as ShTangledRepoPullStatus from './types/sh/tangled/repo/pull/status.js';
|
|
16
31
|
export * as ShTangledRepoPullStatusClosed from './types/sh/tangled/repo/pull/status/closed.js';
|
|
17
32
|
export * as ShTangledRepoPullStatusMerged from './types/sh/tangled/repo/pull/status/merged.js';
|
|
18
33
|
export * as ShTangledRepoPullStatusOpen from './types/sh/tangled/repo/pull/status/open.js';
|
|
34
|
+
export * as ShTangledRepoRemoveSecret from './types/sh/tangled/repo/removeSecret.js';
|
|
35
|
+
export * as ShTangledRepoSetDefaultBranch from './types/sh/tangled/repo/setDefaultBranch.js';
|
|
36
|
+
export * as ShTangledSpindle from './types/sh/tangled/spindle.js';
|
|
37
|
+
export * as ShTangledSpindleMember from './types/sh/tangled/spindle/member.js';
|
|
38
|
+
export * as ShTangledString from './types/sh/tangled/string.js';
|
|
@@ -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.feed.reaction'),
|
|
9
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
10
|
+
reaction: /*#__PURE__*/ v.literalEnum(['❤️', '🎉', '👀', '👍', '👎', '😆', '🚀', '🫤']),
|
|
11
|
+
subject: /*#__PURE__*/ v.resourceUriString(),
|
|
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.feed.reaction': mainSchema;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
|
|
5
|
+
const _commitCountBreakdownSchema = /*#__PURE__*/ v.object({
|
|
6
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.git.refUpdate#commitCountBreakdown')),
|
|
7
|
+
get byEmail() {
|
|
8
|
+
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(individualEmailCommitCountSchema));
|
|
9
|
+
},
|
|
10
|
+
});
|
|
11
|
+
const _individualEmailCommitCountSchema = /*#__PURE__*/ v.object({
|
|
12
|
+
$type: /*#__PURE__*/ v.optional(
|
|
13
|
+
/*#__PURE__*/ v.literal('sh.tangled.git.refUpdate#individualEmailCommitCount'),
|
|
14
|
+
),
|
|
15
|
+
count: /*#__PURE__*/ v.integer(),
|
|
16
|
+
email: /*#__PURE__*/ v.string(),
|
|
17
|
+
});
|
|
18
|
+
const _individualLanguageSizeSchema = /*#__PURE__*/ v.object({
|
|
19
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.git.refUpdate#individualLanguageSize')),
|
|
20
|
+
lang: /*#__PURE__*/ v.string(),
|
|
21
|
+
size: /*#__PURE__*/ v.integer(),
|
|
22
|
+
});
|
|
23
|
+
const _langBreakdownSchema = /*#__PURE__*/ v.object({
|
|
24
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.git.refUpdate#langBreakdown')),
|
|
25
|
+
get inputs() {
|
|
26
|
+
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(individualLanguageSizeSchema));
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
const _mainSchema = /*#__PURE__*/ v.record(
|
|
30
|
+
/*#__PURE__*/ v.tidString(),
|
|
31
|
+
/*#__PURE__*/ v.object({
|
|
32
|
+
$type: /*#__PURE__*/ v.literal('sh.tangled.git.refUpdate'),
|
|
33
|
+
committerDid: /*#__PURE__*/ v.didString(),
|
|
34
|
+
get meta() {
|
|
35
|
+
return metaSchema;
|
|
36
|
+
},
|
|
37
|
+
newSha: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(40, 40)]),
|
|
38
|
+
oldSha: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(40, 40)]),
|
|
39
|
+
ref: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
40
|
+
/*#__PURE__*/ v.stringLength(0, 2560),
|
|
41
|
+
/*#__PURE__*/ v.stringGraphemes(0, 256),
|
|
42
|
+
]),
|
|
43
|
+
repoDid: /*#__PURE__*/ v.didString(),
|
|
44
|
+
repoName: /*#__PURE__*/ v.string(),
|
|
45
|
+
}),
|
|
46
|
+
);
|
|
47
|
+
const _metaSchema = /*#__PURE__*/ v.object({
|
|
48
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.git.refUpdate#meta')),
|
|
49
|
+
get commitCount() {
|
|
50
|
+
return commitCountBreakdownSchema;
|
|
51
|
+
},
|
|
52
|
+
isDefaultRef: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false),
|
|
53
|
+
get langBreakdown() {
|
|
54
|
+
return /*#__PURE__*/ v.optional(langBreakdownSchema);
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
type commitCountBreakdown$schematype = typeof _commitCountBreakdownSchema;
|
|
59
|
+
type individualEmailCommitCount$schematype = typeof _individualEmailCommitCountSchema;
|
|
60
|
+
type individualLanguageSize$schematype = typeof _individualLanguageSizeSchema;
|
|
61
|
+
type langBreakdown$schematype = typeof _langBreakdownSchema;
|
|
62
|
+
type main$schematype = typeof _mainSchema;
|
|
63
|
+
type meta$schematype = typeof _metaSchema;
|
|
64
|
+
|
|
65
|
+
export interface commitCountBreakdownSchema extends commitCountBreakdown$schematype {}
|
|
66
|
+
export interface individualEmailCommitCountSchema extends individualEmailCommitCount$schematype {}
|
|
67
|
+
export interface individualLanguageSizeSchema extends individualLanguageSize$schematype {}
|
|
68
|
+
export interface langBreakdownSchema extends langBreakdown$schematype {}
|
|
69
|
+
export interface mainSchema extends main$schematype {}
|
|
70
|
+
export interface metaSchema extends meta$schematype {}
|
|
71
|
+
|
|
72
|
+
export const commitCountBreakdownSchema = _commitCountBreakdownSchema as commitCountBreakdownSchema;
|
|
73
|
+
export const individualEmailCommitCountSchema =
|
|
74
|
+
_individualEmailCommitCountSchema as individualEmailCommitCountSchema;
|
|
75
|
+
export const individualLanguageSizeSchema = _individualLanguageSizeSchema as individualLanguageSizeSchema;
|
|
76
|
+
export const langBreakdownSchema = _langBreakdownSchema as langBreakdownSchema;
|
|
77
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
78
|
+
export const metaSchema = _metaSchema as metaSchema;
|
|
79
|
+
|
|
80
|
+
export interface CommitCountBreakdown extends v.InferInput<typeof commitCountBreakdownSchema> {}
|
|
81
|
+
export interface IndividualEmailCommitCount extends v.InferInput<typeof individualEmailCommitCountSchema> {}
|
|
82
|
+
export interface IndividualLanguageSize extends v.InferInput<typeof individualLanguageSizeSchema> {}
|
|
83
|
+
export interface LangBreakdown extends v.InferInput<typeof langBreakdownSchema> {}
|
|
84
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
85
|
+
export interface Meta extends v.InferInput<typeof metaSchema> {}
|
|
86
|
+
|
|
87
|
+
declare module '@atcute/lexicons/ambient' {
|
|
88
|
+
interface Records {
|
|
89
|
+
'sh.tangled.git.refUpdate': mainSchema;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -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.knot'),
|
|
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.knot': 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.pipeline.status'),
|
|
9
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
10
|
+
error: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
11
|
+
exitCode: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
|
|
12
|
+
pipeline: /*#__PURE__*/ v.resourceUriString(),
|
|
13
|
+
status: /*#__PURE__*/ v.literalEnum(['cancelled', 'failed', 'pending', 'running', 'success', 'timeout']),
|
|
14
|
+
workflow: /*#__PURE__*/ v.resourceUriString(),
|
|
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.pipeline.status': mainSchema;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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
|
+
}
|