@atproto/api 0.12.8 → 0.12.10

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 (122) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/client/index.d.ts +102 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +300 -3
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +907 -0
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +932 -0
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/actor/defs.d.ts +7 -0
  11. package/dist/client/types/app/bsky/actor/defs.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/actor/defs.js +11 -1
  13. package/dist/client/types/app/bsky/actor/defs.js.map +1 -1
  14. package/dist/client/types/chat/bsky/actor/declaration.d.ts +11 -0
  15. package/dist/client/types/chat/bsky/actor/declaration.d.ts.map +1 -0
  16. package/dist/client/types/chat/bsky/actor/declaration.js +17 -0
  17. package/dist/client/types/chat/bsky/actor/declaration.js.map +1 -0
  18. package/dist/client/types/chat/bsky/actor/defs.d.ts +21 -0
  19. package/dist/client/types/chat/bsky/actor/defs.d.ts.map +1 -0
  20. package/dist/client/types/chat/bsky/actor/defs.js +16 -0
  21. package/dist/client/types/chat/bsky/actor/defs.js.map +1 -0
  22. package/dist/client/types/chat/bsky/actor/deleteAccount.d.ts +21 -0
  23. package/dist/client/types/chat/bsky/actor/deleteAccount.d.ts.map +1 -0
  24. package/dist/client/types/chat/bsky/actor/deleteAccount.js +14 -0
  25. package/dist/client/types/chat/bsky/actor/deleteAccount.js.map +1 -0
  26. package/dist/client/types/chat/bsky/actor/exportAccountData.d.ts +17 -0
  27. package/dist/client/types/chat/bsky/actor/exportAccountData.d.ts.map +1 -0
  28. package/dist/client/types/chat/bsky/actor/exportAccountData.js +14 -0
  29. package/dist/client/types/chat/bsky/actor/exportAccountData.js.map +1 -0
  30. package/dist/client/types/chat/bsky/convo/defs.d.ts +109 -0
  31. package/dist/client/types/chat/bsky/convo/defs.d.ts.map +1 -0
  32. package/dist/client/types/chat/bsky/convo/defs.js +106 -0
  33. package/dist/client/types/chat/bsky/convo/defs.js.map +1 -0
  34. package/dist/client/types/chat/bsky/convo/deleteMessageForSelf.d.ts +25 -0
  35. package/dist/client/types/chat/bsky/convo/deleteMessageForSelf.d.ts.map +1 -0
  36. package/dist/client/types/chat/bsky/convo/deleteMessageForSelf.js +14 -0
  37. package/dist/client/types/chat/bsky/convo/deleteMessageForSelf.js.map +1 -0
  38. package/dist/client/types/chat/bsky/convo/getConvo.d.ts +23 -0
  39. package/dist/client/types/chat/bsky/convo/getConvo.d.ts.map +1 -0
  40. package/dist/client/types/chat/bsky/convo/getConvo.js +14 -0
  41. package/dist/client/types/chat/bsky/convo/getConvo.js.map +1 -0
  42. package/dist/client/types/chat/bsky/convo/getConvoForMembers.d.ts +23 -0
  43. package/dist/client/types/chat/bsky/convo/getConvoForMembers.d.ts.map +1 -0
  44. package/dist/client/types/chat/bsky/convo/getConvoForMembers.js +14 -0
  45. package/dist/client/types/chat/bsky/convo/getConvoForMembers.js.map +1 -0
  46. package/dist/client/types/chat/bsky/convo/getLog.d.ts +27 -0
  47. package/dist/client/types/chat/bsky/convo/getLog.d.ts.map +1 -0
  48. package/dist/client/types/chat/bsky/convo/getLog.js +14 -0
  49. package/dist/client/types/chat/bsky/convo/getLog.js.map +1 -0
  50. package/dist/client/types/chat/bsky/convo/getMessages.d.ts +29 -0
  51. package/dist/client/types/chat/bsky/convo/getMessages.d.ts.map +1 -0
  52. package/dist/client/types/chat/bsky/convo/getMessages.js +14 -0
  53. package/dist/client/types/chat/bsky/convo/getMessages.js.map +1 -0
  54. package/dist/client/types/chat/bsky/convo/leaveConvo.d.ts +27 -0
  55. package/dist/client/types/chat/bsky/convo/leaveConvo.d.ts.map +1 -0
  56. package/dist/client/types/chat/bsky/convo/leaveConvo.js +14 -0
  57. package/dist/client/types/chat/bsky/convo/leaveConvo.js.map +1 -0
  58. package/dist/client/types/chat/bsky/convo/listConvos.d.ts +25 -0
  59. package/dist/client/types/chat/bsky/convo/listConvos.d.ts.map +1 -0
  60. package/dist/client/types/chat/bsky/convo/listConvos.js +14 -0
  61. package/dist/client/types/chat/bsky/convo/listConvos.js.map +1 -0
  62. package/dist/client/types/chat/bsky/convo/muteConvo.d.ts +27 -0
  63. package/dist/client/types/chat/bsky/convo/muteConvo.d.ts.map +1 -0
  64. package/dist/client/types/chat/bsky/convo/muteConvo.js +14 -0
  65. package/dist/client/types/chat/bsky/convo/muteConvo.js.map +1 -0
  66. package/dist/client/types/chat/bsky/convo/sendMessage.d.ts +25 -0
  67. package/dist/client/types/chat/bsky/convo/sendMessage.d.ts.map +1 -0
  68. package/dist/client/types/chat/bsky/convo/sendMessage.js +14 -0
  69. package/dist/client/types/chat/bsky/convo/sendMessage.js.map +1 -0
  70. package/dist/client/types/chat/bsky/convo/sendMessageBatch.d.ts +35 -0
  71. package/dist/client/types/chat/bsky/convo/sendMessageBatch.d.ts.map +1 -0
  72. package/dist/client/types/chat/bsky/convo/sendMessageBatch.js +26 -0
  73. package/dist/client/types/chat/bsky/convo/sendMessageBatch.js.map +1 -0
  74. package/dist/client/types/chat/bsky/convo/unmuteConvo.d.ts +27 -0
  75. package/dist/client/types/chat/bsky/convo/unmuteConvo.d.ts.map +1 -0
  76. package/dist/client/types/chat/bsky/convo/unmuteConvo.js +14 -0
  77. package/dist/client/types/chat/bsky/convo/unmuteConvo.js.map +1 -0
  78. package/dist/client/types/chat/bsky/convo/updateRead.d.ts +28 -0
  79. package/dist/client/types/chat/bsky/convo/updateRead.d.ts.map +1 -0
  80. package/dist/client/types/chat/bsky/convo/updateRead.js +14 -0
  81. package/dist/client/types/chat/bsky/convo/updateRead.js.map +1 -0
  82. package/dist/client/types/chat/bsky/moderation/getActorMetadata.d.ts +34 -0
  83. package/dist/client/types/chat/bsky/moderation/getActorMetadata.d.ts.map +1 -0
  84. package/dist/client/types/chat/bsky/moderation/getActorMetadata.js +26 -0
  85. package/dist/client/types/chat/bsky/moderation/getActorMetadata.js.map +1 -0
  86. package/dist/client/types/chat/bsky/moderation/getMessageContext.d.ts +28 -0
  87. package/dist/client/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -0
  88. package/dist/client/types/chat/bsky/moderation/getMessageContext.js +14 -0
  89. package/dist/client/types/chat/bsky/moderation/getMessageContext.js.map +1 -0
  90. package/dist/client/types/chat/bsky/moderation/updateActorAccess.d.ts +23 -0
  91. package/dist/client/types/chat/bsky/moderation/updateActorAccess.d.ts.map +1 -0
  92. package/dist/client/types/chat/bsky/moderation/updateActorAccess.js +14 -0
  93. package/dist/client/types/chat/bsky/moderation/updateActorAccess.js.map +1 -0
  94. package/dist/moderation/decision.d.ts.map +1 -1
  95. package/dist/moderation/decision.js +12 -6
  96. package/dist/moderation/decision.js.map +1 -1
  97. package/package.json +3 -3
  98. package/src/client/index.ts +349 -0
  99. package/src/client/lexicons.ts +933 -0
  100. package/src/client/types/app/bsky/actor/defs.ts +20 -0
  101. package/src/client/types/chat/bsky/actor/declaration.ts +25 -0
  102. package/src/client/types/chat/bsky/actor/defs.ts +34 -0
  103. package/src/client/types/chat/bsky/actor/deleteAccount.ts +33 -0
  104. package/src/client/types/chat/bsky/actor/exportAccountData.ts +28 -0
  105. package/src/client/types/chat/bsky/convo/defs.ts +215 -0
  106. package/src/client/types/chat/bsky/convo/deleteMessageForSelf.ts +37 -0
  107. package/src/client/types/chat/bsky/convo/getConvo.ts +36 -0
  108. package/src/client/types/chat/bsky/convo/getConvoForMembers.ts +36 -0
  109. package/src/client/types/chat/bsky/convo/getLog.ts +43 -0
  110. package/src/client/types/chat/bsky/convo/getMessages.ts +43 -0
  111. package/src/client/types/chat/bsky/convo/leaveConvo.ts +39 -0
  112. package/src/client/types/chat/bsky/convo/listConvos.ts +38 -0
  113. package/src/client/types/chat/bsky/convo/muteConvo.ts +39 -0
  114. package/src/client/types/chat/bsky/convo/sendMessage.ts +37 -0
  115. package/src/client/types/chat/bsky/convo/sendMessageBatch.ts +57 -0
  116. package/src/client/types/chat/bsky/convo/unmuteConvo.ts +39 -0
  117. package/src/client/types/chat/bsky/convo/updateRead.ts +40 -0
  118. package/src/client/types/chat/bsky/moderation/getActorMetadata.ts +57 -0
  119. package/src/client/types/chat/bsky/moderation/getMessageContext.ts +42 -0
  120. package/src/client/types/chat/bsky/moderation/updateActorAccess.ts +34 -0
  121. package/src/moderation/decision.ts +12 -6
  122. package/tests/moderation-behaviors.test.ts +45 -8
