Skip to content

Commit

Permalink
generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
valerierose committed Oct 29, 2024
1 parent 0f154fd commit 6c2d039
Show file tree
Hide file tree
Showing 41 changed files with 1,750 additions and 2,342 deletions.
12 changes: 1 addition & 11 deletions src/neynar-api/v2/openapi-farcaster/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,8 @@ models/cast-notification-type.ts
models/cast-param-type.ts
models/cast-response.ts
models/cast-viewer-context.ts
models/cast-with-interactions-and-conversations-any-of.ts
models/cast-with-interactions-and-conversations-ref-any-of.ts
models/cast-with-interactions-and-conversations-ref.ts
models/cast-with-interactions-and-conversations.ts
models/cast-with-interactions-any-of.ts
models/cast-with-interactions-reactions.ts
models/cast-with-interactions-replies.ts
models/cast-with-interactions.ts
Expand Down Expand Up @@ -95,8 +92,7 @@ models/embed-cast-deep.ts
models/embed-cast.ts
models/embed-deep.ts
models/embed-type.ts
models/embed-url-metadata-html-any-of-oembed.ts
models/embed-url-metadata-html-any-of.ts
models/embed-url-metadata-html-all-of-oembed.ts
models/embed-url-metadata-html.ts
models/embed-url-metadata-image.ts
models/embed-url-metadata-video-stream-inner.ts
Expand Down Expand Up @@ -170,13 +166,9 @@ models/notification-type.ts
models/notification.ts
models/notifications-response.ts
models/oembed-data.ts
models/oembed-link-data-any-of.ts
models/oembed-link-data.ts
models/oembed-photo-data-any-of.ts
models/oembed-photo-data.ts
models/oembed-rich-data-any-of.ts
models/oembed-rich-data.ts
models/oembed-video-data-any-of.ts
models/oembed-video-data.ts
models/og-object.ts
models/operation-response.ts
Expand Down Expand Up @@ -212,7 +204,6 @@ models/storage-allocation.ts
models/storage-allocations-response.ts
models/storage-object.ts
models/storage-usage-response.ts
models/subscribed-to-any-of.ts
models/subscribed-to-object.ts
models/subscribed-to-response.ts
models/subscribed-to.ts
Expand Down Expand Up @@ -260,7 +251,6 @@ models/webhook-delete-req-body.ts
models/webhook-list-response.ts
models/webhook-patch-req-body.ts
models/webhook-post-req-body.ts
models/webhook-put-req-body-any-of.ts
models/webhook-put-req-body.ts
models/webhook-response.ts
models/webhook-secret.ts
Expand Down
24 changes: 17 additions & 7 deletions src/neynar-api/v2/openapi-farcaster/apis/action-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@ export const ActionApiAxiosParamCreator = function (configuration?: Configuratio
/**
* Securely communicate and perform actions on behalf of users across different apps. It enables an app to send data or trigger actions in another app on behalf of a mutual user by signing messages using the user\'s Farcaster signer.
* @summary User actions across apps
* @param {string} apiKey API key required for authentication.
* @param {FarcasterActionReqBody} farcasterActionReqBody
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
publishFarcasterAction: async (farcasterActionReqBody: FarcasterActionReqBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
publishFarcasterAction: async (apiKey: string, farcasterActionReqBody: FarcasterActionReqBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'apiKey' is not null or undefined
assertParamExists('publishFarcasterAction', 'apiKey', apiKey)
// verify required parameter 'farcasterActionReqBody' is not null or undefined
assertParamExists('publishFarcasterAction', 'farcasterActionReqBody', farcasterActionReqBody)
const localVarPath = `/farcaster/action`;
Expand All @@ -54,6 +57,10 @@ export const ActionApiAxiosParamCreator = function (configuration?: Configuratio
// authentication ApiKeyAuth required
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)

if (apiKey != null) {
localVarHeaderParameter['api_key'] = String(apiKey);
}



localVarHeaderParameter['Content-Type'] = 'application/json';
Expand Down Expand Up @@ -81,12 +88,13 @@ export const ActionApiFp = function(configuration?: Configuration) {
/**
* Securely communicate and perform actions on behalf of users across different apps. It enables an app to send data or trigger actions in another app on behalf of a mutual user by signing messages using the user\'s Farcaster signer.
* @summary User actions across apps
* @param {string} apiKey API key required for authentication.
* @param {FarcasterActionReqBody} farcasterActionReqBody
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async publishFarcasterAction(farcasterActionReqBody: FarcasterActionReqBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.publishFarcasterAction(farcasterActionReqBody, options);
async publishFarcasterAction(apiKey: string, farcasterActionReqBody: FarcasterActionReqBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.publishFarcasterAction(apiKey, farcasterActionReqBody, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['ActionApi.publishFarcasterAction']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
Expand All @@ -104,12 +112,13 @@ export const ActionApiFactory = function (configuration?: Configuration, basePat
/**
* Securely communicate and perform actions on behalf of users across different apps. It enables an app to send data or trigger actions in another app on behalf of a mutual user by signing messages using the user\'s Farcaster signer.
* @summary User actions across apps
* @param {string} apiKey API key required for authentication.
* @param {FarcasterActionReqBody} farcasterActionReqBody
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
publishFarcasterAction(farcasterActionReqBody: FarcasterActionReqBody, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
return localVarFp.publishFarcasterAction(farcasterActionReqBody, options).then((request) => request(axios, basePath));
publishFarcasterAction(apiKey: string, farcasterActionReqBody: FarcasterActionReqBody, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
return localVarFp.publishFarcasterAction(apiKey, farcasterActionReqBody, options).then((request) => request(axios, basePath));
},
};
};
Expand All @@ -124,13 +133,14 @@ export class ActionApi extends BaseAPI {
/**
* Securely communicate and perform actions on behalf of users across different apps. It enables an app to send data or trigger actions in another app on behalf of a mutual user by signing messages using the user\'s Farcaster signer.
* @summary User actions across apps
* @param {string} apiKey API key required for authentication.
* @param {FarcasterActionReqBody} farcasterActionReqBody
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ActionApi
*/
public publishFarcasterAction(farcasterActionReqBody: FarcasterActionReqBody, options?: RawAxiosRequestConfig) {
return ActionApiFp(this.configuration).publishFarcasterAction(farcasterActionReqBody, options).then((request) => request(this.axios, this.basePath));
public publishFarcasterAction(apiKey: string, farcasterActionReqBody: FarcasterActionReqBody, options?: RawAxiosRequestConfig) {
return ActionApiFp(this.configuration).publishFarcasterAction(apiKey, farcasterActionReqBody, options).then((request) => request(this.axios, this.basePath));
}
}

Loading

0 comments on commit 6c2d039

Please sign in to comment.