@atcute/lexicon-community 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/LICENSE +17 -0
  2. package/README.md +60 -0
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.js +2 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/lexicons/index.d.ts +9 -0
  7. package/dist/lexicons/index.js +10 -0
  8. package/dist/lexicons/index.js.map +1 -0
  9. package/dist/lexicons/types/community/lexicon/bookmarks/bookmark.d.ts +19 -0
  10. package/dist/lexicons/types/community/lexicon/bookmarks/bookmark.js +11 -0
  11. package/dist/lexicons/types/community/lexicon/bookmarks/bookmark.js.map +1 -0
  12. package/dist/lexicons/types/community/lexicon/bookmarks/getActorBookmarks.d.ts +23 -0
  13. package/dist/lexicons/types/community/lexicon/bookmarks/getActorBookmarks.js +21 -0
  14. package/dist/lexicons/types/community/lexicon/bookmarks/getActorBookmarks.js.map +1 -0
  15. package/dist/lexicons/types/community/lexicon/calendar/event.d.ts +100 -0
  16. package/dist/lexicons/types/community/lexicon/calendar/event.js +65 -0
  17. package/dist/lexicons/types/community/lexicon/calendar/event.js.map +1 -0
  18. package/dist/lexicons/types/community/lexicon/calendar/rsvp.d.ts +37 -0
  19. package/dist/lexicons/types/community/lexicon/calendar/rsvp.js +20 -0
  20. package/dist/lexicons/types/community/lexicon/calendar/rsvp.js.map +1 -0
  21. package/dist/lexicons/types/community/lexicon/interaction/like.d.ts +19 -0
  22. package/dist/lexicons/types/community/lexicon/interaction/like.js +13 -0
  23. package/dist/lexicons/types/community/lexicon/interaction/like.js.map +1 -0
  24. package/dist/lexicons/types/community/lexicon/location/address.d.ts +17 -0
  25. package/dist/lexicons/types/community/lexicon/location/address.js +12 -0
  26. package/dist/lexicons/types/community/lexicon/location/address.js.map +1 -0
  27. package/dist/lexicons/types/community/lexicon/location/fsq.d.ts +15 -0
  28. package/dist/lexicons/types/community/lexicon/location/fsq.js +10 -0
  29. package/dist/lexicons/types/community/lexicon/location/fsq.js.map +1 -0
  30. package/dist/lexicons/types/community/lexicon/location/geo.d.ts +15 -0
  31. package/dist/lexicons/types/community/lexicon/location/geo.js +10 -0
  32. package/dist/lexicons/types/community/lexicon/location/geo.js.map +1 -0
  33. package/dist/lexicons/types/community/lexicon/location/hthree.d.ts +13 -0
  34. package/dist/lexicons/types/community/lexicon/location/hthree.js +8 -0
  35. package/dist/lexicons/types/community/lexicon/location/hthree.js.map +1 -0
  36. package/lib/index.ts +1 -0
  37. package/lib/lexicons/index.ts +9 -0
  38. package/lib/lexicons/types/community/lexicon/bookmarks/bookmark.ts +27 -0
  39. package/lib/lexicons/types/community/lexicon/bookmarks/getActorBookmarks.ts +36 -0
  40. package/lib/lexicons/types/community/lexicon/calendar/event.ts +132 -0
  41. package/lib/lexicons/types/community/lexicon/calendar/rsvp.ts +52 -0
  42. package/lib/lexicons/types/community/lexicon/interaction/like.ts +29 -0
  43. package/lib/lexicons/types/community/lexicon/location/address.ts +20 -0
  44. package/lib/lexicons/types/community/lexicon/location/fsq.ts +18 -0
  45. package/lib/lexicons/types/community/lexicon/location/geo.ts +18 -0
  46. package/lib/lexicons/types/community/lexicon/location/hthree.ts +16 -0
  47. package/package.json +34 -0
