twitter-openapi-typescript-generated 0.0.12 → 0.0.13

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 (108) hide show
  1. package/.openapi-generator/FILES +13 -0
  2. package/README.md +2 -2
  3. package/dist/models/BirdwatchEntity.d.ts +45 -0
  4. package/dist/models/BirdwatchEntity.d.ts.map +1 -0
  5. package/dist/models/BirdwatchEntity.js +58 -0
  6. package/dist/models/BirdwatchEntity.js.map +1 -0
  7. package/dist/models/BirdwatchEntityRef.d.ts +58 -0
  8. package/dist/models/BirdwatchEntityRef.d.ts.map +1 -0
  9. package/dist/models/BirdwatchEntityRef.js +69 -0
  10. package/dist/models/BirdwatchEntityRef.js.map +1 -0
  11. package/dist/models/BirdwatchPivot.d.ts +91 -0
  12. package/dist/models/BirdwatchPivot.d.ts.map +1 -0
  13. package/dist/models/BirdwatchPivot.js +87 -0
  14. package/dist/models/BirdwatchPivot.js.map +1 -0
  15. package/dist/models/BirdwatchPivotFooter.d.ts +39 -0
  16. package/dist/models/BirdwatchPivotFooter.d.ts.map +1 -0
  17. package/dist/models/BirdwatchPivotFooter.js +55 -0
  18. package/dist/models/BirdwatchPivotFooter.js.map +1 -0
  19. package/dist/models/BirdwatchPivotNote.d.ts +32 -0
  20. package/dist/models/BirdwatchPivotNote.d.ts.map +1 -0
  21. package/dist/models/BirdwatchPivotNote.js +51 -0
  22. package/dist/models/BirdwatchPivotNote.js.map +1 -0
  23. package/dist/models/BirdwatchPivotSubtitle.d.ts +39 -0
  24. package/dist/models/BirdwatchPivotSubtitle.d.ts.map +1 -0
  25. package/dist/models/BirdwatchPivotSubtitle.js +55 -0
  26. package/dist/models/BirdwatchPivotSubtitle.js.map +1 -0
  27. package/dist/models/ContentItemType.d.ts +1 -0
  28. package/dist/models/ContentItemType.d.ts.map +1 -1
  29. package/dist/models/ContentItemType.js +2 -1
  30. package/dist/models/ContentItemType.js.map +1 -1
  31. package/dist/models/ExtMediaAvailability.d.ts +7 -0
  32. package/dist/models/ExtMediaAvailability.d.ts.map +1 -1
  33. package/dist/models/ExtMediaAvailability.js +4 -1
  34. package/dist/models/ExtMediaAvailability.js.map +1 -1
  35. package/dist/models/ItemContentUnion.d.ts +3 -0
  36. package/dist/models/ItemContentUnion.d.ts.map +1 -1
  37. package/dist/models/ItemContentUnion.js +5 -0
  38. package/dist/models/ItemContentUnion.js.map +1 -1
  39. package/dist/models/NoteTweet.d.ts +39 -0
  40. package/dist/models/NoteTweet.d.ts.map +1 -0
  41. package/dist/models/NoteTweet.js +55 -0
  42. package/dist/models/NoteTweet.js.map +1 -0
  43. package/dist/models/NoteTweetResult.d.ts +33 -0
  44. package/dist/models/NoteTweetResult.d.ts.map +1 -0
  45. package/dist/models/NoteTweetResult.js +52 -0
  46. package/dist/models/NoteTweetResult.js.map +1 -0
  47. package/dist/models/NoteTweetResultData.d.ts +59 -0
  48. package/dist/models/NoteTweetResultData.d.ts.map +1 -0
  49. package/dist/models/NoteTweetResultData.js +65 -0
  50. package/dist/models/NoteTweetResultData.js.map +1 -0
  51. package/dist/models/NoteTweetResultMedia.d.ts +32 -0
  52. package/dist/models/NoteTweetResultMedia.d.ts.map +1 -0
  53. package/dist/models/NoteTweetResultMedia.js +51 -0
  54. package/dist/models/NoteTweetResultMedia.js.map +1 -0
  55. package/dist/models/NoteTweetResultRichText.d.ts +33 -0
  56. package/dist/models/NoteTweetResultRichText.d.ts.map +1 -0
  57. package/dist/models/NoteTweetResultRichText.js +52 -0
  58. package/dist/models/NoteTweetResultRichText.js.map +1 -0
  59. package/dist/models/NoteTweetResultRichTextTag.d.ts +52 -0
  60. package/dist/models/NoteTweetResultRichTextTag.d.ts.map +1 -0
  61. package/dist/models/NoteTweetResultRichTextTag.js +64 -0
  62. package/dist/models/NoteTweetResultRichTextTag.js.map +1 -0
  63. package/dist/models/TimelineCommunity.d.ts +34 -0
  64. package/dist/models/TimelineCommunity.d.ts.map +1 -0
  65. package/dist/models/TimelineCommunity.js +59 -0
  66. package/dist/models/TimelineCommunity.js.map +1 -0
  67. package/dist/models/Tweet.d.ts +20 -0
  68. package/dist/models/Tweet.d.ts.map +1 -1
  69. package/dist/models/Tweet.js +8 -0
  70. package/dist/models/Tweet.js.map +1 -1
  71. package/dist/models/TypeName.d.ts +1 -0
  72. package/dist/models/TypeName.d.ts.map +1 -1
  73. package/dist/models/TypeName.js +1 -0
  74. package/dist/models/TypeName.js.map +1 -1
  75. package/dist/models/index.d.ts +13 -0
  76. package/dist/models/index.d.ts.map +1 -1
  77. package/dist/models/index.js +13 -0
  78. package/dist/models/index.js.map +1 -1
  79. package/package.json +2 -3
  80. package/src/models/BirdwatchEntity.ts +91 -0
  81. package/src/models/BirdwatchEntityRef.ts +102 -0
  82. package/src/models/BirdwatchPivot.ts +165 -0
  83. package/src/models/BirdwatchPivotFooter.ts +82 -0
  84. package/src/models/BirdwatchPivotNote.ts +66 -0
  85. package/src/models/BirdwatchPivotSubtitle.ts +82 -0
  86. package/src/models/ContentItemType.ts +2 -1
  87. package/src/models/ExtMediaAvailability.ts +10 -1
  88. package/src/models/ItemContentUnion.ts +12 -1
  89. package/src/models/NoteTweet.ts +82 -0
  90. package/src/models/NoteTweetResult.ts +73 -0
  91. package/src/models/NoteTweetResultData.ts +119 -0
  92. package/src/models/NoteTweetResultMedia.ts +66 -0
  93. package/src/models/NoteTweetResultRichText.ts +73 -0
  94. package/src/models/NoteTweetResultRichTextTag.ts +95 -0
  95. package/src/models/TimelineCommunity.ts +75 -0
  96. package/src/models/Tweet.ts +36 -0
  97. package/src/models/TypeName.ts +1 -0
  98. package/src/models/index.ts +13 -0
  99. package/tools/openapi-generator-config.yaml +1 -1
  100. package/twitter-openapi/README.md +2 -0
  101. package/twitter-openapi/dist/compatible/openapi-3.0.yaml +172 -0
  102. package/twitter-openapi/dist/docs/openapi-3.0.yaml +172 -0
  103. package/twitter-openapi/src/openapi/schemas/content.yaml +9 -0
  104. package/twitter-openapi/src/openapi/schemas/tweet.yaml +168 -1
  105. package/twitter-openapi/src/openapi/schemas/typename.yaml +1 -0
  106. package/twitter-openapi/test/python/test_serialize.py +24 -0
  107. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  108. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
