weft-sdk 0.6.1 → 0.7.0
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.
- checksums.yaml +4 -4
- data/docs/AccountDetails.md +8 -12
- data/docs/EnrolledResource.md +44 -0
- data/docs/Fetch403Response.md +49 -0
- data/docs/FetchBalanceSnapshot.md +5 -1
- data/docs/FetchResponse.md +1 -1
- data/docs/InsufficientScopeResponse.md +22 -0
- data/docs/MeApiKey.md +26 -0
- data/docs/MeApiKeyCreator.md +22 -0
- data/docs/ResourceEnrollmentRequest.md +24 -0
- data/docs/ResourceEnrollmentResponse.md +18 -0
- data/docs/ResourceStats.md +30 -0
- data/docs/ResourcesApi.md +72 -0
- data/docs/SearchFilters.md +1 -1
- data/docs/SearchResponse.md +1 -1
- data/docs/SearchResponseResultsInner.md +36 -0
- data/docs/Wallet.md +5 -1
- data/lib/weft/generated/api/account_api.rb +1 -1
- data/lib/weft/generated/api/api_keys_api.rb +1 -1
- data/lib/weft/generated/api/auth_api.rb +1 -1
- data/lib/weft/generated/api/balance_api.rb +1 -1
- data/lib/weft/generated/api/default_api.rb +1 -1
- data/lib/weft/generated/api/fetch_api.rb +1 -1
- data/lib/weft/generated/api/payments_api.rb +1 -1
- data/lib/weft/generated/api/resources_api.rb +90 -0
- data/lib/weft/generated/api/search_api.rb +1 -1
- data/lib/weft/generated/api_client.rb +1 -1
- data/lib/weft/generated/api_error.rb +1 -1
- data/lib/weft/generated/api_model_base.rb +1 -1
- data/lib/weft/generated/configuration.rb +1 -1
- data/lib/weft/generated/models/account_details.rb +65 -106
- data/lib/weft/generated/models/api_key.rb +1 -1
- data/lib/weft/generated/models/api_key_created.rb +1 -1
- data/lib/weft/generated/models/api_key_created_response.rb +1 -1
- data/lib/weft/generated/models/api_key_list_response.rb +1 -1
- data/lib/weft/generated/models/auth_response.rb +1 -1
- data/lib/weft/generated/models/auth_response_data.rb +1 -1
- data/lib/weft/generated/models/balance_response.rb +1 -1
- data/lib/weft/generated/models/confirm_request.rb +1 -1
- data/lib/weft/generated/models/create_api_key_request.rb +1 -1
- data/lib/weft/generated/models/enrolled_resource.rb +474 -0
- data/lib/weft/generated/models/error.rb +1 -1
- data/lib/weft/generated/models/error_response.rb +1 -1
- data/lib/weft/generated/models/fetch403_response.rb +104 -0
- data/lib/weft/generated/models/fetch_balance_snapshot.rb +58 -3
- data/lib/weft/generated/models/fetch_error_response.rb +4 -4
- data/lib/weft/generated/models/fetch_request.rb +1 -1
- data/lib/weft/generated/models/fetch_request_body.rb +1 -1
- data/lib/weft/generated/models/fetch_response.rb +3 -3
- data/lib/weft/generated/models/insufficient_scope_response.rb +242 -0
- data/lib/weft/generated/models/me_api_key.rb +217 -0
- data/lib/weft/generated/models/me_api_key_creator.rb +200 -0
- data/lib/weft/generated/models/me_response.rb +1 -1
- data/lib/weft/generated/models/merchant.rb +1 -1
- data/lib/weft/generated/models/message_response.rb +1 -1
- data/lib/weft/generated/models/message_response_data.rb +1 -1
- data/lib/weft/generated/models/pagination.rb +1 -1
- data/lib/weft/generated/models/password_reset_request.rb +1 -1
- data/lib/weft/generated/models/password_update_request.rb +1 -1
- data/lib/weft/generated/models/payment.rb +1 -1
- data/lib/weft/generated/models/payment_list_response.rb +1 -1
- data/lib/weft/generated/models/payment_response.rb +1 -1
- data/lib/weft/generated/models/promo_balance.rb +1 -1
- data/lib/weft/generated/models/resend_confirmation_request.rb +1 -1
- data/lib/weft/generated/models/resource_enrollment_request.rb +212 -0
- data/lib/weft/generated/models/resource_enrollment_response.rb +164 -0
- data/lib/weft/generated/models/resource_stats.rb +323 -0
- data/lib/weft/generated/models/search_agent_card.rb +1 -1
- data/lib/weft/generated/models/search_endpoints.rb +1 -1
- data/lib/weft/generated/models/search_error_response.rb +1 -1
- data/lib/weft/generated/models/search_filters.rb +4 -4
- data/lib/weft/generated/models/search_pricing.rb +1 -1
- data/lib/weft/generated/models/search_ranking.rb +1 -1
- data/lib/weft/generated/models/search_request.rb +1 -1
- data/lib/weft/generated/models/search_response.rb +3 -3
- data/lib/weft/generated/models/search_response_results_inner.rb +103 -0
- data/lib/weft/generated/models/search_result.rb +3 -3
- data/lib/weft/generated/models/search_skill.rb +1 -1
- data/lib/weft/generated/models/search_skill_endpoint.rb +1 -1
- data/lib/weft/generated/models/sign_in_request.rb +1 -1
- data/lib/weft/generated/models/sign_up_request.rb +1 -1
- data/lib/weft/generated/models/spending_policy.rb +1 -1
- data/lib/weft/generated/models/user.rb +1 -1
- data/lib/weft/generated/models/wallet.rb +57 -3
- data/lib/weft/generated/version.rb +2 -2
- data/lib/weft/sdk.rb +1 -1
- metadata +22 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The Weft API is the buyer-runtime surface that powers the `weft` CLI, the hosted MCP server (`weft.network/mcp`), and any third-party agent that wants to discover and pay for paid resources on Weft. v1 covers five buyer concerns: 1. Account onboarding (`/api/v1/auth/*`, `/api/v1/me`) 2. CLI authentication (`/api/v1/api_keys`) 3. Wallet visibility (`/api/v1/balance`) 4. Discovery (`/api/v1/search`) 5. Paid execution (`/api/v1/fetch`) 6. Purchase history (`/api/v1/payments`) Seller-side concerns (agent management, payout analytics, webhook delivery, the public storefront for `data_api` resources) live in the dashboard and are intentionally not documented here. They will be split out into a separate, dashboard-scoped spec when they need to be SDK-consumable. All errors share the envelope defined by `ErrorResponse`, except the buyer-runtime endpoints (`/search`, `/fetch`) which use bespoke envelopes carrying additional context — see `SearchErrorResponse` and `FetchErrorResponse`.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 0.
|
|
6
|
+
The version of the OpenAPI document: 0.7.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The Weft API is the buyer-runtime surface that powers the `weft` CLI, the hosted MCP server (`weft.network/mcp`), and any third-party agent that wants to discover and pay for paid resources on Weft. v1 covers five buyer concerns: 1. Account onboarding (`/api/v1/auth/*`, `/api/v1/me`) 2. CLI authentication (`/api/v1/api_keys`) 3. Wallet visibility (`/api/v1/balance`) 4. Discovery (`/api/v1/search`) 5. Paid execution (`/api/v1/fetch`) 6. Purchase history (`/api/v1/payments`) Seller-side concerns (agent management, payout analytics, webhook delivery, the public storefront for `data_api` resources) live in the dashboard and are intentionally not documented here. They will be split out into a separate, dashboard-scoped spec when they need to be SDK-consumable. All errors share the envelope defined by `ErrorResponse`, except the buyer-runtime endpoints (`/search`, `/fetch`) which use bespoke envelopes carrying additional context — see `SearchErrorResponse` and `FetchErrorResponse`.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 0.
|
|
6
|
+
The version of the OpenAPI document: 0.7.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The Weft API is the buyer-runtime surface that powers the `weft` CLI, the hosted MCP server (`weft.network/mcp`), and any third-party agent that wants to discover and pay for paid resources on Weft. v1 covers five buyer concerns: 1. Account onboarding (`/api/v1/auth/*`, `/api/v1/me`) 2. CLI authentication (`/api/v1/api_keys`) 3. Wallet visibility (`/api/v1/balance`) 4. Discovery (`/api/v1/search`) 5. Paid execution (`/api/v1/fetch`) 6. Purchase history (`/api/v1/payments`) Seller-side concerns (agent management, payout analytics, webhook delivery, the public storefront for `data_api` resources) live in the dashboard and are intentionally not documented here. They will be split out into a separate, dashboard-scoped spec when they need to be SDK-consumable. All errors share the envelope defined by `ErrorResponse`, except the buyer-runtime endpoints (`/search`, `/fetch`) which use bespoke envelopes carrying additional context — see `SearchErrorResponse` and `FetchErrorResponse`.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 0.
|
|
6
|
+
The version of the OpenAPI document: 0.7.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The Weft API is the buyer-runtime surface that powers the `weft` CLI, the hosted MCP server (`weft.network/mcp`), and any third-party agent that wants to discover and pay for paid resources on Weft. v1 covers five buyer concerns: 1. Account onboarding (`/api/v1/auth/*`, `/api/v1/me`) 2. CLI authentication (`/api/v1/api_keys`) 3. Wallet visibility (`/api/v1/balance`) 4. Discovery (`/api/v1/search`) 5. Paid execution (`/api/v1/fetch`) 6. Purchase history (`/api/v1/payments`) Seller-side concerns (agent management, payout analytics, webhook delivery, the public storefront for `data_api` resources) live in the dashboard and are intentionally not documented here. They will be split out into a separate, dashboard-scoped spec when they need to be SDK-consumable. All errors share the envelope defined by `ErrorResponse`, except the buyer-runtime endpoints (`/search`, `/fetch`) which use bespoke envelopes carrying additional context — see `SearchErrorResponse` and `FetchErrorResponse`.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 0.
|
|
6
|
+
The version of the OpenAPI document: 0.7.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The Weft API is the buyer-runtime surface that powers the `weft` CLI, the hosted MCP server (`weft.network/mcp`), and any third-party agent that wants to discover and pay for paid resources on Weft. v1 covers five buyer concerns: 1. Account onboarding (`/api/v1/auth/*`, `/api/v1/me`) 2. CLI authentication (`/api/v1/api_keys`) 3. Wallet visibility (`/api/v1/balance`) 4. Discovery (`/api/v1/search`) 5. Paid execution (`/api/v1/fetch`) 6. Purchase history (`/api/v1/payments`) Seller-side concerns (agent management, payout analytics, webhook delivery, the public storefront for `data_api` resources) live in the dashboard and are intentionally not documented here. They will be split out into a separate, dashboard-scoped spec when they need to be SDK-consumable. All errors share the envelope defined by `ErrorResponse`, except the buyer-runtime endpoints (`/search`, `/fetch`) which use bespoke envelopes carrying additional context — see `SearchErrorResponse` and `FetchErrorResponse`.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 0.
|
|
6
|
+
The version of the OpenAPI document: 0.7.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -14,53 +14,26 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Weft
|
|
17
|
+
# The Organization that owns the authenticated API key — the principal in API v1 (the key represents an Org, not a person). `api_key` carries audit info about the key itself, including the user who minted it (`created_by`, which may be `null` if that user has left the Org).
|
|
17
18
|
class AccountDetails < ApiModelBase
|
|
18
19
|
attr_accessor :id
|
|
19
20
|
|
|
20
|
-
attr_accessor :
|
|
21
|
+
attr_accessor :name
|
|
21
22
|
|
|
22
|
-
attr_accessor :
|
|
23
|
+
attr_accessor :slug
|
|
23
24
|
|
|
24
|
-
attr_accessor :
|
|
25
|
+
attr_accessor :kind
|
|
25
26
|
|
|
26
|
-
attr_accessor :
|
|
27
|
-
|
|
28
|
-
attr_accessor :public_slug
|
|
29
|
-
|
|
30
|
-
attr_accessor :created_at
|
|
31
|
-
|
|
32
|
-
class EnumAttributeValidator
|
|
33
|
-
attr_reader :datatype
|
|
34
|
-
attr_reader :allowable_values
|
|
35
|
-
|
|
36
|
-
def initialize(datatype, allowable_values)
|
|
37
|
-
@allowable_values = allowable_values.map do |value|
|
|
38
|
-
case datatype.to_s
|
|
39
|
-
when /Integer/i
|
|
40
|
-
value.to_i
|
|
41
|
-
when /Float/i
|
|
42
|
-
value.to_f
|
|
43
|
-
else
|
|
44
|
-
value
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
def valid?(value)
|
|
50
|
-
!value || allowable_values.include?(value)
|
|
51
|
-
end
|
|
52
|
-
end
|
|
27
|
+
attr_accessor :api_key
|
|
53
28
|
|
|
54
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
55
30
|
def self.attribute_map
|
|
56
31
|
{
|
|
57
32
|
:'id' => :'id',
|
|
58
|
-
:'
|
|
59
|
-
:'
|
|
60
|
-
:'
|
|
61
|
-
:'
|
|
62
|
-
:'public_slug' => :'public_slug',
|
|
63
|
-
:'created_at' => :'created_at'
|
|
33
|
+
:'name' => :'name',
|
|
34
|
+
:'slug' => :'slug',
|
|
35
|
+
:'kind' => :'kind',
|
|
36
|
+
:'api_key' => :'api_key'
|
|
64
37
|
}
|
|
65
38
|
end
|
|
66
39
|
|
|
@@ -78,12 +51,10 @@ module Weft
|
|
|
78
51
|
def self.openapi_types
|
|
79
52
|
{
|
|
80
53
|
:'id' => :'Integer',
|
|
81
|
-
:'
|
|
82
|
-
:'
|
|
83
|
-
:'
|
|
84
|
-
:'
|
|
85
|
-
:'public_slug' => :'String',
|
|
86
|
-
:'created_at' => :'Time'
|
|
54
|
+
:'name' => :'String',
|
|
55
|
+
:'slug' => :'String',
|
|
56
|
+
:'kind' => :'String',
|
|
57
|
+
:'api_key' => :'MeApiKey'
|
|
87
58
|
}
|
|
88
59
|
end
|
|
89
60
|
|
|
@@ -115,36 +86,28 @@ module Weft
|
|
|
115
86
|
self.id = nil
|
|
116
87
|
end
|
|
117
88
|
|
|
118
|
-
if attributes.key?(:'
|
|
119
|
-
self.
|
|
89
|
+
if attributes.key?(:'name')
|
|
90
|
+
self.name = attributes[:'name']
|
|
120
91
|
else
|
|
121
|
-
self.
|
|
92
|
+
self.name = nil
|
|
122
93
|
end
|
|
123
94
|
|
|
124
|
-
if attributes.key?(:'
|
|
125
|
-
self.
|
|
95
|
+
if attributes.key?(:'slug')
|
|
96
|
+
self.slug = attributes[:'slug']
|
|
126
97
|
else
|
|
127
|
-
self.
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
if attributes.key?(:'display_name')
|
|
131
|
-
self.display_name = attributes[:'display_name']
|
|
98
|
+
self.slug = nil
|
|
132
99
|
end
|
|
133
100
|
|
|
134
|
-
if attributes.key?(:'
|
|
135
|
-
self.
|
|
101
|
+
if attributes.key?(:'kind')
|
|
102
|
+
self.kind = attributes[:'kind']
|
|
136
103
|
else
|
|
137
|
-
self.
|
|
104
|
+
self.kind = nil
|
|
138
105
|
end
|
|
139
106
|
|
|
140
|
-
if attributes.key?(:'
|
|
141
|
-
self.
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
if attributes.key?(:'created_at')
|
|
145
|
-
self.created_at = attributes[:'created_at']
|
|
107
|
+
if attributes.key?(:'api_key')
|
|
108
|
+
self.api_key = attributes[:'api_key']
|
|
146
109
|
else
|
|
147
|
-
self.
|
|
110
|
+
self.api_key = nil
|
|
148
111
|
end
|
|
149
112
|
end
|
|
150
113
|
|
|
@@ -157,20 +120,20 @@ module Weft
|
|
|
157
120
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
158
121
|
end
|
|
159
122
|
|
|
160
|
-
if @
|
|
161
|
-
invalid_properties.push('invalid value for "
|
|
123
|
+
if @name.nil?
|
|
124
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
162
125
|
end
|
|
163
126
|
|
|
164
|
-
if @
|
|
165
|
-
invalid_properties.push('invalid value for "
|
|
127
|
+
if @slug.nil?
|
|
128
|
+
invalid_properties.push('invalid value for "slug", slug cannot be nil.')
|
|
166
129
|
end
|
|
167
130
|
|
|
168
|
-
if @
|
|
169
|
-
invalid_properties.push('invalid value for "
|
|
131
|
+
if @kind.nil?
|
|
132
|
+
invalid_properties.push('invalid value for "kind", kind cannot be nil.')
|
|
170
133
|
end
|
|
171
134
|
|
|
172
|
-
if @
|
|
173
|
-
invalid_properties.push('invalid value for "
|
|
135
|
+
if @api_key.nil?
|
|
136
|
+
invalid_properties.push('invalid value for "api_key", api_key cannot be nil.')
|
|
174
137
|
end
|
|
175
138
|
|
|
176
139
|
invalid_properties
|
|
@@ -181,12 +144,10 @@ module Weft
|
|
|
181
144
|
def valid?
|
|
182
145
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
183
146
|
return false if @id.nil?
|
|
184
|
-
return false if @
|
|
185
|
-
return false if @
|
|
186
|
-
|
|
187
|
-
return false
|
|
188
|
-
return false if @public_profile.nil?
|
|
189
|
-
return false if @created_at.nil?
|
|
147
|
+
return false if @name.nil?
|
|
148
|
+
return false if @slug.nil?
|
|
149
|
+
return false if @kind.nil?
|
|
150
|
+
return false if @api_key.nil?
|
|
190
151
|
true
|
|
191
152
|
end
|
|
192
153
|
|
|
@@ -201,43 +162,43 @@ module Weft
|
|
|
201
162
|
end
|
|
202
163
|
|
|
203
164
|
# Custom attribute writer method with validation
|
|
204
|
-
# @param [Object]
|
|
205
|
-
def
|
|
206
|
-
if
|
|
207
|
-
fail ArgumentError, '
|
|
165
|
+
# @param [Object] name Value to be assigned
|
|
166
|
+
def name=(name)
|
|
167
|
+
if name.nil?
|
|
168
|
+
fail ArgumentError, 'name cannot be nil'
|
|
208
169
|
end
|
|
209
170
|
|
|
210
|
-
@
|
|
171
|
+
@name = name
|
|
211
172
|
end
|
|
212
173
|
|
|
213
|
-
# Custom attribute writer method
|
|
214
|
-
# @param [Object]
|
|
215
|
-
def
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
174
|
+
# Custom attribute writer method with validation
|
|
175
|
+
# @param [Object] slug Value to be assigned
|
|
176
|
+
def slug=(slug)
|
|
177
|
+
if slug.nil?
|
|
178
|
+
fail ArgumentError, 'slug cannot be nil'
|
|
219
179
|
end
|
|
220
|
-
|
|
180
|
+
|
|
181
|
+
@slug = slug
|
|
221
182
|
end
|
|
222
183
|
|
|
223
184
|
# Custom attribute writer method with validation
|
|
224
|
-
# @param [Object]
|
|
225
|
-
def
|
|
226
|
-
if
|
|
227
|
-
fail ArgumentError, '
|
|
185
|
+
# @param [Object] kind Value to be assigned
|
|
186
|
+
def kind=(kind)
|
|
187
|
+
if kind.nil?
|
|
188
|
+
fail ArgumentError, 'kind cannot be nil'
|
|
228
189
|
end
|
|
229
190
|
|
|
230
|
-
@
|
|
191
|
+
@kind = kind
|
|
231
192
|
end
|
|
232
193
|
|
|
233
194
|
# Custom attribute writer method with validation
|
|
234
|
-
# @param [Object]
|
|
235
|
-
def
|
|
236
|
-
if
|
|
237
|
-
fail ArgumentError, '
|
|
195
|
+
# @param [Object] api_key Value to be assigned
|
|
196
|
+
def api_key=(api_key)
|
|
197
|
+
if api_key.nil?
|
|
198
|
+
fail ArgumentError, 'api_key cannot be nil'
|
|
238
199
|
end
|
|
239
200
|
|
|
240
|
-
@
|
|
201
|
+
@api_key = api_key
|
|
241
202
|
end
|
|
242
203
|
|
|
243
204
|
# Checks equality by comparing each attribute.
|
|
@@ -246,12 +207,10 @@ module Weft
|
|
|
246
207
|
return true if self.equal?(o)
|
|
247
208
|
self.class == o.class &&
|
|
248
209
|
id == o.id &&
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
public_slug == o.public_slug &&
|
|
254
|
-
created_at == o.created_at
|
|
210
|
+
name == o.name &&
|
|
211
|
+
slug == o.slug &&
|
|
212
|
+
kind == o.kind &&
|
|
213
|
+
api_key == o.api_key
|
|
255
214
|
end
|
|
256
215
|
|
|
257
216
|
# @see the `==` method
|
|
@@ -263,7 +222,7 @@ module Weft
|
|
|
263
222
|
# Calculates hash code according to all attributes.
|
|
264
223
|
# @return [Integer] Hash code
|
|
265
224
|
def hash
|
|
266
|
-
[id,
|
|
225
|
+
[id, name, slug, kind, api_key].hash
|
|
267
226
|
end
|
|
268
227
|
|
|
269
228
|
# Builds the object from hash
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The Weft API is the buyer-runtime surface that powers the `weft` CLI, the hosted MCP server (`weft.network/mcp`), and any third-party agent that wants to discover and pay for paid resources on Weft. v1 covers five buyer concerns: 1. Account onboarding (`/api/v1/auth/*`, `/api/v1/me`) 2. CLI authentication (`/api/v1/api_keys`) 3. Wallet visibility (`/api/v1/balance`) 4. Discovery (`/api/v1/search`) 5. Paid execution (`/api/v1/fetch`) 6. Purchase history (`/api/v1/payments`) Seller-side concerns (agent management, payout analytics, webhook delivery, the public storefront for `data_api` resources) live in the dashboard and are intentionally not documented here. They will be split out into a separate, dashboard-scoped spec when they need to be SDK-consumable. All errors share the envelope defined by `ErrorResponse`, except the buyer-runtime endpoints (`/search`, `/fetch`) which use bespoke envelopes carrying additional context — see `SearchErrorResponse` and `FetchErrorResponse`.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 0.
|
|
6
|
+
The version of the OpenAPI document: 0.7.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The Weft API is the buyer-runtime surface that powers the `weft` CLI, the hosted MCP server (`weft.network/mcp`), and any third-party agent that wants to discover and pay for paid resources on Weft. v1 covers five buyer concerns: 1. Account onboarding (`/api/v1/auth/*`, `/api/v1/me`) 2. CLI authentication (`/api/v1/api_keys`) 3. Wallet visibility (`/api/v1/balance`) 4. Discovery (`/api/v1/search`) 5. Paid execution (`/api/v1/fetch`) 6. Purchase history (`/api/v1/payments`) Seller-side concerns (agent management, payout analytics, webhook delivery, the public storefront for `data_api` resources) live in the dashboard and are intentionally not documented here. They will be split out into a separate, dashboard-scoped spec when they need to be SDK-consumable. All errors share the envelope defined by `ErrorResponse`, except the buyer-runtime endpoints (`/search`, `/fetch`) which use bespoke envelopes carrying additional context — see `SearchErrorResponse` and `FetchErrorResponse`.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 0.
|
|
6
|
+
The version of the OpenAPI document: 0.7.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The Weft API is the buyer-runtime surface that powers the `weft` CLI, the hosted MCP server (`weft.network/mcp`), and any third-party agent that wants to discover and pay for paid resources on Weft. v1 covers five buyer concerns: 1. Account onboarding (`/api/v1/auth/*`, `/api/v1/me`) 2. CLI authentication (`/api/v1/api_keys`) 3. Wallet visibility (`/api/v1/balance`) 4. Discovery (`/api/v1/search`) 5. Paid execution (`/api/v1/fetch`) 6. Purchase history (`/api/v1/payments`) Seller-side concerns (agent management, payout analytics, webhook delivery, the public storefront for `data_api` resources) live in the dashboard and are intentionally not documented here. They will be split out into a separate, dashboard-scoped spec when they need to be SDK-consumable. All errors share the envelope defined by `ErrorResponse`, except the buyer-runtime endpoints (`/search`, `/fetch`) which use bespoke envelopes carrying additional context — see `SearchErrorResponse` and `FetchErrorResponse`.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 0.
|
|
6
|
+
The version of the OpenAPI document: 0.7.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The Weft API is the buyer-runtime surface that powers the `weft` CLI, the hosted MCP server (`weft.network/mcp`), and any third-party agent that wants to discover and pay for paid resources on Weft. v1 covers five buyer concerns: 1. Account onboarding (`/api/v1/auth/*`, `/api/v1/me`) 2. CLI authentication (`/api/v1/api_keys`) 3. Wallet visibility (`/api/v1/balance`) 4. Discovery (`/api/v1/search`) 5. Paid execution (`/api/v1/fetch`) 6. Purchase history (`/api/v1/payments`) Seller-side concerns (agent management, payout analytics, webhook delivery, the public storefront for `data_api` resources) live in the dashboard and are intentionally not documented here. They will be split out into a separate, dashboard-scoped spec when they need to be SDK-consumable. All errors share the envelope defined by `ErrorResponse`, except the buyer-runtime endpoints (`/search`, `/fetch`) which use bespoke envelopes carrying additional context — see `SearchErrorResponse` and `FetchErrorResponse`.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 0.
|
|
6
|
+
The version of the OpenAPI document: 0.7.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The Weft API is the buyer-runtime surface that powers the `weft` CLI, the hosted MCP server (`weft.network/mcp`), and any third-party agent that wants to discover and pay for paid resources on Weft. v1 covers five buyer concerns: 1. Account onboarding (`/api/v1/auth/*`, `/api/v1/me`) 2. CLI authentication (`/api/v1/api_keys`) 3. Wallet visibility (`/api/v1/balance`) 4. Discovery (`/api/v1/search`) 5. Paid execution (`/api/v1/fetch`) 6. Purchase history (`/api/v1/payments`) Seller-side concerns (agent management, payout analytics, webhook delivery, the public storefront for `data_api` resources) live in the dashboard and are intentionally not documented here. They will be split out into a separate, dashboard-scoped spec when they need to be SDK-consumable. All errors share the envelope defined by `ErrorResponse`, except the buyer-runtime endpoints (`/search`, `/fetch`) which use bespoke envelopes carrying additional context — see `SearchErrorResponse` and `FetchErrorResponse`.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 0.
|
|
6
|
+
The version of the OpenAPI document: 0.7.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The Weft API is the buyer-runtime surface that powers the `weft` CLI, the hosted MCP server (`weft.network/mcp`), and any third-party agent that wants to discover and pay for paid resources on Weft. v1 covers five buyer concerns: 1. Account onboarding (`/api/v1/auth/*`, `/api/v1/me`) 2. CLI authentication (`/api/v1/api_keys`) 3. Wallet visibility (`/api/v1/balance`) 4. Discovery (`/api/v1/search`) 5. Paid execution (`/api/v1/fetch`) 6. Purchase history (`/api/v1/payments`) Seller-side concerns (agent management, payout analytics, webhook delivery, the public storefront for `data_api` resources) live in the dashboard and are intentionally not documented here. They will be split out into a separate, dashboard-scoped spec when they need to be SDK-consumable. All errors share the envelope defined by `ErrorResponse`, except the buyer-runtime endpoints (`/search`, `/fetch`) which use bespoke envelopes carrying additional context — see `SearchErrorResponse` and `FetchErrorResponse`.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 0.
|
|
6
|
+
The version of the OpenAPI document: 0.7.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The Weft API is the buyer-runtime surface that powers the `weft` CLI, the hosted MCP server (`weft.network/mcp`), and any third-party agent that wants to discover and pay for paid resources on Weft. v1 covers five buyer concerns: 1. Account onboarding (`/api/v1/auth/*`, `/api/v1/me`) 2. CLI authentication (`/api/v1/api_keys`) 3. Wallet visibility (`/api/v1/balance`) 4. Discovery (`/api/v1/search`) 5. Paid execution (`/api/v1/fetch`) 6. Purchase history (`/api/v1/payments`) Seller-side concerns (agent management, payout analytics, webhook delivery, the public storefront for `data_api` resources) live in the dashboard and are intentionally not documented here. They will be split out into a separate, dashboard-scoped spec when they need to be SDK-consumable. All errors share the envelope defined by `ErrorResponse`, except the buyer-runtime endpoints (`/search`, `/fetch`) which use bespoke envelopes carrying additional context — see `SearchErrorResponse` and `FetchErrorResponse`.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 0.
|
|
6
|
+
The version of the OpenAPI document: 0.7.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The Weft API is the buyer-runtime surface that powers the `weft` CLI, the hosted MCP server (`weft.network/mcp`), and any third-party agent that wants to discover and pay for paid resources on Weft. v1 covers five buyer concerns: 1. Account onboarding (`/api/v1/auth/*`, `/api/v1/me`) 2. CLI authentication (`/api/v1/api_keys`) 3. Wallet visibility (`/api/v1/balance`) 4. Discovery (`/api/v1/search`) 5. Paid execution (`/api/v1/fetch`) 6. Purchase history (`/api/v1/payments`) Seller-side concerns (agent management, payout analytics, webhook delivery, the public storefront for `data_api` resources) live in the dashboard and are intentionally not documented here. They will be split out into a separate, dashboard-scoped spec when they need to be SDK-consumable. All errors share the envelope defined by `ErrorResponse`, except the buyer-runtime endpoints (`/search`, `/fetch`) which use bespoke envelopes carrying additional context — see `SearchErrorResponse` and `FetchErrorResponse`.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 0.
|
|
6
|
+
The version of the OpenAPI document: 0.7.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The Weft API is the buyer-runtime surface that powers the `weft` CLI, the hosted MCP server (`weft.network/mcp`), and any third-party agent that wants to discover and pay for paid resources on Weft. v1 covers five buyer concerns: 1. Account onboarding (`/api/v1/auth/*`, `/api/v1/me`) 2. CLI authentication (`/api/v1/api_keys`) 3. Wallet visibility (`/api/v1/balance`) 4. Discovery (`/api/v1/search`) 5. Paid execution (`/api/v1/fetch`) 6. Purchase history (`/api/v1/payments`) Seller-side concerns (agent management, payout analytics, webhook delivery, the public storefront for `data_api` resources) live in the dashboard and are intentionally not documented here. They will be split out into a separate, dashboard-scoped spec when they need to be SDK-consumable. All errors share the envelope defined by `ErrorResponse`, except the buyer-runtime endpoints (`/search`, `/fetch`) which use bespoke envelopes carrying additional context — see `SearchErrorResponse` and `FetchErrorResponse`.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 0.
|
|
6
|
+
The version of the OpenAPI document: 0.7.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.19.0
|