twitter-openapi-typescript-generated 0.0.17 → 0.0.19

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 (48) 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/TimelineTerminateTimeline.d.ts +1 -0
  8. package/dist/models/TimelineTerminateTimeline.d.ts.map +1 -1
  9. package/dist/models/TimelineTerminateTimeline.js +2 -1
  10. package/dist/models/TimelineTerminateTimeline.js.map +1 -1
  11. package/dist/models/Timestamp.d.ts +44 -0
  12. package/dist/models/Timestamp.d.ts.map +1 -0
  13. package/dist/models/Timestamp.js +57 -0
  14. package/dist/models/Timestamp.js.map +1 -0
  15. package/dist/models/TweetLegacy.d.ts +2 -1
  16. package/dist/models/TweetLegacy.d.ts.map +1 -1
  17. package/dist/models/TweetLegacy.js +3 -2
  18. package/dist/models/TweetLegacy.js.map +1 -1
  19. package/dist/models/UserUnavailable.d.ts +6 -0
  20. package/dist/models/UserUnavailable.d.ts.map +1 -1
  21. package/dist/models/UserUnavailable.js +3 -0
  22. package/dist/models/UserUnavailable.js.map +1 -1
  23. package/dist/models/index.d.ts +1 -0
  24. package/dist/models/index.d.ts.map +1 -1
  25. package/dist/models/index.js +1 -0
  26. package/dist/models/index.js.map +1 -1
  27. package/package.json +1 -1
  28. package/src/models/Entities.ts +14 -0
  29. package/src/models/TimelineTerminateTimeline.ts +2 -1
  30. package/src/models/Timestamp.ts +84 -0
  31. package/src/models/TweetLegacy.ts +3 -2
  32. package/src/models/UserUnavailable.ts +8 -0
  33. package/src/models/index.ts +1 -0
  34. package/tools/openapi-generator-config.yaml +1 -1
  35. package/twitter-openapi/.vscode/launch.json +2 -1
  36. package/twitter-openapi/.vscode/tasks.json +0 -2
  37. package/twitter-openapi/dist/compatible/openapi-3.0.yaml +23 -1
  38. package/twitter-openapi/dist/compatible_discriminator/openapi-3.0.yaml +6150 -0
  39. package/twitter-openapi/dist/docs/openapi-3.0.yaml +23 -1
  40. package/twitter-openapi/src/openapi/schemas/instruction.yaml +1 -1
  41. package/twitter-openapi/src/openapi/schemas/tweet.yaml +21 -2
  42. package/twitter-openapi/src/openapi/schemas/user.yaml +2 -0
  43. package/twitter-openapi/test/python/openapi-generator-config.yaml +1 -1
  44. package/twitter-openapi/test/python/test_serialize.py +1 -0
  45. package/twitter-openapi/test/python/test_serialize_guest.py +49 -0
  46. package/twitter-openapi/tools/build_config.py +28 -3
  47. package/twitter-openapi/tools/hooks.py +9 -1
  48. package/twitter-openapi/test/python/replace.py +0 -23
@@ -1,7 +1,7 @@
1
1
  inputSpec: twitter-openapi/dist/compatible/openapi-3.0.yaml
2
2
  outputDir: .
3
3
  npmName: twitter-openapi-typescript-generated
4
- npmVersion: 0.0.17
4
+ npmVersion: 0.0.19
5
5
 
6
6
  # withoutRuntimeChecks: false
7
7
  legacyDiscriminatorBehavior: false
@@ -28,7 +28,8 @@
28
28
  "env": {
29
29
  "ERROR_UNCATCHED": "True",
30
30
  "STRICT_MODE": "True",
31
- "MULTI_THREAD": "True"
31
+ "MULTI_THREAD": "True",
32
+ "CUESOR_TEST_COUNT": "3"
32
33
  }
33
34
  }
34
35
  ]
@@ -9,7 +9,6 @@
9
9
  "source .venv/bin/activate;",
10
10
  "python3 tools/build.py;",
11
11
  "java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python;",
12
- "python3 test/python/replace.py;",
13
12
  "python3 -m pip install ./python_generated;"
14
13
  ]
15
14
  },
@@ -19,7 +18,6 @@
19
18
  "python tools/build.py;",
20
19
  "scoop reset temurin11-jdk;",
21
20
  "java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python;",
22
- "python test/python/replace.py;",
23
21
  "python -m pip install ./python_generated;"
24
22
  ]
25
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'
@@ -1656,6 +1660,7 @@ components:
1656
1660
  enum:
1657
1661
  - Top
1658
1662
  - Bottom
1663
+ - TopAndBottom
1659
1664
  type: string
1660
1665
  type:
1661
1666
  $ref: '#/components/schemas/InstructionType'
@@ -1793,6 +1798,20 @@ components:
1793
1798
  $ref: '#/components/schemas/Timeline'
1794
1799
  required:
1795
1800
  - timeline
1801
+ Timestamp:
1802
+ properties:
1803
+ indices:
1804
+ items:
1805
+ type: integer
1806
+ type: array
1807
+ seconds:
1808
+ type: integer
1809
+ text:
1810
+ type: string
1811
+ required:
1812
+ - indices
1813
+ - seconds
1814
+ - text
1796
1815
  TopicContext:
1797
1816
  properties:
1798
1817
  description:
@@ -2159,10 +2178,11 @@ components:
2159
2178
  limited_actions:
2160
2179
  enum:
2161
2180
  - limited_replies
2162
- - community_tweet_non_member_public_community
2163
2181
  - non_compliant
2164
2182
  - dynamic_product_ad
2165
2183
  - stale_tweet
2184
+ - community_tweet_non_member_public_community
2185
+ - community_tweet_non_member_closed_community
2166
2186
  type: string
2167
2187
  place:
2168
2188
  additionalProperties: true
@@ -2790,6 +2810,8 @@ components:
2790
2810
  properties:
2791
2811
  __typename:
2792
2812
  $ref: '#/components/schemas/TypeName'
2813
+ message:
2814
+ type: string
2793
2815
  reason:
2794
2816
  type: string
2795
2817
  required: