@atcute/bluesky 3.3.2 → 3.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/dist/lexicons/index.d.ts +18 -0
  2. package/dist/lexicons/index.d.ts.map +1 -1
  3. package/dist/lexicons/index.js +18 -0
  4. package/dist/lexicons/index.js.map +1 -1
  5. package/dist/lexicons/types/chat/bsky/actor/declaration.d.ts +4 -0
  6. package/dist/lexicons/types/chat/bsky/actor/declaration.d.ts.map +1 -1
  7. package/dist/lexicons/types/chat/bsky/actor/declaration.js +5 -0
  8. package/dist/lexicons/types/chat/bsky/actor/declaration.js.map +1 -1
  9. package/dist/lexicons/types/chat/bsky/actor/defs.d.ts +37 -0
  10. package/dist/lexicons/types/chat/bsky/actor/defs.d.ts.map +1 -1
  11. package/dist/lexicons/types/chat/bsky/actor/defs.js +30 -0
  12. package/dist/lexicons/types/chat/bsky/actor/defs.js.map +1 -1
  13. package/dist/lexicons/types/chat/bsky/convo/defs.d.ts +444 -3
  14. package/dist/lexicons/types/chat/bsky/convo/defs.d.ts.map +1 -1
  15. package/dist/lexicons/types/chat/bsky/convo/defs.js +364 -3
  16. package/dist/lexicons/types/chat/bsky/convo/defs.js.map +1 -1
  17. package/dist/lexicons/types/chat/bsky/convo/getLog.d.ts +1 -1
  18. package/dist/lexicons/types/chat/bsky/convo/getLog.d.ts.map +1 -1
  19. package/dist/lexicons/types/chat/bsky/convo/getLog.js +17 -0
  20. package/dist/lexicons/types/chat/bsky/convo/getLog.js.map +1 -1
  21. package/dist/lexicons/types/chat/bsky/convo/getMessages.d.ts +1 -1
  22. package/dist/lexicons/types/chat/bsky/convo/getMessages.d.ts.map +1 -1
  23. package/dist/lexicons/types/chat/bsky/convo/getMessages.js +1 -0
  24. package/dist/lexicons/types/chat/bsky/convo/getMessages.js.map +1 -1
  25. package/dist/lexicons/types/chat/bsky/convo/listConvoRequests.d.ts +33 -0
  26. package/dist/lexicons/types/chat/bsky/convo/listConvoRequests.d.ts.map +1 -0
  27. package/dist/lexicons/types/chat/bsky/convo/listConvoRequests.js +30 -0
  28. package/dist/lexicons/types/chat/bsky/convo/listConvoRequests.js.map +1 -0
  29. package/dist/lexicons/types/chat/bsky/convo/listConvos.d.ts +7 -0
  30. package/dist/lexicons/types/chat/bsky/convo/listConvos.d.ts.map +1 -1
  31. package/dist/lexicons/types/chat/bsky/convo/listConvos.js +7 -0
  32. package/dist/lexicons/types/chat/bsky/convo/listConvos.js.map +1 -1
  33. package/dist/lexicons/types/chat/bsky/convo/lockConvo.d.ts +30 -0
  34. package/dist/lexicons/types/chat/bsky/convo/lockConvo.d.ts.map +1 -0
  35. package/dist/lexicons/types/chat/bsky/convo/lockConvo.js +21 -0
  36. package/dist/lexicons/types/chat/bsky/convo/lockConvo.js.map +1 -0
  37. package/dist/lexicons/types/chat/bsky/convo/unlockConvo.d.ts +30 -0
  38. package/dist/lexicons/types/chat/bsky/convo/unlockConvo.d.ts.map +1 -0
  39. package/dist/lexicons/types/chat/bsky/convo/unlockConvo.js +21 -0
  40. package/dist/lexicons/types/chat/bsky/convo/unlockConvo.js.map +1 -0
  41. package/dist/lexicons/types/chat/bsky/group/addMembers.d.ts +34 -0
  42. package/dist/lexicons/types/chat/bsky/group/addMembers.d.ts.map +1 -0
  43. package/dist/lexicons/types/chat/bsky/group/addMembers.js +27 -0
  44. package/dist/lexicons/types/chat/bsky/group/addMembers.js.map +1 -0
  45. package/dist/lexicons/types/chat/bsky/group/approveJoinRequest.d.ts +31 -0
  46. package/dist/lexicons/types/chat/bsky/group/approveJoinRequest.d.ts.map +1 -0
  47. package/dist/lexicons/types/chat/bsky/group/approveJoinRequest.js +22 -0
  48. package/dist/lexicons/types/chat/bsky/group/approveJoinRequest.js.map +1 -0
  49. package/dist/lexicons/types/chat/bsky/group/createGroup.d.ts +39 -0
  50. package/dist/lexicons/types/chat/bsky/group/createGroup.d.ts.map +1 -0
  51. package/dist/lexicons/types/chat/bsky/group/createGroup.js +35 -0
  52. package/dist/lexicons/types/chat/bsky/group/createGroup.js.map +1 -0
  53. package/dist/lexicons/types/chat/bsky/group/createJoinLink.d.ts +35 -0
  54. package/dist/lexicons/types/chat/bsky/group/createJoinLink.d.ts.map +1 -0
  55. package/dist/lexicons/types/chat/bsky/group/createJoinLink.js +28 -0
  56. package/dist/lexicons/types/chat/bsky/group/createJoinLink.js.map +1 -0
  57. package/dist/lexicons/types/chat/bsky/group/defs.d.ts +55 -0
  58. package/dist/lexicons/types/chat/bsky/group/defs.d.ts.map +1 -0
  59. package/dist/lexicons/types/chat/bsky/group/defs.js +39 -0
  60. package/dist/lexicons/types/chat/bsky/group/defs.js.map +1 -0
  61. package/dist/lexicons/types/chat/bsky/group/disableJoinLink.d.ts +30 -0
  62. package/dist/lexicons/types/chat/bsky/group/disableJoinLink.d.ts.map +1 -0
  63. package/dist/lexicons/types/chat/bsky/group/disableJoinLink.js +21 -0
  64. package/dist/lexicons/types/chat/bsky/group/disableJoinLink.js.map +1 -0
  65. package/dist/lexicons/types/chat/bsky/group/editGroup.d.ts +36 -0
  66. package/dist/lexicons/types/chat/bsky/group/editGroup.d.ts.map +1 -0
  67. package/dist/lexicons/types/chat/bsky/group/editGroup.js +30 -0
  68. package/dist/lexicons/types/chat/bsky/group/editGroup.js.map +1 -0
  69. package/dist/lexicons/types/chat/bsky/group/editJoinLink.d.ts +32 -0
  70. package/dist/lexicons/types/chat/bsky/group/editJoinLink.d.ts.map +1 -0
  71. package/dist/lexicons/types/chat/bsky/group/editJoinLink.js +25 -0
  72. package/dist/lexicons/types/chat/bsky/group/editJoinLink.js.map +1 -0
  73. package/dist/lexicons/types/chat/bsky/group/enableJoinLink.d.ts +30 -0
  74. package/dist/lexicons/types/chat/bsky/group/enableJoinLink.d.ts.map +1 -0
  75. package/dist/lexicons/types/chat/bsky/group/enableJoinLink.js +21 -0
  76. package/dist/lexicons/types/chat/bsky/group/enableJoinLink.js.map +1 -0
  77. package/dist/lexicons/types/chat/bsky/group/getGroupPublicInfo.d.ts +25 -0
  78. package/dist/lexicons/types/chat/bsky/group/getGroupPublicInfo.d.ts.map +1 -0
  79. package/dist/lexicons/types/chat/bsky/group/getGroupPublicInfo.js +17 -0
  80. package/dist/lexicons/types/chat/bsky/group/getGroupPublicInfo.js.map +1 -0
  81. package/dist/lexicons/types/chat/bsky/group/listJoinRequests.d.ts +33 -0
  82. package/dist/lexicons/types/chat/bsky/group/listJoinRequests.d.ts.map +1 -0
  83. package/dist/lexicons/types/chat/bsky/group/listJoinRequests.js +26 -0
  84. package/dist/lexicons/types/chat/bsky/group/listJoinRequests.js.map +1 -0
  85. package/dist/lexicons/types/chat/bsky/group/rejectJoinRequest.d.ts +28 -0
  86. package/dist/lexicons/types/chat/bsky/group/rejectJoinRequest.d.ts.map +1 -0
  87. package/dist/lexicons/types/chat/bsky/group/rejectJoinRequest.js +17 -0
  88. package/dist/lexicons/types/chat/bsky/group/rejectJoinRequest.js.map +1 -0
  89. package/dist/lexicons/types/chat/bsky/group/removeMembers.d.ts +34 -0
  90. package/dist/lexicons/types/chat/bsky/group/removeMembers.d.ts.map +1 -0
  91. package/dist/lexicons/types/chat/bsky/group/removeMembers.js +27 -0
  92. package/dist/lexicons/types/chat/bsky/group/removeMembers.js.map +1 -0
  93. package/dist/lexicons/types/chat/bsky/group/requestJoin.d.ts +34 -0
  94. package/dist/lexicons/types/chat/bsky/group/requestJoin.d.ts.map +1 -0
  95. package/dist/lexicons/types/chat/bsky/group/requestJoin.js +25 -0
  96. package/dist/lexicons/types/chat/bsky/group/requestJoin.js.map +1 -0
  97. package/dist/lexicons/types/chat/bsky/moderation/getMessageContext.d.ts +1 -1
  98. package/dist/lexicons/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -1
  99. package/dist/lexicons/types/chat/bsky/moderation/getMessageContext.js +1 -0
  100. package/dist/lexicons/types/chat/bsky/moderation/getMessageContext.js.map +1 -1
  101. package/dist/lexicons/types/chat/bsky/moderation/subscribeModEvents.d.ts +42 -0
  102. package/dist/lexicons/types/chat/bsky/moderation/subscribeModEvents.d.ts.map +1 -0
  103. package/dist/lexicons/types/chat/bsky/moderation/subscribeModEvents.js +31 -0
  104. package/dist/lexicons/types/chat/bsky/moderation/subscribeModEvents.js.map +1 -0
  105. package/lib/lexicons/index.ts +18 -0
  106. package/lib/lexicons/types/chat/bsky/actor/declaration.ts +6 -0
  107. package/lib/lexicons/types/chat/bsky/actor/defs.ts +40 -0
  108. package/lib/lexicons/types/chat/bsky/convo/defs.ts +509 -3
  109. package/lib/lexicons/types/chat/bsky/convo/getLog.ts +17 -0
  110. package/lib/lexicons/types/chat/bsky/convo/getMessages.ts +1 -0
  111. package/lib/lexicons/types/chat/bsky/convo/listConvoRequests.ts +51 -0
  112. package/lib/lexicons/types/chat/bsky/convo/listConvos.ts +7 -0
  113. package/lib/lexicons/types/chat/bsky/convo/lockConvo.ts +39 -0
  114. package/lib/lexicons/types/chat/bsky/convo/unlockConvo.ts +39 -0
  115. package/lib/lexicons/types/chat/bsky/group/addMembers.ts +45 -0
  116. package/lib/lexicons/types/chat/bsky/group/approveJoinRequest.ts +40 -0
  117. package/lib/lexicons/types/chat/bsky/group/createGroup.ts +53 -0
  118. package/lib/lexicons/types/chat/bsky/group/createJoinLink.ts +46 -0
  119. package/lib/lexicons/types/chat/bsky/group/defs.ts +60 -0
  120. package/lib/lexicons/types/chat/bsky/group/disableJoinLink.ts +39 -0
  121. package/lib/lexicons/types/chat/bsky/group/editGroup.ts +48 -0
  122. package/lib/lexicons/types/chat/bsky/group/editJoinLink.ts +43 -0
  123. package/lib/lexicons/types/chat/bsky/group/enableJoinLink.ts +39 -0
  124. package/lib/lexicons/types/chat/bsky/group/getGroupPublicInfo.ts +34 -0
  125. package/lib/lexicons/types/chat/bsky/group/listJoinRequests.ts +45 -0
  126. package/lib/lexicons/types/chat/bsky/group/rejectJoinRequest.ts +34 -0
  127. package/lib/lexicons/types/chat/bsky/group/removeMembers.ts +45 -0
  128. package/lib/lexicons/types/chat/bsky/group/requestJoin.ts +43 -0
  129. package/lib/lexicons/types/chat/bsky/moderation/getMessageContext.ts +1 -0
  130. package/lib/lexicons/types/chat/bsky/moderation/subscribeModEvents.ts +52 -0
  131. package/package.json +5 -5
