Skip to content

Commit 052445a

Browse files
committed
Revert "feat(account): support multiple captcha providers during account creation (#580)"
This reverts commit 448700d.
1 parent 370d81c commit 052445a

File tree

4 files changed

+0
-39
lines changed

4 files changed

+0
-39
lines changed

packages/clients/src/api/account/v2/api.gen.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ import {
99
import {
1010
marshalCreateProjectRequest,
1111
marshalUpdateProjectRequest,
12-
unmarshalCaptchaProvider,
1312
unmarshalListProjectsResponse,
1413
unmarshalProject,
1514
} from './marshalling.gen'
1615
import type {
17-
CaptchaProvider,
1816
CreateProjectRequest,
1917
DeleteProjectRequest,
2018
GetProjectRequest,
@@ -151,18 +149,4 @@ export class API extends ParentAPI {
151149
},
152150
unmarshalProject,
153151
)
154-
155-
/**
156-
* Get a Captcha provider.
157-
*
158-
* @returns A Promise of CaptchaProvider
159-
*/
160-
getCaptchaProvider = () =>
161-
this.client.fetch<CaptchaProvider>(
162-
{
163-
method: 'GET',
164-
path: `/account/v2/captcha-provider`,
165-
},
166-
unmarshalCaptchaProvider,
167-
)
168152
}

packages/clients/src/api/account/v2/index.gen.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// If you have any remark or suggestion do not hesitate to open an issue.
33
export { API } from './api.gen'
44
export type {
5-
CaptchaProvider,
6-
CaptchaProviderName,
75
CreateProjectRequest,
86
DeleteProjectRequest,
97
GetProjectRequest,

packages/clients/src/api/account/v2/marshalling.gen.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
} from '../../../bridge'
88
import type { DefaultValues } from '../../../bridge'
99
import type {
10-
CaptchaProvider,
1110
CreateProjectRequest,
1211
ListProjectsResponse,
1312
Project,
@@ -31,16 +30,6 @@ export const unmarshalProject = (data: unknown) => {
3130
} as Project
3231
}
3332

34-
export const unmarshalCaptchaProvider = (data: unknown) => {
35-
if (!isJSONObject(data)) {
36-
throw new TypeError(
37-
`Unmarshalling the type 'CaptchaProvider' failed as data isn't a dictionary.`,
38-
)
39-
}
40-
41-
return { name: data.name } as CaptchaProvider
42-
}
43-
4433
export const unmarshalListProjectsResponse = (data: unknown) => {
4534
if (!isJSONObject(data)) {
4635
throw new TypeError(

packages/clients/src/api/account/v2/types.gen.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
11
// This file was automatically generated. DO NOT EDIT.
22
// If you have any remark or suggestion do not hesitate to open an issue.
33

4-
export type CaptchaProviderName =
5-
| 'unknown_name'
6-
| 'recaptcha_v2'
7-
| 'friendly_captcha'
8-
| 'hcaptcha'
9-
104
export type ListProjectsRequestOrderBy =
115
| 'created_at_asc'
126
| 'created_at_desc'
137
| 'name_asc'
148
| 'name_desc'
159

16-
export interface CaptchaProvider {
17-
name: CaptchaProviderName
18-
}
19-
2010
/** List projects response. */
2111
export interface ListProjectsResponse {
2212
/** Total number of Projects. */

0 commit comments

Comments
 (0)