@@ -17,6 +17,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./AdditionalMediaInfo"), exports);
20
+ __exportStar(require("./BirdwatchEntity"), exports);
21
+ __exportStar(require("./BirdwatchEntityRef"), exports);
22
+ __exportStar(require("./BirdwatchPivot"), exports);
23
+ __exportStar(require("./BirdwatchPivotFooter"), exports);
24
+ __exportStar(require("./BirdwatchPivotNote"), exports);
25
+ __exportStar(require("./BirdwatchPivotSubtitle"), exports);
20
26
  __exportStar(require("./BookmarksResponse"), exports);
21
27
  __exportStar(require("./BookmarksResponseData"), exports);
22
28
  __exportStar(require("./BookmarksTimeline"), exports);
@@ -95,6 +101,12 @@ __exportStar(require("./MediaVideoInfoVariant"), exports);
95
101
  __exportStar(require("./ModelError"), exports);
96
102
  __exportStar(require("./ModuleEntry"), exports);
97
103
  __exportStar(require("./ModuleItem"), exports);
104
+ __exportStar(require("./NoteTweet"), exports);
105
+ __exportStar(require("./NoteTweetResult"), exports);
106
+ __exportStar(require("./NoteTweetResultData"), exports);
107
+ __exportStar(require("./NoteTweetResultMedia"), exports);
108
+ __exportStar(require("./NoteTweetResultRichText"), exports);
109
+ __exportStar(require("./NoteTweetResultRichTextTag"), exports);
98
110
  __exportStar(require("./OneFactorLoginEligibility"), exports);
