@reclaimprotocol/client 0.1.29 → 0.1.31
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/README.md +255 -234
- package/lib/api.d.ts +2 -0
- package/lib/api.js +2 -0
- package/lib/client.js +2 -0
- package/lib/enckeys.d.ts +1 -1
- package/lib/enckeys.js +2 -2
- package/lib/encoding.d.ts +4 -0
- package/lib/encoding.js +10 -0
- package/lib/feature-flags.d.ts +9 -0
- package/lib/feature-flags.js +19 -0
- package/lib/index.d.ts +4 -4
- package/lib/index.js +4 -4
- package/lib/jwks.d.ts +8 -8
- package/lib/jwks.js +38 -17
- package/lib/launch/destination.d.ts +14 -0
- package/lib/launch/destination.js +89 -0
- package/lib/launch/device.d.ts +30 -0
- package/lib/launch/device.js +168 -0
- package/lib/launch/environment.d.ts +224 -0
- package/lib/launch/environment.js +98 -0
- package/lib/launch/errors.d.ts +20 -0
- package/lib/launch/errors.js +25 -0
- package/lib/launch/extension.d.ts +42 -0
- package/lib/launch/extension.js +72 -0
- package/lib/launch/flow.d.ts +82 -0
- package/lib/launch/flow.js +222 -0
- package/lib/launch/index.d.ts +16 -0
- package/lib/launch/index.js +12 -0
- package/lib/launch/mobile.d.ts +77 -0
- package/lib/launch/mobile.js +124 -0
- package/lib/launch/modal.d.ts +50 -0
- package/lib/launch/modal.js +258 -0
- package/lib/launch/options.d.ts +74 -0
- package/lib/launch/options.js +20 -0
- package/lib/launch/portal.d.ts +28 -0
- package/lib/launch/portal.js +68 -0
- package/lib/launch/qr.d.ts +5 -0
- package/lib/launch/qr.js +28 -0
- package/lib/launch/target.d.ts +46 -0
- package/lib/launch/target.js +128 -0
- package/lib/launch/vendor/qrcodegen.d.ts +134 -0
- package/lib/launch/vendor/qrcodegen.js +822 -0
- package/lib/legacy-proof.d.ts +2 -0
- package/lib/legacy-proof.js +37 -7
- package/lib/proof-hash.d.ts +5 -5
- package/lib/proof-hash.js +1 -1
- package/lib/proof-recipe.d.ts +3 -3
- package/lib/proof-recipe.js +1 -1
- package/lib/proof-types.d.ts +35 -8
- package/lib/reclaim.d.ts +81 -70
- package/lib/reclaim.js +79 -130
- package/lib/request-proof.d.ts +60 -0
- package/lib/request-proof.js +241 -0
- package/lib/result.d.ts +46 -38
- package/lib/result.js +160 -100
- package/lib/routes.gen.d.ts +76 -28
- package/lib/routes.gen.js +24 -11
- package/lib/tee-binding.d.ts +1 -1
- package/lib/types/openapi.d.ts +1 -0
- package/lib/types/openapi.gen.d.ts +1594 -488
- package/lib/types/openapi.gen.js +5 -0
- package/lib/verification-clients.d.ts +28 -14
- package/lib/verification-clients.js +31 -11
- package/lib/verify-attestor-tee.d.ts +19 -2
- package/lib/verify-attestor-tee.js +40 -4
- package/lib/verify-tee.d.ts +10 -1
- package/lib/verify-tee.js +34 -10
- package/package.json +5 -1
- package/src/api.ts +9 -0
- package/src/client.ts +2 -0
- package/src/enckeys.ts +2 -2
- package/src/encoding.ts +12 -0
- package/src/feature-flags.ts +39 -0
- package/src/index.ts +13 -14
- package/src/jwks.ts +52 -30
- package/src/launch/destination.ts +111 -0
- package/src/launch/device.ts +242 -0
- package/src/launch/environment.ts +337 -0
- package/src/launch/errors.ts +49 -0
- package/src/launch/extension.ts +124 -0
- package/src/launch/flow.ts +369 -0
- package/src/launch/index.ts +42 -0
- package/src/launch/mobile.ts +184 -0
- package/src/launch/modal.ts +378 -0
- package/src/launch/options.ts +99 -0
- package/src/launch/portal.ts +104 -0
- package/src/launch/qr.ts +37 -0
- package/src/launch/target.ts +150 -0
- package/src/launch/vendor/qrcodegen.ts +1034 -0
- package/src/proof-hash.ts +6 -6
- package/src/proof-recipe.ts +3 -3
- package/src/proof-types.ts +36 -8
- package/src/reclaim.ts +185 -218
- package/src/{legacy-proof.ts → request-proof.ts} +81 -36
- package/src/result.ts +238 -172
- package/src/routes.gen.ts +24 -11
- package/src/tee-binding.ts +1 -1
- package/src/types/openapi.gen.ts +1599 -488
- package/src/types/openapi.ts +3 -1
- package/src/verification-clients.ts +33 -19
- package/src/verify-attestor-tee.ts +66 -8
- package/src/verify-tee.ts +44 -13
- package/lib/api-client.d.ts +0 -31
- package/lib/api-client.js +0 -112
- package/lib/api-consts.d.ts +0 -4
- package/lib/api-consts.js +0 -4
- package/lib/api-errors.d.ts +0 -13
- package/lib/api-errors.js +0 -30
- package/lib/eip712.d.ts +0 -20
- package/lib/eip712.js +0 -108
package/src/routes.gen.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// AUTO-GENERATED by packages/app/scripts/mcp-tools-gen.ts
|
|
2
|
-
// from packages/app/openapi.yaml.
|
|
3
|
-
//
|
|
4
|
-
//
|
|
2
|
+
// from packages/app/openapi.yaml (spec v0.1.0, source sha256:9ba46b5cbd7c).
|
|
3
|
+
// The hash catches drift the version misses (a spec can change without a
|
|
4
|
+
// version bump) — do not remove it as "redundant" with the version.
|
|
5
|
+
// Run `npm run openapi:gen --workspace=packages/app` to regenerate. Do not edit by hand.
|
|
5
6
|
|
|
6
7
|
export const ROUTES = {
|
|
7
8
|
"AcceptOrgInvite": {"method":"post","path":"/orgs/{orgId}/invite"},
|
|
@@ -9,10 +10,11 @@ export const ROUTES = {
|
|
|
9
10
|
"AddOrgMember": {"method":"post","path":"/orgs/{orgId}/members"},
|
|
10
11
|
"AddProviderContributionComment": {"method":"post","path":"/providers/{providerId}/contributions/{campaignId}/comments"},
|
|
11
12
|
"AddStaffMember": {"method":"post","path":"/admin/staff"},
|
|
12
|
-
"
|
|
13
|
+
"AdminAnalytics": {"method":"get","path":"/admin/analytics"},
|
|
13
14
|
"AdminBillingPlans": {"method":"get","path":"/admin/billing/plans"},
|
|
14
15
|
"AdminBillingTransactions": {"method":"get","path":"/admin/billing/transactions"},
|
|
15
16
|
"AdminCallbackDlq": {"method":"get","path":"/admin/callback-dlq"},
|
|
17
|
+
"AdminFeatureFlags": {"method":"get","path":"/admin/feature-flags"},
|
|
16
18
|
"AdminGrantOrgCredit": {"method":"post","path":"/admin/orgs/{orgId}/credits"},
|
|
17
19
|
"AdminHome": {"method":"get","path":"/admin"},
|
|
18
20
|
"AdminOrgs": {"method":"get","path":"/admin/orgs"},
|
|
@@ -21,12 +23,16 @@ export const ROUTES = {
|
|
|
21
23
|
"AdminSessions": {"method":"get","path":"/admin/sessions"},
|
|
22
24
|
"AdminSetProviderFixWithAi": {"method":"put","path":"/admin/providers/{providerId}/fix-with-ai"},
|
|
23
25
|
"AdminSetUserOrgLimit": {"method":"put","path":"/users/{userId}/org-limit"},
|
|
26
|
+
"AdminSiteBanners": {"method":"get","path":"/admin/site-banners"},
|
|
24
27
|
"AdminSubscribeOrgPlan": {"method":"post","path":"/admin/orgs/{orgId}/billing/subscribe"},
|
|
25
28
|
"AdminThemes": {"method":"get","path":"/admin/themes"},
|
|
26
29
|
"AdminUsers": {"method":"get","path":"/admin/users"},
|
|
27
30
|
"AdminVerificationClients": {"method":"get","path":"/admin/verification-clients"},
|
|
28
31
|
"AdminVoidOrgCredit": {"method":"post","path":"/admin/orgs/{orgId}/credits/{grantId}/void"},
|
|
32
|
+
"AppleAppSiteAssociation": {"method":"get","path":"/.well-known/apple-app-site-association"},
|
|
33
|
+
"AssetLinksJson": {"method":"get","path":"/.well-known/assetlinks.json"},
|
|
29
34
|
"BindVerificationSessionTeeNonce": {"method":"put","path":"/verifications/sessions/{sessionId}/tee-nonce"},
|
|
35
|
+
"BootstrapVerificationClient": {"method":"get","path":"/verifications/sessions/{sessionId}/bootstrap"},
|
|
30
36
|
"CancelBillingSubscription": {"method":"delete","path":"/orgs/{orgId}/billing/subscription"},
|
|
31
37
|
"CancelPublicListingRequest": {"method":"post","path":"/providers/{providerId}/versions/{version}/cancel-review"},
|
|
32
38
|
"ChangeOrgPlan": {"method":"post","path":"/orgs/{orgId}/billing/change-plan"},
|
|
@@ -37,6 +43,8 @@ export const ROUTES = {
|
|
|
37
43
|
"CreateBillingPortalSession": {"method":"post","path":"/orgs/{orgId}/billing/portal"},
|
|
38
44
|
"CreateCallbackSubscription": {"method":"post","path":"/verifications/callback-subscriptions"},
|
|
39
45
|
"CreateCreditCheckoutSession": {"method":"post","path":"/orgs/{orgId}/billing/credits/checkout"},
|
|
46
|
+
"CreateFeatureFlag": {"method":"post","path":"/admin/feature-flags"},
|
|
47
|
+
"CreateFetchAuthorization": {"method":"post","path":"/fetch/authorizations"},
|
|
40
48
|
"CreateFixWithAiSession": {"method":"post","path":"/v/{sessionId}/fix-with-ai"},
|
|
41
49
|
"CreateManualTransaction": {"method":"post","path":"/admin/billing/transactions"},
|
|
42
50
|
"CreateOrg": {"method":"post","path":"/orgs"},
|
|
@@ -47,6 +55,7 @@ export const ROUTES = {
|
|
|
47
55
|
"CreateProviderVersion": {"method":"post","path":"/providers/{providerId}/versions"},
|
|
48
56
|
"CreatePublicContributionAttempt": {"method":"post","path":"/contribute/{publicId}"},
|
|
49
57
|
"CreateTheme": {"method":"post","path":"/orgs/{orgId}/themes"},
|
|
58
|
+
"CreateVerificationAttestorAuth": {"method":"post","path":"/verifications/sessions/{sessionId}/attestor-auth"},
|
|
50
59
|
"CreateVerificationClient": {"method":"post","path":"/admin/verification-clients"},
|
|
51
60
|
"CreateVerificationSession": {"method":"post","path":"/verifications/sessions"},
|
|
52
61
|
"DecideProviderVersionReview": {"method":"post","path":"/providers/{providerId}/versions/{version}/review-decision"},
|
|
@@ -59,6 +68,7 @@ export const ROUTES = {
|
|
|
59
68
|
"DeleteProvider": {"method":"delete","path":"/providers/{providerId}"},
|
|
60
69
|
"DeleteProviderVersion": {"method":"delete","path":"/providers/{providerId}/versions/{version}"},
|
|
61
70
|
"DeleteTheme": {"method":"delete","path":"/orgs/{orgId}/themes/{themeId}"},
|
|
71
|
+
"DiscoverAgentWizard": {"method":"post","path":"/discover/agent-wizard"},
|
|
62
72
|
"DiscoverDataPoints": {"method":"get","path":"/discover/data-points"},
|
|
63
73
|
"DiscoverResolve": {"method":"get","path":"/discover/resolve"},
|
|
64
74
|
"DiscoverTeachAgent": {"method":"get","path":"/discover/teach"},
|
|
@@ -76,6 +86,7 @@ export const ROUTES = {
|
|
|
76
86
|
"GetOrgKeypair": {"method":"get","path":"/orgs/{orgId}/keypair"},
|
|
77
87
|
"GetOrgSession": {"method":"get","path":"/orgs/{orgId}/sessions/{sessionId}"},
|
|
78
88
|
"GetOrgUsage": {"method":"get","path":"/orgs/{orgId}/billing/usage"},
|
|
89
|
+
"GetOrgVerificationAnalytics": {"method":"get","path":"/orgs/{orgId}/verification-analytics"},
|
|
79
90
|
"GetProvider": {"method":"get","path":"/providers/{providerId}"},
|
|
80
91
|
"GetProviderBySlug": {"method":"get","path":"/providers/{providerId}/{slug}"},
|
|
81
92
|
"GetProviderVersion": {"method":"get","path":"/providers/{providerId}/versions/{version}"},
|
|
@@ -89,19 +100,19 @@ export const ROUTES = {
|
|
|
89
100
|
"ImportDevtoolsProvider": {"method":"post","path":"/providers/import/devtools"},
|
|
90
101
|
"Index": {"method":"get","path":"/"},
|
|
91
102
|
"IssueOrgToken": {"method":"post","path":"/orgs/{orgId}/token"},
|
|
92
|
-
"IssueVerificationClientToken": {"method":"post","path":"/admin/verification-clients/{clientId}/tokens"},
|
|
93
103
|
"JwksJson": {"method":"get","path":"/.well-known/jwks.json"},
|
|
94
104
|
"ListBillingPlans": {"method":"get","path":"/billing/plans"},
|
|
95
105
|
"ListCallbackDlq": {"method":"get","path":"/verifications/callback-dlq"},
|
|
96
106
|
"ListCallbackSubscriptions": {"method":"get","path":"/verifications/callback-subscriptions"},
|
|
107
|
+
"ListFeatureFlagRevisions": {"method":"get","path":"/admin/feature-flags/{flagKey}/revisions"},
|
|
97
108
|
"ListOrgCallbackSubscriptions": {"method":"get","path":"/orgs/{orgId}/callback-subscriptions"},
|
|
98
109
|
"ListOrgs": {"method":"get","path":"/orgs"},
|
|
99
110
|
"ListOrgTokens": {"method":"get","path":"/orgs/{orgId}/token"},
|
|
100
111
|
"ListOrgTransactions": {"method":"get","path":"/orgs/{orgId}/billing/transactions"},
|
|
112
|
+
"ListOrgUsedProviders": {"method":"get","path":"/orgs/{orgId}/providers/used"},
|
|
101
113
|
"ListOrgVerificationSessions": {"method":"get","path":"/orgs/{orgId}/sessions"},
|
|
102
114
|
"ListProviderContributionCampaigns": {"method":"get","path":"/providers/{providerId}/contributions"},
|
|
103
115
|
"ListProviderVersions": {"method":"get","path":"/providers/{providerId}/versions"},
|
|
104
|
-
"ListSessionCallbackKeys": {"method":"get","path":"/verifications/sessions/{sessionId}/callback-keys"},
|
|
105
116
|
"ListStaffMembers": {"method":"get","path":"/admin/staff"},
|
|
106
117
|
"ListThemes": {"method":"get","path":"/orgs/{orgId}/themes"},
|
|
107
118
|
"ListVerificationDeliveries": {"method":"get","path":"/verifications/sessions/{sessionId}/deliveries"},
|
|
@@ -123,11 +134,11 @@ export const ROUTES = {
|
|
|
123
134
|
"ReportVerificationEvent": {"method":"post","path":"/verifications/sessions/{sessionId}/events"},
|
|
124
135
|
"RequestLoginOtp": {"method":"post","path":"/login/otp"},
|
|
125
136
|
"RequestPublicListing": {"method":"post","path":"/providers/{providerId}/request-public"},
|
|
137
|
+
"ResolveVerificationRuntimeConfig": {"method":"post","path":"/verifications/sessions/{sessionId}/runtime-config"},
|
|
126
138
|
"RetryCallbackDlq": {"method":"post","path":"/verifications/callback-dlq/{dlqId}/retry"},
|
|
139
|
+
"RetryOrgSessionCallback": {"method":"post","path":"/orgs/{orgId}/sessions/{sessionId}/retry-callback"},
|
|
127
140
|
"RetryVerificationCallback": {"method":"post","path":"/verifications/sessions/{sessionId}/retry-callback"},
|
|
128
141
|
"RevokeOrgToken": {"method":"delete","path":"/orgs/{orgId}/token/{tokenId}"},
|
|
129
|
-
"RevokeVerificationClientKey": {"method":"delete","path":"/admin/verification-clients/{clientId}/keys/{keyId}"},
|
|
130
|
-
"RevokeVerificationClientToken": {"method":"delete","path":"/admin/verification-clients/{clientId}/tokens/{tokenId}"},
|
|
131
142
|
"Robots": {"method":"get","path":"/robots.txt"},
|
|
132
143
|
"SearchOrgMembers": {"method":"get","path":"/orgs/{orgId}/members"},
|
|
133
144
|
"SetDefaultBillingPlan": {"method":"post","path":"/admin/billing/plans/{planId}/default"},
|
|
@@ -137,7 +148,7 @@ export const ROUTES = {
|
|
|
137
148
|
"SetProviderContributionCampaignStatus": {"method":"post","path":"/providers/{providerId}/contributions/{campaignId}"},
|
|
138
149
|
"SetupBillingPlan": {"method":"post","path":"/admin/billing/plans/setup"},
|
|
139
150
|
"SetupProviderCreate": {"method":"post","path":"/providers/setup"},
|
|
140
|
-
"
|
|
151
|
+
"SharePage": {"method":"get","path":"/share/{client}"},
|
|
141
152
|
"SiteBuild": {"method":"get","path":"/site/{domain}/build"},
|
|
142
153
|
"SiteBuildAlternative": {"method":"get","path":"/site/{domain}/alternative"},
|
|
143
154
|
"SiteBuildRepair": {"method":"get","path":"/site/{domain}/repair"},
|
|
@@ -145,21 +156,23 @@ export const ROUTES = {
|
|
|
145
156
|
"Sitemap": {"method":"get","path":"/sitemap.xml"},
|
|
146
157
|
"SitePage": {"method":"get","path":"/site/{domain}"},
|
|
147
158
|
"SitePanel": {"method":"get","path":"/site/{domain}/panel"},
|
|
148
|
-
"SiteTryAi": {"method":"post","path":"/site/{domain}/try-ai"},
|
|
149
159
|
"StartSocialLogin": {"method":"get","path":"/login/social/{provider}"},
|
|
150
160
|
"StripeWebhook": {"method":"post","path":"/billing/stripe/webhook"},
|
|
151
161
|
"SubmitConsent": {"method":"post","path":"/oauth/consent"},
|
|
152
162
|
"SubmitProviderVersionForReview": {"method":"post","path":"/providers/{providerId}/versions/{version}/review"},
|
|
153
163
|
"SubmitPublicContributionFeedback": {"method":"post","path":"/contribute/{publicId}/feedback"},
|
|
154
|
-
"
|
|
164
|
+
"SubmitVerificationClientResult": {"method":"post","path":"/verifications/sessions/{sessionId}/results"},
|
|
155
165
|
"TransferProvider": {"method":"post","path":"/providers/{providerId}/transfer"},
|
|
166
|
+
"UpdateAnnouncementBar": {"method":"put","path":"/admin/announcement-bar"},
|
|
156
167
|
"UpdateBillingPlan": {"method":"put","path":"/admin/billing/plans/{planId}"},
|
|
168
|
+
"UpdateFeatureFlag": {"method":"put","path":"/admin/feature-flags/{flagKey}"},
|
|
157
169
|
"UpdateOrg": {"method":"patch","path":"/orgs/{orgId}"},
|
|
158
170
|
"UpdateOrgIcon": {"method":"put","path":"/orgs/{orgId}/icon"},
|
|
159
171
|
"UpdateOrgMember": {"method":"patch","path":"/orgs/{orgId}/members/{memberId}"},
|
|
160
172
|
"UpdateProvider": {"method":"patch","path":"/providers/{providerId}"},
|
|
161
173
|
"UpdateProviderContributionCampaign": {"method":"patch","path":"/providers/{providerId}/contributions/{campaignId}"},
|
|
162
174
|
"UpdateProviderVersion": {"method":"patch","path":"/providers/{providerId}/versions/{version}"},
|
|
175
|
+
"UpdateScrollingBanner": {"method":"put","path":"/admin/scrolling-banner"},
|
|
163
176
|
"UpdateTheme": {"method":"patch","path":"/orgs/{orgId}/themes/{themeId}"},
|
|
164
177
|
"UpdateVerificationClient": {"method":"put","path":"/admin/verification-clients/{clientId}"},
|
|
165
178
|
"VerificationPage": {"method":"get","path":"/v/{sessionId}"},
|
package/src/tee-binding.ts
CHANGED
|
@@ -16,7 +16,7 @@ export const LEGACY_TEE_ATTESTATION_VERSION = 'v3'
|
|
|
16
16
|
/** Domain for the authenticated, Builder-specific nonce registration. */
|
|
17
17
|
export const BUILDER_TEE_BINDING_DOMAIN = 'RECLAIM_BUILDER_TEE_BINDING_V1'
|
|
18
18
|
|
|
19
|
-
/** The exact nonce context shape preserved into an emitted
|
|
19
|
+
/** The exact nonce context shape preserved into an emitted proof. */
|
|
20
20
|
export interface LegacyTeeNonceData {
|
|
21
21
|
applicationId: string
|
|
22
22
|
sessionId: string
|