@atcute/lexicon-community 1.1.5 → 2.0.0

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.
@@ -8,4 +8,5 @@ export * as CommunityLexiconLocationFsq from './types/community/lexicon/location
8
8
  export * as CommunityLexiconLocationGeo from './types/community/lexicon/location/geo.ts';
9
9
  export * as CommunityLexiconLocationHthree from './types/community/lexicon/location/hthree.ts';
10
10
  export * as CommunityLexiconPaymentsWebMonetization from './types/community/lexicon/payments/webMonetization.ts';
11
+ export * as CommunityLexiconPreferenceAi from './types/community/lexicon/preference/ai.ts';
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/lexicons/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,iCAAiC,MAAM,iDAAiD,CAAC;AACrG,OAAO,KAAK,0CAA0C,MAAM,0DAA0D,CAAC;AACvH,OAAO,KAAK,6BAA6B,MAAM,6CAA6C,CAAC;AAC7F,OAAO,KAAK,4BAA4B,MAAM,4CAA4C,CAAC;AAC3F,OAAO,KAAK,+BAA+B,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,+BAA+B,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,2BAA2B,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,2BAA2B,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,8BAA8B,MAAM,8CAA8C,CAAC;AAC/F,OAAO,KAAK,uCAAuC,MAAM,uDAAuD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/lexicons/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,iCAAiC,MAAM,iDAAiD,CAAC;AACrG,OAAO,KAAK,0CAA0C,MAAM,0DAA0D,CAAC;AACvH,OAAO,KAAK,6BAA6B,MAAM,6CAA6C,CAAC;AAC7F,OAAO,KAAK,4BAA4B,MAAM,4CAA4C,CAAC;AAC3F,OAAO,KAAK,+BAA+B,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,+BAA+B,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,2BAA2B,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,2BAA2B,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,8BAA8B,MAAM,8CAA8C,CAAC;AAC/F,OAAO,KAAK,uCAAuC,MAAM,uDAAuD,CAAC;AACjH,OAAO,KAAK,4BAA4B,MAAM,4CAA4C,CAAC"}
@@ -8,4 +8,5 @@ export * as CommunityLexiconLocationFsq from './types/community/lexicon/location
8
8
  export * as CommunityLexiconLocationGeo from './types/community/lexicon/location/geo.js';
9
9
  export * as CommunityLexiconLocationHthree from './types/community/lexicon/location/hthree.js';
10
10
  export * as CommunityLexiconPaymentsWebMonetization from './types/community/lexicon/payments/webMonetization.js';