@@ -16,14 +16,31 @@ const _mainSchema = /*#__PURE__*/ v.query('chat.bsky.convo.getLog', {
16
16
  return /*#__PURE__*/ v.array(
17
17
  /*#__PURE__*/ v.variant([
18
18
  ChatBskyConvoDefs.logAcceptConvoSchema,
19
+ ChatBskyConvoDefs.logAddMemberSchema,
19
20
  ChatBskyConvoDefs.logAddReactionSchema,
21
+ ChatBskyConvoDefs.logApproveJoinRequestSchema,
20
22
  ChatBskyConvoDefs.logBeginConvoSchema,
23
+ ChatBskyConvoDefs.logCreateJoinLinkSchema,
21
24
  ChatBskyConvoDefs.logCreateMessageSchema,
22
25
  ChatBskyConvoDefs.logDeleteMessageSchema,
26
+ ChatBskyConvoDefs.logDisableJoinLinkSchema,
27
+ ChatBskyConvoDefs.logEditGroupSchema,
28
+ ChatBskyConvoDefs.logEditJoinLinkSchema,
29
+ ChatBskyConvoDefs.logEnableJoinLinkSchema,
30
+ ChatBskyConvoDefs.logIncomingJoinRequestSchema,
23
31
  ChatBskyConvoDefs.logLeaveConvoSchema,
32
+ ChatBskyConvoDefs.logLockConvoSchema,
33
+ ChatBskyConvoDefs.logLockConvoPermanentlySchema,
34
+ ChatBskyConvoDefs.logMemberJoinSchema,
35
+ ChatBskyConvoDefs.logMemberLeaveSchema,
24
36
  ChatBskyConvoDefs.logMuteConvoSchema,
37
+ ChatBskyConvoDefs.logOutgoingJoinRequestSchema,
38
+ ChatBskyConvoDefs.logReadConvoSchema,
25
39
  ChatBskyConvoDefs.logReadMessageSchema,
40
+ ChatBskyConvoDefs.logRejectJoinRequestSchema,
41
+ ChatBskyConvoDefs.logRemoveMemberSchema,
26
42
  ChatBskyConvoDefs.logRemoveReactionSchema,
43
+ ChatBskyConvoDefs.logUnlockConvoSchema,
27
44
  ChatBskyConvoDefs.logUnmuteConvoSchema,
28
45
  ]),
29
46
  );
@@ -27,6 +27,7 @@ const _mainSchema = /*#__PURE__*/ v.query('chat.bsky.convo.getMessages', {
27
27
  /*#__PURE__*/ v.variant([
28
28
  ChatBskyConvoDefs.deletedMessageViewSchema,
29
29
  ChatBskyConvoDefs.messageViewSchema,
30
+ ChatBskyConvoDefs.systemMessageViewSchema,
30
31
  ]),
31
32
  );
32
33
  },
@@ -0,0 +1,51 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import type {} from '@atcute/lexicons/ambient';
3
+ import * as v from '@atcute/lexicons/validations';
4
+
5
+ import * as ChatBskyGroupDefs from '../group/defs.ts';
6
+
7
+ import * as ChatBskyConvoDefs from './defs.ts';
8
+
9
+ const _mainSchema = /*#__PURE__*/ v.query('chat.bsky.convo.listConvoRequests', {
10
+ params: /*#__PURE__*/ v.object({
11
+ cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
12
+ /**
13
+ * @minimum 1
14
+ * @maximum 100
15
+ * @default 50
16
+ */
17
+ limit: /*#__PURE__*/ v.optional(
18
+ /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]),
19
+ 50,
20
+ ),
21
+ }),
22
+ output: {
23
+ type: 'lex',
24
+ schema: /*#__PURE__*/ v.object({
25
+ cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
26
+ get requests() {
27
+ return /*#__PURE__*/ v.array(
28
+ /*#__PURE__*/ v.variant([
29
+ ChatBskyConvoDefs.convoViewSchema,
30
+ ChatBskyGroupDefs.joinRequestViewSchema,
31
+ ]),
32
+ );
33
+ },
34
+ }),
35
+ },
36
+ });
37
+
38
+ type main$schematype = typeof _mainSchema;
39
+
40
+ export interface mainSchema extends main$schematype {}
41
+
42
+ export const mainSchema = _mainSchema as mainSchema;
43
+
44
+ export interface $params extends v.InferInput<mainSchema['params']> {}
45
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
46
+
47
+ declare module '@atcute/lexicons/ambient' {
48
+ interface XRPCQueries {
49
+ 'chat.bsky.convo.listConvoRequests': mainSchema;
50
+ }
51
+ }
@@ -7,6 +7,10 @@ import * as ChatBskyConvoDefs from './defs.ts';
7
7
  const _mainSchema = /*#__PURE__*/ v.query('chat.bsky.convo.listConvos', {
8
8
  params: /*#__PURE__*/ v.object({
9
9
  cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
10
+ /**
11
+ * Filter by conversation kind.
12
+ */
13
+ kind: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'direct' | 'group' | (string & {})>()),
10
14
  /**
11
15
  * @minimum 1
12
16
  * @maximum 100
@@ -17,6 +21,9 @@ const _mainSchema = /*#__PURE__*/ v.query('chat.bsky.convo.listConvos', {
17
21
  50,
18
22
  ),
19
23
  readState: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'unread' | (string & {})>()),
24
+ /**
25
+ * Filter convos by their status. It is discouraged to call with "request" and preferred to call chat.bsky.convo.listConvoRequests, which also includes group join requests made by the user.
26
+ */
20
27
  status: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'accepted' | 'request' | (string & {})>()),
21
28
  }),