99
111
  __exportStar(require("./Other200Response"), exports);
100
112
  __exportStar(require("./OtherResponse"), exports);
@@ -135,6 +147,7 @@ __exportStar(require("./TimelineAddEntries"), exports);
135
147
  __exportStar(require("./TimelineAddEntry"), exports);
136
148
  __exportStar(require("./TimelineAddToModule"), exports);
137
149
  __exportStar(require("./TimelineClearCache"), exports);
150
+ __exportStar(require("./TimelineCommunity"), exports);
138
151
  __exportStar(require("./TimelineCoverBehavior"), exports);
139
152
  __exportStar(require("./TimelineHalfCover"), exports);
140
153
  __exportStar(require("./TimelineMessagePrompt"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,wDAAsC;AACtC,sDAAoC;AACpC,0DAAwC;AACxC,sDAAoC;AACpC,6CAA2B;AAC3B,oDAAkC;AAClC,uDAAqC;AACrC,qDAAmC;AACnC,oDAAkC;AAClC,iDAA+B;AAC/B,6CAA2B;AAC3B,kDAAgC;AAChC,0DAAwC;AACxC,8DAA4C;AAC5C,gEAA8C;AAC9C,gDAA8B;AAC9B,wDAAsC;AACtC,4DAA0C;AAC1C,8DAA4C;AAC5C,uDAAqC;AACrC,+CAA6B;AAC7B,kDAAgC;AAChC,0DAAwC;AACxC,8DAA4C;AAC5C,gEAA8C;AAC9C,wDAAsC;AACtC,4DAA0C;AAC1C,8DAA4C;AAC5C,6CAA2B;AAC3B,oDAAkC;AAClC,kDAAgC;AAChC,2CAAyB;AACzB,yDAAuC;AACvC,qDAAmC;AACnC,+CAA6B;AAC7B,kDAAgC;AAChC,8DAA4C;AAC5C,mDAAiC;AACjC,uDAAqC;AACrC,yDAAuC;AACvC,uDAAqC;AACrC,mDAAiC;AACjC,4DAA0C;AAC1C,6DAA2C;AAC3C,4DAA0C;AAC1C,qEAAmD;AACnD,wDAAsC;AACtC,2EAAyD;AACzD,yEAAuD;AACvD,6DAA2C;AAC3C,iEAA+C;AAC/C,8DAA4C;AAC5C,sEAAoD;AACpD,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,qDAAmC;AACnC,6DAA2C;AAC3C,oDAAkC;AAClC,qDAAmC;AACnC,qDAAmC;AACnC,+CAA6B;AAC7B,qEAAmD;AACnD,uDAAqC;AACrC,2DA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  "name": "twitter-openapi-typescript-generated",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "OpenAPI client for twitter-openapi-typescript-generated",
5
5
  "author": "fa0311",
6
6
  "repository": {
@@ -10,8 +10,7 @@
10
10
  "main": "./dist/index.js",
11
11
  "typings": "./dist/index.d.ts",
12
12
  "scripts": {
13
- "build": "tsc",
14
- "prepare": "npm run build"
13
+ "build": "tsc"
15
14
  },
16
15
  "devDependencies": {
17
16
  "typescript": "^4.0"
@@ -0,0 +1,91 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Twitter OpenAPI
5
+ * Twitter OpenAPI(Swagger) specification
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ * Contact: yuki@yuki0311.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { BirdwatchEntityRef } from './BirdwatchEntityRef';
17
+ import {
18
+ BirdwatchEntityRefFromJSON,
19
+ BirdwatchEntityRefFromJSONTyped,
20
+ BirdwatchEntityRefToJSON,
21
+ } from './BirdwatchEntityRef';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface BirdwatchEntity
27
+ */
28
+ export interface BirdwatchEntity {
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof BirdwatchEntity
33
+ */
34
+ fromIndex: number;
35
+ /**
36
+ *
37
+ * @type {BirdwatchEntityRef}
38
+ * @memberof BirdwatchEntity
39
+ */
40
+ ref: BirdwatchEntityRef;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof BirdwatchEntity
45
+ */
46
+ toIndex: number;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the BirdwatchEntity interface.
51
+ */
52
+ export function instanceOfBirdwatchEntity(value: object): boolean {
53
+ let isInstance = true;
54
+ isInstance = isInstance && "fromIndex" in value;
55
+ isInstance = isInstance && "ref" in value;
56
+ isInstance = isInstance && "toIndex" in value;
57
+
58
+ return isInstance;
59
+ }
60
+
61
+ export function BirdwatchEntityFromJSON(json: any): BirdwatchEntity {
62
+ return BirdwatchEntityFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function BirdwatchEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): BirdwatchEntity {
66
+ if ((json === undefined) || (json === null)) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'fromIndex': json['fromIndex'],
72
+ 'ref': BirdwatchEntityRefFromJSON(json['ref']),
73
+ 'toIndex': json['toIndex'],
74
+ };
75
+ }
76
+
77
+ export function BirdwatchEntityToJSON(value?: BirdwatchEntity | null): any {
78
+ if (value === undefined) {
79
+ return undefined;
80
+ }
81
+ if (value === null) {
82
+ return null;
83
+ }
84
+ return {
85
+
86
+ 'fromIndex': value.fromIndex,
87
+ 'ref': BirdwatchEntityRefToJSON(value.ref),
88
+ 'toIndex': value.toIndex,
89
+ };
90
+ }
91
+
@@ -0,0 +1,102 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Twitter OpenAPI
5
+ * Twitter OpenAPI(Swagger) specification
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ * Contact: yuki@yuki0311.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface BirdwatchEntityRef
20
+ */
21
+ export interface BirdwatchEntityRef {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof BirdwatchEntityRef
26
+ */
27
+ type: BirdwatchEntityRefTypeEnum;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof BirdwatchEntityRef
32
+ */
33
+ url: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof BirdwatchEntityRef
38
+ */
39
+ urlType: BirdwatchEntityRefUrlTypeEnum;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const BirdwatchEntityRefTypeEnum = {
47
+ TimelineUrl: 'TimelineUrl'
48
+ } as const;
49
+ export type BirdwatchEntityRefTypeEnum = typeof BirdwatchEntityRefTypeEnum[keyof typeof BirdwatchEntityRefTypeEnum];
50
+
51
+ /**
52
+ * @export
53
+ */
54
+ export const BirdwatchEntityRefUrlTypeEnum = {
55
+ ExternalUrl: 'ExternalUrl'
56
+ } as const;
57
+ export type BirdwatchEntityRefUrlTypeEnum = typeof BirdwatchEntityRefUrlTypeEnum[keyof typeof BirdwatchEntityRefUrlTypeEnum];
58
+
59
+
60
+ /**
61
+ * Check if a given object implements the BirdwatchEntityRef interface.
62
+ */
63
+ export function instanceOfBirdwatchEntityRef(value: object): boolean {
64
+ let isInstance = true;
65
+ isInstance = isInstance && "type" in value;
66
+ isInstance = isInstance && "url" in value;
67
+ isInstance = isInstance && "urlType" in value;
68
+
69
+ return isInstance;
70
+ }
71
+
72
+ export function BirdwatchEntityRefFromJSON(json: any): BirdwatchEntityRef {
73
+ return BirdwatchEntityRefFromJSONTyped(json, false);
74
+ }
75
+
76
+ export function BirdwatchEntityRefFromJSONTyped(json: any, ignoreDiscriminator: boolean): BirdwatchEntityRef {
77
+ if ((json === undefined) || (json === null)) {
78
+ return json;
79
+ }
80
+ return {
81
+
82
+ 'type': json['type'],
83
+ 'url': json['url'],
84
+ 'urlType': json['urlType'],
85
+ };
86
+ }
87
+
88
+ export function BirdwatchEntityRefToJSON(value?: BirdwatchEntityRef | null): any {
89
+ if (value === undefined) {
90
+ return undefined;
91
+ }
92
+ if (value === null) {
93
+ return null;
94
+ }
95
+ return {
96
+
97
+ 'type': value.type,
98
+ 'url': value.url,
99
+ 'urlType': value.urlType,
100
+ };
101
+ }
102
+
@@ -0,0 +1,165 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Twitter OpenAPI
5
+ * Twitter OpenAPI(Swagger) specification
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ * Contact: yuki@yuki0311.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { BirdwatchPivotFooter } from './BirdwatchPivotFooter';
17
+ import {
18
+ BirdwatchPivotFooterFromJSON,
19
+ BirdwatchPivotFooterFromJSONTyped,
20
+ BirdwatchPivotFooterToJSON,
21
+ } from './BirdwatchPivotFooter';
22
+ import type { BirdwatchPivotNote } from './BirdwatchPivotNote';
23
+ import {
24
+ BirdwatchPivotNoteFromJSON,
25
+ BirdwatchPivotNoteFromJSONTyped,
26
+ BirdwatchPivotNoteToJSON,
27
+ } from './BirdwatchPivotNote';
28
+ import type { BirdwatchPivotSubtitle } from './BirdwatchPivotSubtitle';
29
+ import {
30
+ BirdwatchPivotSubtitleFromJSON,
31
+ BirdwatchPivotSubtitleFromJSONTyped,
32
+ BirdwatchPivotSubtitleToJSON,
33
+ } from './BirdwatchPivotSubtitle';
34
+
35
+ /**
36
+ *
37
+ * @export
38
+ * @interface BirdwatchPivot
39
+ */
40
+ export interface BirdwatchPivot {
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof BirdwatchPivot
45
+ */
46
+ destinationUrl: string;
47
+ /**
48
+ *
49
+ * @type {BirdwatchPivotFooter}
50
+ * @memberof BirdwatchPivot
51
+ */
52
+ footer: BirdwatchPivotFooter;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof BirdwatchPivot
57
+ */
58
+ iconType: BirdwatchPivotIconTypeEnum;
59
+ /**
60
+ *
61
+ * @type {BirdwatchPivotNote}
62
+ * @memberof BirdwatchPivot
63
+ */
64
+ note: BirdwatchPivotNote;
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof BirdwatchPivot
69
+ */
70
+ shorttitle: string;
71
+ /**
72
+ *
73
+ * @type {BirdwatchPivotSubtitle}
74
+ * @memberof BirdwatchPivot
75
+ */
76
+ subtitle: BirdwatchPivotSubtitle;
77
+ /**
78
+ *
79
+ * @type {string}
80
+ * @memberof BirdwatchPivot
81
+ */
82
+ title: string;
83
+ /**
84
+ *
85
+ * @type {string}
86
+ * @memberof BirdwatchPivot
87
+ */
88
+ visualStyle?: BirdwatchPivotVisualStyleEnum;
89
+ }
90
+
91
+
92
+ /**
93
+ * @export
94
+ */
95
+ export const BirdwatchPivotIconTypeEnum = {
96
+ BirdwatchV1Icon: 'BirdwatchV1Icon'
97
+ } as const;
98
+ export type BirdwatchPivotIconTypeEnum = typeof BirdwatchPivotIconTypeEnum[keyof typeof BirdwatchPivotIconTypeEnum];
99
+
100
+ /**
101
+ * @export
102
+ */
103
+ export const BirdwatchPivotVisualStyleEnum = {
104
+ Default: 'Default'
105
+ } as const;
106
+ export type BirdwatchPivotVisualStyleEnum = typeof BirdwatchPivotVisualStyleEnum[keyof typeof BirdwatchPivotVisualStyleEnum];
107
+
108
+
109
+ /**
110
+ * Check if a given object implements the BirdwatchPivot interface.
111
+ */
112
+ export function instanceOfBirdwatchPivot(value: object): boolean {
113
+ let isInstance = true;
114
+ isInstance = isInstance && "destinationUrl" in value;
115
+ isInstance = isInstance && "footer" in value;
116
+ isInstance = isInstance && "iconType" in value;
117
+ isInstance = isInstance && "note" in value;
118
+ isInstance = isInstance && "shorttitle" in value;
119
+ isInstance = isInstance && "subtitle" in value;
120
+ isInstance = isInstance && "title" in value;
121
+
122
+ return isInstance;
123
+ }
124
+
125
+ export function BirdwatchPivotFromJSON(json: any): BirdwatchPivot {
126
+ return BirdwatchPivotFromJSONTyped(json, false);
127
+ }
128
+
129
+ export function BirdwatchPivotFromJSONTyped(json: any, ignoreDiscriminator: boolean): BirdwatchPivot {
130
+ if ((json === undefined) || (json === null)) {
131
+ return json;
132
+ }
133
+ return {
134
+
135
+ 'destinationUrl': json['destinationUrl'],
136
+ 'footer': BirdwatchPivotFooterFromJSON(json['footer']),
137
+ 'iconType': json['iconType'],
138
+ 'note': BirdwatchPivotNoteFromJSON(json['note']),
139
+ 'shorttitle': json['shorttitle'],
140
+ 'subtitle': BirdwatchPivotSubtitleFromJSON(json['subtitle']),
141
+ 'title': json['title'],
142
+ 'visualStyle': !exists(json, 'visualStyle') ? undefined : json['visualStyle'],
143
+ };
144
+ }
145
+
146
+ export function BirdwatchPivotToJSON(value?: BirdwatchPivot | null): any {
147
+ if (value === undefined) {
148
+ return undefined;
149
+ }
150
+ if (value === null) {
151
+ return null;
152
+ }
153
+ return {
154
+
155
+ 'destinationUrl': value.destinationUrl,
156
+ 'footer': BirdwatchPivotFooterToJSON(value.footer),
157
+ 'iconType': value.iconType,
158
+ 'note': BirdwatchPivotNoteToJSON(value.note),
159
+ 'shorttitle': value.shorttitle,
160
+ 'subtitle': BirdwatchPivotSubtitleToJSON(value.subtitle),
161
+ 'title': value.title,
162
+ 'visualStyle': value.visualStyle,
163
+ };
164
+ }
165
+
@@ -0,0 +1,82 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Twitter OpenAPI
5
+ * Twitter OpenAPI(Swagger) specification
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ * Contact: yuki@yuki0311.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { BirdwatchEntity } from './BirdwatchEntity';
17
+ import {
18
+ BirdwatchEntityFromJSON,
19
+ BirdwatchEntityFromJSONTyped,
20
+ BirdwatchEntityToJSON,
21
+ } from './BirdwatchEntity';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface BirdwatchPivotFooter
27
+ */
28
+ export interface BirdwatchPivotFooter {
29
+ /**
30
+ *
31
+ * @type {Array<BirdwatchEntity>}
32
+ * @memberof BirdwatchPivotFooter
33
+ */
34
+ entities: Array<BirdwatchEntity>;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof BirdwatchPivotFooter
39
+ */
40
+ text: string;
41
+ }
42
+
43
+ /**
44
+ * Check if a given object implements the BirdwatchPivotFooter interface.
45
+ */
46
+ export function instanceOfBirdwatchPivotFooter(value: object): boolean {
47
+ let isInstance = true;
48
+ isInstance = isInstance && "entities" in value;
49
+ isInstance = isInstance && "text" in value;
50
+
51
+ return isInstance;
52
+ }
53
+
54
+ export function BirdwatchPivotFooterFromJSON(json: any): BirdwatchPivotFooter {
55
+ return BirdwatchPivotFooterFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function BirdwatchPivotFooterFromJSONTyped(json: any, ignoreDiscriminator: boolean): BirdwatchPivotFooter {
59
+ if ((json === undefined) || (json === null)) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'entities': ((json['entities'] as Array<any>).map(BirdwatchEntityFromJSON)),
65
+ 'text': json['text'],
66
+ };
67
+ }
68
+
69
+ export function BirdwatchPivotFooterToJSON(value?: BirdwatchPivotFooter | null): any {
70
+ if (value === undefined) {
71
+ return undefined;
72
+ }
73
+ if (value === null) {
74
+ return null;
75
+ }
76
+ return {
77
+
78
+ 'entities': ((value.entities as Array<any>).map(BirdwatchEntityToJSON)),
79
+ 'text': value.text,
80
+ };
81
+ }
82
+
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Twitter OpenAPI
5
+ * Twitter OpenAPI(Swagger) specification
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ * Contact: yuki@yuki0311.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface BirdwatchPivotNote
20
+ */
21
+ export interface BirdwatchPivotNote {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof BirdwatchPivotNote
26
+ */
27
+ restId: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the BirdwatchPivotNote interface.
32
+ */
33
+ export function instanceOfBirdwatchPivotNote(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "restId" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
40
+ export function BirdwatchPivotNoteFromJSON(json: any): BirdwatchPivotNote {
41
+ return BirdwatchPivotNoteFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function BirdwatchPivotNoteFromJSONTyped(json: any, ignoreDiscriminator: boolean): BirdwatchPivotNote {
45
+ if ((json === undefined) || (json === null)) {
46
+ return json;
47
+ }
48
+ return {
49
+
50
+ 'restId': json['rest_id'],
51
+ };
52
+ }
53
+
54
+ export function BirdwatchPivotNoteToJSON(value?: BirdwatchPivotNote | null): any {
55
+ if (value === undefined) {
56
+ return undefined;
57
+ }
58
+ if (value === null) {
59
+ return null;
60
+ }
61
+ return {
62
+
63
+ 'rest_id': value.restId,
64
+ };
65
+ }
66
+
@@ -0,0 +1,82 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Twitter OpenAPI
5
+ * Twitter OpenAPI(Swagger) specification
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ * Contact: yuki@yuki0311.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { BirdwatchEntity } from './BirdwatchEntity';
17
+ import {
18
+ BirdwatchEntityFromJSON,
19
+ BirdwatchEntityFromJSONTyped,
20
+ BirdwatchEntityToJSON,
21
+ } from './BirdwatchEntity';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface BirdwatchPivotSubtitle
27
+ */
28
+ export interface BirdwatchPivotSubtitle {
29
+ /**
30
+ *
31
+ * @type {Array<BirdwatchEntity>}
32
+ * @memberof BirdwatchPivotSubtitle
33
+ */
34
+ entities: Array<BirdwatchEntity>;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof BirdwatchPivotSubtitle
39
+ */
40
+ text: string;
41
+ }
42
+
43
+ /**
44
+ * Check if a given object implements the BirdwatchPivotSubtitle interface.
45
+ */
46
+ export function instanceOfBirdwatchPivotSubtitle(value: object): boolean {
47
+ let isInstance = true;
48
+ isInstance = isInstance && "entities" in value;
49
+ isInstance = isInstance && "text" in value;
50
+
51
+ return isInstance;
52
+ }
53
+
54
+ export function BirdwatchPivotSubtitleFromJSON(json: any): BirdwatchPivotSubtitle {
55
+ return BirdwatchPivotSubtitleFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function BirdwatchPivotSubtitleFromJSONTyped(json: any, ignoreDiscriminator: boolean): BirdwatchPivotSubtitle {
59
+ if ((json === undefined) || (json === null)) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'entities': ((json['entities'] as Array<any>).map(BirdwatchEntityFromJSON)),
65
+ 'text': json['text'],
66
+ };
67
+ }
68
+
69
+ export function BirdwatchPivotSubtitleToJSON(value?: BirdwatchPivotSubtitle | null): any {
70
+ if (value === undefined) {
71
+ return undefined;
72
+ }
73
+ if (value === null) {
74
+ return null;
75
+ }
76
+ return {
77
+
78
+ 'entities': ((value.entities as Array<any>).map(BirdwatchEntityToJSON)),
79
+ 'text': value.text,
80
+ };
81
+ }
82
+
@@ -22,7 +22,8 @@ export const ContentItemType = {
22
22
  TimelineTimelineCursor: 'TimelineTimelineCursor',
23
23
  TimelineUser: 'TimelineUser',
24
24
  TimelinePrompt: 'TimelinePrompt',
25
- TimelineMessagePrompt: 'TimelineMessagePrompt'
25
+ TimelineMessagePrompt: 'TimelineMessagePrompt',
26
+ TimelineCommunity: 'TimelineCommunity'
26
27
  } as const;
27
28
  export type ContentItemType = typeof ContentItemType[keyof typeof ContentItemType];
28
29