11
+ export * as CommunityLexiconPreferenceAi from './types/community/lexicon/preference/ai.js';
11
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/lexicons/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,iCAAiC,MAAM,iDAAiD,CAAC;AACrG,OAAO,KAAK,0CAA0C,MAAM,0DAA0D,CAAC;AACvH,OAAO,KAAK,6BAA6B,MAAM,6CAA6C,CAAC;AAC7F,OAAO,KAAK,4BAA4B,MAAM,4CAA4C,CAAC;AAC3F,OAAO,KAAK,+BAA+B,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,+BAA+B,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,2BAA2B,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,2BAA2B,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,8BAA8B,MAAM,8CAA8C,CAAC;AAC/F,OAAO,KAAK,uCAAuC,MAAM,uDAAuD,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/lexicons/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,iCAAiC,MAAM,iDAAiD,CAAC;AACrG,OAAO,KAAK,0CAA0C,MAAM,0DAA0D,CAAC;AACvH,OAAO,KAAK,6BAA6B,MAAM,6CAA6C,CAAC;AAC7F,OAAO,KAAK,4BAA4B,MAAM,4CAA4C,CAAC;AAC3F,OAAO,KAAK,+BAA+B,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,+BAA+B,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,2BAA2B,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,2BAA2B,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,8BAA8B,MAAM,8CAA8C,CAAC;AAC/F,OAAO,KAAK,uCAAuC,MAAM,uDAAuD,CAAC;AACjH,OAAO,KAAK,4BAA4B,MAAM,4CAA4C,CAAC"}
@@ -0,0 +1,103 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ declare const _collectionScopeSchema: v.ObjectSchema<{
3
+ $type: v.OptionalSchema<v.LiteralSchema<"community.lexicon.preference.ai#collectionScope">, undefined>;
4
+ /**
5
+ * NSID of the collection this override applies to.
6
+ */
7
+ collection: v.FormattedStringSchema<"nsid">;
8
+ }>;
9
+ declare const _entityScopeSchema: v.ObjectSchema<{
10
+ $type: v.OptionalSchema<v.LiteralSchema<"community.lexicon.preference.ai#entityScope">, undefined>;
11
+ /**
12
+ * DID or domain of the entity this override applies to.
13
+ */
14
+ entity: v.StringSchema<string>;
15
+ }>;
16
+ declare const _globalScopeSchema: v.ObjectSchema<{
17
+ $type: v.OptionalSchema<v.LiteralSchema<"community.lexicon.preference.ai#globalScope">, undefined>;
18
+ }>;
19
+ declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
20
+ $type: v.LiteralSchema<"community.lexicon.preference.ai">;
21
+ readonly preferences: preferenceSetSchema;
22
+ /**
23
+ * What this record's preferences apply to.
24
+ */
25
+ readonly scope: v.VariantSchema<readonly [collectionScopeSchema, entityScopeSchema, globalScopeSchema], boolean>;
26
+ /**
27
+ * Timestamp of the most recent change to this record.
28
+ */
29
+ updatedAt: v.FormattedStringSchema<"datetime">;
30
+ }>, v.StringSchema<string>>;
31
+ declare const _preferenceSchema: v.ObjectSchema<{
32
+ $type: v.OptionalSchema<v.LiteralSchema<"community.lexicon.preference.ai#preference">, undefined>;
33
+ /**
34
+ * Whether this usage is permitted (true) or denied (false).
35
+ */
36
+ allow: v.BooleanSchema;
37
+ /**
38
+ * When this specific preference was last changed.
39
+ */
40
+ updatedAt: v.FormattedStringSchema<"datetime">;
41
+ }>;
42
+ declare const _preferenceSetSchema: v.ObjectSchema<{
43
+ $type: v.OptionalSchema<v.LiteralSchema<"community.lexicon.preference.ai#preferenceSet">, undefined>;
44
+ /**
45
+ * Use for vector embeddings or semantic indexing.
46
+ */
47
+ readonly embedding: v.OptionalSchema<preferenceSchema, undefined>;
48
+ /**
49
+ * Use at inference time for retrieval, RAG, or context injection.
50
+ */
51
+ readonly inference: v.OptionalSchema<preferenceSchema, undefined>;
52
+ /**
53
+ * Use to generate synthetic content or interactions derived from user data.
54
+ */
55
+ readonly syntheticContent: v.OptionalSchema<preferenceSchema, undefined>;
56
+ /**
57
+ * Use as input for training, fine-tuning, distillation, or RLHF of ML models.
58
+ */
59
+ readonly training: v.OptionalSchema<preferenceSchema, undefined>;
60
+ }>;
61
+ type collectionScope$schematype = typeof _collectionScopeSchema;
62
+ type entityScope$schematype = typeof _entityScopeSchema;
63
+ type globalScope$schematype = typeof _globalScopeSchema;
64
+ type main$schematype = typeof _mainSchema;
65
+ type preference$schematype = typeof _preferenceSchema;
66
+ type preferenceSet$schematype = typeof _preferenceSetSchema;
67
+ export interface collectionScopeSchema extends collectionScope$schematype {
68
+ }
69
+ export interface entityScopeSchema extends entityScope$schematype {
70
+ }
71
+ export interface globalScopeSchema extends globalScope$schematype {
72
+ }
73
+ export interface mainSchema extends main$schematype {
74
+ }
75
+ export interface preferenceSchema extends preference$schematype {
76
+ }
77
+ export interface preferenceSetSchema extends preferenceSet$schematype {
78
+ }
79
+ export declare const collectionScopeSchema: collectionScopeSchema;
80
+ export declare const entityScopeSchema: entityScopeSchema;
81
+ export declare const globalScopeSchema: globalScopeSchema;
82
+ export declare const mainSchema: mainSchema;
83
+ export declare const preferenceSchema: preferenceSchema;
84
+ export declare const preferenceSetSchema: preferenceSetSchema;
85
+ export interface CollectionScope extends v.InferInput<typeof collectionScopeSchema> {
86
+ }
87
+ export interface EntityScope extends v.InferInput<typeof entityScopeSchema> {
88
+ }
89
+ export interface GlobalScope extends v.InferInput<typeof globalScopeSchema> {
90
+ }
91
+ export interface Main extends v.InferInput<typeof mainSchema> {
92
+ }
93
+ export interface Preference extends v.InferInput<typeof preferenceSchema> {
94
+ }
95
+ export interface PreferenceSet extends v.InferInput<typeof preferenceSetSchema> {
96
+ }
97
+ declare module '@atcute/lexicons/ambient' {
98
+ interface Records {
99
+ 'community.lexicon.preference.ai': mainSchema;
100
+ }
101
+ }
102
+ export {};
103
+ //# sourceMappingURL=ai.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/community/lexicon/preference/ai.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,sBAAsB;;IAE3B;;OAEG;;EAEF,CAAC;AACH,QAAA,MAAM,kBAAkB;;IAEvB;;OAEG;;EAEF,CAAC;AACH,QAAA,MAAM,kBAAkB;;EAEtB,CAAC;AACH,QAAA,MAAM,WAAW;;;IAOf;;OAEG;;IAIH;;OAEG;;2BAGJ,CAAC;AACF,QAAA,MAAM,iBAAiB;;IAEtB;;OAEG;;IAEH;;OAEG;;EAEF,CAAC;AACH,QAAA,MAAM,oBAAoB;;IAEzB;;OAEG;;IAIH;;OAEG;;IAIH;;OAEG;;IAIH;;OAEG;;EAIF,CAAC;AAEH,KAAK,0BAA0B,GAAG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G;AAC5E,MAAM,WAAW,aAAc,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC;CAAG;AAElF,OAAO,QAAQ,0BAA0B,CAAC,CAAC;IAC1C,UAAU,OAAO;QAChB,iCAAiC,EAAE,UAAU,CAAC;KAC9C;CACD"}
@@ -0,0 +1,81 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ const _collectionScopeSchema = /*#__PURE__*/ v.object({
3
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.preference.ai#collectionScope')),
4
+ /**
5
+ * NSID of the collection this override applies to.
6
+ */
7
+ collection: /*#__PURE__*/ v.nsidString(),
8
+ });
9
+ const _entityScopeSchema = /*#__PURE__*/ v.object({
10
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.preference.ai#entityScope')),
11
+ /**
12
+ * DID or domain of the entity this override applies to.
13
+ */
14
+ entity: /*#__PURE__*/ v.string(),
15
+ });
16
+ const _globalScopeSchema = /*#__PURE__*/ v.object({
17
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.preference.ai#globalScope')),
18
+ });
19
+ const _mainSchema = /*#__PURE__*/ v.record(
20
+ /*#__PURE__*/ v.string(),
21
+ /*#__PURE__*/ v.object({
22
+ $type: /*#__PURE__*/ v.literal('community.lexicon.preference.ai'),
23
+ get preferences() {
24
+ return preferenceSetSchema;
25
+ },
26
+ /**
27
+ * What this record's preferences apply to.
28
+ */
29
+ get scope() {
30
+ return /*#__PURE__*/ v.variant([collectionScopeSchema, entityScopeSchema, globalScopeSchema]);
31
+ },
32
+ /**
33
+ * Timestamp of the most recent change to this record.
34
+ */
35
+ updatedAt: /*#__PURE__*/ v.datetimeString(),
36
+ }));
37
+ const _preferenceSchema = /*#__PURE__*/ v.object({
38
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.preference.ai#preference')),
39
+ /**
40
+ * Whether this usage is permitted (true) or denied (false).
41
+ */
42
+ allow: /*#__PURE__*/ v.boolean(),
43
+ /**
44
+ * When this specific preference was last changed.
45
+ */
46
+ updatedAt: /*#__PURE__*/ v.datetimeString(),
47
+ });
48
+ const _preferenceSetSchema = /*#__PURE__*/ v.object({
49
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.preference.ai#preferenceSet')),
50
+ /**
51
+ * Use for vector embeddings or semantic indexing.
52
+ */
53
+ get embedding() {
54
+ return /*#__PURE__*/ v.optional(preferenceSchema);
55
+ },
56
+ /**
57
+ * Use at inference time for retrieval, RAG, or context injection.
58
+ */
59
+ get inference() {
60
+ return /*#__PURE__*/ v.optional(preferenceSchema);
61
+ },
62
+ /**
63
+ * Use to generate synthetic content or interactions derived from user data.
64
+ */
65
+ get syntheticContent() {
66
+ return /*#__PURE__*/ v.optional(preferenceSchema);
67
+ },
68
+ /**
69
+ * Use as input for training, fine-tuning, distillation, or RLHF of ML models.
70
+ */
71
+ get training() {
72
+ return /*#__PURE__*/ v.optional(preferenceSchema);
73
+ },
74
+ });
75
+ export const collectionScopeSchema = _collectionScopeSchema;
76
+ export const entityScopeSchema = _entityScopeSchema;
77
+ export const globalScopeSchema = _globalScopeSchema;
78
+ export const mainSchema = _mainSchema;
79
+ export const preferenceSchema = _preferenceSchema;
80
+ export const preferenceSetSchema = _preferenceSetSchema;
81
+ //# sourceMappingURL=ai.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/community/lexicon/preference/ai.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,sBAAsB,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACrD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,iDAAiD,CAAC,CAAC;IAC3G;;OAEG;IACH,UAAU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,CAAC,OAAO,EAAE;IAChC;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;CAC3C,CAAC,CAAC;AACH,MAAM,oBAAoB,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACnD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,+CAA+C,CAAC,CAAC;IACzG;;OAEG;IACH,IAAI,SAAS;QACZ,OAAO,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACnD,CAAC;IACD;;OAEG;IACH,IAAI,SAAS;QACZ,OAAO,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACnD,CAAC;IACD;;OAEG;IACH,IAAI,gBAAgB;QACnB,OAAO,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACnD,CAAC;IACD;;OAEG;IACH,IAAI,QAAQ;QACX,OAAO,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACnD,CAAC;CACD,CAAC,CAAC;AAgBH,MAAM,CAAC,MAAM,qBAAqB,GAAG,sBAA+C,CAAC;AACrF,MAAM,CAAC,MAAM,iBAAiB,GAAG,kBAAuC,CAAC;AACzE,MAAM,CAAC,MAAM,iBAAiB,GAAG,kBAAuC,CAAC;AACzE,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC;AACpD,MAAM,CAAC,MAAM,gBAAgB,GAAG,iBAAqC,CAAC;AACtE,MAAM,CAAC,MAAM,mBAAmB,GAAG,oBAA2C,CAAC"}
@@ -8,3 +8,4 @@ export * as CommunityLexiconLocationFsq from './types/community/lexicon/location
8
8
  export * as CommunityLexiconLocationGeo from './types/community/lexicon/location/geo.ts';
