Skip to content

Commit

Permalink
Merge pull request #216 from neynarxyz/tdb/embedded-cast-channels
Browse files Browse the repository at this point in the history
Cast embed changes [NEYN-3312; NEYN-3541; NEYN-3525]
  • Loading branch information
tybook authored Oct 29, 2024
2 parents 44efe9d + 082ad6c commit 20e1793
Show file tree
Hide file tree
Showing 28 changed files with 705 additions and 892 deletions.
21 changes: 16 additions & 5 deletions src/neynar-api/v2/openapi-farcaster/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ models/bulk-casts-response.ts
models/bulk-follow-response.ts
models/bulk-users-response.ts
models/buy-storage-req-body.ts
models/cast-author.ts
models/cast-composer-actions-list-response-actions-inner-action.ts
models/cast-composer-actions-list-response-actions-inner.ts
models/cast-composer-actions-list-response.ts
models/cast-composer-type.ts
models/cast-conversation-sort-type.ts
models/cast-dehydrated.ts
models/cast-embedded-parent-author.ts
models/cast-embedded.ts
models/cast-id.ts
models/cast-notification-type.ts
models/cast-param-type.ts
models/cast-parent-author.ts
models/cast-response.ts
models/cast-viewer-context.ts
models/cast-with-interactions-all-of.ts
Expand Down Expand Up @@ -92,8 +92,13 @@ models/delete-cast-req-body.ts
models/delete-frame-response.ts
models/delete-neynar-frame-request.ts
models/developer-managed-signer.ts
models/embed-cast-deep.ts
models/embed-cast.ts
models/embed-deep.ts
models/embed-type.ts
models/embed-url-metadata-html-all-of-oembed.ts
models/embed-url-metadata-html-all-of.ts
models/embed-url-metadata-html.ts
models/embed-url-metadata-image.ts
models/embed-url-metadata-video-stream-inner.ts
models/embed-url-metadata-video.ts
Expand Down Expand Up @@ -143,10 +148,11 @@ models/hydrated-follower.ts
models/image-object.ts
models/index.ts
models/individual-hash-obj.ts
models/link-type-data-all-of.ts
models/link-type-data.ts
models/location-address.ts
models/location.ts
models/mark-notifications-as-seen-req-body.ts
models/music-song-object.ts
models/mute-list-response.ts
models/mute-list.ts
models/mute-record.ts
Expand All @@ -168,8 +174,11 @@ models/neynar-page-input.ts
models/notification-type.ts
models/notification.ts
models/notifications-response.ts
models/oembed-data.ts
models/og-object.ts
models/operation-response.ts
models/photo-type-data-all-of.ts
models/photo-type-data.ts
models/post-cast-req-body-embeds-cast-id-properties.ts
models/post-cast-req-body-embeds.ts
models/post-cast-req-body.ts
Expand All @@ -196,6 +205,8 @@ models/relevant-followers-response.ts
models/remove-channel-member-request.ts
models/remove-verification-req-body.ts
models/respond-channel-invite-request.ts
models/rich-type-data-all-of.ts
models/rich-type-data.ts
models/searched-user.ts
models/signed-key-request-sponsor.ts
models/signer.ts
Expand All @@ -221,8 +232,6 @@ models/subscription.ts
models/subscriptions-response.ts
models/subscriptions.ts
models/trending-channel-response.ts
models/twitter-image-object.ts
models/twitter-player-object.ts
models/update-user-req-body-location.ts
models/update-user-req-body.ts
models/user-dehydrated.ts
Expand All @@ -249,6 +258,8 @@ models/validated-frame-action.ts
models/verification-chain-id.ts
models/verification-type.ts
models/video-object.ts
models/video-type-data-all-of.ts
models/video-type-data.ts
models/webhook-delete-req-body.ts
models/webhook-list-response.ts
models/webhook-patch-req-body.ts
Expand Down
13 changes: 11 additions & 2 deletions src/neynar-api/v2/openapi-farcaster/models/cast-dehydrated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
*/


// May contain unused imports in some cases
// @ts-ignore
import { UserDehydrated } from './user-dehydrated';

/**
*
Expand All @@ -25,13 +28,19 @@ export interface CastDehydrated {
* @type {string}
* @memberof CastDehydrated
*/
'hash': string;
'object': CastDehydratedObjectEnum;
/**
*
* @type {string}
* @memberof CastDehydrated
*/
'object': CastDehydratedObjectEnum;
'hash': string;
/**
*
* @type {UserDehydrated}
* @memberof CastDehydrated
*/
'author'?: UserDehydrated;
}

