@reclaimprotocol/client 0.1.26 → 0.1.27
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.
- package/lib/routes.gen.d.ts +4 -0
- package/lib/routes.gen.js +1 -0
- package/lib/types/openapi.gen.d.ts +82 -0
- package/package.json +1 -1
- package/src/routes.gen.ts +1 -0
- package/src/types/openapi.gen.ts +82 -0
package/lib/routes.gen.d.ts
CHANGED
|
@@ -299,6 +299,10 @@ export declare const ROUTES: {
|
|
|
299
299
|
readonly method: "get";
|
|
300
300
|
readonly path: "/verifications/sessions/{sessionId}";
|
|
301
301
|
};
|
|
302
|
+
readonly ImportDevtoolsProvider: {
|
|
303
|
+
readonly method: "post";
|
|
304
|
+
readonly path: "/providers/import/devtools";
|
|
305
|
+
};
|
|
302
306
|
readonly Index: {
|
|
303
307
|
readonly method: "get";
|
|
304
308
|
readonly path: "/";
|
package/lib/routes.gen.js
CHANGED
|
@@ -78,6 +78,7 @@ export const ROUTES = {
|
|
|
78
78
|
"GetVerificationRecipe": { "method": "get", "path": "/verifications/sessions/{sessionId}/recipe" },
|
|
79
79
|
"GetVerificationResult": { "method": "get", "path": "/verifications/sessions/{sessionId}/result" },
|
|
80
80
|
"GetVerificationSession": { "method": "get", "path": "/verifications/sessions/{sessionId}" },
|
|
81
|
+
"ImportDevtoolsProvider": { "method": "post", "path": "/providers/import/devtools" },
|
|
81
82
|
"Index": { "method": "get", "path": "/" },
|
|
82
83
|
"IssueOrgToken": { "method": "post", "path": "/orgs/{orgId}/token" },
|
|
83
84
|
"IssueVerificationClientToken": { "method": "post", "path": "/admin/verification-clients/{clientId}/tokens" },
|
|
@@ -85,6 +85,38 @@ export interface paths {
|
|
|
85
85
|
patch?: never;
|
|
86
86
|
trace?: never;
|
|
87
87
|
};
|
|
88
|
+
"/providers/import/devtools": {
|
|
89
|
+
parameters: {
|
|
90
|
+
query?: never;
|
|
91
|
+
header?: never;
|
|
92
|
+
path?: never;
|
|
93
|
+
cookie?: never;
|
|
94
|
+
};
|
|
95
|
+
get?: never;
|
|
96
|
+
put?: never;
|
|
97
|
+
/**
|
|
98
|
+
* Import a provider from devtools
|
|
99
|
+
* @description Import the latest version of a public provider from the legacy devtools
|
|
100
|
+
* service. Use this when moving an existing provider to Builder instead
|
|
101
|
+
* of recreating it.
|
|
102
|
+
*
|
|
103
|
+
* The import preserves the legacy provider UUID. The server reads the
|
|
104
|
+
* current configuration from
|
|
105
|
+
* `https://api.reclaimprotocol.org/api/providers/{providerId}` and
|
|
106
|
+
* translates it to the Builder schema.
|
|
107
|
+
*
|
|
108
|
+
* If the provider already exists in the seeded anonymous catalog, the
|
|
109
|
+
* import assigns that record to the target organization and adds the
|
|
110
|
+
* imported version idempotently. A provider owned by another Builder
|
|
111
|
+
* organization returns `409`.
|
|
112
|
+
*/
|
|
113
|
+
post: operations["ImportDevtoolsProvider"];
|
|
114
|
+
delete?: never;
|
|
115
|
+
options?: never;
|
|
116
|
+
head?: never;
|
|
117
|
+
patch?: never;
|
|
118
|
+
trace?: never;
|
|
119
|
+
};
|
|
88
120
|
"/discover/websites": {
|
|
89
121
|
parameters: {
|
|
90
122
|
query?: never;
|
|
@@ -4257,6 +4289,12 @@ export interface components {
|
|
|
4257
4289
|
*/
|
|
4258
4290
|
iconUrl: string;
|
|
4259
4291
|
};
|
|
4292
|
+
ImportDevtoolsProviderRequest: {
|
|
4293
|
+
/** @description Organization that will own the imported provider. */
|
|
4294
|
+
orgId: components["schemas"]["OrgID"];
|
|
4295
|
+
/** @description Legacy devtools provider UUID to import unchanged. */
|
|
4296
|
+
providerId: components["schemas"]["ProviderID"];
|
|
4297
|
+
};
|
|
4260
4298
|
/** @description `title` is optional — when omitted the dashboard renders `seoSuggestions.title` (server-derived from the scrape result or `derive_brand_name(domain)`). */
|
|
4261
4299
|
CreateProviderRequest: {
|
|
4262
4300
|
/** @description uuid identifier of the organization that will own the provider. */
|
|
@@ -4885,6 +4923,50 @@ export interface operations {
|
|
|
4885
4923
|
default: components["responses"]["ProblemResponse"];
|
|
4886
4924
|
};
|
|
4887
4925
|
};
|
|
4926
|
+
ImportDevtoolsProvider: {
|
|
4927
|
+
parameters: {
|
|
4928
|
+
query?: never;
|
|
4929
|
+
header?: never;
|
|
4930
|
+
path?: never;
|
|
4931
|
+
cookie?: never;
|
|
4932
|
+
};
|
|
4933
|
+
requestBody: {
|
|
4934
|
+
content: {
|
|
4935
|
+
"application/json": components["schemas"]["ImportDevtoolsProviderRequest"];
|
|
4936
|
+
"application/x-www-form-urlencoded": components["schemas"]["ImportDevtoolsProviderRequest"];
|
|
4937
|
+
};
|
|
4938
|
+
};
|
|
4939
|
+
responses: {
|
|
4940
|
+
/** @description Imported */
|
|
4941
|
+
201: {
|
|
4942
|
+
headers: {
|
|
4943
|
+
[name: string]: unknown;
|
|
4944
|
+
};
|
|
4945
|
+
content: {
|
|
4946
|
+
"application/json": components["schemas"]["Provider"];
|
|
4947
|
+
};
|
|
4948
|
+
};
|
|
4949
|
+
/** @description The caller cannot edit the target organization. */
|
|
4950
|
+
403: {
|
|
4951
|
+
headers: {
|
|
4952
|
+
[name: string]: unknown;
|
|
4953
|
+
};
|
|
4954
|
+
content: {
|
|
4955
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
4956
|
+
};
|
|
4957
|
+
};
|
|
4958
|
+
/** @description The provider UUID belongs to another Builder organization. */
|
|
4959
|
+
409: {
|
|
4960
|
+
headers: {
|
|
4961
|
+
[name: string]: unknown;
|
|
4962
|
+
};
|
|
4963
|
+
content: {
|
|
4964
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
4965
|
+
};
|
|
4966
|
+
};
|
|
4967
|
+
default: components["responses"]["ProblemResponse"];
|
|
4968
|
+
};
|
|
4969
|
+
};
|
|
4888
4970
|
DiscoverWebsites: {
|
|
4889
4971
|
parameters: {
|
|
4890
4972
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reclaimprotocol/client",
|
|
3
3
|
"title": "Reclaim Client",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.27",
|
|
5
5
|
"description": "Typed SDK/HTTP client SDK for the Reclaim Protocol — the programmatic way to use Reclaim Protocol to verify **data points** about your users (a follower count, an account balance, an order). Can be directly integrated by apps to request verification for their users using Reclaim Protocol and verify the results.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": false,
|
package/src/routes.gen.ts
CHANGED
|
@@ -79,6 +79,7 @@ export const ROUTES = {
|
|
|
79
79
|
"GetVerificationRecipe": {"method":"get","path":"/verifications/sessions/{sessionId}/recipe"},
|
|
80
80
|
"GetVerificationResult": {"method":"get","path":"/verifications/sessions/{sessionId}/result"},
|
|
81
81
|
"GetVerificationSession": {"method":"get","path":"/verifications/sessions/{sessionId}"},
|
|
82
|
+
"ImportDevtoolsProvider": {"method":"post","path":"/providers/import/devtools"},
|
|
82
83
|
"Index": {"method":"get","path":"/"},
|
|
83
84
|
"IssueOrgToken": {"method":"post","path":"/orgs/{orgId}/token"},
|
|
84
85
|
"IssueVerificationClientToken": {"method":"post","path":"/admin/verification-clients/{clientId}/tokens"},
|
package/src/types/openapi.gen.ts
CHANGED
|
@@ -86,6 +86,38 @@ export interface paths {
|
|
|
86
86
|
patch?: never;
|
|
87
87
|
trace?: never;
|
|
88
88
|
};
|
|
89
|
+
"/providers/import/devtools": {
|
|
90
|
+
parameters: {
|
|
91
|
+
query?: never;
|
|
92
|
+
header?: never;
|
|
93
|
+
path?: never;
|
|
94
|
+
cookie?: never;
|
|
95
|
+
};
|
|
96
|
+
get?: never;
|
|
97
|
+
put?: never;
|
|
98
|
+
/**
|
|
99
|
+
* Import a provider from devtools
|
|
100
|
+
* @description Import the latest version of a public provider from the legacy devtools
|
|
101
|
+
* service. Use this when moving an existing provider to Builder instead
|
|
102
|
+
* of recreating it.
|
|
103
|
+
*
|
|
104
|
+
* The import preserves the legacy provider UUID. The server reads the
|
|
105
|
+
* current configuration from
|
|
106
|
+
* `https://api.reclaimprotocol.org/api/providers/{providerId}` and
|
|
107
|
+
* translates it to the Builder schema.
|
|
108
|
+
*
|
|
109
|
+
* If the provider already exists in the seeded anonymous catalog, the
|
|
110
|
+
* import assigns that record to the target organization and adds the
|
|
111
|
+
* imported version idempotently. A provider owned by another Builder
|
|
112
|
+
* organization returns `409`.
|
|
113
|
+
*/
|
|
114
|
+
post: operations["ImportDevtoolsProvider"];
|
|
115
|
+
delete?: never;
|
|
116
|
+
options?: never;
|
|
117
|
+
head?: never;
|
|
118
|
+
patch?: never;
|
|
119
|
+
trace?: never;
|
|
120
|
+
};
|
|
89
121
|
"/discover/websites": {
|
|
90
122
|
parameters: {
|
|
91
123
|
query?: never;
|
|
@@ -4258,6 +4290,12 @@ export interface components {
|
|
|
4258
4290
|
*/
|
|
4259
4291
|
iconUrl: string;
|
|
4260
4292
|
};
|
|
4293
|
+
ImportDevtoolsProviderRequest: {
|
|
4294
|
+
/** @description Organization that will own the imported provider. */
|
|
4295
|
+
orgId: components["schemas"]["OrgID"];
|
|
4296
|
+
/** @description Legacy devtools provider UUID to import unchanged. */
|
|
4297
|
+
providerId: components["schemas"]["ProviderID"];
|
|
4298
|
+
};
|
|
4261
4299
|
/** @description `title` is optional — when omitted the dashboard renders `seoSuggestions.title` (server-derived from the scrape result or `derive_brand_name(domain)`). */
|
|
4262
4300
|
CreateProviderRequest: {
|
|
4263
4301
|
/** @description uuid identifier of the organization that will own the provider. */
|
|
@@ -4886,6 +4924,50 @@ export interface operations {
|
|
|
4886
4924
|
default: components["responses"]["ProblemResponse"];
|
|
4887
4925
|
};
|
|
4888
4926
|
};
|
|
4927
|
+
ImportDevtoolsProvider: {
|
|
4928
|
+
parameters: {
|
|
4929
|
+
query?: never;
|
|
4930
|
+
header?: never;
|
|
4931
|
+
path?: never;
|
|
4932
|
+
cookie?: never;
|
|
4933
|
+
};
|
|
4934
|
+
requestBody: {
|
|
4935
|
+
content: {
|
|
4936
|
+
"application/json": components["schemas"]["ImportDevtoolsProviderRequest"];
|
|
4937
|
+
"application/x-www-form-urlencoded": components["schemas"]["ImportDevtoolsProviderRequest"];
|
|
4938
|
+
};
|
|
4939
|
+
};
|
|
4940
|
+
responses: {
|
|
4941
|
+
/** @description Imported */
|
|
4942
|
+
201: {
|
|
4943
|
+
headers: {
|
|
4944
|
+
[name: string]: unknown;
|
|
4945
|
+
};
|
|
4946
|
+
content: {
|
|
4947
|
+
"application/json": components["schemas"]["Provider"];
|
|
4948
|
+
};
|
|
4949
|
+
};
|
|
4950
|
+
/** @description The caller cannot edit the target organization. */
|
|
4951
|
+
403: {
|
|
4952
|
+
headers: {
|
|
4953
|
+
[name: string]: unknown;
|
|
4954
|
+
};
|
|
4955
|
+
content: {
|
|
4956
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
4957
|
+
};
|
|
4958
|
+
};
|
|
4959
|
+
/** @description The provider UUID belongs to another Builder organization. */
|
|
4960
|
+
409: {
|
|
4961
|
+
headers: {
|
|
4962
|
+
[name: string]: unknown;
|
|
4963
|
+
};
|
|
4964
|
+
content: {
|
|
4965
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
4966
|
+
};
|
|
4967
|
+
};
|
|
4968
|
+
default: components["responses"]["ProblemResponse"];
|
|
4969
|
+
};
|
|
4970
|
+
};
|
|
4889
4971
|
DiscoverWebsites: {
|
|
4890
4972
|
parameters: {
|
|
4891
4973
|
query?: {
|