@atproto/api 0.12.27 → 0.12.29

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 (34) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/bsky-agent.js +1 -1
  3. package/dist/bsky-agent.js.map +1 -1
  4. package/dist/client/index.d.ts +0 -24
  5. package/dist/client/index.d.ts.map +1 -1
  6. package/dist/client/index.js +4 -46
  7. package/dist/client/index.js.map +1 -1
  8. package/dist/client/lexicons.d.ts +13 -36
  9. package/dist/client/lexicons.d.ts.map +1 -1
  10. package/dist/client/lexicons.js +17 -38
  11. package/dist/client/lexicons.js.map +1 -1
  12. package/dist/client/types/app/bsky/feed/defs.d.ts +1 -1
  13. package/dist/client/types/app/bsky/feed/defs.d.ts.map +1 -1
  14. package/dist/client/types/com/atproto/label/defs.d.ts +1 -1
  15. package/dist/client/types/com/atproto/server/getServiceAuth.d.ts +8 -1
  16. package/dist/client/types/com/atproto/server/getServiceAuth.d.ts.map +1 -1
  17. package/dist/client/types/com/atproto/server/getServiceAuth.js +9 -1
  18. package/dist/client/types/com/atproto/server/getServiceAuth.js.map +1 -1
  19. package/dist/moderation/decision.js +1 -1
  20. package/dist/moderation/decision.js.map +1 -1
  21. package/docs/moderation.md +1 -1
  22. package/package.json +1 -1
  23. package/src/bsky-agent.ts +1 -1
  24. package/src/client/index.ts +0 -65
  25. package/src/client/lexicons.ts +20 -39
  26. package/src/client/types/app/bsky/feed/defs.ts +1 -1
  27. package/src/client/types/com/atproto/label/defs.ts +1 -1
  28. package/src/client/types/com/atproto/server/getServiceAuth.ts +11 -0
  29. package/src/moderation/decision.ts +1 -1
  30. package/dist/client/types/app/bsky/feed/detach.d.ts +0 -15
  31. package/dist/client/types/app/bsky/feed/detach.d.ts.map +0 -1
  32. package/dist/client/types/app/bsky/feed/detach.js +0 -17
  33. package/dist/client/types/app/bsky/feed/detach.js.map +0 -1
  34. package/src/client/types/app/bsky/feed/detach.ts +0 -29
@@ -870,7 +870,7 @@ exports.schemaDict = {
870
870
  },
871
871
  labelValueDefinition: {
872
872
  type: 'object',
873
- description: 'Declares a label value and its expected interpertations and behaviors.',
873
+ description: 'Declares a label value and its expected interpretations and behaviors.',
874
874
  required: ['identifier', 'severity', 'blurs', 'locales'],
875
875
  properties: {
876
876
  identifier: {
@@ -2518,6 +2518,15 @@ exports.schemaDict = {
2518
2518
  format: 'did',
2519
2519
  description: 'The DID of the service that the token will be used to authenticate with',
2520
2520
  },
2521
+ exp: {
2522
+ type: 'integer',
2523
+ description: 'The time in Unix Epoch seconds that the JWT expires. Defaults to 60 seconds in the future. The service may enforce certain time bounds on tokens depending on the requested scope.',
2524
+ },
2525
+ lxm: {
2526
+ type: 'string',
2527
+ format: 'nsid',
2528
+ description: 'Lexicon (XRPC) method to bind the requested token to',
2529
+ },
2521
2530
  },
2522
2531
  },
2523
2532
  output: {
@@ -2532,6 +2541,12 @@ exports.schemaDict = {
2532
2541
  },
2533
2542
  },
2534
2543
  },
2544
+ errors: [
2545
+ {
2546
+ name: 'BadExpiration',
2547
+ description: 'Indicates that the requested expiration date is not a valid. May be in the past or may be reliant on the requested scopes.',
2548
+ },
2549
+ ],
2535
2550
  },
2536
2551
  },
2537
2552
  },
@@ -5314,7 +5329,7 @@ exports.schemaDict = {
5314
5329
  },
5315
5330
  feedContext: {
5316
5331
  type: 'string',
5317
- description: 'Context on a feed item that was orginally supplied by the feed generator on getFeedSkeleton.',
5332
+ description: 'Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton.',
5318
5333
  maxLength: 2000,
5319
5334
  },
5320
5335
  },
@@ -5424,41 +5439,6 @@ exports.schemaDict = {
5424
5439
  },
5425
5440
  },
5426
5441
  },
5427
- AppBskyFeedDetach: {
5428
- lexicon: 1,
5429
- id: 'app.bsky.feed.detach',
5430
- defs: {
5431
- main: {
5432
- type: 'record',
5433
- key: 'tid',
5434
- description: 'Record defining post URIs detached from a root post. The record key (rkey) of the detach record must match the record key of the root post in question, and that record must be in the same repository.',
5435
- record: {
5436
- type: 'object',
5437
- required: ['post', 'targets', 'updatedAt'],
5438
- properties: {
5439
- post: {
5440
- type: 'string',
5441
- format: 'at-uri',
5442
- description: 'Reference (AT-URI) to the post record.',
5443
- },
5444
- targets: {
5445
- type: 'array',
5446
- maxLength: 50,
5447
- items: {
5448
- type: 'string',
5449
- format: 'at-uri',
5450
- },
5451
- description: 'List of detached post URIs.',
5452
- },
5453
- updatedAt: {
5454
- type: 'string',
5455
- format: 'datetime',
5456
- },
5457
- },
5458
- },
5459
- },
5460
- },
5461
- },
5462
5442
  AppBskyFeedGenerator: {
5463
5443
  lexicon: 1,
5464
5444
  id: 'app.bsky.feed.generator',
@@ -11474,7 +11454,6 @@ exports.ids = {
11474
11454
  AppBskyEmbedRecordWithMedia: 'app.bsky.embed.recordWithMedia',
11475
11455
  AppBskyFeedDefs: 'app.bsky.feed.defs',
11476
11456
  AppBskyFeedDescribeFeedGenerator: 'app.bsky.feed.describeFeedGenerator',
11477
- AppBskyFeedDetach: 'app.bsky.feed.detach',
11478
11457
  AppBskyFeedGenerator: 'app.bsky.feed.generator',
11479
11458
  AppBskyFeedGetActorFeeds: 'app.bsky.feed.getActorFeeds',
11480
11459
  AppBskyFeedGetActorLikes: 'app.bsky.feed.getActorLikes',