weft-sdk 0.2.1

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.
Files changed (81) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +9 -0
  3. data/docs/APIKeysApi.md +208 -0
  4. data/docs/AccountApi.md +72 -0
  5. data/docs/AccountDetails.md +30 -0
  6. data/docs/Agent.md +38 -0
  7. data/docs/AgentListResponse.md +20 -0
  8. data/docs/AgentResponse.md +18 -0
  9. data/docs/AgentStats.md +30 -0
  10. data/docs/AgentsApi.md +147 -0
  11. data/docs/ApiKey.md +28 -0
  12. data/docs/ApiKeyCreated.md +26 -0
  13. data/docs/ApiKeyCreatedResponse.md +18 -0
  14. data/docs/ApiKeyListResponse.md +18 -0
  15. data/docs/AuthApi.md +385 -0
  16. data/docs/AuthResponse.md +18 -0
  17. data/docs/AuthResponseData.md +22 -0
  18. data/docs/ConfirmRequest.md +18 -0
  19. data/docs/CreateApiKeyRequest.md +18 -0
  20. data/docs/DefaultApi.md +67 -0
  21. data/docs/Error.md +24 -0
  22. data/docs/ErrorResponse.md +18 -0
  23. data/docs/MeResponse.md +18 -0
  24. data/docs/MessageResponse.md +18 -0
  25. data/docs/MessageResponseData.md +18 -0
  26. data/docs/Pagination.md +24 -0
  27. data/docs/PasswordResetRequest.md +18 -0
  28. data/docs/PasswordUpdateRequest.md +22 -0
  29. data/docs/Payment.md +44 -0
  30. data/docs/PaymentListResponse.md +20 -0
  31. data/docs/PaymentResponse.md +18 -0
  32. data/docs/PaymentsApi.md +147 -0
  33. data/docs/ResendConfirmationRequest.md +18 -0
  34. data/docs/SignInRequest.md +20 -0
  35. data/docs/SignUpRequest.md +22 -0
  36. data/docs/User.md +22 -0
  37. data/lib/weft/facilitator/client.rb +89 -0
  38. data/lib/weft/facilitator/fee.rb +47 -0
  39. data/lib/weft/facilitator/middleware.rb +190 -0
  40. data/lib/weft/generated/api/account_api.rb +77 -0
  41. data/lib/weft/generated/api/agents_api.rb +148 -0
  42. data/lib/weft/generated/api/api_keys_api.rb +204 -0
  43. data/lib/weft/generated/api/auth_api.rb +418 -0
  44. data/lib/weft/generated/api/default_api.rb +77 -0
  45. data/lib/weft/generated/api/payments_api.rb +148 -0
  46. data/lib/weft/generated/api_client.rb +397 -0
  47. data/lib/weft/generated/api_error.rb +58 -0
  48. data/lib/weft/generated/api_model_base.rb +88 -0
  49. data/lib/weft/generated/configuration.rb +317 -0
  50. data/lib/weft/generated/models/account_details.rb +310 -0
  51. data/lib/weft/generated/models/agent.rb +417 -0
  52. data/lib/weft/generated/models/agent_list_response.rb +192 -0
  53. data/lib/weft/generated/models/agent_response.rb +164 -0
  54. data/lib/weft/generated/models/agent_stats.rb +201 -0
  55. data/lib/weft/generated/models/api_key.rb +244 -0
  56. data/lib/weft/generated/models/api_key_created.rb +252 -0
  57. data/lib/weft/generated/models/api_key_created_response.rb +164 -0
  58. data/lib/weft/generated/models/api_key_list_response.rb +166 -0
  59. data/lib/weft/generated/models/auth_response.rb +164 -0
  60. data/lib/weft/generated/models/auth_response_data.rb +199 -0
  61. data/lib/weft/generated/models/confirm_request.rb +164 -0
  62. data/lib/weft/generated/models/create_api_key_request.rb +148 -0
  63. data/lib/weft/generated/models/error.rb +208 -0
  64. data/lib/weft/generated/models/error_response.rb +164 -0
  65. data/lib/weft/generated/models/me_response.rb +164 -0
  66. data/lib/weft/generated/models/message_response.rb +164 -0
  67. data/lib/weft/generated/models/message_response_data.rb +164 -0
  68. data/lib/weft/generated/models/pagination.rb +242 -0
  69. data/lib/weft/generated/models/password_reset_request.rb +164 -0
  70. data/lib/weft/generated/models/password_update_request.rb +216 -0
  71. data/lib/weft/generated/models/payment.rb +437 -0
  72. data/lib/weft/generated/models/payment_list_response.rb +192 -0
  73. data/lib/weft/generated/models/payment_response.rb +164 -0
  74. data/lib/weft/generated/models/resend_confirmation_request.rb +164 -0
  75. data/lib/weft/generated/models/sign_in_request.rb +190 -0
  76. data/lib/weft/generated/models/sign_up_request.rb +216 -0
  77. data/lib/weft/generated/models/user.rb +199 -0
  78. data/lib/weft/generated/version.rb +15 -0
  79. data/lib/weft/generated.rb +4 -0
  80. data/lib/weft/sdk.rb +10 -0
  81. metadata +123 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a198395d1fd44f4cdc8d7d67013ade4089b917ff2cffb35a325a32bc198a665f
