diff --git a/src/apis/admin.ts b/src/apis/admin.ts index 1b05aa7..6a74681 100644 --- a/src/apis/admin.ts +++ b/src/apis/admin.ts @@ -376,6 +376,26 @@ export class Invites extends ApiResource { ); return response; } + + resend( + _body: UserInviteGetParams, + params?: ApiClientInterface, + opts?: RequestOptions + ): APIPromise { + const body = _body; + const inviteId = body.inviteId; + if (params) { + this.client.customHeaders = { + ...this.client.customHeaders, + ...createHeaders({ ...params }), + }; + } + + const response = this.post(`/admin/users/invites/${inviteId}/resend`, { + ...opts, + }); + return response; + } } export class Workspaces extends ApiResource {