twitter-openapi-typescript-generated 0.1.0 → 0.1.1

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 (74) hide show
  1. package/README.md +11 -2
  2. package/dist/esm/models/Community.d.ts +4 -0
  3. package/dist/esm/models/Community.js +2 -0
  4. package/dist/esm/models/ErrorExtensions.d.ts +1 -1
  5. package/dist/esm/models/ErrorExtensions.js +1 -3
  6. package/dist/esm/models/ErrorResponse.d.ts +1 -1
  7. package/dist/esm/models/ErrorResponse.js +1 -3
  8. package/dist/esm/models/GroupedTrend.d.ts +35 -0
  9. package/dist/esm/models/GroupedTrend.js +48 -0
  10. package/dist/esm/models/SearchTimeline.d.ts +1 -1
  11. package/dist/esm/models/SearchTimeline.js +1 -3
  12. package/dist/esm/models/TimelineCommunity.d.ts +11 -2
  13. package/dist/esm/models/TimelineCommunity.js +18 -2
  14. package/dist/esm/models/TimelineMessagePrompt.d.ts +11 -2
  15. package/dist/esm/models/TimelineMessagePrompt.js +18 -2
  16. package/dist/esm/models/TimelineMessagePromptButton.d.ts +35 -0
  17. package/dist/esm/models/TimelineMessagePromptButton.js +48 -0
  18. package/dist/esm/models/TimelineMessagePromptButtonAction.d.ts +34 -0
  19. package/dist/esm/models/TimelineMessagePromptButtonAction.js +47 -0
  20. package/dist/esm/models/TimelineMessagePromptContent.d.ts +56 -0
  21. package/dist/esm/models/TimelineMessagePromptContent.js +62 -0
  22. package/dist/esm/models/TimelineMessagePromptRichText.d.ts +35 -0
  23. package/dist/esm/models/TimelineMessagePromptRichText.js +48 -0
  24. package/dist/esm/models/TimelineMessagePromptRichTextEntity.d.ts +39 -0
  25. package/dist/esm/models/TimelineMessagePromptRichTextEntity.js +52 -0
  26. package/dist/esm/models/TimelineMessagePromptRichTextEntityRef.d.ts +52 -0
  27. package/dist/esm/models/TimelineMessagePromptRichTextEntityRef.js +67 -0
  28. package/dist/esm/models/TimelinePrompt.d.ts +16 -2
  29. package/dist/esm/models/TimelinePrompt.js +23 -2
  30. package/dist/esm/models/TimelinePromptCallback.d.ts +30 -0
  31. package/dist/esm/models/TimelinePromptCallback.js +43 -0
  32. package/dist/esm/models/TimelinePromptContent.d.ts +73 -0
  33. package/dist/esm/models/TimelinePromptContent.js +88 -0
  34. package/dist/esm/models/TimelineTrend.d.ts +5 -0
  35. package/dist/esm/models/TimelineTrend.js +3 -0
  36. package/dist/esm/models/index.d.ts +9 -0
  37. package/dist/esm/models/index.js +9 -0
  38. package/dist/models/Community.d.ts +4 -0
  39. package/dist/models/Community.js +2 -0
  40. package/dist/models/ErrorExtensions.d.ts +1 -1
  41. package/dist/models/ErrorExtensions.js +1 -3
  42. package/dist/models/ErrorResponse.d.ts +1 -1
  43. package/dist/models/ErrorResponse.js +1 -3
  44. package/dist/models/GroupedTrend.d.ts +35 -0
  45. package/dist/models/GroupedTrend.js +55 -0
  46. package/dist/models/SearchTimeline.d.ts +1 -1
  47. package/dist/models/SearchTimeline.js +1 -3
  48. package/dist/models/TimelineCommunity.d.ts +11 -2
  49. package/dist/models/TimelineCommunity.js +18 -2
  50. package/dist/models/TimelineMessagePrompt.d.ts +11 -2
  51. package/dist/models/TimelineMessagePrompt.js +18 -2
  52. package/dist/models/TimelineMessagePromptButton.d.ts +35 -0
  53. package/dist/models/TimelineMessagePromptButton.js +55 -0
  54. package/dist/models/TimelineMessagePromptButtonAction.d.ts +34 -0
  55. package/dist/models/TimelineMessagePromptButtonAction.js +54 -0
  56. package/dist/models/TimelineMessagePromptContent.d.ts +56 -0
  57. package/dist/models/TimelineMessagePromptContent.js +70 -0
  58. package/dist/models/TimelineMessagePromptRichText.d.ts +35 -0
  59. package/dist/models/TimelineMessagePromptRichText.js +55 -0
  60. package/dist/models/TimelineMessagePromptRichTextEntity.d.ts +39 -0
  61. package/dist/models/TimelineMessagePromptRichTextEntity.js +59 -0
  62. package/dist/models/TimelineMessagePromptRichTextEntityRef.d.ts +52 -0
  63. package/dist/models/TimelineMessagePromptRichTextEntityRef.js +75 -0
  64. package/dist/models/TimelinePrompt.d.ts +16 -2
  65. package/dist/models/TimelinePrompt.js +23 -2
  66. package/dist/models/TimelinePromptCallback.d.ts +30 -0
  67. package/dist/models/TimelinePromptCallback.js +50 -0
  68. package/dist/models/TimelinePromptContent.d.ts +73 -0
  69. package/dist/models/TimelinePromptContent.js +96 -0
  70. package/dist/models/TimelineTrend.d.ts +5 -0
  71. package/dist/models/TimelineTrend.js +3 -0
  72. package/dist/models/index.d.ts +9 -0
  73. package/dist/models/index.js +9 -0
  74. package/package.json +1 -1
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Twitter OpenAPI
3
+ * Twitter OpenAPI(Swagger) specification
4
+ *
5
+ * The version of the OpenAPI document: 0.0.1
6
+ * Contact: yuki@yuki0311.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { TimelineMessagePromptButton } from './TimelineMessagePromptButton';
13
+ import type { TimelineMessagePromptRichText } from './TimelineMessagePromptRichText';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface TimelineMessagePromptContent
18
+ */
19
+ export interface TimelineMessagePromptContent {
20
+ /**
21
+ *
22
+ */
23
+ bodyRichText?: TimelineMessagePromptRichText;
24
+ /**
25
+ *
26
+ */
27
+ bodyText?: string;
28
+ /**
29
+ *
30
+ */
31
+ contentType: TimelineMessagePromptContentContentTypeEnum;
32
+ /**
33
+ *
34
+ */
35
+ headerText: string;
36
+ /**
37
+ *
38
+ */
39
+ primaryButtonAction?: TimelineMessagePromptButton;
40
+ }
41
+ /**
42
+ * @export
43
+ */
44
+ export declare const TimelineMessagePromptContentContentTypeEnum: {
45
+ readonly TimelineInlinePrompt: "TimelineInlinePrompt";
46
+ readonly TimelineCompactPrompt: "TimelineCompactPrompt";
47
+ };
48
+ export type TimelineMessagePromptContentContentTypeEnum = typeof TimelineMessagePromptContentContentTypeEnum[keyof typeof TimelineMessagePromptContentContentTypeEnum];
49
+ /**
50
+ * Check if a given object implements the TimelineMessagePromptContent interface.
51
+ */
52
+ export declare function instanceOfTimelineMessagePromptContent(value: object): value is TimelineMessagePromptContent;
53
+ export declare function TimelineMessagePromptContentFromJSON(json: any): TimelineMessagePromptContent;
54
+ export declare function TimelineMessagePromptContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineMessagePromptContent;
55
+ export declare function TimelineMessagePromptContentToJSON(json: any): TimelineMessagePromptContent;
56
+ export declare function TimelineMessagePromptContentToJSONTyped(value?: TimelineMessagePromptContent | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Twitter OpenAPI
6
+ * Twitter OpenAPI(Swagger) specification
7
+ *
8
+ * The version of the OpenAPI document: 0.0.1
9
+ * Contact: yuki@yuki0311.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.TimelineMessagePromptContentContentTypeEnum = void 0;
17
+ exports.instanceOfTimelineMessagePromptContent = instanceOfTimelineMessagePromptContent;
18
+ exports.TimelineMessagePromptContentFromJSON = TimelineMessagePromptContentFromJSON;
19
+ exports.TimelineMessagePromptContentFromJSONTyped = TimelineMessagePromptContentFromJSONTyped;
20
+ exports.TimelineMessagePromptContentToJSON = TimelineMessagePromptContentToJSON;
21
+ exports.TimelineMessagePromptContentToJSONTyped = TimelineMessagePromptContentToJSONTyped;
22
+ const TimelineMessagePromptButton_1 = require("./TimelineMessagePromptButton");
23
+ const TimelineMessagePromptRichText_1 = require("./TimelineMessagePromptRichText");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.TimelineMessagePromptContentContentTypeEnum = {
28
+ TimelineInlinePrompt: 'TimelineInlinePrompt',
29
+ TimelineCompactPrompt: 'TimelineCompactPrompt',
30
+ };
31
+ /**
32
+ * Check if a given object implements the TimelineMessagePromptContent interface.
33
+ */
34
+ function instanceOfTimelineMessagePromptContent(value) {
35
+ if (!('contentType' in value) || value['contentType'] === undefined)
36
+ return false;
37
+ if (!('headerText' in value) || value['headerText'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function TimelineMessagePromptContentFromJSON(json) {
42
+ return TimelineMessagePromptContentFromJSONTyped(json, false);
43
+ }
44
+ function TimelineMessagePromptContentFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'bodyRichText': json['bodyRichText'] == null ? undefined : (0, TimelineMessagePromptRichText_1.TimelineMessagePromptRichTextFromJSON)(json['bodyRichText']),
50
+ 'bodyText': json['bodyText'] == null ? undefined : json['bodyText'],
51
+ 'contentType': json['contentType'],
52
+ 'headerText': json['headerText'],
53
+ 'primaryButtonAction': json['primaryButtonAction'] == null ? undefined : (0, TimelineMessagePromptButton_1.TimelineMessagePromptButtonFromJSON)(json['primaryButtonAction']),
54
+ };
55
+ }
56
+ function TimelineMessagePromptContentToJSON(json) {
57
+ return TimelineMessagePromptContentToJSONTyped(json, false);
58
+ }
59
+ function TimelineMessagePromptContentToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'bodyRichText': (0, TimelineMessagePromptRichText_1.TimelineMessagePromptRichTextToJSON)(value['bodyRichText']),
65
+ 'bodyText': value['bodyText'],
66
+ 'contentType': value['contentType'],
67
+ 'headerText': value['headerText'],
68
+ 'primaryButtonAction': (0, TimelineMessagePromptButton_1.TimelineMessagePromptButtonToJSON)(value['primaryButtonAction']),
69
+ };
70
+ }
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Twitter OpenAPI
3
+ * Twitter OpenAPI(Swagger) specification
4
+ *
5
+ * The version of the OpenAPI document: 0.0.1
6
+ * Contact: yuki@yuki0311.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { TimelineMessagePromptRichTextEntity } from './TimelineMessagePromptRichTextEntity';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TimelineMessagePromptRichText
17
+ */
18
+ export interface TimelineMessagePromptRichText {
19
+ /**
20
+ *
21
+ */
22
+ entities: Array<TimelineMessagePromptRichTextEntity>;
23
+ /**
24
+ *
25
+ */
26
+ text: string;
27
+ }
28
+ /**
29
+ * Check if a given object implements the TimelineMessagePromptRichText interface.
30
+ */
31
+ export declare function instanceOfTimelineMessagePromptRichText(value: object): value is TimelineMessagePromptRichText;
32
+ export declare function TimelineMessagePromptRichTextFromJSON(json: any): TimelineMessagePromptRichText;
33
+ export declare function TimelineMessagePromptRichTextFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineMessagePromptRichText;
34
+ export declare function TimelineMessagePromptRichTextToJSON(json: any): TimelineMessagePromptRichText;
35
+ export declare function TimelineMessagePromptRichTextToJSONTyped(value?: TimelineMessagePromptRichText | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Twitter OpenAPI
6
+ * Twitter OpenAPI(Swagger) specification
7
+ *
8
+ * The version of the OpenAPI document: 0.0.1
9
+ * Contact: yuki@yuki0311.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfTimelineMessagePromptRichText = instanceOfTimelineMessagePromptRichText;
17
+ exports.TimelineMessagePromptRichTextFromJSON = TimelineMessagePromptRichTextFromJSON;
18
+ exports.TimelineMessagePromptRichTextFromJSONTyped = TimelineMessagePromptRichTextFromJSONTyped;
19
+ exports.TimelineMessagePromptRichTextToJSON = TimelineMessagePromptRichTextToJSON;
20
+ exports.TimelineMessagePromptRichTextToJSONTyped = TimelineMessagePromptRichTextToJSONTyped;
21
+ const TimelineMessagePromptRichTextEntity_1 = require("./TimelineMessagePromptRichTextEntity");
22
+ /**
23
+ * Check if a given object implements the TimelineMessagePromptRichText interface.
24
+ */
25
+ function instanceOfTimelineMessagePromptRichText(value) {
26
+ if (!('entities' in value) || value['entities'] === undefined)
27
+ return false;
28
+ if (!('text' in value) || value['text'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function TimelineMessagePromptRichTextFromJSON(json) {
33
+ return TimelineMessagePromptRichTextFromJSONTyped(json, false);
34
+ }
35
+ function TimelineMessagePromptRichTextFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'entities': (json['entities'].map(TimelineMessagePromptRichTextEntity_1.TimelineMessagePromptRichTextEntityFromJSON)),
41
+ 'text': json['text'],
42
+ };
43
+ }
44
+ function TimelineMessagePromptRichTextToJSON(json) {
45
+ return TimelineMessagePromptRichTextToJSONTyped(json, false);
46
+ }
47
+ function TimelineMessagePromptRichTextToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'entities': (value['entities'].map(TimelineMessagePromptRichTextEntity_1.TimelineMessagePromptRichTextEntityToJSON)),
53
+ 'text': value['text'],
54
+ };
55
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Twitter OpenAPI
3
+ * Twitter OpenAPI(Swagger) specification
4
+ *
5
+ * The version of the OpenAPI document: 0.0.1
6
+ * Contact: yuki@yuki0311.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { TimelineMessagePromptRichTextEntityRef } from './TimelineMessagePromptRichTextEntityRef';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TimelineMessagePromptRichTextEntity
17
+ */
18
+ export interface TimelineMessagePromptRichTextEntity {
19
+ /**
20
+ *
21
+ */
22
+ fromIndex: number;
23
+ /**
24
+ *
25
+ */
26
+ ref: TimelineMessagePromptRichTextEntityRef;
27
+ /**
28
+ *
29
+ */
30
+ toIndex: number;
31
+ }
32
+ /**
33
+ * Check if a given object implements the TimelineMessagePromptRichTextEntity interface.
34
+ */
35
+ export declare function instanceOfTimelineMessagePromptRichTextEntity(value: object): value is TimelineMessagePromptRichTextEntity;
36
+ export declare function TimelineMessagePromptRichTextEntityFromJSON(json: any): TimelineMessagePromptRichTextEntity;
37
+ export declare function TimelineMessagePromptRichTextEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineMessagePromptRichTextEntity;
38
+ export declare function TimelineMessagePromptRichTextEntityToJSON(json: any): TimelineMessagePromptRichTextEntity;
39
+ export declare function TimelineMessagePromptRichTextEntityToJSONTyped(value?: TimelineMessagePromptRichTextEntity | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Twitter OpenAPI
6
+ * Twitter OpenAPI(Swagger) specification
7
+ *
8
+ * The version of the OpenAPI document: 0.0.1
9
+ * Contact: yuki@yuki0311.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfTimelineMessagePromptRichTextEntity = instanceOfTimelineMessagePromptRichTextEntity;
17
+ exports.TimelineMessagePromptRichTextEntityFromJSON = TimelineMessagePromptRichTextEntityFromJSON;
18
+ exports.TimelineMessagePromptRichTextEntityFromJSONTyped = TimelineMessagePromptRichTextEntityFromJSONTyped;
19
+ exports.TimelineMessagePromptRichTextEntityToJSON = TimelineMessagePromptRichTextEntityToJSON;
20
+ exports.TimelineMessagePromptRichTextEntityToJSONTyped = TimelineMessagePromptRichTextEntityToJSONTyped;
21
+ const TimelineMessagePromptRichTextEntityRef_1 = require("./TimelineMessagePromptRichTextEntityRef");
22
+ /**
23
+ * Check if a given object implements the TimelineMessagePromptRichTextEntity interface.
24
+ */
25
+ function instanceOfTimelineMessagePromptRichTextEntity(value) {
26
+ if (!('fromIndex' in value) || value['fromIndex'] === undefined)
27
+ return false;
28
+ if (!('ref' in value) || value['ref'] === undefined)
29
+ return false;
30
+ if (!('toIndex' in value) || value['toIndex'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function TimelineMessagePromptRichTextEntityFromJSON(json) {
35
+ return TimelineMessagePromptRichTextEntityFromJSONTyped(json, false);
36
+ }
37
+ function TimelineMessagePromptRichTextEntityFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'fromIndex': json['fromIndex'],
43
+ 'ref': (0, TimelineMessagePromptRichTextEntityRef_1.TimelineMessagePromptRichTextEntityRefFromJSON)(json['ref']),
44
+ 'toIndex': json['toIndex'],
45
+ };
46
+ }
47
+ function TimelineMessagePromptRichTextEntityToJSON(json) {
48
+ return TimelineMessagePromptRichTextEntityToJSONTyped(json, false);
49
+ }
50
+ function TimelineMessagePromptRichTextEntityToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'fromIndex': value['fromIndex'],
56
+ 'ref': (0, TimelineMessagePromptRichTextEntityRef_1.TimelineMessagePromptRichTextEntityRefToJSON)(value['ref']),
57
+ 'toIndex': value['toIndex'],
58
+ };
59
+ }
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Twitter OpenAPI
3
+ * Twitter OpenAPI(Swagger) specification
4
+ *
5
+ * The version of the OpenAPI document: 0.0.1
6
+ * Contact: yuki@yuki0311.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface TimelineMessagePromptRichTextEntityRef
16
+ */
17
+ export interface TimelineMessagePromptRichTextEntityRef {
18
+ /**
19
+ *
20
+ */
21
+ type: TimelineMessagePromptRichTextEntityRefTypeEnum;
22
+ /**
23
+ *
24
+ */
25
+ url: string;
26
+ /**
27
+ *
28
+ */
29
+ urlType: TimelineMessagePromptRichTextEntityRefUrlTypeEnum;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const TimelineMessagePromptRichTextEntityRefTypeEnum: {
35
+ readonly TimelineUrl: "TimelineUrl";
36
+ };
37
+ export type TimelineMessagePromptRichTextEntityRefTypeEnum = typeof TimelineMessagePromptRichTextEntityRefTypeEnum[keyof typeof TimelineMessagePromptRichTextEntityRefTypeEnum];
38
+ /**
39
+ * @export
40
+ */
41
+ export declare const TimelineMessagePromptRichTextEntityRefUrlTypeEnum: {
42
+ readonly ExternalUrl: "ExternalUrl";
43
+ };
44
+ export type TimelineMessagePromptRichTextEntityRefUrlTypeEnum = typeof TimelineMessagePromptRichTextEntityRefUrlTypeEnum[keyof typeof TimelineMessagePromptRichTextEntityRefUrlTypeEnum];
45
+ /**
46
+ * Check if a given object implements the TimelineMessagePromptRichTextEntityRef interface.
47
+ */
48
+ export declare function instanceOfTimelineMessagePromptRichTextEntityRef(value: object): value is TimelineMessagePromptRichTextEntityRef;
49
+ export declare function TimelineMessagePromptRichTextEntityRefFromJSON(json: any): TimelineMessagePromptRichTextEntityRef;
50
+ export declare function TimelineMessagePromptRichTextEntityRefFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineMessagePromptRichTextEntityRef;
51
+ export declare function TimelineMessagePromptRichTextEntityRefToJSON(json: any): TimelineMessagePromptRichTextEntityRef;
52
+ export declare function TimelineMessagePromptRichTextEntityRefToJSONTyped(value?: TimelineMessagePromptRichTextEntityRef | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Twitter OpenAPI
6
+ * Twitter OpenAPI(Swagger) specification
7
+ *
8
+ * The version of the OpenAPI document: 0.0.1
9
+ * Contact: yuki@yuki0311.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.TimelineMessagePromptRichTextEntityRefUrlTypeEnum = exports.TimelineMessagePromptRichTextEntityRefTypeEnum = void 0;
17
+ exports.instanceOfTimelineMessagePromptRichTextEntityRef = instanceOfTimelineMessagePromptRichTextEntityRef;
18
+ exports.TimelineMessagePromptRichTextEntityRefFromJSON = TimelineMessagePromptRichTextEntityRefFromJSON;
19
+ exports.TimelineMessagePromptRichTextEntityRefFromJSONTyped = TimelineMessagePromptRichTextEntityRefFromJSONTyped;
20
+ exports.TimelineMessagePromptRichTextEntityRefToJSON = TimelineMessagePromptRichTextEntityRefToJSON;
21
+ exports.TimelineMessagePromptRichTextEntityRefToJSONTyped = TimelineMessagePromptRichTextEntityRefToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.TimelineMessagePromptRichTextEntityRefTypeEnum = {
26
+ TimelineUrl: 'TimelineUrl',
27
+ };
28
+ /**
29
+ * @export
30
+ */
31
+ exports.TimelineMessagePromptRichTextEntityRefUrlTypeEnum = {
32
+ ExternalUrl: 'ExternalUrl',
33
+ };
34
+ /**
35
+ * Check if a given object implements the TimelineMessagePromptRichTextEntityRef interface.
36
+ */
37
+ function instanceOfTimelineMessagePromptRichTextEntityRef(value) {
38
+ if (!('type' in value) || value['type'] === undefined)
39
+ return false;
40
+ if (value['type'] !== 'TimelineUrl')
41
+ return false;
42
+ if (!('url' in value) || value['url'] === undefined)
43
+ return false;
44
+ if (!('urlType' in value) || value['urlType'] === undefined)
45
+ return false;
46
+ if (value['urlType'] !== 'ExternalUrl')
47
+ return false;
48
+ return true;
49
+ }
50
+ function TimelineMessagePromptRichTextEntityRefFromJSON(json) {
51
+ return TimelineMessagePromptRichTextEntityRefFromJSONTyped(json, false);
52
+ }
53
+ function TimelineMessagePromptRichTextEntityRefFromJSONTyped(json, ignoreDiscriminator) {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+ 'type': json['type'],
59
+ 'url': json['url'],
60
+ 'urlType': json['urlType'],
61
+ };
62
+ }
63
+ function TimelineMessagePromptRichTextEntityRefToJSON(json) {
64
+ return TimelineMessagePromptRichTextEntityRefToJSONTyped(json, false);
65
+ }
66
+ function TimelineMessagePromptRichTextEntityRefToJSONTyped(value, ignoreDiscriminator = false) {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'type': value['type'],
72
+ 'url': value['url'],
73
+ 'urlType': value['urlType'],
74
+ };
75
+ }
@@ -9,18 +9,32 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { TimelinePromptContent } from './TimelinePromptContent';
12
13
  import type { TypeName } from './TypeName';
14
+ import type { ClientEventInfo } from './ClientEventInfo';
15
+ import type { ContentItemType } from './ContentItemType';
13
16
  /**
14
17
  *
15
18
  * @export
16
19
  * @interface TimelinePrompt
17
20
  */
18
21
  export interface TimelinePrompt {
19
- [key: string]: any | any;
20
22
  /**
21
23
  *
22
24
  */
23
- typename?: TypeName;
25
+ typename: TypeName;
26
+ /**
27
+ *
28
+ */
29
+ clientEventInfo: ClientEventInfo;
30
+ /**
31
+ *
32
+ */
33
+ content: TimelinePromptContent;
34
+ /**
35
+ *
36
+ */
37
+ itemType: ContentItemType;
24
38
  }
25
39
  /**
26
40
  * Check if a given object implements the TimelinePrompt interface.
@@ -18,11 +18,22 @@ exports.TimelinePromptFromJSON = TimelinePromptFromJSON;
18
18
  exports.TimelinePromptFromJSONTyped = TimelinePromptFromJSONTyped;
19
19
  exports.TimelinePromptToJSON = TimelinePromptToJSON;
20
20
  exports.TimelinePromptToJSONTyped = TimelinePromptToJSONTyped;
21
+ const TimelinePromptContent_1 = require("./TimelinePromptContent");
21
22
  const TypeName_1 = require("./TypeName");
23
+ const ClientEventInfo_1 = require("./ClientEventInfo");
24
+ const ContentItemType_1 = require("./ContentItemType");
22
25
  /**
23
26
  * Check if a given object implements the TimelinePrompt interface.
24
27
  */
25
28
  function instanceOfTimelinePrompt(value) {
29
+ if ((!('typename' in value) && !('__typename' in value)) || (value['typename'] === undefined && value['__typename'] === undefined))
30
+ return false;
31
+ if (!('clientEventInfo' in value) || value['clientEventInfo'] === undefined)
32
+ return false;
33
+ if (!('content' in value) || value['content'] === undefined)
34
+ return false;
35
+ if (!('itemType' in value) || value['itemType'] === undefined)
36
+ return false;
26
37
  return true;
27
38
  }
28
39
  function TimelinePromptFromJSON(json) {
@@ -32,7 +43,12 @@ function TimelinePromptFromJSONTyped(json, ignoreDiscriminator) {
32
43
  if (json == null) {
33
44
  return json;
34
45
  }
35
- return Object.assign(Object.assign({}, json), { 'typename': json['__typename'] == null ? undefined : (0, TypeName_1.TypeNameFromJSON)(json['__typename']) });
46
+ return {
47
+ 'typename': (0, TypeName_1.TypeNameFromJSON)(json['__typename']),
48
+ 'clientEventInfo': (0, ClientEventInfo_1.ClientEventInfoFromJSON)(json['clientEventInfo']),
49
+ 'content': (0, TimelinePromptContent_1.TimelinePromptContentFromJSON)(json['content']),
50
+ 'itemType': (0, ContentItemType_1.ContentItemTypeFromJSON)(json['itemType']),
51
+ };
36
52
  }
37
53
  function TimelinePromptToJSON(json) {
38
54
  return TimelinePromptToJSONTyped(json, false);
@@ -41,5 +57,10 @@ function TimelinePromptToJSONTyped(value, ignoreDiscriminator = false) {
41
57
  if (value == null) {
42
58
  return value;
43
59
  }
44
- return Object.assign(Object.assign({}, value), { '__typename': (0, TypeName_1.TypeNameToJSON)(value['typename']) });
60
+ return {
61
+ '__typename': (0, TypeName_1.TypeNameToJSON)(value['typename']),
62
+ 'clientEventInfo': (0, ClientEventInfo_1.ClientEventInfoToJSON)(value['clientEventInfo']),
63
+ 'content': (0, TimelinePromptContent_1.TimelinePromptContentToJSON)(value['content']),
64
+ 'itemType': (0, ContentItemType_1.ContentItemTypeToJSON)(value['itemType']),
65
+ };
45
66
  }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Twitter OpenAPI
3
+ * Twitter OpenAPI(Swagger) specification
4
+ *
5
+ * The version of the OpenAPI document: 0.0.1
6
+ * Contact: yuki@yuki0311.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface TimelinePromptCallback
16
+ */
17
+ export interface TimelinePromptCallback {
18
+ /**
19
+ *
20
+ */
21
+ endpoint: string;
22
+ }
23
+ /**
24
+ * Check if a given object implements the TimelinePromptCallback interface.
25
+ */
26
+ export declare function instanceOfTimelinePromptCallback(value: object): value is TimelinePromptCallback;
27
+ export declare function TimelinePromptCallbackFromJSON(json: any): TimelinePromptCallback;
28
+ export declare function TimelinePromptCallbackFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelinePromptCallback;
29
+ export declare function TimelinePromptCallbackToJSON(json: any): TimelinePromptCallback;
30
+ export declare function TimelinePromptCallbackToJSONTyped(value?: TimelinePromptCallback | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Twitter OpenAPI
6
+ * Twitter OpenAPI(Swagger) specification
7
+ *
8
+ * The version of the OpenAPI document: 0.0.1
9
+ * Contact: yuki@yuki0311.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfTimelinePromptCallback = instanceOfTimelinePromptCallback;
17
+ exports.TimelinePromptCallbackFromJSON = TimelinePromptCallbackFromJSON;
18
+ exports.TimelinePromptCallbackFromJSONTyped = TimelinePromptCallbackFromJSONTyped;
19
+ exports.TimelinePromptCallbackToJSON = TimelinePromptCallbackToJSON;
20
+ exports.TimelinePromptCallbackToJSONTyped = TimelinePromptCallbackToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the TimelinePromptCallback interface.
23
+ */
24
+ function instanceOfTimelinePromptCallback(value) {
25
+ if (!('endpoint' in value) || value['endpoint'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function TimelinePromptCallbackFromJSON(json) {
30
+ return TimelinePromptCallbackFromJSONTyped(json, false);
31
+ }
32
+ function TimelinePromptCallbackFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'endpoint': json['endpoint'],
38
+ };
39
+ }
40
+ function TimelinePromptCallbackToJSON(json) {
41
+ return TimelinePromptCallbackToJSONTyped(json, false);
42
+ }
43
+ function TimelinePromptCallbackToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'endpoint': value['endpoint'],
49
+ };
50
+ }