4
+ data.tar.gz: 3f30ba3ed9cfeaf7fab114bb3a5a285db09fd0e64c93df3536f59d2f4139ecda
5
+ SHA512:
6
+ metadata.gz: 4cdb749f249613b5db81ac36936f48a208c723ce94f8be02c0dac0aa56851ab8a6246003155c81b23eb31e556c2601c552facc690c03f993b69b40ec8df68e26
7
+ data.tar.gz: ffc85aff249ed431f185c2e8293b365dd0fd62b1993b39af87113d8d5cda232909902aaee2069eb1e85d30cb868927898a5a048ac33bdc66d5603a51955a3e14
data/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # weft-sdk (Ruby)
2
+
3
+ Unified Weft SDK for the Weft API and x402 Facilitator.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ gem install weft-sdk
9
+ ```
@@ -0,0 +1,208 @@
1
+ # Weft::APIKeysApi
2
+
3
+ All URIs are relative to *https://api.weftlabs.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_api_key**](APIKeysApi.md#create_api_key) | **POST** /api/v1/api_keys | Create an API key |
8
+ | [**list_api_keys**](APIKeysApi.md#list_api_keys) | **GET** /api/v1/api_keys | List API keys |
9
+ | [**revoke_api_key**](APIKeysApi.md#revoke_api_key) | **DELETE** /api/v1/api_keys/{id} | Revoke an API key |
10
+
11
+
12
+ ## create_api_key
13
+
14
+ > <ApiKeyCreatedResponse> create_api_key(create_api_key_request)
15
+
16
+ Create an API key
17
+
18
+ ### Examples
19
+
20
+ ```ruby
21
+ require 'time'
22
+ require 'weft-sdk'
23
+ # setup authorization
24
+ Weft.configure do |config|
25
+ # Configure Bearer authorization (APIKey): bearerAuth
26
+ config.access_token = 'YOUR_BEARER_TOKEN'
27
+ end
28
+
29
+ api_instance = Weft::APIKeysApi.new
30
+ create_api_key_request = Weft::CreateApiKeyRequest.new # CreateApiKeyRequest |
31
+
32
+ begin
33
+ # Create an API key
34
+ result = api_instance.create_api_key(create_api_key_request)
35
+ p result
36
+ rescue Weft::ApiError => e
37
+ puts "Error when calling APIKeysApi->create_api_key: #{e}"
38
+ end
39
+ ```
40
+
41
+ #### Using the create_api_key_with_http_info variant
42
+
43
+ This returns an Array which contains the response data, status code and headers.
44
+
45
+ > <Array(<ApiKeyCreatedResponse>, Integer, Hash)> create_api_key_with_http_info(create_api_key_request)
46
+
47
+ ```ruby
48
+ begin
49
+ # Create an API key
50
+ data, status_code, headers = api_instance.create_api_key_with_http_info(create_api_key_request)
51
+ p status_code # => 2xx
52
+ p headers # => { ... }
53
+ p data # => <ApiKeyCreatedResponse>
54
+ rescue Weft::ApiError => e
55
+ puts "Error when calling APIKeysApi->create_api_key_with_http_info: #{e}"
56
+ end
57
+ ```
58
+
59
+ ### Parameters
60
+
61
+ | Name | Type | Description | Notes |
62
+ | ---- | ---- | ----------- | ----- |
63
+ | **create_api_key_request** | [**CreateApiKeyRequest**](CreateApiKeyRequest.md) | | |
64
+
65
+ ### Return type
66
+
67
+ [**ApiKeyCreatedResponse**](ApiKeyCreatedResponse.md)
68
+
69
+ ### Authorization
70
+
71
+ [bearerAuth](../README.md#bearerAuth)
72
+
73
+ ### HTTP request headers
74
+
75
+ - **Content-Type**: application/json
76
+ - **Accept**: application/json
77
+
78
+
79
+ ## list_api_keys
80
+
81
+ > <ApiKeyListResponse> list_api_keys
82
+
83
+ List API keys
84
+
85
+ ### Examples
86
+
87
+ ```ruby
88
+ require 'time'
89
+ require 'weft-sdk'
90
+ # setup authorization
91
+ Weft.configure do |config|
92
+ # Configure Bearer authorization (APIKey): bearerAuth
93
+ config.access_token = 'YOUR_BEARER_TOKEN'
94
+ end
95
+
96
+ api_instance = Weft::APIKeysApi.new
97
+
98
+ begin
99
+ # List API keys
100
+ result = api_instance.list_api_keys
101
+ p result
102
+ rescue Weft::ApiError => e
103
+ puts "Error when calling APIKeysApi->list_api_keys: #{e}"
104
+ end
105
+ ```
106
+
107
+ #### Using the list_api_keys_with_http_info variant
108
+
109
+ This returns an Array which contains the response data, status code and headers.
110
+
111
+ > <Array(<ApiKeyListResponse>, Integer, Hash)> list_api_keys_with_http_info
112
+
113
+ ```ruby
114
+ begin
115
+ # List API keys
116
+ data, status_code, headers = api_instance.list_api_keys_with_http_info
117
+ p status_code # => 2xx
118
+ p headers # => { ... }
119
+ p data # => <ApiKeyListResponse>
120
+ rescue Weft::ApiError => e
121
+ puts "Error when calling APIKeysApi->list_api_keys_with_http_info: #{e}"
122
+ end
123
+ ```
124
+
125
+ ### Parameters
126
+
127
+ This endpoint does not need any parameter.
128
+
129
+ ### Return type
130
+
131
+ [**ApiKeyListResponse**](ApiKeyListResponse.md)
132
+
133
+ ### Authorization
134
+
135
+ [bearerAuth](../README.md#bearerAuth)
136
+
137
+ ### HTTP request headers
138
+
139
+ - **Content-Type**: Not defined
140
+ - **Accept**: application/json
141
+
142
+
143
+ ## revoke_api_key
144
+
145
+ > <MessageResponse> revoke_api_key(id)
146
+
147
+ Revoke an API key
148
+
149
+ ### Examples
150
+
151
+ ```ruby
152
+ require 'time'
153
+ require 'weft-sdk'
154
+ # setup authorization
155
+ Weft.configure do |config|
156
+ # Configure Bearer authorization (APIKey): bearerAuth
157
+ config.access_token = 'YOUR_BEARER_TOKEN'
158
+ end
159
+
160
+ api_instance = Weft::APIKeysApi.new
161
+ id = 56 # Integer | API key ID
162
+
163
+ begin
164
+ # Revoke an API key
165
+ result = api_instance.revoke_api_key(id)
166
+ p result
167
+ rescue Weft::ApiError => e
168
+ puts "Error when calling APIKeysApi->revoke_api_key: #{e}"
169
+ end
170
+ ```
171
+
172
+ #### Using the revoke_api_key_with_http_info variant
173
+
174
+ This returns an Array which contains the response data, status code and headers.
175
+
176
+ > <Array(<MessageResponse>, Integer, Hash)> revoke_api_key_with_http_info(id)
177
+
178
+ ```ruby
179
+ begin
180
+ # Revoke an API key
181
+ data, status_code, headers = api_instance.revoke_api_key_with_http_info(id)
182
+ p status_code # => 2xx
183
+ p headers # => { ... }
184
+ p data # => <MessageResponse>
185
+ rescue Weft::ApiError => e
186
+ puts "Error when calling APIKeysApi->revoke_api_key_with_http_info: #{e}"
187
+ end
188
+ ```
189
+
190
+ ### Parameters
191
+
192
+ | Name | Type | Description | Notes |
193
+ | ---- | ---- | ----------- | ----- |
194
+ | **id** | **Integer** | API key ID | |
195
+
196
+ ### Return type
197
+
198
+ [**MessageResponse**](MessageResponse.md)
199
+
200
+ ### Authorization
201
+
202
+ [bearerAuth](../README.md#bearerAuth)
203
+
204
+ ### HTTP request headers
205
+
206
+ - **Content-Type**: Not defined
207
+ - **Accept**: application/json
208
+
@@ -0,0 +1,72 @@
1
+ # Weft::AccountApi
2
+
3
+ All URIs are relative to *https://api.weftlabs.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_me**](AccountApi.md#get_me) | **GET** /api/v1/me | Get current account |
8
+
9
+
10
+ ## get_me
11
+
12
+ > <MeResponse> get_me
13
+
14
+ Get current account
15
+
16
+ ### Examples
17
+
18
+ ```ruby
19
+ require 'time'
20
+ require 'weft-sdk'
21
+ # setup authorization
22
+ Weft.configure do |config|
23
+ # Configure Bearer authorization (APIKey): bearerAuth
24
+ config.access_token = 'YOUR_BEARER_TOKEN'
25
+ end
26
+
27
+ api_instance = Weft::AccountApi.new
28
+
29
+ begin
30
+ # Get current account
31
+ result = api_instance.get_me
32
+ p result
33
+ rescue Weft::ApiError => e
34
+ puts "Error when calling AccountApi->get_me: #{e}"
35
+ end
36
+ ```
37
+
38
+ #### Using the get_me_with_http_info variant
39
+
40
+ This returns an Array which contains the response data, status code and headers.
41
+
42
+ > <Array(<MeResponse>, Integer, Hash)> get_me_with_http_info
43
+
44
+ ```ruby
45
+ begin
46
+ # Get current account
47
+ data, status_code, headers = api_instance.get_me_with_http_info
48
+ p status_code # => 2xx
49
+ p headers # => { ... }
50
+ p data # => <MeResponse>
51
+ rescue Weft::ApiError => e
52
+ puts "Error when calling AccountApi->get_me_with_http_info: #{e}"
53
+ end
54
+ ```
55
+
56
+ ### Parameters
57
+
58
+ This endpoint does not need any parameter.
59
+
60
+ ### Return type
61
+
62
+ [**MeResponse**](MeResponse.md)
63
+
64
+ ### Authorization
65
+
66
+ [bearerAuth](../README.md#bearerAuth)
67
+
68
+ ### HTTP request headers
69
+
70
+ - **Content-Type**: Not defined
71
+ - **Accept**: application/json
72
+
@@ -0,0 +1,30 @@
1
+ # Weft::AccountDetails
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **Integer** | | |
8
+ | **email** | **String** | | |
9
+ | **status** | **String** | | |
10
+ | **display_name** | **String** | | [optional] |
11
+ | **public_profile** | **Boolean** | | |
12
+ | **public_slug** | **String** | | [optional] |
13
+ | **created_at** | **Time** | | |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'weft-sdk'
19
+
20
+ instance = Weft::AccountDetails.new(
21
+ id: null,
22
+ email: null,
23
+ status: null,
24
+ display_name: null,
25
+ public_profile: null,
26
+ public_slug: null,
27
+ created_at: null
28
+ )
29
+ ```
30
+
data/docs/Agent.md ADDED
@@ -0,0 +1,38 @@
1
+ # Weft::Agent
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **Integer** | | |
8
+ | **name** | **String** | | |
9
+ | **slug** | **String** | | |
10
+ | **wallet_address** | **String** | | |
11
+ | **description** | **String** | | [optional] |
12
+ | **category** | **String** | | |
13
+ | **visibility** | **String** | | |
14
+ | **verified** | **Boolean** | | |
15
+ | **claimed** | **Boolean** | Whether the agent is claimed by a user | |
16
+ | **stats** | [**AgentStats**](AgentStats.md) | | [optional] |
17
+ | **created_at** | **Time** | | |
18
+
19
+ ## Example
20
+
21
+ ```ruby
22
+ require 'weft-sdk'
23
+
24
+ instance = Weft::Agent.new(
25
+ id: null,
26
+ name: null,
27
+ slug: null,
28
+ wallet_address: null,
29
+ description: null,
30
+ category: null,
31
+ visibility: null,
32
+ verified: null,
33
+ claimed: null,
34
+ stats: null,
35
+ created_at: null
36
+ )
37
+ ```
38
+
@@ -0,0 +1,20 @@
1
+ # Weft::AgentListResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array&lt;Agent&gt;**](Agent.md) | | |
8
+ | **pagination** | [**Pagination**](Pagination.md) | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'weft-sdk'
14
+
15
+ instance = Weft::AgentListResponse.new(
16
+ data: null,
17
+ pagination: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,18 @@
1
+ # Weft::AgentResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Agent**](Agent.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'weft-sdk'
13
+
14
+ instance = Weft::AgentResponse.new(
15
+ data: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,30 @@
1
+ # Weft::AgentStats
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **total_paid** | **Integer** | | [optional] |
8
+ | **total_received** | **Integer** | | [optional] |
9
+ | **payments_made** | **Integer** | | [optional] |
10
+ | **payments_received** | **Integer** | | [optional] |
11
+ | **unique_counterparties** | **Integer** | | [optional] |
12
+ | **first_seen** | **Time** | | [optional] |
13
+ | **last_active** | **Time** | | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'weft-sdk'
19
+
20
+ instance = Weft::AgentStats.new(
21
+ total_paid: null,
22
+ total_received: null,
23
+ payments_made: null,
24
+ payments_received: null,
25
+ unique_counterparties: null,
26
+ first_seen: null,
27
+ last_active: null
28
+ )
29
+ ```
30
+
data/docs/AgentsApi.md ADDED
@@ -0,0 +1,147 @@
1
+ # Weft::AgentsApi
2
+
3
+ All URIs are relative to *https://api.weftlabs.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_agent**](AgentsApi.md#get_agent) | **GET** /api/v1/agents/{id} | Get agent details |
8
+ | [**list_agents**](AgentsApi.md#list_agents) | **GET** /api/v1/agents | List agents |
9
+
10
+
11
+ ## get_agent
12
+
13
+ > <AgentResponse> get_agent(id)
14
+
15
+ Get agent details
16
+
17
+ ### Examples
18
+
19
+ ```ruby
20
+ require 'time'
21
+ require 'weft-sdk'
22
+ # setup authorization
23
+ Weft.configure do |config|
24
+ # Configure Bearer authorization (APIKey): bearerAuth
25
+ config.access_token = 'YOUR_BEARER_TOKEN'
26
+ end
27
+
28
+ api_instance = Weft::AgentsApi.new
29
+ id = 'id_example' # String | Agent ID or slug
30
+
31
+ begin
32
+ # Get agent details
33
+ result = api_instance.get_agent(id)
34
+ p result
35
+ rescue Weft::ApiError => e
36
+ puts "Error when calling AgentsApi->get_agent: #{e}"
37
+ end
38
+ ```
39
+
40
+ #### Using the get_agent_with_http_info variant
41
+
42
+ This returns an Array which contains the response data, status code and headers.
43
+
44
+ > <Array(<AgentResponse>, Integer, Hash)> get_agent_with_http_info(id)
45
+
46
+ ```ruby
47
+ begin
48
+ # Get agent details
49
+ data, status_code, headers = api_instance.get_agent_with_http_info(id)
50
+ p status_code # => 2xx
51
+ p headers # => { ... }
52
+ p data # => <AgentResponse>
53
+ rescue Weft::ApiError => e
54
+ puts "Error when calling AgentsApi->get_agent_with_http_info: #{e}"
55
+ end
56
+ ```
57
+
58
+ ### Parameters
59
+
60
+ | Name | Type | Description | Notes |
61
+ | ---- | ---- | ----------- | ----- |
62
+ | **id** | **String** | Agent ID or slug | |
63
+
64
+ ### Return type
65
+
66
+ [**AgentResponse**](AgentResponse.md)
67
+
68
+ ### Authorization
69
+
70
+ [bearerAuth](../README.md#bearerAuth)
71
+
72
+ ### HTTP request headers
73
+
74
+ - **Content-Type**: Not defined
75
+ - **Accept**: application/json
76
+
77
+
78
+ ## list_agents
79
+
80
+ > <AgentListResponse> list_agents(opts)
81
+
82
+ List agents
83
+
84
+ ### Examples
85
+
86
+ ```ruby
87
+ require 'time'
88
+ require 'weft-sdk'
89
+ # setup authorization
90
+ Weft.configure do |config|
91
+ # Configure Bearer authorization (APIKey): bearerAuth
92
+ config.access_token = 'YOUR_BEARER_TOKEN'
93
+ end
94
+
95
+ api_instance = Weft::AgentsApi.new
96
+ opts = {
97
+ page: 56, # Integer | Page number
98
+ per_page: 56 # Integer | Items per page
99
+ }
100
+
101
+ begin
102
+ # List agents
103
+ result = api_instance.list_agents(opts)
104
+ p result
105
+ rescue Weft::ApiError => e
106
+ puts "Error when calling AgentsApi->list_agents: #{e}"
107
+ end
108
+ ```
109
+
110
+ #### Using the list_agents_with_http_info variant
111
+
112
+ This returns an Array which contains the response data, status code and headers.
113
+
114
+ > <Array(<AgentListResponse>, Integer, Hash)> list_agents_with_http_info(opts)
115
+
116
+ ```ruby
117
+ begin
118
+ # List agents
119
+ data, status_code, headers = api_instance.list_agents_with_http_info(opts)
120
+ p status_code # => 2xx
121
+ p headers # => { ... }
122
+ p data # => <AgentListResponse>
123
+ rescue Weft::ApiError => e
124
+ puts "Error when calling AgentsApi->list_agents_with_http_info: #{e}"
125
+ end
126
+ ```
127
+
128
+ ### Parameters
129
+
130
+ | Name | Type | Description | Notes |
131
+ | ---- | ---- | ----------- | ----- |
132
+ | **page** | **Integer** | Page number | [optional][default to 1] |
133
+ | **per_page** | **Integer** | Items per page | [optional][default to 25] |
134
+
135
+ ### Return type
136
+
137
+ [**AgentListResponse**](AgentListResponse.md)
138
+
139
+ ### Authorization
140
+
141
+ [bearerAuth](../README.md#bearerAuth)
142
+
143
+ ### HTTP request headers
144
+
145
+ - **Content-Type**: Not defined
146
+ - **Accept**: application/json
147
+
data/docs/ApiKey.md ADDED
@@ -0,0 +1,28 @@
1
+ # Weft::ApiKey
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **Integer** | | |
8
+ | **name** | **String** | | [optional] |
9
+ | **key_prefix** | **String** | First 16 characters of the key for identification | |
10
+ | **last_used_at** | **Time** | | [optional] |
11
+ | **revoked_at** | **Time** | | [optional] |
12
+ | **created_at** | **Time** | | |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'weft-sdk'
18
+
19
+ instance = Weft::ApiKey.new(
20
+ id: null,
21
+ name: null,
22
+ key_prefix: null,
23
+ last_used_at: null,
24
+ revoked_at: null,
25
+ created_at: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,26 @@
1
+ # Weft::ApiKeyCreated
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **Integer** | | |
8
+ | **name** | **String** | | [optional] |
9
+ | **key_prefix** | **String** | | |
10
+ | **raw_key** | **String** | Full API key (shown only once at creation) | |
11
+ | **created_at** | **Time** | | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'weft-sdk'
17
+
18
+ instance = Weft::ApiKeyCreated.new(
19
+ id: null,
20
+ name: null,
21
+ key_prefix: null,
22
+ raw_key: null,
23
+ created_at: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,18 @@
1
+ # Weft::ApiKeyCreatedResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**ApiKeyCreated**](ApiKeyCreated.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'weft-sdk'
13
+
14
+ instance = Weft::ApiKeyCreatedResponse.new(
15
+ data: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # Weft::ApiKeyListResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array&lt;ApiKey&gt;**](ApiKey.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'weft-sdk'
13
+
14
+ instance = Weft::ApiKeyListResponse.new(
15
+ data: null
16
+ )
17
+ ```
18
+