export const CastDehydratedObjectEnum = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
/**
*
* @export
* @interface CastParentAuthor
* @interface CastEmbeddedParentAuthor
*/
export interface CastParentAuthor {
export interface CastEmbeddedParentAuthor {
/**
* The unique identifier of a farcaster user (unsigned integer)
* @type {number}
* @memberof CastParentAuthor
* @memberof CastEmbeddedParentAuthor
*/
'fid': number | null;
}
Expand Down
107 changes: 107 additions & 0 deletions src/neynar-api/v2/openapi-farcaster/models/cast-embedded.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
/* tslint:disable */
/* eslint-disable */
/**
* Farcaster API V2
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


// May contain unused imports in some cases
// @ts-ignore
import { CastEmbeddedParentAuthor } from './cast-embedded-parent-author';
// May contain unused imports in some cases
// @ts-ignore
import { CastNotificationType } from './cast-notification-type';
// May contain unused imports in some cases
// @ts-ignore
import { DehydratedChannel } from './dehydrated-channel';
// May contain unused imports in some cases
// @ts-ignore
import { EmbedDeep } from './embed-deep';
// May contain unused imports in some cases
// @ts-ignore
import { UserDehydrated } from './user-dehydrated';

/**
*
* @export
* @interface CastEmbedded
*/
export interface CastEmbedded {
/**
*
* @type {string}
* @memberof CastEmbedded
*/
'hash': string;
/**
*
* @type {string}
* @memberof CastEmbedded
*/
'parent_hash': string | null;
/**
*
* @type {string}
* @memberof CastEmbedded
*/
'parent_url': string | null;
/**
*
* @type {string}
* @memberof CastEmbedded
*/
'root_parent_url': string | null;
/**
*
* @type {CastEmbeddedParentAuthor}
* @memberof CastEmbedded
*/
'parent_author': CastEmbeddedParentAuthor;
/**
*
* @type {UserDehydrated}
* @memberof CastEmbedded
*/
'author': UserDehydrated;
/**
*
* @type {string}
* @memberof CastEmbedded
*/
'text': string;
/**
*
* @type {string}
* @memberof CastEmbedded
*/
'timestamp': string;
/**
*
* @type {CastNotificationType}
* @memberof CastEmbedded
*/
'type': CastNotificationType;
/**
*
* @type {Array<EmbedDeep>}
* @memberof CastEmbedded
*/
'embeds': Array<EmbedDeep>;
/**
*
* @type {DehydratedChannel}
* @memberof CastEmbedded
*/
'channel': DehydratedChannel | null;
}



Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,12 @@

// May contain unused imports in some cases
// @ts-ignore
import { CastAuthor } from './cast-author';
import { CastEmbeddedParentAuthor } from './cast-embedded-parent-author';
// May contain unused imports in some cases
// @ts-ignore
import { CastNotificationType } from './cast-notification-type';
// May contain unused imports in some cases
// @ts-ignore
import { CastParentAuthor } from './cast-parent-author';
// May contain unused imports in some cases
// @ts-ignore
import { CastViewerContext } from './cast-viewer-context';
// May contain unused imports in some cases
// @ts-ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,12 @@

// May contain unused imports in some cases
// @ts-ignore
import { CastAuthor } from './cast-author';
import { CastEmbeddedParentAuthor } from './cast-embedded-parent-author';
// May contain unused imports in some cases
// @ts-ignore
import { CastNotificationType } from './cast-notification-type';
// May contain unused imports in some cases
// @ts-ignore
import { CastParentAuthor } from './cast-parent-author';
// May contain unused imports in some cases
// @ts-ignore
import { CastViewerContext } from './cast-viewer-context';
// May contain unused imports in some cases
// @ts-ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,12 @@
import { Cast } from './cast';
// May contain unused imports in some cases
// @ts-ignore
import { CastAuthor } from './cast-author';
import { CastEmbeddedParentAuthor } from './cast-embedded-parent-author';
// May contain unused imports in some cases
// @ts-ignore
import { CastNotificationType } from './cast-notification-type';
// May contain unused imports in some cases
// @ts-ignore
import { CastParentAuthor } from './cast-parent-author';
// May contain unused imports in some cases
// @ts-ignore
import { CastViewerContext } from './cast-viewer-context';
// May contain unused imports in some cases
// @ts-ignore
Expand Down
14 changes: 7 additions & 7 deletions src/neynar-api/v2/openapi-farcaster/models/cast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@

// May contain unused imports in some cases
// @ts-ignore
import { CastAuthor } from './cast-author';
import { CastEmbeddedParentAuthor } from './cast-embedded-parent-author';
// May contain unused imports in some cases
// @ts-ignore
import { CastNotificationType } from './cast-notification-type';
// May contain unused imports in some cases
// @ts-ignore
import { CastParentAuthor } from './cast-parent-author';
import { Embed } from './embed';
// May contain unused imports in some cases
// @ts-ignore
import { Embed } from './embed';
import { User } from './user';

/**
*
Expand Down Expand Up @@ -58,16 +58,16 @@ export interface Cast {
'root_parent_url': string | null;
/**
*
* @type {CastParentAuthor}
* @type {CastEmbeddedParentAuthor}
* @memberof Cast
*/
'parent_author': CastParentAuthor;
'parent_author': CastEmbeddedParentAuthor;
/**
*
* @type {CastAuthor}
* @type {User}
* @memberof Cast
*/
'author': CastAuthor;
'author': User;
/**
*
* @type {string}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,36 +13,30 @@
*/


// May contain unused imports in some cases
// @ts-ignore
import { CastDehydrated } from './cast-dehydrated';
// May contain unused imports in some cases
// @ts-ignore
import { CastId } from './cast-id';

/**
*
* @export
* @interface TwitterImageObject
* @interface EmbedCastDeep
*/
export interface TwitterImageObject {
export interface EmbedCastDeep {
/**
*
* @type {string}
* @memberof TwitterImageObject
* @type {CastId}
* @memberof EmbedCastDeep
*/
'alt'?: string;
'cast_id'?: CastId;
/**
*
* @type {string}
* @memberof TwitterImageObject
* @type {CastDehydrated}
* @memberof EmbedCastDeep
*/
'height'?: string;
/**
*
* @type {string}
* @memberof TwitterImageObject
*/
'url': string;
/**
*
* @type {string}
* @memberof TwitterImageObject
*/
'width'?: string;
'cast': CastDehydrated;
}

Loading

0 comments on commit 20e1793

Please sign in to comment.