22
29
  output: {
@@ -0,0 +1,39 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import type {} from '@atcute/lexicons/ambient';
3
+ import * as v from '@atcute/lexicons/validations';
4
+
5
+ import * as ChatBskyConvoDefs from './defs.ts';
6
+
7
+ const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.convo.lockConvo', {
8
+ params: null,
9
+ input: {
10
+ type: 'lex',
11
+ schema: /*#__PURE__*/ v.object({
12
+ convoId: /*#__PURE__*/ v.string(),
13
+ }),
14
+ },
15
+ output: {
16
+ type: 'lex',
17
+ schema: /*#__PURE__*/ v.object({
18
+ get convo() {
19
+ return ChatBskyConvoDefs.convoViewSchema;
20
+ },
21
+ }),
22
+ },
23
+ });
24
+
25
+ type main$schematype = typeof _mainSchema;
26
+
27
+ export interface mainSchema extends main$schematype {}
28
+
29
+ export const mainSchema = _mainSchema as mainSchema;
30
+
31
+ export interface $params {}
32
+ export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
33
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
34
+
35
+ declare module '@atcute/lexicons/ambient' {
36
+ interface XRPCProcedures {
37
+ 'chat.bsky.convo.lockConvo': mainSchema;
38
+ }
39
+ }
@@ -0,0 +1,39 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import type {} from '@atcute/lexicons/ambient';
3
+ import * as v from '@atcute/lexicons/validations';
4
+
5
+ import * as ChatBskyConvoDefs from './defs.ts';
6
+
7
+ const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.convo.unlockConvo', {
8
+ params: null,
9
+ input: {
10
+ type: 'lex',
11
+ schema: /*#__PURE__*/ v.object({
12
+ convoId: /*#__PURE__*/ v.string(),
13
+ }),
14
+ },
15
+ output: {
16
+ type: 'lex',
17
+ schema: /*#__PURE__*/ v.object({
18
+ get convo() {
19
+ return ChatBskyConvoDefs.convoViewSchema;
20
+ },
21
+ }),
22
+ },
23
+ });
24
+
25
+ type main$schematype = typeof _mainSchema;
26
+
27
+ export interface mainSchema extends main$schematype {}
28
+
29
+ export const mainSchema = _mainSchema as mainSchema;
30
+
31
+ export interface $params {}
32
+ export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
33
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
34
+
35
+ declare module '@atcute/lexicons/ambient' {
36
+ interface XRPCProcedures {
37
+ 'chat.bsky.convo.unlockConvo': mainSchema;
38
+ }
39
+ }
@@ -0,0 +1,45 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import type {} from '@atcute/lexicons/ambient';
3
+ import * as v from '@atcute/lexicons/validations';
4
+
5
+ import * as ChatBskyConvoDefs from '../convo/defs.ts';
6
+
7
+ const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.group.addMembers', {
8
+ params: null,
9
+ input: {
10
+ type: 'lex',
11
+ schema: /*#__PURE__*/ v.object({
12
+ convoId: /*#__PURE__*/ v.string(),
13
+ /**
14
+ * @minLength 1
15
+ */
16
+ members: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString()), [
17
+ /*#__PURE__*/ v.arrayLength(1),
18
+ ]),
19
+ }),
20
+ },
21
+ output: {
22
+ type: 'lex',
23
+ schema: /*#__PURE__*/ v.object({
24
+ get convo() {
25
+ return ChatBskyConvoDefs.convoViewSchema;
26
+ },
27
+ }),
28
+ },
29
+ });
30
+
31
+ type main$schematype = typeof _mainSchema;
32
+
33
+ export interface mainSchema extends main$schematype {}
34
+
35
+ export const mainSchema = _mainSchema as mainSchema;
36
+
37
+ export interface $params {}
38
+ export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
39
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
40
+
41
+ declare module '@atcute/lexicons/ambient' {
42
+ interface XRPCProcedures {
43
+ 'chat.bsky.group.addMembers': mainSchema;
44
+ }
45
+ }
@@ -0,0 +1,40 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import type {} from '@atcute/lexicons/ambient';
3
+ import * as v from '@atcute/lexicons/validations';
4
+
5
+ import * as ChatBskyConvoDefs from '../convo/defs.ts';
6
+
7
+ const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.group.approveJoinRequest', {
8
+ params: null,
9
+ input: {
10
+ type: 'lex',
11
+ schema: /*#__PURE__*/ v.object({
12
+ convoId: /*#__PURE__*/ v.string(),
13
+ member: /*#__PURE__*/ v.didString(),
14
+ }),
15
+ },
16
+ output: {
17
+ type: 'lex',
18
+ schema: /*#__PURE__*/ v.object({
19
+ get convo() {
20
+ return ChatBskyConvoDefs.convoViewSchema;
21
+ },
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
+ export interface $params {}
33
+ export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
34
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
35
+
36
+ declare module '@atcute/lexicons/ambient' {
37
+ interface XRPCProcedures {
38
+ 'chat.bsky.group.approveJoinRequest': mainSchema;
39
+ }
40
+ }
@@ -0,0 +1,53 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import type {} from '@atcute/lexicons/ambient';
3
+ import * as v from '@atcute/lexicons/validations';
4
+
5
+ import * as ChatBskyConvoDefs from '../convo/defs.ts';
6
+
7
+ const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.group.createGroup', {
8
+ params: null,
9
+ input: {
10
+ type: 'lex',
11
+ schema: /*#__PURE__*/ v.object({
12
+ /**
13
+ * @maxLength 49
14
+ */
15
+ members: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString()), [
16
+ /*#__PURE__*/ v.arrayLength(0, 49),
17
+ ]),
18
+ /**
19
+ * @minLength 1
20
+ * @maxLength 1280
21
+ * @maxGraphemes 128
22
+ */
23
+ name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
24
+ /*#__PURE__*/ v.stringLength(1, 1280),
25
+ /*#__PURE__*/ v.stringGraphemes(0, 128),
26
+ ]),
27
+ }),
28
+ },
29
+ output: {
30
+ type: 'lex',
31
+ schema: /*#__PURE__*/ v.object({
32
+ get convo() {
33
+ return ChatBskyConvoDefs.convoViewSchema;
34
+ },
35
+ }),
36
+ },
37
+ });
38
+
39
+ type main$schematype = typeof _mainSchema;
40
+
41
+ export interface mainSchema extends main$schematype {}
42
+
43
+ export const mainSchema = _mainSchema as mainSchema;
44
+
45
+ export interface $params {}
46
+ export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
47
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
48
+
49
+ declare module '@atcute/lexicons/ambient' {
50
+ interface XRPCProcedures {
51
+ 'chat.bsky.group.createGroup': mainSchema;
52
+ }
53
+ }
@@ -0,0 +1,46 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import type {} from '@atcute/lexicons/ambient';
3
+ import * as v from '@atcute/lexicons/validations';
4
+
5
+ import * as ChatBskyGroupDefs from './defs.ts';
6
+
7
+ const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.group.createJoinLink', {
8
+ params: null,
9
+ input: {
10
+ type: 'lex',
11
+ schema: /*#__PURE__*/ v.object({
12
+ convoId: /*#__PURE__*/ v.string(),
13
+ get joinRule() {
14
+ return ChatBskyGroupDefs.joinRuleSchema;
15
+ },
16
+ /**
17
+ * @default false
18
+ */
19
+ requireApproval: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false),
20
+ }),
21
+ },
22
+ output: {
23
+ type: 'lex',
24
+ schema: /*#__PURE__*/ v.object({
25
+ get joinLink() {
26
+ return ChatBskyGroupDefs.joinLinkViewSchema;
27
+ },
28
+ }),
29
+ },
30
+ });
31
+
32
+ type main$schematype = typeof _mainSchema;
33
+
34
+ export interface mainSchema extends main$schematype {}
35
+
36
+ export const mainSchema = _mainSchema as mainSchema;
37
+
38
+ export interface $params {}
39
+ export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
40
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
41
+
42
+ declare module '@atcute/lexicons/ambient' {
43
+ interface XRPCProcedures {
44
+ 'chat.bsky.group.createJoinLink': mainSchema;
45
+ }
46
+ }
@@ -0,0 +1,60 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import * as v from '@atcute/lexicons/validations';
3
+
4
+ import * as ChatBskyActorDefs from '../actor/defs.ts';
5
+
6
+ const _groupPublicViewSchema = /*#__PURE__*/ v.object({
7
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.group.defs#groupPublicView')),
8
+ memberCount: /*#__PURE__*/ v.integer(),
9
+ name: /*#__PURE__*/ v.string(),
10
+ get owner() {
11
+ return ChatBskyActorDefs.profileViewBasicSchema;
12
+ },
13
+ requireApproval: /*#__PURE__*/ v.boolean(),
14
+ });
15
+ const _joinLinkViewSchema = /*#__PURE__*/ v.object({
16
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.group.defs#joinLinkView')),
17
+ code: /*#__PURE__*/ v.string(),
18
+ createdAt: /*#__PURE__*/ v.datetimeString(),
19
+ get enabledStatus() {
20
+ return linkEnabledStatusSchema;
21
+ },
22
+ get joinRule() {
23
+ return joinRuleSchema;
24
+ },
25
+ requireApproval: /*#__PURE__*/ v.boolean(),
26
+ });
27
+ const _joinRequestViewSchema = /*#__PURE__*/ v.object({
28
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.group.defs#joinRequestView')),
29
+ convoId: /*#__PURE__*/ v.string(),
30
+ requestedAt: /*#__PURE__*/ v.datetimeString(),
31
+ get requestedBy() {
32
+ return ChatBskyActorDefs.profileViewBasicSchema;
33
+ },
34
+ });
35
+ const _joinRuleSchema = /*#__PURE__*/ v.string<'anyone' | 'followedByOwner' | (string & {})>();
36
+ const _linkEnabledStatusSchema = /*#__PURE__*/ v.string<'disabled' | 'enabled' | (string & {})>();
37
+
38
+ type groupPublicView$schematype = typeof _groupPublicViewSchema;
39
+ type joinLinkView$schematype = typeof _joinLinkViewSchema;
40
+ type joinRequestView$schematype = typeof _joinRequestViewSchema;
41
+ type joinRule$schematype = typeof _joinRuleSchema;
42
+ type linkEnabledStatus$schematype = typeof _linkEnabledStatusSchema;
43
+
44
+ export interface groupPublicViewSchema extends groupPublicView$schematype {}
45
+ export interface joinLinkViewSchema extends joinLinkView$schematype {}
46
+ export interface joinRequestViewSchema extends joinRequestView$schematype {}
47
+ export interface joinRuleSchema extends joinRule$schematype {}
48
+ export interface linkEnabledStatusSchema extends linkEnabledStatus$schematype {}
49
+
50
+ export const groupPublicViewSchema = _groupPublicViewSchema as groupPublicViewSchema;
51
+ export const joinLinkViewSchema = _joinLinkViewSchema as joinLinkViewSchema;
52
+ export const joinRequestViewSchema = _joinRequestViewSchema as joinRequestViewSchema;
53
+ export const joinRuleSchema = _joinRuleSchema as joinRuleSchema;
54
+ export const linkEnabledStatusSchema = _linkEnabledStatusSchema as linkEnabledStatusSchema;
55
+
56
+ export interface GroupPublicView extends v.InferInput<typeof groupPublicViewSchema> {}
57
+ export interface JoinLinkView extends v.InferInput<typeof joinLinkViewSchema> {}
58
+ export interface JoinRequestView extends v.InferInput<typeof joinRequestViewSchema> {}
59
+ export type JoinRule = v.InferInput<typeof joinRuleSchema>;
60
+ export type LinkEnabledStatus = v.InferInput<typeof linkEnabledStatusSchema>;
@@ -0,0 +1,39 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import type {} from '@atcute/lexicons/ambient';
3
+ import * as v from '@atcute/lexicons/validations';
4
+
5
+ import * as ChatBskyGroupDefs from './defs.ts';
6
+
7
+ const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.group.disableJoinLink', {
8
+ params: null,
9
+ input: {
10
+ type: 'lex',
11
+ schema: /*#__PURE__*/ v.object({
12
+ convoId: /*#__PURE__*/ v.string(),
13
+ }),
14
+ },
15
+ output: {
16
+ type: 'lex',
17
+ schema: /*#__PURE__*/ v.object({
18
+ get joinLink() {
19
+ return ChatBskyGroupDefs.joinLinkViewSchema;
20
+ },
21
+ }),
22
+ },
23
+ });
24
+
25
+ type main$schematype = typeof _mainSchema;
26
+
27
+ export interface mainSchema extends main$schematype {}
28
+
29
+ export const mainSchema = _mainSchema as mainSchema;
30
+
31
+ export interface $params {}
32
+ export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
33
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
34
+
35
+ declare module '@atcute/lexicons/ambient' {
36
+ interface XRPCProcedures {
37
+ 'chat.bsky.group.disableJoinLink': mainSchema;
38
+ }
39
+ }
@@ -0,0 +1,48 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import type {} from '@atcute/lexicons/ambient';
3
+ import * as v from '@atcute/lexicons/validations';
4
+
5
+ import * as ChatBskyConvoDefs from '../convo/defs.ts';
6
+
7
+ const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.group.editGroup', {
8
+ params: null,
9
+ input: {
10
+ type: 'lex',
11
+ schema: /*#__PURE__*/ v.object({
12
+ convoId: /*#__PURE__*/ v.string(),
13
+ /**
14
+ * @minLength 1
15
+ * @maxLength 1280
16
+ * @maxGraphemes 128
17
+ */
18
+ name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
19
+ /*#__PURE__*/ v.stringLength(1, 1280),
20
+ /*#__PURE__*/ v.stringGraphemes(0, 128),
21
+ ]),
22
+ }),
23
+ },
24
+ output: {
25
+ type: 'lex',
26
+ schema: /*#__PURE__*/ v.object({
27
+ get convo() {
28
+ return ChatBskyConvoDefs.convoViewSchema;
29
+ },
30
+ }),
31
+ },
32
+ });
33
+
34
+ type main$schematype = typeof _mainSchema;
35
+
36
+ export interface mainSchema extends main$schematype {}
37
+
38
+ export const mainSchema = _mainSchema as mainSchema;
39
+
40
+ export interface $params {}
41
+ export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
42
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
43
+
44
+ declare module '@atcute/lexicons/ambient' {
45
+ interface XRPCProcedures {
46
+ 'chat.bsky.group.editGroup': mainSchema;
47
+ }
48
+ }
@@ -0,0 +1,43 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import type {} from '@atcute/lexicons/ambient';
3
+ import * as v from '@atcute/lexicons/validations';
4
+
5
+ import * as ChatBskyGroupDefs from './defs.ts';
6
+
7
+ const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.group.editJoinLink', {
8
+ params: null,
9
+ input: {
10
+ type: 'lex',
11
+ schema: /*#__PURE__*/ v.object({
12
+ convoId: /*#__PURE__*/ v.string(),
13
+ get joinRule() {
14
+ return /*#__PURE__*/ v.optional(ChatBskyGroupDefs.joinRuleSchema);
15
+ },
16
+ requireApproval: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
17
+ }),
18
+ },
19
+ output: {
20
+ type: 'lex',
21
+ schema: /*#__PURE__*/ v.object({
22
+ get joinLink() {
23
+ return ChatBskyGroupDefs.joinLinkViewSchema;
24
+ },
25
+ }),
26
+ },
27
+ });
28
+
29
+ type main$schematype = typeof _mainSchema;
30
+
31
+ export interface mainSchema extends main$schematype {}
32
+
33
+ export const mainSchema = _mainSchema as mainSchema;
34
+
35
+ export interface $params {}
36
+ export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
37
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
38
+
39
+ declare module '@atcute/lexicons/ambient' {
40
+ interface XRPCProcedures {
41
+ 'chat.bsky.group.editJoinLink': mainSchema;
42
+ }
43
+ }
@@ -0,0 +1,39 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import type {} from '@atcute/lexicons/ambient';
3
+ import * as v from '@atcute/lexicons/validations';
4
+
5
+ import * as ChatBskyGroupDefs from './defs.ts';
6
+
7
+ const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.group.enableJoinLink', {
8
+ params: null,
9
+ input: {
10
+ type: 'lex',
11
+ schema: /*#__PURE__*/ v.object({
12
+ convoId: /*#__PURE__*/ v.string(),
13
+ }),
14
+ },
15
+ output: {
16
+ type: 'lex',
17
+ schema: /*#__PURE__*/ v.object({
18
+ get joinLink() {
19
+ return ChatBskyGroupDefs.joinLinkViewSchema;
20
+ },
21
+ }),
22
+ },
23
+ });
24
+
25
+ type main$schematype = typeof _mainSchema;
26
+
27
+ export interface mainSchema extends main$schematype {}
28
+
29
+ export const mainSchema = _mainSchema as mainSchema;
30
+
31
+ export interface $params {}
32
+ export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
33
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
34
+
35
+ declare module '@atcute/lexicons/ambient' {
36
+ interface XRPCProcedures {
37
+ 'chat.bsky.group.enableJoinLink': mainSchema;
38
+ }
39
+ }
@@ -0,0 +1,34 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import type {} from '@atcute/lexicons/ambient';
3
+ import * as v from '@atcute/lexicons/validations';
4
+
5
+ import * as ChatBskyGroupDefs from './defs.ts';
6
+
7
+ const _mainSchema = /*#__PURE__*/ v.query('chat.bsky.group.getGroupPublicInfo', {
8
+ params: /*#__PURE__*/ v.object({
9
+ code: /*#__PURE__*/ v.string(),
10
+ }),
11
+ output: {
12
+ type: 'lex',
13
+ schema: /*#__PURE__*/ v.object({
14
+ get group() {
15
+ return ChatBskyGroupDefs.groupPublicViewSchema;
16
+ },
17
+ }),
18
+ },
19
+ });
20
+
21
+ type main$schematype = typeof _mainSchema;
22
+
23
+ export interface mainSchema extends main$schematype {}
24
+
25
+ export const mainSchema = _mainSchema as mainSchema;
26
+
27
+ export interface $params extends v.InferInput<mainSchema['params']> {}
28
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
29
+
30
+ declare module '@atcute/lexicons/ambient' {
31
+ interface XRPCQueries {
32
+ 'chat.bsky.group.getGroupPublicInfo': mainSchema;
33
+ }
34
+ }