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.
- package/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/dist/models/Entities.d.ts +7 -0
- package/dist/models/Entities.d.ts.map +1 -1
- package/dist/models/Entities.js +3 -0
- package/dist/models/Entities.js.map +1 -1
- package/dist/models/TimelineTerminateTimeline.d.ts +1 -0
- package/dist/models/TimelineTerminateTimeline.d.ts.map +1 -1
- package/dist/models/TimelineTerminateTimeline.js +2 -1
- package/dist/models/TimelineTerminateTimeline.js.map +1 -1
- package/dist/models/Timestamp.d.ts +44 -0
- package/dist/models/Timestamp.d.ts.map +1 -0
- package/dist/models/Timestamp.js +57 -0
- package/dist/models/Timestamp.js.map +1 -0
- package/dist/models/TweetLegacy.d.ts +2 -1
- package/dist/models/TweetLegacy.d.ts.map +1 -1
- package/dist/models/TweetLegacy.js +3 -2
- package/dist/models/TweetLegacy.js.map +1 -1
- package/dist/models/UserUnavailable.d.ts +6 -0
- package/dist/models/UserUnavailable.d.ts.map +1 -1
- package/dist/models/UserUnavailable.js +3 -0
- package/dist/models/UserUnavailable.js.map +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +1 -0
- package/dist/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/models/Entities.ts +14 -0
- package/src/models/TimelineTerminateTimeline.ts +2 -1
- package/src/models/Timestamp.ts +84 -0
- package/src/models/TweetLegacy.ts +3 -2
- package/src/models/UserUnavailable.ts +8 -0
- package/src/models/index.ts +1 -0
- package/tools/openapi-generator-config.yaml +1 -1
- package/twitter-openapi/.vscode/launch.json +2 -1
- package/twitter-openapi/.vscode/tasks.json +0 -2
- package/twitter-openapi/dist/compatible/openapi-3.0.yaml +23 -1
- package/twitter-openapi/dist/compatible_discriminator/openapi-3.0.yaml +6150 -0
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +23 -1
- package/twitter-openapi/src/openapi/schemas/instruction.yaml +1 -1
- package/twitter-openapi/src/openapi/schemas/tweet.yaml +21 -2
- package/twitter-openapi/src/openapi/schemas/user.yaml +2 -0
- package/twitter-openapi/test/python/openapi-generator-config.yaml +1 -1
- package/twitter-openapi/test/python/test_serialize.py +1 -0
- package/twitter-openapi/test/python/test_serialize_guest.py +49 -0
- package/twitter-openapi/tools/build_config.py +28 -3
- package/twitter-openapi/tools/hooks.py +9 -1
- package/twitter-openapi/test/python/replace.py +0 -23
|
@@ -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:
|