@@ -89,6 +89,7 @@ export interface ProfileAssociated {
89
89
  lists?: number
90
90
  feedgens?: number
91
91
  labeler?: boolean
92
+ chat?: ProfileAssociatedChat
92
93
  [k: string]: unknown
93
94
  }
94
95
 
@@ -104,6 +105,25 @@ export function validateProfileAssociated(v: unknown): ValidationResult {
104
105
  return lexicons.validate('app.bsky.actor.defs#profileAssociated', v)
105
106
  }
106
107
 
108
+ export interface ProfileAssociatedChat {
109
+ allowIncoming: 'all' | 'none' | 'following' | (string & {})
110
+ [k: string]: unknown
111
+ }
112
+
113
+ export function isProfileAssociatedChat(
114
+ v: unknown,
115
+ ): v is ProfileAssociatedChat {
116
+ return (
117
+ isObj(v) &&
118
+ hasProp(v, '$type') &&
119
+ v.$type === 'app.bsky.actor.defs#profileAssociatedChat'
120
+ )
121
+ }
122
+
123
+ export function validateProfileAssociatedChat(v: unknown): ValidationResult {
124
+ return lexicons.validate('app.bsky.actor.defs#profileAssociatedChat', v)
125
+ }
126
+
107
127
  /** Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests. */