9
9
  export * as CommunityLexiconLocationHthree from './types/community/lexicon/location/hthree.ts';
10
10
  export * as CommunityLexiconPaymentsWebMonetization from './types/community/lexicon/payments/webMonetization.ts';
11
+ export * as CommunityLexiconPreferenceAi from './types/community/lexicon/preference/ai.ts';
@@ -0,0 +1,112 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import type {} from '@atcute/lexicons/ambient';
3
+ import * as v from '@atcute/lexicons/validations';
4
+
5
+ const _collectionScopeSchema = /*#__PURE__*/ v.object({
6
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.preference.ai#collectionScope')),
7
+ /**
8
+ * NSID of the collection this override applies to.
9
+ */
10
+ collection: /*#__PURE__*/ v.nsidString(),
11
+ });
12
+ const _entityScopeSchema = /*#__PURE__*/ v.object({
13
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.preference.ai#entityScope')),
14
+ /**
15
+ * DID or domain of the entity this override applies to.
16
+ */
17
+ entity: /*#__PURE__*/ v.string(),
18
+ });
19
+ const _globalScopeSchema = /*#__PURE__*/ v.object({
20
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.preference.ai#globalScope')),
21
+ });
22
+ const _mainSchema = /*#__PURE__*/ v.record(
23
+ /*#__PURE__*/ v.string(),
24
+ /*#__PURE__*/ v.object({
25
+ $type: /*#__PURE__*/ v.literal('community.lexicon.preference.ai'),
26
+ get preferences() {
27
+ return preferenceSetSchema;
28
+ },
29
+ /**
30
+ * What this record's preferences apply to.
31
+ */
32
+ get scope() {
33
+ return /*#__PURE__*/ v.variant([collectionScopeSchema, entityScopeSchema, globalScopeSchema]);
34
+ },
35
+ /**
36
+ * Timestamp of the most recent change to this record.
37
+ */
38
+ updatedAt: /*#__PURE__*/ v.datetimeString(),
39
+ }),
40
+ );
41
+ const _preferenceSchema = /*#__PURE__*/ v.object({
42
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.preference.ai#preference')),
43
+ /**
44
+ * Whether this usage is permitted (true) or denied (false).
45
+ */
46
+ allow: /*#__PURE__*/ v.boolean(),
47
+ /**
48
+ * When this specific preference was last changed.
49
+ */
50
+ updatedAt: /*#__PURE__*/ v.datetimeString(),
51
+ });
52
+ const _preferenceSetSchema = /*#__PURE__*/ v.object({
53
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.preference.ai#preferenceSet')),
54
+ /**
55
+ * Use for vector embeddings or semantic indexing.
56
+ */
57
+ get embedding() {
58
+ return /*#__PURE__*/ v.optional(preferenceSchema);
59
+ },
60
+ /**
61
+ * Use at inference time for retrieval, RAG, or context injection.
62
+ */
63
+ get inference() {
64
+ return /*#__PURE__*/ v.optional(preferenceSchema);
65
+ },
66
+ /**
67
+ * Use to generate synthetic content or interactions derived from user data.
68
+ */
69
+ get syntheticContent() {
70
+ return /*#__PURE__*/ v.optional(preferenceSchema);
71
+ },
72
+ /**
73
+ * Use as input for training, fine-tuning, distillation, or RLHF of ML models.
74
+ */
75
+ get training() {
76
+ return /*#__PURE__*/ v.optional(preferenceSchema);
77
+ },
78
+ });
79
+
80
+ type collectionScope$schematype = typeof _collectionScopeSchema;
81
+ type entityScope$schematype = typeof _entityScopeSchema;
82
+ type globalScope$schematype = typeof _globalScopeSchema;
83
+ type main$schematype = typeof _mainSchema;
84
+ type preference$schematype = typeof _preferenceSchema;
85
+ type preferenceSet$schematype = typeof _preferenceSetSchema;
86
+
87
+ export interface collectionScopeSchema extends collectionScope$schematype {}
88
+ export interface entityScopeSchema extends entityScope$schematype {}
89
+ export interface globalScopeSchema extends globalScope$schematype {}
90
+ export interface mainSchema extends main$schematype {}
91
+ export interface preferenceSchema extends preference$schematype {}
92
+ export interface preferenceSetSchema extends preferenceSet$schematype {}
93
+
94
+ export const collectionScopeSchema = _collectionScopeSchema as collectionScopeSchema;
95
+ export const entityScopeSchema = _entityScopeSchema as entityScopeSchema;
96
+ export const globalScopeSchema = _globalScopeSchema as globalScopeSchema;
97
+ export const mainSchema = _mainSchema as mainSchema;
98
+ export const preferenceSchema = _preferenceSchema as preferenceSchema;
99
+ export const preferenceSetSchema = _preferenceSetSchema as preferenceSetSchema;
100
+
101
+ export interface CollectionScope extends v.InferInput<typeof collectionScopeSchema> {}
102
+ export interface EntityScope extends v.InferInput<typeof entityScopeSchema> {}
103
+ export interface GlobalScope extends v.InferInput<typeof globalScopeSchema> {}
104
+ export interface Main extends v.InferInput<typeof mainSchema> {}
105
+ export interface Preference extends v.InferInput<typeof preferenceSchema> {}
106
+ export interface PreferenceSet extends v.InferInput<typeof preferenceSetSchema> {}
107
+
108
+ declare module '@atcute/lexicons/ambient' {
109
+ interface Records {
110
+ 'community.lexicon.preference.ai': mainSchema;
111
+ }
112
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atcute/lexicon-community",
3
- "version": "1.1.5",
3
+ "version": "2.0.0",
4
4
  "description": "Lexicon Community (community.lexicon.*) schema definitions",
5
5
  "license": "0BSD",
6
6
  "repository": {
@@ -23,15 +23,15 @@
23
23
  "access": "public"
24
24
  },
25
25
  "dependencies": {
26
- "@atcute/lexicons": "^1.3.1",
27
- "@atcute/atproto": "^3.1.12"
26
+ "@atcute/atproto": "^4.0.0",
27
+ "@atcute/lexicons": "^2.0.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@atcute/lexicon-community": "file:",
31
- "@atcute/lex-cli": "^2.8.1"
31
+ "@atcute/lex-cli": "^3.0.0"
32
32
  },
33
33
  "peerDependencies": {
34
- "@atcute/lexicons": "^1.0.0"
34
+ "@atcute/lexicons": "^2.0.0"
35
35
  },
36
36
  "atcute:lexicons": {
37
37
  "mappings": {