package/LICENSE ADDED
@@ -0,0 +1,17 @@
1
+ Permission is hereby granted, free of charge, to any person obtaining a copy
2
+ of this software and associated documentation files (the "Software"), to deal
3
+ in the Software without restriction, including without limitation the rights
4
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5
+ copies of the Software, and to permit persons to whom the Software is
6
+ furnished to do so, subject to the following conditions:
7
+
8
+ The above copyright notice and this permission notice shall be included in all
9
+ copies or substantial portions of the Software.
10
+
11
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # @atcute/lexicon-community
2
+
3
+ [Lexicon Community](https://github.com/lexicon-community/lexicon) (community.lexicon.\*) schema
4
+ definitions
5
+
6
+ ## usage
7
+
8
+ ```ts
9
+ import { CommunityLexiconCalendarEvent } from '@atcute/lexicon-community';
10
+ import { is } from '@atcute/lexicons';
11
+
12
+ const record: CommunityLexiconCalendarEvent.Main = {
13
+ $type: 'community.lexicon.calendar.event',
14
+ name: 'DoD Stammtisch May 2025',
15
+ description: 'The last Stammtisch before @protocol.berlin v2',
16
+ status: 'community.lexicon.calendar.event#scheduled',
17
+ mode: 'community.lexicon.calendar.event#inperson',
18
+ startsAt: '2025-05-21T17:00:00.000Z',
19
+ createdAt: '2025-05-14T23:13:18.129Z',
20
+ locations: [
21
+ {
22
+ $type: 'community.lexicon.location.address',
23
+ name: '@c-base.org',
24
+ country: 'DE',
25
+ locality: 'Berlin',
26
+ region: 'Berlin',
27
+ street: 'Rungestrasse 20',
28
+ postalCode: '10179',
29
+ },
30
+ ],
31
+ };
32
+
33
+ is(CommunityLexiconCalendarEvent.mainSchema, record);
34
+ // -> true
35
+ ```
36
+
37
+ ### with `@atcute/client`
38
+
39
+ pick either one of these 3 options to register the ambient declarations
40
+
41
+ ```jsonc
42
+ // tsconfig.json
43
+ {
44
+ "compilerOptions": {
45
+ "types": ["@atcute/lexicon-community"],
46
+ },
47
+ }
48
+ ```
49
+
50
+ ```ts
51
+ // env.d.ts
52
+ /// <reference types="@atcute/lexicon-community" />
53
+ ```
54
+
55
+ ```ts
56
+ // index.ts
57
+ import type {} from '@atcute/lexicon-community';
58
+ ```
59
+
60
+ now all the XRPC operations should be visible in the client
@@ -0,0 +1 @@
1
+ export * from './lexicons/index.js';
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from './lexicons/index.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,9 @@
1
+ export * as CommunityLexiconBookmarksBookmark from './types/community/lexicon/bookmarks/bookmark.js';
2
+ export * as CommunityLexiconBookmarksGetActorBookmarks from './types/community/lexicon/bookmarks/getActorBookmarks.js';
3
+ export * as CommunityLexiconCalendarEvent from './types/community/lexicon/calendar/event.js';
4
+ export * as CommunityLexiconCalendarRsvp from './types/community/lexicon/calendar/rsvp.js';
5
+ export * as CommunityLexiconInteractionLike from './types/community/lexicon/interaction/like.js';
6
+ export * as CommunityLexiconLocationAddress from './types/community/lexicon/location/address.js';
7
+ export * as CommunityLexiconLocationFsq from './types/community/lexicon/location/fsq.js';
8
+ export * as CommunityLexiconLocationGeo from './types/community/lexicon/location/geo.js';
9
+ export * as CommunityLexiconLocationHthree from './types/community/lexicon/location/hthree.js';
@@ -0,0 +1,10 @@
1
+ export * as CommunityLexiconBookmarksBookmark from './types/community/lexicon/bookmarks/bookmark.js';
2
+ export * as CommunityLexiconBookmarksGetActorBookmarks from './types/community/lexicon/bookmarks/getActorBookmarks.js';
3
+ export * as CommunityLexiconCalendarEvent from './types/community/lexicon/calendar/event.js';
4
+ export * as CommunityLexiconCalendarRsvp from './types/community/lexicon/calendar/rsvp.js';
5
+ export * as CommunityLexiconInteractionLike from './types/community/lexicon/interaction/like.js';
6
+ export * as CommunityLexiconLocationAddress from './types/community/lexicon/location/address.js';
7
+ export * as CommunityLexiconLocationFsq from './types/community/lexicon/location/fsq.js';
8
+ export * as CommunityLexiconLocationGeo from './types/community/lexicon/location/geo.js';
9
+ export * as CommunityLexiconLocationHthree from './types/community/lexicon/location/hthree.js';
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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"}
@@ -0,0 +1,19 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
3
+ $type: v.LiteralSchema<"community.lexicon.bookmarks.bookmark">;
4
+ createdAt: v.FormattedStringSchema<"datetime">;
5
+ subject: v.FormattedStringSchema<"uri">;
6
+ tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<string>>, undefined>;
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
+ 'community.lexicon.bookmarks.bookmark': 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('community.lexicon.bookmarks.bookmark'),
6
+ createdAt: /*#__PURE__*/ v.datetimeString(),
7
+ subject: /*#__PURE__*/ v.genericUriString(),
8
+ tags: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())),
9
+ }));
10
+ export const mainSchema = _mainSchema;
11
+ //# sourceMappingURL=bookmark.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bookmark.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/community/lexicon/bookmarks/bookmark.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,sCAAsC,CAAC;IACtE,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;IAC3C,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,gBAAgB,EAAE;IAC3C,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;CAC/E,CAAC,CACF,CAAC;AAMF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ import * as CommunityLexiconBookmarksBookmark from './bookmark.js';
3
+ declare const _mainSchema: v.XRPCQueryMetadata<v.ObjectSchema<{
4
+ cursor: v.OptionalSchema<v.StringSchema<string>, undefined>;
5
+ limit: v.OptionalSchema<v.SchemaWithConstraint<v.IntegerSchema, readonly [v.IntegerRangeConstraint<1, 100>]>, 50>;
6
+ tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<string>>, undefined>;
7
+ }>, {
8
+ type: "lex";
9
+ schema: v.ObjectSchema<{
10
+ readonly bookmarks: v.ArraySchema<CommunityLexiconBookmarksBookmark.mainSchema>;
11
+ cursor: v.OptionalSchema<v.StringSchema<string>, undefined>;
12
+ }>;
13
+ }, "community.lexicon.bookmarks.getActorBookmarks">;
14
+ type main$schematype = typeof _mainSchema;
15
+ export interface mainSchema extends main$schematype {
16
+ }
17
+ export declare const mainSchema: mainSchema;
18
+ declare module '@atcute/lexicons/ambient' {
19
+ interface XRPCQueries {
20
+ 'community.lexicon.bookmarks.getActorBookmarks': mainSchema;
21
+ }
22
+ }
23
+ export {};
@@ -0,0 +1,21 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ import * as CommunityLexiconBookmarksBookmark from './bookmark.js';
3
+ const _mainSchema = /*#__PURE__*/ v.query('community.lexicon.bookmarks.getActorBookmarks', {
4
+ params: /*#__PURE__*/ v.object({
5
+ cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
6
+ limit: /*#__PURE__*/ v.optional(
7
+ /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 50),
8
+ tags: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())),
9
+ }),
10
+ output: {
11
+ type: 'lex',
12
+ schema: /*#__PURE__*/ v.object({
13
+ get bookmarks() {
14
+ return /*#__PURE__*/ v.array(CommunityLexiconBookmarksBookmark.mainSchema);
15
+ },
16
+ cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
17
+ }),
18
+ },
19
+ });
20
+ export const mainSchema = _mainSchema;
21
+ //# sourceMappingURL=getActorBookmarks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getActorBookmarks.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/community/lexicon/bookmarks/getActorBookmarks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,iCAAiC,MAAM,eAAe,CAAC;AAEnE,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,+CAA+C,EAAE;IAC1F,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;QAC9B,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;QAC1D,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;QAC9B,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAC5F,EAAE,CACF;QACD,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;KAC/E,CAAC;IACF,MAAM,EAAE;QACP,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;YAC9B,IAAI,SAAS;gBACZ,OAAO,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,iCAAiC,CAAC,UAAU,CAAC,CAAC;YAC5E,CAAC;YACD,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SAC1D,CAAC;KACF;CACD,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
@@ -0,0 +1,100 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ import * as CommunityLexiconLocationAddress from '../location/address.js';
3
+ import * as CommunityLexiconLocationFsq from '../location/fsq.js';
4
+ import * as CommunityLexiconLocationGeo from '../location/geo.js';
5
+ import * as CommunityLexiconLocationHthree from '../location/hthree.js';
6
+ declare const _cancelledSchema: v.LiteralSchema<"community.lexicon.calendar.event#cancelled">;
7
+ declare const _hybridSchema: v.LiteralSchema<"community.lexicon.calendar.event#hybrid">;
8
+ declare const _inpersonSchema: v.LiteralSchema<"community.lexicon.calendar.event#inperson">;
9
+ declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
10
+ $type: v.LiteralSchema<"community.lexicon.calendar.event">;
11
+ createdAt: v.FormattedStringSchema<"datetime">;
12
+ description: v.OptionalSchema<v.StringSchema<string>, undefined>;
13
+ endsAt: v.OptionalSchema<v.FormattedStringSchema<"datetime">, undefined>;
14
+ readonly locations: v.OptionalSchema<v.ArraySchema<v.VariantSchema<readonly [uriSchema, CommunityLexiconLocationAddress.mainSchema, CommunityLexiconLocationFsq.mainSchema, CommunityLexiconLocationGeo.mainSchema, CommunityLexiconLocationHthree.mainSchema], boolean>>, undefined>;
15
+ readonly mode: v.OptionalSchema<modeSchema, undefined>;
16
+ name: v.StringSchema<string>;
17
+ startsAt: v.OptionalSchema<v.FormattedStringSchema<"datetime">, undefined>;
18
+ readonly status: v.OptionalSchema<statusSchema, undefined>;
19
+ readonly uris: v.OptionalSchema<v.ArraySchema<uriSchema>, undefined>;
20
+ }>, v.FormattedStringSchema<"tid">>;
21
+ declare const _modeSchema: v.OptionalSchema<v.StringSchema<"community.lexicon.calendar.event#hybrid" | "community.lexicon.calendar.event#inperson" | (string & {}) | "community.lexicon.calendar.event#virtual">, "community.lexicon.calendar.event#inperson">;
22
+ declare const _plannedSchema: v.LiteralSchema<"community.lexicon.calendar.event#planned">;
23
+ declare const _postponedSchema: v.LiteralSchema<"community.lexicon.calendar.event#postponed">;
24
+ declare const _rescheduledSchema: v.LiteralSchema<"community.lexicon.calendar.event#rescheduled">;
25
+ declare const _scheduledSchema: v.LiteralSchema<"community.lexicon.calendar.event#scheduled">;
26
+ declare const _statusSchema: v.OptionalSchema<v.StringSchema<"community.lexicon.calendar.event#cancelled" | (string & {}) | "community.lexicon.calendar.event#planned" | "community.lexicon.calendar.event#postponed" | "community.lexicon.calendar.event#rescheduled" | "community.lexicon.calendar.event#scheduled">, "community.lexicon.calendar.event#scheduled">;
27
+ declare const _uriSchema: v.ObjectSchema<{
28
+ $type: v.OptionalSchema<v.LiteralSchema<"community.lexicon.calendar.event#uri">, undefined>;
29
+ name: v.OptionalSchema<v.StringSchema<string>, undefined>;
30
+ uri: v.FormattedStringSchema<"uri">;
31
+ }>;
32
+ declare const _virtualSchema: v.LiteralSchema<"community.lexicon.calendar.event#virtual">;
33
+ type cancelled$schematype = typeof _cancelledSchema;
34
+ type hybrid$schematype = typeof _hybridSchema;
35
+ type inperson$schematype = typeof _inpersonSchema;
36
+ type main$schematype = typeof _mainSchema;
37
+ type mode$schematype = typeof _modeSchema;
38
+ type planned$schematype = typeof _plannedSchema;
39
+ type postponed$schematype = typeof _postponedSchema;
40
+ type rescheduled$schematype = typeof _rescheduledSchema;
41
+ type scheduled$schematype = typeof _scheduledSchema;
42
+ type status$schematype = typeof _statusSchema;
43
+ type uri$schematype = typeof _uriSchema;
44
+ type virtual$schematype = typeof _virtualSchema;
45
+ export interface cancelledSchema extends cancelled$schematype {
46
+ }
47
+ export interface hybridSchema extends hybrid$schematype {
48
+ }
49
+ export interface inpersonSchema extends inperson$schematype {
50
+ }
51
+ export interface mainSchema extends main$schematype {
52
+ }
53
+ export interface modeSchema extends mode$schematype {
54
+ }
55
+ export interface plannedSchema extends planned$schematype {
56
+ }
57
+ export interface postponedSchema extends postponed$schematype {
58
+ }
59
+ export interface rescheduledSchema extends rescheduled$schematype {
60
+ }
61
+ export interface scheduledSchema extends scheduled$schematype {
62
+ }
63
+ export interface statusSchema extends status$schematype {
64
+ }
65
+ export interface uriSchema extends uri$schematype {
66
+ }
67
+ export interface virtualSchema extends virtual$schematype {
68
+ }
69
+ export declare const cancelledSchema: cancelledSchema;
70
+ export declare const hybridSchema: hybridSchema;
71
+ export declare const inpersonSchema: inpersonSchema;
72
+ export declare const mainSchema: mainSchema;
73
+ export declare const modeSchema: modeSchema;
74
+ export declare const plannedSchema: plannedSchema;
75
+ export declare const postponedSchema: postponedSchema;
76
+ export declare const rescheduledSchema: rescheduledSchema;
77
+ export declare const scheduledSchema: scheduledSchema;
78
+ export declare const statusSchema: statusSchema;
79
+ export declare const uriSchema: uriSchema;
80
+ export declare const virtualSchema: virtualSchema;
81
+ export type Cancelled = v.InferInput<typeof cancelledSchema>;
82
+ export type Hybrid = v.InferInput<typeof hybridSchema>;
83
+ export type Inperson = v.InferInput<typeof inpersonSchema>;
84
+ export interface Main extends v.InferInput<typeof mainSchema> {
85
+ }
86
+ export type Mode = v.InferInput<typeof modeSchema>;
87
+ export type Planned = v.InferInput<typeof plannedSchema>;
88
+ export type Postponed = v.InferInput<typeof postponedSchema>;
89
+ export type Rescheduled = v.InferInput<typeof rescheduledSchema>;
90
+ export type Scheduled = v.InferInput<typeof scheduledSchema>;
91
+ export type Status = v.InferInput<typeof statusSchema>;
92
+ export interface Uri extends v.InferInput<typeof uriSchema> {
93
+ }
94
+ export type Virtual = v.InferInput<typeof virtualSchema>;
95
+ declare module '@atcute/lexicons/ambient' {
96
+ interface Records {
97
+ 'community.lexicon.calendar.event': mainSchema;
98
+ }
99
+ }
100
+ export {};
@@ -0,0 +1,65 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ import * as CommunityLexiconLocationAddress from '../location/address.js';
3
+ import * as CommunityLexiconLocationFsq from '../location/fsq.js';
4
+ import * as CommunityLexiconLocationGeo from '../location/geo.js';
5
+ import * as CommunityLexiconLocationHthree from '../location/hthree.js';
6
+ const _cancelledSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.event#cancelled');
7
+ const _hybridSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.event#hybrid');
8
+ const _inpersonSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.event#inperson');
9
+ const _mainSchema = /*#__PURE__*/ v.record(
10
+ /*#__PURE__*/ v.tidString(),
11
+ /*#__PURE__*/ v.object({
12
+ $type: /*#__PURE__*/ v.literal('community.lexicon.calendar.event'),
13
+ createdAt: /*#__PURE__*/ v.datetimeString(),
14
+ description: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
15
+ endsAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()),
16
+ get locations() {
17
+ return /*#__PURE__*/ v.optional(
18
+ /*#__PURE__*/ v.array(
19
+ /*#__PURE__*/ v.variant([
20
+ uriSchema,
21
+ CommunityLexiconLocationAddress.mainSchema,
22
+ CommunityLexiconLocationFsq.mainSchema,
23
+ CommunityLexiconLocationGeo.mainSchema,
24
+ CommunityLexiconLocationHthree.mainSchema,
25
+ ])));
26
+ },
27
+ get mode() {
28
+ return /*#__PURE__*/ v.optional(modeSchema);
29
+ },
30
+ name: /*#__PURE__*/ v.string(),
31
+ startsAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()),
32
+ get status() {
33
+ return /*#__PURE__*/ v.optional(statusSchema);
34
+ },
35
+ get uris() {
36
+ return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(uriSchema));
37
+ },
38
+ }));
39
+ const _modeSchema = /*#__PURE__*/ v.optional(
40
+ /*#__PURE__*/ v.string(), 'community.lexicon.calendar.event#inperson');
41
+ const _plannedSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.event#planned');
42
+ const _postponedSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.event#postponed');
43
+ const _rescheduledSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.event#rescheduled');
44
+ const _scheduledSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.event#scheduled');
45
+ const _statusSchema = /*#__PURE__*/ v.optional(
46
+ /*#__PURE__*/ v.string(), 'community.lexicon.calendar.event#scheduled');
47
+ const _uriSchema = /*#__PURE__*/ v.object({
48
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.calendar.event#uri')),
49
+ name: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
50
+ uri: /*#__PURE__*/ v.genericUriString(),
51
+ });
52
+ const _virtualSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.event#virtual');
53
+ export const cancelledSchema = _cancelledSchema;
54
+ export const hybridSchema = _hybridSchema;
55
+ export const inpersonSchema = _inpersonSchema;
56
+ export const mainSchema = _mainSchema;
57
+ export const modeSchema = _modeSchema;
58
+ export const plannedSchema = _plannedSchema;
59
+ export const postponedSchema = _postponedSchema;
60
+ export const rescheduledSchema = _rescheduledSchema;
61
+ export const scheduledSchema = _scheduledSchema;
62
+ export const statusSchema = _statusSchema;
63
+ export const uriSchema = _uriSchema;
64
+ export const virtualSchema = _virtualSchema;
65
+ //# sourceMappingURL=event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/community/lexicon/calendar/event.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,37 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
3
+ declare const _goingSchema: v.LiteralSchema<"community.lexicon.calendar.rsvp#going">;
4
+ declare const _interestedSchema: v.LiteralSchema<"community.lexicon.calendar.rsvp#interested">;
5
+ declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
6
+ $type: v.LiteralSchema<"community.lexicon.calendar.rsvp">;
7
+ status: v.OptionalSchema<v.StringSchema<(string & {}) | "community.lexicon.calendar.rsvp#going" | "community.lexicon.calendar.rsvp#interested" | "community.lexicon.calendar.rsvp#notgoing">, "community.lexicon.calendar.rsvp#going">;
8
+ readonly subject: ComAtprotoRepoStrongRef.mainSchema;
9
+ }>, v.FormattedStringSchema<"tid">>;
10
+ declare const _notgoingSchema: v.LiteralSchema<"community.lexicon.calendar.rsvp#notgoing">;
11
+ type going$schematype = typeof _goingSchema;
12
+ type interested$schematype = typeof _interestedSchema;
13
+ type main$schematype = typeof _mainSchema;
14
+ type notgoing$schematype = typeof _notgoingSchema;
15
+ export interface goingSchema extends going$schematype {
16
+ }
17
+ export interface interestedSchema extends interested$schematype {
18
+ }
19
+ export interface mainSchema extends main$schematype {
20
+ }
21
+ export interface notgoingSchema extends notgoing$schematype {
22
+ }
23
+ export declare const goingSchema: goingSchema;
24
+ export declare const interestedSchema: interestedSchema;
25
+ export declare const mainSchema: mainSchema;
26
+ export declare const notgoingSchema: notgoingSchema;
27
+ export type Going = v.InferInput<typeof goingSchema>;
28
+ export type Interested = v.InferInput<typeof interestedSchema>;
29
+ export interface Main extends v.InferInput<typeof mainSchema> {
30
+ }
31
+ export type Notgoing = v.InferInput<typeof notgoingSchema>;
32
+ declare module '@atcute/lexicons/ambient' {
33
+ interface Records {
34
+ 'community.lexicon.calendar.rsvp': mainSchema;
35
+ }
36
+ }
37
+ export {};
@@ -0,0 +1,20 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
3
+ const _goingSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.rsvp#going');
4
+ const _interestedSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.rsvp#interested');
5
+ const _mainSchema = /*#__PURE__*/ v.record(
6
+ /*#__PURE__*/ v.tidString(),
7
+ /*#__PURE__*/ v.object({
8
+ $type: /*#__PURE__*/ v.literal('community.lexicon.calendar.rsvp'),
9
+ status: /*#__PURE__*/ v.optional(
10
+ /*#__PURE__*/ v.string(), 'community.lexicon.calendar.rsvp#going'),
11
+ get subject() {
12
+ return ComAtprotoRepoStrongRef.mainSchema;
13
+ },
14
+ }));
15
+ const _notgoingSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.rsvp#notgoing');
16
+ export const goingSchema = _goingSchema;
17
+ export const interestedSchema = _interestedSchema;
18
+ export const mainSchema = _mainSchema;
19
+ export const notgoingSchema = _notgoingSchema;
20
+ //# sourceMappingURL=rsvp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rsvp.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/community/lexicon/calendar/rsvp.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,uBAAuB,MAAM,sCAAsC,CAAC;AAEhF,MAAM,YAAY,GAAG,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,uCAAuC,CAAC,CAAC;AACtF,MAAM,iBAAiB,GAAG,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,4CAA4C,CAAC,CAAC;AAChG,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,iCAAiC,CAAC;IACjE,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC/B,aAAa,CAAC,CAAC,CAAC,MAAM,EAKnB,EACH,uCAAuC,CACvC;IACD,IAAI,OAAO;QACV,OAAO,uBAAuB,CAAC,UAAU,CAAC;IAC3C,CAAC;CACD,CAAC,CACF,CAAC;AACF,MAAM,eAAe,GAAG,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,0CAA0C,CAAC,CAAC;AAY5F,MAAM,CAAC,MAAM,WAAW,GAAG,YAA2B,CAAC;AACvD,MAAM,CAAC,MAAM,gBAAgB,GAAG,iBAAqC,CAAC;AACtE,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC;AACpD,MAAM,CAAC,MAAM,cAAc,GAAG,eAAiC,CAAC"}
@@ -0,0 +1,19 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
3
+ declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
4
+ $type: v.LiteralSchema<"community.lexicon.interaction.like">;
5
+ createdAt: v.FormattedStringSchema<"datetime">;
6
+ readonly subject: ComAtprotoRepoStrongRef.mainSchema;
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
+ 'community.lexicon.interaction.like': mainSchema;
17
+ }
18
+ }
19
+ export {};
@@ -0,0 +1,13 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
3
+ const _mainSchema = /*#__PURE__*/ v.record(
4
+ /*#__PURE__*/ v.tidString(),
5
+ /*#__PURE__*/ v.object({
6
+ $type: /*#__PURE__*/ v.literal('community.lexicon.interaction.like'),
7
+ createdAt: /*#__PURE__*/ v.datetimeString(),
8
+ get subject() {
9
+ return ComAtprotoRepoStrongRef.mainSchema;
10
+ },
11
+ }));
12
+ export const mainSchema = _mainSchema;
13
+ //# sourceMappingURL=like.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"like.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/community/lexicon/interaction/like.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,uBAAuB,MAAM,sCAAsC,CAAC;AAEhF,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,oCAAoC,CAAC;IACpE,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;IAC3C,IAAI,OAAO;QACV,OAAO,uBAAuB,CAAC,UAAU,CAAC;IAC3C,CAAC;CACD,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.ObjectSchema<{
3
+ $type: v.OptionalSchema<v.LiteralSchema<"community.lexicon.location.address">, undefined>;
4
+ country: v.SchemaWithConstraint<v.StringSchema<string>, readonly [v.StringLengthConstraint<2, 10>]>;
5
+ locality: v.OptionalSchema<v.StringSchema<string>, undefined>;
6
+ name: v.OptionalSchema<v.StringSchema<string>, undefined>;
7
+ postalCode: v.OptionalSchema<v.StringSchema<string>, undefined>;
8
+ region: v.OptionalSchema<v.StringSchema<string>, undefined>;
9
+ street: v.OptionalSchema<v.StringSchema<string>, undefined>;
10
+ }>;
11
+ type main$schematype = typeof _mainSchema;
12
+ export interface mainSchema extends main$schematype {
13
+ }
14
+ export declare const mainSchema: mainSchema;
15
+ export interface Main extends v.InferInput<typeof mainSchema> {
16
+ }
17
+ export {};
@@ -0,0 +1,12 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ const _mainSchema = /*#__PURE__*/ v.object({
3
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.location.address')),
4
+ country: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(2, 10)]),
5
+ locality: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
6
+ name: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
7
+ postalCode: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
8
+ region: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
9
+ street: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
10
+ });
11
+ export const mainSchema = _mainSchema;
12
+ //# sourceMappingURL=address.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/community/lexicon/location/address.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,oCAAoC,CAAC,CAAC;IAC9F,OAAO,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;IACnG,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5D,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACxD,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9D,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC1D,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC1D,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ declare const _mainSchema: v.ObjectSchema<{
3
+ $type: v.OptionalSchema<v.LiteralSchema<"community.lexicon.location.fsq">, undefined>;
4
+ fsq_place_id: v.StringSchema<string>;
5
+ latitude: v.OptionalSchema<v.StringSchema<string>, undefined>;
6
+ longitude: v.OptionalSchema<v.StringSchema<string>, undefined>;
7
+ name: v.OptionalSchema<v.StringSchema<string>, undefined>;
8
+ }>;
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
+ export {};
@@ -0,0 +1,10 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ const _mainSchema = /*#__PURE__*/ v.object({
3
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.location.fsq')),
4
+ fsq_place_id: /*#__PURE__*/ v.string(),
5
+ latitude: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
6
+ longitude: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
7
+ name: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
8
+ });
9
+ export const mainSchema = _mainSchema;
10
+ //# sourceMappingURL=fsq.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fsq.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/community/lexicon/location/fsq.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,gCAAgC,CAAC,CAAC;IAC1F,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;IACtC,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5D,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7D,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACxD,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ declare const _mainSchema: v.ObjectSchema<{
3
+ $type: v.OptionalSchema<v.LiteralSchema<"community.lexicon.location.geo">, undefined>;
4
+ altitude: v.OptionalSchema<v.StringSchema<string>, undefined>;
5
+ latitude: v.StringSchema<string>;
6
+ longitude: v.StringSchema<string>;
7
+ name: v.OptionalSchema<v.StringSchema<string>, undefined>;
8
+ }>;
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
+ export {};
@@ -0,0 +1,10 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ const _mainSchema = /*#__PURE__*/ v.object({
3
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.location.geo')),
4
+ altitude: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
5
+ latitude: /*#__PURE__*/ v.string(),
6
+ longitude: /*#__PURE__*/ v.string(),
7
+ name: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
8
+ });
9
+ export const mainSchema = _mainSchema;
10
+ //# sourceMappingURL=geo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geo.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/community/lexicon/location/geo.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,gCAAgC,CAAC,CAAC;IAC1F,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5D,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;IAClC,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;IACnC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACxD,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ declare const _mainSchema: v.ObjectSchema<{
3
+ $type: v.OptionalSchema<v.LiteralSchema<"community.lexicon.location.hthree">, undefined>;
4
+ name: v.OptionalSchema<v.StringSchema<string>, undefined>;
5
+ value: v.StringSchema<string>;
6
+ }>;
7
+ type main$schematype = typeof _mainSchema;
8
+ export interface mainSchema extends main$schematype {
9
+ }
10
+ export declare const mainSchema: mainSchema;
11
+ export interface Main extends v.InferInput<typeof mainSchema> {
12
+ }
13
+ export {};
@@ -0,0 +1,8 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ const _mainSchema = /*#__PURE__*/ v.object({
3
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.location.hthree')),
4
+ name: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
5
+ value: /*#__PURE__*/ v.string(),
6
+ });
7
+ export const mainSchema = _mainSchema;
8
+ //# sourceMappingURL=hthree.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hthree.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/community/lexicon/location/hthree.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,mCAAmC,CAAC,CAAC;IAC7F,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACxD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;CAC/B,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
package/lib/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './lexicons/index.js';
@@ -0,0 +1,9 @@
1
+ export * as CommunityLexiconBookmarksBookmark from './types/community/lexicon/bookmarks/bookmark.js';
2
+ export * as CommunityLexiconBookmarksGetActorBookmarks from './types/community/lexicon/bookmarks/getActorBookmarks.js';
3
+ export * as CommunityLexiconCalendarEvent from './types/community/lexicon/calendar/event.js';
4
+ export * as CommunityLexiconCalendarRsvp from './types/community/lexicon/calendar/rsvp.js';
5
+ export * as CommunityLexiconInteractionLike from './types/community/lexicon/interaction/like.js';
6
+ export * as CommunityLexiconLocationAddress from './types/community/lexicon/location/address.js';
7
+ export * as CommunityLexiconLocationFsq from './types/community/lexicon/location/fsq.js';
8
+ export * as CommunityLexiconLocationGeo from './types/community/lexicon/location/geo.js';
9
+ export * as CommunityLexiconLocationHthree from './types/community/lexicon/location/hthree.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('community.lexicon.bookmarks.bookmark'),
9
+ createdAt: /*#__PURE__*/ v.datetimeString(),
10
+ subject: /*#__PURE__*/ v.genericUriString(),
11
+ tags: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())),
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
+ 'community.lexicon.bookmarks.bookmark': mainSchema;
26
+ }
27
+ }
@@ -0,0 +1,36 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import * as v from '@atcute/lexicons/validations';
3
+ import type {} from '@atcute/lexicons/ambient';
4
+ import * as CommunityLexiconBookmarksBookmark from './bookmark.js';
5
+
6
+ const _mainSchema = /*#__PURE__*/ v.query('community.lexicon.bookmarks.getActorBookmarks', {
7
+ params: /*#__PURE__*/ v.object({
8
+ cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
9
+ limit: /*#__PURE__*/ v.optional(
10
+ /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]),
11
+ 50,
12
+ ),
13
+ tags: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())),
14
+ }),
15
+ output: {
16
+ type: 'lex',
17
+ schema: /*#__PURE__*/ v.object({
18
+ get bookmarks() {
19
+ return /*#__PURE__*/ v.array(CommunityLexiconBookmarksBookmark.mainSchema);
20
+ },
21
+ cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
22
+ }),
23
+ },
24
+ });
25
+
26
+ type main$schematype = typeof _mainSchema;
27
+
28
+ export interface mainSchema extends main$schematype {}
29
+
30
+ export const mainSchema = _mainSchema as mainSchema;
31
+
32
+ declare module '@atcute/lexicons/ambient' {
33
+ interface XRPCQueries {
34
+ 'community.lexicon.bookmarks.getActorBookmarks': mainSchema;
35
+ }
36
+ }
@@ -0,0 +1,132 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import * as v from '@atcute/lexicons/validations';
3
+ import type {} from '@atcute/lexicons/ambient';
4
+ import * as CommunityLexiconLocationAddress from '../location/address.js';
5
+ import * as CommunityLexiconLocationFsq from '../location/fsq.js';
6
+ import * as CommunityLexiconLocationGeo from '../location/geo.js';
7
+ import * as CommunityLexiconLocationHthree from '../location/hthree.js';
8
+
9
+ const _cancelledSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.event#cancelled');
10
+ const _hybridSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.event#hybrid');
11
+ const _inpersonSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.event#inperson');
12
+ const _mainSchema = /*#__PURE__*/ v.record(
13
+ /*#__PURE__*/ v.tidString(),
14
+ /*#__PURE__*/ v.object({
15
+ $type: /*#__PURE__*/ v.literal('community.lexicon.calendar.event'),
16
+ createdAt: /*#__PURE__*/ v.datetimeString(),
17
+ description: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
18
+ endsAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()),
19
+ get locations() {
20
+ return /*#__PURE__*/ v.optional(
21
+ /*#__PURE__*/ v.array(
22
+ /*#__PURE__*/ v.variant([
23
+ uriSchema,
24
+ CommunityLexiconLocationAddress.mainSchema,
25
+ CommunityLexiconLocationFsq.mainSchema,
26
+ CommunityLexiconLocationGeo.mainSchema,
27
+ CommunityLexiconLocationHthree.mainSchema,
28
+ ]),
29
+ ),
30
+ );
31
+ },
32
+ get mode() {
33
+ return /*#__PURE__*/ v.optional(modeSchema);
34
+ },
35
+ name: /*#__PURE__*/ v.string(),
36
+ startsAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()),
37
+ get status() {
38
+ return /*#__PURE__*/ v.optional(statusSchema);
39
+ },
40
+ get uris() {
41
+ return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(uriSchema));
42
+ },
43
+ }),
44
+ );
45
+ const _modeSchema = /*#__PURE__*/ v.optional(
46
+ /*#__PURE__*/ v.string<
47
+ | 'community.lexicon.calendar.event#hybrid'
48
+ | 'community.lexicon.calendar.event#inperson'
49
+ | 'community.lexicon.calendar.event#virtual'
50
+ | (string & {})
51
+ >(),
52
+ 'community.lexicon.calendar.event#inperson',
53
+ );
54
+ const _plannedSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.event#planned');
55
+ const _postponedSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.event#postponed');
56
+ const _rescheduledSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.event#rescheduled');
57
+ const _scheduledSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.event#scheduled');
58
+ const _statusSchema = /*#__PURE__*/ v.optional(
59
+ /*#__PURE__*/ v.string<
60
+ | 'community.lexicon.calendar.event#cancelled'
61
+ | 'community.lexicon.calendar.event#planned'
62
+ | 'community.lexicon.calendar.event#postponed'
63
+ | 'community.lexicon.calendar.event#rescheduled'
64
+ | 'community.lexicon.calendar.event#scheduled'
65
+ | (string & {})
66
+ >(),
67
+ 'community.lexicon.calendar.event#scheduled',
68
+ );
69
+ const _uriSchema = /*#__PURE__*/ v.object({
70
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.calendar.event#uri')),
71
+ name: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
72
+ uri: /*#__PURE__*/ v.genericUriString(),
73
+ });
74
+ const _virtualSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.event#virtual');
75
+
76
+ type cancelled$schematype = typeof _cancelledSchema;
77
+ type hybrid$schematype = typeof _hybridSchema;
78
+ type inperson$schematype = typeof _inpersonSchema;
79
+ type main$schematype = typeof _mainSchema;
80
+ type mode$schematype = typeof _modeSchema;
81
+ type planned$schematype = typeof _plannedSchema;
82
+ type postponed$schematype = typeof _postponedSchema;
83
+ type rescheduled$schematype = typeof _rescheduledSchema;
84
+ type scheduled$schematype = typeof _scheduledSchema;
85
+ type status$schematype = typeof _statusSchema;
86
+ type uri$schematype = typeof _uriSchema;
87
+ type virtual$schematype = typeof _virtualSchema;
88
+
89
+ export interface cancelledSchema extends cancelled$schematype {}
90
+ export interface hybridSchema extends hybrid$schematype {}
91
+ export interface inpersonSchema extends inperson$schematype {}
92
+ export interface mainSchema extends main$schematype {}
93
+ export interface modeSchema extends mode$schematype {}
94
+ export interface plannedSchema extends planned$schematype {}
95
+ export interface postponedSchema extends postponed$schematype {}
96
+ export interface rescheduledSchema extends rescheduled$schematype {}
97
+ export interface scheduledSchema extends scheduled$schematype {}
98
+ export interface statusSchema extends status$schematype {}
99
+ export interface uriSchema extends uri$schematype {}
100
+ export interface virtualSchema extends virtual$schematype {}
101
+
102
+ export const cancelledSchema = _cancelledSchema as cancelledSchema;
103
+ export const hybridSchema = _hybridSchema as hybridSchema;
104
+ export const inpersonSchema = _inpersonSchema as inpersonSchema;
105
+ export const mainSchema = _mainSchema as mainSchema;
106
+ export const modeSchema = _modeSchema as modeSchema;
107
+ export const plannedSchema = _plannedSchema as plannedSchema;
108
+ export const postponedSchema = _postponedSchema as postponedSchema;
109
+ export const rescheduledSchema = _rescheduledSchema as rescheduledSchema;
110
+ export const scheduledSchema = _scheduledSchema as scheduledSchema;
111
+ export const statusSchema = _statusSchema as statusSchema;
112
+ export const uriSchema = _uriSchema as uriSchema;
113
+ export const virtualSchema = _virtualSchema as virtualSchema;
114
+
115
+ export type Cancelled = v.InferInput<typeof cancelledSchema>;
116
+ export type Hybrid = v.InferInput<typeof hybridSchema>;
117
+ export type Inperson = v.InferInput<typeof inpersonSchema>;
118
+ export interface Main extends v.InferInput<typeof mainSchema> {}
119
+ export type Mode = v.InferInput<typeof modeSchema>;
120
+ export type Planned = v.InferInput<typeof plannedSchema>;
121
+ export type Postponed = v.InferInput<typeof postponedSchema>;
122
+ export type Rescheduled = v.InferInput<typeof rescheduledSchema>;
123
+ export type Scheduled = v.InferInput<typeof scheduledSchema>;
124
+ export type Status = v.InferInput<typeof statusSchema>;
125
+ export interface Uri extends v.InferInput<typeof uriSchema> {}
126
+ export type Virtual = v.InferInput<typeof virtualSchema>;
127
+
128
+ declare module '@atcute/lexicons/ambient' {
129
+ interface Records {
130
+ 'community.lexicon.calendar.event': mainSchema;
131
+ }
132
+ }
@@ -0,0 +1,52 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import * as v from '@atcute/lexicons/validations';
3
+ import type {} from '@atcute/lexicons/ambient';
4
+ import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
5
+
6
+ const _goingSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.rsvp#going');
7
+ const _interestedSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.rsvp#interested');
8
+ const _mainSchema = /*#__PURE__*/ v.record(
9
+ /*#__PURE__*/ v.tidString(),
10
+ /*#__PURE__*/ v.object({
11
+ $type: /*#__PURE__*/ v.literal('community.lexicon.calendar.rsvp'),
12
+ status: /*#__PURE__*/ v.optional(
13
+ /*#__PURE__*/ v.string<
14
+ | 'community.lexicon.calendar.rsvp#going'
15
+ | 'community.lexicon.calendar.rsvp#interested'
16
+ | 'community.lexicon.calendar.rsvp#notgoing'
17
+ | (string & {})
18
+ >(),
19
+ 'community.lexicon.calendar.rsvp#going',
20
+ ),
21
+ get subject() {
22
+ return ComAtprotoRepoStrongRef.mainSchema;
23
+ },
24
+ }),
25
+ );
26
+ const _notgoingSchema = /*#__PURE__*/ v.literal('community.lexicon.calendar.rsvp#notgoing');
27
+
28
+ type going$schematype = typeof _goingSchema;
29
+ type interested$schematype = typeof _interestedSchema;
30
+ type main$schematype = typeof _mainSchema;
31
+ type notgoing$schematype = typeof _notgoingSchema;
32
+
33
+ export interface goingSchema extends going$schematype {}
34
+ export interface interestedSchema extends interested$schematype {}
35
+ export interface mainSchema extends main$schematype {}
36
+ export interface notgoingSchema extends notgoing$schematype {}
37
+
38
+ export const goingSchema = _goingSchema as goingSchema;
39
+ export const interestedSchema = _interestedSchema as interestedSchema;
40
+ export const mainSchema = _mainSchema as mainSchema;
41
+ export const notgoingSchema = _notgoingSchema as notgoingSchema;
42
+
43
+ export type Going = v.InferInput<typeof goingSchema>;
44
+ export type Interested = v.InferInput<typeof interestedSchema>;
45
+ export interface Main extends v.InferInput<typeof mainSchema> {}
46
+ export type Notgoing = v.InferInput<typeof notgoingSchema>;
47
+
48
+ declare module '@atcute/lexicons/ambient' {
49
+ interface Records {
50
+ 'community.lexicon.calendar.rsvp': mainSchema;
51
+ }
52
+ }
@@ -0,0 +1,29 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import * as v from '@atcute/lexicons/validations';
3
+ import type {} from '@atcute/lexicons/ambient';
4
+ import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
5
+
6
+ const _mainSchema = /*#__PURE__*/ v.record(
7
+ /*#__PURE__*/ v.tidString(),
8
+ /*#__PURE__*/ v.object({
9
+ $type: /*#__PURE__*/ v.literal('community.lexicon.interaction.like'),
10
+ createdAt: /*#__PURE__*/ v.datetimeString(),
11
+ get subject() {
12
+ return ComAtprotoRepoStrongRef.mainSchema;
13
+ },
14
+ }),
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 Main extends v.InferInput<typeof mainSchema> {}
24
+
25
+ declare module '@atcute/lexicons/ambient' {
26
+ interface Records {
27
+ 'community.lexicon.interaction.like': mainSchema;
28
+ }
29
+ }
@@ -0,0 +1,20 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import * as v from '@atcute/lexicons/validations';
3
+
4
+ const _mainSchema = /*#__PURE__*/ v.object({
5
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.location.address')),
6
+ country: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(2, 10)]),
7
+ locality: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
8
+ name: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
9
+ postalCode: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
10
+ region: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
11
+ street: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
12
+ });
13
+
14
+ type main$schematype = typeof _mainSchema;
15
+
16
+ export interface mainSchema extends main$schematype {}
17
+
18
+ export const mainSchema = _mainSchema as mainSchema;
19
+
20
+ export interface Main extends v.InferInput<typeof mainSchema> {}
@@ -0,0 +1,18 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import * as v from '@atcute/lexicons/validations';
3
+
4
+ const _mainSchema = /*#__PURE__*/ v.object({
5
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.location.fsq')),
6
+ fsq_place_id: /*#__PURE__*/ v.string(),
7
+ latitude: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
8
+ longitude: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
9
+ name: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
10
+ });
11
+
12
+ type main$schematype = typeof _mainSchema;
13
+
14
+ export interface mainSchema extends main$schematype {}
15
+
16
+ export const mainSchema = _mainSchema as mainSchema;
17
+
18
+ export interface Main extends v.InferInput<typeof mainSchema> {}
@@ -0,0 +1,18 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import * as v from '@atcute/lexicons/validations';
3
+
4
+ const _mainSchema = /*#__PURE__*/ v.object({
5
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.location.geo')),
6
+ altitude: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
7
+ latitude: /*#__PURE__*/ v.string(),
8
+ longitude: /*#__PURE__*/ v.string(),
9
+ name: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
10
+ });
11
+
12
+ type main$schematype = typeof _mainSchema;
13
+
14
+ export interface mainSchema extends main$schematype {}
15
+
16
+ export const mainSchema = _mainSchema as mainSchema;
17
+
18
+ export interface Main extends v.InferInput<typeof mainSchema> {}
@@ -0,0 +1,16 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import * as v from '@atcute/lexicons/validations';
3
+
4
+ const _mainSchema = /*#__PURE__*/ v.object({
5
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('community.lexicon.location.hthree')),
6
+ name: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
7
+ value: /*#__PURE__*/ v.string(),
8
+ });
9
+
10
+ type main$schematype = typeof _mainSchema;
11
+
12
+ export interface mainSchema extends main$schematype {}
13
+
14
+ export const mainSchema = _mainSchema as mainSchema;
15
+
16
+ export interface Main extends v.InferInput<typeof mainSchema> {}
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "type": "module",
3
+ "name": "@atcute/lexicon-community",
4
+ "version": "1.0.1",
5
+ "description": "Lexicon Community (community.lexicon.*) schema definitions",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "url": "https://github.com/mary-ext/atcute",
9
+ "directory": "packages/definitions/lexicon-community"
10
+ },
11
+ "files": [
12
+ "dist/",
13
+ "lib/",
14
+ "!lib/**/*.bench.ts",
15
+ "!lib/**/*.test.ts"
16
+ ],
17
+ "exports": {
18
+ ".": "./dist/index.js",
19
+ "./types/": "./dist/lexicons/types/community/lexicon/*.js"
20
+ },
21
+ "dependencies": {
22
+ "@atcute/lexicons": "^1.0.2",
23
+ "@atcute/atproto": "^3.0.2"
24
+ },
25
+ "devDependencies": {
26
+ "@atcute/lexicon-community": "file:",
27
+ "@atcute/lex-cli": "^2.0.2"
28
+ },
29
+ "scripts": {
30
+ "build": "tsc",
31
+ "generate": "rm -r ./lib/lexicons/; lex-cli generate -c ./lex.config.js",
32
+ "prepublish": "rm -rf dist; pnpm run build"
33
+ }
34
+ }