108
128
  export interface ViewerState {
109
129
  muted?: boolean
@@ -0,0 +1,25 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
5
+ import { isObj, hasProp } from '../../../../util'
6
+ import { lexicons } from '../../../../lexicons'
7
+ import { CID } from 'multiformats/cid'
8
+
9
+ export interface Record {
10
+ allowIncoming: 'all' | 'none' | 'following' | (string & {})
11
+ [k: string]: unknown
12
+ }
13
+
14
+ export function isRecord(v: unknown): v is Record {
15
+ return (
16
+ isObj(v) &&
17
+ hasProp(v, '$type') &&
18
+ (v.$type === 'chat.bsky.actor.declaration#main' ||
19
+ v.$type === 'chat.bsky.actor.declaration')
20
+ )
21
+ }
22
+
23
+ export function validateRecord(v: unknown): ValidationResult {
24
+ return lexicons.validate('chat.bsky.actor.declaration#main', v)
25
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
5
+ import { isObj, hasProp } from '../../../../util'
6
+ import { lexicons } from '../../../../lexicons'
7
+ import { CID } from 'multiformats/cid'
8
+ import * as AppBskyActorDefs from '../../../app/bsky/actor/defs'
9
+ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
10
+
11
+ export interface ProfileViewBasic {
12
+ did: string
13
+ handle: string
14
+ displayName?: string
15
+ avatar?: string
16
+ associated?: AppBskyActorDefs.ProfileAssociated
17
+ viewer?: AppBskyActorDefs.ViewerState
18
+ labels?: ComAtprotoLabelDefs.Label[]
19
+ /** Set to true when the actor cannot actively participate in converations */
20
+ chatDisabled?: boolean
21
+ [k: string]: unknown
22
+ }
23
+
24
+ export function isProfileViewBasic(v: unknown): v is ProfileViewBasic {
25
+ return (
26
+ isObj(v) &&
27
+ hasProp(v, '$type') &&
28
+ v.$type === 'chat.bsky.actor.defs#profileViewBasic'
29
+ )
30
+ }
31
+
32
+ export function validateProfileViewBasic(v: unknown): ValidationResult {
33
+ return lexicons.validate('chat.bsky.actor.defs#profileViewBasic', v)
34
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { Headers, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { isObj, hasProp } from '../../../../util'
7
+ import { lexicons } from '../../../../lexicons'
8
+ import { CID } from 'multiformats/cid'
9
+
10
+ export interface QueryParams {}
11
+
12
+ export type InputSchema = undefined
13
+
14
+ export interface OutputSchema {
15
+ [k: string]: unknown
16
+ }
17
+
18
+ export interface CallOptions {
19
+ headers?: Headers
20
+ qp?: QueryParams
21
+ }
22
+
23
+ export interface Response {
24
+ success: boolean
25
+ headers: Headers
26
+ data: OutputSchema
27
+ }
28
+
29
+ export function toKnownErr(e: any) {
30
+ if (e instanceof XRPCError) {
31
+ }
32
+ return e
33
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { Headers, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { isObj, hasProp } from '../../../../util'
7
+ import { lexicons } from '../../../../lexicons'
8
+ import { CID } from 'multiformats/cid'
9
+
10
+ export interface QueryParams {}
11
+
12
+ export type InputSchema = undefined
13
+
14
+ export interface CallOptions {
15
+ headers?: Headers
16
+ }
17
+
18
+ export interface Response {
19
+ success: boolean
20
+ headers: Headers
21
+ data: Uint8Array
22
+ }
23
+
24
+ export function toKnownErr(e: any) {
25
+ if (e instanceof XRPCError) {
26
+ }
27
+ return e
28
+ }
@@ -0,0 +1,215 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
5
+ import { isObj, hasProp } from '../../../../util'
6
+ import { lexicons } from '../../../../lexicons'
7
+ import { CID } from 'multiformats/cid'
8
+ import * as AppBskyRichtextFacet from '../../../app/bsky/richtext/facet'
9
+ import * as AppBskyEmbedRecord from '../../../app/bsky/embed/record'
10
+ import * as ChatBskyActorDefs from '../actor/defs'
11
+
12
+ export interface MessageRef {
13
+ did: string
14
+ messageId: string
15
+ [k: string]: unknown
16
+ }
17
+
18
+ export function isMessageRef(v: unknown): v is MessageRef {
19
+ return (
20
+ isObj(v) &&
21
+ hasProp(v, '$type') &&
22
+ v.$type === 'chat.bsky.convo.defs#messageRef'
23
+ )
24
+ }
25
+
26
+ export function validateMessageRef(v: unknown): ValidationResult {
27
+ return lexicons.validate('chat.bsky.convo.defs#messageRef', v)
28
+ }
29
+
30
+ export interface Message {
31
+ id?: string
32
+ text: string
33
+ /** Annotations of text (mentions, URLs, hashtags, etc) */
34
+ facets?: AppBskyRichtextFacet.Main[]
35
+ embed?: AppBskyEmbedRecord.Main | { $type: string; [k: string]: unknown }
36
+ [k: string]: unknown
37
+ }
38
+
39
+ export function isMessage(v: unknown): v is Message {
40
+ return (
41
+ isObj(v) &&
42
+ hasProp(v, '$type') &&
43
+ v.$type === 'chat.bsky.convo.defs#message'
44
+ )
45
+ }
46
+
47
+ export function validateMessage(v: unknown): ValidationResult {
48
+ return lexicons.validate('chat.bsky.convo.defs#message', v)
49
+ }
50
+
51
+ export interface MessageView {
52
+ id: string
53
+ rev: string
54
+ text: string
55
+ /** Annotations of text (mentions, URLs, hashtags, etc) */
56
+ facets?: AppBskyRichtextFacet.Main[]
57
+ embed?: AppBskyEmbedRecord.Main | { $type: string; [k: string]: unknown }
58
+ sender: MessageViewSender
59
+ sentAt: string
60
+ [k: string]: unknown
61
+ }
62
+
63
+ export function isMessageView(v: unknown): v is MessageView {
64
+ return (
65
+ isObj(v) &&
66
+ hasProp(v, '$type') &&
67
+ v.$type === 'chat.bsky.convo.defs#messageView'
68
+ )
69
+ }
70
+
71
+ export function validateMessageView(v: unknown): ValidationResult {
72
+ return lexicons.validate('chat.bsky.convo.defs#messageView', v)
73
+ }
74
+
75
+ export interface DeletedMessageView {
76
+ id: string
77
+ rev: string
78
+ sender: MessageViewSender
79
+ sentAt: string
80
+ [k: string]: unknown
81
+ }
82
+
83
+ export function isDeletedMessageView(v: unknown): v is DeletedMessageView {
84
+ return (
85
+ isObj(v) &&
86
+ hasProp(v, '$type') &&
87
+ v.$type === 'chat.bsky.convo.defs#deletedMessageView'
88
+ )
89
+ }
90
+
91
+ export function validateDeletedMessageView(v: unknown): ValidationResult {
92
+ return lexicons.validate('chat.bsky.convo.defs#deletedMessageView', v)
93
+ }
94
+
95
+ export interface MessageViewSender {
96
+ did: string
97
+ [k: string]: unknown
98
+ }
99
+
100
+ export function isMessageViewSender(v: unknown): v is MessageViewSender {
101
+ return (
102
+ isObj(v) &&
103
+ hasProp(v, '$type') &&
104
+ v.$type === 'chat.bsky.convo.defs#messageViewSender'
105
+ )
106
+ }
107
+
108
+ export function validateMessageViewSender(v: unknown): ValidationResult {
109
+ return lexicons.validate('chat.bsky.convo.defs#messageViewSender', v)
110
+ }
111
+
112
+ export interface ConvoView {
113
+ id: string
114
+ rev: string
115
+ members: ChatBskyActorDefs.ProfileViewBasic[]
116
+ lastMessage?:
117
+ | MessageView
118
+ | DeletedMessageView
119
+ | { $type: string; [k: string]: unknown }
120
+ muted: boolean
121
+ unreadCount: number
122
+ [k: string]: unknown
123
+ }
124
+
125
+ export function isConvoView(v: unknown): v is ConvoView {
126
+ return (
127
+ isObj(v) &&
128
+ hasProp(v, '$type') &&
129
+ v.$type === 'chat.bsky.convo.defs#convoView'
130
+ )
131
+ }
132
+
133
+ export function validateConvoView(v: unknown): ValidationResult {
134
+ return lexicons.validate('chat.bsky.convo.defs#convoView', v)
135
+ }
136
+
137
+ export interface LogBeginConvo {
138
+ rev: string
139
+ convoId: string
140
+ [k: string]: unknown
141
+ }
142
+
143
+ export function isLogBeginConvo(v: unknown): v is LogBeginConvo {
144
+ return (
145
+ isObj(v) &&
146
+ hasProp(v, '$type') &&
147
+ v.$type === 'chat.bsky.convo.defs#logBeginConvo'
148
+ )
149
+ }
150
+
151
+ export function validateLogBeginConvo(v: unknown): ValidationResult {
152
+ return lexicons.validate('chat.bsky.convo.defs#logBeginConvo', v)
153
+ }
154
+
155
+ export interface LogLeaveConvo {
156
+ rev: string
157
+ convoId: string
158
+ [k: string]: unknown
159
+ }
160
+
161
+ export function isLogLeaveConvo(v: unknown): v is LogLeaveConvo {
162
+ return (
163
+ isObj(v) &&
164
+ hasProp(v, '$type') &&
165
+ v.$type === 'chat.bsky.convo.defs#logLeaveConvo'
166
+ )
167
+ }
168
+
169
+ export function validateLogLeaveConvo(v: unknown): ValidationResult {
170
+ return lexicons.validate('chat.bsky.convo.defs#logLeaveConvo', v)
171
+ }
172
+
173
+ export interface LogCreateMessage {
174
+ rev: string
175
+ convoId: string
176
+ message:
177
+ | MessageView
178
+ | DeletedMessageView
179
+ | { $type: string; [k: string]: unknown }
180
+ [k: string]: unknown
181
+ }
182
+
183
+ export function isLogCreateMessage(v: unknown): v is LogCreateMessage {
184
+ return (
185
+ isObj(v) &&
186
+ hasProp(v, '$type') &&
187
+ v.$type === 'chat.bsky.convo.defs#logCreateMessage'
188
+ )
189
+ }
190
+
191
+ export function validateLogCreateMessage(v: unknown): ValidationResult {
192
+ return lexicons.validate('chat.bsky.convo.defs#logCreateMessage', v)
193
+ }
194
+
195
+ export interface LogDeleteMessage {
196
+ rev: string
197
+ convoId: string
198
+ message:
199
+ | MessageView
200
+ | DeletedMessageView
201
+ | { $type: string; [k: string]: unknown }
202
+ [k: string]: unknown
203
+ }
204
+
205
+ export function isLogDeleteMessage(v: unknown): v is LogDeleteMessage {
206
+ return (
207
+ isObj(v) &&
208
+ hasProp(v, '$type') &&
209
+ v.$type === 'chat.bsky.convo.defs#logDeleteMessage'
210
+ )
211
+ }
212
+
213
+ export function validateLogDeleteMessage(v: unknown): ValidationResult {
214
+ return lexicons.validate('chat.bsky.convo.defs#logDeleteMessage', v)
215
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { Headers, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { isObj, hasProp } from '../../../../util'
7
+ import { lexicons } from '../../../../lexicons'
8
+ import { CID } from 'multiformats/cid'
9
+ import * as ChatBskyConvoDefs from './defs'
10
+
11
+ export interface QueryParams {}
12
+
13
+ export interface InputSchema {
14
+ convoId: string
15
+ messageId: string
16
+ [k: string]: unknown
17
+ }
18
+
19
+ export type OutputSchema = ChatBskyConvoDefs.DeletedMessageView
20
+
21
+ export interface CallOptions {
22
+ headers?: Headers
23
+ qp?: QueryParams
24
+ encoding: 'application/json'
25
+ }
26
+
27
+ export interface Response {
28
+ success: boolean
29
+ headers: Headers
30
+ data: OutputSchema
31
+ }
32
+
33
+ export function toKnownErr(e: any) {
34
+ if (e instanceof XRPCError) {
35
+ }
36
+ return e
37
+ }
@@ -0,0 +1,36 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { Headers, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { isObj, hasProp } from '../../../../util'
7
+ import { lexicons } from '../../../../lexicons'
8
+ import { CID } from 'multiformats/cid'
9
+ import * as ChatBskyConvoDefs from './defs'
10
+
11
+ export interface QueryParams {
12
+ convoId: string
13
+ }
14
+
15
+ export type InputSchema = undefined
16
+
17
+ export interface OutputSchema {
18
+ convo: ChatBskyConvoDefs.ConvoView
19
+ [k: string]: unknown
20
+ }
21
+
22
+ export interface CallOptions {
23
+ headers?: Headers
24
+ }
25
+
26
+ export interface Response {
27
+ success: boolean
28
+ headers: Headers
29
+ data: OutputSchema
30
+ }
31
+
32
+ export function toKnownErr(e: any) {
33
+ if (e instanceof XRPCError) {
34
+ }
35
+ return e
36
+ }
@@ -0,0 +1,36 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { Headers, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { isObj, hasProp } from '../../../../util'
7
+ import { lexicons } from '../../../../lexicons'
8
+ import { CID } from 'multiformats/cid'
9
+ import * as ChatBskyConvoDefs from './defs'
10
+
11
+ export interface QueryParams {
12
+ members: string[]
13
+ }
14
+
15
+ export type InputSchema = undefined
16
+
17
+ export interface OutputSchema {
18
+ convo: ChatBskyConvoDefs.ConvoView
19
+ [k: string]: unknown
20
+ }
21
+
22
+ export interface CallOptions {
23
+ headers?: Headers
24
+ }
25
+
26
+ export interface Response {
27
+ success: boolean
28
+ headers: Headers
29
+ data: OutputSchema
30
+ }
31
+
32
+ export function toKnownErr(e: any) {
33
+ if (e instanceof XRPCError) {
34
+ }
35
+ return e
36
+ }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { Headers, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { isObj, hasProp } from '../../../../util'
7
+ import { lexicons } from '../../../../lexicons'
8
+ import { CID } from 'multiformats/cid'
9
+ import * as ChatBskyConvoDefs from './defs'
10
+
11
+ export interface QueryParams {
12
+ cursor?: string
13
+ }
14
+
15
+ export type InputSchema = undefined
16
+
17
+ export interface OutputSchema {
18
+ cursor?: string
19
+ logs: (
20
+ | ChatBskyConvoDefs.LogBeginConvo
21
+ | ChatBskyConvoDefs.LogLeaveConvo
22
+ | ChatBskyConvoDefs.LogCreateMessage
23
+ | ChatBskyConvoDefs.LogDeleteMessage
24
+ | { $type: string; [k: string]: unknown }
25
+ )[]
26
+ [k: string]: unknown
27
+ }
28
+
29
+ export interface CallOptions {
30
+ headers?: Headers
31
+ }
32
+
33
+ export interface Response {
34
+ success: boolean
35
+ headers: Headers
36
+ data: OutputSchema
37
+ }
38
+
39
+ export function toKnownErr(e: any) {
40
+ if (e instanceof XRPCError) {
41
+ }
42
+ return e
43
+ }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { Headers, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { isObj, hasProp } from '../../../../util'
7
+ import { lexicons } from '../../../../lexicons'
8
+ import { CID } from 'multiformats/cid'
9
+ import * as ChatBskyConvoDefs from './defs'
10
+
11
+ export interface QueryParams {
12
+ convoId: string
13
+ limit?: number
14
+ cursor?: string
15
+ }
16
+
17
+ export type InputSchema = undefined
18
+
19
+ export interface OutputSchema {
20
+ cursor?: string
21
+ messages: (
22
+ | ChatBskyConvoDefs.MessageView
23
+ | ChatBskyConvoDefs.DeletedMessageView
24
+ | { $type: string; [k: string]: unknown }
25
+ )[]
26
+ [k: string]: unknown
27
+ }
28
+
29
+ export interface CallOptions {
30
+ headers?: Headers
31
+ }
32
+
33
+ export interface Response {
34
+ success: boolean
35
+ headers: Headers
36
+ data: OutputSchema
37
+ }
38
+
39
+ export function toKnownErr(e: any) {
40
+ if (e instanceof XRPCError) {
41
+ }
42
+ return e
43
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { Headers, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { isObj, hasProp } from '../../../../util'
7
+ import { lexicons } from '../../../../lexicons'
8
+ import { CID } from 'multiformats/cid'
9
+
10
+ export interface QueryParams {}
11
+
12
+ export interface InputSchema {
13
+ convoId: string
14
+ [k: string]: unknown
15
+ }
16
+
17
+ export interface OutputSchema {
18
+ convoId: string
19
+ rev: string
20
+ [k: string]: unknown
21
+ }
22
+
23
+ export interface CallOptions {
24
+ headers?: Headers
25
+ qp?: QueryParams
26
+ encoding: 'application/json'
27
+ }
28
+
29
+ export interface Response {
30
+ success: boolean
31
+ headers: Headers
32
+ data: OutputSchema
33
+ }
34
+
35
+ export function toKnownErr(e: any) {
36
+ if (e instanceof XRPCError) {
37
+ }
38
+ return e
39
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { Headers, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { isObj, hasProp } from '../../../../util'
7
+ import { lexicons } from '../../../../lexicons'
8
+ import { CID } from 'multiformats/cid'
9
+ import * as ChatBskyConvoDefs from './defs'
10
+
11
+ export interface QueryParams {
12
+ limit?: number
13
+ cursor?: string
14
+ }
15
+
16
+ export type InputSchema = undefined
17
+
18
+ export interface OutputSchema {
19
+ cursor?: string
20
+ convos: ChatBskyConvoDefs.ConvoView[]
21
+ [k: string]: unknown
22
+ }
23
+
24
+ export interface CallOptions {
25
+ headers?: Headers
26
+ }
27
+
28
+ export interface Response {
29
+ success: boolean
30
+ headers: Headers
31
+ data: OutputSchema
32
+ }
33
+
34
+ export function toKnownErr(e: any) {
35
+ if (e instanceof XRPCError) {
36
+ }
37
+ return e
38
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { Headers, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { isObj, hasProp } from '../../../../util'
7
+ import { lexicons } from '../../../../lexicons'
8
+ import { CID } from 'multiformats/cid'
9
+ import * as ChatBskyConvoDefs from './defs'
10
+
11
+ export interface QueryParams {}
12
+
13
+ export interface InputSchema {
14
+ convoId: string
15
+ [k: string]: unknown
16
+ }
17
+
18
+ export interface OutputSchema {
19
+ convo: ChatBskyConvoDefs.ConvoView
20
+ [k: string]: unknown
21
+ }
22
+
23
+ export interface CallOptions {
24
+ headers?: Headers
25
+ qp?: QueryParams
26
+ encoding: 'application/json'
27
+ }
28
+
29
+ export interface Response {
30
+ success: boolean
31
+ headers: Headers
32
+ data: OutputSchema
33
+ }
34
+
35
+ export function toKnownErr(e: any) {
36
+ if (e instanceof XRPCError) {
37
+ }
38
+ return e
39
+ }