twitter-openapi-typescript-generated 0.0.17 → 0.0.18

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 (41) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/README.md +2 -2
  3. package/dist/models/Entities.d.ts +7 -0
  4. package/dist/models/Entities.d.ts.map +1 -1
  5. package/dist/models/Entities.js +3 -0
  6. package/dist/models/Entities.js.map +1 -1
  7. package/dist/models/Timestamp.d.ts +44 -0
  8. package/dist/models/Timestamp.d.ts.map +1 -0
  9. package/dist/models/Timestamp.js +57 -0
  10. package/dist/models/Timestamp.js.map +1 -0
  11. package/dist/models/TweetLegacy.d.ts +2 -1
  12. package/dist/models/TweetLegacy.d.ts.map +1 -1
  13. package/dist/models/TweetLegacy.js +3 -2
  14. package/dist/models/TweetLegacy.js.map +1 -1
  15. package/dist/models/UserUnavailable.d.ts +6 -0
  16. package/dist/models/UserUnavailable.d.ts.map +1 -1
  17. package/dist/models/UserUnavailable.js +3 -0
  18. package/dist/models/UserUnavailable.js.map +1 -1
  19. package/dist/models/index.d.ts +1 -0
  20. package/dist/models/index.d.ts.map +1 -1
  21. package/dist/models/index.js +1 -0
  22. package/dist/models/index.js.map +1 -1
  23. package/package.json +1 -1
  24. package/src/models/Entities.ts +14 -0
  25. package/src/models/Timestamp.ts +84 -0
  26. package/src/models/TweetLegacy.ts +3 -2
  27. package/src/models/UserUnavailable.ts +8 -0
  28. package/src/models/index.ts +1 -0
  29. package/tools/openapi-generator-config.yaml +1 -1
  30. package/twitter-openapi/.vscode/launch.json +2 -1
  31. package/twitter-openapi/.vscode/tasks.json +0 -2
  32. package/twitter-openapi/dist/compatible/openapi-3.0.yaml +22 -1
  33. package/twitter-openapi/dist/compatible_discriminator/openapi-3.0.yaml +6149 -0
  34. package/twitter-openapi/dist/docs/openapi-3.0.yaml +22 -1
  35. package/twitter-openapi/src/openapi/schemas/tweet.yaml +22 -2
  36. package/twitter-openapi/src/openapi/schemas/user.yaml +2 -0
  37. package/twitter-openapi/test/python/openapi-generator-config.yaml +1 -1
  38. package/twitter-openapi/test/python/test_serialize.py +1 -0
  39. package/twitter-openapi/tools/build_config.py +28 -3
  40. package/twitter-openapi/tools/hooks.py +9 -1
  41. package/twitter-openapi/test/python/replace.py +0 -23
@@ -564,6 +564,10 @@ components:
564
564
  items:
565
565
  $ref: '#/components/schemas/Symbol'
566
566
  type: array
567
+ timestamps:
568
+ items:
569
+ $ref: '#/components/schemas/Timestamp'
570
+ type: array
567
571
  urls:
568
572
  items:
569
573
  $ref: '#/components/schemas/Url'
@@ -1793,6 +1797,20 @@ components:
1793
1797
  $ref: '#/components/schemas/Timeline'
1794
1798
  required:
1795
1799
  - timeline
1800
+ Timestamp:
1801
+ properties:
1802
+ indices:
1803
+ items:
1804
+ type: integer
1805
+ type: array
1806
+ seconds:
1807
+ type: integer
1808
+ text:
1809
+ type: string
1810
+ required:
1811
+ - indices
1812
+ - seconds
1813
+ - text
1796
1814
  TopicContext:
1797
1815
  properties:
1798
1816
  description:
@@ -2159,10 +2177,11 @@ components:
2159
2177
  limited_actions:
2160
2178
  enum:
2161
2179
  - limited_replies
2162
- - community_tweet_non_member_public_community
2163
2180
  - non_compliant
2164
2181
  - dynamic_product_ad
2165
2182
  - stale_tweet
2183
+ - community_tweet_non_member_public_community
2184
+ - community_tweet_non_member_closed_community
2166
2185
  type: string
2167
2186
  place:
2168
2187
  additionalProperties: true
@@ -2790,6 +2809,8 @@ components:
2790
2809
  properties:
2791
2810
  __typename:
2792
2811
  $ref: '#/components/schemas/TypeName'
2812
+ message:
2813
+ type: string
2793
2814
  reason:
2794
2815
  type: string
2795
2816
  required: