@atcute/bluemoji 1.0.4 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@ declare module '@atcute/client/lexicons' {
8
8
  namespace BlueMojiCollectionDefs {
9
9
  interface CollectionView {
10
10
  [Brand.Type]?: 'blue.moji.collection.defs#collectionView';
11
- cid: At.CID;
11
+ cid: At.Cid;
12
12
  creator: AppBskyActorDefs.ProfileView;
13
13
  indexedAt: string;
14
14
  /**
@@ -16,8 +16,8 @@ declare module '@atcute/client/lexicons' {
16
16
  * Maximum string length: 64
17
17
  */
18
18
  name: string;
19
- uri: At.Uri;
20
- avatar?: string;
19
+ uri: At.ResourceUri;
20
+ avatar?: At.GenericUri;
21
21
  /** Minimum: 0 */
22
22
  collectionItemCount?: number;
23
23
  /**
@@ -35,12 +35,12 @@ declare module '@atcute/client/lexicons' {
35
35
  /** The Bluemoji alias/rkey. */
36
36
  name: string;
37
37
  /** The handle or DID of the repo. */
38
- repo: string;
38
+ repo: At.Identifier;
39
39
  }
40
40
  type Input = undefined;
41
41
  interface Output {
42
42
  item: BlueMojiCollectionItem.ItemView;
43
- uri: At.Uri;
43
+ uri: At.ResourceUri;
44
44
  }
45
45
  }
46
46
  namespace BlueMojiCollectionItem {
@@ -55,7 +55,7 @@ declare module '@atcute/client/lexicons' {
55
55
  /** @default false */
56
56
  adultOnly?: boolean;
57
57
  alt?: string;
58
- copyOf?: At.Uri;
58
+ copyOf?: At.ResourceUri;
59
59
  /**
60
60
  * Maximum string length: 1
61
61
  * @default "◌"
@@ -109,7 +109,7 @@ declare module '@atcute/client/lexicons' {
109
109
  interface ItemView {
110
110
  [Brand.Type]?: 'blue.moji.collection.listCollection#itemView';
111
111
  record: BlueMojiCollectionItem.ItemView;
112
- uri: At.Uri;
112
+ uri: At.ResourceUri;
113
113
  }
114
114
  }
115
115
  /** Write a Bluemoji record, creating or updating it as needed. Requires auth, implemented by AppView. */
@@ -119,7 +119,7 @@ declare module '@atcute/client/lexicons' {
119
119
  interface Input {
120
120
  item: BlueMojiCollectionItem.ItemView;
121
121
  /** The handle or DID of the repo (aka, current account). */
122
- repo: string;
122
+ repo: At.Identifier;
123
123
  /**
124
124
  * Can be set to 'false' to skip Lexicon schema validation of record data.
125
125
  * @default true
@@ -127,7 +127,7 @@ declare module '@atcute/client/lexicons' {
127
127
  validate?: boolean;
128
128
  }
129
129
  interface Output {
130
- uri: At.Uri;
130
+ uri: At.ResourceUri;
131
131
  }
132
132
  interface Errors {
133
133
  }
@@ -143,13 +143,13 @@ declare module '@atcute/client/lexicons' {
143
143
  */
144
144
  name: string;
145
145
  /** The handle or DID of the repo to copy from. */
146
- source: string;
146
+ source: At.Identifier;
147
147
  /** The alias to save the Bluemoji to in the current logged-in user's repo. */
148
148
  renameTo?: string;
149
149
  }
150
150
  interface Output {
151
151
  item: BlueMojiCollectionItem.ItemView;
152
- uri: At.Uri;
152
+ uri: At.ResourceUri;
153
153
  }
154
154
  interface Errors {
155
155
  EmojiNotFound: {};
@@ -160,11 +160,11 @@ declare module '@atcute/client/lexicons' {
160
160
  interface PackItemView {
161
161
  [Brand.Type]?: 'blue.moji.packs.defs#packItemView';
162
162
  subject: BlueMojiCollectionItem.ItemView;
163
- uri: At.Uri;
163
+ uri: At.ResourceUri;
164
164
  }
165
165
  interface PackView {
166
166
  [Brand.Type]?: 'blue.moji.packs.defs#packView';
167
- cid: At.CID;
167
+ cid: At.Cid;
168
168
  creator: AppBskyActorDefs.ProfileView;
169
169
  indexedAt: string;
170
170
  /**
@@ -172,8 +172,8 @@ declare module '@atcute/client/lexicons' {
172
172
  * Maximum string length: 64
173
173
  */
174
174
  name: string;
175
- uri: At.Uri;
176
- avatar?: string;
175
+ uri: At.ResourceUri;
176
+ avatar?: At.GenericUri;
177
177
  /**
178
178
  * Maximum string length: 3000 \
179
179
  * Maximum grapheme length: 300
@@ -187,14 +187,14 @@ declare module '@atcute/client/lexicons' {
187
187
  }
188
188
  interface PackViewBasic {
189
189
  [Brand.Type]?: 'blue.moji.packs.defs#packViewBasic';
190
- cid: At.CID;
190
+ cid: At.Cid;
191
191
  /**
192
192
  * Minimum string length: 1 \
193
193
  * Maximum string length: 64
194
194
  */
195
195
  name: string;
196
- uri: At.Uri;
197
- avatar?: string;
196
+ uri: At.ResourceUri;
197
+ avatar?: At.GenericUri;
198
198
  /**
199
199
  * Maximum string length: 3000 \
200
200
  * Maximum grapheme length: 300
@@ -215,7 +215,7 @@ declare module '@atcute/client/lexicons' {
215
215
  /** Get a list of Bluemoji packs created by the actor. */
216
216
  namespace BlueMojiPacksGetActorPacks {
217
217
  interface Params {
218
- actor: string;
218
+ actor: At.Identifier;
219
219
  cursor?: string;
220
220
  /**
221
221
  * Minimum: 1 \
@@ -234,7 +234,7 @@ declare module '@atcute/client/lexicons' {
234
234
  namespace BlueMojiPacksGetPack {
235
235
  interface Params {
236
236
  /** Reference (AT-URI) of the pack record to hydrate. */
237
- pack: At.Uri;
237
+ pack: At.ResourceUri;
238
238
  cursor?: string;
239
239
  /**
240
240
  * Minimum: 1 \
@@ -254,7 +254,7 @@ declare module '@atcute/client/lexicons' {
254
254
  namespace BlueMojiPacksGetPacks {
255
255
  interface Params {
256
256
  /** Maximum array length: 25 */
257
- uris: At.Uri[];
257
+ uris: At.ResourceUri[];
258
258
  }
259
259
  type Input = undefined;
260
260
  interface Output {
@@ -290,9 +290,9 @@ declare module '@atcute/client/lexicons' {
290
290
  $type: 'blue.moji.packs.packitem';
291
291
  createdAt: string;
292
292
  /** Reference (AT-URI) to the pack record (blue.moji.packs.pack). */
293
- pack: At.Uri;
293
+ pack: At.ResourceUri;
294
294
  /** Reference (AT-URI) to the Bluemoji item record (blue.moji.collection.item). */
295
- subject: At.Uri;
295
+ subject: At.ResourceUri;
296
296
  }
297
297
  }
298
298
  namespace BlueMojiRichtextFacet {
@@ -314,11 +314,11 @@ declare module '@atcute/client/lexicons' {
314
314
  [Brand.Type]?: 'blue.moji.richtext.facet#formats_v0';
315
315
  /** @default false */
316
316
  apng_128?: boolean;
317
- gif_128?: At.CID;
317
+ gif_128?: At.Cid;
318
318
  /** @default false */
319
319
  lottie?: boolean;
320
- png_128?: At.CID;
321
- webp_128?: At.CID;
320
+ png_128?: At.Cid;
321
+ webp_128?: At.Cid;
322
322
  }
323
323
  }
324
324
  interface Records {
@@ -329,33 +329,61 @@ declare module '@atcute/client/lexicons' {
329
329
  interface Queries {
330
330
  'blue.moji.collection.getItem': {
331
331
  params: BlueMojiCollectionGetItem.Params;
332
+ /** @deprecated */
332
333
  output: BlueMojiCollectionGetItem.Output;
334
+ response: {
335
+ json: BlueMojiCollectionGetItem.Output;
336
+ };
333
337
  };
334
338
  'blue.moji.collection.listCollection': {
335
339
  params: BlueMojiCollectionListCollection.Params;
340
+ /** @deprecated */
336
341
  output: BlueMojiCollectionListCollection.Output;
342
+ response: {
343
+ json: BlueMojiCollectionListCollection.Output;
344
+ };
337
345
  };
338
346
  'blue.moji.packs.getActorPacks': {
339
347
  params: BlueMojiPacksGetActorPacks.Params;
348
+ /** @deprecated */
340
349
  output: BlueMojiPacksGetActorPacks.Output;
350
+ response: {
351
+ json: BlueMojiPacksGetActorPacks.Output;
352
+ };
341
353
  };
342
354
  'blue.moji.packs.getPack': {
343
355
  params: BlueMojiPacksGetPack.Params;
356
+ /** @deprecated */
344
357
  output: BlueMojiPacksGetPack.Output;
358
+ response: {
359
+ json: BlueMojiPacksGetPack.Output;
360
+ };
345
361
  };
346
362
  'blue.moji.packs.getPacks': {
347
363
  params: BlueMojiPacksGetPacks.Params;
364
+ /** @deprecated */
348
365
  output: BlueMojiPacksGetPacks.Output;
366
+ response: {
367
+ json: BlueMojiPacksGetPacks.Output;
368
+ };
349
369
  };
350
370
  }
351
371
  interface Procedures {
352
372
  'blue.moji.collection.putItem': {
353
373
  input: BlueMojiCollectionPutItem.Input;
374
+ /** @deprecated */
354
375
  output: BlueMojiCollectionPutItem.Output;
376
+ response: {
377
+ json: BlueMojiCollectionPutItem.Output;
378
+ };
355
379
  };
356
380
  'blue.moji.collection.saveToCollection': {
357
381
  input: BlueMojiCollectionSaveToCollection.Input;
382
+ /** @deprecated */
358
383
  output: BlueMojiCollectionSaveToCollection.Output;
384
+ response: {
385
+ json: BlueMojiCollectionSaveToCollection.Output;
386
+ };
359
387
  };
360
388
  }
361
389
  }
package/lib/lexicons.ts CHANGED
@@ -13,7 +13,7 @@ declare module '@atcute/client/lexicons' {
13
13
  namespace BlueMojiCollectionDefs {
14
14
  interface CollectionView {
15
15
  [Brand.Type]?: 'blue.moji.collection.defs#collectionView';
16
- cid: At.CID;
16
+ cid: At.Cid;
17
17
  creator: AppBskyActorDefs.ProfileView;
18
18
  indexedAt: string;
19
19
  /**
@@ -21,8 +21,8 @@ declare module '@atcute/client/lexicons' {
21
21
  * Maximum string length: 64
22
22
  */
23
23
  name: string;
24
- uri: At.Uri;
25
- avatar?: string;
24
+ uri: At.ResourceUri;
25
+ avatar?: At.GenericUri;
26
26
  /** Minimum: 0 */
27
27
  collectionItemCount?: number;
28
28
  /**
@@ -41,12 +41,12 @@ declare module '@atcute/client/lexicons' {
41
41
  /** The Bluemoji alias/rkey. */
42
42
  name: string;
43
43
  /** The handle or DID of the repo. */
44
- repo: string;
44
+ repo: At.Identifier;
45
45
  }
46
46
  type Input = undefined;
47
47
  interface Output {
48
48
  item: BlueMojiCollectionItem.ItemView;
49
- uri: At.Uri;
49
+ uri: At.ResourceUri;
50
50
  }
51
51
  }
52
52
 
@@ -62,7 +62,7 @@ declare module '@atcute/client/lexicons' {
62
62
  /** @default false */
63
63
  adultOnly?: boolean;
64
64
  alt?: string;
65
- copyOf?: At.Uri;
65
+ copyOf?: At.ResourceUri;
66
66
  /**
67
67
  * Maximum string length: 1
68
68
  * @default "◌"
@@ -117,7 +117,7 @@ declare module '@atcute/client/lexicons' {
117
117
  interface ItemView {
118
118
  [Brand.Type]?: 'blue.moji.collection.listCollection#itemView';
119
119
  record: BlueMojiCollectionItem.ItemView;
120
- uri: At.Uri;
120
+ uri: At.ResourceUri;
121
121
  }
122
122
  }
123
123
 
@@ -127,7 +127,7 @@ declare module '@atcute/client/lexicons' {
127
127
  interface Input {
128
128
  item: BlueMojiCollectionItem.ItemView;
129
129
  /** The handle or DID of the repo (aka, current account). */
130
- repo: string;
130
+ repo: At.Identifier;
131
131
  /**
132
132
  * Can be set to 'false' to skip Lexicon schema validation of record data.
133
133
  * @default true
@@ -135,7 +135,7 @@ declare module '@atcute/client/lexicons' {
135
135
  validate?: boolean;
136
136
  }
137
137
  interface Output {
138
- uri: At.Uri;
138
+ uri: At.ResourceUri;
139
139
  }
140
140
  interface Errors {}
141
141
  }
@@ -150,13 +150,13 @@ declare module '@atcute/client/lexicons' {
150
150
  */
151
151
  name: string;
152
152
  /** The handle or DID of the repo to copy from. */
153
- source: string;
153
+ source: At.Identifier;
154
154
  /** The alias to save the Bluemoji to in the current logged-in user's repo. */
155
155
  renameTo?: string;
156
156
  }
157
157
  interface Output {
158
158
  item: BlueMojiCollectionItem.ItemView;
159
- uri: At.Uri;
159
+ uri: At.ResourceUri;
160
160
  }
161
161
  interface Errors {
162
162
  EmojiNotFound: {};
@@ -168,11 +168,11 @@ declare module '@atcute/client/lexicons' {
168
168
  interface PackItemView {
169
169
  [Brand.Type]?: 'blue.moji.packs.defs#packItemView';
170
170
  subject: BlueMojiCollectionItem.ItemView;
171
- uri: At.Uri;
171
+ uri: At.ResourceUri;
172
172
  }
173
173
  interface PackView {
174
174
  [Brand.Type]?: 'blue.moji.packs.defs#packView';
175
- cid: At.CID;
175
+ cid: At.Cid;
176
176
  creator: AppBskyActorDefs.ProfileView;
177
177
  indexedAt: string;
178
178
  /**
@@ -180,8 +180,8 @@ declare module '@atcute/client/lexicons' {
180
180
  * Maximum string length: 64
181
181
  */
182
182
  name: string;
183
- uri: At.Uri;
184
- avatar?: string;
183
+ uri: At.ResourceUri;
184
+ avatar?: At.GenericUri;
185
185
  /**
186
186
  * Maximum string length: 3000 \
187
187
  * Maximum grapheme length: 300
@@ -195,14 +195,14 @@ declare module '@atcute/client/lexicons' {
195
195
  }
196
196
  interface PackViewBasic {
197
197
  [Brand.Type]?: 'blue.moji.packs.defs#packViewBasic';
198
- cid: At.CID;
198
+ cid: At.Cid;
199
199
  /**
200
200
  * Minimum string length: 1 \
201
201
  * Maximum string length: 64
202
202
  */
203
203
  name: string;
204
- uri: At.Uri;
205
- avatar?: string;
204
+ uri: At.ResourceUri;
205
+ avatar?: At.GenericUri;
206
206
  /**
207
207
  * Maximum string length: 3000 \
208
208
  * Maximum grapheme length: 300
@@ -224,7 +224,7 @@ declare module '@atcute/client/lexicons' {
224
224
  /** Get a list of Bluemoji packs created by the actor. */
225
225
  namespace BlueMojiPacksGetActorPacks {
226
226
  interface Params {
227
- actor: string;
227
+ actor: At.Identifier;
228
228
  cursor?: string;
229
229
  /**
230
230
  * Minimum: 1 \
@@ -244,7 +244,7 @@ declare module '@atcute/client/lexicons' {
244
244
  namespace BlueMojiPacksGetPack {
245
245
  interface Params {
246
246
  /** Reference (AT-URI) of the pack record to hydrate. */
247
- pack: At.Uri;
247
+ pack: At.ResourceUri;
248
248
  cursor?: string;
249
249
  /**
250
250
  * Minimum: 1 \
@@ -265,7 +265,7 @@ declare module '@atcute/client/lexicons' {
265
265
  namespace BlueMojiPacksGetPacks {
266
266
  interface Params {
267
267
  /** Maximum array length: 25 */
268
- uris: At.Uri[];
268
+ uris: At.ResourceUri[];
269
269
  }
270
270
  type Input = undefined;
271
271
  interface Output {
@@ -303,9 +303,9 @@ declare module '@atcute/client/lexicons' {
303
303
  $type: 'blue.moji.packs.packitem';
304
304
  createdAt: string;
305
305
  /** Reference (AT-URI) to the pack record (blue.moji.packs.pack). */
306
- pack: At.Uri;
306
+ pack: At.ResourceUri;
307
307
  /** Reference (AT-URI) to the Bluemoji item record (blue.moji.collection.item). */
308
- subject: At.Uri;
308
+ subject: At.ResourceUri;
309
309
  }
310
310
  }
311
311
 
@@ -328,11 +328,11 @@ declare module '@atcute/client/lexicons' {
328
328
  [Brand.Type]?: 'blue.moji.richtext.facet#formats_v0';
329
329
  /** @default false */
330
330
  apng_128?: boolean;
331
- gif_128?: At.CID;
331
+ gif_128?: At.Cid;
332
332
  /** @default false */
333
333
  lottie?: boolean;
334
- png_128?: At.CID;
335
- webp_128?: At.CID;
334
+ png_128?: At.Cid;
335
+ webp_128?: At.Cid;
336
336
  }
337
337
  }
338
338
 
@@ -345,34 +345,48 @@ declare module '@atcute/client/lexicons' {
345
345
  interface Queries {
346
346
  'blue.moji.collection.getItem': {
347
347
  params: BlueMojiCollectionGetItem.Params;
348
+ /** @deprecated */
348
349
  output: BlueMojiCollectionGetItem.Output;
350
+ response: { json: BlueMojiCollectionGetItem.Output };
349
351
  };
350
352
  'blue.moji.collection.listCollection': {
351
353
  params: BlueMojiCollectionListCollection.Params;
354
+ /** @deprecated */
352
355
  output: BlueMojiCollectionListCollection.Output;
356
+ response: { json: BlueMojiCollectionListCollection.Output };
353
357
  };
354
358
  'blue.moji.packs.getActorPacks': {
355
359
  params: BlueMojiPacksGetActorPacks.Params;
360
+ /** @deprecated */
356
361
  output: BlueMojiPacksGetActorPacks.Output;
362
+ response: { json: BlueMojiPacksGetActorPacks.Output };
357
363
  };
358
364
  'blue.moji.packs.getPack': {
359
365
  params: BlueMojiPacksGetPack.Params;
366
+ /** @deprecated */
360
367
  output: BlueMojiPacksGetPack.Output;
368
+ response: { json: BlueMojiPacksGetPack.Output };
361
369
  };
362
370
  'blue.moji.packs.getPacks': {
363
371
  params: BlueMojiPacksGetPacks.Params;
372
+ /** @deprecated */
364
373
  output: BlueMojiPacksGetPacks.Output;
374
+ response: { json: BlueMojiPacksGetPacks.Output };
365
375
  };
366
376
  }
367
377
 
368
378
  interface Procedures {
369
379
  'blue.moji.collection.putItem': {
370
380
  input: BlueMojiCollectionPutItem.Input;
381
+ /** @deprecated */
371
382
  output: BlueMojiCollectionPutItem.Output;
383
+ response: { json: BlueMojiCollectionPutItem.Output };
372
384
  };
373
385
  'blue.moji.collection.saveToCollection': {
374
386
  input: BlueMojiCollectionSaveToCollection.Input;
387
+ /** @deprecated */
375
388
  output: BlueMojiCollectionSaveToCollection.Output;
389
+ response: { json: BlueMojiCollectionSaveToCollection.Output };
376
390
  };
377
391
  }
378
392
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@atcute/bluemoji",
4
- "version": "1.0.4",
4
+ "version": "2.0.0",
5
5
  "description": "Bluemoji type definitions for atcute",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -18,13 +18,13 @@
18
18
  "./lexicons": "./dist/lexicons.js"
19
19
  },
20
20
  "peerDependencies": {
21
- "@atcute/bluesky": "^1.0.0",
22
- "@atcute/client": "^1.0.0 || ^2.0.0"
21
+ "@atcute/bluesky": "^2.0.0",
22
+ "@atcute/client": "^3.0.0"
23
23
  },
24
24
  "devDependencies": {
25
- "@atcute/client": "^2.0.4",
26
- "@atcute/bluesky": "^1.0.8",
27
- "@atcute/lex-cli": "^1.0.3"
25
+ "@atcute/client": "^3.0.0",
26
+ "@atcute/lex-cli": "^1.1.0",
27
+ "@atcute/bluesky": "^2.0.0"
28
28
  },
29
29
  "scripts": {
30
30
  "build": "tsc",